As the title says, I'm running into the following error in the logs when trying to run a program in the OpenPLC runtime:
"modbus write coils failed on MB device P1AM: response not from requested slave"
I'm unsure how to resolve this error, so any help is appreciated.
Additional Info: Raspberry Pi 4 master and a P1AM-100 slave with two additional Arduino slave devices. I followed the instructions from
this video to setup to get the P1AM set up as slave. The P1AM has two modules connected to it (isolated relay, 8 outputs in slot 1, input simulator in slot 2). I cleared the GPIO pins and enabled serial RTU before transferring to PLC.
After using the USB programming cable with the P1-AM I disconnected it from the programming computer (Editor on Windows 10) and plugged it in to the Raspberry Pi. The RPi recognizes the device when setup in the runtime and connects when the program runs.
Things I have tried:
- adjusting the baud rate to match the device when found under properties. I used both 9600 (the default for the P1AM when connected to windows 10) and 115200 (same baud rate as the other slave devices I have attached).
- removing other slave devices
- changing the variable addressing on the attached slave program
- changing the slave ID in both the editor and runtime to different numbers
Things that I can try:
- setup ethernet communication via the ethernet module
- run the P1AM on a different and freshly imaged raspberry Pi with no other slave devices attached
I attached the P1AM slave program for reference
Thanks in advance!