FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 335

 

  Index      Manuals     FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) B-64693EN-1/01

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     333      334      335      336     ..

 

 

 

FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 335

 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2634 - 

 

#2  EPS

  As the signal for starting external workpiece number search: 

0: 

The automatic operation start signal ST is used. When automatic operation (memory 
operation) is started, a search is made. 

1: 

The external workpiece number search start signal EPNS is used. ST does not start a 
search. 

 

3020 

 

Correspondence between workpiece numbers and program numbers in external workpiece number 

search (PN) 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  -1 to 99 

This parameter has the following meaning according to the value set. 

When a value from 0 to 99 is set 

 

(Program number) = (setting)*100+(workpiece number) 

 

This means that the setting specifies the higher 2 digits of a program number. 

When the value -1 is set 

 

The higher 2  digits of a program number represent the minimum of the existing 
program numbers. 

Example 
 

When workpiece number 21 is specified, program numbers such as O0021, O0121, 
and O0221 are searched for. If O0021 is not found, but O0121 and O0221 are found, 
O0121 is selected as the program number. 

 

NOTE 

 

This parameter is valid when a workpiece number is specified using 
the PN1 to PN16 signals (when bit 1 (EPN) of parameter No. 3006 
is set to 0). 

 

3467 

 

Selection of the target folder among initial folders 

 

 

[Input type]  Parameter input 

 

[Data type]  Byte path 

[Valid data range]  0 to 7, 11 to 20 

This parameter selects a folder to be used for the external workpiece number search 
function, external program number search function, and macro executor program 
reference and write function among the following initial folders: 
0: 

No specification 

1: 

Root folder 

