Sie sind auf Seite 1von 147

FANUC LADDER-III

SUPPLEMENTARY OPERATOR'S MANUAL

Type of applied technical documents

Name FANUC LADDER-III OPERATOR'S MANUAL


Spec.No./Ed. B-66234EN/06

Summary of Change

New,
Add, Applicable
Group Name/Outline
Correct, Date
Delete
- Addition of Function Block function
Basic - Support of Windows Vista
Dec. 2007
Add
Function - Support of cursor display of Monitor screen or later

Optional
Function

Unit

Maintenance
Parts

Notice

Correction

Another

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 1/147
FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

Contents

1 Outline .....................................................................................................................................................3
2 Applied Software .....................................................................................................................................4
3 Function Block function ...........................................................................................................................5
3.1 Changes PMC models and supported functions. ............................................................................5
3.2 PMC Model Abbreviations ...............................................................................................................7
3.3 CREATING FUNCTION BLOCKS.................................................................................................14
3.4 CALLING FUNCTION BLOCKS ....................................................................................................39
3.5 COMPILE.......................................................................................................................................58
3.6 DECOMPILE..................................................................................................................................62
3.7 MNEMONIC CONVERSION .........................................................................................................65
3.8 PRINTING......................................................................................................................................83
3.9 DIAGNOSIS...................................................................................................................................95
3.10 CREATING FUNCTION BLOCK LIBRARIES ...............................................................................99
3.11 COMMAND LINE EXECUTION FUNCTION...............................................................................113
3.12 ERROR MESSAGES...................................................................................................................123
4 Others ..................................................................................................................................................129
4.1 Modifies description according to addition of function block .......................................................129
4.1.1 Changes the Duplicate Coil.....................................................................................................129
4.1.2 Changes the PMC type changed and save ............................................................................130
4.1.3 Changes the ladder program difference display function........................................................132
4.1.4 Changes the cross-reference display function........................................................................134
4.1.5 Changes the mnemonic editing...............................................................................................136
4.1.6 Changes the command line execution function ......................................................................137
4.2 Support of Windows Vista ...........................................................................................................138
4.3 Cursor display of Monitor screen.................................................................................................144
4.4 Changes soft key [F10]................................................................................................................146
4.5 Storing sequence programs in the PMC......................................................................................146
4.6 Checking on use of L and P address...........................................................................................147

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 2/147
1 Outline
The FANUC PMC programming tool "FANUC LADDER-III" has been revised as listed below.

The following functions have been added.


- Addition of Function Block function
- Support of Windows Vista
- Support of cursor display of Monitor screen

This manual is a supplementary manual for the above "Contents of change".


Other explanation (existing functions, operation, etc.) are described in the following manual.
Name of Manual Spec. No.
FANUC LADDER-III OPERATOR'S MANUAL B-66234EN

In this document, following abbreviations are used.


Name Abbreviation
Series 30i/31i/32i-MODEL A 30i/31i/32i-A
Series 32i-MODEL A 32i-A
FANUC PMC-MODEL SA1 SA1
FANUC PMC-MODEL SB7 SB7

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 3/147
2 Applied Software

The contents of change described herein apply to the following software.

FANUC LADDER-III
Software Specification Version
FANUC LADDER-III A08B-9210-J505 5.60 or later
FANUC LADDER-III Upgrade A08B-9210-J506 5.60 or later

CNC System software


Software Drawing number Series Edition
Series 30i/ 300i/ 300is-MODEL A A02B-0303-H501#G003 G003
CNC System Software A02B-0303-H501#G013 G013
A02B-0303-H501#G023 G023
A02B-0303-H501#G033 G033
Series 31i/ 310i/ 310is-MODEL A A02B-0307-H501#G103 G103
21 or later: schedule
CNC System Software A02B-0307-H501#G113 G113
Series 31i/ 310i/ 310is-MODEL A5 A02B-0306-H501#G123 G123
CNC System Software A02B-0306-H501#G133 G133
Series 32i/ 320i/ 320i-MODEL A A02B-0308-H501#G203 G203
CNC System Software

PMC Managing software


Software Series Edition
Series 30i/ 31i/ 32i-MODEL A 40A0 20 or later
PMC System Software
Series 32i-MODEL A 40A1 09 or later
PMC/L System Software

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 4/147
3 Function Block function

Creating the ladder program that used the Function Block function was supported.

3.1 Changes PMC models and supported functions.

The description is modified along with the addition of the Function


Block function.

Replace "PMC models and supported functions" of "PREFACE - FEATURES OF FANUC


LADDER-III".

• PMC models and supported functions


The following table lists the available functions for each PMC
model:
Function
Multi- Function Step I/O device
PMC model Memory Multiple Extended Extended Online Offline
path Block sequence
B/C comments Symbol Instruction function function PMC Handy Memory
PMC function program File card
30i-A PMC O O *6 O X X X O *5 O O X O O
30i-A PMC(EXT) O O *6 O O *4 X X O *5 O O X O O
30i-A PMC(EXI) O O *6 O X O *7 X O *5 O O X O O
30i-A PMC(FB) O O *6 O O *4 O *7 O *8 O *5 O O X O O
31i-A PMC O O *6 O X X X O *5 O O X O O
31i-A PMC(EXT) O O *6 O O *4 X X O *5 O O X O O
31i-A PMC(EXI) O O *6 O X O *7 X O *5 O O X O O
31i-A PMC(FB) O O *6 O O *4 O *7 O *8 O *5 O O X O O
32i-A PMC O O *6 O X X X O *5 O O X O O
32i-A PMC(EXT) O O *6 O O *4 X X O *5 O O X O O
32i-A PMC(EXI) O O *6 O X O *7 X O *5 O O X O O
32i-A PMC(FB) O O *6 O O *4 O *7 O *8 O *5 O O X O O
32i-A PMC/L X X O X X X X O O X O O
32i-A PMC/L(EXT) X X O O *4 X X X O O X O O
32i-A PMC/L(EXI) X X O X O *7 X X O O X O O
32i-A PMC/L(FB) O X O XO *4 O *7 O *8 X O O X O O
PMC-SA1 X X X X X X X X O O O L
PMC-SA3 X X X X X X X X O O O L
PMC-SA5 X X X X X X X O O O O L
PMC-SB3 X X X X X X X O *1 O O O L
PMC-SB4 X X X X X X X O *1 O O O O
PMC-SB4(STEP SEQ) X X X X X X O O *1 O O O O
PMC-SB5 X X X X X X X O O O O O
PMC-SB6 X X X X X X X O O O O O
PMC-SB6(STEP SEQ) X X X X X X O O O O O O
PMC-SB7 X X X X X X X O O X O O
PMC-SB7(STEP SEQ) X X X X X X O O O X O O

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 5/147
PMC-SC3 X X X X X X X O *1 O O O L
PMC-SC4 X X X X X X X O *1 O O O O
PMC-SC4(STEP SEQ) X X X X X X O O *1 O O O O
PMC-PA3 X X X X X X X O *2 O O O O
PMC-NB X X X X X X X O *3 O O O O
PMC-NB2 X X X X X X X O *3 O O O O
PMC-NB2(STEP SEQ) X X X X X X O O *3 O O O O
PMC-NB6 X X X X X X X O O L L O
O : Available, X : Not available
L : The supported functions vary depending on the CNC and PMC series.

NOTE
*1 - Available when the PMC software series and edition are 4066/12, 4068/11, or
later and the CNC software series and edition are B0A1/23, B1A1/20, BDA1/12,
BEA1/12, or later.
*2 - Available when the PMC software series and edition are 4074/01 or later. Not
available with the 4075 series. The supported CNC software series and editions
are 8838/01, 883C/02, 8839/01, 8834/07, 883E/03, and later.
- Available when the PMC software series and edition are 4078/04 or later. The
supported CNC software series and editions are 8880/11 and later.
*3 - Available when the PMC software series and edition are 4048/10, 4068/08, or
later.
- Not available with the 4046 or 4047 PMC software series.
*4 - Available when the PMC software series and edition are 406N/13 or later.
- In extended symbol function, symbol is maximum 40 characters. Comment is
maximum 255 characters and 4 kinds available for multi-comment. And local
symbol and automatic address assigment are supported.
*5 - Available when the PMC software series and edition are 40A0/01 or later.
1st-path PMC is available. It is unavailable for 2nd/3rd-path PMC and DCS.
*6 - Memory B is available when the PMC software series and edition are 40A0/07 or
later. 1st/2nd-path PMC is available. It is unavailable for 3rd-path PMC and DCS.
- Memory C is available when the PMC software series and edition are 40A0/08 or
later. It is unavailable for DCS.
*7 - Available when the PMC software series and edition are 40A0/14, 40A1/05 or
later.
*8 - Available when the PMC software series and edition are 40A0/20, 40A1/09 or
later.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 6/147
3.2 PMC Model Abbreviations

The description is modified along with the addition of the Function


Block function.

Replace "PMC Model Abbreviations" of "PREFACE - NOTATION CONVENTIONS IN THIS


MANUAL".

- PMC models
In this manual, the PMC models are abbreviated as follows:

PMC Model Abbreviations


