IDEC FC6A-C16K1CE Communications Manual page 142

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

6: M
C
ODBUS
OMMUNICATION
Function Code 15 (Force Multiple Coils)
Function code 15 changes bit device statuses of Q (output), R (shift register), or M (internal relay). One through 128 consecutive
bits can be changed.
Communication Frame
Request from Modbus RTU Master
Function
Slave No.
Code
xxh
0Fh
ACK Reply from Modbus RTU Slave
Slave No.
xxh
NAK Reply from Modbus RTU Slave
Slave No.
xxh
Communication Example
Write the following bit statuses to internal relays M605 through M624.
Purpose
M605 (LSB) through M614 (MSB) binary data: 6B
M615 (LSB) through M624 (MSB) binary data: 02
M605 → (60 – 0) × 8 + 5 + 1001 = 1486
Modbus address: 1486
1486 – 1 = 1485 = 5CDh
Communication frame address: 05CDh
Condition
Slave No. 8
Modbus RTU Mode
Request from Modbus RTU Master
ACK Reply from Modbus RTU Slave
NAK Reply from Modbus RTU Slave
6-16
Address
No. of Bits
xxxxh
xxxxh
Function Code
Address
0Fh
xxxxh
Function Code
Error Code
8Fh
xxh
M610
M611
M612
(ON)
(OFF)
(ON)
M620
M621
M622
(OFF)
(OFF)
(OFF)
08 0F 05CD 0010 02 6B 02 (CRC)
08 0F 05CD 0010 (CRC)
08 8F xx (CRC)
FC6A S
M
S
A
ERIES
ICRO
MART
Quantity of
Data
xxh
No. of Bits
xxxxh
M613
M614
(ON)
(OFF)
M623
M624
(OFF)
(OFF)
-
-O
T
C
LL
IN
NE
YPE
OMMUNICATION
First
Second
8 Bits
8 Bits
xxh
xxh
M605
M606
(ON)
(ON)
M615
M616
(OFF)
(ON)
M
FC9Y-B1730
ANUAL
Last
8 Bits
xxh
M607
(OFF)
M617
(OFF)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents