News CNCnetPDM About us Support  
         
  

CNC_WRKEYHISTRY | HISTORY

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.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI cnc_wrkeyhistry(unsigned short FlibHndl, char key_code);

Arguments : HSSB

FlibHndl   [ in ]

Specify the library handle. See "Library handle" for details.

key_code   [ in ]

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.

- 0x10-0x1F (user01-user16)
- 0xD0-0xDF (user17-user32)

  • Series 16i/18i/21i
  • 01234567
    0 user01SP0@P` 
    1 user02!1AQ  
    2 user03"2BR  
    3 user04#3CS  
    4 user05$4DT  
    5 user06%5EU  
    6 user07&6FV  
    7 user08'7GW  
    8 user09(8HX  
    9 user10)9IY  
    AEOBuser11*:JZ  
    B user12+ K[ {
    C user13,<L\ |
    D user14-=M] }
    E user15.>N  ~
    F user16/?O_  

     89ABCDEF
    0 RESET   user17 [SF0]
    1     user18 [SF1]
    2     user19 [SF2]
    3     user20 [SF3]
    4SHIFTINSERT   user21 [SF4]
    5 DELETE   user22 [SF5]
    6CANALTER   user23 [SF6]
    7     user24 [SF7]
    8?INPUT   user25POS[SF8]
    9?    user26PROG[SF9]
    A?HELP   user27OFFSET
    SETTING
     
    B?CALC   user28SYSTEM 
    C     user29MESSAGE 
    D     user30GRAPH 
    EPage?    user31CUSTOM[SFR]
    FPage?    user32FAPT[SFL]

  • Series 30i/31i/32i, 0i-D/F, PMi-A
  • 01234567
    0 user01SP0@P` 
    1 user02!1AQ  
    2 user03"2BR  
    3 user04#3CS  
    4 user05$4DT  
    5 user06%5EU  
    6 user07&6FV  
    7 user08'7GW  
    8 user09(8HX  
    9TABuser10)9IY  
    AEOBuser11*:JZ  
    B user12+;K[ {
    C user13,<L\ |
    D user14-=M] }
    E user15.>N  ~
    F user16/?O_  

     89ABCDEF
    0 RESET[SVF9]  user17 [SHF1]
    1  [SVF8]  user18 [SHF2]
    2  [SVF7]  user19 [SHF3]
    3  [SVF6]  user20 [SHF4]
    4SHIFTINSERT[SVF5]  user21AUX[SHF5]
    5 DELETE[SVF4]  user22 [SHF6]
    6CANALTER[SVF3]  user23 [SHF7]
    7 ALT[SVF2]  user24 [SHF8]
    8?INPUT[SVF1]  user25POS[SHF9]
    9?CALC   user26PROG[SHF10]
    A?HELP   user27OFFSET
    SETTING
     
    B?CTRL   user28SYSTEM 
    C ABC/abc   user29MESSAGE 
    D     user30GRAPH 
    EPage?    user31CUSTOM[FR]
    FPage?    user32CUSTOM2[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 codeDisplaying 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-0x1FP_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-0xDFP_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 codeDisplaying form in the Operation History Screen(30i/31i/32i,0i-D/F,PMi-A)
    0x10-0x1F0x10-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-0xDF0xDC-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
    EW_FUNC
    (1)
    Unavailable
    This function is not supported by CNC.
    EW_DATA
    (5)
    Data error
    The key_code is wrong.
    EW_NOOPT
    (6)
    no option
    EW_PARAM
    (9)
    CNC parameter error
  • The operation history function is invalid.
  • The operation history is not sampled.
  • EW_BUFFER
    (10)
    Buffer full
    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,

      The extended driver/library function is necessary.

    CNC parameter

    This function is related to the following CNC parameter.
    See the manual of CNC parameter for details.

    • Series 16/18/21, 16i/18i/21i
    • 3106#7 (influenced by setting)
      3112#5
    • Series 30i/31i/32i, 0i-D/F, PMi-A
    • 3195#5=0(influenced by setting)

    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)X X H O X X X X X H H H H H H H O
    T (Turning) X X H O X - X X X H H H H H H H O
    LC (Loader) - - - - - - X X X X X X H H H - -

    0i-D0i-F16i18i30i-A30i-B
    P (Punch press)H H X X - H
    L (Laser) - - X - - H
    W (Wire) - - X X H H


    Power Mate i-DX
    Power Mate i-HX
    Power Motion i-AH

    "O" : Both Ethernet and HSSB
    "E" : Ethernet
    "H" : HSSB
    "X" : Cannot be used
    "-" : None

    Note) 0i-C does not support the HSSB function.

    Privacy notice

    This website uses cookies. By continuing to use it you agree to our privacy policy. 

    https://www.inventcom.net/fanuc-focas-library/history/cnc_wrkeyhistry
    Fanuc Focas Library | History | cnc_clearomhis
    Description Clears the external operator's message history data. The specification for Series 30i, 0i-D/F and... [read more]
    cnc_clearomhis
    Fanuc Focas Library | History | cnc_clearophis
    Description Clears the operation history data and the alarm history data. At Series 30i 0i-D/F and PMi-A, the external operator's message history data are also... [read more]
    cnc_clearophis
    Fanuc Focas Library | History | cnc_rdalmhisno
    Description Reads the number of alarm history data. It is necessary to stop sampling the alarm history data by using... [read more]
    cnc_rdalmhisno
    Fanuc Focas Library | History | cnc_rdalmhistry
    Description Reads the alarm history data. The unit of one alarm history data is called a record.... [read more]
    cnc_rdalmhistry
    Fanuc Focas Library | History | cnc_rdalmhistry2
    Description Reads the alarm history data. Please use this function instead of cnc_rdalmhistry for Series 15i.... [read more]
    cnc_rdalmhistry2
    Fanuc Focas Library | History | cnc_rdalmhistry3
    Description Reads the alarm history data. The unit of one alarm history data is called a record.... [read more]
    cnc_rdalmhistry3
    Fanuc Focas Library | History | cnc_rdalmhistry4
    Description Reads the alarm history data. Please use this function instead of... [read more]
    cnc_rdalmhistry4
    Fanuc Focas Library | History | cnc_rdalmhistry5
    Description Reads the alarm history data. Please use this function instead of... [read more]
    cnc_rdalmhistry5
    Fanuc Focas Library | History | cnc_rdhissgnl
    Description Reads the target signal for the operation history. Please use... [read more]
    cnc_rdhissgnl
    Fanuc Focas Library | History | cnc_rdhissgnl2
    Description Reads the target signal for the operation history. Please use this function instead of... [read more]
    cnc_rdhissgnl2
    Fanuc Focas Library | History | cnc_rdhissgnl3
    Description Reads the target signal for the operation history. Please use this function instead of... [read more]
    cnc_rdhissgnl3
    Fanuc Focas Library | History | cnc_rdomhisinfo
    Description Reads the maximum number, current number and maximum string length of external operator's message history data.... [read more]
    cnc_rdomhisinfo
    Fanuc Focas Library | History | cnc_rdomhisno
    Description Reads the number of the external operator's message history data. It is necessary to execute "Stop... [read more]
    cnc_rdomhisno
    Fanuc Focas Library | History | cnc_rdomhistry
    Description Reads the external operator's message history data. Because the external operator's message history data is recorded... [read more]
    cnc_rdomhistry
    Fanuc Focas Library | History | cnc_rdomhistry2
    Description Reads the external operator's message history data. Please use this function for Series 30i, 0i-D/F and PMi-A.... [read more]
    cnc_rdomhistry2
    Fanuc Focas Library | History | cnc_rdophisno
    Description Reads the number of operation history data. It is necessary to stop sampling the operation history data by using... [read more]
    cnc_rdophisno
    Fanuc Focas Library | History | cnc_rdophistry
    Description Reads the operation history data. Please use... [read more]
    cnc_rdophistry
    Fanuc Focas Library | History | cnc_rdophistry2
    Description Reads the operation history data. Please use this function instead of... [read more]
    cnc_rdophistry2
    Fanuc Focas Library | History | cnc_rdophistry3
    Description Reads the operation history data. Please use this function instead of... [read more]
    cnc_rdophistry3
    Fanuc Focas Library | History | cnc_rdophistry4
    Description Reads the operation history data. Please use this function instead of... [read more]
    cnc_rdophistry4
    Fanuc Focas Library | History | cnc_startomhis
    Description Restarts logging the external operator's message history data. The specification for Series 30i,... [read more]
    cnc_startomhis
    Fanuc Focas Library | History | cnc_startophis
    Description Restarts sampling the operation history data and the alarm history data of CNC. In Series 30i, 0i-D/F... [read more]
    cnc_startophis
    Fanuc Focas Library | History | cnc_stopomhis
    Description Stops logging the external operator's message history data. The specification for Series 30i,... [read more]
    cnc_stopomhis
    Fanuc Focas Library | History | cnc_stopophis
    Description Stops sampling the operation history data and the alarm history data of CNC. In Series 30i/31i/32i, 0i-D/F and PMi-A, the... [read more]
    cnc_stopophis
    Fanuc Focas Library | History | cnc_wrhissgnl
    Description Writes the target signal for the operation history. Please use... [read more]
    cnc_wrhissgnl
    Fanuc Focas Library | History | cnc_wrhissgnl2
    Description Writes the target signal for the operation history. Please use this function instead of... [read more]
    cnc_wrhissgnl2
    Fanuc Focas Library | History | cnc_wrhissgnl3
    Description Writes the target signal for the operation history. Please use this function instead of... [read more]
    cnc_wrhissgnl3
    Fanuc Focas Library | History | flist_History
    CNC: Function related to history data... [read more]
    flist_History
    Modified: 2018-06-11