Abbreviation PMC model
30i-A PMC Series 30i-MODEL A PMC(1st-path PMC, Memory-B)
30i-A PMC(MEM-B) Series 30i-MODEL A PMC(1st-path PMC, Memory-B)
30i-A PMC(EXT) Series 30i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
30i-A PMC(MEM-B,EXT) Series 30i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
30i-A PMC(MEM-B,EXI) Series 30i-MODEL A PMC(1st-path PMC, Memory-B,
Extended PMC Ladder instruction function)
30i-A PMC(MEM-B,EXT,EXI) Series 30i-MODEL A PMC(1st-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(MEM-B,FB) Series 30i-MODEL A PMC(1st-path PMC, Memory-B, Function Block function)
30i-A PMC(MEM-C) Series 30i-MODEL A PMC(1st-path PMC, Memory-C)
30i-A PMC(MEM-C,EXT) Series 30i-MODEL A PMC(1st-path PMC, Memory-C, Extended symbol function)
30i-A PMC(MEM-C,EXI) Series 30i-MODEL A PMC(1st-path PMC, Memory-C,
Extended PMC Ladder instruction function)
30i-A PMC(MEM-C,EXT,EXI) Series 30i-MODEL A PMC(1st-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(MEM-C,FB) Series 30i-MODEL A PMC(1st-path PMC, Memory-C, Function Block function)
30i-A PMC(2nd) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A)
30i-A PMC(2nd,MEM-A) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A)
30i-A PMC(2nd,EXT) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
30i-A PMC(2nd,MEM-A,EXT) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
30i-A PMC(2nd,MEM-A,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-A,EXT,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-A,FB) Series 30i-MODEL A PMC(2nd-path PMC, Memory-A, Function Block function)
30i-A PMC(2nd,MEM-B) Series 30i-MODEL A PMC(2nd-path PMC, Memory-B)
30i-A PMC(2nd,MEM-B,EXT) Series 30i-MODEL A PMC(2nd-path PMC, Memory-B, Extended symbol function)
30i-A PMC(2nd,MEM-B,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-B,EXT,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-B,FB) Series 30i-MODEL A PMC(2nd-path PMC, Memory-B, Function Block function)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 7/147
30i-A PMC(2nd,MEM-C) Series 30i-MODEL A PMC(2nd-path PMC, Memory-C)
30i-A PMC(2nd,MEM-C,EXT) Series 30i-MODEL A PMC(2nd-path PMC, Memory-C, Extended symbol function)
30i-A PMC(2nd,MEM-C,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-C,EXT,EXI) Series 30i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(2nd,MEM-C,FB) Series 30i-MODEL A PMC(2nd-path PMC, Memory-C, Function Block function)
30i-A PMC(3rd) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A)
30i-A PMC(3rd,MEM-A) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A)
30i-A PMC(3rd,EXT) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
30i-A PMC(3rd,MEM-A,EXT) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
30i-A PMC(3rd,MEM-A,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-A,EXT,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-A,FB) Series 30i-MODEL A PMC(3rd-path PMC, Memory-A, Function Block function)
30i-A PMC(3rd,MEM-B) Series 30i-MODEL A PMC(3rd-path PMC, Memory-B)
30i-A PMC(3rd,MEM-B,EXT) Series 30i-MODEL A PMC(3rd-path PMC, Memory-B, Extended symbol function)
30i-A PMC(3rd,MEM-B,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-B,EXT,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-B,FB) Series 30i-MODEL A PMC(3rd-path PMC, Memory-B, Function Block function)
30i-A PMC(3rd,MEM-C) Series 30i-MODEL A PMC(3rd-path PMC, Memory-C)
30i-A PMC(3rd,MEM-C,EXT) Series 30i-MODEL A PMC(3rd-path PMC, Memory-C, Extended symbol function)
30i-A PMC(3rd,MEM-C,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-C,EXT,EXI) Series 30i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(3rd,MEM-C,FB) Series 30i-MODEL A PMC(3rd-path PMC, Memory-C, Function Block function)
30i-A PMC(DCS) Series 30i-MODEL A PMC(Dual Check Safety)
30i-A PMC(DCS,EXT) Series 30i-MODEL A PMC(Dual Check Safety, Extended symbol function)
30i-A PMC(DCS,EXI) Series 30i-MODEL A PMC(Dual Check Safety,
Extended PMC Ladder instruction function)
30i-A PMC(DCS,EXT,EXI) Series 30i-MODEL A PMC(Dual Check Safety,
Extended symbol function, Extended PMC Ladder instruction function)
30i-A PMC(DCS,FB) Series 30i-MODEL A PMC(Dual Check Safety, Function Block function)
31i-A PMC Series 31i-MODEL A PMC(1st-path PMC, Memory-B)
31i-A PMC(MEM-B) Series 31i-MODEL A PMC(1st-path PMC, Memory-B)
31i-A PMC(EXT) Series 31i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
31i-A PMC(MEM-B,EXT) Series 31i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
31i-A PMC(MEM-B,EXI) Series 31i-MODEL A PMC(1st-path PMC, Memory-B,
Extended PMC Ladder instruction function)
31i-A PMC(MEM-B,EXT,EXI) Series 31i-MODEL A PMC(1st-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(MEM-B,FB) Series 31i-MODEL A PMC(1st-path PMC, Memory-B, Function Block function)
31i-A PMC(MEM-C) Series 31i-MODEL A PMC(1st-path PMC, Memory-C)
31i-A PMC(MEM-C,EXT) Series 31i-MODEL A PMC(1st-path PMC, Memory-C, Extended symbol function)
31i-A PMC(MEM-C,EXI) Series 31i-MODEL A PMC(1st-path PMC, Memory-C,
Extended PMC Ladder instruction function)
31i-A PMC(MEM-C,EXT,EXI) Series 31i-MODEL A PMC(1st-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(MEM-C,FB) Series 31i-MODEL A PMC(1st-path PMC, Memory-C, Function Block function)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 8/147
31i-A PMC(2nd) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A)
31i-A PMC(2nd,MEM-A) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A)
31i-A PMC(2nd,EXT) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
31i-A PMC(2nd,MEM-A,EXT) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
31i-A PMC(2nd,MEM-A,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-A,EXT,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-A,FB) Series 31i-MODEL A PMC(2nd-path PMC, Memory-A, Function Block function)
31i-A PMC(2nd,MEM-B) Series 31i-MODEL A PMC(2nd-path PMC, Memory-B)
31i-A PMC(2nd,MEM-B,EXT) Series 31i-MODEL A PMC(2nd-path PMC, Memory-B, Extended symbol function)
31i-A PMC(2nd,MEM-B,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-B,EXT,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-B,FB) Series 31i-MODEL A PMC(2nd-path PMC, Memory-B, Function Block function)
31i-A PMC(2nd,MEM-C) Series 31i-MODEL A PMC(2nd-path PMC, Memory-C)
31i-A PMC(2nd,MEM-C,EXT) Series 31i-MODEL A PMC(2nd-path PMC, Memory-C, Extended symbol function)
31i-A PMC(2nd,MEM-C,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-C,EXT,EXI) Series 31i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(2nd,MEM-C,FB) Series 31i-MODEL A PMC(2nd-path PMC, Memory-C, Function Block function)
31i-A PMC(3rd) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A)
31i-A PMC(3rd,MEM-A) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A)
31i-A PMC(3rd) ,EXT Series 31i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
31i-A PMC(3rd,MEM-A,EXT) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
31i-A PMC(3rd,MEM-A,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-A,EXT,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-A,FB) Series 31i-MODEL A PMC(3rd-path PMC, Memory-A, Function Block function)
31i-A PMC(3rd,MEM-B) Series 31i-MODEL A PMC(3rd-path PMC, Memory-B)
31i-A PMC(3rd,MEM-B,EXT) Series 31i-MODEL A PMC(3rd-path PMC, Memory-B, Extended symbol function)
31i-A PMC(3rd,MEM-B,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-B,EXT,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-B,FB) Series 31i-MODEL A PMC(3rd-path PMC, Memory-B, Function Block function)
31i-A PMC(3rd,MEM-C) Series 31i-MODEL A PMC(3rd-path PMC, Memory-C)
31i-A PMC(3rd,MEM-C,EXT) Series 31i-MODEL A PMC(3rd-path PMC, Memory-C, Extended symbol function)
31i-A PMC(3rd,MEM-C,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-C,EXT,EXI) Series 31i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(3rd,MEM-C,FB) Series 31i-MODEL A PMC(3rd-path PMC, Memory-C, Function Block function)
31i-A PMC(DCS) Series 31i-MODEL A PMC(Dual Check Safety)
31i-A PMC(DCS,EXT) Series 31i-MODEL A PMC(Dual Check Safety, Extended symbol function)
31i-A PMC(DCS,EXI) Series 31i-MODEL A PMC(Dual Check Safety,
Extended PMC Ladder instruction function)
31i-A PMC(DCS,EXT,EXI) Series 31i-MODEL A PMC(Dual Check Safety,
Extended symbol function, Extended PMC Ladder instruction function)
31i-A PMC(DCS,FB) Series 31i-MODEL A PMC(Dual Check Safety, Function Block function)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 9/147
32i-A PMC Series 32i-MODEL A PMC(1st-path PMC, Memory-B)
32i-A PMC(MEM-B) Series 32i-MODEL A PMC(1st-path PMC, Memory-B)
32i-A PMC(EXT) Series 32i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
32i-A PMC(MEM-B,EXT) Series 32i-MODEL A PMC(1st-path PMC, Memory-B, Extended symbol function)
32i-A PMC(MEM-B,EXI) Series 32i-MODEL A PMC(1st-path PMC, Memory-B,
Extended PMC Ladder instruction function)
32i-A PMC(MEM-B,EXT,EXI) Series 32i-MODEL A PMC(1st-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(MEM-B,FB) Series 32i-MODEL A PMC(1st-path PMC, Memory-B, Function Block function)
32i-A PMC(MEM-C) Series 32i-MODEL A PMC(1st-path PMC, Memory-C)
32i-A PMC(MEM-C,EXT) Series 32i-MODEL A PMC(1st-path PMC, Memory-C, Extended symbol function)
32i-A PMC(MEM-C,EXI) Series 32i-MODEL A PMC(1st-path PMC, Memory-C,
Extended PMC Ladder instruction function)
32i-A PMC(MEM-C,EXT,EXI) Series 32i-MODEL A PMC(1st-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(MEM-C,FB) Series 32i-MODEL A PMC(1st-path PMC, Memory-C, Function Block function)
32i-A PMC(2nd) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A)
32i-A PMC(2nd,MEM-A) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A)
32i-A PMC(2nd,EXT) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
32i-A PMC(2nd,MEM-A,EXT) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A, Extended symbol function)
32i-A PMC(2nd,MEM-A,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-A,EXT,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-A,FB) Series 32i-MODEL A PMC(2nd-path PMC, Memory-A, Function Block function)
32i-A PMC(2nd,MEM-B) Series 32i-MODEL A PMC(2nd-path PMC, Memory-B)
32i-A PMC(2nd,MEM-B,EXT) Series 32i-MODEL A PMC(2nd-path PMC, Memory-B, Extended symbol function)
32i-A PMC(2nd,MEM-B,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-B,EXT,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-B,FB) Series 32i-MODEL A PMC(2nd-path PMC, Memory-B, Function Block function)
32i-A PMC(2nd,MEM-C) Series 32i-MODEL A PMC(2nd-path PMC, Memory-C)
32i-A PMC(2nd,MEM-C,EXT) Series 32i-MODEL A PMC(2nd-path PMC, Memory-C, Extended symbol function)
32i-A PMC(2nd,MEM-C,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-C,EXT,EXI) Series 32i-MODEL A PMC(2nd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(2nd,MEM-C,FB) Series 32i-MODEL A PMC(2nd-path PMC, Memory-C, Function Block function)
32i-A PMC(3rd) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A)
32i-A PMC(3rd,MEM-A) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A)
32i-A PMC(3rd,EXT) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
32i-A PMC(3rd,MEM-A,EXT) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A, Extended symbol function)
32i-A PMC(3rd,MEM-A,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-A,EXT,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-A,FB) Series 32i-MODEL A PMC(3rd-path PMC, Memory-A, Function Block function)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 10/147
32i-A PMC(3rd,MEM-B) Series 32i-MODEL A PMC(3rd-path PMC, Memory-B)
32i-A PMC(3rd,MEM-B,EXT) Series 32i-MODEL A PMC(3rd-path PMC, Memory-B, Extended symbol function)
32i-A PMC(3rd,MEM-B,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-B,EXT,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-B,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-B,FB) Series 32i-MODEL A PMC(3rd-path PMC, Memory-B, Function Block function)
32i-A PMC(3rd,MEM-C) Series 32i-MODEL A PMC(3rd-path PMC, Memory-C)
32i-A PMC(3rd,MEM-C,EXT) Series 32i-MODEL A PMC(3rd-path PMC, Memory-C, Extended symbol function)
32i-A PMC(3rd,MEM-C,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-C,EXT,EXI) Series 32i-MODEL A PMC(3rd-path PMC, Memory-C,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(3rd,MEM-C,FB) Series 32i-MODEL A PMC(3rd-path PMC, Memory-C, Function Block function)
32i-A PMC(DCS) Series 32i-MODEL A PMC(Dual Check Safety)
32i-A PMC(DCS,EXT) Series 32i-MODEL A PMC(Dual Check Safety, Extended symbol function)
32i-A PMC(DCS,EXI) Series 32i-MODEL A PMC(Dual Check Safety,
Extended PMC Ladder instruction function)
32i-A PMC(DCS,EXT,EXI) Series 32i-MODEL A PMC(Dual Check Safety,
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC(DCS,FB) Series 32i-MODEL A PMC(Dual Check Safety, Function Block function)
32i-A PMC/L Series 32i-MODEL A PMC/L
32i-A PMC/L(EXT) Series 32i-MODEL A PMC/L (Extended symbol function)
32i-A PMC/L(EXI) Series 32i-MODEL A PMC/L (Extended PMC Ladder instruction function)
32i-A PMC/L(EXT,EXI) Series 32i-MODEL A PMC/L (
Extended symbol function, Extended PMC Ladder instruction function)
32i-A PMC/L(FB) Series 32i-MODEL A PMC/L (Function Block function)
PMC-SA1 FANUC PMC-MODEL SA1
PMC-SA3 FANUC PMC-MODEL SA3
PMC-SA5 FANUC PMC-MODEL SA5
PMC-SB3 FANUC PMC-MODEL SB3
PMC-SB4 FANUC PMC-MODEL SB4
PMC-SB5 FANUC PMC-MODEL SB5
PMC-SB6 FANUC PMC-MODEL SB6
PMC-SB7 FANUC PMC-MODEL SB7
PMC-SC3 FANUC PMC-MODEL SC3
PMC-SC4 FANUC PMC-MODEL SC4
PMC-PA3 FANUC PMC-MODEL PA3
PMC-QC FANUC PMC-MODEL QC
PMC-NB FANUC PMC-MODEL NB
PMC-NB2 FANUC PMC-MODEL NB2
PMC-NB6 FANUC PMC-MODEL NB6

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 11/147
"12 Function Block function" is added.

12 Function Block function


Supported PMC models
Supported Series 30i/31i/32i-A PMC(Function Block function)

Outline
A “Function Block” is a block of a ladder program defined in advance
that implements a particular process (function).
You can place a defined function block in other ladder program and set
required input/output parameters to execute the function.
By defining a frequently used function as a function block, you can
reuse the function easily, and can reduce the time required for
programming and increase the development efficiency.
In addition, program diagnosis can be performed without displaying the
detailed program in the function block, which is effective to decreases
the amount of the printed maintenance ladder diagram.

Ladder program Ladder program

Often used processing FUNC1


FUNC FUNC
IN1 OUT1
IN1 OUT1 Functin block
IN2 OUT2
instances
IN2 OUT2 Reuse

Function
block FUNC2

FUNC
IN1 OUT1

IN2 OUT2
Function block definition

Fig.12 (a) Reuse of program using Function Block

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 12/147
The Function Block function allows you to use the following features.
- Creating/Editing/Printing of function blocks.
- Calling function blocks.
- Creating function block library.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 13/147
3.3 CREATING FUNCTION BLOCKS
Following contents have been added as Section "12.1"

12.1 CREATING FUNCTION BLOCKS

12.1.1 Creating Sequence Programs (LAD Files)

This subsection explains how to create a PMC-type LAD file that


matches a function block.

Creating method
There is a method of the following to use the Function Block function.
1. Creating new LAD files
2. Changing the PMC type of existing LAD files
Creating new LAD files
Procedure
1. Start FANUC LADDER-III, and select [New Program] from the
file menu.
2. Input the Name, and select the PMC Type.
3. Select the Function Block(Extended Symbol)

Fig.12.1.1 (a)
4. Click the <OK> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 14/147
Changing the PMC type of existing LAD files
Procedure
1. Open an existing LAD file.
2. Select [PMC Type changed and save] from the file menu, and
change the PMC type to the PMC type that the Function Block
function can be used.

Fig.12.1.1 (b)

12.1.2 Creating Function Blocks


There are following 2 types in function block. Newly created function
blocks are added to the function block folder.
Table12.1.2 (a)
Function block This is a function block definition held in a sequence
(LAD file) program (LAD file).
It is displayed under the “Function Block” folder on the
program list.
Using this function block with another LAD file requires
adding (copying) it to a function block library.
Function block library Specify a function block library file (FLL file).
(FLL file) It is displayed under the “Function Block Library” folder on
the program list.
To change a function block definition in the function block
library, open and edit the FLL file directly. For details, see
"12.8 Creating Function Block Libraries".

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 15/147
Function block
FB definitions can be displayed
and edited.

Function block library


FB definitions can be displayed
but cannot be edited.

Fig.12.1.2 (a)
Adding function blocks
This procedure lets you create function blocks. The function blocks are
added to the program list.
Procedure
1. Select [Add FB] from the “Function Block” context menu in the
[Program List] window. Alternatively, press the soft key [F9]
(Add FB).

Fig.12.1.2 (b) Context menu


Cut
Copies a function block to the clipboard and deletes the copy
source.
Copy
Copies a function block to the clipboard.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 16/147
Paste
Pastes the function block from the clipboard.
Property
Displays the property window of a function block.

Fig.12.1.2 (c)

2. The function block property window appears. In this window,


enter the data explained below as required.

Fig.12.1.2 (d) Property window

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 17/147
After the following items are specified, clicking the <Add> button adds
the function block name to the [Function Block] folder. After this, a [FB
Definition] window appears.
(1) FB Name: Function block definition name (always required)
(2) Comments
(3) Version information

(1) Function block definition name (always required)


Usable characters 0 to 9, A to Z, a to z, _
Characters usable at the A to Z, a to z, _
beginning
Maximum number of Up to 40
usable characters
Restrictions No function block definition name can be
duplicated.
No number can be used at the beginning
of any function block definition name.
If the first character is an underscore,
only a letter or number can follow it.
("_a" is acceptable, but "_ _a" is not.)

(2) Comment
Usable characters A to Z, a to z, 0 to 9, space, katakana, kanji (only in
part),
!"#$%&’()*+,.-<=>?@[/]^_`{|}~;:
Unusable Tab, line feed
characters
Maximum number of Up to 255
usable characters

(3) Version information


Character string representing the version
Usable characters A to Z, a to z, 0 to 9, katakana, kanji (only in part),
space
!"#$%&’()*+,.-<=>?@[/]^_`{|}~;:
Unusable characters Tab, line feed
Maximum number of Up to 16
usable characters

3. The [FB Definition] window appears. This window is used to


create variable definitions and body programs for function blocks.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 18/147
Variable definition area

Body program area

Fig.12.1.2 (e) Function block definition window

Displaying soft keys


- Soft keys displayed when no function block is selected

Fig.12.1.2 (f)

- Soft keys displayed when a function block is selected

Fig.12.1.2 (g)

F1 Help Displays help information.


F4 nth comment Switches the display to the nth comment of a function
block.
F5 Property Displays the properties of a function block. See Fig.
12.1.2 (c).
F6 Delete FB Deletes a function block.
F7 FB Graphical Shows the appearance of an instance for a function
block. See "12.1.6 Displaying Function Block
Instances".
F8 Password Protects a function block.
F9 Add FB Adds a function block.
F11 Open Opens a function block.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 19/147
12.1.3 Adding Variables
1. In the [Program list] window, double-click a function block you
want to edit, or press [Enter].

Fig.12.1.3 (a) Function block definition window (variable definition section)

NOTE
1. When variables are added, no variable name can be
duplicated.

2. To add a new variable, click the <New Data> button in the


function block definition window or the <New Data> soft key, or
select [New Data] from the context menu. The [New Data]
window appears.

Fig.12.1.3 (b) New Data window for variables

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 20/147
The following table lists the maximum number of variables of
each type that can be used in one function block definition.
Table12.1.3 (a)
Variable Maximum number
Parameters (input, input/output, output) 64 in total
Internal and external variables 1024 in total

Variable type
Variable type Description Valid item
Input This variable receives an input from the input section. It is Symbol,
parameters impossible to output to this variable. Data type,
It is possible to specify the number of data items to be number,
secured by the variable. comment
Input/output This variable receives an input from the input section, Symbol,
parameters changes its value, and outputs the change to the output Data type,
section. number,
It is possible to specify the number of data items to be comment
secured by the variable.
Output This variable directs an output to the output section. Symbol,
parameters It is possible to specify the number of data items to be Data type,
secured by the variable. number,
comment
Internal This variable is usable only within the function block of Symbol,
variables interest. Data type,
It is possible whether to select the type of nonvolatile number,
memory or volatile memory. keep,
It is also possible to specify the number of data items to comment
be secured by the variable.
External This variable is intended to use a symbol previously Symbol,
variables defined outside the function block of interest. Data type,
comment
Label This variable is used with functional instructions, such as SymbolCo
JMPB and LABEL. Its data type is indicated as LABEL mment

Symbol
Usable characters 0 to 9, A to Z, a to z, _
Characters usable at A to Z, a to z, _
the beginning
Maximum number of Up to 40
usable characters
Restrictions - If the first character is an underscore, only a letter or number
can follow it.
("_a" is acceptable, but "_ _a" is not.)
- No number can be used at the beginning of any variable
name.
- No variable name can be duplicated within one function block
definition.
- No reserved name (such as basic instruction name or
functional instruction name) can be used as a variable name.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 21/147
Data type
Data type BOOL, SINT, INT, DINT, USINT, UINT, UDINT, BYTE, WORD,
DWORD, FB

NOTE
1 When a program in a function block calls another
function block, the variable and data types of an
instance name to be specified are indicated,
respectively, as “Internal variable” and “FB”.

Number
Internal variables: 1 to 1000
Parameters (input, input/output, output): 1 to 32
External variables and Labels: Nullified (displayed in gray)
Initial value: 1
The area of the variable is secured.
If a data type is switched to BOOL, or an external variable or label
is selected, the value is nullified and displayed in gray.
Keep
This item can be specified for internal variables. For other
variables and parameters, it is nullified. (displayed in gray).
Monitor
Turning on the check box if you want to add the variable to the FB
instance monitoring. (Default: Turned off)
Order
This item can be used to specify the order of FB instance displays
in monitoring. It is valid if the Monitor check box is turned on. Its
default value is 1. If duplicate numbers are entered, the variables
and parameters are displayed for monitoring in the order in which
they are placed. If you do not want to use this order, specify a
number between 1 and 999.
Type
This item can be used to specify a data type for FB instance
monitoring. Turning on the Monitor check box enables it. If Type
is not specified, the same type as for Data type is displayed. It can
be selected from BOOL, SINT, INT, DINT, USINT, UINT,
UDINT, BYTE, WORD, DWORD, 8BIT, and 16BIT.
Comment
255 characters or less per a comment, 4 comment types are
available.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 22/147
Toolbar

(1) (2) (3) (4) (5)


Fig.12.1.3 (c)

(1) Add new variable button


Displays the [New Data] window.
(2) Search button
Displays the [Search] window.
(3) Move-up button
Moves the cursor to a symbol above the currently selected one. It is
usable only when the variables are sorted in the order of “Variable
type” or “Older”.
(4) Move-down button
Moves the cursor to a symbol below the currently selected one. It
is usable only when the variables are sorted in the order of
“Variable type” or “Older”.
(5) FB graphical form button
Displays the [FB Graphical Form] window, and shows the
appearance of a function block instance. For details, see "12.1.6
Displaying Function Block Graphical Form".

Context menu
Right-click on the variable definition area, and the following context
menus are displayed.

Fig.12.1.3 (d)
New Data Displays a window for adding variables.
ADD EN Adds an EN.
ADD ENO Adds an ENO.
Delete Deletes a variable.
Search Displays a variable search window.
FB Graphical Form Displays the appearance of an instance.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 23/147
Soft keys
F1 Help Displays help information.
F3 Search Displays a variable search window.
Shift+F4 Up Moves the cursor upward through symbols.
F4 Down Moves the cursor downward through symbols.
F5 Add EN Adds an EN.
F6 Add ENO Adds an ENO.
F7 FB Graphical Displays the appearance of an instance.
F9 New Data Displays a variable add window.

Displaying the properties of a variable


Double-clicking a variable name or pressing the [Enter] key, then the
property window for the variable is opened. This window allows the
contents of the variable to be changed.

Fig.12.1.3 (e)

NOTE
1 To change symbol by pressing the <Modify> button, check
the Display the replace screen on the ladder diagram by
changing the symbol. You can replace symbols in the body
program ladder by using [Replace] screen.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 24/147
EDIT menu
This menu lets you perform the same operation as for the symbol
comment edit window. Selecting "Find…" displays the [Search]
window.

Fig.12.1.3 (f)
Search window
This window lets you search for symbols and comments for previously
defined variables. If the variable definition area is selected, pressing the
[F3] key or [Ctrl]+[F] keys, or selecting [Find…] from the Edit menu
displays the following window.

Fig.12.1.3 (g)
OK
Searches the variable definition area for an entered character
string.
Selecting “Symbol” causes a jump to a symbol if the entered
character string matches the symbol.
Selecting “Comment” causes a jump to a symbol if the entered
character string matches a part of comment.
Cancel
Closes the [Search] window.
NOTE
1 In the search window, character strings are not
case-sensitive; uppercase and lowercase characters
are regarded as equivalent.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 25/147
12.1.4 Adding Ladders
Procedure
1. In [Function block], first double-click or select a function block
you want to edit, and then press [Enter]. A window for the function
block appears.

Fig.12.1.4 (a)

2. Enter a previously added variable name to the body program area


to create a ladder diagram. Entering an undefined variable name
results in a window for adding new variables appearing. Before
creating a ladder, add variables.
NOTE
1 There are restrictions and notes in some functional instructions. The following
functional instructions cannot be used in the program in any function block:
END1, END2, END3, END, SP, SPE, CALL, CALLU, JMPC
Do not use the following functional instructions in a function block for which more than
one instance is to be created
TMR, CTR, CTRB
If you want to use the following functional instructions in a function block, set the timer
number, and rising and falling numbers to 0
TMRB, DIFU, DIFD
2 When input parameter EN is used for "Positive Transition Contact" and "Negative
Transition Contact", it doesn't operate normally.
3 The [Net Comment] and the [New Page] cannot be used.
4 Please input the symbol. Do not input the PMC address.
Ex.) Do not use the address such as R9000. Use the input/output parameter and the
external variable. R9000 is set to the input section for the input/output parameter.
R9000 is set to the address of a global symbol for the external variable.

Toolbar

(1) (2) (3) (4) (5) (6) (7)


Fig.12.1.4 (b)
(1) Zoom in button
Enlarges a ladder diagram display.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 26/147
(2) Zoom out button
Reduces a ladder diagram display.
(3) Resize button
Make a ladder diagram display to fill the window.
(4) Search button
Searches the body program area for a symbol or the like.
(5) Symbol display format
Lets you specify a display format for symbols in the body program
area.
(6) The button for [Move to the next paste error item]
Move to the next item with an error by paste ladder
(7) The button for [Move to the previous paste error item]
Move to the previous item with an error by paste ladder

Context menu

Fig.12.1.4 (c) Fig.12.1.4 (d) When an instance is selected

xx Open Opens the function block definition xx (during offline


operation).
FB Update The FB instance is updated by using a present function
block definition.
Find Searches through only a function block definition.
Insert Inserts an item other than a net comment.
Delete Deletes an element or net.
Cursor Info Displays descriptions about a variable under the body
program area.
Display information: Variable type, Symbol, Data type,
Number, Keep, Comment
Property Opens the property window of a variable (Fig. 12.1.3 (e)).
The window displays: Variable type, Symbol, Data type,
Number, Keep, Comment

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 27/147
Soft keys

Fig.12.1.4 (e)
The softkey similar to the ladder editing screen is displayed.
Edit menu
This menu lets you perform the same operations as in the window for
editing ladders. Selecting [Find…] displays the same search feature as
explained in "12.2.3.1 Editing Input and Output Sections".

Fig.12.1.4 (f)
12.1.5 Creating Function Blocks from Existing Ladder Diagrams
Procedure
1. Create a function block or open a previously created function
block.
2. Select a ladder diagram you want to add to the function block and
copy it.
3. Paste the ladder diagram to the body program area of the function
block. Alternatively, use "Paste Special" in the context menu to
paste.

Fig.12.1.5 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 28/147
Table12.1.5 (a) Paste Special
Item Description

Variable definition Ladder


Variable Ladder symbols are added No paste is performed.
as internal variables.
All Ladder symbols are added Ladder diagrams are pasted.
as internal variables.
* The address is pasted for the
address without the defined symbol.

12.1.6 Displaying Function Block Graphical Form

When a function block is pasted to a ladder, what the instance looks like
can be checked. The data types of input, input/output, and output
parameters can also be checked.
The FB graphical form can be displayed from the following windows.
(1) Function blocks in the program list window
(2) Variable definitions in the function block window

(1) FB Graphical Form display method (Program List window)


Procedure
1. In the [Program List] window, select [FB Graphical Form] from
the function block context menu. Alternatively, press the softkey
[F7] (FB Graphical).

FB name

Data type display

Parameter display

Fig.12.1.6 (a)

(2) FB Graphical Form display method (FB definition window)


Procedure
1. Open the [FB Definition] window, and click the <FB Graphical
Form> button on the toolbar. Alternatively press the softkey [F7]
(FB Graphical). The window shown in Fig. 12.1.6 (a) appears.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 29/147
12.1.7 Protecting Function Blocks

Function blocks can be protected by setting a password for function


block definitions on the program list. One of the two password types
listed below can be selected according to your purpose.
Table12.1.7 (a)
Password type Description
View edit protection Protects function blocks from being displayed, edited,
monitored, printed, and converted to mnemonic format.
Edit protection Protects function blocks from being edited.
Allows function blocks to be displayed, monitored, and
printed.

A previously set password is passed on to each instance of a function


block called from the ladder.

Whether a function block is protected can be checked with an icon


displayed for the function block in the [Program List] window.
Table12.1.7 (b)
Icon displayed in the Whether protected/not
program list window
View edit protected
Edit protected
Not protected

NOTE
1. In creating a sequence program (LAD file), it is
impossible to set or delete password protection for
function blocks in a function block library (FLL file).
In creating a function block library (FLL file), it is
possible to set and delete password protection for
function blocks. The method for setting and deleting
password protection is the same as described above.

Setting passwords
If function blocks are not protected, they can be subjected to either view
edit protection or edit protection. It is impossible to change the
password for a function block already protected. Delete the password
and then set a new password, using either of the following methods:
- Method for setting and deleting the password for multiple function
blocks
- Method for setting and deleting the password for a single function
block

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 30/147
(1) Setting and deleting a password for multiple function blocks at a time
Displaying a window for setting passwords
1. In the [Program List] window, keep Function block selected, and
right-click to select [Password] from the context menu.
Alternatively press the [F8] key.

Fig.12.1.7 (a)

2. The [FB Password] window appears.

List of function blocks for which


a password can be set

Fig.12.1.7 (b)
Password
Set: To set passwords, select this option. Those function blocks
with no password set are displayed. (Default setting)
Delete: To delete passwords, select this option. Those function
blocks with a password already set are displayed.
All selection/release
Turns on or off all function block name check boxes.
Exec
Executes the password set or delete processing.
Close
Closes the [FB password] window.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 31/147
Setting passwords
1. In the [FB password] window, select set under password and turn
on the check boxes for the function blocks for which you want set a
password.

Fig.12.1.7 (c)

2. Click the <Exec> button.


3. Select a protection type, and enter a password.

Fig.12.1.7 (d)

Protection kind
Edit protection (default setting)
Protects function blocks from being edited. It allows them to be
displayed and printed.
View edit protection
Protects function blocks from being displayed, edited, and printed.
Password and Confirm Password
Let you enter, respectively, a password and the same password for
confirmation purposes.
OK
Asserts the password entered for function blocks.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 32/147
Cancel
Cancels an attempt to set a password. The [FB Password] window
appears again.

4. After finishing password setting, click the <Close> button of the


[FB Password] window. The icons for function blocks in the
[Program list] window are updated accordingly.

Deleting passwords
Passwords for function block definitions can be deleted. Those for
function blocks in the function block library cannot be deleted.

1. In the [FB Password] window, select Delete under Password, and


turn on the check boxes for function blocks for which you want to
delete passwords.

Fig.12.1.7 (e)

2. Click the <Exec> button.

3. Enter the password.

Date and time when the specified


function block was updated most
recently

Comment for the specified


function block

Fig.12.1.7 (f)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 33/147
OK
Deletes the password for the function blocks whose check boxes are
turned on. If an attempt to delete passwords for some function blocks
fails, these function blocks and those whose password was
successfully deleted are displayed in the [Result] window. If the
attempt to delete passwords for all the function blocks totally fails,
the message "The password is wrong" appears.
Cancel
Cancels the attempt to delete passwords. The [FB Password] window
appears again.

4. If an attempt to delete passwords for some function blocks fails,


the following window appears.

Fig.12.1.7 (g)
Re-exec
Tries again to delete passwords for those function blocks whose
passwords were not deleted.
Close
Closes the window. The [FB Password] window appears again.

5. After finishing password deletion, click the <Close> button of the


[FB Password] window. The icons for function blocks in the
[Program List] window are updated accordingly.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 34/147
(2) Setting and deleting passwords for individual function blocks separately
1. In the [Program List] window, select a function block for which
you want to set a password, keep it selected, and then right-click to
select [Password] from the context menu.

Fig.12.1.7 (h)

2. If a selected function block is not protected, the [Setting of


password] window (Fig. 12.1.7 (i)) appears. If it is protected, the
[Input of password - Deletion] window (Fig. 12.1.7 (j)) appears.

Setting passwords
Select a Protection kind, enter a password, and click the <OK> button.

Fig.12.1.7 (i)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 35/147
Deleting passwords
Enter a password for a function block you want to make unprotected,
and click the <OK> button. If you enter the wrong password, the
message "The password is wrong" appears.

Fig.12.1.7 (j)

Releasing password protection


When you attempt to display function blocks protected (View edit
protection and Edit protection) using a password, the “Input of
password” window appears. In this window, entering a password
temporarily releases password protection for the function block
definitions. When the function block window is closed, they are
protected again.

Fig.12.1.7 (k) Input of password window (for View edit protection)

Fig.12.1.7 (l) Input of password window (for Edit protection)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 36/147
NOTE
1. Function blocks in a function block library can be only
browsed; they cannot be edited. So, they can be
browsed without releasing password protection even
if they are Edit protection.

12.1.8 Assigning Addresses to FB Variables


When ladders are compiled, addresses are assigned to variables used in
function blocks. The following procedure specifies what address to
assign.
1. In the [Program List] window, open [System parameter].

Fig.12.1.8 (a)

2. Click the <Assignment Address of FB> button to open the [Setting


of Assignment Address of FB] window. In this window, specify
each item, and click the <OK> button.

(1)

(2)

(3)

(4)

Fig.12.1.8 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 37/147
(1) Enter a volatile memory type address.
If a function block variable is specified as “Keep: Off”, the address entered
here is assigned to the variable. The R and E addresses can be entered
here.
These boxes are for the first setting.
(2) Enter a volatile memory type address.
These boxes are used if the first-setting boxes are insufficient.
(3) Enter a nonvolatile memory type address.
If a function block variable is specified as "Keep: On”, the address entered
here is assigned to the variable. The D address can be entered here.
These boxes are for the first setting.
(4) Enter a nonvolatile memory type address.
These boxes are used if the first-setting boxes are insufficient.

NOTE
1. Specify addresses not used in ladders. Do not use
the addresses specified here in creating ladders.

12.1.9 Saving Function Blocks


The following procedure saves new data to a sequence program (LAD
file).

1. Select [Save] from the [File] menu. If the program is already updated,
the [Program update] window appears.

Function blocks

Fig.12.1.9 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 38/147
3.4 CALLING FUNCTION BLOCKS
Following contents have been added as Section "12.2"

12.2 CALLING FUNCTION BLOCKS

Function blocks can be called from:


1. Ladders
2. Other function blocks

Component names

Instance name of FB

Definition name of FB

Input parameter Output parameter

Input section Output section

Input/output parameter

Fig.12.2 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 39/147
12.2.1 Calling Function Blocks from Ladders
Procedure
1. Drag a function block from the [Program List] window and drop it
on a ladder diagram. Alternatively, enter a function block name,
and press the [F9] key.

Fig.12.2.1 (a)

2. Specify each data item, such as an instance name.

Fig.12.2.1 (b) Instance definition window

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 40/147
(1) Instance name (always required)
Usable characters 0 to 9, A to Z, _
Characters usable at A to Z, _
the beginning
Maximum number of Up to 40
usable characters
Restrictions No instance name can be duplicated.
No name can be shared among instances,
variables, and symbols.
No number can be used at the beginning of
any instance name.
If the first character is an underscore, only a
letter or number can follow it.
( "_a" is acceptable, but "_ _a" is not.)

(2) Comment
Usable characters A to Z, (a to z), 0 to 9, space, katakana, kanji,
!"#$%&’()*+,.-<=>?@[/]^_`{|}~;:
Unusable characters Tab, line feed
Maximum number of Up to 255
usable characters

3. The function block is displayed under the specified instance name.

Fig.12.2.1 (c)

4. Enter data (address, symbol, and constant) to the input and output
section of the function block.

NOTE
1. If an attempt is made to use the name of a functional
instruction as a function block name, the functional
instruction rather than the function block is entered.
Any functional instruction name should not be used for
function blocks.
2. The function block cannot be input when there is an
error net in the ladder editing screen.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 41/147
12.2.2 Calling Function Blocks from Other Function Blocks

The body program of a function block can call another function block
(nesting).
Procedure
1. Drag a function block from the [Program List] window and drop it
on the ladder diagram of another function block. Alternatively,
enter a function block name, and press the [F9] key.

Fig.12.2.2 (a)

2. Specify each data item, such as an instance name.

Fig.12.2.2 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 42/147
3. A function block provided with an instance name is displayed.

Fig.12.2.2 (c)

4. Assign addresses and constants to the input and output sections of


input and output parameters for the function block.

NOTE
1. If an attempt is made to use the name of a functional
instruction as a function block name, the functional
instruction rather than the function block is entered.
Any functional instruction name should not be used for
function blocks.
2. The function block cannot be input when there is an
error net in the ladder editing screen.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 43/147
12.2.3 Editing Function Block

12.2.3.1 Editing Input and Output Sections

Constants, addresses, and symbols can be assigned to the input and


output sections of a function block.
Function block parameters determine what data to assign.

Net 1

Net 2

Net 3

Fig.12.2.3.1 (a)

Table12.2.3.1 (a) Display colors


Type Color (name specified for display color)
Constant Black (functional instruction constant)
Address Blue (address)
Symbol Green (symbol)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 44/147
Editing the input section
The input section of a function block can be displayed and edited
according to the data types of the input and input/output parameters, as
listed below.
Table12.2.3.1 (b)
Variable Data type Input section display and editing
type
Input BOOL Contact A is automatically inputted.
parameter IN1
Symbols and bit addresses whose data type is BOOL
can be entered.
Symbols, byte addresses, and constants whose data
type is not BOOL cannot be entered.
Contacts can be deleted, but contact types cannot be
changed.
Not omissible.
Other than Nothing is displayed.
BOOL
IN1
Symbols, byte addresses, and constants whose data
type is BYTE, WORD, DWORD, INT, or SINT can be
inputted.
Symbols and bit addresses whose data type is BOOL
cannot be entered.
Not omissible.
Input/output BOOL Nothing is displayed.
parameter
IO1
Symbols and bit addresses whose data type is BOOL
can be entered. No contact is displayed even when data
is entered.
Symbols, byte addresses, and constants whose data
type is not BOOL cannot be entered.
Not omissible.
Other than Nothing is displayed.
BOOL
IO1
Symbols and byte addresses whose data type is BYTE,
WORD, DWORD, INT, or SINT can be entered.
Symbols, bit addresses, and constants whose data type
is BOOL cannot be entered.
Not omissible.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 45/147
Editing the output section
The output section of a function block can be displayed and edited
according to the data type of the output and input/output parameters, as
listed below.
Table12.2.3.1 (c)
Variable Data type Output section display and editing
type
Output BOOL Nothing is displayed.
parameter OUT1
and
input/output Symbols and bit addresses whose data type is BOOL
parameter can be entered. Entering a bit address causes a normal
coil to be automatically inputted.
Symbols, byte addresses, and constants whose data
type is not BOOL cannot be entered.
No coil type can be changed.
Omissible.
Other than Nothing is displayed.
BOOL OUT1
Symbols and byte addresses whose data type is BYTE,
WORD, DWORD, INT, or SINT can be entered.
Symbols, bit addresses, and constants whose data type
is BOOL cannot be entered.
Omissible.

NOTE
1. The destination of an ENO output can be omitted.

12.2.3.2 Copying and pasting function blocks


During offline editing, it is possible to select and copy ladder diagrams
including function blocks (function block callers).
In the program list window, a subprogram that used a function block can
be copied to another subprogram.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 46/147
12.2.3.3 Opening function blocks
Function block definition can be displayed from a instance of function
block.
Procedure
1. Select a function block instance and then select [xx Open] (where
"xx" represents an FB name) from the context menu.

Fig.12.2.3.3 (a)

NOTE
1. In the online mode, no function block definition can
be displayed.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 47/147
12.2.3.4 Modifying the properties of an instance
It is possible to modify the instance name of a function block.

Procedure
1. Select a function block instance. Select [Property] from the
context menu.
2. The following window appears.

Fig.12.2.3.4 (a) In a ladder Fig.12.2.3.4 (b) In a function block

3. Input a new instance name, then click the <Modify> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 48/147
12.2.3.5 Search
It is possible to search for instance names, function block names, input
parameters, input/output parameters, and output parameters on a
function block.
Procedure
1. Select [Find…] from the [Edit] menu. The [Search] window
appears.

Fig.12.2.3.5 (a) Search window for ladder diagrams

Fig.12.2.3.5 (b) Search widow for the FB definition body program area

Search kind
Address/Symbol Addresses and symbols are searched for. No
function block parameter is searched for.
Function Functional instructions are searched for.
Function block Function block names and instance names, input
parameters, input/output parameters, and output
parameters are searched for.
Program
Lets you specify a program you want to search through. If a search is
made from a ladder diagram such as LEVEL1 or P1, subprograms
such as LEVEL1 and P1 can be selected. No function block definition
can be selected. If a search is made from the body program area of a

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 49/147
function block definition, This Window appears with the <Select>
button disabled from being clicked.

Multiple search strings


Turn on the check box if you want to specify more than one search
character string.

Search result list display


Turn on the check box if you want to have all search results displayed
together in the [Search result list] window. This window displays a
program number, net number, and ladder diagram (FB diagram)
besides search results.

Global search
Turn on the check box if you want to specify all ladder diagrams,
such as LEVEL1 and P1, as search targets. No function block
definition can be included as search targets, however. If a search is
made from the body program area of a function block definition, it is
impossible to turn on the Global search check box.

Search direction
To specify a search direction, select Up or Down, whichever is
required.

Search FB Instance
Turn on the check box if you want to search FB instance only. The
search result is different in the mode as follows.
Mode Search result
Offline - When searching from the ladder, the body program is not
included though it is possible to search for the FB instance in
the ladder program (subprograms such as LEVEL1 and P1).
- When searching from the FB body program, neither other body
programs nor the ladder programs are included though it is
possible to search only for the FB instance in the body program.
Online - It is possible to search for the FB instance of the ladder program
(subprograms such as LEVEL1 and P1) and FB body program.

2. Specify a search character string by entering it in the


corresponding box.

3. Start a search by clicking the <Next search> or <Exec> button.


Clicking the <Clear> button initializes all item settings you made.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 50/147
4. To search for the FB body program of the View edit protection at
the online mode, the window for the password input is displayed.

Fig.12.2.3.5 (c)
Skip all
All the input window of the password after this are skipped. The FB
body program of the View edit protection is not searched.
Skip
Only this FB body program is skipped.
OK
Input the password, push the <OK> button. The password can
temporarily be released. Searching for the FB body program
continues if the password can be released.
Cancel
The input of password and the searching are canceled.

NOTE
1. The protection temporarily released in the online
mode is recreated by an operation listed below.
(1) When you switch the online mode to offline mode.
(2) When you switch to different PMC path with the
multi-path PMC.
(3) When you load the ladder program.
(4) When an online connection is disconnected, and
reconnected.
2. Even if the password of the main body program is
temporarily released while displaying the search result
list by the online mode, it is not contained in the
searching object of the search result list. Display
another search result list window newly by searching
again.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 51/147
12.2.3.6 Replacement
It is possible to replace addresses and symbols in the input and output
sections of a function block. It is impossible to replace instance names
and function block names, input parameters, input/output parameters,
and output parameters.
Procedure
1. Select [Replace] from the [Edit] menu. The [Replace] window
appears.

Fig.12.2.3.6 (a) Replace windows for ladder diagrams

Fig.12.2.3.6 (b) Replace widow for the FB definition body program area

Program
Lets you select a replace target program. If a replacement is executed
from a ladder diagram such as LEVEL1 or P1, subprograms such as
LEVEL1 and P1 can be selected. No function block definition can be
selected. If a replacement is executed from the body program area of
a function block definition, it is impossible to click <Select> button.

Search string
Lets you enter a search character string. Two wild card characters (?
and *) can be used in a search character string (provided that it is an
address).

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 52/147
Replace string
Lets you enter a replacing character string. Two wild card characters
(? and *) can be used in a replacing character string (provided that it is
an address).

NOTE
1. A wild card character can be used to represent one
or more than one character.
2. The question mark ? represents one character. This
wild card character can be repeated to represent
more than one occurrence of a character.
3. The asterisk * represents 0 or more characters.

Wildcard search
Turn on the check box if you want to use a wild card in a replacing
character string. It can be used in replacing addresses. See "Wild
card" of "3.5.24 Replace" about details.

2. Execute replacement.
<Next search> button
Makes a search for the specified search character string.

<Replace> button
Replaces "Search string" with "Replace string".

<Replace all> button


Replaces all occurrences of "Search string" with "Replace string".

<Cancel> button
Closes the Replace dialog box without performing a replacement.

<Clear> button
Initializes all item settings you made.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 53/147
12.2.4 Calling Function Block Library Function Blocks

Adding a function block library file (FLL file) displays function blocks
in the FLL file on the program list.

Function block library

Fig.12.2.4 (a)

See "12.2.1 Calling Function Blocks from Ladders", for explanations


about how to call function blocks in the function block library from
ladders.

NOTE
1. For function block names called from ladders, a
search is made in the following order.
(1) Function blocks in a sequence program (LAD file)
(2) Function blocks in a function block library (FLL file)
(if there are two or more libraries, a search is
made in the order of numbers set for them)
2. When a function block library is used, if two or more
function blocks have the same name, it is likely that
they may not be called properly.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 54/147
Adding function block library files
The following procedure adds function block library files (FLL files).
1. In the option window of the [Tool] menu, select the [Function
block] tab.

Fig.12.2.4 (b)
2. Click the <Detail> button under Setting of Function Block Library
to display the [Detail] window, and specify function block library
files (FLL files).

Fig.12.2.4 (c)
<Browse>: Lets you specify a function block library file (FLL
file).
<Save Settings>: Saves your settings as common settings for
FANUC LADDER-III.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 55/147
<Restore Settings>: Restores the common settings of FANUC
LADDER-III. They can be restored easily when
LAD files are created.
<OK>: Saves your settings to a LAD file.
<Cancel>: Closes the window without saving the settings you
made.

12.2.5 Updating of FB instance

When the input section and the output section change by adding or
deleting the input, the output, and the input/output parameter of the
Function Block definition, it is necessary to update the instance of the
Function Block. The input section and the output section are added or
deleted according to the changed parameter, but neither the input
section nor the output section are changed when there is not changing in
the parameter. The updating method is as follows.
(1) Updating with [Enter] key.
(2) Updating by drop of mouse.
(3) Updating by softkey.
(4) Updating by context menu
(1) Updating with [Enter] key
Procedure
1. Move the cursor to the Function Block name, then push the [Enter]
key.

Fig.12.2.5 (a)
2. Push the [Enter] key if you want to update the FB instance. Push
the [Enter] key after inputting a new Function Block name when
you want to change to other function block definitions.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 56/147
(2) Updating by drop of mouse
Procedure
1. Drag the Function Block definition, and drop to the updated FB
instance.

Drop here

Fig.12.2.5 (b)

(3) Updating by softkey.


Procedure
1. The cursor is moved to the FB instance that you want to update.
2. Push softkey [F6] key (FB Update).

(4) Updating by context menu


Procedure
1. Right-click on the FB instance that you want to update.
2. Select "FB Update" from the context menu.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 57/147
3.5 COMPILE
Following contents have been added as Section "12.3"

12.3 COMPILE
In compiling, ladders using function blocks are translated into object
code executable in the PMC. Explained below is the compile operating
procedure.
procedure
1. Select [Compile] from the [Tool] menu to display the compile
dialog box.

Fig.12.3 (a)
2. Click the [option] tab, and select compile options.

Fig.12.3 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 58/147
Output Instance comment (Default setting: Turned on)
A comment for the FB instance name of a function block is output.
Turning off this check box disables FB instance name comments
from being output. What comment to output is determined according
to what is specified by the ladder’s Output First Comment, Output
Second Comment, Output Third Comment and Output Fourth
Comment.
Output Variable comment (Default setting: Turned on)
Turning on this check box outputs comments on variables used with
function blocks. Turning off the check box disables comments on
variables from being output. What comment to output is determined
according to what is specified by the ladder’s Output First Comment,
Output Second Comment, Output Third Comment and Output
Fourth Comment.
Output FB Definition (Default setting: Turned on)
Function block definitions used in a ladder are output to the ladder
object. When turning off this check box, the memory size of the entire
ladder can decrease. But, FB definitions cannot be restored by the
decompilation operation.
Matching check of FB Definition (Default setting: Turned on)
Turning on the check box checks whether the FB definition used
previously matches the FB definition used currently. When the FB
definition is a disagreement, a screen listed below is displayed.

Fig.12.3 (c)
<Yes>: The compilation is continued.
<No>: The compilation is interrupted.
3. Click the <Exec> button to start compiling.
NOTE
1. Function blocks called from ladders are searched through in the order stated below.
(1) Function blocks in a sequence program (LAD file)
(2) Function blocks in a function block library (FLL file) (if there are two or more
libraries, a search is made in the order of numbers set for them)
2. When a function block library is used, if two or more function blocks have the same
name, it is likely that an unintended function block may be called.
3. It is necessary to set the assignment address of the Function Block variables before
the compilation. See "12.1.8 Assigning Addresses to FB Variables".

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 59/147
Error log
The log of compile results is output as shown below.

Fig.12.3 (d)
Map log
How memory is used in a result of compilation is output as shown
below.

Header information

Size information

TMRB, TMRBF, DIFD, and DIFU


numbers assigned automatically

Function block variables


assigned automatically

Fig.12.3 (e)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 60/147
Header information
Item Description
File name LAD file name
PMC model PMC model
Date Date and time of file output
* The values output at the right of date depend on the local setting.

Size information
Item Description
Message Message data size
Symbol Symbol and comment data sizes
Comment
Function block Sum of the "function block definition data" and "function
definition block compressed data block data" sizes used by
management software and during online operation
Ladder program Ladder and step sequence data size
Function block Instance data size
Memory Used Size of the whole ladder program data
F-ROM Used Flash ROM size needed to store the ladder program
* KB stands for Kbyte(s).

TMRB, TMRBF, DIFD, and DIFU numbers assigned automatically


If the TMRB, TMRBF, DIFU, or DIFD instruction is found to
have number 0, it is automatically assigned with the first unused
number to be found in a backward search.
Item Description
Result of Location and result of automatic assignment in the
assignment program

Function block variables assigned automatically


Automatically assigned function block variables are listed.
Item Description
Result of Location of automatic assignment in the program
assignment Program name: Instance name (definition name)

Assigned addresses are output in the following order.


Assigned address Symbol Data type Number of addresses

The latest map log created in compilation or decompilation is saved to


the sequence program (LAD file).

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 61/147
3.6 DECOMPILE
Following contents have been added as Section "12.4"

12.4 DECOMPILE
In decompiling, object code is converted to a source program.
Explained below is the decompile operating procedure.
Procedure
1. Select [Decompile] from the [tool] menu to display the Decompile
dialog box.

Fig.12.4 (a)
2. Click the [Option] tab, and select a decompile option.

Fig.12.4 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 62/147
FB Definition is restored. (Default setting: Turned off)
If there is a function block definition in a memory card format file,
the definition is restored. If the function block definition is duplicated
in a LAD file, what is done is determined according to the following
setting.
・Source program takes top priority.
If this item is selected, no function block definition in the
memory card format is restored provided that the file function
block name is duplicated in the source program.
・Memory card takes top priority. (Default setting)
If this item is selected, a function block definition in the
memory card format is restored provided that the file function
block name is duplicated in the source program. If the
function block definition in the source program is
password-protected (view edit protection and edit protection),
however, the function block definition in the memory card
format file is not restored.
Table12.4 (a) Function block definition protection and restoration (when the memory card is given priority)
Memory card No protection View edit protection Edit protection
Source program
No protection Memory card enabled Memory card enabled Memory card enabled
View edit protection after Edit protection after
decompiling decompiling
View edit protection Source program enabled Source program enabled Source program enabled
Edit protection Source program enabled Source program enabled Source program enabled

NOTE
1. For ladder programs using function blocks, turn on the
Symbol/Comment is decompiled check box. If it is not
turned on, decompiling results in an error occurring (the
message “J: E-3410: There is no symbol data for the FB
parameter and the instance“ appears).
2. Performing FB Definition is restored restores all function
block definitions used in ladders to the LAD file function
block folder.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 63/147
Clicking the <Detail> button makes it possible to specify to merge
duplicate symbol data for addresses and comments separately.

Fig.12.4 (c)

3. Click the <Exec> button to start decompiling.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 64/147
3.7 MNEMONIC CONVERSION
Following contents have been added as Section "12.5"

12.5 MNEMONIC CONVERSION

12.5.1 Mnemonic Conversion

In mnemonic conversion, source programs are converted to mnemonic


files, which can be edited using a text editor. Function blocks in LAD
files are also converted to mnemonic files.

Procedure
1. Select [Mnemonic Convert…] from the [Tool] menu to display the
[Mnemonic] dialog box.

Fig.12.5.1 (a)
2. Input [Mnemonic File].

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 65/147
3. Specify [Convert Data]. Listed below are the items that can be
selected.
Table12.5.1 (a)
Items Description
ALL All source programs are converted.
System Parameter System parameters are converted.
Title The title is converted.
Symbol&Comment Symbols and comments are converted.
Symbol&Comment
with External Symbol turned off
Symbol&Comment Symbols and comments are converted to an external symbol
with External Symbol turned on file.
Ladder Ladder programs are converted.
I/O Module I/O modules are converted.
Message Messages are converted.
Function Block Function blocks in LAD files are converted.
(Variable definition + body program)

NOTE
1. If external symbol file output is supported, the External Symbol check box appears.
2. No function block definition in function block libraries is converted.
3. No function block of view edit protection can be converted.

4. Specify [Selection Item].


Table12.5.1 (b)
Selection Item Description
Extended function - Function blocks are converted.
- Converts to the format which corresponds to an automatic assignment of
address.
- Converts to the format which corresponds to a global symbol and local
symbol.
- Converts Japanese messages to Japanese-formatted data.
Full options - Converts comments in which kanji characters are included in the
comment data.
- Converts data in which the symbol and comment for an address as well
as the function name of a function are used as comments.
- Converts data that has an instruction part, operand part, and comment
part.
- Converts Japanese message to Japanese-formatted data.
Label/Subprogram - Converts data with the jump addresses (labels) of functions (JMPB,
JMPC, CALL, SP commands) used in a subprogram highlighted .
However, the step number of mnemonic data after conversion is different
from the other settings.(The functions part used in a subprogram is
different.)
P-G Compatible - Converts data to data in the format output by P-G.
- Converts Japanese message to code-formatted data.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 66/147
5. Specifying selection item changes displays as listed below.
Table12.5.1 (c)
Selection item Display
ALL Data kind Separation
System Parameter
Title
I/O Module
Message
Function Block
Symbol&Comment External Symbol
Data kind Separation
Performing automatic address assignment
Ladder Program Separation
Used Symbol
Local Symbol
Global & Local Symbol

Check the check box of the Data kind Separation or the Program
Separation if you want to output the file separately. For details, see
Table 12.5.1 (d).

Table12.5.1 (d) File names used when conversion output is divided by data type
Output data Character File name example
string .txt A_.txt Z
added
System Parameter SYSPRM SYSPRM.txt A_SYSPRM.txt ZSYSPRM
Title TITLE TITLE.txt A_TITLE.txt ZTITLE
Symbol&Comment SYMBOL SYMBOL.txt A_SYMBOL.txt ZSYMBOL
External Symbol
Function Block Definition definition_name.t A_definition_name.txt Zdefinition_name
name xt
Ladder LEVEL n LEVEL1 LEVEL1.txt A_LEVEL1.txt ZLEVEL1
Pn P1 P1.txt A_P1.txt ZP1
I/O Module IOMODULE IOMODULE.txt A_IOMODULE.txt ZIOMODULE
Message MESSAGE MESSAGE.txt A_MESSAGE.txt ZMESSAGE

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 67/147
12.5.2 Source Conversion

In source conversion, mnemonic file of function blocks is converted to


source program. When the Function Block of the same name already
exists, an overwrite.
Procedure
1. Select [Source Program Convert…] from the [Tool] menu to
display the [Mnemonic] dialog box.

Fig.12.5.2 (a)

2. Specify whether to initialize data to be subjected to source


conversion. If no initialization is needed, turn off the Initialize the
following data before conversion check box. The data that can be
initialized includes symbols/comments, ladders, net comments,
and function blocks.
Table12.5.2 (a)
Item Description
Symbol/Comment Symbol/comment data is deleted before
Default setting: Turned on source conversion.
Ladder Ladders and net comments are deleted
Default setting: Turned on before source conversion.

3. Click the <OK> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 68/147
NOTE
1. A function block having the same name as for a view
edit protected or edit protected function block cannot
be subjected to source conversion.
2. If a function block having the same name as for a
non-protected function block is subjected to source
conversion, the non-protected function block is
replaced with the conversion result.
3. It is strongly recommended that ladders using
function blocks be described in the Extended function
format (%@3-D).
4. For the Full Options format, Label/Subprogram
format, and P-G Compatible format, function block
definitions in use must be previously added.

12.5.3 Identification Code

The Extended function format supporting the operation of function


blocks is added as a mnemonic format.
Table12.5.3 (a)
Identification
Selection Item Convert Data Description of changes
code
System Parameter %@0 - Adding model information
- Adding items related to automatic assignment of
variables used in function blocks
Symbol&Comment %@2-D - Symbol-intensive structure
- Adding local/global symbols
Extended function
- Adding symbol type information
- Instance comment for function blocks
Function Block %@3-0 - Adding function blocks
Ladder %@3-D - Supporting function block calls
- Supporting symbol-intensive structure
System Parameter %@0 - Adding model information
- Adding items related to automatic assignment of
variables used in function blocks
Full Options
Symbol&Comment %@2 - Address-intensive structure
Label/Subprogram
%@2-C
P-G Compatible
%@2-C2
Ladder %@3 - Supporting function block calls (with some
restrictions) (See 12.5.5 for details.)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 69/147
12.5.4 Function Block Definition Data

Each function block definition consists of the following two sections.


(1) Variable definition section (FB name, input parameter, input/output
parameter, output parameter, internal variable, external variable, etc.)
(2) Body program section (ladder circuit)

Definition start code (%@3-0) FB name

FBSAMPLE_1 Definitions of
(variable definition section/ variables used Variable definition
body program section) ・Input parameter section
・Output parameter
FBSAMPLE_2 ・Internal variable
(variable definition section/ (etc.)
body program section)
Ladder circuits
RD IN1
・・・
AND MEM1 Body program
・・・ section
WRT OUT1
Definition end code(%)

Fig.12.5.4 (a)

Variable definition section


The function block definition section defines a function block name and
variables used in the function block, such as input/output parameters
and internal variables.
Body program section
The body program section of a function block defines ladder circuits to
be added to the function block. Described below is the specification of
ladder circuits that can be added to function blocks.
(1) Only the Ladder language can be used. (Up to four nesting levels are
usable in calling function blocks.)
(2) Actual addresses are left un-resolved in descriptions of internal
variables used by ladder circuits. In ladder circuits, variable names
(symbols) are used.
(3) There are restrictions to use of some functional instructions. See
NOTE of "12.1.4 Adding Ladders".

The mnemonic format is much the same as the ladder format. In the
mnemonic format, however, programs are written in block units, which
are delimited with block start/end lines similar to those used in
subprograms.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 70/147
Added ladder circuit Mnemonic format
(Block start line)
RD IN1
IN1 MEM3 MEM5 OUT1 AND MEM3
RD.STK MEM1
MEM1 MEM4 OR MEM2 Uses variable name.
AND MEM4
OR.STK
MEM2 AND MEM5
WRT OUT1
(Block end line)

Fig.12.5.4 (b)

Mnemonic format
Listed below is the mnemonic format of the function block definition
section.
Table12.5.4 (a) Function block definition section mnemonic format
(identification-code) %@3-0
(definition-start-identifier) $FB_DEF
(function-block-name-identifier) $FB_NAME
function-block-comment
(version-identifier) $FB_VERSION
(parameter/variable-start-identifier) $FB_IN, $FB_OUT, etc
parameter/variable
parameter/variable-comment
(parameter/variable-end-identifier) $END_FB_IN, $END_FB_OUT, etc
(program-start-identifier) $FB_PRG
ladder-program
(program-end-identifier) $END_FB_PRG
(definition-end-identifier) $END_FB_DEF
(identification-code) %

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 71/147
(a) Identification code
Specify the start or end of a function block in the mnemonic
format.
Start: %@3-0
End: %

(b) Identifier
Table12.5.4 (b)
Identifier Description
$FB_DEF Definition section start
$END_FB_DEF Definition section end
$FB_NAME Function block name
$FB_VERSION Version
$FB_IN Input parameter start
$END_FB_IN Input parameter end
$FB_INOUT Input/output parameter start
$END_FB_INOUT Input/output parameter end
$FB_OUT Output parameter start
$END_FB_OUT Output parameter end
$FB_VAR Internal variable start
$END_FB_VAR Internal variable end
$FB_EXTERN External variable start
$END_FB_EXTERN External variable end
$FB_PRG Program start
$END_FB_PRG Program end
$FB_LABEL Label start
$END_FB_LABEL Label end

(c) Formats of parameters (input, output, and input/output) and


variables (internal and external)
$FB_VAR
WK_A1 SINT 1 0
$1 'CM1'
$2 'CM2'
$M 1 8BIT
$END_FB_VAR

Programs and variables are described in the following format.


Symbol Data type Number Keep
WK_A1 SINT 1 0

Number: Number of data items secured by one variable


Keep: Specification of the nonvolatile memory type or the volatile
memory type in internal variables
† The string delimiter is either a space or tab character.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 72/147
$1 is the first comment, $2 is the second comment, $3 is the third
comment, and $4 is the fourth comment. Each character string
enclosed in single quotation marks is a comment.
$1 'CMT1'
Comment character string

Mark (fixed at $1) signifying the first comment

$M specifies the FB instance monitor display format as listed


below.
$M 1 8BIT
Order of display Monitor type

Mark (fixed at $M) signifying an FB instance monitor


- Order of display: Order in which FB instance monitors are
displayed.

[Data types]
Data type symbol Data type
BOOL 1-bit Boolean value
SINT 8-bit signed integer
INT 16-bit signed integer
DINT 32-bit signed integer
USINT 8-bit unsigned integer
UINT 16-bit unsigned integer
UDINT 32-bit unsigned integer
BYTE 8-bit sequence
WORD 16-bit sequence
DWORD 32-bit sequence
FB Function block variable

[Internal and external variable display types]


Data type
Data type Monitor type
symbol
BOOL 1-bit Boolean value ON/OFF indication
SINT 8-bit signed integer Signed decimal number
INT 16-bit signed integer Signed decimal number
DINT 32-bit signed integer Signed decimal number
USINT 8-bit unsigned integer Unsigned decimal number
UINT 16-bit unsigned integer Unsigned decimal number
UDINT 32-bit unsigned integer Unsigned decimal number
BYTE 8-bit sequence Hexadecimal number
WORD 16-bit sequence Hexadecimal number
DWORD 32-bit sequence Hexadecimal number
8BIT 8-bit sequence In terms of bit sequence
16BIT 16-bit sequence In terms of bit sequence

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 73/147
Function block mnemonic
%@3-0 Identification code (function block mnemonic start)
$FB_DEF Definition section start identifier
$FB_NAME FUNC Function block name identifier
$1 'CM1' Function block first comment
$2 'CM2' Function block second comment
$FB_VERSION '1.00' Version identifier
$FB_IN Input parameter start identifier
EN BOOL Input parameter
$1 'CM1' Input parameter first comment
IN1 BOOL 1 0
$1 'CM1'
$2 'CM2'
IN2 SINT 1 0
$END_FB_IN Input parameter end identifier
$FB_INOUT Input/output parameter start identifier
IO BOOL 1 0 Input/output parameter
$1 'CM1' Input/output parameter first comment
$2 'CM2' Input/output parameter second comment
$END_FB_INOUT Input/output parameter end identifier
$FB_OUT Output parameter start identifier
ENO BOOL Output parameter
$1 'CM1' Output parameter first comment
OUT1 BOOL 1 0
$1 'CM1'
OUT2 SINT 1 0
$END_FB_OUT Output parameter end identifier
$FB_VAR Internal variable start identifier
WK_A1 SINT 1 0 Internal variable
$1 'CM1' Internal variable first comment
$M 1 8BIT Internal and external variable minotor and display
INSTANCE FB Function block instance
$1 'CM1' Instance comment
$END_FB_VAR Internal variable end identifier
$FB_EXTERN External variable start identifier
Z_COUNT SINT External variable
$1 'CM1' External variable first comment
$END_FB_EXTERN External variable end identifier
$FB_LABEL Label start identifier
L_SYMBOL Label variable
$1 'CM1' Label variable first comment
$END_FB_LABEL Label end identifier
$FB_PRG Program start identifier
RD IN1 ;
WRT OUT1 ;
RD %R9091.1
JMPB L_SYMBOL ;
RD %R9091.1
MOVB
IN2 ;
OUT2 ;
L_SYMBOL LBL ;
$END_FB_PRG Program end identifier
$END_FB_DEF Definition section end identifier
% Identification code (function block mnemonic end)

Fig.12.5.4 (c)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 74/147
Body program section ladder
IN1 OUT1

R9091.1
SUB68
JMPB L_SYMBOL

R9091.1
SUB43
MOVB IN2

OUT2

SUB69
LBL L_SYMBOL

Fig.12.5.4 (d)

NOTE
1. All basic and functional instructions must be preceded by a space or tab character.
2. All characters that follow the special character ; (semicolon) are ignored.
3. Prefix each address with the special character % (percent).
4. Each parameter is placed in the mnemonic order.
5. An EN and ENO must be at the beginning of, respectively, the input and output
parameters.
6. For each parameter, the number of data items in them and whether to hold them
can be omitted.
(If omitted, the number of data items is assumed to be 1 and the keep is assumed
to be 0 (Non-keep).)
7. No function block library function block definition is subjected to conversion.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 75/147
12.5.5 Ladder Data
Ladder programs can call FB instances.
Mnemonic format
Listed below is the mnemonic format of the ladder data section.
Table12.5.5 (a) Ladder mnemonic format
(Identification-code) %@3-D
ladder
(input-argument-specification-start-identifier) $FB_ARGIN
input-argument
(input-argument-specification-end-identifier) $END_FB_ARGIN
(function-block-call-identifier) $FB_CALL
(function-block-definition-start-identifier) $FB_DEF
definition
(function-block-definition-end-identifier) $END_FB_DEF
(output-argument-specification-start-identifier) $FB_ARGOUT
output-argument
(output-argument-specification-end-identifier) $END_FB_ARGOUT
ladder
(Identification-code) %

(a) Identification code


Specify the start or end of a ladder.
Start: %@3-D (extended symbol format)
End: %

(b) Identifier
Identifier Description
$FB_IN Input parameter start
$END_FB_IN Input parameter end
$FB_INOUT Input/output parameter start
$END_FB_INOUT Input/output parameter end
$FB_OUT Output parameter start
$END_FB_OUT Output parameter end
$FB_VAR Internal variable start
$END_FB_VAR Internal variable end
$FB_EXTERN External variable start
$END_FB_EXTERN External variable end
$FB_ARGIN Input argument specification start
$END_FB_ARGIN Input argument specification end
$FB_ARGOUT Output argument specification start
$END_FB_ARGOUT Output argument specification end
$FB_CALL Function block call
$FB_DEF Definition section start
$END_FB_DEF Definition section end
$ARGn Argument n
Declared with input or output section data used as
argument.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 76/147
(c) Input parameter
Input parameters are specified as listed below.
Input parameter symbol Data type
Symbol BOOL
The delimiter for strings is either a space or tab character.

(d) Input/output parameter


Input/output parameters are specified as listed below.
Input/output parameter symbol Data type
Symbol BOOL
The delimiter for strings is either a space or tab character.

(e) Output parameter


Output parameters are specified as listed below.
Output parameter symbol Data type
Symbol BOOL
The delimiter for strings is either a space or tab character.

(f) Function block call


Each function block identifier must be followed by a function
block definition name and an instance name
Function block call Instance name Definition name
$FB_CALL FUNC1 FUNC
The delimiter for strings is either a space or tab character.
Symbols and comments in the extended function format are used
to specify instance comments.

- Symbols and comments (extended function format: %@2-D)


%@2-D
FUNC1 :FB_I
$1 ‘CM1’
$2 ‘CM2’
$3 ‘CM3’
$4 ‘CM4’
%

(g) Definition section start


The definition section start identifier is followed by a function
block definition.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 77/147
[Data types]
Data type symbol Data type
BOOL 1-bit Boolean value
SINT 8-bit signed integer
INT 16-bit signed integer
DINT 32-bit signed integer
USINT 8-bit unsigned integer
UINT 16-bit unsigned integer
UDINT 32-bit unsigned integer
BYTE 8-bit sequence
WORD 16-bit sequence
DWORD 32-bit sequence

[Address (symbol) specification method]


Specification method Description example
Address %X0.0
(Each address must be prefixed with %.)
Symbol COUNT_IN

Sample ladder 1

END1

R0010.0 R0010.1

FUNC1

R0003.0 FUNC
R0003.1
EN ENO

X0000.0 Y0000.0
IN1 OUT1

100 IN2 OUT2 R0210

R0220.0
R0200.0 IO IO

END2

Fig.12.5.5 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 78/147
Sample mnemonic 1 (Extended function format)
%@3-D Identification code (ladder mnemonic start)
END1
RD %R10.0
WRT %R10.1
$FB_ARGIN Input argument specification start
$ARG1 %R3.0 The content of R3.0 is passed to input
$ARG2 %X0.0 parameter 1.
$ARG3 100
$ARG4 %R200.0
$END_FB_ARGIN Input argument specification end
$FB_CALL FUNC1 FUNC Called instance and definition names
$FB_DEF Definition section start identifier
$FB_IN Input parameter start identifier
EN BOOL
IN1 BOOL
IN2 SINT
$END_FB_IN Input parameter end identifier
$FB_INOUT Input/output parameter start identifier
IO BOOL
$END_FB_INOUT Input/output parameter end identifier
$FB_OUT Output parameter start identifier
ENO BOOL
OUT1 BOOL
OUT2 SINT
$END_FB_OUT Output parameter end identifier
$END_FB_DEF Definition section end identifier
$FB_ARGOUT Output argument specification start
$ARG1 %R3.1 The content of output parameter 1 is passed
$ARG2 %Y0.0 to R3.1.
$ARG3 %R210
$ARG4 %R220.0
$END_FB_ARGOUT Output argument specification end
END2
END
% Identification code (ladder mnemonic end)

Fig.12.5.5 (b)

NOTE
1. When entering LBL or SP instruction parameters, begin at
character position 1.
2. All basic and functional instructions must be preceded by a
space or tab character.
3. On each line, any character preceding : (colon) or ;
(semicolon) is ignored.
Prefix each address with the special character % (percent).
4. It is strongly recommended that ladders using function
blocks be described in the Extended function format
(%@3-D).

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 79/147
Sample mnemonic 1 (Full Options format)
%@3 Identification code (ladder mnemonic start)
N00001: SUB 1
N00002: RD R10.0
WRT R10.1
N00003: $FB_ARGIN Input argument specification start
$ARG1 R3.0 The content of R3.0 is passed to input
$ARG2 X0.0 parameter 1.
$ARG3 100
$ARG4 R200.0
$END_FB_ARGIN Input argument specification end
$FB_CALL FUNC1 FUNC Called instance and definition names
$FB_DEF Definition section start identifier
$FB_IN Input parameter start identifier
EN
IN1
IN2
$END_FB_IN Input parameter end identifier
$FB_INOUT Input/output parameter start identifier
IO
$END_FB_INOUT Input/output parameter end identifier
$FB_OUT Output parameter start identifier
ENO
OUT1
OUT2
$END_FB_OUT Output parameter end identifier
$END_FB_DEF Definition section end identifier
$FB_ARGOUT Output argument specification start
$ARG1 R3.1 The content of output parameter 1 is passed
$ARG2 Y0.0 to R3.1.
$ARG3 R210
$ARG4 R220.0
$END_FB_ARGOUT Output argument specification end
N00004: SUB 2
N00005: SUB 64
% Identification code (ladder mnemonic end)

Fig.12.5.5 (c)

NOTE
1. If symbols are used, the input and output sections are
output in terms of PMC addresses. (No mnemonic output
is available unless the addresses are resolved.)
2. Symbol comment data in the Full options format does not
support instance comment definitions. (The same applies
to the Label/Subprogram format and the P-G Compatible
format.)
3. For the Full options format, function block definitions in
use must be previously added. (The same applies to the
Label/Subprogram format and the P-G Compatible
format.)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 80/147
12.5.6 Symbol and Comment Data

1) Characters usable in symbols/comments


