98
model 3000 Ethernet Module / DS Connection Module Operation Manual
Appendix E Sample Programs
E
Program (TCP transmission)
T_S.Slot
ST
3
LD
MOVE_UINT
MOVE_WORD T_S.Cmd
ST
16#0037
LD
MOVE_INT
OPEN_STATUS1
LD
T_S.Socket
ST
/* TCP SEND REQUEST */
N
OPEN_
COMPLETE TX_ERROR
TX_REQ
USEND_T
REQ
USEND_T_2
DONE
CMD
TX_ERROR
T_S
LD
P
TS_DATA[0]
LD
16#200
LD
ERROR
STATUS
SEND_STATUS
ST
TX_COMPLETE
TX_COMPLETE
CLOSE_
COMPLETE
TX_REQ
MOVE_UINT
3
LD
MOVE_WORD T_O.Cmd
ST
16#0035
LD
MOVE_UINT T_O.Kind
ST
1
LD
T_O.Slot
ST
MOVE_UINT T_O.TimeUp
ST
0
LD
MOVE_DWORD T_O.DIP
ST
16#AC10_4004
LD
MOVE_UINT T_O.DPort
ST
30003
LD
MOVE_UINT
T_O.Sport
ST
30004
LD
/* TCP OPEN REQUEST(ACTIVE) */
OPEN_
COMPLETE OPEN_ERROR
OPEN_REQ
OPEN_REQ
USEND_T
S
OPEN_COMPLETE
REQ
USEND_T_1
DONE
CMD
OPEN_ERROR
P
N
ERROR
STATUS
OPEN_STATUS1
ST
T_O
LD
TS_DUMMY
LD
16#0
LD
Summary of Contents for 3000 series
Page 13: ...CONTENTS 6F8C0878 xi E Sample Programs 91 F Return Code List 103 G Option switch List 107 ...
Page 14: ......
Page 26: ......
Page 72: ......
Page 76: ......
Page 82: ......
Page 100: ......
Page 102: ......
Page 104: ......
Page 116: ......
Page 120: ......
Page 122: ......
Page 126: ......