Auxiliary Operations
Code Name
Coils (Read/Write)
Discrete Inputs (Read only)
Registers (Read only)
Holding Registers
* Data types may be implemented at the discretion of the manufacturer. Address ranges may also over
lap. Discrete is a binary or boolean value, 1 or 0.
Function codes, memory types, and addresses can be converted to the PLC addressing equivalent
using the table below. To use the table, look up the row corresponding to the Modbus function code.
Then take the desired WebRelay feature address and add to it the address offset in the PLC address
mode column.
Code Name
Read Coils
Read Discrete Inputs 02
Write Coils
Write multiple
registers
5.3.3 WebRelay Full Address Table
The table below gives commonly used function codes, memory types, data sizes, and equivalent PLC
addresses for accessing the WebRelay. The data size will be the same regardless of the addressing
mode.
Read Relay Coil
Write Relay Coil
Read Discrete Input
Pulse Relay
Page 64
Modbus
Function
01, 05
02
04
16
Modbus
WebRelay Addresses
Function
01
0 (Relay 1)
0 (Input 1)
05
0 (Relay 1)
16
784-791 ( Relay 1)
Function
Address
Code
(Decimal)
01
0
05
0
02
0
16
784
Data Type*
PLC Address
Mode 485
Discrete
1-1000
Discrete
1001-2000
8-64 bits
3001-4000
8-64 bits
4001-5000
Data Type PLC Address
Discrete
Discrete
Discrete
32-bit float Addr + 4001
Data Size
PLC Address
Mode 485
Discrete
1
Discrete
1
Discrete
1001
32-bit Float
4785
WebRelay Users Manual
PLC Address
Mode 584/984
1-10000
10001-20000
30001-40000
40001-50000
PLC Address
Mode 485
Mode 584/984
Addr + 1
Addr + 1
Addr + 1001
Addr + 10001
Addr + 1
Addr + 1
Addr + 40001
PLC Address
Mode 584/984
1
1
10001
40785
Xytronix Research & Design, Inc.
Need help?
Do you have a question about the WebRelay X-WR-1R12-1I5-5 and is the answer not in the manual?