The characters stipulated by the IEC61131-3 standard can be used
in symbol data. Some characters not stipulated by IEC61131-3 are
also usable with the aim of supporting compatibility with the
current specification. However, it is recommended to comply with
IEC61131-3.
The characters complying with the current specification are usable
in comment data.
2) Number of characters in a symbol/comment
Maximum number of characters in each 40 (one-byte characters)
symbol
Maximum number of characters in each 255 (one-byte characters)
comment
Maximum number of comment types 4
usable

See "11 Extended symbol/comment function" about details of the


symbol comment.

NOTE
1. The character of the symbol data is strongly
recommended to use only letters, numbers, and the
special characters '_' (underscore) defined in the
IEC61131-3 standard.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 81/147
12.5.7 System Parameter Data

The mnemonic format of system parameters is described below.

(Example) 30i-A PMC(MEM-B,FB) samples


%@0
2 BINARY 2: Counter data type (BINARY or BCD)
3 NO 3: Whether operator panel is available (Available: YES. Unavailable: NO.)
4 30i-A PMC(MEM-B,FB) 4: PMC type 30i-A PMC(MEM-B,FB)
11 UNUSE 11: I/O link assignment select (Channel 1)
12 0 12: Number of basic I/O link groups (Channel 1)
13 UNUSE 13: I/O link assignment select (Channel 2)
14 0 14: Number of basic I/O link groups (Channel 2)
15 UNUSE 15: I/O link assignment select (Channel 3)
16 0 16: Number of basic I/O link groups (Channel 3)
17 UNUSE 17: I/O link assignment select (Channel 4)
18 0 18: Number of basic I/O link groups (Channel 4)
31 1 31: Number of specified display languages (comment) ( 1-16 )
32 -1 32: CNC display language 1 (-1, 0-127)
33 0 33: Comment set number 1 (0-16)
100 YES 100: Whether automatic assignment is available (Available: YES. Unavailable: NO.)
101 R100-R199 101: BOOL for R address (Character string R100-R199 )
102 R700-R799 102: BYTE for R address
103 0-0 103: WORD for R address
104 0-0 104: DWORD for R address
111 D100-D149 111: BOOL for D address (Character string D100-D149 )
112 D200-D299 112: BYTE for D address
113 0-0 113: WORD for D address
114 0-0 114: DWORD for D address
121 E0-E199 121: BOOL for E address (Character string E0-E199 )
122 0-0 122: BYTE for E address
123 0-0 123: WORD for E address
124 0-0 124: DWORD for E address
131 R500-R1000 131: FB variable 1
132 0-0 133: FB variable 2
141 D500-D1000 141: FB variable (keep) 1
142 0-0 142: FB variable (keep 2
%

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 82/147
3.8 PRINTING
Following contents have been added as Section "12.6"

12.6 PRINTING

It is possible to print function definitions and ladder programs that use


function blocks.

NOTE
1. In cross-reference and bit address map printing,
addresses in the input and output sections of FB
instances can be printed. However, those in the input,
output, and input/output parameters of FB instances
cannot.
2. Addresses used by the body program of function block
definitions are not targets in cross-referencing and bit
address map printing.

12.6.1 Printing Ladder Diagrams

This subsection explains how to print ladder diagrams. Ladder diagrams


containing FB instances can be printed.

Procedure
1. Select [Print] from the [File] menu. The [Print] dialog box appears.

Fig.12.6.1 (a)
Click the <Option> button. Then, the [Option] window appears.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 83/147
2. Click the [Ladder Diagram] tab, click the <Details> button, and
select the Relay/Coil and the Instance.
Relay/Coil
Before starting to print a ladder diagram, specify "Relay/Coil" to
determine what to print for the lower row of contacts, coils and
functional instruction parameters.
Table12.6.1 (a) Relay/Coil and printed data
Selecting "Relay/Coil" Contact Coil Parameter
(functional instruction)
Symbol Upper row Address (8)
Lower row Symbol (16)
1st comment Upper row Address (8)
Lower row 1st comment (16)
Nth comment Upper row Address (8)
Lower row Nth comment (16)
N: 1 to 4. Enclosed in parentheses is the number of characters.
Instance
Before starting to print a ladder diagram, specify "Instance" to
determine what to print for the lower row of FB instance name, FB
definition names, input parameters, input/output parameters, and
output parameters.
Table12.6.1 (b) Instance and printed data
Selecting "Instance" FB FB Parameter
Instance definition (FB instance)
name name
<None> Upper row Symbol (32) Symbol (15)
Lower row None None
1st comment Upper row Symbol (32) Symbol (15)
Lower row 1st comment (32) 1st comment (30)
Nth comment Upper row Symbol (32) Symbol (15)
Lower row Nth comment (32) Nth comment (30)
N: 1 to 4. Enclosed in parentheses is the number of characters.

3. To start printing, click the <OK> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 84/147
Example of printing a ladder diagram

Fig.12.6.1 (b)

NOTE
1. If the Cross Reference check box is turned on, the
cross-references of contacts in the input section of
FB instance and of coils in the output section of it are
printed.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 85/147
12.6.2 Printing Function Blocks
This subsection explains how to print function block definitions. The
variable definition section and body program section of a function block
definition can be printed.
Procedure
1. Select [Print] from the [File] menu. The [Print] dialog box appears.

Fig.12.6.2 (a)
Select the Function Block of Print Data.
2. Click the <Option> button. Then, the [Option] window appears.
Click the [Function Block] tab.

Fig.12.6.2 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 86/147
3. Specify the option of the Function Block print.
- Start Page No.
Specify the start page number for function block printing.
(initial value = 1)
- Page range
Specify the range of pages to be printed.
- Print format of variable
Specify a print format for variables and what comment to print.
(initial value = All)
Selecting All prints all comments. See Fig. 12.6.2 (d).
Selecting Simple makes it possible to specify which comment to
print. See Fig. 12.6.2 (e). (initial value = 1st comment)
- Print graphical form
No check: The FB graphical form is not printed. (default)
Check: The FB graphical form is printed.
- Title
Specify a title for function block printing.
(initial value = "Function Block")
- Sub Title
Specify a subtitle for function block printing.
(initial value = blank)
- Print Function Block
Lets you specify which function block to print.
(initial value = <All Function Block>)
All Function Block: All Function Blocks except the Function
Block library are selected.

Fig.12.6.2 (c)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 87/147
NOTE
1. No function block of view edit protection is displayed
in the "FB selection dialog".

- <Details> button
Specify Relay/Coil to determine what to print for the lower row of
contacts, coils and functional instruction parameters.
specify Instance to determine what to print for the lower row of FB
instance name, FB definition names, input parameters,
input/output parameters, and output parameters.
Relay/Coil
Table12.6.2 (a) Relay/Coil and printed data
Selecting "Relay/Coil" Contact, coil, and parameter
With address With symbol
used used
Upper row Address (8) Symbol (8)
Symbol
Lower row None Symbol (16)
Upper row Address (8) Symbol (8)
1st comment
Lower row None 1st comment (16)
Upper row Address (8) Symbol (8)
Nth comment
Lower row None Nth comment (16)
N: 1 to 4. Enclosed in parentheses is the number of characters.
Instance
Table12.6.2 (b) Instance and printed data
Selecting "Instance" FB FB Parameter
instance definition (FB instance)
name name
Upper row Symbol (32) Symbol (15)
<None>
Lower row None None
Upper row Symbol (32) Symbol (15)
1st comment
Lower row 1st comment (32) 1st comment (30)
Upper row Symbol (32) Symbol (15)
Nth comment
Lower row Nth comment (32) Nth comment (30)
N: 1 to 4. Enclosed in parentheses is the number of characters.

4. To preview what the function block print looks like, click the
<Preview> button.

5. If you want to specify print options, click the <OK> button. If you
want to stop specifying print options, click the <Cancel> button.
The [Print] window appears again.

6. If you want to start printing, click the <OK> button. If you want to
cancel printing, click the <Cancel> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 88/147
NOTE
1. For function blocks of view edit protection, neither variable definition sections
nor body programs can be printed. For function blocks of edit protection, their
variable definition sections and body programs can be printed.
2. No function block in an FB library being referenced by a ladder can be printed.
3. It is impossible to print either variable definition sections or body programs
alone.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 89/147
Examples of printed FB variables

Fig.12.6.2 (d) Example for Print format of variable: "All"

Fig.12.6.2 (e) Example for Print format of variable: "Simple" - "2nd Comment"

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 90/147
Example of printing a print graphical form
When the Print graphical form is checked, the figure below is printed.

FB Graphical Form

Fig.12.6.2 (f)
Example of printing an FB body program

Fig.12.6.2 (g)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 91/147
12.6.3 Printing System Parameters
This subsection explains how to print system parameters.
The setting of "Assignment Address of FB" used with function blocks
can be printed.
Procedure
1. Select [Print] from the [File] menu. The [Print] dialog box appears.
In the [Option] window, select system parameter print options.

Fig.12.6.3 (a)
2. If you want to print, click the <OK> button.
Print example

Fig.12.6.3 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 92/147
12.6.4 Printing Symbols
This subsection explains how to print symbol comments.
FB instance names and comments are printed.
Procedure
1. Select [Print] from the [File] menu. The [Print] dialog box appears.
In the [Option] window, specify symbol print options.

Fig.12.6.4 (a)

2. If you want to start printing, click the <OK> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 93/147
Print examples

Fig.12.6.4 (b) Example for Print format of variable: "All"

Fig.12.6.4 (c) Example for Print format of variable: "1 Line"

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 94/147
3.9 DIAGNOSIS
Following contents have been added as Section "12.7"

12.7 DIAGNOSIS
This section explains how to monitor and edit ladder programs in online
diagnosis.
12.7.1 Ladder Monitoring
It is possible to monitor the way ladder programs including function
blocks operate.
Procedure
1. Select [File] - [Open Program] to open the program you want to
monitor.
2. When the system is in offline mode, select [Ladder]
-[Online/Offline] to set online mode.
State of <On-Line/Off-Line Change> button
:Offline mode

:Online mode

3. Select [Ladder] - [Monitor/Editor] to switch between the


[Monitor] screen and [Edit] screen.
State of button
:State of online monitor

:State of online edit

Monitoring window
The FB instance address can be monitored.

Fig.12.7.1 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 95/147
NOTE
1. When data type of the parameter of the FB instance is
BYTE, WORD, and DWORD, prefix them with "16#".
2. See "9.1.2 [Monitor] Screen" when you want to display it
with the cursor.

Editing window
It is possible to edit ladders including function blocks in the online
mode. For nets using function blocks, it is possible to edit PMC
addresses and constants in the input/output sections and to delete nets
from them.

Fig.12.7.1 (b)

NOTE
1. When entering hexadecimal constants to function block
input sections, prefix them with "16#".
2. It is impossible to change input/output parameters for
function block input sections.
3. It is impossible to edit input, output, and input/output
parameters defined in function blocks or body programs.
4. It is impossible to copy nets containing function blocks.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 96/147
12.7.2 Monitor of FB body program
It is possible to monitor the FB body program.
Procedure
1. The cursor is displayed in the ladder monitoring window. See
"9.1.2 [Monitor] Screen" when the cursor is not displayed.
2. Display the FB instance.
3. Click the FB instance, then select "xx Open" from the context
menu. "xx" displays the instance name. The FB body program can
be opened by pushing [Enter] key or the doubleclick.

Fig.12.7.2 (a)
4. The FB body program is displayed.

Fig.12.7.2 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 97/147
NOTE
1. It is necessary to release protection temporarily by
inputting the password when the FB body program that
you want to open is a View edit protection.
2. If you change to an online editing, the FB body program is
displayed with the edit prohibited.
3. The protection temporarily released in the online mode is
recreated by an operation listed below.
(1) When you switch the online mode to offline mode.
(2) When you switch to different PMC path with the
multi-path PMC.
(3) When you load the ladder program.
(4) When an online connection is disconnected, and
reconnected.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 98/147
3.10 CREATING FUNCTION BLOCK LIBRARIES
Following contents have been added as Section "12.8"

12.8 CREATING FUNCTION BLOCK LIBRARIES

Function block definitions shared by several sequence programs (LAD


files) can be grouped to create a library file consisting only of function
block definitions.
The function block library is stored to a file whose file extension is FLL.

Function block library (FLL file)

Function block (FB definition)

FB definition 1

FB definition 2

FB definition 3

Fig.12.8 (a)

For function block libraries, the following operations are available.


- Creating and saving library files (FLL files)
- Adding function blocks in a source program (LAD file)
- Editing function block definitions
- Printing function block definitions
- Converting function block definitions to mnemonic format
- Protecting function block definitions

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 99/147
12.8.1 Creating Function Block Libraries (FLL Files)
This subsection explains how to create function block libraries (FLL
files).
Procedure
1. Select [New Program] from the [File] menu to display the
following dialog box.

Fig.12.8.1 (a)

2. Select the [FB Library] tab.

Fig.12.8.1 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 100/147
3. Enter an arbitrary file name, and click the <OK> button.
The [Program List] window for the function block library appears.
The status bar displays [FL-LIB] as model information.

Fig.12.8.1 (c)

[Function Block]
Lists function blocks to be add to the FB library.

[Function Block Library]


Lists function blocks from another FB library, which the FB
library of interest will reference. It is impossible to edit these
function block definitions.

[User Folder]
Lists imported user files.
Using the export function can take out user files.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 101/147
12.8.2 Adding Function Blocks

This subsection explains how to add function blocks defined in a source


program (LAD file) to a function block library (FLL file).
Procedure
1. Open a LAD file containing function blocks.
2. Open a function block library (FLL file).
3. From the [Program List] window for the source program (LAD),
copy and paste or drag and drop a function block (source) onto
[Program List] for the function block library (FLL).

Function block library (FLL file) Source program (LAD file)

Add this using the drag and drop or copy


and paste operation. It can be dropped
anywhere on the Program List.

Fig.12.8.2 (a)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 102/147
12.8.3 Saving Function Block Libraries
This subsection explains how to save new data to a function block
library (FLL file).
Procedure
1. Select [Save] from the [File] menu. If the program was updated,
the [Program Save] window appears.

Fig.12.8.3 (a)

Check the data you want to save.


2. If you want to save the program, click the <OK> button.
If you want to cancel the attempt to save, click the <Cancel>
button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 103/147
3. After a program has been created or updated, if you attempt to exit
FANUC LADDER-III without selecting [Save] from the [File]
menu, the [Program update] window shown below appears.

Fig.12.8.3 (b)
Check the data you want to save.
4. If you want to save the data, click the <Save> button.
If you do not want to save, click the <Quit> button.
If you want to cancel this operation, click the <Back> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 104/147
12.8.4 Opening Function Block Libraries (FLL Files)

This subsection explains how to open existing function block libraries


(FLL files).
Procedure
1. Select [Open Program] from the [File] menu. The dialog box
shown below appears.

Fig.12.8.4 (a)

2. Enter a function block library name, and click the <Open>


button.The [Program List] window appears.

Fig.12.8.4 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 105/147
12.8.5 Editing Function Blocks

This subsection explains how to edit function block definitions in a


function block library (FLL file).
Procedure
1. Select [Program List] from the [View] menu. The [Program List]
window appears. (Usually, this window opens automatically when
an FLL file is created or opened.)

Fig.12.8.5 (a)

2. In the [Program List] window, double-click a function block you


want to edit, or select it and press the [Enter] or [F11] key.

The window for editing function block definitions appears.


The editing method for function block definitions in function block
libraries is the same as for those in source programs (LAD files). See
"12.1 Creating Function Blocks".

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 106/147
12.8.6 Adding Function Blocks

This subsection explains how to add function block definitions to a


function block library (FLL file).

Procedure
1. Select [Program List] from the [View] menu to display the
[Program List] window. (Usually, this window opens
automatically when an FLL file is created or opened.)

Fig.12.8.6 (a)

2. In the [Program List] window, place the cursor on a function block


or function block definition. Select [ADD FB] from the context
menu, and press the [F9] key.

The Property window for the function block appears.


The method for adding function blocks in this window is the same as for
those in a source program (LAD file). See "12.1 Creating Function
Blocks".

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 107/147
12.8.7 Calling from Another Function Block Library

Adding a function block library file (FLL file) other than the function
block library of interest displays the function blocks in the newly added
library in the current Program List.

Function block library

Fig.12.8.7 (a)

The method for calling function blocks in another function block library
from a ladder is the same as for calling those in a source program (LAD
file). See "12.2.1 Calling Function Blocks from Ladders".

CAUTION
1. Function blocks called from ladders are searched
through in the order stated below.
(1) Function blocks in a source file.
(2) Function blocks in a function block library (FLL
file) (if there are two or more libraries, a search is
made in the order of numbers set for them)
2. When a function block library is used, if two or more
function blocks have the same name, it is likely that
an unintended function block may be called.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 108/147
Adding function block library files
Function block library files (FLL files) other than those for the ladder of
interest can be added using the following procedure.
1. In the Option window selected from the [Tool] menu, select the
[Function Block] tab.

Fig.12.8.7 (b)
2. Click the <Detail> button under Setting of Function Block Library
to display the [Detail] window, and specify function block library
files (FLL files).

Fig.12.8.7 (c)
<Browse>: Lets you specify a function block library file (FLL
file).
<Save Settings>: Saves your settings as common settings for
FANUC LADDER-III.
<Restore Settings>: Restores the common settings of FANUC
LADDER-III. They can be restored easily when a
FLL file is created.
<OK>: Saves your settings to a FLL file.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 109/147
12.8.8 Printing Function Block Libraries
This subsection explains how to print function blocks in a function
block library (FLL file).
Procedure
1. Select [Print] from the [File] menu. The [Print] dialog box appears.

Fig.12.8.8 (a) Print dialog box for FLL


2. Click the <Option> button. The <Option> window appears.
Specify the option of the function block print.

Fig.12.8.8 (b) Option dialog box for FLL


3. If you want to preview how function blocks will look when they
are printed, click the <Preview> button.
4. If you want to specify print options, click the <OK> button. If you
want to cancel, click the <Cancel> button. The [Print] window
appears again.
5. If you want to start printing, click the <OK> button. If you want to
cancel, click the <Cancel> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 110/147
12.8.9 Converting Function Block Libraries to Mnemonic Files

The following procedure converts function block definitions in a


function block library (FLL file) to a mnemonic file, which can be
edited using a text editor. The mnemonic format for function block
definitions is the same as for source programs (LAD files). See "12.5.4
Function Block Definition Data".

Procedure
1. Select [Mnemonic Convert] from the [Tool] menu to display the
[Mnemonic] dialog box.

Fig.12.8.9 (a) Mnemonic Conversion (for FLL)

2. Specify [Mnemonic File].

3. Specify a function block you want to convert, and click the <OK>
button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 111/147
12.8.10 Converting Mnemonic Files to Function Block Libraries

The following procedure converts function block definitions from


mnemonic file format to function block library (FLL file) format. The
mnemonic format for function block definitions is the same as for
source programs (LAD files). See "12.5.4 Function Block Definition
Data".

Procedure
1. Select [Source Program Convert] from the [Tool] menu to display
the [Mnemonic] dialog box.

Fig.12.8.10 (a) Source Program Conversion (for FLL)

2. Specify [Mnemonic File], and click the <OK> button.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 112/147
3.11 COMMAND LINE EXECUTION FUNCTION
You can specify a batch command file as an argument of an executable
file of FANUC LADDER-III to automatically perform operations such
as compilation.
COMMANDS

Add the following to the "10.3 COMMANDS"


The function that can be used is as follows for the function block.

Table12.8 (a)
Command Function block FB Library
(LAD) (FLL)
FlOpen O O
FlClose O O
Compile O X
DeCompile O X
SrcToMnemonic O O
MnemonicToSrc O O
Import O X
Export O X
LadDiff X X
FlNew O X
FlChange O X
FBNew X O
End O O
O : Available
X : Unavailable

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 113/147
Add the following to the "10.4.3 Compiling an *.LAD File"

When the Function Block is supported PMC

Compile [/symbol=0 | 1] [/comment=**] [/netcmt=0 | 1] [/multi=0 | 1] [/warning=0 | 1]


[/password=0 | 1 | 2 | 3 [string1] [string2]] [/mult_sym=0 | 1] [/fbdef=0 | 1]
[/fbchk=0 | 1] [/fblib=[Drive:][Path]file name]

Parameter
/symbol =0: Outputs neither symbols nor comments.
=1: Outputs symbols and comments.
* This parameter is /symbol=1 when omitted.
/comment =10: Outputs no 1st comment.
=11: Outputs 1st comment.
=20: Outputs no 2ndt comment.
=21: Outputs 2ndt comment.
=30: Outputs no 3rdt comment.
=31: Outputs 3rd comment.
=40: Outputs no 4th comment.
=41: Outputs 4th comment.
=100: Outputs no instance comment.
=101: Outputs instance comment.
=110: Outputs no variable comment.
=111: Outputs variable comment.
- If multiple comments are supported, this parameter is available.
- It will output all comments, if this parameter is omitted.
- It can specify two or more arguments with a comma(,).
Ex.) /comment=11,21: Outputs 1st and 2nd comment.
- The comment that omitted the argument of this parameter is not outputted.
Ex.) /comment=11: Outputs 1st comment. Outputs no 2nd, 3rd and 4th comment.
- When outputting only a symbol, it specifies as follows.
Ex.) /comment=10,20,30,40,100,110: Outputs only symbol.
* When a comment is the PMC model that is 2 sets, the 3rd and 4th comment is disregarded.
- When the comment on the FB instance and the comment on the variable are output, n th
comment is output.
Ex.) /comment=11 and 21,101,111: The 1st, 2 comments, and the 1st and 2 comments of
the FB instance and the variable are output.
/netcmt =0: Outputs no net comment pointers.
=1: Outputs net comment pointers.
* This parameter is /netcmt=0 when omitted.
/multi =0: Does not check function parameter numbers for duplication.
=1: Checks function parameter numbers for duplication.
* This parameter is /multi=0 when omitted.
/warning =0: Does not display the detail of the warning.
=1: Display the detail of the warning. The warning number: I:W-4500, I:W-4501
* This parameter is /warning=0 when omitted.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 114/147
/password =0: Sets no passwords.
=1: Sets a password to permit display and a password to permit display and editing.
=2: Sets a password to permit display and editing.
=3: Sets a password to permit display.
string1 : String of a password to permit display (up to 16 characters)
string2 : String of a password to permit display and editing (up to 16 characters)
* This parameter is /password=0 when omitted.
/mult_sym =0: Multiple use symbol defined to one address are not checked.
=1: Multiple use symbol defined to one address are checked.
* This parameter is /mult_sym =0 when omitted.
/fbdef =0: Outputs no function block definition.
=1: Outputs function block definition.
* This parameter is /fbdef=1 when omitted.
/fbchk =0: Does not execute the comparison check of the function block definition.
=1: Executes the comparison check of the function block definition.
* This parameter is /fbchk=1 when omitted.
/fblib =[Drive:][Path]File name
Specifies the drive, path and filename of the FB library.
* If omitting the parameter, only function blocks in LAD file are used.

