Networking
Software
Omron PLC Node-RED Serial Communication
3K views
·
Oct 12, 2022
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. https://accautomation.ca/omron-plc-node-red-serial-communication/
Purchase your USB to RS-485 serial adapter from the following affiliate link.
https://amzn.to/35UNc6v
In this series, we started using Node-RED in some of the following ways:
The entire series can be viewed here:
https://accautomation.ca/series/node-red-iot-enabling-software/
Installing the Windows Software
https://accautomation.ca/node-red-installing-the-windows-software/
https://youtu.be/xGzH2Hv31WA
Modbus RTU / TCP Communication
https://accautomation.ca/node-red-modbus-rtu-tcp-communication/
https://youtu.be/yX1w5vcV6cc
User Interface - Dashboards
https://accautomation.ca/node-red-user-interface-dashboards/
https://youtu.be/8zAG2wXwGOc
SQL Database Log
https://accautomation.ca/node-red-sql-database-log-modbus-logging/
https://youtu.be/QHjcNj1S_Mo
SQL Database Spreadsheet Connection
https://accautomation.ca/node-red-sql-database-spreadsheet-connection/
https://youtu.be/Cd3LvhoMaCI
Install Node-RED on Raspberry Pi 4
https://accautomation.ca/install-node-red-on-raspberry-pi-4/
https://youtu.be/KleNtxvJkU4
Do-More PLC Node-RED HTTP Request
https://accautomation.ca/do-more-plc-node-red-http-request/
https://youtu.be/m-p28H9Fl5s
Simple Click Data Logging
https://accautomation.ca/simple-click-data-logging-node-red/
https://youtu.be/RmSn4ZSPSmg
Node-RED Modbus TCP Handling Errors
https://accautomation.ca/node-red-modbus-tcp-handling-errors/
https://youtu.be/CgsJozTr-8w
Raspberry Pi Serial Port Programming
https://accautomation.ca/raspberry-pi-serial-port-programming/
https://youtu.be/SAY8H3SBl-8
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.
https://accautomation.ca/
Show More
Show LessComments
loading text loading
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text
loading text loading
loading text