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
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...