User`s guide
198
CHAPTER 8 - CFW-08 OPTIONS AND ACCESSORIES
8.25.3.5
Function 15 -
WriteMultiple
Coils
This function allows writing values for a bit group that must be
in numerical sequence.Thisfunction can be alsoused to write
a single bit (the values are always hexadecimal, and each
field represents one byte).
8.25.3.4
Function 06 -
Write Single
Register
This function is used to write a value to a single register. This
function has the following structure (values are always
hexadecimal values, and each field represents one byte):
Query (Master)
Slaveaddress
Function
Register address (byte high)
Register address (byte low)
Value for the register (byte high)
Value for the register (byte low)
CRC-
CRC+
Response (Slave)
Slaveaddress
Function
Register address (byte high)
Register address (byte low)
Value for the register (byte high)
Value for the register (byte low)
CRC-
CRC+
Example:
writeofthespeedreference(basicvariable 4)equal
to 30.00
H
z
of a CFW-08 at address 1.
Query (Master)
Field
Value
Slaveaddress
01h
Function
06h
Register (high)
13h
Register (low)
8Ch
Value (high)
0Bh
Value (low)
B8h
CRC-
4Bh
CRC+
E7h
Response (Slave)
Field
Value
Slaveaddress
01h
Function
06h
Register (high)
13h
Register (low)
8Ch
Value (high)
0Bh
Value (low)
B8h
CRC-
4Bh
CRC+
E7h
For this function, the slave response will be again an identical
copyto the request made by the master.As alreadyinformed
above, the basic variables are addressed from 5000, thus
the basic variable 4 will be addressed at 5004 (138Ch). The
value for this variableis 30.00 Hz, that is represented by3000
(0BB8h).
For this function, the slave response is an identical copy of
the querysent bythe master.
Table 8.23 -
Function 06 structure
Table 8.24 -
Message example using function 06










