Connect PLC TCP to Node Red (IoT)

by mohamed1993ashraf in Design > Software

28 Views, 0 Favorites, 0 Comments

Connect PLC TCP to Node Red (IoT)

1.png

How to connect node red to plc using modbus TCP

Supplies

Machine expert basic to program M200 PLC

node red installed on PC

PLC Programing

node red plc.png
Program.png

Start machine expert PLC Configuration IP and programing

Add Node Red Library and Nodes

add modbus.png
node.png

draw the nodes on the flow to start update the data and install modbus library to node red

you can import the flow directly from attached.json file.

same step for led library if needed.

Downloads

Update Node Red Flow to Send Data to Plc

write.png

start write node and modbus configuration on the flow to send data from node red to PLC

Update Node Red Flow to Receive Data From Plc

led.png

Start read node and it's function to get the data from PLC to node red then click deploy.

add (led) library or label to show the received data on node red.

Testing

on.png

start node red dashboard to test the read and write data between PLC and node red.