Hi all,
I have button on the screen. When touched, one out of many actions is to set certain bit high in logic to enable rung (if button is not touched, the rung does not perform anything). The rung works nice and perform everything as expected, except for the enable bit stays 'set'. The function 'reset bit' is only for integers. I do not want to use entire integer to enable/disable rung. If used integer to enable rung, the action from HMI can be increment/decrement only, therefore I would have to put there two conditions :equal-less 0 then store 0 and equal-greater 1 as conditions then store 1, to actually stay in 0-1 range.
Or is it possible to access integers that are used for data types 'bit', then I could use the premade function reset bit (in integer) like mask byte in assembler.
Does anyone have any better idea how to do it, please?
Thanks