Mitsubishi Electric MELSEC iQ-F FX5 User Manual page 73

Modbus communication
Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

Write multiple coils
Writes values (ON/OFF) to multiple coils.
Supports the MODBUS serial communication and MODBUS/TCP communication.
■Request message format (Master  Slave)
Function code
Function
Head coil number
(0000H to FFFFH)
code
(0FH)
(H)
The values (ON/OFF) stored into the device data 1 to n are written to the coils in order from low-order to high-order bits of the
device data.
*1 Since the number of bytes is automatically calculated, no settings are required from by ADPRW instruction and the predefined protocol
support function tool.
■Response message format (Slave  Master)
(When completed normally)
(When completed with an error)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 35 Related Devices
MODBUS/TCP communication : Page 58 Related Devices
Write points
(0001H to 07B0H)
(L)
(H)
(Device data 1 to n)
b7
b6
Device data 1
Device data n
Function code
Head coil number
Function
(The same head coil number
code
value as in the request
(0FH)
message is stored.)
(H)
Function code
Function
code
(8FH)
Data
*1
Number of
Device data
*1
bytes n
1
(0001H to
00F6H)
(L)
b5
b4
b3
b2
b1
Data storage order
Data
Write points
(The same write points
value as in the request
message is stored.)
(L)
(H)
(L)
Data
Exception
code
*1
Appendix 3 The frame specifications
Device data
n
(Number of bytes n)
b0
0: OFF
1: ON
APPX
A
71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents