Process Data Acquisition – PDA -- Detailed
analysis of quality manage&industrial big data sources |
|||||
56 PDA
system scheme for converter, RH furnace, LF furnace in steel plant |
|||||
19
Simotion D
The program tool is Scout, browse the device online in Accessible nodes to determine the type and version of the device, otherwise it can’t be online. UDP communication protocol is adopted. Build a new project and create a ST_1 program. the model and version number must be correct, otherwise it can’t be online. INTERFACE TYPE TpdaData:STRUCT
R:ARRAY[0..9]
OF REAL;
B:ARRAY[0..1]
OF BYTE;
I:ARRAY[0..9]
OF INT;
S:ARRAY[0..9]
OF STRING[20]; // The LSTRING
of PDA is corresponded to
END_STRUCT END_TYPE PROGRAM PDA; END_INTERFACE IMPLEMENTATION PROGRAM PDA
VAR
pdaData
:TpdaData;
pdaDataSend:ARRAY[0..1399] OF
BYTE; //UDP max length=1400
PDAServerIP:ARRAY[0..3] OF
USINT:=[10,65,7,210];
myRetDINT :DINT;
END_VAR pdaData.R[0]:=0.0; pdaData.R[1]:=1.1; pdaData.R[2]:=2.2; pdaData.R[3]:=3.3; pdaData.R[4]:=4.4; pdaData.R[5]:=5.5; pdaData.R[6]:=6.6; pdaData.R[7]:=7.7; pdaData.R[8]:=8.8; pdaData.R[9]:=9.9; pdaData.B[0] :=_byte_from_8bool(bit0 := FALSE
,bit1 := FALSE
,bit2 := FALSE
,bit3
:= FALSE
,bit4 := FALSE
,bit5 := FALSE
,bit6 := FALSE
,bit7 := FALSE); pdaData.B[1] :=_byte_from_8bool(bit0 := FALSE
,bit1 := FALSE
,bit2 := FALSE
,bit3 := FALSE
,bit4 := FALSE
,bit5
:= FALSE
,bit6 := FALSE
,bit7 := FALSE); pdaData.I[0]:=10; pdaData.I[1]:=11; pdaData.I[2]:=12; pdaData.I[3]:=13; pdaData.I[4]:=14; pdaData.I[5]:=15; pdaData.I[6]:=16; pdaData.I[7]:=17; pdaData.I[8]:=18; pdaData.I[9]:=19; pdaData.S[0]:='01234567890123456789'; pdaData.S[1]:='11111111111111111111'; pdaData.S[2]:='22222222222222222222'; pdaData.S[3]:='33333333333333333333'; pdaData.S[4]:='44444444444444444444'; pdaData.S[5]:='55555555555555555555'; pdaData.S[6]:='66666666666666666666'; pdaData.S[7]:='77777777777777777777'; pdaData.S[8]:='88888888888888888888'; pdaData.S[9]:='aaaaaaaaaaaaaaaaaaaa'; pdaDataSend :=
ANYTYPE_TO_BIGBYTEARRAY(
anydata :=pdaData // ,offset := 0 ); myRetDINT := _udpsend(
sourceport :=3000 ,destinationaddress :=PDAServerIP
,destinationport :=3000
,communicationmode := CLOSE_ON_EXIT
,datalength :=282 // 282 = 4*10 + 1*2 + 2*10 + (2+20)*10
,data :=pdaDataSend );
END_PROGRAM END_IMPLEMENTATION Adding program ST_1.pda to low priority task such as BackgroundTask, the fastest period can be set to one servo cycle, it is also available to other task such as ServoSynchronousTask, but it is easy to cause Simotion D to stop when the sending cycle is too short, it may be avoided by calling the error program. Run or stop Simotion D. Connect or download or disconnect Simotion D. The PDA configuration corresponding to the data sent above is below, the byte should be swapped. Download without HW configuration. Add global variable to watch table, whether it is consistent with the PLC program may be checked. Check whether it is consistent with the PLC by means of hardware online. |
|||||
|
|||||
Apparatus test&Fault diagnosis&Quality analysis |
Millisecond data sampling Real-time data compression Capture signal instantaneous mutation |
||||
友情链接 百度 腾讯 新浪 网易 搜狐 凤凰 淘宝 京东 中国自动化网 中国工控网 西门子 罗克韦尔 华军软件园 天空软件站 非凡软件站 多多软件站 携程 知乎 中国五矿 中冶集团 中冶赛迪 中冶南方 中冶京诚 中冶华天 中冶长天 中冶北方 中冶焦耐 中国宝武 宝信 宝钢 武钢 鞍钢 河钢 首钢 沙钢 山钢 涟钢 鄂ICP备2025092850号 版权所有©Copyright:2025-2035. 经纬铭月科技(武汉)有限公司 |
|||||
Develop
communication protocol, Customized analysis function, XinChuang domestic
obsession
PDAServer
PDAClient