Slave Addressing Pgina 1 de 5
Slave Addressing
Monochrome / Color PLCs
The memory structure of monochrome screen PLCs is different from that of color screen PLCs. This is
why each series has its own slave addressing scheme.
Note The slave addresses given for the monochrome series are decimal
values.
The slave addresses given for the color series are hexadecimal
values.
Slave Addresses
Standard Vision Division
Coils MODBUS Command Number
Pointer Value Operand type Read Write
From:
0000 MB 0-2999 #01 Read Coils #15 Force Coils
3000 SB #15 Force Coils
4000 I (read-only) Read-only
5000 O #15 Force Coils
6000 T (read-only) Read-only
7000 C (read-only) Read-only
8000 MB 3000-4095
Note Note that in order to access MBs 3000-4095, you address as follows:
to access MB 3012, request slave address 8012.
Registers MODBUS Command Number
Pointer Value Operand Register Read Write
From: type size
0000 MI 16 bit # 03 Read # 16 Preset Holding
Holding Registers Registers
4000 SI 16 bit
mk:@MSITStore:C:\Program%20Files\Unitronics\Unitronics%20VisiLogic_C\Help\... 22/07/2010
Slave Addressing Pgina 2 de 5
5100 ML 32 bit
6100 SL 32 bit
6300 MDW 32 bit
6700 SDW 32 bit
6900 Timer 32 bit
preset
7300 Timer 32 bit
current
7700 MF 32 bit
7800 Counter 16 bit
Preset
7900 Counter 16 bit
Current
Enhanced Vision Series
Coils MODBUS Command Number
Pointer Operand type Read Write
Value
From
(hex):
0000h MB 0 #01 Read Coils #15 Force Coils
3000h XB #15 Force Coils
4000h O #15 Force Coils
5000h SB Read-only
6000h I (read-only) #15 Force Coils
7000h T (read-only) Read-only
8000h C (read-only) Read-only
Registers MODBUS Command Number
Pointer Value Operand type Register size Read Write
From (hex):
0000h MI 16 bit # 03 Read # 16 Preset Holding
Holding Registers
3000h XI Registers
9000h SI 16 bit
5000h XL
6000h XDW
7000h ML 32 bit
mk:@MSITStore:C:\Program%20Files\Unitronics\Unitronics%20VisiLogic_C\Help\... 22/07/2010
Slave Addressing Pgina 3 de 5
A000h SL 32 bit
8000h MDW 32 bit
B000h SDW 32 bit
C000h Timer preset 32 bit
D000h Timer current 32 bit
4000h MF 32 bit
E000h Counter Preset 16 bit
F000h Counter 16 bit
Current
Examples
The examples below show that:
MODBUS addressing systems start at 1.
Vision addressing starts at 0.
Bit Operands
Read a 10-bit vector of inputs in a slave Vision controller, starting at Input 20, via Read Coils
(MODBUS COMMAND #1)
Vision PLC as the MODBUS master to Monochrome PLC
In VisiLogic's Read Coils FB, set the Slave: Start of Vector parameter to 4020 (DEC), and
the Read: Vector Length parameter to 10. Within the slave Vision controller, VisiLogic will
read I 20 - I 29.
Vision PLC as the MODBUS master to Color PLC
In VisiLogic's Read Coils FB, set the Slave: Start of Vector parameter to 6014h (HEX), and
the Read: Vector Length parameter to 10. Within the slave Vision controller, VisiLogic will
read I 20 - I 29.
SCADA as the MODBUS master to Monochrome PLC
In the SCADA application, set the Slave: Start of Vector parameter to 34021(30001 +
4000 + 20), and the Read: Vector Length to 10, enabling the Master device to read I 20 -
I 29 within the slave Vision controller.
SCADA as the MODBUS master to Color PLC
Convert the HEX address to DEC
In the SCADA application, set the Slave: Start of Vector parameter to 54597(24576
(6000h) + 20), and the Read: Vector Length to 10, enabling the Master device to read I
20 - I 29 within the slave Vision controller.
Write a 3-bit vector of outputs in a slave Vision controller, starting at Output 8, via Force Coils
(MODBUS COMMAND #15)
Vision PLC as the MODBUS master to Monochrome PLC
In VisiLogic's Force Coils FB, set the Slave: Start of Vector parameter to 5008, and the
Force: Vector Length parameter to 3. Within the slave Vision controller, the master will
force the status of O 8 - O 10.
mk:@MSITStore:C:\Program%20Files\Unitronics\Unitronics%20VisiLogic_C\Help\... 22/07/2010
Slave Addressing Pgina 4 de 5
Vision PLC as the MODBUS master to Color PLC
In VisiLogic's Force Coils FB, set the Slave: Start of Vector parameter to 4008h (HEX),
and the Force: Vector Length parameter to 3. Within the slave Vision controller, the
master will force the status of O 8 - O 10.
SCADA as the MODBUS master to Monochrome PLC
In the SCADA application, set the Slave: Start of Vector parameter to 35009 (30001 +
5000 + 8) and the Force: Vector Length parameter to 3, enabling the Master device to
write to O 8 - O 10 within the slave Vision controller.
SCADA as the MODBUS master to Color PLC
Convert the HEX address to DEC.
In the SCADA application, set the Slave: Start of Vector parameter to 46393 (30001 +
16384(4000h) + 8) and the Force: Vector Length parameter to 3, enabling the Master
device to write to O 8 - O 10 within the slave Vision controller.
Registers
Read a 9-register long vector of 16-bit integers in a slave Vision controller, starting at MI
32, via Read Holding Registers (MODBUS COMMAND #03)
Vision PLC as the MODBUS master
In VisiLogic's Read Holding Registers FB, set the Slave: Start of Vector parameter to 32,
and the Read: Vector Length parameter to 9. Within the slave Vision controller, VisiLogic
will read MI 32 - MI 41.
SCADA as the MODBUS master
In the SCADA application, set the Slave: Start of Vector parameter to 40033 (40001 +
0000 + 3), and the Read: Vector Length parameter to 9, enabling the Master device to
read MI 32 - MI 41 within the slave Vision controller.
Note If, within the Slave: Start of Vector parameter, the selected register type is a 32-bit
double register (slave addresses 5100 and greater) the preset vector length must be
doubled as well.
If, for example in the VisiLogic Preset Holding Registers FB:
Slave: Start of Vector parameter is set to 6300, and
You wish to preset 4 registers, for a total of 16 bytes
You must set the Preset Vector length to 8.
Note that this means that, in these cases, the Preset: Vector Length parameter will
always be an even number.
Read a 9-register long vector of 32 -bit integers in a slave Vision controller, starting at SL
32, via Preset Holding Registers (MODBUS COMMAND #16)
Vision PLC as the MODBUS master
In VisiLogic's Preset Holding Registers FB, set the Slave: Preset Vector parameter to 6132,
and the Read: Vector Length parameter to 18 ( 2x9, in order to fit the 32-bit SL
registers ). Within the slave Vision controller, VisiLogic will read SL 32 - SL 41.
SCADA as the MODBUS master
In the SCADA application, set the Slave: Start of Vector parameter to 406133, and the
Read: Vector Length parameter to 18, enabling the Master device to read SL 32 - SL 41
within the slave Vision controller.
Write a 6-register long vector of 16-bit integers in a slave Vision controller, starting at MI
32, via Preset Holding Registers (MODBUS COMMAND #16)
Vision PLC as the MODBUS master
In VisiLogic's Preset Holding Registers FB, set the Slave: Start of Vector parameter to 32,
and the Preset: Vector Length parameter to 6. Within the slave Vision controller, VisiLogic
will write to MI 32 - MI 37.
SCADA as the MODBUS master
In the SCADA application, set the Slave: Start of Vector parameter to 40033, and the
mk:@MSITStore:C:\Program%20Files\Unitronics\Unitronics%20VisiLogic_C\Help\... 22/07/2010
Slave Addressing Pgina 5 de 5
Read: Vector Length parameter to 6, enabling the Master device to write to MI 32 - MI 37
within the slave Vision controller.
Related Topics
Vision Divisions
mk:@MSITStore:C:\Program%20Files\Unitronics\Unitronics%20VisiLogic_C\Help\... 22/07/2010