9. Program
60
●
ReceiveCheck function block
(General-purpose Ethernet communications receive processing)
Instruction
Meaning
ST expression
ReceiveCheck
General-purpose Ethernet
Communications
receive processing
ETN_ReceiveCheck_instance( Execute,
Recv_Data,
Recv_Buff,
Error,
ErrorID,
ErrorIDEx);
[Internal variables]
Name
Data type
Description
Receive_Check
STRING[5]
FCS receive value:
FCS receive result of the receive data
Calc_Check
STRING[5]
FCS calculation value:
FCS calculation result of the receive data
[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.
tLength Input
UINT
Receive
data length: The byte length of the receive data
Recv_Data In-out
STRING[256]
Receive data storage area: An area that stores the
receive data after detection
Recv_Buff In-out
STRING[256]
Receive buffer: An area that temporarily stores the
receive data that is used for detection.
ErrorID In-out WORD
Error code: This variable stores 16#1000 for a destination
device error and 16#2000 for an FCS error.
ErrorIDEx In-out
DWORD
Expansion error code:
This variable stores the FCS determination result or
destination device error code.
Busy Output BOOL Busy
Done Output BOOL
Normal
end
Not used
(Not used in this program.)
Error
Output
BOOL
Error end: TRUE when an error occurs.
[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...