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

 

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

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     330      331      332      333     ..

 

 

 

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

 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2610 - 

  - 

Signal status screen   

 

Control axis select signal 

Displays the status of control axis select signal EAX <Gn136>. 

 

Alarm signal 

Displays the status of alarm signal EIALg. 

 

Reset signal 

Displays the status of reset signal ECLRg. 

 

Axis move signal 

Displays the status of axis moving signal EGENg. 

 

ECKZ signal 

Displays the status of following zero checking signal ECKZg. 

 

In-position signal 

Displays the status of in-position signal EINPg. 

 

Aixs stop signal 

Displays the status of axis control temporary stop signal ESTPg. 

 

Distance to go 

Displays the remaining traverse distance of the command being 
executed.   

 

NOTE 

1  When the control axis select signal is 0, the remaining traverse distance is 

indicated as "---". 

2  When the associated axis is being moved by other than the ladder or macro 

executor, the remaining traverse distance is indicated as "---". 

 

  - 

Executing buffer display screen   

 

Command 

Displays axis control command signals EC0g to EC6g in the executing 
buffer.   

 

Subcommand 

Displays a subcommand number in the executing buffer.   

 

Feedrate signal 

Displays axis control feedrate signals EIF0g to EIF5g in the executing 
buffer.   

 

Data signal 

Displays axis control data signals EID0g to EID31g in the executing 
buffer.   

 

Subcommand data 1 (4)  Four-byte information beginning with [subcommand start address + 4] in 

the executing buffer is displayed. 

 

Subcommand data 2 (4)  Four-byte information beginning with [subcommand start address + 8] in 

the executing buffer is displayed. 

 

Subcommand data 3 (4)  Four-byte information beginning with [subcommand start address + 12] in 

the executing buffer is displayed. 

 

Subcommand data 4 (4)  Four-byte information beginning with [subcommand start address + 16] in 

the executing buffer is displayed. 

 

Subcommand data 5 (4)  Four-byte information beginning with [subcommand start address + 20] in 

the executing buffer is displayed. 

 

Subcommand data 6 (4)  Four-byte information beginning with [subcommand start address + 24] in 

the executing buffer is displayed. 

 

Subcommand data 7 (4)  Four-byte information beginning with [subcommand start address + 28] in 

the executing buffer is displayed. 

 

NOTE 

1  What was specified is displayed only when the buffer is valid. When execution is 

completed or the buffer is invalid, "---" is displayed.   

2  If the PMC axis does not move due to an invalid command etc. or an alarm is 

issued during execution, what was specified is displayed on this screen. This 
indication is cleared when the ECLRg signal turns on or an emergency stop 
occurs. After that "---" is displayed.   

3  When the associated axis is being moved by other than the ladder or macro 

executor, "---" is displayed.   

4  The speed signal is displayed in decimal with no sign.   

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2611 - 

  - 

Waiting buffer display screen 

 

Command 

Displays axis control command signals EC0g to EC6g in the waiting 
buffer. 

 

Subcommand 

Displays a subcommand number in the waiting buffer. 

 

Feedrate signal 

Displays axis control feedrate signals EIF0g to EIF5g in the waiting buffer. 

 

Data signal 

Displays axis control data signals EID0g to EID31g in the waiting buffer.   

 

Subcommand data 1 (4)  Four-byte information beginning with [subcommand start address + 4] in 

the waiting buffer is displayed.   

 

Subcommand data 2 (4)  Four-byte information beginning with [subcommand start address + 8] in 

the waiting buffer is displayed.   

 

Subcommand data 3 (4)  Four-byte information beginning with [subcommand start address + 12] in 

the waiting buffer is displayed.   

 

Subcommand data 4 (4)  Four-byte information beginning with [subcommand start address + 16] in 

the waiting buffer is displayed.   

 

Subcommand data 5 (4)  Four-byte information beginning with [subcommand start address + 20] in 

the waiting buffer is displayed.   

 

Subcommand data 6 (4)  Four-byte information beginning with [subcommand start address + 24] in 

the waiting buffer is displayed.   

 

Subcommand data 7 (4)  Four-byte information beginning with [subcommand start address + 28] in 

the waiting buffer is displayed.   

 

NOTE 

1  What was specified is displayed only when the buffer is valid. When the buffer is 

invalid, "---" is displayed.   

2  When the associated axis is being moved by other than the ladder or macro 

executor, "---" is displayed.   

3  The speed signal is displayed in decimal with no sign. 

 

  - 

Input buffer display screen   

 

Command 

Displays axis control command signals EC0g to EC6g in the input buffer.   

 

Subcommand 

Displays a subcommand number in the input buffer. 

 

Feedrate signal 

Displays axis control feedrate signals EIF0g to EIF5g in the input buffer.   

 

Data signal 

Displays axis control data signals EID0g to EID31g in the input buffer.   

 

Subcommand data 1 (4)  Four-byte information beginning with [subcommand start address + 4] in 

the input buffer is displayed.   

 

Subcommand data 2 (4)  Four-byte information beginning with [subcommand start address + 8] in 

the input buffer is displayed.   

 

Subcommand data 3 (4)  Four-byte information beginning with [subcommand start address + 12] in 

the input buffer is displayed.   

 

Subcommand data 4 (4)  Four-byte information beginning with [subcommand start address + 16] in 

the input buffer is displayed.   

 

Subcommand data 5 (4)  Four-byte information beginning with [subcommand start address + 20] in 

the input buffer is displayed.   

 

Subcommand data 6 (4)  Four-byte information beginning with [subcommand start address + 24] in 

the input buffer is displayed.   

 

Subcommand data 7 (4)  Four-byte information beginning with [subcommand start address + 28] in 

the input buffer is displayed.   

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2612 - 

NOTE 

1  What was specified is displayed only when the buffer is valid. When the buffer is 

invalid, "---" is displayed.   

2  If an alarm occurs due to a command error, what was specified is displayed on 

this screen. This indication is cleared when the ECLRg signal turns on or an 
emergency stop occurs. Then, "---" is displayed.   

3  When the associated axis is being moved by other than the ladder or macro 

executor, "---" is displayed.   

4  The speed signal is displayed in decimal with no sign. 

 

Parameter 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

3137 

 

EAC 

 

 

 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit 

 

 

#7  EAC

  The PMC axis status display screen is: 

0: 

Not displayed. 

1: 

Displayed. 

 

16.2 

EXTERNAL DATA INPUT 

Overview 

In the external data input function, the CNC can be operated by the external data which use the signal of 
PMC. 
This function is an optional function. 
 
There are following functions in the external data input. 

External tool offset 

External program number search 

External work coordinate system shift 

External machine zero point shift 

External alarm message 

External operator message 

Substitution of the number of machined parts and number of required parts 

 

NOTE 

 

Ladder sequence of the external data input can be easily incorporated by using 
PMC function. Functional instruction EXIN(External Data Input: SUB 42) and 
functional instruction DISPB(Display Message: SUB 41) that can be easily 
implemented the external data input are provided. 

 

For details on functional instruction EXIN and functional instruction DISPB, refer 
to the PMC Programming Manual (B-64513EN).   

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2613 - 

Explanation 

  - 

The basic external data input procedure 

The following signals in the Table 16.2 (a) are used to send data from the PMC to the CNC. 
 

Table 16.2 (a)

 

Signal name 

Input signal 

Output signal 

Address signal for external data input   

EA0 to EA6 

 

Data signal for external data input   

ED0 to ED31 

 

Read signal for external data input 

ESTB 

 

Read completion signal for external data input 

 

EREND 

Search completion signal for external data input 

 

ESEND

 

 
The basic external data input procedure is described below: 
 
(1)  The PMC sets the address signals, EA0 to EA6 that indicate the data type and data signals ED0 to 

ED31. 

(2)  The PMC sets the read signal ESTB to “1”. 
(3)  When the ESTB signal is set to “1”, the control unit reads the address. 
(4)  After reading the address, the control unit sets the read completion signal EREND to “1”. 
(5)  When the EREND signal is set to “1”, the PMC sets the ESTB signal to “0”. 
(6)  When the ESTB signal is set to “0”, the control unit sets the EREND signal to “0”. This completes 

the data input procedure. New data can now be entered. 

 
The timing diagram is shown below (Fig. 16.2 (a)): 
 

 

EA0-EA6 

ED0-ED15 

ESTB 

EREND 

ESEND 

Only for external program number search 

End of search 

 

Fig. 16.2 (a) Timing diagram of External data input 

 

Table 16.2 (b) 

No. 

