Escolar Documentos
Profissional Documentos
Cultura Documentos
Fanuc - PLC
Fanuc - PLC
VERSION
DATE
DESCRIPTION OF REVISION
DRAWN UP BY
00.00
04/10/13
DOCUMENT DRAFT
MARENGHI D.
01.00
31/10/13
FAUSTO ZANARDI
CHECKED BY
LORIS VALSECCHI
CFPxxxxxx/01 - 2 -
Fanuc - PLC
TABLE OF CONTENTS
Introduction ........................................................................................................................... 5
Purpose of document .............................................................................................................. 5
Description of Automation Project Parts .................................................................................... 5
NC Interface Description ......................................................................................................... 6
POS Position Screen ............................................................................................................. 8
PROG Program screen .......................................................................................................... 8
OFST Compensation/Setting Screen ...................................................................................... 9
SYS System Screen ............................................................................................................ 10
MSG Message Screen ......................................................................................................... 11
SYS - PMC MAINTE Submenu ................................................................................................ 13
SYS - PMC LADDER submenu ................................................................................................ 17
Ladder Diagram Monitor ........................................................................................................ 18
Software key [SCREEN SETTING]........................................................................................... 18
Ladder Editor ....................................................................................................................... 19
SYS - PMC CONFIG submenu ................................................................................................. 21
CNC state display ................................................................................................................. 23
Description of the PLC basic structure .................................................................................... 27
CNC functions and PLC functions ........................................................................................... 27
NC PLC interaction ............................................................................................................. 28
PLC Structure ....................................................................................................................... 29
Variable Nomenclature .......................................................................................................... 30
PLC project export ................................................................................................................ 33
PLC Debug ........................................................................................................................... 34
Further debug operations ...................................................................................................... 35
PLC Backup & Restore........................................................................................................... 36
PLC Backup: ......................................................................................................................... 37
PLC Restore: ........................................................................................................................ 38
PLC Restart: ......................................................................................................................... 40
Machine Parameter Saving .................................................................................................... 42
machine Parameter Loading .................................................................................................. 44
CFPxxxxxx/01 - 3 -
Fanuc - PLC
References ........................................................................................................................... 45
CFPxxxxxx/01 - 4 -
Fanuc - PLC
INTRODUCTION
PURPOSE OF DOCUMENT
This document is meant for assistance support; therefore its aim is simplifying the NC
operation and speeding up the diagnosis of any machining centre troubles.
For this purpose the following topics will be dealt with:
-
CFPxxxxxx/01 - 5 -
Fanuc - PLC
NC INTERFACE DESCRIPTION
The Operating surface in use is subdivided into sections:
POS
OFST (ctrl + F3) - display of compensator, origin, variable and language screens;
SYS
MSG
Press Ctrl + Fx to select the screens. With a 19in monitor it is possible to execute the same
command by pressing the keys located in the CMSControl screen:
Sundry submenus are present in each menu of the various screen pages.
In the following paragraph the passages are described necessary to access specific submenus; for
further details refer to manuals B63945IT / B63944IT.
There might be keys not appearing in the screen pages illustrated below but that will appear after
activating supplementary options.
NB: the keys in the figures refer to the English version.
CFPxxxxxx/01 - 6 -
Fanuc - PLC
To set the possible languages to select in the window below, as a first step set the parameters
described in the following table; more languages can be selected.
No.3282#0
No.3282#1
No.3282#2
No.3282#3
No.3282#4
No.3282#5
No.3282#6
No.3282#7
No.3283#0
No.3283#1
No.3283#2
No.3283#3
No.3283#4
No.3283#5
No.3283#6
No.3283#7
No.3284#0
JPN : Japanese
GER : German
FRE : French
CHT : Traditional Chinese
CHS : Simplified Chinese
ITA : Italian
HGL : Korean
SPN : Spanish
DTH : Dutch
DAN : Danish
POR : Portuguese
POL : Polish
HUN : Hungarian
SWE : Swedish
CZE : Czech
RUS : Russian
TRK : Turkish
If the parameters of the selected languages are active, press the key on the CNC SCREEN
interface to choose your language.
Press the LANGUAGE key and the following screen will appear for selecting the interface
languages that have been enabled.
Activate the selection by pressing the APPLY key:
CFPxxxxxx/01 - 7 -
Fanuc - PLC
N.B. to scroll
the pages
press the
softkey +
(F12)
ABS
REL
ALL
MONI
3-D MANUAL Displays the manual intervention entity with handwheel in the three-dimensional
space.
PROGRA
FOLDER
etc..)
Displays the list of programs available in the selected directory (MTB1-MTB2- PRG1
NEXT Displays the command values of the currently running block and of the next block
RSTR Displays the operating screen page to restart an interrupted program.
CFPxxxxxx/01 - 8 -
Fanuc - PLC
OFFSET
SETTING
WORK
CFPxxxxxx/01 - 9 -
Fanuc - PLC
PARAM
DGNOS
Diagnostic page for various NC states and configurations (e.g. 302 code =
marker grid, etc)
SERVO GUIDE
SYSTEM
PITCH
SERVO PARAM
PMC MAINTEN
Selects the PLC maintenance screen page (signal trace timer signal state
counter . keeprelay I/O link state PMC supply)
PMC LADDER
PMC CONFIG
Displays the PMC function setting screen pages (symbols PLC messges
PLC state I/O link configuration).
MCNG TUNING
Displays the parameter and active level screen page relating to machining
centre tuning.
ALL IO
Selects the screen page for data I/O via memory card
CFPxxxxxx/01 - 10 -
Fanuc - PLC
COCLOR
MAINTE
M_INFO
W-DGNS
FSSB
Selects the screen page of high speed serial axis bus setting
PRMTUN
EMBED PORT
Selects the screen page of the integrated Ethernet function setting screen
page (PCMCIA Ethernet card)
ETHNET SERVO
PROFI MASTER
ID-INF
CFPxxxxxx/01 - 11 -
Fanuc - PLC
ALARM
MESSAGE
HISTRY
EMBED LOG
BOARD LOG
Displays the error messages relating to fast Ethernet / fast data server
SYSALARM
CFPxxxxxx/01 - 12 -
Fanuc - PLC
CFPxxxxxx/01 - 13 -
Fanuc - PLC
PMC
PMC1
: PLC 1
DCSPMC
MEMORY CARD
DEVICE
FLOPPY
WRITE
READ
FUNCTION
KIND OF DATA
SEQUENCE PROGRAM
PARAMETER
CFPxxxxxx/01 - 14 -
Fanuc - PLC
By pressing the LIST key the content of the I/O directory is displayed; useful in the reading phase;
if there are more files inside that directory an individual number is shown, so as to point out the
file to be loaded by the NC.
By pressing the NEW NAME key a default name is assigned by the NC that is unique in the I/O
directory.
[TRACE]
SAMPLING/MODE
TIME CYCLE
(default)
SIGNAL TRANSITION
SAMPLING/RESOLUTION
Sampling resolution. The sampling value depends on the NC
(in the case in point 8ms).
SAMPLING/TIME
Set the sampling time. Leave the maximum value
Page 2 of parameter setting screen enables specifying the signals (via addresses or symbols) to
sample. Enter the addresses and press START. Enter the corresponding bit address, if a byte
address is specified, all the address bits are automatically selected (from 0 to 7).
CFPxxxxxx/01 - 15 -
Fanuc - PLC
After setting the parameters, it is possible to start tracing by pressing the software keys
sequentially [TRACE] [OPRT] and [START ] on the signal tracing screen page. The figure shows
a time-based tracing
CFPxxxxxx/01 - 16 -
Fanuc - PLC
The software key LADDER displays the program of the sequence dynamically and enables
monitoring. The editor screen page enables modifying the sequence program operation by acting
on the relays and the operating instructions.
CFPxxxxxx/01 - 17 -
Fanuc - PLC
This window offers the possibility to set the way in which the logic, the function content and
various other options you need to display. The essential ones are pointed out below.
ADDRESS NOTATION
CFPxxxxxx/01 - 18 -
Fanuc - PLC
FUNCTION STYLE
(contactors/comparisons/additions/subtractions)
: Wide/Tall > Displays the content of the functional blocks
(contactors/comparisons/additions/subtractions)
SHOW COMMENT OF CONTACT : NONE > display of the NET (PLC line) on
one line (recommended solution)
: 1 LINE/2LINE > view of NET on 1 or 2 lines
SHOW CURSOR
LADDER EDITOR
The EDITOR LADDER PMC screen page allows editing the Ladder program so as to alter its
behaviour.
This screen page is selected by pressing the EDIT software key (above described in MONITOR
LADDER PMC screen page); it enables carrying out the following operations:
This screen page enables creating new logic blocks (net) and modifying the existing ones.
By pressing the ZOOM software key the operating mode is accessed (edit mode) which enables
modifying the logic block pointed out by the cursor.
CFPxxxxxx/01 - 19 -
Fanuc - PLC
CFPxxxxxx/01 - 20 -
Fanuc - PLC
CFPxxxxxx/01 - 21 -
Fanuc - PLC
CFPxxxxxx/01 - 22 -
Fanuc - PLC
MEM
: Automatic working
RMT
EDIT
: Editing
HND
JOG
: Jog feed
INC
: Incremental feed
REF
: Reset (state in which the program execution was completed and the
automatic working was ended. System state on turn-on).
Fanuc - PLC
DWL
***
***
(7) Hour
hh: mm: ss - Hours, minutes, seconds
Fanuc - PLC
RSTR
WOFS
AICC1
AICC2
LEN
RAD
WZR
TOFS
OFSX
OFSZ
OFSY
TCP
TWP
Space
CFPxxxxxx/01 - 25 -
Fanuc - PLC
CFPxxxxxx/01 - 26 -
Fanuc - PLC
The Fanuc CNC machine logic exploits the Ladder programming language, which an integrated
library is appended to, containing the function blocks previously defined by Fanuc itself. To
develop the machine logic a proprietary software called FLADDED and residing on a common PC is
used. After being compiled and transferred into the NC memory, it is run by the same CPU of the
NC cyclically.
Manages the Machine interface logic , that is, manages all the Inputs/Outputs
(digital/analog, local/remote) of the machine.
b) Informs the machining centre operator about any anomalies, detected via screen
messages or warning lights; attends to stop the machining centre functions temporarily or
definitively based on the seriousness of such anomalies.
c) Enables the workpiece machining process to progress (Part-Program) and checks that at
the beginning and end of each programmed block all necessary conditions exist to be able
to carry on machining.
d) Manages the requests made by the Part-Program via the M,S,T auxiliary functions.
e) Manages the requests made by the machining centre operator:
o
o
o
f) Manages the various automatic cycles so that they run concurrently with the machining
process.
g) Acquires process variable values and axis dimensions, checks axis-axis or axis-machine
frame collisions.
CFPxxxxxx/01 - 27 -
Fanuc - PLC
NC PLC INTERACTION
For data exchange between NC and PLC there are system memory areas, volatile memories,
retentive memories, various timer functions, counter, etc
CFPxxxxxx/01 - 28 -
Fanuc - PLC
PLC STRUCTURE
The figure below shows an example of PLC application in Fanuc LADDER environment.
- LEVEL 1 module
- LEVEL 2 module
Axes
Lubr
Bloc
Pomp
Etc
In particular all inputs and outputs available in the machining project are set in the
INPUT/OUTPUT programs (if any). They are all retrieved from the R memories; this way if an I/O
changes, the modification will affect only that file.
CFPxxxxxx/01 - 29 -
Fanuc - PLC
VARIABLE NOMENCLATURE
The nomenclature of variables has been the target of a great effort of standardization, so as to
simplify the understanding of the various projects. The following tables describes the conventions
adopted.
for
machine
I/O SYMBOL
INPUTS
Derivative, generic,
INP
Flow switch
FL
Circuit breaker
QF
QM
Braking resistance
RR
Selector
SA
Button
SB
Luminous button/selector
SH
Level sensor
SL
Pressure sensor
SP
Position sensor
SQ
Rotation sensor
SR
Temperature sensor
ST
Thermostat
TR
OUTPUTS
Derivative, generic,
OUT
HL
Instantaneous relay
KA
CFPxxxxxx/01 - 30 -
Fanuc - PLC
Power contactors
KM
Electromagnetic brake
YB
Solenoid valve
YV
xxxx
SYMBOL
VARIABLE
RANGE
01
MM_xxxx
0255
MB_xxxx
VOLATILE
MEMORIES
(UNSIGNED)
16
BIT
WORD 065535
(SIGNED)
-3276832767
MW_xxxx
MI_xxxx
MDW_xxx
x
01
RM_xxxx
0255
RB_xxxx
RETENTIVE
(UNSIGNED)
MEMORIES
16
BIT
WORD 065535
(SIGNED) -3276832767
RW_xxxx
RI_xxxx
RDW_xxx
x
CFPxxxxxx/01 - 31 -
Fanuc - PLC
No. of function
TMRB
24
Timer
CTR
Contactor
DIFU
57
DIFD
58
NUMEB
40
Load a constant
MOVN
45
Load a value
JMP
10
Jump start
JMPE
30
Jump end
CALL
65
Conditional call
CALLU
66
Unconditional call
COMPB,GE,GT,LT,LE,EQ,NE
Description
Comparison
CONTACT TABLE
CFPxxxxxx/01 - 32 -
Fanuc - PLC
When compilation is completed a report about detected errors or warnings will be displayed. In
case of errors you will need to resolve them, in case of warnings take signalling into account.
At this point it is possible to export the compiled file to load in the machining centre by clicking the
export icon shown in the following figure.
State the path where to export the file via the Memory-card format file option and press Next.
CFPxxxxxx/01 - 33 -
Fanuc - PLC
Press Finish to complete the operation and, after completing export, close and confirm by pressing
OK.
PLC DEBUG
The Debug operations are carried out in the PMCLADDER menu on the system screen.
All the ladder modules (axis, lubricant, pump, etc) are located on the right side. You can access
a single module or select GLOBAL. If GLOBAL is selected, you can view the whole code; the search
for the various signals is carried out inside it; the search for the single module to select is local.
After selecting PROGRAM, press the [LADDER] key so as to view the PLC diagram in full.
CFPxxxxxx/01 - 34 -
Fanuc - PLC
For signal research (fig.1 PMCLADDER submenu) [SEARCH MENU] key, enter the address to
search for and press the [SEARCH] key (search all contacts) or [W-SEARCH] (search the
set/reset/coil only).
STATUS
TRACE
CFPxxxxxx/01 - 35 -
Fanuc - PLC
Right-click the Fanuc interface and then select the Data input/output option.
Select the path where to save the PLC, for instance C:\Partprg and click on OK.
To access the system screen page, press CTRL+F4 and + on the keyboard, until you display
the PMC MAINTE softkey; select PMC MAINTE, I/O (Iput/Output screen); the page below
will appear:
CFPxxxxxx/01 - 36 -
Fanuc - PLC
PLC BACKUP:
In the DEVICE field move the highlighter over MEMORY CARD by pressing the Arrow
buttons
In the FUNCTION field position the highlighter over WRITE by pressing the Arrow
buttons
In the KIND OF DATA field position the highlighter over SEQUENCE PROGRAM by
pressing the Arrow buttons
For the complete Backup and Restore procedure, refer to the document Data Loading and
Saving.
CFPxxxxxx/01 - 37 -
Fanuc - PLC
PLC RESTORE:
In the DEVICE field move the highlighter over MEMORY CARD by pressing the Arrow
buttons
In the FUNCTION field position the highlighter over READ by pressing the Arrow buttons
CFPxxxxxx/01 - 38 -
Fanuc - PLC
At this point a message will appear signalling that the PMC will STOP to allow continuation.
Beware: When loading is completed, if the PLC is not stored in the FLASH memory it
will be lost on first NC turn-off.
CFPxxxxxx/01 - 39 -
Fanuc - PLC
For saving select FLASH ROM, WRITE and confirm with EXEC.
PLC RESTART:
To restart or stop the PLC cycle there are two solutions, in the SYS (CTRL+F4) mode:
CFPxxxxxx/01 - 40 -
Fanuc - PLC
PMCCONFIG menu
The description of the RUN or STOP
key indicates the action that will be
performed.
The PMC state is pointed out on the
top left side.
Press the F5 key.
CFPxxxxxx/01 - 41 -
Fanuc - PLC
CFPxxxxxx/01 - 42 -
Fanuc - PLC
CFPxxxxxx/01 - 43 -
Fanuc - PLC
CFPxxxxxx/01 - 44 -
Fanuc - PLC
REFERENCES
Document: Messa in servizio Fanuc.doc
Document: 31CarPLC.doc
Document: 31SalPLC.doc
Document: 31SalParMach.doc
CFPxxxxxx/01 - 45 -