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

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.

  • 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."

  • 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

  • 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

  • Has somebody already used Applicom PCI2000ETH Card or Applicom SW1000ETH software to communicat​e with ETHERNET bewteen siemens s7-300 and LabVIEW DSC ?

    I want to use ETHERNET and not PROFIBUS to communicate and I think you can do that with only the applicom software SW-1000ETH. You must just have an ethernet card on your PC. So, you could use a notebook with an
    ethernet card. You can also use Applicom PCI2000ETH for better performance.

    Hi,
    You might be able to get the configuration listed above working as long as you can get from Siemens/Applicom or any other third party provider a OPC Server that communicates with the S7-300. Since LabVIEW DSC is a OPC client, you would be able to establish connection.
    The National Instruments driver for the S7-300 (Containnned in the product called "IA OPC Server CD") does not support communication through ethernet directly, you would either have to have a Profibus board or use a serial port with a Siemens HMI Adapter.
    I hope it helps
    Best Regards
    Andre Oliveira

  • Which protocol is recommende​d to communicat​e between LabVIEW an the S7-300 PLC?

    Hello,
    I'd like to communicate between LabVIEW (CompactRIO) and the S7-300 PLC.
    Which is the protocol NI recommend to use?
    I read, that TCP/IP over OPC and profibus work fine. Maybe MPI or Modbus, too.
    But I would favor a cheaper solution like the communication directly over TCP/IP. The problem is in my opinion, that Siemens modified the TCP/IP protocol and the protocol itself is not public. I found an example library at ni.com but this was build by using reverse engineering. And I'm not sure, if such a library would work reliable.
    I know this topic is interesting for many people, but I could not find a general recommendation here in the forums.
    Regards

    I have direct experience using the NI OPC servers to talk to Siemens S7-300 PLCs, and it's by far the easiest way I've found to communicate.  There may be 'less expensive' options out of the box, but from purely a development standpoint, it's very fast and easy to get working.

  • S7 300 with labview 7

    how can i scan "serial" data from the mpi interface of a siemens s7 300 with labview 7

    Hello Fubu16,
    From the following Link,
    http://zone.ni.com/devzone/conceptd.nsf/webmain/CC021CD15890283286256A33006EBA74?opendocument
    you can extract:
    Siemens S7 PLC is a Profibus device that can communicate to a Profibus network through MPI protocol using Profibus interface card, such as an Applicom board. It can also be configured for direct connection with a PC using HMI Adapter, a device that translates MPI protocol into RS-232 protocol. To connect a Siemens S7 PLC to a PC, connect the HMI Adapter to the MPI port on the PLC, and connect the adaptor to the PC serial port using a null-modem serial cable
    for more info on the HMI Adapter go to:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/e1e8217c676e56e4862569fb00734615?
    OpenDocument
    Hope this helps

  • Connecting cRIO with Siemens S7-300 using OPC UA

    Dear all,
    I am looking for an example program (labview and siemens S7) to create a connection between a cRIO and a Siemens S7-300 PLC.
    If an example program is not possible, some tips and tricks to set this up are also helpfull.
    thanks

    Hello Poema,
    I am aware of the different OPC Standards that exist and have worked both with OPC DA and OPC UA.
    The previous month I was even working on a demo that implements an OPC UA Server that appropriately taht automatically links the Shared Variable Engine variables to published items with appropriate quality statuses (eg. Open thermocouple detection.
    I would suggest you first create an OPC UA server that doesn't require certificates and that we first focus on making that use case work.
    This will be easier and afterwards you'll only have to add the certificates.
    Can you tell me how you are at this moment seeing/determining that the connection has been made?
    Do you have some more details on the "internal siemens driver" you are using?
    Personally I'm not so familiar with Siemens OPCs (have only used them via OPC DA).
    Therefore, I would like to ask you if you can refer me to a reference document concerning the "internal siemens driver" or configuration manager you are using (or can use) at your side.
    I'm actually looking for a document similar to this one for another manufacturer: 
    http://www.kepware.com/Support_Center/SupportDocuments/Help/opcuacm.pdf
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Why should I prefer NI Compact FieldPoint to Siemens S7-400 PLCs?

    NI guys please answer:
    Why should I prefer NI Compact FieldPoint controllers to Siemens S7-400 PLCs to build an automation and monitoring systems for a factory?
    I am asking this because one of our clients insists to use Siemens S7-400 family of PLCs to build an automation systems and we want to convince them to use NI cFP, but we need help from NI advisors to bring more satisfying reasons to our clients in order to change their mind.
    The case includes 51 AI, 15 AO, 108 DI and 51 DO.
    The whole process of this chemical factory must be automated and also monitored in a control room in two touch screen monitors and a big 52" LCD panel.
    Any help will be appreciated from NI advisors!

    For what it's worth, I'd like to make a comment.  It's difficult to compare the various PLC vendors with the NI line of products such as cFP because everyone has their various perceptions.  In short for me, the NI products are far easier to program than typical PLC's because of the much greater flexibilty and the rich features found in the LabVIEW programming environment.  I've programmed several PLC projects over the years that include GE Fanuc, Allen-Bradely, Omron and Siemens (Including the S7-400 series)  I'll take the LabVIEW environment any day over miserable ladder logic and the other versions such as instruction lists.  The customer gets a better product when it is easier to program and test.  I often provide features for the customer using LabVIEW and cFP that I would never think of doing using ladder logic.  The bottom line is that it's too easy to compare hardware without consideration of the software or benefits of features available.
    And then there are the customer's perceptions.  Just the other day I met with a potential customer who hates Siemens with a passion because he had experienced a lot hardware failures.  Conversely I have other customers who will not accept NI products only because they are not familiar with them.  For example, their technical personnel are familiar with Allen-Bradley and so that's what they want to stay with.  I have a very large international customer who has a corporate mandate to use Seimens.  It goes on...
    I consider my time to be somewhat valuable, which means that I have different pricing structures that are based on what the customer wants.  When a customer requires a non-NI product, I literally double the charge for programming time.  Some jobs I win and some I lose.  However, I'm very busy in the mean time and will continue the preference of vi's over PLC programming.

  • Communicat​ion via RS232 with a Kollmorgen Servostar 300 using LabView.

    Hello,

    Sorry I am new posting a message here and I post it before I was able to describe my problem.
    I have a Kollmorgen Servostar 300 to control an AKM24F motor and I would like to send the instructions to the controller via RS232 using LabView. I think I had achieved communication from a PC to a Servostar 300 using LabView via the serial port.
    So far I have setup in LabView the configuration of the RS232 (8 bit, no parity, baud rate 38 400), the address of the servostar (ADDR 0), the way the servostar should respond to the host (PROMPT 1) and the error flag (MSG 1), and no error had been detected when I run the program. I should mentioned that after I sent an instruction such as ADDR 0 terminated with a carriage return, I set a delay time of 150 ms, then I read the amount of bytes that are in the buffer, and then I read the buffer, as I mentioned no error message has appear and the ADDR 0 instruction is read from the buffer. Following the same procedure I sent an instruction to move the motor but nothing happens.
    So far I am not sure if the way I am trying to communicate with the servostar is the correct or if I am missing something, any guidance that anyone my give would be greatly appreciated.

Maybe you are looking for

  • Error in rescheduling a report programatically

    Hi All, I am trying to reschedule a report to use a new password using a c# program. But when I run the new schedule, the instance always shows "running" status. If I click on the status, I get the message "An error has occurred: The property with ID

  • I dropped my zen micro; now wh

    I was clumsy the other day and dropped it; not hard, but apparently just hard enough to make it not start properly anymore. I think the hard dri've must be damaged. When I turn it on it goes to a screen that has the creative logo on it, and it just s

  • Private Contacts are not manage (but Agenda did it !)

    When you use your BB privatly and professionaly, private datas must be excluded from professional synch. Agenda is working fine, but Contact is not managed : field "Private" does not exist in the BB software ! This is a big missing to use it professi

  • Product Catalog Managent iView throws page can not be displayed error

    Hi all, We are working EP6 SP11 Patch3, also, installed the CRM BP4.0 with SAP logon ticket SSO. All the iViews are working fine. But the Product Catalog Managent iView runs only first time when user logged in. Once user click on some other iView and

  • Jsessionid issue - web proxy to multiple clusters

    My team has encountered a problem where we have applications from two clusters hosted under the same domain e.g. mydomain.com/app1 and mydomain.com/app2. It seems that when we bounce between the applications that each weblogic cluster will overwrite