IDEC FC6A-C16K1CE Communications Manual page 143

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

Advertisement

Function Code 16 (Preset Multiple Registers)
Function code 16 changes word device data of D (data register). One through 64 consecutive words can be changed.
Communication Frame
Request from Modbus RTU Master
Function
Slave No.
Code
xxh
10h
ACK Reply from Modbus RTU Slave
Slave No.
xxh
NAK Reply from Modbus RTU Slave
Slave No.
xxh
Communication Example
Purpose
Condition
Modbus RTU Mode
Request from Modbus RTU Master
ACK Reply from Modbus RTU Slave
NAK Reply from Modbus RTU Slave
No. of
Address
Words
xxxxh
xxxxh
Function Code
Address
10h
xxxxh
Function Code
Error Code
90h
xxh
Write the following data to four data registers D1708 through D1711.
D1708
D1709
(1234h)
(5678h)
D1708 → (1708 – 0) + 400001 = 401709
Modbus address: 401709
Extract lower 5 digits → 1709
1709 – 1 = 1708 = 6ACh
Communication frame address: 06ACh
Slave No. 8
08 10 06AC 0004 08 12 34 56 78 AB CD EF 01 (CRC)
08 10 06AC 0004 (CRC)
08 90 xx (CRC)
FC6A S
M
S
A
ERIES
ICRO
MART
Quantity of
First High
Data
xxh
No. of Words
xxxxh
D1710
D1711
(ABCDh)
(EF01h)
-
-O
T
C
LL
IN
NE
YPE
OMMUNICATION
6: M
ODBUS
First Low
Byte
Byte
xxh
xxh
M
FC9Y-B1730
ANUAL
C
OMMUNICATION
Last Low
Byte
xxh
6-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents