Description
The specified key code is recorded in the operation history in CNC.
Even if this function is executed after the path is switched to path 2 by cnc_setpath, the history of key is recorded in the operation history in path 1. (Even if this function is executed from either path 1 or path 2, the history is recorded in the operation history in path 1.)
If you want to use the loader(5th path), the system which corresponds to loader is necessary. When this function is executed for the system which does not correspond to loader(5th path), the operation is not guaranteed.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments : HSSB
Specify the library handle. See "Library handle" for details.
Specify the key code which wants to record in the operation
history. The key code table which is able to record to the
operation history is shown as follows.
If you specify the blank key code in the table, EW_DATA error occurs.
The following 32 key codes are not defined on FANUC's standard keyboard. So, those keys can be freely allocated by the application.
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
---|---|---|---|---|---|---|---|---|
0 | user01 | SP | 0 | @ | P | ` | ||
1 | user02 | ! | 1 | A | Q | |||
2 | user03 | " | 2 | B | R | |||
3 | user04 | # | 3 | C | S | |||
4 | user05 | $ | 4 | D | T | |||
5 | user06 | % | 5 | E | U | |||
6 | user07 | & | 6 | F | V | |||
7 | user08 | ' | 7 | G | W | |||
8 | user09 | ( | 8 | H | X | |||
9 | user10 | ) | 9 | I | Y | |||
A | EOB | user11 | * | : | J | Z | ||
B | user12 | + | K | [ | { | |||
C | user13 | , | < | L | \ | | | ||
D | user14 | - | = | M | ] | } | ||
E | user15 | . | > | N | ~ | |||
F | user16 | / | ? | O | _ |
8 | 9 | A | B | C | D | E | F | |
---|---|---|---|---|---|---|---|---|
0 | RESET | user17 | [SF0] | |||||
1 | user18 | [SF1] | ||||||
2 | user19 | [SF2] | ||||||
3 | user20 | [SF3] | ||||||
4 | SHIFT | INSERT | user21 | [SF4] | ||||
5 | DELETE | user22 | [SF5] | |||||
6 | CAN | ALTER | user23 | [SF6] | ||||
7 | user24 | [SF7] | ||||||
8 | ? | INPUT | user25 | POS | [SF8] | |||
9 | ? | user26 | PROG | [SF9] | ||||
A | ? | HELP | user27 | OFFSET SETTING | ||||
B | ? | CALC | user28 | SYSTEM | ||||
C | user29 | MESSAGE | ||||||
D | user30 | GRAPH | ||||||
E | Page? | user31 | CUSTOM | [SFR] | ||||
F | Page? | user32 | FAPT | [SFL] |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
---|---|---|---|---|---|---|---|---|
0 | user01 | SP | 0 | @ | P | ` | ||
1 | user02 | ! | 1 | A | Q | |||
2 | user03 | " | 2 | B | R | |||
3 | user04 | # | 3 | C | S | |||
4 | user05 | $ | 4 | D | T | |||
5 | user06 | % | 5 | E | U | |||
6 | user07 | & | 6 | F | V | |||
7 | user08 | ' | 7 | G | W | |||
8 | user09 | ( | 8 | H | X | |||
9 | TAB | user10 | ) | 9 | I | Y | ||
A | EOB | user11 | * | : | J | Z | ||
B | user12 | + | ; | K | [ | { | ||
C | user13 | , | < | L | \ | | | ||
D | user14 | - | = | M | ] | } | ||
E | user15 | . | > | N | ~ | |||
F | user16 | / | ? | O | _ |
8 | 9 | A | B | C | D | E | F | |
---|---|---|---|---|---|---|---|---|
0 | RESET | [SVF9] | user17 | [SHF1] | ||||
1 | [SVF8] | user18 | [SHF2] | |||||
2 | [SVF7] | user19 | [SHF3] | |||||
3 | [SVF6] | user20 | [SHF4] | |||||
4 | SHIFT | INSERT | [SVF5] | user21 | AUX | [SHF5] | ||
5 | DELETE | [SVF4] | user22 | [SHF6] | ||||
6 | CAN | ALTER | [SVF3] | user23 | [SHF7] | |||
7 | ALT | [SVF2] | user24 | [SHF8] | ||||
8 | ? | INPUT | [SVF1] | user25 | POS | [SHF9] | ||
9 | ? | CALC | user26 | PROG | [SHF10] | |||
A | ? | HELP | user27 | OFFSET SETTING | ||||
B | ? | CTRL | user28 | SYSTEM | ||||
C | ABC/abc | user29 | MESSAGE | |||||
D | user30 | GRAPH | ||||||
E | Page? | user31 | CUSTOM | [FR] | ||||
F | Page? | user32 | CUSTOM2 | [FL] |
Note:
Some key codes are not defined on FANUC's standard keyboard, so those keys are displayed in the Operation History Screen on CNC as follows. (Preceding "P_" means that the key is recorded by this function. In Series 30i/31i/32i, 0i-D/F and PMi-A, P_ does not display.)
Key code | Displaying form in the Operation History Screen(16i/18i/21i) | Displaying form in the Operation History Screen(30i/31i/32i,0i-D/F,PMi-A) |
---|---|---|
0x10-0x1F | P_ | 0x10-0x1F |
0x5E( ^ ) | 0x5E | |
0x60( ` ) | P_ | 0x60 |
0x7B( { ) | P_; | 0x7B |
0x7C( | ) | P_< | 0x7C |
0x7D( } ) | P_= | 0x7D |
0x7E( ~ ) | P_> | ~ |
0x9B | P_<POS> | <CTRL> |
0xD0 | P_<mark> | 0xD0 |
0xD1 | P_<FAPT> | 0xD1 |
0xD2 | P_<SF0> | 0xD2 |
0xD3 | P_<SF1> | 0xD3 |
0xD4 | P_<SF2> | 0xD4 |
0xD5 | P_<SF3> | 0xD5 |
0xD6 | P_<SF4> | 0xD6 |
0xD7 | P_<SF5> | 0xD7 |
0xD8 | P_<SF6> | 0xD8 |
0xD9 | P_<SF7> | 0xD9 |
0xDA | P_<SF8> | 0xDA |
0xDB | P_<SF9> | 0xDB |
0xDC-0xDF | P_ | 0xDC-0xDF |
Note:
Some key codes are not defined on FANUC's standard keyboard, so those keys are displayed in the Operation History Screen on CNC as follows.
Key code | Displaying form in the Operation History Screen(30i/31i/32i,0i-D/F,PMi-A) |
---|---|
0x10-0x1F | 0x10-0x1F |
0x5E( ^ ) | 0x5E |
0x60( ` ) | 0x60 |
0x7B( { ) | 0x7B |
0x7C( | ) | 0x7C |
0x7D( } ) | 0x7D |
0x7E( ~ ) | ~ |
0x9B | <CTRL> |
0xD0 | 0xD0 |
0xD1 | 0xD1 |
0xD2 | 0xD2 |
0xD3 | 0xD3 |
0xD4 | 0xD4 |
0xD5 | 0xD5 |
0xD6 | 0xD6 |
0xD7 | 0xD7 |
0xD8 | 0xD8 |
0xD9 | 0xD9 |
0xDA | 0xDA |
0xDB | 0xDB |
0xDC-0xDF | 0xDC-0xDF |
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
Return code | Meaning/Error handling |
---|---|
(1) |
This function is not supported by CNC. |
(5) |
The key_code is wrong. |
(6) |
|
(9) |
|
(10) |
The buffer for the history record is full. Wait until the processing for the record ends or retry. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
CNC parameter
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
3112#5
CNC mode
This function can be used in any CNC mode.
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | |||||||||||||||||
T (Turning) | - | ||||||||||||||||
LC (Loader) | - | - | - | - | - | - | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | - | |||||
L (Laser) | - | - | - | - | ||
W (Wire) | - | - |
Power Mate i-D | |
Power Mate i-H | |
Power Motion i-A | H |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.