Example of the text file that specified FB library


[FBLib]
Ext1=\\dev_sv\dcs\d7e\dev\ExtFladder\ME55\AUTO_COUNT.FLL
Ext2=\\dev_sv\dcs\d3e\dev\ExtFladder\MC11\AUTO_TBLFLL
Ext3=G:\MM33\COMP_CNT.FLL
Ext4=\\dev_sv\dcs\d7e\dev\ExtFladder\AR109\PWR_CNT.FLL
Ext5=\\dev_sv\dcs\d7e\dev\ExtFladder\AR109\ER_CNT.FLL

Explanation
Compiles the ladder program of the LAD file opened by the FlOpen
command.

NOTE
1 An error log (ERRORLOG.TXT) and a map log
(MAP.TXT) are created on the directory path specified
for the /cmdlog option.
If the /cmdlog option is omitted, these logs are created
on the same directory path as for the command file
specified for the /cmdfile option.
2 When a function block library is used, if two or more
function blocks have the same name, it is likely that an
unintended function block may be called.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 115/147
Add the following to the "10.4.4 Decompiling an *.LAD File"

When the Function Block is supported PMC

DeCompile [/sysmerge=0] [/symbol=1 ] [/merge=**] [/password=string]


[/fbdef=0 | 1] [/fbmerge=0 | 1]

