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

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

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

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

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

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

  • LabVIEW with Siemens hardware communication

    My application has Siemens AC Drive with Siemens PC CP5613 card being provided. Communication with the drive is thru' Profibus with LabVIEW. Does LabVIEW have a direct interface to communicate with Siemens CPS5613 card.

    Hi!
    No, unfortunately direct communication between LabVIEW and this card is impossible. (Theoretically you can looking for examples, which delivered with this card and calling DLLs for accessing, r/w Dual-Port RAM and so on, directly from LabVIEW, or over DLL-wrapper, but this not very easy). So, better way - using OPC server, which normally delivered with this card. Over OPC you can get access to Profibus. You can use OPC.SimaticNET server, or OPC.SimaticNET.DP (inline) server. Better way - using over LabVIEW DSC, but you can also to get acces over DataSocket without DSC (if you have not more than 30 items for reading and writing)
    With best regards...

  • Interface labview with the test board to identify opamp pins automatically

    is it possible to interface LABVIEW to a test board in such a way that the input, output pins of an op amp (8, 10, 14, 16 pin opamps) are identified automatically when DUT is placed in the socket

    pratheek wrote:
    Thanks alot. pin numbers are variable. I need to test the functional and test parameters for 8, 10, 14, 16 pin opamps.
    The first thing you need to do is ensure that +VCC, -VCC, and GND are always connected to the correct pins.  I think the best way to do this is have preset wire options that you manually select with some switches (reduces the complexity of the LabVIEW controlled wire switching).
    pratheek wrote:
    The desired out put for my project is to check the functionality of the opamps
    I understand the end goal, but what you need for first specity is the test sequence.
    1. Identify In/Out pins & number of op-amps.  What is the sequence for this??? What voltages do you apply to the various pins and what is your desired outcome???  How do you identify each pin as in/out and whether they are for OpAmp1, OpAmp2, etc.  Since this sequence will inevitabely apply voltage to the output pins, make sure your test sequence doesn't damage the chips.
    2. After identfying each op-amp, what is the test sequence for evaluate its "functionality"??  Do you wish to evaluate the gain for various resistor combinations in an external circuit????
    3. Now with your test sequences outlined, you can finally begin on getting LabVIEW to implement these functions.  I'd use the DAQ digital outputs to a decoder (3-to-8 or 4-to-16).  Use the outputs of the decoder to control switches (these switches control the connections between a second DAQ and the test pins).  A third DAQ may even be necessary to control the selection of various test resistors.  Keep in mind that each of these switches will add resistance to the path so your evaluation must be made measuring the voltages at the op-amp pins (not using the sourced voltage values).  Planning the full measurement sequence and requirements before you start will not only help guide your program's development but it will tell you which DAQs are useful and how many you will need.
    This is quite an undertaking and we can't really provide any help on the LabVIEW end until you have a full write up of what you want to happen and how (step-by-step details).  Once you have that, start thinking about the sequence of events your code will have to follow to make it happen, then come back for guidance/help.

  • Interface Labview with custom board

    Hello, I want to use Labview with a board I designed. To be brief my board has an Altera FPGA, some memory, and a fiber-optic transceiver. I want to develop a Labview program to display the data I'm receiving from my fiber-optic transceiver. I want to know if this is possible to have Labview interface with a non-National Instruments board? What do I need in order for Labview to work with my board. In my previous design I had the received data written directly to the computer's main memory. Could I do something like that, just tell Labview where in memory to get the data to be displayed?
    thanks,
    joe

    Absolutely. I'm doing that right now with VISA. Look at the posting here. There are some links there in how to procede.

  • 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

  • Error occur while interface labview with power and harmonic analyser

    hello,
            i done a project to test coreloss of motor. i our project we met some some trouble while interfacing labview software with navonip power and harmonic analyser through rs 232 communiation.i generate some error msg when i am using *IDHN? command to communicate with this hardware......  so i need ur technical support

    You will have to supply more info on the error(s) you encounter. Is there a command that does work as expected?
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • 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

Maybe you are looking for

  • Can I install Linux on an external drive?

    I'm kinda curious about something. If I boot up off an external firewire drive at boot time and I have previously partitioned it into 2 partitions (techtool or iPartition) is it possible to install a Intel Linux distro on the 2nd partitition? When I

  • Toolbox software for Win7 makes your wireless radio fail

    I have a problem with my X60 Lenovo and the new toolbox software for windows 7. After installing this new toolbox for windows7 the wireless radio turnes off and cannot be turned on ever again. Only restoring a backup made just before installing the t

  • Switching tabs in a tabstrip

    I have a tabstrip with two tabs. Under the first tab i am displaying a table. The user has the option of selecting one or more rows of this table, and hit an "Edit" button. At this time, the selected rows will be picked and transferred to a second ta

  • Images not visible in Web Dynpro

    Hi All, I am trying to show pictures from KM in a Web Dynpro for Java application but I have some issues with some pictures created and modified in Macintosh. Pictures/images created in Adobe Photoshop CS2 Macintoch are not visible. Any idea? Regards

  • TS5367 why do images take forever to load in my mail?

    just upgraded to 10.8.3 and now my mail takes forever to load images, banners, html, etc. even images that were previously loaded arent there when I reopen the program Mail v6.3