Toshiba V Series Operation Manual page 107

Integrated controller, ethernet module
Hide thumbs Also See for V Series:
Table of Contents

Advertisement

<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:
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
6F8C0879
STN1
0
1
2
3
4
S
2
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
(slot number)
S
2
172.16.64.4
E
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents