9. Program
58
●
SendMessageSet function block
(General-purpose Ethernet communications send data setting)
Instruction
Meaning
ST expression
SendMessageSet
General-purpose Ethernet
communications
send data setting
ETN_SendMessageSet_instance( Execute,
Send_Data,
ComType);
[Internal variables]
Name
Data type
Description
Send_Header
STRING[5]
Send header: Header of the send message
Send_Addr STRING[5] Destination
device
address: Address of the destination device
Send_Command STRING[256]
Destination device command:
Command sent to the destination device
Send_Check
STRING[5]
Send check code: Check code of the send message
Send_Terminate STRING[5]
Send
terminator: Terminator of the send message
[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.
Send_Data Output
STRING[256]
Send data: This variable sets a command that is sent to the
destination device.
ComType Output BYTE
Send/Receive type: This variable sets whether send/receive
processing are required.
1:Send only, 2: Receive only, 3: Send and receive
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 project.)
[Internal 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...