Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PMC
PMC
PROGRAMMING MANUAL
B-64513EN/01
• No part of this manual may be reproduced in any form.
• All specifications and designs are subject to change without notice.
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export of Series 30i/300i/300is-MODEL A, Series
31i/310i/310is-MODEL A5 from Japan is subject to an export license by the government of
Japan. Other models in this manual may also be subject to export controls.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
regarded as ”impossible”.
B-64513EN/01 DEFINITION OF WARNING, CAUTION, AND NOTE
WARNING
Applied when there is a danger of the user being injured or when there is a
danger of both the user being injured and the equipment being damaged if the
approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment being damaged, if the
approved procedure is not observed.
NOTE
The Note is used to indicate supplementary information other than Warning and
Caution.
s-1
B-64513EN/01 TABLE OF CONTENTS
TABLE OF CONTENTS
DEFINITION OF WARNING, CAUTION, AND NOTE .................................s-1
1 OVERVIEW OF PMC .............................................................................. 1
1.1 WHAT IS PMC?............................................................................................. 1
1.1.1 Basic Configuration of PMC ....................................................................................1
1.1.2 I/O Signals of PMC ..................................................................................................1
1.1.3 PMC Signal Addresses .............................................................................................2
1.2 WHAT IS LADDER LANGUAGE? ................................................................. 5
1.2.1 Ladder Diagram Format ...........................................................................................5
1.2.2 Signal Name (Symbol Name)...................................................................................5
1.2.3 Comment ..................................................................................................................6
1.2.4 Graphic Symbols of Relays and Coils......................................................................6
1.2.5 Line Number and Net Number .................................................................................6
1.2.6 Difference Between Relay Sequence Circuit and Ladder Sequence Program .........7
1.2.7 Specification of Extended Symbol and Comment....................................................8
1.3 SEQUENCE PROGRAM CREATION PROCEDURE .................................. 11
1.3.1 Determining Specification......................................................................................11
1.3.2 Creating Ladder Diagram .......................................................................................11
1.3.3 Editing Sequence Program .....................................................................................11
1.3.4 Transferring and Writing Sequence Program to PMC ...........................................12
1.3.5 Checking Sequence Program..................................................................................13
1.3.6 Storage and Management of Sequence Program....................................................13
1.4 EXECUTION OF SEQUENCE PROGRAM ................................................. 14
1.4.1 Execution Procedure of Sequence Program ...........................................................15
1.4.2 Repetitive Operation...............................................................................................16
1.4.3 Processing Priority (1st Level, 2nd Level, and 3rd Level).....................................16
1.4.4 Structured Sequence Program ................................................................................18
1.4.4.1 Implementation .................................................................................................. 18
1.4.4.2 Subprogramming and nesting ............................................................................ 23
1.4.4.3 Notes on using subroutines................................................................................ 27
1.4.5 Synchronization Processing of I/O Signals ............................................................29
1.4.6 Interlock .................................................................................................................34
1.4.7 Notes on I/O Signals Updated by Other Than PMC ..............................................34
1.5 MULTI-PATH PMC FUNCTION................................................................... 35
1.5.1 Execution Order and Execution Time Percentage..................................................37
1.5.2 Interface Between CNC and PMC .........................................................................39
1.5.3 Multi-Path PMC Interface ......................................................................................40
1.5.4 Common PMC Memory Mode of Multi-Path PMC...............................................41
1.6 Communication Method for External I/O Device .......................................... 43
1.6.1 I/O Link i and I/O Link ..........................................................................................43
1.6.2 Setting I/O Address for I/O Link i..........................................................................44
1.6.3 Setting I/O Address for I/O Link............................................................................45
2 PMC SPECIFICATIONS........................................................................ 47
2.1 SPECIFICATIONS....................................................................................... 47
2.1.1 Basic Specifications ...............................................................................................47
2.1.2 Total Ladder Steps of Multi-path PMC..................................................................50
2.1.3 Determination of PMC Memory Type ...................................................................51
2.1.4 Program Capacity ...................................................................................................52
2.1.5 Used Memory Size of Sequence Program..............................................................53
c-1
TABLE OF CONTENTS B-64513EN/01
c-4
B-64513EN/01 TABLE OF CONTENTS
4.6.5 DSEQB (Searching Data from Table(=)(1 Byte Length):SUB 241)
DSEQW (Searching Data from Table(=)(2 Bytes Length):SUB 242)
DSEQD (Searching Data from Table(=)(4 Bytes Length):SUB 243)
DSNEB (Searching Data from Table(≠)(1 Byte Length):SUB 244)
DSNEW (Searching Data from Table(≠)(2 Bytes Length):SUB 245)
DSNED (Searching Data from Table(≠)(4 Bytes Length):SUB 246)
DSGTB (Searching Data from Table(>)(1 Byte Length):SUB 247)
DSGTW (Searching Data from Table(>)(2 Bytes Length):SUB 248)
DSGTD (Searching Data from Table(>)(4 Bytes Length):SUB 249)
DSLTB (Searching Data from Table(<)(1 Byte Length):SUB 250)
DSLTW (Searching Data from Table(<)(2 Bytes Length):SUB 251)
DSLTD (Searching Data from Table(<)(4 Bytes Length):SUB 252)
DSGEB (Searching Data from Table( )(1 Byte Length):SUB 253)
DSGEW (Searching Data from Table( )(2 Bytes Length):SUB 254)
DSGED (Searching Data from Table( )(4 Bytes Length) :SUB 255)
DSLEB (Searching Data from Table( )(1 Byte Length) :SUB 256)
DSLEW (Searching Data from Table( )(2 Bytes Length) :SUB 257)
DSLED (Searching Data from Table( )(4 Bytes Length) :SUB 258)................314
4.6.6 DMAXB (Maximum Data (1 Byte Length): SUB 259)
DMAXW (Maximum Data (2 Bytes Length) : SUB 260)
DMAXD (Maximum Data (4 Bytes Length) : SUB 261) ....................................318
4.6.7 DMINB (Minimum Data (1 Byte Length): SUB 262)
DMINW (Minimum Data (2 Bytes Length): SUB 263)
DMIND (Minimum Data (4 Bytes Length): SUB 264) .......................................321
4.7 COMPARISON .......................................................................................... 324
4.7.1 Signed Binary Comparison (=)
EQB (1 Byte Length: SUB 200)
EQW (2 Bytes Length: SUB 201)
EQD (4 Bytes Length: SUB 202).........................................................................325
4.7.2 Signed Binary Comparison (≠)
NEB (1 Byte Length: SUB 203)
NEW (2 Bytes Length: SUB 204)
NED (4 Bytes Length: SUB 205).........................................................................327
4.7.3 Signed Binary Comparison (>)
GTB (1 Byte Length: SUB 206)
GTW (2 Bytes Length: SUB 207)
GTD (4 Bytes Length: SUB 208).........................................................................329
4.7.4 Signed Binary Comparison (<)
LTB (1 Byte Length: SUB 209)
LTW (2 Bytes Length: SUB 210)
LTD (4 Bytes Length: SUB 211) .........................................................................331
4.7.5 Signed Binary Comparison ( )
GEB (1 Byte Length: SUB 212)
GEW (2 Bytes Length: SUB 213)
GED (4 Bytes Length: SUB 214).........................................................................333
4.7.6 Signed Binary Comparison ( )
LEB (1 Byte Length: SUB 215)
LEW (2 Bytes Length: SUB 216)
LED (4 Bytes Length: SUB 217) .........................................................................335
4.7.7 Signed Binary Comparison (Range)
RNGB (1 Byte Length: SUB 218)
RNGW (2 Bytes Length: SUB 219)
RNGD (4 Bytes Length: SUB 220)......................................................................337
c-5
TABLE OF CONTENTS B-64513EN/01