User Tools

Site Tools

한국어

comfilepi:codesys:codesys10

Interfacing with a CUBLOC MSB

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.

Download project file : msbandmodport.zip

CUBLOC source

#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.

CODESYS with the ComfilePi

comfilepi/codesys/codesys10.txt · Last modified: 2020/12/09 02:13 by COMFILE Technology