xiaohh
BOOL variables can not be mapped to the same digital input, otherwise, error: invalid location in global location declaration. will be reported.
This feature should be useful, since one digital input terminal could be defined as different function.
 
 
[203128%2F8974377%2Fmceclip0]
Reply 0 0
thiagoralves
I don’t see the point why you would want the same hardware input attached to two different variables.
Reply 0 0
xiaohh
Use case 1, in a statemachine, one digital input might be defined as different function in different state.
Use case 2, in some frequency converters, the number of digital input is very limited, but there are a lot of differnt software features, for example, one digital input can be defined as either start, or stop or external interlock etc.
Reply 0 0
thiagoralves
Well… just reuse the same variable in multiple different ways. You don’t need to have multiple variables tied to the same thing. They would essentially be clones of each other, because they are tied to hardware
Reply 0 0
Reply