I am trying to connect a Mitsubishi FX3G-60M PLC to my Raspberry Pi using Node-RED. My goal is just to read some data to display on my dashboard.
I'm using the node-red-contrib-melsec-fx nodes and am having trouble configuring the serial port (e.g., /dev/ttyACM0).
I thought the serial port settings would be inside the melsec-fx-in node, but I can't find them. The node only asks me to select a "Melsec FX endpoint," as you can see in this screenshot:
Have you tried clicking the pencil button to the right of "Melsec FX endpoint"?
As you are a new user, I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
I am trying to retrieve data from the Mitsubishi PLC using its programming port, not the Ethernet port, which is why I was looking for the serial settings.
My confusion came from the fact that I have some experience retrieving data from Siemens PLCs using Node-RED, and those nodes handle the connection settings differently."
Yeah, I have not used that node and seen you were a new user and (wrongly) assumed you were also new to Node-RED (they are still worth a watch if you've not seem them - a few good tips and tricks in there)
if (!melsecAdapter) return that.error('Missing "@protocols/node-melsec" dependency, avaliable only on the ST-One hardware. Please contact us at "st-one.io" for pricing and more information.')
I.e. it looks like this requires ST-One hardware (and I guess thats where the setup is done)
If you are familiar with JavaScript, you could DIY this in a function node using node-fxplc node module. The readme has example code on how to connect serial and read/write addresses