Item 

E
S
T

E
A

E
A

E
A

E
A

E
A

E
A

E
A

ED31 to ED16 

ED15 to ED0 

External program number 

0  X  X  X  X 

Program number (BCD 8 digits with unsign) 

External tool offset 

1  X  X  X  X 

Offset value (BCD 8 digits with sign *1) 

Extended external machine 

zero point shift 

axis code 

Shift value (BCD 8 digits with sign *1) 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2614 - 

No. 

Item 

E
S
T

E
A

E
A

E
A

E
A

E
A

E
A

E
A

ED31 to ED16 

ED15 to ED0 

External machine zero 

point shift 

axis code 

 

Extended external machine 

zero point shift value(binary) 

-9999 to +9999 *2 

Alarm set 

 

Alarm No. (binary) 

0 to 999 (0 to 4095) 

Alarm clear 

 

Alarm No. (binary) 

0 to 999 (0 to 4095) 

Operator message   

set 

 

message No. (binary) 

0 to 999 (0 to 4095) 

Operator message 

clear 

 

message No. (binary) 

0 to 999 (0 to 4095) 

Message 

0  X  1 

 

character(Character code) 

Substitute No. of parts 

required 

 

No. of parts required 

(BDC4 digits with unsign) 

Substitute No. of parts 

machined

 

1

 

1

 

1

 

0

 

0

 

0

 

0

 

1

 

 

No. of parts machined 

(BDC4 digits with unsign)

 

 

NOTE 

1  When bit 3 (EED) of parameter No. 6301 is set to 0, BCD 4 digits are used. 
2  By setting bit 7 (EEX) of parameter No. 6300 to 1, a shift value of 

±

0 to 

999999999 can be specified using ED0 to ED31. 

 

NOTE 

 

For axis code, refer to the Table 16.2 (c). 

 

Table 16.2 (c) 

Axis 

Axis code 

EA3 

EA2 

EA1 

EA0 

1st axis 

2nd axis 

3rd axis 

4th axis 

5th axis 

6th axis 

7th axis 

8th axis 

9th axis 

10th axis 

11th axis 

12th axis 

13th axis 

14th axis 

15th axis 

16th axis 

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2615 - 

  - 

External Program Number Search 

A program number (1 to 9999) is specified from an extended source and is selected in the CNC memory. 
For machines that can load several kinds of workpieces, this function can automatically select the 
program to be executed corresponding to a specific workpiece. 
Data for the external program number search is accepted regardless of CNC mode, but the search 
execution can be made only in the reset state in MEM mode. 
The ESEND signal switches from “0” to “1” on completion of external program number search. This 
signal does not turn to “0” unless the cycle start or reset signal is input, or another search is made. Use 
ESEND to initiate a cycle start signal after the search. 
Because a search operation is deferred until a reset occurs in the MEM mode, an external program 
number search  attempted during a CNC operation (the OP signal is “1”) results in the program being 
started immediately after the end of an automatic operation in a sequence in which the automatic 
operation is started by checking only the ESEND signal (search completion  signal for external data 
input). 
For this reason, using the bit 3 (ESC) of parameter No. 6300 enables an external program number search 
to be canceled at a CNC reset. Concretely, if a reset signal is input between the time the ESTB signal 
(read signal for  external data input) is input and the time a search would be executed, setting the bit 3 
(ESC) of parameter No. 6300 to 1 keeps the search from being executed. At the same time, the controller 
uses the ESCAN (search cancel signal for external data input) signal to inform the PMC that the search 
has been canceled. 
The ESEND signal (search completion signal for external data input) will not become  “1”, because the 
search is canceled. 
The controller checks the state of the RST (NC reset) signal for a reset input between the rising edge of 
the ESTB signal (read signal for external data input) and the start of the search. Concretely, the controller 
cancels the external program number search if the RST (NC reset) signal becomes “1” even momentarily 
in this period. The ESCAN signal (search cancel signal for external data input) becomes “1”  at the 
beginning of the search. 
However, it becomes “0” when the next search is executed (for example, when a cycle start or reset signal 
is input), similarly to the ESEND signal (search completion signal for external data input). 
 

 

Read signal for external data input 

(ESTB) 
Read completion signal for external 
data input (EREND) 

If RST becomes “1” even momentarily in this period 

Reset signal 

(RST) 

