9. Program
●
Internal variables (instance variables)
The internal variables used to execute the function blocks in the program are listed below.
An internal variable is called an "instance". The name of each function block to use is
specified as the data type of the variable.
[Instances for user-defined function blocks]
Variable name
Data type
Description
ETN_ParameterSet_instan
ce
ParameterSet
Ethernet communications parameter setting function
block
This variable sets a destination IP address and
monitoring time for each processing from the connect
processing to the close processing.
ETN_SendMessageSet_in
stance
SendMessageSet
Ethernet communications send data setting function
block
This variable sets the send/receive processing
required/not required setting and send data.
ETN_ReceiveCheck_insta
nce
ReceiveCheck
Ethernet communications receive processing function
block
This variable stores the receive data and detects a
normal end or an error end.
*For information on the user-defined function blocks, refer to
9.5.3 Detailed Description of
Function Blocks
.
[Instances for timer]
Variable name
Data type
Description
Topen_TON_instance TON
Counts the time taken to perform the TCP connect
processing.
Tfs_TON_instance TON
Counts the time taken to perform the TCP send
processing.
Tfr_TON_instance TON
Counts the time taken to perform the TCP receive
processing.
Tclose_TON_instance TON
Counts the time taken to perform the close processing.
Tr_TON_instance TON
Counts the time taken to wait for the next response.
[Instances for communications instructions]
Variable name
Data type
Description
SktTCPConnect_instance
SktTCPConnect
Connect TCP socket function block
SktTCPSend_instance
SktTCPSend
TCP socket send function block
SktTCPRcv_instance
SktTCPRcv
TCP socket receive function block
SktClose_instance
SktClose
Close TCP socket function block
SktGetTCPStatus_instance
SktGetTCPStatus
Read TCP socket status function block
Additional Information
For information on the communications instructions, refer to
Communications Instructions
in
Section 2 Instruction Descriptions
of the
NJ-series Instructions Reference Manual
(Cat. No.
W502).
43
Summary of Contents for V750 series
Page 51: ...9 Program 2 Initialization processing 48...
Page 52: ...9 Program 49...
Page 53: ...9 Program 3 Connect processing 50...
Page 54: ...9 Program 4 Send processing 51...
Page 55: ...9 Program 5 Receive processing 52...
Page 56: ...9 Program 53...
Page 57: ...9 Program 6 Close processing 54...
Page 58: ...9 Program 7 Processing number error process 55...
Page 60: ...9 Program Program 57...
Page 62: ...9 Program Program 59...
Page 64: ...9 Program Program 61...
Page 78: ...2013 0911 P543 E1 01...