EasyManua.ls Logo

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

gefran AGy-EV Series
212 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AGy-EV Instruction manual Chapter 8 - Serial Protocol• 201
Bit number 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
agy0801
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
hex
)
Starting Register 35 (0023
hex
)
Number of registers to be written 1 (0001
hex
)
Value 268 (010C
hex
)
ADDR FUNC DATA DATA DATA DATA DATA DATA DATA CRC CRC
start start word# word# Byte word word
Addr HI Addr LO HI LO Count 35 HI 35 LO HI LO
11 10 00 22 00 01 02 01 0C 6C 87
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 DATA DATA DATA CRC CRC
start start word# word#
Addr HI Addr LO HI LO HI LO
11 10 00 22 00 01 A3 53
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”.

Table of Contents

Related product manuals