


Select OPC Tags to Bind to Shared Variables In the Create Bound Variables window, select the OPC tags to bind the shared variables to by browsing down to the simulated sine data from the OPC server as shown in Figure 5.įigure 5.Right-click the newly created library and select Create Bound Variables….This creates a new library for the shared variables, which are used to connect to the PLCs’ OPC tags.


Save the project as OPCDemoProject and the library as OPCDemoLibrary by selecting File»Save All from the project explorer window.Ĭreate Shared Variables that Connect to the OPC Tags through the I/O Server.Select OK. A library is automatically created in your project explorer window to manage the I/O Server.Notice that all the Sine tags populate in the right-most window and are updating with simulated sine data as shown in Figure 2.įigure 4.Under the National 5 folder and select Simulation Examples.Funtions.In NI OPC Servers 2012, launch the Quick Client by selecting Tools>Launch OPC Quick Client, which you can use to view the OPC tag data.The tags populate in the right-most window. These tags, which are bound to registers on the PLCs, can be read by LabVIEW. View the Sine tags by expanding Simulation Examples and selecting Functions.NI OPC Servers 2012 Displaying Simulated PLCs Note: If this simulation project is not already loaded in NI OPC Servers 2012, select File»Open… and browse to C:\Program Files\National Instruments\Shared\NI OPC Servers\V5\Projects\simdemo.opf. The project should look like Figure 1.įigure 1. This project simulates PLCs that have already been created and configured in NI OPC Servers 2012. NI OPC Servers 2012 should launch with a PLC simulation project already loaded.With NI OPC Servers 2012, you can create, configure, and view tags that are associated with your PLCs. Launch NI OPC Servers 2012 by selecting Start✺ll Programs»National Instruments»NI OPC Servers 2012»NI OPC Servers Configuration.The steps in this section are written for NI OPC Servers 2012, but similar steps can be used for previous versions of NI OPC Servers. View Existing PLC Tags with NI OPC Servers 2012
