6F8C0878
97
E
<Example of TCP transmission>
The program shown here for reference sends data from S3 of STN1 through the Ethernet
TCP port 30004 of STN1 to S2 of STN2 where the data is received through the Ethernet
TCP port 30003.
Variable definition (TCP transmission)
VAR
OPEN_COMPLETE:
BOOL;
OPEN_ERROR:
BOOL;
OPEN_REQ:
BOOL;
TX_COMPLETE:
BOOL;
TX_ERROR:
BOOL;
TX_REQ:
BOOL;
OPEN_STATUS1:
INT;
TS_DUMMY:
WORD;
USEND_T_1:
USEND_T;
USEND_T_2:
USEND_T;
SEND_STATUS:
INT;
CLOSE_REQ:
BOOL;
TS_DATA:ARRAY[0..511] OF WORD;
T_O:
typeTCP_OPEN;
T_S:
typeTCP_SEND;
END_VAR
STN1
STN2
0
1
S3
2
3
Ether
net
4
172.16.64.7 172.16.64.4
(slot number)
5
6
7
0
1
S3
2
3
4
Ether
net
5
6
7
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: ......