Toshiba nv Series Instruction Manual page 88

Unified controller
Hide thumbs Also See for nv Series:
Table of Contents

Advertisement

Appendix E Sample programs
Some examples of simple message transmission programs are provided below
for your reference.
These programs are implemented by using USEND_N and URCV_N of the
communication FB.
For detailed explanation of the communication FB, refer to "Unified Controller nv
series/Integrated Controller V series Command Manual" (6E8C4826).
An example of UDP transmission
In the reference program, transmission is done from the PU811 of STN1 using the
Ethernet UDP port 20014 of STN1 to PU811 of STN2 for the Ethernet UDP port
20013 of STN2. In STN2, the data is received from the UDP port 20013.
• Variation definition (UDP transmission)
74
6F8C1358
STN1
0
1
2
3
4
5
172.16.64.7
Figure E-1 An example of UDP transmission
VAR
OPEN_COMPLETE:
OPEN_ERROR:
OPEN_REQ:
TX_COMPLETE:
TX_ERROR:
TX_REQ:
OPEN_STATUS1:
USEND_N_1:
USEND_N_2:
SEND_STATUS:
US_DUMMY1:
US_DUMMY2:
US_SIZE:
US_DATA: ARRAY[0..511] OF WORD;
U_O:
U_S:
U_C:
CLOSE_REQ:BOOL;
END_VAR
STN2
6
7
0
1
2
3
BOOL;
BOOL;
BOOL;
BOOL;
BOOL;
BOOL;
INT;
USEND_N;
USEND_N;
INT;
WORD;
UINT;
UNIT;
typeUDP_OPEN;
typeUDP_SEND_BC;
typeUDP_CLOSE;
(スロット番号)
4
5
6
7
(Slot number)
172.16.64.4

Advertisement

Table of Contents
loading

Table of Contents