Modbus To IO-16
Setup the rubix-compute
as a Modbus-Master to the IO-16
and read UI1
as a 10K sensor
reference
RC
is a rubix-compute
wires
is a rubix-wires
prerequisites
- You need a rubix-compute and an IO-16
- wire the
IO-16
into thers485-1
theRC
and power theRC
, andIO16
and set theIO-16
address to1
andbaud-rate
38400
- make sure you can ping the
RC
default IP on ETH-1 is192.168.15.10
see networking for more info
Setup
- Download once downloaded just double-click on the icon to run
- Getting setup
- Add a token to download
- Add a supervisor
- Add a host (rubix-compute)
- Install module/plugin
modbus
Add a network
We will add a modbus network with these settings
Network settings will be
- serial port on
485-1
(left port on the rubix-compute) - set modbus
baud-rate
to38400
Device settings (take off the cover to access the dip switches)
- on the
left
dip-switch bank set the dip switches00000001
(address1
) - on the
right
dip-switch bank set the dip switches00000001
(device mode:rs485 mode
modbus settingsbaud-rate
:38400)
tip
see dip switches for more info
tip
see registers list for the IO-16
Add a Device and point to read a 10K sensor
- Open drivers and add a new network of type
Modbus-RTU
and set the port to485-1
for more info on: ports - Add a device and set the address to
1
- Add a point of type
read register
and address1
as typeint16
and the write mode toRead Always
andMultiplication Factor
to0.01
Add a Device and point to write a 0-10dc
- Open drivers and add a new network of type
Modbus-RTU
and set the port to485-1
for more info on: ports - Add a device and set the address to
1
- Add a point of type
write holidng register
and address1
as typeint16
and the write mode toWrite Always
andMultiplication Factor
to0.01
tip
see point write/read modes for the different point polling
methods