Function 06 - Write Single Register - WEG CFW-09 User Manual

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

Advertisement

8.14.3.4
Function 06 - Write
Single Register
Example: to drive a ramp enable command (bit 100 = 1) of a CFW-09
at the address 1:
Query (Master)
Field
Slave address
Function
Bit number (high)
Bit number (low)
Bit value (high)
Bit value (low)
CRC-
CRC+
For this function, the slave response is an identical copy of the query sent by
the master.
This function is used to write a value to a single register. This function has
following structure (values are always hexadecimal values, and each field
represents one byte):
Query (Master)
Slave address
Function
Register address (byte high)
Register address (byte low)
Value for the register (byte high)
Value for the register (byte low)
CRC-
CRC+
Example: write of the speed reference (basic variable 4) equal to 900 rpm, of a
CFW-09 at address 1. Please, remember that the value for the basic variable 4
depends on the used motor type and that the value 8191 is equal to the rated
motor speed. In this case, we suppose that the used motor has a rated speed
of 1800 rpm, thus the value to be written into the basic variable 4 for a speed of
900 rpm is the halve of 8191, i.e., 4096 (1000h).
Query (Master)
Field
Slave address
Function
Register (high)
Register (low)
Value (high)
Value (low)
CRC-
CRC+
For this function, the slave response will be again a copy identical to 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).
CHAPTER 8 - CFW-09 OPTIONS AND ACCESSORIES
Response (Slave)
Value
Field
01h
Slave address
05h
Function
00h
Bit number (high)
64h
Bit number (low)
FFh
Bit value (high)
00h
Bit value (low)
CDh
CRC-
E5h
CRC+
Response (Slave)
Register address (byte high)
Register address (byte low)
Value for the register (byte high)
Value for the register (byte low)
Response (Slave)
Value
Field
01h
Slave address
06h
Function
13h
Register (high)
8Ch
Register (low)
10h
Value (high)
00h
Value (low)
41h
CRC-
65h
CRC+
Value
01h
05h
00h
64h
FFh
00h
CDh
E5h
Slave address
Function
CRC-
CRC+
Value
01h
06h
13h
8Ch
10h
00h
41h
65h
323

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents