FANUC Series 16i/18i/21i Additional Manual Page 6

Additional Manual
Read message from FOCAS1
Read operator's message on key-in line
Function Name:
cnc_rdlnopmsg
Declaration:
#include "fwlib32.h"
FWLIBAPI short WINAPI cnc_rdlnopmsg(unsigned short FlibHndl, char *msg);
Description:
Reads the operator's message on the key-in line which is displayed by the system variable
#3018.
Arguments:
FlibHndl [in]
Specify the library handle.
msg [out]
Specify the pointer to store the operator's message.
The operator's message is set with ASCII character.
The buffer size needs the 128 characters.
The NULL ('¥0') is set at the end of strings.
When the operator message is not displayed, only NULL ('¥0') character is set.
Return:
EW_OK is returned on successful completion, otherwise any value except EW_OK is
returned. The major error codes are as follows.
(As for the details, see "1.1.5 Return status of Data window function")
--------------------------------------------------------------
Return code Meaning/Error handling
--------------------------------------------------------------
EW_NOOPT no option
Others: EW_BUS, EW_SYSTEM2, EW_HSSB, EW_HANDLE,EW_VERSION,
EW_UNEXP, EW_SYSTEM, EW_PARITY, EW_MMCSYS
CNC option:
The options of this function and the extended driver/library function are necessary.
A-90124E
Edit
Apprv.Desig.
Sheet
Title
Draw
No.
Date
Design
Descri
p
tion
Date
FANUC Series 16i/18i/21i –MB/TB, 18i –MB5
Operator message display by custom macro
Specifications
2005.11.11
6/8

Contents Summary of FANUC Series 16i/18i/21i Additional Manual

  • Page 1FANUC Series 16i/18i/21i–MB/TB FANUC Series 18i–MB5 Operator message display by custom macro Specifications - contents - 1 GENERAL ........................................................................................................................................................ 2 2 SPECIFICATIO
  • Page 21 General The message string of arbitrary characters that is commanded by the system variable #3018 can be displayed on the CNC screen. The message string of arbitrary characters can be displayed. 2 Specification Format #3018 = 1 (xxxx) ; xxxx : Message characters The arbitrary characters, which are
  • Page 3The previous message is displayed again. #3018 = 1 ; Note If system variable #3018 is not commanded after power on and “#3018 = 1 ;” is commanded, no message is displayed. When the value except “1” is commanded, the message is displayed. The message is not displayed at the “0” value command and disp
  • Page 4Warning message When Warning message is displayed, the message display is not done. Sample O0001 (#3018 OPERATOR MESSAGE) ; : #3018 = 1 (STEP-2) ; “STEP-2” is displayed. : #3018 = 0 ; “STEP-2” is cleared. : #3018 = 1 ; “STEP-2” is displayed again. : #3018 = 1 (STEP-3) ; “STEP-3” is displayed instead
  • Page 5CNC display of 7 softkey type (“COMPLETE” is displayed.) “COMPLETE” is displayed with red color. Reading/Writing of #3018 from FOCAS1, Execution macro When the system variable #3018 is read from FOCAS1 or execution macro, the reading value is the same at reading from macro program. i.e. When the mes
  • Page 6Read message from FOCAS1 • Read operator's message on key-in line Function Name: cnc_rdlnopmsg Declaration: #include "fwlib32.h" FWLIBAPI short WINAPI cnc_rdlnopmsg(unsigned short FlibHndl, char *msg); Description: Reads the operator's message on the key-in line which is displayed by the system vari
  • Page 7CNC parameter: This function is not related to CNC parameter. CNC mode: This function can be used in any CNC mode. 3 Note 1. The message is not displayed when the black and white CRT is used or the parameter NVG (No.3119#7) is set to “1”. 2. The system variable #3018 can not be commanded in conversa
  • Page 84 Parameter #7 #6 #5 #4 #3 #2 #1 #0 6005 MGC [Data type] Bit MGC The value of the system variable #3018 is 0 : Not cleared by reset operation. 1 : Cleared by reset operation. Note When this parameter is set , the power must be turned off before operation is continued. 5 Alarm No. Message Content 538