This GitHub repository contains the project files and documentation for a PLC-based Sorting Station using Node-RED with OPC (OLE for Process Control). The project utilizes several software components, including Factory IO, KepserverEx, and Node-RED to create a flexible and efficient sorting system.
The PLC-based Sorting Station is a simulation of an industrial sorting system where objects are sorted based on certain criteria. In this project, we use Factory IO to simulate the physical sorting process, KepserverEx to communicate with the PLC (Programmable Logic Controller), and Node-RED for logic control and visualization. This repository provides the necessary files and instructions to set up and run this system.
- Real-time simulation of a sorting station using Factory IO.
- PLC-based control of the sorting process.
- Integration of Factory IO with KepserverEx for communication with the PLC.
- Logic control and visualization of the sorting process using Node-RED.
- Easily configurable for different sorting criteria and object types.
Before you can run this project, make sure you have the following software components installed:
-
Factory IO: Factory IO is used for simulating the sorting station. You can download it from here.
-
KepserverEx: KepserverEx is used as an OPC server to communicate with the PLC. You can obtain it from Kepware.
-
Node-RED: Node-RED is used for logic control and visualization. You can install it using Node.js with the following command:
npm install -g --unsafe-perm node-red
For more information, visit the Node-RED website.
-
PLC: You need access to a PLC that is compatible with KepserverEx. This PLC should support the required input and output signals for your sorting station.
Follow these steps to set up and run the PLC-based Sorting Station:
-
Clone this repository to your local machine:
git clone https://github.com/codewithzahid/Sorting-Station-PLC.git
-
Configure Factory IO to use the provided simulation profile (if available).
-
Configure KepserverEx to connect to your PLC and expose the necessary tags for communication.
-
Start Node-RED and import the Node-RED flow from the repository (if available).
-
Configure the Node-RED flow to interact with KepserverEx and control the sorting process.
-
Start the Node-RED flow to begin the sorting process.
-
Observe the sorting station in action through Factory IO and Node-RED.
The repository is organized as follows:
/documentation
: Contains documentation and user guides./node-red-flow
: Contains Node-RED flow configurations./images
: Contains images and diagrams related to the project./configs
: Configuration files for Factory IO and KepserverEx.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute to this project, report issues, or suggest improvements. Your feedback and contributions are highly appreciated!