Parameter
/sysmerge =0: Does not decompile symbol/comment data.
* It is necessary to register the FB instance name in the symbol data of the ladder that uses the
Function Block.
/symbol =1: Decompiles symbol/comment data.
- When this parameter is used together with "/sysmerge", the command specified last is
effective.
- When "symbol=1" is specified, "/merge" parameter is needed.
/merge =0: New (it decompiles, after deleting existing symbol/comment).
=1: Source data are priority.
=2: Memory card data are priority.
=3,xxxxx:
It divides an argument with a comma(,). It describes in order of a symbol, the 1st comment, the
2nd comment, the 3rd comment, and the 4th comment.
format : 3,xxxxx
x = 0 : Source data are priority.
1 : Memory card data are priority.
=3,00000 The source data of merge of a symbol and the 1st, 2nd, 3rd, and 4th comment are
priority.
=3,11111 The memory card data of merge of a symbol and the 1st, 2nd, 3rd, and 4th
comment are priority.
Ex.) When memory card data are priority .
/merge=2 : Memory card data are priority.
Ex.) When detailed specificationThe source data of a symbol and the 1st, 3rd, and 4th
comment are priority, and memory card data merge the 2nd comment by priority.
/mrege=3,00100
- When this parameter is used together with "/sysmerge", the command specified last is
effective.
- The argument of marge is not omissible.
* When a comment is the PMC model that is 2 sets, the 3rd and 4th comment is disregarded.
/password =string (up to 16 characters)
- When only a password to permit display was specified during execution of compilation,
specify the password to permit display.
- When passwords to permit display and to permit display and editing were specified during
execution of compilation, specify the password to permit display and editing.
- When only a password to permit display and editing was specified during execution of
compilation, specify the password to permit display and editing.
/fbdef =0: Does not restore the function block definition.
=1: Restore the function block definition.
* This parameter is /fbdef=0 when omitted.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 116/147
/fbmerge =0: Source data are priority when overlapping with the Function Block definition of the LAD file.
=1: Memory card data are priority when overlapping with the Function Block definition of the LAD
file.
- The FB definition of the view edit protection or the edit protection is not changed.
- The parameter "/fbdef" is necessary when using this parameter.
* This parameter is /fbmerge=1 when omitted.

Explanation
Decompiles the ladder program of the LAD file opened by the FlOpen
command.

NOTE
1 An error log (ERRORLOG.TXT) and a map log
(MAP.TXT) are created on the directory path specified
for the /cmdlog option.
If the /cmdlog option is omitted, these logs are created
on the same directory path as for the command file
specified for the /cmdfile option.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 117/147
Add the following to the "10.4.5.5 Converting one subprogram to a Mnemonic file"

10.4.5.6 Converting the function block definition to a mnemonic file

SrcToMnemonic /datatype= 7 [/separate] [/fbname=FB name] [/file=[Drive:][Path]file name]

Parameter
/datatype =7: Converts only function block definition.
/separate The file divided at each definition of the function block in the LAD file is output. FB definition
name is added to the output file name. When this parameter is omitted, all the bunction block
definitions in the LAD file are output to one file.
/fbname =FB name
Specify the function block name to be output.
When this parameter is omitted, all Function Blocks in the LAD file are output.
* This parameter is available in "/datatype=7". It is unavailable when using it excluding
"/datatype=7".
/file =[Drive:][Path]File name
Specify the file name of a mnemonic file to be converted.
When "/separate" is specified, FB definition name is automatically added to the output file
name.
(e.g.) When file name is ".txt"
"FB definition name.txt"

