ryannn
Hi,
 
 
I just discovered that in the modbusTask() function, after the mbtask() call, only the output buffer is updated and not the input buffer. Why is that?
[203128%2F8851317%2Fmceclip0]
 
Additionally, regarding another question, when using a microcontroller-based OPENPLC to communicate with sensors and actuators, are all three methods supported: direct pin communication, Modbus TCP, and Modbus Serial?
Reply 0 0
thiagoralves
By definition Modbus should not be able to write to inputs, only outputs (holding registers and coils). Inputs are read-only on Modbus.
 
On your second question, yes OpenPLC on microcontrollers supports Modbus (slave mode only) and GPIO pins.
Reply 0 0
ryannn
By definition Modbus should not be able to write to inputs, only outputs (holding registers and coils). Inputs are read-only on Modbus.
Oh my gosh, I actually forgot about this. Thank you for the reminder and for your response to the second question!😁
Reply 0 0
ryannn
By definition Modbus should not be able to write to inputs, only outputs (holding registers and coils). Inputs are read-only on Modbus.
 
On your second question, yes OpenPLC on microcontrollers supports Modbus (slave mode only) and GPIO pins.
Does the microcontroller-based OPENPLC support remote operation? Similar to Siemens' WINCC, where you can remotely operate the PLC after configuration in WINCC? If not, does the Windows or Linux-based OPENPLC support this functionality? (Please let me know if I haven't expressed myself clearly.)
Reply 0 0
thiagoralves
If by "remote operation" you mean monitoring and controlling through an HMI, then yes. You can use any Modbus-capable HMI to monitor and control both the microcontroller-based and the Windows/Linux-based OpenPLC. You can check this video to see it in action:  https://youtu.be/KrcL6lhAHKw?si=cXSzfQcLbOU1Mubu
Reply 0 0
ryannn
If by "remote operation" you mean monitoring and controlling through an HMI, then yes. You can use any Modbus-capable HMI to monitor and control both the microcontroller-based and the Windows/Linux-based OpenPLC. You can check this video to see it in action:  https://www.youtube.com/watch?v=KrcL6lhAHKw
Yes, that’s exactly what I meant. This is truly an amazing piece of work! I definitely have to take a look!
Reply 0 0
Reply