Rockwellautomation Rslinx Gateway Bad Quality Vba Tag Read

Environs

Software

  • OPC Servers
  • LabVIEW
  • LabVIEW Datalogging and Supervisory Control Module

The NI Industrial Automation Servers CD has an Allen Bradley (RSLinx) commuter that tin communicate with RSLinx through a dynamic link library (DLL). With the release of Industrial Automation Server CD 1.ane, this server became an OPC server. Any OPC client, such equally Spotter, BridgeVIEW, or other packages on the marketplace, can connect to this server. Rockwell Automation adult their own OPC Server in version 2.0 of RSLinx. This version has been upgraded to version 2.20.

Rockwell Automation RSLinx 2.x is an OPC server, significant that any OPC Client should be able to exchange data with this server. The OPC server is available only with the OEM version or the total version, and then the low-cal version of RSLinx does not have the OPC Server included. RSLinx OPC server is an in-process type of server, which means that you lot have to load a DLL to communicate with it. RSLinx ii.0 to 2.20 OPC servers only support the browsing capability on Control Logix 5000 series PLCs. Other Allen Bradley PLCs can be used on the OPC server by manually calculation the addresses to be seen.

Some other mechanism of advice between applications and RSLinx is through the DDE server that comes with RSLinx. The DDE server is but available for Rockwell Automation DDE clients in the OEM version. The drawback of DDE connection is that it is slower than OPC. If yous decide to use the LabVIEW DDE VIs, then you need to have the full version of RSLinx.

This document was created using RSLinx ii.twenty.01.107.01, Allen Bradley MicroLogix 1500 PLC, ServerExplorer 2.4.1, Lookout man iv.five and the LabVIEW DSC module 6.0.2.. The cable model number used was 1761-CBL-PM02.

Configuring an Allen Bradley PLC in RSLinx

  1. StartRS Linx and click onCommunications>>Configure Drivers.
  2. TheConfigure Drivers dialog box appears. Click on theAvailable Driver Types pull-down menu and choose your communication driver from the list. For case, if you take the regular serial connection, chooseRS-232 DF1 devices from the listing.


  1. ClickAdd together New.
  2. Enter any name you want for the commuter name in theAdd New RSLinx Driver dialog box. ClickOKwhen you are washed.
  3. Configure the device. Click the Auto-Configure push and RSLinx will automobile-configure the device for y'all. If the automobile-configure failed, contact Allen Bradley technical support for help. ClickAssistif y'all need more data about device configuration. ClickOKto go to the next step.


  1. Now you should be able to run across the commuter that you but created in theConfigured Driverssection of theConfigure Drivers dialog box. Make sure at that place is no error showing and that theStatusindicatesRunning. ClickClose.


Now you lot should be able to see your device when browsing the tree.

  1. If you do non see your PLC in the listing, uncheck theAutobrowsecheckbox and clickRefresh. When you highlight the items in the window, you should run across the piffling squares in the communication icon blinking, meaning that at that place is a communication link betwixt the PC and the PLC.
  2. Correct-click your PLC icon and clickConfigure New DDE/OPC Topic.


  1.  A new access path is added for your server, so when you define the admission path in your SCADA software, yous take to utilise the following syntax: [Admission Path]Particular. You tin can enter any name you want for the access path. In this example the access path is ML1500.

  1. ClickWashedsubsequently you are finished, and clickYepwhenRS Linxprompts you to update the topic.
  2. Now you lot should exist able to access all the available registers on your PLC from any OPC client software. With the access path ML1500, the syntax to admission the register N7:0 would be [ML1500]N7:0. Next, test the OPC server merely created usingRS OPC Test Customer.
  3. Launch the OPC Examination Customer fromStart>>Programs>>Rockwell Software>>OPC Tools>>OPC Examination Client. Then selectFile>>New.
  4. SelectRSLinx OPC Server and clickOK.

  1. ClickOK. At present you should exist able to see the group in the previous window.


  1. Select Item>>Add Detail.
  2. For the access path, enter the topic name you defined previously and type the annals proper noun you are trying to get information from or writing to. Click theAdd Detail push button and the particular proper noun should appear in the left-about field, as shown in the illustration. Add together all the items you want, and clickOKwhen you are done.

You should see the items and value that you just connect to underItemID.

Connecting ServerExplorer to RSLinx

  1. Launch the Industrial Automation Server Explorer 1.1 (or higher). Right-click on RSLinx OPC Server and chooseWizard.


  1. It is important to choose the In-proc Server (DLL). RSLinx does non support a Local Server. ClickNextto connect to the server.


  1. Define the grouping name and the update rate. ClickNextthenCeaseat the next screen.


  1. At this point you should be able to see the green traffic light meaning that ServerExplorer has successfully connected to the OPC server. Create an item by right-clicking on the group proper noun that you just created, then clickAdd/Edit Items.

  1. TheProper noun (Device\Item) tin can be any string. The Item ID should be in the [Admission Path]Detail format. In this example it should be[ML1500]O0:0. And then clickAdd.