Example
Outputting by dividing all source programs by data kind
SrcToMnemonic /datatype=7 /separate /file=FB00.TXT

NOTE
1 The function block that set view edit protection cannot
be converted.
2 You need not specify “mode”. It is executed as
“mode=4”(extended format).

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 118/147
Replace the "10.4.6 Converting a Mnemonic File to the Source Program"

10.4.6 Converting a Mnemonic File to the Source Program

MnemonicToSrc [/warning=0 | 1] [/init=0 | 1 | 2 | 3 | 4 | 5 | 6| 7] [/symspace=character]


[/_pr="character(s)"] [/_dr="character(s)"] [/_cr="character(s)"] [/_sc="character(s)"]
[/pe="character(s)"] [/file=[Drive:][Path]file name]

Parameter
/warning =0: Does not detail warning messages.
=1: Details warning messages. (Default)
/init =0: Initialize all source programs and delete all ladder programs before conversion.
* The FB definitions of the view edit protection or the edit protection are deleted.
=1: Initialize system parameter before conversion.
=2: Initialize title data before conversion.
=3: Initialize symbol/comment before conversion.
=4: Delete all ladder programs before conversion.
=5: Initialize I/O module data before conversion.
=6: Initialize message data before conversion.
=7: Initialize FB definitions before conversion.
(When FB is not support PMC, this setting is disregarded.)
* The FB definitions of the view edit protection or the edit protection are deleted.
/symspace =character
Specify the character of symbol to replace to white-space character.
* If this parameter is omitted, the specified character of symbol is not replaced to white-space
character. There is a case that the conversion not intended occurs by cyclic conversions (a
mnemonic file <-> the source program), if the white-space character is included in the symbol.
It is recommended that the white-space character should not be used in the symbol.
/_pr ="character(s)"
When changing non-extended symbol to extended symbol model, a symbol unusable
character(%) is replaced with specified characters. Up to 4 characters can be used in
alphanumeric characters.
* When this parameter is omitted, the 1st character "%" of the symbol is replaced with _PR_.
/_dr ="character(s)"
When changing non-extended symbol to extended symbol model, a symbol unusable
character($) is replaced with specified characters. Up to 4 characters can be used in
alphanumeric characters.
* When this parameter is omitted, the 1st character "$" of the symbol is replaced with _DR_.
/_cr ="character(s)"
When changing non-extended symbol to extended symbol model, a symbol unusable
character(:) is replaced with specified characters. Up to 4 characters can be used in
alphanumeric characters.
* When this parameter is omitted, ":" in the symbol is replaced with _CR_.
/_sc ="character(s)"
When changing non-extended symbol to extended symbol model, a symbol unusable
character(;) is replaced with specified characters. Up to 4 characters can be used in
alphanumeric characters.
* When this parameter is omitted, ";" in the symbol is replaced with _SC_.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 119/147
/_pe ="character(s)"
When changing non-extended symbol to extended symbol model, a symbol unusable
character(.) is replaced with specified characters. Up to 4 characters can be used in
alphanumeric characters.
* When this parameter is omitted, "." in the symbol is replaced with _PE_.
/file =[Drive:][Path]File name
Specify the file name of a mnemonic file to be converted.

NOTE
1 If you want to initialize symbol/comment and all
ladder programs, please specify "/init=3,4".
2 When /init=0 or /init=3 is not specified,
symbol/comment is added.
3 When /init=0 or /init=4 is not specified, a net
comment is added.
4 When the same subprogram is already present, a
source program is always newly created from a
mnemonic file.
5 Function block definitions of view edit protection or
edit protection are not changed by the source
conversion.
Explanation
Source programs of the LAD file opened by command "FlOpen" are
converted from the specified mnemonic file.
Note
- A conversion log (FLMNE.txt, FLMNE2.txt) is created on the
same directory path as for the conversion mnemonic file. Even if
this command is executed two or more times in a command file, all
logs are appended to the same conversion log file(FLMNE2.TXT).
Example
After all source programs are initialized, new source programs are
created.
>cd d:\mnemonic
>start /wait fladder.exe /cmdfile=fl3_command.txt
>start fladder.exe M_0123.LAD

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 120/147
Content of fl3_command.txt
FlOpen M_0123.LAD
MnemonicToSrc /file=001_sysparam.txt /init=0
MnemonicToSrc /file=002_title.txt
MnemonicToSrc /file=003_Symbol.txt
MnemonicToSrc /file=004_message.txt
MnemonicToSrc /file=005_iomodule.txt
MnemonicToSrc /file=006_level1_symbol.txt
MnemonicToSrc /file=007_level1_ladder.txt
MnemonicToSrc /file=008_level2_symbol.txt
MnemonicToSrc /file=009_level2_ladder.txt
MnemonicToSrc /file=010_p1_symbol.txt
MnemonicToSrc /file=011_p1_ladder.txt
FlClose
End

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 121/147
Add the following to the "10.4.11 "*.LAD" File is Changed to Other PMC Type of "*.LAD" File"

10.4.12 Creating a New *.FLL File

FbNew [Drive:][Path]file name [/overwrite]

Parameter
[Drive:][Path]file name
Specify the file name of a new function block library (FLL file).
/overwrite
Even if the FLL file has already existed, a new FLL file is created by overwrite.

Explanation
Creates a function block library (FLL file).
Note
- Do not use FbNew command between FlOpen and FlClose.
- A log file (FBNEW.TXT) is created to the same directory path as
the FLL file newly created. When a new FLL file cannot be created,
the log file is created to same directory path as a command file.
- Extension (FLL) of the file name is omissible.
Example
Create new FLL file of function block library, and convert the
mnemonic file to the source program.
FbNew New_FBLIB.FLL /overwrite
FlOpen New_FBLIB.FLL
MnemonicToSrc /file=AxisCtl.txt
FlClose
End

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 122/147
3.12 ERROR MESSAGES

Add the following to the "13.2 ERROR MESSAGES"

13.2.1 Files

Error No. Message Cause and action


A:E-6035 FB definition name is illegal. The FB definition name is incorrect.
A:E-6036 Specified FB definition name is protected. Browse/edit protection is in effect.
A:E-6037 This command cannot be used. A command unusable with FB libraries was specified.
A:E-6038 Cannot create new FLL file. An attempt to create an FLL file failed.
A:E-6039 New FLL file name is illegal. No directory was found in the specified path, and an
attempt was made to create one. The attempt failed,
however.
A:E-6040 The file has already been opened. Command was executed when the file was already
open.

13.2.8 Compile

Error No. Message Cause and action


