![Novus DigiRail Connect Instruction Manual Download Page 19](http://html1.mh-extra.com/html/novus/digirail-connect/digirail-connect_instruction-manual_1712831019.webp)
NOVUS AUTOMATION
19/38
Initial Address (Low part)
16
HR_COUNTER1_LO (High part – 22)
D4
Number to be read (High part)
00
HR_COUNTER1_LO (Low part – 22)
00
Number to be read (Low part)
02
HR_COUNTER1_HI (High part – 23)
00
HR_COUNTER1_HI (Low part – 23)
30
Table 8 –
Example of digital input counter reading (2)
6.1.5
WRITE SINGLE COIL – 0x05
This command can be used to write the binary value of a register that is accessible as a bit. As provided in the Modbus protocol, sending the value
0xFF00 puts the coil register at high level; writing 0x0000, in turn, puts it at low level.
You can use this command to access registers 70 (HR_INPUT1_STATE) through 85 (HR_OUTPUT8_STATE) and registers 500
(HR_DO1_VALUE) through 523 (HR_DO8_FORCE_STATE).
Example of setting output 5 to high level:
Question
Answer
Field
(hex)
Field
(hex)
Function
03
Function
05
Address HR_DO4_VALUE (High part)
01
Address HR_DO4_VALUE (High part)
01
Address HR_DO4_VALUE (Low part)
F8
Address HR_DO4_VALUE (Low part)
F8
Value that was sent (High part)
FF
Value that was sent (High part)
FF
Value that was sent (Low part)
00
Value that was sent (Low part)
00
Table 9 –
Example of setting output 5 to high level
6.1.6
WRITE SINGLE HOLDING REGISTER – 0x06
This command can be used to write to a register that is accessible as 16 bits.
Example of how to handle analog output 1:
Question
Answer
Field
(hex)
Field
(hex)
Function
06
Function
06
Address HR_AO1_VALUE (High part)
02
Address HR_AO1_VALUE (High part)
02
Address HR_AO1_VALUE (Low part)
0C
Address HR_AO1_VALUE (Low part)
0C
Value that was sent (High part)
00
Value that was sent (High part)
00
Value that was sent (Low part)
FA
Value that was sent (Low part)
FA
Table 10 –
Example of how to handle analog output 1
6.1.7
WRITE MULTIPLE HOLDING REGISTERS – 0x10
This command can be used to write to multiple registers that are accessible as 16 bits.
Example of how to handle digital outputs 1 and 2:
Question
Answer
Field
(hex)
Field
(hex)
Function
10
Function
10
Initial Address (High part)
01
Initial Address (High part)
01
Initial Address (Low part)
F4
Initial Address (Low part)
F4
Number of registers (High part)
00
Number of registers written (High part)
00
Number of registers (Low part)
02
Number of registers written (Low part)
02
Number of bytes
04
Value sent HR_DO1_VALUE (High part)
00
Value sent HR_DO1_VALUE (Low part)
01
Value sent HR_DO2_VALUE (High part)
00
Value sent HR_DO2_VALUE (Low part)
01
Table 11 –
Example of how to handle digital outputs 1 and 2