
Chapter 9 User-defined Communication
9-13
9.5 UDATA Instruction
9.5.1 XGI Instruction
(1) SEND_UDATA
SEND_UDATA
Availability
Flags
User defined data send
XGI, XGR
-
Function Block
Description
Input REQ: requires to execute the function block
BASE : base number
SLOT: slot number
CH: channel(1 or 2)
DATA: data area to send
SIZE: data size to send
Output DONE: maintains 1 after operation
STAT: completion and ERR info
(a) Function
1) SEND_UDATA instruction sends user defined data(UDATA).
2) BASE and SLOT should input a base and the slot number that CNET module was attached to now.
3) CH means a channel number and must set 1 or 2
4) DATA must be declared only ARRAY OF BYTE type.
5) Array size is 1 ~ 1024 byte.
6) Save to transmit buffer as number as SIZE from DATA[0]. (Limit of data size is 1024 at once)
7) If 1 is output by Done and STAT, it accomplished normally and If an error is produced, state information
is displayed by STAT
Summary of Contents for XGL-C22A
Page 172: ...Chapter 8 Modbus Communication 8 23 ...
Page 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Page 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Page 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Page 291: ...Appendix A 25 The lower code shows BCC check setting ...