9. Program
56
9.5.3. Detailed Description of Function Blocks
The user-defined function blocks are shown below.
The code which you need to edit according to the destination device is indicated by the red
frames on the function blocks below.
●
ParameterSet function block
(General-purpose Ethernet communications parameter setting)
Instruction
Meaning
ST expression
ParameterSet
General-purpose Ethernet
Communications
parameter setting
ETN_ParameterSet_instance( Execute,
TopenTime,
TfsTime,
TrTime,
TfrTime,
TcloseTime,
SrcPort,
DstIPAddr,
DstPort);
[Internal variable]
None
[Input/Output]
Name
I/O
Data type
Description
Execute Input
BOOL
Execution flag: The function block is executed when this variable
changes to TRUE and it is stopped when this variable changes to
FALSE.
TopenTime Output UINT
Connect processing monitoring time:
This variable sets the monitoring time of the connect processing in
increments of 10 ms.
TfsTime Output
UINT
Send processing monitoring time:
This variable sets the monitoring time of the send processing in
increments of 10 ms.
TrTime Output
UINT
Receive wait monitoring time:
This variable sets the waiting time for the receive data in increments of
100 ms.
TfrTime Output
UINT
Receive processing monitoring time:
This variable sets the monitoring time of the receive processing in
increments of 10 ms.
TcloseTime Output UINT
Close processing monitoring time:
This variable sets the monitoring time of the close processing in
increments of 10 ms.
SrcPort
Output UINT
Local port number: This variable sets the local port number.
DstIPAddr Output
STRING
[256]
Destination IP address: This variable sets the destination IP address.
DstPort Output
UINT Destination
port
number:
This variable sets the destination port number.
Busy Output
BOOL
Busy
Done Output
BOOL
Normal
end
Error Output
BOOL
Error
end
ErrorID Output
WORD
Error
code
ErrorIDEx Output
DWORD
Expansion error code
Not used
(Not used in this program.)
[External variable]
None
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...