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-16into thers485-1theRCand power theRC, andIO16and set theIO-16address to1andbaud-rate38400 - make sure you can ping the
RCdefault IP on ETH-1 is192.168.15.10see 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-rateto38400
Device settings (take off the cover to access the dip switches)
- on the
leftdip-switch bank set the dip switches00000001(address1) - on the
rightdip-switch bank set the dip switches00000001(device mode:rs485 modemodbus 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-RTUand set the port to485-1for more info on: ports - Add a device and set the address to
1 - Add a point of type
read registerand address1as typeint16and the write mode toRead AlwaysandMultiplication Factorto0.01
Add a Device and point to write a 0-10dc
- Open drivers and add a new network of type
Modbus-RTUand set the port to485-1for more info on: ports - Add a device and set the address to
1 - Add a point of type
write holidng registerand address1as typeint16and the write mode toWrite AlwaysandMultiplication Factorto0.01
tip
see point write/read modes for the different point polling methods