The following demonstrates how to interface with a CUBLOC MSB using the following LD.
Connect the ComfilePi and MSB like this.
1. Add channels.
Please refer CUBLOC Modbus address.
2. Connect Direct Address.
Edit LD, build, Login(deploy), and start.
#include "MSB6XX" Opencom 1,115200,3,200,200 Set Modbus 1,1,20 Usepin 8,In Usepin 32,Out Set Ladder On Do Loop
For the MSB's Ladder logic, only and
END rung is needed.