92
model 2000 Ethernet Module Operation Manual
Appendix E Sample Programs
E
Variable definition (UDP reception)
VAR
OPEN_COMPLETE:
BOOL;
OPEN_ERROR:
BOOL;
OPEN_REQ:
BOOL;
RX_COMPLETE:
BOOL;
RX_ERROR:
BOOL;
RX_REQ:
BOOL;
CLOSE_COMPLETE:
BOOL;
CLOSE_ERROR:
BOOL;
CLOSE_REQ:
BOOL;
RCV_STATUS:
INT;
CLOSE_STATUS:
INT;
UR_DUMMY1:
WORD;
UR_DUMMY2:
UINT;
UR_SIZE:
UNIT;
UR_DATA:ARRAY[0..512] OF WORD;
URCV_T_1:
WORD;
USEND_T_1:
USEND_T;
OPEN_STATUS1:
INT;
U_O:
typeUDP_OPEN;
U_R:
typeUDP_RCV_BC;
U_C:
typeUDP_CLOSE;
T_SK_CMD:
typeTCP_SEND;
T_SOCKET:
URCV_T;
T_SK_REQ:
BOOL;
T_SK_COMP:
BOOL;
T_SK_ERR:
BOOL;
T_SK:
INT;
T_SK_SOCKET:
INT;
T_SK_DT:
WORD;
RX_TRG:
BOOL;
END_VAR