Process Data Acquisition – PLC

-- Detailed analysis of quality manage&industrial big data sources

高速数采方案

High speed data acquisition scheme

系统

System

Contact us

1 S7-1500 and slave drop data collection scheme

31 Beckhoff Ads

2 S7-400 Ethernet high speed fixed period 2ms

32 EtherCAT

3 S7-300 Ethernet high speed fixed period

33 RS232 / RS485

4 Profinet

34 Rockwell AB PLC

5 S7-400/300/TDC/FM458 Ethernet Variable Access

35 OPC / OPC Ua

6 Standard Ethernet UDP

36 Auxiliary transmission S120

7 Standard Ethernet TCP

37 Main driver system SL150

8 S7 PLC Tools for program debugging - pdaTools

38 B&R - Robot

9 S7-400/300/TDC/FM458 Symbol Variable DB block

39 MITSUBISHI MC protocol - format 4

10 S7-400/300 iso(MAC address)

40 MITSUBISHI MELSECT – QnA 3E

11 S7-300/400 standard ethernet

41 MITSUBISHI Q-Series UDP

12 TDC Ethernet

42 Smart meter DL/T645-2007 protocol

13 S7-1500/1200

43 S7-200 smart

14 MPI/DP variable access

44 Automobile CAN-bus

15 Profibus-DP

45 Alstom HPCi VMIVME 7750 - UDP

16 RFM(Reflective Memory)

46 Collecting KEPServer data through Opc Ua

17 CoDeSys

47 Collecting S7-1500 data through Opc Ua

18 Interface Module

48 Listen to all data on the Profibus bus and collect it

19 Simotion D

49 ABB main drive ACS6000

20 EGD(Ethernet Global Data)

50 Collecting PCI/PCIe card data

21 Modbus Register address

51 Collect TC-net network data

22 Modbus TCP Memory block

52 Collect UDP data forwarded by Tc-net

23 Modbus TCP Register address

53 Collect domestic PLC data

24 FM458 Profibus-DP gateway

54 Other data collection methods

25 GE Fanuc SRTP/ SNPX

55 High speed data forwarding

26 Wago

56 PDA system scheme for converter, RH furnace, LF furnace in steel plant

27 MOOG PLC

57 Continuous Casting Hydraulic Vibration PDA System

28 ABB PLC

58 Hot rolling TDC GDM.PDA system renovation

29 Beckhoff Ethernet

59 USB HID

30 Bechhoff Realtime Ethernet

60 AnyControl

35 OPC / OPC Ua

The Opc data source type is 12 (OPCAutomation, read-only PLC) or 13 (OPCCom, read-write PLC), ensuring that the OPC server and authorization are installed correctly. When there are too many points collected by one PLC, the points can be divided into multiple connections, and it is recommended that the OPC group names for each connection be different. The Opc Ua data source type is 58.

Rockwell AB PLC is a typical representative of OPC applications, with a comprehensive sampling period of up to 10ms. Below is an example to illustrate, with RSLinx Classic as the OPCServer.

35.1 Differences between different types of RSLinx Classic

RSLinx software comes in multiple versions to meet different price and functional requirements. In fact, they are all the same. Installing different licenses becomes different versions, and version information is displayed in the title bar at the top of the main window. If the correct activation file is not present when starting RSLinx Classic, it will run as RSLinx Classic Lite. Authorization can be transferred from a virtual floppy disk to a mobile hard drive or from a mobile hard drive to a C drive through Move Activation -32 Bit.

RSLinx lite: Free, its main function is PLC programming and hardware configuration, providing the most basic functions required to support RSLogix and RSNetWorx. This version is not sold separately, but bundled with products that only require direct access to RSLinx Classic network drivers. This version does not support OPC, DDE, or the published RSLinx Classic C application programming interface (API), applicable to the following situations:

(1) Programming using trapezoidal logic from RSLogix products.

(2) Configure and diagnose networks and devices using RSNetWorx.

(3) Configure Ethernet modules/devices (such as 1756-ENET, 1756-DHRIO, etc.).

(4) Upgrade firmware using ControlFlash.

(5) Browse the network and obtain device information such as firmware version.

RSLinx single node: includes the necessary functions to provide communication services for all Rockwell Software products, supports OPC and DDE interfaces, but is limited to one device. Direct drivers for applications or HMI applications developed for the RSLinx Classic C application programming interface (API) are not supported. These application types require the use of RSLinx Classic OEM or higher, and are applicable to the following situations:

(1) Use OPC or DDE to collect data on a device, including clients such as RSView32, Microsoft Office, Visual Basic, and web pages.

(2) Programming using trapezoidal logic from RSLogix products.

(3) Configure and diagnose networks and devices using RSNetWorx.

(4) Configure Ethernet modules/devices (such as 1756-ENET, 1756-DHRIO, etc.).

