CoDeSys V3 Modbus RTU

learnetk

Level-1
Beiträge
1
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi Everyone,
I new to this Forum. Does anyone has experince with CoDeSys 3 Modbus Communication. I know that in CoDeSys 2 there used to be these libraries which could be used. But with Version 3 it seems something different. Could someone post an small example program to help.
Thanks :)
 
Hi,
if your plc hardware does have a serial com port - yes
Which device (and manufacturer) are you using?
In general you need to add in the device tree a com port, and below the RTU Master and Slave -
Modbus libraries are part of the CODESYS Developmentsystem. If you plc manufaturer does not support the modbus license you could at least use it in demo
mode for 30 minutes.
Add channels and then add a mapping to your variables, thats it... everthing is called implicit by CODESYS not needed to call the modbus fb's manually.
See screenshots:

BR
Edwin
 

Anhänge

  • ModbusConfigChannels.jpg
    ModbusConfigChannels.jpg
    145 KB · Aufrufe: 83
Zuletzt bearbeitet:
Zurück
Oben