<Example of TCP transmission>
0
1
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:
OPEN_ERROR:
OPEN_REQ:
TX_COMPLETE:
TX_ERROR:
TX_REQ:
OPEN_STATUS1:
TS_DUMMY:
USEND_T_1:
USEND_T_2:
SEND_STATUS:
CLOSE_REQ:
TS_DATA:ARRAY[0..511] OF WORD;
T_O:
T_S:
END_VAR
6F8C0878
STN1
2
3
4
5
6
7
172.16.64.7
BOOL;
BOOL;
BOOL;
BOOL;
BOOL;
BOOL;
INT;
WORD;
USEND_T;
USEND_T;
INT;
BOOL;
typeTCP_OPEN;
typeTCP_SEND;
STN2
0
1
2
3
4
5
6
172.16.64.4
7
(slot number)
97
E