PMC Maintenance - 3xi & 0id v2
PMC Maintenance - 3xi & 0id v2
PMC Maintenance - 3xi & 0id v2
FAC-091012/02
FANUC America Corporation 2013
PMC Maintenance – 3xi & 0i-D Table of Contents
1. Introduction to PMC Ladder....................................................................................................... 1
1.1. The PMC function ............................................................................................................... 1
1.1.1. Ladder Output Coils ..................................................................................................... 2
1.1.2. Ladder Input Contacts .................................................................................................. 3
1.1.3. PMC Specifications ...................................................................................................... 4
1.1.4. Address Table .............................................................................................................. 5
1.2. The CNC function ............................................................................................................... 7
1.3. The Machine function.......................................................................................................... 7
2. Basic Ladder Items.................................................................................................................... 8
2.1. Normally Open Input Contacts ............................................................................................ 8
2.2. Normally Closed Input Contacts.......................................................................................... 8
2.3. Output Coils ........................................................................................................................ 9
2.4. Inverted Output Coil ............................................................................................................ 9
2.5. SET Output Coil ................................................................................................................ 10
2.6. RESET Output Coil ........................................................................................................... 10
2.7. Logical AND Circuit ........................................................................................................... 11
2.8. Logical OR Circuit ............................................................................................................. 11
2.9. Latch and Hold Circuit....................................................................................................... 12
2.10. Momentary Switches to Latching Switches ..................................................................... 13
3. PMC Screen Review ............................................................................................................... 14
3.1. PMC LADDER Display...................................................................................................... 14
3.1.1. LIST Display ............................................................................................................... 14
3.1.2. LADDER Display ........................................................................................................ 15
3.1.2.1. SEARCH Menu .............................................................................................................................. 16
3.1.3. COLLECTive Monitor Function ................................................................................... 18
3.1.4. SCREEN SETTING Display ....................................................................................... 20
3.2. PMC MAINTE Display....................................................................................................... 22
3.2.1. STATUS Display ........................................................................................................ 22
3.2.2. I/O LINK Display ......................................................................................................... 26
3.2.3. PMC ALARM Display ................................................................................................. 27
3.2.4. I/O Display.................................................................................................................. 28
3.2.4.1. PMC Ladder Backup ...................................................................................................................... 28
3.2.4.2. PMC Parameter Backup................................................................................................................. 30
3.2.4.3. Exercise 1 – PMC Data Backup...................................................................................................... 31
3.2.5. PMC Parameter Display ............................................................................................. 32
3.2.5.1. TIMER Setting Display ................................................................................................................... 32
3.2.5.2. COUNTER Setting Display ............................................................................................................. 35
3.2.5.3. KEEP RELAY Setting Display......................................................................................................... 36
3.2.5.4. DATA Table Display ....................................................................................................................... 37
3.2.6. TRACE Display .......................................................................................................... 39
3.2.7. I/O DGN Display ......................................................................................................... 45
3.3. PMC CONFIG Display ...................................................................................................... 46
3.3.1. Title Display................................................................................................................ 46
3.3.2. Configuration Parameters (3xi Only) .......................................................................... 47
3.3.2.1. CNC-PMC Interface ....................................................................................................................... 48
3.3.2.2. Machine Interface .......................................................................................................................... 49
3.3.2.3. Ladder Execution ........................................................................................................................... 50
3.3.2.4. PMC Memory................................................................................................................................. 51
3.3.3. Setting (General) Display ........................................................................................... 52
3.3.4. PMC Status ................................................................................................................ 56
3.3.5. System Parameter...................................................................................................... 57
3.3.6. Online Monitor ............................................................................................................ 58
4. Exercise 2 – PMC Screen Review ........................................................................................... 59
FFA-091012/02 I
PMC Maintenance – 3xi & 0i-D Table of Contents
5. Input/Output Connection .......................................................................................................... 60
5.1. Input/Output Configuration ................................................................................................ 60
5.2. I/O Model A ....................................................................................................................... 63
5.2.1. Communication Module .............................................................................................. 63
5.2.2. Input Module ............................................................................................................... 64
5.2.3. Output Module ............................................................................................................ 64
5.2.4. I/O Module List ........................................................................................................... 65
5.3. Type 1 Distributed I/O ....................................................................................................... 66
5.3.1. Basic Module – A03B-0815-C001 ............................................................................... 66
5.3.2. Input Connection ........................................................................................................ 67
5.3.3. Output Connection...................................................................................................... 67
5.3.4. Basic Module DO Alarm Status................................................................................... 67
5.3.5. Expansion Modules .................................................................................................... 68
5.4. Type 2 Distributed I/O ....................................................................................................... 69
5.4.1. Type 2 Basic Module – A03B-0815-C041 ................................................................... 69
5.4.2. Type 2 Expansion Module – A03B-0815-C042 ........................................................... 69
6. Exercise 3 – Physical Input/Output .......................................................................................... 70
7. PMC Interface Signals ............................................................................................................. 71
7.1. Dedicated X Addresses ..................................................................................................... 71
7.1.1. *ESP - Emergency Stop.............................................................................................. 72
7.1.2. *DEC - Deceleration Switch ........................................................................................ 73
7.1.3. SKIP Input .................................................................................................................. 73
7.1.4. XAE1, XAE2, XAE3 - Measuring Point Reached......................................................... 73
7.1.5. +MIT1, –MIT1 - Manual Feed Interlock ....................................................................... 73
7.2. Dedicated G & F Addresses .............................................................................................. 74
7.2.1. List by Function .......................................................................................................... 76
7.2.2. List by Symbol ............................................................................................................ 98
7.2.3. List by Address ......................................................................................................... 116
7.2.4. Active Low Signals.................................................................................................... 135
7.2.4.1. *+L1~*+L8 - G114/G116 - Hard Over travel................................................................................... 135
7.2.4.2. *ESP X8.4/G8.4 - Emergency Stop............................................................................................... 136
7.2.4.3. *ESPA G71.1 - Spindle Emergency Stop ...................................................................................... 136
7.2.4.4. *FV0~FV7 G12 - Feedrate Override.............................................................................................. 136
7.2.4.5. *IT G8.0 - All Axes Interlock.......................................................................................................... 137
7.2.4.6. *IT1~*IT8 G130 - Specified Axis Interlock ..................................................................................... 137
7.2.4.7. *JV0~*JV15 G10~G11 - Manual Feedrate Override ...................................................................... 137
7.2.4.8. *SP/SPL G8.5/F0.4 - Feed Hold/Cycle Stop .................................................................................. 138
7.2.5. Axis Specific Signals + - ........................................................................................... 139
7.2.5.1. +J1/-J1 G100/G102 - Feed Axis Direction ..................................................................................... 139
7.2.5.2. +MIT/-MIT G132/G134 - Interlock Each Axis Direction................................................................... 139
7.2.6. Commonly Used G and F Addresses........................................................................ 140
7.2.6.1. AFL/MAFL G5.6/F4.4 - Auxiliary Function Lock ............................................................................. 140
7.2.6.2. AL F1.0 - Alarm In-Progress ......................................................................................................... 140
7.2.6.3. ALMA F45.0 - Spindle Alarm ........................................................................................................ 141
7.2.6.4. ARSTA G71.0 - Spindle Alarm Reset ............................................................................................ 141
7.2.6.5. BAL F1.2 - CNC Battery Alarm ..................................................................................................... 141
7.2.6.6. DRN/MDRN G46.7/F2.7 - Dry Run ............................................................................................... 142
7.2.6.7. DTCH1/MDTCH1 G124/F110 - Controlled Axis Detach ................................................................. 143
7.2.6.8. ENB F1.4 - Spindle Enabled ......................................................................................................... 143
7.2.6.9. ERS/RST G8.7/F1.1 - External Reset ........................................................................................... 143
7.2.6.10. HROV G96.7 - Rapid Override 1% Select ................................................................................... 144
7.2.6.11. HS1A~HS1D G18.0~G18.3 - Manual Handle Feed Axis .............................................................. 144
7.2.6.12. MP1~MP2 G19.4~G19.5 - Manual Handle Multiplier ................................................................... 144
7.2.6.13. IGNVRY G66.0 - Ignore VRDY OFF Alarm All Axes .................................................................... 145
7.2.6.14. IGNVRY1~8 G192 - Ignore V READY OFF Alarm ....................................................................... 145
7.2.6.15. INCH F2.0 - Inch Input ............................................................................................................... 145
PMC Maintenance – 3xi & 0i-D Table of Contents
7.2.6.16. INP1~INP8 F104 - In-Position Signal .......................................................................................... 145
7.2.6.17. KEY1~KEY4 G46.3~G46.6 - Memory Protect Key ....................................................................... 146
7.2.6.18. MD1~MD4 G43.0~G43.2 - CNC Mode Selection ........................................................................ 146
7.2.6.19. MA F1.7 - CNC Ready Signal ..................................................................................................... 147
7.2.6.20. SA F0.6 - Servo Ready Signal .................................................................................................... 147
7.2.6.21. MI1~MI8 G106/F108 - Mirror Image Control ................................................................................ 148
7.2.6.22. MLK/MMLK G44.1/F4.1 - Machine Lock All Axes ........................................................................ 150
7.2.6.23. MLK1~MLK8 G108 - Machine Lock Individual Axis ...................................................................... 150
7.2.6.24. MV1~MV8 F102 - Axis Movement In-progress ............................................................................ 150
7.2.6.25. MVD1~MVD8 F106 - Axis Movement Direction ........................................................................... 150
7.2.6.26. OVC G6.4 - Override Cancel ...................................................................................................... 151
7.2.6.27. ROV1~ROV2 G14.0~G14.1 - Rapid Override.............................................................................. 151
7.2.6.28. SBK/MSBK G46.1/F4.3 - Single Block ........................................................................................ 151
7.2.6.29. ST/STL G7.2/F0.5 - Cycle Start .................................................................................................. 152
7.2.6.30. STLK G7.1 - Start Lock .............................................................................................................. 152
7.2.6.31. SVF1~SVF8 G126 - Servo OFF.................................................................................................. 152
7.2.6.32. UI00~UI15 G54~G55 - User Input Custom Macro........................................................................ 153
7.2.6.33. UO00~UO15 F54~F55 - User Output Custom Macro................................................................... 154
(1) UI/UO G54/F54 - Using Macro Inputs and Outputs........................................................................... 155
7.2.6.34. ZP1~ZP8 F94 - Zero Return Complete........................................................................................ 157
7.2.6.35. ZP21~ZP28 F96 - Second Reference Point Return Complete ...................................................... 157
7.2.6.36. ZP31~ZP38 F98 - Third Reference Point Return Complete.......................................................... 157
7.2.6.37. ZP41~ZP48 F100 - Fourth Reference Point Return Complete...................................................... 157
8. Exercise 4 – Dedicated Addresses ........................................................................................ 158
9. Software Operator Panel ....................................................................................................... 159
9.1. Mode Selection MDO1~MDO4 – F73.0~F73.2................................................................ 160
9.2. Manual Handle Feed Axis HSAO~HSDO – F77.0~F77.3 ................................................ 160
9.3. Manual Handle Multiplier MP1O~MP2O – F76.0~F76.1 ................................................. 160
9.4. Rapid Override ROV1O~ROV2O – F76.4~F76.5 ............................................................ 161
9.5. Jog Feedrate Override *JV0O~*JV15O - F79~F80 ......................................................... 161
9.6. Feedrate Override *FV0O~*FV7O – F78......................................................................... 161
9.7. Software Operator Panel Function Switches ................................................................... 161
9.8. General Purpose Switches.............................................................................................. 162
9.9. ASCII Code Chart ........................................................................................................... 163
9.10. Software Operator Jog Buttons ..................................................................................... 163
10. Number Systems ................................................................................................................. 164
10.1. Binary ........................................................................................................................... 164
10.2. Hexadecimal (Hex) ....................................................................................................... 165
10.3. Binary Coded Decimal (BCD) ....................................................................................... 166
11. Functional Instructions......................................................................................................... 167
11.1. SUB1 – END1 Ladder 1st Level End.............................................................................. 169
11.2. SUB2 – END2 Ladder 2nd Level End ............................................................................. 170
11.3. SUB48 – END3 Ladder 3rd Level End ........................................................................... 170
11.4. SUB3 – TMR User Adjustable Timer ............................................................................. 171
11.5. SUB24 - TMRB Fixed Timer ......................................................................................... 172
11.6. SUB54 - TMRC Timer ................................................................................................... 173
11.7. SUB 77 – TMRBF Instant-On, Delay-Off Timer ............................................................. 174
11.8. SUB 4 – DEC Decode ................................................................................................... 175
11.9. SUB – 25 DECB Binary Decoding................................................................................. 176
11.10. SUB 5 – CTR Counter................................................................................................. 178
11.11. SUB 56 – CTRB Fixed Counter................................................................................... 179
11.12. SUB 55 - CTRC Counter C ......................................................................................... 180
11.13. SUB 32 – CMPB Comparison Between Binary Data ................................................... 182
11.14. SUB 6 – ROT Rotation Control ................................................................................... 183
11.15. SUB 26 – ROTB Rotation Control Binary .................................................................... 185
11.16. SUB 8 – MOVE Logical Product Transfer.................................................................... 187
FFA-091012/02 III
PMC Maintenance – 3xi & 0i-D Table of Contents
11.17. SUB 28 – MOVOR Data Transfer After Logical Sum ................................................... 188
11.18. SUB 14 – DCNV Data Conversion .............................................................................. 189
11.19. SUB 31 – DCNVB Extended Data Conversion ............................................................ 190
11.20. SUB 16 – COIN Coincidence Check ........................................................................... 191
11.21. SUB 40 – NUMEB Definition of Binary Constants ....................................................... 192
11.22. SUB 36 – ADDB Binary Addition ................................................................................. 193
11.23. SUB 38 – MULB Binary Multiplication ......................................................................... 194
11.24. SUB 39 – DIVB Binary Division ................................................................................... 195
11.25. SUB 59 – EOR Logical Exclusive OR.......................................................................... 196
11.26. SUB 61 – OR .............................................................................................................. 198
11.27. SUB 60 – AND ............................................................................................................ 199
11.28. SUB 62 – NOT ............................................................................................................ 200
11.29. Ladder Subroutines ..................................................................................................... 201
12. Machine Alarms ................................................................................................................... 202
12.1. A Address Alarm Coils .................................................................................................. 203
12.2. PMC Message Data Viewer .......................................................................................... 204
12.3. SUB 41 - DISPB Display Alarm Message ...................................................................... 205
12.4. Master Alarm Circuit...................................................................................................... 206
13. Exercise 5 – PMC Functional Instructions............................................................................ 207
14. Auxiliary Functions – M, S, T & B Codes ............................................................................. 208
14.1. Determining why ‘FIN’ is on the screen ......................................................................... 208
14.2. M-Codes ....................................................................................................................... 210
14.3. S-Codes ........................................................................................................................ 211
14.4. T-Codes ........................................................................................................................ 212
14.5. B-Codes ........................................................................................................................ 212
15. PMC Controlled Axis............................................................................................................ 213
15.1. CNC Controlled Axis ..................................................................................................... 213
15.2. PMC Controlled Axis ..................................................................................................... 213
15.2.1. I/O Link PMC Axis................................................................................................... 213
15.2.2. Power Mate Controlled Axis.................................................................................... 214
15.3. PMC Controlled Axis Operations ................................................................................... 214
15.4. PMC Axis Control Parameter ........................................................................................ 214
15.5. Set Up Signals .............................................................................................................. 215
15.6. Operation Signals.......................................................................................................... 215
15.6.1. Axis control selection signal – EXA1 to EXA8 ......................................................... 216
15.6.2. Axis control command signal – EC0g to EC6g ........................................................ 216
15.6.3. Axis control feedrate signals – EIF0g to EIF15g...................................................... 216
15.6.4. Axis control data signals - EID0g to EID31g............................................................ 216
15.7. Handshaking Signals..................................................................................................... 216
15.8. PMC Sequences ........................................................................................................... 216
16. PMC Window Function ........................................................................................................ 220
16.1. D Register Stack ........................................................................................................... 220
16.1.1. Function Code ........................................................................................................ 220
16.1.2. Completion Code .................................................................................................... 221
16.1.3. Data Length ............................................................................................................ 221
16.1.4. Data Number .......................................................................................................... 221
16.1.5. Data Attribute.......................................................................................................... 221
16.1.6. Write Data............................................................................................................... 221
16.2. WINDW Example .......................................................................................................... 222
17. CNC Screen Review ............................................................................................................ 223
17.1. Wave Diagnostic Function ............................................................................................. 223
PMC Maintenance – 3xi & 0i-D Table of Contents
17.1.1. Wave Diagnostic Parameters ................................................................................. 223
17.1.2. Waveform Diagnostic Capture Program ................................................................. 226
17.1.3. Capture Waveform Data ......................................................................................... 227
17.2. CNC Diagnostic Screen ................................................................................................ 229
18. Ladder Editing ..................................................................................................................... 230
18.1. Settings......................................................................................................................... 230
18.2. Altering Existing Ladder Logic....................................................................................... 231
18.3. Adding New Ladder Logic ............................................................................................. 234
18.3.1. Adding a New Functional Instruction ...................................................................... 235
18.4. Deleting Ladder Logic ................................................................................................... 236
18.5. Deleting a Single Contact.............................................................................................. 237
18.6. CUT and COPY Functions ............................................................................................ 237
18.7. Symbols and Comments ............................................................................................... 238
18.7.1. Altering Existing Addresses .................................................................................... 239
18.7.2. Adding New Addresses .......................................................................................... 240
18.8. Machine Alarm Messages ............................................................................................. 242
18.9. Adding I/O Link Modules ............................................................................................... 244
18.10. Saving Ladder Changes to FROM .............................................................................. 245
19. Exercise 6 – Ladder Editing ................................................................................................. 246
20. Revision History of FFA-091012 .......................................................................................... 247
21. Operator Panel Layout ........................................................................................................ 248
FFA-091012/02 V
PMC Maintenance – 3xi & 0i-D Introduction to PMC Ladder
1. Introduction to PMC Ladder
Control of the Machine Tool is performed in three key areas, with the FANUC System Software
regulating the entire system. The three areas of control are the CNC, PMC, and Machine.
The Programmable Machine Control, or PMC, contains two individual software components:
the FANUC PMC system software (example 4067-13) which controls overall operation such as
cycle time, G and F address allocation, and I/O module recognition, and the Ladder Diagram
(example PMC-RB) which establishes the exact conditions or logic for a process to occur. The
machine tool builder writes the ladder diagram per individual machine requirements.
The FANUC CNC System Software is responsible for many aspects of control including the
power on sequence (or BOOT system), the control of Servo Motors, the display of information to
the LCD, and the operation of G-Codes within the part program.
The electronic portion of the Machine Tool includes physical switches, pushbuttons, LED’s, and
mechanical contactors. Many of these devices are located on the machine’s operator panel,
along the axis or tool change device, or in the electronics cabinet.
The PMC serves as the interface between the CNC and the Machine Tool.
FANUC SYSTEM SOFTWARE
G G
F F
The PMC uses G addresses to COMMAND the CNC, SERVO, and SPINDLE systems, and F
addresses are returned to the PMC, to CONFIRM the CNC, SERVO, and SPINDLE has done
what it was commanded to do. The G and F addresses are fixed software addresses and exist
only in the memory of the PMC.
The physical world is connected to the PMC through the I/O modules, using X and Y addresses.
The X addresses are inputs to the PMC; the Y addresses are outputs from the PMC. The I/O
board simply converts the signal from +24VDC to digital signals.
FFA-091012/02
1
Introduction to PMC Ladder PMC Maintenance – 3xi & 0i-D
The outputs from the PMC ladder are called coils. These coils output to the MACHINE, CNC,
SERVO, or SPINDLE systems to command actions. In the ladder diagram, the coils are
represented by circles.
M3 M5 G70.5
X2.1
Each coil has an ADDRESS assigned to it. Here is the coil for address G70 bit 5. The address
determines where the signal output will go. G70.5 is a dedicated address for the PMC to
command the SPINDLE to go clockwise (M3). When the coil becomes active in the ladder, the
command is sent to the spindle drive.
Here are some of the ladder ADDRESSES that can be assigned to PMC COILS.
R = Internal Relays, relays that exist within the ladder software, used for purposes
determined by the ladder developer.
D = Data Register Bits, data registers are used for internal ladder data storage.
K = Keep Relays, relays that are used to set ladder options, controlled by a
parameter screen.
2
PMC Maintenance – 3xi & 0i-D Introduction to PMC Ladder
1.1.2. Ladder Input Contacts
The inputs to the PMC ladder are called contacts. These contacts are input from the MACHINE,
CNC, SERVO, SPINDLE, or INTERNAL PMC signals, to tell the PMC the status of those signals.
In the ladder diagram, the contacts can be either normally closed or normally open.
M3 M5 G70.5
NORMALLY OPEN
The NORMALLY CLOSED contact conducts when the signal is NOT ACTIVE.
When the signal X2.1 is ACTIVE, and signal M5 is NOT ACTIVE, the net conducts and the coil
G70.5 is turned ON. If M5 becomes active, or X2.1 becomes not active, the coil G70.5 is turned
OFF.
Here are some of the ladder ADDRESSES that can be assigned to INPUTS.
X = Physical Inputs, from the machine I/O, such as limit switches, proximity
switches, or other relay contacts.
F = System Inputs, that confirm the CNC, servos, or spindle system status to the
PMC.
K = Keep Relays, relays that are used to set ladder options, controlled by a
parameter screen.
R = Internal Relays, relays that exist within the ladder software, used for the
purpose determined by the ladder developer.
D = Data Register Bits, data registers are used for internal ladder data storage.
FFA-091012/02
3
Introduction to PMC Ladder PMC Maintenance – 3xi & 0i-D
1.1.3. PMC Specifications
The performance of the PMC varies with the type and model of the control used. The 3xi series
has more processing power than the 0i-D so it processes ladder instructions faster.
Furthermore, the 3xi series can operate multiple ladders (referred to as paths) – the 30i-A can
control up to three paths and the 30i-B can control up to five paths. The 0i-D only controls a
single ladder. In addition to the path(s) that the CNCs can control, there is an optional feature
called Dual Check Safety (DCS) that has its own ladder as well.
Note 1 (does not apply to 0i-D): The ladder memory type to be used is set by CNC parameter.
PRM 11940 – 11944 sets the memory type of PMCs 1-5 respectively (the 3xi-A only uses PRMs
11940-11942).
A setting of: 1 = PMC Memory A, 2 = PMC Memory B, 3 = PMC Memory C, 4 = PMC Memory D, -
1 = uses the same memory as the 1st PMC.
Note 2: CNC parameter 11930 specifies the ladder scan time – set to 4 for 4 msec or to 8 for 8
msec.
4
PMC Maintenance – 3xi & 0i-D Introduction to PMC Ladder
1.1.4. Address Table
Like ladder performance, the address table varies between CNC Series and Model as well as the
ladder memory type. The 3xi-A control can use PMC memory types A, B, or C, the 3xi-B utilizes
PMC memory types A, B, C, or D, and the 0i-D can use its standard ladder or the ladder that the
0iMate-D uses (PMC/L).
FFA-091012/02
5
Introduction to PMC Ladder PMC Maintenance – 3xi & 0i-D
PMC Output to physical machine Y0 ~ Y127, Y200 ~ Y327, Y400 ~ Y527, Y600 ~
Y side (relays/solenoids) Y727
Y0 ~ Y127
6
PMC Maintenance – 3xi & 0i-D Introduction to PMC Ladder
Parameters - The parameters are settings in the CNC memory. These settings tell the CNC what
the machine is capable of, for example one parameter setting tells the CNC the travel distance for
the X servo axis, in the + and - directions. FANUC makes controllers that will work on any size
machine. The parameters describe the machine capabilities to the CNC controller.
1. The physical Cycle Start button is pressed on the machine operator panel.
2. This causes +24VDC to be sent to an I/O module.
3. The I/O module inputs this signal to the PMC Ladder at address X12.1.
4. The ladder uses X12.1 to activate the G7.2 coil
5. This commands the CNC to Cycle Start.
6. The CNC starts processing the current G-Code program.
7. Address F0.5 confirms to the PMC that it is in Cycle Start.
8. The ladder uses the F0.5 contact to activate the Y12.1 coil.
9. The Y12.1 coil address is recognized by the I/O module.
10. The I/O module outputs +24VDC at the wire connected to the Y12.1 address.
11. The lamp in the Cycle Start push button is turned on.
A similar interaction of command and confirmation occurs with every PMC operation.
FFA-091012/02
7
Basic Ladder Items PMC Maintenance – 3xi & 0i-D
2) Press the soft key on the CNC menu until you see the 3 main PMC choices:
, , and
3) Press the soft key, then press the soft key on the LCD menu.
8
PMC Maintenance – 3xi & 0i-D Basic Ladder Items
2.3. Output Coils
Coils are outputs from the PMC; they cannot be duplicated in the ladder. If the contacts before
the output coil conduct, the output coil is activated (status=1). If there is not a complete path
of conducting contacts from the left side of the screen to the coil, the output coil is inactive
(status=0). The coil has a highlighted appearance when active.
FFA-091012/02
9
Basic Ladder Items PMC Maintenance – 3xi & 0i-D
2.5. SET Output Coil
The SET coils are outputs from the PMC; unlike other coils they can have a duplicate, the RESET
coil. If the contacts before this coil conduct, even momentarily, the coil is LATCHED ON
(status=1). The only way to turn it OFF is to use the RESET coil with the same address.
1) The R210.1 coil should be visible on the screen, if not just press the
button to see it.
2) Press the button on the Operator Panel to SET the coil (it’s already set
because of the previous section).
Note that when the coil is set, both the SET and RESET coils are highlighted.
Note that when the coil is not set, neither the SET nor RESET coils are highlighted.
4) While holding down the button, press the button – notice that the
coil will not SET.
10
PMC Maintenance – 3xi & 0i-D Basic Ladder Items
2.7. Logical AND Circuit
When contacts are arranged in series with each other, this is called ANDing.
In the next example, both the AUX1 AND AUX 2 contacts must conduct before the output R210.2
turns ON.
6) Press and hold the and buttons on the Operator Panel to see the
coil conduct.
When contacts are arranged in parallel with each other, this is called ORing.
Either AUX1 OR AUX2 must conduct before the output R210.3 turns ON
8) Press and hold either the or the button on the Operator Panel to see
the coil conduct.
FFA-091012/02
11
Basic Ladder Items PMC Maintenance – 3xi & 0i-D
2.9. Latch and Hold Circuit
A latch and hold circuit uses a contact of the same address as the coil to latch the coil ON even if
the input only turns ON momentarily.
Same address
In this example, when turned ON, the coil R210.5 was turned ON.
When the coil R210.5 turns ON, the contact R210.5 then conducts, causing the coil to LATCH
and HOLD the output ON, even if AUX5 stops conducting.
The only way the circuit can turn OFF is for F1.1 to stop conducting.
12
PMC Maintenance – 3xi & 0i-D Basic Ladder Items
2.10. Momentary Switches to Latching Switches
The circuit below converts the input from a momentary switch and causes it to latch within the
ladder logic. This is very common today for operator panel and other switch inputs. The circuit
uses a Sub 57 DIFU rising edge detection function block to hold the coil on for one ladder scan.
The logic acts like a basic flip-flop circuit.
In the example below, even a very brief input from X14.5 will cause the Sub 57 function block to
turn on coil R16.5. This will cause the contacts R16.5 to conduct and activate the SET coil R17.5
if the output coil, Y14.5, is in the off state. Coil R17.5 will cause the output coil Y14.5 to latch on
as seen below.
If the output is in the on/set state, when the input X14.5 is activated again, the Reset coil, R17.5
will be activated and coil output will be turned off, turning off the output coil Y14.5.
FFA-091012/02
13
PMC Screen Review PMC Maintenance – 3xi & 0i-D
pertains to the PMC side of the system. This section will cover what is available from each soft
key.
2) Press the soft key on the CNC menu until you see the three main PMC choices.
14
PMC Maintenance – 3xi & 0i-D PMC Screen Review
The first time you look at the LADDER display it automatically shows the LIST view; you can
You can: Press the and then soft keys, or press the soft key.
6) Press the soft key on the CNC menu to view the GLOBAL ladder.
By default, the ladder elements that are conducting appear highlighted in BLUE or GREEN (Blue
= 3xi, Green = 0iD). The colors can be customized as we’ll see later.
The ladder NET numbers are displayed at the top of the page
The cursor
is yellow,
and can be
moved by
the arrow
keys.
The status
of the
cursor
selection
is shown
on the
status line.
FFA-091012/02
15
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.1.2.1. SEARCH Menu
By pressing the soft key, the search menu is displayed. When searching, the signals
address or symbol name (comment) may be entered.
1) Press the soft key, and then the soft key on the CNC menu.
- This soft key moves the display to the top or the bottom of the ladder each time it
is pressed.
- This soft key searches for the next instance of whatever the cursor is on top of, or
whatever you type in – such as NET numbers or addresses of contacts, coils, registers, etc.
- This soft key searches for coils ONLY. From a maintenance perspective, this is
the primary search button – usually when searching the ladder you are looking for the address
of a coil. SET and RESET coils are the only coils that can be duplicated in the ladder – if your
cursor is on one of these and you press this soft key again, it will switch you between the two.
- This soft key searches for functional instructions ONLY. Each type of functional
instruction is assigned a SUBroutine number – such as 3 for a timer; you type in the SUB
number and press the soft key to search for that functional instruction. If the cursor is
highlighting SUB # inside a functional instruction, you will be taken to the next instance of that
type of functional instruction.
- This soft key selects the rung pointed to by the cursor. The selected net will appear
on the COLLECTIVE display.
- This soft key functions precisely like the soft key with the exception that it
searches in the opposite direction.
16
PMC Maintenance – 3xi & 0i-D PMC Screen Review
STATUS
3) Once the cursor selects an address, you can press the soft key again to find
the related contacts. Press it a few times.
FFA-091012/02
17
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.1.3. COLLECTive Monitor Function
The collective display is a screen that allows you to choose the ladder rungs you want to display.
This allows you to choose rungs from multiple sections or levels of the ladder and view them in
one central location.
If coming from the previous section, steps 1-3 are not necessary:
4) Press the soft key, notice the looking glass appears on the left edge.
Note: The ladder cursor must be enabled for the pickup key to appear.
6) Press the soft key, notice the looking glass appears on the left edge.
18
PMC Maintenance – 3xi & 0i-D PMC Screen Review
9) Press the soft key again to return to the GLOBAL display view.
10) Press the soft key to change to the COLLECTIVE display view.
11) Move the cursor down to the line with the SUB 54 block. Press the soft key.
Notice that this soft key takes you to that particular spot in the LADDERL view.
12) Press the soft key to change to the COLLECTIVE display view.
13) Press the soft key. Notice that the rung that the cursor was on is no longer in the
collective display.
14) Press the soft key. Notice that the CNC asks you if you really want to do that (in
its own way).
15) Press the soft key to remove all rungs on the collective display.
FFA-091012/02
19
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.1.4. SCREEN SETTING Display
The SCREEN SETTING page allows you to change the appearance of the ladder display.
From the previous section, press the soft key to close the search menu.
1) From the LADDER display, press the soft key on the CNC menu.
The DIAGRAM MONITOR (SETTING) screen appears …
ADDRESS NOTATION
SYMBOL ADDRESS
TALL
FUNCTION STYLE
COMPACT WIDE
CONTACT WIDTH
NORMAL WIDE
20
PMC Maintenance – 3xi & 0i-D PMC Screen Review
SHOW COMMENT OF COIL
YES
NO
SHOW CURSOR
YES NO
When set to LOCAL the NET numbers do not refer to where the subprogram is in the global
ladder but strictly to that subprogram alone – so the first net in the subprogram is number 1.
When set to GLOBAL, the NET numbers conform to the numbering of the global ladder – so
unless the subprogram is at the very top of the ladder its NET numbering will not start at 1.
When set to YES, if you reach the bottom of the ladder while searching and press the
soft key again, then the system will go back to the top of the ladder and continue looking for the
next result.
When set to NO, once you reach the result closest to the bottom of the ladder you will get the
message THE ADDRESS IS NOT FOUND if you continue to press the soft key.
FFA-091012/02
21
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.2. PMC MAINTE Display
3.2.1. STATUS Display
The status display is where you can quickly see the status of any PMC address. This is useful
when checking to see if an input address is working or to check if an output has been turned on.
The status screen always updates, even if the PMC is not running.
7) Activate the AUX1 button on the operator panel, and see the bit change.
22
PMC Maintenance – 3xi & 0i-D PMC Screen Review
10) Press the button on the MDI key pad to highlight bit 0.
11) Press the soft key on the CNC menu. (The soft key does not exist unless RAM
Notice the LED on the operator panel flashes ON/OFF each time it’s pressed, or may
appear to have done nothing at all.
The FORCE function can force any output address, but it will only stay forced when the
PMC is STOPPED.
14) Press the soft key 2 times to change the soft key menu.
FFA-091012/02
23
PMC Screen Review PMC Maintenance – 3xi & 0i-D
The message ‘DO YOU WANT TO STOP (ALL PMC) PROGRAM(S)?’ appears…
20) Press the soft key 2 times to change the soft key menu.
24
PMC Maintenance – 3xi & 0i-D PMC Screen Review
29) Press the soft key 2 times to change the soft key menu.
30) Press the soft key to change the soft key menu.
33) Press the soft key to start the ladder execution again.
The message ‘DO YOU WANT TO RUN (ALL PMC) PROGRAM(S)?’ appears…
34) Press the soft key to change the soft key menu.
Notice the AUX1 led turns OFF when the ladder takes control.
If the ladder coil you force does not exist within the ladder logic
the coil will force on and off even with the ladder in RUN mode.
FFA-091012/02
25
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.2.2. I/O LINK Display
All of the Input/Output devices for the machine are connected through the I/O link. The link is a
serial connection (electrical cable) that starts at CNC connector JD51A and then daisy chains
from device to device. There are a maximum number of devices (16) that can be daisy chained
together on the I/O link but this amount can be multiplied by using multiple I/O link chains – called
channels.
The 3xi series can operate up to four I/O link channels and the 0i-D can operate two.
Each I/O device on the link has an address which is set by the order in which it is connected to
the cable.
26
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.3. PMC ALARM Display
The alarm display indicates faults that occur during ladder processing. In most cases you will
never see an alarm on this screen. If the PMC’s configuration is incorrect, or the I/O link should
fail, a message may appear here.
If all is good on the PMC side of the control, the message NO ALARM will appear.
If a PMC alarm does occur, no alarm is present on the CNC MESSAGE display. The only
indication you may see is the CNC will be stuck in an EMG-STOP condition. This is a good time
to check the PMCDGN ALARM screen.
Disconnect the I/O Link cable, then power on the CNC to see this condition.
FFA-091012/02
27
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.2.4. I/O Display
The screen is used for saving and loading PMC data. This data includes the PMC
parameters, PMC ladders, message (alarm) data, and trace settings.
28
PMC Maintenance – 3xi & 0i-D PMC Screen Review
8) Select KIND OF DATA = SEQUENCE PROGRAM.
The PMC will begin outputting the ladder program to the memory device. At the bottom of the
screen the byte count increments as the data is sent out and EXECUTING appears. When the
ladder has been saved the status message on the screen says COMPLETED.
FFA-091012/02
29
PMC Screen Review PMC Maintenance – 3xi & 0i-D
At the bottom of the screen the byte count increments as the data is sent out and EXECUTING
appears. When all parameters have been output the status message on the screen says
COMPLETED.
30
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.4.3. Exercise 1 – PMC Data Backup
3) In what type of memory is the LADDER stored? Can it be lost if the battery is low?
4) After downloading the ladder to your laptop, how can you confirm the file is correct?
FFA-091012/02
31
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.2.5. PMC Parameter Display
The PMC parameters provide the PMC with data values. Their purpose is determined by the
machine builder at the time the ladder is written. They set time intervals for timers, keep track of
current counts in counters, turn on machine side options, and store data to remember machine
conditions like which tools are in which magazine pots.
The NO. column refers to the number in the SUB3 function block.
TIMER number 15 is associated with address T28 on the PMC diagnostic screen.
32
PMC Maintenance – 3xi & 0i-D PMC Screen Review
6) Press the button on the MDI key pad, to select timer No. 15.
This button allows you to see any comments that the ladder programmer may have entered to
describe the timer purpose
The accuracy changes the increment that the timer actually counts time by.
11) Press the left menu 3 times to return to the original menu.
FFA-091012/02
33
PMC Screen Review PMC Maintenance – 3xi & 0i-D
13) Press the soft key on the CNC menu to view the ladder selection.
This is a timer FUNCTION BLOCK. When the input is activated, the timer counts.
When the preset value is reached, the coil R200.0 turns ON.
18) Press the soft key to change the soft key menu.
19) Press the soft key 2 times to return to the original menu.
34
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.5.2. COUNTER Setting Display
The counters can be used by the machine builder to count any occurrence they choose. A
common use for a counter would be to count tool pots on the tool magazine. The counter
function blocks SUB5 can be adjusted on this screen.
2) Press the button on the MDI key pad, to select counter No. 5.
The ACT input (X14.0) is the action that will be counted. When the current count reaches
the preset value (5), the output coil (R200.5) becomes active.
FFA-091012/02
35
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.2.5.3. KEEP RELAY Setting Display
The KEEP RELAYS are used to enable/disable machine side functions in the ladder. For
example, the machine builder may include 4th axis control in the ladder, even though the machine
does not have the axis. If the end user decides to add a 4th axis later, a keep relay will enable that
portion of the ladder. This allows the machine builder to add all machine functions, so they don’t
need to re-write the ladder if the user decides to upgrade the machine.
Keep relays K00 through K299 (depending on PMC memory type) are user defined, and may be
used by the machine builder for any purpose they choose. It is possible to have ladder coils with
K addresses, or they may be manually controlled on this parameter screen.
2) Turn OFF/ON K8.0, and see the status of the contact change in the ladder.
K900 through K999 are system relays used to control the PMC screens.
36
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.5.4. DATA Table Display
The data table store data values to be used by the ladder logic. The values can be used for any
purpose the PMC developer wants. They could be used to store tool numbers in a random tool
changer, to keep track of which tool is in which pocket, or they may be used to vary the data in a
counter.
2) Press the button on the MDI key pad, to select the GROUP.
5) Press the button on the MDI key pad, to view the other GROUPS.
6) Press the soft key on the CNC menu, to return to the CONTROL table.
FFA-091012/02
37
PMC Screen Review PMC Maintenance – 3xi & 0i-D
The DATA registers are separated into GROUPS. At the top of the screen shows there are 7
groups in this PMC. Group1 starts at address D0000.
GROUP1
ADDRESS D0000 is the start address of the GROUP.
TYPE is set to 1 (16bits), so each register takes up 2 addresses.
DATA is set to 5 (5 registers), so from address D0000~D0009 are used.
GROUP2
ADDRESS D0010 is the start address of the GROUP.
TYPE is set to 3 (8bits), so each register takes up 1 address.
DATA is set to 30 (30 registers), so from address D0010~D0039 are used.
TYPE – Determines how many bytes are used for each register.
38
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.6. TRACE Display
The trace display allows you to monitor changes in status of any PMC address.
Up to 32 different addresses may be monitored at the same time.
FFA-091012/02
39
PMC Screen Review PMC Maintenance – 3xi & 0i-D
8) Press the soft key on the CNC menu to display addresses. (It changes to )
40
PMC Maintenance – 3xi & 0i-D PMC Screen Review
13) Press the soft key on the CNC menu. The TRACE begins.
14) Press the button on the operator panel to put the CNC into memory mode.
The screen is only updated when a watched signal turns either on or off – the state of all watched signals is shown at that time.
FFA-091012/02
41
PMC Screen Review PMC Maintenance – 3xi & 0i-D
27) Press the soft key on the CNC menu. The TRACE begins.
42
PMC Maintenance – 3xi & 0i-D PMC Screen Review
35) Press the soft key on the CNC menu. The TRACE begins.
FFA-091012/02
43
PMC Screen Review PMC Maintenance – 3xi & 0i-D
40) Press the soft key several times to view the entire trace.
41) Move the yellow cursor with the and buttons on the MDI keypad.
For 3xi: Notice the dark green line left at where the trace stop trigger occurred.
For 0i-D: Notice the light green line left at where the trace stop trigger occurred.
42) Move the cursor to the right of the trigger line. Press the soft key.
43) Press the button on the MDI key pad a few times.
For 3xi: Notice the blue line left at where the mark was left.
For 0i-D: Notice the semi-dark green line left at where the mark was left.
44
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.2.7. I/O DGN Display
The screen functions similar to the PMC diagnostic screen , but where it
differs is in how it displays the status and the fact that the only PMC signals listed are those that
have had a SYMBOL assigned to them.
6) There are soft keys under the soft key that change how the information is
presented on the screen.
FFA-091012/02
45
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.3. PMC CONFIG Display
3.3.1. Title Display
The title screen displays information about the ladder file.
The top half of the screen is information that is entered in by the person creating the ladder
program (such as the MTB’s ladder version). The bottom half of the screen is filled in
automatically by the CNC system.
The top portion can be edited by pressing the and soft keys.
46
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.3.2. Configuration Parameters (3xi Only)
The configuration parameters allow you to modify how the multiple PMCs operate – both on an
individual basis and with the other PMCs.
FFA-091012/02
47
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.3.2.1. CNC-PMC Interface
The CNC-PMC Interface screen allows you to assign groups of G and F addresses to particular
PMCs.
Use caution when on this screen, most of the soft keys will make a change without confirmation
that requires a restart and afterward the PMC might not function correctly any more.
G/F0000 group includes addresses G/F 0-999, G/F1000 includes 1000-1999, etc.
- The and soft keys are used to cycle through the available choices for PMC
and address groups.
- The soft key will clear out the values on a particular line.
- The soft key sets all the values back to their default setting.
48
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.3.2.2. Machine Interface
The Machine Interface screen allows you to assign both PMCs and X/Y address groups to
particular I/O Link channels.
Use caution when on this screen, most of the soft keys will make a change without confirmation
that requires a restart and afterward the PMC might not function correctly any more.
X/Y0000 group includes addresses X/Y 0-199, X/Y200 includes 200-399, etc.
- The and soft keys are used to cycle through the available choices for PMC
and address groups.
- The soft key allows you to set additional PMCs and/or address groups to an I/O
channel.
FFA-091012/02
49
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.3.2.3. Ladder Execution
The Ladder Execution screen allows you to customize the execution priority and scan time
percentages that each PMC is allotted.
Use caution when on this screen, most of the soft keys will make a change without confirmation
that requires a restart and afterward the PMC might not function correctly any more.
- The and soft keys juggle the PMCs among the Exec Priority column.
- The soft key automatically determines the scan time percentage to assign to each
PMC.
- To change the Exec Time Ratio, place the cursor on the line you want to modify, type in the
50
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.3.2.4. PMC Memory
The PMC Memory screen is where the PMC Memory type is defined for each ladder. PMC
Memory A offers the least amount of available addresses, B offers more, C even more, etc.
Use caution when on this screen, most of the soft keys will make a change without confirmation
that requires a restart and afterward the PMC might not function correctly any more.
- The , , and soft keys are used to define the memory type.
Memory A uses R0-1499, D0-2999, B uses R0-7999 and D0-9999, C utilizes R0-15999
and D0-19999.
- The soft key sets that PMC to use the same memory type as another PMC.
FFA-091012/02
51
PMC Screen Review PMC Maintenance – 3xi & 0i-D
3.3.3. Setting (General) Display
The setting display has settings that determine how the ladder special functions will work. These
are related to the K900~K930 keep relays and the functions are described below.
TRACE START: decides if the TRACE automatically starts at CNC power ON.
EDIT ENABLE: determines if the EDIT soft key is available on various PMC screens.
52
PMC Maintenance – 3xi & 0i-D PMC Screen Review
WRITE TO FROM (EDIT): the message “WRITE TO FROM?” appears after ladder editing.
RAM WRITE ENABLE: enable the soft key as well as ability to change PMC params.
DATA TBL CNTL SCREEN: determines if the DATA TABLE CONTROL screen ….
HIDE PMC PROGRAM: determines if the PMC ladder diagram can be viewed.
FFA-091012/02
53
PMC Screen Review PMC Maintenance – 3xi & 0i-D
KEEP RELAY (SYSTEM) determines if the K900-K999 KEEP RELAYS can be viewed.
LADDER START: determines if the ladder is in the RUN or STOP state at power-on.
ALLOW PMC STOP: determines if the RUN/STOP button is displayed on the soft menu.
NO = the above individual settings for editing, writing, etc. are used
YES = editing, writing, etc. is possible regardless of above settings.
The message shift settings enable the ladder programmer to set up alarms for multiple languages
and then depending on what language the end-user understands, the system can display them.
First you set up a consistent repeating pattern of how the alarms are set up:
IE, A0.0 is Alarm 1 in English, A0.1 is Alarm 1 in Japanese, A0.2 is Alarm 1 in Italian;
A1.0 is Alarm 2 in English, A1.1 is Alarm 2 in Japanese, A1.2 in Alarm 2 in Italian, etc.
If the shift value is set to 1 and A0.0 activates in the ladder, the message attached to A0.1 will be
displayed, if set to 2 then the message address is shifted by 2 bits. So in the above example, a
shift value of 0 means English, 1 means Japanese, and 2 means Italian.
The start address sets up where this shifting actually begins at – if the start address is A100.0
then A0.0-A99.7 will display normally but everything else will be shifted.
54
PMC Maintenance – 3xi & 0i-D PMC Screen Review
***The following ominous warning only appears if the Selectable I/O Link Assignment
Function has been enabled on the PMC Config – System Param screen.***
At this point you can assign PMC addresses to work only with certain IO group numbers:
FFA-091012/02
55
PMC Screen Review PMC Maintenance – 3xi & 0i-D
Override enable expands the ability of the FORCE function in the PMC Signal Status screen.
If override enable is turned on, it is possible to force an X address with the ladder running
overriding the actual physical input and causing the PMC logic to act accordingly.
It is possible to force a Y address and have it stay on while the ladder is running regardless of the
actual PMC logic.
56
PMC Maintenance – 3xi & 0i-D PMC Screen Review
3.3.5. System Parameter
The system parameter screen allows you to control how PMC counters count, setup the system to
work with an operator’s panel from a Fanuc Series 0 control, and control selectable IO Link group
assignments.
Each counter has a C address associated with it in the PMC. By default this address uses the
binary number system. This screen allows you to switch to BCD if desired.
This screen controls setup of a Fanuc Series 0 operator panel. Detailed information can be found
in the appropriate PMC Ladder Language Programming manual for your particular control.
FFA-091012/02
57
PMC Screen Review PMC Maintenance – 3xi & 0i-D
This screen allows you to control whether certain X/Y address groups can be assigned to
individual IO groups. The actual assignment of these addresses to IO groups is accomplished on
the PMC Config – Setting screen.
3.3.6. Online Monitor
The online monitor function is used with Fanuc Ladder III software on your PC to allow the
computer to make a live connection with the ladder. You can watch ladder execution remotely on
your computer, make changes, and update the control’s ladder.
Note that when RS-232 is set to USE, RS-232 on the CNC side doesn’t work.
High-speed refers to the Ethernet connection.
58
PMC Maintenance – 3xi & 0i-D Exercise 2
4. Exercise 2 – PMC Screen Review
1) Search the ladder for R0.1, how many contacts are in the ladder?
how many coils are in the ladder?
4) Search the ladder for SUB 5, what is the current count of counter 5?
6) Using the PMC Signal Status screen, what is the status of address R0.1?
7) Setup the TRACE screen to monitor F7.0 (M-code Flag), then run program O0001.
From the trace screen view, how many M-codes were processed in that program?
9) On the PMC CONFIG SETTING screen, what is the purpose of the PROGRAMMER ENABLE
setting?
10) When troubleshooting machine side switches, what should you do to the ladder before
toggling the switches?
FFA-091012/02
59
Input/Output Connection PMC Maintenance – 3xi & 0i-D
5. Input/Output Connection
Fanuc offers several different types of I/O connections. They are all connected to the CNC by an
electrical serial communication link which is referred to as the I/O Link.
I/O Link
All the types of I/O are available with SINKING or SOURCING connections. Sinking (also called
NPN) connections provide a path to ground; sourcing (also called PNP) connections provide a
path to 24VDC. More detail about these connections is shown in the following sections, but
generally the I/O style is determined by the area where the machine was manufactured.
60
PMC Maintenance – 3xi & 0i-D Input/Output Connection
FFA-091012/02
61
Input/Output Connection PMC Maintenance – 3xi & 0i-D
The PMC I/O MODULE screen appears…
62
PMC Maintenance – 3xi & 0i-D Input/Output Connection
5.2. I/O Model A
The I/O Model A is the PLC rack style I/O modules. There are 5 slot racks and 10 slot racks.
Many different I/O modules are available for each slot. In slot 0 of the rack is the communication
module.
FFA-091012/02
63
Input/Output Connection PMC Maintenance – 3xi & 0i-D
5.2.2. Input Module
The AID16D TERMINAL BLOCK connection input module is shown here.
The rated current per input is 7.5mA and these inputs are wired sourcing (GND is switched).
The start address is dependent on the configuration settings
which are setup by the machine builder.
64
PMC Maintenance – 3xi & 0i-D Input/Output Connection
5.2.4. I/O Module List
Below is a list of all the I/O modules available for Model A I/O. More details and connection
information for each module can be found in the manual B-61813EN, FANUC I/O MODEL A
CONNECTION and MAINTENANCE MANUAL.
FFA-091012/02
65
Input/Output Connection PMC Maintenance – 3xi & 0i-D
5.3. Type 1 Distributed I/O
The Type 1 Distributed I/O may be DIN rail or PCB mounted.
These modules are connected on the I/O Link serial
daisy chain by the BASIC MODULE, and can be
mounted anywhere on the machine.
66
PMC Maintenance – 3xi & 0i-D Input/Output Connection
5.3.2. Input Connection
For the basic module inputs, SINKING or SOURCING may be selected by the wiring to the
DICOM0 signal on pin 24. Each input uses approximately 15mA.
FFA-091012/02
67
Input/Output Connection PMC Maintenance – 3xi & 0i-D
5.3.5. Expansion Modules
The expansion modules are available in different models - one with a manual handle interface,
another with analog inputs, and standard units with discrete I/O points.
A rotary switch is provided near the ribbon cable connection, which allows the builder to skip
address ranges. Typically the switches are all set to ‘0’, which means the module addresses are
consecutive. When replacing these units, confirm the switch setting of the old unit.
Module Name Part Number Description
Expansion Module A A03B-0815-C002 24inputs/16outputs with handle I/F (JA3)
Expansion Module B A03B-0815-C003 24inputs/16outputs
Expansion Module C A03B-0815-C004 16outputs (2A outputs, 12A max overall)
Expansion Module D A03B-0815-C005 Analog inputs (0~10V or 4~20mA selectable)
Ribbon cable A660-2040-T045#34B0020 Connection between modules - 20mm length
68
PMC Maintenance – 3xi & 0i-D Input/Output Connection
EXPANSION MODULE
FFA-091012/02
69
Exercise 3 PMC Maintenance – 3xi & 0i-D
2) On the PMC Signal Status screen, search for address X8.4. Is the status 1 or 0?
4) Using I/O Model A, where is the +24V supply for the X inputs?
5) Using I/O Model A, if a new Sinking DC output connection requires 750mA of current, which
output module should be used?
7) If you swap I/O modules between slots does the starting addressing change?
8) Using Type 1 I/O, which expansion module needs to be used to accept an analog input?
70
PMC Maintenance – 3xi & 0i-D PMC Interface Signals
7. PMC Interface Signals
The manuals 0i-D Connection Manual (FUNCTION) B-64303EN-1, 30i-A Connection Manual
(FUNCTION) B-63943EN-1, and 30i-B Connection Manual (FUNCTION) B-64483EN-1 detail
these signals. This section contains the X, G and F address lists for the 0i-D controls; the 3xi
series do have a few more signals, refer to their respective manuals if necessary.
Normally the X addresses are determined by the machine builder, because they decide how the
machine will be wired to the I/O module. There are a few X addresses that are fixed by Fanuc.
These addresses are for time critical signals like emergency stop. The following material explains
the function of the dedicated addresses.
FFA-091012/02
71
Dedicated X Addresses PMC Maintenance – 3xi & 0i-D
The asterisk * in the signal name indicates the emergency stop signal is active low. This means
that when the signal is 1 on the status screen, there is no emergency. When the signal changes
from 1 to 0, emergency stop becomes active.
Some machine builders choose to tie all of the hard over-travel switches in series with the
emergency stop switch. If the machine hits a hard over-travel or someone presses the EMG-
STOP button, the CNC displays EMG.
72
PMC Maintenance – 3xi & 0i-D Dedicated X Addresses
7.1.2. *DEC - Deceleration Switch
The deceleration switches are used for home return. They are commonly referred to as DOG
switches, they tell the CNC when the servo axis is near home. These switches are wired normally
closed as indicated by the * asterisk. When the CNC sees the switch status change from 1 -> 0 ->
1 it stops at the next Z pulse, which is home position.
There is a separate address for each axis, as well as each path. The first PMC uses address X9.
Address X9.0 is used for the 1st axis (X axis), X9.1 is used for the 2nd axis (Y on mill or Z on lathe),
X9.2 is used for the 3rd axis (Z on mill, C on lathe), X9.3 is used for the 4th axis, and X9.4 is for the
5th axis. The second PMC uses address X7, with the same bit assignments.
FFA-091012/02
73
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2. Dedicated G & F Addresses
All of the G and F addresses are set by Fanuc. The machine builder interfaces to them with X and
Y (physical inputs/outputs) addresses in the PMC ladder. The G and F addresses interface
between the PMC and CNC, SERVO system, and SPINDLE system (if Fanuc spindle is used)
The dedicated addresses are listed in the tables that follow. This information is typically given in
the Maintenance manual for the control, in addition to the Connection (Function) Manual. The
following examples are from the 0i-D Connection Manual (FUNCTION) B-64303EN-1.
The information is given in more than one way. There are 3 lists of the G & F addresses, the first
is a LIST (organized) by FUNCTION, the second is a LIST (organized) by SYMBOL, and the
third is a LIST (organized) by ADDRESS. The same information is given in each of the 3 lists;
they are just organized differently to make it easier to find what you are looking for. These lists
also point out whether the signal is used on a lathe, a mill, or both. The two columns labeled T
and M refer to Turning Center (Lathe) and Mill, these symbols indicate the signals usage.
The list organized by function is arranged alphabetically and details what signals are used for a
particular function. For example, the auxiliary function lock has two addresses that work with it,
G5.6 and F4.4. As long as you know a particular function of interest, you can use this list to be
aware of all the signals that work with it.
74
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
Each of the G and F addresses has an assigned mnemonic called the symbol. The list organized
by symbol is arranged alphabetically by the first letter of these assigned mnemonics. If you know
the SYMBOL for a signal, this is a good place to find its description.
The first group of signals has an asterisk in front of the symbol name. The asterisk means the
signal is active when status is 0 on the PMCDGN status screen. A status of 1 is its’ normal
state. These are called ACTIVE LOW signals. For example, the emergency stop signals are
addresses X8.4 and G8.4.
The next two groups are axis direction specific – positive and negative direction. +LM1 is the first
axis positive stroke limit and –LM1 is the first axis negative stroke limit.
Following the active low and direction-specific signals come all the symbols that start with an
actual letter. As you can see below, ABTSP2 is the 2nd spindle unexpected disturbance torque
detection signal and is assigned address F90.2.
The final list is organized by G and F address. These pages give you addresses in sequential
order, so if you only know the address this is the better place to look. This is especially helpful
when you are looking at the ladder, see a G or F address, and are curious what it does.
FFA-091012/02
75
List by Function PMC Maintenance – 3xi & 0i-D
For multi-path controls, add 1000 to the PMC address for path 2, add 2000 for path 3, etc.
For example, G058.1 is the External read start signal for Path 1, G1058.1 is the External
read start signal for Path 2, G2058.1 is for Path 3, and so on.
The following information comes from the Connection (Function) manual, the ‘reference item’
column is referring to chapters in that manual.
7.2.1. List by Function
This table lists the PMC addresses by what FUNCTION they are involved with.
76
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
77
List by Function PMC Maintenance – 3xi & 0i-D
78
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
79
List by Function PMC Maintenance – 3xi & 0i-D
80
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
81
List by Function PMC Maintenance – 3xi & 0i-D
82
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
83
List by Function PMC Maintenance – 3xi & 0i-D
84
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
85
List by Function PMC Maintenance – 3xi & 0i-D
86
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
87
List by Function PMC Maintenance – 3xi & 0i-D
88
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
89
List by Function PMC Maintenance – 3xi & 0i-D
90
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
91
List by Function PMC Maintenance – 3xi & 0i-D
92
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
93
List by Function PMC Maintenance – 3xi & 0i-D
94
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
95
List by Function PMC Maintenance – 3xi & 0i-D
96
PMC Maintenance – 3xi & 0i-D List by Function
FFA-091012/02
97
List by Symbol PMC Maintenance – 3xi & 0i-D
7.2.2. List by Symbol
This table lists the PMC G and F addresses by SYMBOL name in alphabetical order.
The first part of the table has the asterisk signals, which are all active low signals. The next part of
the table is the plus/minus signals, which all are related to servo function.
98
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
99
List by Symbol PMC Maintenance – 3xi & 0i-D
100
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
101
List by Symbol PMC Maintenance – 3xi & 0i-D
102
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
103
List by Symbol PMC Maintenance – 3xi & 0i-D
104
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
105
List by Symbol PMC Maintenance – 3xi & 0i-D
106
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
107
List by Symbol PMC Maintenance – 3xi & 0i-D
108
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
109
List by Symbol PMC Maintenance – 3xi & 0i-D
110
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
111
List by Symbol PMC Maintenance – 3xi & 0i-D
112
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
113
List by Symbol PMC Maintenance – 3xi & 0i-D
114
PMC Maintenance – 3xi & 0i-D List by Symbol
FFA-091012/02
115
List by Address PMC Maintenance – 3xi & 0i-D
7.2.3. List by Address
116
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
117
List by Address PMC Maintenance – 3xi & 0i-D
118
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
119
List by Address PMC Maintenance – 3xi & 0i-D
120
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
121
List by Address PMC Maintenance – 3xi & 0i-D
122
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
123
List by Address PMC Maintenance – 3xi & 0i-D
124
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
125
List by Address PMC Maintenance – 3xi & 0i-D
126
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
127
List by Address PMC Maintenance – 3xi & 0i-D
128
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
129
List by Address PMC Maintenance – 3xi & 0i-D
130
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
131
List by Address PMC Maintenance – 3xi & 0i-D
132
PMC Maintenance – 3xi & 0i-D List by Address
FFA-091012/02
133
List by Address PMC Maintenance – 3xi & 0i-D
134
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.4. Active Low Signals
As shown in the previous pages, the signals with asterisks in their SYMBOL name are active low
signals. These signals are considered to be operation critical signals and are designed active low to
provide enhanced machine safety. The EMG-STOP signal X8.4 is an active low signal. It is this way so
that in case the wiring from the switch should become open it will cause the machine to stop and
present an emergency stop alarm. If the signal was not active low, you would not realize the wiring was
open until you pressed the EMG button in and found it didn’t work. This may be the worst time to find
out the wiring is broken. This section reviews the commonly used active low signals.
7.2.4.1. *+L1~*+L8 - G114/G116 - Hard Over travel
The hard over travel limits are physical switches at the end of travel for each axis. The switches are
wired to X inputs on the I/O module. The machine builder decides which X address will be used. The
switches are usually wired normally closed for safety, so the input is active (1) until the switch is
pressed (0).
The ladder logic for this physical wiring may look like this …
X5.6 G114.0
X5.7 G116.0
Because the physical switches are wired normally closed, as long as the switch is not pressed, the X5.6
input is active (1) and the coil G114.0 is ON. When the machine table moves over and touches the
switch, the X5.6 input becomes inactive (0) and the coil G114.0 goes OFF, causing alarm 506 / 507 on
the message screen.
CNC Alarms OT 0506 + OVERTRAVEL (HARD)
OT 0507 - OVERTRAVEL (HARD)
NOTE1 : On machines with ABSOLUTE type motor pulse coders, the overtravel signals may not be
used. Software overtravel limits are employed.
NOTE2 : The hard over travel function is ignored if parameter 3004 bit 5 (OTH) is 1.
FFA-091012/02
135
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.4.2. *ESP X8.4/G8.4 - Emergency Stop
The emergency stop signal stops the machine immediately. Address X8.4 is used for the MACHINE to
tell the CNC there is an emergency. Address G8.4 is used for the PMC to tell the CNC there is an
emergency. Address X8.4 may appear in the PMC, but whether it is or not, the CNC will still monitor the
address. More information about emergency stop can be found in the previous chapter.
136
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
3) Turn the FEEDRATE rotary switch to 10%, on the machine operator panel.
The status of G12 bits should change.
The bit value of bit 1 = 2 and the bit value of bit 3 = 8: 2+8=10%
Address G13 is a secondary feedrate override and does not necessarily change with changes in
G12. It only changes on this simulator because it is written into the ladder this way.
4) What will the status of the G12 bits be when 50% is commanded?
NOTE: The feedrate override switch may be disabled by an M-Code, check the M-code list
provided by the machine builder to see if your machine has this function.
4) Press the button, on the MDI keypad to view the POSITION screen.
Notice the actual feedrate changes as you rotate the FEEDRATE switch.
7.2.4.8. *SP/SPL G8.5/F0.4 - Feed Hold/Cycle Stop
The feed hold signal will stop the G-code program temporarily. It may stop immediately or at the end of
the current command block, depending on the current G-code it is processing. The physical switch is
typically wired normally closed. G8.5 must be in its normal state (1) for the CYCLE START button to
work.
The signal F0.4 (SPL) is the feed hold confirmation from CNC to PMC.
138
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.5. Axis Specific Signals + -
The next group of addresses on the List of PMC Addresses is the + - group. These signals are related
to the servo axis directions + and -
NOTE: When parameter 3003 bit 3 (DIT) is set to 1, the manual interlock addresses are disabled.
FFA-091012/02
139
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.6. Commonly Used G and F Addresses
As you can see in the table of signals, there is a command (G) and confirmation (F) for almost every
function the CNC can perform. Many of them are not used by the average machine. This section
reviews the more commonly used G and F addresses.
The CONNECTION (FUNCTION) manual has details on all of the CNC functions and how the
dedicated signals operate.
on the screen. This bit does not turn on for an Operator Message, only when ALM is flashing
in the status display at the bottom of the screen.
140
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.6.3. ALMA F45.0 - Spindle Alarm
The spindle is a stand-alone controller. It processes the commands (G) received from the PMC and
returns confirmation (F). It also has internal alarm detection circuits. Any time the SPINDLE detects
an alarm condition, it turns ON the ALMA signal (F45.0), to tell the PMC something is wrong. The
spindle then displays the alarm code on the 7 segment display, located on the front of the spindle
module.
There are separate alarm addresses for the second (ALMB-F49.0) and third (ALMC-F168.0) spindles, if
the machine is equipped with more than one spindle.
2) Leave the power on; locate the BATTERY on the CNC control and unplug it.
FFA-091012/02
141
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
No alarm message appears but the word BAT flashes on the CNC status line.
The CNC uses a lithium battery that does not recharge. The 3xi controls use a SANYO battery, the
Fanuc part number is A98L-0031-0012. The 0i-D uses a battery cartridge, part number A98L-0031-
0026.
3) Plug the BATTERY back into the CNC, then press to clear the alarm.
142
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.6.7. DTCH1/MDTCH1 G124/F110 - Controlled Axis Detach
This signal allows removal of a servo axis without causing alarm on the CNC. The most common use is
for a removable rotary table on a mill, or in the case of C-axis/spindle control on a lathe. In address
G124, bit 0 corresponds to the 1st axis, bit 1 = 2nd axis, and so on. The address F110 is the CNC
confirmation telling the PMC it knows an axis is detached.
FFA-091012/02
143
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.6.10. HROV G96.7 - Rapid Override 1% Select
The rapid override command is typically controlled by address G14 bit 0 and 1. Using the G14 address
the only choices for override are F0%, 25%, 50%, or 100%. If this address (G96.7) is turned ON (1)
then G96 bit 0 through bit 6 can be used to command a rapid override in 1% increments, from 1% to
100%.
The CNC has 3 handle inputs, these addresses are for the first, the second input uses HS2A~HS2D
(G18.4~G18.7), and the third uses HS3A~HS3D (G19.0~G19.3)
144
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.6.13. IGNVRY G66.0 - Ignore VRDY OFF Alarm All Axes
This signal ignores the servo alarm SV0401 V READY OFF. This occurs whenever an alarm condition
is detected by the servo drive unit.
MCON
VRDY
In normal operation, when the CNC boots up, it sends a signal called MCON to the servo drive. The
servo drive then checks itself internally and if no alarm conditions exist, it returns a signal called
VRDY. This tells the CNC that the drive (velocity unit) is ready.
If at any time during the servo operation, an alarm is detected by the servo drive, it turns off the VRDY
signal to the CNC. This indicates to the CNC that there is a problem with the drive and the CNC stops,
and alarm SV0401 V READY OFF is presented.
FFA-091012/02
145
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.6.17. KEY1~KEY4 G46.3~G46.6 - Memory Protect Key
The KEY addresses protect data stored in the CNC memory. They are typically all wired to the same
physical input, which is connected to the key switch on the operator panel. When the bit is 1 (ON), the
memory area is not protected.
Parameter 3290 also affects the operation of these signals. If 3290 bit 7 is 0, they are all valid. If 3290
bit 7 is 1, only KEY1 (G46.3) is valid, the other memory areas are not protected.
The mode selections sometimes go by different names on the operator’s panel; this is dependent on
the machine builder. For example, the FANUC panel has AUTO on the Memory mode switch; on the
status line it will say MEM.
146
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
Note: For RAPID mode, put the control into mode and press the button.
Note2: Handle mode is an option – it has the same bit pattern as Incremental mode; if
the option is present, the screen displays HND, if not it displays INC.
FFA-091012/02
147
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.6.21. MI1~MI8 G106/F108 - Mirror Image Control
This function will cause the programmed positions in the specified axis to be inverted. If the program
line is G01 X10.0 F2000 and X axis mirror image is ON, the axis will move to position X-10.0. This is
especially useful when symmetrical parts must be machined, as in the automotive industry where a left
and right part must be created for each side of the car. Mirror image control can be enabled in 3 ways.
When mirror image is enabled by the PMC (G106) or by manual entry on the SETTING screen,
address F108 reflects the status. If it is turned on by G-Code (G51.1/G68) then F108 does not reflect
this status. In address G106, bit 0 corresponds to the 1st axis, bit 1 = 2nd axis, and so on.
1) On the PMC STATUS screen, search for address G106. Notice the bit status.
148
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
press .
FFA-091012/02
149
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
The ABSOLUTE position display will change to X10.000; however the MACHINE position display will
display X-10.000. This is because the actual machine movement was negative.
150
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
Watch the status of F102 and F106 bits as the program runs.
FFA-091012/02
151
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
The CNC will execute 1 line of the program each time you press CYCLE START.
The cycle start function will not work unless the FEED HOLD signal G8.5 is ON (1).
In address G126, bit 0 corresponds to the 1st axis (X), bit 1 = 2nd axis (Y), bit 2 = 3rd axis (Z) and so on.
152
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
7.2.6.32. UI00~UI15 G54~G55 - User Input Custom Macro
The macro user inputs are used to make decisions in G-Code programs. The status of these addresses
is read through macro variables #1000~#1015.
These variables are used to read PHYSICAL INPUTS from the machine side. For example, a small
proximity switch may be wired to the physical input, to sense if a part is loaded on a tombstone. The
status of that switch can then be READ through a system variable. Because they use physical inputs,
these signals are processed through the PMC ladder logic. The machine builder writes the ladder logic
program, and decides which X addresses in the PMC will be used to activate these signals.
Each of these system variables are assigned to specific G addresses by Fanuc. In the ladder logic,
these G addresses are activated by physical inputs (X address) - generally whatever the machine
builder wants.
A simplified example of the ladder logic the machine builder may write is shown below.
FFA-091012/02
153
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
7.2.6.33. UO00~UO15 F54~F55 - User Output Custom Macro
These variables are used to write PHYSICAL OUPUTS to the machine side. For example, during tool
change, a door may need to be opened to allow the spindle access to the tool magazine. The system
variable can be WRITTEN to 1, which activates the output to the door motor. Because they use
physical outputs, these signals are processed through the PMC ladder logic. The machine builder
writes the ladder logic program, and decides which Y addresses in the PMC will be activated by these
signals.
In the macro program, the following statement would cause #1100 to be set to 1: #1100 = 1;
When #1100 changes from 0 to 1, this change is reflected in PMC address F54.0.
A simplified example of the ladder logic the machine builder writes is shown below.
When F54.0 activates, it conducts to the coil Y14.0 (the light for the Aux1 button on the simulator);
causing it to send +24VDC from the physical output to the machine side, which would typically activate
a relay or solenoid.
#1100 = 0; - This command will cause the output Y14.0 to turn OFF.
154
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
(1) UI/UO G54/F54 - Using Macro Inputs and Outputs
In this example we will write a small program that will use a macro input and output. This will
demonstrate how decisions can be made in a G-code program.
Turn on Keep Relay 3.6: (we will do it in a way we haven’t previously shown you)
6) Press the soft key and then press the soft key.
The program is now created; the program number should appear highlighted on the top left corner of
the program window …
FFA-091012/02
155
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
10) Press the and then buttons on the MDI key pad; now the program can be
entered.
11) Enter the rest of the program, as shown below:
12) Press the button and confirm the cursor is located at the top of the program.
The program will loop between lines N20 and N70 as long as #1002 is equal to 0. #1002 is assigned to
G54.2, which is tied to a physical input in the ladder program. When #1002 changes to 1, the program
will jump to line N80.
In this scenario #1102 could be an output from the CNC to tell the robot to load a part, and the input
#1002 could be a robot loader output to tell the CNC the part has been loaded.
What button do you need to press on the operator panel to get the program to stop looping?
156
PMC Maintenance – 3xi & 0i-D Dedicated G&F Addresses
The second home position is often used as the tool change position. Parameter 1241 determines
where this position is located. The parameter is set in the measurement system of the particular axis
(mm, inch, degrees) and assumes 3 or 4 decimal places. For example a setting of 234567 would be
234.567 millimeters or degrees from the G28 reference point, or 23.4567 inches.
FFA-091012/02
157
Dedicated G&F Addresses PMC Maintenance – 3xi & 0i-D
8. Exercise 4 – Dedicated Addresses
1) There are 2 dedicated addresses for EMG-STOP, X8.4 and G8.4.
What is the difference between the two?
3) Which PMC signal will prohibit axis movement, but the absolute position display will still
change?
4) Which PMC signal will prohibit axis movement, and the position displays will not change?
5) Which PMC signal will cause the machine to move to X-10.0 when the program command
reads G0 X10.?
All of the following problems occur, solve them in any order you wish:
158
PMC Maintenance – 3xi & 0i-D Software Operator Panel
9. Software Operator Panel
The software operator panel is displayed on the CNC screen. Typically it is used by Fanuc for control
testing and verification. There are two pages of mode selection, feed override and other functions, and
two pages of general purpose switches that may be labeled and used by machine builder to add
functions that are not on the physical operator panel. A machine builder could use this feature as the
only operator panel to lower costs but there is a trade-off of less functionality than a physical panel.
The software operator panel appears. Each of the functions on this screen has a dedicated F address.
FFA-091012/02
159
Software Operator Panel PMC Maintenance – 3xi & 0i-D
9.1. Mode Selection MDO1~MDO4 – F73.0~F73.2
The mode is the first selection displayed at the top of the window. Obviously it wouldn’t be good
practice to have this mode select and the physical operator panel mode select work at the same time;
the ladder is usually written to use one or the other. These F addresses will be used to activate the
standard mode select G addresses in G43. Notice the lack of a couple modes.
160
PMC Maintenance – 3xi & 0i-D Software Operator Panel
9.4. Rapid Override ROV1O~ROV2O – F76.4~F76.5
The rapid override signal will allow the operator to slow the rapid traverse feed rate. These two
addresses count in a binary pattern from 0 to 3, to select one of the four settings F0, 25%, 50%, or
100%. The F0 setting amount is determined by parameter number 1421, which is in
millimeters/inches/degrees per minute. These signal addresses are only used if address G96.7 (HROV)
is OFF (0). These F addresses will be used to activate the standard rapid override G addresses
G14.0~G14.1.
These F addresses will be used to activate the standard jog override G addresses G10~G11.
F75.2 (BDTO)
F75.3 (SBKO)
These addresses would be tied into
F75.4 (MLKO)
the corresponding G addresses for
F75.5 (DRNO)
the listed functions.
F75.6 (KEYO)
F75.7 (SPO)
FFA-091012/02
161
Software Operator Panel PMC Maintenance – 3xi & 0i-D
9.8. General Purpose Switches
There are 16 general purpose switches that can be labeled anything you want. This is where the
machine builder may add functions not normally found on the physical operator panel.
F72.0 (OUT0)
F72.1 (OUT1)
F72.2 (OUT2)
F72.3 (OUT3)
F72.4 (OUT4)
F72.5 (OUT5)
F72.6 (OUT6)
F72.7 (OUT7)
The label names are set in parameters 7220–7299 (switches 1-10) and 7352–7399 (switches 11-16).
Each of these parameters sets one letter of the label name; a number that corresponds with a letter is
entered in the parameter. This number is an ASCII character code.
Search for parameter 7260 then set the parameters as shown below…
The ASCII value of the letters you want to display are set in the parameter.
162
PMC Maintenance – 3xi & 0i-D Software Operator Panel
9.9. ASCII Code Chart
A 65 Q 81 6 54 , 44
B 66 R 82 7 55 - 45
C 67 S 83 8 56 . 46
D 68 T 84 9 57 / 47
E 69 U 85 32 : 58
F 70 V 86 ! 33 ; 59
G 71 W 87 “ 34 < 60
H 72 X 88 # 35 = 61
I 73 Y 89 $ 36 > 62
J 74 Z 90 % 37 ? 63
K 75 0 48 & 38 @ 64
L 76 1 49 ‘ 39 [ 91
M 77 2 50 ( 40 92
N 78 3 51 ) 41 ] 93
O 79 4 52 * 42 ^ 94
P 80 5 53 + 43 _ 95
3) Then press the button on the MDI key pad to jog the X axis.
FFA-091012/02
163
Number Systems PMC Maintenance – 3xi & 0i-D
10. Number Systems
There are several different types of numbers, from different number systems, used in the PMC.
The decimal number system is what we humans learn as children – 1, 2, 3, etc. Computers can
use binary, hexadecimal, even binary coded decimal (BCD) numbers. Binary consists of 1s and
0s, hexadecimal uses a combination of digits 0-9 as well as letters A-F, and BCD uses 1s and 0s
like binary but in a different manner. We discuss each in this section.
10.1. Binary
In most instances in the Fanuc control, we are only working with an 8-bit binary number –
10110101 for example. To convert a binary number to decimal, we have to assign a value, or
weight, to each bit. Starting with the right-most bit (bit zero) and continuing to the left-most bit (bit
seven), each bit has a higher and higher value. This illustrates what the value is:
When we are converting a binary number to a decimal number, we add up the decimal values of
only the bits that are set to 1.
VALUE 128 64 32 16 8 4 2 1
1 0 1 1 0 1 0 1
BIT# 7 6 5 4 3 2 1 0
128 + 32 + 16 + 4 + 1 = 181
164
PMC Maintenance – 3xi & 0i-D Number Systems
10.2. Hexadecimal (Hex)
Hexadecimal looks very similar to our decimal number system but it adds some letters to the mix.
Decimal is considered a base 10 system, binary is a base 2 system – decimal uses 10 digits,
binary uses two. Hexadecimal is a base 15 system – it uses 15 digits; they are 0-9 and the letters
A-F.
The conversion of decimal to hexadecimal is as follows:
Dec Hex Dec Hex Dec Hex
0 0 6 6 12 C
1 1 7 7 13 D
2 2 8 8 14 E
3 3 9 9 15 F
4 4 10 A
5 5 11 B
Ordinarily, we have to convert an 8-bit binary number to a hexadecimal number. The conversion
is accomplished by splitting the 8-bit number into two 4-bit numbers and first converting to
decimal and then finally to hex.
1) Split your 8-bit binary number into two 4-bit binary numbers:
1 0 1 1 0 1 0 1
1 0 1 1 0 1 0 1
2) Convert the two 4-bit binary numbers into two decimal numbers:
VALUE 8 4 2 1 8 4 2 1
1 0 1 1 0 1 0 1
8 + 2 + 1 = 11 4+1=5
11 decimal 5 decimal
= =
B hexadecimal 5 hexadecimal
FFA-091012/02
165
Number Systems PMC Maintenance – 3xi & 0i-D
1 0 1 1 0 1 0 1
=
B5
VALUE 128 64 32 16 8 4 2 1
0 0 1 1 0 1 0 1
BIT# 7 6 5 4 3 2 1 0
VALUE 8 4 2 1 8 4 2 1
0 1 0 1 0 0 1 1
4+1=5 2+1=3
Therefore, 00110101 in binary is 01010011 in BCD. As you can see, it’s very important to know
what number system is being used when looking at a number.
166
PMC Maintenance – 3xi & 0i-D Functional Instructions
11. Functional Instructions
The functional instructions perform complex operations. Each functional instruction is a
subroutine; therefore each one is assigned a SUB number. The more advanced the PMC is, the
more functional instructions that are available.
FFA-091012/02
167
Functional Instructions PMC Maintenance – 3xi & 0i-D
The above list of functional instructions is not the complete list, there are a couple-hundred more;
refer to the following PMC PROGRAMMING MANUALs to find complete information on the
subroutines available for your specific PMC type:
168
PMC Maintenance – 3xi & 0i-D Functional Instructions
st
11.1. SUB1 – END1 Ladder 1 Level End
The 1st level is the high priority processing section. This section of ladder is guaranteed to be
completely processed every 8 milliseconds (or 4, depending on the control being a 3xi Series and
PRM 11930=4). Signals that are time critical are typically inserted in this section - things like
emergency stop and hard over travel, signals that may have a negative affect if their processing is
delayed. From NET00001, the ladder beginning, to this function block SUB1 is the 1st ladder level
processing.
The remaining time, after the 1st level is processed, is used to process the second level.
Therefore it is desirable to make the 1st level as small as possible. If it takes 2ms to process level
1 that leaves 6ms to process level 2; at the end of the total 8ms the program must return to level 1
to process it again.
FFA-091012/02
169
Functional Instructions PMC Maintenance – 3xi & 0i-D
nd
11.2. SUB2 – END2 Ladder 2 Level End
nd
The 2 level is the medium processing section. This section of ladder is processed during the
time remaining after level 1 processing has completed. Signals that are NOT time critical are
typically inserted in this section, things like operator panel buttons and signal tower outputs. From
the SUB1 END1 function block to the SUB2 END2 function block is all level 2 processing.
The time to process level 2 is not guaranteed. For example let’s say it takes 10 ms to process all
of level 2. Level 1 gets processed first, this takes 2ms, leaving 6ms until level 1 must be
processed again. Level 2 begins processing, and uses the remaining 6ms of time. At this point
there is still 4ms of level 2 that has not been processed.
The system returns to level 1 to process it again completely. When level 1 is completed this time,
the system returns to where it left off in level 2 and processes the remaining 4ms of ladder logic.
At the end of level 2, there is 2ms remaining. If the ladder has a 3rd level, the remaining 2ms is
used to process it. If not the system idles for 2ms then returns to level 1.
Because of this processing priority, a contact address in level 1 may display a different status
than the same contact address in level 2, simply because during the processing delay of level
2 the contact had changed status.
170
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.4. SUB3 – TMR User Adjustable Timer
Timers are used as a delay in the ladder. When the contacts before the timer function block
conduct, the timer begins timing. When the timer reaches its’ preset value it turns on the output
coil to the right. If the contact before the timer stops conducting, the timer resets back to zero.
1) From the LADDER screen, press the soft key on the LCD menu.
By default, timers 1-8 are set in increments of 48ms and timers 9 and up are set in increments of
8ms. If you enter a value into timers 1-8 that is not equally divisible by 48, the number you
entered will be rounded down to a value that is; for timers 9 and up it will round down to
something divisible by 8.
Notice the ACC column – this indicates the ACCuracy of the timer; the timers can be modified
to accept increments of 1ms, 10ms, 100ms, 1 second, or 1 minute.
FFA-091012/02
171
Functional Instructions PMC Maintenance – 3xi & 0i-D
10) With timer 15 highlighted, press the various accuracy soft keys to see how the value in TMR
15 is affected.
11) Change the value of timer 15, return to the LADDER display and see the change.
Timer type (and number) Max. setting time PMC type # of SUB3 timers
48ms (1 to 8) (initial value) 1572.8 seconds 3xi Memory A 40
8ms (9 & up) (initial value) 262.1 seconds 3xi Memory B 250
1ms (1 & up) 32.7 seconds 3xi Memory C 500
10ms (1 & up) 327.7 seconds 3xi Memory D 500
100ms (1 & up) 54.6 minutes 0i Model D 250
1 sec (1 & up) 546 minutes 0i PMC/L 40
1 min (1 & up) 546 hours Dual Check Safety 40
A 100
B 500
C 1000
D 1500
DCS 100
2) Enter on the MDI keypad, and then press the soft key.
3) Press the button on the operator panel, and watch the timer count.
When the count reaches 1.000, the R200.1 coil will turn ON.
172
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.6. SUB54 - TMRC Timer
Timers are used as a delay in the ladder. When the contacts before the timer function block
conduct, the timer begins timing. When the timer reaches its preset value it turns on the output
coil to the right. If the contact before the timer stops conducting, the timer resets back to zero.
Timer C is defined by the ladder developer. They may make it fixed or variable depending on its
use. The place where the timer will count is also decided by the developer. This means the
quantity of these timers is limited only by the number of registers that can be used to count.
Timer increments
0 = 8 millisecond
1 = 48 millisecond Register used to Register to hold
2 = 1 second perform the count preset value
3 = 10 second
4 = 1 minute In this example, data register D8 holds the value to count up
to. Register R46 is the place where the timer will actually
5 = 1 millisecond
keep track of the time. The timer increment of 2 means this
6 = 10 millisecond
timer is using seconds. Since D8 is set to a value of 10, 10
7 = 100 millisecond
seconds after X14.2 conducts the coil R200.3 will turn ON.
FFA-091012/02
173
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.7. SUB 77 – TMRBF Instant-On, Delay-Off Timer
The SUB 77 works in reverse of the SUB 24. When the contact(s) before the function block
conduct, the coil turns on. If a contact before the timer stops conducting, the timer begins timing.
When the timer reaches its preset value it turns off the output coil to the right. If the contact(s)
before the timer start conducting again, the timer resets and the coil stays/turns on. The delay
time of TMRBF is set in the functional instruction.
A 100
Timer number 1 ~ Fixed setting value
depends on PMC type in milliseconds B 500
C 1000
D 1500
0i-D 500
PMC/L 100
DCS 100
2) Enter on the MDI keypad, and then press the soft key.
3) Press and release the button on the operator panel, and watch the timer count.
When the count reaches 1.000, the R287.2 coil will turn OFF.
174
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.8. SUB 4 – DEC Decode
The decode function turns ON its output when the decode address value and the two digit BCD
value are equal. This instruction is mainly used to decode M-code or T-code values read in the G-
code program.
In the example above, the ADDRESS TO DECODE is F10. This happens to be where the CNC
puts M-codes when it reads them in a G-code program. The value shown in blue is the
hexadecimal equivalent of the value in the address to decode.
The BCD CODE TO CHECK FOR is 07, when F10 = 07 the output R200.4 turns ON. Notice the
block is only displaying a 7, not 07 – leading zeros are not displayed.
The Mask digits decide which digits to look at when checking F10. Since the mask digits are
11, the data at address F10 must be 07 for the output to turn ON. If the mask digits were 01, the
output would turn on if the data at address F10 was 07, 17, 27, 37 etc. If the mask digits were 10,
the output would turn on if the data at address F10 was 00, 01, 02, 03, 04, etc. The mask digits
decide which digit positions must match in the address to decode and the code to check for.
6) Press the button on the operator panel, and watch the decoder operate.
Notice the coil R200.4 turns ON. Try M17, then notice the coil is not ON.
FFA-091012/02
175
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.9. SUB – 25 DECB Binary Decoding
The purpose of the SUB25 DECB function block is to output a single bit, based on the binary
value that is input. When the M-codes are passed from the CNC to the PMC, the CNC puts the
code into address F10, then turns on the M-code flag F7.0. The PMC then has to decode F10 to
determine which M-code it needs to process. This is usually performed using the SUB25
DECODE-B function block.
2) Enter on the MDI keypad, and then press the soft key.
3) If the SUB25 that you found does not have address F0010 displayed in it, continue to
Typically the addresses in the ladder are 8 bits, each group of 8 bits is called a byte.
The number of output addresses used, determines how many M-codes this function block
can decode. R300 has 8 bits, 6 output addresses are assigned, 6x8=48.
This function block decodes 48 M-Codes, from M00 to M47.
M00 will turn ON bit 0 of address R300
The remaining consecutive M-codes will turn on the next bits of R300.
176
PMC Maintenance – 3xi & 0i-D Functional Instructions
1) Setup the TRACE function, to trace all bits in PMC Addresses R300, R301, and R302.
(You can just enter R300 on Address line 1 and it will fill in all 8 bits, same for the other
addresses.)
2) the trace.
11) Return to the PMC TRACE screen, the trace, then use to view
the result.
FFA-091012/02
177
Functional Instructions PMC Maintenance – 3xi & 0i-D
2) Enter on the MDI keypad, and then press the soft key.
3) Press the button on the operator panel, and watch the timer count.
Watch the count change each time you press the button.
178
PMC Maintenance – 3xi & 0i-D Functional Instructions
Notice that the counter counts when you press the button.
7) Change the value in the PRESET column, return to the LADDER display to see the change.
The current count is stored at address C5000 as a 2 byte word. Counter 1 corresponds to C5000;
counter 2 corresponds to C5002, etc.
Counter number
PMC type # of cntrs
A 20
B 100
C 200
D 300
0i-D 100
FFA-091012/02
179
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.12. SUB 55 - CTRC Counter C
Counter C is a developer defined counter; this means the ladder developer decides where the
preset and current count values will be stored. Otherwise it acts as a regular SUB 5 counter and
is used to count events. The counter acts as a ring counter, when the counter reaches its
maximum count the output coil R200.6 turns ON. The next count action will change the count
back to the start count and turn OFF the output coil.
PMC type # of cntrs
A 20
B 100
The PRESET register is a 16 bit register. In the example above D0000 is used. Since D
registers are 8 bits, 2 registers will be used by the counter D0000 and D0001.
The CURRENT register is a 32 bit register. In the example above R0220 is used. Since R
registers are 8 bits, 4 registers will be used by the counter R0220~R0223. If an R register is
used the value is cleared to 0 at power on. If a D register is used, it will retain its value at
power off.
2) Enter on the MDI keypad, and then press the soft key.
3) Press the button on the operator panel, and watch the timer count.
Watch the count change each time you press the button.
5) Press the soft key TWICE to return to the PMC selection soft keys.
180
PMC Maintenance – 3xi & 0i-D Functional Instructions
Type in .
FFA-091012/02
181
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.13. SUB 32 – CMPB Comparison Between Binary Data
The CMPB function compares binary data. When the input activated (X14.0), the result of the
comparison is output to address R9000. The values displayed in this block are shown in decimal.
Format Specification
1001
0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Data to be compared TO
This function block outputs its results to R9000, as do many other function blocks.
In order to ensure that the data that is contained in R9000 actually pertains to this particular
function block, R9000 must appear next in the ladder before any other function block that might
use the same address and overwrite it.
BIT# 7 6 5 4 3 2 1 0
R9000 0 0 0 0 0 0 0 1
Bit 5 = Overflow, the
result of the comparison is
undefined.
Bit 1 = Negative, the input
date is less than the
compared data.
Bit 0 = Equal, the result of
the comparison is equal.
182
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.14. SUB 6 – ROT Rotation Control
The rotation control function block is typically used to control a tool changer or turret but could
also be used for a PMC controlled rotary axis. This function just performs the calculation; other
ladder functions will be used to actually rotate the control axis. It can perform 3 functions …
To select rotation direction for shortest path
Calculate the number of steps between current position and the goal position.
Calculate either the position or number of steps to one position before the goal.
The data processed by this function is in BCD format. The ROTB instruction is binary.
Number of Current
positions position
Desired
position
Calculated
result
FFA-091012/02
183
Functional Instructions PMC Maintenance – 3xi & 0i-D
2) Enter on the MDI keypad, and then press the soft key.
8) Return to the LADDER screen, notice F26 holds the T-code you entered.
9) Press the button on the operator panel, and watch calculation occur.
184
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.15. SUB 26 – ROTB Rotation Control Binary
The rotate binary function block used the same as the ROT function block. The primary difference
is that the NUMBER OF POSITIONS can be specified in an address, instead of being fixed in
the function block. Also the calculation addresses are treated as BINARY instead of BCD.
This function block is typically used to control a tool changer or turret but could also be used for a
PMC controlled rotary axis. This function just performs the calculation; other ladder functions will
be used to actually rotate the control axis. It can perform 3 functions …
Format:
1 – 8 bits Number of
2- 16 bits positions
4 – 32 bits Current
position
Desired
position
Calculated
result
FFA-091012/02
185
Functional Instructions PMC Maintenance – 3xi & 0i-D
2) Enter on the MDI keypad, and then press the soft key.
T: Enter , press .
186
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.16. SUB 8 – MOVE Logical Product Transfer
The MOVE command allows you to COPY data bits from one address to another. This allows
you to check to see if specific bits are turned ON. A bit mask is provided so you can select the
bits you want to check. The name implies that the data will be moved, but it is actually copied, and
remains in the original address after the command executes.
This function block doesn’t display the leading zeros in the bit mask – so for the bit 7 ~ 4 mask, it
looks like 1 but it’s really 0001.
In this example bits 4~0 are masked, so only those bits that are 1 in the mask data transfer to
address R90.
BIT# 7 6 5 4 3 2 1 0
X006 1 1 1 0 1 0 0 0 =E8
MASK 0 0 0 1 1 1 1 1 =1F
R090 0 0 0 0 1 0 0 0 =08
X6 bits 0 ~ 4 are the FEEDRATE OVERRIDE switch on the operator panel, and bits 6 & 7 are
part of the SPINDLE SPEED OVERRIDE switch.
Only information from the FEEDRATE OVERRIDE switch will be moved into R090.
INPUT A
OUTPUT 0 0 0
INPUT B
1 0 0
0 1 0
FFA-091012/02 1 1 1
187
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.17. SUB 28 – MOVOR Data Transfer After Logical Sum
The MOVOR command allows you to SET selected data bits ON in a specific address. As the
name implies the data will be OR’ed, then the result will be moved (copied) to the output address.
Address data is
transferred FROM
Data bits to OR
In this example, address R90 is OR’ed with a hexadecimal 18 and the result is transferred to
address Y16. Notice the bits that are ON in the result address are those that are ON in address
R90, or D30, or both. (Y16 controls lights on the operator panel.)
BIT# 7 6 5 4 3 2 1 0
R90 0 0 0 0 1 1 0 1 =0D
OR 0 0 0 1 1 0 0 0 =18
Y16 0 0 0 1 1 1 0 1 =1D
Also notice the data set in register D30 is in decimal on the PMCPAR screen, even though it is
treated as hexadecimal in the function block.
INPUT A
OUTPUT 0 0 0
INPUT B
1 0 1
0 1 1
1 1 1
188
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.18. SUB 14 – DCNV Data Conversion
This function block converts BINARY into BCD, or BCD into BINARY depending on the status
of the CNV input. Typically BCD is used for human interface, where seven segment displays or
thumbwheels are used. The PMC processes everything in binary, humans use binary coded
decimal.
FFA-091012/02
189
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.19. SUB 31 – DCNVB Extended Data Conversion
This function works the same way as the DCNV except this command allows you to convert 1, 2,
or 4 byte (8, 16, or 32 bit) information and also signed + BCD to binary.
This function block converts BINARY into BCD, or BCD into BINARY depending on the status
of the CNV input. Typically BCD is used for human interface, where seven segment displays or
thumbwheels are used. The PMC processes everything in binary, humans use binary coded
decimal.
Format Specification
1 = 8 bits (byte)
2 = 16 bits (word)
4 = 32 bits (long)
190
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.20. SUB 16 – COIN Coincidence Check
The COIN function compares the input address with the comparison address; if they are equal
(coincide) the output latches ON until the next comparison, which has a not equal result.
Format Specification
0 = input data is a constant Input data to be
1 = input data is address compared
Data to be compared TO
OUTPUT COIL = The result of the coincidence check is reflected in the coil status
0 = Comparison was not equal
1 = Comparison was equal
NOTE : In the example above the comparison data is different. The coil is active because it is an
inverted coil. If the comparison data is equal the inverted coil will turn OFF. This operation would
be opposite with a standard relay coil.
2) Enter on the MDI keypad, and then press the soft key.
T: Enter , press .
8) Press the button on the operator panel. Watch the COIN command function.
FFA-091012/02
191
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.21. SUB 40 – NUMEB Definition of Binary Constants
The SUB 40 function writes a stored binary value to an address or set of addresses. There are
two ways to implement the NUMEB referred to as Basic and Extended. The Basic functionality of
the NUMEB is to write a value to a single 8-bit, 16-bit, or 32-bit area. The Extended functionality
allows for writing a value to a series of 8-bit, 16-bit, or 32-bit areas.
Format Specification
1 = 8 bits (byte) Decimal number that will
2 = 16 bits (word) be written as binary
4 = 32 bits (long)
Address to write to
To use the Extended functionality, the format specification is modified slightly from Basic. By
placing up to two digits in front of the previously described Format Specification of 1, 2, or 4 you
can define a series of addresses that will be written to. 02 through 99 is allowable; if 00 or 01 is
used then the SUB 40 will function as above.
For example, if the Format Specification is 321, 32 consecutive 8-bit addresses will be set to the
value stored on the second line beginning at the address defined in the functional instruction. A
Format Spec. of 994 would write to 99 consecutive 32-bit addresses.
In the example below, the binary equivalent of 2147483647 will be written into (2) 32-bit
addresses starting at Y10 (Y10-13 and Y14-Y17).
192
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.22. SUB 36 – ADDB Binary Addition
Binary addition simply adds the first address to the second address and puts the result into the
third address in the function block. The second address may be a constant value or an address,
as specified in the format specification. If an error occurs in the addition process, the output coil
will turn ON, in these examples R15.0 and R15.1.
Notice with the second SUB 36 block that the format specification appears to be 1 but it is not
displaying the leading 0’s – it is 0001.
Format Specification
1001
Data to be added
together 0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Address where
result will be stored
In the example above, F1.1 is not conducting. There is no coil for F1.1. When will this addition
occur?
Change the value in D15 or D16 and watch the result address data change.
What happens if you change D18?
Address R9000 will also indicate if an error occurs during the addition process.
BIT# 7 6 5 4 3 2 1 0
R9000 0 0 1 0 0 0 0 0
Bit 5 = Overflow, the result Negative Zero
will not fit into result address
FFA-091012/02
193
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.23. SUB 38 – MULB Binary Multiplication
Binary multiplication simply multiplies the first address by the second address and puts the result
into the third address in the function block. The second address may be a constant value or an
address, as specified in the format specification. If an error occurs in the multiplication process,
the output coil will turn ON, in this example A0.6
Format Specification
1001
0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Data to be
multiplied together
Address where
result will be stored
In the example above, R190 will be multiplied by the constant 10, and then the result will be
stored in R191. If the result is too large to fit into R191, alarm A0.6 will occur.
Address R9000 will also indicate if an error occurs during the multiplication process.
BIT# 7 6 5 4 3 2 1 0
R9000 0 0 1 0 0 0 0 0
Bit 5 = Overflow, the result Negative Zero
will not fit into result address
194
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.24. SUB 39 – DIVB Binary Division
Binary division simply divides the first address by the second address and puts the result into the
third address in the function block. The second address may be a constant value or an address,
as specified in the format specification. If an error occurs in the division process, the output coil
will turn ON, in this example A0.6.
Format Specification
1001
0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Data to be divided
Address where
result will be stored
In the example above, R190 will be divided by the constant 2, and then the result will be stored in
R192.
Address R9000 will also indicate if an error occurs during the division process.
BIT# 7 6 5 4 3 2 1 0
R9000 0 0 1 0 0 0 0 0
Bit 5 = Overflow, the result Negative Zero
will not fit into result address
FFA-091012/02
195
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.25. SUB 59 – EOR Logical Exclusive OR
The EOR function can be used to toggle a bit or invert bits. It works like a digital logic gate; if a
SINGLE input is ON between the two inputs, the output is ON, if BOTH inputs are ON or OFF
between the two inputs, then the output is OFF.
INPUT A
OUTPUT 0 0 0 1001
INPUT B
1 0 1
0 1 1 0 = Constant 1 = 8bit
1 1 0 1 = Address 2 = 16 bit
4 = 32 bit
Data to be EOR’ed
Address where
result will be stored
ACT = Activate command, causes exclusive OR to perform
0 = No process is performed
1 = Perform exclusive OR process
The bits from the first address are EXCLUSIVE OR’ed with the bits of the second address and the
result is stored into the third address in the function block. The second address may be a constant
value or an address, as specified in the format specification.
In this example, address R90 is exclusive-OR’ed with decimal 255 and the result is transferred to
address R91. Notice the bits that are EXCLUSIVE to each of the input operators are turned ON in
the result address. The bits that are ON in both the first and second addresses are ignored.
BIT# 7 6 5 4 3 2 1 0
R90 0 0 0 0 1 1 1 1 =0F
255 1 1 1 1 1 1 1 1 =FF
R91 1 1 1 1 0 0 0 0 =F0
196
PMC Maintenance – 3xi & 0i-D Functional Instructions
The result of this operation is the inverse of the value in R90. This is a valuable function
when you are dealing with the *asterisk signals that are active low. The above action shows we
can take an active high signal (R90) and convert it to active low (R91).
2) Enter on the MDI keypad, and then press the soft key.
5) Press the soft key TWICE to return to the PMC selection soft keys.
8) Enter on the MDI keypad, and then press the soft key.
Rotate the feedrate override switch and notice that the bits in R91 are the direct inverse of R90.
FFA-091012/02
197
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.26. SUB 61 – OR
The OR operator can be used to turn ON a bit. It works like a digital logic gate. If either input OR
both inputs are ON the output is ON.
OR LOGIC TABLE
INPUT A INPUT B OUTPUT Format Specification
1001
INPUT A
OUTPUT 0 0 0
INPUT B
1 0 1
0 1 1
1 1 1
0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Data to be OR’ed
Address where
result will be stored
ACT = Activate command, causes OR operation to perform
0 = No process is performed
1 = Perform OR process
BIT# 7 6 5 4 3 2 1 0
In this example address R90 is
OR’ed with decimal 40 (in hex) R90 0 0 0 1 1 0 0 1 =19
and the result is transferred into
address D34.
40 0 0 1 0 1 0 0 0 =28
Notice the bits that are ON in both
the first OR second address are
turned ON in the result address. D34 0 0 1 1 1 0 0 1 =39
The second address ensures at
least that bit will be turned ON.
The result of this operation is to ensure a minimum value is moved to the result address. If no bits
are on in the first address, the minimum value of 40 will be transferred to D34. This is a useful
function when you want to be sure a minimum value is used.
2) Enter on the MDI keypad, and then press the soft key.
198
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.27. SUB 60 – AND
The AND function can be used to check the status of a bit or turn a bit OFF. It works like a
digital logic gate. If both input bits are ON, the output is ON. The same theory is applied to binary
data on a bit by bit basis.
LOGIC TABLE
INPUT A INPUT B OUTPUT Format Specification
1001
INPUT A
OUTPUT 0 0 0
INPUT B
1 0 0
0 1 0
1 1 1
0 = Constant 1 = 8bit
1 = Address 2 = 16 bit
4 = 32 bit
Data to be AND’ed
Address where
result will be stored
ACT = Activate command, causes AND operation to perform
0 = No process is performed
1 = Perform AND process
The bits from the first address are AND’ed with the bits of the second address and the result is
stored into the third address in the function block. The second address may be either a constant
or address, as specified in the format specification.
The result of this operation allows you to select the bits you want to transfer. This is a valuable
function when you want to act upon a specific group of bits while ignoring other bits in the same
address
Notice bits 4~7 of D34 are filtered out of the result in D36.
FFA-091012/02
199
Functional Instructions PMC Maintenance – 3xi & 0i-D
11.28. SUB 62 – NOT
The NOT function is used to invert all of the bits in an address or addresses.
Format Specification
0001
1 = 8bit
2 = 16 bit
4 = 32 bit
Source Address
Inverted Output
200
PMC Maintenance – 3xi & 0i-D Functional Instructions
11.29. Ladder Subroutines
A sub-routine is a machine function that is performed outside of the typical machine operation.
Sub-routines can only be called from the second ladder level. The sub-routine is located after the
END2 function block, then starts at the designated function block SP SUB71, and ends with the
SPE SUB72 function block. A SUB64 END function block is used at the end of the subroutines.
Operations like loading a pallet, loading a workpiece, or performing tool changes are good
candidates to be separated into a sub-routine. Placing this logic in a subroutine reduces the
amount of logic the PMC has to process during its regular scan cycle.
In LEVEL 2 of the ladder a SUB65 CALL function block is what makes the ladder processing
jump to the sub-routine.
Call sub-routine
P0010
When the ACT input turns OFF in level2, the sub-routine stops processing. For this reason the
input must stay active until the sub-routine logic has been satisfied.
FFA-091012/02
201
Machine Alarms PMC Maintenance – 3xi & 0i-D
12. Machine Alarms
The machine builder can create custom alarm messages for their machine. The custom alarms
are generated from the PMC and appear on the MESSAGE display the same as the Fanuc
alarms. The PMC alarms can be distinguished by the alarm number.
0000~7999 FANUC alarms, stop machine operation and can be cleared by RESET on
the CNC MDI key pad or by power OFF/ON. The descriptions can be found
in the yellow FANUC manuals.
EX1000~EX1999 Machine builder alarms, generated in the PMC. They cause the machine
to stop operation and can be cleared by RESET on the CNC MDI key pad.
The descriptions for these faults are in the machine builders OPERATOR
manual.
No.2000~No.2999 Machine builder messages. These do not stop machine operation when
they occur. The message appears and the machine continues to run. The
descriptions for these faults are found in the machine builders OPERATOR
manual. Messages numbered 2100~2999 display without a number.
To view the alarm screen press the button on the MDI key pad.
Parameter 3111 bit 7 determines if the CNC will change to this screen automatically when an
alarm is present.
202
PMC Maintenance – 3xi & 0i-D Machine Alarms
12.1. A Address Alarm Coils
The A coils in the ladder are tied to alarm conditions. When the coil turns ON (1), an alarm
message is sent to the CNC message screen through the use of the SUB 41 explained shortly.
5) Press and release and then press , press the soft key.
6) Find the ‘A’ bit that is ON then go to the ladder and find the coil of that ‘A’ bit.
If you make it to A9000, you missed it – go back and look again. A9000 and up is for
system purposes, you will not find these bits in the ladder.
Typically the alarm circuit is a latch and hold type circuit that will latch itself ON. In this example,
the button (F1.1) or the button (X15.2) will unlatch the circuit – clearing the alarm.
7) Press the button and then track down and clear alarm 1142.
FFA-091012/02
203
Machine Alarms PMC Maintenance – 3xi & 0i-D
12.2. PMC Message Data Viewer
In the PMC memory exists a table where the actual message that appears on the CNC screen for
each A coil is entered. If an A bit turns on and there is no corresponding message in this table,
no alarm will appear on the screen.
The alarm number itself determines if the message appears on the ALARM screen or on the
MESSAGE screen. 1000~1999=ALARM, 2000~2999=MESSAGE.
5) Press the button. Find alarm 1142 in the list; don’t clear the alarm yet.
204
PMC Maintenance – 3xi & 0i-D Machine Alarms
2) Enter on the MDI keypad, and then press the soft key.
The total number of messages possible to display is determined by the PMC type.
FFA-091012/02
205
Machine Alarms PMC Maintenance – 3xi & 0i-D
12.4. Master Alarm Circuit
Most machine builders include a master alarm circuit in their ladder. This circuit turns ON a
common coil when any of the alarm coils (A) are activated. The common coil address can be
used as a contact in any circuit that may be affected by alarms.
1) Highlight the R240.0 contact with the cursor. Press the soft key.
3) Highlight the A114.2 contact with the cursor. Press the soft key.
4) Trace the logic back until you find logic that will allow you to break the
circuit.
206
Auxiliary Functions PMC Maintenance – 3xi & 0i-D
2) If you input 2100 for Timer 001, the value changes to 2064.
Why doesn’t the system accept 2100 as a valid input?
3) On your simulator….
How many M-codes are decoded by the SUB4 DEC function block?
How many M-codes are decoded by the SUB25 DECB function block?
4) Search for the SUB8 MOVE function block, what is the purpose of the Mask Bits?
5) The CNC will not allow you to enter a new value into data address D36 on the PMC parameter
screen. Why not?
9) The operator panel appears to have an issue. Use the ladder logic to make it act normal again.
FFA-091012/02
207
PMC Controlled Axis PMC Maintenance – 3xi & 0i-D
208
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
When the CNC receives the finish signal from the PMC - indicating whatever auxiliary function it was
told to perform has been completed - the CNC will turn off the flag bit, removing the word ‘FIN’ from the
screen.
Even though there are many things that can cause FIN to appear on the screen, in the vast majority of
all cases there is only one thing the CNC is waiting for – PMC address G4.3 to change to a 1.
The next sections will discuss how to troubleshoot the cause of FIN on the screen.
FFA-091012/02
209
PMC Controlled Axis PMC Maintenance – 3xi & 0i-D
14.2. M-Codes
M-Codes are called MISCELLANEOUS or AUXILIARY functions and are used to control machine side
actions. The M-Codes are processed by the PMC ladder and are specific to each machine. Depending
on the functionality of the machine, the M-Codes can vary widely. There are several M codes which are
common that are listed below.
When troubleshooting an M-Code problem, it is often most efficient to follow the processing backward
to find the cause of a failure. This section details the procedure.
M-FLAG
S-FLAG
T-FLAG
B-FLAG M-CODE
CONFIRMATION
210
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
From this net you can see that contact F7.0 is ON, and you can also see which address the MTB has
chosen for the confirmation, in this example R395.0. Search for the confirmation address coil.
10) Investigate this rung to determine which contact needs to energize the confirmation coil.
M-CODE CONFIRMATION
14.3. S-Codes
S-Codes are used to command the spindle drive to a certain speed. The CNC passes the S-code to the
PMC and the PMC sends it to the spindle drive. Whenever an S-code needs to be processed, the CNC
will turn on the S-code flag F7.2; use the following to determine why an S-code is not being processed.
FFA-091012/02
211
PMC Controlled Axis PMC Maintenance – 3xi & 0i-D
M-FLAG
S-FLAG
T-FLAG
S-CODE
B-FLAG CONFIRMATION
ADDRESS
From this net you can see that contact F7.2 is ON, and you can also see which address the MTB has
chosen for the confirmation, in this example R395.1. Search for the confirmation address coil and
then troubleshoot the logic that would cause it to activate.
14.4. T-Codes
T-codes are used to call up a tool. The code is sent to the PMC and the ladder logic then uses that
code to determine what tool to get from the magazine or what tool to turn the turret to. Whenever a T-
code needs to be processed, the CNC will turn on the T-code flag F7.3.
As in the previous sections for M-codes and S-codes, search for address G4.3 in the ladder and
troubleshoot the logic to find what is keeping that coil from turning on. Refer to sections 10.2 or 10.3 for
examples of what to do.
14.5. B-Codes
The technical name for a B-code is ‘Second Auxiliary Function’. They can be used like additional M-
codes. In fact, depending on how parameter 3460 is set, they might not be called up with the letter B
but with A, C, U, V, or W; for instance if you have an actual B axis on your machine you cannot use the
letter B to also call up this function so you’d use a different letter. Only a small percentage of machines
use this feature. Whenever a B-code needs to be processed, the CNC will turn on the B-code flag
F7.7.
As in the previous sections for M-codes and S-codes, search for address G4.3 in the ladder and
troubleshoot the logic to find what is keeping that coil from turning on. Refer to sections 10.2 or 10.3 for
examples of what to do.
212
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
15. PMC Controlled Axis
A CNC controlled axis is a motor that is commanded using G-code programming or the operator panel.
These axes can be simultaneous controlled and are mainly used for cutting. Parameter settings for the
axis; feedrate, acc/dec, axis and motor type, tuning, etc., are the standard 1000s,1400s,1600s,1800-
2200s.
A PMC controlled axis is typically used for positioning only and are commanded by M or T codes in the
G-code program. They can also be commanded from the operator panel, such as in manual turret
indexing. These are not simultaneous controlled and are not typically displayed on the position screen.
Parameter settings for the axis; feedrate, acc/dec, axis and motor type, tuning, etc., can be the
standard 1000s,1400s,1600s,1800-2200s, or set by use of the PMM (Power Motion Manager) screens
for I/O link Beta Amplifiers or Power Mates.
The PMC can directly control any given axis, independent of the CNC. In other words, moving the tool
along axes that are not controlled by the CNC is possible by entering commands, such as those
specifying move distance and feedrate from the PMC. This enables control of turrets, tool magazines,
part catchers, live tooling motors, sub spindle motors, etc.
Whether the CNC or PMC controls an axis is determined by the input signal provided by the PMC for
that particular axis.
The PMC provides multiple paths to control these operations using input (F addresses) and output
signals (G addresses). By issuing commands through these paths, the PMC can simultaneously
control multiple separate axes.
214
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
Parameter 8010 is used to determine which path controls which axis. The 0i-D M-series can control up
to 4 paths while the T-series can control up to 8 if it is setup as a 2-path control. The 3xi series can
control up to 40.
Refer to the 30-series Parameter Manual for address details on groups 9-40 if needed.
Input/Output signals from the four paths are called group A (path 1), group B (path 2), group C (path 3)
and group D (path 4).
The name of an input/output signal used for PMC axis control always contains a lowercase “g” for
group, as in EBUFg, where the actual signal name is EBUFA, EBUFB, etc.
The same group of signals can be used to control more than one axis, however parameter settings
related to feedrate, acc/dec, linear/rotational axis, etc., must be the identical for each axis to be
controlled.
To enable direct PMC axis control the PMC controlled axis selection signal (EAX1 to EAX8) must be
set to a one.
Three groups of operations signals need to be provided by the PMC to the appropriate group
addresses. These signals, along with the block stop prohibition signal EMSBKg, determine one
complete operation, which is the same as the CNC executing one block of program code in automatic
operation.
FFA-091012/02
215
PMC Controlled Axis PMC Maintenance – 3xi & 0i-D
216
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
2. PMC decodes T code, transfers desired tool station address to comparison function
block.
3. PMC performs comparison check to determine if turret is at tool station already.
4. If turret is not at desired tool station, PMC activates Axis CNTL by PMC function block
(AXCTL) for appropriate tool station and axis select signal EAXg.
5. When AXCTL is activated, the command data set in 8 consecutive Input registers are
transfer to the appropriate G address group.
FFA-091012/02
217
PMC Controlled Axis PMC Maintenance – 3xi & 0i-D
218
PMC Maintenance – 3xi & 0i-D PMC Controlled Axis
FFA-091012/02
219
PMC Window Function PMC Maintenance – 3xi & 0i-D
+2 Completion Code
+4 Data Length
+6 Data Number
+8 Data Attribute
220
PMC Maintenance – 3xi & 0i-D PMC Window Function
16.1.2. Completion Code
The completion code is a status returned by the SUB52 WNDW function block, to tell if the
function was completed or if an error occurred.
CODE DESCRIPTION
0 Function completed
1 Error-invalid function code
2 Error-data length
3 Error-invalid data number
4 Error-invalid data attribute
5 Error-invalid writing data
6 Error-option missing
7 Error-write protected
For a tool offset, when the 4 column offset screen is used (LENGTH/WEAR/RADIUS/WEAR), if
you want to change offset 002 in the radius column, the DATA NUMBER will be 0002, and the
ATTRIBUTE will be 1. The attribute is incremented right to left, RADIUS WEAR=0, RADIUS=1,
LENGTH WEAR=2, and LENGTH=3.
FFA-091012/02
221
PMC Window Function PMC Maintenance – 3xi & 0i-D
16.2. WINDW Example
This example writes 0 to the parts counter. The first five function blocks set the data in the stack,
the DIFU function outputs a 50ms pulse when the input activates, and the SUB52 WINDW
function block commands the PMC to execute the command at D20.
Set ATTRIBUTE
0=parameter column 0
222
PMC Maintenance – 3xi & 0i-D CNC Screen Review
17. CNC Screen Review
While the three PMC soft keys offer most of the information that pertains to the PMC section,
there are two functions on the CNC side of the control system that are useful in troubleshooting
issues related to PMC signals.
This is the WAVE DIAGNOSIS (PARAMETER) screen. It sets the timing of the sample. Set your
screen as shown above. Each of the settings are described below…
CYCLE WAVE determines how often the signal is checked during the TRACE TIME
period.
TRACE TIME determines how long the sample will collect data.
DELAY TIME will delay the end of the sample beyond the trigger event, only used
when TRACE CONDITION 3:BEFORE is selected.
8) The trace wave settings allow you to graph servo and spindle signals. As we are only watching
PMC signals, set the TRACE WAVE SETTINGS as shown above.
224
PMC Maintenance – 3xi & 0i-D CNC Screen Review
11) Position the cursor on the TRACE DATA KIND or COLOR field.
(Black)
(Red)
(Green)
(Yellow)
(Blue)
(Black)
(Cyan)
(White)
13) Press the soft key, to exit the help window screen.
FFA-091012/02
225
CNC Screen Review PMC Maintenance – 3xi & 0i-D
226
PMC Maintenance – 3xi & 0i-D CNC Screen Review
17.1.3. Capture Waveform Data
The capture data begins sampling based on the TRIGGER KIND parameter setting. In this
example the trigger kind is set to 2, which means that after the soft key is pressed and
after the trigger condition occurs the tracing starts; when the trace time has elapsed the software
stops sampling.
FFA-091012/02
227
CNC Screen Review PMC Maintenance – 3xi & 0i-D
The full 60 seconds of capture is displayed on the screen.
Looking horizontally, each block represents 500 milliseconds; it took 2.5 seconds to process the first M and
T codes in the above example.
9) Press the soft keys to shift along the sample. will zoom out.
228
PMC Maintenance – 3xi & 0i-D CNC Screen Review
17.2. CNC Diagnostic Screen
The CNC diagnostic screen shows the status of several operating factors. If the machine will not
run, but there are no alarms, this screen will help diagnose the problem.
To the right of the diagnostic is a status bit. If anything is causing the CNC to stop there will be a
‘1’ next to the item.
G53.6
G12
G10, G11
G8.0, G130, G132, G134, G7.1
G29.4
3) Select mode.
5) Set the FEED OVERRIDE to 0%. Notice the diagnostic bit turns ON.
6) Turn the FEED OVERRIDE back up and notice the bit turns OFF.
FFA-091012/02
229
Ladder Editing PMC Maintenance – 3xi & 0i-D
18.1. Settings
5) Make sure PROGRAMMER ENABLE is turned on, this will force all the settings
needed for editing to be on.
230
PMC Maintenance – 3xi & 0i-D Ladder Editing
18.2. Altering Existing Ladder Logic
Once the ladder edit settings are on, ladder changes can be made directly on the control.
6) The EDIT key is available on the Ladder main soft key menu because of the EDIT
ENABLE setting under the soft key. Press the soft key to start
editing.
FFA-091012/02
231
Ladder Editing PMC Maintenance – 3xi & 0i-D
7) With the cursor highlighting the first rung press the soft key.
8) With the cursor on the X0008.4 contact press the soft key.
10) Press the soft key and then the soft key.
232
PMC Maintenance – 3xi & 0i-D Ladder Editing
11) The message “PMC RUNNING. DO YOU UPDATE PROGRAM?” appears. Press
Because WRITE TO FROM (EDIT) is set to YES, the system will now ask “DO
YOU WRITE PROGRAM INTO FLASH ROM?” to make the changes permanent.
Press in the E-Stop button. Now the G8.4 coil is on but you’re still in Emergency
Stop because X8.4 now has a status of 0.
FFA-091012/02
233
Ladder Editing PMC Maintenance – 3xi & 0i-D
18.3. Adding New Ladder Logic
The soft key allows you to add new lines of ladder logic. You can insert multiple line of
logic on the CREATE screen.
1) Using the buttons on the MDI panel, position the cursor on the
line below where you would like to add a new ladder line.
5) Type in .
234
PMC Maintenance – 3xi & 0i-D Ladder Editing
18.3.1. Adding a New Functional Instruction
1) Using the buttons on the MDI panel, position the cursor on the
line below where you would like to add a new ladder line.
The functional instruction can be added now. If you know the SUB number, just enter it then
press the soft key. If you do not know the SUB number then press the soft
key and a list of all the sub functions will appear.
5) Enter then press the soft key. The functional instruction appears.
7) Press and to position the cursor just to the right of your new functional
instruction.
FFA-091012/02
235
Ladder Editing PMC Maintenance – 3xi & 0i-D
10) Press the soft key and then the soft key.
Update the PMC Program but don’t save it to the Flash ROM.
If you test the logic, the coil turns on instantly because we have not put a value into timer 20 in the
PMC parameters.
The soft key allows you to delete ladder nets. A single line or multiple lines can be
deleted at one time.
3) Use extreme caution, as there is NO confirmation message for this function. If you
make a mistake and want to undo it, press the soft key.
236
PMC Maintenance – 3xi & 0i-D Ladder Editing
18.5. Deleting a Single Contact
It is possible to delete a single contact or function block without deleting the entire ladder net.
3) Use the cursor buttons to highlight the contact and then press the soft key.
The CUT function allows you to move ladder rungs. This is useful for rearranging the ladder to
have a logical flow.
FFA-091012/02
237
Ladder Editing PMC Maintenance – 3xi & 0i-D
18.7. Symbols and Comments
Ladder contact and coil comments can be added to simplify ladder troubleshooting. Symbols are
short names and comments can be descriptive. The machine builder may or may not add these
comments, they are not required.
The system asks, “DO YOU WANT TO STOP PROGRAM?” - the ladder execution has to be
stopped to edit the symbols and comments.
238
PMC Maintenance – 3xi & 0i-D Ladder Editing
18.7.1. Altering Existing Addresses
Even if they are in the ladder logic, address must be manually entered on this screen for them to
be listed.
1) Position the cursor on the address to change and press the soft key.
FFA-091012/02
239
Ladder Editing PMC Maintenance – 3xi & 0i-D
6) The system asks “DO YOU WRITE PROGRAM INTO FLASH ROM?” Press .
The system asks, “DO YOU WANT TO STOP PROGRAM?” - the ladder execution has to be
stopped to edit the symbols and comments.
240
PMC Maintenance – 3xi & 0i-D Ladder Editing
Address – R212.0 Symbol – BTIME Comment – BREAK TIME
8) Press the soft key to add the new entry to the list.
10) The system asks “DO YOU WRITE PROGRAM INTO FLASH ROM?” Press .
11) The system asks “DO YOU WANT TO RUN PROGRAM?” Press .
12) Go to the Ladder display and see the change you made:
FFA-091012/02
241
Ladder Editing PMC Maintenance – 3xi & 0i-D
18.8. Machine Alarm Messages
In order to have a machine alarm display on the CNC’s alarm screen, three things must be set up.
First, the ladder has to contain logic that controls an A-address coil. Second, the A address for
the alarm has to be tied into the SUB41 functional instruction. Lastly, the number and text you
want displayed has to be defined.
242
PMC Maintenance – 3xi & 0i-D Ladder Editing
The system asks, “DO YOU WANT TO STOP PROGRAM?” - the ladder execution has to be
stopped to edit the alarm messages.
14) Don’t write the changes into FROM but do start the ladder up again.
Now when the coil A2.5 is active in the ladder, and the DISPB function is activated, then the
message will be displayed.
FFA-091012/02
243
Ladder Editing PMC Maintenance – 3xi & 0i-D
18.9. Adding I/O Link Modules
6) Press the and buttons on the MDI panel, to highlight address Y0005.
7) Enter
You have just added an I/O module. The control now believes there is an AOR16G module
installed at GROUP1, BASE0, in SLOT5.
244
PMC Maintenance – 3xi & 0i-D Ladder Editing
18.10. Saving Ladder Changes to FROM
When ladder editing is completed and proper operation has been proven the changes should be
saved to FLASH ROM for permanent storage. Each time the control powers ON, it transfers the
ladder from FROM to DRAM memory where it runs from. Follow the steps below to save your
changes.
FFA-091012/02
245
Revision History PMC Maintenance – 3xi & 0i-D
2) What addresses does the CNC use to tell the PMC a M-Code needs to be processed?
3) What does “FIN” mean when it appears on the CNC status line of the display?
6) Add a machine alarm, 1016 HYDRAULIC PRESSURE LOW. It should become active when
pressing the AUX 1 button. Make sure it latches ON, and can only be cleared by the RESET
button.
7) Add symbols in the ladder diagram to LABEL the alarm coil created above.
8) Add logic to check the feed rate override switch in AUTO and JOG mode. If it is set to any
position other than 100 %, generate an operator message (not alarm) SET FEEDRATE TO 100.
9) The message above will not cause the CNC to stop. Add logic to activate the FEED HOLD
signal when the message occurs.
10) Add an M-Code to the ladder, M63. This m-code will be used to control a conveyor system.
A. When M63 is read, it will cause (4) outputs to turn on in sequence (2) seconds apart from
each other.
B. Y14.0 turns ON, 2 seconds later Y14.1 turns ON, 2 seconds later Y14.2 turns ON, 2
seconds later Y14.3 turns ON.
C. After 5 seconds the conveyors turn OFF in reverse order with a 2 second delay between
each action.
(The Y addresses may already exist in the ladder. Add a parallel circuit to these addresses to
avoid conflict)
246
Exercise 6 PMC Maintenance – 3xi & 0i-D
FFA-091012/02
247
PMC Maintenance – 3xi & 0i-D Revision History
21. Operator Panel Layout
248