Validity: Rule, Task
This variable contains the mask of the buttons pressed on the DISPAN/VISPAN devices.
Syntax |
I32 dispan_keys |
---|---|
Attributes |
Bit-accessible. Read-only |
The meaning of the bits is as follows:
Bit |
Hexadecimal value |
Corresponding button |
---|---|---|
BIT 0 |
0x1 |
f1/1/abc |
BIT 1 |
0x2 |
f2/2/def |
BIT 2 |
0x4 |
f3/3/ghi |
BIT 3 |
0x8 |
f4/4/jkl |
BIT 4 |
0x10 |
f5/5/mno |
BIT 5 |
0x20 |
f6/6/pqrs |
BIT 6 |
0x40 |
f7/7/tuv |
BIT 7 |
0x80 |
f8/8/xywz |
BIT 8 |
0x100 |
-/9/- / * |
BIT 9 |
0x200 |
+ /0/( ) ' |
BIT 10 |
0x400 |
Del |
BIT 11 |
0x800 |
ins/./, ; : |
BIT 12 |
0x1000 |
funct |
BIT 13 |
0x2000 |
letters |
BIT 14 |
0x4000 |
enter |
BIT 15 |
0x8000 |
esc |
BIT 16 |
0x10000 |
Jog 1 – |
BIT 17 |
0x20000 |
Jog 1 + |
BIT 18 |
0x40000 |
Jog 2 - |
BIT 19 |
0x80000 |
Jog 2 + |
BIT 20 |
0x100000 |
Jog 3 – |
BIT 21 |
0x200000 |
Jog 3 + |
BIT 22 |
0x400000 |
s/f |
BIT 23 |
0x800000 |
Hold |
BIT 24 |
0x1000000 |
feed- /arrow down |
BIT 25 |
0x2000000 |
feed+ /arrow up |
BIT 26 |
0x4000000 |
arrow left |
BIT 27 |
0x8000000 |
arrow right |
BIT 28 |
0x10000000 |
- |
BIT 29 |
0x20000000 |
Emergency button status (if present on dispan), (1 -> emg pressed) |
BIT 30 |
0x40000000 |
- |
BIT 31 |
0x80000000 |
DISPAN/VISPAN connected |
Example
; if bit 7 of the variable dispan_keys is equal to 1 ; it means that the f8/8/xywz key has been pressed ; then will be stored in the register sr(1) ; the string "the f8/8/xywz key has been pressed" _if(dispan_keys.7) sr(1) = "the f8/8/xywz key has been pressed" |