
yawstick1 (Customer) asked a question.
Curious if anyone has had success using raspberry pi running node red with node-red-contrib-modbus to communicate with click plus plc

yawstick1 (Customer) asked a question.
Copyright © 1999-2023 AutomationDirect. ALL RIGHTS RESERVED
I have seen a couple other questions about using that Modbus library on a PI with CLICK. We built the C2-NRED to simplify that process, but recognize sometimes you have other reasons for using a Raspberry PI.
I'd be interested to hear more about what you are trying to accomplish - e.g. Read from CLICK into node Red, Write to CLICK...
I have some example code out on Github that is designed to let CLICK Send data from the PLC to a Node-RED flow. I wrote this specifically so a rung in CLICK can initiate a flow and send a few values, like calling a subroutine with parameters. I've tested with our C2-NRED module, but there is no reason it won't work on any Node-RED instance:
CLICK-PLC/Node-RED/C2-NRED Modbus Parser at main · AutomationDirect/CLICK-PLC
It's a one way flow (CLICK Sends to Node-RED), but doesn't require any add on libraries since it's all done in the Function Node.
I was hoping to create a poor mans HMI using rasberry pi running node red with a touch screen monitor. I have no experience with modbus on rasberry pi but quite a bit with mqtt using node red and ESP32 communicating back and forth... The mqtt implementation on the click plc seems a bit primitive compared to how I've been using it.
Hi Yawstick1
Here is the information you want on the Raspberry Pi running Node-RED Modbus Contrib, communicating to a Click PLC
https://accautomation.ca/node-red-modbus-rtu-tcp-communication/
At the end of each post, a video shows how this is done.
The entire Node-RED series can be found here. Scroll down the page to see the work done with a Pi.
https://accautomation.ca/series/node-red-iot-enabling-software/
I hope this helps you out.
Regards,
Garry
ACC Automation
https://accautomation.ca/