(5) Upgrade firmware using ControlFlash.

(6) Browse the network and obtain device information such as firmware version.

RSLinx Classic OEM: includes the necessary features to provide communication services for all Rockwell Software products, while supporting OPC and DD clients for any number of devices. This version also supports applications developed for the RSLinx Classic C application programming interface (API). RSLinx OEM version 2.2 and previous versions only support Advance DDE, while RSLinx version 2.3 and later versions support all DDE types except Fast DDE, suitable for the following situations:

(1) Use OPC or DDE to collect data on any number of devices, including clients such as RSView32, Microsoft Office, Visual Basic, and web pages.

(2) Programming using trapezoidal logic from RSLogix products.

(3) Configure and diagnose networks and devices using RSNetWorx.

(4) Configure Ethernet modules/devices (such as 1756-ENET, 1756-DHRIO, etc.).

(5) Upgrade firmware using ControlFlash.

(6) Browse the network and obtain device information such as firmware version.

RSLinx Classic for FactoryTalk View: If you install RSLinx Classic Lite (without an activator) on a machine that already has FactoryTalk View SE/ME installed, the authorization of FactoryTalk View will be used as the RSLinx Classic startup for FactoryTalk View. RSLinx Classic for FactoryTalk View:

(1) In addition to supporting FactoryTalk View SE/ME as an OPC client, it also supports RSLadder 5/500 and data monitors.

(2) RSView 32, FactoryTalk Transaction Manager, RSTrend, WinView, RSLogix5/500/5000, and third-party OPC clients are not supported.

(3) In RSLinx Classic v2.53 and later, RSLinx Lite enables OPC connectivity for FactoryTalk View SE/ME.

RSLinx Professional: The most widely used, including OPC and DDE functions, as well as data viewing functions for PLCs and other devices.

RSLinx Gateway: The most fully functional version that supports Remote OPC and gateway functions, allowing a computer with RSLinx installed to access all PLCs as a gateway. Remote HMI and VB/VBA applications, including Microsoft Office, can use remote OPC to communicate with RSLinx Classic Gateway to collect data. This feature can use multiple distributed computers to perform data collection without the need to install RSLinx Classic on each computer. In addition to the features provided by the RSLinx Classic Professional version, the following remote connections are also provided:

(1) Multiple RSView32 clients access data through an RSLinx Classic Gateway (remote OPC).

(2) The remote PC running RSLogix connects to the factory network through a modem to change the online program.

(3) Remote Microsoft Office applications such as Excel that display factory underlying data. When the web server and RSLinx Classic are located on different computers, a webpage displays the underlying data of the factory.

35.2 Program PLC

Write PLC program, call the other block with JSR in the main program.

Add the main program firstly for fixed scan cycle task, call other procedures in the main program with JSR.

Please ask the program entryPID.ACD if need.

35.3 Install RSLinx Classic Gateway authorization

Run the virtual floppy drive simulation program WinVF.exe to load authorization impression file gzhstar.img, run “Move Activation - 32 Bit” to move the relevant authority from the floppy disk to hard disk partition.


35.4 RSLinx OPC configure

35.5 OPC scanning and PDA configuration

If you scan the computer with a universal Client OPC tool, all OPC and Item ID can be found, Item ID is as PDA system VARIABLE NAME, VARIABLE NAME must be same as PLC variable, "REAL" data type in PDA corresponds to the analog of PLC; "BIT" corresponds to BOOL, the number of consecutive BOOL should be a multiple of 8; "CHAR" corresponds to STRING, its length should be filled in STRING LEN column.

Using of PDA OPC scanning tool pdaTools.exe->File->"OPC Client and PDA IO Manager" is more convenient, It can directly open the PDA system configuration file and test the OPC connection, and also save selected variable as a PDA configuration file "Config.csv".


The configuration of system parameters such as the sampling time is carried out.

"Activate OPC Config" may be used to test the connection with the PLC, you can display real-time values.

" Open Config" may be used to open the PDA configuration file.

Adjust "PDA Type", "Unit", "StrLen(string length)", "Offset", "Factor" according to the actual variable, PDA system configuration file "Config.csv" may be generated by "Save OPC config".

 

Example of Config.csv is below.

[0,33CH,10.000ms,,12,entryPID,,,,,,,,,,,RSLinx OPC Server]

No,   Item Id                                  ,Adr/note,Unit,Len,Offset  ,Gain    ,Type

CH1=, [entryPID]i1                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH2=, [entryPID]i2                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH3=, [entryPID]i3                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH4=, [entryPID]r1                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH5=, [entryPID]r2                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH6=, [entryPID]r3                             ,        ,    ,4  ,0.000000,1.000000,REAL

