PLC manufacturers have their own proprietary protocols. These methods of communication will allow you to program the controller. Other protocols will allow you to collect and log information from the programmable logic controller. Node-RED can read and write to the Omron controller using special protocol commands.
We will connect Node-RED to the Omron CP1H PLC. A serial RS485 interface will be used for communication with the industrial controller. We will demonstrate reading and writing using Host Link (C-mode commands) to the Omron PLC. Let’s get started.
More information can be obtained at our website. This includes all of the links mentioned in this video.
[ Ссылка ]
Purchase your USB to RS-485 serial adapter from the following affiliate link.
[ Ссылка ]
In this series, we started using Node-RED in some of the following ways:
The entire series can be viewed here:
[ Ссылка ]
Installing the Windows Software
[ Ссылка ]
[ Ссылка ]
Modbus RTU / TCP Communication
[ Ссылка ]
[ Ссылка ]
User Interface - Dashboards
[ Ссылка ]
[ Ссылка ]
SQL Database Log
[ Ссылка ]
[ Ссылка ]
SQL Database Spreadsheet Connection
[ Ссылка ]
[ Ссылка ]
Install Node-RED on Raspberry Pi 4
[ Ссылка ]
[ Ссылка ]
Do-More PLC Node-RED HTTP Request
[ Ссылка ]
[ Ссылка ]
Simple Click Data Logging
[ Ссылка ]
[ Ссылка ]
Node-RED Modbus TCP Handling Errors
[ Ссылка ]
[ Ссылка ]
Raspberry Pi Serial Port Programming
[ Ссылка ]
[ Ссылка ]
We will continue with the following:
Omron PLC Node-RED Serial Communication
00:00 Omron PLC Node-RED Serial Communication
01:09 Omron C-mode (Host Link)
02:17 Omron C-mode (Host Link) Command/Response Formats
03:46 Omron C-mode (Host Link) Command Codes
05:02 CP1W-CIF11 RS-422A/485 Option Boards
06:16 Waveshare USB to RS485 Converter
06:40 Omron CP1H Program and Settings
09:12 Node-RED Program Nodes Required
10:23 Node-RED Omron Serial Read Flow
14:54 Omron Hardware and USB to RS485 Converter
16:07 Executing the Node-RED Flow to Read from the Omron
18:05 Node-RED Omron Serial Write Flow
19:48 Executing the Node-RED Flow to Write to the Omron
There are several reasons why we are using Node-RED. Here are just a few.
- Built on top of the most dependable programming language, JavaScript.
- JavaScript is flexible and easy to work with on web browsers, server-side, IoT, IIoT projects, and more.
- Visual flow type interface making programming easy.
- Node will allow JavaScript code to run directly on a computer.
- Node-RED is a free, open-source logic engine.
- Connect to PLC, PAC, Temperature Controllers, and Process Controllers using standard protocols.
- Save and read from databases
- Easily make the Internet of Things (IoT, IIoT) industrial solutions.
Node-RED provides the ability for you to quickly create custom control solutions.
[ Ссылка ]
Omron PLC Node-RED Serial Communication
Теги
plcomronnode-redplc programmingplc basicsomron plc node-red serial communicationacc automationautomationiotnode redomron plcnoderedrs485omron plc softwareiiotomron serial communicationomron plc seriesprogrammingdataloggeromron host linkomron c-code protocolnode-red serial port exampleomron plc iotomron protocolomron plc serial node-rediot omron plcserial communicationiot plc omronnode-red omron serialcp1hhostlinkplc training