Display
F1X5_RS
Data: 13/01/16
file: F1X5_RS_ing.doc
Pag 11/12
Further Information on the making of the two CRC bytes are available on the site www.modicon.com.
The F1X5 MODBUS commands are:
0x03: multiple reading of registers
0x10: writing of several registers.
0x03 READING OF REGISTERS
To read the registers of the instrument, the master must send a query composed as follows (every element is
a byte):
ADDRESS | 0x03 | START_REG_HI | START_REG_LO | N_REG_HI | N_REG_LO | CRC_HI | CRC_LO
- START_REG_HI | START_REG_LO
is the address at the starting 16 bit for the reading
-
N_REG_HI | N_REG_LO
is the number (16 bit) of the registers to be read
The instrument replies with the following message:
ADDRESS | 0x03 | NBYTE | DATA_1_HI | DATA_1_LO | DATA_2_HI | DATA_2_LO | …
| CRC_HI | CRC_LO
-
DATA_1_HI | DATA_1_LO | DATA_2_HI | DATA_2_LO | …
is the sequence of the data
read..
NBYTE
is the number of the given bytes that follow
0x10 WRITING OF REGISTERS
To write the registers of the instrument, the master must send a query composed as follows (every element is
a byte):
ADDRESS | 0x10 | START_REG_HI | START_REG_LO | N_REG_HI | N_REG_LO | NBYTE | DATA_1_HI |
DATA_1_LO | DATA_2_HI | DATA_2_LO |…… | CRC_HI | CRC_LO
NBYTE is the number of the given bytes that follow.
The instrument replies with the following message:
ADDRESS | 0x10 | START_REG_HI | START_REG_LO | N_REG_HI | N_REG_LO | CRC_HI | CRC_LO
ATTENTION!!: to make operative the new value introduced you must send the “reload parameter”
command writing in the Operation Register (*) (address 0x15) the value 0x01.
Exceptions management:
In case the slave recognizes an error in the query received and addressed to it, it replies with an exceptional
message composed as following:
ADDRESS | FUNCTIO 0x80 | EXCEPT. CODE | CRC_HI | CRC_LO
The Exception Code can be one of the following:
01
Æ
Æ
Æ
Æ
Illegal Function
: The function code received in the query is not valid.
02
Æ
Æ
Æ
Æ
Illegal Data Address
: The address received in the query is not valid.
03
Æ
Æ
Æ
Æ
Illegal Data Value
: A value contained in the query is not valid.