![Toshiba EB621 Скачать руководство пользователя страница 107](http://html.mh-extra.com/html/toshiba/eb621/eb621_operation-manual_424802107.webp)
6F8C0879
95
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
S
2
1
2
3
Ethe
rnet
4
0
S
2
1
2
3
4
Ethe
rnet
172.16.64.7 172.16.64.4
(slot number)