Function 15 - Write Multiple Coils - WEG CFW-09 User Manual

Frequency inverter
Hide thumbs Also See for CFW-09:
Table of Contents

Advertisement

CHAPTER 8 - CFW-09 OPTIONS AND ACCESSORIES
8.14.3.5
Function 15 - Write
Multiple Coils
324
This function allows writing values for a bit group that must be in numerical
sequence. This function can be also used to write a single bit (the values
are always hexadecimal, and each field represents one byte).
Query (Master)
Slave address
Function
Initial bit address (byte high)
Initial bit address (byte low)
Number of bits (byte high)
Number of bits (byte low)
Byte Count Field (number of data bytes)
Byte 1
Byte 2
Byte 3
etc to
CRC-
CRC+
The value of each bit that is being sent is placed at a position of the data
bytes sent by the master. The first byte, in the bits 0 to 7, receives the 8
first bits by starting from the initial address indicated by the master. The
other bytes (if the number of inscribed bits is higher than 8) remain in
sequence. If the number of inscribed bits is not a multiple of 8, the remaining
bits of the last byte should be filled in with 0 (zero).
Example: command writing for general enabling (bit 100 = 1), general
enabling (bit 101 = 1) and CWW-direction of rotation (bit 102 = 0), for
a CFW-09 at address 1:
Query (Master)
Field
Slave address
Function
Initial bit (byte high)
Initial bit (byte low)
Number of bits (byte high)
Number of bits (byte low)
Byte Count
Bits Value
CRC-
CRC+
As only three bits are written, the master needed only one byte to transmit
the data. The transmitted values are in the three less significant bits of the
byte that contains the value for the bits. The other bits of this byte remained
with the value 0 (zero).
Response (Slave)
Initial bit address (byte high)
Initial bit address (byte low)
Number of bits (byte high)
Number of bits (byte low)
Response (Slave)
Value
Field
01h
Slave address
0Fh
Function
00h
Initial bit (byte high)
64h
Initial bit (byte low)
00h
Number of bits (byte high)
03h
Number of bits (byte low)
01h
CRC-
03h
CRC+
BEh
-
9Eh
-
Slave address
Function
CRC-
CRC+
-
-
-
-
-
Value
01h
0Fh
00h
64h
00h
03h
54h
15h
-
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents