User manual - MODULE SIN-8
6.1.
LIST OF REGISTERS
Register
Write
Range
Register description
01h - 08h
No
0 or 1
States of particular binary inputs (addresses of registers
correspond to particular inputs),
read values:
1
– HIGH state (24V) ,
0
– LOW state (0V)
09h
No
0 ÷ 00FFh
State of all inputs read as single register, particular bits are
related to particular inputs;
Bit
0
corresponds with input 1, bit
1
- to input 2 etc.
20h
1
Yes
1 ÷ FFh
Device address. New devices has default address = FEh
21h
No
008Bh
Device identification code (ID)
22h
2
Yes
0 ÷ 7
Baud rate [bit/sec]:
0
- 1200;
1
- 2400;
2
- 4800;
3
- 9600;
4
- 19200;
5
- 38400;
6
- 57600;
7
- 115200
23h
Yes
0 ÷ 255
Denouncing Filter state:
0
- disabled;
1
- filter setting
F
Input frequency equals: 1 / (
F
x 100 us)
FFF3h
No
0000 ÷ FFFFh
Firmware version (hexadecimal):
e.g.: value
0123h
means version
1.23
1
- after writing to register no 20h the device responds with an “old” address in the message.
2
- after writing to register no 22h the device responds with the new baud rate.
If register 20h is being written it is possible to use BROADCAST frame (with
address 00). This operation causes changing of addresses of all modules
connected to the RS-485 network. Modules receive and interprets BROADCAST
frames, but do not transmit answers.
6.2.
TRANSMISSION ERRORS DESCRIPTION
If an error occurs while write or read of single register, then the device sends an error
code according to Modbus RTU specifications.
Error codes:
01h
- illegal function (only functions 03h and 06h are available),
02h
- illegal register address
03h
- illegal data value
6.3.
EXAMPLES OF QUERY/ANSWER FRAMES
Examples apply for device with address 1. All values are represent hexadecimal.
Field description:
ADDR
Device address on modbus network
FUNC
Function code
REG H,L
Starting address (address of first register to read/write, Hi and Lo byte)
COUNT H,L
No. of registers to read/write (Hi and Lo byte)
BYTE C
Data byte count in answer frame
DATA H,L
Data byte (Hi and Lo byte)
CRC L,H
CRC
error check (Hi and Lo byte)
9
i
Summary of Contents for SIN-8
Page 11: ...User manual MODULE SIN 8 11 ...