Preset Multiple Registers (16); Error Management - gefran AGy-EV Series Instruction Manual

Table of Contents

Advertisement

8.1.4.5 Preset Multiple Registers (16)

This function allows to set the value of a consecutive block made of 16-bit registers. The broadcast mode is allowed.
Request
Together with the Drive address and the function code (16), the message contains the starting address of the
registers to be written (starting Address), the number of registers to be written, the number of bytes containing the
data and the data characters. The register numbering system starts from zero (word1 = 0) for the MODBUS and
from one (word1 = 1) for the JBUS.
Modbus example:
Drive address 17 (11
Starting Register 35 (0023
Number of registers to be written 1 (0001
Value 268 (010C
ADDR
FUNC
DATA
start
start
Addr HI Addr LO
11
10
00
Response
Together with the Drive address and the function code (16), the message contains the starting address (starting
Address) and the number of written registers.
Example: Response to the above mentioned request.
ADDR
FUNC
DATA
start
Addr HI Addr LO
11
10
00

8.1.5 Error management

In MODBUS there are two kinds of errors which are managed in different ways: transmission errors and operating errors.
The transmission errors change the format, the parity (if used) or the CRC16 of the message. When the Drive detects
such errors, it considers the message invalid and gives no response. If the message format is the right one but its function
can not be performed, the error is an operating one. The Drive answers to this error with a particular message. This
message contains the Drive address, the code of the required function, an error code and the CRC. In order to underline
that the response is aimed at stating the presence of an error, the function code is returned with the most significative bit
set with "1".
AGy-EV Instruction manual
Bit number
)
hex
)
hex
)
hex
DATA
DATA
DATA
DATA
word# word# Byte
word
HI
LO
Count
22
00
01
02
DATA
DATA
DATA
CRC
start
word# word#
HI
LO
HI
22
00
01
A3
Bit meaning
0
Digital Output 1
1
Digital Output 2
2
Digital Output 3
3
Digital Output 4
4
Run
5
Steady state
6
Drive limit state
7
Not used
)
hex
DATA
DATA
CRC
CRC
word
35 HI
35 LO
HI
LO
01
0C
6C
87
CRC
LO
53
agy0801
Chapter 8 - Serial Protocol• 201

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Agyev-3010-kbx-5

Table of Contents