* You can learn more about the Modbus protocol here: http://www.modbus.org/specs.php
* Learn about programming the serial port using the .Net Framework here: http://msdn.microsoft.com/en-us/library ... 90%29.aspx
* Attached projects for both C# and VB.Net
Here's the source code for the CUBLOC:
- Code: Select all
Const Device = CB280
Opencom 1, 19200, 3, 50,50
Set Modbus 1, 1, 20
Ramclear
Usepin 0, Out
Set Ladder On
Do
Loop