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
Содержание V750 series
Страница 51: ...9 Program 2 Initialization processing 48...
Страница 52: ...9 Program 49...
Страница 53: ...9 Program 3 Connect processing 50...
Страница 54: ...9 Program 4 Send processing 51...
Страница 55: ...9 Program 5 Receive processing 52...
Страница 56: ...9 Program 53...
Страница 57: ...9 Program 6 Close processing 54...
Страница 58: ...9 Program 7 Processing number error process 55...
Страница 60: ...9 Program Program 57...
Страница 62: ...9 Program Program 59...
Страница 64: ...9 Program Program 61...
Страница 78: ...2013 0911 P543 E1 01...