Hi stu,
Can I ask a simple "directional" question here?...
Are you trying to press a button on your "screen" (HMI I assume?) and want it to execute a binary instruction in the controller, via a Float?
Or...
Are you trying to execute a binary instruction in the controller and want a Float to communicate that binary result to a button object in a HMI application for say, visibility, or change of button text?
If it happened to be the latter, then your post's title might read better as...
"<My HMI> program knowledge needed"
In other words, you may need to know more here about how the (assumed) HMI button object's feature set can interpret, or not, the Float data type?
Regards,
George
Can I ask a simple "directional" question here?...
stu said:...If i wanted to have a button info on/off in a recipe could i use a spare F number (f34:13 ) is it possible to do this ??...
...is it possible to use F data as a binary as b bits 1/0, then I can still use the recipe float spares for a on/off button...
...So have a b3:1/0 xic could mov 0 to F34:13
And B3:1/0 xio could move 10 into F34:13
But that wouldn’t be turn the button on in the recipe,would it ?
Could we do an expression b3:1/0 = 1 then F34:13 =10 else b3:1/0= 0...
Are you trying to press a button on your "screen" (HMI I assume?) and want it to execute a binary instruction in the controller, via a Float?
Or...
Are you trying to execute a binary instruction in the controller and want a Float to communicate that binary result to a button object in a HMI application for say, visibility, or change of button text?
If it happened to be the latter, then your post's title might read better as...
"<My HMI> program knowledge needed"
In other words, you may need to know more here about how the (assumed) HMI button object's feature set can interpret, or not, the Float data type?
Regards,
George