Appendix G MSG-SND/MSG-RCV Functions (Ethernet)
G.1 Message Transmit Function (MSG-SND)
A-51
Appendix G MSG-SND/MSG-RCV Functions (Ethernet)
G.1 Message Transmit Function (MSG-SND)
This section explains the message transmit function (MSG-SND) used in a ladder program when transmitting mes-
sages.
G.1.1 Specification Overview of the Message Transmit Function
* 1. The meanings of I/O options are as follows:
B-VAL: Specify I/O by bit type data.
I-REG: Specify I/O by integer type data. When specifying, set an integer type register number.
As for the input only, it can be a constant (literal).
Address input: The address of the specified register (any integer register) is passed to the function.
* 2. When transmitting in MEMOBUS, Extended MEMOBUS, MELSEC, OMRON, or MODBUS/TCP protocol, set the
communication protocol (Pro-Typ) to MEMOBUS(=1). The communication device automatically converts the proto-
col.
* 3. Non-procedure 1: In non-procedural communication, data is transmitted on a per-word basis.
Non-procedure 2: In non-procedural communication, data is transmitted on a per-byte basis.
Function Name MSG-SND
Function
Transmits messages to a remote station on the circuit specified by the communication device type.
Supports multiple protocols.
Keep the execution command (Execute) until Complete or Error turns ON.
Function Defi-
nition
I/O Definition
No. Name
I/O Option
*1
Contents
Input Item
1 Execute B-VAL Executes a transmission
2 Abort B-VAL Forcibly ends a transmission
3 Dev-Typ I-REG
Communication device type
Ethernet (218IF) = 6, Ethernet (218IFA, 218IFB, 218IFC) = 16
4 Pro-Typ I-REG
Communication protocol
MEMOBUS
*2
= 1, non-procedure 1
*3
= 2,
non-procedure 2
*3
= 3
5 Cir-No I-REG
Circuit number
Ethernet (218IF) = 1 to 8, Ethernet (218IFA) = 1 to 8
6 Ch-No I-REG
Communication buffer channel number
Ethernet (218IF) = 1 to 10, Ethernet (218IFA) = 1 to 4
7 Param Address input
Parameter list start address
(MA, DA)
Output Item
1 Busy B-VAL In process
2 Complete B-VAL Process completed
3 Error B-VAL Error has occurred
Execute
Abort
Dev-Typ
Pro-Typ
Cir-No
Ch-No
Param
MSGSND
Busy
Complete
Error