billy.horgan
Hi all,
I'm new to the forum and OpenPLC, thanks to the developers its a good package.
I have an issue and I'm unsure is it me or a bug.
The value of numeric variables, such as UINT dont show up in monitoring or scadabr.
I can see from the sim that the number is not 02022-12-07 17_57_03-OpenPLC Editor - ~OpenPLC2~.jpg
However in monitoring it is always 0.2022-12-07 17_59_42-.jpg
Is there something I am missing?
Thanks
Reply 0 0
thiagoralves
IW100 and IW101 reads from a slave device. Since these are inputs, their value will be replaced with whatever your slave device has on its inputs.
Reply 0 0
billy.horgan
Thanks for your response, I have similified the program and changed to IW1.6, the behaviour is the same.
Is it perhaps something trivial like incorrect datatype?
Thanks
2022-12-08 17_27_04-.jpg2022-12-08 17_26_50-OpenPLC Editor - ~Openplc Practice 2~.jpg
Reply 0 0
thiagoralves
%IW1.6 is not a valid address for OpenPLC Runtime. In any case, my answer remains. Those are still inputs. Any %IW address is an input, and will be overwritten by whatever the hardware layer driver reads on those inputs.
Reply 0 0
Reply