Codesys 2.3 - wago 750-842 - I/O

907 views Asked by At

I need your help to solve a "strange" problem I am facing.
My wago 750-842 does not write digital outputs and does not read digital inputs.
Below you can find my very simple program, along with the harware configuration.
To summarize, I have a 8 channel DO module, a 8 channel DI module and a 2 channel AI module.
I am using Codesys 2.3.9.62. 750-842 is not compatible with Codesys v3 as far as I know.
I correctly receive the 2 AI, but my DI in the program are always false, regardless of the real DI state.
DO are also always false, even if I activate the output from program.
I feel like I am missing some very easy configuration step or something like that.
I also wanto to point out that:

  • hardware is working correctly as all I/O respond to modbus request as expected
  • program is correct as everything works as expected in simulation mode

Can you please give me suggestion on how to properly read inputs and write outputs so that hardware behaves like it is expected?

K-BUS
|____ 750-530 (channels from AT %QX0.0 to %QX0.7)
|____ 750-430 (channels from AT %IX2.0 to %IX2.7)
|____ 750-461 (channels AT %IW0 and %IW1)

Program (ST):

VAR
   i_ch_1 AT %IX2.0 : BOOL;
   i_pt100_1 AT %IW0 : INT;
   o_ch_1 AT %QX0.0 : BOOL;
   o_ch_2 AT %QX0.1 : BOOL;
END_VAR

o_ch_1 := i_ch_1; (*DO 1 on if DI 1 on, off otherwise*)
o_ch_2 := i_pt100_1 > 100; (*DO 2 on if temperature > 20°, off otherwise*)

Link to download the project
electrical wiring 1
electrical wiring 2

0

There are 0 answers