Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO CREATE AND USE ModbusSlave drivers ?

the idea is to have a ModbusSlave driver to test the applications developed as Master modbus; with both drivers running in the same computer in both com 1 and com 2.
0 Kudos
Message 1 of 4
(3,084 Views)
.



This is an excellent idea for troubleshooting, which we have been using and recommending for long. ModbusSlave Object simulates a Modbus PLC within Lookout. This can be used to test and troubleshoot the functioning of the Modbus driver object without requiring an actual PLC/RTU.

To use the ModbusSlave object, create the Object as if your PC were the PLC. So, assign it a COM port, baud rate, etc. Let's say you assign it COM2.

Now, create the drive Modbus object on COM1. Then, physically connect the two COM ports with a null-modem (crossed) serial cable. So, basically you fool the Modbus driver object that there's a Modbus PLC out there but you loop-back and connect to the other COM port and use the ModbusSlave.

Once you've done this, you can
simulate some values within the Slave by connecting some Pots to the Slave's registers. You can then try reading these with the driver Modbus object, etc.

Hope this helps.

Khalid 🙂



.
Message 2 of 4
(3,084 Views)
thank you, save me some bucks; was about to buy software to do so. question: there are examples of modbus slave aplications available ?
regards, Raul Vence Reid.
0 Kudos
Message 3 of 4
(3,084 Views)
To know that it works, helps out.
0 Kudos
Message 4 of 4
(3,084 Views)