elllo
When I use PSM, in the python code, I set Modbus input registers such as "%IW0" and "%IW1" to store sensor data. My question is simple, do I need to declare variables with those Modbus addresses in my SFC on OpenPLC editor. Because it bugs some times (actually often times) and I don't know whether it is the cause of my problem. (By problem I mean, that the runtime program on my RPi can't stop when I press stop, I have to unplug the RPi ...)
Reply 0 0
thiagoralves
If you don't declare variables you won't be able to use those values in your program. The problem could be on your PSM code that is getting into an infinite loop and can't be stopped, or on your PLC code.
Reply 0 0
Reply