Use PFC as a Modbus server. Manage local EA's direct with Node-Red or Python.
3.6K
Start SSH Client e.g. Putty
login as `root`
password `wago`
docker info
docker ps # to see all running container (no container should run)
docker images # to see all preinstalled images
docker pull wagoautomation/pfc-modbus-server
Before the pfc-modbus-server container can be started it is necessary to create a special environment on the PFC. There are two ways to achieve it:
To undo the environment created in the previous step, perform the following steps:
LED Signal U1 shows: RED=kbus init on host engaded, YELLOW=prepare kbus for container, GREEN=kbus is working from container.
docker run -d \
--init \
--restart unless-stopped \
--privileged \
-p 502:502 \
--name=pfc-modbus-server \
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
wagoautomation/pfc-modbus-server
EA mapping is like 750-362, watch Coupler documentation to learn how to get access to mapped digital and analog slots.
https://www.wago.com/de/io-systeme/feldbuskoppler-modbus-tcp/p/750-362
Onboard operating switch: START = modbusserver is running : STOP modbusserver is stopped.
If the kbus would not init: => stop container => activate runtime => deactivate runtime => start container
(This inits the kbus via runtime thread, watch kbus led: must be green)
Any Modbus client can be used for testing see (e.g https://www.modbustools.com/download.html)
Or use Wago-Node-Red containers with Modbus nodes. At least one digital IO module should be connected to the PFC.
[{"id":"66f5a666.891698","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"fbd298fc.c80688","type":"inject","z":"66f5a666.891698","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":100,"wires":[["60d4c8c.3084238"]]},{"id":"60d4c8c.3084238","type":"modbustcp-write","z":"66f5a666.891698","name":"","topic":"","dataType":"Coil","adr":"0","server":"5a5a3609.1c8758","x":370,"y":140,"wires":[]},{"id":"3251a3f3.57e6ac","type":"inject","z":"66f5a666.891698","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":160,"wires":[["60d4c8c.3084238"]]},{"id":"5a5a3609.1c8758","type":"modbustcp-server","z":"","name":"PFC","host":"127.0.0.1","port":"502","unit_id":"1","reconnecttimeout":""}]
Content type
Image
Digest
Size
22.7 MB
Last updated
about 4 years ago
docker pull wagoautomation/pfc-modbus-server