Hi everyone, 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 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 expectedprogram is correct as everything works as expected in simulation modeCan 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(channelsfromAT%QX0.0to%QX0.7)|____750-430(channelsfromAT%IX2.0to%IX2.7)|____750-461(channelsfromAT%IW0to%IW1)Program(ST):
VAR
Β Β i_ch_1AT%IX0.0 : BOOL;
Β Β i_pt100_1AT%IW0 : INT;
Β Β o_ch_1AT%QX0.0 : BOOL;
Β Β o_ch_2AT%QX0.1 : BOOL;END_VARo_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*)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks like your i_ch_1 is pointing at bit 0 of your ANALOG input module.
i_ch_1 AT %IX0.0 : BOOL;
Should it be changed to %IX2.0?
By default, I/O doesn't update the addresses unless used in your code somewhere, which may be confusing if you look at the IO mapping online for your digital input module.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: andreapier
Hi everyone, 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 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 expectedprogram is correct as everything works as expected in simulation modeCan you please give me suggestion on how to properly read inputs and write outputs so that hardware behaves like it is expected?
Originally created by: andreapier
Is there anyone with a suggestion or an idea of something to try?
It looks like your i_ch_1 is pointing at bit 0 of your ANALOG input module.
i_ch_1 AT %IX0.0 : BOOL;
Should it be changed to %IX2.0?
By default, I/O doesn't update the addresses unless used in your code somewhere, which may be confusing if you look at the IO mapping online for your digital input module.
Hi, i-campbell, thanks for taking the time to answer.
You are right, but unfortunately that was just a copy-paste error.
Mapping in the program is already correct.
You can find the full program attached, can you please have a look?
Again, thanks.
Hi, any idea?