(//CNC_MEM) 

2: 

System folder 

(//CNC_MEM/SYSTEM) 

3: 

MTB-dedicated folder 1  (//CNC_MEM/MTB1) 

4:   

MTB-dedicated folder 2  (//CNC_MEM/MTB2) 

5: 

User folder 

(//CNC_MEM/USER) 

6: 

Path folder 

(//CNC_MEM/USER/PATHn)

 

(Note) 

 

(NOTE)  PATHn: n is the selected path number (1 to the maximum number of 

paths). 

7: 

Common program folder (//CNC_MEM/USER/LIBRARY) 

8 to 10:  Not specified. 
11: 

Path 1 folder 

(//CNC_MEM/USER/PATH1) 

12: 

Path 2 folder 

(//CNC_MEM/USER/PATH2) 

13: 

Path 3 folder 

(//CNC_MEM/USER/PATH3) 

14: 

Path 4 folder 

(//CNC_MEM/USER/PATH4) 

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2635 - 

When “0: No specification” is selected, the following folder is used for each function: 

 

External program number search function 

 

External workpiece number search function 
(Default foreground folder) 

 

Macro executor program reference and write function 
(Default background folder) 

 

NOTE 

 

Any user-created folder cannot be specified. 

 

For example, assume that a user folder named PATH3 is created 
in //CNC_MEM/USER in a 2-path system. User-created folder 
//CNC_MEM/USER/PATH3 cannot be specified by specifying 13 in 
this parameter. 

 

Alarm and message 

Number 

Message 

Description 

DS0059 

SPECIFIED NUMBER NOT FOUND 

The program corresponding to the specified workpiece No. 
could not be found. 

 

16.6 

EXTERNAL KEY INPUT 

Overview 

MDI key codes can be sent from the PMC to CNC by means of interface signals. This allows the CNC to 
be controlled in the same way as when the operator performs MDI key operation. 
 

Signal 

  - 

Signal list 

Control is realized by exchanging the following interface signals (Table 16.6 (a)) between the PMC and 
CNC: 

Table 16.6 (a) 

Signal name 

Abbreviation 

External key input mode selection signal (input) 

ENBKY 

Key code signals (input) 

EKC0 to EKC7 

Key code read signal (input) 

EKSET 

Key code read completion signal (output) 

EKENB 

Key input disable signal (output) 

INHKY 

Program screen display mode signal (output) 

PRGDPL 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2636 - 

  - 

Signal detail 

The processing flow in the PMC is shown Fig. 16.6 (a). 

 

(START) 

< EKSET = EKENB >

 

Set key code

 

Invert EKSET

 

< Has key input ended? >

 

< INHKY = “0” >

 

< INHKY = “0” > 

< EKSET = EKENB > 

Set ENBKY = “0”

 

(END) 

1)  Set the external key input control 

 

Set ENBKY = “1” 

2)  Check whether a key code can be set. 

3)    When a key code can be set: 

 

(1) Set the key code to be input. 

 

(2) Invert the EKSET signal to instruct the CNC to read   

      the key code. 

4)  Repeat the operation for the key data to be input

 

5)  After reporting the last data, check that the CNC 

has read the key data. 

6)  Release external key input control mode. 

no

 

yes

 

no

 

no

 

no

 

yes

 

yes

 

yes

 

no

 

yes

 

 

Fig. 16.6 (a) 

 

NOTE 

 

Read processing is controlled by exclusive-ORing (XOR) the key code read 
signal (EKSET) with the read completion signal (EKENB). When the EKSET and 
EKENB signals differ in their logic, the CNC reads the input key code. Once 
reading has been completed, the CNC inverts the EKENB signal to match its 
logic with that of the EKSET signal. 

 

In the PMC, on the other hand, a new key code cannot be set while the EKSET 
and EKENB signals differ in their logic. 

 

External key input mode selection signal ENBKY<G066.1> 

  [Classification]  Input signal 
 

[Function]  While this signal is turned on “1”, external key input control is enabled. In external key 

input control mode, any MDI key operations are ignored. 

 

NOTE 

1  When ENBKY is set to “1” to enable external key input control, key 

code input based on the C Language Executor is also ignored. 

2  Key codes input with the external key input function can be read by 

the macro executor and C Language Executor. 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2637 - 

NOTE 

3  Even when external key input control is enabled, pressing the 

 

 

key on the MDI keyboard 

 

for 5 seconds can produce a hard copy of the screen. 

 

Pressing the 

 

  key while a hard copy of the screen is being 

produced can cancel the production of a hard copy of the screen. 

 

Even if the key code of the 

 

  key is input with the external key 

input function, the production of a hard copy of the screen cannot 
be stopped. 

 

Key code read signal EKSET<G066.7> 

  [Classification]  Input signal 
 

[Function]  This signal instructs the CNC to read the input key code. 

If the logical state of this signal is opposite to the logical sate of the key code read 
completion signal EKENB, a key code read is specified.   

 

Key code signals EKC0 to EKC7<G098> 

  [Classification]  Input signal 
 

[Function]  These signals set an input key code. 

 

Key input disable signal INHKY<F053.0> 

  [Classification]  Output signal 
 

[Function]  While this signal is “1”, no key code is accepted in external key input control mode. 

 

[Output cond.]  This signal is set to “1” during program editing or program input/output. 

 

Program screen display mode signal PRGDPL<F053.1> 

  [Classification]  Output signal 
 

[Function]  This signal posts whether the CNC is displaying the program screen. 

 

[Output cond.]  This signal is set to “1” when the program screen is displayed. 

 

Key code read completion signal EKENB<F053.7> 

  [Classification]  Output signal 
 

[Function]  This signal reports that the CNC has read a key code. 

 

[Output cond.]  When the CNC completes key code read operation, the logical state of this signal is set to 

the same state as for the key code read signal EKSET. 

 

Signal address 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

G066 

 

EKSET 

 

 

 

 

 

ENBKY 

 

 

G098 

 

EKC7 

EKC6 

EKC5 

EKC4 

EKC3 

EKC2 

EKC1 

EKC0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

F053 

 

EKENB 

 

 

 

 

 

PRGDPL 

INHKY 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2638 - 

MDI key code 

Codes in the table are given in hexadecimal. For example,   
 

 

   corresponds to 41H in hexadecimal. 

 

 

    corresponds to 90H in hexadecimal. 

 

  - 

MDI Key Code Table (00H to 7FH) 

 

 

 

Space 

 

 

 

 

 

 

 

 

“ 

(Double-quote)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

‘ 

(Single-quote) 

 

 

 

 

 

 

TAB 

 

 

 

(EOB) 

 

(Colon) 

 

 

 

 

(Semicolon

 

 

 

 

(Comma) 

¥ 

 

 

 

 

(Minus) 

 

 

 

 

(Period) 

 

 

 

 

(Underline) 

 

 

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2639 - 

  - 

MDI Key Code Table    (80H to FFH) 

 

 

RESET 

[VF9] 

(Note 3) 

 

 

 

 

[F0] 

(Note 2) 

 

 

[VF8] 

(Note 3) 

 

 

 

 

[F1] 

(Note 2) 

 

 

[VF7] 

(Note 3) 

 

 

 

 

[F2] 

(Note 2) 

 

 

[VF6] 

(Note 3) 

 

 

 

 

[F3] 

(Note 2) 

SHIFT 

INSERT 

[VF5] 

(Note 3) 

 

 

 

AUX 

[F4] 

(Note 2) 

 

DELETE 

[VF4] 

(Note 3) 

 

 

 

 

[F5] 

(Note 2) 

CAN 

ALTER 

[VF3] 

(Note 3) 

 

 

 

 

[F6] 

(Note 2) 

 

ALT 

[VF2] 

(Note 3) 

 

 

 

 

[F7] 

(Note 2) 

Cursor 

 

INPUT 

[VF1] 

(Note 3) 

 

 

 

POS 

[F8] 

(Note 2) 

Cursor 

 

 

 

 

 

 

PROG 

[F9] 

(Note 2) 

Cursor 

 

HELP 

 

 

 

 

OFFSET 

SETTING 

 

Cursor 

 

CTRL 

 

 

 

 

SYSTEM 

 

 

ABC/abc 

 

 

 

 

MESSAGE 

 

 

 

 

 

 

 

GRAPH 

(CUSTOM) 

(Note 1) 

 

PAGE 

 

 

 

 

 

 

CUSTOM 

(Note 1) 

[FR] 

(Note 2) 

PAGE 

 

 

 

 

 

 

CUSTOM2 

[FL] 

(Note 2) 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2640 - 

NOTE 

1  For the small keyboard, 0EDH is assigned to 

 

 

For the standard keyboard, 0EDH is assigned to 

 

. 0EEH is assigned to 

 

2  Handling of the soft keys 
 

[F0] to [F9], [FR], and [FL] in the key code table are the key codes for the soft 
keys. They are associated with the MDI keys as shown below. 

 
 

Key configuration for 7-soft key type LCD, or etc. : 5 keys + 2 keys ([F0] to [F4] 
and [FR], [FL]) 

 

 

 

[F4] 

[F3] 

[F2] 

[F1] 

[F0] 

[FR] 

[FL] 

 

 
 

Key configuration for 12-soft key type LCD, or etc.: 10 keys + 2 keys ([F0] to [F9] 
and [FR], [FL]) 

 

 

 

[F9] 

[F8] 

[F7] 

[F1] 

[F0] 

[FR] 

[FL] 

. . . . . . 

 

 
3  Handling of the vertical soft keys 
 

[VF1] to [VF9] in the key code table are the key codes for the vertical soft keys.   
From the top to the bottom, [VF1] to [VF9] are arranged. 

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2641 - 

16.7 

ONE TOUCH MACRO CALL 

Overview 

This function enables the following three operations in pushing the switch installed in the machine only 
by the change in a minimum LADDER program. 
 
(1)  Changes to MEM mode. 
(2)  Execution of macro program registered in memory. 
(3)  Return to the mode before macro program is executed. 

And the program which had been selected before macro program is executed is automatically 
selected. 

 
This function is enabled only in the reset status (not during a reset). That is, this function cannot be used 
during automatic operation (including stopping and suspending of automatic operation), a reset, or an 
emergency stop.   
 

Explanation 

  - 

Sequence between PMC and CNC 

The signal must be processed between PMC and CNC according to the following procedures. 
 

   

  Start 

(1)  The macro call start signal MCSTx <Gn512.0 to Gn513.7> is input from PMC to CNC based on the 

signal from the macro call switch installed in the machine. 

 

   

  Mode change 

(2)  CNC outputs the mode notification signal and the mode change request signal MCRQ <Fn512.1> 

when the macro call start signal (MCSTx) is detected. At this time, MEM mode is notified as the 
mode notification signal. The macro call executing signal MCEXE <Fn512.0> and Call program 
confirmation signal MCEXx <Fn514.0 toFn515.7> are output at the same time.   

(3)  PMC must change the mode based on the signal output in the step of above (2).   
(4)  Set “1” in the mode change completion signal MCFIN <Gn514.0> by PMC when the mode change 

is completed. If this mode is different from that specified from the CNC in (2) or the reset mode, an 
alarm PS5306 occurs.   

 

   

  Execution of macro program 

(5)  When MCFIN signal is set to “1”, CNC executes the macro program.   
 

   

  End of macro program 

(6)  Instruct M02 or M30 at the end of the macro program. 

Moreover, input external reset signal (ERS) or reset&rewind signal (RRW) with M02 or M30 on the 
PMC side.   
Upon completion of the reset, the program selected before execution of the macro is automatically 
selected.  The mode change request signal(MCRQ) and mode notification signals are output at the 
same time. At this time, the mode when macro call start signal (MCSTx) is input is notified as the 
mode notification signal.   

 

   

  Return of mode 

(7)  Change the mode on the PMC side based on the signal output in the step of above (6).   
(8)  Set “1” in Mode change completion signal (MCFIN) on the PMC side when the mode change is 

completed. On the CNC side, the Mode change request signal (MCRQ), the Macro call executing 
signal (MCEXE) and the Call program confirmation signal(MCEXx) are set to “0” concurrently with 
asserting of the Mode change completion signal (MCFIN). The PS5306 alarm is not checked at this 
time. 

 

 

 

 

 

 

 

Content      ..     333      334      335      336     ..