CH7=, [entryPID]Program MainProgram.trrr[0 0 2],        ,    ,4  ,0.000000,1.000000,REAL

CH8=, [entryPID]Program MainProgram.trr[0 13]  ,        ,    ,4  ,0.000000,1.000000,REAL

CH9=, [entryPID]Program MainProgram.tr[11]     ,        ,    ,4  ,0.000000,1.000000,REAL

CH10=,[entryPID]Program MainProgram.t2         ,        ,    ,4  ,0.000000,1.000000,REAL

CH11=,[entryPID]Program fff.p1                 ,        ,    ,4  ,0.000000,1.000000,REAL

CH12=,[entryPID]s1                             ,        ,    ,10 ,0.000000,1.000000,CHAR

CH13=,[entryPID]s2                             ,        ,    ,20 ,0.000000,1.000000,CHAR

CH14=,                                         ,        ,    ,4  ,0.000000,1.000000,REAL

CH15=,                                         ,        ,    ,4  ,0.000000,1.000000,REAL

CH16=,                                         ,        ,    ,4  ,0.000000,1.000000,REAL

CH17=,                                         ,        ,    ,4  ,0.000000,1.000000,REAL

CH18=,[entryPID]bool1                          ,        ,    ,1  ,0.000000,1.000000,BIT

CH19=,[entryPID]bool2                          ,        ,    ,1  ,0.000000,1.000000,BIT

CH20=,[entryPID]Program fff.abool1             ,        ,    ,1  ,0.000000,1.000000,BIT

CH21=,[entryPID]Program fff.abool2             ,        ,    ,1  ,0.000000,1.000000,BIT

CH22=,[entryPID]Program MainProgram.cbool2     ,        ,    ,1  ,0.000000,1.000000,BIT

CH23=,[entryPID]Program MainProgram.cbool3     ,        ,    ,1  ,0.000000,1.000000,BIT

CH24=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH25=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH26=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH27=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH28=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH29=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH30=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH31=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH32=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

CH33=,                                         ,        ,    ,1  ,0.000000,1.000000,BIT

35.6 Beckhoff OPC

Install TwinCAT and TwinCAT OPC in computer.

 

The OPC Server configurations are below for two PLC’s OPC.

 

You may now scan OPC and monitor with pdaTools.exe.


35.7 Connect to WinCC OPC

Create a new S7-300 station and generate reverse sawtooth MD1000, sine MD1004, cosine signal MD1008.

Create a new S7-1500 station and generate sawtooth DB1001.DBD0, sine DB1001.DBD4, cosine signal DB1001.DBD8.

Add these 6 variables and run in WinCC.

Run pdaTools and select OPCServer.WinCC.

"Save OPC config" can save the selected variables as PDA configuration file Config.csv for called by PDAserver, "Activate OPC config", "Activate OPC config" can activate to real-time values to display.

Real-time values and real-time curves as shown below.

35.8 Connect to KEPServerEx OPC

Run KEPServerEX 5 Configuration to configure PLC variable.

Run pdaTools and select Kepware.KEPServerEX.

Select the Item to be collected.

Real-time values and real-time curves as shown below.

35.9 Connect to remote OPCServer

The OPC class that is not registered in the PDA server can be imported from another computer's exported registry.

Set the PDAServer Config.csv as following figure, fill the OPCServer IP in front of the OPCserver name.

Create a user with administrator privileges and set the same password for running OPCServer and PDAServer computers, and turn off the window firewall.

DCOM configuration (for OPCServer and PDAServer).

Start -> Run -> Input: dcomcnfg

 

The same configure is for each user, "allow" should be selected for all.

 

 

 

 

 

 

35.10 Archiving all tags fastly for WinCC, Intouch, iFix, Cimplicity and other HMI system

HMI system archiving and analysis function is relatively poor, They are generally with OPCServer, PDA OPC can quickly collect all of their internal and external Tags Locally or remotely, dedicated Ethernet cable is recommended in a remote way, it does not affect the HMI Server.

 

Apparatus test&Fault diagnosis&Quality analysis

Millisecond data sampling

Real-time data compression

Capture signal instantaneous mutation

友情链接 百度 腾讯 新浪 网易 搜狐 凤凰 淘宝 京东 中国自动化网 中国工控网 西门子 罗克韦尔 华军软件园 天空软件站 非凡软件站 多多软件站 携程 知乎

中国五矿 中冶集团 中冶赛迪 中冶南方 中冶京诚 中冶华天 中冶长天 中冶北方 中冶焦耐 中国宝武 宝信 宝钢 武钢 鞍钢 河钢 首钢 山钢 涟钢

ICP2025092850 版权所有©Copyright:2025-2035. 经纬铭月科技(武汉)有限公司

 

 

Develop communication protocol, Customized analysis function, XinChuang domestic obsession

 

PDAServer    PDAClient