bilalpisu
Hello,
 
I have an RS-485 based expansion module connected to my OpenPLC Runtime running on PC. The module provides:
  • 16 Digital Outputs (DO) — accessible via Modbus Coil Status addresses 1–16
  • 24 Digital Inputs (DI) — accessible via Modbus Input Status addresses 1–24
I’ve successfully mapped the Digital Inputs in OpenPLC using:
%IX100.0 → reads Modbus Input Status starting at address 1
 
This works perfectly.
Now, I need to control the Digital Outputs (write to coils). I want to confirm:
  1. Is %QX100.0 the correct way to map to Coil 1 (Modbus address 1)?
  2. Does %QX100.7 map to Coil 8, and %QX101.0 to Coil 9, and so on?
  3. Is there anything else I need to configure to enable coil writing?
 
and i am getting this error also in Log file:
Modbus Write Coils failed on MB device RTU: Invalid data
what is this mean?
 
Reply 0 0
thiagoralves
If you’re getting errors on the dashboard then either your device does not support the function code OpenPLC is using or your mapping the wrong address
Reply 0 0
Reply