Fanuc PMC - Ladder Language - Programming Manual PDF
Fanuc PMC - Ladder Language - Programming Manual PDF
SB5/SB6/SB7/SC/SC3/SC4/NB/NB2/NB6
LADDER LANGUAGE
PROGRAMMING MANUAL
B-61863E/14
No part of this manual may be reproduced in any form.
All specifications and designs are subject to change without notice.
The export of this product is subject to the authorization of the government of the country
from where the product is exported.
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.
B61863E/14 DEFINITION OF WARNING, CAUTION, AND NOTE
This manual includes safety precautions for protecting the user and preventing damage to the
machine. Precautions are classified into Warning and Caution according to their bearing on safety.
Also, supplementary information is described as a Note. Read the Warning, Caution, and Note
thoroughly before attempting to use the machine.
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.
s1
B61863E/14 PREFACE
PREFACE
Applicable models The models covered by this manual, and their abbreviations are :
p1
PREFACE B61863E/14
NOTE
1 These models have been renamed; in the product name
column, the old names are enclosed in parentheses, while
the new names appear above the old names. However, the
previous specifications are still applied to the renamed
models.
Thus, when using the renamed models, users should :
Read the old names shown in this manual as the new
names.
Read the old names appearing on the units as the new
names.
2 PMCSA1 is applied to the loader control side of a CNC
having the loader control function.
The CNC models having the loader control function are as
follows :
FANUC Series 16MODEL A/B/C
FANUC Series 18MODEL A/B/C
FANUC Series 21MODEL B
FANUC Series 16i/18i/21iMODEL A/B
p2
B61863E/14 PREFACE
Other manuals However, it does not include all items required for sequence
programming. For those required for sequence programming
refer to the following manuals.
Other application The models covered for reference by this manual, and their
model names abbreviations are:
p3
B61863E/14 Table of Contents
DEFINITION OF WARNING, CAUTION, AND NOTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . s1
PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pI
2. SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.1 EXECUTION PROCEDURE OF SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
2.2 REPETITIVE OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.3 PRIORITY OF EXECUTION (1ST LEVEL, 2ND LEVEL AND 3RD LEVEL) . . . . . . . . . . . . . . . 44
2.4 SEQUENCE PROGRAM STRUCTURING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2.5 PROCESSING I/O SIGNALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
2.5.1 Input Signal Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.5.2 Output Signal Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.5.3 I/O Signals to CNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
2.5.4 Difference of Status of Signals between 1st Level and 2nd Level . . . . . . . . . . . . . . . . . . . . . . . 53
2.6 INTERLOCKING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
2.7 SEQUENCE PROGRAM PROCESSING TIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.8 SEQUENCE PROGRAM MEMORY CAPACITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3. ADDRESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.1 ADDRESSES BETWEEN PMC AND CNC (PMCNC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
3.2 ADDRESSES BETWEEN PMC AND MACHINE TOOL (PMCMT) . . . . . . . . . . . . . . . . . . . . . . 75
3.2.1 Addresses Between PMC and Machine Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
3.2.2 Assignment of I/O Module Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
3.2.3 I/O Link Connection Unit Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
3.2.4 I/O Unit MODEL B Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
3.2.5 Power Mate Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3.2.6 FS16iLA Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3.2.7 Distribution I/O Connection I/O Module and Distribution I/O Operators Panel
I/O Module Assignment Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.3 INTERNAL RELAY ADDRESSES (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
3.3.1 Area Managed by the System Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
c1
Table of contents B61863E/14
c2
B61863E/14 Table of contents
c3
Table of contents B61863E/14
c4
B61863E/14 Table of contents
3. PMC I/O SIGNAL DISPLAY AND INTERNAL RELAY DISPLAY (PMCDGN) . . . . . . 424
3.1 DISPLAYING TITLE DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
3.2 DISPLAY OF SIGNAL STATUS (STATUS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
3.3 ALARM SCREEN (ALARM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
3.4 TRACE FUNCTION (TRACE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
3.4.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
3.4.2 Parameter Setting Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
3.4.3 Starting or Stopping the Trace Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
3.4.4 Trace Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
3.4.5 Automatic Tracing Function at Power on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
3.5 DISPLAYING THE CONTENTS OF MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
3.5.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
3.5.2 Function for Storing Data in Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
3.6 FUNCTION FOR DISPLAYING SIGNAL WAVEFORMS (ANALYS) . . . . . . . . . . . . . . . . . . . . . 434
3.6.1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
3.6.2 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
3.6.3 Parameter Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
3.6.4 Signal Diagnosis Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
3.6.5 Reading Signals Automatically at Power on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
3.7 DISPLAYING THE RUNNING STATE OF A USER TASK (USRDGN) . . . . . . . . . . . . . . . . . . . . 440
3.8 DISPLAYING AND SETTING THE CONFIGURATION STATUS OF I/O
DEVICES (IOCHK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
3.8.1 I/O Link Connecting Check Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
3.8.2 I/O LinkII Parameter Setting Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
c5
Table of contents B61863E/14
c6
B61863E/14 Table of contents
c7
Table of contents B61863E/14
c8
B61863E/14 Table of contents
11. PMC PROGRAMMER (DPL/MDI) (ONLY FOR THE Power Mate) . . . . . . . . . . . . . . 608
11.1 SELECTING THE PMC PROGRAMMER MENU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
11.2 SETTING AND DISPLAYING SYSTEM PARAMETERS (SYSTEM PARAM) . . . . . . . . . . . . . . 611
11.3 EDITING THE SEQUENCE PROGRAM (EDIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
11.4 EDITING LADDER MNEMONICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
11.4.1 Starting Ladder Mnemonics Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
11.4.2 Confirming the Ladder Mnemonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614
11.4.3 Modifying the Ladder Mnemonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
11.4.4 Ending Ladder Mnemonics Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
11.5 STARTING AND STOPPING THE SEQUENCE PROGRAM (RUN/STOP) . . . . . . . . . . . . . . . . . 619
11.6 ERROR MESSAGES (FOR LADDER MNEMONICS EDITING) . . . . . . . . . . . . . . . . . . . . . . . . . 620
11.7 STORING THE SEQUENCE PROGRAM INTO FLASH EEPROM (I/O)
(ONLY FOR THE Power MateH AND Power Mate iD/H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621
11.8 ERROR DETAILS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
11.9 INPUT/OUTPUT LADDER/PMCPARAMETER BY MDI/DPL . . . . . . . . . . . . . . . . . . . . . . . . . . 623
11.9.1 Input/Output Method to Office Programmer (Pg Mate/Mark II) (Fixed 9600bit/Sec.) . . . . . 623
11.9.2 Input/Output Method to FANUC FLOPPY CASSETTE (Fixed 4800bit/Sec.) . . . . . . . . . . . . 623
11.10 ONLINE DEBUGGING FUNCTION (ONLY FOR Power MateD/H and Power Mate iD/H) . 624
11.10.1 Starting and Stopping the Online Debugging Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
11.11 ERROR LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626
c9
Table of contents B61863E/14
c10
B61863E/14 Table of contents
c11
Table of contents B61863E/14
c12
B61863E/14 Table of contents
c13
Table of contents B61863E/14
c14
B61863E/14 Table of contents
4. OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 981
4.1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 982
4.2 PREPARATION BEFORE OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
4.2.1 System Floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
4.2.2 Limitations with the SYSTEM P Mate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
4.2.3 Loading of Floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 984
4.2.4 FANUC LADDER System Floppy Loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 985
4.2.5 Programmer Menu Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 986
4.2.6 Parameter Setting and Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 987
4.3 PROGRAM EDITING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
4.3.1 Data Display and Setting (Title, Symbol, Ladder Program, Comment,
Message, I/O Module) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 990
4.3.2 Programming from Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 996
4.3.3 Alter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997
4.3.4 Insert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
4.3.5 Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001
4.3.6 Location Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1001
4.3.7 Display of Ladder Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1003
4.3.8 Help Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004
4.3.9 Editing end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004
4.4 INPUT OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005
4.4.1 Source Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1005
4.4.2 ROM Format Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
4.5 OUTPUT OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010
4.5.1 Source Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1010
4.5.2 Paper Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013
4.5.3 ROM Format Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1014
4.6 COLLATION OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017
4.6.1 Collation of Source Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017
4.6.2 ROM Format Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017
c15
Table of contents B61863E/14
APPENDIX
A. ERROR CODES LIST (FOR FANUC LADDER PG) . . . . . . . . . . . . . . . . . . . . . . . . . . 1051
c16
B61863E/14 Table of contents
c17
Table of contents B61863E/14
c18
B61863E/14 Table of contents
c19
Table of contents B61863E/14
C.3.34
Reading the Machining Time (Lowspeed Response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1292
C.3.35
Reading the Load Current (A/D Conversion Data) for the Spindle Motor . . . . . . . . . . . . . . 1293
C.3.36
Reading the Tool Offset Data According to the Specified Tool Number . . . . . . . . . . . . . . . 1294
C.3.37
Reading Tool Life Management Data (Tool Group Numbers) (Lowspeed Type) . . . . . . . . 1295
C.3.38
Reading Tool Life Management Data (Tool Length Compensation Number 1)
(Lowspeed Type) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1296
C.3.39 Reading Tool Life Management Data (Cutter Compensation Number 1)
(Lowspeed Type) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1297
C.3.40 Reading Tool Life Management Data (Tool Information 1) (Lowspeed Type) . . . . . . . . . . 1298
C.3.41 Reading Real Parameters (Lowspeed Type) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1299
C.3.42 Reading the actual Machine Position (Machine Coordinates) of Controlled Axes. . . . . . . . 1300
C.3.43 Reading Fine Torque Sensing Data (Statistical Calculation Results). . . . . . . . . . . . . . . . . . . 1301
C.3.44 Reading Fine Torque Sensing Data (Store Data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1302
C.3.45 Reading detailed information of CNC alarm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1306
C.4 FORMAT AND DETAILS OF THE CONTROL DATA OF THE
WINDW FUNCTIONAL INSTRUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1309
C.4.1 Writing a Tool Offset Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1310
C.4.2 Writing a Parameter (Setting Data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1311
C.4.3 Writing a Custom Macro Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1312
C.4.4 Writing a Data on the Program Check Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1313
C.4.5 Writing the Torque Limit Override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1314
C.4.6 Writing the Tool Life Management Data (Tool Group Number) . . . . . . . . . . . . . . . . . . . . . . 1315
C.4.7 Writing the Tool Life Management Data (Tool Life) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1315
C.4.8 Writing the Tool Life Management Data (Tool Life Counter) . . . . . . . . . . . . . . . . . . . . . . . . 1316
C.4.9 Writing the Tool Life Management Data (Tool Life Counter Type) . . . . . . . . . . . . . . . . . . . 1316
C.4.10 Writing the Tool Life Management Data (Tool Length Compensation Number 1) . . . . . . . . 1317
C.4.11 Writing the Tool Life Management Data (Tool Length Compensation Number 2) . . . . . . . . 1317
C.4.12 Writing the Tool Life Management Data (Cutter Compensation Number 1) . . . . . . . . . . . . 1318
C.4.13 Writing the Tool Life Management Data (Cutter Compensation Number 2) . . . . . . . . . . . . 1318
C.4.14 Writing the Tool Life Management Data (Tool Information 1) . . . . . . . . . . . . . . . . . . . . . . . 1319
C.4.15 Writing the Tool Life Management Data (Tool Information 2) . . . . . . . . . . . . . . . . . . . . . . . 1319
C.4.16 Writing the Tool Life Management Data (Tool Number) . . . . . . . . . . . . . . . . . . . . . . . . . . . 1320
C.4.17 Writing the Tool Offset Data According to the Specified Tool Number . . . . . . . . . . . . . . . . 1321
C.4.18 Writing the Superposition Move Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1322
C.4.19 Writing the Feedrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1324
C.4.20 Writing Tool Life Management Data (Tool Group Numbers) . . . . . . . . . . . . . . . . . . . . . . . . 1325
C.4.21 Writing Tool Life Management Data (Tool Length Compensation Number 1) . . . . . . . . . . . 1326
C.4.22 Writing Tool Life Management Data (Cutter Compensation Number 1) . . . . . . . . . . . . . . . 1327
C.4.23 Writing Tool Life Management Data (Tool Information 1) . . . . . . . . . . . . . . . . . . . . . . . . . . 1328
C.4.24 Writing Real Parameters (Lowspeed Type) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1329
c20
B61863E/14 Table of contents
c21
Table of contents B61863E/14
c22
B61863E/14 Table of contents
c23
I. PMC SEQUENCE PROGRAM
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
The procedure for creating the sequence program when the CNC machine
tool is controlled by use of the PMC is shown in Fig. 1.
Proceed according to the flow shown in Fig. 1.
The procedure is briefly explained below.
Key-in
Offline programmer
Specification of the
programmer
If necessary correct with the keys of the When the debugging connect the offline
CRT/MDI programmer to CNC and transfer the
sequence program to Debugging RAM
No
Is there a simulator?
Yes
Yes
Should the program be
corrected?
No
3
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
No
10
Store the sequence program:
(1) Store in the disk of the offline
programmer
(2) Store in ROM
End
4
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
5
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 1KB.
The size of a message is fixed to 0.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 I/O Link Master function is not available in the Power MateMODEL F.
5 FLASH ROM is used in the Power MateMODEL H.
6 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
7 Up to 256/256 points of Input/Output points are available or I/O Link (Slave) in the Power
MateMODEL D/H.
6
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Type of PMC
PMCSA1 PMCSA2 PMCSA3
Specification
of PMC
Program method language Ladder Ladder Ladder
Number of ladder level 2 2 2
1st level execution period 8 ms 8 ms 8 ms
Mean processing time of basic 5.0 1.5 * 0. 15
command (s/ step) (s/ step) (s/ step)
Program capacity
D Ladder (step) (Note 1,3) Approx. 3, 000 Approx. 3, 000 Approx. 3, 000
Approx. 5, 000 Approx. 5, 000 Approx. 5, 000
Approx. 8, 000 Approx. 8, 000
Approx.12, 000 Approx.12, 000
D Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 2,3)
D Message (Note 3) 0. 1 to 64KB 0. 1 to 64KB 0. 1 to 64KB
D Language only
Command Basic command 12 kinds 12 kinds 14 kinds
Functioncommand 49 kinds 48 kinds 66 kinds
1100 byte 1118 byte 1118 byte
Internal relay (R) 25 byte 25 byte 25 byte
Message request (A)
Keepmemory 80 byte 80 byte 80 byte
D Variable timer (T)
80 byte 80 byte 80 byte
D Counter (C)
20 byte 20 byte 20 byte
D Keep relay (K)
D Data table (D) 1860 byte 1860 byte 1860 byte
Subprogram (P) 512 programs
Label (L) 9999 labels
Fixed timer Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified devices specified
I/O
D I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
D I/O card (I) 156 points max. 156 points max. 156 points max.
(O) 120 points max. 120 points max. 120 points max.
Sequence program EPROM EPROM EPROM
1Mbit1 (128KB) 1Mbit1 (128KB) 1Mbit1 (128KB)
(Note 4) (Note 4)
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 32KB.
The size of a message is fixed to 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 FLASH ROM is used in the FANUC Series 20.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
6 Application PMC for FANUC Series 16MODEL A loader control function is PMCSA1.
7
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
Type of PMC
Specification PMCSB1 PMCSB2 PMCSB3
of PMC
Program method language Ladder Ladder Ladder
Number of ladder level 2 2 2
1st level excution period 8 ms 8 ms 8 ms
Mean processing time of basic 1.0 1.0 * 0. 15
command (s/ step) (s/ step) (s/ step)
Program capacity
D Ladder (step) (Note 1,3,4) Approx. 5, 000 Approx. 5, 000 Approx. 5, 000
Approx. 8, 000 Approx. 8, 000 Approx. 8, 000
Approx.12, 000 Approx.12, 000 Approx.12, 000
Approx.16, 000 Approx.16, 000 Approx.16, 000
Approx.24, 000 Approx.24, 000
D Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 2,4)
D Message (Note 4) 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
D Language only
Command Basic command 12 kinds 12 kinds 14 kinds
Functioncommand 49 kinds 49 kinds 68 kinds
Internal relay (R) 1100 byte 1118 byte 1618 byte
Message request (A) 25 byte 25 byte 25 byte
Keepmemory
D Variable timer (T)
D Counter (C) 80 byte 80 byte 80 byte
D Keep relay (K) 80 byte 80 byte 80 byte
D Data table(D) (D) 20 byte 20 byte 20 byte
Subprogram (P) 1860 byte 1860 byte 3000 byte
Label (L)
Fixed timer 512 programs
9999 labels
Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified devices specified
I/O
D I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
D I/O card (I) 156 points max. 156 points max. 156 points max.
(Note 5) (O) 120 points max. 120 points max. 120 points max.
Sequence program EPROM EPROM EPROM
1Mbit1 (128KB) 1Mbit1 (128KB) 1Mbit1 (128KB)
ROM MODULE ROM MODULE
256KB (Note 3) 256KB (Note 3)
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 32KB.
The size of a message is fixed to 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 When the number of steps of the PMC-SB2, SB3 ladder program is approx. 24,000, the
capacity of the ROM module must be 256KB.
4 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
8
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Type of PMC
Specification PMCSC PMCSC3 PMCNB
of PMC
Program capacity
D Ladder (step) (Note 1,3) Approx. 16,000 Approx. 16,000 Approx. 8,000
Approx. 24,000 Approx. 24,000 Approx. 16,000
(Note 4)
Approx. 24,000
(Note 4)
D Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 2,3)
D Message (Note 3) 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
D Language only 896KB max. 896KB max. 896KB max.
I/O
D I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
D I/O card (I) 156 points max. 156 points max.
(O) 120 points max. 120 points max.
9
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 The size of a symbol and that of a comment of PMC-SC/SC3
are fixed 32KB. The size of message of PMC-SC/SC3 is
fixed 2.1KB. The size of a symbol and that of a comment
of PMC-NB are fixed 28KB. The size of message of
PMC-NB is fixed 2.1KB. The maximum size of a symbol and
that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
4 When the number of steps of the PMC-NB ladder program
is not less than 8,000, the OPTION DRAM is required.
(A02B-0162-J151, J152)
10
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Series 18
Series 16MODEL B/Series 18MODEL B
Model MODEL B
PMCSB3 PMCSC3 PMCSB4 PMCSC4 PMCSA1
Program capacity
D Ladder (step) (Note 1,3) Approx. 5, 000 Approx. 5, 000 Approx. 3, 000
Approx. 8, 000 Approx. 8, 000 Approx. 5, 000
Approx.12, 000 Approx.12, 000
Approx.16, 000 Approx.16, 000 Approx.16, 000 Approx.16, 000
Approx.24, 000 Approx.24, 000 Approx.24, 000 Approx.24, 000
D Symbol/Comment (Note 2,3) 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB
D Message (Note 3)
D Language only 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
max. 896KB max. 896KB
Internal relay (R) 1618 byte 1618 byte 3200 byte 3200 byte 1100 byte
Message request (A) 25 byte 25 byte 125 byte 125 byte 25 byte
Non-volatile
D Var. Timer (T) 80 byte 80 byte 300 byte 300 byte 80 byte
D Counter (C) 80 byte 80 byte 200 byte 200 byte 80 byte
D Keep relay (K) 20 byte 20 byte 50 byte 50 byte 20 byte
D Data table (D) 3000 byte 3000 byte 8000 byte 8000 byte 1860 byte
Subprogram (P) 512 programs 512 programs 2000 programs 2000 programs
Label (L) 9999 labels 9999 labels 9999 labels 9999 labels
Fixed timer Timer No. 100 Timer No. 100 Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified devices specified devices specified devices specified
Input/output
D I/O link (I) Max. 1024 points max. 1024 points max. 1024 points max. 1024 points max. 1024 points max.
(O) Max. 1024 points max. 1024 points max. 1024 points max. 1024 points max. 1024 points max.
D I/O card (I) Max. 312 points max. 312 points max. 312 points max. 312 points max. 312 points max.
(Note 4) (O) Max. 240 points max. 240 points max. 240 points max. 240 points max. 240 points max.
Sequence program Flash ROM Flash ROM Flash ROM Flash ROM Flash ROM
storage media 128KB (16,000 128KB (16,000 128KB (16,000 128KB (16,000 128KB
steps option or steps option) steps option or steps option)
less) 256KB (24,000 less) 256KB (24,000
256KB (24,000 steps option) 256KB (24,000 steps option)
steps option) 512KB (24,000 steps option) 512KB (24,000
steps option) steps option)
1MB (24,000 1MB (24,000
steps option) steps option)
11
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB. The size of message is fixed 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 That is the maximum number when 2 I/O cards (with 156 inputs/120 outputs) are used.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
6 Application PMC for FANUC Series 16MODEL B loader control function is PMCSA1.
12
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Program capacity
D Ladder (step) (Note 1,3) Approx. 3, 000 Approx. 3, 000
Approx. 5, 000 Approx. 5, 000
Approx. 8, 000 Approx. 8, 000
Approx.12, 000 Approx.12, 000
Approx.16, 000 Approx.16, 000 Approx.16, 000 Approx.16, 000
Approx.24, 000 Approx.24, 000 Approx.24, 000 Approx.24, 000
Approx.32, 000 Approx.32, 000
D Symbol/Comment (Note 2,3) 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB
D Message (Note 3) 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
D Language only max. 896KB max. 896KB
Internal relay (R) 1618 byte 1618 byte 3200 byte 3200 byte
Message request (A) 25 byte 25 byte 125 byte 125 byte
Non-volatile
D Var. Timer (T) 80 byte 80 byte 300 byte 300 byte
D Counter (C) 80 byte 80 byte 200 byte 200 byte
D Keep relay (K) 20 byte 20 byte 50 byte 50 byte
D Data table (D) 3000 byte 3000 byte 8000 byte 8000 byte
Subprogram (P) 512 programs 512 programs 2000 programs 2000 programs
Label (L) 9999 labels 9999 labels 9999 labels 9999 labels
Fixed timer Timer No. 100 Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified devices specified devices specified
Input/output
D I/O link (I) Max. 1024 points max. 1024 points max. 1024 points max. 1024 points max.
(O) Max. 1024 points max. 1024 points max. 1024 points max. 1024 points max.
D I/O card (I) Max. 312 points max. 312 points max. 312 points max. 312 points max.
(Note 4) (O) Max. 240 points max. 240 points max. 240 points max. 240 points max.
Sequence program Flash ROM Flash ROM Flash ROM Flash ROM
storage media 128KB (16,000 128KB (16,000 steps 128KB (16,000 128KB (16,000 steps
steps option or less) option) steps option or less) option)
256KB (24,000 steps 256KB (24,000 steps 256KB (24,000 steps 256KB (24,000 steps
option) option) option) option)
512KB (24,000 steps 512KB (24,000 steps
option) option)
1MB (24,000 steps 1MB (24,000 steps
option) option)
13
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB. The size of message is fixed 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 That is the maximum number when 2 I/O cards (with 156 inputs/120 outputs) are used.
5 Application PMC for FANUC Series 16MODEL C loader control function is PMCSA1.
14
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Series 21MODEL B/
Model Series 210MODEL B
PMCSA1 PMCSA3
Programming method
Ladder Ladder
language
Program capacity
D Ladder (step) (Note 1,4) Approx. 3, 000 Approx. 3, 000
Approx. 5, 000 Approx. 5, 000
Approx. 8, 000
Approx.12, 000
Approx.16, 000
D Symbol/Comment (Note 2,4) 1 to 128KB 1 to 128KB
(Note 4)
D Message 0.1 to 64KB 0.1 to 64KB
D Language only
I/O
D I/O link (I) 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max.
D I/O card (I) 96 points max. 96 points max.
(O) 72 points max. 72 points max.
(Note 5) (Note 5)
15
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB.
The size of message is fixed 2.1KB. The maximum size of
a symbol and that of a comment are 64KB each.
3 When extended memory is not specified in the 4082 series
(ordering drawing No.: A02B0210H020 or
A02B0210H022), the program capacity is 64KB.
4 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
5 Output points of I/O card in 4082 series are following ;
PMCSA1 : 64points, PMCSA3 : 64points
6 As values indicated with an asterisk (*) in the table, former
versions of the programming manual and brochure have
listed the mean processing time of basic commands, but this
manual lists the execution time for one step. The actual
ladder program execution performance (speed) of each
PMC has not been changed.
7 Application PMC for FANUC Series 21B loader control
function is PMCSA1.
16
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Basic instruction processing time 5.0 sec/step 0.085 sec/step 0.085 sec/step
Program capacity
D Ladder (step) (Note 1,2) About 3,000 About 3,000 About 3,000
About 5,000 About 5,000 About 5,000
About 8,000 About 8,000 About 8,000
About 12,000 About 12,000 About 12,000
About 16,000 About 16,000
About 24,000 About 24,000
About 32,000
D Symbol & Comment (Note 2) 1KB to 128KB 1KB to 128KB 1KB to 128KB
D Message (Note 2) 0.1KB to 64KB 0.1KB to 64KB 0.1KB to 64KB
I/O
D I/O link (Input) 1024 points maximum 1024 points maximum 2048 points maximum
(Note 4) (Note 5)
(Output) 1024 points maximum 1024 points maximum 2048 points maximum
(Note 5)
Sequence program storage media Flash ROM Flash ROM Flash ROM
128KB 128KB (16,000 128KB (16,000
steps option or less) steps option or less)
256KB (24,000 256KB (24,000
steps option or less) steps option)
384KB(32,000/40,000
steps option)
17
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 The PMCSA1 can be used with the loader control function of the FANUC Series
16i/18i/21i/160i/180i/210i.
4 For I/O of the FANUC Series 16i/18i/21i/160i/180i/210i, only the I/O link is used.
5 1024 points maximum (channel 1)+1024 points maximum (channel 2)= 2048 points maximum.
You can use the I/O Link channel 2 only when CNC hardware support the I/O Link 2channel
and optional I/O Link expansion is provided with CNC.
18
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
FANUC Series
FANUC Series 21i/210i
21i/210i
Model
PMCSA1 PMCSA5 PMCSA5 PMCSB6
(Loader control)
Ladder
Programmingmethod Ladder Ladder Ladder
Step sequence
Basic instruction 5.0 sec/ step 5.0 sec/ step 0.085 sec/ step 0.085 sec/ step
processing time
Program capacity About 3,000 About 3,000 About 3,000 About 3,000
D Ladder (step) About 5,000 About 5,000 About 5,000 About 5,000
(Note 1,2) About 8,000 About 8,000 About 8,000
About 12,000 About 12,000 About 12,000
About 16,000 About 16,000
About 24,000
About 32,000
D Symbol & Comment 1KB to 128KB 1KB to 128KB 1KB to 128KB 1KB to 128KB
(Note 2)
D Message (Note 2) 0.1KB to 64KB 0.1KB to 64KB 0.1KB to 64KB 0.1KB to 64KB
Instruction
(Basic instruction) 12 12 14 14
(Functional instruction) 49 49 66 67
Internal relay (R) 1100 bytes 1100 bytes 1118 bytes 3200 bytes
Message request (A) 25 bytes (200 points) 25 bytes (200 points) 25 bytes (200 points) 125 bytes (1000 points)
Nonvolatile memory
D Variable timer (T) 80 bytes (40 each) 80 bytes (40 each) 80 bytes (40 each) 300 bytes (150 each)
D Counter (C) 80 bytes (20 each) 80 bytes (20 each) 80 bytes (20 each) 200 bytes (50 each)
D Keep replay (K) 20 bytes 20 bytes 20 bytes 50 bytes
D Data table (D) 1860 bytes 1,860 bytes 1860 bytes 8,000 bytes
Subprogram (P) 512 each 2000 each
Label (L) 9999 each 9999 each
Fixed timer 100 each 100 each 100 each 100 each
(Timer number
specification)
I/O
D I/O link (Input) 1024 points maximum 1024 points maximum 1024 points maximum 2048 points maximum
(Note 4) (Note 5)
(Output) 1024 points maximum 1024 points maximum 1024 points maximum 2048 points maximum
(Note 5)
Sequence program storage Flash ROM Flash ROM Flash ROM Flash ROM
media 128KB 128KB 128KB 128KB (16,000
steps option or less)
256KB (24,000
steps option)
384KB(32,000/40,000
steps option)
19
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 The PMCSA1 can be used with the loader control function of the FANUC Series
16i/18i/21i/160i/180i/210i.
4 For I/O of the FANUC Series 16i/18i/21i/160i/180i/210i, only the I/O link is used.
5 1024 points maximum (channel 1)+1024 points maximum (channel 2)= 2048 points maximum.
You can use the I/O Link channel 2 only when CNC hardware support the I/O Link 2channel
and optional I/O Link expansion is provided with CNC.
20
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder, symbols/
comments, messages, etc.) never exceed the storage size
of sequence program. The size of them influences the
capacity of others.
21
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
Series 15MODEL B
Model PMCNB PMCNB2
(4048 Series)
Programmingmethod language Ladder Ladder
Clanguage Clanguage
Step sequence
Number of ladder level 3 3
Level1 Cycle Time 8 ms 8 ms
Basic instruction 0.1 0.1
Execution Time (s/step) (s/step)
Program capacity Approx. 8,000 Approx. 8,000
S Ladder(step) (Note 1,2) Approx.16,000 Approx.16,000
Approx.24,000 Approx.24,000
S Symbol/Comment 1 to 128KB 1 to 128KB
(Note 2)
S Message (Note 2) 0.1 to 64KB 0.1 to 64KB
22
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder, symbols/
comments, messages, etc.) never exceed the storage size
of sequence program. The size of them influences the
capacity of others.
3 Please refer to (4) for PMCNB(4047 Series).
The abovementioned table is a value for PMCNB/NB2
(4048 Series).
23
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
3 The one and only I/O of the FANUC Series 15i is the I/O
Link.
24
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
25
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 Maximum of basic input/output points are 1024/1024 points. I/O Link expansion option extends
the maximum to 2048/2048 points.
26
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
Series 0iA
Model
PMCSA1 PMCSA3
Programmingmethod Ladder Ladder
Number of ladder levels 2 2
Level1 cycle time 8 ms 8 ms
Basic instruction execution time 5.0 sec/step 0.15 sec/step
Program capacity
S Ladder (step) (Note 1) Approx. 3,000 Approx. 3,000
Approx. 5,000 Approx. 5,000
Approx. 8,000
Approx. 12,000
Approx. 16,000
S Symbol/Comment (Note 2,3) 1 to 128KB 1 to 128KB
S Message (Note 2,3) 0.1 to 64KB 0.1 to 64KB
Instruction (Basic) 12 kinds 14 kinds
(Functional) 49 kinds 66 kinds
Internal relay (R) 1100 bytes 1118 bytes
Message request (A) 25 bytes (200 points) 25 bytes (200 points)
Nonvolatile
S Var.timer (T) 80 bytes (40 each) 80 bytes (40 each)
S Counter (C) 80 bytes (20 each) 80 bytes (20 each)
S Keep replay (K) 20 bytes 20 bytes
S Data table (D) 1860 bytes 1860 bytes
Subprogram (P) 512 programs
Label (L) 9999 labels
Fixed timer Timer No.100 devices specified Timer No.100 devices specified
Input/Output
S I/O Link (I) Max. 1024 points maximum 1024 points maximum
(master) (O) Max. 1024 points maximum 1024 points maximum
S Builtin I/O (I) Max. 96 points max. 96 points max.
(O) Max. 64 points max. 64 points max.
Flash ROM Flash ROM
128KB 128KB
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However, the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 The size of a symbol and that of a comment are fixed 32KB. The size of message is fixed 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
27
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
1.2
SUMMARY OF
SPECIFICATION OF
LADDER PROGRAM Table 1.2 Summary of specification of ladder program (1)
NOTE
1 The same ROM cannot be shared by different models. The
ROM must be rewritten using the offline programmer.
2 It is possible that convert the signal address by the
operation of SIGNAL ADDRESS CONVERSION
(APPENDIX G).
3 The setting item of system parameter IGNORE DEVIDE
CODE is not provided.
4 Use the DISPB (SUB41) command instead.
5 The range of the COM (SUB9) and JMP (SUB10)
commands cannot be specified with the number of coils.
Specify the range with the COME (SUB29) and JMPE
(SUB30) commands. If specify the number of coils, no error
messages will be displayed while editing, but ALARM093
will be displayed when send the data to RAM.
28
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
PMC
PMC SB3/ PMC
PMC PMC PMC PMC PMC
Model SA3/ SB4/ SC3/
SA1 SA2 SB SB2 SC
SA5 SB5/ SC4
SB6
PMC address Interfaces between the PMC and CNC (F and
Compatible (Note 8)
G)
Interfaces between the PMC and machine (X
Compatible
and Y)
Subprogram, label (P and L) Not
Not provided Provided Not provided Provided Provided
provided
Others (R, A, C, K, D, T) Compatible (Note 1)
Ladder ROM format (object) Incompatible (Note 2)
program
compatibility Source format (mnemonic) Compatible (Note 3)
29
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 The internal relay and the data table in nonvolatile memory
for the PMC-SB3, SC, SC3 are extended, compared with
those for other models.
2 The same ROM cannot be shared by different models. The
ROM must be rewritten using the offline programmer.
However, the ROM for the PMCSA2 can be used for the
PMCSA3 and the ROM for the PMCSB2 can be used for
the PMCSB3.
3 The program can be converted by reinputting it after it is
output in a source format.
4 The setting item of system parameter IGNORE DEVIDE
CODE is not provided.
5 Use the DISPB (SUB41) command instead.
6 The range of the COM (SUB9) and JMP (SUB10)
commands cannot be specified with the number of coils.
Specify the range with the COME (SUB29) and JMPE
(SUB30) commands.
7 For the FS18A (PMCSA1/SA2/SA3), only the MMCIII can
be used. For the FS18B, the MMCIII and MMCIV can be
used.
For the FS21B (PMCSA1/SA3), the MMCIV can be used.
For the FS16i/18i/21i, the MMCIV can be used.
For the FS16C/18C, the MMCIV can be used.
8 In the PMCSB4, SB6, and SC4, interface extension is
made. The extended portion of the interface is not
compatible with other PMCs.
30
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
NOTE
1 Management of internal relay address and that of datatable
are different between the PMCNB/NB2 and the PMCNA.
2 The same ROM cannot be shared by different models.
The ROM must be rewritten using the offline programmer.
3 The data can be converted by outputting in the source
format and then inputting again.
Moreover, a part of functional instruction is not compatible
between PMCNB/NB2 and PMCNA.
31
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 Compatibility is not maintained for the interface unique to
the Series 15i.
2 The PMCNB6 of the Series 15i is highly compatible with
the PMCNB2 of the Series 15B. The PMCNB2 and
PMCNB6 differ from each other in:
(1)Execution timedependent ladder
As instruction execution becomes faster, the following
changes may occur in the execution timing:
S Change in the execution cycle of the second ladder
level
S Change in timing for the secondlevel split and
firstlevel execution
S Change in timing for ladder execution and I/O transfer
(2)Window functions
The functional instructions that can be used vary
between the PMCNB2 and PMCNB6. See Chapter 5,
PMC Functional Instructions in Part I, PMC Sequence
Program.
(3)Screen manipulation
The operating procedure for the PMC screen for the
PMCNB6 of the 15i varies slightly from that for the
PMCNB2 of the 15B.
See Chapter 7, PMCNB6 Screen Manipulation, in
Part II, PMC Manipulation.
(4)Step sequence
For the PMCNB6, the step sequence is optional.
3 The C option is necessary.
32
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
16i/18i/21iA 16i/18i/21iB
Model
SA5 SB5 SB6 SB7
PMC address PMCCNC interface (F, G) F0 to F255 Expanded to F0 Expanded to F0
G0 to G255 to F511 and G0 to F767 and G0
to G511 to G767
PMCmachine interface (X, Y) X0 to X127 X200 to X327 Compatible
Y0 to Y127 and Y200 to
Y327 are added.
Area used by management software (K) K17 to K19 Changed to Expanded to
K900 to K909 K900 to K919
Basic instruction Compatible
Function END3 No Yes
instruction CTRB (additional)
MOVD
DISP Yes No
33
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
CAUTION
1 The above table does not contain simple addition of reserved areas for PMC addresses that
are not used by the ladder.
2 Execution timedependent ladder
As instruction execution becomes faster, the following changes may occur in the execution
timing:
S Change in the execution cycle of the second ladder level
S Change in timing for the secondlevel split and firstlevel execution
S Change in timing for ladder execution and I/O transfer
A ladder which can be operated on the 16i/18i/21iA must also be checked for operation on
the 16i/18i/21iB system.
3 Changes in memory capacities required for a sequence program (PMCSB7)
As described in Section 2.8, the memory capacities required for the system and
symbol/comment data have been changed. As a result, the capacity of flash ROM is increased
as compared with the PMCSA5/SB5/SB6, even for the same source program. If a created
sequence program exceeds the capacity of flash ROM, add the step count option or delete
unnecessary symbols and comments.
4 Screen display and operation
The PMCSB7 has much the same screen display/operation system as the
PMCSA5/SB5/SB6. Some operations for the PMCSA5/SB5/SB6 have been modified to
improve operability and functionality, however. The same goes for the PMCSA1. For details,
see Chapter 1, SCREEN OPERATION FOR PMCSA1/SB7 in Part V.
5 PMC parameter input/output (PMCSB7)
With increase in size of a PMC parameter (T, C, K, and D areas), the data format used for
inputting PMC parameters from a memory card or floppy disk (FANUC Handy File) or outputting
them to it on the PMC I/O screen has been extended.
S PMC parameters output by the PMCSA5/SB5/SB6 can be read by the PMCSB7.
S PMC parameters output by the PMCSB7 cannot be read by the PMCSA5/SB5/SB6.
An extension relay (E area) has been added as a PMC address. A PMC parameter input or
output by the PMCSB7 contains the E area. If a PMC parameter output by the PMCSB7 is
read, the E area is initialized to the status when the PMC parameter is output.
34
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
35
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
CPU
Output circuit
Y0.0
36
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
1.4 After deciding the control object specifications and calculating the
number of input/output signal points, create the interface specifications.
CREATION OF Use the input/output signal interface tables in the CONNECTING
INTERFACE MANUAL for the creation of the interface specifications. Enter the signal
SPECIFICATIONS names (within six characters) in the input/output signal interface table
according to the type of the connected signals. For the input/output
(STEPS 1 TO 3)
signals, see CONNECTION MANUAL.
1.5 Express the control operations decided by step 2 by use of the ladder
diagram (relay circuit diagram). For the functions of the timer, counter,
CREATION OF etc. which cannot be expressed with the relay symbols (i.e. the functional
LADDER DIAGRAM instructions), express them with the symbols assigned to the functional
(STEP 4) instructions.
In the offline programmer and built-in editing function, the sequence
program can be entered in the ladder diagram format from the keys of the
CRT/MDI panel or from the keys of the keyboard of the SYSTEM P
series.
Also, the entered sequence program can be output to the printer in the
ladder diagram format using the SYSTEM P series.
Therefore, entry can be performed while the ladder diagram is created on
the CRT screen at the time of sequence program entry. Thus no ladder
diagram may be prepared in advance.
However, in order to shorten the time occupied by the equipment for the
creation of the sequence program or to efficiently create the sequence
program, it is recommended to prepare the ladder diagram in advance.
The ladder diagram is used as a maintenance diagram by the personnel in
charge of maintenance in FANUC, the machine tool builder and end user
in the world. Therefore, the ladder diagram must be easy to understand.
Signal names (max. six characters) can be entered to the input/output
signals, comments (max. 30 characters) can be entered to the relay coil,
and comments (max. 30 characters) can be entered to the input/output
signals of the address tables at the time of entry of the sequence program.
Be sure to enter understandable signal names and comments as much as
possible.
37
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
1.6 In the coding, the contents of control expressed in the ladder diagram are
converted into PMC instructions. In the case of using the offline
CODING (STEP 5) programmer or ladder diagram editting, since sequence program entry can
be performed in the simple ladder diagram format, it is normally
unnecessary to perform coding.
Coding is necessary only when the sequence program is punched on a
paper tape and entered from the paper tape.
Examples of the ladder diagram and the coding are shown in Fig. 1.6.
FIN
MF MF SF TF
Miscellaneous
function
F7.0 F 7.0 F 7.2 F 7.3 finish signal
SF G4.3
F7.2
TF MFIN SFIN TFIN
Address number,
Step number Instruction Remark
bit number
850 RD F7.0 MF
851 OR F7.2 SF
852 OR F7.3 TF
853 RD.NOT.STK F7.0 MF
854 OR R211.7 MFIN
856 AND.STK
857 RD.NOT.STK F7.2 SF
858 OR R211.5 SFIN
859 AND.STK
860 RD.NOT.STK F7.3 TF
861 OR R211.6 TFIN
862 AND.STK
863 WRT G4.3 FIN
Fig. 1.6
38
1. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM CREATING PROCEDURE
1.8 Check the sequence program and write it into the ROM after check is over.
The sequence program can be checked in two ways.
SEQUENCE
PROGRAM CHECK (1) Check by simulator
Instead of the machine, connect a simulator (consisting of lamps and
AND WRITE INTO switches). Instead of using input signals from the machine, enter
ROM (STEPS 8 TO 11) signals by turning on and off the switches according to the machine
movement. Check the output signals on the basis of the activation
of the lamps.
(2) Check by system operation
Perform checks by connecting the machine. Since it sometimes
happens that unexpected operations may be executed depending on
a sequence program, arrange for safety before starting operations.
(3) Writing into ROM
When check of the sequence program is over, write the sequence
program into the ROM. The ROMs to be used are as follows. Then,
the ROM into the CNC unit, and deliver it as a regular product to an
end user. Writing of the sequence program into the ROM,
maintenance and control thereof shall be performed by the machine
tool builder. For this purpose, FANUC provides the PMC Writer or
FA Writer as the ROM writer and the ROM or the ROM module that
is the PC board on which a ROM chip is mounted. Be sure to use
these devices for entering a sequence program in ROMs.
39
1. SEQUENCE PROGRAM
CREATING PROCEDURE PMC SEQUENCE PROGRAM B61863E/14
40
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
2 SEQUENCE PROGRAM
41
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
A C
E
A
C
(A)
(P.B)
A
C
A C
B
(B)
42
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
2.2 The sequence program is executed from the beginning of coding to the
end of coding of the ladder diagram in the sequence written. When the
REPETITIVE sequence program ends, the program starts over from the beginning. This
OPERATION is called repetitive operation.
The execution time from the beginning to the end of the ladder diagram
is called the sequence processing time, which varies according to the
control scale (the number of steps) and the size of the 1st level sequence.
The shorter the process time is, the better the signal response becomes.
43
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
2.3 A sequence program consists of three parts: 1st level sequence, 2nd level
sequence and 3rd level sequence. The 3rd level sequence part is added
PRIORITY OF to the models usable the 3rd level sequence. (see Fig. 2.3 (a)).
EXECUTION Sequence program
(1ST LEVEL, 2ND
1st level sequence part Specifies the end of the
LEVEL AND 3RD SUB 1
1st level sequence part.
LEVEL) Division 1
Division 2
2nd level sequence part
SUB 2 Division n
44
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
NC processing
Fig. 2.3 (b) Sequence in which the Sequence Program Is Executed (PMCSA1, SA2, SB and SB2)
Fig. 2.3 (c) Sequence in which the Sequence Program Is Executed (PMCSC)
(2) 1st level sequence part
Only shortwidth pulse signals are processed. These signals include
emergency stop, overtravel of each axis, reference point return
deceleration, external deceleration, skip, measuring position arrival
and feed hold signals.
(3) 3rd level sequence
The purpose of the 3rd level sequence is to execute such programs
as display processing or control status monitor having no direct
relation to the machine control (operator message, alarm display,
etc.), to lighten the load of the 2nd level program having a direct
relation to the machine control by transferring former programs to the
3rd level, and to shorten the PMC execution time (cycle time).
For PMCRC, when 3rd level program is not used, command SUB
48 (END3) following SUB 2 instruction.
(4) Divided system and undivided system
There is a model can use the divided system and undivided system
among the PMCs. In the divided system, a ladder program is divided
before being executed if all ladder program run regardless of the
sequence state (see Fig. 2.3 (d)).
For an actual ladder program, not all ladder program run. The PMC
cannot therefore be used effectively.
The PMC can execute the ladder program in the system for terminating
one cycle of the program using the time to execute the actual ladder
program (undivide system) as well as in the divided system.
The time required for the one cycle can be reduced by the effective
use of jump instructions in the ladder program.
Since the sequence using many functional instructions requires a lot
of processing time, the undivided system should be specified so that
the PMC is used more effectively (see Fig. 2.3 (e)).
To operate the PMC in the undivided system, set system parameter
IGNORE DIVIDE CODE to YES.
The PMC model usable only the undivided system, does not have
setting system parameter IGNORE DIVIDE CODE. It is always
45
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
B
Functional
instruction
C
Functional
instruction
A
Functional
instruction
B
Functional
instruction
C
Functional
instruction
(Ladders dedicated
Ladder B1 Ladder B2 Ladder B3 to each machine)
46
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
END1 (SUB 1)
END2 (SUB 2)
SP
D Sub program must be written between 2nd
D level program and 3rd level program.
SPE
SP
Sub program
SPE
SP
SPE
47
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
PROGRAM PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
STRUCTURING
With the conventional PMC, a ladder program is described sequentially.
By employing a ladder language that allows structured programming, the
following benefits are derived:
D A program can be understood and developed easily.
D A program error can be found easily.
D When an operation error occurs, the cause can be found easily.
Three major structured programming capabilities are supported.
(1) Subprogramming
A subprogram can consist of a ladder sequence as the processing unit.
Job A D D D f
FUNC D D D f
Job B
D
D
D
(2) Nesting
Ladder subprograms created in (1) above are combined to structure
a ladder sequence.
Main Program Sub Program1 Sub Program2
D
D
Job B D Job A12
Job An
48
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
PROCESS11 PROCESS11
STATE1 PROCESS1
PROCESS12
STATE2 PROCESS2
D PROCESS13
D
D
49
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
2.5 Input signals (M function, T function, etc.) from the CNC and those (cycle
start, feed hold, etc.) from the machine tool are sent to the PMC.
PROCESSING I/O
SIGNALS Signals for the CNC (cycle start, feed hold, etc.) and those for the machine
tool (tunret rotation, spindle stop, etc.) are output from the PMC.
Fig. 2.4 shows the relationship between these signals and the PMC.
Input signals are entered in the input memory of PMC and output signals
are issued from PMC.
As shown in Fig. 2.5, the input signals are synchronized only in the 2nd
level sequence part.
CNC PMC
Input memory of CNC Sequence program
Transmitted at the
start of 2nd level 2nd level synchronous
input signal memory
Output signals to
CNC
MT
Output signalmemory
50
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
51
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
NOTE
The status of the CNC input memory, input signals from
machine, CNC output memory and output signals to
machine can be checked by using the PC selfdiagnosis
function.
The selfdiagnosis number specified is the address number
used by the sequence program.
2.5.3 Signals input from the CNC are transferred to the PMC at intervals of 8
I/O Signals to CNC ms.
Signals output to the CNC are transferred from the PMC at intervals of
8 ms.
PMC I/O signals are generally transferred at intervals of 8 ms.
In this case, note that state of the input signals from the CNC does not
synchronize with that of the 1st level sequence program and the 2nd level
sequence program. By this reason, if an input signal from the CNC may
change while execution of the 1st level sequence program, for example,
some trouble may occur like example in Fig. 2.5.3 (a).
To avoid such trouble, write the state of signal TF in an internal relay at
the start of the 1st level sequence, then the 1st level sequence program
shall refer to the internal relay as signal TF. See Fig. 2.5.3 (b).
TF W1
TF W2
END 1
TF TFM
TFM W1
TFM W2
END 1
52
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
2.5.4 The status of the same input signal may be different in the 1st level and
Difference of Status of 2nd level sequences. That is, at 1st level, processing is performed using
input signal memory and at 2nd level, processing is performed using the
Signals between 1st 2nd level synchronous input signal memory. Therefore, it is possible for
Level and 2nd Level a 2nd level input signal to delay by a cycle of 2nd level sequence execution
at the worst, compared with a 1st level input signal.
This must be kept in mind when writing the sequence program.
A.M ON (short time width pulse signal)
Signal statesO B OFF
C OF
Differences drawn in Fig. 2.5.4 (a) and Fig. 2.5.4 (b) when the 1st level
sequence has been executed are as follows:
(a) Fig. 2.5.4 (a)
W2 may not be 1 even when W1=1. (Because the A.M signal may
be different at the 1st and 2nd levels.)
(b) Fig. 2.5.4 (b)
If W1=1, W2=1.
When performing the sequence shown in Fig. 2.5.4 (a), proceed
as follows:
At 1st level, perform a highspeed sequence when the A.M signal
changes (operating).
At 2nd level, perform sequence processing when the A.M signal
does not change (stopped).
A.M B A.M B
W1 W1
1st Level
END 1 END 1
A.M C W1 C
2nd Level W2 W2
53
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
54
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
2.7 The exact sequence processing time is displayed on the CRT screen when
the sequence programs have been completed. The time is 2nd level
SEQUENCE sequence division number n x 8 ms.
PROGRAM This section explains how to estimate processing times that are important
PROCESSING TIME in sequence control when the ladder diagram, the basis of sequence
program control, is almost complete.
(1) Processing time calculation units
Sequence processing time estimation is based on the basic
instructions (AND, OR, etc.). The execution time for a functional
instruction is given in the execution constant column of the
Functional Instruction Table. Converted to a basic instruction; that
is the number of basic instructions that a functional instruction is
equivalent to.
Processing time is determined for the above using the equation in
item below.
(2) Processing time estimation equation
The number of division (n) in the 2nd level sequence is determined
and the processing time is calculated using the following equations:
Sequence processing time =
n (number of division) 8 msec
(LT) sec
n= +1
(ET)sec (HT)sec
(n is an integer, fractions are omitted)
(a) (HT) is the execution time for the 1st level sequence section.
(HT)={(number of steps in basic instruction)+(sum of functional
instruction execution time constants) 10} (IT) sec
Execution time constant for END.1 (206) must be included in HT.
(b) (LT) is the execution time for the 2nd level sequence section.
(LT)={(number of steps in basic instruction)+(sum of functional
instruction execution time constants) 10} (IT) sec
END.2 execution time (127) must be included.
(c) (ET) is the execution time assigned to the 1st and 2nd level parts
out of 8 ms.
For PMCSB
(ET) = 1.25 ms = 1250s
For PMCSC (standard setting when LADDER EXEC = 100%)
(ET) = 5 ms = 5000s
(d) IT) is the execution constant for calculating the processing time.
The value is as follows:
(IT) = 0.15s
55
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
NOTE
For the PMCSB/SC, see the execution time constant of
each function instruction in Table 5 (b) in Section I5, PMC
FUNCTION INSTRUCTIONS.
56
B61863E/14 PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM
2.8 The following tables list memory capacities required for a sequence
program. Create a sequence program so that the total capacity of these
SEQUENCE items does not exceed the sequence program memory capacity.
PROGRAM MEMORY
CAPACITY
Table 2.8 (a) PMCSB7
Memory capacity
Type Item
(Note 1)
Memory capacity
Type Item
(Note 1)
Memory capacity
Type Item
(Note 1)
57
2. SEQUENCE PROGRAM PMC SEQUENCE PROGRAM B61863E/14
Memory capacity
Type Item
(Note 1)
NOTE
1 The total capacity of a sequence program (including all
items such as ladder, symbols/comments, and messages)
cannot exceed the capacity of the sequence program
storage memory. If the ladder, symbol/comment, or
message area is large, the size of another area may be
limited.
2 The PMC programmer may adjust arrangement of the areas
in the sequence program memory to improve processing
efficiency. As a result, up to 1K (1024) bytes may be added
to the total capacity of each type of data.
3 A fullwidth character requires double the capacity.
4 For each of halfwidth katakana characters and special
characters, and fullwidth hiragana characters, kanji
characters, and special characters, a capacity of 1 byte is
required per digit of the notation (including characters
preceding and following the character such as @) by
character code input. For details of notation by character
code input, refer to the paragraph describing DISPB in
Chapter 5, FUNCTIONAL INSTRUCTIONS.
58
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
3 ADDRESS
Internal relay
Machine
Note) CNC (MT)
signal PMC signal
Nonvolatile memory
(1) Counter
(2) Keep relay
(3) Data table
(4) Variable Timer
(a) The input/output signals with respect to the PMC, which are
indicated by the solid lines, are transferred via the receiver and the
driver of the I/O board.
(b) The input/output signals with respect to the PMC, which are
indicated by the broken lines, are transferred only in the memory
such as the RAM.
All of these signals can be displayed on the CRT/MDI panel.
(2) Address regulations
The address comprises the address number and the bit number in the
format as shown below.
59
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
X 127. 7
Bit number (0 to 7)
Address number (within four numerics after alphabet)
Model
Character Signal description Power Mate - D Power Mate- F Power Mate- H
PMC PA1 PMC- PA3 PMC- PA3 PMC- PA3
X Signal from the machine to the X0 to X127 X1000 to X1005 X0 to X127
PMC (MT to PMC) (I/O Link Master) X1020 to X1027 (I/O Link Master)
X1000 to X1003 (Slave) X1000 to X1003
(Builtin l/O Card) (Builtin I/O Card)
X1020 to X1051 X1020 to X1051
(I/O Link Slave) (I/O Link Slave)
Y Signal from the PMC to the Y0 to Y127 Y1000 to Y1003 Y0 to Y127
machine (PMC to MT) (I/O Link Master) Y1020 to Y1027 (I/O Link Master)
(Caution 3) Y1000 to Y1002 (Slave) Y1000 to Y1002
(Builtin I/ O Card) (Builtin l/O Card)
Y1020 to Y1051 Y1020 to Y1051
(I/O Link Slave) (I/O Link Slave)
F Signal from the NC to the PMC F0 to F255 F0 to F255 F0 to F255
(NC to PMC) F1000 to F1255
(Dual path control)
G Signal from the PMC to the NC G0 to G255 G0 to G255 G0 to G255
(PMC to NC) G1000 to G1255
(Dual path control)
R Internal relay (Caution 1) R0 to R999 R0 to R999 R0 to R999 R0 to R999
R9000 to R9000 to R9000 to R9117 R9000 to R9117
R9099 R9117
A Message request signal A0 to A24 A0 to A24 A0 to A24
C Counter C0 to C79 C0 to C79 C0 to C79
K Keep relay (Caution 2) K0 to K19 K0 to K19 K0 to K19
T Variable timer T0 to T79 T0 to T79 T0 to T79
D Data table D0 to D1859 D0 to D1859 D0 to D1859
L Label Number L1 to L9999 L1 to L9999 L1 to L9999
P Subprogram Number P1 to P512 P1 to P512 P1 to P512
CAUTION
1 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
2 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
3 I/O Link Master function is not available in the Power
MateMODEL F.
You cannot use the address X0127 and Y0127.
60
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Model
Character Signal description FS20A FS18A
PMC-SA1 PMC-SA3 PMC-SA1 PMC-SA2 PMC-SA3
X Signal from the machine to the X0 to X127 X0 to X127
PMC (MT to PMC) X1000 to X1013 (Caution 1) X1000 to X1019
Y Ssignal from the PMC to the Y0 to Y127 Y0 to Y127
machine (PMC to MT) Y1000 to Y1013 (Caution 1) Y1000 to Y1014
F Signal from the NC to the PMC F0 to F255 F0 to F255
(NC to PMC) F1000 to F125 F1000 to F1255
G Signal from the PMC to the NC G0 to G255 G0 to G255
(PMC to NC) G1000 to G1255 G1000 to G1255
R Internal relay (Caution 2) R0 to R999 R0 to R999 R0 to R999 R0 to R999
R9000 to R9099 R9000 to R9117 R9000 to R9099 R9000 to R9117
A Message request signal A0 to A24 A0 to A24
C Counter C0 to C79 C0 to C79
K Keep relay (Caution 3) K0 to K19 K0 to K19
D Data table D0 to D1859 D0 to D1859
T Variable timer T0 to T79 T0 to T79
L Label number L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P512
CAUTION
1 X1000 to X1007 and Y1000 to Y1007 are configured as a
matrix.
2 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
3 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
61
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Chara Model
Signal description
cter PMC-SB PMC-SB2 PMC-SB3 PMC-SC PMC-SC3 PMC-NB
X Signal from the machine to the X0 to X127 X0 to X127
PMC (MT to PMC) X1000 to X1039
Y Signal from the PMC to the Y0 to Y127 Y0 to Y127
machine (PMC to MT) Y1000 to Y1029
F Signal from the NC to the PMC F0 to F255 F0 to F319
(NC to PMC) F1000 to F1255
G Signal from the PMC to the NC G0 to G255 G0 to G511
(PMC to NC) G1000 to G1255
R Internal relay (Caution 1) R0 to R999 R0 to R999 R0 to R1499 R0 to R1499 R0 to R1499 R0 to R1499
R9000 to R9000 to R9000 to R9000 to R9000 to R9000 to
R9099 R9117 R9117 R9099 R9117 R9117
A Message request signal A0 to A24
C Counter C0 to C79
K Keep relay (Caution 2) K0 to K19
D Data table D0 to D1859 D0 to D2999
T Variable timer T0 to T79
L Label number L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P512
CAUTION
1 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
2 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
62
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Model
Signal descrip- Series
Character Series 16-MODEL B/Series 18-MODEL B
tion 18-MODEL B
PMC-SB3 PMC-SC3 PMC-SB4 PMC-SC4 PMC-SA1
X Signal from the X0 to X127 X0 to X127
machine to the PMC X1000 to X1019 X1000 to X1019
(MT to PMC) X1020 to X1039 X1020 to X1039
Y Signal from the PMC Y0 to Y127 Y0 to Y127
to the machine (PMC Y1000 to Y1014 Y1000 to Y1014
to MT) Y1020 to Y1034 Y1020 to Y1034
F Signal from the NC to F0 to F255 F0 to F255 F0 to F511 F0 to F511 F0 to F255
the PMC (NC to F1000 to F1255 F1000 to F1255 F1000 to F1511 F1000 to F1511 F1000 to F1255
PMC) F2000 to F2511 F2000 to F2511
G Signal from the PMC G0 to G255 G0 to G255 G0 to G511 G0 to G511 G0 to G255
to the NC (PMC to G1000 to G1255 G1000 to G1255 G1000 to G1511 G1000 to G1511 G1000 to G1255
NC) G2000 to G2511 G2000 to G2511
R Internal relay R0 to R1499 R0 to R1499 R0 to R2999 R0 to R2999 R0 to R999
R9000 to R9117 R9000 to R9117 R9000 to R9199 R9000 to R9199 R9000 to R9099
A Message request A0 to A24 A0 to A24 A0 to A124 A0 to A124 A0 to A24
signal
C Counter C0 to C79 C0 to C79 C0 to C199 C0 to C199 C0 to C79
K Keep relay K0 to K19 K0 to K19 K0 to K39 K0 to K39 K0 to K19
K900 to K909 K900 to K909
T Data table T0 to T79 T0 to T79 T0 to T299 T0 to T299 T0 to T79
D Variable timer D0 to D2999 D0 to D2999 D0 to D7999 D0 to D7999 D0 to D1859
L Label number L1 to L9999 L1 to L9999 L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P512 P1 to P2000 P1 to P2000
63
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Model
Character Signal description Series 16-MODEL C/Series 18-MODEL C
PMC-SB5 PMC-SC3 PMC-SB6 PMC-SC4
X Signal from the machine to the PMC (MT to X0 to X127
PMC) X1000 to X1019
X1020 to X1039
Y Signal from the PMC to the machine (PMC Y0 to Y127
to MT) Y1000 to Y1014
Y1020 to Y1034
F Signal from the NC to the PMC (NC to F0 to F255 F0 to F255 F0 to F511 F0 to F511
PMC) F1000 to F1255 F1000 to F1255 F1000 to F1511 F1000 to F1511
F2000 to F2511 F2000 to F2511
G Signal from the PMC to the NC (PMC to G0 to G255 G0 to G255 G0 to G511 G0 to G511
NC) G1000 to G1255 G1000 to G1255 G1000 to G1511 G1000 to G1511
G2000 to G2511 G2000 to G2511
R Internal relay R0 to R1499 R0 to R1499 R0 to R2999 R0 to R2999
R9000 to R9117 R9000 to R9117 R9000 to R9199 R9000 to R9199
A Message request signal A0 to A24 A0 to A24 A0 to A124 A0 to A124
C Counter C0 to C79 C0 to C79 C0 to C199 C0 to C199
K Keep relay K0 to K19 K0 to K19 K0 to K39 K0 to K39
K900 to K909 K900 to K909
T Data table T0 to T79 T0 to T79 T0 to T299 T0 to T299
D Variable timer D0 to D2999 D0 to D2999 D0 to D7999 D0 to D7999
L Label number L1 to L9999 L1 to L9999 L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P512 P1 to P2000 P1 to P2000
64
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Model
Character Signal description Series 21/210-MODEL B
PMC-SA1 PMC-SA3
X Signal from the machine to the X0 to X127
PMC (MT to PMC) X1000 to X1011
Y Signal from the PMC to the Y0 to Y127
machine (PMC to MT) Y1000 to Y1008 (Note)
F Signal from the NC to the PMC F0 to F255
(NC to PMC) F1000 to F1255
G Signal from the PMC to the NC G0 to G255
(PMC to NC) G1000 to G1255
R Internal relay R0 to R1999 R0 to R1499
R9000 to R9099 R9000 to R9117
A Message request signal A0 to A24
C Counter C0 to C79
K Keep relay K0 to K19
D Data table D0 to D1859
T Variable timer T0 to T79
L Label number L1 to L9999
P Subprogram number P1 to P512
NOTE
The Y addresses for the 4082 series are Y0 to Y127 and
Y1000 to Y1007.
65
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Model
Sym-
Type of signal FANUC Series 16i/160i/18i/180iA
bol
PMCSB5 PMCSB6
X Signal from the machine to PMC X0 to X127 X0 to X127
(MT PMC) (Note 1) X200 to X327 (Note 2)
(Note 1)
Y Signal from the PMC to machine Y0 to Y127 Y0 to Y127
(PMC MT) (Note 1) Y200 to Y327 (Note 2)
(Note 1)
F Signal from the NC to PMC F0 to F255 F0 to F511
(NC PMC) F1000 to F1255 F1000 to F1511
F2000 to F2511
G Signal from the PMC to NC G0 to G255 G0 to G511
(PMC NC) G1000 to G1255 G1000 to G1511
G2000 to G2511
R Internal relay R0 to R1499 R0 to R2999
R9000 to R9117 R9000 to R9199
A Message request signal A0 to A24 A0 to A124
C Counter C0 to C79 C0 to C199
K Keep relay K0 to K19 K0 to K39
K900 to K909
D Variable timer T0 to T79 T0 to T299
T Data table D0 to D2999 D0 to D7999
L Label number L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P2000
NOTE
1 The addresses (X1000 and up, Y1000 and up) cannot be assigned for I/O. Never use X1000
and up, or Y1000 and up.
2 I/O of the I/O Link channel 2 can be assigned to the addresses (X200 to X327, Y200 to Y327).
You can use the I/O Link channel 2 only when CNC hardware support the I/O Link 2channel
and optional I/O Link expansion is provided with CNC. And to assign to these areas, it is
necessary to use programming software that supports the I/O Link expansion.
66
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Model
Sym-
Type of signal FANUC Series 21i/210iA
bol
PMCSA1 PMCSA5 PMCSB6
X Signal from the machine to PMC X0 to X127 (Note 1) X0 to X127 (Note 1)
(MT PMC) X200 to X327 (Note 2)
NOTE
1 The addresses (X1000 and up, Y1000 and up) cannot be assigned for I/O. Never use X1000
and up, or Y1000 and up.
2 I/O of the I/O Link channel 2 can be assigned to the addresses (X200 to X327, Y200 to Y327).
You can use the I/O Link channel 2 only when CNC hardware supports the I/O Link 2channel
and optional I/O Link expansion is provided with CNC. And to assign to these areas, it is
necessary to use programming software that supports the I/O Link expansion.
67
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Model
Sym-
Signal description FANUC Power Mate iMODEL D/H
bol
PMCSB5 PMCSB6
X Input signal from the machine to the X0 to X127 (I/O Link Master) X0 to X127 (I/O Link Master)
PMC (MT to PMC) X1000 to X1003 (Builtin I/O) X1000 to X1003 (Builtin I/O)
X1020 to X1051 (I/O Link Slave) X1020 to X1051 (I/O Link Slave)
Y Output signal from the PMC to the Y0 to Y127 (I/O Link Master) Y0 to Y127 (I/O Link Master)
machine (PMC to MT) Y1000 to Y1003 (Builtin I/O) Y1000 to Y1003 (Builtin I/O)
Y1020 to Y1051 (I/O Link Slave) Y1020 to Y1051 (I/O Link Slave)
F Input signal from the NC to the PMC F0 to F255 F0 to F511
(NC to PMC) F1000 to F1255 F1000 to F1511
F2000 to F2511
G Output signal from the PMC to the G0 to G255 G0 to G511
NC (PMC to NC) G1000 to G1255 G1000 to G1511
G2000 to G2511
R Internal relay R0 to R1499 R0 to R2999
R9000 to R9117 R9000 to R9199
A Message request signal A0 to A24 A0 to A124
C Counter C0 to C79 C0 to C199
K Keep relay K0 to K19 K0 to K39
K900 to K909
T Variable timer T0 to T79 T0 to T299
D Data table D0 to D2999 D0 to D7999
L Label number L1 to L9999 L1 to L9999
P Subprogram number P1 to P512 P1 to P2000
68
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Model
Series 15-MODEL B
Character Signal description
PMC-NB
PMC-NB2
(4048)
X Input signal from the machine to X0 to X127
the PMC (MT to PMC)
Y Output signal from the PMC to Y0 to Y127
the machine (PMC to MT)
F Input signal from the NC to the F0 to F319
PMC (NC to PMC)
G Output signal from the PMC to the G0 to G511
NC (PMC to NC)
R Internal relay R0 to R1499 R0 to R1499
R9000 to R9099 R9000 to R9117
A Message request signal A0 to A24 A0 to A124
C Counter (Nonvolatile memory) C0 to C79 C0 to C199
K Keep relay (Nonvolatile memory) K0 to K19 K0 to K39
K900 to K909
D Data table (Nonvolatile memory) D0 to D2999 D0 to D7999
T Variable timer T0 to T79 T0 to T299
(Nonvolatile memory)
L Label number L1 to L9999
P Subprogram number P1 to P512 P1 to P2000
CAUTION
1 R9000 to R9199 are areas reserved for the PMC system
program;
these areas cannot be used for output by a sequence
program.
2 K17 to K19 or K900 to K909 are areas reserved for the PMC
system program;
these areas cannot be used for output by a sequence
program.
3 Please refer to (3) PMCNB(Series 4047).
69
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Model
Character Signal description FANUC Series 15i
PMCNB6
X Input signal from machine to PMC X0 to X127
(MTPMC)
Y Output signal from PMC to machine Y0 to Y127
(PMCMT)
F Input signal from the NC to PMC F0 to F511
(NCPMC)
G Output signal from the PMC to NC G0 to G511
(PMCNC)
R Internal relay R0 to R2999
R9000 to R9199
A Message request signal A0 to A124
C Counter C0 to C199
K Keep relay K0 to K39
K900 to K909
T Variable timer T0 to T299
D Data table D0 to D7999
L Label number L1 to L9999
P Subprogram number P1 to P2000
70
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Control type
Address Type of signal Series 16i/18i/21iB
PMCSA1 PMCSB7
X Input signal from machine tool to X0 to X127 X0 to X127
PMC (MTPMC) X200 to X327*1
X1000 to X1127*2
Y Output signal from PMC to Y0 to Y127 Y0 to Y127
machine tool (PMCMT) Y200 to Y327*1
Y1000 to Y1127*2
F Input signal from NC to PMC F0 to F255 F0 to F767*3
(NCPMC) F1000 to F1767*4
F2000 to F2767*4
F3000 to F3767*5
G Output signal from PMC to NC G0 to G255 G0 to G767*3
(PMCNC) G1000 to G1767*4
G2000 to G2767*4
G3000 to G3767*5
R Internal relay R0 to R999 R0 to R7999
R0 to R9099 R9000 to R9499*6
E Extra relay*7 E0 to E7999
A Message request A0 to A24 A0 to A249
Message display state*8 A9000 to A9249
C Counter C0 to C79 C0 to C399
C5000 to C5199*9
K Keep relay K0 to K19 K0 to K99
K900 to K919*10
T Variable timer T0 to T79 T0 to T499
T9000 to T9499*11
D Date table D0 to D1859 D0 to D9999
L Label number L1 to L9999
P Subprogram number P1 to P2000
71
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
CAUTION
1 These addresses are used for channel 2 of I/O Link. I/O link
expansion option is necessary.
2 This area is reserved for PMC. I/O can not be assigned in
it.
Dont use it in sequence program.
3 This area contains PMC reserve. Actual available
addresses depend on the configuration of CNC system.
4 This area is used for multi path system. It contains PMC
reserve. Actual available addresses depend on the
configuration of CNC system.
5 This area is for PMC reserve. Dont use it in sequence
program.
6 This area is used for PMC system software as special relay.
Please use these according to the explanation of each
address.
7 This area can be used equally as internal relay(R).
These relays (E) are nonvolatile type. However, these can
be input/output to/from memory card, etc, as PMC
parameter.
8 These addresses are message display state signals that
have onetoone correspondence to message display
request signal. It is impossible to write into these addresses.
9 This area is used for counter instruction (CTRB) that
requires preset value as fixed number.
10 This area is used for PMC control software. Please use
these signals according to each explanation.
11 This area is for PMC reserve. Dont use it in sequence
program.
72
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
FANUC Series 0i
Character Signal description
PMCSA1 PMCSA3
X Signal from machine to PMC X0 to X127
(MTPMC) X1000 to X1011
73
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.1 Addresses of the interfaces are outlined below. For details, see
CONNECTING MANUAL of Series 16.
ADDRESSES
BETWEEN PMC AND (1) Basic machine interface
CNC (PMCNC) (a) PMCzCNC related signals
The addresses for Series 15 are from F0 to F511, for the others are
from F0 to F255.
For details of the signals, see CONNECTING MANUAL of
CNC.
(b) PMC!CNC related signals
The addresses for Series 15 are from G0 to G511, for the others
are from G0 to G255.
For details of the signals, see CONNECTING MANUAL of
CNC.
74
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
3.2
ADDRESSES
BETWEEN PMC AND
MACHINE TOOL
(PMCMT)
NOTE
If both I/O Link and builtin I/O card are provided, the
address of the I/O card is valid.
(Except Series 15)
75
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Table 3.2.1 (a) Input signals whose addresses are fixed (Series 16/Series 18)
Address
Signal Symbol When the I/O Link When the builtin
is used I/O card is used
T Signal indicating that Xaxis measurement position is reached XAE X4.0 X1004.0
system
Signal indicating that Zaxis measurement position is reached ZAE X4.1 X1004.1
Function B for directly entering the measurement value of tool +MIT1 X4.2 X1004.2
compensation in the positive X direction
Function B for directly entering the measurement value of tool MIT1 X4.3 X1004.3
compensation in the negative X direction
Function B for directly entering the measurement value of tool +MIT2 X4.4 X1004.4
compensation in the positive Z direction
Function B for directly entering the measurement value of tool MIT2 X4.5 X1004.5
compensation in the negative Z direction
M Signal indicating that Xaxis measurement position is reached XAE X4.0 X1004.0
system
Signal indicating that Yaxis measurement position is reached YAE X4.1 X1004.1
Signal indicating that Zaxis measurement position is reached ZAE X4.2 X1004.2
Common Skip signal SKIP X4.7 X1004.7
Emergency stop signal *ESP X8.4 X1008.4
Deceleration signal for 1st axis reference position return *DEC1 X9.0 X1009.0
Deceleration signal for 2nd axis reference position return *DEC2 X9.1 X1009.1
Deceleration signal for 3rd axis reference position return *DEC3 X9.2 X1009.2
Deceleration signal for 4th axis reference position return *DEC4 X9.3 X1009.3
Deceleration signal for 5th axis reference position return *DEC5 X9.4 X1009.4
Deceleration signal for 6th axis reference position return *DEC6 X9.5 X1009.5
Deceleration signal for 7th axis reference position return *DEC7 X9.6 X1009.6
Deceleration signal for 8th axis reference position return *DEC8 X9.7 X1009.7
If the NC is a TT system, the signals for tool post 2 listed in Table 3.2.1
(b) are always assigned to the following addresses.
In addition, the system does not have the signals for tool post 1, DEC5
to DEC8 (X9.4 to X9.7).
Table 3.2.1 (b) Input signals whose addresses are fixed (TT) (Series 16/Series 18)
Address
Signal Symbol When the I/O Link is When the builtin
used I/O card is used
TT Signal indicating that Xaxis measurement position is reached XAE X13.0 X1013.0
system
Signal indicating that Zaxis measurement position is reached ZAE X13.1 X1013.1
Function B for directly entering the measurement value of tool +MIT1 X13.2 X1013.2
compensation in the positive X direction
Function B for directly entering the measurement value of tool MIT1 X13.3 X1013.3
compensation in the negative X direction
Function B for directly entering the measurement value of tool +MIT2 X13.4 X1013.4
compensation in the positive Z direction
Function B for directly entering the measurement value of tool MIT2 X13.5 X1013.5
compensation in the negative Z direction
Skip signal SKIP X13.7 X1013.7
Deceleration signal for 1st axis reference position return *DEC1 X7.0 X1007.0
Deceleration signal for 2nd axis reference position return *DEC2 X7.1 X1007.1
Deceleration signal for 3rd axis reference position return *DEC3 X7.2 X1007.2
Deceleration signal for 4th axis reference position return *DEC4 X7.3 X1007.3
76
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Table 3.2.1 (c) Input signals whose addresses are fixed (Series 15)
3.2.2 The sequence program addresses of each module should be decided by the
machine tool builder. These decided addresses are set to the programmer
Assignment of I/O
memory by using programmer.
Module Addresses
The address information being set to the programmer is written together
with a sequence program into ROM when a sequence program is written
into ROM. No I/O address is changeable in the written stage of the
address information into ROM. These addresses are determined by the
connecting position (group number and base number) of the I/O base unit,
each module position (slot number) mounted inside the I/O base unit and
each module name.
Fig. 3.2.2 (a) and Fig. 3.2.2 (b) indicate the configuration of the I/O base
unit.
For the specifications and details of connections of the I/O interface
module, I/O module, CPU module, and other modules, see Connection
Manual of each CNC.
PMC
AIF01A AIF01B
Base#0 Base#1
77
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
PMC
AIF01A AIF01B
Base#0 Base#1
Group
I/O Unit I/O Unit
#1
AIF01A AIF01B
Base#0 Base#1
Power Group
Mate #2
Base#0
78
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
79
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Operators panel connection unit I/O card D /8 Input: 8 bytes Ordering information:
A16B22000661 (sink type)
/4 Output: 4 bytes A16B22010731 (source type)
80
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
81
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 See Section 3.2.3, I/O Link connection unit assignment
method, for how to assign the I/O Link connection unit.
2 See Section 3.2.4, I/O Link MODEL B assignment
method, for how to assign the I/O Link MODEL B.
3 See Section 3.2.7, Distribution panel I/O connection panel
I/O module and distribution I/O operators panel I/O module
assignment method, for how to assign the connection
panel I/O module and operators panel I/O module.
4 If the version of the programming system (FANUC
LADDER, FANUC LADDERII) is too old to match a module
above, use the compatible module indicated in
parentheses. When a compatible module having the same
number of points is not available, use a compatible module
having a greater number of points.
5 On the PMCSB6/SB7 for Series 16i/18i/21i/160i/180i/
210i, when programming software supports the I/O Link
expansion, up to 16 groups of I/O Module can be assigned
to the I/O Link channel 2 area. To link the I/O Link channel
2 actually, the option of the I/O Link expansion is necessary.
CAUTION
For I/O Unit MODEL A, to use 3, 5, 6, or 7 bytes for
assignment, change the module name as follows.
Do not use 10241, /3, /5, /6, or /7 for the module name.
Module name
Before change After change
10241 /4
/3 /4
/5 /8
/6 /8
/7 /8
82
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
X000
X001
X002
X003
X004
X005 0 0 5 ID32A
X006 0 0 5 ID32A
Automatical X007 0 0 5 ID32A
set X008 0 0 5 ID32A
X009
NOTE
When assigning Connection unit 1, Connection unit 2 or
Connection unit for operators panel, set base number to 0
and slot number to 1.
83
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
(a) The head bytes of the analog input module (AD04A) and analog
output module (DA02A) must be assigned to even number addresses
of input address (XVVV), and output address (YVVV) each.
When reading the A/Dconverted digital value from the input
address (XVVV) or when writing the D/Aconverting value to the
output address (YVVV), readout and writein must always be
done in word (16 bits) units.
X000 0 0 1 ID16C
X001 0 0 1 ID16C
X002 0 0 2 ID16D
X003 0 0 2 ID16D
X004 1 0 1 IA16G
X005 1 0 1 IA16G
X006 1 0 2 IA16G
X007 1 0 2 IA16G
X008 2 0 1 ID16D
X009 2 a 0 1 ID16D
3.2.3 Concept:
I/O Link Connection In conventional data transfer, when data is to be transferred between CNC
Unit Assignment A and CNC B, the I/O units indicated by (a) (figure below) must be
connected with each other. (In this case, data can be transferred using any
I/O unit.)
(a)
I/ O Unit
Model A
$ I/ O Unit
Model A
I/ O Unit I/ O Unit
Model A Model A
The I/O link connection unit replaces these I/O units, thus eliminating the
need to connect them with, for example, cables.
84
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
I/ O Unit I/ O Unit
Model A Model A
Consequently, when the I/O link connection unit is used, the connections
become as shown below.
I/O Link
connection unit
I/ O Unit I/ O Unit
Model A Model A
Method of assignment: The assignment data depends on what type of I/O unit is to be replaced
with an I/O link connection unit.
Occupied
Input unit name at the time of assignment Output unit name at the time of assignment
address
1 to 8 / V (V represents a number from 1 to 8.) / V (V represents a number from 1 to 8.)
16 OC02I OC02O
32 OC03I OC03O
Setting: When a connection unit that occupies 16byte addresses is attached to the
input side in GROUP = 1, enter 1.0.1.OC02I.
NOTE
On the PMCSB6/SB7 for Series 16i/18i/21i/160i/180i/
210i, when programming software supports the I/O Link
expansion, I/O Link connection unit can be assigned to the
I/O Link channel 2 area. To link the I/O Link channel 2
actually, the option of the I/O Link expansion is necessary.
85
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
I/ O LINK
MASTER
[GROUP] =0
Power Mate
Operators panel
interface unit
[BASE] =0 [BASE] =1
86
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Setting: When an I/O unit model B assigned unit number 10 and occupying an area
of 3 bytes is attached to the input with GROUP = 1, enter 1.0.10.#3.
NOTE
On the PMCSB6/SB7 for Series 16i/18i/21i/160i/180i/
210i, when programming software supports the I/O Link
expansion, I/O UnitMODEL B can be assigned to the I/O
Link channel 2 area. But total number of groups of channel
1 and channel 2 of I/O Unit MODEL B available at the same
time is up to 8 when I/O device is connected to channel 2.
To link the I/O Link channel 2 actually, the option of the I/O
Link expansion is necessary.
3.2.5 When a Power MateD/H or Power Mate iD/H is used as I/O Link slave,
it need to be assigned on the I/O Link master side.
Power Mate On the I/O link slave side, fixed addresses are used, so that no address
Assignment needs to be assigned. (See Table 3 for the addresses used.)
An example of connection is shown below.
I/ O LINK
MASTER
[GROUP] =0
Operators panel
interface unit
Power Mate
87
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Setting: When a Power MateD of 256/256 points is connected with group 1, input
the undermentioned assignment data.
Input side : 1.0.1.OC03I
Output side : 1.0.1.OC03O
NOTE
On the PMCSB6/SB7 for Series 16i/18i/21i/160i/180i/
210i, when programming software supports the I/O Link
expansion, Power MateD/H or Power Mate iD/H can be
assigned to the I/O Link channel 2 area. To link the I/O Link
channel 2 actually, the option of the I/O Link expansion is
necessary.
3.2.6 On the FS16iLA, the laser oscillator is connected as part of the I/O Link.
FS16iLA Assignment 3 groups (DI/DO=256/256 points) are used for the laser oscillator
interface. 13 groups, 768/768 points (X0 to X95, Y0 to Y95) of the I/O
Link channel 1 can be used for the ladder diagram. 16 groups, 1024/1024
points (X200 to X327, Y200 to Y327) of the I/O Link channel 2 can be
used for the ladder diagram. For details on the laser oscillator connection,
see the FS16i Series CONNECTION MANUAL (B63003EN), FANUC
I/O Link connection.
Connection Example
FS16iLA
I/ O LINK
MASTER
Max. 13 groups
X0 to X95
Operators panel I/O module Y0 to Y95
Max. 3 groups
Laser oscillator
88
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
CAUTION
1 Addresses X96 to X127 and Y96 to Y127 cannot be used
in ladder diagrams.
2 When addresses X96 to X127 and Y96 to Y127 are
assigned, I/O points are not linked.
3 Connect the laser group to the end of the I/O link.
4 The I/O Link restart function cannot be used.
5 The OVERRIDE mode of the forced I/O function cannot be
used.
6 PMCSB5 does not support a laser.
3.2.7 To assign connection panel I/O and operators panel I/O modules to the
Distribution I/O I/O Link, set the group number with an I/O Link serial number (use a
smaller number toward the I/O Link master CNC, like 0, 1, and 2). Also,
Connection I/O Module set the base number and slot number to 0 and 1, respectively. If a
and Distribution I/O combination of the basic module and expansion modules is used as the
Operators Panel I/O connection panel I/O module, assign all the modules in one I/O Link
Module Assignment group as one unit. Unlike the I/O Unit MODELA, it is unnecessary to
Methods specify a slot number. An assignment example is shown below.
Assignment example
Example
CNC
JD1A
96 input points and 64 output points (X20 and higher, Y10 and higher)
Connection Expansion Expansion Expansion
panel I/O module 1 module 2 module 3
basic module
JD1B
JD1A
24 input points and 16 output points (X100 and higher, Y100 and higher)
Connection
panel I/O
basic module
JD1B
JD1A
89
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
X004 0 0 1 CM14I
X020 1 0 1 CM12I
X100 2 0 1 CM03I
Y000 0 0 1 CM08O
Y010 1 0 1 CM08O
Y100 2 0 1 CM02O
Assignment name To assign the connection panel I/O and operators panel I/O modules for
the I/O Link, it is necessary to use programming software that supports
these modules. If the programming software does not support the
modules, use compatible names for assignment described later.
Connection panel I/O Refer to the following manuals for an explanation of how the connection
panel I/O module signals are mapped:
D FANUC Series 16i/18i Connection Manual (Hardware)
B63003EN
D FANUC Series 21i Connection Manual (Hardware) B63083EN
D FANUC Series 15i Connection Manual (Hardware) B63323EN
D FANUC Power Mate i Connection Manual (Hardware) B63173EN
The assignment that is made for different configurations (such as basic
module configuration and combination basic/expansion module
configuration) is explained below.
CAUTION
Expansion modules must be connected in ascending order
with respect to the module number (1, 2, then 3). An
expansion module number cannot be skipped.
Basic module
JD1B
JD1A
90
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
91
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Operators panel I/O Refer to the following manuals for an explanation how the operators
module panel I/O module signals are mapped:
D FANUC Series 16i/18i Connection Manual (Hardware)
B63003EN
D FANUC Series 21i Connection Manual (Hardware) B63083EN
D FANUC Series 15i Connection Manual (Hardware) B63323EN
D FANUC Power Mate i D/H Connection Manual (Hardware)
B63173EN
(1) Operators panel I/O module
(A20B20020470 supporting matrix inputs)
92
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
48 input points
32 output points
93
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Compatible names for If your programming unit does not support the connection I/O or
assignment operators panel I/O module, use the following compatible names for I/O
Link assignment.
Assignment name Compatible name
CM03I /3
CM06I /6
CM09I OC01I
CM12I OC01I
CM13I OC02I
CM14I OC02I
CM15I OC02I
CM16I OC02I
CM02O /2
CM04O /4
CM06O /6
CM08O /8
NOTE
On the PMCSB6/SB7 for Series 16i/18i/21i/160i/180i/
210i, when programming software supports the I/O Link
expansion, I/O Connection, I/O Module and Operators
Panel I/O Module can be assigned to the I/O Link channel
2 area. But Manual Pulse Generator can not be assigned to
channel 2 area.
94
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
3.3 In each model, the following signals (bytes) can be used as internal relays.
This area is cleared to zero when the power is turned on.
INTERNAL RELAY
ADDRESSES (R)
Model PA1 PA3
Number of
1100 1118 1118
bytes
Number of
1100 1118 1618 3200 8500
bytes
Number of
bytes 1600 1618 3200
Number of
bytes 1618 3200 3200
95
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
Address number
7 6 5 4 3 2 1 0
R999
R1499
R2999
.
.
R7999
R9117
R9199
.
.
R9499
96
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
3.3.1 (1) R9000 (Operation output register for the ADDB, SUBB, MULB,
Area Managed by the DIVB, and COMPB functional instructions)
System Program 7 6 5 4 3 2 1 0
R9000
The result is 0.
The result is a negative
value.
The result overflows.
(2) R9000 (Error output for the EXIN, WINDR, WINDW, MMCWR,
MMCWW, MMC3R, and MMC3W functional instructions)
7 6 5 4 3 2 1 0
R9000
(3) R9002 to R9005 (Operation output registers for the DIVB functional
instruction)
The data remaining after the DIVB functional instruction is executed
is output.
(4) R9010 to R9027 (Interface area for the FNC9x functional
instruction) (PMCSC only)
The area is provided as an interface between the FNC9x functional
instruction to be executed and a desired function.
7 6 5 4 3 2 1 0
R9015
Addresses of the control data for SUB91
R9026
Addresses of the control data for SUB97
R9027
97
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
R9104
R9105
Addresses of the control data for SUB91
R9116
Addresses of the control data for SUB97
R9117
always OFF
always ON
CAUTION
In the beginning, every signal is OFF.
The signals of R9091.0 and R9091.1 are always set at the
beginning of 1st level in every cycle.
Every pulse signal (ONOFF) includes 8 ms errors.
98
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
R9091. 5
104ms 96ms
200ms
R9091. 6
504ms 496ms
1 second
R9015.0:STOP to RUN
transition signal
(LADDER program use only)
R9015.1:RUN to STOP
transition signal
(LADDER program use only)
7 6 5 4 3 2 1 0
R9091
99
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
(c) Behavior
R9015.0 1
STOP to RUN signal 0
R9015.1 1
RUN to STOP signal 0
R9091.2 1
RUN status signal 0
One Scan
of LADDER
NOTE
This signal is available only in LADDER program. Dont refer
this signal on other systems or programs, such a network
board, C executor program, FOCAS1 Ethernet or HSSB
liberally etc. because this signal has individual status in
each LADDER execution.
100
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
NOTE
1 This signal is available only in LADDER program. Dont refer
this signal on other systems or programs, such a network
board, C executor program, FOCAS1 Ethernet or HSSB
liberally etc. because this signal has individual status in
each LADDER execution level.
2 You can not handle this event using this signal at a power off
sequence and system alarm of CNC in which the execution
of LADDER and I/O scanning are completely shut down.
SUB65 Pxxxx
CALL
101
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.4 This area is used as message display request. In each model, the following
number of messages can be used. Where Number of Messages =
ADDRESSES FOR Number of Bytes 8
MESSAGE This area is cleared to zero when the power is turned on. For information
SELECTION about using the message, see the subsection 5.43.
DISPLAYED ON CRT
(A) Model PA1 PA3
Number of bytes 25 25
Number of bytes 25 25 25
SB3/ SB4/
Model SB SB2 SB7
SB5 SB6
102
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Address number
7 6 5 4 3 2 1 0
A24
A124
A249
103
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.5 This area is used as counters. In each model, the following number of
counters can be used. Where Number of Counters = Number of Bytes
ADDRESS OF /4
COUNTER (C) Since this area is nonvolatile, the contents of the memory do not disappear
even when the power is turned off.
Number of bytes 80 80
Number of counters 20 20
SA3/
Model SA1 SA2 SA5
Number of bytes 80 80 80
Number of counters 20 20 20
Number of counters 20 20 50
Number of counters 20 50 50
104
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Address number
7 6 5 4 3 2 1 0
C1 PMCSA1 PMCSC4
Counter PMCSA2 PMCNB2
No. 1 PMCSA3 PMCNB6
C2 current value
PMCSA5
C3 PMCSB
PMCSB2
PMCSB3
PMCSB5
PMCSC
PMCSC3
C76 Preset value PMCNB
C77 Counter
No. 20
C78 current value
C79
C197 Counter
No. 50
C198 current value
C199
C397 Counter
No. 100
C398 current value
C399
105
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.6 The area is used as keep relays and PMC parameters. In each model, the
following number of bytes can be used. Since this area is nonvolatile, the
ADDRESS OF KEEP contents of the memory do not disappear even when the power is turned
RELAY AND off.
NONVOLATILE
MEMORY CONTROL Model PA1 PA3
(K)
Number of bytes 20 20
Nonvolatile memory
control address K16 K16
SA3/
Model SA1 SA2 SA5
Number of bytes 20 20 20
Nonvolatile memory
control address K16 K16 K16
Number of bytes 20 20 50
Nonvolatile memory
control address K16 K16 K16
Number of bytes 20 50 50
106
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Address number
7 6 5 4 3 2 1 0
K0
PMCPA1 PMCSB4 PMCSB7
PMCPA3 PMCSB6
PMCSA1 PMCSC4
K1 PMCSA2 PMCNB2
PMCSA3 PMCNB6
PMCSA5
PMCSB
PMCSB2
PMCSB3
PMCSB5
PMCSC
PMCSC3
PMCNB
K19
K39
K99
K900
PMCSB4 PMCSB7
PMCSB6
PMCSC4
PMCNB2
PMCNB6
K909
K919
107
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.7 Data table is the area of nonvolatile memory. In each model, the following
number of bytes can be used.
ADDRESS OF DATA
TABLE (D)
Model PA1 PA3
SA3/
Model SA1 SA2
SA5
Number of bytes 1860 1860 1860
SB3/ SB4/
Model SB SB2 SB7
SB5 SB6
Number of bytes 1860 1860 3000 8000 10000
108
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Address number
7 6 5 4 3 2 1 0
D2999
D7999
D9999
109
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.8 This area is used by TMR instruction as variable timers. In each model,
the following number of timers can be used. Where Number of timers
TIMER ADDRESSES = Number of Bytes / 2
(T) Since this area is nonvolatile, the contents of the memory do not disappear
even when the power is turned off.
Number of bytes 80 80
Number of timers 40 40
SA3/
Model SA1 SA2 SA5
Number of bytes 80 80 80
Number of timers 40 40 40
SB3/ SB4
Model SB SB2 SB7
SB5 SB6
110
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
Address number
7 6 5 4 3 2 1 0
Timer
T298
No. 150
T299
Timer
T498
No. 250
T499
111
3. ADDRESS PMC SEQUENCE PROGRAM B61863E/14
3.9 Label addresses are used to specify jump destination labels (positions in
a sequence program) in the JMPB and JMPC instructions. The same label
LABEL ADDRESSES number can appear in different LBL instructions in the same sequence
(JMPB, JMPC, LBL) program as long as it is unique in the program unit (main program,
(L) subprogram). In each model, the following number of label can be used.
SA3/
Model SA1 SA2 SA5
SB3/ SB4/
Model SB SB2 SB5 SB6 SB7
112
B61863E/14 PMC SEQUENCE PROGRAM 3. ADDRESS
SA3/
Model SA1 SA2 SA5
SB3/ SB3/
Model SB SB2 SB5 SB6 SB7
113
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Signal name
Relay name
A B
RO
X8.1 R12.6
C R9.0
Address number
114
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
(2) Type
There are two types of PMC instructions, basic and functional.
(a) Basic instruction
Basic instructions are most often used when designing sequence
programs. They perform onebit operations, such as AND, or
OR. There are 12 types.
(b) Functional instruction
Functional instructions ease programming of machine
movements that are difficult to program with basic instructions.
Refer to Chapter V about the type of functional instruction.
(3) Storage of logical operation results
A register is provided for storing the intermediate results of a logical
operation during operation of a sequence program. This register
consists of 9 bits. (See Fig. 4 (b) ) .
Stack register (which temporarily stores the inter- The result of an operation
mediate result of an operation) currently being executed
enters here.
Fig. 4 (b)
Execution of an instruction (RD.STK or the like) to temporarily store the
intermediate results of an operation as in the above figure, shifts left and
stacks the status stored so far; conversely, execution (AND.STK or the
like) to retrieve a stacked signal shifts it right. The signal stacked last is
retrieved first.
Refer to explanations of each instruction for concrete applications and
operations.
115
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
4.1 The type of instructions and contents of processing are listed in the Table
4.1 (a).
DETAILS OF BASIC
INSTRUCTIONS Information format 1:
This is used when writing instructions on a coding sheet, punching out
them on a paper tape or displayed on the CRT/MDI or offline programmer.
Information format 2:
This is used when inputting instructions through programmer.
This format is to simplify an input operation.
RN, for instance, means RD.NOT and represents an input operation using
both keys, R and N.
Details of each basic instruction will be given here.
Instruction
No. Format 1 Format 2 Contents of processing
(coding) (keys of FANUC LADDER)
1 RD R Reads the status of a specified signal and sets it in ST0.
2 RD.NOT RN Inverts the logical status of a specified signal, reads and sets it in ST0.
4 WRT.NOT WN Inverts the results of logical operations (status of ST0) and outputs it to a
specified address.
6 AND.NOT AN Inverts the status of a specified signal and induces a logical product.
8 OR.NOT ON Inverts the status of a specified signal and induces a logical sum.
9 RD.STK RS Shifts the stack register left one bit, read and sets the status of a specified
signal in ST0.
10 RD.NOT.STK RNS Shifts the stack register left one bit reads the inveried logical status of a
specified signal, and sets it in ST0.
11 AND.STK AS Sets the logical product of ST0 and ST1, and shifts the stack register right
one bit.
12 OR.STK OS Sets the logical sum of ST0 and ST1, and shifts the stack register right by one
bit.
13 SET SET Calculates the logical OR of the contents of ST0 and the status of the signal
at the specified address and outputs the result to the specified address.
14 RST RST Calculates the logical AND of the inverted contents of ST0 and the specified
address and outputs the result to the address.
116
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
Model
PMC- PMC- PMC- PMC- PMC- PMC- PMC- PMC- PMC-
PA1 PA3 SA1/ SB/ SC SA3/ SB3/ SC3/ NB/
No. Instruction SA2 SB2 SA5 SB4/ SC4 NB2/
SB5/ NB6
SB6/
SB7
1 RD f f f f f f f f f
2 RD.NOT f f f f f f f f f
3 WRT f f f f f f f f f
4 WRT.NOT f f f f f f f f f
5 AND f f f f f f f f f
6 AND.NOT f f f f f f f f f
7 OR f f f f f f f f f
8 OR.NOT f f f f f f f f f
9 RD.STK f f f f f f f f f
10 RD.NOT.STK f f f f f f f f f
11 AND.STK f f f f f f f f f
12 OR.STK f f f f f f f f f
13 SET f f f f f
14 RST f f f f f
NOTE
SET/RST are not available on PMCSA3 for Series 20.
117
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit number
Address number
A B C
W1
D G
W2
X5.1 R5.4 R200.1
E
Y5.2
F
Y5.3
118
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
Bit number
Address number
(2) Inverts the status of a signal at a specified address and set it in ST0.
(3) Is used when beginning coding with contact B ( ). See the ladder
diagram of Fig. 4.1.2 and entries in the coding sheet of Table 4.1.2
for an example of using the RD.NOT instruction.
(4) The signal read by the RD.NOT instruction may be any contact B
entered as the logical condition of one coil.
A B C
W1
D G
W2
G5.1 R10.5
E R210.2
X4.2
F
Y10.7
119
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit number
Address number
(2) Outputs the results of logical operations, that is, the status of ST0 to
a specified address.
(3) The results of one logical operation can also be output to two or more
addresses. How to use the WRT instruction in this case is shown in
Fig. 4.1.3 and Table 4.1.3.
A C
W1
R220.1 G2.2 Y11.1
B
W2
X4.2
Y14.6
120
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
Bit number
Address number
(2) Inverts the results of logical operations, that is, the status of ST0 and
outputs it to a specified address. Fig. 4.1.4 and Table 4.1.4 show an
example on using the WRT.NOT instruction.
A C
W1
R220.1 G2.2 Y11.1
B
W2
X4.2 Y14.6
121
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit number
Address number
Bit number
Address number
Bit number
Address number
Bit number
Address number
122
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
Bit number
Address number
A B
W1
X1.1 Y1.2 Y15.0
C D
X1.3 Y1.4
E F
R2.1 R3.5
123
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit number
Address number
A B E F
W1
X1.0 X1.1 Y1.2 Y1.3 Y15.7
C D G H
124
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
Bit number
Address number
(2) Induces a logical product from the operation results in ST0 and ST1,
sets the result in ST1, and shifts the stack register right one bit.
(3) See Fig. 4.1.10 and Table 4.1.10 for an example of using the
AND.STK instruction.
Bit number
Address number
(2) Induces a logical sum from the operation results in ST0 and in ST1,
sets the result in ST1, and shifts the stack register right one bit.
(3) See Fig. 4.1.9 and Table 4.1.9 or Fig. 4.1.10 and Table 4.1.10 for
examples of using the OR.STK instruction.
NOTE
In Table 4.1.9 putting OR.STK at step 5 between steps 7
and 8 brings about the same result. But it is recommended
to code as shown in Table 4.1.9, because coding OR.STK
or AND.STK in succession is prone to cause an error.
125
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit No.
Address No.
(2) Logical sum of the logical operation result ST0 with the content of
the specified address is outputted to the same address.
(3) Refer to the figure below for an example of using the SET instruction.
A C
(S)
R0.0 Y0.0
X0.0
126
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
(4) Remarks
The use of the PMCPA3, SA2, SA3, SB2, SB3, and SC3 is
restricted as follows:
(a) Restriction of using
Do not use SET/RST like the following example 1, use them
alone like the following example 2.
(S) (S)
f
R0.0 Y0.1
D
D f
D
D
D X0.0
D
D
D
END2 END2
Example 1 Example 2
127
4. PMC BASIC INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Bit No.
Address No.
(2) Logical product of inverted logical operation result ST0 with the
content of the specified address is outputted to the same address.
(3) Refer to the figure below for an example of using the RST
instruction.
A C
(R)
R0.0 Y0.0
X0.0
128
B61863E/14 PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS
(4) Remarks
The use of the PMCPA3, SA2, SA3, SB2, SB3, and SC3 is
restricted as follows:
(a) Restriction of using
Do not use SET/RST like the following example 1, use them
alone like the following example 2.
R0.0 Y0.0 R0.0 Y0.0
(S) (S)
f
.
R0.0 Y0.1
.
f
.
X0.0
. .
. .
END2 END2
Example 1 Example 2
129
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5 FUNCTIONAL INSTRUCTIONS
Instruction Model
Format 2 Processing
Format 1 Format 3 PMC PMC
(paper tape
(Ladder) (program input) PA1 PA3
punch program)
END1 SUB1 S1 End of a firstlevel ladder program f f
130
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Instruction Model
Format 2 Processing
Format 1 Format 3 PMC PMC
(paper tape
(Ladder) (program input) PA1 PA3
punch program)
COME SUB29 S29 End of common line control f f
131
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Instruction Model
Format 2 Processing
Format 1 Format 3 PMC PMC
(paper tape
(Ladder) (program input) PA1 PA3
punch program)
PSGNL SUB50 S50 Position signal output f f
132
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
Instruc- SUB
Processing PMC PMC PMC PMC PMC PMC PMC PMC
PMC
PMC
tion number NB/
SA1 SA2 SA3 SB SB2 SB3 SC SC3 NB6
NB2
DEC 4 Decoding f f f f f f f f f f
JMP 10 Jump f f f f f f f f f f
LBL 69 Label f f f f f
COMP 15 Comparison f f f f f f f f f f
133
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Model
Instruc- SUB
Processing PMC PMC PMC PMC PMC PMC PMC PMC
PMC
PMC
tion number NB/
SA1 SA2 SA3 SB SB2 SB3 SC SC3 NB6
NB2
ADD 19 Addition f f f f f f f f f f
SUB 20 Subtraction f f f f f f f f f f
MUL 21 Multiplication f f f f f f f f f f
DIV 22 Division f f f f f f f f f f
EOR 59 Exclusive OR f f f f f
OR 61 Logical OR f f f f f
SP 71 Subprogram f f f f f
134
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
Instruc- SUB
Processing PMC PMC PMC PMC PMC PMC PMC PMC
PMC
PMC
tion number NB/
SA1 SA2 SA3 SB SB2 SB3 SC SC3 NB6
NB2
NOP 70 No operation n f
135
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
136
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
CAUTION
On the PMCSB3/SB4/SC3/SC4, DISP is provided only for the compatibility with Series 16/18 MODEL
A. On the Series 16/18 MODEL B, it is recommended to use DISPB instead of DISP because some
extended functions such as high speed display and display of double sized character are available only
with DISPB. On the Series 16/18 MODEL B, if both DISP and DISPB are used in the same sequence
program, double sized character can not be displayed by DISPB.
137
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
138
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
CAUTION
On the PMCSB5/SB6, DISP is provided only for the compatibility with Series 16 MODEL A/B. On the
Series 16/18 MODEL C, it is recommended to use DISPB instead of DISP because some extended
functions such as high speed display and display of double sized character are available only with DISPB.
On the Series 16/18 MODEL C, if both DISP and DISPB are used in the same sequence program, double
sized character can not be displayed by DISPB.
139
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
140
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
141
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Model
SUB
Name Processing Series 16i MODEL A/Series 18i MODEL A
number
PMCSB5 PMCSB6
END1 1 First level program end f f
END2 2 Second level program end f f
END3 48 Third level program end
TMR 3 Timer processing f f
TMRB 24 Fixed timer processing f f
TMRC 54 Timer processing f f
DEC 4 Decoding f f
DECB 25 Binary decoding f f
CTR 5 Counter processing f f
CTRC 55 Counter processing f f
ROT 6 Rotation control f f
ROTB 26 Binary rotation control f f
COD 7 Code conversion f f
CODB 27 Binary code conversion f f
MOVE 8 ANDed data transfer f f
MOVOR 28 ORed data transfer f f
MOVB 43 Transfer of one byte f f
MOVW 44 Transfer of two bytes f f
MOVN 45 Transfer of arbitrary bytes f f
COM 9 Common line control f f
COME 29 Common line control end f f
JMP 10 Jump f f
JMPE 30 Jump end f f
JMPB 68 Label jump 1 f f
JMPC 73 Label jump 2 f f
LBL 69 Label specification f f
PARI 11 Parity check f f
DCNV 14 Data conversion f f
DCNVB 31 Binary data conversion f f
COMP 15 Comparison f f
COMPB 32 Binary comparison f f
COIN 16 Coincidence check f f
SFT 33 Shift register f f
DSCH 17 Data search f f
DSCHB 34 Binary data search f f
XMOV 18 Indexed data transfer f f
XMOVB 35 Binary indexed data transfer f f
ADD 19 BCD addition f f
142
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
SUB
Name Processing Series 16i MODEL A/Series 18i MODEL A
number
PMCSB5 PMCSB6
ADDB 36 Binary addition f f
SUB 20 BCD subtraction f f
SUBB 37 Binary subtraction f f
MUL 21 BCD multiplication f f
MULB 38 Binary multiplication f f
DIV 22 BCD division f f
DIVB 39 Binary division f f
NUME 23 Definition of constant f f
NUMEB 40 Definition of binary constant f f
DISP 49 Message display (Caution) n n
DISPB 41 Extended message display f f
EXIN 42 External data input f f
AXCTL 53 PMC axis control f f
WINDR 51 Window data read f f
WINDW 52 Window data write f f
FNC9X 9X Arbitrary functional instruction
MMC3R 88 MMC3 window data read
MMC3W 89 MMC3 window data write
MMCWR 98 MMC2 window data read f f
MMCWW 99 MMC2 window data write f f
DIFU 57 Rising edge detection f f
DIFD 58 Falling edge detection f f
EOR 59 Exclusive OR f f
AND 60 Logical product f f
OR 61 Logical add f f
NOT 62 Logical negation f f
END 64 End of subprograms f f
CALL 65 Conditional subprogram call f f
CALLU 66 Unconditional subprogram call f f
SP 71 Subprogram f f
SPE 72 End of a subprogram f f
NOP 70 No operation f f
143
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
CAUTION
With PMCSB5/SB6 of the Series 16i/18i MODEL A, the DISP instruction can be used only to ensure
compatibility with the Series 16 MODEL A/B.
With the Series 16i/18i MODEL A, FANUC recommends the use of the DISPB instruction that provides
extended functions such as highspeed display and kanji character display.
With the Series 16i/18i MODEL A, if both the DISP instruction and DISPB instruction are used in the same
sequence program, the kanji display function of the DISPB instruction cannot be used.
144
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
SUB
Name Processing Series 21i MODEL A
number
PMCSA1 PMCSA5
END1 1 First level program end f f
END2 2 Second level program end f f
END3 48 Third level program end
TMR 3 Timer processing f f
TMRB 24 Fixed timer processing f f
TMRC 54 Timer processing f f
DEC 4 Decoding f f
DECB 25 Binary decoding f f
CTR 5 Counter processing f f
CTRC 55 Counter processing f f
ROT 6 Rotation control f f
ROTB 26 Binary rotation control f f
COD 7 Code conversion f f
CODB 27 Binary code conversion f f
MOVE 8 ANDed data transfer f f
MOVOR 28 ORed data transfer f f
MOVB 43 Transfer of one byte f
MOVW 44 Transfer of two bytes f
MOVN 45 Transfer of arbitrary bytes f
COM 9 Common line control f f
COME 29 Common line control end f f
JMP 10 Jump f f
JMPE 30 Jump end f f
JMPB 68 Label jump 1 f
JMPC 73 Label jump 2 f
LBL 69 Label specification f
PARI 11 Parity check f f
DCNV 14 Data conversion f f
DCNVB 31 Binary data conversion f f
COMP 15 Comparison f f
COMPB 32 Binary comparison f f
COIN 16 Coincidence check f f
SFT 33 Shift register f f
DSCH 17 Data search f f
DSCHB 34 Binary data search f f
XMOV 18 Indexed data transfer f f
XMOVB 35 Binary indexed data transfer f f
ADD 19 BCD addition f f
145
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Model
SUB
Name Processing Series 21i MODEL A
number
PMCSA1 PMCSA5
ADDB 36 Binary addition f f
SUB 20 BCD subtraction f f
SUBB 37 Binary subtraction f f
146
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
Com-
SUB Series 16i /18i /21i
mand Description Series 21iMODEL B
Name Number MODEL B
PMCSA1 PMCSB7
END1 1 1st Level program end f f
END2 2 2nd Level program end f f
END3 48 3rd Level program end f
TMR 3 Timer f f
TMRB 24 Fixed timer f f*2
TMRC 54 Timer f f*2
DEC 4 Decode f f
DECB 25 Binary decode f f
CTR 5 Counter f f
CTRB 56 Fixed counter f*1
CTRC 55 Counter f f
ROT 6 Rotational control f f
ROTB 26 Binary rotational control f f
COD 7 Code conversion f f
CODB 27 Binary code conversion f f
MOVE 8 Move ANDed data f f
MOVOR 28 Move ORed data f f
MOVB 43 Move 1 byte f
MOVW 44 Move 2 bytes (Word) f
MOVD 47 Move 4 bytes (Double word) f*1
MOVN 45 Move arbitrary bytes f
COM 9 Common line control f f
COME 29 Common line control end f f
JMP 10 Jump f f
JMPE 30 Jump end f f
JMPB 68 Label jump 1 f
JMPC 73 Label jump 2 f
LBL 69 Label f
PARI 11 Parity check f f
DCNV 14 Data convert f f
DCNVB 31 Binary data convert f f
COMP 15 Comparison f f
COMPB 32 Binary comparison f f
COIN 16 Coincidence check f f
SFT 33 Shift register f f
DSCH 17 Data search f f
DSCHB 34 Binary data search f f
147
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Model
Com-
SUB Series 16i /18i /21i
mand Description Series 21iMODEL B
Name Number MODEL B
PMCSA1 PMCSB7
XMOV 18 Indexed data transfer f f
XMOVB 35 Binary indexed data transfer f f
ADD 19 Addition f f
OR 61 Logical OR f
NOT 62 Logical NOT f
148
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Model
Com-
SUB Series 16i /18i /21i
mand Description Series 21iMODEL B
Name Number MODEL B
PMCSA1 PMCSB7
SPE 72 End of subprogram f
NOP 70 No operation (Net comment) f f
NOTE
1 These are new functions that are added to PMCSB7.
2 These specifications are improved for PMCSB7.
3 These are ignored like NOP if these are programmed in ladder. Therefore, you can use these
functions to keep compatibility of your ladder program for several machines. You must certainly
keep ACT=0 in case of some functions that need ACT input.
4 This is effective when you use PMC C language option.
149
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
DEC 4 Decoding 21 28
JMP 10 Jump 12 16
COMP 15 Comparison 22 36
150
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
SUB 20 Subtraction 21 32
MUL 21 Multiplication 42 63
DIV 22 Division 44 66
151
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Execution time constant: This constant represents how many times the execution time of a
functional instruction corresponds to the execution time of 10 basic
instructions (about 1.5s) . The execution time of a basic instruction is
about 0.15 s.
The general format and restrictions common to each functional
instruction are given below, details on each instructions will follow later.
Refer to this paragraph without fail, since it covers the provisions on using
a functional instruction and other important items.
(1) Format
Since the functional instructions cannot be represented with relay
symbols, the format shown in Fig. 5 (a) must be used. The format
includes control conditions, an instruction, parameters, W1, R9000
to R9005 (Functional instruction operation result register).
Control conditions
Parameter (Note)
A B
(3)
I
n
L0 L1 s
C D t
(2) r Para
(2) (3) (4)
u meter
R 2.4 R 3.1 c
t (1) W1
RST
(1) i
o R 10.1
n
R 5.7
ACT
(0)
(E1)
R 7.1
7 6 5 4 3 2 1 0
R9000
R9001
R9002
R9003
R9004
R9005
152
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
1 Numbers in parentheses under control conditions indicate
the position of the stored register.
2 (PRM) of steps 8 to 11 under Instruction means that P must
be input when a parameter is input from the programmer,
and PRM is not required to be input when a parameter is
input from a paper tape.
CAUTION
For the functional instructions, with a RST as a control
condition, the RST has the highest priority. Accordingly
when RST=1, the RST processing is done even when
ACT=0.
(3) Instruction
The types of instructions are shown in Table 5 (a). The Programmer
has exclusive keys for functional instructions TMR and DEC. They
are input by T and D keys, respectively. The other functional
instructions are given by S key and a following number. When
instructions are input by relay symbols, software keys are used to
input them. Refer to chapter III or V for details.
(4) Parameter
Unlike basic instructions, functional instructions can handle numeric
values. Thus the reference data or addresses containing data are
entered under Parameter. The number and meaning vary with each
functional instruction. The P key is used to enter parameters in the
Programmer.
153
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
(5) W1
The operation results of a functional instruction, when represented with
one bit of 1 or 0, is output to W1 whose address can be determined freely
by the programmer. Its meaning varies with each functional instruction.
Note that some functional instructions have no W1.
(6) Data to be processed
Data handled by functional instructions are of binary coded decimal
(BCD) code and binary code.
In the conventional PMCs, the numeric data is processed mainly
based on the BCD code. However, in the PMCSB/SC, it is
recommended to handle all pieces of numeric data with the binary
code. The reasons for this are:
(a) In the Series 16, the numeric data (M, S, T, B code) between the
CNC and the PMC should be of the binary code.
(b) Numeric data on which the CPU performs processing must be in
binary format. When numeric data is always processed in binary
format, therefore, neither BCDtobinary nor binarytoBCD
conversion is necessary, thus enabling faster PMC processing.
(c) When the data is of the binary code, the range of the numeric data
processable becomes wide. Also, negative numeric data can be
processed easily, and the arithmetic operation functions are
strengthened. The binary numeric data is handled, as a rule, on
the basis of 1 byte (128 to+127), 2 bytes (32768 to +32767),
and 4 bytes (99999999 to +99999999).
(d) When various numeric data items are entered or displayed using
the keys on the CRT/MDI panel, all the numeric data items in
binary are conveniently specified or displayed in decimal.
Therefore, no problem arises, though the data stored in the
internal memory is of the binary code. Pay attention to this only
when referring to the memory by the sequence program. See (7).
In the functional instructions, binary data is mainly handled.
(7) Example of numeric data
(a) BCD code data
The basic data handled with the BCD code is of 1 byte (0 to 99)
or 2 bytes (0 to 9999). The BCD 4digit data is entered into two
bytes of continuous addresses as shown below.
Example: When BCD data 1234 is stored to addresses R250
and R251.
7 6 5 4 3 2 1 0
R250 0 0 1 1 0 1 0 0
3 4
7 6 5 4 3 2 1 0
R251 0 0 0 1 0 0 1 0
1 2
Specify smaller address R250 by a functional instruction.
(Note) The low order digits are entered to the smaller address.
154
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
7 6 5 4 3 2 1 0
R200 " 26 25 24 23 22 21 20 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 1 (+1)
0 : Positive
1 : Negative
0 1 1 1 1 1 1 1 (+127)
R201 " 214 213 212 211 210 29 28
7 6 5 4 3 2 1 0
R200 27 26 25 24 23 22 21 20
155
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
* When 2byte or 4byte data is handled, assigning even addresses to addresses marked with *
reduces the time required to execute functional instructions.
A + B = C Error output
RST
ADDB
* * *
ffff ffff ffff ffff
W1
ACT Address Address Address for
Specifying for an for an outputting
(SUB36)
a format augend addend the sum
Fig. 5 (b)
In even addresses, the number after R is even with internal relays, and
the number after D is even in data tables.
(9) Functional instruction calculation result register (R9000 to R9005)
(See Fig. 5 (c))
The result of calculation of the functional instruction is set in the
register.
This register is used commonly to the functional instructions.
Therefore, refer to the information in the register immediately after the
functional instruction is executed. Otherwise, the previous information
disappears when the next functional instruction is executed.
The calculation information in the register cannot be transferred
between different levels of the sequence program. For example, it is
impossible to read the set information by referring to registers
R9000s by the 2nd level program. When the subtraction instruction
(SUBB) is executed by the 1st level program.
The calculation information set in the register is guaranteed up to the
point just before the functional instruction for setting the next
calculation information is executed between the same level of
programs. The calculation information set in this register differs
according to the functional instruction. It can be read out by the
sequence program, but cannot be written.
7 6 5 4 3 2 1 0
R9000
R9001
R9002
R9003
R9004
R9005
Fig. 5 (c)
This register is a 6 byte register (R9000 to R9005), and the data of
1 bit unit or 1 byte unit can be referred to.
When reading the data of bit 1 of R9000, specify RD R9000.1.
156
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.1
END1 (1ST LEVEL
SEQUENCE
PROGRAM END)
5.1.1 Must be specifies once in a sequence program, either at the end of the 1st
Function level sequence, or at the beginning of the 2nd level sequence when there
is no 1st level sequence.
5.1.2 Fig. 5.1.2 shows the format of END.1 and Table 5.1.2 shows the coding.
Format
END1
(SUB 1)
157
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.2
END2 (2ND LEVEL
SEQUENCE
PROGRAM END)
5.2.2 Fig.5.2.2 shows the expression format and Table 5.2.2 shows the coding
Format format.
END2
(SUB 2)
158
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.3
END3 (END OF 3RD
LEVEL SEQUENCE)
(PMCSC/SC3/SC4/
NB/NB2/NB6/NB7
ONLY)
5.3.1 Specify this command at the end of the 3rd level sequence program, i.e.
it indicates the end of the sequence program. If there is no 3rd level
Function
sequence program, specify this command immediately after END.2
command.
5.3.2 Fig.5.3.2 shows description format and Table 5.3.2 shows coding format.
Format
END3
(SUB 48)
159
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.4
TMR (TIMER)
5.4.2 Fig.5.4.4 (a) shows description format and Table 5.4.4 shows coding
Format format.
5.4.4 When the time preset is reached with ACT=1 as shown in Fig.5.4.4 (b),
Timer Relay (TMff) the timer relay turns on. The address of the timer relay is determined by
designer.
Timer relay
ACT
TMR ff TMff
fff.f
fff.f
Timer number
Control condition Instruction
ACT
TMff
T
T indicates the time set in this timer
command.
160
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.4.5 The timer can be set via the CRT/MDI unit of the CNC (See Chapter II).
Setting Timers The setting time is every 48 ms for timer number 1 to 8 and every 8 ms
for timer number 9 to 40. A time less than 48 ms is discarded for timer
number 1 to 8. The time set by timers 9 to 40 is every 8 ms. Any
remainder is discarded. For example, if 38 ms is set, the remainder 6
(38=8 4+6) is discarded, and only 32 ms is actually set.
Model PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4
Type of timer
48 ms timer 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8
number
Type of timer
48 ms timer 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8 1 to 8
number
5.4.6
Timer Accuracy
8 ms timer 8 ms to 262.1 s 0 to +8 ms
161
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.5
TMRB (FIXED TIMER)
5.5.1 This timer is used as a fixed ondelay timer. The variable timer in section
Function 5.4 sets time of the timer into the nonvolatile memory, and can be reset
via the CRT/MDI when necessary.
Time present in this fixed timer is written to the ROM together with the
sequence program, so the timer time once set cannot be changed unless
the whole ROM is exchanged.
Timer relay
5.5.4 As shown in Fig.5.5.4, timer relay is set ON after certain time preset in
Timer Relay the parameter of this instruction pasts after ACT=1.
The designer will decide the address of the internal relay in the timer relay.
(TMBfff)
ACT
TMB
T
T indicates the time set in this timer
command.
WARNING
If the same timer number is used more than once or if a timer
number out of the valid range is used, operation is
unpredictable.
162
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.5.6 Time varies 0 to level 1 sweep interval from the setting time.
Precision of the Timer The varing time in this timer is caused only the error occurred when the
timer instruction performs operation process.
Error caused by sequence program processing time (time of 1 cycle of the
second level), etc. are not included.
163
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.6
TMRC (TIMER)
5.6.2 Fig.5.6.2 and Table 5.6.2 show the expression format and the coding
Format format, respectively.
5.6.4
Timer Accuracy Timer precision Setting value Setting time Error
8 ms 0 1 to 262,136 1 to +8 ms
48 ms 1 1 to 1,572,816 1 to +48 ms
1 s (Note) 2 1 to 32,767 1 to +1 s
10 s (Note) 3 1 to 327,670 1 to +10 s
1 m (Note) 4 1 to 32,767 1 to +1 m
NOTE
This function is usable only with the following models:
FS16C/18C PMCSB5/SB6
FS16i/18i PMCSB5/SB6
FS21i PMCSA5
164
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
For PMCSB7 :
Timer accuracy Setting number The range of setting time (Note) Margin of error
8msec 0 8msec to about 262.1sec 0 to + Level 1 Sweep Interval
48msec 1 48msec to about 26.2 min 0 to + Level 1 Sweep Interval
1sec 2 1sec to about 546 min 0 to + Level 1 Sweep Interval
10sec 3 10sec to about 91 h 0 to + Level 1 Sweep Interval
1min 4 1min to about 546 h 0 to +1sec
1msec 5 1msec to about 32.7 sec 0 to + Level 1 Sweep Interval
10msec 6 10msec to about 327.7 sec 0 to + Level 1 Sweep Interval
100msec 7 100msec to about 54.6 min 0 to + Level 1 Sweep Interval
NOTE
The range of the value is 0 to 32767.
5.6.5 Sets the first address of the timer set time field.
The continuous 2byte memory space is required for the timer set time
Timer Set Time
field.
Address Field D is normally used as this field.
The timer set time is converted into the binary value in 8 ms (48 ms) units.
The timer set time is shown as follows:
8 ms 8 to 262,136 ms
48 ms 48 to 1,572,816 ms
1s 1 to 32,767s
10 s 1 to 327,670s
1m 1 to 32,767m
Timer register + 0
Timer register + 1
Timer register
Timer register + 2
Timer register + 3
165
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.6.7 As shown in Fig. 5.6.7, after ACT is set to 1, the timer relay is turned on
Timer Relay (TMff) once the time specified in this command has elapsed.
ACT
TM ff
T
T indicates the time set in this timer
command.
166
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.7
DEC (DECODE)
5.7.1 Outputs 1 when the twodigit BCD code signal is equal to a specified
Function number, and 0 when not. Is used mainly to decode M or T function.
5.7.2 Fig.5.7.2 and Table 5.7.2 show the expression format and Table 5.7.2
Format show the coding format.
fff. f fff. f
Decode ff ff
Control condition Instruction
instruction Number of digits
instruction
Address of decode signal Number of digits instruction
167
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.7.5 There are two paths, the number and the number of digits.
Decode Specification Decode specification
f f f f
Number specification
(i) Number:
Specify the decode number.
Must always be decoded in two digits.
(ii) Number of digits:
01 : The highorder digit of two decimal digits is set to 0 and
only the loworder digit is decoded.
10 : The loworder digit is set to 0 and only the highorder digit
is decoded.
11 : Two decimal digits are decoded.
5.7.6 W1 is 1 when the status of the code signal at a specified address is equal
W1 to a specified number, 0 when not. The address of W1 is determined by
designer.
(Decoding Result
Output)
168
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.8
DECB (BINARY
DECODING)
5.8.1 DECB decodes one, two, or fourbyte binary code data. When one of the
Function specified eight consecutive numbers matches the code data, a logical high
value (value 1) is set in the output data bit which corresponds to the
specified number. When these numbers do not match, a logical low value
(value 0) is set.
Use this instruction for decoding data of the M or T function.
In PMCSB5/SB6/SB7 for Series 16i/160i/18i/180i/Power Mate i and
PMCSA5 for Series 21i/210i, the setting of the format specification
parameter is extended. With this setting, DECB can decode multiple
(8 n) bytes.
For the details of the setting of a format specification parameter, refer to
5.8.4 Parameters.
5.8.2
Format
Decode designating +7
number
Decode designating numbers
Eight numbers, each of which is added by 0, 1, 2, . . . , and 7 to the specified number
are decoded.
When number 62 is specified, for example, eight numbers of 62 to 69 are decoded.
If code data is 62, 0 bit of output data is turned on; if 69, 7th bit is turned on.
169
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
15 14 13 12 11 10 9 8
1, 2 or 4byte
binary code data Decode designating
number +8
8n1 8(n1)
Decode designating
number +(8n1)
*
ACT DECB f ffff ffff ffff
ffff
*
ACT DECB ffff ffff ffff ffff
ffff
170
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
171
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.9
CTR (COUNTER)
5.9.1 CTR is used as a counter. Counters are used for various purposes for NC
Function Machine tools.
Numerical data such as preset values and count values can be used with
either BCD format or binary format by a system parameter.
WARNING
When a incollect BCD data was set to a BCD type counter,
the morement of CTR cannot be sured.
If changing the counter type, be sure to reconfigure the
counter data.
8 1
7 2
6 3
5 4
Presetting : 8
Initial value : 1
172
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.9.2 Fig.5.9.2 show the expression format and Table 5.9.2 show the coding
Format format.
CN0
fff. f
W1
RST
fff. f
fff. f
ACT
Instruction (SUB 5)
Control condition
173
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
NOTE
Set RST to 1, only when reset is required.
Count Count
5.9.4
Counter Number
Model PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4
Counter number 1 to 20 1 to 20 1 to 20 1 to 20 1 to 20 1 to 20 1 to 20 1 to 20 1 to 20 1 to 50
The preset value and cumulative value that can be set are as follows:
Binary counter: 0 to 32767
BCD counter: 0 to 9999
WARNING
If the counter number is duplicated, or falls outside the valid
range, the operation will be unpredictable.
174
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.9.5 When the count is up to a preset value, W1=1. The address of W1 can be
Countup Output (W1) determined arbitrarily.
When the counter reaches the set value, W1 is set to 1.
When the counter reaches 0 or 1, W1 is set to 1.
5.9.6 [Example 1]
As a preset counter (See Fig.5.9.6 (a))
Examples of Using the
The number of workpieces to be machined is counted. When the number
Counter reaches the preset count, a signal is output.
D L1 is a circuit to make logic 1.
D Since the count ranges from 0 to 9999, contact B of L1 is used for
making CN0=0.
D Since it is to be up counter, contract B of L1 is used make
UPDOWN=0.
D The reset signal of the counter uses input signal CRST.M from the
machine tool.
D The count signal is M30X, which was decoded from the CNC
output M code. M30X contains contact B of CUP to prevent
counting past the preset value, as long as reset is not enabled after
countup.
L1
L1
R200.1
L1 R200.1
R200.1
L1
(3) (1)
(CN0)
R200.1
L1
(2)
(UPDOWN) CTR 0001
(SUB 5)
R200.1
CUP Count up output
CRST.M
(1)
(RST) Y6.1
X36.0
CUP M30X
(0)
(ACT)
Y6.1 R200.3
175
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
[Example 2]
Use of the counter to store the position of a rotor. (See Fig.5.9.6 (b))
L1
1
R200.1
R200.1
L1
R200.1
L1
(3)
(CN0)
R200.1
REV
(2)
(UPDOWN)
CTR 0002
R200.1
L1 (SUB 5)
(1)
(RST) R200.0
R200.1
POS
(0)
(ACT)
X36.0
2
6
1 7
12 8
11 9
10
176
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
177
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.10 PMCSB7
CTRB (FIXED O
COUNTER)
5.10.1 CTRB is used as a counter. Numerical data such as preset values and count
Functions values can be used with binary format. This counter has the following
functions to meet various applications.
(a) Preset counter
Preset the count value. If the count reaches this preset value, outputs
to show that.
(b) Ring counter
This is the ring counter which is reset to the initial value when the
count signal is input after the count reaches the preset value.
(c) Up/down counter
This is the reversible counter to be used as both up counter and down
counter.
(d) Selection of initial value
Either 0 or 1 can be selected as the initial value.
5.10.2 Fig.5.10.2 and Table 5.10.2 show the expression format and the cording
Format format, respectively.
CN0
UPDOWN
OOOO.O
CTRB O....O
Counter
(SUB56) Preset Value
Number W1
RST
ACT
178
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
179
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.11
CTRC (COUNTER)
5.11.1 The numeral data of this counter are all binary. This counter has the
following functions and can be used according to the application:
Functions
(a) Preset counter
Preset the count value and if the count reaches this preset value,
outputs to show that.
(b) Ring counter
This is the ring counter which is reset to the initial value when the
count signal is input after the count reaches the preset value.
(c) Up/down counter
This is the reversible counter to be used as both the up counter and
down counter.
(d) Selection of the initial value
Either 0 or 1 can be selected as the initial value.
5.11.2 Fig.5.11.2 and Table 5.11.2 show the expression format and the coding
format, respectively.
Format
CN0
CTRC ffff ffff
UPDOWN
SUB 55
Counter Counter
RST preset value register W1
address address
ACT
180
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.11.4 The first address of the counter preset value field is set.
Counter Preset Value The continuous 2byte memory space from the first address is required
for this field. Field D is normally used.
Address
181
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Counter register +0
CTR Count value
Counter register +1
Counter register +2
WORK WORK : Unusable
Counter register +3
182
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.12
ROT (ROTATION
CONTROL)
5.12.1 Controls rotors, such as the tool post, ATC, rotary table, etc., and is used
Function for the following functions.
(a) Selection of the rotation direction via the shorter path
(b) Calculation of the number of steps between the current position and
the goal position
(c) Calculation of the position one position before the goal or of the
number of steps up to one position before the goal
5.12.2 Fig.5.12.2 shows the expression format and Table 5.12.2 shows the
Format coding format.
RN0
(5) (1) (2) (3) (4)
ffff. f
BYT
(4)
ffff. f
DIR Rotating direction
(3) output
ROT
ffff. f (SUB 6) ffff ffff ffff ffff W1
POS
(2) ffff. f
ffff. f
INC
(1)
ffff. f
ACT
(0)
ffff. f
Calculating result output address
Goal position address
183
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
184
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.12.6 Specify the address storing the goal position (or command value), for
Goal Position Address example the address storing the CNC output T code.
5.12.7 Calculate the number of steps for the rotor to rotate, the number of steps
Operation Result up to the position one position before, or the position before the goal.
When the calculating result is to be used, always check that ACT=1.
Output Address
5.12.8 The direction of rotation for control of rotation via the shorter path is
Rotating Direction output to W1. When W1=0, the direction is forward (FOR) when 1,
reverse (REV). The definition of FOR and REV is shown in Fig.5.12.8.
Output (W1) If the number given to the rotor is ascending, the rotation is FOR; if
descending, REV. The address of W1 can be determined arbitrarily.
When, however, the result of W1 is to be used, always check that ACT=1.
11 3
3 11
FOR REV REV FOR
10 4 4 10
9 5 5 9
8 6 6 8
7 7
185
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.13
ROTB
(BINARY ROTATION
CONTROL)
5.13.1 This instruction is used to control rotating elements including the tool
Function post, ATC (Automatic Tool Changer), rotary table, etc. In the ROT
command (5.12) a parameter indicating the number of rotating element
indexing positions is a fixed data in programming. For ROTB, however,
you can specify an address for the number of rotating element index
positions, allowing change even after programming. The data handled are
all in the binary format. Otherwise, ROTB is coded in the same way as
ROT.
RN0
* * * *
DIR
POS
ROTB f ffff ffff ffff ffff
W1
INC
5.13.3 The control conditions do not differ basically from those for ROT
Control Conditions command described in section 5.12. However, BYT has been eliminated
from ROTB (it forms part of the ROTB parameters).
For the reset, see ROT.
186
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.13.6 Fig. 5.13 (b) illustrates a ladder diagram for a 12position rotor to be
controlled for rotation via the shorter path and for deceleration at the
Example of Using the
position one position before the goal.
ROTB Instruction
D The goal position is specified with CNC 32B of binary code (address
F26 to F29).
D The current position is entered with the binary code signal (address
X41) from the machine tool.
D The result of calculating the position one position before the goal is
output to address R230 (work area).
D Operation starts with the output TF (address F7.3) from the CNC.
D The coincidence check instruction (COIN) is used to detect the
deceleration and stop positions.
187
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
A
A Logic 1
R0228.0 R0228.0
A
R0228.0
A (4)
ROTB 4 D0000 X0041 F0026 R0230
(SUB 26) CR Shorter
R0228.0 CCW path or not
A R0228.1
(3) Refer Rotor Current Goal Calcula
ence indexing position position tion
R0228.0 data number address address result
format output
A address
(2)
R0228.0
A (1)
R0228.0
CWM CCWM
TF (0)
R0228.3 Y0005.5
TF (0)
COMPB 1004 F0026 X0041
(SUB 32) Refer Refer Compari
F0007.3 ence ence son
data data data
TF format address Goal position
TCO (stop position)
MPB detection
R9000.0 F0007.3 R0228.3
CRCCW TCOMPB
TF
CWM Forward
rotation
F0007.3 R0228.1 R0228.3 Y0005.6 command
TF CRCCW TCOMPB
CCWM Reverse
rotation
F0007.3 R0228.1 R0228.3 Y0005.6 command
188
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.14
COD
(CODE CONVERSION)
5.14.1 Converts BCD codes into an arbitrary two or fourdigits BCD numbers.
Function For code conversion shown in Fig.5.14.1 the conversion input data
address, conversion table, and convert data output address must be
provided.
Set a table address, in which the data to be retrieved from the conversion
table is contained, to conversion table input data address in a twodigits
BCD number. The conversion table is entered in sequence with the
numbers to be retrieved in the two or fourdigits number. The contents
of the conversion table of the number entered in the conversion input data
address is output to the convert data output address. As shown in
Fig.5.14.1, when 3 is entered in the conversion input data address, the
contents 137 located at 3 in the conversion table is output to the convert
data output address.
Conversion input 0
data address 3
1
ffff
Specifies table internal 2
number (BCD twodigits).
3 137
Convert data
output address
ffff
Data of the specified table internal address is
output to this address.
n
189
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.14.2 Fig.5.14.2 shows the format for the COD instruction and Table 5.14.2
Format shows the coding format.
BYT
ffff. f
COD Error output
RST
(SUB 7) ffff ffff ffff
W1
ffff. f
ACT
1 f f f f
2 f f f f
3 f f f f
4 f f f f
10 : : :
190
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.14.5 The conversion table address includes a table address in which converted
Conversion Input Data data is loaded. Data in the conversion table can be retrieved by specifying
a conversion table address.
Address One byte (BCD 2digit) is required for this conversion input data address.
5.14.6 The convert data output address is the address where the data stored in the
Convert Data Output table is to be output. The convert data BCD two digits in size, requires
only a 1byte memory at the convert data output address.
Address Convert data BCD four digits in size, requires a 2byte memory at the
convert data output address.
5.14.7 If an error occurs in the conversion input address during execution of the
COD instruction, W1=1 to indicate an error.
Error Output (W1)
For example, W1=1 results if a number exceeding the table size specified
in the sequence program is specified as the conversion input address.
When W1=1, it is desirable to effect an appropriate interlock, such as
having the error lamp on the machine tool operators panel light or
stopping axis feed.
191
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.15
CODB (BINARY
CODE CONVERSION)
Conversion
2 0
data address
ffff
Specify table address 1
here.(binaryformat1 byte)
2
(Note 1) This table data is binary
format 2byte data.
3
Conversion data
(Note 2) Conversion table is written
output address 1250
in the ROM together
ffff
Data stored in the specified together with the program,
table address is output to because it is defined in the
this address sequence program.
n
n : max. 255
RST *
Error output
CODB f fff ffff ffff
W1
ACT (SUB 27) Format Number Conversi Conversi
designa of on input on data
tion conver data output
sion address address
table
data
192
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.15.5 Size of the conversion data table is maximum 256 (from 0 to 255).
This conversion data table is programmed between the parameter
Conversion Data Table
conversion data output address of this instruction and the error output
(W1).
5.15.6 If there are any abnormality when executing the CODB instruction,
Error Output (W1) W1=1 and error will be output.
193
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.16
MOVE
(LOGICAL PRODUCT
TRANSFER)
5.16.1 ANDs logical multiplication data and input data, and outputs the results
Function to a specified address. Can also be used to remove unnecessary bits from
an eightbit signal in a specific address, etc.
(Logical multiplication data) (Input data) to a specified address
The input data is one byte (eight bits).
7 6 5 4 3 2 1 0
Input data 0 0 0 0 0 0 0 0
Logical f f f f f f f f
multiplicationdata
Loworder fourbit logical
multiplication data
Highorder fourbit
logical multiplication data
5.16.2 Fig.5.16.2 shows the expression format and Table 5.16.2 shows the
Format coding format.
ACT
MOVE (1) (2) (3) (4)
(SUB 8) ffff ffff ffff ffff
ffff. f
Output address
194
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.16.4 If a code signal and another signal coexist at address X35 for an input
Example of Using the signal from the machine tool, to compare the code signal and a code signal
at another address, the rest of signals in address X35 becomes an obstacle.
MOVE Instruction Thus, the MOVE instruction can be used to output only the code signal
at address X35 address R210.
7 6 5 4 3 2 1 0
Address X35
Code signal
Another signa
Address R210 0 0 0
Code signal
195
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.17
MOVOR
(DATA TRANSFER
AFTER LOGICAL
SUM)
5.17.1 This instruction ORs the input data and the logical sum data and
transfers the result to the destination.
Function
Input data Logical sum data
OR
Output data
196
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.18
COM (COMMON LINE
CONTROL)
5.18.1
: Can be used
COM (Common Line
: Cannot be used
Control) PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f
This function can be used for specifying the number of coils only on the
PMCSB/SC. On other PMCs, specify 0 for the number of coils and use
the common line control end instruction to use this function. For how to
use the instruction, see Subsection 5.18.4.
5.18.1.1 The specified number of coils or the coils in a region up to the common
Function line control end instruction (COME) are turned off. (See Fig.5.18.1.1)
Relay number specification is set when a numeric other than zero is
specified in a parameter for the number of turned off coils.
Specification of the region up to the common line control end instruction
is set when zero is specified for the number of turned off coils.
When the common line control end instruction is programmed in the relay
number specification, error is indicated when programming is completed.
Number of
SUB 9
turnedoff
coils
0 to 9999
0 : Region specification
Other than 0 : Numeric specification
COME
Effective only when the number of
SUB 29 turnedoff coils is set to zero.
197
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
COM ffff
SUB 9 Number of
turnedoff
coils
ACT COM 2
(a)
A B
W1
ACT=1
11.0 11.1
(b) C
W2
D
5.18.2 ACT=0 : The specified number of coils or the coils within the region
specified are unconditionally turned off (set to 0).
Control Conditions
ACT=1 : No processing is performed.
Processing is performed from the step next to the COM instruction.
198
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
ACT A B
W1
ACT C
W2
E F G
W3
CAUTION
1 A functional instruction in a range specified by COM executes processing,
regardless of COM ACT. However, if COM ACT=0, the coil of the execution result becomes 0.
2 Another COM instruction cannot be specified in the range specified by the COM instruction.
3 If COM ACT=0, the coil written in by a WRT. NOT instruction in a range specified by COM
becomes 1 unconditionally.
4 The number of coils cannot be specified in PMCSA2, or PMCSB2. Assume the number of
coils to be 0 and specify the region with the common line control end (COME) command.
ACT
COM 3
A B
W1 Regardless of the ACT condition of the
COM instruction, if ACT1=1, the input
data of MOVE function is transferred to
Highord Loworde Input Output the output address
ACT1 er 4bit r 4bit data address
MOVE logical logical address
multiplicat multiplicat
ion data ion data
D Reference Comparis
data on data
COIN (address) (address) W2 When ACT=0 in the COM instruction,
ACT2 W2=0 unconditionally.
E
W3
199
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.18.4
: Can be used
COM (Common Line
: Cannot be used
Control) PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f f f f f f f f f f f f f f f f f f
5.18.5 The COM instruction controls the coils in a range up to a common line
Function control end instruction (COME). (See Fig.5.18.5) Specify 0 as the
number of coils, and specify a range to be controlled using the common
line end instruction.
When the common line end instruction is not specified, the message COM
FUNCTION MISSING is displayed.
ACT
COM 0
SUB 9
Valid range of
the COM
f instruction
COME
SUB 29
SUB 9
200
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.18.7 ACT = 0 : The coils in the specified range are unconditionally turned
Control Conditions off (set to 0).
ACT = 1 : The same operation as when COM is not used is performed.
ACT
COM 0
SUB 9
ON OUT1
OFF OUT2
Then, for the coil OUTx, this Ladder diagram has the same
effect as the following Ladder diagram:
ON ACT OUT1
201
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
JMP instruction
COM instruction
Prohib-
ited
JMP instruction
COM instruction
Prohib-
COME instruction ited
JMPE instruction
COME instruction
JMPE instruction
202
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.19
COME (COMMON
LINE CONTROL END)
5.19.1 This instruction indicates the division in the region specification of the
Function common line control instruction (COM).
This instruction cannot be used alone. It must he used together with the
COM instruction.
SUB 29
203
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.20
JMP (JUMP)
5.20.1
: Can be used
JMP (Jump)
: Cannot be used
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f
This function can be used for specifying the number of coils only on the
PMCSB/SC. On other PMCs, specify 0 for the number of coils and use
the jump end instruction to use this function. For how to use the
instruction, see Subsection 5.20.7.
5.20.2 This instruction jumps the specified number of coils or the logic
Function instructions (including the functional instructions) contained within the
region up to the jump end instruction (JMPE).
Coil number specification is set when a numeral other than zero is
specified in the parameter for the number of coils.
Specification of the region up to the jump end instruction is set when zero
is set for the number of coils. Nesting of jump instructions is not allowed.
SUB 10 Number
of jumped
coils
0 to 9999
0 : Region specification
Other tha 0 : Coil number specification
JMPE
Effective only when the number of
SUB 30 jumped coils is set to zero.
Fig. 5.20.2
204
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.20.3
Format
ACT JMP ffff
Number
SUB 10 of jumped
coils
5.20.4 ACT=0 : Nojump.Processing begins with the step after the JMP instruction.
ACT=1 : The logic instructions contained within the specified number of
Control Conditions
coils or the specified region are jumped. Processing is performed
from the next step.
NOTE
The number of coils can be specified only for the
PMCSB/SC. Assume the number of coils to be 0 and specify
the region with the jump end (JMPE) command.
205
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.20.6 Fig.5.20.6 shows a ladder diagram for the JMP instruction. When
Operation ACT=0, the next step to the JMP instruction is executed. When ACT=1,
logical operations are skipped according to the specified number of coils.
Note that, when ACT=1, even if signal A changes from 1 to 0 or vice versa
as shown in Fig.5.20.6, W1 remains in a status before ACT=1. Similarly,
W2 remains unchanged, even if signals B, C, and D change. If a sequence
is executed in ladder split mode, even the use of the JMP instruction does
not reduce the execution time of the sequence (see Section I.2.3,
Processing Priority).
ACT
JMP
2
(SUB 10)
A
W1
ACT=0
10.1 20.1
B
W2
C
E F
W3
ACT=1
206
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.20.7
: Can be used
JMP (Jump)
: Cannot be used
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f f f f f f f f f f f f f f f f f f
5.20.7.1 The JMP instruction causes a departure from the normal sequence to
Function executing instructions. When a JMP instruction is specified, processing
jumps to a jump and instruction (JMPE) without executing the logical
instructions (including functional instructions) in the range delimited by
a jump end instruction (JMPE). (See Fig.5.20.7.1) Specify 0 as the
number of coils, and specify a range to be skipped using the jump end
instruction.
When the jump end instruction is not specified, the message JUMP
FUNCTION MISSING is displayed.
ACT
JMP 0
SUB 10
JMPE
SUB 30
ACT
JMP 0
SUB 10
207
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
JMP instruction
COM instruction
COME instruction
JMPE instruction Prohib-
ited
COME instruction
JMPE instruction
208
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.21
JMPE (JUMP END)
5.21.1 This instruction indicates the division in the region specification of the
Function jump instruction (JMP).
It cannot be used alone. It must be used together with the JMP instruction.
5.21.2
Format
JMPE
SUB 30
209
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.22
PARI
(PARITY CHECK)
5.22.1 Checks the parity of code signals, and outputs an error if an abnormality
Function is detected. Secifies either an even or oddparity check. Only onebyte
(eight bits) of data can be checked.
5.22.2 Fig.5.22.2 shows the expression format and Table 5.22.2 shows the
Format coding format.
O.E (2)
ffff. f
ffff. f
ACT (0)
ffff. f
210
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.22.4 If the results of executing the PARI instruction is abnormal, W1=1 and
Error Output (W1) an error is posted. The W1 address can be determined arbitrarily.
7 6 5 4 3 2 1 0
Address X036 0
A
A
R228.0
A R228.0
R228.0
A (2)
R228.0
PARI
ERST.M
(1)
(SUB 11) X036 ERR
X32.7
TF (0)
F7.3
NOTE
For bits 0 to 7, bits other than those for the parity check must
be 0.
211
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.23
DCNV
(DATA CONVERSION)
5.23.2 Fig.5.23.2 shows the expression format and Table 5.23.2 shows the
Format coding format.
BYT (3)
(1) (1)
fff. f DCNV
CNV (2)
(SUB 14) ffff ffff
fff. f
Conversion result output address
Instruction Input data address
Control condition
212
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
213
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.24
DCNVB (EXTENDED
DATA CONVERSION)
5.24.1 This instruction converts 1, 2, and 4byte binary code into BCD code or
Function vice versa. To execute this instruction, you must preserve the necessary
number of bytes in the memory for the conversion result output data.
CNV
214
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.24.6 This register is set with data on operation. If register bit 1 is on, they
Operation Output signify the following.
For the positive/negative signs when binary data is converted into BCD
Register (R9000) data, see R9000.
7 6 5 4 3 2 1 0
R9000
Negative
Overflow
(data exceeds the number of bytes specified)
215
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.25
COMP
(COMPARISON)
5.25.2 Fig.5.25.2 shows the expression format and Table 5.25.2 shows the
Format coding format.
BYT COMP
f ffff ffff
(SUB 15) Comparison
fff.f result output
W1
ACT
ffff.f
fff.f
216
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.25.5 The input data can be specified as either a constant or the address storing
it. The selection is made by a parameter of format specification.
Input Data
217
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.26
COMPB
(COMPARISON
BETWEEN BINARY
DATA)
5.26.1 This instruction compares 1, 2, and 4byte binary data with one another.
Function Results of comparison are set in the operation output register (R9000).
Sufficient number of bytes are necessary in the memory to hold the input
data and comparison data.
* *
0 0
218
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.26.5 The data involved in the operation are set in this register. This register is
Operation Output set with data on operation. If register bit 1 is on, they indicate the
following:
Register (R9000)
7 6 5 4 3 2 1 0
R9000
Overflow
219
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.27
COIN (COINCIDENCE
CHECK)
5.27.1 Checks whether the input value and comparison value coincide.
Function This instruction is available with BCD data.
5.27.2 Fig.5.27.2 shows the expression format and Table 5.27.2 shows the
Format coding format.
Comparison value
Instruction Input value
Control conditions address
220
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.27.5 The input data can be specified as either a constant or an address storing
Input Data it. The selection is made by a parameter of format designation.
221
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.28
SFT
(SHIFT REGISTER)
5.28.1 This instruction shifts 2byte (16bit) data by a bit to the left or right.
Note that W1=1 when data 1 is shifted from the left extremity (bit 15)
Function
in left shift or from the right extremity (bit 0) in right shift.
5.28.2
Format
DIR
SFT *
CONT ffff
RST Address of W1
shift data
ACT
(SUB 33)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Left shift
CONT=1:
Shift is the same as above, but 1s are set to shifted bits.
222
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Left shift
0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0
7 6 5 4 3 2 1 0
Designated address
15 14 13 12 11 10 9 8
Designated address +1
5.28.5 W1=0 : 1 was not shifted out because of the shift operation.
Shifted Out W1=1 : 1 was shifted out because of the shift operation.
223
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.29
DSCH
(DATA SEARCH)
5.29.1 DSCH is only valid for data tables (see section 6.3) which can be used by
Function the PMC. DSCH searches the data table for a specified data, outputs an
address storing it counting from the beginning of the data table. If the data
cannot be found, an output is made accordingly.
Table internal number Data table
0
1
Search data
2
100 100
Fig. 5.29.1
NOTE
Parameter of this functional instruction and the data table
heading address specified here are table internal number 0.
The table internal number specified here, however, is
different from that mentioned in 6.3.
5.29.2 Fig.5.29.2 shows the expression format and Table 5.29.2 shows the
Format coding format.
BYT (2)
DSCH (1) (2) (3) (4)
ffff.f Search data
RST (1) ffff ffff ffff ffff presence/absence
W1 output address
ffff.f (SUB 17)
ffff.f
ACT (0)
ffff.f
Instruction
Search result output address
Control condition Search data address
224
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.29.4 Specifies the size of the data table. If the beginning of the data table is 0
Number Of Data of the and the end is n, n+1 is set as the number of data of the data table.
Data Table
5.29.5 Addresses that can be used in a data table are fixed. When preparing a data
Data Table Head table, the addresses to be used must be determined beforehand, specify the
head address of a data table here.
Address
225
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.29.7 If the data being searched for is found, the internal number of the table
Search Result Output storing the data is output to this field. This address field is called a search
result output address field.
Address The search result output address field requires memory whose size is the
number of bytes conforming to the size of the data specified by BYT.
226
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.30
DSCHB (BINARY
DATA SEARCH)
5.30.1 Alike the DSCH instruction of Section 5.29, this function instruction
Function instructs data search in the data table.
There are two differences; the numerical data handled in this instruction
are all in binary format; and number of data (table capacity) in the data
table can be specified by specifying the address, thus allowing change in
table capacity even after writing the sequence program in the ROM.
Fig. 5.30.1
5.30.2
Format
RST DSCHB
* * * * Search result
f ffff ffff ffff ffff
(SUB 34) W1
Storage Data table Search Output
address of head data address of
ACT number of address address search
Format data in result
designa data table
tion
Fig. 5.30.2
227
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
228
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.31
XMOV (INDEXED
DATA TRANSFER)
5.31.1 Reads or rewrites the contents of the data table. Like the DSCH
Function instruction, XMOV is only valid for data tables which can be used by the
PMC.
NOTE
The data table heading address specified here is table
internal number 0. The table internal number specified here,
however, is different from that mentioned in 6.3.
Data table
Table internal number
0
Input or output data
1 3
2
n
1 Read out data from the data table.
2 Write data in the data table.
5.31.2 Fig.5.31.2 shows the expression format and Table 5.31.2 shows the
Format coding format.
BYT (3)
(1) (2) (3) (4)
ffff.f XMOV
RW (2)
ffff ffff ffff ffff
ffff.f Error output
RST (1) (SUB 18)
W1
ffff.f
ACT (0) ffff.f
ffff.f
Instruction Address storing tabel internal number
Address storing input/output data
Control condition Data table heading address
Number of data of the data table (Table capacity)
229
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.31.4 Specifies the size of the data table. If the beginning of the data table is 0
Number of Data Of the and the end is n, n+1 is set as the number of data of the data table.
Data Table
5.31.5 Address that can be used in a data table are fixed. When preparing a data
Data Table Head table, the addresses to be used must be determined beforehand, and the
head address placed in that data table .
Address
5.31.6 The input/output data storage address is the address storing the specified
Address Storing data, and is external to the data table. The contents of the data table is read
or rewritten.
Input/Output Data
230
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.31.7 The table internal number storage address is the address storing the table
Address Storing the internal number of the data to be read or rewritten.
This address requires memory specified by the formaat designation
Table Internal Number (BYT).
231
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.32
XMOVB (BINARY
INDEX MODIFIER
DATA TRANSFER)
5.32.1 Alike the XMOV instruction of Section 5.31, this function instruction
Function instructs reading and rewriting of data in the data.
There are two differences; the numerical data handled in this instruction
are all in binary format; and number of data (table capacity) in the data
table can be specified by specifying the address, thus allowing change in
table capacity even after writing the sequence program in the ROM.
In PMCSB5/SB6/SB7 for Series 16i/160i/18i/180i/Power Mate i,
PMCSA5 for Series 21i/210i, and PMCNB6 for Series 15i the setting
of the format specification parameter is extended. With this setting,
XMOVB can read/write the multiple data in 1 instruction. For the details
of the setting of a format specification parameter, refer to 5.32.4
Parameters.
(a) Read data from data table
The number of data table elements : M (It specifies the storage address of number
of data table elements)
DT[0] D I 3 S B
DT[2]
DT[3] B
DT[4]
DT[5] C
DT[M1]
Data table:DT
Fig. 5.32.1 (a) Read data from data table (basic specification)
232
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
The number of data table elements : M (It specifies the storage address of number
of data table elements)
The number of index array elements : N (It specifies the format specification)
DT[4]
I[N1] S[N1]
DT[5] C
Index Input/Output
array:I data array:S
DT[M1]
Data table:DT
Fig. 5.32.1 (b) Read data from data table (expended specification)
(only for PMCSB5/SB6/SB7 for Series 16i/160i/18i/180i Power Mate i,
PMCSA5/SB6/SB7 for Series 21i/210i, and PMCNB6 for Series 15i)
(b) Write data to data table
The number of data table elements : M (It specifies the storage address of number
of data table elements)
S B I 3 DT[0]
DT[2]
DT[3] B
DT[4]
DT[5]
DT[M1]
Data table:DT
233
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
The number of data table elements : M (It specifies the storage address of number
of data table elements)
The number of index array elements : N (It specifies the format specification)
DT[4]
S[N1] I[N1]
DT[5] C
Input/Output Index
data array:S array:I
DT[M1]
Data table:DT
5.32.2
Format
RW
RW
234
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
235
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
236
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
RW=0
ACT=1
R100 D D0 2 R200 A
R101 D1 5 R201 B
R102 A D2 8 R202 C
R103 D3 0 R203 D
R106
R107
R108 C
Data table
The operation of the instruction :
(1) R102 R200
(2) R105 R201
(3) R108 R202
(4) R100 R203
237
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
RW=1
ACT=1
R100 A D0 2 R200 D
R101 B D1 5 R201
R102 C D2 8 R202 A
R103 D D3 0 R203
R206
R207
R208 C
Data table
238
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.33
ADD (ADDITION)
5.33.2 Fig.5.33.2 shows the expression format and Table 5.33.2 shows the
Format coding format.
A + B = C
BYT (2)
ADD (1) (2) (3) (4)
ffff.f
Error output
RST (1) f ffff ffff ffff W1
ffff.f (SUB 19)
ACT fff.f
(0)
ffff.f
Instruction
Sum output address
239
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.33.8 If the sum exceeds the data size specified in 5.32.3a), W1=1 is set to
Error Output indicate an error.
240
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.34
ADDB
(BINARY ADDITION)
5.34.2
Format
A + B = C Error output
RST
ADDB * * *
ffff ffff ffff ffff
W1
ACT
Format Augend Addend Result
(SUB 36) specifi address address or (sum)
cation constant address
241
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
0 0
Format specification
0 : Constant data
1 : Address data
5.34.6 This register is set with data on operation. If register bit is on, they signify
Operation Output the following operation data:
Register (R9000) 7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
242
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.35
SUB (SUBTRACTION)
5.35.2 Fig.5.35.2 shows the expression format and Table 5.35.2 shows the
Format coding format.
BYT (2)
SUB (1)
ffff.f Error output
RST (1)
f ffff ffff ffff W1
ffff.f (SUB 20)
ffff.f
ACT (0)
ffff.f
Instruction Difference output address
243
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.35.5 ACT=0 : The SUB instruction is not executed. W1 does not change.
ACT=1 : The SUB instruction is executed.
Execution Command
244
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.36
SUBB (BINARY
SUBTRACTION)
5.36.1 This instruction subtracts one data from another, both data being in the
Function binary format of 1, 2 or 4 bytes.
In the operation result register (R9000), operation data is set besides the
numerical data representing the operation. A required number of bytes is
necessary to store the subtrahend, minuend, and the result (difference).
5.36.2
Format
A B = C Error output
RST
SUBB * * *
ffff ffff ffff ffff
ACT W1
Format Menuend Subtrahend Differenc
address addressor e output
(SUB 37) specifi
constant address
cation
245
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
0 0
5.36.6 This register is set with data on operation. If register bit is on, they signify
Operation Output the following operation data:
Register (R9000) 7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
246
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.37
MUL
(MULTIPLICATION)
5.37.1 Multiplies BCD twoor fourdigit data. The product must also be BCD
Function twoor fourdigit data.
5.37.2 Fig.5.37.2 shows the expression format and Table 5.37.2 shows the
Format coding format.
A B = C
BYT (2)
MUL (1) (2) (3) (4)
fff.f Error output
RST (1) f ffff ffff ffff W1
fff.f (SUB 21)
(0) ffff.f
ACT
fff.f
Instruction
Product output address
247
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.37.8 W1=1 is set to indicate an error if the product exceeds the size specified
Error Output in 5.37.3a).
248
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.38
MULB (BINARY
MULTIPLICATION)
5.38.1 This instruction multiplies 1, 2, and 4byte binary data items. In the
Function operation result register (R9000), operation data is set besides the
numerical data representing the operation.
A required number of bytes is necessary to store multiplicand, multiplier,
and the result (product).
5.38.2
Format
A B = C Error output
RST
MULB * * *
ffff ffff ffff ffff
ACT W1
Format Multipli Multiplier Product
(SUB 38) specifi cand address or output
cation address constant address
249
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
0 0
Format specification
0 : Constant data
1 : Address data
5.38.6 This register is set with data on operation. If register bit is on, they signify
Operation Output the following operation data:
Register (R9000) 7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
250
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.39
DIV (DIVISION)
5.39.2 Fig.5.39.2 shows the expression format and Table 5.39.2 shows the
Format coding format.
BYT (2)
DIV (1) (2) (3) (4)
ffff.f Error output
RST (1)
f ffff ffff ffff W1
ffff.f (SUB 22)
(0) fff.f
ACT
ffff.f
Instruction
Quotient output address
251
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
252
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.40
DIVB (BINARY
DIVISION)
5.40.1 This instruction divides binary data items 1, 2, and 4 byte in length. In the
Function operation result register (R9000), operation data is set and remainder is
set to R9002 and following addresses.
A required number of bytes is necessary to store the dividend, divisor, and
the result (quotient).
5.40.2
Format
A / B = C Error data
RST
* * *
DIVB ffff ffff ffff ffff
Divisor W1
ACT
Format Dividend (address) Quotient
SUB 39 specifi address or address
cation constant
253
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
0 0
5.40.6 This register is set with data on operation. If register bit is on, they signify
Operation Output the following operation data:
Register (R9000) 7 6 5 4 3 2 1 0
R9000
Zero
Negative
254
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.41
NUME (DEFINITION
OF CONSTANT)
5.41.1 Defines constants, when required. In this case, constants are defined with
this instructions.
Function
5.41.2 Fig.5.41.2 shows the expression format and Table 5.41.2 shows the
Format coding format.
5.41.4 Sets the constant as the number of digits specified in Item (a) in Subsec.
Constant 5.41.3.
5.41.5 Sets the address to which the constant defined in Subsec. 5.41.4 is output.
Constant Output
Address
255
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.42
NUMEB (DEFINITION
OF BINARY
CONSTANTS)
5.42.2
Format
NUMEB
ACT
f ffff ffff
Format Constant
(SUB 40) specifi Constant output
cation address
NUMEB
ACT
ffff ffff ffff
Format Constant
(SUB 40) specifi Constant output
cation address
256
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(b) Constant
Defined constants in decimal format. Set a constant data within the
effective range for the byte length which is set in (a) Format
specification.
(c) Constant output address
Specifies the address of the area for output of the binary data. The
memory of the number of bytes which is set in (a) Format
specification is necessary.
In PMCSA5/SB5/SB6/SB7 for Series 16i/160i/18i/180i/21i/210i
Power Mate i and PMCNB6 for Series 15i/150i, when setting
format specification in the extended format, it is necessary to reserve
memory of (byte length) (number of array elements which define
constant) which was set in (a) Format specification.
257
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.43
DISP (MESSAGE
DISPLAY)
(PMCSB/SB2/SB3/
SB4/SB5/SB6/SC/
SC3/SC4 ONLY)
5.43.1 DISP is used to display messages on the CRT screen, CNC of which enters
alarm status. Message data to be displayed is specified after the
Function
parameters of the functional instruction. One DISP functional instruction
can define up to 16 types of message. Display is performed by setting the
control condition ACT to 1. In order to display and then clear a message,
set the displayrequest bit corresponding to the message data number to
1 and 0, respectively.
Up to one alarm message (message data putting the CNC in alarm status)
can be displayed on one screen. When one message is cleared, a message
is displayed. Similarly, each time one of the message is displayed. One
operator message (message data not putting the CNC in alarm status) can
be displayed on a screen. When an operator message is cleared in a state
when four operator messages are displayed, the subsequent operator
message is displayed.
5.43.2 Fig.5.43.2 shows the instruction format and Table 5.43.2 shows the
Format coding format.
258
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
fff. f
Message data
Message number
1
Message data 1
Message characters
m
Message number
1
Message data 2
Message characters
Message number
1
Message data n
Message characters
1 x n x 16
259
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
260
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
The number of data used by each message data item, m,
must be the same. Since 00 is ignored, it can be set for
unnecessary data. For example, for particular messages
with a different number of displayed characters, set 00 so
that the number of data, m, are the same.
261
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
NOTE
If all characters in the operator message are kana
characters, up to 254 kana characters are displayed.
262
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
263
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.43.7 The parameters and message data used by this functional instruction are
Parameters and as follows.
Message Data
SUB49
Total sum of data of message data
Parameter Number of data of one message item
R200 Message control address
(Specify a message to be displayed, using an address of RAM in the internal relay area is
taken to here, R200 is taken.)
Message 1
data Message data 2 is displayed on the CRT screen
Message RAM 7 6 5 4 3 2 1 0
data 2
address
R200 0 0 0 0 0 0 1 0
Display request
Message R201 0 0 0 0 0 0 0 0
data 3
R202 0 0 0 0 0 0 1 0
Display state
R203 0 0 0 0 0 0 0 0
Two bytes of R200 and R201, the address specified in the message control address and
that address plus +1, (display request), are required to specify a message to be displayed.
Even if the number of message data items is small, two bytes are always required. 0 is set to
unnecessary data. 0 is set automatically when the CNC is powered on.
Two bytes of R202 and R203, the specified address plus +2 and the same address plus +3,
(displayed state), show the message displayed on the CRT screen.
Message
n When there is more than one display request, only a prescribed number of message are
data
displayed on the CRT screen. Actually displayed messages are known by the displayed
state. The displayed state is set automatically in the two bytes of the displayed state and can
be referred to by the sequence program. Those bytes must not be written in.
264
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Note) 7 6 5 4 3 2 1 0
Message Message Message Message Message Message Message Message
Specified
data data data data data data data data
address
Display 8 7 6 5 4 3 2 1
request Message Message Message Message Message Message Message Message
Specified
data data data data data data data data
address
16 15 14 13 12 11 10 9
Message Message Message Message Message Message Message Message
Specified
data data data data data data data data
address +2
Display 8 7 6 5 4 3 2 1
state Message Message Message Message Message Message Message Message
Specified
data data data data data data data data
address +3
16 15 14 13 12 11 10 9
Fig. 5.43.7 Correspondence between message data and display request/displayed status
NOTE
Specified address means an address specified in the
message control address of a DISP instruction parameter.
265
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
266
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.43.9 (a) Display three types of messages with the following conditions.
Examples of Using The SPER = 1 and SPINDLE ALARM (Message data 1)
ATCER = 1 and ACT ALARM (Message data 2)
DISP Instruction WORK = 1 and WORK SET UP (Message data 3)
R222 0 0 0 0 0
Display state
SPER R223 0 0 0 0 0 0 0 0
AL1
R220.0
ATCER D SPINDLE ALARM Message data 1 : AL1
AL2 D ATC ALARM Message data 2 : AL2
D WORK SET UP Message data 3 : MS1
R220.1
WORK
MS1
R220.2
EPCB
ACT Whenever EPCB=0, ACT=1
R201.2
W1
EP Interlock signal for external data input function
R201.3 CA
R295.0
267
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Step Instruc-
Number tion Address No. Bit No. Remarks ST2 ST1 ST0
RD R201.2 ACT
SUB 49
(PRM) 30 Total sum of data of message data
(PRM) 10 Number of data of one message
(PRM) R220 Message control address
(PRM)
(PRM) 1010 Message No.
8380 SP
7378 IN
6876 DL
6932 E_ Message data 1
6576 AL (10 data m=10)
6582 AR
7700 M
(Note1)
0000
0000
1020 Message No.
6584 AT
6732 C_
6576 AL
Message data 2
6582 AR
(10 data m=10)
7700 M
0000
0000
0000
0000
2100 Message No.
8779 W0
8275 RK
3200 _
Message data 3
0192
(10 data m=10)
0222
0221
0196
0222
(PRM) 0216
ACT
WRT R201.3 Process end (W1) W1
RD R201.3 W1
WRT R295.0 W1
NOTE
1 00 is ignored data.
2 Display example (The following is displayed on the screen in message data 1).
1010 SPINDLE ALARM
268
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(b) Using three DISP instructions and one external tool offset
EPCB
ACT Set ACT to 1 whenever no external tool offset is
being precessed (EPCB=0)
DISP
ACT
W1 1st DISP instruction
DISP
ACT
W2 2nd DISP instruction
DISP
ACT
W3 3rd DISP instruction
W1
EP
CA Use as external tool offset interlock.
W2 EPCA=1 during execution of each DISP
instruction. When EPCA=0, see (8), (iii)
W3
ACT
JMP n Use a JMP instruction, for example, so that no
Jump
external data input interface (addresses) may be
DISP instruction (EPCA=1).
W3
Processing W3
of
external tool offset
Writing into external data input interface
En
External tool
offset start EPCA
condition EP
Always turn EPCB off on completion of external tool
CB
External tool EPCB offset. completion is when processing has been
offset end exactly completed and NC signal REND=0.
condition
269
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.43.10 Conform to the following instruction format. Variable data, i.e., any
Variable Data Display numeric value of up to four BCD digits, can be displayed.
by Specifying Variable
Data SUB49 Instruction format
Message characters
ffff
990m Variable data specification
VVVV Variable data address
ffff Message number
Message characters
ffff
ffff Message number
990m Variable data specification
VVVV Variable data address
Message characters
990m Variable data specification
VVVV Variable data address
NOTE
1 One step is used at variable data specification 990m.
2 The number of steps is the same for each message data
item. The number of characters to be displayed varies
according to the value specified for m.
3 Multiple variable data items can be used in one message
data item.
Variable data
270
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(4) Example
To display TOOL NO 123
SUB49
0007 Total number of steps in message data
0007 Number of steps in one message data item
R300 Message control address
2100 Message number
8479 TO
7396 OL
3278 N
7932 O
9903 Variable data specification
R350 Variable data address
271
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.44
DISPB
5.44.1 This instruction displays messages on the CNC screen. You can also
Function specify the message number to generate an alarm in the CNC. This
instruction supports special functions (numerical data display and kanji
character display) in addition to the same basic functions as those of the
message display instruction (DISP), described in Section 5.43.
However, it performs a special additional function, namely, it displays
numerical data.
You can program up to 2000 messages. You must use the special message
addresses in your program (see Chapter 3, Address) to simplify use of
the messages. The following are the features of this function.
(a) In the program you define the total number of messages by using
DISPB, and set ACT=1.It does not matter if ACT is already set at 1.
If, however, ACT = 0, DISPB will not process the messages at all.
When ACT = 1, messages are displayed according to the contents of
the message display request memory (addresses A) and the message
data table.
When multiple messages are requested simultaneously, all the
messages may not be displayed. The display of messages depends on
the number of messages which can be displayed in CNC screen.
In PMCSB7, the status of the messages which is displayed actually
in CNC screen is shown in the message display status memory.
Relation between the message display request memory address and
the message data table appears in Table 5.44.1(a).
Message data table
Message display request memory (RAM) Number of message data table (written in ROM)
Address
7 6 5 4 3 2 1 0 (Messagedata corresponding
A0 A0.0 to address A0.0)
A1
(Messagedata corresponding
A2
A0.1 to address A0.1)
(Maximum) A2
(Messagedata corresponding
(Maximum) A24.7
to address A24.7)
Fig. 5.44.1(a) Message display request memory and message data table
272
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
7 6 5 4 3 2 1 0 NC message screen
A9000 0 0 0 0 0 0 1 1 xxxx:(Message of A000.0)
A9001 0 0 0 0 0 0 0 0 yyyy:(Message of A000.1)
A9002 0 0 0 0 0 0 0 0
zzzz:(Message of A249.7)
|
| XXXXXXXXXXXXXXXXXXX
|
A9249 1 0 0 0 0 0 0 0 [ ][ ][ ][ ][ ]
Fig. 5.44.1(b) Message display request memory, message display status memory and Message data table in
PMCSB7
273
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
274
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
275
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
NOTE
1 The number of message number which you can display at
the same time to the alarm screen on DPL/MDI is up to 3.
2 The number of character which you can display to the
operator message screen on DPL/MDI is up to 32
characters. The message data since the 33rd character is
not displayed.
3 A ~ character (code A0H) is displayed as space character
to the screen on DPL/MDI.
4 The DPL/MDI cannot display kanji (doublebyte) characters.
5 In the FS15i, each alarm message must consist of up to 30
characters.
(b) You need not use numerical codes for message data input. Instead, when
programming, directly key in the characters making up the messages
(from the CRT/MDI keyboard). For the characters that CRT/MDI does
not provide for, you must enter these characters by numerical data with
special symbols @. For details, refer to Subsec. 5.44.6).
(c) Use external data input command (described later) where you must
combine the DISPB instruction with external data input function (for
external tool compensation, external workpiece No. search, etc.).
Such use of the DISPB instruction does not affect the interface of
external data input function though the common interface is used
between DISPB instruction and external data input function.
(d) If you write the message data items in the ROM after programming,
you cannot change them any more (they will become fixed data
items). However, you can still change and display only the numerical
data forming part of the messages if you specify addresses storing the
numerical data as the message data and assign the required numerical
data in these addresses through sequence program.
Use of this function makes it possible for you to display frequently
varying numerical data (such as tool number etc.) during automatic
operations.
(e) A message is displayed on the CNC alarm message/operator message
screen.
When using the DISPB instruction, you must satisfy the following
conditions:
To use DISPB, the optional External Data Input function or External
Message Display is necessary for CNC.
5.44.2
Format
DISPB fff
ACT
276
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Function PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
Number of 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to 1 to
messages 200 200 200 200 200 200 200 200 200 200 200 1000 2000 200 200 1000 200 1000 1000
5.44.5 To change the numerical data contained within the messages, enter in the
messages the number of digits making up the data and the memory
Numerical Data Display
address to contain the data. To differentiate between the numerical data
from the other message data, write it within [ ] in the message.
Since the brackets, [ ], are used to contain numerical data, they are not
themselves treated as symbols to be included in the messages.
(a) Numerical data format
[Ibid, ffff]
NOTE
1 Sum of integer part digits and fractional part digits must be
within 8.
2 Blank is displayed for digits exceeding 8 digits.
3 Do not use any space between the brackets, [ ].
(b) Example
The following message includes 3 digits tool number at the spindle
and the offset data (f.ff) for this tool. And these data are
contained in memory address of 2bytes:
SPINDLE TOOL No. = [I230, VVVV]
OFFSET DATA = [I212, nnnn]
277
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.44.6 Message characters not covered by the CRT/MDI keys (kanji and
Defining Characters halfwidth kana characters) can be input as follows:
not found in the (a) Halfwidth kana characters
CRT/MDI (i) Data format
Numerical code enclosed by @ and @
(ii) Input method
Enter the numerical codes corresponding to the characters to be
input, by referring to the character code table (Table 5.44.6).
Each character requires two bytes. Characters covered by the
CRT/MDI keys can also be input in this way.
(iii) Example
To input ATC? OK when characters A, T, C, O, and
K are registered in the CRT/MDI unit, enter the following:
NOTE
Spaces are used between each numerical code in example
to understand easily, but do not use them actually.
PA1 SA1 SA1 SA1 SA1 SA1 SA2 SB SB2 SC SB3 SC3 SB5 SC3 SB5 NB NB2 NB6
PA3 SA3 SA3 SA3 SA5 SA3 SB3 SC3 SB4 SC4 SB6 SC4 SB6
SB7
f f f f f f f f f f f f
NOTE
1 The PMCSA1 for the FS18A can be used when the PMC management software series is
4071.
2 The PMCSB for the FS16A can be used when the PMC management software series is
4063.
3 The PMCSC/SC3 for the FS16A cannot be used depending on the series and edition of the
CNC software.
4 For the FS16A, set the following CNC parameter:
No. 6300 bit 6 = 0: Kanji characters are used for the DISPB instruction (default).
1: Kanji characters are not used for the DISPB instruction.
When kanji characters are used, the DISP instruction cannot be used.
5 On the CNC, the external data input option or external message option must be selected.
278
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(iii) Example
To input ATC? OK when characters A, T, C, O, and K are
registered in the CRT/MDI unit, enter the following:
4434 3A3A 01
NOTE
1 To define @, enter @40...@, where 40 is the code
corresponding to @40 . . . . . @
Code for @
2 To renew the message line displayed on the CRT/MDI
screen, input as:@ OA @ at the end of the data.
3 When using numerical codes, @ code occupies 1 byte, and
space code occupies 2 bytes. (Space code = 20, 2 and 0
occupies 1 byte each).
4 The following control codes are used: 02: 2byte code (kanji
and hiragana characters) 01: 1byte code (alphanumeric
and halfwidth kana characters) Do not specify 02 or 01
between @02 and 01@, as follows. The characters may not
be correctly displayed. @02 ... 02 ... 01@ @02 ... 01 ...
01@
5 Spaces are used between each numerical code in example
to understand easily, but do not use them actually.
2 3 4 5 A B C D
0 (Space) 0 @ P ~ _ *3)
1 ! 1 A Q
2 # 2 B R
3 # 3 C S
4 $ 4 D T
5 % 5 E U
6 & 6 F V
7 7 G W
8 ( 8 H X
9 ) 9 I Y
A * : J Z
B + ; K [
C , < L
D *1) = M ]
E > N
F / ? O __ *2)
*1) Minus, *2) Under bar, *3) Long bar *4) Dakuten *5) Handakuten
279
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.44.8
Foreign Language
Display
Power Mate/ FS20/ FS18A FS16A FS16B FS16C FS21i FS16i FS15B FS15i
FS21A FS21B FS18B FS18C FS18i
PA1 SA1 SA1, SA2 SB, SB2, SB3 SB3 SB4 SB5 SB6 SA1 SB5 SB6 NB NB6
PA3 SA3 SA3 SC, SC3 SC3 SC4 SC3 SC4 SA5 SB7 NB2
f f f
(a) General
In the message data areas corresponding to contiguous message
display request memory locations, message data can be displayed in
any of several languages.
The language in which a message is displayed is selected by shifting
the message display request bit according to the address bit shift
amount set in setting parameter 2.
The parameters set on the setting parameter 2 screen are listed below.
See II4.4.1 for details.
D MESSAGE SHIFT VALUE
Message display request bit shift amount
D MESSAGE SHIFT START ADDRESS
Start bit address of the message display request bit area to be
shifted
(b) Examples
Example 1:
Message data in any of four languages is set starting at A0.0 in
the order of Japanese, English, Italian, German, Japanese and so
on. The Italian message data is displayed.
Set the parameters as follows:
MESSAGE SHIFT VALUE : 2
MESSAGE SHIFT START ADDRESS : A0.0
(MESSAGE SHIFT VALUE =
0:Japanese/1:English/2:Italian/3:German)
Manipulate A0.0, A0.4, A1.0, A1.4, and so forth with the ladder.
280
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Message table
A0.0 Japanese 1
When A0.0 is turned on, Italian 1 is
A0.1 English 1 displayed. (The message data is
A0.2 Italian 1 shifted by 2 bits).
A0.3 German 1
A0.4 Japanese 2
When A0.4 is turned on, Italian 2 is
A0.5 English 2 displayed. (The message data is
A0.6 Italian 2 shifted by 2 bits).
A0.7 German 2
; :
Am.n :
Example 2:
As common alarm messages, English message data is displayed
with A0.0 through A9.7. Operator messages are set starting at
A10.0 in the order of Japanese, English, Italian, German and so
on, and German message data is displayed.
Set the parameters as follows:
MESSAGE SHIFT VALUE : 3
MESSAGE SHIFT START ADDRESS : A10.0
(MESSAGE SHIFT VALUE =
0:Japanese/1:English/2:Italian/3:German)
Manipulate A10.0, A10.4, A11.0, A11.4, and so forth with the
ladder.
When any of A0.0 to A9.7 is turned on, the message
corresponding to the bit is displayed.
Message table
A0.0 English A (ALARM)
A0.1 English B (ALARM) When A0.1 is turned on, Eng-
lish B is displayed.
A0.2 English C (ALARM)
: :
: :
A m.n :
281
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Example 3:
As common alarm messages, English message data is displayed
with A0.0 through A9.7. Operator messages are set starting at
A10.0 in the order of Japanese, English, Italian, German and so
on, with 40 successive messages assigned to each language. For
these messages, German message data is displayed.
Set the parameters as follows:
MESSAGE SHIFT VALUE : 120 (40 x 3)
MESSAGE SHIFT START ADDRESS : A10.0
(MESSAGE SHIFT VALUE =
0:Japanese/40:English/80:Italian/120:German)
Manipulate A10.0 through A14.7 with the ladder.
When any of A0.0 to A9.7 is turned on, the message
corresponding to the bit is displayed.
Message table
: :
Am.n :
(c) Notes
The same message number should be assigned to a message in each
language that has the same meaning.
Message table
A0.0 1000 English A (ALARM)
A0.1 1001 English B (ALARM)
282
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.45
EXIN (EXTERNAL
DATA INPUT)
5.45.1 This instruction is used for external data (external tool compensation,
Function external message function, external program number search, external
workpiece coordinates shift, etc.) input. You must use this instruction
when combining the message display instruction (DISP, DISPB) with the
external data input function. If you are not used DISP or DISPB, you need
not use this instruction either. Instead, use the external data input interface
from PMC to NC directly in your program.
The DISPB instruction uses the interface from PMC to NC provided by
the external data input function during display. The DISP instruction
prevents the interface signal transferred from the PMC to NC from being
changed due to external cutter compensation or others.
You can use the EXIN instruction only when the PMCNC interface is
of BMI (Basic Machine Interface) and optional external data input
function is provided with NC.
An 4byte control data as described below is required for external data
input function (option).
In PMCSA5/SB5/SB6/SB7, the expended specification that needs 6
bytes of control data is supported. With this setting, the extended
operation can use ED16 to ED31 signals (for program number O8 digits
etc.). To use the extended specification, it is necessary to set to NC
parameter 6300#7 (EEXIN)=1.
D NC parameter
(FS16i/18i/21i) #7 #6 #5 #4 #3 #2 #1 #0
6300 EEXIN
NOTE
To use program number O8 digits, the option with program
number O8 digits and NC parameter 6300#7 (EEXIN)=1 are
necessary.
283
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.45.2
Format
ACT
EXIN ffff
W1
(SUB 42)
Control data
address
284
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
Refer to the Series 16 or 18 Connection Manual for
detailed data to be specified concerning external data input.
285
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
CTL+0
EISTB, EOREND etc.
+1
EIA0 to EIA7
+2
EID32 to EID39
+3
EID40 to EID47
+4
EID0 to EID7
+5
EID8 to EID15
+6
EID16 to EID23
+7
EID25 to EID31
CTL+0 to to
EISTB, EOREND etc CTL+8
+1 EOSTB, EIREND etc
EIA0 to EIA7 +9
+2 EOA0 to EOA7
EID32 to EID39 +10
+3 EOD32 to EOD39
EID40 to EID47 +11
+4 EOD40 to EOD47
EID0 to EID7 +12
+5 EOD0 to EOD7
EID8 to EID15 +13
+6 EOD8 to EOD15
EID16 to EID23 +14
+7 EOD16 to EOD23
EID25 to EID31 +15
EOD25 to EOD31
to to
NOTE
Refer to the following manuals in detail of BMI interface.
FANUC Series 15MODEL B Connection Manual (BMI
interface)
FANUC Series 15i/150iMODEL A Connection Manual
(Function)
286
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.45.5 This indicates end of transfer of external data. This transfer end condition
End of Transfer (W1) shows the end of a series of external data input sequence. This functional
instruction executes a series of transfer sequence, and finally sets ESTB
= 0 in the PMC NC interface. As a result, W1 is set to 1 (W1 = 1) after
confirming that EREND = 0.
When W1 = 1, transfer of data is over. Reset ACT now.
CAUTION
1 The EXIN command cannot input multiple external data items
at the same time. Be sure to issue the next EXIN command
(ACT = 1) after external data transfer ends (W1 = 1).
2 Be sure to specify an interlock when the external data input function
is used by commands other than the function commands, DISP,
DISPB, and EXIN.
5.45.6 If any of the following errors occurs during external data input, the bit in
the operation output register is set. In this case, external data transfer ends
Operation Output
(W1 = 1).
Register
7 6 5 4 3 2 1 0
R9000
EXIN error
(Description of errors)
D When the EXIN command (ACT = 1) is started, the strobe signal
(ESTB) or EREND signal is already on. The external data may be
input by commands other than the function commands, DISP,
DISPB, and EXIN.
D An invalid head number was specified for 16TT or 18TT. (Data
other than 0 to 2 was specified.)
D The specification of HEAD.NO is incorrect.
(Data other than 0 to 3 is set for 3path control.)
287
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.46
WINDR (READING
CNC WINDOW DATA)
5.46.1 This function reads various data items via the window between the PMC
Function and the CNC.
The WINDR is classified into two types. One type completes reading
a data during one scan time. Another type completes reading a data during
a few scan time. The former is called the function of a highspeed
response and the latter is called the function of a lowspeed response.
5.46.2
Format
ACT W1
WINDR Control
data
(SUB 51) address
Fig. 5.46.2
288
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.46.5
Control Data CTL+0 Function code * Set the control data area by sequence
program before executing the WINDR
+2 Completion code or WINDW.
+4 Data length
+6 Data number
+8 Data attribute
* Only the size of the read data is
+10 Read data necessary for the data area below to to
CTL+10 usually.
+n
CAUTION
1 In the functional instructions WINDR and WINDW, the
control data area may be temporarily rewritten. Therefore,
set the control data area by sequence program before the
WINDR or WINDW is executed even when you specify
the none volatile memory area like D address for the
control data area. Because, when the power supply is
turned off during the control data is rewritten, this rewritten
data may be memorized in a none volatile memory.
Therefore, note that the WINDR or WINDW might be
executed with the wrong control data when the power
supply is turned on next if the control data area is not set by
sequence program.
2 Set the control data in the same program level as the
WINDR or WINDW is executed. If you set the control data
in the different program level, note that the WINDR or
WINDW might not be executed correctly, because the
control data is rewritten during the execution of WINDR or
WINDW.
3 In the diagnosis screen, it might be seen that the value of
control data is changing. This is not abnormal. Because the
display processing and the execution processing of a
sequence program are asynchronously executed.
Therefore, the value when the control data is rewritten
(abovementioned) is occasionally displayed. Even in this
case, the WINDR or WINDW is executed correctly.
289
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.46.6 W1=0 : W1 is usually reset. The W1=0 indicates that the WINDR
Reading Completion is not executed or the WINDR being executed now.
W1=1 : W1 is set when the reading a data is completed by the reading
(W1) command (ACT=1). If the function of a lowspeed response is
used, as soon as reading a data is completed, reset ACT
(ACT=0).
7 6 5 4 3 2 1 0
R9000
WINDR error
5.46.8 When you use the function of a lowspeed response, there are a few
Notes when this limitation. Refer to I9.3 NOTE FOR SUBROUTINES WHEN YOU
USE SUBROUTINES When you use the function of a highspeed
Functional Instruction response, there is no limitation.
is Used in Subroutine
290
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.47
WINDW (WRITING
CNC WINDOW DATA)
5.47.1 This function writes various data items via the window between the PMC
Function and the CNC.
5.47.2
Format
ACT W1
WINDW Control
data
(SUB 52) address
Fig. 5.47.2
291
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.47.5
Control Data * Set the control data area by sequence
CTL+0 Function code
program before executing the
+2 Completion code WINDR or WINDW.
+4 Data length
+6 Data number
+8 Data attribute
+42
CAUTION
1 In the functional instructions WINDR and WINDW, the
control data area may be temporarily rewritten. Therefore,
set the control data area by sequence program before the
WINDR or WINDW is executed even when you specify
the none volatile memory area like D address for the
control data area. Because, when the power supply is
turned off during the control data is rewritten, this rewritten
data may be memorized in a none volatile memory.
Therefore, note that the WINDR or WINDW might be
executed with the wrong control data when the power
supply is turned on next if the control data area is not set by
sequence program.
2 Set the control data in the same program level as the
WINDR or WINDW is executed. If you set the control data
in the different program level, note that the WINDR or
WINDW might not be executed correctly, because the
control data is rewritten during the execution of WINDR or
WINDW.
3 In the diagnosis screen, it might be seen that the value of
control data is changing. This is not abnormal. Because the
display processing and the execution processing of a
sequence program are asynchronously executed.
Therefore, the value when the control data is rewritten
(abovementioned) is occasionally displayed. Even in this
case, the WINDR or WINDW is executed correctly.
292
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
7 6 5 4 3 2 1 0
R9000
WINDW error
5.47.8 When you use the function of a lowspeed response, there are a few
Notes when this limitation. Refer to I9.3 NOTE FOR SUBROUTINES WHEN YOU
USE SUBROUTINES
Functional Instruction
is Used in Subroutine
293
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.48
ARBITRARY
FUNCTIONAL
INSTRUCTIONS
5.48.1
FNC 90 to 97
(Arbitrary Functional
Instructions) (Only for
PMCRC/RC3/NB/NB2)
5.48.1.1 These functional instructions (SUB90 to SUB97) are used to execute the
Function arbitrary functional instructions. These instructions consist of the
addresses specifying the start condition, process end output, and control
condition.
5.48.1.2 Fig.5.48.1.2 shows the notation format. Table 5.48.1.2 shows the coding
Format format.
294
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
Control data 7 2 1 0
addres
CTL + 0 CNO UPDOWN RST
CTL + 1
CTL + 2
Counter number
CTL + 3
295
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.48.2
Creating an Arbitrary
Function
5.48.2.2
Use of the R Field
Execution command data
R9010 97 96 95 94 93 92 91 90
5.48.2.3 Reference the start condition (ACT) of the arbitrary function by bit 1 at
Creating an Arbitrary R9010. Reference the address at which the control data is stored in the
byte address format by the fields at R9012 and later. Set the end signal
Function
(W1) of an arbitrary function in bit 1 at R9011. For example, to execute
the arbitrary function using SUB90, reference the start condition by
R9010.0. Reference the control data address in the byte address format
by R9012. Set the end signal at R9011.0.
296
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.49
MMCWR (READING
MMC WINDOW DATA)
(OTHER THAN
PMCPA1/PA3)
5.49.1 This command reads up to 32 bytes of data via the window between PMC
and MMC. The data can be determined as required between the PMC
Function
ladder program and MMC application program.
5.49.2
Format
1 RD fff. f ACT
2 SUB 98
3 (PRM) ffff Input data length address
4 (PRM) ffff. Input data address
5 WRT fff. f W1, processing completion
297
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.49.6 If an MMC window transfer error occurs, the bit in the operation output
register is set to indicate the error. If an error occurs, the transferred data
Operation Output
is not stored in the input data area.
Register
7 6 5 4 3 2 1 0
R9000
MMCWR error
5.49.7 The completion status information is specified in R9002 and R9003. The
completion codes and contents, W1, and error bits are as follows:
Completion Status
11 Initialization at MMC is not completed.
Information (W1 = 0, R9000#0 = 0)
10 Processing is in progress (W1 = 0, R9000#0 = 0)
0 Processing is completed.(W1 = 1, R9000#0 = 0)
2 Data length error (W1 = 1, R9000#0 = 1)
(0, a negative value, or a value exceeding 33 bytes was specified
for the data length. The length of data actually transferred
exceeded the specified value.)
6 MMC is not provided (W1 = 1, R9000#0 = 1)
298
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.50
MMCWW (WRITING
MMC WINDOW DATA)
(OTHER THAN
PMCPA1/PA3)
5.50.1 This command writes data containing up to 32 bytes via the window
Function between PMC and MMC. The data can be determined as required
between the PMC ladder program and MMC application program.
5.50.2
Format
1 RD fff. f ACT
2 SUB 99
3 (PRM) ffff Output data length address
4 (PRM) ffff. Output data address
5 WRT fff. f W1, processing completion
299
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.50.6 If an MMC window transfer error occurs, the bit in the operation output
register is set to indicate the error. If an error occurs, the transferred data
Operation Output
is not transferred to MMC.
Register
7 6 5 4 3 2 1 0
R9000
MMCWW error
5.50.7 The completion status information is specified in R9002 and R9003. The
completion codes and contents, W1, and error bits are as follows:
Completion Status
11 Initialization at MMC is not completed.(W1 = 0, R9000#0 = 0)
Information 10 Processing is in progress.(W1 = 0, R9000#0 = 0)
0 Processing is completed. (W1 = 1, R9000#0 = 0)
2 Data length error (W1 = 1, R9000#0 = 1)
(0, a negative value, or a value exceeding 33 bytes was specified
for the data length.)
6 MMC is not provided. (W1 = 1, R9000#0 = 1)
300
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
OF 1 BYTE) f f f f f f f f f f f f f
5.51.1 The MOVB instruction transfers 1byte data from a specified source
address to a specified destination address.
Function
5.51.2
Format ACT
MOVB Transfer Transfer
source destinatio
address n address
SUB 43
301
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
OF 2 BYTES) f f f f f f f f f f f f f
5.52.1 The MOVW instruction transfers 2byte data from a specified source
address to a specified destination address.
Function
5.52.2
Format ACT
MOVW Transfer Transfer
source destinatio
address n address
SUB 44
302
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
OF AN ARBITRARY f f f f f f f f f f f f f
NUMBER OF BYTES)
5.53.2
Format ACT
MOVN Number of Transfer Transfer
bytes to be source destinatio
transferred address n address
SUB 45
NOTE
With the PMCPA3/SA3/SB3/SB4/SC3/SC4/NB/NB2, a
value from 1 to 200 must be set as the number of transferred
bytes.
303
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
OF 4 BYTES) f
5.54.1 The MOVD instruction transfers 4 bytes data from a specified source
address to a specified destination address.
Function
5.54.2
Format
ACT Transfer Transfer
MOVD
source destination
SUB47
address address
304
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
DETECTION) f f f f f f f f f f f f f
5.55.1 The DIFU instruction sets the output signal to 1 for one scanning cycle
Function on a rising edge of the input signal.
5.55.2
Format ACT OUT
DIFU Rising f
edge
SUB 57 number
Rising edge _ 1 to _ _ 1 to 1 to _ _ 1 to 1 to 1 to 1 to 1 to _ 1 to 1 to 1 to 1 to
number 256 256 256 256 500 256 500 1000 256 500 256 500
WARNING
If the same number is used for another DIFU instruction or
a DIFD instruction (described later) in one Ladder diagram,
operation is not guaranteed.
5.55.5
Operation 1 2 3 4 Execution period
ACT
OUT
305
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
DETECTION) f f f f f f f f f f f f f
5.56.1 The DIFD instruction set the output signal to 1 for one scanning period
Function on a falling edge of the input signal.
5.56.2
Format ACT OUT
DIFD Falling f
edge
SUB 58 number
Falling edge _ 1 to _ _ 1 to 1 to _ _ 1 to 1 to 1 to 1 to 1 to _ 1 to 1 to 1 to 1 to
number 256 256 256 256 500 256 500 1000 256 500 256 500
WARNING
If the same number is used for another DIFD instruction or
a DIFU instruction (described above) in one ladder diagram,
operation is not guaranteed.
5.56.5
Operation 1 2 3 4 Execution period
ACT
OUT
306
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(EXCLUSIVE OR) f f f f f f f f f f f f f
5.57.2
Format ACT
EOR Format Address Constant or Address
specification A address B C
SUB 59
(b) Address A
Input data to be exclusiveORed. The data that is held starting at this
address and has the data length specified in format specification is
treated as input data.
(c) Constant or address B
Input data to be exclusiveORed with. When address specification
is selected in format specification, the data that is held starting at this
address and has the data length specified in format specification is
treated as input data.
(d) Address C
Address used to store the result of an exclusive OR operation. The
result of an exclusive OR operation is stored starting at this address,
and has the data length specified in format specification.
307
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Address B 0 1 0 1 0 1 0 1
Address C 1 0 1 1 0 1 1 0
308
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
f f f f f f f f f f f f f
5.58.1 The AND instruction ANDs the contents of address A with a constant (or
Function the contents of address B), and stores the result at address C.
5.58.2
Format ACT
AND Format Address Constant Address
specification A or C
SUB 60 address B
(b) Address A
Input data to be ANDed. The data that is held starting at this address
and has the data length specified in format specification is treated as
input data.
(c) Constant or address B
Input data to be ANDed with. When address specification is selected
in format specification, the data that is held starting at this address
and has the data length specified in format specification is treated as
input data.
(d) Address C
Address used to store the result of an AND operation. The result of
an AND operation is stored starting at this address, and has the data
length specified in format specification.
309
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Address B 0 1 0 1 0 1 0 1
Address C 0 1 0 0 0 0 1 0
310
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
f f f f f f f f f f f f f
5.59.1 The OR instruction ORs the contents of address A with a constant (or the
Function contents of address B), and stores the result at address C.
5.59.2
Format ACT
OR Format Address Constant Address
specification or
A C
address
SUB 61 B
(b) Address A
Input data to be ORed. The data that is held starting at this address
and has the data length specified in format specification is treated as
input data.
(c) Constant or address B
Input data to be ORed with. When address specification is selected
in format specification, the data that is held starting at this address
and has the data length specified in format specification is treated as
input data.
(d) Address C
Address used to store the result of an OR operation. The result of an
OR operation is stored starting at this address, and has the data length
specified in format specification.
311
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Address B 0 1 0 1 0 1 0 1
Address C 1 1 1 1 0 1 1 1
312
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
f f f f f f f f f f f f f
5.60.1 The NOT instruction inverts each bit of the contents of address A, and
stores the result at address B.
Function
5.60.2
Format ACT
NOT Format Address Address B
specification
A
SUB 62
(b) Address A
Input data to be inverted bit by bit. The data that is held starting at
this address and has the data length specified in format specification
is treated as input data.
(c) Address B
Address used to output the result of a NOT operation. The result of
a NOT operation is stored starting at this address, and has the data
length specified in format specification.
313
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Address B 0 0 0 1 1 1 0 0
314
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(MMCIII WINDOW PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
DATA READ) f f f f f f f f f f f f
NOTE
This functional instruction cannot be used with SA1 of the
Series 16i/18i/21iMODEL A/B and Series 15i.
CNC Buffer 1
PMC PMC data Buffer 1 MMCIII
Offset
Data length
Buffer n
n = maximum of 10
5.61.2
Format
ACT W1
MMC3R Buffer Offset from Data length Input data f
specification the beginning
SUB 88 of the buffer
315
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
NOTE
For the method of buffer registration, refer to the relevant
MMCIII manual.
(b) Address for storing an offset from the beginning of a buffer (2 bytes)
An offset from the beginning of a read buffer is specified. Specify
the address where the offset is held.
(c) Data length storage address (2 bytes)
The length of data to be read from the MMCIII is specified. Specify
the address where the length of data is held. The maximum allowable
data length is 256 bytes.
(d) Input data storage address
Specify the address where data to be read from the MMCIII is
stored. A contiguous area not smaller than the length of data
specified in c) above is required.
R9000
MMC3R error
316
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
317
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
(MMCIII WINDOW PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
DATA WRITE) f f f f f f f f f f f
NOTE
This functional instruction cannot be used with SA1 of the
Series 16i/18i/21iMODEL A/B and Series 15i.
5.62.1 The MMC3W instruction writes data to MMCIII application data via a
PMCMMC window. Which buffer in the MMCIII is to be written to
Function
can be specified. The contents of write data can be freely determined by
a PMC Ladder program and MMCIII application program.
CNC Buffer 1
PMC PMC data Buffer 1 MMC III
Offset
Data length
Buffer n
n = maximum of 10
5.62.2
Format
ACT W1
MMC3W Buffer Offset from Data length Input data f
specification the
SUB 89 beginning of
the buffer
318
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
For the method of buffer registration, refer to the relevant
MMCIII manual.
(b) Address for storing an offset from the beginning of a buffer (2 bytes)
An offset from the beginning of a write buffer is specified. Specify
the address where the offset is held.
(c) Data length storage address (2 bytes)
The length of data to be written to the MMCIII is specified. Specify
the address where the length of data is held. The maximum allowable
data length is 256 bytes.
(d) Output data storage address
Specify the address where data to be written to the MMCIII is
stored. A contiguous area not smaller than the length of data
specified in c) above is required.
R9000
MMC3R error
319
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
320
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.63.1 SPCNT performs the following processing using spindle speed data
(32bit binary data) that is input from the NC or some other device to the
Function
PMC:
(a) Gear selection (Up to four gears from GR1 to GR4 can be used.)
(b) Calculating a spindle motor rotation command (13bit binary data)
when automatic gear selection is enabled
(c) Calculating a spindle motor rotation command (13bit binary data)
when direct gear selection is enabled
(d) Calculating a spindle motor rotation command when a spindle
override is specified
(e) Clamping the spindle motor speed to an upper or lower limit
As shown in Fig.5.63.1, a spindle motor rotation command is
calculated from the spindle speed data. The maximum value (8191)
of the spindle motor command is equivalent to an analog voltage at
10V.
NOTE
The motor speed is clamped after spindle override is
specified.
Fig. 5.63.1 Spindle Speeds and Corresponding Spindle Motor Rotation Commands
321
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Spindle control
Information of GR1 to GR2
Spindle speed
SPCNT
Spindle motor
rotation
command
The spindle motor speed can be clamped at the upper and lower
limits also with direct gear specification. When the CNC
performs constant surface speed control, spindle control with
direct gear specification is generally performed.
322
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.63.2
Format
CIRC
* * *
SPCNT ffff ffff ffff
OVRD
323
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
7 6 5 4 3 2 1 0
Specified address+0 R08 R07 R06 R05 R04 R03 R02 R01
Spindle motor
Specified address+1 R13 R12 R11 R10 R09 rotation command
324
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.63.5 Spindle control is primarily used to control the spindle speed during
normal cutting. It can, however, also be used to:
Use of Spindle Control
(a) Rotate the spindle motor at a specific speed when the gear is switched
The sequence program can output appropriate 13bit binary data as
a spindle motor rotation command to rotate the spindle motor at a
specific speed, without using this functional instruction.
(b) Rotate the spindle at a specific speed during spindle orientation
This is enabled by specifying appropriate spindle speed data in the
functional instruction (SPCNT). During spindle orientation, the
spindle is rotated at the specified orientation spindle speed with the
currently selected gear (gear selection is not performed). Gear
selection is disabled by setting CIRC to 1 (direct gear specification).
Spindle control
Spindle
speed data Spindle speed data
Information of
GR1 to GR2
sent from
the NC, etc.
Orientation SPCNT
spindle
speed data
Spindle motor
rotation command
325
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Spindle control Spindle motor
Spindle
speed data
GR1 to GR4 rotation command
Spindle
speed limit
data
Spindle motor
limit value
(e) Example
Suppose that the parameters are set as follows:
Minimum speed specified for the spindle motor = 1000 min1
Maximum speed specified for the spindle motor = 35000 min1
Maximum speed obtainable by the spindle motor = 40000 min1
(Maximum speed when 10 V is applied to the spindle motor)
Maximum speed for gear 1 = 25000 min1
Maximum speed for gear 2 = 40000 min1
Maximum speed for gear 3 = 6000 min1
Maximum speed for gear 4 = 100000 min1
Spindle speed data addresses = F10 to F11 (RO0 to RO15)
The specified spindle speed signal is used.
(For details, refer to the BMI connection manual.)
Spindle control parameter addresses = D10 to D33
Control data addresses = R0 to R3
326
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
R9091.1 MOVW
F10 R10
SUB44
R9091.1
NUMEB
2 0 R12
SUB40
CIRC
SPCNT R10 D10 R0
OVRD
SUB46
ACT
327
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
(4) Calculate the spindle motor rotation command for the spindle
speed
Spindle speed
Lower limit at which the motor
speed is clamped (min1)
Maximum Maximum Maximum spindle Maximum spindle
(204)
spindle speed spindle speed speed for GR3 speed for GR4
for GR1 (25000) for GR2 (60000) (100000)
(40000)
Table 5.63.5 Maximum and Minimum spindle speeds for each gear
Thus, if the spindle speed data is 55000 (min1), when the spindle
override is not applied (OVRD = 0) and the direct gear
specification is not set (CIRC = 0), the spindle motor rotation
command and the spindle gear to be used are obtained as follows:
328
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
LADDER PROGRAM) f f f f f f f f f f f f f
5.64.1 The END functional instruction designates the end of a ladder program.
END must be placed at the end of the ladder program.
Function
5.64.2
Format
END
SUB 64
329
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
SUBPROGRAM f f f f f f f f f f f f f
CALL)
5.65.2
Format ACT
CALL Subprogram
number
SUB 65
ACT
CALL P1
SUB 65
CAUTION
Be careful when using the CALL instruction with the COM,
COME, JMP, or JMPE functional instruction. For details,
see Chapter 9 in Part I.
330
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
(UNCONDITIONAL f f f f f f f f f f f f f
SUBPROGRAM
CALL)
5.66.2
Format
CALLU Subprogram
number
SUB 66
CALLU P1
SUB 66
331
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
f f f f f f f f f f f f f
5.67.2
Format
SP Subprogram
number
SUB 71
Subprogram P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to P1 to
number P512 P512 P512 P512 P2000 P512 P2000 P2000 P512 P2000 P512 P2000 P2000
SP P1
SUB 71
332
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.68.2
Format
SPE
SUB 72
333
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
f f f f f f f f f f f f f
JMPB BB
JMPB AA
JMPB AA
JMPB AA LBL BB
5.69.2
Format ACT
JMPB Specification
of the jump
destination
SUB 68 label
5.69.3 ACT=0 : The next instruction after the JMPB instruction is executed.
Control Conditions ACT=1 : Control is transferred to the Ladder immediately after the
specified label.
(ACT)
CAUTION
1 For the specifications of this instruction, see Chapter 10 in
Part I.
2 When this instruction is used to jump back to a previous
instruction, care must be taken not to cause an infinite loop.
334
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
f f f f f f f f f f f f f
5.70.1 The JMPC functional instruction returns control from a subprogram to the
main program. Be sure to code the destination label in the main program.
Function
The specifications of this JMPC functional instruction are the same as
those of the JMPC functional instruction, except that JMPC always
returns control to the main program.
D More than one jump instruction can be coded for the same label.
Ladder program
Main Main
program program
LBL AA
LBL AA
LBL BB
Subprogram Subprogram
JMPC AA JMPC AA
JMPC AA JMPC BB
5.70.2
Format ACT
JMPC Specification
of the jump
destination
SUB 73 label
CAUTION
1 For the specifications of this instruction, see Chapter 10 in
Part I.
2 When this instruction is used to jump back to a previous
instruction, care must be taken not to cause an infinite loop.
335
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
f f f f f f f f f f f f f
Ladder program
LBL AA
LBL AA
JMPB BB
JMPB AA
JMPC AA
JMPC AA LBL BB
5.71.2
Format
LBL Label
specification
SUB 69
NOTE
For the use of this instruction, see Chapter 10 of Part I.
336
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
5.72 f : Available
: Unavailable
AXCTL (AXIS PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
CONTROL BY PMC) f f f f f f f f f f f f f f f f
NOTE
1 Option for Axis control by PMC function is required.
2 This functional instruction can not be used on the CNC that
does not have option for Axis control by PMC.
5.72.1 This function simplifies the handshake of DI/DO signal for the axis
Function control by PMC.
5.72.2
Format
RST W1
AXCTL ffff ffff f
Group No. Axis control
ACT (SUB 53) of DI/DO signal data address
1 RD ffff. f RST
2 RD. STK ffff. f ACT
3 SUB 53 AXCTL command
4 (PRM) ffff Number of DI/DO signal
5 (PRM) ffff Axis control data address
6 WRT ffff. f W1, processing completion
337
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
NOTE
When RST and ACT become 1 at the same time, RST is
prior to ACT.
338
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
With the PMCSB5 (RB5), group E and subsequent groups
cannot be used. The SB6 (RB6) is required to use these
groups.
6
(x=A / B / C / D)
7
339
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
CAUTION
1 When you specify 0 for feedrate, CNC does not work.
Please release this state by RST = 1.
2 It is not available in PMCMODEL PA1/PA3.
3 When you end a continuous feed or external pulse
synchronization, set RST to 1. And, continuous feed cant
be used with buffering inhibits signal = 1. You must set the
signal to 0.
4 Specify the direction by most significant bit of command
data 2.
5 Command control axis must be specified to rotary axis by
setting parameter ROTx (No. 1006#0) to 0.
6 Not applicable to the Power Mate.
However this function applicables to the Power Mate i.
7 For details such as the range of command data, please refer
to the connecting manual for each CNC models.
CAUTION
The above table is not uptodate. For the latest
information, refer to the descriptions about PMC axis control
in the CNC Connection Manual (Functions).
5 unit : 0.001mm
6
(x=A / B / C / D)
7
340
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
2 0
or In case of CNC PRM8002#0= 0 not used.
Feedrate =1 Feedrate.
3
(Absolute)
4 Position in machine
coordinate system
5
CAUTION
It is necessary to set the CNC parameters relating to the axis
movement.
5.72.6 When error occurs by processing the axis control by PMC, the bit of the
Operation Output operation output register will be set. At the same time, processing is over.
Register (R9000) 7 6 5 4 3 2 1 0
R9000
NOTE
1 W1 becomes 1 regardless of the state of ACT.
2 It is not related to the state of the alarm signal (EIALx).
341
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.72.7 (1) The following signals cannot be operated from this function.
Remarks Please operate by LADDER.
D Axis control stop signal
ESTPx (G142#5, G154#5, G166#5, G178#5)
D Servooff signal
ESOFx (G142#4, G154#4, G166#4, G178#4)
D Block stop signal
ESBKx (G142#3, G154#3, G166#3, G178#3)
D Block stop inhibit signal
EMSBKx (G143#7, G155#7, G167#7, G179#7)
D Controlled axis selection signal
EAX1EAX8 (G136#0 to #7)
D Override signal *FV0E*FV7E (G151#0 to #7)
D Override cancel signal OVCE (G150#5)
D Rapid traverse override signal
ROV2E, ROV1E (G150#1, #0)
D Dry run signal DRNE (G150#7)
D Manual rapid traverse RTE (G150#7)
selection signal
D Skip signal SKIP/ESKIP (X4#7, #6)
D Buffering inhibit signal
EMBUFx (G142#2, G154#2, G166/#2, G178#2)
(x=A/B/C/D)
WARNING
Movement cannot be sured when controlled axis selection
signal (EAXx) is changed in the state of ACT=1.
342
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB5 SB6 SB7 SC SC3 NB NB2 NB6
SB4 SC4
f f
NOTE
The PMCSB5/SB6 can be used only in the Power Mate
iD/H.
5.73.1 This function outputs a signal that indicates the are in which the current
position in the mechanical coordinate system is located. The area is
Function
specified by parameter.
5.73.2
Format
343
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
Area division
(1 : 1st Axis, 2 : 2nd Axis,...)
specification data Axis No.
+0 or
Path No. (1 : 1st Path1st Axis
(1byte) 2 :2nd Path1st Axis)
+1
I
(4bytes)
+5
II
(4bytes)
+9
III
(4bytes)
Area division
+13 specification data
IV
(4bytes)
+17
V
(4bytes)
+21
VI
(4bytes)
+25
VII
(4bytes)
+29
344
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
I II III IV V VI VII
(1) (2) (3) (4) (5) (6) (7) (8)
)
Total stroke area
NOTE
1 Please set the division points data in ascending order (I <
II < .....<VI < VII). If they are not in ascending order, the
sequence program cannot operate normally.
2 Even if you need division points only under 7, you must set
the division specification data for7.
R9000
345
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.73.6 This example illustrates how to output the position signal of the current
Example of Using position of the first axis of path 1 in the machine coordinate system (the
area split specification data and current position area output addresses are
Position Signals set to D0321 and R1000, respectively).
(SUB 50)
Decimal
D0321 1
D0322 300000
D0326 200000
D0330 100000
D0334 0
D0338 100000
D0342 200000
D0346 300000
If ACT = 1 for the above ladder and area split specification data, the
current specification area output (R1000) is as follows:
D R1000.0=1: The current position in the machine coordinate system is
greater than 300.000 mm.
D R1000.1=1: The current position in the machine coordinate system is
greater than 200.000 mm but not greater than 300.000 mm.
D R1000.2=1: The current position in the machine coordinate system is
greater than 100.000 mm but not greater than 200.000 mm.
D R1000.3=1: The current position in the machine coordinate system is
greater than 0 mm but not greater than 100.000 mm.
D R1000.4=1: The current position in the machine coordinate system is
greater than 100.000 mm but not greater than 0 mm.
D R1000.5=1: The current position in the machine coordinate system is
greater than 200.00 mm but not greater than 100.000
mm.
D R1000.6=1: The current position in the machine coordinate system is
greater than 300.000 mm but not greater than 200.000
mm.
D R1000.7=1: The current position in the machine coordinate system is
not greater than 300.000 mm.
346
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
NOTE
The PMCSB5/SB6 can be used only in the Power Mate
iD/H.
5.74.1 Turn W1=1 which th ecurrent position in the machine coordinates system
Function is in the area specifified by parameters.
5.74.2
Format
ACT PSGN2 ffff W1
Control data f
(SUB 63) address
347
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
+1
Boundary Point 1
(4bytes)
+5
Boundary Point 2
(4bytes)
+9
+4
Boundary point 1
(4bytes)
+8
Boundary point 2
(4bytes)
+12
348
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
D Path specification
A path is specified. (Onebyte data in binary form)
(Example) Path specification = 0: Path 1 is specified.
Path specification = 2: Path 2 is specified.
Path specification = 3: Path 3 is specified.
D Axis number specification
An axis number is specified. (Binary onebyte data)
(Example) Axis number = 1: The machine coordinates for the first
axis are specified.
Axis number = 2: The machine coordinates for the second
axis are specified.
(Boundary points <1> and <2> are binary fourbyte data. Their unit
of measurement is 0.001 mm or 0.001 inch.
CAUTION
Data for both boundary points <1> and <2> must be
specified in ascending order (boundary point 1 x boundary
point 2).
1
W1 0
R9000
349
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.74.7 D This example illustrates how to output the position signal for the
Example of Using current position of the second axis of path 1 in the machine coordinate
system if it is the position between 100.000 mm and 200.000 mm.
Position Signals (The control data address is set to D0320.)
(Basic specification)
Binary Decimal
D0320 00000010 ( 2)
D0321 01100000 (100000)
D0322 01111001
D0323 11111110
D0324 11111111
D0325 01000000 ( 200000)
D0326 00001101
D0327 00000011
D0328 00000000
(Basic specification)
Binary Decimal
D0320 00000000 0
D0321 00000000
D0322 00000000 0
D0323 00000010 2
D0324 01100000 100000
D0325 01111001
D0326 11111110
D0327 11111111
D0328 01000000
D0329 00001101 200000
D0330 00000011
D0331 00000000
350
B61863E/14 PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS
351
5. FUNCTIONAL INSTRUCTIONS PMC SEQUENCE PROGRAM B61863E/14
5.75.1 During creation of a ladder program using the offline programmer, if the
Function program is compiled with specifying the setting with which a net
comment or form feed code is used and the point of the net comment is
output, position information of the net comment or form feed code is
output as the NOP instruction. This instruction performs no operation
during execution of the ladder.
CAUTION
1 Do not move or delete the NOP instruction using the builtin edit function. During
decompilation, position information of net comments and form feed are lost.
2 For the model which does not support this instruction, always compile a program without
specifying the setting with which the net comment pointers are output. If the NOP instruction
is executed on a model which does not support the instruction, a system error may occur.
Set the following items on the programmer compiler option screen as shown below:
FANUC LADDERII Select [None] for [Net Comment].
FANUC LADDERIII Uncheck [Output Net Comment Pointers].
3 This instruction can be used on the following models on which the listed version or later of
software is installed:
PMD/H PMCPA1 4074/01 to, 4078/06 to
(Cannot be used on series 4075)
FS16B/18B PMCSB3/SB4 4066/08 to
Edit card 4073/06 to
FS16C/18C PMCSA1/SB5/SB6 4067/09 to
Edit card 4090/04 to
FS16B/18B/16C/18C PMCSC3/SC4 4068/08 to
FS15B PMCNB/NB2 4048/06 to, 4049/01 to
(Cannot be used on series 4075)
352
B61863E/14 PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY
6 NONVOLATILE MEMORY
353
6. NONVOLATILE MEMORY PMC SEQUENCE PROGRAM B61863E/14
Example) PMC counter addresses are C0 and C1 and the set value
is 1578.
7 6 5 4 3 2 1 0
C0 0 1 1 1 1 0 0 0
7 8
7 6 5 4 3 2 1 0
C1 0 0 0 1 0 1 0 1
1 5
27 26 25 24 23 22 21 20
7 6 5 4 3 2 1 0
C1 0 0 0 0 0 1 1 0
354
B61863E/14 PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY
Setting and display are possible from the CRT/MDI panel, and
sequence program instructions can be used for reading and writing.
If, for example, power is turned off for some reason during rotation
of the turret, the turret stops and a difference between the contents of
the memory storing the position and the actual position of the turret
occurs. When power is turned on again, the machine tool will be out
of sequence. To prevent this, use the nonvolatile memory control, and
a sequence program as follows.
(a) Set MWRTF in nonvolatile memory control to 1 before starting
the turret.
(b) Start the turret.
(c) Set MWRTF to 0 after the turret stops.
(d) MWRTF remains 1 if power is turned off between a) and c).
(e) When power is turned on again, automatically MWRTF2 = 1 and
an error is reported to the sequence program. Thus, the sequence
program processes (a) to (d), check for the error of MWRTF2, and
outputs an alarm when MWRTF2 = 1 (error).
(f) In response, the operator should set MWRTF and MWRTF2 to 0
from the CRT/MDI panel.
(g) Resume operation after the contents of the memory and the turret
position are aligned.
(5) Data table
A sizable amount of numeric data (data table) can be used for
sequence control by the PMC. See section 6.3 for details.
355
6. NONVOLATILE MEMORY PMC SEQUENCE PROGRAM B61863E/14
6.2 All the nonvolatile memory data can be read and written by the sequence
program. The memory read and written by the PMC sequence program
READING AND is actually not a nonvolatile memory, but a nonvolatile memory image
WRITING OF (RAM) storing the same data as the nonvolatile memory. When the power
NONVOLATILE supply is turned off, the data in the nonvolatile memory image disappears.
Immediately after the power is turned on, the nonvolatile memory data is
MEMORY DATA
automatically transferred to the nonvolatile memory image. Before the
power is turned off, the data is correctly restored.
When the nonvolatile memory image is rewritten by the sequence
program, the data is automatically transferred to the CMOS or bubble
memory.
When the sequence program rewrite nonvolatile memory image of area,
the rewritten data is automatically transferred to the nonvolatile memory.
Rewriting of nonvolatile memory can also be done by rewriting optional
addresses of the nonvolatile memory image in an optional timing. The
changed data will be automatically transferred to the nonvolatile memory.
Therefore, there is not special processing necessary when the sequence
program writes or reads nonvolatile memory. It will only take some time
to write in the nonvolatile memory (512 ms).
356
B61863E/14 PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY
NOTE
For details of the usable range, see I3.
357
6. NONVOLATILE MEMORY PMC SEQUENCE PROGRAM B61863E/14
D0
D1
Basic data table
(1860 bytes or 3000 bytes)
Data table
D1859
or
D2999
358
B61863E/14 PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY
Number of
tables
Table parameter
Table parameter
Table parameter
Table number
Table number
0 Data
1 Data table n
:
np
(Note)
n1, n2, and np are the last table number
of each data table.
359
6. NONVOLATILE MEMORY PMC SEQUENCE PROGRAM B61863E/14
360
B61863E/14 PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY
Table number
0
1
2
Table 1 (1-byte data)
3
NOTE
Reading and Writing of the data table are available from the
sequence program.
361
7. LADDER DIAGRAM FORMAT PMC SEQUENCE PROGRAM B61863E/14
362
B61863E/14 PMC SEQUENCE PROGRAM 7. LADDER DIAGRAM FORMAT
7.1 Addresses, signal names, comments, and line numbers must be inserted
into a ladder diagram to enable all users to easily read the ladder diagram.
ADDRESSES,
SIGNAL NAMES,
COMMENTS, AND
LINE NUMBERS
7.1.1 Each address consists of an address number and a bit number, and it is
represented as follows.
Addresses
Bit number (0 to 7)
Address number
(A numeric of 4 digits or less after an alphabetic character)
363
7. LADDER DIAGRAM FORMAT PMC SEQUENCE PROGRAM B61863E/14
7.1.4 A line number should be attached to each line of the ladder diagram. For
Line Numbers details, refer to Sec. 7.3.
364
B61863E/14 PMC SEQUENCE PROGRAM 7. LADDER DIAGRAM FORMAT
7.2
Symbol Description
SYMBOLS USED IN
These are the contacts of relays in the PMC, and
THE LADDER A contact
are used for other input from the machine side
DIAGRAM and CNC
B contact
B contact
B contact
B contact
NOTE
If the coil is represented by or , the relay is within the
PMC, and the contact uses or .
365
7. LADDER DIAGRAM FORMAT PMC SEQUENCE PROGRAM B61863E/14
3A
3B
Line number
3P
Spindle control
(3) Divide the circuits into several functions. And program the same
function in a single program.
Example) Mode control.spindle control, turret control, APC control.
(4) Assign a line number to each line as follows:
Line symbol (A to Z)
(5) Write a relay contact with a signal name of the relay coil, line number
and address.
Signal name
Address
Line number
(6) For complicated timing, timing chart should be on the same page of
the ladder diagram.
(7) The meaning of the code numbers for the S, T, and M functions
should be listed on the ladder diagram.
(8) The 1st level sequence part should be written at the beginning of the
ladder diagram.
(9) The following data should be written on the first page of the ladder
diagram:
(i) The sequence program design number
Machine tool builder shall assign design numbers of sequence
program and ROMs and manage them.
(ii) Description of symbol
(iii) Setting table of timer, counter, and PMC parameters and meaning
of them.
(iv) Description of functional instruction.
(10) Easy-to-understand name should be assigned.
366
B61863E/14 PMC SEQUENCE PROGRAM 7. LADDER DIAGRAM FORMAT
7.4 A general relay sequence circuit has a finite number of contacts, so several
relays use one contact in common so as to reduce the number of contacts
INFINITE NUMBER used as much as possible.
OF RELAY
CONTACTS
R1
R2
A
R1
A B
R2
367
8. MISCELLANEOUS ITEM PMC SEQUENCE PROGRAM B61863E/14
8 MISCELLANEOUS ITEM
368
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
f : Can be used
: Cannot be used
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f f f f f f f f f f f f
369
9. SEQUENCE PROGRAM
STRUCTURING PMC SEQUENCE PROGRAM B61863E/14
9.1
EXAMPLES OF
STRUCTURED
PROGRAMMING
Job A f
FUNC f
Job B
(2) Nesting
Ladder subprograms created in 1 above are combined to structure a
Ladder sequence.
Main Program Sub Program1 Sub Program2
D
D
Job B D Job A12
Job An
PROCESS11 PROCESS11
STATE1 PROCESS1
PROCESS12
STATE2 PROCESS2
PROCESS13
370
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
A A1 A1 A2
A3 B
A3
END1
Y0
CALL MAIN Machine a workpiece.
END2
SP MAIN
CALL A Machine a workpiece.
CALL B Move a pallet.
SPE
371
9. SEQUENCE PROGRAM
STRUCTURING PMC SEQUENCE PROGRAM B61863E/14
SP A
CALLU A1 Pick up a workpiece from a pallet.
CALLU A2 Machine the workpiece.
CALLU A3 Return the workpiece to the pallet.
SPE
SP A1
Pick up a workpiece
from a pallet. Ladder coding
SPE
SP A2
Machine the workpiece. Ladder coding
SPE
SP A3
Return the workpiece to Ladder coding
the pallet.
SPE
372
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
SP B
Move the pallet. Ladder coding
SPE
373
9. SEQUENCE PROGRAM
STRUCTURING PMC SEQUENCE PROGRAM B61863E/14
9.2
SUBPROGRAMMING
AND NESTING
END1 SP SUBPRO
f
CALL SUBPRO
CALLU PROCS1
CALL P2 f
CALL P3
ADD 0001 f
B 0001
END2 F10
R200
SPE
374
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
9.2.2 The main program is always active. Subprograms on the other hand, are
Execution Method active only when called by another program.
In the following example, subprogram SUBPRO is called by signal A.
END2 SPE
Program cycle
Signal A
Main program
a b c d a
Subprogram
Management
program
Flow of execution
a : Functional instruction CALL calls a subprogram in order to
transfer control to the subprogram.
b : When the end of the subprogram is reached, control is returned to
the main program.
c : When the end of the main program is reached, the management
program performs Ladder program postprocessing.
375
9. SEQUENCE PROGRAM
STRUCTURING PMC SEQUENCE PROGRAM B61863E/14
9.2.3 Create subprograms in the same way as the first-, second-, and third-level
Creating a Program Ladder programs.
Example of creation
END1
A
CALL SUBPRO
END2
SP SUBPRO
SPE
SP P20
SPE
376
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
Inhibit items
(1) Subprograms are nested.
SP SUBPRO
SPE
SPE
END1
SP SUBPRO
END2
377
9. SEQUENCE PROGRAM
STRUCTURING PMC SEQUENCE PROGRAM B61863E/14
9.3 a) DISPB
CAUTIONS FOR b) EXIN
SUBROUTINES c) WINDR (only low-speed response)
d) WINDW (only low-speed response)
e) MMCWR
f) MMCWW
g) MMC3R
h) MMC3W
When you use the above-mentioned functional instructions, ACT=1 must
be held until the transfer completion information(W1) becomes 1.
Therefore, be careful of the following when using those instructions in
subprograms.
D Do not stop calling the subprogram at the state which has not been
completed yet, that is executed still while using the instructions in the
subprogram.
(In other words, do not set the ACT of the CALL instruction to 0)
If you do it the function of the instructions after that is not
guaranteed.
D Call the subprogram from other subprograms at the state which has
not been completed yet while using the instructions in the
subprogram.
The movement of the above-mentioned functional instruction
after that is not guaranteed so that the last functional instruction
may be processing the instruction.
Then, when the subprogram, in which the above-mentioned functional
instruction is used, is called from two or more places, it is necessary to
control the subprogram exclusively. The case of the WINDR instruction
(low-speed response) is given as an example here.
378
9. SEQUENCE PROGRAM
B61863E/14 PMC SEQUENCE PROGRAM STRUCTURING
Example)
When subprogram is called from two places. (The WINDR
instruction is used)
C2
JMPB L4 SP S-PRO1 SP S-PRO2
C1 B A B
DATA1 SET JMPB L1 WINDR DATA
C1 ON A
CALL S-PRO1 SPE
A
A C1 CALL S-PRO2
B
C2
JMPB L2
C1
JMPB L3
LBL L1
LBL L4 ON A
C2
DATA2 SET CALLU S-PRO2
C2
CALL S-PRO1 LBL L2
A C2
SPE
C1
LBL L3
Description)
Subprogram 1 controls ACT(A)and W1(B)of WINDR (subprogram 2).
By A controlled in subprogram 1, the main program decides which
relay (C1,C2) to be effective.
When the WINDR instruction is completed, the following data will
be set and the other CALL instruction is started.
It keeps working in this way.
379
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
f : Can be used
: Cannot be used
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
f f f f f f f f f f f f f
380
10. JMP INSTRUCTIONS WITH
B61863E/14 PMC SEQUENCE PROGRAM LABEL SPECIFICATION
LBL A
f f
JMPB A
JMPC A
CAUTION
The specifications allow backward jumps. A backward
jump, however, may result in an infinite loop or cause the
execution time of the first-level Ladder program to exceed
1.5 ms (or 5 ms). Create a program carefully so an infinite
loop does not occur.
381
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
LBL A
END1
Second level
LBL C
END2
SP A SP A
LBL C
SPE
SP B
SP B
LBL B
SPE
CAUTION
As mentioned in (8) of Section 10.2, the same label must not
exist in the first- and second-level Ladder programs.
382
10. JMP INSTRUCTIONS WITH
B61863E/14 PMC SEQUENCE PROGRAM LABEL SPECIFICATION
JMPB A
f : Possible
JMPE f
LBL A
JMPB D
f
JMPB B
JMP f
LBL B
JMPB C
f
LBL C
JMPE
LBL D
JMPB C f : Possible
f
JMPB A
f
CALL
LBL A
JMPB B
f
CALLU
LBL B
LBL C
383
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
LBL A f : Possible
f
Second level
END2
SP B
SP A COM
JMPC A
COME
SPE
384
10. JMP INSTRUCTIONS WITH
B61863E/14 PMC SEQUENCE PROGRAM LABEL SPECIFICATION
JMPB B
f
JMPB C
END1
JMPB A
END2
f : Possible
JMPB A : Impossible
f
LBL A
SP A
JMPB B
SPE
SP B
SP B
LBL B
SPE
385
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
JMPB A f : Possible
: Impossible
COME
LBL A
JMPB D
f
JMPB B
COM
LBL B
JMPB C
f
LBL C
COME
LBL D
386
10. JMP INSTRUCTIONS WITH
B61863E/14 PMC SEQUENCE PROGRAM LABEL SPECIFICATION
f : Possible
LBL A : Impossible
First level
END1
Second level
LBL B
f
END2
SP A
SP A
JMPC B
JMPC A
SPE
387
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
: Impossible
COM
LBL A
Second level
COME
END2
SP A
SP A
JMPC A
SPE
LBL A
Second level
CALL A
END2
SP A
SP A
JMPC A
SPE
CAUTION
Although Ladder diagrams can be edited, editing a Ladder
diagram may cause an infinite loop. So, be careful not to
program such processing.
388
10. JMP INSTRUCTIONS WITH
B61863E/14 PMC SEQUENCE PROGRAM LABEL SPECIFICATION
LBL A
Second level
END2
SP A
SP A
JMPB A
SPE
JMPB A
First level
LBL A
END1
Second level
LBL A
END
389
10. JMP INSTRUCTIONS WITH
LABEL SPECIFICATION PMC SEQUENCE PROGRAM B61863E/14
LBL A
Second level
END2
SP A
SP A
JMPC B
SPE
390
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
NOTE
This function is available only in the PMCSB5/SB6 for the
Power Mate iH. It requires the interrupttype PMC option.
391
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
[Conventional] [Interrupt]
8ms
Interrupt
First level
392
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
11.2 The following NC parameters specify the conditions for the interrupt
input signals.
SETTING
D NC parameters (bit type)
#7 #6 #5 #4 #3 #2 #1 #0
8731 EPMC7 EPMC6 EPMC5 EPMC4 EPMC3 EPMC2 EPMC1 EPMC0
#7 #6 #5 #4 #3 #2 #1 #0
8732 UPEG7 UPEG6 UPEG5 UPEG4 UPEG3 UPEG2 UPEG1 UPEG0
UPEGn Whether to use the interrupttype PMC on the rising edge of a signal
defined by bit n of X1003
0 : Not used.
1 : Used.
#7 #6 #5 #4 #3 #2 #1 #0
8733 DWEG7 DWEG6 DWEG5 DWEG4 DWEG3 DWEG2 DWEG1 DWEG0
DEWGn Whether to use the interrupttype PMC on the falling edge of a signal
defined by bit n of X1003
0 : Not used.
1 : Used.
(Example) The following settings specify that the rising edge of bit 0
of X1003, the falling edge of bit 1 of X1003, and both the
rising and falling edges of bit 7 of X1003 be used as
conditions for interrupt program execution.
#7 #6 #5 #4 #3 #2 #1 #0
8731 1 0 0 0 0 0 1 1
#7 #6 #5 #4 #3 #2 #1 #0
8732 1 0 0 0 0 0 0 1
#7 #6 #5 #4 #3 #2 #1 #0
8733 1 0 0 0 0 0 1 0
393
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
11.3
INTERRUPT
PROCESSING
END1(SUB1) END1(SUB1)
END2(SUB2) END2(SUB2)
SP(SUB71) SP(SUB71)
Subprogram Subprogram
SPE(SUB72) SPE(SUB72)
END(SUB64) END(SUB64)
394
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
11.3.3 The interrupt program is executed within 0.5 ms (software response time)
after an interrupt input signal is received. If there is an interruptinhibited
Response Time
interval, the execution of the interrupt program is deferred by the
corresponding time. If another interrupt input signal is received when the
interrupt program is already running, the newly received signal is kept
waiting until the current execution ends.
395
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
11.3.4 The execution time of the interrupt program must be within about 6 ms,
Execution Time even in the worst case.
If an interrupt program whose execution time is longer than 6 ms is
executed, or if too many interrupt requests are made, a PMC alarm (WN08
INTERRUPT LADDER TIME OVER) is issued.
The maximum execution time of the interrupt program can be checked
using the internal relay (R9022 to R9023).
D Internal relay R9022 to R9023 (interrupt program maximum
execution time)
R9022 Interrupt ladder program maximum execution time [10 s]
This data is the maximum allowable execution time for the interrupt
ladder program. (0 to 655,350 s)
D PMC alarm message (alarm screen)
Alarm message Meaning and response
WN08 INTERRUPT The execution time of the interrupt ladder has ex-
LADDAR TIME OVER ceeded the allowable value (about 6 ms). The
interrupt program is too large, or too many inter-
rupt requests were issued. So, the second level of
the ladder has operated.
(Response) Make the interrupt program smaller,
or reduce the number of interrupt requests.
CAUTION
Check the execution time of the interrupt program with the
internal relay mentioned above, and change the program to
keep the regular interrupt program execution time within 2
ms.
11.3.5 The WINDW machine instruction (with function code 10000) is used to
enable, disable, and clear (that is, nullify all internally stored requests for)
Interrupt
interrupts in the secondlevel program.
Enable/Disable/Clear If an interrupt request arises when an interrupt has been disabled, interrupt
program execution is deferred until an interrupt is enabled.
The secondlevel program is initially in an interrupt disabled state. Any
interrupt request is rejected before the NC preparation completed signal
MA (F1.7) is input. To enable immediately when the power is applied,
execute the WINDW machine instruction (with function code 10000),
using the preparation completed signal MA (F1.7) signal. (See Section
11.4, Sequence Program Examples.)
D Window function (with function code 10000 for enabling, disabling,
and clearing interrupts)
[Description of data]
Interrupttype PMC interrupts are enabled, disabled, and cleared.
396
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
Top address+0
(Function code)
10000
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
N N=1 to 3
(N = data specification) 1: Enable interrupts. (All conditions)
2: Disable interrupts. (All conditions)
3: Clear interrupts. (All conditions)
+8
(Data attribute)
(Need not be set)
+10
Top address+0
(Function code)
10000
+2
(Completion code)
?
(See the above descriptions
about the completion codes.)
+4
(Data length)
?
(Data at input)
+6
(Data number)
N
(Data at input)
+8
(Data attribute)
?
(Data at input)
+10
397
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
398
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
Executed later
Interrupt program
After the interrupt program has been started by a certain interrupt signal,
if the same interrupt signal occurs again, it is ignored.
(Example) Rising edge of bit 0 of X1003
If both the rising and falling edges of a certain interrupt input signal are
specified for interrupt, the falling (rising) edge is ignored if it is detected
during the interrupt program execution requested on the rising (falling)
edge. So, it is necessary to complete the interrupt program execution
before the interrupt input signal changes.
399
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
LBL L0001
SUB69
LBL L0002
SUB69
END1
SUB1
400
11. INTERRUPTTYPE
B61863E/14 PMC SEQUENCE PROGRAM PMC FUNCTION
R0.0 NUMEB 2
SUB40 10000
R100
R0.0 NUMEB 2
SUB40 1
R106
R0.0 R1.0
WINDW R100
Interrupt
SUB52
enable
END2
SUB2
401
11. INTERRUPTTYPE
PMC FUNCTION PMC SEQUENCE PROGRAM B61863E/14
R9091.1 NUMEB 2
SUB40 10000
R100
R9091.1 NUMEB 2
SUB40 1
R106
R9091.1 NUMEB 2
SUB40 10000
R200
R9091.1 NUMEB 2
SUB40 2
R206
R9091.1 R2.0
WINDW R200
Interrupt
SUB52
disable
Interruptdisabledinterval
R9091.1 R1.0
WINDW R100
SUB52 Interrupt
enable
END2
SUB2
402
II. PMC OPERATION (CRT/MDI)
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
1 GENERAL
The following PMC data can be set and displayed by using the CRT/MDI
panel.
1) PMC I/O signal display and internal relay display (PMCDGN)
PMCDGN has following screens.
a) Title data display
b) Status screen
c) Alarm screen
d) Trace function
e) Memory display
f) Signal Wareform display function
g) User task execution status display function
2) PMC data setting and display (PMCPRM)
The following PMC data are provided.
a) Timer
b) Counter
c) Keep relay
d) Data table
3) Display of sequence program ladder diagram (PMCLAD)
4) PMC screen (PMCMDI) for the user
Press the function key <CUSTOM> on the CRT/MDI panel first.
NOTE
This function key is effective when a user program exists in
the PMCRC.
NOTE
A key in < > is a function key on the CRT/MDI panel. A key
in [ ] is a soft key described below.
405
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
SHIFT key
Cancel key
INPUT key
Edit keys
HELP key
RESET key
RESET key
HELP key Address/numeric keys
Edit keys
Cancel key
INPUT key
406
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
Cancel key
SHIFT key
INPUT key
HELP key
RESET key
Soft keys
407
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
RESET key
Address/numeric keys HELP key
SHIFT key
Edit keys
INPUT key
Cancel key
Function keys
Soft keys
RESET key
Function keys
HELP key Edit keys
Cursor control keys
408
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
SHIFT key
Cancel keys
INPUT key
Edit keys
HELP key
RESET key
Page keys
Soft keys
Cursor control keys
RESET key
HELP key Address/numeric keys
Edit keys
Cancel key
INPUT key
409
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
Cancel key
SHIFT key
INPUT key
HELP key
RESET key
Soft keys
410
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
RESET key
Address/numeric keys HELP key
SHIFT key
Edit keys
INPUT key
Cancel key
Function keys
Soft keys
RESET key
Function keys
411
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
1.1 Note the followings when you input PMCaddress on the original MDI
boards made by MTBs without using Standard MDI Unit supplied by
FOR MDI UNITS FANUC.
OTHER THAN
(1) If the MDI has the keys to input PMCaddress (X, Y, F, G, R, A, C,
STANDARD MDI K, D, T), You can operate as same as FANUC Seires 18
UNITS (FOR FS20 (PMCSA1/SA3).
PMCSA1 AND SA3) (2) If MDI does not have those keys, input PMCaddress as follows.
When inputting PMCaddress (in PCLAD, STATUS and so on), you
can substitute number keys (0 to 9) and a hyphen key () for
PMCaddress capital keys (X, Y, F, G, etc.). PMCaddress capital
keys are corresponding to the number keys as follows.
PMCaddress keys G F Y X A R T K C D
number keys 0 1 2 3 4 5 6 7 8 9
1.3 When the power for the CNC is turned on for the first time, a RAM
PARITY or NMI alarm may occur in the PMC. This is caused by invalid
CLEARING THE data in the sequence program storage area in the PMC. The sequence
SEQUENCE program must be cleared to prevent this.
PROGRAM The automatic operation (see 1.2 above) can also be stopped by clearing
the sequence program in the PMC.
The sequence program can be cleared in either of the following two ways:
1. Turn on the power while pressing X and O.
2. Turn on the power, display the PMC screen, and use the programmer
function of the PMC (EDIT/CLEAR).
NOTE
In case of loader control function, turn on the power while
pressing X and 5.
412
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
1.4 The PMCPA1 and PA3 contained in the Power Mate have a sequence
program called the standard ladder in their ROM to operate the Power
LOADING THE Mate without creating a sequence program.
STANDARD LADDER
Operation)
(FOR Power MateD/F
Parameter in the Power Mate
PMCPA1 AND PA3)
#7 #6 #5 #4 #3 #2 #1 #0
8703 FLA
CAUTION
If the sequence program is not cleared in the PMC, the
FANUC standard ladder is not loaded. The existing
sequence program remains.
413
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
414
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
NOTE
1 See the following items for the selected screens listed in
Table 1.7 (a).
PMCLAD : 5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) in Part II
M.SRCH : 3.5 Display the Contents of Memory
(M.SRCH) in Part II
LADDER : 5.2 Sequence program generation
(LADDER) in Part III
CLRLAD : 5.6.1 Clear the sequence program in Part
III
CLRALL : 5.6.1 Clear the sequence program in Part
III
DBGLAD : 8.4 Ladder Debug Function in Part III
ONLEDT : 5.8 Online Editing in Part II
8.4.2 Soft key menu for ladder debug
function in Part III
2 For an explanation of the selection screen of Table 1.7 (b),
see the following section:
LADDER: III 11.4 Ladder Mnemonic Editing
3 With DPL/MDI of the Power Mate, the use of the following
characters only is supported for clearing passwords:
Alphabetic characters : D, F, G, K, P, T, X, Y
Numeric characters : 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
If a character other than those listed above is used for a
password, the password cannot be cleared using the
DPL/MDI.
415
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
NOTE
The sequence program is cleared by turning on the power
with the X and O keys being held down, whether password
protection is specified or not.
PA1 RA1 SA1, SA2 SB, SB2, SB3 SB3 SB4 SB5 SB6 SC4 SA1 SB5 SB6 NB NB2
PA3 RA3 SA3 SC, SC3 SC3 SC4 SC3 SA5
n f n f f
NOTE
Usable editions
PMCSB4 : Series 4066 Edition 08 or later
PMCSC4 : Series 4068 Edition 07 or later
Edit card : Series 4073 Edition 06 or later
example 1)
When the cursor is positioned to the subprogram P1500 and [ZOOM]
key is pressed, this subprogram P1500 can be edited in spite of the
protection by the password.
example2)
When the cursor is positioned to the subprogram P1 and [ZOOM] key
is pressed, if the protection by the password is not released, the
message KEY IN PASSWORD(R/W) is displayed and this
subprogram can be edited by inputting a correct password.
416
B61863E/14 PMC OPERATION (CRT/MDI) 1. GENERAL
1.8 Note the following when PMC of loader control function is operated.
PMC OPERATION D Operate PMC after switching to the screen for the loader control. (The
control of the main and the loader changes by pushing the SHIFT key
FOR LOADER and the HELP key at the same time.)
CONTROL FUNCTION D Connector JD5A of main board is used when communicating with
RS232C.
D When ladder data is input and output to the memory card on the PMC
I/O screen or an edit card is used,the edit card or the memory card is
installed at connector CNMC of the loader board.
D Connector JD1A of loader board is used when using I/O Link function.
417
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY PMC OPERATION (CRT/MDI) B61863E/14
Pressing the function key <SYSTEM> of CRT/MDI and the PMC soft
key changes the screen to the PMC basic screen. The soft keys are
displayed at the bottom of the screen.
1) PMC basic menu
If the control provides a builtin programmer function, a programmer
basic menu is selected by depressing the next key. The PMC basic
menu and programmer basic menu are alternately selected from each
other by depressing the next key.
For programmer basic menus and operation, see Chapter III PMC
PROGRAMMER.
NOTE
1 In the following description, the relation between soft keys and menu is described based on the
9 CRT/MDI panel. The 10, 14 CRT/MDI panel is provided with 10 soft keys which are those
of the 9 CRT/MDI panel, and thus, it displays many menus as compared with the 9 CRT/MDI
panel.
2 The following operations are necessary for using the builtin programmer function:
Model Operation
PMCSA1/SA2/SA3/SB/SB2/SB3 Mount the editing module.
(FS16/18MODEL A),
PMCSA1(FS16MODEL A loader control) (A02B0120CC160)
PMCPA1/PA3 (Power MateD/H), Mount an editing card.
PMCSA1/SB3/SB4 (FS16/18MODEL B),
PMCSB5/SB6 (FS16/18MODEL C),
PMCSA1/SA5/SB5/SB6
(16i/18i/21iMODEL A),
PMCSA1/SA3 (FS20, FS21/210B),
PMCSA1
(FS16MODEL B/C, 16i/18i/21iMODEL A,
FS21B loadercontrol function)
PMCSC/SC3(FS16/18MODELA), The function is already contained.
PMCSC3/SC4(FS16/18MODELB/C),
PMCNB/NB2(FS15B)
Common to all the models listed above Set bit 1 of K17 to 1.
The FS18MODEL A contains the PMCSA1,SA2,or SA3. The series number is 4070.
The FS20 contains the PMCSA1 or SA3. The series number is 4080.
The FS21/210B contains PMCSA1 or SA3. The series number is 4084.
The FS21B(with loader control) contains PMCSA1. The series number is 4086.
418
2. PMC MENU SELECTION
B61863E/14 PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY
NOTE
Without builtin programmer function of PMCSA1, SA2,
SA3, SB, SB2, SB3, SB4, SB5, or SB6 there are
only RUN/STOP and I/O functions.
d) <> key
Cursor shift (upward) key.
e) <> key
Cursor shift (downward) key.
f) <> key
Cursor shift (leftward) key. Search function with this key is
provided in PMCLAD EDIT, LADDER (See chapter II.5 and
Chapter III.5.25 for details).
g) <> key
Cursor shift (rightward) key. Search function with this key is
provided in PMCLAD EDIT, LADDER (See chapter II.5 and
Chapter III.5.25 for details).
h) Soft key
These keys show operating functions corresponding to individual
operations when various PMC operations are done. The soft key
functions change (key menus are selected) according to
operations.
419
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY PMC OPERATION (CRT/MDI) B61863E/14
i) Next key
This key is used for extending menus of soft keys. By pressing
this key, a menu changes, and by pressing it again, the menu is
reset as before.
j) Return key
Various PMC operations are conducted by pressing soft keys
related to menus.
The menus sequentially change when pressing corresponding
soft key. Use this return key to reset a menu to the original one.
3) Status display
The alarm status and the name of the sequence program storage that
is currently effective are displayed on all the PMC menus.
In addition, PMCSC/SC3/SC4/NB display the states while the
debugging function is used.
420
2. PMC MENU SELECTION
B61863E/14 PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY
N SRCH
NEXT NEXT
F SRCH M. SRCH*1
ANALYS*2
USRDGN*3
ADRESS
(SYMBOL)
NOTE
The soft keys indicated by *1, *2, *3 are supported only for
certain models. See the conditions in the description of
each relevant function.
421
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY PMC OPERATION (CRT/MDI) B61863E/14
BTYPE
SETING
NEXT NEXT
DUMP M. SRCH*1
DPARA ANALYS*2
USRDGN*3
ONLEDT
IOCHK*4
NOTE
The soft keys indicated by *1, *2, *3 are supported only for
certain models. See the conditions in the description of
each relevant function.
422
2. PMC MENU SELECTION
B61863E/14 PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY
423
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
PMC I/O signals, internal relays, and other PMC diagnosis are displayed
on the screen by depressing soft key [PMCDGN].
RET
NEXT
424
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.1 Title Data refers to the title of the sequence program created by the
machine tool builder.
DISPLAYING TITLE
DATA They consist of the following ten items :
Machine tool builder name (32 characters)
Machine tool name (32 characters)
NC and PMC types (32 characters)
Sequence program number (4 characters)
Version (2 characters)
Sequence program drawing number (32 characters)
Date when the sequence program was created (16 characters)
Sequence program programmer (32 characters)
ROM programmer (32 characters)
Comment (32 characters)
In addition to the title display :
1) Series and version of the PMC control software.
2) Type of the PMC.
3) For Editing module or Editing card, the series and version.
4) Memory areas used for each sequence data, and execution time of
ladder program.
5) Type of PMC control module and PMC sequence program.
6) For the non-dividing system, the present, maximum and minimum
values for the execution time of ladder program.
NOTE
When a C board is installed in the Series 16i/18i, the title
data for C can be displayed. With the arrow keys [] and
[], the user can switch the display between the ladder title
and C title data.
425
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
DATE OF PROGRAMING :
f f
PROGRAM DESIGNED BY :
f f
ROM WRITTEN BY :
f f
REMARKS :
f f
426
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
RET
SEARCH NEXT
ADDRESS 7 6 5 4 3 2 1 0
EXDAT1 ED7 ED6 ED5 ED4 ED3 ED2 ED1 ED0
G0000 0 0 0 0 0 0 0 0
EXDAT2 ED15 ED14 ED13 ED12 ED11 ED10 ED9 ED8
G0001 0 0 0 0 0 0 0 0
ESTB EA6 EA5 EA4 EA3 EA2 EA1 EA0
G0002 0 0 0 0 0 0 0 0
ERDRQ EOREND
G0003 0 0 0 0 0 0 0 0
MFIN5 MFIN4 MFIN3 MFIN2 MFIN1
G0004 0 0 0 0 0 0 0 0
BFIN AFL TFIN SFIN EFIND MFIN
G0005 0 0 0 0 0 0 0 0
DLK OVC *ABSM BRN SRN
G0004 0 0 0 0 0 0 0 0
RLSOT EXLM2 *FLWP ST STLK RVS
G0007 0 0 0 0 0 0 0 0
[SEARCH] [ ] [ ] [ ] [ ] [ ]
Fig. 3.2 Status display of PMC I/O signals and internal relays
427
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.3 If an alarm is issued in the PMC, pressing the PMC soft key displays the
alarm message as shown in Fig. 3.3. ALM blinks at the lower right corner
ALARM SCREEN of the screen.
(ALARM) If a fatal error occurs, a sequence program does not start.
ALM
428
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.4 This function checks the signal history which cannot be checked in the
status display. Using one- or two-byte addressing, the function records
TRACE FUNCTION a state when the signal changes. In two-byte addressing, discontinuous
(TRACE) addresses can be set.
3.4.1 Pressing the [TRACE] key on the PMCDGN screen displays the trace
Operation screen when signals are being read. When signals are not being read, the
parameter setting screen for reading signals is displayed. After displaying
either screen, pressing the [TRCPRM] key on the trace screen displays the
parameter setting screen and pressing the [T.DISP] key on the parameter
setting screen displays the trace screen.
RET
T.DISP EXEC NEXT
or or
TRCPRM STOP
3.4.2 Data to be used for reading signals needs to be specified to check the
Parameter Setting signal history.
Screen 1) Parameters
TRACE MODE : Sets a mode used for reading signals
0 : 1-byte data
1 : 2-byte data (discontinuous addresses can be
specified)
2 : Word data (with continuous addresses)
ADDRESS TYPE : Sets addresses used
0 : PMC address
1 : Physical address
ADDRESS : Sets addresses at which a signal is traced
MASK DATA : Sets a masked bit or bits (signals can be read with
unnecessary bits masked)
Range : 00 to FF
The above trace parameters are retained if the power is turned off.
429
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
TRACE MODE : 1
(0:1BYTE/1:2BYTE/2:WORD)
1ST TRACE ADDRESS CONDITION
ADDRESS TYPE : 1 (0:PMC /1:PHY)
ADDRESS : FFE480
MASK DATA : 11
2ND TRACE ADDRESS CONDITION
ADDRESS TYPE : 0 (0:PMC /1:PHY)
ADDRESS : Y0
MASK DATA : FF
[T.DISP] [ EXEC ] [ ] [ ] [ ]
430
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.4.4 Signal history can be checked using data specified on the parameter
Trace Screen setting screen. The result of the latest trace is displayed at the cursor
position. The cursor moves on the screen as the results of the trace are
obtained. If the cursor moves off the screen, the results of the trace can
be followed by pressing the page key to display the subsequent screen.
[TRCPRM ] [ STOP ] [ ] [ ] [ ]
EXEC
431
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.5
DISPLAYING THE : Standard
: optional
CONTENTS OF : cannot be used
MEMORY n : Can be used for the 4084 series.
Power FS21i FS16A
Power FS20/ FS16A/B FS16C FS16B/C
Mate- FS21B FS18A FS18B FS16A FS16i FS16A /B/C FS15B
Mate-H FS21A FS18B FS18C FS18B/C
D/F FS18i FS18B/C
PA1 PA3 PA3 SA1 SA3 SA1 SA3 SA1 SA2 SA3 SA1 SB SB2 SB3 SB4 SB5 SB6 SA1 SA5 SB5 SB6 SC SC3 SC4 NB NB2
n n
3.5.1 1) Pressing the [M.SRCH] soft key changes the screen to that shown in
Fig. 3.5.2. The displayed soft keys also change.
Operation
2) Enter a physical address in hexadecimal from which the contents of
the memory are to be displayed. Then pressing the [SEARCH] key
displays 256 bytes of stored data starting from the specified address.
Example) Entering 100000, then pressing the [SEARCH] key
displays the contents of the memory starting from
100000H.
3) An address can be changed using the <PAGE > or <PAGE > key.
4) Pressing either the [BYTE], [WORD], or [D.WORD] soft key
displays data of the corresponding type.
CAUTION
If an address at which the memory is not used is specified,
a system error occurs. Be sure to specify the correct
address.
432
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.5.2 To store data in memory, set bit 4 of keep relay K17 to 1, move the cursor
Function for Storing to a position at which the address of the data to be changed in RAM is
displayed, and enter data in units of data type in hexadecimal.
Data in Memory
Example) Entering 0F41, then pressing the [INPUT] key stores 0F41
at the address specified by the cursor.
WARNING
Some values cause a system error.
100000 0000 0000 0000 0000 0000 0000 0000 0000 ................
100010 4142 4344 4546 4748 494A 4B4C 4D4E 4F50 ABCDEFGHIJKLMNOP
100020 2020 2020 2020 2020 2020 2020 2020 2020
100030 5152 5354 5556 5758 595A 2020 2020 2020 QRSTUVWXYZ
100040 0000 0000 0000 0000 0000 0000 0000 0000 ................
100050 0000 0000 0000 0000 0000 0000 0000 0000 ................
100060 0000 0000 0000 0000 0000 0000 0000 0000 ................
100070 0000 0000 0000 0000 0000 0000 0000 0000 ................
100080 4641 4E55 4320 434F 2E2C 5444 0000 0000 FANUC CO.LTD....
100090 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000A0 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000B0 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000C0 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000D0 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000E0 0000 0000 0000 0000 0000 0000 0000 0000 ................
1000F0 0000 0000 0000 0000 0000 0000 0000 0000
>
[ SEARCH ] [ INPUT ] [ ] [ ] [ ]
433
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.6
FUNCTION FOR
DISPLAYING SIGNAL : Standard
: optional
WAVEFORMS : cannot be used
(ANALYS) n : Can be used for the 4084 series.
Power Power FS20/ FS21B FS18A FS18B FS16A FS16A/B FS16C FS21i FS16A FS16A FS16B/C FS15B
MateD/F MateH FS21A FS18B FS18C FS16i /B/C FS18B/C
FS18B/C
FS18i
PA1 PA3 PA3 SA1 SA3 SA1 SA3 SA1 SA2 SA3 SA1 SB SB2 SB3 SB4 SB5 SB6 SA1 SA5 SB5 SB6 SC SC3 SC4 NB NB2
n n
3.6.2 Pressing the [ANALYS] key on the PMCDGN screen displays the
Operation parameter screen for diagnosing signals. Pressing the [SCOPE] soft key
on the parameter screen displays the screen showing signal diagnosis. To
return to the parameter screen, press the [SGNPRM] soft key.
434
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
EXCHG SCALE
SELECT CANCEL
RET
TO CANCEL
EXEC CANCEL
3.6.3 To trace the state of a signal, the trace conditions need to be specified on
Parameter Screen the parameter screen. In a 9 screen, a trace address can be specified by
pressing the <PAGE > key. (See Fig. 3.4.4.)
1) Setting parameters
Move the cursor to a parameter to be specified. Enter a value and
press the [INPUT] key. To delete the value of the parameter, move
the cursor to the parameter, then press the [DELETE] soft key.
a) SAMPLING TIME
Specify the maximum trace time in the range of 1 to 10 s.
b) TRIGGER ADDRESS
Specify a trigger address from which the tracing starts on the
PMC address. A symbol name can be used.
c) CONDITION
Specify the conditions at which the tracing starts.
0 : When the [START] key is pressed
1 : When the [START] key is pressed and the trigger address
signal rises
2 : When the [START] key is pressed and the trigger address
signal falls
NOTE
Conditions 1 and 2 are effective when a trigger address is
specified.
435
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
d) TRIGGER MODE
Sampled data for up to 10 seconds is stored in the trace buffer.
A signal is stored in the buffer within 8 ms.
This parameter specifies the starting and end points for obtaining
data.
0 : AFTER
In this mode, signal states are obtained in the period specified
in parameter SAMPLING TIME from the time when the
trigger conditions are satisfied.
1 : ABOUT
In this mode, signal states are obtained in the period specified
in the parameter SAMPLING TIME with the time at the
middle when the trigger conditions are satisfied.
2 : BEFORE
In this mode, signal states are obtained in the period specified
in parameter SAMPLING TIME before the trigger
conditions are satisfied.
3 : ONLY
In this mode, the signal states are obtained only when the
trigger conditions are satisfied.
NOTE
Trigger mode 1 and 2 are effective when condition 1 or 2 is
set.
e) SIGNAL ADDRESS
Specify up to 16 addresses at which the tracing is performed with
PMC addresses or symbol names.
2) Initializing signal diagnosis data
Pressing the [INIT] soft key on the parameter screen initializes
parameter data and trace data.
3) Displaying symbols for trigger addresses and trace addresses
Pressing the [ADRESS] soft key displays trigger and trace addresses
for which symbols are defined and the key changes to the [SYMBOL]
key. Pressing the [SYMBOL] key displays the symbols for trigger
and trace addresses and the key changes to the [ADRESS] key.
436
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
CONDITION : 1
(0:START 1:TRIGGER-ON 2:TRIGGER-OFF)
TRIGGER MODE : 1
(0:AFTER 1:ABOUT 2:BEFORE 3:ONLY)
>
ADRESS/SYMBOL
SIGNAL ADDRESS
1 : ED0 9 : X0000.0
2 : ED1 10 : X0000.1
3 : ED2 11 : X0000.2
4 : ED3 12 : X0000.3
5 : ED4 13 : X0000.4
6 : ED5 14 : X0000.5
7 : ED6 15 : X0000.6
8 : ED7 16 : X0000.7
>
ADRESS/SYMBOL
437
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.6.4 After parameters are specified on the parameter screen, select the signal
Signal Diagnosis diagnosis screen.
Screen Pressing the [START] soft key starts to trace the specified signal.
While the signals are traced, EXECUTING is displayed. When the
tracing is finished, the period in which the specified signal was traced is
displayed on the screen.
When the optional graphic function is provided, the waveform is
displayed by using the graphic function.
When the function is not provided, waveform is displayed with J
indicating the signal is on and _ indicating the signal off.
In the ONLY mode, even when the optional graphic function is
provided,J and _ is used to display the waveform as shown in Fig.
3.6.4.
1) Starting or stopping the data sampling
Pressing the [START] key starts sampling. Pressing the [STOP] key
stops sampling and the sampled data is displayed.
2) Displaying traced data by specifying a period
Enter a period in ms in which traced data is to be displayed. Pressing
the [T.SRCH] key displays the traced data.
Example) Entering 800, then pressing the [T.SRCH] key displays the
waveform from 512 ms to 1024 ms.
3) Displaying symbols for trigger and trace addresses
When symbols are defined for trigger and trace addresses, the
symbols and addresses are displayed
4) Exchanging positions at which traced data is displayed
Pressing the [EXCHG] key moves the cursor to the first traced
address. Position the cursor to the trace address to be exchanged,
using the <> or <> key, then press the [SELECT] key. Next,
position the cursor to the trace address with which the selected trace
address is to be exchanged, then press the [TO] key. Finally, press the
[EXEC] key. The trace data is exchanged.
During the above operation, all other soft keys are disabled until the
[EXEC] key has been pressed. To cancel the exchange, press the
[CANCEL] key.
5) Changing the time division (This function is available when the
graphic function is used.)
When displaying the signal waveform, the time division can be
changed.
Setting 8 . . . . . . 8 ms/divisions
16 . . . . . 16 ms/divisions
32 . . . . . 32 ms/divisions
Pressing only the [SCALE] key increments the minimum scale from
8 to 32 ms, as follows:
6) Shifting traced data upward or downward
Pressing the <PAGE > key shifts traced data upward. Pressing the
<PAGE > key shifts traced data downward.
7) Shifting traced data left or right
438
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
Pressing the key shifts traced data to the left. Pressing the
key shifts traced data to the right.
ED0
ED1
ED2
ED3
ED4
ED3
-256 0(MSEC)
3.6.5 Since parameter and sampling data is stored in nonvolatile memory, data
Reading Signals is retained when the power is turned off.
Data sampling can be started automatically, immediately after poweron,
Automatically at Power by setting sampling parameters and setting the keep relay beforehand.
on The keep relay setting method depends on the PMC model. See Section
4.3.3.
439
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.7 Pressing the [USRDGN] key dynamically displays the running states of
user tasks (including the third level of a ladder program) in the PMC (Fig.
DISPLAYING THE 3.7).
RUNNING STATE OF
: Can be used
A USER TASK : Cannot be used
(USRDGN) PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SC SC3 SC4 NB NB2
(Note)
NOTE
C language board is required.
>
[ ][ ][ ][ ][ ]
[Displayed items]
440
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
1) Operation
Code Description
# RS-232C being used
@ NC command edit being used
2) Running state
Code Description
ACTIVE Running
READY Ready
WAIT Waiting
STOP Task stopped
ERROR The system deleted the task because the task had called library that
is not supported.
3) Wait information
Code Description
TIM Waiting for time-out
EVT.A Waiting for AND condition of event flags
EVT.O Waiting for OR condition of event flags
SEM Waiting for semaphore
MBX.R Waiting for READ of the mail box
MBX.W Waiting for WRITE of the mail box
PKT Waiting for a packet to be received
PCMDI Waiting for the PCMDI command to be issued
441
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
D/F/G
DEVICES (IOCHK)
NEXT
RET
IOLNK IOLNK2
NEXT
RET
NEXT
RET
442
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
NEXT
443
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
3.8.1 The I/O Link connecting check screen displays the types and ID codes of
I/O Link Connecting the connected I/O devices for each group. When I/O device is not
connected, NO I/O DEVICE is displayed.
Check Screen If there is a problem of input or output signals for I/O devices, check
connection of I/O Link by referring to this screen.
(1) When CNC hardware dose not support the I/O Link expansion
function.
00 80 CONNECTION UNIT
01 82 OPERATOR PANEL
02 84 I/O UNIT MODEL A
03 96 CONNECTION UNIT
04 4A POWER MATE
The screen displayed like fig.3.8.1 (a) means that the I/O devices are
composed like following fig.3.8.1 (b).
444
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
Operators
Panel Connec- Group 1
tion Unit
I/O
Group 2
Unit MODEL A
I/O Link
Connection Group 3
Unit
Power Mate
Group 4
Fig. 3.8.1 (c) Example of the I/O Link connecting check screen
When the screen is displayed like fig.3.8.1(c), the I/O devices are
composed like following fig.3.8.1 (d)
445
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
Channel 2
CNC
Connection Group 0 I/O
Channel 1 Unit Unit MODEL A
I/O Link
Connection Group 3
Unit
Power Mate
Group 4
When PMC model is not PMCSB6 for Series 16i /160i /18i /180i /21i /
210i or optional I/O Link expansion is not provided with CNC, NOT
SUPPORTED is displayed on CHANNEL 2.
3.8.2 In case of using the I/O LinkII function, set the following I/O LinkII
I/O LinkII Parameter parameter on this screen. Depending on the kind of I/O LinkII interface
board, master/slave screen is displayed automatically.
Setting Screen Please refer to
FANUC I/O LinkII Operators Manual (B62714EN)
about details of I/O LinkII and each parameter.
(1) Set parameters.
Move the cursor to the parameter by using the cursor key.
Type the data and press the soft key[INPUT] or MDI key<INPUT>.
The set parameter is saved to the I/O LinkII board when the data is
input.
(2) Change channel.
Change the channel by the soft key [PRV.CH],[NXT.CH]. These keys
are not displayed when the single channel is used.
(3) Delete parameter.
Move the cursor to the parameter by using the cursor key.
Press the soft key[DELETE].
(4) Delete all parameters.
Press the soft key[DELALL].
Press the soft key[EXEC] to delete all parameters.
Press the soft key[CANCEL] to cancel the deletion.
(5) Change page.
This screen is composed of two pages when the 9 inch CRT is used.
Change the page by using (PAGE) key of MDI.
446
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
GENERAL:
MAX SLAVE NO. = 03 (131)
SCAN TIME = 0100 (19999)*2MSEC
STATUS ADDRESS = R0500
DI/DO SETTING:
DI/DO MAP MODE = 1 (1,2)
DI/DO DATA SIZE = 16 (064)
DO ADDRESS = R0100
DI ADDRESS = R0150
447
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
GENERAL:
MAX SLAVE NO. = 03 (131)
STATION NO. = 02 (131)
STATUS ADDRESS = R0900
DI/DO SETTING:
DI/DO MAP MODE = 0 (0,2)
DI/DO DATA SIZE = 16 (064)
DO ADDRESS = R0000
DI ADDRESS = R0032
448
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.9
FORCED
INPUT/OUTPUT
: Usable
FUNCTION
n: See Note.
: Not usable
Power Power FS20/ FS18A FS16A FS16B FS16C FS21i FS16i FS15B
Mate Mate iD/H FS21A FS18B FS18C FS18i
PA1 SB5 SA1 SA1, SA2 SB, SB2, SB3 SB3 SB4 SB5 SB6 SA5 SB5 SB6 NB
PA3 SB6 SA3 SA3 SC, SC3 SC3 SC4 SC3 SC4 NB2
n n n n
NOTE
With the FS16i/18i/21i, the edit card or C board are
required.
With the Power Mate iD/H, the edit card is required.
With SA1 of the FS16i/18i/21i, only FORCING mode is
valid.
3.9.1 This function can forcibly enter a value for the signal of an arbitrary PMC
Overview address. With this function, for example, an X value can be forcibly
entered to enable sequence program debugging without using a machine,
and a Y value can be forcibly entered to enable the signal wiring on the
machine to be checked efficiently without using a sequence program.
This function is added to the status display function.
Overwrite
Overwrite G, F, R, T, K, C, D. .
Ladder
449
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
Example 1:
In this example, the forced input/output function is applied to R0
in the ladder program below.
X0.0
MOVE 1111
1111
K0
R0
I/O UNITMODEL A NC
X0 = FFH X0 = FFH
I/O UNITMODEL A NC
X0 = FFH X0 = FFH
Cyclical transfer may also be performed for addresses that are not
assigned. So, use the forced input/output function for X in
FORCING mode to debug a sequence program when no machine
is connected or assigned. Use the OVERRIDE mode to debug a
sequence program in the case of I/O connection.
450
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
Overwrite
X, Y
Ladder (NOT OVERRIDE)
G, F, R, T, K, C, D. .
Example:
In this example, the forced input/output function is applied to X0
in a configuration where the I/O UNITMODEL A is connected
to X0 with an I/O link.
I/O UNITMODEL A NC
X0 = FFH X0 = FFH
I/O UNITMODEL A X NC
X0 = FFH X0 = FFH
I/O UNITMODEL A X NC
X0 = FFH X0 = 00H
451
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
CAUTION
1 In OVERRIDE mode, input/output signals are updated at
8ms intervals in sync with the first ladder level. When an
I/O link is used which is usually updated at 2ms intervals,
an input/output signal timing delay occurs. For this reason,
note that a sequence that depends on input/output signal
timing may perform an unpredictable operation.
2 Note that, when OVERRIDE mode is set, the interval of the
second level may be extended slightly.
3 Even if OVERRIDE is set for a Y address, the resultant value
of a ladder operation before being modified by the forced
input/output function is displayed as the coil on/off value in
ladder dynamic display.
A value, after being modified by the forced input/output
function, is output to the machine. So, note that the on/off
indication in ladder dynamic display does not match a value
output to the machine.
Example:
In this example, the forced input/output function is used
for Y0.0 in the ladder below in a configuration where the
I/O UNITMODEL A is connected to Y0 with an I/O link.
Before OVERRIDE setting, the on/off indication in
dynamic display matches a value output to the I/O
UNITMODEL A as shown below.
X0.0 Y0.0
I/O UNITMODEL A NC
452
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
WARNING
Special care must be exercised when modifying a signal
with the forced input/output function. If the forced
input/output function is used incorrectly, the operation of the
machine may be unpredictable. Never use this function
when persons are near the machine.
CAUTION
1 When shipping a machine, disable this function.
2 This function is disabled by extracting the edit card or setting
the PROGRAM ENABLE setting parameter to NO.
3 The setting of OVERRIDE is not maintained when the
power is turned off. When the power is turned on again, the
setting of OVERRIDE is cleared for all X and Y addresses.
453
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
SEARCH FORCE
EXEC CANCEL
NOTE
1 The soft key is enabled in FORCING mode.
2 The soft key is enabled in OVERRIDE mode.
454
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
X0001 0 0 0 0 0 0 0 1
X0002 0 0 0 0 0 0 1 0
X0003 0 0 0 0 0 1 0 0
X0004 0 0 0 0 1 0 0 0
X0005 0 0 0 1 0 0 0 0
X0006 0 0 1 0 0 0 0 0
X0007 0 1 0 0 0 0 0 0
[SEARCH] [ ] [ ] [ ] [ FORCE ]
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
X0001 0 0 0 0 0 0 0 1
X0002 0 0 0 0 0 0 1 0
X0003 0 0 0 0 0 1 0 0
X0004 0 0 0 0 1 0 0 0
X0005 0 0 0 1 0 0 0 0
X0006 0 0 1 0 0 0 0 0
X0007 0 1 0 0 0 0 0 0
455
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
X0001 0 0 0 0 0 0 0 >1
X0002 0 0 0 0 0 0 >1 0
X0003 0 0 0 0 0 >1 0 0
X0004 0 0 0 0 >1 0 0 0
X0005 0 0 0 >1 0 0 0 0
X0006 0 0 >1 0 0 0 0 0
X0007 0 >1 0 0 0 0 0 0
[SEARCH] [ ] [ ] [ ] [ FORCE ]
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
X0001 0 0 0 0 0 0 0 0>1
X0002 0 0 0 0 0 0 1>1 0
X0003 0 0 0 0 0 1>1 0 0
X0004 0 0 0 0 0>1 0 0 0
X0005 0 0 0 0>1 0 0 0 0
X0006 0 0 0>1 0 0 0 0 0
X0007 0 1>1 0 0 0 0 0 0
456
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
3.9.4 The method described below applies to both FORCING and OVERRIDE
Modifying the Values of modes.
Signals by Forced (1) Modifying signal values on a bitbybit basis
Input/Output Position the cursor to a desired input bit, then enter a desired value
by using one of the following three methods:
(a) Enter 1, then press the INPUT key or the [ON] soft key.
The signal is forcibly turned on.
(b) Enter 0, then press the INPUT key or the [OFF] soft key.
The signal is forcibly turned off.
(c) Press the INPUT key.
The on/off state of the signal is reversed.
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
457
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
(PMCDGN) PMC OPERATION (CRT/MDI) B61863E/14
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0> 0 0 0
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 0 0 0
NO. 7 6 5 4 3 2 1 0
X0000 0>0 0>0 0>0 0>0 0>0 0>0 0>0 0>0
458
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCDGN)
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 1> 0 0 0
NO. 7 6 5 4 3 2 1 0
X0000 0 0 0 0 0 1 0 0
NO. 7 6 5 4 3 2 1 0
X0000 1>0 0>1 1>0 0>0 1>0 1>1 1>0 0>1
NO. 7 6 5 4 3 2 1 0
X0000 1 0 1 0 1 1 1 0
459
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
460
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
NOTE
The address and contents of the nonvolatile memory are
described in 3.5 to 3.8 of I3. ADDRESS and I6.
NONVOLATILE MEMORY.
461
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
COUNTER : Alternative
KEEP RELAY
462
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
4.3
SETTING AND
DISPLAY SCREEN
4.3.1 The TIMER times of the functional instruction TMR(SUB 3) are set and
Timer Screen (TIMER) displayed on this screen.
NO. ADDRESS DATA NO. ADDRESS DATA TIMER times(See the following table.)
01 T00 2016 11 T20 1000
TIMER Minimum Maximum
02 T02 48 12 T22 8
No.s time time
03 T04 960 13 T24 0
04 T06 1008 14 T26 32 1 to 8 48 (ms) 1572.8 (s)
05 T08 0 15 T28 0
06 T10 0 16 T30 0
07 T12 96 17 T32 2000 9 to 40 or
9 to 150
08 T14 0 18 T34 0 (*1) 8 (ms) 262.136 (s)
09 T16 8 19 T36 8
10 T18 16 20 T38 10000
*1 The usable numbers vary from one model to
another. For details, see Section 5.4 in Part I.
[TIMER ] [COUNTR ] [KEEPRL ] [ DATA ] [ ]
463
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
4.3.3 The KEEP RELAYs and the Data for Controlling nonvolatile memory are
set and displayed on this screen.
Keep Relay (KEEPRL)
464
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
NOTE
1 The Data for Controlling Nonvolatile Memory(K16)
Refer to I6.1(4)Nonvolatile Memory Control.
2 The Data for PMC Management Software(K17,18,19)
Be careful of using the following KEEP RELAYs, because
they are used by PMC Management Software.
Model SB SB2
PMC control software data 1 K17 K17
PMC control software data 2 K18 K18
Reserved K19 K19
Model NB NB2
PMC control software data 1 K17 K900
PMC control software data 2 K18 K901
PMC control software data 3 K19 K902
Reserved K903
to
K909
465
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
466
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
WARNING
Set this bit to 0 before shipment from the factory.
If the bit setting is left as 0, the operator may stop execution
of the ladder diagram by mistake, and cause an accident.
467
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
CAUTION
Be sure to set bits not used in the PMC control software data
to 0.
In case of PMCPA1/PA3
on Power Mate #7 #6 #5 #4 #3 #2 #1 #0
K17 DTBLDSP ANASTAT TRCSTART MEMINP AUTORUN PRGRAM LADMASK
468
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
#7 #6 #5 #4 #3 #2 #1 #0
K18 CHKPRTY CALCPRTY TRANSRAM TRGSTAT
#7 #6 #5 #4 #3 #2 #1 #0
K19 FROMWRT
469
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
CAUTION
The unused area of the data for the PMC management
software must always be set to 0.
4.3.4 DATA TABLE consists of two screens, that is, Data Table Controlling
Data Table (DATA) Data screen and Data Table screen.
(1) Data Table Controlling Data Screen
Data Table Controlling Data Screen for controlling Data Table is
displayed by pressing the soft key [DATA].
Group No.s
The top address of Data Table
Table Parameters(Note)
Page No. (Change pages with the page keys)
Data length
(0:1byte, 1:2bytes, 2:4bytes)
PMC DATA TBL CONTROL #001 MONIT RUN
NO. ADDRESS PARAMETER TYPE NO. OF DATA The data numbers of each Data Table
001 D0000 00000000 0 20
002 D0020 00000010 0 81
003 D0101 00000001 1 100
004 D0301 00000000 2 50
005 D0501 00000011 0 5
006 D0506 00000000 0 10
007 D0506 00000000 1 10 * You can set the same address in other groups.
008 D0506 00000000 2 10
002 * 3000:PMCSB3/SB5
/SC/SC3/NB
* 8000:PMCSB4/SB6/NB2
Press this key after typing the group No., and the cursor is moved to the group.
Press this key after typing the number of group, and the Group Table Count is set.
You can change the screen to Data Table.
470
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
NOTE
Table Parameter
#7 #6 #5 #4 #3 #2 #1 #0
0 : Binary
1 : BCD
0 : Available to input
1 : Unavailable to input (Protection mode)
Page No.
(Change pages with the page keys)
PMC PRM (DATA) 001/001 MONIT RUN
Press this key after typing the address (ex.D8;D can be omitted), and the cursor
is moved to the address in the current group.
If you search the Data Table in the other group, press this key after typing the
group No., and the cursor is moved to the top of the address in the specified
group.
471
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
NOTE
: Can be used for the specific series of CNC.
(Series 16 : B005/11 to, B105/08 to, B305/04 to, B009/03
to, All serieses of MODEL C)
(Series 18 : BD03/12 to, BE03/09 to, BG23/03 to,
BG03/06 to, BD09/02 to, BE09/14 to, All serieses of
MODEL C)
PMCPA3 can be used only with Power MateH.
[ NO ] [ YES ] [ ] [ ] [ ]
472
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
[ NO ] [ YES ] [ ] [ ] [ ]
[ NO ] [ YES ] [ ] [ ] [ ]
473
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
[ NO ] [ YES ] [ ] [ ] [ ]
474
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
Setting parameter
Setting parameter
(multilanguagedisplay function)
475
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
Each setting parameter can be set when the respective conditions are
satisfied.
(a) Multilanguage display function
D The PROGRAM ENABLE setting parameter is set to YES
(bit 1 of K17 or bit 1 of K900 is set to 1).
D The PMC model is SB6.
(b) OVERRIDE mode of the forced input/output function
D The PROGRAM ENABLE setting parameter is set to YES
(bit 1 of K17 or bit 1 of K900 is set to 1)
D The PMC model is SA5, SB5, or SB6.
D The editing function is provided.
(2) Setting operations
(a) Setting the Multilanguage display function
Position the cursor to the each setting item with the arrow keys,
enter the desired data, then press the [INPUT] soft key.
(i) Parameters
D MESSAGE SHIFT VALUE
Enter a desired message display request bit shift amount.
A value from 0 to 999 can be entered. The initially displayed
value is 0.
Entered data is maintained even after the power is turned off.
D MESSAGE SHIFT START ADDRESS
Enter a shift start bit address in the message display request
bit area.
An address A value can be entered. The initially displayed
value is A0.0.
Entered data is maintained even after the power is turned off.
NOTE
Data entered for MESSAGE SHIFT START ADDRESS is
valid only when a value other than 0 is entered for
MESSAGE SHIFT VALUE.
476
4. PMC PARAMETERS SETTING AND
B61863E/14 PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)
CAUTION
If the setting of this parameter is modified, the new setting
becomes effective when the power is next turned on. After
this parameter has been modified, the power must be
turned off then back on.
477
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) PMC OPERATION (CRT/MDI) B61863E/14
4.5 If you make a keyboard without cursor keys, you must move cursor by
searching the address or so. In case of TIMER,COUNTER and KEEP
NOTE RELAY, press the soft key [TIMER],[COUNTR] or [KEEPRL] after
typing the address(Ex.1,2).
In case of Data Table Controlling Data, press the soft key [DATA](or
[NO.SRH] if Data Table screen has already been displayed) after typing
the group No.(Ex.3). In case of the Data Table, press the soft key
[SEARCH] after typing the address in the Data Table screen which
contains the address you want to search(Ex.4).
Ex.1) In case of setting the TIMER NO.11(ADDRESS T20)
1 Press the soft key [TIMER] after typing T20(or T21;T can be
omitted.).
2 Press the INPUT key after typing the value.
Ex.2) In case of setting PRESET and CURRENT values of the
COUNTER NO.02(ADDRESS C04)
1 PRESET Press the soft key [COUNTER] after typing C4 (or
C5;C can be omitted).
CURRENT Press the soft key [COUNTER] after typing
C6 (or C7;C can be omitted).
2 Press the INPUT key after typing the value.
CAUTION
It is not the number(NO.) but the address(ADDRESS) that
you type in searching.
478
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
RET
Sec. 5.5 Sec. 5.5 Sec. 5.5 Sec. 5.5 Sec.5.5 NEXT
F-SRCH ADRESS
(SYMBOL)
Sec. 5.5 Sec. 5.4
BTYPE
RET
479
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
5.1 The following functions can be done the ladder diagram display screen.
LADDER DIAGRAM (a) Specified relay coil of ladder diagrams can be searched and
displayed.
DISPLAY
(b) Ladder diagram dynamic display.
The logical on-off states during a sequence program execution are
displayed on a ladder diagram by changing the brightness in case
of a monochrome CRT or by changing colors in case of a color
CRT.
(1) Ladder diagram display
Press [PMCLAD] soft key, then the ladder diagram will be displayed.
Eight relay contacts and relay coils in total are displayed in the
horizontal direction of the CRT screen.
If the number of relay contacts exceed the above value, they are
displayed in 2 or more lines.
Signal name
(Within 6 characters) LADDER MONIT RUN
Address or
symbol name
MA SPDALM X2.4 MACHINE Comments
READY (within 30
characters)
MACHINE
ALARM
9 lines
NOTE
When online communication is being performed with USE
selected on the online setting screen (see Section III8.5),
pressing the [PMCLAD] soft key displays the message
REJECT (ONLINE MONITOR ACTIVE), disabling access
to the display. In such a case, select NOT USED on the
online setting screen, and stop online communication on
the PC side.
480
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
5.2 Ladder diagram and signal status dump can be displayed together.
DUMP DISPLAY ON The dump is displayed over 2 lines at the last line of ladder diagram by
LADDER DIAGRAM pressing the [DUMP] soft key.
PAGE keys or [SEARCH] soft key is used for changing of PMC
address.
X1000.0 X1000.0
X1000.1 X1000.2 X1000.1
X1000.3
X1001.3
ADDRESS DUMP
G0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .......
G0016 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .......
481
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
482
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
5.3.1
The Value of
Functional Instruction
Parameter Data length of instruction
Functional Data parameter (1: byte, 2: word, 4: d. word) Displaying
No.
instruction no. s form
1 2 3 4 5 6
1 END1 0
2 END2 0
3 TMR (NOTE3) 2 4 4 Binary
4 DEC 1 1 BCD
5 CTR (NOTE4) 2 2 2 Binary
6 ROT 3 2 2 2 BCD
7 COD 2 1 2 BCD
8 MOVE 2 1 1 HEX
9 COM 0
10 JMP 0
11 PARI 1 1
12
13
14 DCNV 2 2 2 (Note 1)
15 COMP 2 2 2 BCD
16 COIN 2 2 2 BCD
17 DSCH 3 2 2 2 BCD
18 XMOV 3 2 2 2 BCD
19 ADD 3 2 2 2 BCD
20 SUB 3 2 2 2 BCD
21 MUL 3 2 2 2 BCD
22 DIV 3 2 2 2 BCD
23 NUME 1 2 BCD
24 TMRB (NOTE3) 1 4 Binary
25 DECB 2 1/2/4 1
26 ROTB 4 1/2/4 1/2/4 1/2/4 1/2/4 Binary
27 CODB 2 1 1/2/4
28 MOVOR 3 1 1 1 HEX
29 COME 0
30 JMPE 0
31 DCNVB 2 1/2/4 1/2/4 (Note1)
32 COMPB 2 1/2/4 1/2/4 Binary
33 SFT 1 HEX
34 DSCHB 4 1/2/4 1/2/4 1/2/4 1/2/4 Binary
35 XMOVB 4 1/2/4 1/2/4 1/2/4 1/2/4 Binary
36 ADDB 3 1/2/4 1/2/4 1/2/4 Binary
37 SUBB 3 1/2/4 1/2/4 1/2/4 Binary
38 MULB 3 1/2/4 1/2/4 1/2/4 Binary
39 DIVB 3 1/2/4 1/2/4 1/2/4 Binary
40 NUMEB 1 1/2/4 Binary
41 DISPB 0
42 EXIN 1 4 HEX
43 MOVB 2 1 1 Binary
44 MOVW 2 2 2 Binary
45 MOVN 2 4 4 Binary
46
47
48 END3 0
49 DISP 1 4 HEX
50 PSGNL 2 1 1 HEX
51 WINDR 1 2 Binary
52 WINDW 1 2 Binary
53 AXCTL 1 4 HEX
54 TMRC (NOTE3) 2 4 4 Binary
483
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
NOTE
1 The data length of BCD is displayed for 1 is 2-figures, 2 is
4-figures.
2 The value of parameter is not displayed in this instruction.
3 The timer is displayed the content of timer number (3: TMR,
24: TMRB, 54: TMRC).
4 The counter is displayed the content of counter number (5:
CTR, 55: CTRC).
484
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
5.4 If symbol data and comments are defined to the PMC address, a comment
is displayed for symbol display and relay coil.
SYMBOL AND
COMMENT DISPLAY By pressing soft key [ADRESS], the symbol displayed relay is
address-displayed.
By pressing soft key [SYMBOL], the symbol displayed relay is
symbol-displayed.
(See III. PMC programer, 5. 4 Symbol data setting)
485
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
5.5 Specified relay coil points of ladder diagrams can be displayed on the
screen.
SEARCH OF
SPECIFIED RELAY For this operation, press [SEARCH] soft key to bring the following menu.
COIL POINTS IN
LADDER DIAGRAM SEARCH ADRESS TRIGER WINDOW
RET
NEXT
F- SRCH
486
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
5.6
STOP OF LADDER : Can be used
: Cannot be us
DIAGRAM DISPLAY PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SC SC3 SC4 NB NB2
BY TRIGGER OF