
Chapter 9 User-defined Communication
9-15
(2)
RCV_UDATA
RCV_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 save
Output DONE: maintains 1 after operation
STAT: completion and ERR info
SIZE: received data size
(a) Function
1) RCV_UDATA instruction saves received user defined data(UDATA) from CNET module.
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
(b) Error
STAT
Message
Description
0
Initial state
Initial state before instruction operation
1
No error
normal operation
2
Module setting error
Module is not installed or CNET module trouble
3
Channel setting error
Input range(1, 2) is exceeded
4
Array size error
Transmit data size exceed 1024
5
Parameter setting error
CNET module’s parameter is not set as User defined or link enable is not
set
6
Instruction timeout error
No response from module or maximum scan time is exceeded(10 scan)
7
Version mismatch error
XGI CPU version is under V3.9, XGR CPU version is under V2.6 or
CNET module version is under V3.2
Содержание XGL-C22A
Страница 74: ...Chapter 6 Communication Parameter 6 22 4 Click I O Sync 6 Read the message If there is no problem click OK ...
Страница 172: ...Chapter 8 Modbus Communication 8 23 ...
Страница 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Страница 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Страница 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Страница 291: ...Appendix A 25 The lower code shows BCC check setting ...
Страница 296: ...Appendix A 30 4 Example Register monitor X 5 Example execution monitor Y Address of server Monitor result ...
Страница 297: ...Appendix A 31 A 4 Dimension Unit mm XGL C22A CH2A C42A H W version Less than V2 0 H W version V2 0 or Later ...