Siemens S7 300 PLC and Labview Communicat​ion

Hi,
I am attempting to communicate between Labview 7 and a Siemens S7 300 (CPU 314) PLC. I would prefer the communication to be over Ethernet or RS 232. Could you help me out with this implementation and let me know what additional hardware/software I may require for doing this.
Thanks,
Shameek

Shameek wrote:
I am using a CP-343 communications processor to connect the S7 300 to industrial ethernet.
Now can I commnicate directly from Labview to the PLC?
I still havent figured out where the OPC server comes in and whether it is an option or a necessity.
Using OPC is an option.
Siemens has an the add-on ($$) library/FB  that includes code for enabling Modbus communication with S7 300 CPUs. I've never used it, but info is here.
<snip>
Our solution
With its MODBUS function block (FB) and the CP343-1 and CP443-1 SIMATIC S7 communications processors, Siemens can supply a proven solution for the integration of SIMATIC automation systems into other system landscapes. This function block enables data to be exchanged easily between MODBUS-compatible devices from different manufacturers and SIMATIC S7 stations from S7-300 and S7-400 systems.
</snip>
=====================================================
Fading out. " ... J. Arthur Rank on gong."

Similar Messages

  • Can i connect Labview 8.5 with Siemens S7-300 PLC with Rs-232 protocols

    Hi....I want to interface Siemens S7-300 PLC with Labview 8.5.....The PLC has MPI to RS-232 PC Adapter (6ES7 972-OCA23-OXAO).....i have made a GUI on Labview 8.5 and want to bring Voltage and Current data in realtime in Labview and Display that......Please help me.....
    Thanx

    You should open the Example Finder (Help -> Find Examples) and take a look at the serial communication examples. They should be able to do what you want.
    However, I do have to point out this: "want to bring Voltage and Current data in realtime". Define "realtime". Do you mean you're working on a Real-Time OS? 

  • Connecting a Siemens S7-300 PLC to NI OPC Server

    As a part of the final year Bachelor Thesis project I and two others are involved with, I have been tasked with setting up an HMI/SCADA system to control level and flow in several water storage tanks. This is to be done locally via a "Operator Panel" and also remotely over the Internet via webbrowser. These storage tanks and control system is placed on a wheeled demonstration model so it can be used in classrooms and auditoriums. As such, I have a Siemens S7-300 PLC and the latest edition of LabVIEW (2009 Professional Ed.) available to me. In order to create a HMI system, we will also acquire the NI DSC module as it should have everything we need (NI OCP is included?).
    Since this is a bachelor project and the school is basically paying for everything, we are on a rather strict budget. This means that we currently haven't settled on a solution for the "Operator Panel" since this would be dependent on how the PLC and panel interfaces. What we would like to do for simplicity sake is to use commercial laptop computer with touchscreen capability thus having a low cost "all-in-one" solution, both for local input & control and web publishing capability. Now, most computers today doesn't have serial comports anymore, but rather USB ports.
    On the OPC server webpage under the OPC Device Connectivity heading, it is specifically stated "Siemens HMI Adapter for S7-300/400 via Serial with HMI adapter". I assume this refers to the following Siemens product: https://support.automation.siemens.com/WW/llisapi.​dll/csfetch/8774263/hmi_adapter_x.pdf?func=cslib.c​... (6ES7 972-0CA1X-0XA0).
    Does this mean that the OCP server can only use a Serial connection via the HMI adapter for the S7-300 directly? Would it be possible to use a driverless Serial to USB adapter with the HMI adapter, or for example the Siemens CP5711 MPI to USB adapter? If it is not possible to use a USB based solution, We would have to use an older desktop PC with an serial comport or an additional PCI card and that is something we would like to avoid.
    Any help on this matter would be highly appreciated.
    -- DanJack, NUC Norway
    Solved!
    Go to Solution.

    now this is a problem the PLC S7300 does not support some functions of communication when you want to make a simulation may not be accessible from OPC Server, this by PROFIBUS Siemens USB / MPI + PLC S7300/400 protocol adapter cord
    Atom
    Certified LabVIEW Associate Developer

  • How can I write to a Siemens S7-300 PLC tag from OPC Server.vbai page by using a Knob object ?

    I am using NI OPC Server and I can read Siemens S7-300 PLC tags such as thermocouple values from the PLC. Additonally I can write manually a constant value to that tag by selecting it in the NI Distributed System Manager. And I can read the written value from NI Distributed System Manager or from NI OPC Server. But I can not write any value to the S7300 PLC tags such as by using a knob object at the NI Vision Builder AI Inpection (.vbai) page.
    Any help is welcomed. Thanks in advance.
    Attachments:
    manual_writing_to_plc.png ‏298 KB

    The tutorial at the following location explains how to use Vision Builder AI as a OPC server.
    https://decibel.ni.com/content/docs/DOC-18647
    http://www.ni.com/white-paper/13574/en
    To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.
    Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.
    Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.
    http://forums.ni.com/t5/Machine-Vision/Read-and-Write-with-OPC-through-NI-Vision/m-p/2048278/highlig...
    Hope this helps.
    -Christophe

  • How to connect siemens S7-300 PLC

    Dear Sir,
    I am using labview 8.2 and i want to connect siemens S7-300 PLC. Please suggest me how can i connect it with labview 8.2?

    Ran across this similar message which points to this KB article which you may want to look at.

  • Interfacing LabVIEW with SIEMENS s7-300 PLC

    Hi all,
    Im using LabVIEW 8.6 and DSC module I want to interface S7-300 SIEMENS PLC with LabVIEW. I've gone through the turorial on the NI site " Connect LabVIEW to any PLC". By following the tutorial when I am trying to create I/O server in the registred OPC servers window there is nothing what would be the reason. Also there is no specific information available about the hardware connection etc. Kindly help me through this or suggest some tutorial links. What about the PROFIBUS and MPI. I know the information i am giving is not specific and focused but I've tried to tell all of you to atleast understand what I want to do. Hope you people help. THANKS.
    Naqqash

    Hi,
    Lookout is our legacy OPC software that was phased out by the DSC module. You can read about both here: What is NI Lookout? and What is DSC?
    You can find a great introductory DSC tutorial here: Getting Started with the LabVIEW Datalogging and Supervisory Control Module. A couple other places to get started: NI Module Training (look for DSC)  and Connect LabVIEW to Any PLC Using OPC Webcast
    As for simulating your hardware, if you have a 3rd party simulator that will imitate your hardware, you might be able to fool DSC into thinking that there is actual hardware connected, but DSC does not include simulating capabilities itself. 
    Cheers, 
    Misha

  • Connection of Siemens S7-300 PLC to NI OPC Server 2012

    Hi,
    My name is Gevorg.
    I am going to create a communication between S7-300 (CP 343-1 Lean) and NI OPC Server 2012.
    As per my investigations, NI OPC server does not have appropriate drivers for S7-300 PLCs. At the other hand I could find any documentation, that prooves that S7-300 supports OPC protocol.
    Does anyone have any experience of using S7-300 PLCs?
    What protocol does it support?
    Could you please help me..
    Attached you can find the datasheet of S7-300 PLC.
    Thank you in advance,
    Attachments:
    OPC server.png ‏64 KB
    GH_CP343-1-Lean-CX10_76.pdf ‏1563 KB

    https://decibel.ni.com/content/docs/DOC-38858
    Atom
    Certified LabVIEW Associate Developer

  • Siemens S7 300 PLC Communicationnd with Labview

    hi;
    I'm trying to connect my PLC s300 with labview in my PC .
    How can I proceed ?
    what is the easiest way to do the communication knowing that I did the simulation using TCP/IP protocol with OPC server.
    I have SIMATIC net station and CPU 315 2-DP
    any suggestion?
    I want to use OPC server with MPI  can I do so ? amI supposed to add materials and what are those materials ?
    Thanking in anticipation.

    sivaramkumar wrote:
    Hi.I am using a CP-343 communications processor
    to connect the S7 300 to industrial ethernet. Now can I commnicate
    directly from Labview to the PLC?We are plan to use ethernet communication (our TCP VI's). 
    Which type of command we need to ues. whether we need to form a MODBUS protocol command.
    Siemens S7 supports all kinds of protocols. Some are built in from start and are usually Siemens specific protocols whose specs are not always easy to come by, others can be purchased and installed on the communication processor seperately such as Modbus. Once you have the Modbus library installed on your S7 you can simply use the Modbus VIs downloadable from the NI site to communicate with your S7 datablocks.
    It is a strict IO access meaning you can read and write IO registers and memory datablocks, but not interfere with the actual programm on the S7 in other ways.
    Using Modbus is simply and hard at the same time, since Modbus uses various datatypes with different address ranges that are mapped in some way to the items in the target hardware. This mapping can be tedious to work out correctly since the documentation of devices is sometimes quite a bit unclear about how exactly that has been done by the manufacturer.
    There are many other Ethernet protocols that are available or can be installed on a S7 such as Profibus Ethernet, EtherCat, Industrial Ethernet, etc. Most of these while technically possible to be implemented on top of the native TCP LabVIEW nodes are rather complicated and therefore anything but trivial to create a VI library for.
    Your best bet really is to either use Modbus or an OPC Server that implements the native access to the PLC.
    Rolf  Kalbermatter
    Message Edited by rolfk on 03-12-2009 09:07 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Siemens S7 300 PLC Labview Communication

    Hi.I am using a CP-343 communications processor
    to connect the S7 300 to industrial ethernet. Now can I commnicate
    directly from Labview to the PLC?We are plan to use ethernet communication (our TCP VI's). 
    Which type of command we need to ues. whether we need to form a MODBUS protocol command.
    Thanks
    Siva

    sivaramkumar wrote:
    Hi.I am using a CP-343 communications processor
    to connect the S7 300 to industrial ethernet. Now can I commnicate
    directly from Labview to the PLC?We are plan to use ethernet communication (our TCP VI's). 
    Which type of command we need to ues. whether we need to form a MODBUS protocol command.
    Siemens S7 supports all kinds of protocols. Some are built in from start and are usually Siemens specific protocols whose specs are not always easy to come by, others can be purchased and installed on the communication processor seperately such as Modbus. Once you have the Modbus library installed on your S7 you can simply use the Modbus VIs downloadable from the NI site to communicate with your S7 datablocks.
    It is a strict IO access meaning you can read and write IO registers and memory datablocks, but not interfere with the actual programm on the S7 in other ways.
    Using Modbus is simply and hard at the same time, since Modbus uses various datatypes with different address ranges that are mapped in some way to the items in the target hardware. This mapping can be tedious to work out correctly since the documentation of devices is sometimes quite a bit unclear about how exactly that has been done by the manufacturer.
    There are many other Ethernet protocols that are available or can be installed on a S7 such as Profibus Ethernet, EtherCat, Industrial Ethernet, etc. Most of these while technically possible to be implemented on top of the native TCP LabVIEW nodes are rather complicated and therefore anything but trivial to create a VI library for.
    Your best bet really is to either use Modbus or an OPC Server that implements the native access to the PLC.
    Rolf  Kalbermatter
    Message Edited by rolfk on 03-12-2009 09:07 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • It's better or necessary open and close communicat​ion with instrument every loop?

    I must communicate with my instrument, but I must change its value, for example temperature, every loop. See the Figure to understand:
    I think that it is better if I open communication with my instrument out of while loop so I many operation: if I put Open VISA in While loop I open VISA session every loop, instead I think it is not intelligent. Can I open VISA SESSION out of the while loop or it is an error for EXCELLENT LABVIEW VI and I must open and close VISA SESSION every times I must talk (and set) with instrument? What is the better way?
    Message Edited by Michelle1892773 on 02-22-2010 02:00 PM

    Something like this?
    I do have to say, i don't know what is happening in the false case of yours, but if nothing happens with the 100 that is wired to the shift register, once you enter the true case, the value in the shift register will always be great than "i". You might as well do what I have done then. However, if something does happen with that number in your false case, then keep it the way you have it.
    That being said, why is the condition there to see if it has looped 100 times before doing the visa write??
    Message Edited by for(imstuck) on 02-22-2010 04:45 PM
    Message Edited by for(imstuck) on 02-22-2010 04:46 PM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    visa.PNG ‏13 KB

  • Vi with access via both user interface and external communicat​ion

    Hi,
    Maybe a little bit too general but I'll risk it:
    It concerns a project to stear a tensile machine. Data acquisition is relative straightforward via a few analogue and digital channels.
    The interaction of the operator with the tensile machine can be done at two levels:
    1. Directly via an user interface on the computer next to the machine. Here I would typically use a state machine in combination with event structures.
    2. Remotely,  via TCP protocol. Here different clients (external program, written in C) should be able to connect to the LabVIEW program and send simple commands such as 'read force', 'write force', 'read status', ...
    It is relatively easy to setup a small daemon that accepts TCP connections from multiple clients. Furthermore I would put the commands from the clients into a message queue (using a producer/consumer structure).
    I was wondering what the best method is to allow both the user interface and the external clients to stear the machine (e.g. using an event structure to respond to interactions via the user interface, and create user events from the commands of the clients to access the same actions).
    Steven
    LV8.5

    Hi VPS,
    one way could be to build your TCP receiver in one while loop and your event structure in another while loop. if you want to send a command from the event structure you can send this over tcp to the TCP receiver.
    Another way could be to use a queue or notifier to send the commands from the event structure and the TCP receiver to another while loop which work with the received commands.
    Mike

  • Labview communicat​ion balance ohaus

    Bonjour,
    Je travaille sur labview 7.1 et je n'arrive pas à communiquer correctement avec ma balance (ohaus arc120).
    Pour comuniquer j'utilise un cable rs232 croisé que j'ai fabriqué à partir d'un cable droit et un adaptateur usb/rs232.
    Lorsque je récupère les données de la balance via le bouton print de la balance, tout marche, j'ai la bonne valeur.
    Mais lorsque je la commande avec le pc, je n'ai pas toujours de signal. Lorsque j'en ai un, la valeur que je recois est éronnée. le nombre d'octets lu n'est pas constant et il y à des erreurs de cadrage: il manque une partie de la valeur (ex: 2,3g au lieu de 2,83g) ou m'indique totalement autre chose ( caractères spéciaux, lettres...)
    De plus je ne recois aucun signal si dans mon VI je ne répète pas 7 fois l'instruction écrire dans une boucle. Pour la tare c'est pareil, je dois répété l'instruction 5 fois.
    Pour réussir à écrire puis à lire il faut que j'ouvre un session visas pour écrire, que je la ferme, puis que j'en ouvre une nouvelle pour lire. Sinon il n'écrit pas.
    J'ai aussi essayé de communiqué directement en rs232. je recois la bonne valeur en appyuant sur le bouton print, mais je n'arrive pas commander la balance.
    J'ai vérifié les paramètres de transmissions, ils sont correctes.
    Pouvez-vous m'aider ?
    Merci beaucoup
    Cordialement
    Solved!
    Go to Solution.
    Attachments:
    arc120.pdf ‏129 KB
    balance avec deux sessions visas.vi ‏129 KB
    capture d'écran.doc ‏79 KB

    Try this PIN out for RS232 cable :
    Below are the two cable configurations that will work with 9 pin and 25 pin serial ports. You will notice that pins 2 and 3 are not crossed in the 9 pin but are in the 25 pin. In any case pins 5 and 6 have to be shorted at the balance end of the cable. One cable type will work with both balances.
    Ohaus Part number - AS017-09 Used with AP, AS, C, CT, E, G, GT, I5, TP, TS, MB200, Adventurer, Explorer, Voyager, Navigator and Scout.
    Cable - balance to PC
    9 pin(F) to 9 pin(F)
    Balance pin -----to----- PC pin
    PIN 2 (TXD) -----to----- PIN 2 (RXD
    ) PIN 3 (RXD) -----to----- PIN 3 (TXD)
    PIN 7 (GND) -----to----- PIN 5 (GND)
    For balances other than Adventurer pins 5 & 6 must be shorted together at the balance and NOT connected to the computer. This is not required in the Adventurer balances.
    CLA 2014
    CCVID 2014

  • Interfacing between Delta PLC and LabVIEW

    When I am interfacing with VI and delta PLC, its taking too much time for communicating. after that some ime this error also is coming....please guide me with this....I am using DSC module and kepserver(OPC software).
    Attachments:
    SVE error.png ‏49 KB

    Hi azadplc007,
     It is an error related to deployment of shared variables.Please go to this discussion.
     http://forums.ni.com/t5/FieldPoint-Family/Shared-Variable-Read-Error-1950679035/td-p/584832.
    Regards
    SrikrishnaNF

  • Local SQL Database & Labview communicat​ion

    I created an sql database with sql server 2008 R2. I wish to be able to insert data to this database locally. Can someone please tell me if this can be done, and if it is possible, could someone give me the steps I have to follow?
    Thanks.
    Solved!
    Go to Solution.

    Another source of information would be a 3 part series on databases (check the link in my signature). The process is largely the same regardless of the DBMS you are accessing.
    With SQL Server you will need a user I'd and password. Did you install the SQL Server yourself?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Linux Port IO and Network Communicat​ions?

    I am considering using LabVIEW for Linux for an embedded single board
    computer application but have little experience with Linux.
    I have written a LabVIEW driver for the analog and digital I/O ports on the
    single board computer using the I/O port VIs in Windows 98. I seem to
    remember discussion about a third party port I/O driver available for
    LabVIEW for Linux. Is this true and where can I get it?
    What is available for network communications in LabVIEW for Linux? Can you
    use DataSocket? I would like to have a centralized computer, possibly
    running Windows, monitoring several of these embedded computers running
    Linux.
    Best Regards,
    Neal Pederson, President, VI Control Systems
    1923 Mendius Lane, Los Alamos
    , NM 87544
    TEL: (505) 662-1461, FAX: (603) 388-4969
    [email protected], www.vicontrols.com

    Sergey Krasnishov wrote:
    > TNT News wrote:
    >
    >> I am considering using LabVIEW for Linux for an embedded single board
    >> computer application but have little experience with Linux.
    >>
    >> I have written a LabVIEW driver for the analog and digital I/O ports
    >> on the
    >> single board computer using the I/O port VIs in Windows 98. I seem to
    >> remember discussion about a third party port I/O driver available for
    >> LabVIEW for Linux. Is this true and where can I get it?
    >>
    >> What is available for network communications in LabVIEW for Linux?
    >> Can you
    >> use DataSocket? I would like to have a centralized computer, possibly
    >> running Windows, monitoring several of these embedded computers running
    >> Linux.
    >>
    >> Best Regards,
    >>
    >> Neal Pederso
    n, President, VI Control Systems
    >> 1923 Mendius Lane, Los Alamos, NM 87544
    >> TEL: (505) 662-1461, FAX: (603) 388-4969
    >> [email protected], www.vicontrols.com
    >
    >
    > Neal,
    >
    > There are TCP/UDP vi's working on LV/Linux as well as Internet toolkit.
    > DataSocket client vi's are on LV6/Linux only (server is still
    > unavailable as far as I know).
    > There is also Xserver capabilities to send data securely to remote
    > client, so you can use even front panels from remote device application
    > on the host machine.
    >
    > Port I/O may be used if you have appropriate port driver (e.g.
    > /dev/name.o). In another case you'll have to make some C coding for the
    > device driver.
    > I saw the mention and site like "open source CIN project", but don't
    > remember it's URL. There was Inport/outport vi available, made with CIN.
    > If I'll find it, will let you know.
    >
    > Hope this helps,
    Here is URL:
    http://sourceforge.net/projects/cin4labview/
    Sergey Krasnishov
    Automated Control Systems
    National Instruments Alliance Member
    Moscow, Russia
    [email protected]
    http://acs.levsha.ru

Maybe you are looking for

  • Código de Status 109

    Boa Tarde, Estamos com a situação de um rejeição de 9 Nfe que estão retornando o código de status 109 - Serviço Paralisado sem Previsão da SEFAZ-MT. Como podemos alterar esse código de status, para que o nota fiscal possa ser reenviado para a Sefaz?

  • Error icon in book - what's this?

    Hi On some images in my book I get a small yellow error icon (yellow triangle with an exlamation mark in it). There is no hover information or anything else and I can't find any information about this online. Can anyone tell me what this is about and

  • Source System in an ABAP Landscape

    We are relatively new to SAP.  Back when we initially architected the landscape we had many consultants in, including several Platinum consultants from SAP.  At the time they emphasized the special nature of the "source system" in an ABAP landscape,

  • Index Content server on ECC by TREX

    HI, I have TREX versuion 7.00.33. When I run the job "RSTIRIDX" it index my Content Server, the CS go down in the middel of the indexing, my question is what trex doing when his CS go down? it skip that document?  when I run again these job RSTIRIDX

  • Queries executed on generic buffered tables form table structure?!

    Hi, generic buffered tables only store parts in the buffer that were queried or rather are queried. Thus the WHERE clause of an SQL stmt defines which parts of a table to store, when a part is read for the first time. An example: A table has 3 key fi