Modbus Configuration for Wago PLC 750

Hi,

I have a Wago PLC 750 using modbus over ethernet. I am struggling to set up a simple configuration file to activate some coils.

To make it simple, how do I create a switch to turn on and off the coil at QX0.3 in my output module (DO)? I used the following code in configuration.yaml and the switch is showing up but is greyed out (it says something about not having a unique ID).

modbus:
  - name: wago_modbus_15
    type: tcp
    host: 192.168.1.198
    port: 2455
    switches:
      - name: office
        slave: 1
        address: 3
        command_on: 1
        command_off: 0

Thanks

are you using codesys 3.5 like me?
I’ve been struggling with addressing it for days. The only thing I managed is a coil with the following settings:
modbus:

  • type: tcp
    host: 192.164.22.99
    port: 502
    switches:
    • name: Switch1
      address: 8
      write_type: coil

in my case address 8 switches in codesys:


modb2
Does this help?
Maybe we can help each other because i think most of this HA Modbus doesn’t work or is completely out of IEC norm or a product of coincidence.Or i’m just don’t know what i’m doing… :roll_eyes:

Greetings Patrick