ESEND does not become “1”. 

Search completion signal for external 
data input (ESEND) 

ESCAN becomes “1” at the beginning of a search 

Search cancel signal for external data 
input (ESCAN) 

ESTB positive-going edge

 

Beginning of search

 

 

Fig. 16.2 (b) Timing diagram of External data input 

 
This function searches the following folder for a target program: 
When parameter No. 3467 is set to 0: 

Searches the default foreground folder for the program. 

When parameter No. 3467 is set to other than 0: 

Searches the initial folder specified in parameter No. 3467 for the program. 

 

16. PMC CONTROL FUNCTION

 

 

B-64693EN-1/01

 

- 2616 - 

NOTE 

1  The external program number search is available when bit 4 (ESR) of parameter 

No. 6300 is set to 1. 

2  In reset state the automatic operation lamp is off. If the start button is pushed in 

the cycle operation stop or hold state, search execution starts from the actual 
position indicated by the pointer. 

3  When there is no program stored in memory corresponding to the set program 

number, the alarm DS1128 occurs. 

4  When the program number search is set to 0, the alarm DS0059 occurs. 
5  Data for the external program number search is accepted regardless of the 

mode, but the search execution can be made only in the reset state. Therefore, 
in case that the PMC sequence, which the cycle start is executed by checking 
search completion signal for external data input only, is used, if the external 
program number search is commanded twice, the program is executed twice. 
( When CNC accepts a command of the program number search, the command 
is not cancelled even if CNC becomes reset state by external reset signal and so 
on.) (See Fig. 16.2 (c).) 
If the program execution after reset becomes a problem, make the PMC 
sequence not to execute the cycle start after reset. 

6  Parameter No. 3467 is also used by the “external workpiece number search”. 
7  Parameter No. 3467 is also used by the “macro executor program reference and 

write function”. 

 

 

Read signal for external data 
  input (ESTB) 

2nd command 

Read completion signal for 
external data input (EREND) 

Search command is kept.

 

Search completion signal for 
external data input (ESEND) 

2nd program 
search 

2nd program execution 

NC reset 

Cycle start signal 
(ST) 

 

Cycle start lamp signal 
(STL) 

 
Automatic operation signal 
(OP) 

 

 

 

External reset signal 
(ERS) 

Reset signal 
(RST) 

 

 

Fig. 16.2 (c) External program search and program execution after NC reset 

 

B-64693EN-1/01

 

 

16. PMC CONTROL FUNCTION

 

- 2617 - 

  - 

External Tool offset 

These signals provide for changing the tool compensation value via the PMC. When the offset number is 
specified by a part program, data input from the PMC is added to the offset value. The offset value can 
also be used as input data itself by specifying the input signal. 

When the machine tool is equipped with automatic tools or workpiece measuring functions, the offset 
value can be corrected using this function, by inputting the error from the correct value into the CNC via 
PMC. 
If the tool compensation value is externally input when offset number 0 is specified in a part program (an 
offset cancel) in the lathe turning machine, the workpiece  coordinate system shifts by the entered 
quantity. 

The external tool offset range is +/ 

-

 79999999. 

 

NOTE 

1  When data is out of range, the alarm DS1128 occurs. 
2  When the data of ineffective function is specified, the alarm DS1121 occurs. 
3  If bit 3 (EED) of parameter No. 6301 is set to 1, the Data area can be specified 

by 32bit data specification. 
Under the setting, the external tool offset range is up to +/ - 79999999. 

 

 

Data specification for external tool offset (For M series) 

Address 

Data 

*

Note

 

31 

30 

. . . 

E

E

a/i 

 

g/w 

r/l 

Sign 

 

 

 

0: +  Specified by BCD 8-digit code 

 

1: 

-

  (0 to +/

79999999) 

*

Note

 

Incremental specification 

a/i 

Absolute specification 

Specification of tool wear offset value 

g/w 

Specification of tool geometry offset value 

Specification of tool length compensation value 

r/l 

Specification of cutter compensation value 

*

Note

: If the bit 3 (EED) of parameter No. 6301 is set to 0, the offset value is specified by using 

signals ED0 to ED14, the sign is decided by the signal ED15. 

 

The range of data is available to specify the data from 0 to +/- 7999. 

 

Offset value 

 

 

 

 

 

 

 

 

 

Content      ..     330      331      332      333     ..