FUN GetNavSwitch
This function block enables reading of the navigation switch.

VAR_Output
F_GETNAVSWITCH :WORD;
Legend
F_GETNAVSWITCH: Switch data
WORD description
Bit |
15 |
14 |
... |
5 |
4 |
3 |
2 |
1 |
0 |
Name |
LOCKED |
- |
... |
- |
PRESS |
RIGHT |
LEFT |
DOWN |
UP |
If bit 15 is set, you are in the BX controller menu. This bit is set for as long as the user remains in the BX3100 menu. On exit of the menu, the navigation switch is immediately released for the PLC, i.e. pressing of the Press button is still visible in the program. Please take account of this in your application. For example, the switch should only be evaluated after a short delay by starting a timer with falling edge from bit 15.
Download sample ST program (sample file)