Hi All,
I want to allow an operator to enter two numeric value to an NB HMI (Perhaps to D0 for example). I would like the first value to be a time interval (in seconds) for which an output should be off. The second value will be the time in seconds that the output would be on.
I've tried simply assigning a timer preset to D0 in ladder but the timer goes into error when anything above 9 is entered.
Id ideally like to do this as a function block in ST but not sure how.
Can anyone help me out?
Thanks
See image attached of my ladder
I want to allow an operator to enter two numeric value to an NB HMI (Perhaps to D0 for example). I would like the first value to be a time interval (in seconds) for which an output should be off. The second value will be the time in seconds that the output would be on.
I've tried simply assigning a timer preset to D0 in ladder but the timer goes into error when anything above 9 is entered.
Id ideally like to do this as a function block in ST but not sure how.
Can anyone help me out?
Thanks
See image attached of my ladder