- Download the latest Node-RED LTS version from the website.
- Install the .msi installer.
- From command line, launch: > npm install -g --unsafe-perm node-red
> node-red
- This will launch the node-red server on localhost (http://127.0.0.1:1880) and start the flow.
- Install the node-red-contrib-s7 library (Hamburger Menu Icon > Manage Palette).
- Setup the PLC connection and point to the desired variable in the DB.
The notation will depend on the data type for each variable, e.g.:
DB6,X102.0 (for BOOL).
S7 in: Reads data from PLC.
S7 out: Writes data to PLC.
Notes for PLC configuration:
- Enable PUT/GET communication (Protection & Security settings). A PLC error [0x8104] will occur on Node-RED if PUT/GET is disabled.
- Disable the optimized setting of the DB for the data exchange.





No comments:
Post a Comment