I:F-7850 The program is not in function block (***). The FB definition file (#FB) is missing.
I:F-7851 Function block (***) is not filed. An attempt to create a file for the FB instance failed.
I:E-3601 Data too large.(message + symbol + The data (message + symbol + comment + FB
comment + FB information + LADDER + information + ladder + step sequence) is too large.
step sequence)
I:E-6600 The size of the function block is too large. The FB definition size exceeded the maximum
allowable number of steps.
I:E-6701 The type of symbol specified as basic The type of the symbol of the basic instruction sets
instruction is erroneous.(***) BOOL.
I:E-6702 The output prohibition symbol was
specified as the coil.(***)
I:E-6703 The type of symbol specified as functional The type of the symbol of the functional instruction is
instruction is erroneous.(***) wrong.
I:E-6704 The output prohibition symbol was The output prohibition symbol is used for the output
specified as the functional instruction.(***) parameter of the functional instruction.
I:E-6705 The symbol of incorrect type was The type of the symbol used for the functional
specified as the functional instruction.(***) instruction is wrong.
I:E-6706 The address of symbol is undefined.(***) The address of the symbol is not set.
I:E-6707 This functional instruction cannot use the
local symbol.(***)
I:E-6708 The symbol is undefined.(***) The symbol is not defined.
I:E-6709 The type of symbol used for FB input The symbol type of the input section of the FB instance
section is not consistent.(***) is wrong.
I:E-6710 The output prohibition symbol was used
for FB output section.(***)
I:E-6711 The type of symbol used for FB output The symbol type of the output section of the FB
section is not consistent.(***) instance is wrong.
I:E-6800 There is unsupported functional An attempt was made to use the functional instruction
instruction (***) in the function block. unusable with FB definitions.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 123/147
Error No. Message Cause and action
I:E-6801 The number of characters of the instance An attempt was made to use more than 40 characters in
name exceeds the limitation (***). numbering (_****) FB instance names.
I:E-6802 FB instance (***) of the same name is An FB instance name was used for more than one FB
used in the multiple. instance.
I:E-6803 The definition of the instance is not found No FB instance name was defined.
(***).
I:E-6804 The output prohibition address was used The output prohibition address was used for the output
for FB output section.(***) section of the FB instance.
I:E-6820 The address of the FB variable(Keep) is In FB address assignment, no address range was
not specified. specified for FB variables (hold type).
I:E-6821 The assignment address of the FB In FB address assignment, no address range was
variable is not specified. specified for FB variables.
I:E-6822 The size of the FB variable(Keep) is not In FB address assignment, the specified hold-type
enough. address range is insufficient.
I:E-6823 The size of the FB variable is not enough. In FB address assignment, the specified non-hold-type
address range is insufficient.
I:E-6824 The type of symbol specified as external Check the data type of the specified external variable
variable is erroneous. (***) (symbol comment).
I:E-6850 The number of function block calls exceeded The FB call nesting level exceeded a limit of 4.
the limitation.
I:E-6851 Function block (***) is recurrently called. An attempt was made to make a recursive call for the
FB definition.
I:E-6852 There is no function block(***) . The function block definition was not found in any FB
library.
I:E-6853 The number of parameters is different The number of parameters (input, input/output, and
between instance and function block (***). output) differs between the FB instance and FB
definition.
I:E-6854 The number of parameter of the function An attempt was made to define more variables than the
block exceeds the limitation. maximum allowable number (internal/external variables
and parameters).
I:E-6855 The parameter is different between The probable causes are:
instance and function block. (Definition ・ A parameter specified in the instance is not found in
name, variable type, position number) the definition.
・ The type of a variable used differs between the
instance and the definition.
・ The type of data used differs between the instance
and the definition.
・ The position number differs between the instance and
the definition.
I:E-6856 The parameter is different between The data type of a parameter used differs between the
instance and the input (or the output) input and output sections and the FB definition (when
(symbol, variable, instance) the input and output sections are symbols, addresses,
or constants).
I:E-6857 There is a disabling functional instruction An unsupported instruction or address was detected.
or a disabling address.
I:E-6858 There is an error net. An error net was detected.
I:E-6859 The creation of instance (***) failed. The FB definition contains no ladder program.
I:E-6860 The number of FB definitions exceeds the An attempt was made to use more FB definitions than
limitation. the maximum allowable number.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 124/147
Error No. Message Cause and action
I:E-6861 The parameter is different between The FB parameter constants were specified by quantity.
instance and function block. Constants
data error. (Definition name, variable
type, position number)
I:E-6862 There is a disabling address.(***) The address not supported was detected.
I:E-6880 The limitation of the instance count was An attempt was made to use more FB instances than a
exceeded. limit.
I:E-6881 The type of symbol specified as instance The attribute of the specified instance name symbol is
name is erroneous (***). not FB_I.

13.2.9 Decompile

Error No. Message Cause and action


J:E-3400 Cannot read the function block. Use the latest version of this software.
J:E-3410 There is no symbol data for the FB Specify to decompile symbols and comments, and
parameter and the instance. actually perform decompilation.
J: W-7220 There was a Protected FB Definition. An attempt was made to restore browse/edit- or
edit-protected FB definitions.

13.2.10 Mnemonic Conversion

Error No. Message Cause and action


K:E-6500 Illegal identifier. An undefined identifier was used in specifying a
parameter variable type.
K:E-6502 There is not supported function An unusable functional instruction was specified.
instruction.
K:E-6503 Expected instance name. There is no instance name.
K:E-6504 The limitation character is used for An attempt was made to use an unusable character in
instance name. the instance name.
K:E-6505 The instance name is already defined. The instance name is duplicated.
K:E-6506 Too long strings for instance name. The number of characters in the instance name is larger
than the limit.
K:E-6507 The data type is different between input There is a data type mismatch between the input section
and parameter. and input parameter.
K:E-6508 The data type is different between output There is a data type mismatch between the output
and parameter. section and output parameter.
K:E-6509 The number is different between input The number of input sections does not match that of
and parameter. Instance name:(***) input parameters.
K:E-6510 The number is different between output The number of output sections does not match that of
and parameter. Instance name:(***) output parameters.
K:E-6511 Illegal definition of EN/ENO. An EN was specified for other than inputs, or an ENO
was specified for other than outputs.
K:E-6512 The data type is specified for EN/ENO A non-BOOL data type was specified for an EN or ENO.
except BOOL.
K:E-6513 Identifier(***) is illegal. The specified parameter is 0 or below.
K:E-6514 Expected FB definition name. There is no FB definition name for the identifier
FB_CALL.
K:E-6515 FB definition is not registered. Instance The FB definition name has not been added to any FB
name: (***), FB definition name: (***) library.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 125/147
Error No. Message Cause and action
K:E-6516 The limitation character is used for the The limitation character was used for the symbol.
symbol.
K:E-6517 The output prohibition symbol was The symbol of the output prohibition was used for the
specified as the coil. coil.
K:E-6518 The output prohibition symbol was The symbol of the output prohibition was used for the
specified as the output parameter. output place.
K:E-6519 Cannot specify the numerical value with The numerical value was specified for the input section
parameter. or the output section of the input/output parameter.
K:E-6520 FB definition name is recurrently called. The same FB definition name was used in nested FB
definition calls.
K:E-6521 Too long strings for symbol data. The number of characters of the symbol exceeded the
limitation.
K:E-6522 The specification of data type is illegal. Data type of the instance name is wrong.
(***)
K:E-6523 The limitation character is used for FB The limitation character was used for FB definition
definition name. name.
K:E-6524 Too long strings for FB definition name. The number of characters of FB definition name
exceeded the limitation.
K:E-6525 The symbol data is already defined. The same symbol has been registered.
K:E-6526 Illegal data type. (***) Data type of the parameter is wrong.
K:E-6527 Expected beginning of identifier. (***) There is no starting identifier code.
K:E-6528 Illegal input section.
K:E-6529 Illegal output section. ***
K:E-6530 Illegal index of argument. (***) The specification of the argument number is wrong.
Please confirm n of $ARGn.
K:E-6531 Illegal variable of parameter. An illegal variable was specified for the parameter.
K:E-6532 Illegal variable. An illegal variable was specified.
K:W-7201 The undefined symbol is used (***). Check the symbol.
If this warning was issued on the identifier $ARG1,
check the contents of $ARG1 to $ARGn.
K:W-7220 Cannot convert in case of Function Block The identifier code not supported in the function block
Library. library was used.
K:W-7500 Expected termination of identifier. There is no end identifier.
K:W-7502 The FB definition name data is already The FB definition name is already defined.
defined.
K:W-7505 The limitation character is used for 1st An attempt was made to use an unusable character in
comment data. the first comment data for an FB definition.
K:W-7506 The limitation character is used for 2nd An attempt was made to use an unusable character in
comment data. the second comment data for an FB definition.
K:W-7507 The limitation character is used for 3rd An attempt was made to use an unusable character in
comment data. the third comment data for an FB definition.
K:W-7508 The limitation character is used for 4th An attempt was made to use an unusable character in
comment data. the fourth comment data for an FB definition.
K:W-7509 Too long strings for first comment data. The length (in character units) of the first comment for
an FB definition is larger than the limit.
K:W-7510 Too long strings for second comment The length (in character units) of the second comment
data. for an FB definition is larger than the limit.
K:W-7511 Too long strings for third comment data. The length (in character units) of the third comment for
an FB definition is larger than the limit.
K:W-7512 Too long strings for fourth comment data. The length (in character units) of the fourth comment for
an FB definition is larger than the limit.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 126/147
Error No. Message Cause and action
K:W-7513 The limitation character is used for An attempt was made to use an unusable character in
version information. the version information.
K:W-7514 Too long strings for version information. The length (in character units) of the version information
is larger than the limit.
K:W-7515 The limitation character is used for the An attempt was made to use an unusable character in a
symbol. symbol.
K:W-7516 The symbol data is already defined. An attempt was made to define a symbol doubly.
K:W-7517 Too long strings for the symbol. The length (in character units) of a symbol is larger than
the limit.
K:W-7518 Protected Function Block definition is The specified function block is in protected state.
specified. FB definition name:(***)
K:W-7519 EN/ENO is already defined. An attempt is made to define an EN/ENO doubly.
K:W-7520 The data type is specified for FB except An attempt was made to specify the data type FB for an
internal variable. entity other than internal variables
K:W-7521 The data type is specified for LABEL An attempt was made to specify the data type LABEL for
except the label. an entity other than labels.
K:W-7522 The specification of data type is illegal An attempt was made to specify undefined data as
(***). parameter data type.
K:W-7523 The monitor type is not BOOL. An attempt was made to specify a monitor type other
than BOOL for data whose type is BOOL.
K:W-7524 Specify the monitor type except for An attempt was made to specify the monitor type BOOL
BOOL. for data whose type is not BOOL.
K:W-7525 The label is specified in variable type. In monitor setting, an attempt was made to specify a
label as a variable type.
K:W-7526 The number of parameter is out of range. An attempt was made to specify a number out of the
valid range as the number of parameters.
K:W-7527 The number of internal variable is out of An attempt was made to specify a number out of the
range. valid range as the number of internal variables.
K:W-7528 The maximum number of parameter is An attempt was made to specify more parameters than
exceeded. the maximum allowable number.
K:W-7529 The maximum number of internal/external An attempt was made to specify more internal/external
variable is exceeded. variables than the maximum allowable number.
K:W-7530 Keep is specified except internal variable. An attempt was made to specify a hold type for an entity
other than internal variables.
K:W-7531 The number of comment exceeds the "$5,$6…" was used in specifying a comment.
limit.
K:W-7532 Too many parameters. An attempt was made to specify too many parameters.
K:W-7533 Except digit is specified for the monitor What was entered in specifying the order of monitoring
order. was not a number.
K:W-7534 The monitor order is out of range. An attempt was made to use a number out of the valid
range in specifying the order of monitoring.
K:W-7535 The specification of monitor type is illegal. An attempt was made to use the undefined data as a
monitor type.
K:W-7536 Expected beginning of identifier. There is no corresponding start identifier for the end
identifier.
K:W-7537 The net comment or the page feed was An attempt was made to specify a net comment or a
skipped. page change unusable in body programs.
K: W-7538 Include KANA or KANJI character(s) in Version information includes full-size characters.
version.
K: W-7539 Illegal variable type of EN/ENO. The variable type of EN/ENO is wrong.
K:W-7540 The argument number is different. (***)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 127/147
Error No. Message Cause and action
K:W-7541 Monitor reaches the number of maximum The number of registration of monitors exceeded the
registration. limitation.
K:W-7542 The data that could not be set to variable Unnecessary data was set to the variable.
(***) was specified.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 128/147
4 Others

4.1 Modifies description according to addition of function block

4.1.1 Changes the Duplicate Coil

The description is modified along with the addition of the Function


Block function.

Replace "NOTE" of "3.17 CHECKING DUPLICATE COIL".

NOTE
1 When the programmer mode is only off-line,
duplicate coil check is done for the source program
of the ladder.
2 Duplicate coil check is not done for the step
sequence subprogram and the ladder subprogram
protected by a special password.
3 The net with the error while editing is excluded from
the check.
4 Even if the source program of the ladder edits and is
updated, the content of [duplicate coil] screen is not
updated.
5 When the source program of the ladder has been
updated, the ladder edit screen is not opened from
[duplicate coil list] screen.
6 Symbol and wild-card ('*' ,'?') cannot be used to set
the check address.
7. The coils of main body program of function block
that the ladder calls are checked.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 129/147
4.1.2 Changes the PMC type changed and save

The description is modified along with the addition of the Function


Block function.

Change after the "Fig. 3.28(c)" of "3.18 PMC TYPE CHANGED AND SAVE".

Fig. 3.18(c)

Table. 3.18(b)
Item Explanation
Name Enter the new name of a program file you want to create.
PMC Type Select a PMC type.
PMC Path Select a PMC Path.
(This item is effective when the PMC type that can use the PMC path is
selected.)
PMC Memory Select a PMC memory.
(This item is effective when the PMC type that can use the PMC
memory is selected.)
I/O Link Expansion Check this check box to enable the I/O Link expansion
function after selecting a model that allows multiple channels to be set.
(This item is effective when the PMC type that can use the multiple
channels is selected.)
Standard(Non Select this when you use neither extended symbol/comment nor the
Extended Symbol) Function Block.
Extended Symbol Select this when you use extended symbol/comment.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 130/147
Function Block Select this when you use the Function Block.
(Extended Symbol)
Replace text Specifies the characters to replace the unusable character.
(This item is effective when the "Extended symbol" is checked.)
Extended Instruction In case of using the Extended PMC Ladder Instruction Function, check
this check box.

NOTE
1 When you change Ladder program into other PMC
type, please compile the ladder and decide an
address first. The PMC type cannot be changed
when the address is not decided.
2 In the following cases, a ladder is not converted.
• The address out of range on the target PMC type
is used in the ladder.
• The non-supported functional instruction on the
target PMC type is used.
• The message address out of range on the target
PMC type is used.
• The channel out of range and the non-supported
allocation name on the target PMC type are used.
See Section "13.2.10 Mnemonic Conversion Error
Message" for details.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 131/147
4.1.3 Changes the ladder program difference display function

The description is modified along with the addition of the Function


Block function.

Replace "NOTE" of "3.19.1 Procedure".

NOTE
1 When step sequence programs are compared, only
the address is compared. You can confirm
existence of the differences by the number of
different net count and the background color,
although the detailed screen is not opened.
2 When you compared the step sequence with the
ladder, the difference is displayed as "*" and the
detailed screen cannot be opened.
3 When you specify the range of the comparison, only
the subprograms within the range on the list screen
are displayed.
4 When setting the display color to 256 colors, the
changes, the additions and the deletions are
displayed in gray. In this case, please change the
color setting of the option screen. Setting High Color
or more (16 bits) is recommended.
5 To display the differences with the ladder in CNC,
please convert the ladder in CNC into the LAD file
by using an online function and the import function.
Afterwards, please display the difference by using
this function.
6 This function cannot be used in the online mode.
Please change to the offline.
7 This function displays the difference of each net.
8 The main body program of function block cannot be
compared and be displayed.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 132/147
Replace "NOTE" of "3.19.3.2 Procedure".

NOTE
1 It is necessary to install the printer driver
beforehand.
2 Only the difference list is printed for the step
sequence. The difference detail is not printed.
3 The address of the coil, the relay and the function
instruction prints the address and the symbol.
4 Specify the number of elements per line by the
Number of contacts + coil a line of the [Ladder] tab
of the option. (select the [Tool] - [Option...])
5 The main body program of function block cannot be
compared and be printed.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 133/147
4.1.4 Changes the cross-reference display function

The description is modified along with the addition of the Function


Block function.

Replace "Column" of "3.21 CROSS-REFERENCE DISPLAY FUNCTION".

[Before]
Column
Subprogram The subprogram is displayed.
NetNo. The net number of the subprogram (local net
number) is displayed.
Instruction The instruction is displayed.
The display of the basic instruction is figure of the
contact.
The display of the function instruction is the
instruction name.

[After]
Column
Subprogram The subprogram is displayed.
NetNo. The net number of the subprogram (local net
number) is displayed.
Instruction The instruction is displayed.
The display of the basic instruction is figure of the
contact.
The display of the function instruction is the
instruction name.
The FB instances are displayed as follows.
FB : input section, output section
[FB] : input, input/output, output parameter

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 134/147
Replace "NOTE" of "3.21.1 Procedure".

NOTE
1 When the cross-reference screen is displayed, the
content of the editing of the ladder is not
automatically reflected in the cross-reference screen.
Please update display by pushing the <Execute
Cross-reference> button.
2 Neither the address nor the symbol in the "Error nets
in the pasted ladder" and the "Error nets" are
displayed on the cross-reference screen. Please use
this function after changing them to the normal nets.
3 It is not possible to jump to the ladder diagram with
the error net. In this case, the following message is
displayed.

Fig. 3.21.1(b)
4 The address in the subprogram protected by the
partial protect function is not displayed. The address
in the subprogram since P1500 of non-protection is
displayed.
5 The address used in the step sequence is not
displayed on the cross-reference screen. (example:
S, P and L address etc.)
6 The addresses of the main body program of function
block are displayed on the cross-reference screen in
online mode though they are not displayed in offline
mode.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 135/147
4.1.5 Changes the mnemonic editing

The description is modified along with the addition of the Function


Block function.

Replace "Table 6.4.1.1(b)" of "6.4.1.1 Parameter".

Table 6.4.1.1(b)
Format Setting data
PMC model 30i-A PMC
31i-A PMC
32i-A PMC
32i-A PMC/L
30i-A PMC(DCS)
31i-A PMC(DCS)
32i-A PMC(DCS)
PMC path 1st-path PMC (Omitted)
2nd-path PMC 2nd
3rd-path PMC 3rd
PMC memory PMC memory A MEM-A
PMC memory B MEM-B
PMC memory C MEM-C
Extended function Extended Symbol EXT
Extended Instruction EXI
Function Block FB

Ex1 : 30i-A PMC(MEM-B)


PMC model : 30i-A PMC
PMC path : (omitted) 1st-path PMC
PMC memory : PMC memory B
Extended function : No
Ex2 : 31i-A PMC(DCS,EXT,EXI)
PMC model : 31i-A PMC Dual Check Safety
Extended function : Extended Symbol and Extended Instruction
Ex3 : 32i-A PMC/L(EXT)
PMC model : 32i-A PMC/L
Extended function : Extended Symbol
Ex4 : 30i-A PMC(MEM-B,FB)
PMC model : 30i-A PMC
Extended function : Function Block

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 136/147
4.1.6 Changes the command line execution function

The description is modified along with the addition of the Function


Block function.

Replace "Table 10.4.11(a)" of "10.4.11 *.LAD File is Changed to Other PMC Type of *.LAD
File".

Table 10.4.11(a)
Format Setting data
PMC model 30i-A PMC
31i-A PMC
32i-A PMC
32i-A PMC/L
30i-A PMC(DCS)
31i-A PMC(DCS)
32i-A PMC(DCS)
PMC path 1st-path PMC (Omitted)
2nd-path PMC 2nd
3rd-path PMC 3rd
PMC memory PMC memory A MEM-A
PMC memory B MEM-B
PMC memory C MEM-C
Extended function Extended Symbol EXT
Extended Instruction EXI
Function Block FB

Ex1 : 30i-A PMC(MEM-B)


PMC model : 30i-A PMC
PMC path : (omitted) 1st-path PMC
PMC memory : PMC memory B
Extended function : No
Ex2 : 31i-A PMC(DCS,EXT,EXI)
PMC model : 31i-A PMC Dual Check Safety
Extended function : Extended Symbol and Extended Instruction
Ex3 : 32i-A PMC/L(EXT)
PMC model : 32i-A PMC/L
Extended function : Extended Symbol
Ex4 : 30i-A PMC(MEM-B,FB)
PMC model : 30i-A PMC
Extended function : Function Block

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 137/147
4.2 Support of Windows Vista

Windows Vista has been supported.

Replace "1.1 OPERATING ENVIRONMENT".

1.1 OPERATING ENVIRONMENT

The operating environment required for this software is as follows:

· Computer
PC/AT-compatible computer running Windows 2000, XP, or
Vista (English/Japanese system)

· For Windows 2000


Pentium 166MHz or more CPU
64MB or more memory

· For Windows XP Home Edition/ Windows XP Professional


Pentium II 333MHz or more CPU
128MB or more memory

· For Windows Vista Home Basic


CPU recommended by Microsoft (1GHz or more is recommended)
512MB or more memory

· For Windows Vista Home Premium/ Windows Vista Business/


Windows Vista Ultimate
CPU recommended by Microsoft (1GHz or more is recommended)
1GB or more memory

· Hard disk
30MB of free space required (at installation)
120MB of free space required (at execution)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 138/147
NOTE
1 Time required for ladder diagram editing and
processing of symbols and net comments is affected
by the free spaces of memory and the hard disk. When
handling a source program including many ladders,
symbols, comments, or net comments or editing
ladder diagrams on multiple screens, allocate much
more free spaces as far as possible.
2 This software doesn't guarantee operation in Windows
98 SE, Windows NT 4.0 and Windows Me.
3 To use this software in Windows 2000, or XP, the
Administrator and Power User privileges are required.
4 To use this software in Windows Vista, the Standard
user is required.
5 To use online help in Windows Vista, you need
download Windows help program (WinHlp32.exe) for
Windows Vista from the Microsoft download center.
6 Windows XP and Windows Vista of 64 bit version are
not supported.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 139/147
Replace "NOTE" of "1.2 INSTALLATION AND UNINSTALLATION".

NOTE
1 Both of FAPT LADDER-III and FANUC LADDER-III
cannot be installed on the same personal computer.
2 Normally, when FANUC LADDER-III is installed,
FAPT LADDER-III is automatically uninstalled.
3 If FAPT LADDER-III is not automatically uninstalled,
uninstall the software manually, then install FANUC
LADDER-III.
4 To install or uninstall this software in Windows NT
4.0, 2000, or XP, the Administrator privilege is
required.
5 To install or uninstall this software in Windows Vista,
the Administrator account is required. Then, do not
cancel on the way at the overwrite installation.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 140/147
Add to after "The setting of MSG_EDIT_VAL in %%%flset.cnf file" of "3.8.4 New Line
Character, Numeric Data".

· The setting of MSG_EDIT_VAL in "%%%flset.cnf" file.

%%%FLSET.cnf

;==============================================================================
; FANUC LADDER-III Initial Setting File
; ( `key word =' <= 9characters )
;==============================================================================
;
~~
*S; ======== System Setup ========
~~
;
exparam=0;
;
LAD_FILE_COUNT=10
;
MSG_EDIT_VAL=1 Set '0' or '1'(default) by the text editor.
;
~~

NOTE
1 Please modify the "%%%FLSET" file of a folder listed below in
Windows Vista.
C:\ProgramData\FANUC\FANUC LADDER-III\%%%FLSET.cnf

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 141/147
Replace "NOTE" of "6.3 MNEMONIC FILE FORMAT".

NOTE
1 If you don’t need the control character in a mnemonic file, please
set “NETCMT_CTRL_CHAR=NULL” in a file %%%FLSET.
2 When the control character is used in a string, please describe
two consecutive control characters.
Ex.) When the control character is “#”, please describe “##”.
3 When specifying the position of a form feed character (printing a
ladder diagram), please describe “a control character” + “P” in a
net comment.
4 If this software is updated with the new released installer, a
file %%%FLSET is initialized and the line of
“NETCMT_CTRL_CHARA=“ is deleted. After reinstalling this
software, please set “NETCMT_CTRL_CHARA=“ again if you
want to change the control character in a mnemonic file.
5 Please modify the "%%%FLSET" file of a folder listed below in
Windows Vista. Then, the 4th description is not applied in Vista.
C:\ProgramData\FANUC\FANUC LADDER-III\%%%FLSET.cnf

Replace "NOTE" of "6.5 CONVERTING STEP SEQUENCE PROGRAMS TO MNEMONIC


FILES".

NOTE
1 Do not edit a step sequence program converted to a mnemonic
file using a text editor.
2 If you re-install the FANUC LADDER-III, the content of
“%%%FLSET” file is replaced with initial value.
3 Please modify the "%%%FLSET" file of a folder listed below in
Windows Vista. Then, the 2nd description is not applied in Vista.
C:\ProgramData\FANUC\FANUC LADDER-III\%%%FLSET.cnf

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 142/147
Replace "Operating system" of "D MULTI-LANGUAGE PMC MESSAGE CREATION TOOL".

Operating system
Windows 2000 Professional
Windows XP Home Edition
Windows XP Professional
Windows Vista Home Basic
Windows Vista Home Premium
Windows Vista Business
Windows Vista Ultimate

NOTE
1 In Windows 2000/XP/Vista, ASCII and
Unicode(UTF-16) can be used in the encoding of a
text file.
2 This software doesn't guarantee operation in
Windows 98 SE/Me.
3 Windows XP and Windows Vista of 64 bit version
are not supported.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 143/147
4.3 Cursor display of Monitor screen

The cursor can be displayed in the Monitor screen of the online mode.

Supported PMC models


Supported All

Add to the bottom of "9.1.2 [Monitor] Screen".

Cursor display
The cursor can be displayed in the Monitor screen.
Procedure
1. Select [Option] of [Tool] menu, and select [Online] tab.
2. Check the Display the cursor.

Fig.9.1.2 (b)

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 144/147
Replace "A language selection of monitor screen" of "9.1.5 Mnemonic Monitor".

A language selection of monitor screen


This section describes the procedure for selecting the language of
monitor screen.

To display the PMC program made by mnemonic files with a mnemonic


language monitor screen, please select the monitor language by the
following procedure.
Procedure
1. Select [Tool] – [Option…]. Then, click the [Online] tab.

Fig. 9.1.5 (a)


2. Click Ladder Diagram or Mnemonic to select the language of
Online Monitor screen.
3. When pressed <OK> button or <Apply> button, the language of
monitor screen is set.

NOTE
1 The following screens are always displayed with
ladder language
• Collective display
• Search results list display
2 Mnemonic Monitor cannot be used for the Function
Block function.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 145/147
4.4 Changes soft key [F10]

The position of softkey [F10] was changed.

(1) [Open] in the program list, [Ladder Open] in the duplicate coil
[Before] [After]
[F10] key [F11] key

(2) [Insert Net (backward)] button of ladder editing


[Before] [After]
[Ctrl]+[F10]key [Ctrl]+[Shift]+[F9] key

4.5 Storing sequence programs in the PMC

Replace "NOTE" of "7.7.1 Procedure".

NOTE
1 During ladder editing in online mode, no program can be stored in the
PMC. Store programs in the PMC while a ladder is being monitored.
2 After storing a program in the PMC, if the CNC is powered down
without backing up the program, the editing results are lost. When you
want to store a program in the CNC, execute [Backup].
3 The error of "E:E-6037 PMC type unmatch." might occur when
switching to the online mode. When you want to change the ladder of
PMC, store ladder in PMC by pushing "Store to PMC" of "Tool" menu.
The communication dialog is displayed after the store, and the
communication is reconnected automatically.
4 The store condition of the PMC parameter is as follows.
Ladder NC mode EMG PWE Store of PMC parameter
1 O
Stop
0 X
EDIT
1 O(†1)
Release
0 X
RUN
1 O
Stop
Excluding 0 X
EDIT 1 X
Release
0 X
O : Available X : Unavailable
†1 : This item is available when the PMC software is 40A0/08 or later
and 40A1/02 or later.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 146/147
4.6 Checking on use of L and P address

P address and L address are severely checked. The error occurs when P
address and L address are used for the parameter of the functional
instruction by the ladder editing screen, the source conversion, and the
compilation.

TITLE

FANUC LADDER-III
SUPPLEMENTARY OPERATOR'S MANUAL

DRAW.NO. CUST.
01 07/11/15 First issue B-66234EN/06-1
SHEET
EDIT DATE DESIG. DESCRIPTION 147/147

Das könnte Ihnen auch gefallen