Note: If yous are using RSLinx 2.20.01 or a later on version/build and a Control Logix 5000 Series PLC, y'all should be able to browse and select the registers. However, for all other Allen Bradley PLCs, RSLinx OPC Server does non support browsing, and y'all will accept to manually enter theDevice Proper noun andDetail ID.


  1. Validateall items.


  1. ClickOK, and yous should be able to run across register data in ServerExplorer.

Connecting Sentinel to RSLinx

Lookout can connect to the RSLinx OPC server through the OPCClient object. This document assumes that you know Lookout. If you do not have whatsoever previous feel with Sentry, then nosotros strongly recommend you to become through the introductory material in the Lookout documentation.
Note: Lookout man currently does non accept drivers for the Allen Bradley Control Logix PLCs.

  1. Kickoff, create a new OPC Client object. ChooseObject>>Create>>OPC Client.
  2. Choose theRSLinx OPC Server. The server is an In-Process Server (DLL), and so make sure that you choose this server type. The browsing method can exist eitherDisabledorApartment. Make the default access path equal to the topic name that you lot defined inRSLinx. ClickOKand open the Object Explorer.
  3. Drag and drop theOPCClient1onto your forepart panel. TheInsert Expression dialog box should appear.


  1. Complete the expression by typing the particular you are trying to read from the server, for instance, OPCClient1.O0:0. Notice that there is a dot between the tag proper name and the detail proper noun.

You can besides type the admission path past adding the 'item proper name'.'~access path'. Some servers use the admission path, so you lot can type explicitly, if yous want.


Another method is to select Edit Database and type the detail proper name in theMemberfield. Add together an allonym, simply practise non utilize a colon or a dot. In this instance, the Object Explorer will have your allonym available, so you tin can drag that and drop it onto your control panel.

Annotation: Lookout iii.8 users must ascertain the access path in the clarification field of the database. Because RSLinx does not support browsing, you have to type the access path manually. The format for that is: ~~[Topic proper name]item. For the example above, use ~~[ML1500]O0:0. You should also change the Cache Update Charge per unit to at least 2 ms, otherwise your CPU usage will approach 100%.


Connecting LabVIEW to RSLinx

LabVIEW itself is not an OPC Client, but it can be used to communicate to OPC Servers through theDataSocketVIs. DataSockets have an OPC layer, allowing y'all to read and write to an OPC Server from LabVIEW (or LabWindows/CVI).
DataSocket is a engineering science based on TCP/IP composed of 2 elements: the DataSocket API and the DataSocket server. The API provides an interface for different data types, converting the data into a stream of bytes that can be sent beyond a network via TCP/IP. To learn more about DataSocket, visit Integrating the Internet into
Your Measurement Organization.

The post-obit is a brief example of how to connect toRSLinx OPC Server from LabVIEW using our case VI.

  1. Launch LabVIEW and open up opc.llb in the ...\National Instruments\LabVIEW 6\examples\comm binder.
  2. Open NI Demo OPC Client.vi.
  3. This 6 tin connect to any OPC Server using DataSocket connexion. Adjacent, connect it toRSLinx OPC Server. Set theServer Name to beRSLinx OPC Server, and theItem Name in the form [Admission Path]Item. In this example nosotros are trying to connect to annals O0:0 using access path ML1500 defined in RSLinx, therefore the detail proper noun would be [ML1500]O0:0.
  4. Click the run button when you are ready.

You should see the annals information that you just connected to.


Connecting the LabVIEW DSC Module to RSLinx

  1. Launch LabVIEW and open the Tag Configuration Editor past selecting Tools>>Datalogging & Supervisory Contol>>Configure Tags.
  2. Click theCreate Tagicon and selectAnalog Tag. When the Analog Tag Configuration dialog box appears, enter theTag Proper noun equally shown.

  1. Click theConnectiontab, cull theTag Access Blazon, Server Name (RSLinx OPC Server in this case), and click theCreatebutton underI/O Group.

  1. Type in theGrouping Name and enter the Update Rate and theDeadband, and clickOK.


  1. Click theAddbutton in the Analog Tag Configuration dialog box, and enter theDetail NameandAccess Path.


You tin can either create new tags by clicking theCreate Next Tagpush in theAnalog Tag Configuration window, or clickOKto go back to the main window where you should run into the items you only created. Salvage the scf file.

six. Create a new Half-dozen; go to Tools>>Datalogging and Supervisory Control>>Monitor Tags. Brand sure theTag Engine is besides launched in order to monitor tags.

7. Within theTag Monitor, you lot tin can choose the created tags under your computer name, and monitor the data obtained from the PLC. Now, you should be able to write your own LabVIEW lawmaking using the tags from you scf file.

dipaolothentlyst.blogspot.com

Source: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0enCAA&l=en-GB

0 Response to "Rockwellautomation Rslinx Gateway Bad Quality Vba Tag Read"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel