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
SIGNAL
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.
NOTE
; = EOB
487
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
RET
488
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
ESP SMBL
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 .............
G0032 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .............
G0048 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .............
G0064 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .............
NOTE
For DUMP display, dump screen is displayed at the last part
of screen.
For this operation, press [WINDOW] soft key to bring the following
menu.
RET
489
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) PMC OPERATION (CRT/MDI) B61863E/14
5.8
ONLINE EDIT : Can be used
: Option
: Cannot be used
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SC SC3 SC4 NB NB2
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, BD09/02 to, BE09/14 to, All serieses of model
C)
PMCSA3 is usable only with the Power MateH.
For the PMC MODEL PA, SA series and SB series, the editing card
(module) is necessary.
When bit 1 in the keep relay K17 is 1, this function is available and
[ONLEDT] soft key is displayed.
When the ladder program is executing, a part of the ladder program can
be changed.
D Change the type of contact (A contact, B contact)
D Change address of contact and coil.
D Change address parameter of functional instruction.
This function dont change the size.
(Cannot be Addition, deletion and changable data size)
When bit 3 of keep relay K18 is set to 1, the results of online editing are
automatically reflected on the ladder program for editing. When bit 3 of
keep relay K18 is set to 0, reflect the results of online editing on the ladder
program for editing, using the COPY function for the I/O screen.
Otherwise, the results of editing will be lost upon poweroff. For the
Moreover, when the CNC being used is the Series 15MODEL B, Series
16/18MODEL B/C, Series 21/210MODEL B, Series
16i/18i/21iMODEL A, or Power MateMODEL H, write to flash ROM.
How to store the results of editing
PMC other than NB Press the COPY key on the I/O screen.
NB Without DRAM Write the program into FROM.
With DRAM Press the COPY key on the I/O screen. Write the
program into FROM.
490
5. PMC LADDER DIAGRAM DISPLAY
B61863E/14 PMC OPERATION (CRT/MDI) (PMCLAD)
Operation
Press the [ONLEDT] soft key to enable the editing of a ladder
program. The editing procedure is the same as that using the
programmer function, described in Part III.
491
6. USER PMC SCREEN (PMCMDI) PMC OPERATION (CRT/MDI) B61863E/14
492
B61863E/14 PMC OPERATION (CRT/MDI) 6. USER PMC SCREEN (PMCMDI)
6.1 This user PMC screen is open to users, and it employs function key
<CUSTOM>. It is applicable only when C language programming has
FOR THE FS16 been made. For details, see the PMCSC/SC3/SC4/NB programming
(PMCSC OR manual for C language (B61863E1).
PMCSC3)
NOTE
Pressing the <CUSTOM> key several times changes the
screen to the PMCMDI screen. Because the <CUSTOM>
key is also used to execute other functions.
6.2 This user PMC screen is open to users. To display this screen, display the
PMC screen and press the OTHERS key or call the plpcmdi function in
FOR THE FS15 C language. It is applicable only when the program has been written in
(PMCNB) C language. For details, see the PMCSC/SC3/SC4/NB programming
manual for C language (B61863E1).
493
III. PMC PROGRAMMER
(CRT/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) 1. GENERAL
1 GENERAL
This PMC programmer is used to set PMC system parameters and also
generate and execute sequence programs by using soft keys on the
CRT/MDI panel. For this operation, the PMC debugging RAM must be
mounted in the CNC in advance.
For the CRT/MDI panel keys, refer to PMC operation in PARTII, Chapter
1 and 2.
1) Setting and display of PMC system parameters (SYSPRM)
The following system parameters are available.
a) Selection of counter data types (BCD or binary)
b) Selection of division/nondivision of ladder program (only
PMCSC)
c) Parameters for executing C language programs (only for
PMCSC)
2) Editing of sequence programs (EDIT)
The following editing functions are provided.
a) Clear of memory
b) Title data input
c) Input, insert, search, and delete of sequence programs by ladder
diagram format
d) Input, insert, delete, and search of symbol data
e) Address setting to each module when I/0 unit is used
f) Message data input
3) Execution of sequence programs (RUN/STOP)
The following function is provided to execute sequence programs
a) Sequence program start and stop
4) To write, verify, and read of sequence programs and PMC data, and
to write and read of I/0 sequence programs, followings are provided.
a) Input/output of sequence programs to and from FANUC floppy
disk cassette
b) Input/output of sequence programs to and from debugging RAM
c) Input/output of sequence programs to and from ROM
d) Input/output of PMC parameter data to and from FANUC FD
cassette
5) Displaying the contents of memory for the user C program and
debugging the user C program (MONIT)
a) Displaying the GDT map of the user C program
b) Displaying memory information for the user C program
c) Debugging the user C program
497
1. GENERAL PMC OPERATION (CRT/MDI) B61863E/14
1.1 See Part IV, PMCNB6 Manupiration Screen for an explanation of the
FS15i PMCNB6.
ABOUT THE FS15i
PMCNB6
PROGRAMMER
498
2. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) CONNECTIONS
499
2. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (CRT/MDI) B61863E/14
500
2. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) CONNECTIONS
Connector Connector
Drawing number : A16B22000900 name name Application
LED
PMCR
B CPU CRT JA1 CRT video signal
ROM MDI JA2 MDI keyboard
13 R2321 JD5A RS232C serial port
R2322 JD5B RS232C serial port
MPG JA3 Manual pulse generator
Module IOLINK JD1A FANUC I/O LINK
SPDL1 JA7A Serial spindle
1 2 3 4 5 6 7 8 AOUT1 JA8A Analog output
APCBAT JA4A APC battery
Fig. 2.1 (a) Layout of parts on Main CPU board (Series 16)
501
2. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (CRT/MDI) B61863E/14
LED
Module
1 2 3 4 5 6
CNA
7 8 9
Fbus
backplane CPU
connector
502
2. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) CONNECTIONS
LED
Fig. 2.1 (c) Parts layout for the main CPU board (Series 18)
Table 2.1 (c) Module list for the main CPU board (Series 18)
503
2. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (CRT/MDI) B61863E/14
2) Debugging RAM
This is used for debugging sequence programs. Since this debugging
RAM memory is backed up by the battery, the memory data contents
are not erased even when turning off the power supply.
CAUTION
If a RAM parity error occurs or when power is first turned on
after installation, the RAM for debugging must be cleared.
(Procedure)
Turn on power to the CNC while pressing the X and O keys
simultaneously. The contents of the RAM for debugging are then
cleared.
3) Editing module
This is a builtin programmer for PMCSA1, PMCSA2, SA3,
PMCSB, PMCSB2, or SB3 that enables editing sequence
programs.
4) ROM
After debugging, write a sequence program into ROM.
5) ROM WRITER
This unit is used for writing or reading out a sequence program to
ROM.
6) Offline programmer
This is used to transfer a sequence program.
By connecting the Offline programmer to PMCSA1, SA2, SB,
SB2, SB3, SC, or SC3, the storage of sequence programs in the
floppy, and the output of a sequence program into printer can be done.
504
2. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) CONNECTIONS
NOTE
1 When 24,000 optional PMCSB2 and PMCSB3 ladder
steps are available, 256K bytes of the ROM module can be
used. In this case, connect the ROM module to portion 3
shown in Fig. 2.1 (a).
2 Either a RAM module, editing module, or ROM module can
be connected to each board of PMCSA1, SA2, SA3,
SB, SB2 and SB3.
3 Either a RAM module or ROM module can be connected to
each board of PMCSC and PMCSC3.
505
3. SELECTION OF PROGRAMMER
MENUS BY SOFTKEYS PMC PROGRAMMER (CRT/MDI) B61863E/14
To operate the PMC programmer, set bit 1 in K17 of the keep relay area
for PMC parameters to 1, enabling the programmer basic menu to be
displayed. To display the programmer basic menu, press <SYSTEM>
and [PMC] soft key on the MDI keyboard then, press the [NEXT] key.
The programmer basic menu is displayed at the lower part of the CRT
screen to signify the keys as shown in the following figure.
(1) Programmer basic menu
The programmer basic menu and PMC basic menu are selected to
each other alternately by pressing the [NEXT] key. For the PMC basic
menu and operation, see PMC operation in Chapter II.
NOTE
In the following description, the relation between soft keys
and menus is described based on 9inch CRT/MDI panel.
The 14inch CRT/MDI panel is different from the 9inch
CRT/MDI panel about the number of soft keys. Five soft
keys are mounted on the 9inch CRT/MDI panel, while ten
soft keys are mounted on the 14inch CRT/MDI panel.
RESET key
HELP key Address/numeric keys
Edit keys
Cancel key
INPUT keys
506
3. SELECTION OF PROGRAMMER
B61863E/14 PMC PROGRAMMER (CRT/MDI) MENUS BY SOFTKEYS
TITLE DBGLAD**
LADDER
SYMBOL GDT*
MESAGE USRMEM*
DEBUG*
NEXT
MODULE
CROSS
CLEAR
NOTE
1 Mark * is valid for PMCSC/SC3/SC4/NB function.
2 Mark ** is valid for PMCSA3/SB3 with Editing module or
PMCSC/SC3 function.
507
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
(SYSPRM) PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
After changing a counter data type, set up the counter value
again.
(2) LADDER EXEC Specifies the increment or decrement of processing time of the 1st and 2nd
(valid for PMC level parts of the ladder program in the range of 1% to 150%. This
SC/SC3/SC4/NB/NB2) increases or decreases the scanning time of the ladder program. This
parameter influences the processing time of the 3rd level part of the ladder
program and the language program.
If 100% is specified, the time of 5 ms for an 8 ms cycle is used to process
the 1st and 2nd level parts of the ladder program. The remaining 3 ms is
used to process the 3rd level part of the ladder program, language
program, and PMC screen display.
If 120% is specified, the time of 6 ms is used to process the 1st and 2nd
level parts of the ladder program. This reduces the scanning time of the
ladder program, thus enabling the ladder program to be executed at high
speed. Note that the processing time required for the 3rd level part of the
ladder program, language program, and PMC screen display is
substantially reduced. If the undivided system is specified too, this
parameter is validated.
If a value less than 40% is specified, 40% is assumed. If a value greater than
120% is specified, 120% is assumed.
The processing time of the 1st and 2nd parts of the ladder program is
obtained by the following formula:
Processing time of the 1st and
(LADDER EXEC)
2nd parts of the ladder program=5 msec
100
The processing time of the 3rd level part of the ladder program, language
program, and PMC screen display
= 8 ms (processing time of the 1st and 2nd level parts of the ladder
program)
508
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
B61863E/14 PMC PROGRAMMER (CRT/MDI) (SYSPRM)
100% 120%
8 msec 8 msec
1st and 2nd level 1st and 2nd level
parts of the ladder parts of the ladder
program program
5 ms
6 ms
Others Others
3 ms
2 ms
(3) LANGUAGE EXEC Specifies the division ratio of execution for PMC screen display and
RATIO (valid for language program.
PMCSC/SC3/SC4/NB/ (0 to 99%)
NB2) Since the execution priority of PMC screen display is higher than
language program tasks, it is usually hard for the tasks to execute
processing while displaying PMC screen. Then this parameter can be
used to set the division ratio for each. Cyclic processing of language
program is therefore possible during PMC screen display. Only language
program tasks are running if PMC screen is not displayed.
(4) IGNORE DIVID CODE Specifies whether the ladder program is executed in the divided system
(valid for PMCSB (IGNORE DIVID CODE = NO) or in the undivided system.
andRC)
(5) LANGUAGE ORIGIN Specifies the first address of the link control statement data in the
(valid for PMCSC/ language program.
SC3/SC4/NB/NB2) Be sure to specify 0 when the language program is not stored.
LANGUAGE AREA and SIZE indicate the area where the language
program is stored. Store the language program in the specified area.
When the language program is stored, the Language Origin is
automatically set by moving the cursor to this item and pressing
[ORIGIN] soft key.
(6) MAX LADDER Specify the maximum size of the ladder program. This parameter can be
AREA SIZE used to increase or decrease the size of the work area used by language
(valid for PMCSC/ programs. The setting of the parameter takes effect only after power is
SC3/NB) turned on. When the setting is to be changed, therefore, power must be
turned off.
For details, see the FANUC PMCMODEL SC/SC3/SC4/NB
PROGRAMMING MANUAL C LANGUAGE (B61863E1). The
default is the size in kilobytes resulting from conversion of the ladder step
option.
(7) FS0 OPERATOR Specifies whether the Series 0 operators panel is connected. When YES
PANEL is selected, specify the actual addresses of DI and DO connected to the
operators panel, the address of the key image transferred from the
operators panel, and the address of the LED image to be transferred to
the operators panel.
(a) KEY DI ADDRESS
Specify a PMC address representing the first address of the external
DI actually connected (X0 to X127, X200 to X327, or X1000 to
X1019).
509
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
(SYSPRM) PMC PROGRAMMER (CRT/MDI) B61863E/14
510
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
B61863E/14 PMC PROGRAMMER (CRT/MDI) (SYSPRM)
NOTE
1. PMC model for FANUC LADDERII /Ladder Editing
Package is PMCSB6 (IO2) or PMCSB6 (STEP SEQ,
IO2)(case of using the step sequence method).
2. PMC model of FANUC LADDERII /Ladder Editing Package
is PMCSB6 or PMCSB6 (STEP SEQ)(case of using the
step sequence method).
3. When assigning the I/O Link channel 2, capacity of the
memory used by system increases maximum 5376 bytes
compared to the case of not assigning the I/O Link channel
2. Please adjust the volume of Ladder, symbol, comment,
and message, in order to reduce the sequence program
size to fit for the ROM capacity.
4. FANUC LADDERII /Ladder Editing Package is used when
converting sequence program for 1 channel (PMCSB6 or
PMCSB6 (STEP SEQ)) into sequence program for
expansion (PMCSB6 (IO2) or PMCSB6 (STEP SEQ,
IO2)). Please refer to FANUC LADDERII OPERATORS
MANUAL (B66184EN/02) APPENDIX 3.3 Convert The
PMC Type of Sequence Program and FANUC OPEN CNC
LADDER EDITING PACKAGE OPERATORS MANUAL
(B62884EN/016) APPENDIX D.3 CONVERT THE PMC
TYPE OF SEQUENCE PROGRAM.
[BINARY] [ BCD ] [ ] [ ] [ ]
511
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
(SYSPRM) PMC PROGRAMMER (CRT/MDI) B61863E/14
>
[BINARY] [ BCD ] [ ] [ ] [ ]
[BINARY] [ BCD ] [ ] [ ] [ ]
Fig. 4(c) PMC SC, SC3 or NB system parameter screen (1st page)
512
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
B61863E/14 PMC PROGRAMMER (CRT/MDI) (SYSPRM)
>
[BINARY] [ BCD ] [ ] [ ] [ ]
LANGUAGE ORIGIN = H
(LANGUAGE AREA = H, SIZE = KB)
[ BINARY ] [ BCD ] [ ] [ ] [ ]
Press the [NEXT] key to select the following screen for PMCSB series,
PMCSC series, and PMCNB :
513
4. SPECIFYING AND DISPLAYING
SYSTEM PARAMETERS
(SYSPRM) PMC PROGRAMMER (CRT/MDI) B61863E/14
>
[ YES ] [ NO ] [ ] [ ] [ ]
>
[ YES ] [ NO ] [ ] [ ] [ ]
514
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
Press soft key [EDIT] of the programmer basic menu to bring the
following menu. For setting the CLEAR or I/O unit address, press the
[NEXT] key to bring another menu.
Each menu of [EDIT] can be selected by EDIT key, or menu of other EDIT
can be selected by each EDIT menu. When this function is selected, if the
sequence program is in operation, the PMC management software
automatically stops this function.
(Operation)
Perform each operation by pressing necessary menu soft keys. Press
[RETURN] key for resetting to the programmer basic menu.
515
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.1 The title data refers to the title of the sequence program created by the
machine tool builder. The data consists of the following ten items:
SPECIFYING AND
DISPLAYING TITLE D Machine tool builder name (32 characters)
DATA (TITLE) D Machine tool name (32 characters)
D NC and PMC types (32 characters)
D Sequence program number (16 characters)
D Version (4 characters)
D Sequence program drawing number (32 characters)
D Date of sequence program creation (16 characters)
D Sequence program programmer (32 characters)
D ROM programmer (32 characters)
D Comment (32 characters)
The title for the 9 CRT consists of three screens. The screens are changed
by pressing <PAGE> or <PAGE> .
RETURN
RETURN
NOTE
When a C language board is installed in the Series 16i/18i,
the title data for C can be edited. With the soft key
[LADDER], the display can be switched to the ladder title
data. With the soft key [C LANG], the display can be
switched to the C title data.
5.1.1 (1) Move the cursor to the desired title data item. Use the cursor keys [],
[], [], [] to move the cursor.
Entering Title Data
(2) Press the address key and numeric keys to enter the title data, and
press the <INPUT> key.
5.1.2 (1) Move the cursor to the desired title data item. Use the cursor keys [],
[], [], [] to move the cursor.
Deleting Title Data
(2) After keying in the title data by pressing the desired address keys and
numeric keys, press the <INPUT> key.
516
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.1.3 When the length of the cursor is the same as the maximum number of
Editing Character characters, pressing the [INSERT] key enables the operator to edit
character strings. Then, the length of the cursor is changed to that of one
Strings of Title Data character.
(1) Move the cursor to the desired insertion position with the cursor keys
and enter a character string. Then, the character string is inserted.
(2) Pressing the [DELETE] key deletes the character at the cursor.
[INSERT] [DELETE] [ ] [ ] [ ]
[INSERT] [DELETE] [ ] [ ] [ ]
517
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
DATE OF PROGRAMING :
f f
PROGRAM DESIGNED BY :
f f
ROM WRITTEN BY :
f f
REMARKS :
f f
[INSERT] [DELETE] [ ] [ ] [ ]
518
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.2 Input, insert, delete, and search a sequence program as described below.
The relation between these functions and soft keys is as shown below.
SEQUENCE
PROGRAM
GENERATION RUN EDIT I/O SYSPRM MONIT
(STOP)
(LADDER)
RET
RET
yj jy yj jy j yyj FUNCTN
NEXT
COMAND
NEXT
y(S)yj
III 5.3 y(R)yj III 5.7
RET
NEXT
NOTE
y(S)yjand y(R)yj are valid for PMCPA3, SA3,
SB3, SB4, SC3, SC4, and NB.
519
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
NOTE
Soft keys ( [ ] or [ ])([ ] or [ ] ) are used for producing
or deleting an upper left vertical line or upper right vertical line on
the ladder diagram. The solid line display vertical line indicates the
production, while the dotted line display vertical line shows the
deletion. Which one is available is determined by the ladder
diagrams and cursor positions.
When the cursor is set to this position, the upper right vertical line is not produced yet,
and the menu becomes [ ]
When the cursor is set to this position, the upper right vertical line is already produced,
and the menu becomes [ ]
5.2.1 Press soft key [LADDER] for inputting a sequence program. The soft key
Sequence Program menu changes as shown in Fig. 5.2.
Input If a sequence program is not input yet, the right and left vertical lines only
of the ladder diagram are displayed on CRT/MDI.
Start inputting a program with this screen condition. If a previous
program remains unerased from RAM module for debug, clear it
according to the instruction in 5.6 before starting the program input.
Input a ladder diagram by moving the cursor to the desired input position
by using the cursor key.
The following description shows an example of the input of a program of
the basic instruction and a program of the functional instruction.
(1) In case of basic instruction program input;
X2.4
The contacts and coils inputtable in one line are as specified below.
9inch CRT/MDI
10inch CRT/MDI 7 contact + relay coil
14inch CRT/MDI
They cannot be input into one line more than specified. If they exceed the specified
range, provide a dummy relay coil halfway.
520
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
521
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
1 When the ladder program displayed on the screen is incomplete (when, for example, addresses
have not been entered) or erroneous, the screen cannot be scrolled even when a page key is
pressed. Before attempting to scroll the screen, therefore, ensure that the ladder program is
complete and errorfree.
However, be careful since the program net (a block corresponding to a range from RD to WRT
Instruction) containing an error is deleted when the screen is switched to an CNC screen.
2 7 contacts + a coil are specified to be inputtable per line from CRT/MDI, any more contacts
exceeding the specified value are not inputtable.
However, this limitation is not applicable to mnemonic sequence programs generated by Offline
programmer. When a sequence program, transferred from the offline programmer to the PMC,
exceeds the length which can be displayed on a single line, the program is displayed using two
or more lines, linked with a continuation symbol. This continuation symbol is not erasable
usually, except when all programs from RD instruction to WRT instruction are erased.
3 If the power is turned off while a ladder program is being displayed in edit mode, that ladder
program will be lost. Always save the program and exit the editing screen before turning off
the power.
4 The termination processing of the ladder (JMP, COM, and other processing) is done when the
EDIT screen is switched to another screen by pressing RET key, it takes several tens second
until the screen is switched completely, if the ladder is large.
5 In the Series 15MODEL B, Series 16/18MODEL B/C, and Series 16i/18i/21iMODEL A CNC
that use Flash Memory, the program is not automatically written into Flash Memory once editing
ends. After editing, perform the processing for writing to Flash Memory (see 7.3.3, FROM in
Chapter 7 of Part III). Otherwise, the editing results will be lost when the power is turned off.
6 When the user presses the RET key to switch from the edit screen to another screen, the
parameters of functional instructions TMR, TMRB, CRT, DIFU, and DIFD are checked for a
parameter number range error and duplicate parameter number in the ladder termination
processing. If a range error is found, the editing cannot be terminated. If the use of a duplicate
parameter number is found, the guidance message is displayed.
522
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
Functional
instruction table
NOTE
If the system is left undone without inputting any data after
pressing soft key [FUNCTN], the other soft keys are not
employable. In such a case, press [FUNCTN] key again.
DECB
DECB
SUB 25 CRT/MDI
ACT Format specification
523
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.2.3
Insert of Sequence
Program
yj jy yj jy j yyj FUNCTN
RETURN
Insert
Insert
Cursor
524
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
Insert
For inserting a vertical line as shown in the above figure, the inserting
area is required, correspondingly. In order to produce the area, shift
the entire part after the part to be inserted by one line by moving the
cursor to the ladder diagram within the dotted line range (an optional
part is allowable) and then pressing soft key [INSNET] (see Fig. 5.2).
The lower ladder diagram shifts downward by one line, each time the
[INSNET] key is pressed to produce the area to which a line is to be
inserted.
If a surplus insert area remains unused after the insert processing ends
(if an area corresponding to 3 lines has been reserved when two lines
have been inserted, for example), the area may be left as it is. No
problem arises.
1 Move the cursor to the ladder diagram bounded by a dotted
line.
2 Press soft key [INSNET].
The lower ladder diagram shifts downward by one line.
3 Pressing [INSNET] key without keying in numeric values
will cause one line to be inserted.
4 Pressing [INSNET] key with keying in numeric values will
cause the line to be inserted the number of numeric values
input.
5 After setting the cursor to a position where the contacts is to
be inserted, press soft key [ ]. After setting address data,
press [INPUT] key. The cursor shifts rightward.
6 Press soft key [ ] to produce an OR circuit.
(3) Inserting the 1 NET sequence program lines
Space lines are inserted one by one.
1 Type in the number of lines to be inserted and press the
[INSLIN] key. The lines corresponding to the input number
are inserted. (If the number of lines to be inserted is not typed
in but the [INSLIN] key is pressed, one line is inserted.)
525
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
Cursor
Cursor
Cursor
526
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.2.4 (1) Delete a part of sequence program by using three kinds of soft keys
after setting the cursor to the portion from which the sequence
Delete of Sequence program is to be deleted.
Program [ ] : Delete of horizontal lines, relay contacts, relay coils, etc.
[ ] : Delete of upper left vertical line to the cursor
[ ] : Delete of upper right vertical line to the cursor
(2) Delete a net of the sequence program (the part from the RD instruction
to the WRT instruction) with the [DELNET] key.
(3) Deleting NETs one by one
yj jy yj jy j yyj FUNCTN
RETURN
1 Deletion
Move the cursor to the NET to be deleted and press the
[DELETE] key. The NET to be deleted brightly displayed on
the screen.
2 Deleting multiple NETs
Move the cursor with the cursor DOWN key, [CDOWN]
key, or [SEACH] key to blink the NETs to be deleted. Type
in a value and press the [CDOWN] key to move the cursor
the number of times specified by this value.
3 Execution Press the [EXEC] key.
Cancel Press the [CANCEL] key.
4 If the NET to be deleted is already known, move the cursor
to the first NET, type in the number of NETs, and press the
[DELNET] key to omit steps 1 and 2.
527
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
R21.0 Y 2.0
R20.1 R2.2
R0.4
The same address is searched, and the cursor shifts
to this position.
R10.5
R0.5
5.2.5 Search a sequence program by using the following soft keys. For the
following soft keys, see Fig. 5.2.
Search of Sequence
Program
yj jy yj jy j yyj FUNCTN
RETURN
NEXT
528
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
529
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.2.6 The sequence program with multiple NETs can be copied in NETs.
Specify the NET to be copied and the copy position with the cursor. The
Copying the Sequence
number of copies can be also specified.
Program
yj jy yj jy j yyj FUNCTN
COPY MOVE
RETURN
1 Copying
Move the cursor to the NET to be copied and press the [COPY] key.
The NET to be copied blinks on the screen.
2 Copying multiple NETs
Move the cursor with the cursor UP/DOWN key, [CUP] key,
[CDOWN] key, or [SEARCH] key to blink the NETs to be copied.
Type in a value and press [CUP] or [CDOWN] key to scroll up or
down the screen by the number of times specified by this value.
3 Setting the NET to be copied
Press the [UNTIL] key.
4 Specifying the copying address
Press the [TO] key to start copying a NET. The NET is copied into
the position above the cursor. If the number of copies is typed in
before the [TO] key is pressed, the NET is copied the specified
number of times.
530
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5 If the cursor is moved to the first NET and the number of NETs is
typed in when the NETs to be copied are known, steps 1 through 3
can be omitted by pressing the [COPY] key.
NOTE
An error NET cannot be copied.
5.2.7 The sequence program with multiple NETs can be moved in NETs.
Specify the NET to be moved and the move position with the cursor. The
Moving the Sequence
number of times of moving NETs can be also specified.
Program
yj jy yj jy j yyj FUNCTN
COPY MOVE
RETURN
1 Moving
Move the cursor to the NET to be copied and press the [MOVE] key.
The NET to be moved blinks on the screen.
2 Moving multiple NETs
Moving the cursor with the cursor UP/DOWN key, [CUP] key,
[CDOWN] key, or [SEARCH] key to blink the NETs to be moved.
Type in a value and press [CUP] or [CDOWN] key to scroll up or
down the screen by the number of times specified by this value.
3 Setting the NET to be moved
Press the [UNTIL] key.
4 Specifying the copying address
Press the [TO] key to start copying a NET.
The NET is moved to the position above the cursor.
5 If the cursor is moved to the first NET and the number of NETs is
typed in when the NETs to be moved are known, steps 1 through 3
can be omitted by pressing the [MOVE] key.
NOTE
An error NET cannot be copied.
531
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.2.8 While editing a sequence program, symbol data and comment can be
Editing Symbol Data edited.
and Comment at Once (1) The symbol data and comment assigned to undefined address can be
edited.
a) Move the cursor to the position where a contact or coil is to be
inputted.
b) Enter an address, enter the symbol and comment enclosed in
characters other than alphanumeric characters, then press the soft
key of [contact or coil].
(Example) When the contact X8.4 is assigned the symbol
*ESP and the comment EMERGENCY STOP.
Operation : Depress [contact] soft key after
entering X8.4/ *ESP/EMERGENCY STOP/.
(2) The symbol data and comment assigned to the address already
defined can be edited.
a) Move the cursor on the address part where symbol data or
comment will be edited.
b) Enter the symbol and comment enclosed in characters other than
alphanumeric characters, then press the <INPUT> key.
(Example) When the contact X8.4 is assigned the symbol
*ESP and the comment EMERGENCY STOP.
Operation : Depress the <INPUT> key after
entering /*ESP/ EMERGENCY
STOP/.
(3) The symbol data and comment only can be edited by the similar
operation to the above (1) and (2).
a) For entering X8.4/*ESP/ or /*ESP/ with the INPUT key,
the symbol data only can be edited.
b) For entering X8.4//EMERGENCY STOP/ or
//EMERGENCY STOP/ with the INPUT key, the comment
only can be edited.
5.2.9 The address in a sequence program can be replaced with another address
Address Change of by the procedure below.
Sequence Program
COPY MOVE CHANGE
OADR CANCEL
NADR CANCEL
532
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
533
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.3 Set and delet the address of each module in I/O unit as follows. The
relation between these functions and soft keys is as shown in the
I/O UNIT ADDRESS following figure.
SETTING (MODULE)
RUN EDIT I/O SYSPRM MONIT
RETURN
NEXT
SYSPRM MODULE
RETURN
(Note 1) (Note 1)
NEXT
IOSTRT
(Note 1)These soft keys are available, when editing sequence program
is allowed to assign to the I/O Link channel 2.
534
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
ADDRESS GROUP BASE SLOT NAME ADDRESS GROUP BASE SLOT NAME
X000 2 0 2 ID16C Y000 3 0 1 #1 I/O Unit
X001 2 0 2 ID16C Y001 3 0 5 #1 MODEL B
X002 3 0 9 #2 Y002
X003 3 0 9 #2 Y003
X004 3 0 30 #2 Y004 2 0 1 OD16C I/O Unit
X005 3 0 30 #2 Y005 2 0 1 OD16C MODEL A
X006 3 0 10 #2 Y006 2 1 1 OD32D
X007 3 0 10 #2 Y007 2 1 1 OD32D
X008 3 0 20 #2 Y008 2 1 1 OD32D
X009 3 0 20 #2 Y009 2 1 1 OD32D
X010 3 0 0 ## Y010 2 0 3 OD16C
X011 3 0 0 ## Y011 2 0 3 OD16C
X012 3 0 0 ## Y012
X013 3 0 0 ## Y013
X014 0 0 1 FS04A Y014 0 0 1 FS04A
Power
Mate
GROUP.BASE.SLOT.NAME =
>2.0.4.OD08C
CAUTION
I/O module data items are made valid in the poweron
sequence. When changing settings, be sure to turn off the
power and turn it on to validate the settings.
However, the power need not be turned off and on again to
validate settings when the programmer function version
displays the soft key IOSTRT, (described later (item 4).
Press the IOSTRT key after changing data.
535
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
(6) Error and warning messages issued during the editing of assignment
data
No. Error or warning message Description
1 ERR : GROUP NO. (015) The group number must be from 0 to 15.
2 ERR : BASE NO. (03) The base number must be from 0 to 3.
3 WARN : BASE NO. MUST BE 0 The base number must be 0 for the I/O UnitB. It is forcibly set to 0.
4 ERR : SLOT NO. (110) The slot number must be from 1 to 10 for the I/O UnitA.
5 ERR : SLOT NO. (0, 130) The slot number must be from 0 to 30 for the I/O UnitB.
6 ERR : SLOT NO. MUST BE 0 The slot number must be 0 to set the poweron/off information for the I/O UnitB.
7 ERR : ILLEGAL NAME An invalid or unsupported assignment name has been entered. Enter a correct name.
8 INPUT INVALID An invalid character string has been entered. Reenter with a correct format.
9 INPOSSIBLE WRITE An attempt has been made to edit ROM data. ROM data cannot be edited.
10 ERR : ADDRESS ALREADY ASSIGNED The specified address is already assigned. Assign another address or retry after
deleting the existing data.
11 ERR : ADDRESS OVER An address exceeds the upper limit (X127, Y127). Check the addresses used for the
unit to be set.
12 ERR : SLOT ALREADEY DEFINED The specified slot is already assigned. Check the existing data.
13 WARN : SLOT ALREADY DEFINED The specified slot is already assigned. Check the existing data.
14 ERR : UNIT TYPE MISMATCH (IN OR OUT) An X address cannot be assigned to an output module. A Y address cannot be
assigned to an input module.
15 ERR : UNIT TYPE MISMATCH (MODEL) I/O UnitA and I/O UnitB are assigned in the same group. I/O UnitA and I/O UnitB
cannot exist in the same group.
536
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
Signal name
(within 6
characters)
MA SPDALM X2.4 R2.2 Y4.3 ATCALM R100.1 MRDY
MACHINE Comment
READY within 30
APCALM R5.4 MALM characters
MACHINE
10 lines ALARM
Addresses are
issued for those
items for which
symbols are not R120.1 TIND D20.7 R52.1
defined.
APC
RETURN
RETURN
537
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.4.1 Refer to Fig. 5.4 (a) and Fig. 5.4 (b). Input symbol data and comment on
the screen shown in Fig. 5.4 (b).
Symbol Data and
1 Press <INPUT> key after inputting an address where a symbol and
Comment Input
a comment are to be set.
The input address is set to the ADDRESS column of Fig. 5.4 (b), and
the cursor shifts to the address. The input addresses are arrange and
set in the alphabetic sequence, and they can be inserted halfway.
2 For setting a symbol, shift the cursor rightward by using the cursor
key.
3 After setting symbol data (within 6 alphanumeric characters), press
INPUT key.
The symbol data are set in the SYMBOL column of Fig. 5.4 (b), and
the cursor shifts to the COMMENT column.
4 For inputting a comment, set comment data (within 30 alphanumeric
characters), and press INPUT key.
Comment data are set to the COMMENT column in Fig. 5.4 (b).
Repeat steps 1 to 4 hereafter.
5.4.2 Display the screen shown in Fig. 5.4 (b) and search symbol data
Symbol Data Search (1) After setting an address or symbol data to be searched, press soft key
[SRCH].
(SRCH)
Specified address or symbol data is searched and displayed on the
screen.
The cursor shifts to the corresponding address part.
5.4.3 Move the cursor to the address to be deleted in the ADDRESS column of
Fig. 5.4 (b), and press soft key [DELETE].
Delete of Symbol Data
and Comment
538
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.4.4 The edit modes can be changed by pressing the [INPMOD] soft key as
Editing Character follows:
Strings of Symbol Data Character string edit status
and Comment Data Maximum Insertion mode Replacement
character input (INSERT) mode (ALTER)
539
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
Data
RETURN
UNTIL CANCEL
540
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.5 Message data are used for PMC functional instruction DISPB (SUB 41).
MESSAGE DATA The setting and display methods are as shown below.
SETTING (MESSAGE)
RUN EDIT I/O SYSPRM MONIT
(STOP)
RET
RET
NEXT
ETC D.CHAR
MESSAGE 001
NO. MESSAGE
A 00.0
A 00.1
A 01.1
541
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.5.1 Refer to Fig. 5.5 (a) and Fig. 5.5 (b). Display the screen shown in Fig. 5.5
Message Data Input (b).
1 Display a number to set a message data by using PAGE key.
2 Shift the cursor to this number by the cursor key.
3 After setting message data, press INPUT key.
If the message data has already been entered, it is deleted and the set
data is entered.
Repeat steps 1 to 3 hereafter.
5.5.2 (1) Specify an address to be searched for, and press the [SRCH] soft key.
Searching for an Then, the specified address is searched for and displayed on the
screen.
Address (SRCH)
5.5.3 Edit modes can be changed by pressing the [INPMOD] soft key as
Editing a Character follows:
String in Message Data Character string edit status
The edit mode is changed every time the [INPMOD] soft key is pressed.
[INSERT] is displayed on the screen in the insertion mode.
[ALTER] is displayed on the screen in the replacement mode.
D When the <INPUT> key is pressed
(1) In the character string edit status
Insertion mode : The entered character is inserted at the cursor.
Replacement mode : The character at the cursor is replaced with
the entered character.
(2) When the maximum number of characters are entered
The original character string at the cursor is replaced with the
entered characters.
D When the <DELETE> key is pressed
(1) In the character string edit status
Insertion mode : The character at the cursor is deleted.
Replacement mode : The character at the cursor is replaced with
a space.
(2) When the maximum number of characters are entered
The character string at the cursor is deleted.
(3) When the cursor is located at the address field
The entire message data specified at the address is deleted.
542
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.5.4 If no @ key on the MDI key, pressing the [ETC] soft key enables the
Input with a Katakana operator to enter the data enclosed between at signs (@).
Identification Code When the soft key is pressed, ETC CODE is displayed on the screen.
5.5.5 Move the cursor to the message number to be copied and press the
[COPY] key.
Copying Message Data
(COPY) Then press the [EXEC] key after moving the cursor to the message
number in which it is copied.
5.5.6 The input mode becomes multibyte character by pressing the [D.CHAR]
Inputting a Multibyte key.
Character (D.CHAR) (@02, 01@ are added to input data automatically.)
For example, 4873 [INPUT] is processed as @02487301@.
5.5.7 The ASCII code enclosed with @ characters is displayed in the form of
Displaying Input Code screen display by pressing the [DSPMOD] key.
(DSPMOD) Example) Katakana : @B6C532@ is displayed.
Multibyte character :
@0248733E6F44643B5F01@100
is displayed.
543
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.6
CLEARING THE
RUN EDIT I/O SYSPRM
SEQUENCE (STOP)
PROGRAM AND RET
CONDENSATION OF
TITLE LADDER SYMBOL MESAGE
THE SEQUENCE
PROGRAM RET NEXT
NEXT
NEXT
CLRALL
544
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
CAUTION
When using a system that incorporates flash ROM, clear the
flash ROM before writing to it. If the power is turned on again
without performing this operation, sequence program data
is not cleared.
CAUTION
These functions require the same condition as PMC data
setting in operation For [CLRALL], all conditions are
required. See Chapter II.4. PMC PARAMETER SETTING
AND DISPLAY
545
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
5.7 The cross reference is displayed for PMC address and functional
instruction used in a sequence program.
CROSS REFERENCE
DISPLAY Cross reference display has the following functions.
(1) Display NET number by specifying the PMC address.
(2) Display the address list by specifying PMC address name (G, F, Y,
).
(3) Display a functional instruction list.
(4) Display NET number by specifying the functional instruction
number.
5.7.1 Pressing the [CROSS] key displays the cross reference screen for setting
parameters.
Operation
Press soft key [CRSREF] in the parameter setting screen for displaying
the cross reference of address and functional instruction in use. Press soft
key [CRSPRM] to return to the parameter setting screen from cross
reference display.
NEXT
RET
CRSPRM
546
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
5.7.2 To display cross reference, the address and reference type need to be
Parameter Setting specified on the parameter screen.
Screen
Display the reference of 1. In SELECT CROSS TYPE, input 1.
addresses which are 2. In 1: REFERENCE ADDRESS, input addresses which should be
used. displayed. (maximum number of input: 8)
3. Press [CRSREF] key.
The address, symbol, relay and the NET number will be displayed as
shown in Fig. 5.7.2 (b).
X0000.0 ABCDE
: 1 2
( ) : 4 32
[CRSPRM] [ ] [ ] [ ] [ ]
547
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
HEAD CHARACTER = X
X0000
SYMBOL NOTHING
[CRSPRM] [ ] [ ] [ ] [ ]
548
5. EDITING OF SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)
[CRSPRM] [ ] [ ] [ ] [ ]
549
5. EDITING OF SEQUENCE
PROGRAM (EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
FUNCTION NO. = 7
FUNCTION NAME = COD
USED NET NO. = 6 14
[CRSPRM] [ ] [ ] [ ] [ ]
550
6. EXECUTION OF A SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM
551
6. EXECUTION OF A SEQUENCE
PROGRAM PMC PROGRAMMER (CRT/MDI) B61863E/14
NOTE
Both ladder and Clanguage programs start from the
beginning immediately after the power is turned on.
552
6. EXECUTION OF A SEQUENCE
B61863E/14 PMC PROGRAMMER (CRT/MDI) PROGRAM
WARNING
In normal operation, do not use the Z + CAN keys to stop the
sequence program forcibly.
553
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
When the [I/O] key is pressed, the sequence program and PMC data are
written, read, or collated for the specified device. Operations are
performed with cursor keys and soft keys.
RETURN
554
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.1 When the [I/O] key is pressed, the sequence program and PMC data are
written, read, or collated for the specified device. Operations are
OVERVIEW performed with cursor keys and soft keys.
RETURN
NEXT
SPEED
CHANNEL = 1
DEVICE = HOST
DATA KIND =
(ALL:LADDER + LANGUAGE)
FUNCTION =
>
ALM
[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [FROM ]
[Case of FS16/18]
CHANNEL = 1
DEVICE = HOST
DATA KIND =
FUNCTION =
>
555
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
The sequence program can be output while the ladder is
being executed, but the output speed is low. When the
sequence program is input while the ladder is being
executed, the execution of the ladder is automatically
stopped.
NC
Download
C
Fig. 7.1.1 (a) Ladder and C structure for FANUC Series 16B/16C
NC
C Download C
Upload
Fig. 7.1.1 (b) Ladder and C structure for FANUC Series 16i/18i/160i/180i
556
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
NOTE
Some functions cannot be used with some PMC models.
See Section 7.3.
NOTE
1 The conditions of outputting PMC parameters
1) When sequence program is stopped
You can input/output them.
2) When sequence program is executed
You must satisfy the following conditions.
Output (WRITE) Set NC to EDIT mode.
Input (READ) . . . Set NC to Emergency Stop status,
and, set PWE of NC parameters to 1.
2 When a C language board is installed in the Series 16i/18i,
the item of CLANG is displayed, and C program output is
enabled.
557
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
(4) FUNCTION
Select the direction of data transfer between the PMC and
input/output device.
Item Description
WRITE Outputs data from the PMC to an input/output device.
READ Inputs data from an input/output device to the PMC.
COMPARE Collates data in the PMC and an input/output device.
(Note) PMC data cannot be collated.
DELETE Deletes a file in FDCAS or MCARD.
LIST Lists the files in FDCAS or MCARD.
BLANK Performs blank check for FROM.
ERASE Clears the data in FROM.
FORMAT Initializes MCARD (clears all data).
NOTE
1 Name the file in the MSDOS format (up to eight characters
for the file name with up to three characters for the
extension).
Example) FILE NO. = @12345678.123
FILE NO. = @LADDER.EXE
2 If the file name is not specified, the system names the file
as follows:
The model name is
DATA KIND File name
PMCNB for the
ALL modelname.ALL
PMCNB and PMCSA
LADDER modelname.LAD
for the PMCSA1 or
PARAM modelname.PRM PMCSA3.
558
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.3
OPERATIONS
NOTE
1 WRITE, READ, or COMPARE is automatically switched by
operation on a FANUC LADDER.
2 This operation can not be used with PMCSB7.
CHANNEL = 1
DEVICE = FDCAS
FILE NO. = 1
(1:ADD,0:INIT,OR @ NAME)
>
ALM
[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [FROM ]
559
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
Note
PMC data cannot be collated. The data the file is to be
collated with depends on the file.
560
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.3.3
Storage to Flash ROM : Supported
: Not supported
FS21i
Power Power MateH FS21/ FS16B FS16C
FS18 FS16A FS16i FS15B
MateD/F/G FS20 210MB FS18B FS18C
FS18i
CAUTION
1 If the power is turned off without performing the writing
operation, the updated sequence program is not stored.
2 The CNC must be placed in the emergency stop state when
data is read from or written to Flash Memory.
3 Even if the sequence program is cleared with the X and O
keys at poweron, the contents of Flash Memory are not
cleared. Therefore, when the power is turned on again, the
sequence program in Flash Memory is read. To clear the
contents of Flash Memory, write Flash Memory after
clearing the sequence program with X and O.
CHANNEL = 1
DEVICE = FROM
DATA KIND =
(ALL:LADDER + LANGUAGE)
FUNCTION = WRITE
561
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
1 Operation in PMCNB
(a)If data is stored in Flash Memory, a message is displayed
to confirm writing.
(b)RAM SIZE indicates the size of the sequence program.
MAX SIZE indicates the size of the ROM option in the
PMC.
A: 64K bytes, B: 128K bytes, C: 256K bytes,
D: 512K bytes, E: 1M bytes
2 When a C board is installed in the Series 16i/18i, ladder
programs and C programs must be written into Flash
Memory separately.
(a)When a ladder program is written into Flash Memory,
select [LADDER] from the DATA KIND item.
When a C program is written into Flash Memory, select
[CLANG] from the DATA KIND item.
(b)Select [WRITE] from the FUNCTION item.
(c) Press the [EXEC] soft key to start writing to Flash
Memory.
Press the [EXEC] soft key to check if data is stored in Flash Memory.
CAUTION
Operation in PMCNB
When data is stored in Flash Memory : BLANK ERROR is
displayed.
When no data is stored in Flash Memory : BLANK
COMPLETE is displayed.
562
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
NOTE
In FS16B/18B, [READ], [COMPAR], [BLANK] and [ERASE]
functions are unavailable.
7.3.4
Storage to a Memory : Supported
: Not supported
Card
FS21i
Power Power MateH FS21/ FS16B FS16C
FS18 FS16A FS16i FS15B
MateD/F/G FS20 210MB FS18B FS18C
FS18i
NOTE
This function is not supported on DPL/MDI of Power
MateH.
Sequence programs and data are input from or output to a memory card
as described below. The memory card to which data is input from or
output to can directly send or receive data to or from the programming unit
(FANUC LADDER).
The supported function and the kind of memory card is shown as below.
Any kind of card has to be conformed to TYPE 1 to 2 of PCMCIA (The
Personal Computer Memory Card International Association ) 2.0 (or
later) or TYPE 1 to 2 of JEIDA (Japanese Electronics Development
Association) 4.0 (or later) . And the format is based on MSDOS FAT file
system.
NOTE
With the Power MateH, FS20, FS21/210MB, FS16A,
FS18A, FS16B, FS18B, FS16C, FS18C, and FS15B,
cards having a capacity of more than 32M bytes cannot be
used.
563
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
564
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
Before Writing
FileA
FileB
FileC
Add
FileD
128Kbyte
After writing
FileA
FileB
FileC
FileD
128Kbyte
565
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
(a) When the card formatted and written files by FANUC products
is used by other systems.
Ramuzou CardPro
Note1) Note2)
Read of a file
Add of file Not supported function
List of file
NOTE
1 Ramuzou is a memory card reader/writer that is made by
ADTEK SYSTEM SCIENCE.
2 CardPro is a memory card reader/writer that is made by
Data I/O.
(b) When the card formatted and written files by other system is used
by FANUC products.
CardPro
Ramuzou
Note3)
Read of a file
Add of file
List of file
NOTE
If you use the CardPro to format a flash memory card, type
the following command.
CPFORMAT drivename: /F:FLASHFAT /NOCIS
566
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
(2) Operation
The operation is almost the same as Subsection 7.3.2 except that steps
(a) and (b) are not necessary for a memory card.
CHANNEL = 1
DEVICE = MCARD
FILE NO. = 1
(1:ADD, 0:INIT, OR@ NAME)
>
ALM
[MCARD] [OTHER] [ ] [ ] [ ]
567
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
PMC data cannot be collated.
568
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.3.5
Data Input to and : Supported
Output from other : Not supported
Devices Power
FS20
FS21/
FS18 FS16 FS18B FS16B
FS16C
FS21i
FS16i FS15B
Mate 210MB FS18C
FS18i
CHANNEL = 1
DEVICE = OTHERS
>
ALM
[MCARD] [OTHERS] [SPEED ] [ ] [ ]
569
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
If DATA ERROR is displayed when a C program is written
with the Series 16i/18i, perform the following:
1 Clear the C language area by pressing soft keys [EDIT],
[CLEAR], [CLRLNG], then [EXEC].
2 Read the C program again.
3 On the system parameter screen, set LANGUAGE
ORIGIN.
4 Write the C program into flash ROM.
NOTE
PMC data cannot be collated. The data the file is to be
collated with depends on the file.
7.3.6
Setting the Transfer : Supported
: Not supported
Speed ([SPEED] Soft FS21i
Power FS21/ FS16C
Key) Mate
FS20
210MB
FS18 FS16 FS18B FS16B
FS18C
FS16i FS15B
FS18i
PARITY BIT = 0
(0:NONE,1:ODD,2:EVEN)
STOP BIT = 1
(0:1BIT,1:2BIT)
WRITE CODE = 1
(0:ASCII,1:ISO)
>
ALM
[INPUT ] [ ] [ ] [ ] [ INIT ]
570
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
The items shown above must be set when RS232C is used for
communication. Move the cursor to each item and enter a number.
Pressing the [INIT] soft key sets each item to the initial value. WRITE
CODE = is displayed only when OTHERS is selected for DEVICE.
The table below lists the setting for communication with a FANUC
LADDER.
Setting on the
Setting on the PMC
Item personal
(SPEED screen)
computer
Baud rate (bps) 9600 BAUD RATE = 3 (9600bps)
Character length 8 bits
Parity check No parity PARITY BIT = 0 (NONE)
Number of stop bits 2 bits STOP BIT = 1 (2BIT)
X parameter None
7.3.7
Transfer to and from a : Supported
ROM WRITER : Not supported
FS21i
Power FS21/ FS16C
FS20 FS18 FS16 FS18B FS16B FS16i FS15B
Mate 210MB FS18C
FS18i
571
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
7.3.8 When the machine tool builder creates a MDI keyboard which has no
Notes on Using an MDI cursor keys on the PMCMODEL SA1/SA3 of the FS 20, note the
following methods of operation. Ladder diagrams cannot be edited using
Keyboard without the ladderdiagramedit memory card.
Cursor Keys
On each setting screen, when an item is specified, the cursor automatically
(when using the FS20
moves to the next item to be specified. When the item at the cursor need
PMCMODEL SA1/SA3) not be modified, specify the same value again. When the item at the
bottom of the screen has been specified, the cursor automatically moves
to the item at the top of the screen (CHANNEL setting). When the return
key (leftmost soft key) is pressed to exit from the I/O screen, the cursor
automatically moves to the top of the screen. Examples of setting items
are shown below.
Example 1) When a ladder program is output to an offline programmer
(such as the PG or a personal computer)
1 CHANNEL setting : Enter the desired channel number,
then press the <INPUT> key or
[(NO.)] key. To use the current value,
just press the <INPUT> key or
[(NO.)] key.
2 DEVICE setting : Press the [HOST] key. The cursor
returns to the CHANNEL setting
position to enable CHANNEL
setting.
Example 2) When a ladder program is written into an FROM
1 CHANNEL setting : No specification required. To move
the cursor, perform the operation
described in 1 of Example 1.
2 DEVICE setting : Press the [FROM] key.
3 FUNCTION setting : No specification required. To change
the CHANNEL setting, press the
[WRITE] key to return the cursor to
the CHANNEL setting position.
Example 3) When a ladder program or a PMC parameter is read from or
written into an FDCAS (MCARD)
1 CHANNEL setting : See 1 of Example 1 (or 1 of Example
2).
2 DEVICE setting : Press the [FDCAS] ([MCARD]) key.
3 DATA KIND setting: Press the [LADDER] key for ladder
operation. Press the [PARAM] key
for PMCparameter operation.
4 FUNCTION setting : Press the [READ]/[WRITE] key.
5 FILE NO. setting : Enter the desired file number or file
name, then press the <INPUT> key or
[EXEC] key. When the current value
is used, just press the <INPUT> key.
The cursor automatically returns to
the CHANNEL setting position. The
setting can be modified.
In each example, pressing the [EXEC] key after setting data executes the
corresponding processing.
572
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.4
I/O ERROR
MESSAGES
Message CONTENTS OPERATION
PROGRAM ALREADY EXISTS A program is already stored in the FLASH ROM (during blank check).
PROGRAM ALREADY EXISTS (EXEC ?) A program is already stored in the FLASH ROM (during writing or deleting data).
Action) Press the EXEC key again when the message is displayed. Data is then written
or deleted.
PROGRAM NOTHING No program is in the FLASH ROM.
ERASE ERROR The FLASH ROM is faulty and must be replaced. Consult your FANUC service office.
F
L WRITE ERROR
S
H READ ERROR
ANOTHER USED The FLASH ROM is being used by a device other than the PMC.
R
O MUST BE IN EMG STOP NOT EMG STOP The CNC is not in the emergency stop state.
M
NO OPTION There is no ROM cassette option.
SIZE ERROR The size of the program exceeds the FLASH ROM size (during writing of the sequence
program).
Action) Use the CONDENSEM function (EDIT/CLEAR screen). If the error persists, the
FLASH ROM size must be increased.
The size of the program exceeds the RAM size (during reading of the sequence program).
Action) The RAM size must be increased.
I/O OPEN ERROR nn nn = 1: The RS232C interface is being used by a device other than the PMC.
Action) Check if another device is using the RS232C interface.
Check that, on the online setting screen (Section 8.5.1 in Part III), NOT USE is
set for the RS232C item.
nn = 6: There is no RS232C option.
nn = 20: The RS232C interface is connected incorrectly.
Action) Check that the connection and the setting, such as channel and baud rate, are
H correct.
O
S I/O WRITE ERROR nn nn = 20: The RS232C interface is connected incorrectly.
T Action) Check that the connection and the setting, such as channel and baud rate, are
. correct.
F nn = 22: Communication cannot be performed normally.
D Action) Check if a cable is disconnected.
C
A I/O READ ERROR nn nn = 20: The RS232C interface is connected incorrectly.
S Action) Check that the connection and the setting, such as channel and baud rate, are
. correct.
O nn = 22: Communication cannot be performed normally.
T Action) Check if a cable is disconnected.
H ADDRESS IS OUT OF RANGE (xxxxxx) Data other than that stored in the PMC debugging RAM area has been transferred.
E xxxxxx: Transfer address
R
S DATA ERROR Invalid data was read.
Action) Check the cable and setting (SPEED).
When a C program is read into the Series 16i/18i:
Action) Clear the C language area by pressing soft keys [EDIT], [CLEAR], [CLRLNG],
then [EXEC].
PROGRAM DATA ERROR Data output contains an error
Action) On the alarm screen, check the details of the alarm.
573
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
R SIZE OVER WRITE The ROM size is smaller than the program size.
O Response) Increase the ROM size.
M
W
R ROM WRITER ERROR nnnnn An error has occurred in the ROM writer.
I Response) Refer to the ROM Writer Operators Manual.
T
E
R
COMPARE ERR XXXXXX = AA:BB The data between DEVICE and PMC is different.
CONT?(Y/N) XXXXXX : Address
aa : The data in PMC
bb : The data in DEVICE
C Action) If you continue it, press Y key.
o Otherwise, press N key.
m DATA ERROR Invalid data was read.
m Action) Check the cable and setting (SPEED).
o When a C program is read into the Series 16i/18i:
n Action) Clear the C language area by pressing soft keys [EDIT], [CLEAR], [CLRLNG],
then [EXEC].
PROGRAM DATA ERROR Data output contains an error.
Action) On the alarm screen, check the details of the alarm.
574
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B61863E/14 PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA
7.5 The data items of the sequence program stored in EPROM can be copied
into the debugging RAM module for PMCSA1, PMCSA2, PMCSB,
SEQUENCE and PMCSB2.
PROGRAM COPY
The following shows the relationship between the function and soft keys.
FUNCTION
RUN EDIT I/O SYSPRM MONIT
RETURN
NEXT
ROM COPY
NEXT
CPYALL CPYMDL
575
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA PMC PROGRAMMER (CRT/MDI) B61863E/14
7.5.5 Copies all the sequence programs into the debugging RAM.
Copy the Sequence
Programs [CPYALL]
7.6 Two channels cannot be used for the reader/punch interface at the same
time. Before performing these I/O operations, be sure to terminate the
RESTRICTIONS system other than the PMC and processing through the reader/punch
interface in the PMC program.
576
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
Press the [MONIT] soft key on the basic programmer menu to display the
basic monitor menu shown in Fig. 8. Pressing an appropriate soft key
enables the user to display memory areas used for a user program written
in the C language or to debug a program.
f : Can be used
: Cannot be used
: Can be used (with some restrictious)
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SC SC3 SC4 NB NB2
577
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
RET
NO.SRH M.DUMP
RET
SEARCH INPUT
NEXT
8.1.1 (1) Press the [GDT] soft key to display the user GDT information shown
in Fig. 8.1.1 (a).
Operation
(2) Use the [NO. SRH] key to search for the GDT table with a desired
number.
(3) Press the [M. DUMP] key to dump the data of the GDT number which
is displayed at the top.
(4) Press the [NEXT] key on the memory dump screen.
Pressing the [BYTE] key displays the data in units of bytes.
Pressing the [WORD] key displays the data in units of words, where
one word equals two bytes. Pressing the [D. WORD] key displays
the data in units of double words, or four bytes.
See Fig. 8.1.1 (b).
(5) When bit 4 of keep relay K17 is set to 1, the contents of RAM can be
changed in units of the specified length on the memory dump screen
by moving the cursor to the data to be changed.
WARNING
Depending on the settings, a user program may operate
erroneously, causing a system error. Be sure to specify the
correct settings.
578
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
[NO.SRH] [ ] [ ] [M.DUMP] [ ]
579
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.1.2
Descriptions of
Displayed Items
Segment limit
Segment base
Segment type
Segment attribute
GDT NO.
NOTE
A user program created with the IC286 compiler is
segmented in 16bit units.
580
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.2 The segment information of the following areas defined by a user program
for each task can be displayed and the contents of the areas can be dumped.
DISPLAYING THE
MEMORY D Data area
ALLOCATION D Stack area
INFORMATION OF A D Common memory area
USER PROGRAM The PMC management software dynamically allocates the areas
mentioned above at locations which are different from those defined by
CODED IN C. the user program.
The system allocates the data area at activation. When the system is not
activated after the user program has been loaded, the data area is located
at the address defined by the user program. Be sure to refer to the area after
the system starts.
The following figure shows the soft keys related to this function.
RET
RET
SEARCH INPUT
NEXT
8.2.1 (1) Press the [USRMEM] soft key. Depending on which soft key is
pressed next (see below), the task memory information of a user
Operation program is displayed on the screen as shown in Fig. 8.2.1 (a) to (c).
Soft keys
[TASK. D] : Displays the information of allocating task data.
[TASK. S] : Displays the information of allocating task stacks.
[COM.D] : Displays the information of common memory
allocation.
(2) A task data area and stack area are displayed for each task ID. The
information for all the common memory defined by user link control
statements is displayed.
(3) Pressing the [M. DUMP] key on each allocation information screen
enables the contents of the memory related to the item which is
displayed at the top to be dumped.
(4) Operation on the memory dump screen is the same as that described
in Section 8.1.
(5) When bit 4 of keep relay K17 is set to 1, the contents of RAM can be
changed in units of the specified length on the memory dump screen
by moving the cursor to the data to be changed.
581
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
Depending on the settings, a user program may operate
erroneously, causing a system error. Be sure to specify the
correct settings.
>
>
582
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
>
8.2.2 (1) Items displayed for a task data area and stack area
Displayed Items
Segment limit
Segment base
GDT No.
Task name
Task ID
Segment limit
Segment base
GDT NO.
583
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.3 There are two ways to check if a user program operates as intended. One
is to execute the program while displaying the sequence on an external
DEBUGGING unit such as a display monitor. The other is to execute the program to a
specified point (breakpoint), and check if the internal data items such as
program work areas are correct.
This PMC debugging function checks programs using breakpoints.
8.3.2 Press the [DEBUG] soft key to display the parameter screen for
Operation debugging. Pressing the [D.DUMP] key on the parameter screen displays
the contents of the CPU registers and specified internal data items at the
breakpoint.
To return from the data display screen to the parameter screen, press the
[D.PRM] soft key.
After the parameters are set, but before the program is interrupted, DBG
blinks at the bottom right of the PMC screen. The breakpoint numbers
BP1 to BP4 are also displayed at the bottom of the debug function screen.
When the program is interrupted at a breakpoint, BRK blinks at the
bottom right of the PMC screen. At this time, the breakpoint number,
from BP1 to BP4, is displayed in reverse at the bottom of the debug
function screen.
The following figure shows soft keys related to this function.
RET
RET
D.PRM BRK.NO
584
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.3.3 When the debug function is used, it is necessary to set the break conditions
Parameter Screen on the parameter screen. When using a 9 screen, press the <PAGE> key
to set a trace data area for a breakpoint.
(1) Setting parameters
(a) BREAK SEG.ADR
Specify the effective address of the breakpoint using a segment
address. When data is accessed, specify the break address using
a segment address.
Use a key, such as EOB, to delimit a segment and an offset. Do
not use alphanumeric keys.
NOTE
In data access, an even boundary or 4byte boundary is
assumed according to the type of ACCESS LENGTH,
described later.
Example)
When the break address is GDT.NO = 32,
OFFSETADDRESS = 101, specify 103; 101, obtained using
the following formula:
32 (GDT.NO) x 8 + 3 = 259 = 103 (Hex)
S When ACCESS LENGTH = WORD is specified with
BREAK SEG.ADR = 103; 101
An access to 103; 100101 causes a break.
S When ACCESS LENGTH = D.WORD is specified with
BREAK SEG.ADR = 103; 101
An access to 103; 100103 causes a break.
585
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
(e) TASK ID
Specify the task ID of a program. This parameter is convenient
for identifying the program when it is to be interrupted at a
breakpoint located in a function called from multiple tasks or is
located in common memory.
(f) TASK STATUS
Specify how to handle the task when a program is interrupted.
0 (PASS) : The task continues after the program is
interrupted.
1 (STOP) : The user task stops when the program is
interrupted. The ladder program does not stop.
CAUTION
To restart the user program, press the [STOP] key to stop
the sequence program and then press the [RUN] key to start
the program on the basic menu using the RUN/STOP
function.
CAUTION
If the addresses are specified erroneously, the following two
items, TYPE and LENGTH, cannot be specified.
(i) TYPE
Specify an address type with which traced data is displayed.
0 (BYTE) : Data is displayed in units of bytes.
1 (WORD) : Data is displayed in units of words.
2 (D.WORD) : Data is displayed in units of double words.
(j) LENGTH
Specify the length of traced data to be displayed.
(2) Starting processing for a breakpoint
When the parameters for each breakpoint are correctly specified,
press the [EXEC] soft key on the parameter screen to start the
processing for the currently selected breakpoint. The breakpoint
number, from BP1 to BP4, is displayed at the bottom of the screen.
(3) Initializing data used for debugging
To initialize the parameters and memory used for storing traced data,
press the [INIT] soft key on the parameter screen. The parameter and
memory for the currently selected breakpoint are then initialized.
586
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
>
587
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.3.4 When a program is interrupted under the break condition specified on the
Screen for Displaying parameter screen, BRK blinks at the bottom right of the PMC screen. The
breakpoint number at which the program has been interrupted is displayed
Traced Data in reverse at the bottom of the debug function screen.
To display the traced data, press the [D.DUMP] soft key on the parameter
screen, then press the [BRK.NO] key to select the screen for displaying
the traced data corresponding to the breakpoint.
The following items are displayed.
(1) REGISTER
Displays the contents of the CPU registers.
(2) MEMORY
Displays the contents of memory at addresses of the traced data
specified on the parameter screen.
When the contents are displayed on multiple pages, scroll the screen,
if necessary, using the <PAGE>, <PAGE>, <>, or, <> key.
[D.PRM ] [BRK.NO] [ ] [ ] [ ]
8.3.5 As parameters used for debugging and traces data are stored in the
retained memory, they are not lost when the power is turned off.
Enabling Automatic
Debugging at When bit 1 of keep relay K18 is set to 1 after break condition parameters
Poweron are correctly specified, debugging is automatically enabled when the
power is turned on.
8.3.6 (1) Specify a break address (BREAK SEG.ADR) in the area used by the
user program.
Notes
If a break address is specified in the area which is used by the PMC
management software, the system may hang up.
(2) Debug function is incorporated in the CPU, reduces the CPU speed.
Do not use the function during normal system operation.
588
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.4
LADDER : Can be used
: Cannot be used
DEBUGGING : To use this function, a ladder editing module is required
FUNCTION PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2
NOTE
PMCPA3 is usable with the Power MateH.
Using this function, Step Operations and Stop Operations listed below are
possible. Step Operations are to execute ladder by specified step (single
instruction, single net, and specified block). Stop Operations are to stop
the execution of ladder when specified condition becomes true.
(1) Step Operation to execute one instruction from current position.
(2) Step Operation to execute one net (one circuit) from current position.
(3) Step Operation to execute from current position to specified contact
or coil instruction.
(4) Stop Operation to execute from the first step and stop the execution
at specified contact or coil instruction.
(5) Stop Operation to stop the execution of ladder by a trigger of signal
condition. (Optionally, a trigger counter can be specified.)
(6) Stop Operation to stop the execution of ladder after executing one
scan. (Optionally, a scan counter can be specified.)
8.4.1
Screen of Ladder
Debugging Function LADDER *TITLE DATA REMARKS 32 BYTES * NET 0000100004 MONIT RUN
X1000.0 Y1000.0
X1000.1 Y1000.1
ABSDE
SUB36 2
X1000.0 RST ADDB Y1000.3
D0000
[ 0]
FGHI ACT 1
D0000
[ 0]
X1000.0 Y1000.5
589
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.4.2 For this operation, press [DBGLAD] soft key to bring the following
Soft Key Menu of menu.
Ladder Debugging
Function DBGLAD ONLINE GDT USRMEM DEBUG
RET
NOTE
See Chapter II. 5.3 and 5.4 for details of (7) or (8).
590
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.4.3 Using this function, Step Operations such as single step, single net, and
Step Operation [STEP] block steps until specified instruction are possible.
[Function]
(1) Step Operation to execute one instruction from current position.
(2) Step Operation to execute one net (one circuit) from current position.
(3) Step operation to execute from current position to specified contact
or coil instruction.
[Displaying of Step] See Fig. 8.4.1
ACC=1 STK=0000 0011 OF=0 SF=0 ZF=1
ACC : result of operation
STK : contents of stack (1 byte)
OF : overflow (0=NO, 1=YES)
SF : sign (0=NO, 1=YES)
ZF : zero (0=NO, 1=YES)
For this operation, press [STEP] soft key to bring the following menu.
RET
SEARCH START
591
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
CAUTION
Normally, transferring to the synchronous buffer is
automatically performed at the beginning of the 2nd level
ladder.
8.4.4 Using this function, the execution of the ladder can be stopped when
specified condition becomes true. Then, the signal condition can be
Stop Function of Break
checked.
with Condition
[BRKCTL] [Function]
(1) Stop operation to execute from the first step and then to stop at
specified contact or coil instruction. (Optionally, a trigger counter
can be specified to stop after the instruction is executed specified
times.)
(2) Stop operation to stop the execution of ladder when a trigger
condition specified by signal becomes true. (Optionally, a trigger
counter can be specified to stop after the trigger becomes true
specified times.)
(3) Stop operation to stop the execution of ladder after executing a scan.
(Optionally, a scan counter can be specified to stop after executing
specified times of scans.) The execution is started by pressing
[START] key.
[Displaying of specified trigger]
592
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
RET
TRGON TRGOFF
593
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.5
f : Usable
ONLINE FUNCTION : See Note
: Not usable
PA1 PA3 SA1 SA2 SA3 SA5 SB SB2 SB3 SB4 SB5 SB6 SC SC3 SC4 NB NB2
NOTE
1 PMCPA3 is usable with the Power MateD/H.
2 PMCSA1 is usable with the loader control function of the
Series 21i.
3 PMCSA3 is usable with the FANUC NC Board.
4 If the system is set up to use the online function, that line
is occupied, and cannot be used with other input/output
functions. To use the line with other input/output functions,
set up the system so as not to use the online function.
If the system is set up to use the online function, the
following functions cannot be used:
D [PMCLAD], [I/O], [EDIT], [SYSPRM], [TRACE],
[ANALYS], [USRDGN], [DGNLAD], [GDT], [USRMEM]
594
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.5.1
Online Setting Screen
NOTE
1 In case of configuration of CNC with which neither Ethernet
nor HSSB is available, the item of HIGH SPEED I/F is not
displayed.
2 In case of display which has 5+2 soft key, two pages are
used for this setting screen.
Switch the page by <Page Up> or <Page Down> key.
595
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.5.2.1 To display the soft key [MONIT] in the PMC main menu screen, set
How to set at PMC PROGRAMMER
ENABLE to YES in the setting screen. When pushing the soft key
Screen
[MONIT]>[ONLINE], the online setting screen is displayed. (Fig.
8.5.1)
1. Case of connection by RS232C (FANUC LADDERII, FANUC
LADDERIII)
(1) Check that NOT USE is selected at the RS232C item.
(2) Set the parameter of CHANNEL and BAUD RATE.
(3) Move the cursor to the RS232C item with Up or Down Cursor
key.
(4) Select USE with Left or Right Cursor key.
2. Case of connection by Ethernet (FANUC LADDERIII, Ladder
Editing Package)
(1) Move the cursor to the HIGH SPEED I/F item with Up or Down
Cursor key.
(2) Select USE with Left or Right Cursor key.
3. Case of connection by HSSB (Ladder Editing Package)
(1) Move the cursor to the HIGH SPEED I/F item with Up or Down
Cursor key.
(2) Select USE with Left or Right Cursor key.
NOTE
1 When both RS232C = USE and HIGH SPEED I/F =
USE are selected, the PMC system will communicate with
the application which is connected at first. If PMC system is
already connecting with an application, it can not connect
with other applications.
2 When you use the online function by Ethernet, the setting
of Ethernet parameters at CNC is necessary in advance.
3 Loader control function can not connect with FANUC
LADDERIII or Ladder Editing Package by Ethernet.
596
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
3 to 10
(Reserved) (Reserved) Dont use this setting.
13 to 254
NOTE
1 If the value of No.24 in NC parameter is changed, the setting
of the online monitor screen of PMC is automatically
changed too. This NC parameter is made effective
immediately after changing setting of the parameter.
2 Even if the setting of the online monitor screen of PMC is
changed, the value of No.24 in NC parameter is not
changed
597
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
NOTE
1 In case of Power MateD 2 pathcontrol, only a parameter
for 1 path is available.
2 The online monitor driver occupies the line while it is
operating. In this state, other input/output functions cannot
use the line. For other input/output functions to use the line,
it is necessary to display the abovementioned parameter
and stop the online monitor driver.
3 While the online monitor driver is operating, the following
functions cannot be used.
D [PMCLAD], [I/O], [EDIT], [SYSPRM] on CRT/MDI
D [EDIT], [SYSTEM PARAM], [I/O] on DPL/MDI
4 In case of operating NC, the screen display of NC (Position,
etc.) might be slow when using input/output functions (Load
program, Store program, etc.). There is no problem in the
operation of NC. It is recommended to use input/output
functions while NC is not operating.
5 When the screen made by C language executor is
displayed, the communication may be slow down. It is
recommended to use input/output functions after moving to
other screens (Position, etc).
598
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
8.5.3
Online Function by
Ethernet
599
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.5.3.2 The procedures for online connection with PMC and the offline
Starting online programmer (FANUC LADDERIII, Ladder Editing Package for
windows) by Ethernet are as follows.
communication by
(Example: FANUC LADDERIII)
offline programmer
(Ethernet connection) (1) Start up FANUC LADDERIII, and click the [Communication] on
[Tool] menu.
(2) Select the [Network Address] tab and push the <Add Host> button.
Input the IP Address and Port No. inputted by 8.5.3.1 Setting of
Ethernet parameters.
600
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
(3) Select the [Setting] tab, and add the IP Address to Use device.
CAUTION
1 When one of the following screens is displayed at PMC, the
online communication can not be used. Change to other
screens from the following screens, and use the online
function.
[PMCLAD], [I/O], [EDIT], [SYSPRM], [TRACE], [USRDGN],
[DBGLAD], [GDT], [USRMEM]
2 When the online function is used with RS232C, the
selected channel is occupied by the PMC system. To use
other input/output functions with RS232C, specify other
channel setting than the one used by online function.
3 Loader control function can not connect with FANUC
LADDERIII or Ladder Editing Package by Ethernet.
601
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
8.5.4 The communication status of RS232C and HIGH SPEED I/F are
Communication Status displayed at the online monitor screen during the online communication.
HIGH SPEED I/F : The communication condition of HIGH SPEED I/F is dis-
played.
ETHER_BOARD : Displayed during the communication with Ethernet board.
The IP address of the communication partner is displayed.
HSSB : Displayed during the communication with HSSB.
The display messages and the meanings are shown in the table of below.
Displayed messages Meanings
602
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B61863E/14 PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)
BCC ERROR A Block Check Code (packet parity) error has oc-
curred.
8.5.5 If any errors have occurred during Ethernet connection, the contents of the
About Connection Log errors are displayed at ETHLOG screen of CNC. Refer to this screen
when the communication does not start.
of Ethernet
603
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
SnpErr:PDU=m,n,[x] date time An error has occurred during the online communication.
m, n : Online communication information that is internal information of a system.
SnpErr:PDU=n,[x] date time
x : Error information
SnpErr:TaskTimeOut[x] date time 6001 PMC does not support the Ethernet.Confirm the Series/Edition of PMC
software.
6003 Unsupported command data was received.Confirm the Series/Edition of
Ethernet board software.
6004 There was an error in command dataConfirm the Series/Edition of
Ethernet board software.
6005 PMC does not receive command data.Confirm the communication sta-
tus at the online setting screen of PMC.
6010 PMC does not receive command data.Confirm if HIGH SPEED
I/F=USE is selected and other application is not connected at the online
setting screen of PMC.
6011 Timeout error occurred at PMC.Increase the value of Time Out in
[Network Address] of [Communication] menu for FANUC LADDERIII or
Ladder Editing Package.
6012 PMC does not receive command data because it is busy for proces-
sing.Confirm the communication status at the online setting screen of
PMC.
6013 Timeout error occurred at PMCIncrease the value of Time Out in
[Network Address] of [Communication] menu for FANUC LADDERIII or
Ladder Editing Package.
6101 PMC received an unsupported function code.Confirm the Series/Edition
of PMC software.
date : The date when the error occurred.
Ex.) 0126 means January 26th.
time : The time when the error occurred.
Ex.) 1623 means 4:23 PM.
604
9. ERROR MESSAGES
B61863E/14 PMC PROGRAMMER (CRT/MDI) (FOR EDIT)
605
9. ERROR MESSAGES
(FOR EDIT) PMC PROGRAMMER (CRT/MDI) B61863E/14
606
B61863E/14 PMC PROGRAMMER (CRT/MDI) 10. ERROR MESSAGES (FOR I/O)
607
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
The DPL/MDI panel is used to set PMC system parameters and create and
execute the sequence program.
(1) Setting and displaying PMC system parameters (SYSTEM PARAM)
The type of counter data (BCD or binary) can be selected.
(2) Editing the sequence program (EDIT)
The sequence program can be edited (input, addition, search, and
deletion) by using the ladder mnemonics display.
(3) Executing the sequence program (RUN/STOP)
The execution of the sequence program can be started and
stopped.
(4) Storing the sequence program into flash EEPROM (I/O)
The sequence program can be stored into flash EEPROM (only
for the Power MateH and Power Mate iD/H).
The DPL/MDI panel is shown below.
X
O N G AXIS
DGNOS
PARAM POS
Y K/A G X
F M S T OPR
ALARM PRGRM
F RD WRT NOT
P
7 8 9 P I READ INSRT
Q
4 5 6 T/C J WRITE DELET
R
1 2 3 D/R K
ALTER
608
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
NOTE
1 With the PMC programmer (DPL/MDI) function, the
characters indicated at the lowerleft part of each key are
used.
2 When the <D/R> key is pressed once, the lefthand
character is valid. When the <D/R> key is pressed twice, the
righthand character is valid.
Example : When the <D/R> key is pressed once, D is keyed
in. When the <D/R> key is pressed twice, R is keyed in.
When a password is cleared, however, only the characters
on the left side are valid.
<> <>
<> <>
609
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.1 To operate the PMC programmer, set K17#1 of the keep relay area for
PMC parameters to 1, then press the <PRGRM> key two times on the
SELECTING THE DPL/MDI (press the <PRGRM> key further when the program screen is
PMC PROGRAMMER selected), thus causing the PMC programmer menu to be displayed.
MENU
Program screen PMC programmer menu screen
<POS> Current
Position screen
<PRGRM>
Program screen
<PRGRM>
PMC programmer screen (K17#1=1)
(PMC programmer menu)
(PMC editing menu) <ALARM>
Alarm/Message screen
<DGNOS/
PARAM>
Parameter/Diagnostic screen
<VAR>
Offset/Setting/Macro
Variable screen
The following keys on the DPL/MDI panel are used for PMC operation:
1 <POS>, <PRGRM>, <VAR>, <DGNOS/PARAM>, <ALARM> key
Returns to the CNC screen.
2 <> key
Shifts the cursor upward.
3 <> key
Shifts the cursor downward.
4 <INPUT>, <READ> key
Selects a function when the PMC programmer menu or PMC editing
menu is displayed.
5 <CAN>, <WRITE> key
Returns to the previous menu from the PMC programmer menu or
PMC editing menu.
610
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
11.2 Selecting SYSTEM PARAM on the PMC programmer menu displays the
system parameter screen. If the sequence program is running, selecting
SETTING AND this function automatically stops the program.
DISPLAYING SYSTEM
1 Display the PMC programmer menu.
PARAMETERS
2 Display the SYSTEM PARAM item by pressing the <> or <> key.
(SYSTEM PARAM)
PMC PRG MENU 3/3
>SYSTEM PARAM
CAUTION
If the PMC parameter keep relay K19#0 is set to 1, the
screen for writing a sequence program into Flash Memory
is displayed upon the completion of editing. (This is
applicable to the Power MateH and Power Mate iD/H
only).
DEVICE=FROM
>WRITE Y/N [YES]
611
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.3 Selecting EDIT on the PMC programmer menu displays the editing
menu.
EDITING THE
SEQUENCE 1 Display the PMC programmer menu.
PROGRAM (EDIT) 2 Display the EDIT item by pressing the <> or <> key.
To end editing and display the PMC programmer menu, press the <CAN>
or <WRITE> key.
612
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
11.4
EDITING LADDER
MNEMONICS
11.4.1 When ladder mnemonic editing (LADDER) is selected from the PMC
Starting Ladder edit menu, the ladder mnemonic edit screen is displayed.
When this function is selected, the sequence program stops.
Mnemonics Editing
1 Display the PMC edit menu screen.
2 Display the LADDER item by pressing the <> or <> key.
PASSWORD (R/W)
NOTE
For a ladder for which a password has been set, the ladder
mnemonic editing function cannot be started unless the
correct password is entered. Once the password is cleared,
the password remains cleared until the power is turned off
then back on.
NOTE
The entered password is not displayed (not echoed back on
the screen).
FALSE PASSWORD
If the <INPUT> key is pressed at this time, the screen display returns
to the password clear request screen.
If the <CAN> key is pressed at this time, the screen display returns
to the PMC edit menu.
If the entered password is correct, the password is cleared.
613
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
> N0001
RD X0000.0
Instruction
N0123
SUB 50 PSGNL
3 Relay search
Entering <address number> then <> searches for the relay
including the entered address.
(Example) <X0.2>, <>
N0105
AND X0000.2
N0123
SUB 50 PSGNL
614
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
NOTE
1 Relay search, relay coil search, and functional instruction
search are started from the current screen. If the relay, relay
coil, or instruction is not found by the end of the ladder
program, search is performed from the beginning of the
ladder program to the step at which search was started. If
still not found, NOT FOUND is displayed.
N0105 NOT FOUND
AND X0000.2
615
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
N1234
AND R0123.4
Before change
N1234
OR Y0032.4
After change
CAUTION
If changing the instruction causes the memory capacity to
be exceeded, the <ALTER> key is ignored without changing
the instruction.
2 Deleting an instruction
(a) Display the instruction to be deleted.
(b) Press the <DELET> key.
The instruction is deleted and the next instruction is displayed.
3 Inserting an instruction
(a) Display the instruction after which an instruction is to be inserted.
(b) Enter the instruction to be inserted.
(c) Press the <INSRT> key.
(Example) <AND>, <STK>, <INSRT>
N1234
AND R0123.4
Before insertion
N1234
AND.STK
After insertion
NOTE
If inserting the instruction causes the memory capacity to be
exceeded, the <INSRT> key is ignored without inserting the
instruction.
616
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
NOTE
In editing the functional instruction TMR, TMRB, CTR,
DIFU, DIFD, the range and the multiple use of parameters
are checked.
When the parameter is out of range error, it can not be
inputted. When parameter is multiple use error, the error
message is displayed on the screen.
(Example) Error message of multiple use.
617
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
NOTE
1 If the sequence program contains an error, the PMC editing
menu is not displayed but an error message appears on the
screen.
(Example) Error message
END FUNCTION
MISSING
618
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
LADDER RUN/STOP
MONITOR [RUN]
CAUTION
When the sequence program cannot be started(RUN), the
alarm of PMC occurred. Please confirm the alarm status
referring to 11.11 Error List.
619
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.6
Displayed error message Error description (operator action)
ERROR MESSAGES 1 COIL NOTHING No coil is specified for a functional instruction
(FOR LADDER using a coil.
MNEMONICS 2 COM FUNCTION MISSING The use of the COM (SUB9) functional
instruction is incorrect.
EDITING) 3 END FUNCTION MISSING The END1 or END2 functional instruction is
missing (or ERROR NET).
4 JUMP FUNCTION MISSING The use of the JMP (SUB10) functional
instruction is incorrect.
5 LADDER BROKEN The ladder program is corrupted.
6 OBJECT BUFFER OVER The user program RAM is full.
(Note) (Perform condensation or reduce the
size of the ladder program.)
7 PLEASE CLEAR ALL The sequence program has become unrecov-
erable due to poweroff during editing.
8 1ST LEVEL EXEC TIME OVER The ladder first level is too great.
9 FUNC, PARAM NO. OUT OF There is out of range error in the parameter of
RANGE functional instruction TMR, TMRB, CTR,
DIFU, DIFD. It is displayed when mnemonics
editing is finished.
10 FUNC. PARAM NO. DUPLICATE There is multiple use error in the parameter of
functional instruction TMR, TMRB, CTR,
DIFU, DIFD. It is displayed when mnemonics
editing is finished.
11 Nxxxxx yyyy (RNG) There is out of range error in the parameter of
P0001 nnn functional instruction TMR, TMRB, CTR,
DIFU, DIFD.
xxxxx : Step number
yyyy : Functional instruction
nnn : Parameter
12 Nxxxxx yyyy (DUP) There is multiple use error in the parameter of
P0001 nnn functional instruction TMR, TMRB, CTR,
DIFU, DIFD.
xxxxx : Step number
yyyy : Functional instruction
nnn : Parameter
620
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
11.7 Selecting I/O on the PMC programmer menu displays the screen for
storing the sequence program into flash EEPROM. Before attempting to
STORING THE store the sequence program into flash EEPROM, place the CNC in the
SEQUENCE emergency stop state.
PROGRAM INTO (1) Display the PMC programmer menu.
FLASH EEPROM (I/O) (2) Display the I/O item by pressing the <> or <> key.
(ONLY FOR THE
Power MateH AND PMC PRG MENU 4/4
>I/O
Power Mate iD/H)
(3) Press the <INPUT> or <WRITE> key. The sequence program
storage screen appears. Pressing the <> or <> key switches display
between [YES] and [NO].
<>
DEVICE=FROM DEVICE=FROM
>WRITE!Y/N[YES] >WRITE!Y/N[NO ]
<>
(4) When [NO] is displayed, pressing the <INPUT> key displays the
sequence program storage screen. When [YES] is displayed, pressing
the <INPUT> key starts writing the sequence program into flash
EEPROM.
EXECUTING is displayed during writing.
WRITE TO FROM
COMPLETE
NOTE
If an error occurs, an error message appears on the screen.
621
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.8 The table below lists the details of the errors which may occur during
storage into Flash ROM using the DPL/MDI (only for the Power MateH
ERROR DETAILS and Power Mate iD/H).
Error message Description
PROGRAM DATA The ladder data in RAM is invalid. Alternatively,
ERROR there is no RAM or ROM.
SIZE ERROR The program exceeds the maximum size which can
be written into FROM.
NOT EMG STOP The CNC is not in the emergency stop state.
OPEN ERROR The OPEN processing has failed.
ERASE ERROR The ERASE processing has failed.
The FROM cannot be erased. Alternatively, the
FROM is defective.
WRITE ERROR The WRITE processing has failed.
The FROM cannot be written. Alternatively, the
FROM is defective.
622
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
11.9
INPUT/OUTPUT
LADDER/
PMCPARAMETER
BY MDI/DPL
CAUTION
In case of output PMCParameter, it is necessary to set
following condition.
(a)Edit mode.
(b)Stop condition the Ladder program.
623
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.10 The online debugging function enables the monitoring and modification
of ladder programs and signal status on personal computers screen using
ONLINE a personal computer connected to the Power Mate through an RS232C
DEBUGGING cable.
FUNCTION
(ONLY FOR Power CAUTION
MateD/H and Power The additional option of the Ladder Online debugging
function is necessary to use the online debugging function
Mate iD/H)
on PMCPA3 for Power MateD.
In this section, only the parameter of online monitor driver for Power
MateH and attention in use is described. Other points(connection of
cable with personal computer, details of the operation, etc.) are described
in the following manual.
CAUTION
The CRT/MDI is necessary when the parameter is set on the
PARAMETERS FOR ONLINE MONITOR screen.
624
11. PMC PROGRAMMER (DPL/MDI)
B61863E/14 PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE Power Mate)
#7 #6 #5 #4 #3 #2 #1 #0
0101
NOTE
In case of Power MateD Dual path control, only the
parameter of first path side is effective.
CAUTION
1 The online monitor driver occupies the line while it is
operating.
In this state, other input/output functions cannot use the
line.
If other input/output functions use the line, it is necessary to
display the abovementioned parameter and stop the
online monitor driver.
2 While the online monitor driver is operating, the following
functions cannot be used.
D[PMCLAD], [I/O], [EDIT], [SYSPRM] on CRT/MDI
D[EDIT], [SYSTEM PARAM], [I/O] on DPL/MDI
3 In case of operating NC, the screen display of NC(Position,
etc.) might be slow when using input/output functions(Load
from PMC, Store to PMC, etc.). There is no problem in the
operation of NC. It is recommended to using input/output
functions while NC is not operating.
4 When the screen made by C language executor is
displayed, the communication speed decreases. It is
recommended to use input/output functions after moving to
other screens(Position, etc.).
625
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE Power Mate) PMC PROGRAMMER (CRT/MDI) B61863E/14
11.11 If in alarm is issued in the PMC, the alarn message is displayed on the
CRT (PMC ALARM MESSAGE screeen). But in case of DPL/MDI, it
ERROR LIST is displayed only by Rrelay status (ON or Off).
Refer to the APPENDIX L.ALARM MESSAGE LIST for more
information.
(1) Error ststus at power on or PROGRAM DOWN LOAD.
7 6 5 4 3 2 1 0
R9044
7 6 5 4 3 2 1 0
R9046
626
IV. PMCNB6 MANIPULATION
B61863E/14 PMCNB6 MANIPULATION 1. OVERVIEW
1 OVERVIEW
In the NC system, clicking the [PMC] soft key on the [SYSTEM] menu
enables the setting and display of data related to the PMC. The following
screens are used to specify and display the PMCrelated data.
(1) Ladder diagram display and editing (PMCLAD)
(2) Displaying PMC input/output signals and internal relay (PMCDGN)
(a) Title data screen
(b) Status screen
(c) Alarm screen
(d) Trace screen
(e) I/O Link monitor screen
(3) PMC data setting and display (PMCPRM)
(f) Timer
(g) Counter
(h) Keep relay
(i) Data table
(4) Specifying PMC setting data (SETING)
(j) General setting data
(k) Setting data related to editing and debugging
(l) Online monitor parameter
(5) Writing, reading, and collating sequence programs and PMC
parameters (I/O)
629
2. SOFT KEYBASED PMC MENU
SELECTION PROCEDURE PMCNB6 MANIPULATION B61863E/14
630
2. SOFT KEYBASED PMC MENU
B61863E/14 PMCNB6 MANIPULATION SELECTION PROCEDURE
2.1
PMC BASIC MENU
631
2. SOFT KEYBASED PMC MENU
SELECTION PROCEDURE PMCNB6 MANIPULATION B61863E/14
632
2. SOFT KEYBASED PMC MENU
B61863E/14 PMCNB6 MANIPULATION SELECTION PROCEDURE
2.2
PMC SCREEN
TRANSITION AND
RELATED SOFT
KEYS
633
2. SOFT KEYBASED PMC MENU
SELECTION PROCEDURE PMCNB6 MANIPULATION B61863E/14
NC system screen
PMC
<
<
TITLE Title screen
<
ALARM Alarm screen
EDIT/
DEBUG Data related to editing and debugging
RUN
Program restart function
or
STOP
634
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
635
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.1 The title data corresponds to the title of a sequence program. It consists
of the following items:
TITLE DATA DISPLAY
(TITLE)
NOTE
1 When PROGRAMMER ENABLE is set to YES on the
GENERAL screen of Setting screen, the [EDIT] soft key
appears on the Title Data Display screen.
2 If the [EDIT] soft key is pressed while Online function is
being executed, the ONLINE MONITOR IS ACTIVE
message is displayed and the Title Editor screen does not
appear.
636
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.2 When the [EDIT] soft key is pressed on the Title Data Display screen, the
Title Data Editor screen appears.
TITLE DATA EDITOR
SCREEN
Pressing these soft keys causes a return to Title Data Display screen.
NOTE
When WRITE TO FROM (EDIT) is set to YES on the
EDIT/DEBUG screen of Setting screen, saving operation
into Flash ROM is enabled.
637
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.3 This screen displays the contents at all the addresses (X, Y, F, G, R, A, C,
T, K, D, M, and N) specified in programs. Each content display is a string
SIGNAL STATUS of 0 and 1 with a hexadecimal indication at the right end.
DISPLAY (STATUS)
Operating procedure
(1) Click the [STATUS] soft key. The screen shown above appears.
(2) Specify the desired address by keying it in, then click the [SEARCH]
soft key.
(3) A sequence of data starting at the specified address is displayed as a
bit pattern.
(4) To specify another address for display, click a cursor key, page key, or
the [SEARCH] soft key.
638
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.4 If an alarm condition occurs in the PMC, clicking the [PMC] soft key from
the NC system displays the following alarm message instead of the PMC
ALARM SCREEN basic menu. The soft keys displayed on this screen remain the same as
(ALARM) on the PMC basic module screen. In addition, character string ALM
appears on the title line.
If the alarm condition is fatal, no sequence program will be executed.
639
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.5
TRACE SCREEN
3.5.1 On the trace screen, you can trace specified signals. The result of the trace
Overview is displayed as the time chart of signals.
There are two tracing modes. One is the Time Cycle mode that samples
the state of the signals at every specified cycle time. The other is the
Signal Transition mode that samples the status of the signals when the
signals that are watched at every specified time are changed.
Pushing [TRACE] soft key displays the following screen.
NOTE
As for the setting of automatic running for the trace function,
please refer to II 7.5.1 Screen for Displaying General
Settings (GENERAL)
640
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.5.2 Pushing the [SETING] soft key displays the Parameter Setting screen.
Setting of Trace The following is the screen example of the trace execution by TIME
CYCLE mode.
Parameter
641
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
D SAMPLING MODE
Determines the sampling mode. Select one by cursor key or soft key.
Soft keys display when the cursor is put on SAMPLING
MODE.
Explanation:
TIME CYCLE Samples at every specified cycle time.
SIGNAL TRANSITION Samples when the signal changes.
INIT Initializes all the settings. (This soft key
is always displayed in page 1.)
D SAMPLING RESOLUTION
The resolution of sampling is inputted. The default value is the
minimum resolution (8msec). The range of the value is from 8msec to
1000msec. Inputted value is rounded down to the multiple of 8msec.
D SAMPLING TIME
This parameter is displayed when TIME CYCLE is set on
SAMPLING MODE. The execution time of trace is inputted. The
value of SAMPLING SESOLUTION or the number of specified
signal address changes the range of the value that is able to input. The
range is displayed on the right of the edit box.
D SAMPLING FRAME
This parameter is displayed when SIGNAL TRANSITION is set on
SAMPLING MODE. The number of sampling is inputted. The
value of SAMPLING SESOLUTION or the number of specified
signal addresses changes the range of the value that is able to input.
The range is displayed on the right of the edit box.
D STOP CONDITION
Determines the condition to stop the trace. Select one by cursor key
or soft key.
Soft keys display when the cursor is put on STOP
CONDITION.
Explanation:
NONE Does not stop the tracing automatically.
BUFFER FULL Stops the tracing when the buffer becomes full.
TRIGGER Stops the tracing by trigger
D STOP CONDITION TRIGGER ADDRESS
When TRIGGER is set on STOP CONDITION, this parameter is
enabled. Input signal address or symbol name as stop trigger.
Only bit address or corresponding symbols can be inputted. Byte
address cannot be inputted.
Soft keys display when the cursor is put on STOP CONDITION
TRIGGER ADDRESS.
642
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
Explanation:
DELETE Clears the value in the edit box.
SYMBOL Changes the address display to the symbol name
display and changes the soft key to [ADDRESS].
After that, following soft keys are displayed.
Explanation:
Trigger position
1sec 9sec
1 0 9 (SEC)
The graph is displayed on the right of the edit box. The edge of the left
hand is as 0% and the edge of the right hand is as 100%. The position
indicated by the input value is displayed as a gauge.
D SAMPLING CONDITION
When SIGNAL TRANSITION is set on TRACE MODE, this
parameter is enabled. Select one by cursor key or soft key.
643
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
Explanation:
TRIGGER Samples the status of specified signals when
the specified sampling condition is on.
ANY CHANGE Samples the status of specified signals when
the signals change
The address of the signals that should be sampled is set on Parameter
Setting screen page2.
D SAMPLING CONDITION TRIGGER ADDRESS
When SIGNAL TRANSITION is set on TRACE MODE, and
TRIGGER is set on SAMPLING CONDITION, this parameter is
enabled. Input signal address or symbol name as sampling trigger.
Only bit address or corresponding symbol can be inputted. Byte
address cannot be inputted.
Soft keys display when the cursor is put on SAMPLING
CONDITION TRIGGER ADDRESS.
Explanation:
RISING EDGE Samples the status of specified signals by
rising up of the trigger signal.
FALLING EDGE Samples the status of specified signals by
falling down of the trigger signal.
BOTH EDGE Samples the status of specified signals by
rising up or falling down of the trigger signal.
ON Samples the status of specified signals during
the trigger signal is on.
OFF Samples the status of specified signals during
the trigger signal is off.
644
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
D SAMPLING ADDRESS
In page 2 of Parameter Setting screen, you can set the addresses or
symbols that should be sampled.
Move the cursor into edit box and input PMC signal address or
symbol.
In case of inputting discrete bit addresses, any bit address can be
inputted. Moreover, when you input byte address, all bits of the
address (bit0bit7) are set automatically.
Maximum 32 points of signal address can be inputted. Increasing the
number of the signal address changes the capacity of SAMPLING
TIME or SAMPLING FRAME in page1. If the capacity is
changed, the warning message is displayed.
Example of warning message:
In case of TIME CYCLE mode
SAMPLING TIME IS REDUCED TO n SEC.
In case of SIGNAL TRANSITION mode
SAMPLING FRAME IS REDUCED TO n COUNT.
The n means the maximum value that is able to input.
Explanation of the soft keys:
DELETE Clears the value of the edit box on the cursor.
SYMBOL Changes the address display to the symbol
display. However, display of the address that is
not defined the symbol does not change. This
soft key also changes to ADDRESS. The
following soft keys are displayed.
MOVE UP Exchanges the signal indicated the cursor for
the signal above one line.
MOVE DOWN Exchanges the signal indicated the cursor for
the signal below one line.
DELETE ALL Clears all of the value of the edit box.
645
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
Pushing [TRIGGER ON] soft key sets the trigger on. Pushing
[TRIGGER OFF] soft key sets the trigger off. The default setting is
trigger on for all signals. The contents of other soft keys are same as
SAMPLING ADDRESS.
646
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.5.3 On trace screen, pushing [START] soft key starts the execution of trace
Execution of Trace after you set the trace parameter correctly. The following is the screen
example of the trace execution by TIME CYCLE mode.
647
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.5.4 When the execution is finished, the result of trace is displayed. The
Operation after following is the screen example of trace by TIME CYCLE mode.
Execution of Trace
648
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
649
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.5.5 The trace function for PMCNB6 is different from the trace function,
Comparison With the [PMCDGN] [TRACE], or the analysis function, [PMCDGN]
[ANALYS], for PMCNB/NB2 in the specification of display and setting
Function of FS15B parameter.
(PMCNB/NB2) However, you can get the same result of the trace as PMCNB/NB2 by
parameter setting.
The way of setting of the parameters to get the same result of the trace as
PMCNB/NB2 is described as follows.
650
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
651
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
652
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
The point of the enhancement is the ability to adjust the ratio of data
before and after the trigger position.
(4) Setting equivalent to TRIGGER MODE = 3:ONLY of the
[ANALYS] screen for PMCNB/NB2
653
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.6 The I/O Link Monitor screen and the I/O Unit Allocation screens are for
checking I/O Link connection and for allocating I/O Unit.
I/O LINK MONITOR
AND ALLOCATION D I/O Link Monitor screen: I/O Units connected via I/O Link are
displayed in order of Group number.
OF I/O UNIT D I/O Unit Allocation viewer screen: I/O Units Allocation to X and Y
addresses are displayed.
D I/O Unit Allocation Editor screen: I/O Units can be allocated to X and
Y addresses.
Change of screens
NOTE
Soft key [EDIT] appears only when programmer function is
enabled by setting PROGRAMMER ENABLE to YES at
GENERAL screen of PMC Settings. While Online Monitor
function is active, you can not reach I/O Unit Allocation
Editor screen. To use I/O Unit Allocation Editor function, you
have to disable Online Monitor function at PMC Setting
screen by choosing NOT USE for RS232C and
FBUS settings.
654
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.6.1 I/O Link Monitor screen shows the types and the ID codes of I/O Units
I/O Link Monitor screen that are connected to I/O Link in order of Group number.
You can confirm the connection of I/O Units type at this screen.
Call this screen by pressing of soft key [I/O LINK] in PMCDGN.
I/OB3 83 I/O B3
SERIES 0 50 Series 0
655
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
RJ MATE 61 RJ Mate
CAUTION
I/O Units not for Series FS15i are written in Table 7.8.1.
656
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.6.2 I/O Link Allocation Viewer screen shows I/O Units allocation to X and
I/O Unit Allocation Y addresses.
You can confirm the allocation of I/O Units at this screen.
Viewer screen Call this screen by pressing of soft key [I/O LINK] [I/O MODULE]
in PMCDGN.
657
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
3.6.3 Allocate I/O Units to X and Y addresses at I/O Unit Allocation Editor
I/O Unit Allocation screen.
Call this screen by pressing soft key [I/O LINK] [I/O MODULE]
Editor screen [EDIT] in PMCDGN.
658
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
NOTE
As to the allocation name of I/O Unit, please refer to FANUC
PMC Programming Manual (LADDER Language) Chapter
I, 3.2 Table3.2.2
(1.3)The I/O Unit is allocated to address of the cursor position for the
I/O Unit size.
In case of above example (1.2), I/O Unit is allocated at X10 and
X11 like as follows.
659
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
(PMCDGN) PMCNB6 MANIPULATION B61863E/14
CAUTION
1 Turn off and on the power after you store the Ladder to Flash
ROM in order to make the allocation effective.
2 The Ladder program is not stopped automatically when you
open I/O Unit Allocation Viewer screen or Editor screen.
660
3. DISPLAYING PMC INPUT/OUTPUT
SIGNALS AND INTERNAL RELAY
B61863E/14 PMCNB6 MANIPULATION (PMCDGN)
3.6.3.2
Error Message Error message Meaning and solution
Meaning:
GROUP NUMBER Too large Group number is input.
IS TOO LARGE Solution:
Input Group Number below 16.
Meaning:
Too large Base number is input.
BASE NUMBER IS
TOO LARGE Solution:
I/O UnitB (##,#1#10): Input Base number 0
Other I/O Unit: Input 0 or 1.
Meaning:
Too large Slot number is input.
SLOT NUMBER IS
TOO LARGE Solution:
I/O UnitB: Input Slot number below 31
Other I/O Unit: Input Slot number below 11
Meaning:
Too small Slot number is input.
SLOT NUMBER IS
TOO SMALL Solution:
I/O UnitB: Input Slot number 0 or above
Other I/O Unit: Input Slot number above 0
Meaning:
I/O Unit for X is allocated to Y address or I/O Unit for Y
I/O UNIT NAME is allocated to X address.
MISMATCH
Solution:
Confirm the I/O Unit Name and the address
Meaning:
I/O Unit name is not correct.
ILLEGAL I/O UNIT
NAME Solution:
Input correct name described at Chapter I.3.2 Table
3.2.2.
Meaning:
There is no enough space for the size of I/O Unit you
will allocate.
Meaning:
NOT ENOUGH This message is displayed also in case you will allo-
SPACE cate to the address in which other I/O Unit has been
allocated.
Solution:
ReInput the allocation after you delete the allocation
under the cursor and make space.
661
4. PMC DATA SETTING AND
DISPLAY (PMCPRM) PMCNB6 MANIPULATION B61863E/14
662
4. PMC DATA SETTING AND
B61863E/14 PMCNB6 MANIPULATION DISPLAY (PMCPRM)
4.1 This screen enables the entry and display of parameters for the timers,
counters, keep relay, and data tables, which are held in nonvolatile
OVERVIEW memory. To use this procedure, first click the [PMCPRM] soft key on the
PMC basic module.
663
4. PMC DATA SETTING AND
DISPLAY (PMCPRM) PMCNB6 MANIPULATION B61863E/14
4.2 Usually, no data can be entered for PMC parameters because they are
protected. The following two methods can be used to make it possible to
METHOD FOR enter data for them.
ENTERING PMC D If the sequence program is running (RUN state) (usually, this method
PARAMETERS should be used when the machine is operating.)
i) Place the NC in MDI mode or bring it to an emergency stop.
ii) Set PWE on the NC setting screen to 1 (see the following table).
iii) Alternatively, set the program protect signal (KEY4) to 1 (only if
counters or data tables are involved).
iv) The parameters are released from protection; so data can be entered
for them (see the following table).
PWE KEY4
Timer f
Counter f f
Keep relay f
Data table f f
v) After entering data for the parameters, return PWE or the KEY4
signal to the previous state.
D If the sequence program can be stopped (STOP state), for example,
while it is being debugged
i) Stop the sequence program.
ii) The parameter protection is released; so data can be entered for
them.
WARNING
If a sequence program is stopped while the machine is
operating, the machine may behave unexpectedly. Before
stopping the sequence program, make sure that nobody is
near the machine and that the tool cannot interfere with the
workpiece or machine. Incorrect operation of the machine
presents an extreme risk of death or serious injury to the
user. Damage the tool, workpiece, and/or the machine is
also likely.
664
4. PMC DATA SETTING AND
B61863E/14 PMCNB6 MANIPULATION DISPLAY (PMCPRM)
4.3 It is possible to enter data continuously on each of the timer, counter, keep
relay, and data table screens. After continuous data entry, the cursor
CONTINUOUS DATA appears at the bottom of the most recently entered data.
ENTRY D Entry
(1) Use ; (EOB) as a data delimiter.
(Example) 100;200;300; + INPUT key
(2) Use ;= to enter the same value as the previous data.
(Example) Entering 100;=;=;200;= + INPUT key causes the
following data to be entered: 100,100,100,200,200
(3) Use ;; to skip an address for entry.
(Example) Entering 100;;200; + INPUT key causes the
second data item to be skipped from entry.
665
4. PMC DATA SETTING AND
DISPLAY (PMCPRM) PMCNB6 MANIPULATION B61863E/14
4.4 This screen is used to set and display the timer values for the machine
instruction timers (SUB3).
TIMER SCREEN
(TIMER)
Table contents
D NO.: Counter number specified for a machine instruction
counter
D ADDRESS: Address referenced by a sequence program
D DATA: Timer value
Timer number Minimum timer value Maximum timer value
that can be specified that can be specified
1 to 8 48ms 1572.8 s
666
4. PMC DATA SETTING AND
B61863E/14 PMCNB6 MANIPULATION DISPLAY (PMCPRM)
4.5 This screen is used to set and display the maximum and minimum counter
values for machine instruction counters (SUB5).
COUNTER SCREEN
(COUNTR)
Table contents
D NO.: Counter number specified for a machine instruction
counter
D ADDRESS: Address referenced by a sequence program
D PRESET: Maximum counter value (a minimum counter value is
specified by a counter instruction)
D CURRENT: Current counter value
Counter types and maximum values
Counter type PRESET maximum value CURRENT maximum value
667
4. PMC DATA SETTING AND
DISPLAY (PMCPRM) PMCNB6 MANIPULATION B61863E/14
4.6 This screen is used for setting and displaying the Keep Relays.
KEEP RELAY
SCREEN (KEEPRL)
CAUTION
Do not use the Special use area , because the relays in this
area are reserved for PMC system software use, and they
affect behavior of the PMC software. Set 0 to any relays
that are not mentioned below, to prevent unexpected
behavior of PMC.
668
4. PMC DATA SETTING AND
B61863E/14 PMCNB6 MANIPULATION DISPLAY (PMCPRM)
#7 #6 #5 #4 #3 #2 #1 #0
K900 DTBL DSP MEMINP AUTORUN PRGRAM LADMASK
CAUTION
Set always 0 to any other relays in Special us area than
mentioned above, to prevent unexpected behavior of PMC.
669
4. PMC DATA SETTING AND
DISPLAY (PMCPRM) PMCNB6 MANIPULATION B61863E/14
4.7 There are two data table types (data table control data table and data table).
DATA TABLE (DATA) (1) Data table control data screen (C.DATA)
Clicking the [DATA] soft key displays the data table control data
setting screen for data table management.
Table contents
D GROUP TABLE COUNT:Number of data items in the data table
D NO.: Group number
D ADDRESS: Data table start address (the same address can be
specified for different groups.)
D PARAMETER: Table parameter(NOTE)
D TYPE: Data length (0 = 1 byte, 1 = 2 bytes, 2 = 4 bytes)
D DATA: Number of data items in each data table
Soft key definitions
[G.DATA]: Clicking this soft key switches to the screen for setting
and displaying the data in the data table.
[G.CONT]: After the number of groups is entered, clicking this soft
key asserts the number of groups for the data table.
[NO.SRH]: After a group number is entered, clicking this soft key
moves the cursor to the specified group.
[INIT]: Clicking this soft key initializes the data table.
* The initial data is as follows:
NO. ADDRESS PARAMETER TYPE DATA
001 D0000 00000000 0 8000
670
4. PMC DATA SETTING AND
B61863E/14 PMCNB6 MANIPULATION DISPLAY (PMCPRM)
NOTE
The meanings of the table parameters are as follows:
#7 #6 #5 #4 #3 #2 #1 #0
0: Binary format
1: BCD format
0: Input protection disabled
1: Input protection enabled
0: Binary or BCD format (with bit 0 valid)
1: Hexadecimal format (with bit 0 invalid)
Table contents
D NO.
D ADDRESS: Address used by the sequence program
D DATA
Soft key definitions
[C.DATA]: Clicking this soft key switches to the data table control
data screen.
[GSRCH]: After the entry of a group number for a data table to be
searched in another group, clicking this key moves the
cursor to the beginning of that group.
[SEARCH]: After the entry of an address, clicking this key moves the
cursor to the specified address within the currently
selected group. When entering the address, the D can
be omitted from the beginning of the address. After
entering 101 for example, clicking this key moves the
cursor to data using D101.
671
5. SETTING MENU (SETING) PMCNB6 MANIPULATION B61863E/14
Clicking the [SETING] soft key on the PMC basic module screen displays
the following setting menu screen.
Menu contents
1. GENERAL: Screen for displaying general setting data
2. EDIT/DEBUG: Screen for displaying setting data related to
editing and debugging
3. ONLINE: Screen for displaying the communication
settings for the onlinefunction. (It is
displayed by setting PROGRAMMER
ENABLE to YES on the GENERAL
screen.)
4. C LANGUAGE: Screen for displaying setting data related to C
Language function.
Clicking the soft keys explained above displays the respective setting
screens.
Some of the settings on this screen are saved to the keep relay. It is
possible to prevent changes to that part of the settings on this setting
screen, using a sequence program for writing to the keep relay.
672
B61863E/14 PMCNB6 MANIPULATION 5. SETTING MENU (SETING)
5.1 Clicking the [GENERAL] soft key displays the following screen.
SCREEN FOR
DISPLAYING
GENERAL SETTINGS
(GENERAL)
D PROGRAMMER ENABLE
YES: The builtin debug function is used.
NO: The builtin debug function is not used.
D AUTOMATIC LADDER START
AUTO: The sequence program is executed automatically when
the power is switched on.
MANUAL: The sequence program is executed by clicking the
sequence program execution soft key.
D SIGNAL STATUS WRITE ENABLE
YES: The online function can be used to enter data on the signal status
screen.
NO: The online function is prevented from entering data on the
signal status screen.
D DATA TABLE CONTROL SCREEN
YES: The PMC parameter data table control screen is displayed.
NO: The PMC parameter data table control screen is not displayed.
D SIGNAL TRACE START
AUTO: Trace function is executed automatically when the power
is switched on.
MANUAL: Trace function is executed by operating soft key.
673
5. SETTING MENU (SETING) PMCNB6 MANIPULATION B61863E/14
5.2
SCREEN FOR
DISPLAYING THE
SETTING DATA
RELATED TO
EDITING AND
DEBUGGING
674
B61863E/14 PMCNB6 MANIPULATION 5. SETTING MENU (SETING)
Menu descriptions
D CPU ID
The CPU ID value is displayed. The value can also be entered here,
but its entry is usually not necessary.
D RS232C (prompt)
USE: An RS232C port can be connected to FANUC
LADDERII.
NOT USE: No RS232C port is used.
Note) If no RS232C is to be connected to FANUC LADDERII,
select NOT USE.
D CHANNEL
A channel number to be used is displayed. The number can also be
entered.
D BAUD RATE
300: A baud rate of 300 is specified.
600: A baud rate of 600 is specified.
900: A baud rate of 900 is specified.
1200: A baud rate of 1200 is specified.
2400: A baud rate of 2400 is specified.
4800: A baud rate of 4800 is specified.
9600: A baud rate of 9600 is specified.
19200: A baud rate of 19200 is specified.
D PARITY
NONE: No parity is specified.
ODD: Odd parity is specified.
EVEN: Even parity is specified.
675
5. SETTING MENU (SETING) PMCNB6 MANIPULATION B61863E/14
D STOP BIT
1 BIT: The number of stop bits is set to 1.
2 BITS: The number of stop bits is set to 2.
D TIMER 1
The value in communication parameter timer 1 is displayed. The value
can also be entered, but its specification is usually not necessary.
D TIMER 2
The value in communication parameter timer 2 is displayed. The value
can also be entered, but its specification is usually not necessary.
D TIMER 3
The value in communication parameter timer 3 is displayed. The value
can also be entered, but its specification is usually not necessary.
D MAX PACKET SIZE
The maximum packet size for the communication parameter is
displayed. The size can also be entered, but its specification is usually
not necessary.
D RS232C (status display)
The status of an RS232C port is displayed.
INACTIVE: No RS232C port is in use.
STOPPING: An RS232C port is closed.
STARTING: An RS232C port is open.
STANDBY: An RS232C port is waiting to be connected to
FANUC LADDERII.
CONNECTED: An RS232C port has been connected to FANUC
LADDERII.
If the ladder editing package is included in the system configuration, the
FBUS prompt menu appears above the RS232C status display menu,
and the FBUS status display menu appears below the RS232C status
display menu.
D FBUS (prompt)
USE: An FBUS port can be connected to the ladder editing
package.
NOT USE: No FBUS port will be connected to the ladder editing
package.
D FBUS (status display)
The status of an FBUS port is displayed.
INACTIVE: No FBUS port is in use.
STOPPING: An FBUS port is closed.
STARTING: An FBUS port is open.
STANDBY: An FBUS port is waiting to be connected to
FANUC LADDERII.
CONNECTED: An FBUS port has been connected to FANUC
LADDERII.
Soft key descriptions
[EMGSTOP]: Clicking this key causes communication to be
terminated. It is used if it is impossible to terminate a
connection due to abnormal communication.
[INIT]: Clicking this key initializes the parameter settings.
676
B61863E/14 PMCNB6 MANIPULATION 5. SETTING MENU (SETING)
5.4
SCREEN FOR
DISPLAYING
SETTING DATA
RELATED TO C
LANGUAGE
FUNCTION
677
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
NOTE
You can hide [PMCLAD] soft key at PMC Main Menu by
setting the keep relay of K900.0 to 1.
678
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
679
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
NOTE
1 When [PMCLAD] soft key is pressed at first time after CNC
power cycle, Program List Viewer screen is displayed. Then
use [ZOOM] soft key to select subprogram to reach
LADDER Diagram Monitor screen, and the subprogram that
you have selected appears on the screen. Once you
choose subprogram, pressing [PMCLAD] soft key will
directly reach LADDER Diagram Monitor screen. Changing
LADDER program by I/O function will make the Program List
screen appear at [PMCLAD] soft key again. See Program
List screen for more detail. (404A/04 does not have
Program List Viewer screen. LADDER Diagram Monitor
screen can be reached directly from PMC Main Menu
always.)
2 404A/04 can not display LADDER program that is protected
by Password function. To view a protected LADDER
program, you need FANUC LADDERII, LADDER Editing
Package, or upgrade version to 404A/05 or later. 404A/05
or later will ask for password when necessary.
3 [EDIT] soft key in LADDER Diagram Monitor screen
appears only when Programmer function is enabled: to
enable Programmer function, set PROGRAMMER
ENABLE to YES at GENERAL screen of PMC Settings.
While Online Monitor function is active, you can not reach
LADDER Diagram Editor screen. To use LADDER Diagram
Editor function, you have to disable Online Monitor function
at PMC Setting screen: choose NOT USE.
680
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.1 LADDER Diagram Monitor screen shows the on/off status of contacts
and coils, and the contents of address specified for parameter of functional
LADDER DIAGRAM instructions. You can investigate how the LADDER program is working
MONITOR SCREEN by this monitor screen.
You can use following operation at this screen, including Forced I/O
function (Forcing mode), by which you can force the relay or the address
parameters of functional instructions to a new status or value.
D Switch subprogram to show [LIST]
D Search for address or others [SEARCH MENU]
D Show data table of functional instructions [DATA TABLE]
D Go to LADDER Diagram Editor screen [EDIT]
D Forced I/O function (Forcing mode) number + INPUT key
681
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.1.1
Screen Structures Title information (REMARKS) Current subprogram Current position Range to search
682
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
(c) Monitor
1. Contacts and coils are displayed in different colors according to
the status of the signal. The status of power flow is not displayed.
2. The contents of address parameters of functional instructions are
not shown in default setting. With the extended functional
instruction format, you can see the contents of the parameters.
See Setting Screen for the detail.
(d) Displaying Symbols and Comments
1. If an address has a symbol name assigned, the symbol name will
be displayed instead of the address itself at default setting. You
can force not to show symbol by setting. See Setting Screen
for the detail.
2. If the address used with coil has a comment string assigned, the
comment strings will be displayed at the right margin beside the
coil. You can use this margin area to display an additional relay
instead of the comment string by setting: at this setting, one more
relay can be displayed in each diagram line. See Setting Screen
for the detail.
683
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.1.2
Operations Soft keys of LADDER Diagram Monitor screen on PMCNB6
Search Functional
Instruction Switch range
Jump to
Top/Bottom Search Address or Net Search previous
684
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
With cursor displayed, you can move the cursor by all cursor
move keys and Page change keys. When cursor is placed on some
relay or some address parameter of a functional instruction, the
information about the address under cursor is displayed at
Additional Information Line.
685
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
WARNING
1 You have to pay special attention to use Forced I/O function
to change status of signals. Inappropriate use of Forced I/O
function may cause unexpected reaction of machine. You
have to make it sure that nobody is near the machine
when you use this function.
2 As you use Forcing mode of Forced I/O function to change
status of signal, however, the signal may look proof against
Forced I/O function, because LADDER program or I/O
device writes into the signal repeatedly. In this case, even
if the signal looks unchanged, actual signal may be
changed in very short moment. You should be careful for
the reaction of machine to such signal changes.
NOTE
1 Forced I/O function is enabled when SIGNAL STATUS
WRITE ENABLE setting is set to YES in GENERAL
screen of PMC Settings. If the setting is NO, INPUT key
will be just ignored.
2 Parameters of timer functional instructions, TMR, TMRB,
and TMRC, which have special monitor formats, are not
supported by Forced I/O function.
686
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
3 In this case, you can still search the byte address D0 by entering
D00. The excess 0 avoids the conflict with the symbol D0.
3. When the range for searching is GLOBAL, and the target is found
in other than displaying subprogram, the screen will automatically
switch to the subprogram to which the found target belongs.
Searching GLOBAL net number that current subprogram does not
contain, for example, the subprogram that contains the net of the net
number will appear in the screen, displaying the net.
(d) Shortcuts
1. Right/left cursor move keys that are following some string means
searching forward/backward. You can use following strings for
this search operation:
D Digits for net number
D 1 for top, 0 for bottom
D S + digits, for Functional instructions
D Other string for symbol or bit/byte address
D Leading space always makes the string treated as a symbol
or address.
Example: _123+[SEARCH] (_ means space) will search
the symbol 123 instead of the 123rd net.
2. When cursor is hidden, left/right cursor move keys without string
act just like [PREV]/[NEXT] soft keys.
3. String followed by [SEARCH MENU] soft key in PMCLAD
Main soft keys starts searching directly. In this case, [SEARCH
MENU] soft key acts just like right cursor move key.
4. [SEARCH] soft key in Search soft keys without string searches
the address or the functional instruction under cursor forward. If
cursor is hidden, or cursor is placed neither on a relay nor on a
functional instruction, this operation just repeats the last
successful search forward, just like [NEXT] soft key.
5. [WRITE SEARCH] soft key without string searches forward a
write coil of the same address with relay under cursor. If cursor
is hidden, or cursor is not placed on a relay, this operation will
search a write coil of the bit address that is searched at last
successful search. If the last search was not made with bit
address, the last entered string for searching is used to determine
what bit address is to be searched for a write coil.
6. [FUNC SEARCH] soft key without string searches forward the
same functional instruction with one under cursor. If cursor is
hidden, or cursor is not placed on a functional instruction, this
operation will search a functional instruction that is searched at
last successful search. If the last search was not made for
functional instruction, the last entered string for searching is used
to determine what functional instruction is to be searched.
7. [LIST] soft key following string that indicates subprogram,
switches subprogram on LADDER Diagram Monitor screen.
Examples for strings to specify subprogram are following:
L1 Level 1
P10, 10 Subprogram P10
0(zero), G Whole of LADDER program (Global)
687
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.1.3 Functional Instruction Data Table Viewer screen shows the contents of
Functional Instruction data table that belongs to some functional instructions.
To reach this screen, at LADDER Diagram Monitor screen, press [DATA
Data Table Viewer TABLE] soft key that is displayed when the cursor is on the following
Screen functional instructions which have a data table.
D Functional Instruction COD (SUB7)
D Functional Instruction CODB (SUB27)
Following operations are available at this screen.
D Search for data table number. [SEARCH NUMBER]
D Search for data value. [SEARCH VALUE]
D Change the displaying data digits. [BCD2],[BCD4]
(These soft keys can be operated
only at Functional Instruction
Data Table Viewer screen of
Functional Instruction COD.)
688
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
689
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
690
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.1.4
Setting Screen
691
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
TALL
Extends the box vertically to reserve spaces for the monitors
of current values of address parameters. The box becomes
taller than COMPACT.
Display styles of functional instructions
NONE
1 LINE
2 LINE
692
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
D SHOW CURSOR
Determines whether to show cursor.
YES
Cursor is displayed. Cursor move keys will move the cursor.
When the cursor is placed on bit or byte addresses, the
information of the address is displayed at Additional
Information Line. When you search something with the
cursor displayed, the cursor goes directly where it is found.
This option is recommended for search operation with
LADDER program that contains many large nets.
NO (default)
Cursor is not displayed. Up/down cursor move keys will
scroll the contents of screen directly. When you search
something with the cursor hidden, the net, which contains it,
will appear at the top of the screen.
D SUBPROGRAM NET NUMBER
Determines whether a net number is counted as LOCAL
starting from the top of current subprogram, or is counted as
GLOBAL starting from the top of whole program. This setting
also affects the expression of net number at searching nets by
number.
LOCAL
Net number starts from 1 at top of current subprogram. Net
number is defined only within current subprogram. The net
number information at upper right of the screen is displayed
in the format displaying range / nets in subprogram NET.
GLOBAL (default)
Net number starts from 1 at top of Level 1 program. Net
number is defined identically at whole of program. The net
number information at upper right of the screen is displayed
in the format displaying range / subprogram range NET.
693
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
Wrap search
694
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
695
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
NOTE
The setting BOLD DIAGRAM requires Character
registration function of CNC software, which is supported
by Series F002 version 03 or later. If CNC software does not
support it, diagram is always displayed with thin lines.
NOTE
The setting VARIABLE RELAY SYMBOL requires
Character registration function of CNC software, which is
supported by Series F002 version 03 or later. If CNC
software does not support it, shapes of relay will not change
according to their status.
ADDRESS COLOR
ADDRESS BACKGROUND
Colors for the relay address are set. You can specify these colors
by entering color number, or by moving right and left cursor. 16
colors (from No.0 to No.15) are available. Foreground color
should be different from background one.
DIAGRAM COLOR
DIAGRAM BACKGROUND
General color and its background color for LADDER Diagram.
You can specify these colors by entering color number, or by
using right and left cursor move keys to change the color number.
You can use 16 numbers from 0 to 15; however, some different
number may correspond to the same color. You can not specify
the same number to the foreground and the background colors.
696
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
697
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.1.5 The following table shows all monitor formats for each parameter of each
Display Format for functional instruction.
Parameters NOTE
1 Variable in Monitor Format field means that this
parameter changes its size according to the other
parameter. Refer to the descriptions for each functional
instruction for detail.
2 Functional instruction with * mark has Data table.
No. Name Parameter Monitor Format No. Name Parameter Monitor Format
1 END1 18 XMOV 1 constant
2 END2 2 4digits BCD
3 TMR 1 special 3 4digits BCD
4 DEC 1 2digits BCD 4 4digits BCD
2 constant 19 ADD 1 constant
5 CTR 1 special 2 4digits BCD
6 ROT 1 constant 3 4digits BCD
2 4digits BCD 4 4digits BCD
3 4digits BCD 20 SUB 1 constant
4 4digits BCD 2 4digits BCD
7 COD * 1 constant 3 4digits BCD
2 2DIGITS BCD 4 4digits BCD
3 4digits BCD 21 MUL 1 constant
8 MOVE 1 constant 2 4digits BCD
2 constant 3 4digits BCD
3 2digits HEX 4 4digits BCD
4 2digits HEX 22 DIV 1 constant
9 COM 1 constant 2 4digits BCD
10 JMP 1 constant 3 4digits BCD
11 PARI 1 1byte binary 4 4digits BCD
14 DCNV 1 no monitor 23 NUME 1 constant
2 no monitor 2 4digits BCD
15 COMP 1 constant 24 TMRB 1 constant
2 4digits BCD 2 special
3 4digits BCD 25 DECB 1 constant
16 COIN 1 constant 2 variable binary
2 4digits BCD 3 constant
3 4digits BCD 4 2digits HEX
17 DSCH 1 constant 26 ROTB 1 constant
2 4digits BCD 2 variable binary
3 4digits BCD 3 variable binary
4 4digits BCD 4 variable binary
5 variable binary
698
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
No. Name Parameter Monitor Format No. Name Parameter Monitor Format
27 CODB * 1 constant 40 NUMEB 1 constant
2 constant 2 constant
3 1byte binary 3 variable binary
4 variable binary 41 DISPB 1 constant
28 MOVOR 1 2digits HEX 42 EXIN 1 8digits HEX
2 2digits HEX 43 MOVB 1 1byte binary
3 2digits HEX 2 1byte binary
29 COME 44 MOVW 1 2bytes binary
30 JMPE 2 2bytes binary
31 DCNVB 1 constant 45 MOVN 1 constant
2 no monitor 2 4bytes binary
3 no monitor 3 4bytes binary
32 COMPB 1 constant 46 SPCNT 1 4bytes binary
2 constant or 2 no monitor
variable binary 3 8digits HEX
3 variable binary 48 END3
33 SFT 1 4digits HEX 51 WINDR 1 2bytes binary
34 DSCHB 1 constant 52 WINDW 1 2bytes binary
2 variable binary 53 AXCTL 1 constant
3 variable binary 2 8digits HEX
4 variable binary 54 TMRC 1 constant
5 variable binary 2 special
35 XMOVB 1 constant 3 special
2 variable binary 55 CTRC 1 2bytes binary
3 variable binary 2 2bytes binary
4 variable binary 57 DIFU 1 constant
5 variable binary 58 DIFD 1 constant
36 ADDB 1 constant 59 EOR 1 constant
2 variable binary 2 variable HEX
3 constant or 3 constant or
variable binary variable HEX
4 variable binary 4 variable HEX
37 SUBB 1 constant 60 AND 1 constant
2 variable binary 2 variable HEX
3 constant or 3 constant or
variable binary variable HEX
4 variable binary 4 variable HEX
38 MULB 1 constant 61 OR 1 constant
2 variable binary 2 variable HEX
3 constant or 3 constant or
variable binary variable HEX
4 variable binary 4 variable HEX
39 DIVB 1 constant 62 NOT 1 constant
2 variable binary 2 variable HEX
3 constant or 3 variable HEX
variable binary 64 END
4 variable binary 65 CALL 1 no monitor
699
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
700
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.1.6
Functional Instructions
of Special Monitor
forMat
701
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.2 At LADDER Diagram Editor screen you can edit LADDER program to
change its behavior.
LADDER DIAGRAM To reach LADDER Diagram Editor screen, press [EDIT] soft key at
EDITOR SCREEN LADDER Diagram Monitor screen.
Following operations are available at LADDER Diagram Editor screen.
For more detail of these operations, refer to the descriptions of each key
to operate.
702
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
NOTE
1 [EDIT] soft key in LADDER Diagram Monitor screen
appears only when Programmer function is enabled. To
enable Programmer function, set PROGRAMMER
ENABLE to YES at GENERAL screen of PMC Settings.
While Online Monitor function is active, you can not reach
LADDER Diagram Editor screen. To use LADDER Diagram
Editor function, you have to disable Online Monitor function
at PMC Setting screen: choose NOT USE.
2 To edit LADDER protected by password, you have to unlock
the protection first. Enter password + INPUT key to unlock
it when password is requested.
703
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.2.1
Screen Structures
704
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.2.2
Operations
705
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
WARNING
You have to pay special attention to modify running
LADDER program. If you modify LADDER program in
wrong way, or update LADDER program with the machine
in improper status, it may cause unexpected reaction of the
machine. You have to make it sure that modifications you
make on LADDER program is appropriate, machine is in
proper status, and nobody is near the machine, when you
update LADDER program.
CAUTION
At updating LADDER program, it may take rather long time
to complete updating process in some cases according to
the activity of LADDER program. If it takes too long time, or
never complete at updating process, cancel updating
process and correct LADDER program, following
instructions in section 7.6.2.5 How to correct LADDER
program that never stops.
706
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
707
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
Pasting nets using [PASTE] soft key will not remove contents of
Paste Buffer. The contents of Paste Buffer will remain until
turning CNC power off.
11. [RESTORE] Abandon changes
Abandons all changes, and restores LADDER program to the one
at entering LADDER Diagram Editor screen, or last updated one
using [UPDATE] soft key. This soft key is useful when you make
wrong modifications and hard to recover from them.
12. [SCREEN SETING] Screen settings
Goes to setting screen for LADDER Diagram Editor screen. You
can change various settings for LADDER Diagram Editor screen
at the screen. Use Return key [<] to return to LADDER Diagram
Editor screen. See Settings for LADDER Diagram Editor
section for the detail.
13. [RUN] / [STOP] Run and stop LADDER program
Controls LADDER program execution. [RUN] soft key makes
LADDER run, and [STOP] soft key makes LADDER stop. Both
soft keys will confirm your intention. When you are sure to run
or stop LADDER program, press [YES] to take an action.
WARNING
1 You have to pay special attention to run/stop LADDER
program. Running/stopping LADDER program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you run/stop LADDER program.
2 At stopping LADDER program, it may take rather long time
to complete to stop it in some cases according to the activity
of LADDER program. If LADDER takes too long time to
stop, or never stop, correct LADDER program, following
instructions in section 7.6.2.5 How to correct LADDER
program that never stops.
708
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
WARNING
1 You have to pay special attention to modify running
LADDER program. If you modify LADDER program in
wrong way, or update LADDER program with the machine
in improper status, may cause unexpected reaction of the
machine. You have to make it sure that modifications you
make on LADDER program is appropriate, machine is
in proper status, and nobody is near the machine, when
you update LADDER program.
2 At updating LADDER program, it may take rather long time
to complete updating process in some cases according to
the activity of LADDER program. If it takes too long time, or
never complete at updating process, cancel updating
process and correct LADDER program, following
instructions in section 7.6.2.5 How to correct LADDER
program that never stops.
709
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.2.3
Setting Screen
710
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
NONE
1 LINE
2 LINE
711
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
712
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
713
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
NOTE
The setting BOLD DIAGRAM requires Character
registration function of CNC software, which is supported
by Series F002 version 03 or later. If CNC software does not
support it, diagram is always displayed with thin lines.
ADDRESS COLOR
ADDRESS BACKGROUND
Colors for the relay address are set. You can specify these colors
by entering color number, or by moving right and left cursor. 16
colors (from No.0 to No.15) are available. Foreground color
should be different from background one.
DIAGRAM COLOR
DIAGRAM BACKGROUND
General color and its background color for LADDER Diagram.
SELECTED NET COLOR
SELECTED NET BACKGROUND
Color setting for the selected net. The nets that will be object of
following editing operation are displayed with this color setting.
PROTECTED NET COLOR
PROTECTED NET BACKGROUND
Color setting for the nets protected from editing operations. The
protected nets can not be selected as object of editing operations.
The nets with following functional instructions are protected
from deleting and creating when a subprogram (not whole
program) is chosen to edit.
END1 END3 SP
END2 END SPE
COMMENT COLOR
COMMENT BACKGROUND
Colors for the relay comment are set. You can specify these
colors by entering color number, or by moving right and left
cursor. 16 colors (from No.0 to No.15) are available. Foreground
color should be different from background one.
(b) Soft keys
LADDER Diagram Editor Setting screen has the soft keys of options
and following:
D [INIT] Initialize all settings
All settings will be initialized to the default values.
714
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.2.4 Pressing Return key [<] or [UPDATE] soft key will analyze edited
Error Messages and LADDER program and try to generate executable objects. If some error
is found at analyzing phase, you will see error message on screen, and
Their Solutions according to kind of error, cursor may jump to the place where the error
is found.
Following table shows error messages expected at LADDER analysis and
their meanings and solutions.
Error message Meaning and solution
Meaning:
CALL/CALLU is used in wrong place.
CALL/CALLU IN
BAD LEVEL. Solution:
CALL/CALLU must be used in Level 2 or in subpro-
grams. Do not use any other places.
Meaning:
COME is found between JMP and JMPE, and COM
and corresponding COME have different JMP/JMPE
status.
COME IN JMP. Solution:
COME and corresponding COM must have same
JMP/JMPE status. Review COM range and JMP
range, to adjust not to overlap with each other: it is
possible that one range includes the other completely.
Meaning:
There is no COM that corresponds to this COME.
COME WITHOUT
COM. Solution:
If COM is missing, add it in proper position. If the
COME is unnecessary, remove it.
DUPLICATE Meaning:
END1. Multiple END1, END2, or END3 are found.
DUPLICATE Solution:
END2. Remove extra END1, END2, or END3.
DUPLICATE
END3.
Meaning:
Same Laddress is used in plural LBLs.
DUPLICATE LBL. Solution:
If some of these LBLs are unnecessary, remove them.
If all of these LBLs is necessary, assign other Lad-
dresses to them to make all LBLs unique.
Meaning:
Same Paddress is used in plural SPs.
DUPLICATE P AD- Solution:
DRESS. If some of these SPs are unnecessary, remove them.
If all of these SPs is necessary, assign other Pad-
dresses to them to make all SPs unique.
715
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
Meaning:
Plural TMRs, CTRs, TMRBs, DIFUs, or DIFDs have
DUPLICATE TMR the same number as their parameter.
NUMBER.(WARN- This is warning.
ING)
DUPLICATE CTR Solution:
NUMBER.(WARN- If some of them are unnecessary, remove them. If all
ING) of them are necessary, assign other number to pa-
DUPLICATE rameter of them to make them unique.
TMRB NUM- If two or more instructions with same parameter
BER.(WARNING) number will never be active simultaneously at one
DUPLICATE DIFU/ time, the LADDER program has a possibility to work
DIFD NUM- correctly, however, it is recommended from safety
BER.(WARNING) and maintenance points of view, that all these
instructions should have different parameter num-
ber with each other.
Meaning:
END IN COM. END, END1, END2, or END3 is found between COM
END1 IN COM. and COME.
END2 IN COM. Solution:
END3 IN COM. If COME is missing, add it in proper position. If COM
is unnecessary, remove it.
Meaning:
END IN JMP. END, END1, END2, or END3 is found between JMP
END1 IN JMP. and JMPE.
END2 IN JMP. Solution:
END3 IN JMP. If JMPE is missing, add it in proper position. If JMP is
unnecessary, remove it.
Meaning:
END is found between SP and SPE.
END IN SP. Solution:
If SPE is missing, add it in proper position. If END is
in wrong place, move it to proper position.
716
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
Meaning:
JMP and corresponding JMPE have different COM/
COME status.
JMP/JMPE TO Solution:
BAD COM LEVEL. JMP and corresponding JMPE must have same
COM/COME status. Review JMP range and COM
range, to adjust not to overlap with each other: it is
possible that one range includes the other completely.
Meaning:
JMP and its destination differ in COM/COME status.
JMPB OVER COM Solution:
BORDER. JMPB and its destination must have same COM/
COME status. Review range of JMPB and COM
range, to adjust not to overlap with each other: it is
possible that one range includes the other completely.
Meaning:
JMPB jumps to different program level.
JMPB OVER LEV- Solution:
EL. JMPB can only jump to the same program level, or
within a subprogram. If the JMPB is unnecessary,
remove it. If LBL for the JMPB is missing, add it in
proper position. If it should be JMPC, correct it.
Meaning:
JMPC is used in other than subprogram.
JMPC IN BAD Solution:
LEVEL. JMPC is used to jump from a subprogram to level 2.
If the JMPC is unnecessary, remove it. If it should be
JMPB or JMP, correct it.
Meaning:
JMPC jumps to LBL between COM and COME.
Solution:
JMPC INTO COM. LBL for JMPC must be located out of any COM and
COME pair. If the JMPC is unnecessary, remove it. If
the LBL is located wrong, move it to correct position.
If the Laddress of JMPC is wrong, correct it.
Meaning:
JMPE is found between COM and COME, and JMP
and corresponding JMPE have different COM/COME
status.
JMPE IN COM. Solution:
JMPE and corresponding JMP must have same
COM/COME status. Review JMP range and COM
range, to adjust not to overlap with each other: it is
possible that one range includes the other completely.
Meaning:
There is no JMP that corresponds to this JMPE.
JMPE WITHOUT
JMP. Solution:
If JMP is missing, add it in proper position. If the
JMPE is unnecessary, remove it.
717
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
Meaning:
LADDER PRO- LADDER program may be broken by some reason.
GRAM IS BRO- Solution:
KEN. This LADDER program must be all cleared once, and
remake LADDER program.
Meaning:
Can not find proper LBL for JMPB.
LBL FOR JMPB
NOT FOUND. Solution:
If JMPB is unnecessary, remove it. If LBL is missing,
add it in proper position.
Meaning:
Destination of JMPC is not level 2.
Solution:
LBL FOR JMPC IN JMPC is used to jump from a subprogram to level 2.
BAD LEVEL If the JMPC is unnecessary, remove it. If another LBL
of same Laddress that the JMPC is intended to jump
exists in the subprogram, assign different Laddress
to these two LBLs. If it should be JMPB or JMP, cor-
rect it.
Meaning:
Can not find proper LBL for JMPC.
LBL FOR JMPC Solution:
NOT FOUND. If JMPC is unnecessary, remove it. If LBL is missing,
add it in proper position: JMPC jumps into level 2. If it
should be JMPB or JMP, correct it.
Meaning:
There is no COME that corresponds to this COM.
MISSING COME
FOR THIS COM. Solution:
If COME is missing, add it in proper position. If COM
is unnecessary, remove it.
Meaning:
There is no JMPE that corresponds to this JMP.
MISSING JMPE
FOR THIS JMP. Solution:
If JMPE is missing, add it in proper position. If JMP is
unnecessary, remove it.
Meaning:
There is no SPE that corresponds to this SP.
MISSING SPE
FOR THIS SP. Solution:
If SPE is missing, add it in proper position. If SP is
unnecessary, remove it.
NO END. Meaning:
NO END1. END, END1, END2, or END3 is not found.
NO END2. Solution:
NO END3. Add END, END1, END2, or END3 in proper position.
Meaning:
Subprogram that is called by CALL/CALLU is not
NO SUCH SUB- found.
PROGRAM. Solution:
If it calls wrong subprogram, correct it. If the subpro-
gram is missing, create it.
718
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
Meaning:
Write coil is necessary, but is not found.
NO WRITE COIL.
Solution:
Add proper write coil.
Meaning:
SP is found in wrong place.
SP IN BAD LEV-
EL. Solution:
SP can be used at top of a subprogram. Correct it so
that no SP exists in other place.
Meaning:
SP is found in level 3.
SP IN LEVEL3. Solution:
If END3 is located wrong, move it to correct position.
If the SP is unnecessary, remove it.
Meaning:
SP or SPE is found between COM and COME.
SP/SPE IN COM. Solution:
If COME is missing, add it in proper position. If the
COM is unnecessary, remove it.
Meaning:
SP or SPE is found between JMP and JMPE.
SP/SPE IN JMP. Solution:
If JMPE is missing, add it in proper position. If the
JMP is unnecessary, remove it.
Meaning:
There is no SP that corresponds to this SPE.
SPE WITHOUT
SP. Solution:
If SP is missing, add it in proper position. If the SPE is
unnecessary, remove it.
Meaning:
There are too many LBLs.
TOO MANY LBL. Solution:
Remove unnecessary LBLs. If this error still occurs,
adjust the construction of program to use less LBLs.
Meaning:
Unsupported instruction for this PMC model is found.
UNAVAILABLE Solution:
INSTRUCTION. Confirm that this LADDER program is correct one. If
this program is correct one, all these unsupported
instructions have to be removed.
719
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.2.5 If the following functional instructions are used with their ACT
How to Correct conditions (or RST conditions) are kept ON improperly, an attempt to
stop LADDER may take much time, or may not stop it actually.
LADDER Program that
Never Stops D WINDR / WINDW
In case of window function of highspeed response, this will not
cause the problem even if its ACT is stuck to ON.
D EXIN
D AXCTL
This will cause the problem also when RST condition is stuck to
ON.
D JMPB
When it jumps to the LBL before JMPB itself.
D JMPC
When it jumps to the LBL which leads to reach the same JMPC
again.
When LADDER can not stop, any operation to modify LADDER
program may take much time to complete, or may not complete.
Processes such as followings will be affected by this problem:
1. Stop LADDER program by [STOP] soft key.
2. Read new LADDER program from memory card or other devices
at I/O screen while current LADDER program is running.
3. Update running LADDER program at LADDER Diagram Editor
screen, by exiting the screen with return key [<], or by [UPDATE]
soft key.
To avoid this problem, find abovementioned functional instructions
whose ACT condition (or RST condition) is kept ON, and follow
instructions below to correct LADDER program to use these functional
instructions properly:
1. Confirm that machine is in safe condition, and then turn off
CNCs power.
2. Turn on CNCs power, with CAN and Z keys keeping held
down until CNCs finishes starting up completely, not to run
LADDER program automatically.
3. Go to LADDER Diagram Editor screen, find the instruction that
cause the trouble, modify logic around the instruction, so that
ACT condition (or RST condition) will once turn OFF after every
time the process of the instruction completes. In case that JMPB
or JMPC repeats same process, examine the condition to jump,
and reconstruct the structure of LADDER if necessary.
4. Write LADDER program into flash ROM at I/O screen.
5. Run LADDER program.
If the problem still remains after correction, there may be another
functional instruction that causes the trouble in the same way. Repeat
finding and correcting them in the same way, until the trouble is resolved.
720
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.3 At Net Editor screen, you can create new net, and modify existing net.
When [ZOOM] soft key is used to reach Net Editor screen, this screen is
Net Editor Screen in Modify Mode to modify existing net. When [NEW NET] soft key
is used, this screen is in New Mode to create new net from nothing.
Following operations are available at this screen:
D Place new contacts and coils bit address + [ ], [ ], etc.
D Change type of contacts and coils [ ], [ ], etc.
D Place new functional instructions [FUNC]
D Change type of functional instructions [FUNC]
D Erase contacts, coils, and functional instructions [ ]
D Draw/erase connecting lines [ ], [ ], [ ]
D Edit data table of functional instructions [DATA TABLE]
D Insert line/column [INSERT LINE], [INSERT COLUMN],
[APPEND COLUMN]
D Change address of contacts and coils bit address + INPUT key
D Change parameters of functional instructions number or byte
address + INPUT key
D Abandon modifications [RESTORE]
721
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.3.1
Screen Structures
722
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.3.2
Operations
723
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
724
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
725
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
726
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.3.3 Pressing [FUNC] soft key at Net Editor screen reaches Functional
Functional Instruction Instruction List screen at which you choose a functional instruction to be
entered from list of all available functional instructions.
List Screen
727
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.3.4 At Functional Instruction Data Table Editor screen, you can edit the
Functional Instruction contents of data table that belongs to some functional instructions.
To reach this screen, at Net Editor screen, press [DATA TABLE] soft key
Data Table Editor that is displayed when the cursor is on the following functional
Screen instructions which have a data table.
D Functional Instruction COD (SUB7)
D Functional Instruction CODB (SUB27)
Following edit operations are available at this screen.
D Change the data table value. number + INPUT key
D Change the data length. [BYTE], [WORD], [D.WORD]
(These soft keys can be operated
only at Functional Instruction
Data Table Editor screen of
Functional Instruction CODB.)
D Change the number of data. [COUNT]
D Initialize all of data [INIT]
728
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
729
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
NOTE
In the functional instruction COD (SUB7), the data type of
the data table can dynamically be changed either BCD2 or
BCD4 by BYT which is one of input condition. So the data
type of the data table is decided when the functional
instruction COD is executed. Decide the display data digit
according to the status of BYT by pressing either [BCD2]
soft key or [BCD4] soft key.
After turning the power on, the default displaying data type
is BCD4 digits. But if you change data type by pressing
[BCD2] soft key or [BCD4] soft key, the data type is kept until
you change again.
The data table of functional instruction COD is stored in the
memory as BCD4 digits type.
If you change the data type from BCD4 digits to BCD2 digits,
the data is displayed without higher 2digits. But the data
of higher 2digits is kept in the memory. So you return the
data type from BCD2 digits to BCD4 digits, the former BCD4
digits is recovered.
The input range of the data obeys the current data type.
NOTE
On functional instruction CODB, the data type is decided by
the first parameter of it.
So, if you change data type, the first parameter is changed
too.
When you added functional instruction CODB to ladder
program, the default data type is BYTE.
730
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
NOTE
In case of functional instruction COD, the number of data is
decided by the first parameter of it.
In case of functional instruction CODB, the number of data
is decided by the second parameter of it.
If you change the number of data, these parameters are
changed too.
731
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.3.5 Return key [<] or [NEXT NET] soft key analyzes current editing net, and
Error Messages and produce executable object of the net: new object of LADDER program is
not yet effective at this time. If some error is found through the analysis,
Their Solutions an error message is displayed, and cursor may indicate where the error is
detected, according to type of error.
Following table shows error messages expected at net analysis and their
meanings and solutions.
Error message Meaning and solution
Meaning:
When a net contains more than one coil, the coils
ALL COIL MUST should not have any contact beside them that affects
HAVE SAME IN- only one of the coils.
PUT Solution:
Left terminals of all coils in a net must be connected to
same input point.
Meaning:
Coil is located in bad position.
BAD COIL LOCA- Solution:
TION Coil can be located only at rightmost column. Any coil
located at other place must be erased once, and
place necessary coils in correct place.
Meaning:
Some condition input of functional instruction is not
connected correctly.
Solution:
BAD CONDITION Check the connection of all condition inputs of the
functional instruction. Especially for functional instruc-
tion that has more than one condition input, check if
connections to condition inputs interfere with each
other.
Meaning:
FUNCTION AF- Functional instruction is used in output section of net:
TER DI- refer to next section for detail.
VERGENCE IS Solution:
FORBIDDEN Functional instruction can not be used in output sec-
tion of net. If necessary, divide the net into plural nets.
Meaning:
Net is too complicated to analyze.
NET IS TOO COM- Solution:
PLICATED Examine every connection, and find unnecessarily
bending connection, or coils that are connected to
different point.
Meaning:
There is signal connected to nowhere.
NO CONNECTION Solution:
Find gap that is expected to be connected, and cor-
rect the connection.
732
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
Meaning:
No signal is provided for logical operation.
NO INPUT FOR Solution:
OPERATION Coil without input, or coil connected to output of func-
tional instruction that has no output, causes this error.
If coil is not necessary, remove it. If necessary,
connect it to meaningful input.
Meaning:
No logical operation with functional instruction output
OPERATION AF- is permitted, except write coils.
TER FUNCTION Solution:
IS FORBIDDEN Output of functional instruction can not be connected
to a contact, nor to conjunction with other signal that
will be implemented by logicalor operation.
Meaning:
Relay with blank address, or blank parameter of func-
PARAMETER IS tional instruction, is found.
NOT SUPPLIED Solution:
Enter all of the relay addresses, and parameters of
functional instructions.
Meaning:
Some contacts are connected with short circuit.
SHORT CIRCUIT Solution:
Find contact with terminals connected by short circuit,
and correct connections.
Meaning:
TOO MANY Too many functional instructions are in one net.
FUNCTIONS IN Solution:
NET Only one functional instruction is allowed to constitute
a net. If necessary, divide the net into plural nets.
Meaning:
WRITE COIL EX- Write coil is expected, but not found.
PECTED Solution:
Add proper write coil to the net.
733
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
734
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.4 Program List Viewer screen shows the list of subprogram of the Ladder.
You can select one subprogram then the content of program is displayed.
PROGRAM LIST This screen also shows the detail information (program type, symbol
VIEWER SCREEN name, comment, program size, program net count, the start net number
in all of the program and protect condition) for subprogram.
To reach this screen, at LADDER Diagram Monitor screen, press [LIST]
soft key.
Following operations are available at this screen.
D Show the content of selected program. [ZOOM]
(Go to LADDER Diagram Monitor screen)
D Search for program. [SEARCH]
D Go to Program List Setting screen. [LIST SETING]
You can select Detail viewer format or Brief viewer format on Program
List Viewer screen.
The default viewer format is Detail viewer format.
See Setting screen for Program List Viewer screen section for more
detail.
735
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.4.1
Screen Structures (1) Program List Viewer screen (Detail)
Program List Viewer screen (Detail) shows the detail information that
are program size, program net count and so on for program.
NOTE
Displaying L requires Character registration function of
CNC software, which is supported by Series F002 version
03 or later. If CNC software does not support it, Ladder
program type is always displayed L.
736
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
NOTE
The displaying icons requires Character registration
function of CNC software, which is supported by Series
F002 version 03 or later. If CNC software does not support
it, the statuses of protection are displayed as follows.
P : Monitoring and editing program are disabled.
R : Monitoring program is enabled.
Editing program is disabled.
Space : Monitoring and editing program are enabled.
737
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
738
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.4.2
Operations
739
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.4.3
Setting Screen
740
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
D SORT BY
Determines whether the programs in the Program List
Viewer/Editor screen are displayed in order of program number,
or symbol name themselves. And When ADDRESS NOTAION
is SYMBOL, this determination is enabled. So if ADDRESS
NOTAION is ADDRESS, the programs are always displayed in
order of program number.
PROGRAM NUMBER (default)
The programs are displayed in order of program number.
SYMBOL
Programs that have a symbol are displayed in order of the
symbol name. Programs without symbols are displayed in
order of program number after programs with the symbols.
PROGRAM, LEVEL1, LEVEL2, and LEVEL3 are out of
target of sort.
D PROTECTED PROGRAM
Determines whether protected programs in the Program List
Viewer/Editor screen are displayed or not. On each screen, the
protected program means as follows.
On Program List Viewer screen : the program is protected to
monitor.
On Program List Editor screen : the program is protected to
edit.
SHOW (default)
The protected programs are displayed in the Program List
Viewer/Editor screen.
HIDE
The protected programs are not displayed in the Program List
Viewer/Editor screen.
D FRAME NET IN SUBPROGRAM MODE
Frame net means functional instruction END1, 2 and 3 on
LEVEL 1,2,3, and functional instruction SP and SPE on
subprogram.
It determines whether the frame net in the LADDER Diagram
Monitor/Editor screen are displayed or not, when you selected the
program and press [ZOOM] soft key in the Program List
Viewer/Editor screen.
SHOW (default)
The frame net is displayed in the LADDER Diagram
Monitor/Editor screen.
HIDE
The frame net is not displayed in the LADDER Diagram
Monitor/Editor screen.
741
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.5 At Program List Editor screen you can create new program and delete a
program in addition to the function of Program List Viewer screen.
PROGRAM LIST To reach this screen, press [LIST] soft key at LADDER Diagram Editor
EDITOR SCREEN screen.
Following operations are available at Program List Editor screen. For
more detail of these operations, refer to the descriptions of each key to
operate.
D Create new program [NEW]
D Delete a program [DELETE]
You can select Detail viewer format or Brief viewer format on Program
List Editor screen.
The default viewer format is Detail viewer format.
See Setting screen for Program List Viewer screen section for more
detail.
742
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.5.1
Screen Structures (1) Program List Editor screen(Detail)
Program List Editor screen (Detail) shows the detail information that
are program size, program net count and so on for program.
743
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
744
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.5.2
Operations
745
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.5.3 Screen settings of Program List Editor screen are basically same with
Setting Screen them of Program List Viewer screen. See Screen settings for Program
List Viewer screen section for the detail.
746
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.6 On Collective Monitor screen, only the necessary ladder nets can be
displayed by specifying ladder nets.
COLLECTIVE Collective Monitor screen displayed by pressing soft key [ZOOM] after
MONITOR FUNCTION moving the cursor to COLLECT program position on Program List
Viewer screen, or Press soft key [SWITCH] on Ladder Diagram Monitor
screen.
747
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.6.1
Structures of Title information(REMARKS) Collective monitor mode Number of picked up nets
Collective Monitor
Screen
748
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
6.6.2
Operations of
Soft keys of Collective Monitor screen of PMCNB6
Collective Monitor
Main soft keys of Collective Monitor screen
Screen Initialization of Collective
Program List Jump to the ladder diagram net Monitor screen
Pick up a ladder Switches to Ladder Delete a net Display data table Screen setting
diagram net Diagram Monitor screen
749
6. LADDER DIAGRAM MONITOR
AND EDITOR PMCNB6 MANIPULATION B61863E/14
6.6.3 The operation for picking up ladder nets which you want to monitor on
How to Pick Up a Collective Monitor screen is as follows.
Ladder Diagram Net (1) Specification of ladder nets on Collective Monitor screen
a) Specify the address by key input
1. Enter the address which you want to monitor. (ex. Y0.0)
2. Press [PICKUP] soft key.
3. The net with the coil, which you specified by 1, is picked up
to the top of screen.
b) Specification of address from the ladder net on the Collective
Monitor screen
1. Move the cursor to a relay on the ladder net which uses address
that you want to monitor. (ex. Y19.3)
2. Press [PICKUP] soft key.
3. The net with the coil, which uses the address that you specified
by 1, is picked up to the top of screen and the cursor moves
to the specified coil position.
750
6. LADDER DIAGRAM MONITOR
B61863E/14 PMCNB6 MANIPULATION AND EDITOR
1. Move the cursor to a relay on the ladder net which uses address that
you want to monitor. (ex. R0.5)
2. Press [SEARCH MENU] soft key.
3. Switches Softleys display. And then, press [PICKUP] soft key.
4. The mark is displayed to the left of net. When you switshed to
Collective Monitor screen, the net with the coil, which uses the address
that you specified by 1, is picked up to the top of screen.
751
7. PASSWORD PROTECTION PMCNB6 MANIPULATION B61863E/14
7 PASSWORD PROTECTION
752
B61863E/14 PMCNB6 MANIPULATION 7. PASSWORD PROTECTION
7.1
SPECIFICATIONS OF (a) Password type
PASSWORD There are two password types.
One is the Rpassword to protect against reading. Another is the
RWpassword to protect against reading and writing.
(b) Available characters for password
The string that satisfies following condition can be set as the
password.
D The string length is less than 8 characters.
D Only capital letters and numerals.
(c) Screens protected by password
The following screen is protected by the password.
D Ladder diagram monitor screen
D Ladder diagram editor screen
(d) Indicator of protection status
The status of protected program is displayed in the Program List
Viewer screen and the Program List Editor screen. See program list
screen (detail) for Program List Viewer screen section for more
detail.
(e) How to unlock password protection
Before a screen protected by the password is displayed, the password
is inquired. The password is able to be unlocked when the strings of
password are entered.
NOTE
1 Once the password has been unlocked, the system never
inquires the password except turning the power on again or
replacing the ladder program by I/O function.
2 404A/04 can not display LADDER program that is protected
by Password function. To view a protected LADDER
program, you need FANUC LADDERII, LADDER Editing
Package, or upgrade version to 404A/05 or later. 404A/05
or later will ask for password when necessary.
3 When turning the power on pressing both X key and O
key, the ladder program will be cleared regardless of
password protection.
753
7. PASSWORD PROTECTION PMCNB6 MANIPULATION B61863E/14
7.2
PASSWORD AND
SWITCHING SCREEN
7.2.1 The LADDER Diagram Monitor screen and the Ladder Diagram Editor
Using One of screen are protected by the password.
RPassword and
RWPassword
NOTE
When [PMCLAD] soft key is pressed at first time after CNC
power cycle, Program List Viewer screen is displayed. Then
use [ZOOM] soft key to select subprogram to reach the
LADDER Diagram Monitor screen. The message ENTER
PASSWORD TO READ is displayed and the password is
inquired. If you enter Rpassword or RWpassword, the
subprogram that you have selected appears on the screen.
Once you choose subprogram, pressing [PMCLAD] soft key
will directly reach the LADDER Diagram Monitor screen.
754
B61863E/14 PMCNB6 MANIPULATION 7. PASSWORD PROTECTION
7.2.2 The LADDER Diagram Monitor screen and the LADDER Diagram
Using Both of Display screen are protected by the following password.
RPassword and D The LADDER Diagram Monitor screen: Rpassword or
RWPassword RWpassword
D The LADDER Diagram Display screen: RWpassword
NOTE
1 When [PMCLAD] soft key is pressed at first time after CNC
power cycle, Program List Viewer screen is displayed. Then
use [ZOOM] soft key to select subprogram to reach the
LADDER Diagram Monitor screen. The message ENTER
PASSWORD TO READ is displayed and the password is
inquired. If you enter Rpassword or RWpassword, the
subprogram that you have selected appears on the screen.
Once you choose subprogram, pressing [PMCLAD] soft key
will directly reach the LADDER Diagram Monitor screen.
2 When [EDIT] soft key is pressed in the LADDER Diagram
Monitor screen, the message ENTER PASSWORD TO
WRITE is displayed and the password is inquired. If you
enter RWpassword, the LADDEER Diagram Editor screen
is displayed. However, if you have already entered
RWpassword in program list viewer screen, the password
is never inquired in the LADDER Diagram Monitor screen.
755
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
756
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
8.1 When the [I/O] soft key on the PMC main menu is pressed, the following
screen appears.
I/O SCREEN
757
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
Other:
UNKNOWN FILE FORMAT
When you proceed to read a sequence program or a C language program,
the ladder program stops automatically. When you proceed to read PMC
parameters, new PMC parameters will be stored even if the ladder
program is running.
WARNING
1 If a Ladder program or a C language program is input while
a Ladder program is being executed, the execution of the
Ladder program and the C language program stop
automatically. You have to pay special attention to stop
Ladder program. Stopping Ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you stop Ladder program.
2 At stopping Ladder program, it may take rather long time to
completely stop it in some cases according to the activity of
Ladder program. If Ladder takes too long time to stop, or
never stop, correct Ladder program, following instructions
in section II. PMC OPERATION (CRT/MDI) 7.6.2.5 How to
correct LADDER program that never stops.
3 If the PMC parameters are input while a Ladder program is
being executed, You have to special attention to input it.
Because changed PMC parameters, may cause
unexpected effect to Ladder. You have to make it sure that
PMC parameters are not effect to Ladder when you input
PMC parameters.
758
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
NOTE
1 The [I/O] soft key is displayed by setting bit 1 of keep relay
K900 to 1.
2 For an explanation of error messages on I/O screen, see
section 12.1.9, I/O screen Error Messages.
759
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
8.2
OUTPUTTING TO
AND INPUTTING
FROM MEMORY
CARDS
Explanation of options
WRITE: Outputs data from the PMC to a memory card.
(Programs in C cannot be output.)
READ: Inputs data from a memory card to the PMC.
COMPARE: Compares the sequence programs on the PMC with those
on a memory card.
(Programs in C cannot be compared.)
DELETE: Deletes files from a memory card.
(Files on a flash card cannot be deleted.)
FORMAT: Formats a memory card.
CAUTION
When FORMAT is selected and executed, all data in the
memory card is lost. Be careful when executing this
function.
760
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
When you read a file from a memory card, one of following messages
appears and whether to operate the important thing is confirmed.
Sequence program:
THE FILE CONTAINS LADDER PROGRAM. PROCEED TO
READ IT?
C language program:
THE FILE CONTAINS C LANGUAGE PROGRAM. PROCEED
TO READ IT?
PMC parameters:
THE FILE CONTAINS PMC PARAMETER. PROCEED TO
READ IT?
Other:
UNKNOWN FILE FORMAT
When you proceed to read a sequence program or a C language program,
the ladder program stops automatically. When you proceed to read PMC
parameters, new PMC parameters will be stored even if the ladder
program is running.
WARNING
1 If a Ladder program or a C language program is input while
a Ladder program is being executed, the execution of the
Ladder program and the C language program stop
automatically. You have to pay special attention to stop
Ladder program. Stopping Ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you stop Ladder program.
2 At stopping Ladder program, it may take rather long time to
completely stop it in some cases according to the activity of
Ladder program. If Ladder takes too long time to stop, or
never stop, correct Ladder program, following instructions
in section II. PMC OPERATION (CRT/MDI) 7.6.2.5 How to
correct LADDER program that never stops.
3 If the PMC parameters are input while a Ladder program is
being executed, You have to special attention to input it.
Because changed PMC parameters, may cause
unexpected effect to Ladder. You have to make it sure that
PMC parameters are not effect to Ladder when you input
PMC parameters.
4 Set bit 1 of keep relay K900 to 0 when the machine tool is
shipped.
761
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
D KIND OF DATA
KIND OF DATA is displayed only when WRITE is selected for
FUNCTION.
Set the type of data to be output by moving the cursor horizontally to
that type or by clicking the corresponding soft key.
Soft keys displayed when the question selection cursor is positioned to
KIND OF DATA
Explanation of options
LADDER: Outputs sequence programs only.
PARAMETER: Outputs PMC parameters.
D FILE NO.
FILE NO. is displayed only when READ, COMPARE, or
DELETE is selected for FUNCTION.
Enter the file number in the edit box.
D FILE NAME
FILE NAME is displayed when WRITE, READ, COMPARE,
or DELETE is selected for FUNCTION.
Enter the file name in the edit box.
When READ, COMPARE, or DELETE is selected for
FUNCTION, the file name corresponding to the file number entered
in FILE NO. is displayed automatically.
The file name must be in MSDOS format: a file name of up to eight
characters followed by an extension of up to three characters.
When WRITE is selected for FUNCTION and the file name is not
entered, the following names are automatically assumed.
DATA KIND File name
LADDER PMCBN6.LAD
PARAM PMCNB6.PRM
CAUTION
When both FILE NO. and FILE NAME are displayed at
the same time, and a value is entered for FILE NO. and
another file name is entered in FILE NAME, the value
entered in FILE NO. is erased and the file name entered
in FILE NAME becomes effective.
762
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
NOTE
For an explanation of supported flash memory cards, see
(1) Writing to flash memory cards in Section III.7.3.4.
763
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
8.3 When MEMORY CARD is selected in DEVICE, pressing the [LIST] soft
key displays the following screen:
MEMORY CARD LIST
SCREEN
If a memory card holding files is in the slot, the contents of the memory
card are displayed as shown in the above.
NOTE
Up to 128 files can be displayed on this screen. When 129
or more files are saved in the memory card, the 129th and
subsequent files are ignored.
When a file is selected on this screen, the screen display can be returned
to the previous screen. To select a file, place the cursor at the name of the
file, then press either the [SELECT] soft key or the INPUT key. After the
key entry, the screen display switches to the previous screen
automatically. In this case, the cursor is positioned at READ on the
FUNCTION menu, and the number and name of the file selected on the
list screen are indicated in the FILE NO. and FILE NAME fields,
respectively. A display example is shown below.
764
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
To return the screen display to the previous screen without selecting a file,
press the return key.
When the memory card is replaced with another card while the list screen
is being displayed, the displayed information is not updated
automatically. In this case, press the [REFRESH] soft key. The contents
of the new memory card are then displayed.
Explanation of soft keys
[SELECT]: Selects a file, and returns the screen display to the
previous screen.
[REFRESH]: Redisplays the contents of the memory card.
765
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
8.4
OUTPUTTING TO
AND INPUTTING
FROM FLASH ROM
When FLASH ROM is selected for DEVICE, output to and input from
flash ROM are enabled.
NOTE
The above screen is displayed when the C language board
is installed. When the C language board is not installed,
only LADDER is indicated on the menu of the KIND OF
DATA.
D FUNCTION
The available data input/output commands are displayed. Select the
desired command by moving the cursor horizontally to that command
or select it with the corresponding soft key.
Soft keys displayed when the cursor is positioned to FUNCTION
Explanation of options
WRITE: Outputs sequence programs from the PMC to flash
ROM.
READ: Inputs sequence programs from flash ROM to the PMC.
COMPARE: Compares the sequence programs on the PMC with those
on flash ROM.
When you read a file from a flash ROM, one of following messages
appears and whether to operate the important thing is confirmed.
Sequence program:
THE FILE CONTAINS LADDER PROGRAM. PROCEED TO
READ IT?
766
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
C language program:
THE FILE CONTAINS C LANGUAGE PROGRAM. PROCEED
TO READ IT?
PMC parameters:
THE FILE CONTAINS PMC PARAMETER. PROCEED TO
READ IT?
Other:
UNKNOWN FILE FORMAT
When you proceed to read a sequence program or a C language program,
the ladder program stops automatically. When you proceed to read PMC
parameters, new PMC parameters will be stored even if the ladder
program is running.
WARNING
1 If a Ladder program or a C language program is input while
a Ladder program is being executed, the execution of the
Ladder program and the C language program stop
automatically. You have to pay special attention to stop
Ladder program. Stopping Ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you stop Ladder program.
2 At stopping Ladder program, it may take rather long time to
completely stop it in some cases according to the activity of
Ladder program. If Ladder takes too long time to stop, or
never stop, correct Ladder program, following instructions
in section II. PMC OPERATION (CRT/MDI) 7.6.2.5 How to
correct LADDER program that never stops.
3 Set bit 1 of keep relay K900 to 0 when the machine tool is
shipped.
D KIND OF DATA
Displayed only when WRITE is selected in FUNCTION. Set the type
of the data you want to output by moving the cursor horizontally or by
using a soft key. C LANGUAGE appears only when the C language
board is installed.
Soft keys displayed when the item select cursor is placed at KIND OF
DATA
Explanation
LADDER: Outputs sequence programs only.
C LANGUAGE: Outputs programs in C.
Explanation of soft keys
[EXEC]: Executes the function selected for FUNCTION.
During execution, the soft key disappears and the
[CANCEL] soft key appears to the right of the key.
767
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
NOTE
When a program is written, it may take much time to initialize
the flash ROM. During initialization, INITIALIZING FLASH
ROM appears in the STATUS field in the lower part of the
screen.
768
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
8.5
OUTPUTTING TO
AND INPUTTING
FROM FLOPPY
Explanation of options
WRITE Outputs data from the PMC to a floppy disk or handy
file.
READ Inputs data from a floppy disk or handy file to the
PMC.
COMPARE Compares the sequence program on the PMC with
those on a floppy disk or handy file.
DELETE Delete a file from a floppy disk or handy file.
DELETE ALL Deletes all files from a floppy disk or handy file.
CAUTION
DELETE ALL command is not use for following floppy
cassette.
FLOPPY CASSETTE ADAPTER A13B0131B001
When you read a file from a floppy cassete or a handy file, one of
following messages appears and whether to operate the important thing
is confirmed.
769
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
Sequence program:
THE FILE CONTAINS LADDER PROGRAM. PROCEED TO
READ IT?
C language program:
THE FILE CONTAINS C LANGUAGE PROGRAM. PROCEED
TO READ IT?
PMC parameters:
THE FILE CONTAINS PMC PARAMETER. PROCEED TO
READ IT?
Other:
UNKNOWN FILE FORMAT
When you proceed to read a sequence program or a C language program,
the ladder program stops automatically. When you proceed to read PMC
parameters, new PMC parameters will be stored even if the ladder
program is running.
WARNING
1 If a Ladder program or a C language program is input while
a Ladder program is being executed, the execution of the
Ladder program and the C language program stop
automatically. You have to pay special attention to stop
Ladder program. Stopping Ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you stop Ladder program.
2 At stopping Ladder program, it may take rather long time to
completely stop it in some cases according to the activity of
Ladder program. If Ladder takes too long time to stop, or
never stop, correct Ladder program, following instructions
in section II. PMC OPERATION (CRT/MDI) 7.6.2.5 How to
correct LADDER program that never stops.
3 If the PMC parameters are input while a Ladder program is
being executed, You have to special attention to input it.
Because changed PMC parameters, may cause
unexpected effect to Ladder. You have to make it sure that
PMC parameters are not effect to Ladder when you input
PMC parameters.
4 Set bit 1 of keep relay K900 to 0 when the machine tool is
shipped.
770
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
D KIND OF DATA
KIND OF DATA is displayed only when WRITE is selected for
FUNCTION.
Set the type of data to be output by moving the cursor horizontally to
that command or select it with the corresponding soft key.
Soft keys displayed when the question selection cursor is
positioned to KIND OF DATA
Explanation of options
LADDER Outputs sequence program.
PARAMETER Outputs PMC parameters.
D FILE NO.
FILE NO. is displayed only when READ, COMPARE, or
DELETE is selected for FUNCTION.
Enter the file number in the edit box.
D FILE NANE
FILE NAME is displayed when WRITE, READ,
COMPARE, or DELETE is selected for FUNCTION.
Enter the file name in the edit box.
When READ, COMPARE, or DELETE is selected for
FUNCTION, the file name corresponding to the file number entered
in FILE NO. is displayed automatically.
When you output to or input from floppy disk formatted in DOS
format, the file name must be in MSDOS format: a file name of up
to eight characters followed by an extension of up to three characters.
When you output to or input from floppy disk formatted in FANUC
format, a file name of up to 17 characters will be input.
When WRITE is selected for FUNCTION and the file name is not
entered, the following names are automatically assumed.
DATA KIND File name
LADDER PMCNB6.LAD
PARAM PMCNB6.PRM
CAUTION
1 When both FILE NO. and FILE NAME are displayed at
the same time, and a value is entered for FILE NO. and
another file name is entered in FILE NAME, the value
entered in FILE NO. is erased and the file name entered
in FILE NAME becomes effective.
2 Specifying the same name as that of an existing file results
in an error.
771
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
772
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
8.6 When FLOPPY is selected for DEVICE, pressing the [LIST] soft key
display the following screen.
FLOPPY LIST
SCREEN
The contents of the floppy cassettes or the handy files are displayed. When
a file is selected on this screen, the screen display can be returned to the
previous screen. To select the file, place the cursor at the name of the file,
then press either the [SELECT] soft key or the INPUT key. After the key
entry, the screen display switches to the previous screen automatically. In
this case, the cursor is positioned at READ on the FUNCTION menu,
and the number and name of the file selected on the list screen are
indicated in the FILE NO. and FILE NAME fields, respectively.
To return the screen display to the previous screen without selecting a file,
press the return key.
When the floppy cassette or the handy file is replaced with another one
while the list screen is being displayed, the displayed information is not
updated automatically. In this case, press the [REFRESH] soft key. The
contents are then displayed.
NOTE
Up to 128 files can be displayed on this screen. When 129
or more files are saved, the 129th and subsequent files are
ignored.
773
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
8.7
OUTPUTTING TO
AND INPUTTING
FROM OTHER
INPUT/OUTPUT
DEVICES
Explanation of options
WRITE Outputs data from the PMC to other input/output device.
READ Inputs data from other input/output device to the PMC.
COMPARE Compares the sequence program on the PMC with those
on other input/output device.
When you read a file from a I/O device, one of following messages
appears and whether to operate the important thing is confirmed.
Sequence program:
THE FILE CONTAINS LADDER PROGRAM. PROCEED TO
READ IT?
C language program:
THE FILE CONTAINS C LANGUAGE PROGRAM. PROCEED
TO READ IT?
PMC parameters:
THE FILE CONTAINS PMC PARAMETER. PROCEED TO
READ IT?
Other:
UNKNOWN FILE FORMAT
774
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
WARNING
1 If a Ladder program or a C language program is input while
a Ladder program is being executed, the execution of the
Ladder program and the C language program stop
automatically. You have to pay special attention to stop
Ladder program. Stopping Ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. You have to make it sure
that machine is in proper status, and nobody is near the
machine when you stop Ladder program.
2 At stopping Ladder program, it may take rather long time to
completely stop it in some cases according to the activity of
Ladder program. If Ladder takes too long time to stop, or
never stop, correct Ladder program, following instructions
in section II. PMC OPERATION (CRT/MDI) 7.6.2.5 How to
correct LADDER program that never stops.
3 If the PMC parameters are input while a Ladder program is
being executed, You have to special attention to input it.
Because changed PMC parameters, may cause
unexpected effect to Ladder. You have to make it sure that
PMC parameters are not effect to Ladder when you input
PMC parameters.
4 Set bit 1 of keep relay K900 to 0 when the machine tool is
shipped.
775
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
D KIND OF DATA
KIND OF DATA is displayed only when WRITE is selected for
FUNCTION.
Set the type of data to be output by moving the cursor horizontally to
that command or select it with the corresponding soft key.
Soft keys displayed when the question selection cursor is
positioned to KIND OF DATA
Explanation of options
LADDER Outputs sequence program.
PARAMETER Outputs PMC parameters.
Explanation of soft keys
[EXEC] Executes the function selected for FUNCTION.
During execution, the soft key disappears and the
[CANCEL] soft key appears to the right of the key.
[CANCEL] Cancels the execution of the function. When the
function terminates normally, the soft key
disappears.
[PORT SETING] Replaces the current display with the screen for
setting communication parameters. See Section
12.1.8, Port Setting Screen for details.
776
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
This screen allows the setting of the communication data required for
communication using the RS232C. Communication data can be set for
each of the two types of devices independently of the other.
Selected device type is displayed to DEVICE menu on screen.
Explanation of each question
D CHANNEL
Check that an RS232C cable is connected to the main board of the
control unit. Directly enter the number corresponding to the connected
connector.
1 .......... JD5A
2 .......... JD5B
D BAUDRATE
1200: Sets the baud rate to 1200.
2400: Sets the baud rate to 2400.
4800: Sets the baud rate to 4800.
9600: Sets the baud rate to 9600.
19200: Sets the baud rate to 19200.
D STOP BIT
1 BIT: Sets the number of stop bits to 1.
2 BIT: Sets the number of stop bits to 2.
D WRITE CODE
WRITE CODE is displayed when OTHERS is selected for
DEVICE.
ASCII: Sets the output code to ASCII.
ISO: Sets the output code to ISO.
777
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
NOTE
Parity is always NONE.
CHANNEL 1 1
778
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
8.9 The error messages that may appear on the I/O screen and their meanings
and actions are listed below.
I/O SCREEN ERROR
MESSAGES D Error messages displayed during memory card I/O operation
(PMCNB6) Displayed error
Meaning and action
message
779
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
Displayed error
Meaning and action
message
Displayed error
Meaning and action
message
780
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
B61863E/14 PMCNB6 MANIPULATION PMC PARAMETERS
Displayed error
Meaning and action
message
Displayed error
Meaning and action
message
781
8. WRITING, READING, AND COMPARING
SEQUENCE PROGRAMS AND
PMC PARAMETERS PMCNB6 MANIPULATION B61863E/14
Displayed error
Meaning and action
message
782
9. STARTING AND STOPPING
B61863E/14 PMCNB6 MANIPULATION SEQUENCE PROGRAMS
WARNING
If the sequence program is stopped while the machine is
operating, the machine may behave in an unexpected way.
Before stopping the sequence program, ensure that there
are no people near the machine and that the tool cannot
collide with the workpiece or machine.
Otherwise, there is an extreme risk of death or serious
injury, as well as the likelihood of the tool, workpiece, and
machine being damaged.
783
V. FS16i/18i/21iB
PMCSA1/SB7
MANIPULATION
1. SCREEN OPERATION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FOR PMCSA1/SB7
787
1. SCREEN OPERATION
FOR PMCSA1/SB7 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
1.1 The following points are changed for improvement of operation and
feature for PMCSA1.
SCREEN OPERATION
D Edit functions which is embedded in PMC control software
FOR PMCSA1
D Reinforcement of programmer protection function
1.1.1 When pressing softkey [PMC] in CNC system menu screen, PMC main
Structure of Software menu appears. The following is the summary of PMC screen tree. The
shaded part is the improved screen for PMCSA1.
Key in PMC
788
1. SCREEN OPERATION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FOR PMCSA1/SB7
1.2 The following points are changed for improvement of operation and
feature for PMCSB7.
SCREEN OPERATION
D Edit functions which is embedded in PMC control software
FOR PMCSB7
D Display in Japanese
D Ladder monitor/editing screen
D Integration of Signal waveforms(ANALYS) and trace(TRACE)
D Extension of symbol data to 16 characters
D Reinforcement of programmer protection function
1.2.1 When pressing softkey [PMC] in CNC system menu screen, PMC main
Structure of Software menu appears. The following is the summary of PMC screen tree. The
shaded parts are the improved screens for PMCSB7.
Key in PMC
789
1. SCREEN OPERATION
FOR PMCSA1/SB7 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
790
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
2 SETTING FUNCTION
791
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
[PMCPRM] [KEEPRL]
[SETING]
Keep Relay
[<] (K0K99)
General function
Page Down The screen protection
792
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
2.2
SETTING SCREEN
OF GENERAL
FUNCTION
NOTE
This setting effects some PMC functions.
Please refer to 2.5 Programmer protection function
NOTE
This setting effects some PMC functions.
Please refer to 2.5 Programmer protection function
793
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
This setting effects some PMC functions.
Please refer to 2.5 Programmer protection function
NOTE
This setting effects some PMC functions.
Please refer to 2.5 Programmer protection function
NOTE
This setting effects some PMC functions.
Please refer to 2.5 Programmer protection function
794
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
2.3 This caution screen is displayed for the operators attention when the
operator is going to switch to the setting parameter screen for the
CAUTION SCREEN selectable I/O link assignment function.
OF THE SETTING
PARAMETER FOR
THE SELECTABLE
I/O LINK
ASSIGNMENT
FUNCTION
The caution screen of the setting parameter for the selectable I/O link
assignment function
[YES]: This softkey switches to the setting parameter screen for the
selectable I/O link assignment function.
[PREV]: This softkey switches to the previous setting parameter screen.
[NEXT]: This softkey switches to the next setting parameter screen.
WARNING
If you modify this setting parameter without care, the I/O
assignment data may not match I/O devices and turning on
the power may result in unexpected malfunctions of
machine. So, it is required that the operator of this function
should be an expert who fully understands the sequence
program and the operation of PMC. It is also strongly
recommended to the developer of machine that this setting
screen should be protected from careless use by ordinary
operators after the machine is shipped into the field.
795
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
2.4 You can set the group of optional I/O device that is connected with each
machines.
SETTING
PARAMETER
SCREEN FOR THE
SELECTABLE I/O
LINK ASSIGNMENT
FUNCTION
The setting parameter screen for the selectable I/O link assignment
function
EFFECTIVE GROUP SELECTION (channel 1: K910K911, channel2:
K912K913)
You can select effective I/O group in I/O link assignment data.
1 : I/O group is effective.
0 : I/O group is no effective.
The * mark means that the group is set as the basic part by the
parameter BASIC GROUP COUNT on the system parameter screen.
The value can not be set into this parts.
796
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
2.5
PROGRAMMER
CAUTION
PROTECTION This section contains important information for developers
FUNCTION of application system controlled by PMC. Improperly
implemented application system may increase possibility of
defects in its safety. Careful examinations and
considerations on using and implementing with the
functions explained especially in this section are strongly
required.
797
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
The override function also requires the setting of
OVERRIDE ENABLE in the setting parameters.
CAUTION
Set this setting to NO(0) before shipment of the machine.
If this setting is left as YES(1), the operator may stop
execution of the ladder program by mistake. If you want to
protect this setting, please make a sequence that always
writes 0 in this bit by your ladder. Or please control the
machine to force to translate into safety state by sequence
program using the way described in 3.3 when the ladder
stops.
2.5.2 If you set HIDE PMC PROGRAM to YES, it disables the following
functions which have the sequence program display.
HIDE PMC PROGRAM
(PMCSB7: K900.0, Ladder monitor screen
Ladder editing screen
PMCSA1: K17.0) Title data editing screen
Symbol/comment data editing screen
Message data editing screen
I/O unit address setting screen
Cross reference screen
Clear of sequence program
Clear of PMC parameter
System parameter screen
798
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
NOTE
Even if this parameter is set to YES, these functions do not
be hidden except for Ladder monitor/editing screen if
PROGRAMMER ENABLE is set to YES.
2.5.3 If you set EDIT ENABLE to YES, it enables the following functions
EDIT ENABLE which can edit the program.
(PMCSB7: K901.6, Ladder editing screen*1
PMCSA1: K18.6) Title data editing screen*1
Symbol/comment data editing screen*1*2
Message data editing screen*1*2
I/O unit address setting screen*1*2
Cross reference screen*1
Clear of sequence program*1*2
Clear of PMC parameter*1*2
Setting of multilanguage message display function
System parameter screen*1
Setting screen for keep relay K900 or after
NOTE
1 Even if this parameter is set to YES, these functions which
have program display are invalid if HIDE PMC PROGRAM
is set to YES.
2 These screens with stop of ladder program require below
setting ALLOW PMC STOP.
CAUTION
Set this setting to NO(0) before shipment of the machine
if you want to prohibit operator form editing the program. If
you want to protect this setting, please make a sequence
that always writes 0 in this bit by your ladder.
2.5.4 If you set ALLOW PMC STOP to YES, it enables the following
ALLOW PMC STOP functions which require stop/start of ladder program. *1
(PMCSB7: K902.2, Symbol/comment data editing screen*2
PMCSA1: K19.2) Message data editing screen*2
I/O unit address setting screen*2
Clear of sequence program*2
Clear of PMC parameter*2
Start/stop of ladder
System parameter screen*2
799
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
1 Even if this parameter is set to YES, these functions which
have program display are invalid if HIDE PMC PROGRAM
is set to YES.
2 These editing screens require above setting EDIT
ENABLE.
CAUTION
Set this setting to NO(0) before shipment of the machine.
If this setting is left as YES(1), the operator may stop
execution of the ladder program by mistake. If you want to
protect this setting, please make a sequence that always
writes 0 in this bit by your ladder. Or please control the
machine to force to translate into safety state by sequence
program using the way described in 3.3 when the ladder
stops.
2.5.5 If you set RAM WRITE ENABLE to YES, it enables both the forcing
function and the override function.
RAM WRITE ENABLE
(PMCSB7: K900.4,
PMCSA1: K17.4) NOTE
The override function also requires the setting of
OVERRIDE ENABLE in the setting parameters.
2.5.6 If you set DATA TBL CNTL SCREEN to NO, the data table control
DATA TBL CNTL screen does not be displayed.
SCREEN (PMCSB7:
K900.7, PMCSA1:
K17.7)
2.5.7 If you set IO GROUP SELECTION to SHOW, the setting screen for
the selectable I/O link assignment function is enabled.
IO GROUP SELECTION
(K906.1)
800
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 2. SETTING FUNCTION
NOTE
Please use the password function of sequence program for
particular operator. Please refer to FANUC LADDERIII
operators manual B66234EN 5.4 PROTECING LADDER
PROGRAMS BY PASSWORD
iii) If you want to allow operator monitoring and editing the sequence
program;
D PROGRAMMER ENABLE
(PMCSB7: K900.1, PMCSA1: K17.1) NO
D HIDE PMC PROGRAM
(PMCSB7: K900.0, PMCSA1: K17.0) NO
D EDIT ENABLE
(PMCSB7: K901.6, PMCSA1: K18.6) YES
D ALLOW PMC STOP
(PMCSB7: K902.2, PMCSA1: K19.2) NO
NOTE
Please use the password function of sequence program for
particular operator. Please refer to FANUC LADDERIII
operators manual B66234EN 5.4 PROTECING LADDER
PROGRAMS BY PASSWORD.
iv) If you want to allow operator monitoring and editing the sequence
program which requires stop of ladder;
D PROGRAMMER ENABLE
(PMCSB7: K900.1, PMCSA1: K17.1) NO
801
2. SETTING FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
Please use the password function of sequence program for
particular operator. Please refer to FANUC LADDERIII
operators manual B66234EN 5.4 PROTECING LADDER
PROGRAMS BY PASSWORD.
WARNING
If a sequence program is stopped while the machine is
operating, the machine may behave unexpectedly. Before
stopping the sequence program, make sure that nobody is
near the machine and that the tool cannot interfere with the
workpiece or machine. Incorrect operation of the machine
presents an extreme risk of death or serious injury to the
user. Damage the tool, workpiece, and/or the machine is
also likely.
v) The case that operator who familiar with the machine and the ladder
sequence operate all the PMC programmer functions;
D PROGRAMMER ENABLE
(PMCSB7: K900.1, PMCSA1: K17.1) YES
D HIDE PMC PROGRAM
(PMCSB7: K900.0, PMCSA1: K17.0) NO
WARNING
If a sequence program is stopped while the machine is
operating, the machine may behave unexpectedly. Before
stopping the sequence program, make sure that nobody is
near the machine and that the tool cannot interfere with the
workpiece or machine. Incorrect operation of the machine
presents an extreme risk of death or serious injury to the
user. Damage the tool, workpiece, and/or the machine is
also likely.
802
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
NOTE
You can hide [PMCLAD] soft key at PMC Main Menu by
setting the keep relay of K900.0 to 1.
803
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
[<] [PMCLAD]
[SWITCH]
[<] [EDIT]
[LIST]
Program List
Editor Ladder Diagram Editor screen
Function Editor screen
[ZOOM], [<]
[<] [CREATE], [MODIFY]
NOTE
1 When [PMCLAD] soft key is pressed, the screen which was displayed last time among Ladder
Diagram Monitor screen, Collective Monitor screen and Program List Viewer screen is
displayed. When [PMCLAD] soft key is pressed at first time after CNC power is on, Program
List Viewer screen is displayed. Changing the ladder program by I/O function will also make
Program List Viewer screen appears at [PMCLAD] soft key again. See Program List Viewer
screen for more detail.
2 [EDIT] soft key in Ladder Diagram Monitor screen appears only when Programmer function is
enabled. To enable Programmer function, set PROGRAMMER ENABLE to YES at
GENERAL screen of PMC Settings or set keep relay K900.1 to 1. Or, set EDIT ENABLE to
YES or set K901.6 to 1. While Online Monitor function is active, you can not reach Ladder
Diagram Editor screen. To use Ladder Diagram Editor function, you have to disable Online
Monitor function at RS232C and FBUS on PARAMETERS FOR ONLINE MONITOR:
choose NOT USE.
804
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
3.1 LADDER Diagram Monitor screen shows the on/off status of contacts
and coils, and the contents of address specified for parameter of functional
LADDER DIAGRAM instructions.
MONITOR SCREEN Press the [PMCLAD] soft key on the PMC main menu to call the ladder
diagram screen. You can use following operation at this screen, including
Forced I/O function (Forcing mode), by which you can force the relay
or the address parameters of functional instructions to a new status or
value.
D Switch subprogram to show [LIST]
D Search for address or others [SEARCH]
D Show data table of functional instructions [TABLE]
D Go to LADDER Diagram Editor screen [EDIT]
D Calling collective monitor screen [SWITCH]
D Forced I/O function (Forcing mode) number + INPUT key
805
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.1.1
Screen Structures Title information (REMARKS) Current subprogram Current position Range to search
806
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
(c) Monitor
1 Contacts and coils are displayed in different colors according to the
status of the signal. The status of power flow is not displayed.
2 The contents of address parameters of functional instructions are
not shown in default setting. With the extended functional
instruction format, you can see the contents of the parameters. See
Setting Screen for the detail.
(d) Displaying Symbols and Comments
1 Above each of contacts and coils, the address is displayed. For an
address assigned a symbol, you can specify that the symbol is
displayed instead of the address. You can also specify that the
symbol is displayed in color. For details, see Setting the screen.
2 When a comment is set for the address of a contact, it is displayed
below the contact. You can specify the display format of the
comment. You can also specify that the comment is displayed in
color. For details, see Setting the screen.
3 When a comment is set for the address of a coil, it is displayed in
the right margin of the screen in the wraparound mode. You can
specify that this area is used to display a relay instead of a comment
(to increase the number of relays that can be displayed in a row).
You can also specify that the comment is displayed in color. For
details, see Setting the screen.
807
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.1.2
Operations
Soft keys of LADDER Diagram Monitor screen on PMCSB7
Main soft keys of LADDER
Diagram Monitor screen
Program List LADDER Diagram Editor Screen Settings
808
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
NOTE
1 To enable Programmer function, go to GENERAL screen of
PMC Settings, and choose YES at item PROGRAMMER
ENABLE.
2 To deactivate Online Monitor function, go to ONLIEN screen
of PMC Settings, and choose NOT USE at settings of
RS232C and FBUS (if appears).
809
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
Operations of the cursor movement keys when the cursor is not displayed
PAGE
Scrolling
Upward search
PAGE
Downward search
With cursor displayed, you can move the cursor by all cursor move
keys and Page change keys. When cursor is placed on some relay
or some address parameter of a functional instruction, the
information about the address under cursor is displayed at
Additional Information Line.
2 number + INPUT key
When cursor is shown, you can force the value of the address under
cursor by entering new value as number + INPUT key. In this
screen, Forced I/O function is limited only to Forcing mode. This
Forced I/O function asks you to confirm your intention before it
takes effect. Once it is confirmed that you actually want to change
value by this function, you can change the value of the same relay
or parameter without further confirmation. However, after you
move cursor or you operate other functions, you will be asked when
you use the Forced I/O function again.
WARNING
1 You have to pay special attention to use Forced I/O function
to change status of signals. Inappropriate use of Forced I/O
function may cause unexpected reaction of machine. You
have to make it sure that nobody is near the machine when
you use this function.
2 As you use Forcing mode of Forced I/O function to change
status of signal, however, the signal may look proof against
Forced I/O function, because LADDER program or I/O
device writes into the signal repeatedly. In this case, even
if the signal looks unchanged, actual signal may be
changed in very short moment. You should be careful for
the reaction of machine to such signal changes.
810
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
NOTE
1 Forced I/O function is enabled when RAM WRITE ENABLE
setting is set to YES in GENERAL screen of PMC Settings.
If the setting is NO, INPUT key will be just ignored.
2 Parameters of timer functional instructions, TMR, TMRB,
and TMRC, which have special monitor formats, are not
supported by Forced I/O function.
811
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.1.3
Setting the Screen
812
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
SYMBOL
Addresses that have a symbol are displayed by the symbols.
Addresses without symbols are displayed by the addresses
themselves.
ADDRESS (default)
All addresses are displayed as the addresses themselves even if
they have a symbol.
D FUNCTION STYLE
Change the shape of functional instructions. There are three
options as below. You have to choose other than COMPACT to
show the current values of address parameters of functional
instructions.
COMPACT
Occupies least space in diagram. Monitors of current values of
address parameters are omitted.
WIDE (default)
Extends the box horizontally to reserve spaces for the monitors
of current values of address parameters. The box becomes
wider than COMPACT.
TALL
Extends the box vertically to reserve spaces for the monitors of
current values of address parameters. The box becomes taller
than COMPACT.
Display styles of functional instructions
ACT
SUB 4 R0110
CMPACT
DEC 0
ACT
SUB 4 R0110 = 00
WIDE
DEC 0
ACT
SUB 4 R0110
TALL
DEC = 00
0
813
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
814
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
YES NO
D SHOW CURSOR
Determines whether to show cursor.
YES (default)
Cursor is displayed. Cursor move keys will move the cursor.
When the cursor is placed on bit or byte addresses, the
information of the address is displayed at Additional
Information Line. When you search something with the cursor
displayed, the cursor goes directly where it is found. This
option is recommended for search operation with LADDER
program that contains many large nets.
NO
Cursor is not displayed. Up/down cursor move keys will scroll
the contents of screen directly. When you search something
with the cursor hidden, the net, which contains it, will appear
at the top of the screen.
D DIAGRAM APPEARANCE SETTING
Shows how the ladder diagram is displayed. You can set the colors
of the lines, relays, symbols, comments, and function command
parameters that are components of the ladder diagram. At right, the
monitor display of a symbol, OFF contact, ON contact, function
command parameter, and comment appears as an example. The
display of this example is changed according to the settings.
For colors, you can set the display color for each of the five types
of components of the ladder diagram.
ADDRESS COLOR
Sets the color of symbols and addresses. Enter a number or
increase or decrease the number using the left and right arrow
keys. You can specify one of 14 numbers from 0 to 13.
815
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
DIAGRAM COLOR
Sets the color of the entire ladder diagram. Set the color in the
same way as for symbol color.
ACTIVE RELAY COLOR
Sets the color of relays in the on state. The color of the relays
in the off state is the same as for the ladder diagram. Set the color
in the same way as for Symbol color.
PARAMETER COLOR
Sets the color of the monitor display of function command
parameters. The monitor display appears only when a value
other than Compact is set for Function command display
form. Set the color in the same way as for Symbol color.
COMMENT COLOR
Sets the color of comments. Set the color in the same way as for
Symbol color.
D SUBPROGRAM NET NUMBER
Determines whether a net number is counted as LOCAL starting
from the top of current subprogram, or is counted as GLOBAL
starting from the top of whole program. This setting also affects
the expression of net number at searching nets by number.
LOCAL
Net number starts from 1 at top of current subprogram. Net
number is defined only within current subprogram. The net
number information at upper right of the screen is displayed in
the format displaying range / nets in subprogram NET.
GLOBAL (default)
Net number starts from 1 at top of Level 1 program. Net number
is defined identically at whole of program. The net number
information at upper right of the screen is displayed in the
format displaying range / subprogram range NET.
Definition of Net number
LOCAL GLOBAL
1 1
2 2
3 3
|
48
49
50
Current 1 Current 51
| |
Subprogram Subprogram
19 69
1 70
|
98
816
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
YES (default)
Downward search will continue to search from top of LADDER
when reaches to bottom. Upward search will also continue to
search from bottom when reaches to top.
NO
Search process will fail when reached top or bottom, and
displays an error message at Message Line.
Wrap search
YES NO
Not found
Not found
817
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.1.4 The following table shows all monitor formats for each parameter of each
Display Format for functional instruction.
Parameters
NOTE
1 Variable in Monitor Format field means that this parameter
changes its size according to the other parameter. Refer to
the descriptions for each functional instruction for detail.
2 Functional instruction with * mark has Data table.
No. Name Parameter Monitor Format No. Name Parameter Monitor Format
1 END1 18 XMOV 1 Constant
2 END2 2 4digits BCD
3 TMR 1 Special 3 4digits BCD
4 DEC 1 2digits BCD 4 4digits BCD
2 Constant 19 ADD 1 Constant
5 CTR 1 Special 2 4digits BCD
6 ROT 1 Constant 3 4digits BCD
2 4digits BCD 4 4digits BCD
3 4digits BCD 20 SUB 1 Constant
4 4digits BCD 2 4digits BCD
7 COD * 1 Constant 3 4digits BCD
2 2DIGITS BCD 4 4digits BCD
3 4digits BCD 21 MUL 1 Constant
8 MOVE 1 Constant 2 4digits BCD
2 Constant 3 4digits BCD
3 2digits HEX 4 4digits BCD
4 2digits HEX 22 DIV 1 Constant
9 COM 1 Constant 2 4digits BCD
10 JMP 1 Constant 3 4digits BCD
11 PARI 1 1byte binary 4 4digits BCD
14 DCNV 1 No monitor 23 NUME 1 Constant
2 No monitor 2 4digits BCD
15 COMP 1 Constant 24 TMRB 1 Special
2 4digits BCD 2 Constant
3 4digits BCD 25 DECB 1 Constant
16 COIN 1 Constant 2 Variable binary
2 4digits BCD 3 Constant
3 4digits BCD 4 2digits HEX
17 DSCH 1 Constant 26 ROTB 1 Constant
2 4digits BCD 2 Variable binary
3 4digits BCD 3 Variable binary
4 4digits BCD 4 Variable binary
5 Variable binary
818
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
No. Name Parameter Monitor Format No. Name Parameter Monitor Format
27 CODB * 1 Constant 40 NUMEB 1 Constant
2 Constant 2 Constant
3 1byte binary 3 Variable binary
4 Variable binary 41 DISPB* 1 Constant
28 MOVOR 1 2digits HEX 42 EXIN* 1 8digits HEX
2 2digits HEX 43 MOVB 1 1byte binary
3 2digits HEX 2 1byte binary
29 COME 44 MOVW 1 2bytes binary
30 JMPE 2 2bytes binary
31 DCNVB 1 Constant 45 MOVN 1 Constant
2 No monitor 2 4bytes binary
3 No monitor 3 4bytes binary
32 COMPB 1 Constant 47 MOVD 1 4bytes binary
2 Constant or 2 4bytes binary
Variable binary 48 END3
3 Variable binary 51 WINDR 1 2bytes binary
33 SFT 1 4digits HEX 52 WINDW 1 2bytes binary
34 DSCHB 1 Constant 53 AXCTL 1 Constant
2 Variable binary 2 8digits HEX
3 Variable binary 54 TMRC 1 Constant
4 Variable binary 2 Special
5 Variable binary 3 Special
35 XMOVB 1 Constant 55 CTRC 1 2bytes binary
2 Variable binary 2 2bytes binary
3 Variable binary 56 CTRB 1 Constant
4 Variable binary 2 Special
5 Variable binary 58 DIFD 1 Constant
36 ADDB 1 Constant 59 EOR 1 Constant
2 Variable binary 2 Variable HEX
3 Constant or 3 Constant or
Variable binary Variable HEX
4 Variable binary 4 Variable HEX
37 SUBB 1 Constant 60 AND 1 Constant
2 Variable binary 2 Variable HEX
3 Constant or 3 Constant or
Variable binary Variable HEX
4 Variable binary 4 Variable HEX
38 MULB 1 Constant 61 OR 1 Constant
2 Variable binary 2 Variable HEX
3 Constant or 3 Constant or
Variable binary Variable HEX
4 Variable binary 4 Variable HEX
39 DIVB 1 Constant 62 NOT 1 Constant
2 Variable binary 2 Variable HEX
3 Constant or 3 Variable HEX
Variable binary 64 END
4 Variable binary 65 CALL 1 No monitor
819
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
820
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
3.2 Functional Instruction Data Table Viewer screen shows the contents of
data table that belongs to some functional instructions.
FUNCTIONAL To reach this screen, at LADDER Diagram Monitor screen, press
INSTRUCTION DATA [TABLE] soft key that is displayed when the cursor is on the following
TABLE VIEWER functional instructions which have a data table.
SCREEN D Functional Instruction COD (SUB7)
D Functional Instruction CODB (SUB27)
Following operations are available at this screen.
D Search for data table number. [NO.SRCH]
D Search for data value. [V.SRCH]
D Change the displaying data digits. [BCD2],[BCD4]
(These soft keys can be operated only at Functional Instruction
Data Table Viewer screen of Functional Instruction COD.)
821
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.2.1
Screen Structures
Functional instruction Number of data Data length Data type
name
1 The functional instruction name, the number of data table, data length
and data types are displayed above the Data Table.
2 In the message line, error messages or inquiry messages will be
displayed depending on the situation.
3 In case of functional instruction COD, the data of 6 lines and 14
columns can be displayed in the area for Data table.
In case of functional instruction CODB, the data of 4 lines and 14
columns can be displayed in the area for Data table.
3.2.2
Operations Soft keys of Functional Instruction Data Table Viewer screen of functional instruction COD.
Soft keys of Functional Instruction Data Table Viewer screen of functional instruction CODB.
822
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
823
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.3
PROGRAM LIST
VIEWER SCREEN
3.3.1 Program List Viewer screen (Detail) shows the detail information that are
Detail Screen program size, program net count and so on for program.
Title information
(REMARKS) Total program count
824
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
825
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.3.2 Program List Viewer screen (Brief) shows less information than Program
Brief Screen List Viewer screen (Detail), to increase the number of items. The program
type, the status of protection and the name or symbol are displayed for
each program.
Title information
Program of operation target Total program count
(REMARKS)
826
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
D Program type.
D Status of protection
D Program name or symbol. (See Screen Setting for Program List
Viewer screen section for selecting this item.)
3.3.3
Operations Soft key of Program List viewer screen
Search for program
827
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
3.3.4
Setting Screen
828
3. LADDER DIAGRAM
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION MONITOR (PMCSB7)
BRIEF
The Program List Viewer/Editor screen shows less information
than DETAIL, to increase the number of items. The program
type, the status of protection and the name or symbol are
displayed for each program.
The detail information of program that is pointed by the cursor
is displayed on additional information line.
D ADDRESS NOTATION
Determines whether the programs in the Program List
Viewer/Editor screen are displayed as corresponding symbols, or
the addresses themselves.
SYMBOL
Addresses that have a symbol are displayed by the symbols.
Addresses without symbols are displayed by the addresses
themselves.
ADDRESS (default)
All addresses are displayed as the addresses themselves even if
they have a symbol.
D SORT BY
Determines whether the programs in the Program List
Viewer/Editor screen are displayed in order of program number, or
symbol name themselves. And When ADDRESS NOTAION is
SYMBOL, this determination is enabled. So if ADDRESS
NOTAION is ADDRESS, the programs are always displayed in
order of program number.
PROGRAM NUMBER (default)
The programs are displayed in order of program number.
SYMBOL
Programs that have a symbol are displayed in order of the
symbol name. Programs without symbols are displayed in order
of program number after programs with the symbols.
GLOBAL, LEVEL1, LEVEL2, LEVEL3 are out of target of
sort.
D PROTECTED PROGRAM
Determines whether protected programs in the Program List
Viewer/Editor screen are displayed or not. On each screen, the
protected program means as follows.
On Program List Viewer screen : the program is protected to
monitor.
On Program List Editor screen: the program is protected to edit.
SHOW (default)
The protected programs are displayed in the Program List
Viewer/Editor screen.
HIDE
The protected programs are not displayed in the Program List
Viewer/Editor screen.
829
3. LADDER DIAGRAM
MONITOR (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
830
4. COLLECTIVE MONITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
831
4. COLLECTIVE MONITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
832
4. COLLECTIVE MONITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
833
4. COLLECTIVE MONITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
4.3
SCREEN
Collective Monitor screen
OPERATIONS
Program List Viewer Jump to the ladder diagram net Initialization of Collective Monitor screen
Pick up a ladder diagram net Switches to Ladder Delete a net Screen setting
Diagram Monitor screen.
834
4. COLLECTIVE MONITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
835
4. COLLECTIVE MONITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
Fig. 4.3(c) Ladder Diagram Viewer screen (Soft key for search)
836
4. COLLECTIVE MONITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
4.4
ALARM MESSAGE
AND
COUNTERMEASURE
Message that may be displayed during Collective Monitor function
Alarm number Faulty location/corrective action Contents
THE ADDRESS IS NOT FOUND Specify the address used with write Specified address was not used for the
coil write coil.
SYMBOL UNDEFINED Specify the defined symbol or address. Specified symbol was not defined.
WRITE COIL NEEDS BIT ADDRESS Specify the bit address The byte address was specified when
specifying the address used with write
coil.
SOME NETS ARE DISCARDED Not all the nets of picking up object All nets were not picked up because
can be picked up. Select the net of there were the nets of picking up ob-
picking up on Ladder Diagram Viewer ject more than 128 nets.
screen and pick up the net manually.
837
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
838
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.1 In Ladder Diagram Editor screen you can edit Ladder program to change
its behavior. To reach Ladder Diagram Editor screen, press [EDIT] soft
LADDER DIAGRAM key at Ladder Diagram Monitor screen. Following operations are
EDITOR SCREEN available at Ladder Diagram Editor screen.
Delete by net [DELETE]
Move by net [CUT] & [PASTE]
Copy by net [COPY] & [PASTE]
Change address of contacts and coils bit address + INPUT key
Change parameters of functional instructions
number or byte address+ INPUT key
Add new net [CREATE]
Change construction of net [MODIFY]
Make changes effective [UPDATE]
Abandon changes [RESTORE]
NOTE
1 You can edit a ladder regardless of whether the ladder is
running/stopping. But, when you are going to execute the
edited ladder, it is necessary to update the ladder. By exiting
Ladder Editor screen, or pressing [UPDATE] soft key, update
the edited ladder. As for the protection of the editing operation,
please refer to 5.3 Example for setting parameters.
2 If the power is turned off before the edited sequence program
is written to flash ROM, the result of the edit is erased.Use the
input/output screen to write the sequence program to flash
ROM. When K902#0 is set to 1, a confirmation message
appears at the termination of editing, asking whether to write
the sequence program to flash ROM.
839
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.2
SCREEN Title information(REMARKS) Displayed subprogram Display position information
CONFIGURATION
Cursor
Display position
Message display line Key input line Additional information display line
840
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.3
SCREEN
Soft keys on the Ladder Diagram Editor screen
OPERATIONS
Program List Add new net Make changes effective
Cut net Paste net
Change to search soft keys Edit net Select multiple nets Delete net Copy net
Setting screen
WARNING
You have to pay special attention to modify running ladder
program. If you modify the ladder program in wrong way, or
update the ladder program with the machine in improper
status, it may cause unexpected reaction of the machine.
You have to make it sure that modifications you make on
the ladder program is appropriate, machine is in proper
status, and nobody is near the machine, when you update
the ladder program.
841
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
842
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
WARNING
You have to pay special attention to run/stop the ladder
program. Running/stopping the ladder program in a wrong
timing, or with machine in improper status, may cause
unexpected reaction of machine. At stopping the ladder
program, a safety mechanism and watch by the ladder
program is not operated. You have to make it sure that
machine is in proper status, and nobody is near the
machine when you run/stop the ladder program.
WARNING
You have to pay special attention to modify running the
ladder program. If you modify the ladder program in wrong
way, or update the ladder program with the machine in
improper status, it may cause unexpected reaction of the
machine. You have to make it sure that modifications you
make on the ladder program is appropriate, machine is in
proper status, and nobody is near the machine, when you
update the ladder program.
843
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.4
SETTING SCREEN
844
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
845
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.5 In Net Editor screen, you can create new net, and modify existing net.
NET EDITOR 1. Modifying existing netWhen [MODIFY] soft key is used to reach Net
Editor screen, this screen is in MODIFY MODE to modify existing
SCREEN net.
2. Creating new net When [CREATE] soft key is used to reach Net
Editor screen, this screen is in CREATRE MODE to create new net
from nothing.
Following operations are available at this screen:
Place new contacts and coils bit address+ [ ], [ ], etc.
Change type of contacts and coils [ ], [ ], etc.
Place new functional instructions [FUNC]
Change type of functional instructions [FUNC]
Erase contacts, coils, and functional instructions
[ ]
Draw/erase connecting lines [ ], [ ], [ ]
Edit data table of functional instructions [TABLE]
Insert line/column [INSLIN],[INSCLM],[APPCLM]
Change address of contacts and coils bit address + INPUT key
Change parameters of functional instructions
number or byte address+ INPUT key
Abandon modifications [RESTOR]
5.5.1
Screen Configuration Displayed subprogram Display position information Edit mode
Cursor
Message display line Key input line Additional information display line
846
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.5.2
Screen Operations Soft keys on the Net Editor screen
847
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
848
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
[ ]
[ ]
: :
: :
849
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
[INSLIN]
[INSCLM]
850
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
[APPCLM]
851
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
852
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.7 Pressing [FUNC] soft key at Net Editor screen reaches Functional
Instruction List screen at which you choose a functional instruction to be
FUNCTIONAL entered from list of all available functional instructions.
INSTRUCTION LIST
SCREEN
853
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.8 At Functional Instruction Data Table Editor screen, you can edit the
contents of data table that belongs to some functional instructions. To
FUNCTIONAL reach this screen, at Net Editor screen, press [TABLE] soft key that is
INSTRUCTION DATA displayed when the cursor is on the following functional instructions
TABLE EDITOR which have a data table.
SCREEN Functional Instruction COD (SUB7)
Functional Instruction CODB (SUB27)
(Function instruction DISP(SUB49) is not be able to use)
Following edit operations are available at this screen.
Change the data table value. number + ENTER key
Change the data length. [BYTE], [WORD], [D.WORD]
(These soft keys can be operated only at Functional Instruction Data
Table Editor screen of Functional Instruction CODB.)
Change the number of data [COUNT]
Initialize all of data [INIT]
854
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.9 At Program List Editor screen you can create new program and delete a
program in addition to the function of Program List Viewer screen. To
PROGRAM LIST reach this screen, press [LIST] soft key at Ladder Diagram Editor screen.
EDITOR SCREEN Following operations are available at Program List Editor screen. For
more detail of these operations, refer to the descriptions of each key to
operate.
Create new program [NEW]
Delete a program [DELETE]
855
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.9.1
Screen Operations Display the contents of program Screen Settings Delete a program
856
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
5.9.2
Setting Screen
857
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
5.10
ALARM MESSAGE
AND
COUNTERMEASURE
Messages that may be displayed during PMC program editing
Alarm number Faulty location/corrective action Contents
OVERLAPPED COM If COME is missing, add it in proper There is no COME that corresponds to
position. If the COM is unnecessary, this COM.
remove it.
JMPE IN COM JMPE and corresponding JMP must JMPE is found between COM and
have same COM/COME status. Re- COME, and JMP and corresponding
view JMP range and COM range, to JMPE have different COM/COME sta-
adjust not to overlap with each other: it tus.
is possible that one range includes the
other completely.
SP/SPE IN COM If COME is missing, add it in proper SP or SPE is found between COM and
position. If the COM is unnecessary, COME.
remove it.
COME WITHOUT COM If COM is missing, add it in proper There is no COM that corresponds to
position. If the COME is unnecessary, this COME.
remove it.
DUPLICATE CTR NUMBER If some of them are unnecessary, re- Plural CTRs have the same number as
(WARNING) move them. If all of them are neces- their parameter. (This is warning.)
sary, assign other number to parame-
ter of them to make them unique. (If
two or more instructions with same pa-
rameter number will never be active
simultaneously at one time, the Ladder
program has a possibility to work cor-
rectly, however, it is recommended
from safety and maintenance points of
view, that all these instructions should
have different parameter number with
each other.)
ILLEGAL CTR NUMBER If unnecessary, remove it. Assign cor- CTR has parameter number that is out
rect number not to exceed the maxi- of range.
mum number defined by each PMC
model.
858
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
DUPLICATE DIFU/DIFD NUMBER If some of them are unnecessary, re- Plural DIFUs or DIFDs have the same
(WARNING) move them. If all of them are neces- number as their parameter. (This is
sary, assign other number to parame- warning.)
ter of them to make them unique. (If
two or more instructions with same pa-
rameter number will never be active
simultaneously at one time, the Ladder
program has a possibility to work cor-
rectly, however, it is recommended
from safety and maintenance points of
view, that all these instructions should
have different parameter number with
each other.)
ILLEGAL DIFU/DIFD NUMBER If unnecessary, remove it. Assign cor- DIFU or DIFD has parameter number
rect number not to exceed the maxi- that is out of range.
mum number defined by each PMC
model.
NO END Add END, END1, END2 or END3 in END, END1, END2 or END3 is not
NO END1 proper position. found.
NO END2
NO END3
DUPLICATE END1 Remove extra END1, END2 or END3. Multiple END1, END2 or END3 are
DUPLICATE END2 found.
DUPLICATE END3
GARBAGE AFTER END Remove unnecessary nets, and move There are some nets after END, END2
GARBAGE AFTER END2 necessary nets to proper position so or END3, which will not be executed.
GARBAGE AFTER END3 that they will be executed.
OVERLAPPED JMP If JMPE is missing, add it in proper There is no JMPE that corresponds to
position. If the JMP is unnecessary, this JMP.
remove it.
JMP/JMPE TO BAD COM LEVEL JMP and corresponding JMPE must JMP and corresponding JMPE have
have same COM/COME status. Re- different COM/COME status.
view JMP range and COM range, to
adjust not to overlap with each other: it
is possible that one range includes the
other completely.
COME IN JMP COME and corresponding COM must COME is found between JMP and
have same JMP/JMPE status. Review JMPE, and COM and corresponding
COM range and JMP range, to adjust COME have different JMP/JMPE sta-
not to overlap with each other: it is tus.
possible that one range includes the
other completely.
SP/SPE IN JMP If JMPE is missing, add it in proper SP or SPE is found between JMP and
position. If the JMP is unnecessary, JMPE.
remove it.
859
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
JMPB OVER COM BORDER JMPB and its destination must have JMPB and its destination differ in
same COM/COME status. Review COM/COME status.
range of JMPB and COM range, to ad-
just not to overlap with each other: it is
possible that one range includes the
other completely.
JMPB OVER LEVEL JMPB can only jump to the same pro- JMPB jumps to different program level.
gram level, or within a subprogram. If
the JMPB is unnecessary, remove it. If
LBL for the JMPB is missing, add it in
proper position. If it should be JMPC,
correct it.
LBL FOR JMPB NOT FOUND If JMPB is unnecessary, remove it. If Can not find proper LBL for JMPB.
LBL is missing, add it in proper posi-
tion.
JMPC IN BAD LEVEL JMPC is used to jump from a subpro- JMPC is used in other than subpro-
gram to level 2. If the JMPC is unnec- gram.
essary, remove it. If it should be JMPB
or JMP, correct it.
LBL FOR JMPC NOT FOUND If JMPC is unnecessary, remove it. If Can not find proper LBL for JMPC.
LBL is missing, add it in proper posi-
tion: JMPC jumps into level 2. If it
should be JMPB or JMP, correct it.
LBL FOR JMPC IN BAD LEVEL JMPC is used to jump from a subpro- Destination of JMPC is not level 2.
gram to level 2. If the JMPC is unnec-
essary, remove it. If another LBL of
same Laddress that the JMPC is in-
tended to jump exists in the subpro-
gram, assign different Laddress to
these two LBLs. If it should be JMPB
or JMP, correct it.
JMPC INTO COM LBL for JMPC must be located out of JMPC jumps to LBL between COM
any COM and COME pair. If the JMPC and COME.
is unnecessary, remove it. If the LBL is
located wrong, move it to correct posi-
tion. If the Laddress of JMPC is
wrong, correct it.
JMPE WITHOUT JMP If JMP is missing, add it in proper posi- There is no JMP that corresponds to
tion. If the JMPE is unnecessary, re- this JMPE.
move it.
TOO MANY LBL Remove unnecessary LBLs. If this er- There are too many LBLs.
ror still occurs, adjust the construction
of program to use less LBLs.
DUPLICATE LBL If some of these LBLs are unneces- Same Laddress is used in plural
sary, remove them. If all of these LBLs LBLs.
is necessary, assign other Laddress-
es to them to make all LBLs unique.
860
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
END IN SP If SPE is missing, add it in proper posi- END is found between SP and SPE.
tion. If END is in wrong place, move it
to proper position.
DUPLICATE P ADDRESS If some of these SPs are unnecessary, Same Paddress is used in plural
remove them. If all of these SPs is SPs.
necessary, assign other Paddresses
to them to make all SPs unique.
DUPLICATE TMRB NUMBER If some of them are unnecessary, re- Plural TMRBs have the same number
(WARNING) move them. If all of them are neces- as their parameter. (This is warning.)
sary, assign other number to parame-
ter of them to make them unique. (If
two or more instructions with same pa-
rameter number will never be active
simultaneously at one time, the Ladder
program has a possibility to work cor-
rectly, however, it is recommended
from safety and maintenance points of
view, that all these instructions should
have different parameter number with
each other.)
ILLEGAL TMRB NUMBER If unnecessary, remove it. Assign cor- TMRB has parameter number that is
rect number not to exceed the maxi- out of range.
mum number defined by each PMC
model
DUPLICATE TMR NUMBER If some of them are unnecessary, re- Plural TMRs have the same number
(WARNING) move them. If all of them are neces- as their parameter. (This is warning.)
sary, assign other number to parame-
ter of them to make them unique. (If
two or more instructions with same pa-
rameter number will never be active
simultaneously at one time, the Ladder
program has a possibility to work cor-
rectly, however, it is recommended
from safety and maintenance points of
view, that all these instructions should
have different parameter number with
each other.)
ILLEGAL TMR NUMBER If unnecessary, remove it. Assign cor- TMR has parameter number that is out
rect number not to exceed the maxi- of range.
mum number defined by each PMC
model.
NO SUCH SUBPROGRAM If it calls wrong subprogram, correct it. Subprogram that is called by CALL/
If the subprogram is missing, create it. CALLU is not found.
UNAVAILABLE INSTRUCTION Confirm that this ladder program is cor- Unsupported instruction for this PMC
rect one. If this program is correct one, model is found.
all these unsupported instructions
have to be removed.
861
5. LADDER DIAGRAM EDITOR
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
LADDER PROGRAM IS BROKEN This ladder program must be all Ladder program may be broken by
cleared once, and remake ladder pro- some reason.
gram.
NO WRITE COIL Add proper write coil. Write coil is necessary, but is not
found.
CALL/CALLU IN BAD LEVEL CALL/CALLU must be used in Level 2 CALL/CALLU is used in wrong place.
or in subprograms. Do not use any
other places.
Messages that may be displayed during net editing on PMC program editor screen
Alarm number Faulty location/corrective action Contents
TOO MANY FUNCTIONAL Only one functional instruction is al- Too many functional instructions are in
INSTRUCTIONS IN ONE NET lowed to constitute a net. If necessary, one net.
divide the net into plural nets.
TOO LARGE NET Divide the net into plural nets so that Net is too large. When a net is con-
step number in a net may become verted into the object, the net exceeds
small. 256 steps.
NO INPUT FOR OPERATION Coil without input, or coil connected to No signal is provided for logical opera-
output of functional instruction that has tion.
no output, causes this error. If coil is
not necessary, remove it. If necessary,
connect it to meaningful input.
OPERATION AFTER FUNCTION IS Output of functional instruction can not No logical operation with functional
FORBIDDEN be connected to a contact, nor to con- instruction output is permitted, except
junction with other signal that will be write coils.
implemented by logicalor operation.
WRITE COIL IS EXPECTED Add proper write coil to the net. Write coil is expected, but not found.
BAD COIL LOCATION Coil can be located only at rightmost Coil is located in bad position.
column. Any coil located at other place
must be erased once, and place nec-
essary coils in correct place.
SHORT CIRCUIT Find contact with terminals connected Some contacts are connected with
by short circuit, and correct connec- short circuit.
tions.
FUNCTION AFTER DIVERGENCE IS Functional instruction can not be used Functional instruction is used in output
FORBIDDEN in output section of net. If necessary, section of net.
divide the net into plural nets.
ALL COIL MUST HAVE SAME INPUT Left terminals of all coils in a net must When a net contains more than one
be connected to same input point. coil, the coils should not have any con-
tact beside them affects only of the
coils.
862
5. LADDER DIAGRAM EDITOR
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
BAD CONDITION INPUT Check the connection of all condition Some condition input of functional
inputs of the functional instruction. Es- instruction is not connected correctly.
pecially for functional instruction that
has more than one condition input,
check if connections to condition in-
puts interfere with each other.
NO CONNECTION Find gap that is expected to be con- There is signal connected to nowhere.
nected, and correct the connection.
NET IS TOO COMPLICATED Examine every connection, and find Net is too complicated to analyze.
unnecessarily bending connection, or
coils that are connected to different
point.
PARAMETER IS NOT SUPPLIED Enter all of the relay addresses, and Relay with blank address, or blank pa-
parameters of functional instructions. rameter of functional instruction, is
found.
863
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
he signal trace function for PMCSB7 has both the signal wave form
display function and the signal trace function for PMCSA5/SB5/SB6
and has improved specification and operation.
PMCSA5/SB5/SB6 PMCSB7
Used condition The signal wave form display function Basic function as PMC control soft-
is provided in the ladder editing card. ware
Display of trace result Sampling graph does not be displayed Sampling graph is displayed dynami-
dynamically in signal wave form dis- cally during the execution of trace.
play function.
On the trace screen, you can trace specified signals. The result of the trace
is displayed as the time chart of signals. There are two tracing modes.
Time Cycle mode: Samples the state of the signals at every
specified cycle time.
(Same specification as the signal wave
form display for PMCSA5/SB5/SB6)
Signal Transition mode: Samples the status of the signals when
the signals that are watched at every
specified time are changed.
(Same specification as the trace function
for PMCSA5/SB5/SB6)
864
6. SIGNAL TRACE
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
6.1 Pushing the [TRACE] soft key on PMC Diagnosis screen displays the
Signal Trace screen.
SIGNAL TRACE
SCREEN (INITIAL
SCREEN)
865
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
6.2 Pushing the [SETING] soft key on the Signal Trace screen displays the
Parameter Setting screen. Parameter Setting has two screens. The
SETTING OF TRACE page key changes these screens.
PARAMETER
866
6. SIGNAL TRACE
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
1sec 9sec
1 0 9 (SEC)
i) SAMPLING CONDITION
When SIGNAL TRANSITION is set on TRACE MODE, this
parameter is enabled. Determine the sampling condition.
TRIGGER: Samples the status of specified signals when
the specified sampling condition is on.
ANY CHANGE: Samples the status of specified signals when
the signals change.
j) SAMPLING CONDITION/ TRIGGER/ ADDRESS
When SIGNAL TRANSITION is set on TRACE MODE, and
TRIGGER is set on SAMPLING CONDITION, this parameter is
enabled. Input signal address or symbol name as sampling trigger.
k) SAMPLING CONDITION/ TRIGGER/ MODE
When SIGNAL TRANSITION is set on TRACE MODE, and
TRIGGER is set on SAMPLING CONDITION, this parameter is
enabled. Input trigger mode that determines the condition of specified
trigger.
RISING EDGE: Samples the status of specified signals by
rising up of the trigger signal.
FALLING EDGE: Samples the status of specified signals by
falling down of the trigger signal.
BOTH EDGE: Samples the status of specified signals by
rising up or falling down of the trigger signal.
ON: Samples the status of specified signals during
the trigger signal is on.
OFF: Samples the status of specified signals during
the trigger signal is off.
867
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
Increasing the number of the signal address changes the
capacity of
SAMPLING TIME or SAMPLING FRAME in page 1. If the
capacity
is changed, the following warning message is displayed.
(The n on the message means the maximum value that is
able to input.)
a) In case of TIME CYCLE mode
SAMPLING TIME IS REDUCED TO n SEC.
b) In case of SIGNAL TRANSITION mode
b) Soft keys
Soft keys on the Setting screen of sampling address are as follows
DELETE: Clears the value of the edit box on the cursor.
SYMBOL: Changes the address display to the symbol display.
However, display of the address that is not defined the
symbol does not change. This soft key also changes
to ADDRESS. The following soft keys are
displayed.
MV.UP: Exchanges the signal indicated the cursor for the
signal above one line.
868
6. SIGNAL TRACE
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
869
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
6.4 On trace screen, pushing [START] soft key starts the execution of trace
after you set the trace parameter correctly. The followings are the screen
EXECUTION OF examples of the trace execution by TIME CYCLE mode and SIGNAL
TRACE TRANSITION mode
870
6. SIGNAL TRACE
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
6.5 When the execution is finished, the result of trace is displayed. The
followings are the screen examples of trace by TIME CYCLE and
OPERATION AFTER SIGNAL TRANSITION mode.
EXECUTION OF
TRACE
871
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
872
6. SIGNAL TRACE
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION FUNCTION (PMCSB7)
873
6. SIGNAL TRACE
FUNCTION (PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
874
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
875
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
(PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
7.1 This function enables the common use of a sequence program for several
machines which have different I/O device configuration with each other,
OUTLINE by setting the parameter to enable/disable each group in I/O link
assignment data.
Machine A Machine B
I/O devices I/O devices
X24 2.0.1 ID32E (I/O Unit)
Make ROM format file with I/O link assignment data that is used in both the machine A
and the machine B.
CNC
A sequence program issentto CNC.
876
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
The I/O devices that are used in all machines can be set as basic part of
configuration that is always effective.
Basic part
Off line programmer
I/O link assignment data
X0 0.0.1 FS08A (Power Mate) Basic part (always connected)
X8 1.0.1 OC02I (Connection Unit) Optional group by parameter
X24 2.0.1 ID32E (I/O Unit) Optional group by parameter
Determine the basic part and the optional part of I/O link assignment data.
CNC
NOTE
When you set a basic part, you have to assign devices of
basic part continuously from group 0. And the basic part is
connected with the top of the link.
877
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
(PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
Optional part
Basic part
1) ENABLE SELECTION:
Enables/Disables this function in the system parameter.
2) BASIC GROUP COUNT:
Sets the counts of group in basic part in the system parameter.
(This part must be assigned continuously from group 0.) The basic
groups in I/O link assignment data are always effective on all
machine configurations.
3) EFFECTIVE GROUP SELECTION:
Sets the group of optional I/O device that is connected with each
machine in the setting parameter. This parameter doesnt affect the
basic part.
NOTE
I/O Link expansion option is necessary to use channel 2 of
I/O Link.
878
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
7.2 There are three machines which have different configurations of I/O
devices, each other.
EXAMPLE
D Configuration A
A machine which has a distribution I/O machine operators panel and
a connection panel I/O connected with channel 1 of NC.
Channel 1
Channel 2
No connection
D Configuration B
A machine which has a distribution I/O machine operators panel and
a Power Mate connected with channel 1 of NC.
Channel 1
Channel 2
No connection
D Configuration C
A machine which has the configuration A on channel 1 and two beta
amplifiers on channel 2.
Channel 1
Channel 2
Group 0 Group 1
These machines can use a common sequence program which has I/O link
assignment data that includes all I/O device configurations. The contents
of parameters for each I/O device configuration are as shown in next page.
879
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
(PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
Channel 2
880
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
D Configuration B
i) System parameter
1CH ENABLE SELECTION = YES
BASIC GROUP COUNT = 1
2CH ENABLE SELECTION = YES
BASIC GROUP COUNT = 0
ii) Setting parameter
Group NO. : 00 01 02 03 04 05 06 07
(CH1) * 0 1 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
Group NO. : 00 01 02 03 04 05 06 07
(CH2) 0 0 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
D Configuration C
i) System parameter
1CH ENABLE SELECTION = YES
BASIC GROUP COUNT = 1
2CH ENABLE SELECTION = YES
BASIC GROUP COUNT = 0
ii) Setting parameter
Group NO. : 00 01 02 03 04 05 06 07
(CH1) * 1 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
Group NO. : 00 01 02 03 04 05 06 07
(CH2) 1 1 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
(3) The actual contents of I/O link assignment data modified by the
parameter
D Configuration A
Channel 1
Channel 2
No connection
881
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
(PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
D Configuration B
Channel 1
Channel 2
No connection
D Configuration C
Channel 1
Channel 2
882
7. SELECTABLE I/O LINK
ASSIGNMENT FUNCTION
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
7.3 1) If PMCparameters are cleared, cycling the power of CNC links only
the basic part.
NOTES
2) After selecting the assignment data, the I/O devices are linked with
shifted group number of effective I/O link assignment data.
You can check the result of connection by 5. I/O Link Connecting
Check Screen.
Group 4 Effective
3) You can not exchange the order of the I/O group number.
WARNING
1) If a sequence program in which ENABLE SELECTION is
set to YES is executed with the PMC control software that
is not applied to this function, ENABLE SELECTION is
ignored and all I/O link assignment data are effective.
2)The [IOSTRT] key on I/O unit address setting screen has
been removed because improper use of this key may
increase mistake of setting the I/O assignment data which
causes wrong linking of the I/O devices and it may result in
unexpected malfunctions of machine. If you want to have
the machine linked with I/O devices under the selected I/O
link assignment data, you have to turn off and on power after
the confirmation of the correct connection of the I/O devices.
3) If a sequence program in which the system parameter for
this function is set is decompiled and compiled on the
FANUC LADDERIII or Ladder Editing Package that does
not support this function, the system parameter for this
function is initialized and all of I/O link assignment data
becomes effective. Please set the system parameters
again, when writing the sequence program into the CNC.
883
8. SYSTEM PARAMETER
(PMCSB7) FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
WARNING
According to actually connected I/O devices, please set the
setting parameter(K910K913 described in 3.2.2) correctly
to enable this function.
884
8. SYSTEM PARAMETER
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION (PMCSB7)
NOTE
For other system parameters, see Chapter 4 in Part III.
885
9. I/O LINK CONNECTING
CHECK SCREEN FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
The I/O Link connecting check screen displays the types and ID codes of
the connected I/O devices for each group. When I/O device is not
connected, any I/O device is not displayed. If there is a problem of input
or output signals for I/O devices, check the connection of I/O Link by
referring to this screen.
NOTE
1 I/O Link expansion option is necessary to use the channel
2 of I/O Link.
2 For I/O devices and ID codes, sample I/O link
configurations, and an example of the I/O link connecting
check screen, see Subsection 3.8.1 in Part II.
886
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
10 ONLINE FUNCTION
CAUTION
1 When one of the following screens is displayed at PMC, the
online communication can not be used. Change to other
screens from the following screens, and use the online
function.
[PMCLAD], [I/O], [EDIT], [SYSPRM], [TRACE], [USRDGN],
[DBGLAD], [GDT], [USRMEM]
Also, you can not use the above screens at PMC during the
online communication.
2 When the online function is used with RS232C, the
selected channel is occupied by the PMC system. To use
other input/output functions with RS232C, specify other
channel setting than the one used by online function.
3 Loader control function can not connect with FANUC
LADDERIII or Ladder Editing Package by Ethernet.
887
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
10.1
ONLINE SETTING
SCREEN
NOTE
1 In case of configuration of CNC with which neither Ethernet
nor HSSB is available, the item of HIGH SPEED I/F is not
displayed.
2 In case of display which has 5+2 soft key, two pages are
used for this setting screen.
Switch the page by < Page Up > or <Page Down> key.
888
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
10.2.1 To display the soft key [MONIT] in the PMC main menu screen, set
PROGRAMMER
How to Set at PMC
ENABLE to YES in the setting screen. When pushing the soft key
Screen [MONIT][ONLINE], the online setting screen is displayed. (Fig. 7.1)
1. Case of connection by RS232C (FANUC LADDERII, FANUC
LADDERIII)
(1) Check that NOT USE is selected at the RS232C item.
(2) Set the parameter of CHANNEL and BAUD RATE.
(3) Move the cursor to the RS232C item with Up or Down Cursor
key.
(4) Select USE with Left or Right Cursor key.
2. Case of connection by Ethernet (FANUC LADDERIII, Ladder
Editing Package)
(1) Move the cursor to the HIGH SPEED I/F item with Up or Down
Cursor key.
(2) Select USE with Left or Right Cursor key.
3. Case of connection by HSSB (Ladder Editing Package)
(1) Move the cursor to the HIGH SPEED I/F item with Up or Down
Cursor key.
(2) Select USE with Left or Right Cursor key.
NOTE
1. When both RS232C = USE and HIGH SPEED I/F =
USE are selected, the PMC system will communicate with
the application which is connected at first. If PMC system is
already connecting with an application, it can not connect
with other applications.
2 When you use the online function by Ethernet, the setting
of Ethernet parameters at CNC is necessary in advance.
3 Loader control function can not connect with FANUC
LADDERIII or Ladder Editing Package by Ethernet.
889
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
10.2.2 You can enable and disable the online connection for Ethernet, HSSB and
Setting of Online RS232C by NC parameter No.24 without setting on the PMC online
monitor setting screen. This NC parameter is made effective immediately
Connection by NC after setting the parameter.
Parameter If the value of this parameter is changed, the item RS232Cand HIGH
SPEED I/F in the online monitor screen are automatically changed too.
Please refer to following table.
Contents of NC parameter No.24.
Each item of the online monitor
NC parameter screen after setting
Meanings
No.24
RS232C HIGH SPEED I/F
0 The settings on the online monitor setting screen are effec- This does not affect RS232C and
tive. HIGH SPEED I/F.
1 Enables Channel 1 of RS232C and disables HIGH USE (Channel 1) NOT USE
SPEED I/F.
2 Enables Channel 2 of RS232C and disables HIGH USE (Channel 2) NOT USE
SPEED I/F.
10 Disables RS232C and enables HIGH SPEED I/F. NOT USE USE
11 Enables Channel 1 of RS232C and HIGH SPEED I/F. USE (Channel 1) USE
12 Enables Channel 2 of RS232C and HIGH SPEED I/F. USE (Channel 2) USE
3 to 10 3 to 1013 to 254 Reserve (Dont use this setting.) (Reserved) (Reserved)
13 to 254
255 Terminates communication forcibly.It is the same effect as NOT USE NOT USE
soft key [EMG ST].
How to set the parameter
(1) Display the No.24 of NC parameter.
(2) To connect by Ethernet or HSSB, input 10, 11 or 12.
To connect by RS232C, input 1, 2, 11 or 12.
NOTE
1 Even if the setting of the online monitor screen of PMC is
changed, the value of No.24 in NC parameter is not
changed.
2 When you use the ladder editing package on the open CNC
or you use the FANUC LADDERIII to edit the ladder and
do not use the ladder monitor and the ladder editor on CNC
screen, the setting of this parameter should be used
890
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
10.3
ONLINE FUNCTION
BY ETHERNET
891
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
10.3.2 The procedures for online connection with PMC and the offline
Starting online programmer (FANUC LADDERIII, Ladder Editing Package for
windows) by Ethernet are as follows.
communication by (Example: FANUC LADDERIII)
offline programmer
(1) Start up FANUC LADDERIII, and click the [Communication] on
(Ethernet connection) [Tool] menu.
(2) Select the [Network Address] tab and push the <Add Host> button.
Input the IP Address and Port No. inputted by 7.3.1 Setting of
Ethernet parameters.
892
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
(3) Select the [Setting] tab, and add the IP Address to Use device.
893
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
NOTE
1 When one of the following screens is displayed at PMC, the
online communication can not be used. Change to other
screens from the following screens, and use the online
function.
[PMCLAD], [I/O], [EDIT], [SYSPRM], [TRACE], [USRDGN],
[DBGLAD], [GDT], [USRMEM].
2 When the online function is used with RS232C, the
selected channel is occupied by the PMC system. To use
other input/output functions with RS232C, specify other
channel setting than the one used by online function.
3 Loader control function can not connect with FANUC
LADDERIII or Ladder Editing Package by Ethernet.
894
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
10.4 The communication status of RS232C and HIGH SPEED I/F are
displayed at the online monitor screen during the online communication.
COMMUNICATION
STATUS
895
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
The display messages and the meanings are shown in the table of below.
Displayed messages Meanings
INACTIVE The communication is inactive.
STOPPING The communication is being stopped.(Wait for
the termination of communication)
STARTING The communication is being started.(Wait for the
termination of communication over another com-
munication path)
STANDBY The communication is active and in standby
mode.
CONNECTED The communication is active and being con-
nected.
NO OPTION The port can be not opened because there is not
option of RS232C.
BAD PARAMETER Invalid open parameters are specified.
TIMEOUT ERROR A timeout has occurred and communication is
aborted.
TIMEOUT(K) ERROR A timeout has occurred and communication is
aborted.
BCC ERROR A Block Check Code (packet parity) error has
occurred.
PARITY ERROR A parity error has occurred.
OVERRUN ERROR A reception overrun has occurred and the com-
munication can not recover.
SEQUENCE ERROR Packets are out of sequence.(Incorrect proce-
dure)
DATA ERROR Incorrect packets have been received through
retry process.
QUEUE OVERFLOW The transmit/receive queue has overflowed.
DISCONNECTED Communication has been terminated success-
fully.
NO CONNECTION The cable is disconnected.
896
B61863E/14 FS16i/18i/21iB PMCSA1/SB7 MANIPULATION 10. ONLINE FUNCTION
10.5 If any errors have occurred during Ethernet connection, the contents of the
errors are displayed at ETHLOG screen of CNC. Refer to this screen
ABOUT when the communication does not start.
CONNECTION LOG
OF ETHERNET
897
10. ONLINE FUNCTION FS16i/18i/21iB PMCSA1/SB7 MANIPULATION B61863E/14
898
VI. STEP SEQUENCE
FUNCTION
B61863E/14 STEP SEQUENCE FUNCTION 1. GENERAL
1 GENERAL
901
1. GENERAL STEP SEQUENCE FUNCTION B61863E/14
1.1 The ladder method is most often used for programming the sequence
control governed by a programmable controller. This method, shown in
STEP SEQUENCE Fig.1.1(a) , was derived from relay-panel control circuits. Since it has
METHOD been in use for years, many sequence control engineers are already
familiar with it. This method is also used in PMC sequence
programming.
CALL
CALL
Subprogram
Subprogram
902
B61863E/14 STEP SEQUENCE FUNCTION 1. GENERAL
Step 1
Transition
Step 2
Drawing flow
903
1. GENERAL STEP SEQUENCE FUNCTION B61863E/14
Transition F Machiningcompleted?
Once machining has been completed
Step G Unloads the workpiece to the pallet.
(Process 4)
Transition H Unloadingcompleted?
Once unloading has been completed
Step I Moves the pallet. (Process 5)
904
B61863E/14 STEP SEQUENCE FUNCTION 1. GENERAL
1.2 This manual uses the graphical symbols listed in Table 1.2 to describe step
sequence flowcharts. Depending on the character font being used, the
GRAPHICAL actually displayed symbols may differ slightly from those listed here.
SYMBOLS These graphical symbols are described in the subsequent chapters.
Display
Display of FANUC LADDER
Contents programming of
manual CNC Device
Personal
Computer
Step
Sn Sn Sn
Initial
Step [ ] Sn [ ] Sn [ ] Sn
Transition
Pn Pn Pn
Divergence of
Selective
Sequence
Convergence
of
Selective
Sequence
Divergence of
Simultaneous
Sequence
Convergence
of
Simultaneous
Sequence
Jump
Ln > Ln > Ln
Label
Ln < Ln < Ln
Block Step
] Sn ] Sn ] Sn
Initial
Block Step [ ] Sn [ ] Sn
[ ] Sn
End of
Block Step
905
1. GENERAL STEP SEQUENCE FUNCTION B61863E/14
1.3 Follow the procedure below to create a step sequence program. Use a
personal computer on which the FANUC LADDER software package is
PROGRAMMING installed to code (edit) a program. Use a CNC to execute, debug and
correct the ladder subprogram.
(1) Create step sequence program (editing)
(2) Create a subprogram of ladder diagram (editing)
(3) Compile
(4) Transfer to the CNC device (with the memory card or RS232C)
(5) Write to the FlashROM
(6) Execute
(7) Diagnosis and debugging
(8) Correct a subprogram of ladder diagram (editing)
RS232C
Personal CNC device
Computer
PMC- SB4/SB6/
Memory SC4/NB2
card
FANUC LADDER
(5) Write to the FlashROM
software (4) Transfer to the FlashROM
CNC device
906
B61863E/14 STEP SEQUENCE FUNCTION 1. GENERAL
: usable
Personal computer
PMC-SB4/
Functions SB6 PMC-SC4 PMC-NB2 FANUC FANUC FANUC
LADDER LADDER II LADDER III
Display and edit of a program
Display of subprogram list
Create a new subprogram
Delete a subprogram
Edit a subprogram of Step Sequence form
Edit a subprogram of ladder diagram
Compile
Decompile
Execution of program
execution of a ladder diagram
execution of Step Sequence program
NOTE
While step sequence functions are being used, some of the
diagnosis and debug functions supported by the ladder
method cannot be used. For details, see 6.4 (Support
Functions).
907
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
908
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
(Block)
[ ] S1 (Initial Step)
P100 (Transition)
S2 (Step)
P101 (Transition)
L1 (Label)
S3
(Divergence of
Simultaneous
Sequence)
(Convergence of
Simultaneous
Sequence)
L1 (Jump)
909
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
(1) Step
Sn
(Pm)
910
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
(3) Transition
Pn
S1 (step1) S1 (step1)
P10 P10
S2 (step2) S2 (step2)
911
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
[ ] Sn
(Pm)
[ ] S1 (step1) [ ] S1 (step1)
P10 P10
S2 (step2) S2 (step2)
P20 P20
S3 (step3) S3 (step3)
912
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
S1
(Divergence of selective sequence)
P21 P22 P23
S21 S22 S23
S1 S2
(true) (true)
S21 S22 S23 S21 S22 S23
913
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
S1
P10
(Divergence of
simultaneous
sequence)
S21 S22 S23
(Convergence of
simultaneous
sequence)
S4
S1
P10 (true)
S4
914
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
L1 L1 (Label)
S1 (step1) S1 (step1)
P10 P10
S2 (step2) S2 (step2)
P20 P20
S3 (step3) S3 (step3)
L1 (Jump) L1
[ ] [ ]
915
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
[ ]
CALLU P2
CALLU P3
Block3 (P3)
[ ]
] Sn
(Pm)
[ ] S1 [ ] S231
S232
S21 S22 ] S23
(P2) S233
S3
The program shown in Fig. 2.1 (k) is equivalent to in Fig. 2.1 (l).
which does not use a block step.
916
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
Block (P1)
[ ] S1
S232
S233
S3
917
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
2.2
EXECUTION OF STEP
SEQUENCE
Editing Compile Executing
(source program) (ROM format program)
First level
(Ladder diagram)
Second level
(Ladder diagram) CALL
CALL
END2 (SUB 2) function
Third level
(Ladder diagram)
Subprogram P1
(Ladder diagram)
[ ] Subprogram P2
(Step sequence)
Subprogram P3
(Ladder diagram)
[ ] Subprogram P4
(Step Sequence)
S
S
Subprogram Pn
918
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
First level
Second level
Third level
(depends on
the PMC model)
919
2. STEP SEQUENCE BASICS STEP SEQUENCE FUNCTION B61863E/14
CALLU P2
R0. 0
CALL P1
P1 (Ladder diagram)
P2 (Step sequence)
L1
[ ] S1 (P3)
P4
S2 (P5)
P6
L1
P3 (Ladder diagram)
P4 (Ladder diagram)
920
B61863E/14 STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS
In the step sequence program shown in Fig. 2.2 (c), when step S1 is
activated, subprograms are executed according to the timing illustrated in
Fig. 2.2 (d).
8msec
T msec
Subprogram
P2 P1
Step
P3 P4
Transition
921
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
922
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
B61863E/14 STEP SEQUENCE FUNCTION PROGRAMS
Sn
(Pm)
[Contents]
D Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm) specifying actua processing, for a step.
D Assign a step number to a step.
D The same step number cannot be used twice in a program.
D A step has three logical states: the execution, transition to halt, and
halt states. The execution state is also called the active state. The
transition to halt and halt states are collectively called the inactive
state.
Sn.0
State Contents of operation Display
NOTE)
Activate Execution Activated step.
The action program (subprogram) is Sn 1
being executed.
NOTE
Refer to VI4.2 PMC ADDRESS (S ADDRESS)
Transition A
Inactivate (halt state)
Step B
Transition A
923
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
[Example]
After the M7 code is decoded, control is transferred to the next step using
a DEC functional instruction.
S1
(P1) Subprogram P1
MF R0.0
DEC F0 f
F7.0
711
924
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
B61863E/14 STEP SEQUENCE FUNCTION PROGRAMS
[ ] Sn
(Pm)
[Contents]
D Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm) specifying the actual processing, for an
initial step.
D All initial steps are activated when the other steps are not activated.
D Each block must contain at least one initial step. No limit is applied
to the number of initial steps contained in a block.
D A block having no initial step cannot be executed if called.
D Assign a step number to an initial step.
D The same step number cannot be used more than once in a program.
D In parallel branch, one initial step is required for each path. (See
example 2.)
[Example1]
L1
[ ] S1 When a program is executed, step P1, specified by
an initial step, is activated first.
P101
L1
925
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
Example2
L1
When a program is executed, steps S3 and
S1 S4, specified by an initial step, are activated
first.
P101
[ ] S4 S5
P110
L1
3.3 A transition specifies the conditions governing the transition from the
step to the next step.
TRANSITION
[Display]
Pn
[Contents]
D Only one transition is required between steps.
D Transition between steps is performed as described below.
926
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
B61863E/14 STEP SEQUENCE FUNCTION PROGRAMS
[Contents]
D Transitions are placed after a divergence of selective sequence.
D The step connected to the transition for which the conditions are true
is first activated.
D When the conditions for any transition are true simultaneously, the
leftmost step is activated.
D A selective sequence can create up to 16 paths.
[Example]
[ ] S1
When the conditions for P101 are
satisfied earlier than those of P102,
P100 P101 step S3 is activated.
S2 S3
[Contents]
The number of divergent paths must match that of the convergent
paths.
[Example]
S4
927
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
[Contents]
D A transition must be placed before a divergence of simultaneous
sequence.
D All branched steps are activated simultaneously, then executed.
D A simultaneous sequence can create up to 16 paths.
[Example]
[ ] S1
When the transition P101 evaluates true,
P101 step S2 and S3 are activated simultaneously.
S2 S3
928
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
B61863E/14 STEP SEQUENCE FUNCTION PROGRAMS
[Contents]
D A convergence of simultaneous sequence is processed as follows.
P120
S21
P109
S20
case2 )
P110
S20
929
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
Ln
[Contents]
D Specify a jump destination label (Ln).
D The step to which control is transferred (jumped) is activated.
D The jump destination must be within the same program.
D A jump cannot be performed from outside a simultaneous sequence
to within the simultaneous sequence, or from within a simultaneous
sequence to outside.
D A jump cannot be performed between parallelbranched paths.
[Example]
L1
[ ] S1
When steps S4 and S5 ar
P101 executed and the transition P110
evaluates true, the program is
repeated from initial step S1.
S2 S3
P102 P103
S4 S5
P110
L1
Ln
[Contents]
Specify the jump destination label (Ln).
[Example]
Refer to an example described on the jump function (3.8).
930
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
B61863E/14 STEP SEQUENCE FUNCTION PROGRAMS
] Sn
(Pm)
[Contents]
Define a step number (Sn), which controls the execution of a bloc
step, and a subprogram (Pm) specifying the actual process, for a
block step.
CAUTION
Assign a step number to a block step.
The same step number cannot be used twice in a program.
A transition must be placed after a block step.
Example)
S1 S1
P101 P101
] S2
(P2) P2
S20 S20
equal
P120 P120
S21 S21
P121 P121
P102
S3 S3
Transition P102 cannot be omitted due to the syntax of the step sequence method. Specify
a dummy transition, which becomes always true, for transition P102.
Transition P121 must specify the transition condition for the termination of the step S21.
When the conditions of transitions P102 and P121 are switched, step S21 will not be correctly
executed.
931
3. CONFIGURATION AND OPERATION
OF STEPSEQUENCE
PROGRAMS STEP SEQUENCE FUNCTION B61863E/14
[ ] Sn
(Pm)
[Contents]
D Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm)specifying the actual processing, for an
initial step.
D This step has the same function and graphical symbol asan initial
step.
[Contents]
D Use this step to terminate a block step.
D Each block requires at least one end block step. No limit is applied
to the number of end block steps.
[Example]
[ ] S1
P100 P103
S2
P102
932
4. EXTENDED LADDER
B61863E/14 STEP SEQUENCE FUNCTION INSTRUCTIONS
933
4. EXTENDED LADDER
INSTRUCTIONS STEP SEQUENCE FUNCTION B61863E/14
4.1 [Function]
FUNCTIONAL D This instruction describes that the conditions for a transition have
been true.
INSTRUCTION TRSET D This instruction is used in a subprogram which is called from a
transition.
[Format]
ACT
TRSET
(SUB122)
4.2 [Contens]
PMC ADDRESS D This address is used to read the logical state of a specified step.
(S ADDRESS) 0 : Transition to halt state, or halt state
1 : Execution state
D This address is used for creating a program in which detailed
transitions of the execution states between steps are considered.
Specify the number of the step to be read.
Example) To reference the state of the step S100
S100. 0
D This address allows any subprogram to reference the state of any step.
D Data cannot be written into state signal Sn. 0.
D A ladder can be configured for the TRSET transition instruction
using state signal Sn. 0. Referencing state signal Sn. 0, however,
adversely affects the portability and comprehensibility. Use this
feature sparingly.
[Example]
This address is used to reference the activation states of steps in a step
in which this address has been specified, and performs complicated
wait processing in a program including a simultaneous sequence.
S1 S4
P1 P4 Sub program
S5.0
S2 S5 TRSET
P2 P1
S3 S6
934
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
935
5. SPECIFICATION OF STEP
SEQUENCE STEP SEQUENCE FUNCTION B61863E/14
5.1
SPECIFICATION Contents/Kind of PMC PMCRB4/RB6/RC4/NB2
Number of subprogram Up to 2000 (P1 to P2000)
Number of step Up to 1000 (S1 to S1000)
Number of label Up to 9999 (L1 to L9999)
Number of jump in block Up to 256
Nesting depth of block step Up to 8 levels
Size of block 64 lines 32 columns
Number of paths Up to 16 paths
@@@@
@@@@
@@@@
Up to 16 paths
@@@@
@@@@
Up to 16 paths
936
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
D The transition shall never be repeated even at the point of the divergence
and the convergence.
S1 S1
Correct
P1
P2 P10 P1 P10
S3 S10 S3 S10
S2 S10 S2 P10
Correct
P2 P11 P2 P11
P12
S12 S12
937
5. SPECIFICATION OF STEP
SEQUENCE STEP SEQUENCE FUNCTION B61863E/14
S1 S2 S1 S2
P2 P2
S3 S4 S3 S4
Correct
P1 P3
S5 S5 (dumy)
P1
S6
S1 P2 P4 S1 S2 (dummy)
S2 S3
P2 P4
P3 P5
S3 S4
Correct P3 P5
P1
S5 (dummy)
S4
P1
S6
938
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
S1 S2 S1 S2
Correct
P1 P10
S3 S10
S2 S10 S2 S10
Correct
P2 P11 P2 P11
S12 S13
S10
[ ] S100
P10 When block step S11 is used,
P100 transition P11 and P101 cannot
] S11 be omitted
S101
P11 note) P11 is a dummy transition.
The transition condition of
P101 P11 must always be true.
S12
939
5. SPECIFICATION OF STEP
SEQUENCE STEP SEQUENCE FUNCTION B61863E/14
P2 P4 Correct P2 P4
S2 S3 S2 S3
P3 P5 P3 P5
P2 P2
Correct
S2 S3 S2 S3
P3
P3
P1 P2 P1 P2
S2 S3 L1 Correct S2 S3 L1
P3 P3
S4 S4
P1 P2 P1 P2
S2 S2
P3 Correct P3
940
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
Subprogram P1
Subprogram P2
S10
S100
P10
P100
L1
S101
S11 S20
P101
P11 P20
S102
S12 L1
P1
S2 S10
P2 P10
S3 L1
P3
L1
S4
941
5. SPECIFICATION OF STEP
SEQUENCE STEP SEQUENCE FUNCTION B61863E/14
L1
S1
P1
S2 S10 S20
P2 P10 P20
S3 S11 L1
942
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
5.3 The use of the following functional instructions is restricted in steps and
transitions.
EXCLUSIVE
CONTROL FOR Group Description
Functional
instructions
FUNCTIONAL
A The instructions operate when a signal changes CTR (SUB5)
INSTRUCTIONS Con Multiple functional instructions having the same
CTRC (SUB60)
TMR (SUB3)
dition number are used. TMRB (SUB24)
TMRC (SUB54)
Prob Not activated. DIFU (SUB57)
lem Correct operation cannot be guaranteed. DIFD (SUB58)
B Restriction due to the interface. WINDR (SUB51)
WINDW (SUB52)
Con Data is input or output by using two subprograms. DISP (SUB49)
dition DISPB (SUB41)
Prob Invalid return value. EXIN (SUB40)
lem Not terminated. AXCTL (SUB53)
S1 Subprogram P100
(P100) R0.0
CTR 1 ( )
P1
S2
(P100)
X1.0
Subprogram P1
X1.0
TRSET
943
5. SPECIFICATION OF STEP
SEQUENCE STEP SEQUENCE FUNCTION B61863E/14
Correct program
Divide the subprogram so that ACT of CTR is called after it is set to
off.
S1 Subprogram P100
(P100)
R0.0
CTR 1 ( )
P101
S2
(P102)
X1.0
P103
S3
(P100)
Subprogram P101
X1.0
P101 TRSET
S4
(P102)
Subprogram P102
R0.0
P103 CTR 1 ( )
R9091.0
Subprogram P103
R9091.1
TRSET
NOTE
In the window instructions (WINDR and WINDW),
lowspeedtype is included the functional instructions of
group B.
944
5. SPECIFICATION OF STEP
B61863E/14 STEP SEQUENCE FUNCTION SEQUENCE
Example)
S1 Subprogram P100
(P100) R9091.1 R0.0
P1 WINDR R10 ( )
S2
(P101) Subprogram P1
R0.0
TRSET
Subprogram P101
R9091.0 R0.0
WINDR R10 ( )
Correct program
Correct the program so that ACT is set to on and off within one
subprogram.
S1 Subprogram P100
(P100) R9091.1
R0.0
P1 ( )
S2 CALLU P2
(P101)
Subprogram P1
R0.0
TRSET
Subprogram P101
R9091.0 R0.0
( )
CALLU P2
Subprogram P2
R0.1 R0.0
WINDR R10 ( )
945
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
6 CRT/MDI OPERATION
946
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
6.1 The diagnosis and debugging of a step sequence program have four
screens.
DISPLAYING OF
SEQUENCE (1) Program configuration list (main screen)
PROGRAM (2) Step sequence screen
(3) List screen
(4) Ladder screen
6.1.1 Press the [STPSEQ] key and display the program configuration list.
Program Configuration
List (Main Screen) STPSEQ <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN
P0001 ( ) SUB PROGRAM NO.1
NOTE
The third level ladder can be omitted.
[ZOOM] key
To display the contents of a program, position the cursor to the
program number and press the [ZOOM] key. The step sequence
diagram (Fig. 6.1.2 (b)) or ladder diagram (Fig. 6.1.3 (c) is
automatically displayed according to the type of the program.
[TIME] key
Press the [TIME] key to display the time display screen (Fig. 6.2.1)
and time monitor screen (Fig. 6.3).
[PADRS/PSYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [PADRS] key
ispressed, the addresses are displayed. When the [PSYMB] key is
pressed, the symbols are displayed.
947
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
6.1.2 (1) Position the cursor to a program indicated by V], then press the
[ZOOM] key.
Step Sequence Screen
STPSEQ <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN
P0407 (MAIN ) STEP SEQUENCE NO.1
< L4
] S2 S10 S20 S30
S15 S24
948
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
Meaning of display
Display Contents Display by [ZOOM] key
[V] Sxxx Initial step Ladder diagram
V Sxxx Step Ladder diagram
V] Sxxx Block step Step sequence diagram
+ Pxxx Transition Ladder diagram
Selective sequence Cannot zoom.
Simultaneous sequence Cannot zoom.
[ UP ] [ DOWN ] [ ] [ ] [ ZOOM ]
[ MAIN ] [ CHANGE ] [ ] [ ] [ ]
949
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
[ZOOM] soft ke
To display a program, position the cursor to the program number and
press the [ZOOM] key. The step sequence screen (Fig. 6.1.2 (b)) or
ladder screen (Fig. 6.1.3 (c)) is automatically displayed according to
the type of the program.
[MAIN] key
Press the [MAIN] key to return to the program configuration list.
[TIME] key
Press the [TIME] key to display the time display screen (Fig. 6.2.1).
[PADRS/PSYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [PADRS] key
is pressed, the addresses are displayed. When the [PSYMB] key is
pressed, the symbols are displayed.
[CHANGE] key
Press the [CHANGE] key to return to the step sequence diagram.
6.1.3 (1) Position the cursor to a program indicated by V, then press the
[ZOOM] key.
Ladder Screen
STPSEQ <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN
< L4
] S10 S20 S30
S2
P2 P10 P13 P20 P30
< L2
S3 S11 S13 S21 S31
950
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
Example)
When the cursor is positioned to P2, press the [ZOOM] key,
subprogram P2 is displayed.
(2) Ladder Screen
The signals currently set to on are displayed in white (highlighted on
a monochrome display).
R9091.1
MOVN 20
D10
R10
FIN
FIN
/ WINDR R10 ( )
FIN
MOVN 20
R10
SUB 45 D10
END1
SUB 1
RET
NEXT
FSRCH
[TOP] key
Displays the top of a subprogram.
[BOTTOM] key
Displays the bottom of a subprogram.
[SRCH] key
Searches for the specified address.
951
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
[WSRCH] key
Displays the ladder in which the specified address is used as a coil
address.
[NSRCH] key
Displays the ladder having the specified net number, at the top of
the screen.
[FSRCH] key
Displays the specified functional instruction, at the to of the
screen.
[ADRESS/SYMBOL] key
Displays the addresses specified with relays and coils, using
addresses or symbols, if symbols have been assigned. When the
[ADRESS] key is pressed, the addresses are displayed. When the
[SYMBOL] key is pressed, the symbols are displayed.
[TRIGER] key
With a manual operation or a signal trigger function, a renewal
screen of a ladder monitoring function is stopped. By this
function, the signal status when one signal is changed is certainly
checked.
[WINDOW] key
Splits the screen into two sections, allowing the display of two
ladder positions in a subprogram.
[DUMP] key
Displays the contents of addresses at the bottom of the screen.
[DPARA] key
Displays the data specified with functional instructions.
[ONLEDT] key
While a sequence program is executing, a part of the ladder
diagram can be changed.
952
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
6.2.1
Time Screen
STPSEQ <<STATUS>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN
953
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
6.2.2 When an activated state remains set for longer than the specified time,
Monitoring Elapsed the state may be determined as being erroneous. The elapsed time can be
specified for up to eight steps.
Time
When an activated state remains set for longer than the specified time,
(1) OVER is displayed at the corresponding step number on the
STPSEQ/TIME screen.
(2) Execution of the ladder continues.
(3) The bit of address R9118 which corresponds with the step number is
set to
1. The processes for the error status can be program by the ladder
diagram. And the following message is displayed on the
PMC/ALARM screen.
ER48 STEP SEQUENCE TIME OVER (xxH)
xx displays the content of address R9118 in hexadecimal code.
Time Corresponding Time Corresponding
Number Address Number Address
1 R9118.0 5 R9118.4
2 R9188.1 6 R9118.5
3 R9188.2 7 R9188.6
4 R9188.3 8 R9188.7
954
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
6.3 Operation time limits can be specified for a step sequence program. Up
to eight steps can be monitored.
MONITOR TIME
SCREEN
STPSEQ<<MONITOR>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN
[ DELETE ] [ ] [ ] [ ] [ ]
[DELETE] key
Delete the definition of monitor time.
Operation
Definition of monitor
(1) Position the cursor at the input position and input a step
(or symbol).
955
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
Deletion of monitor
Position the cursor at the deletion and press [DELETE] key.
Alteration of monitor
Position the cursor at the alteration position and input again.
956
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
6.4 The display and editing of a step sequence program per subprogram
aresupported.
EDITING FUNCTION A step sequence program is allowed to be displayed and a ladder diagram
OF LADDER is allowed to be displayed and edited.
DIAGRAM
6.4.1 Press the [EDIT] and [LADDER] key and display the program
Program Configuration configuration list.
List (Main Screen)
STPSEQ <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP
P0001 ( ) SUB PROGRAM NO.1
NOTE
The third level ladder can be omitted.
[ZOOM] key
To display the contents of a program, position the cursor to the
program number and press the [ZOOM] key. The step sequence
diagram (Fig. 6.4.2 (b)) or ladder diagram (Fig. 6.4.3 (c)) is
automatically displayed according to the type of the program.
[PADRS/PSYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [PADRS] key
is pressed, the addresses are displayed. When the [PSYMB] key is
pressed, the symbols are displayed.
957
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
6.4.2 (1) Position the cursor to a program indicated by j], then press the
[ZOOM] key.
Step Sequence Screen
LADDER <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP
P0407 ( ) STEP SEQUENCE NO.1
< L4
] S2 S10 S20 S30
S15 S24
958
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
Meaning of display
Display Contents Display by [ZOOM] key
[V] Sxxx Initial step Ladder diagram
V Sxxx Step Ladder diagram
V] Sxxx Block step Step sequence diagram
+ Pxxx Transition Ladder diagram
Selective sequence Cannot zoom.
Simultaneous sequence Cannot zoom.
959
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
[MAIN] key
Press the [MAIN] key to return to the program configuration list.
[CHANGE] key
Press the [CHANGE] key to return to the step sequence diagram.
[PADRS/PSYMB] key
Displays the addresses specified to subprograms, using addresses
or symbols, if symbols have been assigned. When the [PADRS]
key is pressed, the addresses are displayed. When the [PSYMB]
key is pressed, the symbols are displayed.
6.4.3 (1) Position the cursor to a program indicated by j, then press the
[ZOOM] key.
Ladder Screen
Example)
When the cursor is positioned to LEVEL1, press the [ZOOM] key, the
first level ladder is displayed.
< L4
] S10 S20 S30
S2
P2 P10 P13 P20 P30
< L2
S3 S11 S13 S21 S31
Example)
When the cursor is positioned to P2, press the [ZOOM] key, the
subprogram P2 is displayed.
960
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
R9091.1
MOVN 20
D10
R10
FIN
FIN
/ WINDR R10 ( )
FIN
MOVN 20
R10
SUB 45 D10
END1
SUB 1
961
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
6.5 The following ladder diagnosis and debugging functions can be used
together with the step sequence functions.
CORRESPONDING
FUNCTION : can be used
: can be used on condition
: cannot be used
Functions PMCSB4/ PMCSC4 PMCNB2
SB6
PMC Ladder diagram display (PMCLAD)
PMC I/O signal display (PMCDGN)
Title screen (TITLE)
Signal status screen (STATUS)
Alarm screen (ALARM)
Trace screen (TRACE)
Contents of Memory (MEMORY)
Signal Waveforms screen (ANALYS) NOTE1
Running State of a User Task (USRDGN)
PMC Parameters screen (PMCPRM)
Timer screen (TIMER)
Counter screen (COUNTR)
Keep relay screen (KEEPRL)
Data table screen (DATA)
Simple setting screen (SETING)
Step Sequence screen (STPSEQ)
Displaying Step Sequence screen
Displaying Ladder screen
SEARCH
Display address and symbol
Trigger function (TRIGER)
Divided screen function (WINDOW)
Contents of memory (DUMP)
Contents of parameter (DPARA)
online editting (ONLEDT)
Time screen (TIME)
Monitor time screen (MONIT)
Execute or stop the sequence program (RUN)
Edit function (EDIT) NOTE1
Title screen (TITLE)
Ladder diagram (LADDER)
Symbol screen (SYMBOL)
Message screen (MESAGE)
Definition of I/O (MODULE)
Cross reference (CROSS)
Memory clear (CLEAR)
Input and output
FANUC LADDER (HOST)
Floppy cassette (FDCAS)
FlashROM (FROM)
Memory card (MCARD) NOTE2
Other I/O device (OTHERS)
System Parameter (SYSPRM) NOTE1
Debug function (MONIT) NOTE1
Ladder debug function (DBGLAD)
Descriptor table screen (GDT)
User memory screen (USRMEM)
User program debug function (DEBUG)
NOTE
1 An Editor card is needed.
2 It is possible to use while an Editor card is not mounted.
(Can be used with the 16i/18i/21i.)
962
B61863E/14 STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION
6.6 The PMCSB4, SB6, SC4 and NB2 can be used with either the ladder
method or step sequence method. When a step sequence program is
COMPATIBILITY OF transferred to the old version of the PMC, ER08 OBJECT UNMATCH
LADDER DIAGRAM is displayed on the PMC/ALARM screen.
The model setting of FANUC LADDER determines whether the ladder
or step sequence method is used. The STEP SEQUENCE item has been
added to the system parameter screen for future expansion. Specify the
parameter according to the model setting of FANUC LADDER.
To create a program with the builtin edit function, after the parameter has
been set execute CLEAR ALL. Alternatively, while holding down X
and O key, turn the power off and on.
When the step sequence method is used: STEP SEQUENCE = YES.
When the ladder method is used: STEP SEQUENCE = NO.
>
[BINARY] [ BCD ] [ ] [ ] [ ]
KEY DI ADDRESS =
LED DO ADDRESS =
>
[ YES ] [ NO ] [ ] [ ] [ ]
963
6. CRT/MDI OPERATION STEP SEQUENCE FUNCTION B61863E/14
LANGUAGE ORIGIN = H
(LANGUAGE AREA = H, SIZE = KB)
>
[BINARY] [ BCD ] [ ] [ ] [ ]
KEY DI ADDRESS =
LED DO ADDRESS =
>
[ YES ] [ NO ] [ ] [ ] [ ]
964
VII. PMC PROGRAMMER
(SYSTEM P series)
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 1. GENERAL
1 GENERAL
series 16/18/20/21
Machine tool
/Power MateD
Floppy PRINTER
input/output
Sequence program figure output
Fig. 1
967
2. FUNCTIONS OF
PROCESSING PMC PROGRAMMER (SYSTEM P series) B61863E/14
2 FUNCTIONS OF PROCESSING
968
2. FUNCTIONS OF
B61863E/14 PMC PROGRAMMER (SYSTEM P series) PROCESSING
969
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
970
3. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (SYSTEM P series) CONNECTIONS
971
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
3.2 For details of the connections of SYSTEM P series unit power supply,
PPR, and other units as well as their operation, refer to the following
CONNECTIONS OF operators manuals.
UNITS
SYSTEM PG Mark II: B66014E
SYSTEM PG Mate: B66003E
This chapter mainly describes the connections between SYSTEM P series
and I/O devices.
972
3. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (SYSTEM P series) CONNECTIONS
973
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
Adaptor for
ROM modules
(FANUC FA WRITER)
CN2 CN1
EPROM for the PMC CN4 CN3
FANUC PRINTER
974
3. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (SYSTEM P series) CONNECTIONS
3.3 Figs. 3.3(a) (b) show the panel of the SYSTEM P series keyboard.
KEYBOARD OF It is not necessary to memorize the meanings of keys on the keyboard.
SYSTEM P SERIES Descriptions of these keys and menus are displayed on the SYSTEM P
series screen by operation, and you can easily operate the SYSTEM P
series board while monitoring the SYSTEM P series screen.
In this chapter, you should understand an outline of functions of these
keys.
Soft keys
Function keys
Function keys
Numeric keypad
Standard keyboard
Function keys
975
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
3.3.1 This key is used to load the FANUC LADDER system program into the
LOAD Key (System SYSTEM P series memory through a floppy disk at the first time after
turning on power.
Program Loading Key)
3.3.2 F key is used to select an I/O device among I/O devices connected at that
F Keys (F1 to F0) time.
These F keys are provided with an LED. When depressing a key, the LED
lights, and when depressing the key once more, the LED goes out. The
lighting condition of of this LED indicates that an I/O has been
designated. No I/O device is operable when its corresponding LED is not
lighting.
The correspondence between F keys and I/O devices is as shown below.
(I) shows an input, while (O) shows an output.
(1) <F1> key: FANUC PPR paper tape reader (I)
(2) <F2> key: Floppy disk input (I)
(3) <F3> key: Not used
(4) <F4> key: Display of ladder diagram on SYSTEM P series screen
(O)
(5) <F5> key: FANUC PPR printer (O)
(6) <F6> key: FANUC PPR paper tape puncher (O)
(7) <F7> key: Floppy disk output (O)
(8) <F8> key: PMCPA1/PA2/SA1/SA2/SB/SB2/SC (I/O)
(9) <F9> key: FANUC PMC writer, FANUC FA writer (I/O)
(10) <F10> key: FANUC printer (O)
(The ladder diagram is printed on the printer.)
(11) <F13> key: FANUC Floppy Cassette/FANUC FA Card adapter (I)
(12) <F14> key: FANUC Floppy Cassette/FANUC FA Card adapter
(O)
Combination of F key and menu number of FANUC LADDER decided
which function is to be executed.
976
3. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (SYSTEM P series) CONNECTIONS
3.3.3 Four R keys <R0> to <R3> are provided. The meaning of these keys differ
R Keys (R0 to R3) according to the screen conditions at their operating time, even in case of
the same key.
(1) R key menu screen
This screen is obtained just after loading a FANUC LADDER system
program (1/2) or when pressing <NL> key only in a menu screen.
Refer to Fig. 4.2.2.
<R0> FANUC ladder start.
. A menu screen appears.
<R1> Editing a ladder diagram starts.
<R2> Not used in FANUC ladder. (Not accepted when pressing
these keys)
<R3> Request key (see 4.8)
Press NL keys, if a wrong key was pressed by mistake. The screen is
reset to the condition before pressing the wrong R key.
(2) Other than R key menu screen
<R0> This key operation is accepted when EDIT is displayed at the
lower left part of the screen (called EDIT screen hereafter)
during sequence program editing. The screen is switched to
the sequence program, symbol, message, I/O module, and
title, each time this R key is pressed.
<R1> 1 When this key is pressed during printing of a ladder
diagram on an external printer, the printer stops every page
to be ready for key entry.
2 When this key is pressed during data transfer between
SYSTEM P series and PMCSB/SC, data transfer is
stopped.
3 The signal display in a sequence program is alternately
selected to symbols and addresses, each time this R1 is
pressed during the display of the sequence program on the
screen.
<R2> Data on the last page are displayed, each time this key is
pressed on the EDIT screen.
<R3> 1 Data on the next page are displayed, each time this key is
pressed on the EDIT screen.
2 Transfer is aborted when this key is pressed during ROM
data transfer between SYSTEM P series and
PMCWRITER or floppy.
977
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
3.3.4 Data keys are used to enter data. To switch the output of such keys
Data Keys and Screen between the upper character and lowercharacter, use the [SHIFT] key or
[LOCK] key. Pressing the [SHIFT] key together with an arbitrary key
Scroll Key changes the output of the arbitrary key to the upper character, and pressing
the [LOCK] key changes the output of all keys to upper character. To
release the upper character mode, press the [LOCK] key again.
Special keys are described below.
(1) <NL> key
Data entry from the SYSTEM P series keyboard are input into
SYSTEM P series by depressing <NL> key.
Two <NL> keys are located on the keyboard for easily operation.
(2) <CAN> key
Data being entered from the keyboard are cancelled.
(3) BS key
Data being entered from the keyboard are sequentially deleted
leftward, each time this key is depressed.
(4) Arrow keys <> <> <> <>
These keys are accepted only when a ladder diagram is being
displayed on the screen, and used for scrolling the ladder diagram.
NOTE
None of [INS] [DEL] [CHG] [AUX] keys and K key is employable
in the FANUC LADDER.
978
3. COMPONENT UNITS AND
B61863E/14 PMC PROGRAMMER (SYSTEM P series) CONNECTIONS
979
3. COMPONENT UNITS AND
CONNECTIONS PMC PROGRAMMER (SYSTEM P series) B61863E/14
For this reason, when the PMCSA1, SA2 or SB is used, both the
FA Writer and PMC Writer can be used. When the PMCSC is used,
only the FA Writer is available.
When the PMCSA1, SA2 or SB is used, the ROM writer used can
be selected on the REQUEST screen as follows.
1 On the REQUEST screen, enter WRITER then press the <NL> key.
2 The following message appears. To select the FA Writer, enter 0
or press the <NL> key. To select the PMC Writer, enter 1.
SET KIND OF ROM WRITER (0:FA WRITER, 1:PMC
WRITER)
WRITER=
The current setting of the ROM writer can be checked on the system
parameter screen.
(1) PMC Writer
The PMC Writer is required when the PMCSA1, SA2, SB or
SB2 is available. To use a 1MB EPROM (27C1024), the 1M
EPROM adapter (A13B0147B001) is required. Set the
EPROM select switch to the 271024 position before using the 1M
EPROM adapter.
(2) FA Writer
When the FA Writer is used with the PMCSA1, SA2 or SB,
the EPROM adapter (1MB) for the FA Writer is required. When
the FA writer is used with the PMCRC, the ROM module
adapter is required.
980
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4 OPERATION
981
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.1 Various operations of FANUC ladder are done onthe specified screen.
GENERAL Fig. 4.1 shows the relation between various operations and corresponding
screens.
Keyin NL 00 or NL keyin
Menu screen
01 keyin 02 keyin 03 keyin 04 keyin 05 keyin 06 keyin 07 keyin 08 keyin 09 keyin 10 keyin
Edit Source ROM Source ROM Source ROM Unused Clear Parame-
screen program program program program program program screen ter set-
input input output output verify verify ting
screen screen screen screen screen screen screen
(PTR, (FD, (PTP, FD, (FD, (PTR, (FD,
FD, KB) RAM PRT) RAM FD) RAM
cassette) cassette) cassette)
E NL keyin
00 or NL keyin after
E NL keyin when an alarm occurred or when parameter setting.
processing was aborted halfway.
Automatic return when processing has been
terminated normally.
982
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
START
SYSTEM P power
on
Editing
NO
Is dedug
completed?
YES
SYSTEM P series
power off
END
983
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.2
PREPARATION
BEFORE OPERATION
4.2.1 The system floppy disk contains the system of FANUC LADDER for
System Floppy PMCSA1/SA2/SB/SB2/SC.
4.2.3 FANUC LADDER system programs are loaded into the floppy. Also,
Loading of Floppy sequence programs can be written from SYSTEM P series into the floppy
or input from the floppy.
The loading method of the floppy is described in detail in the operators
manual for SYSTEM P series.
The following describes the loading direction of the floppy.
Loading direction of floppy
984
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
Drive No. 0
Drive No. 1
CRT
985
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
SET I/O KEY & KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT.
NO. ITEMS
01 EDIT LADDER PROGRAM.
02 INPUT LADDER PROGRAM FROM PTR OR FD.
03 INPUT ROM DATA FROM FD, PMCRAM OR ROM.
04 OUTPUT LADDER PROGRAM TO PTP. FD OR PRINTER.
05 OUTPUT ROM DATA TO FD, PMCRAM OR ROM.
06 COMPARE LADDER PROGRAM WITH PTR OR FD.
07 COMPARE ROM DATA WITH FD, PMCRAM OR ROM.
Capacity of area
08 (UNUSED) used for symbols
09 CLEAR OF TITLE, SYMBOL, LADDER OR MESSAGE DATA. and comment data
986
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.2.6 Set parameters before inputting a sequence program without fail. Set
Parameter Setting and necessary parameters by changing from the menu screen to the parameter
setting screen (Fig.4.2.6), provided that the parameter setting screen is
Display automatically displayed just after loading the system floppy.
(Operation in step 1 is not required in the procedure below.)
1 Key in menu number 10 <NL> from the menu screen.
Turn off all F keys. The screen is switched, and the parameter setting
screen shown in Fig. 4.2.6 is displayed.
The initial value of each parameter is as shown in Fig. 4.2.6.
KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT TO SET PARA,S.
01 (UNUSED) ;
02 COUNTER DATA TYPE ; BINARY
03 OPERATOR PANEL ; NO
KEY/LED ADDRESS ; /
KEY/LED BIT IMAGE ADRS. ; /
04 PMC TYPE ; PMCRC
05 LANGUAGE ORIGIN ; 000000H
06 (UNUSED) ;
07 LADDER EXEC. ; 100% (1150%)
08 (UNUSED) ;
09 IGNORE DIVIDE CODE ; NO
10 (UNUSED) ;
00 NOTHING TO SET
; ROM WRITER=FA WRITER
NO.=
987
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
988
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
989
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.3
PROGRAM EDITING
4.3.1 Display the EDIT screen by keying in 1 <NL> from the menu screen.
Data Display and Press <R0> by necessary times until a desired screen appears from the title
to I/O module. The screen is switched in the sequence shown in Fig.
Setting (Title, Symbol, 4.3.1, each time <R0> key is pressed.
Ladder Program,
Comment, Message, Individual screens are reset to the menu screen by E <NL>. In this
paragraph, only the input and editing operation of each data from the
I/O Module)
keyboard is described.
For the I/O operations using a paper tape or a floppy, see 4.4 and 4.5.
(1) Title data (title data list screen).
Set the following data on sequence program as a comment.
EDIT screen
Ladder program list R0
screen
R0
R0
R0
I/O module data list Message data list
screen screen
R0
0003 ALTERED
EDIT
990
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
Number to be set
Example) A4 0001 NL
e) EDITION NO.
Set the edition number (max. 2 characters).
Key in A5 @@ NL.
Date to be set
Example) A7 1990.10.23 NL
991
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
h) PROGRAM DESIGNED BY
Set the sequence program designer name (max. 32 characters).
Key in A8 @@@..........@@@ NL.
Name to be set
Example) A8 MR.***&MISS *** NL
i) ROM WRITTEN BY
Set the name of the programmer who wrote a program into ROM
cassette (max. 32 characters).
Key in A9 @@@..........@@@ NL.
Name to be set
Example) A9 MR.***&MISS *** NL
j) REMARKS
Set remarks (memo) (max. 32 characters).
Key in A10 @@..........@@ NL.
Remarks to be set
Example) A10 MEMOCOMMENT NL
Set title data about all items in the above format for both entry and
alteration.
All characters are settable so long as they can be keyed in from
the SYSTEM P series keyboard. Set easytounderstand data
about individual items.
(2) Symbol and comment data (SYMBOL & COMMENT LIST screen).
A symbol means a signal name to be attached to each PMC I/O signal.
The comment data is a comment statement of the signal name.
The symbol is optionally settable within maximum 6 characters,
while the comment data are optionally settable within maximum 30
characters.
a) Input from keyboard (Insert)
Key in G0.1 SYMNAM COMMENT NL.
Comment data
Symbol name
Address
Mode selection(IS..., AS...) and line selection (I..., A...) need not
be specified when symbols or comment data are input or edited.
Also addresses (G, F, X, Y,...) can be entered in any sequence.
b) Alter
The operation is completely the same as that described in 2) a).
c) Insert
The operation is completely the same as that described in 2) a).
992
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
d) Delete
i) Delete every line
Key in D@@@ NL.
993
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
A means alter.
b) Delete
Delete message data every line in the following format.
Key in D@@@ NL.
994
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
b) Delete
Delete I/O module data every address by specifying it as follows:
Key in @@@@ NL.
Address of I/O module data to be deleted
(input X0, Y0, ...)
CAUTION
1 If the same slot number is specified when the group and base numbers are equal to each
other, alarm No. 88 occurs.
2 If an output module is specified at an input address or an input module is specified at an
output address, alarm No. 87 occurs.
3 If a module is set doubly to a preset address, alarm No. 81 occurs.
Example) When two IO modules, b are set as shown in the following figure;
a.
X000 2 0 1 FS08A
X001 2 0 1 FS08A
If an attempt is made to set a module to X014 like c., alarm No. 88 oc-
X002 2 0 1 FS08A
curs due to the reason in 1).
X003 2 0 1 FS08A
X004 2 0 1 FS08A
X005 2 0 1 FS08A
d.
X006 2 0 1 FS08A If an attempt is made to set an output module to X006 like d., alarm
No. 87 occurs due to the reason in 2).
X007 2 0 1 FS08A
X008 b.
X009 2 1 8 ID16C
X010 2 1 8 ID16C
X011 If an attempt is made to set input module ID32B to X006 like d., alarm
No. 81 occurs due to the reason in 3). In this case, this input module
X012 must be set after deleting a. and b. modules once.
X013
X014 c.
2 1 8 ID16C
X015 2 1 8 ID16C
The module names (FS08A, CT01A, etc.) used for input and output in common are out of the objects
of check in 1) and 2).
995
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
NOTE
1 Instructions to be keyed in are entered by abbreviated
symbols as shown above for the purpose of preventing a
keyin failure and improving the operability by reducing the
number of keyin times. It is also allowable to input these
instructions by using their full names, like RD X0.1 <NL>.
Table 4.3.2 shows the correspondence between
abbreviated symbols and full names.
2 No severe format checking is performed for mnemonic
program. For example, the following program may be
correct with mnemonic programming.
However this program cannot be displayed as ladder
diagram nor printed out on the printer.
Wrong program
996
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
997
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
CAUTION
If an address is specified which can not be changed to a new
address, an alarm 09 occurs when the specified line will be
changed. In that case, previous lines correctly changed to
that line can be acceptable.
998
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
CA X0.1 X1.7 NL
EDIT= _ EDIT= _
Normal end of changing.
i. ii. iii.
00001 SUB1 00001 SUB1 00001 SUB1
00002 RD X0.1 00002 RD X0.1 00002 RD R1.2
00003 WRT R1.5 00003 WRT R1.5 00003 WRT R1.5
00004 RD R1.2 00004 RD X0.1 00004 RD R1.2
00005 WRT R1.3 00005 WRT R1.3 00005 WRT R1.3
00006 RD X0.1 00006 RD X0.1 00006 RD R1.2
00007 WRT R1.2 00007 WRTR1.2 00007 WRT R1.2
00008 RD R1.2 00008 RD R1.2 00008 RD R1.2
00009 SUB 8 00009 SUB 8 00009 SUB 8
00010 1111 00010 1111 00010 1111
00011 1111 00011 1111 00011 1111
00012 R1 00012 R1 00012 R1
00013 R2 00013 R2 00013 R2
00014 SUB 2 00014 SUB 2 00014 SUB 2
00015 SUB 48 00015 SUB 48 00015 SUB 48
999
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
b) Sequential insert
i) Key in IS@@@@@ <NL> (Insert Succession) to set the
sequential insert mode, and *IS MODE* is displayed at the lower
right part of the screen.
@@@@@:Line number just before the instruction to be inserted
(maximum 5 digits)
ii) Instructions are sequentially inserted starting with the line next
to the line specified by @@@@@, each time the keyin
operation is done in the R X0.1 NL format.
iii) After sequential insert, key in IE <NL> (Insert End).
Example) Sequential insert of a sequence program
For inserting multiple instructions after step number
20
(Key in sequence)
1 IS20 <NL> (Sequential insert start
command)
*IS MODE* is displayed at the
lower right part of screen.
1000
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
CAUTION
Input data after changing the symbol display into address
display by passing R1 key, if the address of the instruction
to be searched is defined by a symbol and displayed by the
symbol.
1001
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
CAUTION
This search applies to such a case as the address of the
instruction to be searched is defined by a symbol and the
symbol is displayed.
Example) L1 R1.0 NL
Start searching bit address R1.0 from 1st line.
L7 SMB NL
Start searching symbol name SM BL defined at
bit address from 7th line.
v) Continuous search
A specified command, address (only bit address) or its symbol name
is searched from 2nd line displayed on the screen.
Type in L ????? NL.
Command, bit address or its symbol name
to be searched
Type in F NL.
FIND: Search the same command, bit address or its
symbol name as that searched just before,
from 2nd line displayed on the screen.
1002
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.3.7 The ladder diagram can be displayed on the programmer function EDIT
Display of Ladder screen.
Diagram Set the screen to EDIT screen (LADDER PROGRAM LIST)
a) Turn on F4 key.
b) Depress <NL> key
The ladder diagram is displayed on the screen.
For displaying the sequence program in the mnemonic format from
the ladder diagram, turn off F4 key, and depress <NL> key.
The ladder diagram at an optional point can be displayed by the step
number search or instruction search method.
If a ladder diagram cannot be displayed on one screen, it can be
displayed by scrolling it leftward, rightward, upward, and downward
as shown in the following table.
c) Edition during LADDER diagram display
Sequence programs can be edited even on the LADDER diagram
screen display, (This function is convenience when sequence
programs are edited with seeing LADDER diagram print out list.)
From EDIT= in the LADDER diagram screen display, sequence
programs can be edited by the same operation as in editing programs
in the LADDER PROGRAM LIST screen.
1003
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
Example)
* LADDER DIAGRAM *
Y0.0
X0.0 2 Press R0 key to display the LADDER PROGRAM
LIST screen.
Two lines RDX1.0 AND WRT Y1.0 are added before
SUB1 (END1).
END2
~ ~
3 When the LADDER diagram is displayed again, the
diagram after adding the above two lines is displayed.
EDIT=
4.3.9 Key is E <NL> (End) after editing a sequence program, and the EDIT
Editing end screen is reset to the menu screen.
1004
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.4
INPUT OF PROGRAM
Feed % @0 CR % CR Feed
b) Title date
c) Symbol date
d) Ladder program
e) Message date
CR ~ Feed
1005
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
SET I/O KEY & KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT.
NO.ITEMS
01 EDIT LADDER PROGRAM.
02 INPUT LADDER PROGRAM FROM PTR OR FD.
03 INPUT ROM DATA FROM FD. PMCRAM OR ROM.
04 OUTPUT LADDER PROGRAM TO PTP. FD OR PRINTER.
05 OUTPUT ROM DATA TO FD. PMCRAM OR ROM.
06 COMPARE LADDER PROGRAM WITH PTR OR FD.
07 COMPARE ROM DATA WITH FD. PMCRAM OR ROM.
08 (UNUSED)
09 CLEAR OF TITLE. SYMBOL. LADDER OR MESSAGE DATA.
10 PARAMETER SET.
00 END EDIT & DISPLAY.
F1 : PTR (I) . F4 : GRP (O) SYMBOL =00.0KB SCAN TIMEOO8MS
F2 : FD (I) . F10 : EPRT (O) LADDER =00.0KB
F5 : PRT (O) MESSAGE=00.0KB
F6 : PTP (O)
F7 : FD (O) END SEQ.NO=00000
F8 : PMC (I/O) ERR SEQ.NO=00000
F9 : ROM (I/O) ERR BLOCK =00000
SET FD & KEY IN OK KILL OR NO
FD0 = OK @FILE NAME
<DRIVE><@NAME OR NUMBER>
NO.=
Example
1006
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
CAUTION
If sequence program instructions are sequentially entered
while a sequence program is loaded in the SYSTEM P
series memory, the instructions are entered into the
SYSTEM P series memory following the previously loaded
program. Clear SYSTEM P series memory, if a new program
is entered from the floppy. (see 4.7)
The SYSTEM P series memory is cleared by turning off the
SYSTEM P series power supply.
1007
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
1008
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
CAUTION
When using the SYSTEM P Mate, if ROM module B, C or
D is selected, overlay occurs. When cassette B or C is
selected, set the work floppy disk for external memory in
drive 1.
1009
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.5
OUTPUT OF
PROGRAM
SET I/O KEY & KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT.
NO. ITEMS
01 OUTPUT ALL DATA.
02 OUTPUT SYSTEM PARAMETER.
03 OUTPUT TITLE DATA
04 OUTPUT SYMBOL DATA.
05 OUTPUT MESSAGE DATA.
06 OUTPUT I/O MODUL DATA.
07 OUTPUT LADDER PROGRAM (MNEMONIC).
08 OUTPUT LADDER DIAGRAM (ONLY FANUC PRINTER).
09 OUTPUT CROSS REFERENCE (SEQUENCE NO.)
00 END
F5 : PRT (O) , F10 : FANUC PRINTER (O)
F6 : PTP (O) , F13 : CROSS REFERENCE (NO.8)
F7 : FD (O)
NO. =
Select a desired data and device from the above details menu screen by
combining the menu numbers and F keys.
(1) OUTPUT ALL DATA
All data of system parameters, titles, symbols, messages, I/O
modules and ladder programs (source format) are output to a device
specified by an F key.
Turn on an F key corresponding to the device to be output, and key
in detail menu number 01 <NL>.
If F10 key is turned on, all data are output to the FANUC printer
(external printer) and the ladder diagram is output last. If F13 key is
turned on furthermore, the ladder diagram is output with a cross
reference.
(2) OUTPUT SYSTEM PARAMETER
System parameter data are output to a device specified by an F key.
Turn on an F key corresponding to the device to be output, and key
in detail menu number 02 <NL>.
(3) OUTPUT TITLE, DATA
Title data are output to device specified by an F key.
Turn on an F key corresponding to a device to be output, and key in
detail menu No. 03 <NL>.
(4) OUTPUT SYMBOL DATA
Symbol data are output to device specified by an F key.
Turn on an F key corresponding to a device to be output and key in
detail menu number 04 <NL>.
The screen is switched and the following display appears.
OUTPUT = L@@@@ (,@@@@)
OUTPUT =_
Specify the output range by line numbers as follows.
1010
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
Example)
Key in L1, 100 NL
Output end liner number (If this parameter is
omitted, data are output to the last one.)
Output start line number
(5) OUTPUT MESSAGE DATA
Message data are output to a device specified by an F key.
Turn on an F key corresponding to a device to be output, and key in
detail menu number 05 <NL>.
The screen is switched and the following display appears.
OUTPUT = A@@.@ (,@@.@)
OUTPUT =_
Specify the output range by addresses as follows.
Example)
Key in A1.0,10.1
Output end address (If this parameter is
omitted, data are output to the last one.)
Output start address
(6) OUTPUT I/O MODULE DATA
I/O module data are output to a device specified by an F key.
Turn on an F key corresponding to a device to be output, and key in
detail menu number 06 <NL>.
(7) OUTPUT LADDER PROGRAM (MNEMONIC)
Ladder program (source format) data are output to a device specified
by an F key.
Turn on an F key corresponding to a device to be output, and key in
detail menu number 07 <NL>.
The screen is switched and the following display appears.
OUTPUT = L@@@@ (,@@@@)
OUTPUT =_
Specify the output range by line numbers as follows.
Example)
Key in L1,100 NL
Output end line number (If this parameter is
omitted, data are output to the last one.)
Output start line number
(8) OUTPUT LADDER DIAGRAM (ONLY FANUC PRINTER)
A ladder diagram is output to the FANUC printer (external printer).
Key in detail menu number 08 <NL>, and then, turn on F10 key.
Turn on F13 key furthermore, if it is desired to output the ladder
diagram with a cross reference.
The screen is switched and the following display appears.
OUTPUT = L@@@@ (,@@@@)
OUTPUT =_
Specify the output range by line numbers as follows.
(Partial output is also possible.)
1011
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
Example)
Key in L1,100 <NL>
Output end line number (If this parameter is
omitted, data are output to the last one.)
Output start line number
ITEMS
ADDR=
CAUTION
D It takes time more or less from the end of operation on end
to the start of printer operation when outputting the
LADDER diagram with cross reference. (EXECUTING is
displayed on the screen.)
This time depends upon the size and complexity of
sequence programs. The cross reference is displayed by
the page number and the line number of the LADDER
diagram every contact.
See Appendix printout example.
D If R1 key is pressed when each data is being output to the
FANUC printer (External printer), the output is cancelled.
1012
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
G0000.0 *IT
653
G0000.1 *CST
653
G0000.4 *ESP
22 568 901 912 1177 1189 1288 2800
G0000.5 *SP
45 2802
G0000.7 ERS
3435 3512
G0001.0 *AIT
656
NOTE
1 When the same address performs double writing,*
MULTIPLE COIL USED * is displayed.
2 If the F10 key is set to OFF and output performed, the cross
reference table is displayed on the screen.
1013
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
1014
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
1015
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
1016
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.6
COLLATION OF
PROGRAM
4.6.1 Enter source programs from the designated input unit, and compare them.
The operation method is the same as source program entry, except that 6
Collation of Source
shall be designated as the menu number.
Programs
(1) Comparison with PTR
1 Turn on F1 key.
2 Key in menu number 6 NL.
(2) Comparison with FD
1 Turn on F2 key.
2 Key in menu number 6 <NL>.
3 The screen is switched, and the following message is displayed.
SET FD & KEY IN OK, KILL OR NO,
FD0=OK<DRIVE> <@NAME OR : NUMBER>
FD0=
Specify the file name to be compared.
After normal end, the screen is automatically reset to the menu screen.
Also, this menu screen is reset by keying in KILL
4.6.2 Compare ROM format program by reading it from the specified input
device. The operation method is the same as in ROM format program
ROM Format Program
input, except that menu number 7 is specified.
(1) Comparison with FD
1 Turn on F2 key.
2 Key in menu number 7 <NL>.
3 The following operation is the same as in 4.6.1 2) 3 and later.
(2) Comparison with PMCRAM
Display the I/O of PMC screen on the CRT/MDI before executing the
following operation.
1 Turn on F8 key.
2 Key in menu number 7 <NL>.
Note when comparing PG and PMCRAM : The comparison
between PG and PMCRAM should be performed immediately
after the data transfer. (When the comparison is made after the output
of ROM format data, the parity portion of data may become error.)
(3) Comparison with EPROM for PMC and ROM module
1 Turn on F9 key.
2 Key in menu number 7 <NL>.
The screen is switched, and the comparison of ROM program is
started. After normal end, the screen is automatically reset to the
menu screen.
1017
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.7 Delete ladder programs, symbols, message, titles, and I/O module data
being loaded into SYSTEM P series memory according to the following
DELETION OF procedure.
PROGRAMS
1 Put the screen to menu screen.
2 Key in menu No. 9 <NL>.
3 The screen is switched, and the following message is displayed at the
lower left part of the screen. See Fig. 4.7.
KEY IN 1,2,3,4 OR 5 OR NO
CLEAR/KEEP =
4 Key in data number of the data to be deleted or key in NO <NL>,
if it is not desired to delete any data. After processing, the screen is
automatically reset to the programmer menu screen.
KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT TO CLEAR DATA
NO. ITEMS
01 TITLE DATA
02 SYMBOL DATA
03 LADDER DATA
04 MESSAGE DATA
05 I/O MODULE DATA
06 ALL DATA CLEAR
KEY IN 1. 2. 3. 4. 5 OR 6 OR NO
CLEAR/KEEP =
1018
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.8 Key in <NL> alone at the menu screen to display the R key menu screen.
Key in R3 at the R screen, and the display REQUEST= will appear at
SPECIAL USES OF bottom left of the screen, making key inputs possible. Key in <NL> on
THE R3 KEY this screen to return to the R key menu screen.
R3 executes a large number of processings. For the FANUC LADDER
system, however, note the following two points:
(1) Floppy file name output
1 Press R3 key at the R key menu screen.
2 This will change the screen contents, displaying REQUEST= at
its left bottom.
3 Key in FDLIST <NL>.
4 The file name will appear on the CRT display. To print out the file
name, turn on the F5 (printer) key in advance.
(2) Change of I/O devices (for output to a printer other than that of PPR)
1 Key in IO PRT, CN3, F5 <NL> while the screen displays
REQUEST=. When the F5 key has been turned on in advance,
the data is printed on the printer connected to connector CN3 on
the SYSTEM P series rear side.
1019
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.9
DIRECT EDITING BY
LADDER DIAGRAM
4.9.1 Using the PG Mate/Mark II software keys (in the case of PG Mate, the
Outline F keys), sequence program creation and editing can be performed directly
by the ladder diagram.
In the following explanation, [PG Mate] is called [Mate] and [PG Mark
II] is called [Mark II].
When it is possible to use this function, in the R key menu screen
R1: EDIT
is displayed. (In systems where [UNUSED] is displayed, it cannot be
used.)
The following items are present in the edit function.
D Ladder diagram direct editing by software key and cursor (input,
addition, deletion and substitution)
D Copying, moving and deletion of multiple lines of the ladder
D Optional relay and coil reference
D Comment display on ladder diagram
4.9.2 (1) This function operates only when the PG Mate main unit is version
04 and later. (When the power supply is turned on, it is displayed in
Limitations in SYSTEM the lower right part of the initial screen.)
P Mate (2) The function keys <F keys> are used instead of the soft keys (PG
Mark II). In the description that follows, an explanation for the soft
keys (PG Mark II) is given. When PG Mate is used, operate with
the function keys. At this time, in order to make the F key respond
and display the screen bottom line, the F key lamp illuminates to
correspond to those items displayed with shaded characters on the
screen.
1020
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
R0 : PROGRAMMER
R1 : EDIT
R2 : UNUSED
R3 : REQUEST
Press the <R1> key
FUNCTN or or COMAND
[ COMAND ]
[ COMAND ]
1 2 3 4 5
1 [ DELNET ]
2 [ INSERT ]
3 [ ADRESS ]
4 [ SEARCH ]
5 [ COPY/MOVE ]
1021
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.9.4 In order to input the sequence program, press the <R1> key from the R
Sequence Program key menu. The soft key menu program is displayed, and in the case that
the sequence program has not yet been input, only the left and right
Input vertical lines of the ladder diagram are displayed on the screen.
Start inputting a program with the screen in this state.
Input a ladder diagram program by moving the cursor to the desired input
position using the cursor key.
The following description shows an example of the input of a program of
basic instruction and a program of functional instruction.
(1) Basic instruction program input
X2.4
1 Press the soft key [ ] after moving the cursor to the start
position.
Symbol [ ] is input at the cursor position and
HORIZONTAL LINE ILLEGAL is displayed at the lower right
part of the screen. This is a cautionary message which shows that
the ladder diagram horizontal line is not yet completely created.
Input the continuation address and bit data.
2 Press the <NL> key after inputting R0.1 using the keyboard. The
address is set on the contact and the cursor shifts rightward.
3 Input A contact with address R10.2 by the above methods 1 and
2.
4 Input B contact R1.7.
Press the soft key [ ], input address R1.7, and then press the
<NL> key. The address is set on the B contact and the cursor shifts
rightward.
5 Press software key [ ] with the cursor position unchanged.
A right horizontal line is automatically drawn, and a relay coil
symbol is entered near the right vertical line.
6 Press the <NL> key after inputting address R20.2.
The cursor automatically shifts to the input start position of the
next line.
7 Next, input the OR condition.
Press the soft key [ ], input address X2.4, and then press
the <NL> key. The address is set on the B contact and the cursor
shifts rightward.
1022
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
NOTE
1 When the ladder program displayed on the screen is incomplete (when, for example, addresses
have not been entered) or erroneous, the screen cannot be scrolled even when a page key is
pressed. Before attempting to scroll the screen, therefore, ensure that the ladder program is
complete and errorfree.
2 Since 8 contacts + coil are specified to be inputtable per line from the screen, any more contacts
in excess of this amount cannot be input. However, this restriction does not apply to a sequence
program created with mnemonic format.
When a sequence program, transferred from the offline programmer to the PMC, exceeds the
length which can be displayed on a single line, the program is displayed using two or more lines,
linked with a continuation symbol.
This continuation symbol is not erasable by software key [].
3 Below is shown an example with an error net, or part of it, erased with no error display.
Net is repeated
2 Case of multiple WRT results in 1 NET difference as shown in the diagram below.
Section C is erased
1023
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
NOTE
3 Case of exceeding the highest rank WRT in 1 NET
B
A C
Section B is erased
(SUB 8)
Input address
Low rank 4 bit logic data
MOVE
(1)
(SUB 8) (2)
(3)
(4)
1024
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.9.5 The method of substituting a created sequence program is the same as that
described earlier in Section 4.9.4.
Substitution of
Sequence Programs Move the cursor to the program part you want to alter and input the change
data.
4.9.6 From the soft key program menu, press the soft key [COMAND] and
operate with the soft keys shown below.
Additions to Sequence
Programs When you want to end the program menu shown below, press the soft key
at the extreme left.
Case of adding
Move the cursor to the position where you want to add, and input te
program by the method described in Section 4.9.4.
1025
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
Case of adding
Cursor
Addition
1026
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
a
Crusor
b
If the [INSLIN] key is pressed with the cursor in the above
position, the state shown in the diagram on the right will occur.
(4) Inserting the 1 NET sequence program elements
Elements are inserted in 1 element units.
1 Key in the number of elements you want to insert and press the
[INSELM] key. The inputted number of elements will be
inserted. If a number of elements prefixed by the character A
are keyed in and the [INSELM] key is pressed, the elements are
inserted after the cursor.
(If the number of elements to be inserted is not keyed in, but the
[INSELM] key is pressed, one element is inserted.)
a
Cursor
b
1027
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
a
Cursor
b
If the character A is keyed in and the [INSELM] key is pressed
with the cursor in the position on the left, the state shown in the
diagram on the right will occur.
4.9.7 (1) For deleting part of a program, use the following three kinds of soft
keys and delete after setting the cursor to the unnecessary part.
Deleting a Sequence
[ ] : Deletion of horizontal lines, relay contacts coils, etc.
Program
[ ] : Deletion of upper left vertical line to the cursor
[ ] : Deletion of upper right vertical line to the cursor
(2) For the deletion of a program net (part corresponding to the section
from RD instruction to WRT instruction), use the [DELNET] key.
(3) Deleting multiple NETs in NET units
1 Deletion
Move the cursor to the NET you want to delete and press the
[DELETE] key. The net you want to delete will be displayed in
red. (In the case of Mate, in reversal display.)
2 Deleting multiple nets
Move the cursor with the cursor DOWN key, [CDOWN] key, or
[SEARCH] key to display in red the NET you want to delete. (In
the case of Mate, in reversal display.) Further, key in a numerical
value and press the [CDOWN] key to move the cursor the
number of times specified by this value.
3 Execution . . . . . . Press the [EXEC] key
Cancellation . . . . Press the [CANCEL] key
4 If you already know the NET you want to delete, move the cursor
to the first NET, key in the number of NETs, and press the
[DELNET] key to omit steps 1 and 2.
1028
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
1029
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
Y1.2
X2.0 R20.1 R6.4
R0.5
When you want to search the same
R5.0 X4.2 R20.2 address as specified here. Set the
cursor to this position and press the soft
key [SRCH].
R21.0 Y2.0
R20.1 R2.2
R0.4
The same address is searched and
the cursor shifts to this position.
R0.5 R10.5
1030
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.9.9 The sequence program with multiple NETs is copied in units of NETs.
Specify the NET to be copied and specify the copy position with the
Copying a Sequence
cursor. When copying, the number of copies can also be specified.
Program
1 Copying
Move the cursor to the NET you want to copy and press the [COPY]
key. The NET you want to copy will be displayed in yellow (in the
case of Mate, in reversal display).
2 Copying multiple NETs
Move the cursor with the cursor UP/DOWN key, [CUP] key,
[CDOWN] key, or [SEARCH] key to display in yellow the NET to
be copied. (In the case of Mate, in reversal display.) Further, if you
in a numerical value and press the [CUP] or [CDOWN] key, you
can scroll up or down the screen by the number of times specified by
this value.
3 Setting the NET to be copied
Press the [UNTIL] key.
4 Specifying the copying address
Copying is performed by the [TO] key. At this time, the NET is
copied in the direction above the cursor. If the number of copies is
keyed in before the [TO] key is pressed, the NET is copied that
specified number of times.
5 Further, if the NET you want to copy is already known, if the cursor
is moved to the first NET and the number of NETs is keyed in, then
by pressing the [COPY] key, steps 1 to 3 can be omitted.
CAUTION
An error NET cannot be copied.
1031
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
CAUTION
An error NET cannot be moved.
1032
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
Signal name
(within 6
characters)
Comment
MA SPDALM X2.4 R2.2 Y4.3 ATCALM R100.1 MRDY (within 30
MACHINE characters)
READY
APCALM R5.4 MALM
MACHINE
ALARM
10 lines
APC
1033
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
4.9.12 The main function of each soft key can be directly selected from the
Compressed Input by [COMAND] key.
[COMAND] Key After keying in the characters shown below, press the [COMAND] key.
[ ] shows parts that can be omitted. Further, the n appearing after the
characters signifies that it is also posssible to input a numerical value. For
example, after keying in D2, pressing the [COMAND] key results in the
same operation as keying in 2 and pressing the [DELNET] key.
I [NSERT]
D [ELNET] [n ]
A [DRESS]
SY [MBOL]
S [EARCH]
C [OPY] [n ]
M [OVE] [n ]
n :numerical value
The creation and search of programs is performed by pressing the
software keys of the above menu.
NOTE
The software keys [ or ] and [ or ] are used to
create or delete the upper left vertical line or the upper right
vertical line on the ladder diagram. The solid line display of
the vertical line indicates creation; the dotted line display of
the vertical line indicates deletion. As to which menu will
appear above the software keys, is decided by the ladder
diagram form and the cursor position.
4.9.13 In the program menu shown below, press the extreme left software key.
Ending Edit of a
Sequence Program
FUNCTN or or COMAND
CAUTION
When an error NET exists, ERROR NET NO. is displayed
and you cannot end the edit. End after correcting the
erroneous NET.
1034
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
4.10
INPUT/OUTPUT OF
LADDER PROGRAM
WITH PG AND
FLOPPY
CASSETTE/FA CARD
4.10.1 The ladder program can be stored in or fetched out of a floppy cassette/FA
General card by connecting PG and floppy cassette adapter/FA card adapter by
using this function enables reading the program stored in a floppy
cassette/FA card by using PMC RAM into PG or reading the program
stored in a floppy cassette/FA card by using PG into PMC RAM. The
usable adapters are as follows:
D FANUC cassette adapter 3 (A13B0131B001)/cassette F1
(A87L00010038)
D FANUC floppy cassette adapter (A13B0150B001)/floppy cassette
(A87L00010039)
D FA card adapter (A13B0148B001)/FA card (A87B00010108)
4.10.2 When using the FANUC floppy cassette adapter/FA card adapter, change
Setting I/O Commands the settings of the input/output devices by the following IO commands.
1 Press the R3 key on the R key menu screen. REQUEST= is
displayed lower left on the screen, and keying in is permitted.
2 Key in IO BCA, CN2, F13, F14 [NL]. The floppy cassette
adapter/FA card adapter is assigned to channel 2.
3 To return the assignment to channel 2 to PMC WRITER, key in IO
AUX, CN2, F9 [NL].
1035
4. OPERATION PMC PROGRAMMER (SYSTEM P series) B61863E/14
CAUTION
When ROM module B or C is selected during use of
SYSTEM P Mate, the program is overlaid. In this case,
insert the work floppy disk for the external memory into drive
1.
CAUTION
When specifying file number, put the numbers in the
ascending order. If the file No. located at the middle of a
floppy disk is specified, the files after that will be deleted.
6 The screen changes, and writing the program into the floppy
cassette/FA card starts.
7 When the program writing ends normally, the screen will
automatically return to the programmer menu. If any error is detected
during the program reading, PART= is displayed lower left on the
screen. Check the error contents, and key in E [NL]. The screen
will return to the programmer menu.
1036
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 4. OPERATION
CAUTION
For the program which is output from PMCSA1/SA2/SB/SC
RAM board to the floppy cassette/FA card by specifying
LADDER of ALL, there is no problem in the input/collation. It
is impossible to make input/collation for the program which is
output by specifying PARAM.
1037
5. FILE EDITING FUNCTION PMC PROGRAMMER (SYSTEM P series) B61863E/14
1038
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION
5.1 This function edits floppy disk data in the unit of file. When key in only
<NL> the menu screen of R key appears key in R3 key on the R key menu.
GENERAL REQUEST= will be displayed on the left below part of the screen to
show a keyin enable condition.
NOTE
The format for file designation is as follows:
[drive No.] @ file name
: file No.
1039
5. FILE EDITING FUNCTION PMC PROGRAMMER (SYSTEM P series) B61863E/14
In file editing function, the above floppy disk set request message key
input parameter can also be used. Now, parameter used in common here
here has the following meaning. Specify OK, NO, KILL and instruct
the answer to the set request.
OK . . . . After instructing execution of read and write, specify
parameter.
NO . . . . Cancel read/write to floppy only.
KILL . . Cancel the specified process.
Parameters instructing details of read and write is as follows.
1040
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION
CAUTION
When specifying drive number and file name or file number,
specify without separating, as follows.
Example) 0 @ ABC or 1 : 5
1041
5. FILE EDITING FUNCTION PMC PROGRAMMER (SYSTEM P series) B61863E/14
1042
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION
5.3 This command displays the attributes of files in the floppy disk, such as
file name, file size, etc.
FDLIST COMMAND
FILE ATTRIBUTE a) Input format
DISPLAY [D,] [P,] [S,] [F,]
FDLIST
[L,]
@ file name
[Drive No.]
: file No.
b) Operand
D: Display of file creation date consisting of 6 characters
P: Identification display of protection files
S: Display of file size
F: Display of size of unoccupied area
L: Executes all display by parameters D, P, S, F.
@ file name Displays a file having the designated
file name or designated
: file No. file number only. If this designation
is omitted, all files are treated as
processing objects.
NOTE
The numeric characters shown in SIZE, FILE USED AREA,
DELETED FILE AREA, and FREE AREA are displayed
assuming that 256 characters are 1.
1043
5. FILE EDITING FUNCTION PMC PROGRAMMER (SYSTEM P series) B61863E/14
5.4 This command designates a change of the file name, file creation date, and
the designation of protection file.
RENAME COMMAND
FILE ATTRIBUTE a) Input format
CHANGE @ file name P
RENAME [drive No.] [,/date] [@ new file name]
: file No. NP
1044
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION
b) Function
This command deletes the designated file. Even if the file name is
displayed by FDLIST, the file name is not displayed any longer. The
area occupied by the deleted file must be released by CONDENSE
command before writing new data into the area.
1045
5. FILE EDITING FUNCTION PMC PROGRAMMER (SYSTEM P series) B61863E/14
5.7 This command copies files to another floppy disk by using two floppy
disk units.
REMOVE COMMAND
a) Input format
FILE COPY
M input drive @ file name INT , P , [/date] , @ new file
REMOVE A, No. file No. ADD NP name
1046
B61863E/14 PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION
1047
APPENDIX
A. ERROR CODES LIST
B61863E/14 APPENDIX (FOR FANUC LADDER PG)
1051
A. ERROR CODES LIST
(FOR FANUC LADDER PG) APPENDIX B61863E/14
1052
A. ERROR CODES LIST
B61863E/14 APPENDIX (FOR FANUC LADDER PG)
1053
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
1054
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.1 This window function is a functional instruction by which the data on the
CNC is read or is written.
FUNCTION
B.2 In the way to process, there are window function high speed and one
processed at low speed.
LOWSPEED
RESPONSE AND In case of a lowspeed response, The data is read or written by the control
between CNC and PMC
HIGHSPEED
RESPONSE OF Therefore, it is necessary to ACT=1 of the window instrucion must be
held until the transfer completion information (W1) becomes 1
WINDOW FUNCTION (interlock).
In a highspeed response, it is not necessity for take the interlock because
the data is directly read.
CAUTION
The window instruction of a lowspeed response is
controlled exclusively with the other window instructions of
lowspeed response.
Therefore, when the data is read or written continuously, it
is necessary to clear ACT of the functional instruction once
when the completion information (W1) become 1.
It does not work about ACT=1 of the other window
instructions of lowspeed response such as W1=1 and
ACT=1 of the window instruction of a lowspeed response.
The window instruction of a highspeed response is not
exclusively controlled like a lowspeed response.
Therefore, when the data is read or written continuously,
yow need not make ACT=0.
The scan number of times to complete the processing is
summarized on the following table.
CAUTION
Enter the desired function code (to which 1000 is added
when data of the second tool post (HEAD2) is read or written
in the TT series, or when data of the second path is read or
written in twopath control of the Power MateD.
To perform path 3 read/write operation in 3path control,
enter a function code + 2000.
1055
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.3
LIST OF WINDOW
FUNCTIONS
Number Description Function code R/W
1 Read CNC system information 0 R
2 Read the tool offset 13 R
3 Write a tool offset :Lowspeed response 14 W
4 Read the work origin offset *PM :Lowspeed response 15 R
5 Write work origin offset *PM :Lowspeed response 16 W
6 Read parameters *SB56 :Lowspeed response 17 R
7 Write parameters :Lowspeed response 18 W
8 Read setting data *SB56 :Lowspeed response 19 R
9 Write setting data :Lowspeed response 20 W
10 Read custom macro variables *SB56 :Lowspeed response 21 R
11 Write custom macro variables :Lowspeed response 22 W
12 Read the CNC alarm state 23, 186 (*8) R
13 Read the current program number 24 R
14 Read the current sequence number 25 R
15 Read an actual velocity for controlled axes 26 R
16 Read an absolute position (absolute coordinate value) on controlled axes 27 R
17 Read a machine position (machine coordinate value) on controlled axes 28 R
18 Read a skip operation (G31) stop position (coordinate value) on controlled axes 29 R
19 Read a servo delay amount 30 R
20 Read acceleration/deceleration delay amount on controlled axes 31 R
21 Read modal data 32 R
22 Read diagnosis data *SB56 :Lowspeed response 33 R
23 Read a feed motor load current value (A/D conversion data) 34 R
24 Reading tool life management data (tool group No.) *PM *21T *TM 38 R
25 Reading tool life management data (number of tool group s) *PM *21T *TM 39 R
26 Reading tool life management data (number of tools) *PM *21T *TM 40 R
27 Reading tool life management data (usable life of tool) *PM *21T *TM 41 R
28 Reading tool life management data (tool usage counter) *PM *21T *TM 42 R
Reading tool life management data (tool length compensation No. (1): Tool No.)
29 43 R
*PM *21T *TM
Reading tool life management data (tool length compensation No. (2):
30 44 R
Tool order No.) *PM *21T *TM
Reading tool life management data (cutter compensation No. (1): Tool No.)
31 45 R
*PM *21T *TM
Reading tool life management data (cutter compensation No. (2): Tool order No.)
32 46 R
*PM *21T *TM
Reading tool life management data (tool information (1): Tool No.)
33 47 R
*PM *21T *TM
Reading tool life management data (tool information (2): Tool order No.)
34 48 R
*PM *21T *TM
35 Reading tool life management data (tool No.) *PM *21T *TM 49 R
36 Reading the actual spindle speed 50 R
1056
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
1057
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
*1 Function codes that have R in the R/W column are window read functions specifiable with the WINDR function command. Function
codes that have W in the R/W column are window write functions specifiable with the WINDW function command.
*2 For window functions mark with Lowspeed response, reading and writing parameters, setting data, diagnostic data and so on starts
after the PMC receives the response for request of reading and writing from the CNC. On the contrary, the other window functions can
read or write data at once in response to the request from PMC.
*3 Functions marked with *PM are not provided for the Power MateD or F.
*4 Functions marked with *21T are not provided for the Series 21T.
*5 Functions marked with *SB5/6 support highspeed window response for the SB5/SB6.
*6 Functions marked with *C are not provided for the SB5/SB6/SB7.
*7 Functions marked with *TM are restricted on CNC for the compound machining function.
1. Function can not be used.
2. Function can not be used in the T mode.
Refer to each window function for details.
*8 This function code is supported only by the Power Mate iD/H.
1058
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4 (1) In the explanation of the window functions, minuses () in the data
structure fields indicate that input data need not be set in these fields
FORMATS AND or that output data in these fields is not significant.
DETAILS OF
(2) All data is in binary unless otherwise specified.
CONTROL DATA
(3) All data block lengths and data lengths are indicated in bytes.
(4) Output data is valid only when window processing terminates
normally.
(5) Output data always includes one of the following completion codes.
Note, however, that all of the completion codes listed are not always
provided for each function.
2
Completion code
4
Data length (M) These data set as input data are
(Byte length of data area) remain unchanged in the output
6 data.
Data number
8
Data attribute
10
Data area *Data length
Depends on the function.
X X
1059
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.1 [Description]
Reading CNC System System information peculiar to the CNC can be read. Such system
Information information includes the series name of the CNC (16 as series name, for
example), the machine type applied to the CNC, such s a machining center
(M) and a lathe (T), the series code and version of the ROM containing
the CNC system software, and the number of controlled axes.
Top address + 0
(Function code)
0
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
(Data number)
0
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : CNC system information has been read normally.
1060
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
0
2
(Completion code)
0
(Always terminates normally.)
4
(Data length)
14
6
(Data number)
8
(Data attribute)
Value
10 ASCII characters
CNC series name (2 bytes) (16)
12 ASCII characters
Machine type M/T/TT (2 bytes)
( M, T. TT, . . . )
22 ASCII characters
Number of controlled axes (2 bytes)
( 2, 3, 4, . . . )
NOTE
1 Data is stored from the upper digit in each lower byte.
2 In the Power MateD and F, the data corresponding to the
CNC series name and machine type are left as spaces.
3 In twopath control of the Power MateD, the data for the
first path is the same as that for the second path.
1061
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.2 [Description]
Reading a Tool Offset A tool offset value recorded in the CNC can be read.
Wear offset data, geometry offset data, cutter compensation data, and tool
length offset data can be read as a tool offset.
Top address + 0
(Function code)
13
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N = offset number)
8
(Data attribute)
M
(M = offset type)
10
(Data area)
(Need not be set)
X X
42
NOTE
In the Power MateD and F, read tool offsets without
specifying the classification (i.e. cutter compensation, tool
length, tool wear, and tool geometry).
1062
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The tool offset has been read normally.
3 : The offset number specified for reading is invalid. (This
completion code is returned when the specified offset number data
is not from 1 to the maximum number of offsets.)
4 : There are mistakes in the data attribute that specifies the type of
the offset to be read.
6 : For the offset number specified for reading, an additional tool
offset number option is required, but it is missing.
The offset number is not available for Power MateD/F.
Top address + 0
(Function code)
13
2
(Completion code)
?
(See the explanation of the completion codes.)
4
(Data length)
L (Normally set to 4)
(L: Byte length of offset value)
6
(Data number)
N
(N = offset number)
8
(Data attribute)
M
(M = offset type),, Value
1063
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.3 [Description]
Writing a Tool Offset The tool offset value can be directly written into the CNC.
(:Lowspeed Wear offset data, geometry offset data, cutter compensation data, and tool
Response) length offset data can be written as a tool offset.
Top address + 0
(Function code)
14
2
(Completion code)
(Need not to be set)
4
(Data length)
4
6
(Data number)
N
(N = offset number)
8
(Data attribute)
M
(M = offset type) Value
10
Tool offset value Signed binary (A negative value is
represented in 2s complement.)
Upper 3 bytes are always 0 for virtual
tool tip
NOTE
In the Power MateD and F, write tool offsets without
specifying the classification (i.e. cutter compensation, tool
length, tool wear, and tool geometry).
1064
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The tool offset has been written normally.
2 : The data byte length for the tool offset specified for writing is
invalid. (It is not set to 4.)
3 : The offset number specified for writing is invalid. (This
completion code is returned when the specified offset number data
is not from 1 to the maximum number of offsets.)
4 : There are mistakes in the data attribute that specifies the type of
the offset to be written.
6 : For the offset number specified for writing, the additional tool
offset number option is required, but it is missing.
The specified offset number is out of range. (Power MateD, F)
Top address + 0
(Function code)
14
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L: Input data)
6
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(Input data) Value
10
Signed binary (A negative value is
Tool offset value: Input data represented in 2s complement.)
1065
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.4 [Description]
Reading a Workpiece The workpiece origin offset recorded in the CNC can be read.
Origin Offset Value A workpiece origin offset is provided for each controlled axis (the first
(not Supported by the axis to the eighth axis) in the CNC. Either the workpiece origin offset for
Power MateD or F) a specific axis can be read, or the workpiece origin offsets for all axes can
be read at one time. If the additional axis option is not provided, however,
the workpiece origin offset for the additional axis cannot be read.
Top address + 0
(Function code)
15
2
(Completion code)
(Need not be set)
4
(Data length) N = 0: External workpiece origin offset
N = 1: G54
(Need not be set)
6 N = 6: G59
(Data number) With addition of workpiece coordinate system pair
N N=7 : G54.1 P1
(N = 0 to 6)
8 N=306 : G54.1 P300
(Data attribute)
M M = 1 to n: Workpiece origin offset number of a
(M = 1 to n or 1) specific axis. n is the axis number.
10
(Data area) M = 1: Read for all axes
(Need not be set)
X X
42
1066
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The workpiece origin offset has been read normally.
3 : The specified data number is invalid because the number is not
from 0 to 6.
4 : The specified data attribute is invalid because the attribute data is
neither 1 nor a value from 1 to n (n is the number of axes).
Alternatively, the specified axis number is greater than the number
of controlled axes.
6 : There is no workpiece coordinate shift option added.
Top address + 0
(Function code)
15
2
(Completion code)
?
(See the explanation of
the completion codes.)
4 L = 4: The workpiece origin offset value for
(Data length)
L a specific axis is read.
(L: Byte length of the workpiece
origin offset value) L = 4*n: Workpiece origin offsets for all axes are
6 read.
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(M = Input data) Value
10
Signed binary number (A negative value
Workpiece origin offset value is represented in 2s complement.)
1067
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.5 [Description]
Writing a Workpiece Data can be written directly as a workpiece origin offset value in the CNC.
Origin Offset Value A workpiece origin offset is provided for each controlled axis (the first
(:Lowspeed axis to the eighth axis) in the CNC. Either the workpiece origin offset
Response) value for a specific axis can be written, or the workpiece origin offset
(not Supported by the values for all axes can be written at one time. If the additional axis option
Power MateD or F) is not provided, however, the workpiece origin offset value for the
additional axis cannot be written.
Top address + 0
(Function code) L = 4 : Workpiece origin offset value for a specific
16 axis is written.
L = 4*n
2
(Completion code) Workpiece origin offset values for all axes
are written.
(Need not be set) N = 0: External workpiece origin offset
N = 1: G54
4
(Data length)
L
(L: Byte length of the workpiece N = 6: G59
origin offset value) With the option of adding Workpiece coordinate systems
6 N=7: G54.1P1
(Data number)
N
(N = Offset group number) N=306: G54.1P300
M = 1 to n: Workpiece origin offset number of a
8 specific axis. n is the axis number.
(Data attribute) M = 1: Write for all axes
M
(M = Axis number) Value
1068
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The workpiece origin offset has been written normally.
2 : The specified data length is invalid.
3 : The data number is invalid because the specified number is not
from 0 to 6.
4 : The specified data attribute is invalid because the attribute data is
neither 1 nor a value from 1 to n (n is the number of axes).
Alternatively, the specified axis number is greater than the number
of controlled axes.
6 : There is no workpiece coordinate shift option added.
Top address + 0
(Function code)
16
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L: Input data)
6
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(M = Input data) Value
1069
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.6 [Description]
Reading a Parameter Parameter data in the CNC can be read.
(:Lowspeed There are four types of parameters in the CNC: Bit parameters having a
Response) definite meaning for each bit, byte parameters holding 1byte data, word
parameters holding 2byte data, and double word parameters holding
4byte data. Therefore, the length of the read data varies according to the
parameter number specified.
Note that bit parameters cannot be read in bit units. The eight bits (one
byte) for a parameter number must be read at a time.
For axis parameters, data for a specific axis can be read, or data for all axes
can be read at a time.
Specify pitch error compensation data in data Nos. 10000 to 11023 (1024
points in total).
For details of parameter data, refer to the Operators manual of the CNC.
Top address + 0
(Function code)
17
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N = parameter number)
8 M = 0: No axis
(Data attribute)
M M = 1 to n: A specific axis
(M = Axis number)
M = 1: All axes
10
(Data area)
When all axes are specified by spindle parameters
(Need not be set) (parameters 4000 to 4799), only two axes are specified.
X X
42
1070
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Parameter data has been read normally.
3 : The parameter number specified for reading is invalid.
4 : The specified data attribute is invalid because it is neither 0, 1,
nor a value 1 to n (n is the number of axes).
6 : Although a certain option, such as the pitch error compensation
option, is required for the data of the parameter number specified
for reading, it is not provided.
[Output data structure]
Top address + 0
(Function code)
17
CAUTION
For the SB5/SB6/SB7, macro executor parameters 9000 to
9011 cannot be read.
1071
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.7 [Description]
Writing a Parameter Data can be written in a parameter in the CNC.
(:Lowspeed There are four types of parameters in the CNC: Bit parameters having a
Response) definite meaning for each bit, byte parameters holding 1byte data, word
parameters holding 2byte data, and double word parameters holding
4byte data. Therefore, the length of the written data varies according to
the parameter specified.
Note that bit parameters cannot be written in bit units. The eight bits (one
byte) for the parameter number must be written at a time. This means that
when a bit needs to be written, the whole data for the corresponding
parameter number shall be read first, modify the target bit in the read data,
then the data shall be rewritten.
For axis parameters, data for a specific axis can be read, or data for all axes
can be read at a time.
For details of parameter data, refer to the Operators manual of the CNC.
Some parameters cause a P/S alarm 000 when data is written. (The power
must be turned off before continuing operation.)
[Input data structure]
Top address + 0
(Function code)
18
Value
1072
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Parameter data has been written normally.
2 : The data byte length of the parameter specified for writing is
invalid.
3 : The parameter number specified for writing is invalid.
4 : The specified data attribute is invalid because it is neither 0, 1,
nor a value from 1 to n (n is the number of axes).
6 : Although a certain option, such as the pitch error compensation
option, is required for the data of the parameter number specified
for writing, it is not provided.
[Output data structure]
Top address + 0
(Function code)
18
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = Input data)
6
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(M = Input data) Value
CAUTION
Parameters may not become effective immediately
depending on the parameter numbers.
1073
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.8 [Description]
Reading Setting Data The CNC setting data can be read.
(:Lowspeed There are four types of setting data in the CNC: Bit setting data having
Response) a definite meaning for each bit, byte setting data stored in bytes, word
setting data stored in 2byte units, and doubleword setting data stored
in 4byte units. Therefore, the length of the read data varies according
to the setting data specified.
Note that bit setting data cannot be read in bit units. The eight bits (one
byte) for the setting data number must be read at a time.
For axis parameters, data for a specific axis can be read, or data for all axes
can be read at a time.
For details of setting data, refer to the Operators manual of the CNC.
[Input data structure]
Top address + 0
(Function code)
19
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N = Setting data number)
8 M=0: No axis
(Data attribute)
M M = 1 to n: A specific axis
(M = Axis number)
M = 1: All axes
10
(Data area)
(Need not be set)
X X
42
1074
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Setting data has been read normally.
3 : The setting number specified for reading is invalid.
4 : The specified data attribute is invalid because it is neither 0, 1,
nor a value from 1 to n (n is the number of axes).
Top address + 0
(Function code)
19
1075
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.9 [Description]
Writing Setting Data Data can be written as setting data in the CNC.
(:Lowspeed For details of setting data, refer to the Operators manual of the CNC.
Response)
[Input data structure]
Top address + 0
(Function code)
20
Value
1076
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Setting data has been written normally.
2 : The byte length of the setting data specified for writing is invalid.
3 : The setting data number specified for writing is invalid.
4 : The specified data attribute is invalid because it is neither 0, 1,
nor a value from 1 to n (n is the number of axes).
5 : Data exceeding the allowable range was specified as setting data
to be written. For example, when data outside the range from 0
to 3 is specified as the setting data to be written for I/O data, this
completion code is returned.
Top address + 0
(Function code)
20
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(N = Input data)
6
(Data number)
N
(N = Input data)
8
(Data attribute)
M
(M = Input data) Value
1077
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.10 [Description]
Reading a Custom A custom macro variable in the CNC can be read.
Macro Variable Custom macro variables may or may not be read depending on the
variable type.
(:Lowspeed
(1) Local variables
Response)
Local variables (#1 to #33) cannot be read.
(2) Common variables
Common variables (#100 to #149 and #500 to #531) can be read in
floatingpoint representation. When the option to add common
variables is provided, however, common variables range from #100
to #199 and #500 to #999.
NOTE
1 Power MateD (twopath control), Power MateF: #100 to
199, #500 to 699.
Memory module A of onepath control: #100 to #149, #500
to #531.
Memory module B/C of onepath control: #100 to #199,
#500 to #699.
2 On the Power Mate iMODEL D/H, common variables #100
to #199 and #500 to #699 can be read and written.
Set the variable number within these ranges as the data
number of the input data, and read and write custom macro
variables.
CAUTION
For the SB5/SB6/SB7, system variables cannot be read.
1078
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N = Custom macro variable number)
8
(Data attribute)
M
(M: Number of decimal places)
10
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : The custom macro variable has been read normally.
3 : The number of a custom macro variable that cannot be read was
specified as the data number. Only common variables can be read
as custom macro variables by this library command.
5 : The custom macro variable is not within the range from
0.0000001 to 99999999.
6 : The custom macro option is not provided.
The specified variable number is out of range. ( Power MateD,
F)
1079
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address + 0
(Function code)
21
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length) L = 6: Custom macro B
L The mantissa of a floating
(L: Byte length of custom macro point number is indicated in 4
variable data) bytes, and the exponent is
6 indicated in 2 bytes.
(Data number)
M = 0: The number of decimal
N
places is not specified.
(N = Input data)
M = 1x nx 7:
8 The number of decimal places is specified. n
(Data attribute) stands for the number of decimal places.
M
(M: Number of decimal places) Value
1080
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.11 [Description]
Writing a Custom Data can be written in a custom macro variable in the CNC.
Macro Variable For details of common variables, refer to the Operators manual of the
(:Lowspeed CNC.
Response)
[Input data structure]
Top address + 0
(Function code)
22
2
(Completion code)
(Need not be set)
4
(Data length)
L L = 6: Custom macro B
(L: Byte length of custom The mantissa of a floatingpoint
macro variable data) number is indicated in 4 bytes,
6 and the exponent is indicated in
(Data number) 2 bytes.
N
(N = Custom macro variable number)
8
(Data attribute)
0
Value
1081
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The custom macro variable has been written normally.
2 : The specified data length is invalid because it is not 6.
3 : A custom macro variable number that cannot be written as the data
number was specified.
6 : The custom macro option has not been provided.
The specified variable number is out of range. (Power MateD, F)
Top address + 0
(Function code)
22
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L: Input data)
6
(Data number)
N
(N = Input data)
8
(Data attribute)
(Need not be set) Value
1082
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.12
Reading the CNC
Alarm Status
B.4.12.1 [Description]
Except Power When the CNC is in the alarm status, the alarm status data can be read.
MateD/F/H The following alarm status data can be read:
(1) First byte of alarm status data
7 6 5 4 3 2 1 0
PS1
PS2
PS3
PS
OTS
OH
SV
MALM
PS1 : P/S alarm 100 (PWE (parameter write enable) is set to 1.)
PS2 : P/S alarm 000 (Turn off the power before continuing operation.
Some parameters activate this alarm status when they are
written.)
PS3 : P/S alarm 101 (The part program recording area is disordered.
This alarm is activated when the power to the CNC is turned off
during part program editing or reading of a machining program.
To release the alarm, then press the RESET key while holding
down the PROG key.)
PS : A P/S alarm other than the above alarm is generated
OTS : Stroke limit alarm
OH : Overheat alarm
SV : Servo alarm
MALM: Memory alarm
1083
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
7 6 5 4 3 2 1 0
APAL
SPA
(Not used)
(Not used)
(Not used)
(Not used)
(Not used)
(Not used)
Top address + 0
(Function code)
23
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1084
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit
1085
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
n 15 14 13 12 11 10 9 8
Number First alarm Second nth
of alarms alarm alarm
(n: Number of alarms issued)
1086
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : This alarm status in the CNC has been read normally.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
2
6
(Data number)
8
(Data attribute)
Value
10 CNC alarm status data 2 byte bit data. For the meanings of the
bits, see [Description] in this section.
1087
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.13 [Description]
Reading the Current The program number of a machining program being executed or selected
Program Number on the CNC can be read.
When a subprogram is executed on the CNC, the program number of the
main program can also be read. Note that the program number that can be
read is the first program number (first loop main program).
This function accepts only 4digit program numbers. When the
specification supports 8digit program numbers, specify function code
90 to read 8digit program numbers.
[Input data structure]
Top address + 0
(Function code)
24
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
(Data number)
0
(Data attribute)
0
10
(Data area)
(Need not be set)
42
[Completion codes]
0 : The program number of the currently executing program was read
successfully.
6: The program number is an 8digit program number. (Use function
code 90.)
1088
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
24
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
6
(Data number)
8
(Data attribute)
Value
1089
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.14 [Description]
Reading the Current The sequence number of a machining program being executed on the
Sequence Number CNC can be read. If sequence numbers are not assigned to all blocks of
the machining program, the sequence number of the most recently
executed block is read.
Top address + 0
(Function code)
25
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1090
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The current sequence number has been read normally.
Top address + 0
(Function code)
25
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L Note that the data length must be set to 4
(L = 4) bytes even though the current program
number is 2 bytes long (the sequence
6 number is indicated by 5 digits).
(Data number)
8
(Data attribute)
Value
10
Current sequence number Unsigned binary
1091
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.15 [Description]
Reading the Actual The actual velocity of a movement on CNCcontrolled axes can be read.
Velocity of Controlled Note that the read speed is the composite velocity for the controlled axes.
Axes When movement involves only the basic three axes, the X, Y, and Z axes,
the composite velocity equals the actual velocity. When movement,
however, involves the fourth axis, such as a rotation axis or a parallel axis,
as well as some of the basic three axes, the composite velocity for all the
relevant axes does not equal the actual velocity.
Top address + 0
(Function code)
26
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1092
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The actual velocity for the controlled axes has been read normally.
[Output data structure]
Top address + 0
(Function code)
26
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4)
6
(Data number)
8
(Data attribute)
Value
1093
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.16 [Description]
Reading the Absolute The absolute coordinates of the CNCcontrolled axes for movement can
Position (Absolute be read. The absolute coordinates indicate those after cutter
Coordinates) of compensation or tool length compensation.
Controlled Axes
[Input data structure]
Top address + 0
(Function code)
27
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
X X
42
[Completion codes]
0 : The absolute coordinates of the controlled axes have been read
normally.
4 : Data specified as the data attribute is invalid because it is neither
1 nor a value from 1 to n (n is the number of axes). Alternatively,
the specified axis number is greater than the number of controlled
axes.
1094
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
27
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4*n, n is the number of
axes specified.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
Value
1095
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.17 [Description]
Reading the Machine The machine coordinates of CNCcontrolled axes for movement can be
Position (Machine read. The read value equals the machine coordinate indicated on the
Coordinates) of current position display screen displayed in the CNC. (This screen can
be displayed by pressing the function button POS.)
Controlled Axes
[Input data structure]
Top address + 0
(Function code)
28
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
X X
42
CAUTION
When an inch machine is used in metric input, or when a
millimeter machine is used in inch input, the machine
position that is read with bit 0 of parameter No. 3104 set to
1 differs from the value indicated by the CNC. In this case,
therefore, the value read through the ladder must be
calculated (converted).
[Completion codes]
0 : The machine coordinates of the controlled axes have been read
normally.
4 : Data specified as the data attribute is invalid because it is neither
1 nor a value from 1 to n (n is the number of axes). Alternatively,
the specified axis number is greater than the number of the
controlled axes.
1096
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
28
2
(Completion code)
?
(See the explanation of
the completion codes.)
4 (Data length)
L
(L = 4*n, n is the number of
axes specified.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
Value
1097
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.18 [Description]
Reading a Skip When a block of the skip operation (G31) is executed by the CNC and the
Position (Stop Position skip signal goes on to stop the machine, the absolute coordinates of the
of Skip Operation stop position on the axes of movement can be read.
(G31)) of Controlled
Axes [Input data structure]
Top address + 0
(Function code)
29
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
X X
42
[Completion codes]
0 : The coordinates of the skip stop position for the controlled axes
have been read normally.
4 : Data specified for the data attribute is invalid because it is neither
1 nor a value from 1 to n (n is the number of axes). Alternatively,
the specified axis number is greater than the number of controlled
axes.
1098
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
29
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4*n, n is the number of
axes specified.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
Value
1099
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.19 [Description]
Reading the Servo The servo delay, which is the difference between the specified coordinates
Delay for Controlled of CNCcontrolled axes and the actual servo position, can be read.
Axes
[Input data structure]
Top address + 0
(Function code)
30
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
X X
42
1100
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The servo delay for the controlled axes have been read normally.
4 : The data specified as the data attribute is invalid because it is
neither 1 nor a value from 1 to n (n is the number of axes).
Alternatively, the specified axis number is greater than the number
of controlled axes.
Top address + 0
(Function code)
30
2
(Completion code)
?
(See the explanation of
the completion codes.)
4 (Data length)
L
(L = 4*n, n is the number of
axes specified.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
Value
1101
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.20 [Description]
Reading the The acceleration/deceleration delay, which is the difference between the
Acceleration/ coordinates of controlled axes programmed in the CNC and the position
Deceleration Delay on after acceleration/deceleration is performed, can be read.
Controlled Axes
[Input data structure]
Top address + 0
(Function code)
31
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
X X
42
[Completion codes]
0 : The acceleration/deceleration delay for the control axis has been
read normally.
4 : The data specified as the data attribute is invalid because it is
neither 1 nor a value from 1 to n (n is the number of axes).
Alternatively, the specified axis number is greater than the number
of controlled axes.
1102
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
31
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4*n, n is the number of
axes specified.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
1103
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.21 [Description]
Reading Modal Data Modal information can be read from the CNC.
(1) Format and types of modal data for the G function
Data corresponding to the specified identification code is read and
stored in the data area. Whether the data is specified in the block
specified in the attribute of the data is determined by the value at the
most significant bit.
7 6 5 4 3 2 1 0
1byte
NOTE
G codes for machining centers are also used for the Power
MateD and F except those marked with *. G codes marked
with ** are not provided for the Power MateF.
(1/2)
Data type Data Data type Data
Identificati G code for machining Code in a G code for lathe (T, G) Code in a
on code center (M) group A series B series C series group
G00 0 G00 G00 G00 0
G01 1 G01 G01 G01 1
::G02 2 G02 G02 G02 2
::G03 3 G03 G03 G03 3
:G33 4 G32 G33 G33 4
G33 8
G34 G34 G34 9
0
G90 G77 G20 5
G92 G78 G21 6
G94 G79 G24 7
G71 G71 G72 10
G G G
G72 G72 G73 11
series series series
G73 G73 G74 only
12
only only
G74 G74 G75 13
G17 0 G96 G96 G96 1
1 G18 8 G97 G97 G97 0
G19 4
G90 0 G90 G90 0
2
G91 1 G91 G91 1
G68 G68 G68 1
3
G69 G69 G69 0
G94 0 G98 G94 G94 0
4
G95 1 G99 G95 G95 1
G20 0 G20 G20 G70 0
5
G21 1 G21 G21 G71 1
1104
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
(2/2)
Data type Data Data type Data
Identificati G code for machining Code in a G code for lathe (T, G) Code in a
on code center (M) group A series B series C series group
:G40 0 G40 G40 G40 0
6 :G41 1 G41 G41 G41 1
:G42 2 G42 G42 G42 2
G43 1 G25 G25 G25 0
7 G44 2 G26 G26 G26 1
G49 0
G73 10 G22 G22 G22 1
G74 11 G23 G23 G23 0
G76 12
G80 0
G81 1
G82 2
8 G83 3
G84 4
G85 5
G86 6
G87 7
G88 8
G89 9
:G98 0 G80 G80 G80 0
:G99 1 G83 G83 G83 1
G84 G84 G84 2
9 G85 G85 G85 3
G87 G87 G87 5
G88 G88 G88 6
G89 G89 G89 7
:G50 0 G98 G98 0
10
:G51 1 G99 G99 1
G66 1 G66 G66 G66 1
11
G67 0 G67 G67 G67 0
:G54 0 G54 G54 G54 0
:G55 1 G55 G55 G55 1
:G56 2 G56 G56 G56 2
13
:G57 3 G57 G57 G57 3
:G58 4 G58 G58 G58 4
:G59 5 G59 G59 G59 5
:G61 1
:G62 2
14
:G63 3
:G64 0
:G68 1
15
:G69 0
:G15 0
16
:G16 1
G40.1 1
17 G41.1 2
G42.1 0
G25 0
18
G26 1
G50.2 G50.2 G50.2 0
19
G51.2 G51.2 G51.2 1
G13.1 0 G13.1 G13.1 G13.1 0
20
G12.1 1 G12.1 G12.1 G12.1 1
1105
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
(2) Format and types of modal data for other than the G function
Data 4 bytes
FLAG1 1 byte
FLAG2 1 byte
7 6 5 4 3 2 1 0
Number of input digits
0: Positive
1: Negative
0: A decimal point not specified
1: A decimal point specified
0: Not specified in the current block
1: Specified in the current block
Data type
Identification code Specified address
2 Enter identification codes
100 to 126 at one time.
100 B (second auxiliary function)
101 D
102 E (reserved)
103 F
104 H
105 L
106 M
107 S
108 T
109 R
110 P
111 Q
112 A
113 C
114 I
115 J
116 K
117 N
118 O
119 U
120 V
121 W
122 X
123 Y
124 Z
125 M2
126 M3
1106
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
CAUTION
The Power MateD/F is not provided with the second
auxiliary function.
Top address + 0
(Function code)
32
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
X X
20
When all data items are specified to be read, the data items are all output
simultaneously in the order specified in the above data table.
1107
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Modal information has been read normally.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
[Output data structure]
Top address + 0
(Function code)
32
(See the explanation above
2
(Completion code)
?
(See the explanation of
the completion codes.)
4 L=2 : G function
(Data length)
L L = 2*n : All data for G function
(L = 2, 6, 2*n, 6*m)
L=6: Other than G function
6
(Data number) L = 6*m : All data for other than G function
N (n: Number of groups for the G function)
(N: Input data) (m: Number of types other than for the G function)
8
(Data attribute)
M
(M: Input data) Value
10 Modal data for G function (2 bytes) See the data format for the G function.
The upper byte must always be set to 0.
Or
8
(Data attribute)
M
(M: Input data) Value
10 Data part of modal data for other than See the data format for other than the
G function(4 bytes) G function.
Flag part of modal data for other than See the flag format of the data for other
14 than the G function. The upper byte
G function(2 bytes)
must always be set to 0.
When all data items are specified to be read, the data items are all output
simultaneously in the order specified in the above data table.
1108
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.22 [Description]
Reading Diagnosis The information displayed on the diagnosis data screen in the CNC can
Data (:Lowspeed be read.
Response)
[Input data structure]
Top address + 0
(Function code)
33
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Diagnosis No.)
8 M=0: No axis
(Data attribute)
M M = 1 to n: One axis
(M: Axis number)
M = 1: All axes
10
(Data area)
(Need not be set)
1109
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Diagnosis data has been read from the CNC normally.
3 : The specified diagnosis data number is invalid.
4 : The data specified as the data attribute is invalid because it is
neither 0, 1, nor a value from 1 to n (n is the number of axes).
6 : An option required for reading the specified diagnosis data, such
as the remote buffer option, is not provided.
Top address + 0
(Function code)
33
2
(Completion code)
?
(See the explanation of When no axis or one axis is specified
the completion codes.) L = 1 : Bit or byte parameter
4 L = 2: Word parameter
(Data length) L = 4: Double Word parameter
L
(L = 1, 2, 4, 1*n, 2*n, 4*n)
When all axes are specified
6 L = 1*n Bit or byte parameter
(Data number) L = 2*n: Word parameter
N L = 4*n: Double word parameter
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
1110
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.23 [Description]
Reading A/D The digital value converted from the load current of the CNCcontrolled
Conversion Data axis can be read. The input data from the generalpurpose analog input
can also be read.
Top address + 0
(Function code)
34
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Type of analog voltage)
8
(Data attribute)
M
(M 1 to 8: Axis specification)
10
(Data area)
(Need not be set)
CAUTION
Only onepath control of the Power Mate MODELD is
provided with one channel of generalpurpose analog
voltage information.
1111
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
CAUTION
For generalpurpose analog input
Other than the i series
The OPTION2 board is required. Analog input is performed
through the analog signal interface. For details, refer to the
description of the analog signal interface in the connection
manual (hardware).
i series
Generalpurpose analog input is not supported. Use the
I/O Link analog input module.
[Completion codes]
0 : A/D conversion data has been read normally.
3 : The data specified for the data number is invalid.
4 : The data specified for the data attribute is invalid, or the specified
axis number is greater than the number of controlled axes.
6 : No analog input module is connected.
1112
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
34
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
2
6
(Data number)
N
(Input data)
8
(Data attribute)
M
(Input data) Value
(a) A/D conversion data (AD) of CNC controlled axis load information
The load current for the specified CNC controlled axis is converted
into analog voltage, the input to the A/D converter to output a digital
data.
The value actually set in the AD field is obtained from the following
formula:
1113
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
SVM112 12Ap
SVM212/12 L and M axes
SVM212/20 L axis 0.5/3000
SVM212/40 L axis 1/3000
SVM312/12/12 L, M, and N axes 2/2000
SVM312/12/20 L and M axes 2/3000
SVM312/20/20 L axis
SVM312/12/40 L and M axes
SVM312/20/40 L axis
SVM120 20Ap
SVM212/20 M axis
SVM220/20 L and M axes C3/2000
SVM220/40 L axis C6/2000
SVM312/12/20 N axis C12/2000
SVM312/20/20 M and N axes
SVM320/20/20 L, M, and N axes
SVM312/20/40 M axis
SVM320/20/40 L and M axes
NOTE
1 The current limits (peak values) are standard values. The operation value variation due to a
circuit constant is about +10%.
2 SVM1130 requires forced air cooling when the 22/3000, 30/3000, 40/2000 (with a fan),
L25/3000, or L50/2000 is driven. At this time, the rated output current is 51.0 Arms.
1114
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.24 [Description]
Reading Tool Life By specifying a tool No., the No. of the tool group to which the specified
Management Data tool belongs can be read from tool life management data.
(Tool Group No.)
Top address + 0
(Function code)
38
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
M
(M : Tool No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool No., the No. of the tool group
currently used is read. In this case, if a tool group No. has
not been specified since the power to the CNC was turned
on, 0 is output.
If the same tool belongs to two or more tool groups, the Nos.
of all tool groups to which the tool belongs are displayed.
1115
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool group No. has been read normally.
4 : The value specified for the data attribute is invalid.
5 : The specified tool No. was not found.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
38
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L L = 4 to 4 n
(L = 4 n) n is the number of tool groups to
which the specified tool belongs.
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1116
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.25 [Description]
Reading Tool Life The number of tool groups in tool life management data can be read.
Management Data The number of tool groups that can be registered varies depending on the
(Number of Tool setting of parameter 6800 of the CNC, as indicated in the following table.
Groups)
Parameter 6800
Number of tools
The numbers in parentheses apply when the additional
GS2 GS1 option is used
M series T series
0 0 1 to 16 (1 to 64) 1 to 16 (1 to 16)
0 1 1 to 32 (1 to 128) 1 to 32 (1 to 32)
1 0 1 to 64 (1 to 256) 1 to 64 (1 to 64)
1 1 1 to 128 (1 to 512) 1 to 16 (1 to 128)
M series: For Machining Centers T series: For Lathes
Top address + 0
(Function code)
39
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1117
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The number of tool group Nos. has been read normally.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
39
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
8
(Data attribute)
Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1118
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.26 [Description]
Reading Tool Life By specifying a tool group No., the number of tools that belong to the tool
Management Data group can be read from tool life management data.
(Number of Tools) The number of tools that can be registered varies depending on the setting
of parameter 6800 of the CNC, as indicated in the following table.
Parameter 6800
Number of tools
The numbers in parentheses apply when the additional
GS2 GS1 option is used
M series T series
0 0 1 to 16 (1 to 64) 1 to 16 (1 to 16)
0 1 1 to 32 (1 to 128) 1 to 32 (1 to 32)
1 0 1 to 64 (1 to 256) 1 to 64 (1 to 64)
1 1 1 to 128 (1 to 512) 1 to 16 (1 to 128)
M series: For Machining Centers T series: For Lathes
Top address + 0
(Function code)
40
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1119
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
CAUTION
If 0 is specified for the tool group No., the number of tools
that belong to the tool group currently used is read. In this
case, if a tool group No. has not been specified since the
power to the CNC was turned on, 0 is output.
[Completion codes]
0 : The number of tools has been read normally.
3 : The specified tool group No. is invalid.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
40
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1120
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.27 [Description]
Reading Tool Life By specifying a tool group No., the life of tools belonging to the tool
Management Data group can be read from tool life management data.
(Tool Life) Whether to display the tool life in minutes or the number of cycles is
(not Supported by the selected by bit 2 of parameter 6800 (LTM) for the CNC.
Power Mate D, F, or
Series 21TA) [Input data structure]
Top address + 0
(Function code)
41
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool group No., the tool life of the tool
group currently used is read. In this case, if a tool group No.
has not been specified since the power to the CNC was
turned on, 0 is output.
1121
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool life has been read normally.
3 : The specified tool group No. is invalid.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
41
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1122
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.28 [Description]
Reading Tool Life By specifying a tool group No., the tool life counter for the specified tool
Management Data group can be read from tool life management data.
(Tool Life Counter)
Top address + 0
(Function code)
42
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool group No., the tool life counter
for the tool group currently used is read. In this case, if a tool
group No. has not been specified since the power to the
CNC was turned on, 0 is output.
1123
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool life has been read normally.
3 : The specified tool group No. is invalid.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
42
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1124
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.29 [Description]
Reading Tool Life By specifying a tool group No. and a tool No., the tool length
Management Data compensation No. for the specified tool can be read from tool life
(Tool Length management data. This function is available only with the M series
CNCs.
Compensation No. (1):
Tool No.)
Top address + 0
(Function code)
43
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for both the tool group No. and tool No., the
Nos. of the tool group and tool currently used are read. In
this case, if a tool group No. has not been specified since
the power to the CNC was turned on, 0 is output.
For the T series CNCs, 0 is always output.
1125
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool length compensation No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool No. is invalid.
5 : The specified tool No. was not found in the specified tool group.
6 : The tool life management option has not been added.
Top address + 0
(Function code)
43
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1126
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.30 [Description]
Reading Tool Life By specifying a tool group No. and tool order No., the tool length
Management Data compensation No. for the specified tool can be read from tool life
(Tool Length management data. This function is available only with the M series CNCs.
Compensation No. (2):
Tool Order No.)
(Function code)
44
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool order No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool group No., the No. of the tool
group currently used is read. In this case, if a tool group No.
has not been specified since the power to the CNC was
turned on, 0 is output.
When 0 is specified for the tool order No., if the specified tool
group has been used, the tool currently used is read. In this
case, if the specified tool group has not been used, the first
tool in the group is read.
For the T series CNCs, 0 is always output.
1127
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool length compensation No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool order is invalid.
5: The tool having the specified tool order is not registered in the
specified tool group.
6 : The tool life management option has not been added.
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Tool length compensation No. (4 bytes) Unsigned binary
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1128
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.31 [Description]
Reading Tool Life By specifying a tool group No. and a tool No., the cutter compensation
Management Data No. for the specified tool can be read from tool life management data.
(Cutter Compensation This function is available only with the M series CNCs.
No. (1): Tool No.)
(Function code)
45
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M : Tool No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for both tool group No. and tool No., the Nos.
of the tool group and tool currently used are read. If a tool
group No. has not been specified since the power to the
CNC was turned on, 0 is output.
For the T series CNCs, 0 is always read.
1129
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The cutter compensation No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool No. is invalid.
5 : The specified tool No. was not found in the specified tool group.
6 : The tool life management option has not been added.
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Cutter compensation No. (4 bytes) Unsigned binary
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1130
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.32 [Description]
Reading Tool Life By specifying a tool group No. and a tool order No., the cutter compensation
Management Data No. for the specified tool can be read from tool life management data. This
(Cutter Compensation function is available only with the M series CNCs.
No. (2): Tool Order No.)
(Function code)
46
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool order No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool group No., the No. of the tool
group currently used is referenced. In this case, if a tool
group No. has not been specified since the power to the
CNC was turned on, 0 is output.
When 0 is specified for the tool order No., if the specified tool
group has been used, the tool currently used is read. In this
case, if the specified tool group has not been used, the first
tool in the group is referred to.
For the T series CNCs, 0 is always output.
1131
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The cutter compensation No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool order No. is invalid.
5: The tool having the specified tool order is not registered in the
specified tool group.
6 : The tool life management option has not been added.
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Cutter compensation No. (4 bytes) Unsigned binary
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1132
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.33 [Description]
Reading Tool Life By specifying a tool group No. and a tool No., the information for the
Management Data specified tool can be read from tool life management data.
(Tool Information (1) :
Tool No.)
(Function code)
47
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for both tool group No. and tool No., the Nos.
of the tool group and tool currently used are referenced.
If neither a tool group No. nor a tool No. has been specified
since the power to the CNC was turned on, 0 is output.
1133
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool group No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool No. is invalid.
5 : The specified tool No. was not found in the specified tool group.
6 : The tool life management option has not been added.
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Number of tools (4 bytes) 0: See Note) on the previous page.
1: The tool is registered.
2: The tool has reached the end of its life.
3: The tool was skipped.
The three highorder bytes are fixed to 0.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1134
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.34 [Description]
Reading Tool Life By specifying a tool group No. and a tool order No., the information for
Management Data the specified tool can be read from tool life management data.
(Tool Information (2):
Tool Order No.)
Top address + 0
(Function code)
48
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool order No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
If 0 is specified for the tool group No., the No. of the tool
group currently used is read. If a tool group No. has not
been specified since the power to the CNC was turned on,
0 is output.
When 0 is specified for the tool order No., if the specified tool
group has ever been used, the tool currently used is read.
In this case, if the specified tool group has not been used,
the first tool in the group is referred to.
1135
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool group No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool order No. is invalid.
5: The tool having the specified tool order is not registered in the
specified tool group.
6 : The tool life management option has not been added.
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Tool information (4 bytes) 0: See Note) on the previous page.
1: The tool is registered.
2: The tool has reached the end of its life.
3: The tool was skipped.
The three highorder bytes are fixed to 0.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1136
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.35 [Description]
Reading Tool Life By specifying a tool group No. and a tool order No., the No. of the
Management Data corresponding tool can be read from tool life management data.
(Tool No.)
(Function code)
49
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Tool group No.)
8
(Data attribute)
M
(M: Tool order No.)
10
(Data area)
(Need not be set)
X X
42
CAUTION
When 0 is specified for the tool group No., the tool group
currently used is referenced. If neither a tool group No. nor
a tool No. has been specified since the power to the CNC
was turned on, however, 0 is output for the tool group No.
When 0 is specified for the tool order No., if the specified tool
group has been used, the tool currently used is referred to.
If the specified tool group has not been used, the first tool
in the group is referenced.
1137
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool No. has been read normally.
3 : The specified tool group No. is invalid.
4 : The specified tool order No. is invalid.
6 : The tool life management option has not been added.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
6
(Data number)
N
(N: Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Tool No. (4 bytes) Unsigned binary
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1138
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.36 [Description]
Reading the Actual The actual speed of the spindle can be read from the CNC.
Spindle Speed
[Input data structure]
Top address + 0
(Function code)
50
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
(Data number)
0
(Data attribute)
0
10
(Data area)
(Need not be set)
X X
42
1139
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The actual speed of the spindle has been read normally.
[Output data structure]
Top address + 0
(Function code)
50
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
(Data number)
(Data attribute)
Value
10
Actual spindle speed Unsigned binary
<Data unit>
min1
1140
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.37 [Description]
Entering Data on the On the program check screen of the CNC, data can be entered for the
Program Check Screen spindle tool No. (HD.T) and the next tool No. (NX.T). This function is
(:Lowspeed available only with the M series CNCs.
Response) This function is effective only when bit 2 of parameter 3108 is 1.
(not available for
Power MateD/F,
Series 21TA) [Input data structure]
Top address + 0
(Function code)
150
2
(Completion code)
(Need not be set)
(Data length)
4
6
(Data number) N = 0 : Spindle tool No. (8 digits)
N
(N = 0, 1)
N = 1 : Next tool No. (8 digits)
8
(Data attribute)
0 Value
10
Data for the spindle tool No. Unsigned binary
(4 bytes)
or data for the next tool No.
(4 bytes)
1141
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Data has been entered on the program check screen normally.
2 : The data length in bytes is invalid.
3 : The data No. is invalid.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
4
(Input data)
6
(Data number) N = 0 : Spindle tool No. (8 digits)
N
(Input data)
N = 1 : Next tool No. (8 digits)
8
(Data attribute)
(Input data) Value
10
Data for the spindle tool No. Unsigned binary
(4 bytes)
or data for the next tool No.
(4 bytes)
1142
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.38 [Description]
Reading Clock Data The current date (year, month, day) and time (hours, minutes, seconds)
(Date and Time) can be read from the clock built into the CNC.
(not available for
Power MateF) [Input data structure]
Top address + 0
(Function code)
151
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6 N = 1: Reads current date and time.
(Data number)
N N = 0: Reads current date.
(N = 0, 1)
8 N = 1: Reads current time.
(Data attribute)
0
10
(Data area)
(Need not be set)
[Completion codes]
0 : Data of the clock built into the CNC has been read normally.
3 : A value other than 0, 1, and 1 was specified for the data No.
1143
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
6/12
6
(Data number)
N
(Input data)
8
(Data attribute)
(Input data) Value
10
Current date (year) or time (hours) Unsigned binary
12
Current date (month) or time (minutes)
14
Current date (day) or time (seconds)
When both the current date and current time are specified to be read by entering [1] for the data No.
(Input data) Value
10
Current date (year) Unsigned binary
12
Current date (month)
14
Current date (day)
16
Current time (hours)
18
Current time (minutes)
20
Current time (seconds)
1144
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.39 [Description]
Entering Torque Limit Torque limit values for the digital servo motor can be entered.
Data for the Digital
Servo Motor
(:Lowspeed
Response) [Input data structure]
Top address + 0
(Function code)
152
2
(Completion code)
(Need not be set)
(Data length)
2
6
(Data number)
0
8
(Data attribute)
M M = 1 to n: Axis No.
(M: 1 to n)
Value
10
Torque limit data Unsigned binary
(1 byte) <Unit: %>
The highorder byte is always set to 0. Values from 0 to 255 correspond to 0%
to 100%.
1145
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Torque limit data has been entered normally.
4 : The specified data attribute is invalid. That is, a value other than
1 to n (number of axes) was specified, or the specified axis No. was
greater than the number of controlled axes.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
2
(Input data)
6
(Data number)
(Input data)
8
(Data attribute)
M
(M: Input data) Value
10
Torque limit data (1 byte): Input data Unsigned binary
The highorder byte is always set to 0. <Unit: %>
Values from 0 to 255 correspond to 0%
to 100%.
1146
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.40 [Description]
Reading Load Load information of the serial spindle can be read.
Information of the The equation to normalize the load information is shown below
Spindle Motor (Serial
Load (%) + L l
Interface) 32767
L: Data read from the window
: The percentage of the maximum output of the motor to the
continuous rated output of the motor (When the maximum output
is 180% and the continuous rated output is 100%, the percentage
is 180.)
CAUTION
is equal to the value of parameter No. 4127.
(Function code)
153
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N N= 0: Read the load of the No.1 spindle.
(Need not be set) 1: Read the load of the No.2 spindle.
2: Read the load of the No.3 spindle.
8 3: Read the load of the No.4 spindle.
1: Read the loads of the No.1 and No.2 spindles.
(Data attribute) 2: Read the loads of the No.1 to No.3 spindles.
0 3: Read the loads of the No.1 to No.4 spindles.
10
(Data area)
(Need not be set)
X X
42
1147
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Load information of the serial spindle has been read normally.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
L = 2: Specifies the first axis.
(Data length)
L
(L = 2, 4)
L = 4: Specifies all axes.
6 N= 0: Read the load of the No.1 spindle.
(Data number) 1: Read the load of the No.2 spindle.
N 2: Read the load of the No.3 spindle.
(N: Input data) 3: Read the load of the No.4 spindle.
1: Read the loads of the No.1 and No.2 spindles.
8 2: Read the loads of the No.1 to No.3 spindles.
3: Read the loads of the No.1 to No.4 spindles.
(Data attribute)
Value
10
Load information of the serial spindle Unsigned binary, 2 bytes long
(first or second axis)
(Data attribute)
Value
10
First axis in the load information of the Unsigned binary, 2 bytes long
serial spindle
12
Second axis in the load information of
the serial spindle
1148
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
(Data attribute)
Value
10
First axis in the load information of the Unsigned binary, 2 bytes long
serial spindle
12
Second axis in the load information of
the serial spindle
14
Third axis in the load information of the
serial spindle
(Data attribute)
Value
10
First axis in the load information of the Unsigned binary, 2 bytes long
serial spindle
12
Second axis in the load information of
the serial spindle
14
Third axis in the load information of the
serial spindle
16
Fourth axis in the load information of
the serial spindle
1149
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.41 [Description]
Reading a Parameter Parameter data in the CNC can be read directly from the CNC via the
(not available for FANUC bus.
Power MateD/F, This function is basically the same as the function described in Section
Series 21TA) B.4.6 Reading a Parameter, except that the function code is 154 and
some of the completion codes are different.
(Function code)
154
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Parameter No.)
8 M=0 : No axis
(Data attribute)
M M = 1 to n : Specific axis
(M: 0, 1 to n, or 1)
10 M = 1 : All axes
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : Parameter data has been read normally.
3 : The parameter No. specified to be read is invalid.
4 : A value other than 0, 1, and 1 to n (number of axes) was specified
for the data attribute.
6 : An option required for setting the parameter to be read, such as the
error compensation option, is not provided.
1150
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.42 [Description]
Reading Set Data Set data stored in the CNC can be read directly from the CNC via the
(not available for FANUC bus.
Power MateD/F, This function is basically the same as the function described in Section
Series 21TA) B.4.8 Reading Set Data, except that the function code is 155 and some
of the completion codes are different.
(Function code)
155
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Setting data No.)
8 M=0 : No axis
(Data attribute)
M M = 1 to n : Specific axis
(M: 0, 1 to n, or 1)
10 M = 1 : All axes
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : Set data has been read normally.
3 : The set data No. specified to be read is invalid.
4 : A value other than 0, 1, and 1 to n (number of axes) was specified
for the data attribute.
1151
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.43 [Description]
Reading Diagnosis Data displayed on the diagnosis data screen of the CNC can be read
Data (not available for directly from the CNC via the FANUC bus.
Power MateD/F, This function is basically the same as the function described in Section
Series 21TA) B.4.22 Reading Diagnosis Data, except that the function code is 156
and some of the completion codes are different.
(Function code)
156
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N: Diagnosis No.)
8 M=0 : No axis
(Data attribute)
M M = 1 to n : Specific axis
(M: Axis number)
10 M = 1 : All axes
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : Diagnosis data has been read normally from the CNC.
3 : The diagnosis No. specified to be read is invalid.
4 : A value other than 0, 1, and 1 to n (number of axes) was specified
for the data attribute.
6 : An option required for using the diagnosis data to be read, such
as the remote buffer option, is not provided.
1152
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.44 [Description]
Reading a Character In a machining program being executed on the CNC, the block currently
String of the CNC executed, the next block, and the next block but one can be read in the
Program Being CNC program format. That is, these blocks can be read in the form of a
Executed in the Buffer character string of ASCII codes. This function is available only with the
M series CNCs.
Comments in a block can also be read.
The maximum number of characters in a character string is fixed to 64.
Top address + 0
(Function code)
157
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
(Need not be set)
X X
74
NOTE
1 When data specified by the NC is a macro statement, the
character string cannot be read correctly.
2 When data attribute M is set to 2, the next block but one can
be read only when the next block is an instruction for tool
diameter compensation C.
1153
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The character string of the CNC program being executed in the
buffer has been read normally.
4 : The value specified for the data attribute is invalid.
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length) 64 characters
64
(Data number)
8
(Data attribute)
M
(M: Specified block)
10
NC command data for the first character ASCII code
RC(1) If a block consists of less than 64
characters, the remaining bytes are
11 NC command data for the second filled with 20H (space).
character
RC(2)
X X X
X X X
73
NC command data for the 64th character
RC(64)
1154
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.45 [Description]
Reading the Relative The relative coordinates of the machine moving along an axis controlled
Position on a by the CNC can be read.
Controlled Axis
[Input data structure]
Top address + 0
(Function code)
74
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute) M = 1 to n : Reads the relative coordinates of
M each axis. n is an axis No.
(M: Axis number)
M = 1 : Reads the relative coordinates of
10 all axes.
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : The relative coordinates on the controlled axis have been read
normally.
4 : The specified data attribute is invalid. That is, a value other than
1 and 1 to n (number of axes) was specified, or the specified axis
No. was greater than the number of controlled axes.
1155
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4*n. n is the number of
specified axes.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
10
Relative coordinates on the specified Signed binary
controlled axis (4 bytes) (A negative value is represented in 2s
complement.)
Value
10
Relative coordinates on the first axis Signed binary
(4 bytes) (A negative value is represented in 2s
complement.)
14
Relative coordinates on the second
axis (4 bytes)
18
Relative coordinates on the third axis
(4 bytes)
22
Relative coordinates on the fourth axis
(4 bytes)
Double values can be read for a machining center system or when radius
specification is used for the relevant axis of a lathe system.
1156
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.46 [Description]
Reading the Remaining The remaining travel of the machine along an axis controlled by the CNC
Travel can be read. The read value equals the remaining travel indicated on the
current position display screen on the CNC. (This screen can be called
by pressing the function button POS.)
(Function code)
75
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute) M = 1 to n: Reads the remaining travel along
M each axis. n is an axis No.
(M: Axis number)
M = 1 : Reads the remaining travel along all
10 axes.
(Data area)
(Need not be set)
X X
42
[Completion codes]
0 : The remaining travel along the controlled axis has beenread
normally.
4 : The specified data attribute is invalid. That is, a value other than
1 and 1 to n (number of axes) was specified, or the specified axis
No. was greater than the number of controlled axes.
1157
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address + 0
(Function code)
75
2 (Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4*n. n is the number of
specified axes.)
6
(Data number)
8
(Data attribute)
M
(M: Input data) Value
10
Remaining travel along the specified Signed binary
controlled axis (4 bytes) (A negative value is represented in 2s
complement.)
Value
10
Remaining travel along the first axis Signed binary
(4 bytes) (A negative value is represented in 2s
complement.)
14
Remaining travel along the second
axis (4 bytes)
18
Remaining travel along the third axis
(4 bytes)
22
Remaining travel along the fourth axis
(4 bytes)
1158
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.47 [Description]
Reading CNC Status Status information (status indication on the screen) can be read from the
Information CNC.
The types of status information that can be read are as follows.
(1) Indication of which mode is selected, automatic or manual
(2) Status of automatic operation
(3) Status of movement along the axis and dwelling
(4) Status of M, S, T, and B functions
(5) Statuses of emergency stop and the reset signal
(6) Alarm status
(7) Status of program edit
(Indication)
13 (5)
EMG
(1) (2) (3) (4) (6) (7)
14 EDIT STOP MTN FIN ALM 16:52:13 READ 14
(Function code)
76
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
0
8
(Data attribute)
0
10
(Data area)
X X
(Need not be set)
42
1159
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : CNC status information has been read normally.
[Output data structure]
Top address + 0
(Function code)
76
2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
14
6
(Data number)
(Input data)
8
(Data attribute)
(Input data) Value
10
Indication of which mode is currently 0 : MDI
selected, automatic or manual 1 : MEMory
(2 bytes) 2 : **** (Other states)
3 : EDIT
4 : HaNDle
5 : JOG
6 : Teach in JOG
7 : Teach in HND
8 : INC. feed
9 : REFerence
10: ReMoTe
12
Status of automatic operation (2 bytes) 0 : **** (Reset states)
1 : STOP
2 : HOLD
3 : STaRT
14 Status of movement along the axis or 0 : *** (Other states)
dwelling (2 bytes) 1 : MoTioN
2 : DWell
1160
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.48 [Description]
Reading Value of the This function gets the value of variable for Macrocompiler (Pcode
Pcode Macro Variable macro variable) of specified number.
(:Lowspeed The extended Pcode macro variable is not able to be read.
Response)
[Input data structure]
Top address + 0
(Function code)
59
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
N
(Pcode macro variable number)
+ 10
(Data attribute)
0
+ 12
(Data area)
(Need not be set)
+ 18
CAUTION
The Data number occupies 4 bytes instead of 2 bytes of
usual data structure.
1161
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to read the value of Pcode macro variable.
3 : The Pcode macro variable specified by Data number is not able
to be read.
5 : The value of the Pcode macro variable is out of range
("0.0000001 "99999999).
6 : No option, or no Macro ROM module.
[Output data structure]
Top address + 0
(Function code)
59
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
6
+6
(Data number)
N
(Same as input data)
+ 10
(Data attribute)
(Same as input data) Value
+ 12
Value of Pcode macro variable Signed binary
(4bytes) (Minus number is represented by 2s
complemental)
1162
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.49 [Description]
Writing Value of the This function stores the value into the variable for Macrocompiler
Pcode Macro Variable (Pcode macro variable) of specified number.
(:Lowspeed The extended Pcode macro variable is not able to be written into.
Response)
[Input data structure]
Top address + 0
(Function code)
60
+2
(Completion code)
(Need not be set)
+4
(Data length)
6
+6
(Data number)
N
(Pcode macro variable number)
+ 10
(Data attribute)
0 Value
+ 12
Value of Pcode macro variable Signed binary
(4bytes) (Minus number is represented by 2s
complemental)
+ 16
Figures after decimal point of the value Signed binary
(2bytes) (Minus number is represented by 2s
complemental)
CAUTION
The data number occupies 4 bytes instead of 2 bytes of
usual data structure.
1163
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to store the value into Pcode macro variable.
2 : The data length has illegal data (is not 6).
3 : The Pcode macro variable specified by Data number is not able
to be written.
6 : No option, or no Macro ROM module.
(Function code)
60
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
6
(Same as input data)
+6
(Data number)
N
(Same as input data)
+ 10
(Data attribute)
(Same as input data)
+ 12
Value of Pcode macro variable
(4bytes)
+ 16
Figures after decimal point of the value
(2bytes)
1164
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.50 [Description]
Reading the Tool Life This function gets the Tool life counter type of specified tool group in the
Management Data Tool life management data. (M series only)
(Tool Life Counter
Type)
(Function code)
160
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
0
+ 10
(Data area)
(Need not be set)
+ 12
CAUTION
About Tool group number (in Data number)
0 as Tool group number indicates the Tool group currently
used.
When Tool group has never specified since poweron, 0
of Tool group number results 0 as counter type.
0 of counter type will be returned on T series.
1165
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to read the Tool life counter type.
3 : The Tool group number is out of range from 0 to 512, or exceeds
the maximum number of registered Tool group.
6 : No option for Tool life management.
[Output data structure]
Top address + 0
(Function code)
160
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
2
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
(Same as input data) Value
+ 10
Tool life counter type (2bytes) 0 : No counter type
1 : Frequency
2 : Real time (in minutes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1166
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.51 [Description]
Registering the Tool This function registers the Tool group in Tool life management data, with
Life Management Data Tool number, length of life and Tool life counter type. On T series, the
(Tool Group) Tool life counter type will be specified by the NC parameter LTM
(No.6800#2), and this function cannot set/change the counter type.
(:Lowspeed
Response)
+2
(Completion code)
(Need not be set)
+4
(Data length)
8
+6
(Data number)
0
+8
(Data attribute)
M
(M = Tool number) Value
+ 10
Tool group number Unsigned binary
(2bytes) 1512
+ 12
Tool life counter type 1 : Frequency
(2bytes) 2 : Real time in minutes
+ 14
Tool life (4bytes) Unsigned binary
19999 (Frequency)
14300 (Real time in minutes: 1count/4sNote)
11090 (Real time in minutes: 1count/1sNote)
NOTE
The tool life count is changed by parameter 6801#5.
6801#5 = 0 : the life is counted every 4seconds.
6801#5 = 1 : the life is counted every 1second.
[Completion codes]
0 : Success to register the Tool group.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool number in Data attribute has wrong value.
5 : The length of Tool life in Data area is out of range. The Tool life
counter type does not match on T series.
6 : No option for Tool life management.
1167
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
(Function code)
163
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
8
(Same as input data)
+6
(Data number)
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+ 10
Tool group number (2bytes)
(Same as input data)
+ 12
Tool life counter type (2bytes)
(Same as input data)
+ 14
Length of Tool life (4bytes)
(Same as input data)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1168
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.52 [Description]
Writing the Tool Life This function sets the length of Tool life of the specified Tool group in the
Management Data Tool life management data.
(Tool Life)
(:Lowspeed
Response)
[Input data structure]
Top address + 0
(Function code)
164
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
0
Value
+10
Unsigned binary
19999 (Frequency)
14300 (Real time in minutes: 1count/4sNote)
Tool life (4bytes) 11090 (Real time in minutes: 1count/1sNote)
Case of Tool life management data B
1999999 (Frequency)
1100000 (Real time in minutes)
NOTE
The tool life count is changed by parameter 6801#5.
6801#5 = 0 : the life is counted every 4seconds.
6801#5 = 1 : the life is counted every 1second.
1169
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the length of Tool life.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
5 : The length of Tool life is out of range.
6 : No option for Tool life management.
13 : The data of the currently selected tool group or the next tool group
cannot be rewritten. An attempt was made to rewrite the data of
the currently selected tool group or the next group.
[Output data structure]
Top address +0
(Function code)
164
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
(Same as input data)
+10
Length of Tool life (4bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1170
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.53 [Description]
Writing the Tool Life This function sets the Tool life counter in the specified Tool group in the
Management Data Tool life management data.
(Tool Life Counter)
(:Lowspeed
Response)
[Input data structure]
Top address + 0
(Function code)
165
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
0 Value
+10
Tool life counter (4bytes) Unsigned binary
19999 (Frequency)
14300 (Real time in minutes: 1count/4sNote)
11090 (Real time in minutes: 1count/1sNote)
Case of Tool life management data B
1999999 (Frequency)
1100000 (Real time in minutes)
NOTE
The tool life count is changed by parameter 6801#5.
6801#5 = 0 : the life is counted every 4seconds.
6801#5 = 1 : the life is counted every 1second.
1171
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool life counter.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
5 : The value for Tool life counter is out of range.
6 : No option for Tool life management.
[Output data structure]
Top address + 0
(Function code)
165
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
(Same as input data)
+10
Length of Tool life (4bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1172
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.54 [Description]
Writing the Tool Life This function sets the Tool life counter type of specified Tool group in the
Management Data Tool life management data. (M series only)
(Tool Life Counter
Type) (:Lowspeed
Response)
Top address + 0
(Function code)
166
+2
(Completion code)
(Need not be set)
+4
(Data length)
2
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
0
Value
+10
Tool life counter type (2bytes) 1 : Frequency
2 : Real time in minutes
1173
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool life counter type.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
5 : The value for Tool life counter type is wrong.
6 : No option for Tool life management.
Top address + 0
(Function code)
166
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
2
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
(Same as input data)
+10
Tool life counter type (2bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1174
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.55 [Description]
Writing the Tool Life This function sets the Tool length offset number of the specified Tool
Management Data group in the Tool life management data. (M series only)
(Tool Length Offset
Number (1) : Tool
Number) (:Lowspeed
Response)
Top address + 0
(Function code)
167
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool number) Value
+10
Tool length offset number (4bytes) Unsigned binary
1255
1175
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool length offset number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool number in Data attribute has wrong value.
5 : The Tool number is not found in the Tool group.
6 : No option for Tool life management.
Top address + 0
(Function code)
167
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Tool length offset number (4bytes)
CAUTION
The effective value for Tool length offset number depends
on Tool compensation number available on NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1176
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.56 [Description]
Writing the Tool Life This function sets the Tool length offset number of the Tool of the
Management Data specified Tool operation sequence number in the Tool life management
(Tool Length Offset data. (M series only)
Number (2) : Tool
Operation Sequence
Number) (:Lowspeed
Response)
Top address + 0
(Function code)
168
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool operation sequence number) Value
+10
Tool length offset number (4bytes) Unsigned binary
1255
1177
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool length offset number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool operation sequence number is wrong.
6 : No option for Tool life management.
Top address + 0
(Function code)
168
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Tool length offset number (4bytes)
CAUTION
The effective value for Tool length offset number depends
on Tool compensation number available on NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1178
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.57 [Description]
Writing the Tool Life This function sets the Cutter compensation number of the specified Tool
Management Data group in the Tool life management data. (M series only)
(Cutter Compensation
Number (1) : Tool
Number) (:Lowspeed
Response)
Top address + 0
(Function code)
169
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool number) Value
+10
Cutter compensation number (4bytes) Unsigned binary
1255
1179
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Cutter compensation number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool number in Data attribute has wrong value.
5 : The Tool number is not found in the Tool group.
6 : No option for Tool life management.
Top address + 0
(Function code)
169
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Cutter compensation number (4bytes)
CAUTION
The effective value for Cutter compensation number
depends on Tool compensation number available on NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1180
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.58 [Description]
Writing the Tool Life This function sets the Cutter compensation number of the Tool of the
Management Data specified Tool operation sequence number in the Tool life management
(Cutter Compensation data. (M series only)
Number (2) : Tool
Operation Sequence
Number) (:Lowspeed
Response)
Top address + 0
(Function code)
170
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool operation sequence number) Value
+10
Cutter compensation number (4bytes) Unsigned binary
1255
1181
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Cutter compensation number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool operation sequence number is wrong.
6 : No option for Tool life management.
Top address + 0
(Function code)
170
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Cutter compensation number (4bytes)
CAUTION
The effective value for Cutter compensation number
depends on Tool compensation number available on NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1182
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.59 [Description]
Writing the Tool Life This function sets the Tool condition of the specified Tool group in the
Management Data Tool life management data.(M series only)
(Tool Condition (1) :
Tool Number)
(:Lowspeed
Response)
Top address + 0
(Function code)
171
+2
(Completion code)
(Need not be set)
+4
(Data length)
2
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool number) Value
+10
Tool condition (2bytes) 1 : Tool state clear
2 : Tool state skip
1183
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool condition.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool number in Data attribute has wrong value.
5 : The Tool number is not found in the Tool group.
6 : No option for Tool life management.
Top address + 0
(Function code)
171
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
2
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Tool condition (2bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1184
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.60 [Description]
Writing the Tool This function sets the Tool condition of the Tool of the specified Tool
Management Data operation sequence number in the Tool life management data.
(Tool Condition (2) :
Tool Operation
Sequence Number)
(:Lowspeed
Response)
Top address + 0
(Function code)
172
+2
(Completion code)
(Need not be set)
+4
(Data length)
2
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool operation sequence number) Value
+10
Tool condition (2bytes) 1 : Tool state clear
2 : Tool state skip
1185
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to set the Tool condition.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool operation sequence number is wrong.
6 : No option for Tool life management.
Top address + 0
(Function code)
172
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
2
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Tool condition (2bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1186
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.61 [Description]
Writing the Tool Life This function registers a tool to the specified Tool group in the Tool life
Management Data management data.
(Tool Number)
(:Lowspeed
Response)
Top address + 0
(Function code)
173
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N = Tool group number)
+8
(Data attribute)
M
(M = Tool operation sequence number) Value
+10
Tool number (4bytes) Unsigned binary
19999
1187
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Success to register the Tool number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
4 : The Tool operation sequence number is wrong.
6 : No option for Tool life management.
Top address + 0
(Function code)
173
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
Tool number (4bytes)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function.
1188
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.62
Reading the Estimate Power
FS20 FS18 FS16
Mate
Disturbance Torque
Data
: The support is decided by CNC series
: No support
CAUTION
The abnormal load detection function option is required.
For detailed settings of parameters and so forth, refer to the
description of abnormal load detection in the connection
manual (functions).
Top address + 0
(Function code)
211
+2
(Completion code)
(Need not to be set)
+4
(Data length)
(Need not to be set)
+6
(Data number)
0
+8
(Data attribute) M=1 to n : Estimate disturbance torque data
M for specific axis. n is the axis
(M=1 to n or 1) number.
+10
M= 1 : Estimate disturbance torque data
(Data area)
for all axes.
(Need not to be set)
+12
1189
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The estimate disturbance torque data have been read normally.
4 : The data specified as the data attribute is invalid because it is
neither 1 nor a value from 1 to n (n is the number of axes).
Alternatively, the specified axis number is greater than the number
of controlled axes.
[Output data structure]
Top address + 0
(Function code)
211
+2
(Completion code)
?
(See the explanation of the
completion codes. )
+4
(Data length)
L
(L=2 n, n is the number
of axes specified. )
+6
(Data number)
0
+8
(Data attribute)
M
(M : Input data) Value
+10
Estimate disturbance torque data for- (A negative value is represented in 2s
the controlled axis specified complement. )
(2 bytes)
+12
Value
+10 Estimate disturbance torque
data forfirst axis Signed binary
(2 bytes) (A negative value is represented in 2s
complement. )
+12 Estimate disturbance torque
data forsecond axis
(2 bytes)
+14 Estimate disturbance torque
data forthird axis
(2 bytes)
+16 Estimate disturbance torque
data forfourth axis
(2 bytes)
+18
1190
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
211
+2
(Completion code)
(Need not to be set)
+4
(Data length)
(Need not to be set)
+6
(Data number)
1 M= 1 to n: Read the load of each spindle.
(n is the spindle number.)
+8 1: Read the loads of the No.1 and No.2 spindles.
(Data attribute) 2: Read the loads of the No.1 to No.3 spindles.
M 3: Read the loads of the No.1 to No.4 spindles.
(M=1 to n or 1)
+10
(Data area)
(Need not to be set)
+12
1191
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The estimate disturbance torque data have been read normally.
4 : The data specified as the data attribute is invalid because it is neither
1 nor a value from 1 to n (n is the number of axes) . Alternatively,
the specified axis number is greater than the number of controlled
axes.
[Output data structure]
Top address + 0
(Function code)
211
+2
(Completion code)
?
(See the explanation of
the completion codes. )
+4
(Data length)
L
(L=2 n, n is the number
of axes specified. )
+6
(Data number)
1
+8
(Data attribute)
M
(M : Input data) Value
+10
Estimate disturbance torque Signed binary
data forthe controlled axis specified (A negative value is represented in 2s
(2 bytes) complement. )
+12
Value
[supporting soft]
CNC : B005 SERIES Edition K or later
B105 SERIES Edition H or later
B205 SERIES Edition H or later
BD03 SERIES Edition L or later
BE03 SERIES Edition I or later
BF03 SERIES Edition I or later
SERVO : 9060 SERIES Edition J or later
SPINDLE : 9A50 SERIES Edition Q or later
* Some of the series not listed above are supported by the first edition.
1192
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.63 [Description]
Reading the Current This function reads CNC program numbers extended to 8 digits from the
Program Number usual 4 digits.
(8digit Program Basically, this function is the same as function number 24 excluding the
different data length of function code 90.
Numbers)
(not available for
Power MateD/F,
Series 21TA)
[Input data structure]
Top address 0
(Function code)
90
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
(Data number)
0
(Data attribute)
0
10
(Data area)
(Need not be set)
18
[Completion codes]
1 : The read command of the currently executing program could not
be executed. That is, the same command could not be executed as
the data of the program number was being updated on the CNC.
0 : The program number of the currently executing program has been
read normally.
1193
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address 0
(Function code)
200
2
(Completion code)
?
(See the explanation of the completion
codes, above.)
4
(Data length)
8
6
(Data number)
8
(Data attribute)
Value
10
Number of the program currently being Unsigned binary format, 4byte length
executed
ON
14
Program number of the main program
ON
18
1194
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.64 [Description]
Reading Tool Life This function reads the tool group number to which the tool number is
Management Data currently registered.
(Tool Group Number)
Top address 0
(Function code)
200
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
(Data number)
0
8
(Data attribute)
M
(M=Tool number)
12
(Data area)
(Need not be set)
16
NOTE
When the tool number is set to 0, the tool group number
of the currently used tool is read.
If a tool group number is not specified after the power is
turned ON, tool group number 0 is read. Also, if a tool
number is registered to two or more tool group numbers, the
tool group numbers of all tool groups to which the tool
number is registered are read.
1195
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool group number was read successfully.
4 : The tool number in Data Attribute has a wrong value.
5 : The tool number is not registered.
6 : The tool life management option has not been added on.
Top address 0
(Function code)
200
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
L L=4 to 4 x n
(L=4 n) n is the number of tool group numbers
6 when multiple groups is specified.
(Data number)
8
(Data attribute)
M
(M: entered data) Value
12
Unsigned binary
Tool group number
(4 bytes)
16
Value
24
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1196
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.65 [Description]
Reading Tool Life This function reads the tool length offset number according to the
Management Data specified tool group number and tool number. (M series only)
(Tool Length Offset
Number 1)
Top address 0
(Function code)
227
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
12
(Data area)
(Need not be set)
16
CAUTION
When the tool group number and tool number are set to 0,
the currently used tool group and tool number are
referenced.
If a tool group number is not specified after the power is
turned ON, tool group number 0 is read.
0 is always read on the T series.
1197
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool length offset number was read successfully.
3 : The specified tool group number is incorrect.
4 : The specified tool number is incorrect.
5 : The specified tool number is not registered to the specified tool
group.
6 : The tool life management option has not been added on.
Top address 0
(Function code)
227
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
6
(Data number)
N
(N: entered data)
8
(Data attribute)
M
(M: entered data) Value
12
Unsigned binary
Tool offset number
(4 bytes)
16
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1198
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.66 [Description]
Reading Tool Life This function reads the tool radius offset number according to the
Management Data specified tool group number and tool number. (M series only)
(Tool Diameter Offset
Number 1)
Top address 0
(Function code)
228
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
12
((Data area))
(Need not be set)
16
CAUTION
When the tool group number and tool number are set to 0,
the currently used tool group and tool number are
referenced.
If a tool group number is not specified after the power is
turned ON, tool group number 0 is read.
0 is always read on the T series.
1199
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool radius offset number was read successfully.
3 : The specified tool group number is incorrect.
4 : The specified tool number is incorrect.
5 : The specified tool number is not registered to the specified tool
group.
6 : The tool life management option has not been added on.
Top address 0
(Function code)
228
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
6
(Data number)
N
(N: entered data)
8
(Data attribute)
M
(M: entered data) Value
12
Unsigned binary
Tool offset number
(4 bytes)
16
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1200
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.67 [Description]
Reading Tool Life This function reads the tool information (status) according to the specified
Management Data tool group number and tool number.
(Tool Information 1)
Top address 0
(Function code)
201
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
12
((Data area))
(Need not be set)
16
CAUTION
When the tool group number and tool number are set to 0,
the currently used tool group and tool number are
referenced.
If a tool group number is not specified after the power is
turned ON, tool group number 0 is read.
1201
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool information was read successfully.
3 : The specified tool group number is incorrect.
4 : The specified tool number is incorrect.
5 : The specified tool number is not registered to the specified tool
group.
6 : The tool life management option has not been added on.
Top address 0
(Function code)
201
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
6
(Data number)
N
(N: entered data)
8
(Data attribute)
M
(M: entered data) Value
12
0: See Note in previous item/
Tool offset number 1: Tool is registered.
(4 bytes) 2: End of tool life.
3: Tool skipped
All above three bytes must be 0.
16
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1202
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.68 [Description]
Writing (Registering) This function registers the tool group number to tool life management
Tool Life Management data. Set the tool number, life value and life counter type to the specified
Data (Tool Group tool group. On the T series, since the life counter type is specified by CNC
parameter LTM (No. 6800#2), it cannot be set nor changed here.
Number) (:Lowspeed
Response)
[Input data structure]
Top address +0
(Function code)
202
+2
(Completion code)
(Need not be set)
+4
(Data length)
8
+6
(Data number)
0
+8
(Data attribute)
M
(M=Tool number)
Value
+12
Unsigned binary
Tool group number 1512
(2 bytes)
+14
Tool life counter type 1: Frequency
(2 bytes) 2: Real time in minutes
+16
Unsigned binary
Tool life 19999 (Frequency)
(4 bytes) 14300 (Real time in minutes: 1count/4sNote)
11090 (Real time in minutes: 1count/1sNote)
Tool life management data B
1999999 (Frequency)
1100000 (Real time in minutes)
NOTE
The tool life count is changed by parameter 6801#5.
6801#5 = 0 : the life is counted every 4seconds.
6801#5 = 1 : the life is counted every 1second.
1203
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : The tool length was registered successfully.
3 : The tool group number exceeded the range 1 to 512 or maximum
number of registered groups.
4 : The tool number in Data Attribute has a wrong value.
5 : The tool life value is outofrange. On the T series, the tool life
counter type is different.
6 : The tool life management option has not been added on.
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
8
(Entered data)
6
(Data number)
(Entered data)
(Data attribute)
M
(Entered data)
12
Tool group number
(2 bytes)
(Entered data)
14
Tool life counter type
(2 bytes)
(Entered data)
16
Tool life value
(4 bytes)
(Entered data)
20
1204
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1205
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.69 [Description]
Writing Tool Life This function sets the tool length offset number of a specified tool group
Management Data in the tool life management data. (M series only)
(Tool Length Offset
Number 1)
(:Lowspeed
Response)
Top address 0
(Function code)
229
2
(Completion code)
(Need not be set)
4
(Data length)
4
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
Value
12
Unsigned binary
Tool length offset number 1 to 255
(4 bytes)
16
1206
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The tool length offset number was written successfully.
3 : The tool group number exceeded the range 1 to 512 or maximum
number of registered groups.
4 : The specified tool number is incorrect.
5 : The specified tool number is not registered to the specified tool
group.
6 : The tool life management option has not been added on.
[Output data structure]
Top address 0
(Function code)
229
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
(Entered data)
6
(Data number)
N
(Entered data)
(Data attribute)
M
(Entered data)
12
Tool length offset number
(4 bytes)
16
CAUTION
The tool length offset number that can be actually specified
is reliant on the tool offsets available on the NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1207
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.70 [Description]
Writing Tool Life This function sets the tool radius offset number of a tool belonging to a
Management Data specified tool group in the tool life management data. (M series only)
(Tool Radius Offset
Number 1)
(:Lowspeed
Response)
Top address 0
(Function code)
230
2
(Completion code)
(Need not be set)
4
(Data length)
4
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
Value
12
Unsigned binary
Tool length offset number 1 to 255
(4 bytes)
16
1208
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : The tool radius offset number was written successfully.
3 : The tool group number exceeded the range 1 to 512 or maximum
number of registered groups.
4 : The specified tool number is incorrect.
5 : The specified tool number is not registered to the specified tool
group.
6 : The tool life management option has not been added on.
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
4
(Entered data)
6
(Data number)
N
(Entered data)
(Data attribute)
M
(Entered data)
12
Tool length offset number
(4 bytes)
16
CAUTION
The tool length offset number that can be actually specified
is reliant on the tool offsets available on the NC.
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1209
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.71 [Description]
Writing Tool Life This function sets the tool information of a tool belonging to a specified
Management Data tool group in the tool life management data. (M series only)
(Tool Information 1)
(:Lowspeed
Response)
Top address 0
(Function code)
231
2
(Completion code)
(Need not be set)
4
(Data length)
2
6
(Data number)
N
(N=Tool group number)
8
(Data attribute)
M
(M=Tool number)
Value
12
1: Clears tool status.
Tool group number 2: Skips tool status.
(2 bytes)
14
1210
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
6 : The tool life management option has not been added on.
Top address 0
(Function code)
231
2
(Completion code)
?
(See the explanation above.)
4
(Data length)
2
(Entered data)
6
(Data number)
N
(Entered data)
(Data attribute)
M
(Entered data)
12
Tool length offset number
(2 bytes)
14
The following table shows how the tool status changes before and after
this function is specified.
1211
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
NOTE
1 This cannot be used with those models that do not have the
tool life management function.
2 Tool life management data is not applied to the T mode of
the compound machining function. And compound
machining function is not applied to the function of tool life
management data B.
1212
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
138
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
0
+8
(Data attribute) M=1 to n : Read spindles on each axis.
M (n is the spindle number.)
(M=Spindle number)
1 : Read spindles on No.1 and No.2 axes
+10 2 : Read spindles on No.1 to No.3 axes
(Data area) 3 : Read spindles on No.1 to No.4 axes
(Need not be set)
[Completion codes]
0: The actual spindle speed was read successfully.
4: The spindle speed in Data Attribute has wrong values, that is ,
a value outside of the range 1 to (n1) or 1 to n (n: number of
spindles).
1213
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
138
+2
(Completion code)
?
(See the explanation above.)
+4
(Data length)
L
(L=4 n)
+6
(Data number)
+8
(Data attribute)
M
(Entered data) Value
+10
Actual speed of specified spindle Signed binary
<data unit>
rpm
+14
Value
+10
Actual speed of No.1 spindle Signed binary
<Data unit>
rpm
+14
Actual speed of No.2 spindle
+18
Actual speed of No.3 spindle
+22
Actual speed of No.4 spindle
+26
1214
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
138
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
0
+8
(Data attribute) M=11 to (10+n) : Read spindles on each axis.
M (n is the spindle number.)
(M=Spindle number)
11 : Read spindles on No.1 and No.2 axes
+10 12 : Read spindles on No.1 to No.3 axes
(Data area) 13 : Read spindles on No.1 to No.4 axes
(Need not be set)
+12
[Completion codes]
0 : The actual spindle speed was read successfully.
4 : The spindle speed in Data Attribute has wrong values, that is ,
a value outside of the range 11 to (9+1) or 11 to (10+n) (n:
number of spindles).
1215
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
138
+2
(Completion code)
?
(See the explanation above.)
+4
(Data length)
L
(L=4 n)
+6
(Data number)
+8
(Data attribute)
M
(Entered data) Value
+10
Position coderless actual spindle Signed binary
speed <data unit>
min1
+14
Value
+10
Position coderless actual No.1 Signed binary
spindle speed <Data unit>
min1
+14
Position coderless actual No.2
spindle speed
+18
Position coderless actual No.3
spindle speed
+22
Position coderless actual No.4
spindle speed
+26
1216
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.73 [Description]
Reading Fine Torque This function reads the statistical calculation results (average value,
Sensing Data maximum value, distribution) in the fine torque sensing function.
(Statistical Calculation
Results) [Input data structure]
Top address +0
(Function code)
226
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
N
(N=Axis number)
+8
(Data attribute) M=1 to n : Read spindles on each axis.
0 (n is the spindle number.)
[Completion codes]
0 : The statistical calculation results were read successfully.
3 : The fine torque sensing data in Data Attribute has a wrong value,
that is, a value outside of the range 1 or 1 to n (n: number of
spindles).
6 : The fine torque sensing option has not been added on.
1217
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
226
+2
(Completion code)
?
(See the above explanation.)
+4
(Data length)
L
(L=6 n)
+6
(Data number)
+8
(Data attribute)
M
(Entered data) Value
+10
Signed binary
Average value of target axis
+12
+14
+16
Value
+10
Average value of target axis 1 Signed binary
(Output only for number of axes
+12
Maximum value of target axis 1 specified to parameter Nos. 6390
to 6363)
+14
Distribution of target axis 1
+16
Average value of target axis 2
+18
Maximum value of target axis 2
+20
Distribution of target axis 2
:
+32
Average value of target axis 4
+34
1218
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
232
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number)
0
+8
(Data attribute) M= 0 : Latest data counter
M = 1 : Sample data counter
(M=Tool number)
+10
(Data area)
(Need not be set)
[Completion codes]
0 : The store counter was read successfully.
3 : Incorrect data number, that is, a value other than 0 is specified.
4 : The fine torque sensing data in Data Attribute has wrong values,
that is, a value other than 01.
6 : The fine torque sensing option has not been added on.
1219
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
232
+2
(Completion code)
?
(See the explanation above.)
+4
(Data length)
4
+6
(Data number)
0
(Entered data)
+8
(Data attribute)
M
(Entered data) Value
+10
Unsigned binary
Store counter value
+14
1220
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
232
+2
(Completion code)
(Need not be set)
+4
(Data length)
(Need not be set)
+6
(Data number) N : Number of axis to be read + 100
N
(N=11 to (10+N))
+8
(Data attribute) M =0 : Latest data
M =1 : Sample data
(M=Data type)
+10
(Data area)
(Need not be set)
[Completion codes]
0: The stored torque data (latest data) was read successfully.
3: Incorrect data number, that is, a value other than 11 to (10+n) (n:
number of spindles) is specified.
4: The fine torque sensing data in Data Attribute has a wrong value,
that is, a value other than 0 or 1.
6: The fine torque sensing option has not been added on.
1221
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
232
+2
(Completion code)
?
(See the explanation above.)
+4
(Data length)
L
Entered data
+6
(Data number)
N
(Entered data)
+8
(Data attribute)
M
(Entered data) Value
+10
Signed binary
Latest stored data
+12
NOTE
1 When data has not been stored, data is not output, and processing ends successfully with L
set to 0.
2 When sample data is selected by data attribute, the sample data corresponding to the latest
stored data is output.
Example) When 10000 sample data items (data numbers 0 to 9999) and latest data items
5000 (data numbers 0 to 4999) are stored, data number 4999 in the latest data is
output when data attribute M is set to 0, and data number 4999 in the sample data
is output when data attribute M is set to 1.
3 When sample data is selected by data attribute, and there is no sample data corresponding to
the latest stored data, data is not output, and processing ends successfully with L set to 0.
Example) When 5000 sample data items (data numbers 0 to 4999) and 10000 latest data
items (data numbers 0 to 9999) are stored, data is not output, and processing ends
successfully with L set to 0 when data attribute M is set to 1.
1222
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
232
+2
(Completion code)
(Need not be set)
+4
(Data length)
6
+6
(Data number) N: Number of axis to be read
N
(N=1 to n)
+8
(Data attribute) M =0 : Latest data
M =1 : Sample data
(M=Data type)
+10
Data number n
+14
+16
Data of number n
+18
+20
:
:
1223
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
NOTE
The valid range of data number n is calculated as follows:
0 v n v (524288 1 1
a b)1
where,
1: Number of target axes 1
a= 2: Number of target axes 2
4: Number of target axes 3 and 4
b= 1: Sample data store function OFF
2: Sample data store function ON
The valid range of number of data items I is calculated as
follows:
1vlv20
[Completion codes]
0 : The stored torque data (any data) was read successfully.
2 : Incorrect data length, that is, a value other than 6 is specified.
3 : Incorrect data number, that is, a value other than 11 to (10+n) (n:
number of spindles) is specified.
4 : The fine torque sensing data in Data Attribute has a wrong value,
that is, a value other than 0 or 1.
5 : Incorrect data area is specified. See Note for details of value
ranges.
6 : The fine torque sensing option has not been added on.
1224
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
232
+2
(Completion code)
?
(See the above explanation.)
+4
(Data length)
L
(L=6 + number of data items I 2)
+6
(Data number)
N
(Entered data)
+8
(Data attribute)
M
(Entered data) Value
+10
Signed binary
Data number n
(Entered data)
+14
+18
Number n data
+20
Number n+1 data
+22
Number n+2 data
+24
:
1225
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
NOTE
1 When the number of actually stored data items is exceeded
even though data number n is in the valid range, data is not
output and processing ends successfully by number of data
items I set to 0.
Example) When the number of target axes is 2, and the
sample data store function is enabled
(parameter No.6350#2=1), data numbers 0 to
13107 are valid. However, if an attempt is made
to read (example (1) in figure below) data from
data number n = 131020 when the number of
actually stored data items is 131000 (data
numbers 0 to 130999), data is not output, and
the number of data items I becomes 0.
2 When data number n is within the number of actually stored
data items, and (n+I 1) exceeds the number of actually
stored data items, data of the stored data items is output,
and processing ends successfully. In this case, number of
data items I is updated to the number of data items that was
output.
Example) If an attempt is made to read (example (2) in
figure below) number of data items I (120) from
data number 130900 under the same
conditions as in the example above, the data of
data numbers 130900 to 130999 is output, and
number of data items I becomes 100.
Also, if an attempt is made to read (example (3)
in figure below) number of data items I (120)
from data number 130999 under the same
conditions as in the example above, the data of
data numbers 130990 to 130999 is output, and
number of data items becomes 10.
1226
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
194
+2
(Completion code)
(Need not be set.)
+4
(Data length)
2
+6
(Data number)
0
+8
(Data attribute)
0
Value
+10
Signed binary format
Program number
+12
[Completion codes]
0 : The specification of the program number terminated normally.
5 : Invalid data was specified for the program number, i.e., the data
falls outside the range of 1 to 9999 or is not 9999.
1227
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
194
+2
(Completion code)
?
(See the explanation of completion
codes, above.)
+4
(Data length)
2
(Data at input time)
+6
(Data number)
0
(Data at input time)
+8
(Data attribute)
0
(Data at input time) Value
+10
Signed binary format
Program number
(Data at input time)
+12
CAUTION
For details of this function, see the section on data
input/output functions using I/O Link in the CNC
Connection Manual (Functions).
1228
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.76 [Description]
Preset of relative The preset data is set to the relative coordinate controlled by CNC. If 0
coordinate is set as preset data it becomes to origin.
(:Lowspeed But it is impossible to write the value of preset data to the transferring
axis. In the case of the preset of relative coordinate of all axes is executed
response)
by using this function, if only one axis is transferring, the preset of relative
(not available for coordinate cannot be executed, neither.
Power Mate and Series
[Input data structure]
21TA)
Case of writing data on each axis.
Top address +0
(Function code)
249
+2
(Completion code)
(Need not be set.)
+4
(Data length)
4
+6
(Data number)
0
Value
+8
M=1 to n: Write data on each
(Data attribute) (n is the axis number)
M
(M: Input data)
+10
Signed binary
Value of relative coordinate for the (A negative value is represented in 2s
controlled axis specified (4bytes) complement)
+12
1229
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
249
+2
(Completion code)
(Need not be set.)
+4
(Data length)
16
+6
(Data number)
0
Value
+8
1 must be set
(Data attribute)
M
(M=1)
+10
Signed binary
Value of relative coordinate for the first (A negative value is represented in 2s
axis (4bytes) complement)
+12
Value of relative coordinate for the se-
cond axis (4bytes)
+14
Value of relative coordinate for the third
axis (4bytes)
+18
Value of relative coordinate for the
fourth axis (4bytes)
+22
[Completion codes]
0 : Success to set the value of relative coordinate.
4 : Data specified for the data attribute is invalid because it is neither
1 nor a value from 1 to n(n is the number of axes). Alternatively,
the specified axis number is greater than the number of controlled
axes.
5 : Relative coordinate is out of range.
13 : Axis is moving now.
1230
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address +0
(Function code)
249
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
L
(Same as input data)
+6
(Data number)
0
(Same as input data)
+8
(Data attribute)
M
(M: Input data)
+10
Value of relative coordinate
(4*n bytes)
1231
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
324
+2
(Completion code)
(Need not be set)
+4
(Data length)
0
+6
(Data number)
N
(N=Tool group number)
+8
(Data attribute)
0
+10
1232
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Success to delete the Tool group number.
3 : The Tool group number is out of range from 1 to 512,or exceeds
the maximum number of registered Tool group.
6 : No option for Tool life management.
Top address +0
(Function code)
324
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
0
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
0
(Same as input data)
+10
NOTE
1 Those models that do not provide the tool life management
function cannot be used.
2 The turning mode of the complex machining function does
not support tool life management data.
1233
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.78
Deleting the Tool life [Description]
Management Data The function deletes the Tool data of the Tool of the specified Tool
(Tool data) operation sequence number in the Tool life management data. (M series
(:Lowspeed only)
response)
Top address +0
(Function code)
325
+2
(Completion code)
(Need not be set)
+4
(Data length)
0
+6
(Data number)
N
(N=Tool group number)
+8
(Data attribute)
M
(M=Tool operation sequence number)
+10
1234
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Success to delete the Tool group number.
3 : The Tool group number is out of range from 1 to 512,or exceeds
the maximum number of registered Tool group.
4 : The Tool operation sequence number is wrong.
6 : No option for Tool life management.
Top address +0
(Function code)
325
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
0
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
M
(Same as input data)
+10
NOTE
1 Those models that do not provide the tool life management
function cannot be used.
2 The turning mode of the complex machining function does
not support tool life management data.
1235
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.79
Deleting the Tool life [Description]
Management Data The function clears the Tool life counter and all Tool condition of the
(Tool life counter and specified Tool group in the Tool life management data.
Tool condition)
(:Lowspeed
response) [Input data structure]
Top address +0
(Function code)
326
+2
(Completion code)
(Need not be set)
+4
(Data length)
0
+6
(Data number)
N
(N=Tool group number)
+8
(Data attribute)
0
+10
1236
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Success to clear the Tool life counter and the Tool condition.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
6 : No option for Tool life management.
Top address +0
(Function code)
326
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
0
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
0
(Same as input data)
+10
NOTE
1 Those models that do not provide the tool life management
function cannot be used.
2 The turning mode of the complex machining function does
not support tool life management data.
1237
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.80
Writing the Tool life [Description]
Management Data This function sets Arbitrary group number of the specified Tool group in
(Arbitrary group the Tool life management data.
number) (:Lowspeed
response)
[Input data structure]
Top address +0
(Function code)
327
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N=Tool group number)
+8
(Data attribute)
0
+10
Arbitrary group number
(4bytes)
NOTE
Writing the Tool life Management Data (Arbitrary group
number) is available for Tool life management data B
1238
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Success to set the Arbitrary group number.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
5 : Arbitrary group number is out of range.
6 : No option for Tool life management.
Top address +0
(Function code)
327
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
0
(Same as input data)
+10
Arbitrary group number
(4bytes)
NOTE
1 Those models that do not provide the tool life management
function cannot be used.
2 The turning mode of the complex machining function does
not support tool life management data.
The complex machining function does not support the tool
life management B function.
1239
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
Top address +0
(Function code)
328
+2
(Completion code)
(Need not be set)
+4
(Data length)
4
+6
(Data number)
N
(N=Tool group number)
+8
(Data attribute)
0
+10
NOTE
Writing the Tool life Management Data (Remaining tool life)
is available for Tool life management data B
1240
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Success to set the length of Remaining tool life.
3 : The Tool group number is out of range from 1 to 512, or exceeds
the maximum number of registered Tool group.
5 : Remaining tool life is out of range.
6 : No option for Tool life management.
Top address +0
(Function code)
328
+2
(Completion code)
?
(See the explanation above)
+4
(Data length)
4
(Same as input data)
+6
(Data number)
N
(Same as input data)
+8
(Data attribute)
0
(Same as input data)
+10
Renaububg tiik kufe
(4bytes)
NOTE
1 Those models that do not provide the tool life management
function cannot be used.
2 The turning mode of the complex machining function does
not support tool life management data.
The complex machining function does not support the tool
life management B function.
1241
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
B.4.82
Reading the Current [Description]
Screen Number The current screen number to display can be read.
[Input data structure]
Top address + 0
(Function code)
120
+2
(Completion code)
(Need not to be set)
+4
(Data length)
(Need not to be set)
+6
(Data number)
(Need not to be set)
+8
(Data attribute)
(Need not to be set)
+10
(Data area)
+12
(Need not to be set)
1242
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
[Completion codes]
0 : Reading the current screen number has been read normally.
1 : This function can not be used because series and edition of CNC
or PMC system software is not corresponded.
[Output data structure]
Top address +0
(Function code)
120
+2
(Completion code)
?
(See the explanation of the
completion code)
+4
(Data length)
4
+6
(Data number)
(Same as input data)
+8
(Data attribute)
(Same as input data)
+10
(Data area)
Screen number (Small classification)
(Refer to Table 1)
+12
(Data area)
Screen number (Large classification)
(Refer to Table 1)
NOTE
This function is used for Power Mate iD/H only.
1243
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
1244
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
B.4.83
Reading Detailed [Description]
Alarm Information If the CNC is in the alarm status, the details can be read. Detailed
(:Lowspeed type) information includes the following:
(a) Alarm status information
Information of the type of alarm which occurs
(b) Detailed alarm information
Axis information of the alarm which occurs and alarm number
information
(1) Reading alarm status information
[Input data structure]
Top address + 0
(Function code)
186
+2
(Completion code)
(Need not to be set)
+4
(Data length)
(Need not to be set)
+6
(Data number)
0
+8
(Data attribute)
0
+10
(Data area)
(Need not to be set)
+12
1245
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Reading the CNC alarm status has terminated normally.
[Output data structure]
Top address +0
(Function code)
186
+2
(Completion code)
(See the explanation of the
completion code)
+4
(Data length)
2
+6
(Data number)
0
(Same as input data)
+8
(Data attribute)
0
(Same as input data)
+10
Alarm status information
(See below.)
+12
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit
1246
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
B61863E/14 APPENDIX SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4)
Top address + 0
(Function code)
186
+2
(Completion code)
(Need not to be set)
+4
(Data length)
(Need not to be set)
+6
M: 130
(Data number) Number of stored alarms
M
+8 N: Detailed alarm information request bits
(For the meaning of each bit, see Alarm
(Data attribute)
status information.
N
+10
(Data area)
(Need not to be set)
+12
1247
B. WINDOW FUNCTION DESCRIPTION
(PMCPA1/PA3/SA1/SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/SB6/SB7/SC/SC3/SC4) APPENDIX B61863E/14
[Completion codes]
0 : Reading the CNC alarm status has terminated normally.
[Output data structure]
Top address +0
(Function code)
186
+2
(Completion code)
(See the explanation of the
completion code)
+4
(Date length)
2+4n
(n : Number of alarms)
+6
(Data number)
M
(Same as input data)
+8
(Data attribute)
N
(Same as Input data)
Explanation of the value
+10
Number of alarms 2byte unsigned binary data
+12
Axis information 2byte bit data (see below.)
(first alarm)
+14
Alarm number 2byte unsigned binary data
(first alarm)
+16
Axis information
(second alarm)
+18
Alarm number
(second alarm)
X X
+8+4 n
Axis information
(nth alarm)
+10+4 n
Alarm number
(nth alarm)
+12+4 n
D Axis information
For an axistype alarm, the bit indicating the corresponding axis
number is on.
(When an alarm occurs on axis 1, bit 0 is 1.)
For a nonaxistype alarm, the bit is 0.
1248
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
1249
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.1 This window function is a functional instruction by which the data on the
CNC is read or is written.
FUNCTION
Option (FS15B : A02B0162J917, FS15i : A02B0261J950) of NC
window is necessary.
1250
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.2 In the way to process, there are window function high speed and one
processed at low speed.
LOWSPEED
RESPONSE AND In case of a lowspeed response, The data is read or written by the control
between CNC and PMC.
HIGHSPEED
Therefore, it is necessary to ACT=1 of the window instrucion must be
RESPONSE OF held until the transfer completion information (W1) becomes 1
WINDOW FUNCTION (interlock).
In a highspeed response, it is not necessity for take the interlock because
the data is directly read.
To read tool offset data, tool life management data, and the processing
time, the FS15B requires the installation of the NC window B option
(A02B0162J984), in addition to the NC window option.
CAUTION
1 The window instruction of a lowspeed response is controlled exclusively with the other window
instructions of lowspeed response.
Therefore, when the data is read or written continuously, it is necessary to clear ACT of the
functional instruction once when the completion information (W1) become 1.
It does not work about ACT=1 of the other window instructions of lowspeed response such
as W1=1 and ACT=1 of the window instruction of a lowspeed response.
The window instruction of a highspeed response is not exclusively controlled like a lowspeed
response. Therefore, when the data is read or written continuously, yow need not make ACT=0.
The scan number of times to complete the processing is summarized on the following table.
TYPE SCAN TIMES UNTIL PROCESSING ENDS
LOW TWO SCAN TIMES OR MORE (This depends on the state of CNC)
HIGH 1SCAN TIME
(Only FS15B)
2 There is a version which does not support in the reading or writing of the window data by a new
format.
ROM VERSION CONTENT
4047 AE It does not support a new format.
Please use #4 of NC parameter 7401 as 0.
F It supports a new form.
When the window function of a new format is used, please set #4 of NC parameter 7401 as 1.
4078 A
1251
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.2.1
Functional Instruction
WINDR
0
CTL0 Function code
2
Completion code
4
Data length
6
CTL1 Data number
8
CTL2 Axis specification
10
DATA Data area * Data length Depends on the function
X X
part1
Type of Type of control data Data
Data type processing length
CTL0 CTL1 CTL2
Tool offset data (low) 13 Offset number Offset format 4 byte
Work origin offset (high) 15 0 Axis number 4 byte
Parameter data (low) 17 Parameter number Axis number 4 byte
Setting data
Custom macro variables (low) 21 Custom macro number 0 6 byte
CNC alarm state (low) 23 0 0 2 byte
Current program number (low) 24 0 0 6 byte
Current sequence number (low) 25 0 0 6 byte
Actual velocity for controlled axes (low) 26 0 0 4 byte
Absolute position on controlled axes (high) 27 0 Axis number 4 byte
Machine position on controlled axes (high) 28 0 Axis number 4 byte
Skip operation stop position on (low) 29 0 Axis number 4 byte
controlled axes
Servo delay amount on controlled (high) 30 0 Axis number 4 byte
axes
Acceleration/deceleration delay (high) 31 0 Axis number 4 byte
amount on controlled axes
Modal data (G function) (low) 32 Data type Specified block 2 byte
(other than G function) 6 byte
Diagnosis data (low) 33 Diagnosis number 0 2 byte
Feed motor load current value (high) 34 200 Axis number 2 byte
Generalpurpose analog input (high) 34 0 Axis number 2 byte
1252
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
part2
Type of Type of control data Data
Data type processing length
CTL0 CTL1 CTL2
Tool life management data
Tool group No. (low) 38 0 Tool No. 4 byte
Number of tool groups (low) 39 Tool group No. 0 4 byte
Number of tools (low) 40 Tool group No. 0 4 byte
Tool life (low) 41 Tool group No. 0 4 byte
Tool life counter (low) 42 Tool group No. 0 4 byte
Tool life counter type (low) 160 Tool group No. 0 4 byte
Tool length compensation No.1 (low) 43 Tool group No. Tool No. 4 byte
Tool length compensation No.2 (low) 44 Tool group No. Tool order number 4 byte
Cutter compensation No.1 (low) 45 Tool group No. Tool No. 4 byte
Cutter compensation No.2 (low) 46 Tool group No. Tool order number 4 byte
Tool information 1 (low) 47 Tool group No. Tool No. 4 byte
Tool information 2 (low) 48 Tool group No. Tool order number 4 byte
Tool No. (low) 49 Tool group No. Tool order number 4 byte
Clock data (low) 151 Data format 0 6 byte
Relative position of controlled axes (high) 74 0 Axis number 4 byte
Remaining travel of controlled axes (high) 75 0 Axis number 4 byte
Estimate disturbance torque data of a (high) 211 0 Axis number 2 byte
digital
Estimate disturbance torque data of a (high) 211 1 Axis number 2 byte
serial spindle
Machining time (low) 178 Program number 1 6 byte
Load information of the spindle motor (high) 153 0 Axis number 2 byte
Tool offset data according to the (low) 213 Data format Tool number 4 byte
specified tool number
Tool life management data (Note)
Tool group number (low) 200 0 Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Tool length compensation number 1 (low) 227 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Cutter compensation number 1 (low) 228 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Tool information 1 (low) 201 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Real parameter data (Note) (low) 321 Parameter number Axis number 4 bytes
(4 bytes)
Actual machine position on controlled (high) 329 0 Axis number 4 bytes
axes (Note)
Reading Fine Torque Sensing Data (low) 226 Data number Axis number 4 bytes
(Statistical Calculation Results).
(Note)
Reading Fine Torque Sensing Data (low) 232 Data attribute Axis number 4 bytes
(Store Data). (Note)
Reading detailed information of CNC (low) 330 Alarm type Alarm count 8 bytes
alarm. (Note)
NOTE
This function is supported only by the FS15iA
(PMCNB6).
1253
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.2.2
Functional Instruction
WINDW
0
CTL0 Function code
2
Completion code
4
Data length
6
CTL1 Data number
8
CTL2 Axis specification
10
DATA Data area * Data length Depends on the function
Y Y
part1
Type of Type of control data Data
Data type processing length
CTL0 CTL1 CTL2
Tool offset data (low) 14 Offset number Offset format 4 byte
Parameter data (low) 18 Parameter number Axis number 4 byte
Setting data
Custom macro variables (low) 22 Custom macro number 0 6 byte
Data on the program check screen
Spindle tool number (low) 150 Data type 0 2 byte
Number of the tool to be used
next (low) 150 201 0 2 byte
Torque limit override (low) 152 0 Axis number 2 byte
Tool life management data
Number of tool groups (low) 163 0 Tool No. 4 byte
Tool life (low) 164 Tool group No. 0 4 byte
Tool life counter (low) 165 Tool group No. 0 4 byte
Tool life counter type (low) 166 Tool group No. 0 4 byte
Tool length compensation No.1 (low) 167 Tool group No. Tool No. 4 byte
Tool length compensation No.2 (low) 168 Tool group No. Tool order number 4 byte
Cutter compensation No.1 (low) 169 Tool group No. Tool No. 4 byte
Cutter compensation No.2 (low) 170 Tool group No. Tool order number 4 byte
Tool information 1 (low) 171 Tool group No. Tool No. 4 byte
Tool information 2 (low) 172 Tool group No. Tool order number 4 byte
Tool No. (low) 173 Tool group No. Tool order number 4 byte
Tool offset data according to the
specified tool number (low) 214 Data format Tool number 4 byte
Superposition move command 215 0 0 6 byte
(for three axes) (high)
Superposition move command 215 Axis specification mode Axis number 8 byte
(for four axes) (high)
Feedrate (high) 216 0 0 6 byte
1254
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
part2
Type of Type of control data Data
Data type processing length
CTL0 CTL1 CTL2
Tool life management data (Note)
Tool group number (low) 202 0 Tool number (4 bytes) 6 bytes
(supporting 8digit tool numbers)
Tool length compensation number 1 (low) 229 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Cutter compensation number 1 (low) 230 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Tool information 1 (low) 231 Tool group number Tool number (4 bytes) 4 bytes
(supporting 8digit tool numbers)
Real parameter data (Note) (low) 323 Parameter number Axis number 4 bytes
(4 bytes)
NOTE
This function is supported only by the FS15iA
(PMCNB6).
1255
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3 (1) See the description of the window function. The data item marked
with a dash () in the description of the data structure need not be
FORMAT AND entered.
DETAILS OF THE (2) The length of all data blocks and data items is represented in bytes.
CONTROL DATA OF (3) The read data becomes valid only when the instruction terminates
THE WINDR normally.
FUNCTIONAL Completion
Meaning
code
INSTRUCTION
10 The window instruction is being processed. Hold ACT until W1
is set to 1.
0 The instruction terminated normally.
1 An error occurred. The corresponding function number is not
found.
2 An error occurred. Possible causes include the following:
Wrong data is found in the CTL area. The NC does not have the
corresponding function.
3 An error occurred. The specified axis is not provided.
5 An error occurred. It is a mistake of data form. Though the
function supports only a new format, a old format is specified.
C.3.1
Reading a Tool Offset [Description]
(Lowspeed Response) The tool offset value (tool compensation) is read from the CNC.
Set data Read data
0 0
Function code Function code
13 13
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Offset number Offset number
8 8
Offset format Offset format
10 10
Data area Tool offset value
(4 byte) (4 byte)
14 14
1256
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
Data type Format Offset number Data type Format Offset number
(CTL+2, 3) (CTL+2, 3)
1257
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.2 [Description]
Reading a Workpiece The offset from the workpiece reference point of the current coordinate
Origin Offset Value system (including a shared offset) of the CNC is read.
The offset from the workpiece reference point for each axis can be read
individually. The offset from the workpiece reference point for an
additional axis can be read only when the additional axis is provided.
Set data Read data
0 0
Function code Function code
15 15
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Axis number Axis number
10 10
Data area Workpiece origin
(4 byte) offset value
(4 byte)
14 14
1258
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.3
Reading a Parameter
(Setting Data) [Description]
(Lowspeed Response) A parameter of the CNC is read.
8 0 : No axis 8
Data attribute Data attribute
10 1 to n : A specified axis 10
Data area Parameter data
(4 byte) (4 byte)
14 14
(Note) Format of parameter data
If the data is one byte long, it is set in the
DATA+0 area.
10
DATA+0
11
DATA+1
12
DATA+2
13
DATA+3
14
NOTE
A real parameter cannot be read using function code 17.
Read a parameter using:
D Real parameter: Function code 321
D Integer or bit parameter: Function code 17
1259
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.4 [Description]
Reading a Custom A custom macro variable is read from the CNC.
Macro Variable
(Lowspeed Response) NOTE
The position of the decimal point must be specified
beforehand.
14 Position of 14 Position of
decimal point decimal point
(2 byte) (2 byte)
16 16
NOTE
In the case of reading a Custom Macro Variable of upper
100000.
Please input 10 to Data attribute, and input last four digits
of variable number to Custom macro variable number.
Examples The relationship between the read value and the stored variable is:
(Read value) =
(Custom macro variable in the NC) 10(Position of decimal point)
Read value Custom macro Position of
variable in the NC decimal point
1 0
12 1. 234 1
123 2
1234 3
12340 4
1260
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.5
Reading the CNC
Alarm Status [Description]
(Lowspeed Response) If the CNC is in the alarm state, the details of the alarm are read.
1261
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.6
Reading the Current
Program Number [Description]
(Lowspeed Response) The number of a running machining program is read from the CNC.
14
FLAG 1
15
FLAG 2
16 16
1262
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.7 [Description]
Reading the Current The sequence number of the running machining program is read from the
Sequence Number CNC. If the blocks of the running machining program have no sequence
(Lowspeed Response) numbers, the sequence number of the block most recently executed is
read.
14
FLAG 1
15
FLAG 2
16 16
1263
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.8 [Description]
Reading the Actual The actual speed of the feed axes controlled by the CNC is read.
Velocity of Controlled The composite speed of the controlled axes is read. If the X, Y, and
Axes Zaxes, the basic three axes, are controlled as feed axes, the composite
(Lowspeed Response) speed of the three axes is read.
Set data Read data
0 0
Function code Function code
26 26
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Data attribute Data attribute
0
10 10
Data area Feedrate
(4 byte) (4 byte)
14 14
C.3.9
Reading the Absolute [Description]
Position on a The absolute position (absolute coordinates) on a feed axis controlled by
Controlled Axis the CNC is read.
Set data Read data
0 0
Function code Function code
27 27
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Axis number Axis number
0
10 10
Data area Absolute position
(4 byte) (4 byte)
14 14
1264
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
Data specification
Kind of data Data specification
Current position 1) Indicates the current position in the workpiece coordinate system.
The current position is calculated by the following simple expression.
The read current position is stored in the 4byte area of DATA+0 to DATA+3.
Current position = machine coordinate value workpiece offset value
The workpiece offset value can be obtained by summing up the folloing offset.
(1) External workpiece origin offset
(2) Workpiece origin offset (G54 to G59,G54.1Pp)
(3) Workpiece coordinate system (G92)
(4) Local coordinate system (G52)
x
Origin of the machine coordinate system
1265
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.10
Reading the Machine
Position (Machine [Description]
Coordinates) of The machine position (machine coordinates) on a feed axis controlled by
Controlled Axes the CNC is read.
Set data Read data
0 0
Function code Function code
28 28
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Data attribute Data attribute
10 10
Data area Feedrate
(4 byte) (4 byte)
14 14
1266
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.11
Reading a Skip
Position (Stop Position
of Skip Operation
(G31)) of Controlled
[Description]
Axes
(Lowspeed Response) The absolute coordinates of the skip position specified in the CNC are
read.
Set data Read data
0 0
Function code Function code
29 29
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Axis number Axis number
10 10
Data area Skip position
(4 byte) (4 byte)
14 14
1267
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.12
Reading the Servo [Description]
Delay for Controlled A servo delay, which is the difference between the specified position on
Axes a controlled axis and the actual servo position, is read from the CNC.
Set data Read data
0 0
Function code Function code
30 30
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Data attribute Data attribute
10 10
Data area Servo delay
(4 byte) (4 byte)
14 14
C.3.13
Reading the [Description]
Acceleration/ An acceleration/deceleration delay, which is the difference between the
Deceleration Delay on programmed position on a controlled axis and the actual position after the
Controlled Axes acceleration or deceleration, is read from the CNC.
Set data Read data
0 0
Function code Function code
31 31
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Axis number Axis number
10 10
Data area Acceleration/
(4 byte) deceleration delay
(4 byte)
14 14
1268
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.14 [Description]
Reading Modal Data The continuousstate data is read from the CNC.
(Lowspeed Response) The continuousstate data can be broadly classified into two types: Data
of the preparatory function and data of other functions. When CTL2
(specified block) is set to 0, the continuousstate data of the previous
block is read. When CTL2 is set to 2, the continuousstate data of the next
block is read.
(1) Continuousstate data of the preparatory function
Set data Read data
0 0
Function code Function code
32 32
2 2
Completion code Completion code
4 4
Data length Data length
2
6 6
Data type 0 : Each data for G function Data type
8 0 : Previous block 8
Specified block Specified block
1 : Current block
10 10
Data area
2 : Next block Modal data
(2 byte)
12 12
#0 to #6 : Continuousstate data
#7 : Specified block
1= Current block
0= Previous block
1269
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
8 0 : Previous block 8
Specified block Specified block
1 : Current block
10 10
Data area 2 : Next block Modal data
(6 byte) (4 byte)
14
FLAG 1
15
FLAG 2
16 16
1270
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
1271
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
1272
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
1273
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
*1) G code system A/B can be selected by parameter setting (basic function).
Gcode sytem C is optinal function. However, when this option is selected, G code system A/B
is selectable.
1274
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.15
Reading Diagnosis
Data [Description]
(Lowspeed Response) The data on the diagnostic data screen of the CNC is read.
Set data Read data
0 0
Function code Function code
33 33
2 2
Completion code Completion code
4 4
Data length Data length
2
6 6
Diagnosis number Diagnosis number
8 8
Data attribute Data attribute
0 0
10 10
Data area Diagnosis data
(2 byte) (2 byte)
12 12
NOTE
1 The valid range of diagnosis numbers is 0 to 103 and 200
to 303. (FS15B)
For the FS15i, the valid range of numbers is 1000 and
above. (FS15iA)
2 Only integer values can be read as diagnosis data.
(FS15iA)
3 For the FS15i, axis data can be read by specifying an axis
number for the data attribute.
1275
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.16 [Description]
Reading A/D 1. The load current for an axis controlled by the CNC is converted to
Conversion Data for adigital value and the digital value is read.
the Feed Motor 2. The analog data input to the CNC is converted to a digital value by
the A/D converter and the digital value is read.
8 8
Axis number Axis number
10 10
Data area A/D conversion data
(2 byte) (2 byte)
12 12
Method of calculation of the load current of controlled axis from the read
A/D conversion data is as follows.
1276
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
Examples When the AC motor model 30s is used and the read A/D conversion
data is 150, method of calculating each load current.
The following is understood from manual of the servo.
AC motor model Ratings currents(Arms)
30S 16
+ 16 2 + 22.62742
8 23 [Aop]
Since the rade A/D conversion data is 150, the peak current, the ratings
currents and the rate of the load can be calculated.
a) Peak current[Aop] of load current
(READ DATA) * 128
LOAD CURRENT[Aop] + + 150 * 128
(COEFFICIENT) 1.6
+ 13.75 [Aop]
b) Ratings currents[Arms] of load current
(READ DATA) * 128
RATINGS CURRENTS[Arms] + + 150 * 128
(COEFFICIENT) 2 1.6 2
+ 9.72 [Arms]
c) PERCENT(RATE)
LOAD CURRENT[Aop]
RATE OF LOAD[%]+ 100
PEAK CURRENT OF SERVO MOTOR
1277
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
[Hardware]
When general analog input data is read, one of the following hardware
items is required:
1 SubCPU board
2 Analog I/O module on the additional axis board
For details of the relationship between input numbers and connectors,
refer to the connection manual. When an NC controlled axis load current
is read, the hardware described above is not required.
[NC parameters]
When this function is used, the NC parameters listed below need to be set.
For details, refer to the parameter descriptions.
1 Bit 6 of parameter No. 1810 = 0 (A/D conversion is performed.)
2 Bit 0 of parameter No. 1811 = 1 (A/D conversion data is output in
highspeed mode.)
C.3.17
Reading the Tool Life
Management Data [Description]
(Tool Group Number) The number of the tool group in which the tool number is cataloged is
(Lowspeed Response) read.
Set data Read data
0 0
Function code Function code
38 38
2 2
Completion code Completion code
4 4
Data length Data length
4
6 6
Data number Data number
0
8 8
Tool No. Tool No.
10 10
Data area Tool group No.
(4 byte) (4 byte)
14 14
NOTE
The data can be read only when the tool life management
data function is provided.
1278
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.18
Reading the Tool Life
Management Data
(Number of Tool [Description]
Groups) The number of tool groups contained in the tool life management data is
(Lowspeed Response) read.
14 14
C.3.19
Reading Tool Life
Management Data
(Number of Tools) [Description]
(Lowspeed Response) The number of tools cataloged in the specified tool group is read.
8 8
Data attribute Data attribute
0
10 10
Data area Number of tools
(4 byte) (4 byte)
14 14
1279
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.20
Reading Tool Life
Management Data
(Tool Life) [Description]
(Lowspeed response) The tool life of the specified tool group is read.
8 8
Data attribute Data attribute
0
10 10
Data area Tool life
(4 byte) (4 byte)
14 14
C.3.21
Reading Tool Life
Management Data
(Tool Life Counter) [Description]
(Lowspeed Response) The tool life counter of the specified tool group is read.
8 8
Data attribute Data attribute
0
10 10
Data area Tool life counter
(4 byte) (4 byte)
14 14
1280
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.22
Reading Tool Life
Management Data (Tool
Life Counter Type) [Description]
(Lowspeed Response) The tool life counter type of the specified tool group is read.
8 8
Data attribute Data attribute
0
10 10
Data area Tool life counter type
(4 byte) (4 byte)
14 14
1281
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.23
Reading Tool Life
Management Data
(Tool Length [Description]
Compensation No.1) A tool length compensation number is read according to the specified tool
(Lowspeed Response) group number and tool number.
8 8
Tool No. Tool No.
10 10
Data area Tool length compensa-
(4 byte) tion No.
(4 byte)
14 14
1282
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.24
Reading Tool Life
Management Data
(Tool Length [Description]
Compensation No.2) A tool length compensation number is read according to the specified tool
(Lowspeed response) group number and tool order number.
8 8
Tool order number Tool order number
10 10
Data area Tool length
(4 byte) compensation No.
(4 byte)
14 14
1283
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.25
Reading Tool Life
Management Data
(Cutter Compensation [Description]
No.1) A cutter compensation number is read according to the specified tool
(Lowspeed Response) group number and tool number.
8 8
Tool No. Tool No.
10 10
Data area Cutter
(4 byte) compensation No.
(4 byte)
14 14
1284
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.26
Reading Tool Life
Management Data
(Cutter Compensation [Description]
No.2) A cutter compensation number is read according to the specified tool
(Lowspeed Response) group number and tool order number.
8 8
Tool order number Tool order number
10 10
Data area Cutter
(4 byte) compensation No.
(4 byte)
14 14
1285
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.27
Reading Tool Life
Management Data [Description]
(Tool Information 1) The tool information (status) is read according to the specified tool group
(Lowspeed Response) number and tool number.
8 8
Tool No. Tool No.
10 10
Data area Tool information
(4 byte) (4 byte)
14 14
Tool information
1 : The tool is cataloged.
2 : The tool life has expired.
3 : The tool was skipped.
1286
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.28
Reading Tool Life
Management Data [Description]
(Tool Information 2) The tool information (status) is read according to the specified tool group
(Lowspeed Response) number and tool order number.
8 8
Tool order number Tool order number
10 10
Data area Tool information
(4 byte) (4 byte)
14 14
Tool information
See the description in Section C.3.27.
C.3.29
Reading Tool Life
Management Data [Description]
(Tool Number) A tool number is read according to the specified tool group number and
(Lowspeed Response) tool order number.
8 8
Tool order number Tool order number
10 10
Data area Tool No.
(4 byte) (4 byte)
14 14
1287
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.30 [Description]
Reading Clock Data The current data (year, month, day) and current time (hours, minutes,
(Lowspeed Response) seconds) can be read from the clock built into the CNC.
8 1 : Current time 8
Data attribute Data attribute
0
10 10
Data area Clock data
(6 byte) (6 byte)
16 16
1288
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.31
Reading the Relative [Description]
Position on a The relative position (relative coordinates) on a feed axis controlled by
Controlled Axis the CNC is read.
10 10
Data area Relative position
(4 byte) (4 byte)
14 14
1289
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.32 [Description]
Reading the Remaining The remaining traveling distance on a feed axis controlled by the CNC is
Travel read.
10 10
Data area Remaining travel
(4 byte) (4 byte)
14 14
1290
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.33 [Description]
Reading an Estimate 1) The load torques except a necessary torque for acceleration/
Disturbance Torque deceleration of the torques of the servo axis are read.
Data 2) The load torques except a necessary torque for acceleration/
deceleration of the torques of the serial spindle axis are read.
1291
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.34
Reading the Machining
Time [Description]
(Lowspeed Response) The machining time currently specified for a program is read.
8 8
Data attribute Data attribute
1 1
10 10
Data area Machining time
(6 byte) (6 byte)
16 16
1292
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.35
Reading the Load [Description]
Current (A/D The load current for the spindle (spindle motor) is converted to a digital
Conversion Data) for value and the digital value is read. (See Section 3.16, Reading the Load
the Spindle Motor Current (A/D Conversion Data) for the Feed Motor.)
[Hardware]
When general analog input data is read, one of the following hardware
items is required:
1 SubCPU board
2 Analog I/O module on the additional axis board
With a serial spindle, however, the hardware described above is not
required if CNC software of mass production version IV or later is used.
For the relationship between input numbers and connectors, refer to the
connection manual.
[NC parameters]
When this function is used, the NC parameters listed below must be set.
For details, refer to the parameter descriptions.
1 Bit 6 of parameter No. 1810 = 0 (A/D conversion is performed.)
2 Bit 0 of parameter No. 1811 = 1
(A/D conversion data is output in highspeed mode.)
1293
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.36
Reading the Tool Offset
Data According to the [Description]
Specified Tool Number The tool number is spedified and the tool offset data is read.
8 8
Tool number Tool number
10 10
Data area offset data
(4 byte) (4 byte)
16 16
NOTE
Please use the bit 4 of NC parameter as 1.
When the completion code 5 is returned, change the
format of the window in the SETTING Screen.
(REFERENCE:chapter II 4.4 SETTING Screen)
1294
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
+12 +12
Data area Tool group number
+14 (4 byte) +14 (4 byte)
+16 +16
1295
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
+8 +8
+12 +12
Data area Tool length
compensation number
+14 (4 byte) +14 (4 byte)
+16 +16
1296
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
+8 +8
+12 +12
Data area Cutter compensation
number
+14 (4 byte) +14 (4 byte)
+16 +16
1297
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
+8 +8
+12 +12
Data area Tool length
compensation number
+14 (4 byte) +14 (4 byte)
+16 +16
1298
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.41
Reading Real [Explanation of data]
Parameters Real parameters are read from the CNC.
(Lowspeed Type)
[Input data structure]
+14 +14
Data area Parameter value
+16 +16
(4 byte) (4 byte)
+18 +18
NOTE
An integer or bit parameter cannot be read using function
code 321.
Read a parameter using:
D Real parameter: Function code 321
D Integer or bit parameter: Function code 17
1 0
12 1
123 1.123 2
1234 3
12340 4
1299
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.42
Reading the actual [Description]
Machine Position
The machine position (machine coordinates) on a feed axis controlled by
(Machine Coordinates) the CNC can be read.
of Controlled Axes. The machine position value includes the servo delay and the acceleration
/ deceleration delay.
So, this value might be not corresponding to the machine position value
on the position screen in the CNC.(This screen can be displayed by
pressing the function button POS.)
[Structure]
14 14
NOTE
1 This function is provided by the FS15iA (PMCNB6) only.
2 To use this function, please set NC parameter 1013#7 to 1.
This parameter should be set only for necessary axes
because this parameter increases the load of CNC CPU.
1300
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.3.43
Reading Fine Torque [Description]
Sensing Data
This function reads the statistical calculation results (average value,
(Statistical Calculation
maximum value and distribution) in the fine torque sensing function.
Results).
[Structure]
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1301
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
8 8
Axis number Axis number
0 0: Newest data counter 0
10 1: Sample data counter 10
Data area Store counter value
14
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1302
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
NOTE
1 When no data is stored, 0 is read as data length and no
data is read. The function completes normally.
2 When data attribute is set to 11, the sample data whose
number is same as the last number of newest data is read.
Ex.) In case that 10000 sample data items (the data number
from 0 to 9999) and newest data items 5000 (the data
number from 0 to 4999) are stored, newest data which
number is 4999 is read when data attribute is set to
10. And sample data which number is 4999 is read
when data attribute is set to 11.
3 When data attribute is set to 11 and no sample data whose
number is same as the last number of newest data is stored,
0 is read as data length and no data is read. The function
completes normally.
Ex.) In case that 5000 sample data items (the data number
from 0 to 4999) and newest data items 10000 (the data
number from 0 to 9999) are stored, no data is read, and
the function completes normally when data attribute is
set to 11.
1303
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
18
Number m+1 data
20
Number m+2 data
22
:
24
Number m+n1 data
26
1304
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
NOTE
1. The valid area of data number m is as follows:
0 m (524288 1/a 1/b) 1
1 : the number of the axes for Fine Torque Sensing is 1
for a = 2 : the number of the axes for Fine Torque Sensing is 2
4 : the number of the axes for Fine Torque Sensing is 3 or 4
1 : sample data saving function is disabled
b=
2 : sample data saving function is enabled
The valid area of the number of data n is as follows:
1 n 120
2. When data number m which is in the valid range exceeds the number of actually stored data
items, 0 is read as data length and no data is read. The function completes normally.
Ex.) In case that the number of target axes is 2 and the sample data store function is enabled,
the data numbers are valid in the range between 0 and 13107. However, if an attempt is
made to read data from data number m 131020 when the number of actually stored data
items is 131000 (the data number from 0 to 130999), 0 is read as data length and no data
is read. The function completes normally.
(Example 1 in figure below)
3. When data number m is within the number of actually stored data items, and the number
m+n1 exceeds the number of actually stored data items, data of the stored data items is read.
The function completes normally.
In this case, double of the number of read data items is read as data length.
Ex.) If an attempt is made to read number of data items n 120 from data number m 130900
under the same conditions as in the example above, the data number from 130900 to
130999 is read and 200 is read as data length.
(Example 2 in figure below)
Also if an attempt is made to read number of data items n 120 from data number m
130990 under the same conditions as in the example above, the data number from 130990
to 130999 is read, and 20is read as data length.
(Example 3 in figure below)
Reading range
Specified range (Ex. 2)
Reading range
Specified range (Ex. 3)
0 131000 131071
1305
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.3.45
Reading detailed [Description]
information of CNC This function reads detailed information of CNC alarm.
alarm. The detailed information of CNC alarm is as follows.
D axis number
D alarm type
D alarm number
[Structure]
NOTE
This function is provided by the FS15iA (PMCNB6) only.
[Alarm type]
Following is a correspondence table of the alarm type and the alarm type
number.
Alarm type Alarm type Alarm type
Alarm type Alarm type Alarm type
number number number
0 BG alarm 10 SR alarm 20 SP alarm
1 PS alarm 11
2 OH alarm 12 SV alarm
3 13 IO alarm
4 SN alarm 14 PW alarm
5 SW alarm 15 SY alarm
6 OT alarm 16
7 PC alarm 17
8 EX alarm 18
9 19 MC alarm
1306
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
.....
First alarm Second nth
alarm alarm
[Example]
NC alarm : OT alarm NO.6 (An alarm is issued for the 1st axis.)
: SV alarm NO.10,11 (Alarms are issued for the 3rd axis.)
: Ex alarm NO.5 (Not axis type)
When these alarms are issued, the read data is as follows.
1. In case that the SV alarm is read.
1307
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
1308
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4 (1) See the description of the window function. The data item marked
with a dash () in the description of the data structure need not be
FORMAT AND entered.
DETAILS OF THE When output, the data item has no meaning.
CONTROL DATA OF (2) The length of all data blocks and data items is represented in bytes.
THE WINDW (3) The output data becomes valid only when the instruction terminates
FUNCTIONAL normally.
INSTRUCTION Completion code Description
10 The window instruction is being processed. Hold ACT
until W1 is set to 1.
0 The instruction terminated normally.
1 An error occurred. The corresponding function number is
not found.
2 An error occurred. Possible causes include the following:
Wrong data is found in the CTL area. The NC does not
have the corresponding function.
3 An error occurred. The specified axis is not provided.
5 An error occurred. it is a mistake of data form. Though the
function supports only a new format, a old format is speci-
fied.
1309
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.1 [Description]
Writing a Tool Offset The data is directly written into the tool offset value (tool compensation)
Data area of the CNC.
Set data
0
Function code
14
2
Completion code
4
Data length
4
6
Offset number
8
Offset format
10
Tool offset value
(4 byte)
14
(Note 1) Offset format
M system (machining center system) T system (lathe system)
Data type Format Offset number Data type Format Offset number
(CTL+2, 3) (CTL+2, 3)
1310
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.2 [Description]
Writing a Parameter The data is written into the parameter area of the CNC.
(Setting Data) The parameters of the CNC are classified into four types according to the
smallest unit that has a meaning. Bit parameter: Each bit has a meaning.
Byte parameter: Each byte has a meaning. Word parameter: Each set of
two bytes has a meaning. Double word parameter: Each set of four bytes
has a meaning.
Each bit of a bit parameter cannot be written individually. The eight bits
(one byte) of the parameter must be written at a time. To change a bit of
a bit parameter, read the entire parameter, change the desired bit, then
write the entire parameter.
Set data
0
Function code
18
2
Completion code
4
Data length
4
6
Parameter number
8 0 : No axis
Data attribute
10 1 to n : A specified axis
Parameter data
(4 byte)
14
(Note 1) Format of parameter data
If the data is one byte long, it is set in the DATA+0 area.
10
DATA+0
11
DATA+1
12
DATA+2
13
DATA+3
14
NOTE
For the PMCNB6, realtype parameters cannot be written,
causing a CTL ERROR to occur.
1311
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.3
Writing a Custom [Description]
Macro Variable The data is written into the custom macro variable area of the CNC.
Set data
0
Function code
22
2
Completion code
4
Data length
6
6
Custom macro
number
8
Data attribute
0
10
Custom macro
variable value
(4 byte)
14 Position of
decimal point
(2 byte)
16
1312
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.4 [Description]
Writing a Data on the The data to be displayed on the program check screen of the CNC is
Program Check Screen rewritten.
Set data
0
Function code
150
2
Completion code
4
Data length
2, 4
6
Data type
8
Data attribute
0
10
Data on the program
check screen
(2 byte)
12
NOTE
1 As much program check screen data as the amount
specified with the data length can be written.
2 When the 15i is used, the spindle tool number and the next
machining tool number can each be written into a 2 or
4byte area.
1313
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.5
Writing the Torque [Description]
Limit Override The torque limit override of the specified feed axis is rewritten.
Set data
0
Function code
152
2
Completion code
4
Data length
2
6
Data type
0
8
Axis number
Value
10 Unsigned binary <Unit: %>
Torque limit override The values from 0 to 255 correspond to
0% to 100%.
12
[Example]
If the torque limit override is 50%, please set to 128.
NOTE
This window is valid for parameters set on the CNC.
Parameter 1802#4 0: Fixed to override 100%
1: This window enabled.
1314
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.6
Writing the Tool Life [Description]
Management Data The tool number and the tool life value are written into the specified tool
(Tool Group Number) group.
Set data
0
Function code
163
2 Data type Specification
Completion code
Number of Register the tool group.
tool groups Set group number, tool life value, and tool life counter for
4 transmission data.
Data length
4 7 6 5 4 3 2 1 0
DATA+0 Group number
6
Data number Life counter type
DATA+1 DATA+1 BIT 7
0
8 DATA+2
Tool life value
Tool No. DATA+3
C.4.7
Writing the Tool Life
Management Data [Description]
(Tool Life) The data is written into the tool life value area of the specified tool group.
Set data
0
Function code
164
2
Completion code
4
Data length
4
6
Tool group No.
8
Data attribute
0
10
Tool life
(4 byte)
14
1315
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.8
Writing the Tool Life [Description]
Management Data The data is written into the tool life counter area of the specified tool
(Tool Life Counter) group.
Set data
0
Function code
165
2
Completion code
4
Data length
4
6
Tool group No.
8
Data attribute
0
10
Tool life counter
(4 byte)
14
C.4.9
Writing the Tool Life [Description]
Management Data The data is written into the tool life counter type area of the specified tool
(Tool Life Counter Type) group.
Set data
0
Function code
166
2
Completion code
4
Data length
4
6
Tool group No.
8
Data attribute
0
10
Tool life counter type
(4 byte)
14
1316
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.10
Writing the Tool Life
Management Data (Tool [Description]
Length Compensation The data is written into the tool length compensation number area
Number 1) specified by the tool group number and tool number.
Set data
0
Function code
167
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool No.
10
Tool length
compensation No.
(4 byte)
14
C.4.11
Writing the Tool Life
Management Data (Tool [Description]
Length Compensation The data is written into the tool length compensation number area
Number 2) specified by the tool group number and tool order number.
Set data
0
Function code
168
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool order number
10
Tool length
compensation No.
(4 byte)
14
1317
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.12
Writing the Tool Life
Management Data [Description]
(Cutter Compensation The data is written into the cutter compensation number area specified by
Number 1) the tool group number and tool number.
Set data
0
Function code
169
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool No.
10
Cutter
compensation No.
(4 byte)
14
C.4.13
Writing the Tool Life
Management Data [Description]
(Cutter Compensation The data is written into the cutter compensation number area specified by
Number 2) the tool group number and tool order number.
Set data
0
Function code
170
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool order number
10
Cutter
compensation No.
(4 byte)
14
1318
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.14
Writing the Tool Life [Description]
Management Data The data is written into the tool information (status) area specified by the
(Tool Information 1) tool group number and tool number.
Set data
0
Function code
171
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool No.
10
Tool information
(4 byte)
14
Tool information
1 : The tool is cataloged.
2 : The tool life has expired.
3 : The tool was skipped.
C.4.15
Writing the Tool Life [Description]
Management Data The data is written into the tool information (status) area specified by the
(Tool Information 2) tool group number and tool order number.
Set data
0
Function code
172
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool order number
10
Tool information
(4 byte)
14
1319
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.16
Writing the Tool Life [Description]
Management Data A tool number is written into (added to) the area specified by the tool
(Tool Number) group number and tool order number.
Set data
0
Function code
173
2
Completion code
4
Data length
4
6
Tool group No.
8
Tool order number
10
Tool No.
(4 byte)
14
1320
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.17
Writing the Tool Offset
Data According to the [Description]
Specified Tool Number The tool number is specified and the tool offset data is written.
Set data
0
Function code
214
2
Completion code
4
Data length
4
6
Data format
8
Tool number
12
offset data
(4 byte)
16
NOTE
(Only Series 15B)
Please use the bit 4 of NC parameter as 1.
When the completion code 5 is returned, change the
format of the window in the SETTING Screen.
(REFERENCE : chapter II 4.4 SETTING Screen)
1321
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.18
Writing the [Description]
Superposition Move After the axes for manual handle feed are selected in the manual handle
Command feed mode, the traveling distances (number of pulses) corresponding to
three manual pulse generators are written. The set value ranges from 256
to +256.
The specified number of pulses is assumed to be the number of pulses
entered from the manual pulse generator. The speed is calculated as
follows: (specified number of pulses) (magnification) 62.5
(pulses/second) The data in parameters 1413 and 1414 of the CNC is
valid for this function.
(1) For three axes
Set data
0
Function code
215
2
Completion code
4
Data length
6
6
Data number
0
8
Data attribute
0
10
Superposition
move command
(6 byte)
16
DATA+0
First manual pulse generator
DATA+2
Second manual pulse generator
DATA+4
Third manual pulse generator
DATA+6
The data for using the fourth manual pulse generator is as shown on the
next page.
1322
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
Set data
0
Function code
215
2
Completion code
4
Data length
8
6
Axis specification
mode
8
Axis number
10
Superposition
move command
(8 byte)
18
#0 : Mode selection (0: The BMI signal is selected. 1: An axis number is selected.)
Axis number
7 6 5 4 3 2 1 0
CTL+8 CTL+8, #0 to #3: Axis number of the first pulse generator (P1)
P2 P1 CTL+8, #4 to #7: Axis number of the second pulse generator (P2)
CTL+9 CTL+9, #0 to #3: Axis number of the third pulse generator (P3)
P4 P3
CTL+9, #4 to #7: Axis number of the fourth pulse generator (P4)
1323
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
C.4.19 [Description]
Writing the Feedrate Feedrate writing can be specified only in the feedperminute mode. The
velocity command is specified with F 10d. A flag is provided to
validate either the command of the PMC or the feedrate of the CNC. After
the flag is set, the velocity command specified in the NC is invalidated.
To validate the feedrate of the NC, set the flag to 0.
Set data
0
Function code
216
2
Completion code
4
Data length
6
6
Data number
0
8
Data attribute
0
10
Feedrate
(6 byte)
16
NOTE
With the FS15iA (PMCNB6), this function is of the
lowspeed type. Therefore, this function need not be
interlocked with other windows.
1324
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
Settings
0
Function code
202
+2
Completion code
Data type Data specifications
+4 Tool group number The tool group is registered. As transfer data, the group
Data length number, life value, and life counter type are set.
6
7 6 5 4 3 2 1 0
+6
Data number DATA+0 Group number +
0 life counter type
DATA+1
+8 (DATA+1 BIT7 7)
DATA+2
Tool number DATA+3
+10 Life values
DATA+4
+12 DATA+5
Tool group number
+14 (6 byte)
Tool life value Group number 1 to
Life value 1 to 99999999 (if a count is specified)
+16 1 to 59940 (if a time is specified)
Life counter type (DATA+BIT 7)
+18 0 : Count
1 : Time (in minutes)
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1325
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
+8
Tool number
+10
+12
Tool length
+14 compensation number
(4 byte)
+16
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1326
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
+8
Tool number
+10
+12
Cutter compensation
+14 number
(4 byte)
+16
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1327
C. WINDOW FUNCTION DESCRIPTION
(PMCNB/NB2/NB6) APPENDIX B61863E/14
+8
Tool number
+10
+12
Tool information
+14
(4 byte)
+16
NOTE
This function is provided by the FS15iA (PMCNB6) only.
1328
C. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (PMCNB/NB2/NB6)
C.4.24
Writing Real [Explanation of data]
Parameters Real parameters are written to the CNC.
(Lowspeed Type)
[Input data structure]
Settings
0
Function code
323
+2
Completion code
+4
Data length
6
+6
Parameter number
+8
+10
Data attribute 0: no axis
1 to n: axis specified
+12
Decimal point position
+14
Data area
+16
(4 byte)
+18
NOTE
Integer parameters cannot be written.
Example)
(Parameter variable value)
(Value to be set on the NC) =
10(specified decimal point position)
Value to be set on Custom macro Decimal point position
the NC variable value
1234.000 1234 0
123.400 1
12.640 2
1.234 3
0.1234 4
1329
D. WINDOW FUNCTION DESCRIPTION
(FS16/16iLA) APPENDIX B61863E/14
1330
D. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16/16iLA)
CAUTION
Data transfer of machining condition files between data
areas is not possible by ladder diagrams on the FS16iLA.
1331
D. WINDOW FUNCTION DESCRIPTION
(FS16/16iLA) APPENDIX B61863E/14
D.2
FUNCTION
8
M = Set the kind of data set or group to transfer
(Data attribute)
M 110 : Set of processing data
101103 : Set of piercing d data
10 201205 : Set of edge process data
(Data) 1000 : Group of processing data
1001 : Group of piercing data
1002 : Group of edge process data
1332
D. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16/16iLA)
[Contents of data]
The data can be transferred from the processing condition file registered
in nonvolatile memory to the data area in CNC by PMCRC application.
Setting the forward data set or group in data attribute M.
Setting the original read address for the offset address from nonvolatile
memory top address in address N.
Setting the total byte No. of original data set in address L.
Setting the original structure of set in data.
And the data of set or group can be transferred from nonvolatile memory
to data area.
8
M = Set the kind of data set or group to transfer
(Data attribute)
M 110 : Set of processing data
101103 : Set of piercing d data
10 201205 : Set of edge process data
(Data) 1000 : Group of processing data
1001 : Group of piercing data
1002 : Group of edge process data
1333
D. WINDOW FUNCTION DESCRIPTION
(FS16/16iLA) APPENDIX B61863E/14
1334
D. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16/16iLA)
NOTE
Example of data set
The address in Data is set as follows, for example, in case
of the following data structure of processing condition file in
nonvolatile memory.
0 Feedrate 0 Feedrate
26 Edge select
28 Startup select
1335
D. WINDOW FUNCTION DESCRIPTION
(FS16/16iLA) APPENDIX B61863E/14
D.2.2 The data in the parentheses is written in the comment area, if the following
Reading of the Mcode is commanded in a part program. This comment can be read from
PMC.
Comment
Mxxx (* * * * * * *) ;
[Contents of data]
Contents of the data can be read for ASCII code.
4
L = Data length of the comments read in.
(Data length) (Added 1 in case of the odd number.)
L
(Group No.)
8
(Data attribute)
10
(Data) The read comment data is set.
NOTE
1 The comment is overwritten if the next comment is input.
2 Mcode number for reading of the comment is set to
parameter number 15350.
Setting value is 0 to 999.
1336
D. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16/16iLA)
D.2.3 (1) Reading the laser command data and laser setting data
Reading and Writing (:highspeed type)
the Laser Command
Data and Laser Setting [Contents of the data]
Data The laser command data and laser setting data for CNC can be read by
PMCRC application. The data are separated to groups and can be read
by the group.
4
L = Set the byte No. assigned for the group.
(Data length)
L
6
N = Set the group No.
(Group No.)
N
8
(Data attribute)
(No need to set)
10
(Data)
1337
D. WINDOW FUNCTION DESCRIPTION
(FS16/16iLA) APPENDIX B61863E/14
(2) Writing the laser command data and laser setting data (:lowspeed
type)
4
L = Set the byte No. assigned for the group.
(Data length)
L
6
N = Set the group No.
(Group No.)
N
8
(Data attribute)
(No need to set)
10
(Data)
1338
D. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16/16iLA)
(3) The data structure of the laser command data and laser setting data
1339
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
1340
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.1 [Description]
READING THE WIRE The wire diameter offset value recorded in the CNC can be read.
DIAMETER OFFSET
[Input data structure]
Top address
(Function)
13
+2
(Completion)
+4
(Data length)
L Offset CornerR Clearance Condition
+6
(Number)
N 015 16 17
+8
(Attribute)
0 0 0 1
M
+ 10
(Data area)
1341
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
[Data number]
015 : Reads the Offset value.
016 : Reads the CornerR value.
017 : Reads the Clearance value.
[Data attribute]
0 : Reads the Offset value, CornerR value or Clearance value.
1 : Reads the condition.
[Contents of data]
a) Unit of Offset, CornerR, Clearance and actual offset value
Metric system input : 103 [mm]
(In case the incremental system is 1/10,
output data unit is 104 [mm].)
Inch system input : 105 [inch]
b) Direction in condition data
0 : Cancel offset (G40)
1 : Wire diameter compensation left (G41)
2 : Wire diameter compensation right (G42)
c) Offset mode in condition data
0 : Offset mode is 0.
1 : Offset mode is 1.
[Completion codes]
0 : The data has been read normally.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
1342
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.2 [Description]
WRITING THE WIRE The wire diameter offset value can be written into the CNC.
DIAMETER OFFSET
(:LOWSPEED
RESPONSE) [Input data structure]
Top address
(Function)
14
+2
(Completion)
Offset CornerR Clearance Condition
+4
(Data length) 4 4 4 8
L
+6
(Number)
015 16 17
N
+8
(Attribute) 0 0 0 1
M
+ 10
(Data area)
Offset value CornerR value Clearance value 0, 1
D
+ 12
+ 14
1343
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
[Data number]
015 : Writes the Offset value.
016 : Writes the CornerR value.
017 : Writes the Clearance value.
[Data attribute]
0 : Writes the Offset value, CornerR value or Clearance value.
1 : Writes the condition.
[Contents of data]
a) Unit of Offset, CornerR, Clearance and actual offset value
Offset, CornerR, Clearance or Actual offset value is signed
binary in 4 bytes. A negative value is represented in 2s
complement.
b) Offset mode in condition data
0 : Offset mode is 0.
1 : Offset mode is 1.
[Completion codes]
0 : The data has been written normally.
2 : Invalid data is specified as the data length.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
5 : Invalid data is specified as the data value.
1344
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.3 [Description]
READING THE Parameter data in the CNC can be read.
PARAMETER There are four types of parameters in the CNC: Bit parameters having a
(:LOWSPEED definite meaning for each bit, byte parameters holding 1byte data, word
parameters holding 2byte data, and double word parameters holding
RESPONSE) 4byte data. Therefore, the length of the read data varies according to the
parameter number specified.
Note that bit parameters cannot be read in bit units. The eighth bits (one
byte) for a parameter number must be read at a time.
For axis parameters (servo parameters), data for a specific axis can be
read, or data for all axes can be read at a time.
[Data length]
L = 1 : Reads bit or byte type parameter or pitch error compensation
value.
2 : Reads word type parameter.
4 : Reads 2 words type parameter.
When the servo parameter all axis is specified
L = 18 : Reads bit or byte type parameter.
28 : Reads word type parameter.
48 : Reads 2 words type parameter.
[Data number]
When the pitch error compensation value
N = 11000 to 11511 : Pitch error compensation value of the 1st (X) axis
N = 12000 to 12511 : Pitch error compensation value of the 2nd (Y) axis
N = 13000 to 13511 : Pitch error compensation value of the 3rd (U) axis
N = 14000 to 14511 : Pitch error compensation value of the 4th (V) axis
N = 15000 to 15511 : Pitch error compensation value of the 5th (Z) axis
1345
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
N = 16000 to 16511 : Pitch error compensation value of the 6th (W) axis
N = 17000 to 17511 : Pitch error compensation value of the 7th (A) axis
N = 18000 to 18511 : Pitch error compensation value of the 8th (E) axis
[Data attribute]
When the servo parameter
M= 0 : Reads the no axis parameter.
1 to n : Reads the specific axis parameter
1 : Reads the all axes parameter.
(Note: n is the axis number.)
If a parameter other than the servo parameters is read, M is set to 0.
[Completion code]
0 : Parameter data has been read normally.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
6 : When the data with the parameter number specified for reading
cannot be used if options such as pitch error compensation are not
available, those options are not provided.
1346
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.4 [Description]
WRITING THE Parameter data in the CNC can be written.
PARAMETER There are four types of parameters in the CNC: Bit parameters having
(:LOWSPEED a definite meaning for each bit, byte parameters holding 1byte data, word
parameters holding 2byte data, and double word parameters holding
RESPONSE) 4byte data. Therefore, the length of the written data varies according to
the parameter specified.
Note that bit parameters cannot be written in bit unit. The eighth bits (one
byte) for the parameter number must be written at a time. This means that
when a bit needs to be written, the whole data for the corresponding
parameter number shall be read first, then the target bit in the read data
shall be written.
For axis parameters (servo parameters), data for a specific axis can be
written, or data for all axes can be written at a time.
Some parameters cause a P/S alarm 000 when data is written. (The power
must be turned off before continuing operation.)
[Data length]
L = 1 : Reads bit or byte type parameter or pitch error compensation
value.
2 : Reads word type parameter.
4 : Reads 2 words type parameter.
When the servo parameter all axis is specified
L = 18 : Writes bit or byte type parameter.
28 : Writes word type parameter.
48 : Writes 2 words type parameter.
[Data number]
When the pitch error compensation value
N = 11000 to 11511 : Pitch error compensation value of the 1st (X) axis
1347
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
N = 12000 to 12511 : Pitch error compensation value of the 2nd (Y) axis
N = 13000 to 13511 : Pitch error compensation value of the 3rd (U) axis
N = 14000 to 14511 : Pitch error compensation value of the 4th (V) axis
N = 15000 to 15511 : Pitch error compensation value of the 5th (Z) axis
N = 16000 to 16511 : Pitch error compensation value of the 6th (W) axis
N = 17000 to 17511 : Pitch error compensation value of the 7th (A) axis
N = 18000 to 18511 : Pitch error compensation value of the 8th (E) axis
[Data attribute]
M= 0 : Writes the no axis parameter.
1 to n : Writes the specific axis parameter
1 : Writes the all axes parameter.
(Note: n is the axis number.)
If a parameter other than the servo parameters is written, M is set to 0.
[Completion code]
0 : Parameter data has been written normally.
2 : Invalid data is specified as the data length.
3 : Invalid data is specified as the data number.
4 : Invalid data is specified as the data attribute.
6 : When the data with the parameter number specified for writing
cannot be used if options such as pitch error compensation are not
available, those options are not provided; or, the system is not in
the parameter writing state.
1348
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
1349
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
No. Length No. Data type No. Data type No. Data type
0280 0350 2words 0620 Byte 0690 Word
0281 0351 Byte 0621 Byte 0691 Word
0282 0352 Byte 0622 Byte 0692 Word
0283 0353 Byte 0623 Byte 0693 Word
0284 0354 Byte 0624 Word 0694 Word
0285 0355 Byte 0625 Word 0695 Word
0286 0356 Byte 0626 Word 0696 Word
0287 0357 Word 0627 Word 0697 Word
0288 0358 0628 Word 0698 Word
0289 0359 0629 Word 0699 Word
0290 0360 Word 0630 Word 0700 Word
0291 0361 2words 0631 Word 0701 Word
0292 0362 2words 0632 2words 0702 Word
0293 0363 2words 0633 2words 0703 Word
0294 0364 2words 0634 2words 0704 Word
0295 0365 2words 0635 2words 0705 Word
0296 0366 2words 0636 2words 0706 Word
0297 0367 2words 0637 2words 0707 Word
0298 0368 2words 0638 2words 0708 Word
0299 0369 2words 0639 2words 0709 Word
0300 Bit 0370 2words 0640 2words 0710 Word
0301 Bit 0371 2words 0641 2words 0711 Word
0302 Bit 0372 2words 0642 2words 0712 Word
0303 Bit 0373 2words 0643 2words 0713 Word
0304 Bit 0374 2words 0644 2words 0714 Word
0305 Bit 0375 2words 0645 2words 0715 Word
0306 Bit 0376 2words 0646 2words 0716 Word
0307 Bit 0377 2words 0647 2words 0717 Word
0308 Bit 0378 2words 0648 Word 0718 Word
0309 Bit 0379 2words 0649 Word 0719 Word
0310 Bit 0380 2words 0650 Word 0720 Word
0311 Bit 0381 2words 0651 Word 0721 Word
0312 Bit 0382 2words 0652 Word 0722 Word
0313 Bit 0383 2words 0653 Word 0723 Word
0314 Bit 0384 2words 0654 Word 0724 Word
0315 Bit 0385 0655 Word 0725 Word
0316 Word 0386 2words 0656 Word 0726 Word
0317 0387 2words 0657 Word 0727 Word
0318 0388 0658 Word 0728 Word
0319 0389 0659 Word 0729 Word
0320 Byte 0390 0660 Word 0730 Word
0321 Byte 0391 0661 Word 0731 Word
0322 Byte 0392 0662 Word 0732 Word
0323 Byte 0393 0663 Word 0733 Word
0324 Byte 0394 0664 Word 0734 Word
0325 Byte 0395 0665 Word 0735 Word
0326 Byte 0396 0666 Word 0736 Word
0327 Byte 0397 0667 Word 0737 Word
0328 Byte 0398 0668 Word 0738 Word
0329 Byte 0399 0669 Word 0739 Word
0330 Word 0600 Bit 0670 Word 0740 Word
0331 Word 0601 Bit 0671 Word 0741 Word
0332 2words 0602 Bit 0672 2words 0742 Word
0333 2words 0603 Bit 0673 2words 0743 Word
0334 Word 0604 Bit 0674 2words 0744 Word
0335 Word 0605 Bit 0675 2words 0745 Word
0336 2words 0606 Bit 0676 2words 0746 Word
0337 2words 0607 Bit 0677 2words 0747 2words
0338 2words 0608 Bit 0678 2words 0748 2words
0339 2words 0609 Bit 0679 2words 0749 2words
0340 2words 0610 Bit 0680 Word 0750 2words
0341 2words 0611 Bit 0681 Word 0751 2words
0342 2words 0612 Bit 0682 Word 0752 2words
0343 Byte 0613 Bit 0683 Word 0753 2words
0344 Word 0614 Bit 0684 Word 0754 2words
0345 Byte 0615 Bit 0685 Word 0755 Word
0346 Word 0616 Byte 0686 Word 0756 Word
0347 Byte 0617 Byte 0687 Word 0757 Word
0348 2words 0618 Byte 0688 Word 0758 2words
0349 2words 0619 Byte 0689 Word 0759 2words
1350
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
No. Length No. Data type No. Data type No. Data type
0760 2words 0810 2words 0860 Word 0910
0761 2words 0811 Byte 0861 Bit 0911
0762 2words 0812 Byte 0862 Bit 0912
0763 2words 0813 Byte 0863 Byte 0913
0764 2words 0814 Byte 0864 Byte 0914
0765 2words 0815 Byte 0865 Byte 0915
0766 2words 0816 Byte 0866 Byte 0916
0767 2words 0817 Byte 0867 Byte 0917
0768 2words 0818 Byte 0868 Byte 0918
0769 2words 0819 Word 0869 Byte 0919
0770 2words 0820 Word 0870 Byte 0920
0771 2words 0821 Word 0871 Byte 0921
0772 2words 0822 Word 0872 Word 0922
0773 2words 0823 Word 0873 Word 0923
0774 2words 0824 Word 0874 Word 0924
0775 2words 0825 Word 0875 Word 0925
0776 2words 0826 Word 0876 Word 0926
0777 2words 0827 Word 0877 Word 0927
0778 2words 0828 Word 0878 Word 0928
0779 2words 0829 Word 0879 Word 0929
0780 2words 0830 Word 0880 Word 0930
0781 2words 0831 Word 0881 Word 0931
0782 2words 0832 Word 0882 Word 0932
0783 2words 0833 Word 0883 Word 0933
0784 2words 0834 Word 0884 Word 0934
0785 2words 0835 0885 Word 0935
0786 2words 0836 Word 0886 Word 0936
0787 2words 0837 Word 0887 Word 0937
0788 2words 0838 Word 0888 Word 0938
0789 2words 0839 Word 0889 Word 0939
0790 2words 0840 Word 0890 Word 0940
0791 2words 0841 Word 0891 Word 0941
0792 2words 0842 Word 0892 Word 0942
0793 2words 0843 Word 0893 Word 0943
0794 2words 0844 Word 0894 Word 0944
0795 2words 0845 Word 0895 Word 0945
0796 2words 0846 Word 0896 Word 0946
0797 2words 0847 Word 0897 Word 0947
0798 2words 0848 Word 0898 Word 0948
0799 2words 0849 Word 0899 (Word) 0949
0800 2words 0850 Word 0900 (Bit)
0801 2words 0851 Word 0901 (Bit)
0802 2words 0852 Word(2W) 0902 (Bit)
0803 2words 0853 Word(2W) 0903
0804 2words 0854 Word(2W) 0904 (Byte)
0805 2words 0855 Word(2W) 0905 (Byte)
0806 2words 0856 Word(2W) 0906
0807 2words 0857 Word(2W) 0907
0808 2words 0858 Word(2W) 0908
0809 2words 0859 Word(2W) 0909
1351
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
E.5
READING SETTING [Data contents]
DATA Setting data on the CNC can be read.
[Data number]
See the setting data list.
[Completion code]
0 : Read operation was terminated normally.
3 : An incorrect data number was specified.
1352
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.6
WRITING SETTING
DATA
[Data contents]
(LOWSPEED TYPE)
Setting data on the CNC can be written.
[Data length]
See the setting data list.
[Data number]
See the setting data list.
[Completion code]
0 : Read operation was terminated normally.
2 : An incorrect data length was specified.
3 : An incorrect data number was specified.
1353
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
1354
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
1355
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
E.7 [Description]
READING THE CNC When the CNC is placed in the alarm status, the alarm status data can be
ALARM STATUS read.
[Contents of data]
(1) Alarm status data in first byte.
#7 #6 #5 #4 #3 #2 #1 #0
EOR OTM OTS OH SV OTH PS
PS : P/S alarm
OTH : Over travel alarm
SV : Servo alarm
OH : Overheat alarm
OTS : First stroke limit alarm
OTM : Second stroke limit alarm
EOR : Edit alarm
(2) Alarm status data in second byte.
#7 #6 #5 #4 #3 #2 #1 #0
APCER
[Completion codes]
0 : This alarm status in the CNC has been read normally.
1356
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.8 [Description]
READING MODEL Modal information in the CNC can be read.
DATA (1) Format and types of modal data for the G function
Data with a specified identification code is read and stored in the data
area. Whether the data is located in the block specified with the data
attribute can be determined with the most significant bit.
7 6 5 4 3 2 1 0
Identification code Data type Data Identification code Data type Data
0 G04 0 5 G94 0
G19 1 G95 1
G28 5 6 G20 0
G30 7 G21 1
G92 14
7 G40 0
G31 15
G41 1
G70 16
G42 2
G71 17
G72 18 8 G50 0
G73 19 G51 1
G74 20 G52 2
G75 21 9 G60 0
G76 22 G61 1
G77 23 G62 2
G78 24 G63 3
G79 25 10 G48 1
G49 0
1 G00 0
G01 1 11 G65 26
G02 2 G66 0
G03 3 G67 1
2 G17 0
3 G90 0
G91 1
4 G22 1
G23 0
1357
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
(2) Format and types of modal data for other than the G function
Data : 4 bytes
Flag
: 1 byte
7 6 5 4 3 2 1 0
1 byte
1358
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
+ 14
Flag part of Modal data of Flag part of data
modal data ID code 2 of ID code 100
+ 16
X X X
+ 44
+ 78
[Data length]
L= 2 : G function
2*16 : All data of G functions
6 : Other than G functions
6*12 : All data of other than G functions
[Data number]
N = 0 and up: See each data list.
1 : All data of G functions
2 : All data of other than G functions
[Data attribute]
M = 0 : Current block
1 : Next block
2 : Block after the next block
1359
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
[Completion code]
1 : The modal data read command could not be executed. This
means that, because the modal data was being updated on
the CNC, the command could not be executed.
0 : Modal data read operation terminated normally.
3 : An incorrect data number was specified.
4 : An incorrect data attribute was specified.
1360
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
E.9
READING [Data contents]
MACHINING The distance (machining distance) from the machining start point to the
DISTANCES current point, and the distance (whole distance) from the machining start
point to the point where M02 or M30 is specified can be read.
+ 14
[Data number]
N= 0 : Machining distance
N= 1 : Whole length obtained with the dry run function
N= 2 : Whole length obtained by drawing
N= 3 : Whole length obtained with the machining distance
calculation function
[Data unit]
Metric input : 103 [mm]
(When the increment system is 1/10: 104 [mm])
Inch input : 105 [inch]
[Completion code]
1 : Data could not be read. This means that, because the data was
being updated on the CNC, the command could not be executed.
0 : Data read operation terminated normally.
3 : An incorrect data number was specified.
1361
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
E.10 [Description]
READING THE The measured point that are get by positioning can be read. Also, the slit
MEASURED POINT width by slitting and the hole diameter by centering can be read.
Machine
+ 14 coordinate of
X axis
+ 16
Machine
+ 18 coordinate of
Y axis
+ 20
1362
E. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16W)
[Data unit]
Metric system input : 103 [mm]
(In case the incremental system is 1/10, output
data unit is 104 [mm].)
Inch system input : 105 [inch]
[Completion codes]
0 : The measured point has been read normally.
3 : Invalid data is specified as data number.
4 : Invalid data is specified as data attribute.
1363
E. WINDOW FUNCTION DESCRIPTION
(FS16W) APPENDIX B61863E/14
E.11
WRITING THE
MEASURED POINT
[Description]
(:LOWSPEED
The measured point that are get by positioning can be written. Also, the
RESPONSE) slit width by slitting and the hole diameter by centering can be written.
+ 16 + 16
Machine
coordinate of Y axis
+ 18 + 18
+ 20 + 20
[Data unit]
Metric system input : 103 [mm]
(In case the incremental system is 1/10, output
data unit is 104 [mm].)
Inch system input : 105 [inch]
[Completion codes]
0 : The measured point has been written normally.
3 : Invalid data is specified as data number.
4 : Invalid data is specified as data attribute.
1364
F. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16PA)
1365
F. WINDOW FUNCTION DESCRIPTION
(FS16PA) APPENDIX B61863E/14
F.1 [Description]
READING OF TOOL Various Tool setting data recorded in the CNC can be read.
SETTING DATA
[Input data structure]
Top address + 0
(Function code)
188
2
(Completion code)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data Number)
N
(See 1.1)
8
(Data attribute)
M
(See 1.1)
10
(Data area)
(Need not be set)
[Completion codes]
0: The tool setting data has been read normally.
3 : The data number specified for reading is invalid.
4 : There are mistakes in the data attribute that specifies the type of
the tool setting data to be read.
6 : For the tool setting data specified for reading, an additional option
(graphic or multitool control) is required, but it is missing.
1366
F. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16PA)
2
(Completion code)
?
(See the explanation of codes)
4
(Data length)
?
(See 1.1)
6
(Data Number)
N
(N : Input data)
8
(Data attribute)
M
(M : Input data)
10
(Data area)
?
(See 1.1)
X X
48
1367
F. WINDOW FUNCTION DESCRIPTION
(FS16PA) APPENDIX B61863E/14
F.1.1 Data number, data attribute, data length and data area of various tool
Data Number, setting data are as follows.
Data Attribute,
Data Length, Data Area
Various tool setting data Data number (N) Data attribute (M) Data length Data area
Used tool number 0 2 bytes Binary
1 to 136
Number of turret indexing 1 2 bytes Binary
1 to 136
Tool number of reference point 2 2 bytes Binary
0
1 to 136
Feed amount per revolution of 3 4 bytes Binary
turret 1 to 99999999
Total punch count 4 8 bytes Binary
1 to 99999999
Tool number 0 2 bytes Binary
1 to 9999
Punch count 1 4 bytes Binary
1 to 99999999
Tool position compensation of X 2 4 bytes Binary
99999999
Tool position compensation of Y 3 4 bytes Binary
99999999
Machine position of tool 4 4 bytes Binary
Number of tool 99999999
Tool number for tool change setting data 5 2 bytes Binary
1 to 136
1 to 136
(Not used) 6 4 bytes
Tool shape (C) for graphic 7 2 bytes Binary
High byte=0 0 to 4
Tool shape (I) for graphic 8 4 bytes Binary
0 to 999999
Tool shape (J) for graphic 9 4 bytes Binary
0 to 999999
Tool shape (K) for graphic 10 4 bytes Binary
0 to 360000
Tool number for multitool 0 2 bytes Binary
High byte=0 0 to 99
Tool angle for multitool 1 4 bytes Binary
360000
Tool position compensation of Y 2 4 bytes Binary
Number of 99999999
Multitool setting
Tool shape (C) for multitool 3 2 bytes Binary
data +200
High byte=0 0 to 4
Tool shape (I) for multitool 201 to 264 4 4 bytes Binary
0 to 999999
Tool shape (J) for multitool 5 4 bytes Binary
0 to 999999
Tool shape (K) for multitool 6 4 bytes Binary
0 to 360000
1368
F. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16PA)
data unit
Machine Input of ISA Input of ISB
1369
F. WINDOW FUNCTION DESCRIPTION
(FS16PA) APPENDIX B61863E/14
F.2 [Description]
WRITING OF TOOL The various tool setting data can be directly written into the CNC.
SETTING DATA
(LOWSPEED
RESPONSE) [Input data structure]
Top address + 0
(Function code)
189
2
(Completion code)
(Need not be set)
4
(Data length)
?
(See 1.1)
6
(Data Number)
N
(See 1.1)
8
(Data attribute)
M
(See 1.1)
10
(Data)
?
(See 1.1)
[Completion code]
0 : The tool setting data has been written normally.
2 : The data length specified for writing is invalid.
3 : The data number specified for writing is invalid.
4 : The data attribute specified for writing is invalid.
5 : The data specified for writing is invalid.
6 : The additional option (multitool control or graphic) is required
but it is missing.
1370
F. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16PA)
2
(Completion code)
?
(See the explanation of codes)
4
(Data length)
?
(See F.1)
6
(Data Number)
N
(N : Input data)
8
(Data attribute)
M
(M : Input data)
10
(Data area)
?
(See F.1)
X X
48
NOTE
See Sec. F. 1 for data unit.
1371
F. WINDOW FUNCTION DESCRIPTION
(FS16PA) APPENDIX B61863E/14
F.3
READING TOOL [Description]
SETTING DATA BY Setting data for a tool (such as registration order, tool punch count, and
SPECIFYING TOOL tool shape) can be read by specifying the tool number.
NUMBER
[Input data structure]
Top address + 0
(Function code)
141
2
(Completion)
(Need not be set)
4
(Data length)
(Need not be set)
6
(Data number)
N
(N=Tool number)
10
(Data attribute)
M
(See F.1)
12
(Data area)
(Need not be set)
NOTE
1 The area for specifying the data number consists of four
bytes.
2 As the data attribute, specify the type of the tool setting data
to be read, in the same way as for function code 188. If 0
is specified as the data attribute, the registration order of the
tool is read.
1372
F. WINDOW FUNCTION DESCRIPTION
B61863E/14 APPENDIX (FS16PA)
[Completion code]
0: The tool setting data has been read normally.
3: The specified data number is invalid.
4: The specified data attribute is invalid.
6: For the tool setting data specified for reading, an additional option
(graphic or multitool control) is required, but it is missing.
2
(Completion code)
?
(See the explanation above)
4
(Data length)
?
(See F.1)
6
(Data number)
N
(N: Input data)
10
(Data attribute)
M
(M: Input data)
12
(Data area)
?
(See F.1)
X
A X
A
48
1373
F. WINDOW FUNCTION DESCRIPTION
(FS16PA) APPENDIX B61863E/14
1374
G. SIGNAL ADDRESS CONVERSION
(FROM THE PMCMODEL L/M TO
B61863E/14 APPENDIX THE PMCMODEL SB/SC)
1375
G. SIGNAL ADDRESS CONVERSION
(FROM THE PMCMODEL L/M TO
THE PMCMODEL SB/SC) APPENDIX B61863E/14
G.2 The DI/DO signals used between the NC unit and the PMC correspond
to word addresses consisting of addresses and values. Word addresses of
FUNCTION bit type are converted. The program is not logically converted.
The conversion is performed under the following conditions.
(1) A word address of bit type used in a basic instruction is to be
converted.
(2) A word address of byte type used in a functional instruction is not
converted.
(3) Word addresses used in the standard FANUC Series 0T/M are
converted to those used in the standard FANUC Series 16T/M. If
a value in a word address is 1000.0 or more, the address is not
converted.
(4) When the same signal name is used in the FANUC Series 0 and 16,
and the addresses corresponding to the signal in the Series 0 and 16
have onetoone relationship, the word address is converted. For
details, see the signal conversion table.
G.3 (1) Load the FANUC LADDER program for the PMCSB/SC.
CONVERSION (2) Press the R0 key to display the programmer menu screen.
(3) Press the F2 key. Enter 2 and press the <NL> key. then the following
message appears on the screen. Insert a data floppy for the
PMCSB/SC. Select the name of the file corresponding to the
conversion from Table G.3 and enter it.
SET FD & KEYIN OK, KILL OR NO
FD0 = OK<DRIVE> <@NAME OR :NUMBER>
FD0 =
Table G.3 File Name in the Data Floppy for the PMCRB/RC
File name
FS0T FS16T COMV.FS0T
FS0M FS16M COMV.FS0M
(4) Read a source ladder program created with FANUC LADDER for
the PMCL/M from the floppy in the same way as in Item 3.
If an address not listed in the signal conversion table is used in the
ladder program file, an error occurs. In this case, enter E, then press
the <NL> key to return to the programmer menu screen.
PART= E <NL>
(5) Entering 9 and pressing the <NL> key on the programmer menu
screen changes the screen. The following message appears at the
lower left corner of the screen. Enter 2, then press the <NL> key to
delete the symbol data.
KEYIN 1, 2, 3, 4, 5 OR 6 OR NO
CLEAR/KEEP=
1376
G. SIGNAL ADDRESS CONVERSION
(FROM THE PMCMODEL L/M TO
B61863E/14 APPENDIX THE PMCMODEL SB/SC)
G.4 The above operation terminates the conversion. Check the converted
program. If an error occurs in the conversion, modify the program.
MODIFYING THE
CONVERTED Enter 1 on the programmer menu to change the screen to the screen for
editing a sequence program. Editing operation is the same as usual.
SEQUENCE
PROGRAM NOTE
Some addresses not converted have no error indication.
After modifying the program, check that all addresses are
correct according to the signal conversion table and the
connecting manual.
G.4.1 (1) When the Series 0 and 16 differ in the number of parameters used in
a functional instruction
Modification Procedure
Because the Series 0 and 16 differ in the numbers of parameters used
for TMR (timer), TMRB (timer), and CTR (counter), errors are
indicated at the parameters. Check the program, then delete the
parameter. Set the timer and counter again.
(2) When an address not used in functional instructions is specified
When an address used in the ladder program for the Series 0 is not
defined in the Series 16, the messages (NO PARAMETER) and
#PARAM.ERROR# appear as follows. Set the parameter again and
delete the latter message.
Example
00001 RD XXX.X
00002 SUB 8
00003 XXXX
00004 XXXX
00005 XXXX
00006 (NO PARAMETER) . . Set the parameter again.
00007 #PARAM.ERR# . . . . . Delete the message. This
message may not appear.
(XXX.X and XXXX are addresses and values.)
(3) Deleting SUB48 (END3) (In the PMCSB)
If SUB48 (END3) is specified in the PMCSB, an error occurs
because the PMCSB is not provided with SUB48 (END3). When
this error occurs, delete thirdlevel programs, or change the
thirdlevel programs to secondlevel programs and delete SUB48.
(4) Address conversion for signals not listed on the signal conversion
table Modify the address for a signal by referring to the connection
manual.
1377
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
FS18, FS21, OR Power Mate APPENDIX B61863E/14
1378
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
B61863E/14 APPENDIX FS18, FS21, OR Power Mate
H.1 The Series 0 operators panel consists of key switches, LEDs, a rotary
switch, and so on. Because the states of key switches and lamps are coded,
GENERAL the number of the signal lines required for connecting the operators panel
with the CNC may not be the same as the number of actual switches. PMC
management software automatically codes the states of the key switches
and lamps and transmits data.
Therefore, simple bit images of switches and LEDs must only be
manipulated with the PMC ladder program.
I/O unit
CNC (Series 16 or 18) I/O card
Protect key
Input Contact Emergency stop
X* and on button
Override rotary
switch
etc.
G* and Input
after (X) X* and on
PMC ladder
CNC Interface with
program
software other machines
(of the user)
Output
F* and on Y* and
after
Fig. H.1 (a) Connection between the CNC and the operators panel
1379
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
FS18, FS21, OR Power Mate APPENDIX B61863E/14
(Coordinate)
(Coordinate)
1380
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
B61863E/14 APPENDIX FS18, FS21, OR Power Mate
(Coordinate)
Fig. H.1 (d) External view of operators panel for 9 CRT/MDI with fullkeyboard (0TC)
(Coordinate)
Fig. H.1 (e) External view of operators panel for 9 CRT/MDI with fullkeyboard (0MC)
1381
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
FS18, FS21, OR Power Mate APPENDIX B61863E/14
H.2
CONNECTION
H.2.1
Connecting the I/O Unit
MAIN CPU
I/O unit Series 0 operators panel
JD1A
JD1B DI M1A
(I/O Link)
module
CP32
PSU DO M2A
CP6 JD1A module
DO module : 0 V common
Example) AOD32A1
H.2.2
Connecting the I/O CNC (Series 16 or 18)
To another I/O unit
Card MAIN CPU
I/O card
DI M1A
connector
DO
M2A
connector
1382
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
B61863E/14 APPENDIX FS18, FS21, OR Power Mate
H.3
SIGNALS FOR
CONNECTING THE
OPERATORS PANEL
H.3.1 This signal is used for the fixed address directly monitored by the CNC.
Emergency Stop Signal For connecting the signal, refer to the description of the interface between
(*ESP) the CNC and the PMC in the Series 16 or 18 Connection Manual.
H.3.2 Their key switch contact signals are directly input to the PMC. Handle
Override Signals (*OV1 them with the PMC ladder program.
to *OV8) and Program For connecting these signals, refer to the description of the interface
Protect Key Signal between the CNC and the PMC in the Series 16 or 18 Connection
(KEY) Manual.
H.3.3 The key switch signals are coded by the PMC management software, and
input to the area indicated by address R in the form of to the bit image.
Key Switch Signals
(Xn, Xn+2) Whether necessary keys are already pressed can be checked by the bit
image of the key switches using the user PMC ladder program. (See
Tables H.3.4 (a), H.3.4 (b), and H.3.4 (c))
While a key is pressed, the bit corresponding to the key is 1.
Two keys can be pressed at the same time. Create a user PMC program
so that it does not require pressing more than two keys at a time. If more
than two keys are pressed simultaneously, the relevant data is not entered
correctly.
A maximum of 60 ms is required before the corresponding bit is set to 1
or 0 after a key is pressed (released).
Key switch signal addresses (Xn to Xn+2: Table H.3.4 (a)) and their bit
image addresses (Rk to Rk+7: Tables H.3.4 (b) and H.3.4 (c)) can be
defined using fixed addresses or unused addresses as desired. (In Series
0, the key switch signal addresses are fixed to X20 and after. The bit
image addresses are fixed to F292 and after.)
1383
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
FS18, FS21, OR Power Mate APPENDIX B61863E/14
H.3.4 Specify the LED signals at PMC address R using the user PMC ladder
LED Signals (Ym) program in the form of a bit image. PMC management software changes
the bit image LED signals to the coded output signals. (See Tables H.3.4
(a), H.3.4 (b), and H.3.4 (c))
While 1 is written in a LED bit image, the relevant LED automatically
goes on. When 0 is written in the LED bit image, the relevant LED goes
off. All LEDs are off before the power is turned on.
A maximum of 200 ms is required before the LED goes on or off after 1
or 0 is written in a bit image in the PMC.
LED signal address (Ym: Table H.3.4 (a)) and the bit image addresses (Rl
to Rl+7: Tables H.3.4 (b), and H.3.4 (c)) can be defined using fixed
addresses or unused addresses as desired. (In Series 0, the LED signal
address is fixed to Y51. The bit image addresses are fixed to G242 and
after.)
Xn+1
Table H.3.4 (b) Bit Image addresses of key switch and LED signals
(for the small operators panel)
#7 #6 #5 #4 #3 #2 #1 #0
KEY/LED F3 F2 F1 D1 C1 B1 A1
Rk/Rl F4 D2 C2 B2 A2
Rk+1/Rl+1 D4 D3 C4 C3 B4 B3 A4 A3
Rk+2/Rl+2 F6 F5 D5 C5 B5 A5
Rk+3/Rl+3 F8 D6 C6 B6 A6
Rk+4/Rl+4 D8 C8 B8 A8 A7
Rk+5/Rl+5 F9 D9 C9 B9 A9
1384
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
B61863E/14 APPENDIX FS18, FS21, OR Power Mate
Table H.3.4 (c) Bit image addresses of key switch and LED signals
(for the operators panel with the full keyboard)
#7 #6 #5 #4 #3 #2 #1 #0
KEY/LED E1 C1 A1 E6 D6 C6 B6 A6
Rk/Rl E2 C2 A2 E7 D7 C7 B7 A7
Rk+1/Rl+1 E3 C3 A3 E8 D8 C8 B8 A8
Rk+2/Rl+2 E5 C4 A4 E9 D9 C9 B9 A9
1385
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
FS18, FS21, OR Power Mate APPENDIX B61863E/14
H.4 The following section describes how to specify key switch and LED
signal addresses and the bit image addresses.
SPECIFYING
ADDRESSES
H.4.1
Parameter Menu
KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT TO SET PARA.S
01 (UNUSED) ;
02 COUNTER DATA TYPE ; BINARY
06 (UNUSED) ;
07 (UNUSED) ;
08 (UNUSED) ;
00 NOTHING TO SET ;
NO. =
H.4.2 1) Select 3 from the parameter menu. Then, the following message is
Procedure displayed:
EXAMPLE 0:NO, 1:YES
OP.PANEL=_
1386
H. CONNECTING THE OPERATORS
PANEL FOR FS 0 WITH FS16,
B61863E/14 APPENDIX FS18, FS21, OR Power Mate
: : :
03 OPERATOR PANEL ; YES
CAUTION
1 After the above procedure, the addresses in Tables 3.1,
3.2A, and 3.2B are defined as the following PMC
addresses:
Xn X0000 Rk / Rl R0900/R0910
Xn+1 X0001 Rk+1 / Rl+1R0901/R0911
Xn+2 X0002 Rk+2 / Rl+2R0902/R0912
Rk+3 / Rl+3R0903/R0913
Ym Y0000 Rk+4 / Rl+4R0904/R0914
Rk+5 / Rl+5R0905/R0915
Rk+6 / Rl+6R0906/R0916
Rk+7 / Rl+7R0907/R0917
2 Since the PMC addresses for the I/O card are already fixed,
specify the signals to be used at the fixed addresses.
Examples To use X1000, X1001, X1002, and Y1000 for key switches and LEDs,
enter the following:
SET KEY/LED ADDRESS(KEY ADRS., LED ADRS.)
ADDR= X1000,Y1000 [NL]
1387
I. EDITING FOR Power MateMODEL D
(PMCPA1/PA3) APPENDIX B61863E/14
1388
I. EDITING FOR Power MateMODEL D
B61863E/14 APPENDIX (PMCPA1/PA3)
I.2 Editing card described herein apply to the following software or later.
COMPATIBILITY CNC
WITH CNC BASIC Version 08(H) or later of Power MateMODEL D basic software
8830 Series.
SOFTWARE
PMC
Version 04(D) or later of PMCPA1/PA3 control software 4075
Series.
1389
I. EDITING FOR Power MateMODEL D
(PMCPA1/PA3) APPENDIX B61863E/14
I.3 This function is used to set PMC system parameters and also generate and
execute sequence programs by using soft keys a on the CRT/MDI unit or
PMC PROGRAMMER PDP/MDI unit. You can not use following function because FANUC
(CRT/MDI OR Power MateMODEL D does not use ROM for sequence program.
PDP/MDI) [LADDER Sequence Program Copy Function
EDITING FUNCTION] Writing, Reading, and Verification of the Sequence Program and
PMC Parameter Data to/from/with ROM.
I.3.1 The units required for generating a sequence program and connection
methods are described below.
Component Units and
Connections
1390
I. EDITING FOR Power MateMODEL D
B61863E/14 APPENDIX (PMCPA1/PA3)
CAUTION
Please do not release the write protect switch of editing card
for preventing a mistake deleting.
WRITE PROTECT
Editing Card
(A02B0166K701#4076)
Fig. I.3.1.1
1391
I. EDITING FOR Power MateMODEL D
(PMCPA1/PA3) APPENDIX B61863E/14
I.3.1.2 Feed the editing card into connector CNMC of the CNC.
Connection of When you want to put on and take off, you must turn off the CNC power.
components (Refer to the fig. I.3.1.2)
Fig. I.3.1.2
I.3.1.3 Please set bit 1 in K17 of keep relay area for PMC parameters.
#7 #6 #5 #4 #3 #2 #1 #0
Parameter
K17 PRGRAM
1392
I. EDITING FOR Power MateMODEL D
B61863E/14 APPENDIX (PMCPA1/PA3)
I.3.2 FANUC Power MateMODEL D can set only COUNTER DATA TYPE.
Specification and The meaning of this parameter is same as PMCSA1/SA2.
Display of System
Parameters (SYSPRM)
PMC SYSTEM PARAMETER
COUNTER DATA TYPE = BINARY/BCD
[BINARY] [ BCD ] [ ] [ ] [ ]
I.3.3 When the following condition is satisfied, the CONDNS key will be used
in FANUC Power MateMODEL D.
Condense
Some unused area remain by repeating the addition or the deletion
of the symbol/comment and the message in the memory.
Ladder might be able to be made more by compressing the unused
area by pushing [CONDNS] key when the memory is insufficient
while ladder is added.
[Example: When you want to expand ladder area by deleting
symbol/comment data at the memory status Fig.I.3.3 (a)]
(1) Delete symbol data(0.2KB).
(2) Push [CONDNS] key.
(3) The memory status becomes as Fig.I.3.3 (c) and LADDER can be
edited more.
NOTE
1 Sequence program area in Fig. I.3.3 (a) (c) is 64KB.
2 The underlined memory in Fig. I.3.3 (a) (c) is the same as
the memory display of the TITLE screen.
3 The symbol/comment area in Fig. I.3.3 (a) is 20KB (Unused
area 0.9KB is contained.)
4 In case of deleting message and expending another area,
it is as same as this example.
1393
I. EDITING FOR Power MateMODEL D
(PMCPA1/PA3) APPENDIX B61863E/14
1394
I. EDITING FOR Power MateMODEL D
B61863E/14 APPENDIX (PMCPA1/PA3)
I.4
SYSTEM DIAGRAM
OF SOFT KEY
NEXT
RETURN
NEXT
FUNCTN
RETURN NEXT
COMAND
NEXT
1395
J. APPLICABLE FANUC LADDER EDITIONS APPENDIX B61863E/14
1396
B61863E/14 APPENDIX J. APPLICABLE FANUC LADDER EDITIONS
A08B9200J502#JP 5.0 5.0 2.0 2.0 5.0 6.2 1.0 2.0 5.0
A08B9201J502#EN and later and later and later and later and later and later and later and later and later
(Note)
1397
J. APPLICABLE FANUC LADDER EDITIONS APPENDIX B61863E/14
Model PMC PMC PMC PMC PMC PMC PMC PMC PMC PMC
SB4 SB5 SB6 SB7 SC SC3 SC4 NB NB2 NB6
Drawing number
A08B9210J505 1.0 1.0 1.0 2.0 1.0 1.0 1.0 1.0 1.0
and later and later and later and later and later and later and later and later and later
A08B9210J511 1.0 1.0 1.0 2.0 1.0 1.0 1.0 1.0 1.0
and later and later and later and later and later and later and later and later and later
NOTE
When a PMCSA5 ladder is to be created in the FANUC
LADDER, set the model to PMCSA3 (RA3).
1398
B61863E/14 APPENDIX J. APPLICABLE FANUC LADDER EDITIONS
NOTE
A sequence program cannot be transferred from the
PMCSA1 of the FANUC Series 20 to the offline
programmer (edition 6.0 or an earlier edition). If this is
attempted, alarm 89 occurs in the offline programmer.
1399
J. APPLICABLE FANUC LADDER EDITIONS APPENDIX B61863E/14
NOTE
The edition of FANUC LADDER adopted for the PMCSA2
or PMCSB2 can be used to program the PMCSA3 or
PMCSB3 as long as some functional instructions including
structured programming are not used (as long as FANUC
LADDER is used within the range of the specifications of the
PMCSA2 or PMCSB2).
When this edition is used:
1400
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
B61863E/14 APPENDIX WITH MEMORY CARD
1401
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
WITH MEMORY CARD APPENDIX B61863E/14
K.1 The function is leveled up, that is Input/Output function with Memory
Card by CNC or Offline Programmer. The leveled up contents are as
OUTLINE OF follows.
LEVELED UP
(1) The time is reduced in Inputing/Outputing between CNC and
CONTENTS Memory Card by PMC I/O function. This is the same between
Offline Programmer and Memory Card.
(2) Sequence programs can be inputted from Memory Card by BOOT
SYSTEM, by which CNC management software or so can be
inputted.
Memory Card function can be used in the following editions of CNC
basic software and PMC management software and FANUC
LADDER for Personal Computer.
1402
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
B61863E/14 APPENDIX WITH MEMORY CARD
K.2
OPERATION
CHANNEL = 1
DEVICE = MCARD
FUNCTION = WRITE
DATA KIND = LADDER
FILE NO. =
( #NAME )
F1 KEY : FA WRITER
1403
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
WITH MEMORY CARD APPENDIX B61863E/14
EXEC END
1404
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
B61863E/14 APPENDIX WITH MEMORY CARD
EXEC END
1405
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
WITH MEMORY CARD APPENDIX B61863E/14
K.2.3 Sequence programs which are output from leveled up CNC or Offline
Note Programmer to Memory Card can not be input to non leveled up CNC or
Offline Programmer. (Refer to the table of K.1)
(1) (4)
(2) (3)
: Non leveled up
The case of (1), (2), (3) and (4) are explained as follows.
In case of (1), (2)
Output operation : There is no special operation
Input operation : Input sequence programs buy BOOT SYSTEM.
(Refer to K.2.3)
1406
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
B61863E/14 APPENDIX WITH MEMORY CARD
In case of (3)
Output operation : Output sequence programs by setting the output
format to 1 (:SFORMAT) on the following
SETUP screen PMC I/O. The default output
format is 0 (:BINARY).
CHANNEL = 1
DEVICE = MCARD
FUNCTION = WRITE
DATA KIND = LADDER
FILE NO. =
( #NAME )
[ INPUT ][ ][ ][ ][ INIT ]
1407
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
WITH MEMORY CARD APPENDIX B61863E/14
K.3.1
Data Transfer Between
NB (4047 Series) and
FANUC LADDER
Transfer in handy file format FANUC LADDER Transfer function not provided
(personal computer
version)
K.3.2
Data Transfer Between
NB/NB2 (4048 Series)
and FANUC LADDER
1408
K. LEVEL UP OF INPUT/OUTPUT FUNCTION
B61863E/14 APPENDIX WITH MEMORY CARD
K.3.3
Data Transfer Between
NB (4047 Series) and
NB (4048 Series)
PMC I/O screen Transfer in handy file format PMC I/O screen
NB (4047) NB (4048)
Transfer in handy file format FANUC LADDER Transfer in memory card format
(personal computer
version)
1409
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
1410
L. MIGRATION OF LADDER PROGRAMS
B61863E/14 APPENDIX BETWEEN DIFFERENT MODELS
L.1 The PMCSB5/SB6 for the Power Mate iD/H are upwardcompatible
with the PMCPA1/PA3 for the Power MateD/H, according to their
MIGRATION OF basic specifications. Because, however, sequence programs are not
LADDER PROGRAMS objectcompatible with the PMCPA1/PA3 for the MateD/H, Ladder
FROM programs sent from the Power MateD/H to a memory card cannot be
directly loaded into the Power Mate iD/H. For this reason, to migrate
Power MateD/H TO
from the Power MateD/H to the Power Mate iD/H, you must convert
Power Mate iD/H the PMC sequence programs.
This section provides information about the PMC programming
compatibility that should be noted when you convert sequence programs.
1411
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
Model
PMC address type Power MateD Power MateD/H Power Mate iD/H
1412
L. MIGRATION OF LADDER PROGRAMS
B61863E/14 APPENDIX BETWEEN DIFFERENT MODELS
L.2 If you previously used the Series 15B PMCNB/NB2, you must convert
from the PMCNB/NB2 to the PMCNB6. The conversion procedure is
MIGRATION FROM as described below.
THE PMCNB/NB2 TO (1) Model change from the PMCNB/NB2 to the PMCNB6 (source
THE PMCNB6 programs)
When changing the model from the PMCNB/NB2 to the NB6, you
must convert the source programs for one PMC model to those for the
other using FANUC LADDERII. Conversion is possible using the
procedure described in the following manual:
Appendix 3.3, Converting Sequence Programs for One PMC
Model to Those for the Other in the FANUC LADDERII
Operators Manual (B66184EN)
The mnemonic file format for the PMCNB6 system parameters used
for model conversion is as follows:
%@0
1413
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
%@0
2 BINARY 2. Counter type (BINARY or BCD)
3 NO 3.Operator panel (YES or NO)
4 PMCSB7 4. PMC type
7 150 7. Ladder execution ratio (150%)*
%
NOTE
The default value is 150. The meaning is described in L.3.1
Addition of LADDER EXEC in the system parameter
iv) Convert the mnemonic file to the source program and overwrite it
on the new source program for PMCSB7.
1414
L. MIGRATION OF LADDER PROGRAMS
B61863E/14 APPENDIX BETWEEN DIFFERENT MODELS
L.3.1 For the PMCSB7, with addition of the third ladder level, the ladder
Addition of System execution time is added as a system parameter.
Set the time by which the processing time for the first and second levels
Parameter Ladder is to be increased or decreased.
Execution Time
Initial value 150 Range of valid settings 1 to 150
D If the ladder uses only the first and second levels, set the upper limit
(150).
D If the upper limit (150) is set for a ladder which uses the third level,
the third level may not operate satisfactorily. In this case, set this
parameter so that the processing time for the first and second levels is
decreased.
The processing time for the first and second levels of a ladder is
obtained using the following expression:
Processing time for the first =5msec Ladder execution time
and second levels of a ladder 100
The processing time for the third level of a ladder is obtained using the
following expression:
Processing time for the third level of a ladder =
7.5 msec (processing time for the first and second levels of the ladder)
For example, when this parameter is set to 100, the processing time for
the first and second levels of the ladder is 5 ms and that for the third
level is 2.5 ms in a cycle of 8 ms.
1415
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
L.4
MIGRATION FROM
THE SERIES 0 AND
SERIES 21B TO
SERIES 0i
L.4.1 The object and the source of the ladder program are not compatible
between PMCSA1/SA3 for Series 0i and PMCL/M for Series 0.
Compatible With
Therefore, to apply the ladder program of PMCL/M for Series 0 to the
Series 0 ladder program of PMCSA1/SA3 for Series 0i, you need to convert from
the ladder program of PMCL/M to the mnemonic form, correct the
mnemonic form data, and convert from the mnemonic form data to the
ladder program of PMCSA1/SA3.
D The difference between PMCL/M for Series 0 and PMCSA1/SA3
for Series 0i and the countermeasure
1. TMR, TMRB, and CTR instruction.
PMCSA1/SA3 are different from PMCL/M in the number of the
parameter in TMR,TMRB and CTR instructions. Therefore, please
check the mnemonic form data, and delete the parameter, and set
up the timer or the counter.
(Example)
Instruction Before the modification After the modification
(PMCL/M) (PMCSA1/SA3)
1416
L. MIGRATION OF LADDER PROGRAMS
B61863E/14 APPENDIX BETWEEN DIFFERENT MODELS
NOTE
FANUC LADDERIII cannot convert the address.
[Operation of conversion]
In case of FANUC LADDER (Example: Converting the ladder to
PMCSA1 for Series 0iMA from PMCM for Series 0M)
(1) Prepare the mnemonic form file of PMCM that you want to convert.
(*A)
(2) Input a new source program name in EDIT of FANUC LADDER,
and select the PMCRA1(SA1) in SETUP, and quit the edit screen
without edit operation.
(3) Convert to the mnemonic form file from source program of (2). (*B)
The empty mnemonic form file is made.
(4) Exit FANUC LADDER, and start up the text editor.
Specify the mnemonic form file of (3) as the edit file name.
(5) Replace the symbol data of the mnemonic form file(PMCSA1) of (3)
with the converter file of FS0T_CNV.SYM or FS0M_CNV.SYM.
(*C)
1417
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
(6) Replace the ladder data of the mnemonic form file(PMCSA1) of (3)
with the ladder data of the mnemonic form file(PMCM) of (1). (*D)
(7) Exit the text editor, and start up FANUC LADDER.
(8) Specify the PMCRA1(SA1) as PMC model, and convert to the
source program from the mnemonic form file of (5).
(9) Delete all symbols and comment on the EDIT screen.
1418
L. MIGRATION OF LADDER PROGRAMS
B61863E/14 APPENDIX BETWEEN DIFFERENT MODELS
(5) Replace the symbol data of the mnemonic form file(PMCSA3) of (3)
with the converter file of FS0T_CNV.SYM or FS0M_CNV.SYM.
(**C)
(6) Replace the ladder data of the mnemonic form file(PMCSA3) of (3)
with the ladder data of the mnemonic form file(PMCM) of (1). (**D)
(7) Exit the text editor, and start up FANUC LADDERII.
(8) Select the PMCRA1(SA1) as PMC model, and convert to the source
program from the mnemonic form file of (5). Select the
MNEMONIC EDIT, and specify the MNEMONIC FILE
SOURCE PROGRAM.
(9) Delete all symbols and comment data on the SYMBOL &
COMMENT of the EDIT.
1419
L. MIGRATION OF LADDER PROGRAMS
BETWEEN DIFFERENT MODELS APPENDIX B61863E/14
L.4.2 The ladder program of PMCSA1/SA3 for Series 0i has the objective
Compatibility With compatibility with the ladder program of PMCSA1/SA3 for Series 21B
or PMCSA1/SA5 for Series 21i/210i.
Series 21MODEL B Therefore, you can load the ladder program outputted from Series 21B
by using memory card on BOOT screen of Series 0i.
However, correction of the ladder program might be needed in the
following cases.
(1) Ladder program depending on execution time
The execution timing might change as follows because the execution
time of the instruction is changed.
Change in the execution cycle at the second ladder level.
Change in the timing of secondlevel division and firstlevel
execution.
Change in the timing of ladder program execution and I/O transfer.
1420
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
1421
M. ALARM MESSAGE LIST APPENDIX B61863E/14
M.1
ALARM MESSAGE
(PMCPA1/PA3/SA1/
SA2/SA3/SA5/SB/
SB2/SB3/SB4/SB5/
SB6/SC/SC3/SC4/NB/
NB2/NB6)
Alarm messages 1 (alarm screen)
Message Contents and solution
ALARM NOTHING Normal status
or
NO ALARM (In case of PMCNB6)
ER00 PROGRAM DATA ERROR (ROM) The sequence program in the ROM is not written correctly.
(solution) Please exchange ROM for the sequence program.
ER01 PROGRAM DATA ERROR (RAM) The sequence program in the debugging RAM is defective.
(solution) Please clear the debugging RAM and input LADDER again.
The debugging RAM is not installed though the RAM is selected.
(solution) Please install the debugging RAM or install ROM for sequence
program and select ROM with K17#3=0.
ER02 PROGRAM SIZE OVER The size of a sequence program exceeded the maximum allowable
ladder size.
(solution) The ordered RAM size is smaller than the option. Contact FA-
NUC.
Change the value of MAX LADDER AREA SIZE on the SYSPRM
screen, then turn the power off then back on (only with PMCSC).
ER03 PROGRAM SIZE ERROR (OPTION) The size of sequence program exceeds the option specification size.
(solution) Please increase the option specification size.
Or, reduce the size of sequence program.
ER04 PMC TYPE UNMATCH The PMC model setting of the sequence program is not corresponding to
an actual model.
(solution) Please change the PMC model setting by the offline program-
mer.
ER05 PMC MODULE TYPE ERROR The module type of the PMC engine is not correct.
(solution) Please exchange the module of PMC engine for a correct one.
ER06 PROGRAM MODULE NOTHING Both ROM for sequence program and the debugging RAM do not exist
(PMCSC only).
For a 3path system, the PMC model must be SB6.
(solution) Contact FANUC.
ER07 NO OPTION (LADDER STEP) There is no step number option of LADDER.
ER08 OBJECT UNMATCH Sequence Program has 2 channels of I/O Link, but PMC control software
or Ladder Editor Card or PMC C language control software does not
support the I/O Link expansion.
(solution) To use only the I/O Link channel 1, use sequence program for
only channel 1. To use the I/O Link channel 2, update PMC
control software and Ladder Editor Card and PMC C language
control software supported the I/O Link expansion.
ER10 OPTION AREA NOTHING The PMCSB management software is not transferred.
(SERIESNAME) (solution) There is a mismatch between the order and delivered the soft-
ware. Contact FANUC.
ER11 OPTION AREA NOTHING The PMC C language board management software is not transferred.
(SERIESNAME) (solution) There is a mismatch between the order and delivered the soft-
ware. Contact FANUC.
ER12 OPTION AREA ERROR (SERIESNAME) There is a series mismatch between the basic and option of the PMCSB
management software.
(solution) Contact FANUC.
1422
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
NOTE
1 The PMCSB3/SC3 for the Series 16 MODELB does not support ER00 and ER06.
2 For the PMCSB3/SC3 for the Series 16 MODELB, the debugging RAM and ROM for
sequence program, described in the table, are not supported but the relevant descriptions
apply to ordinary RAM.
1423
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1424
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
1425
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1426
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
1427
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1428
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
M.2
ALARM MESSAGE
(PMCSB7)
Alarm number Faulty location/corrective action Contents
ER01 PROGRAM DATA ERROR 1) Reinput the sequence program. The sequence program is invalid.
2) Replace the master printed circuit
board.
ER02 PROGRAM SIZE OVER 1) Reduce the sequence program. The sequence program is too large.
2) Contact FANUC to have a larger The sequence program is invalid.
numberofLaddersteps option
specified.
ER03 PROGRAM SIZE ERROR 1) Reduce the sequence program. The sequence program exceeds the
(OPTION) 2) Contact FANUC to have a larger size specified by the numberof
numberofLaddersteps option Laddersteps option.
specified.
ER04 PMC TYPE UNMATCH Using an offline programmer, change The setting of the type in the sequence
the sequence program to that for the program differs from the actual type.
correct PMC type.
ER06 PMC CONTROL SOFTWARE Contact FANUC to specify certain PMC The combination of CNC system
TYPE UNMATCH type configuration and PMC type is invalid.
(Example: PMCSB5 is used for a
3path CNC system.)
ER07 NO OPTION (LADDER STEP) 1) Restore the backed up CNC No numberofLaddersteps option is
parameter data. found.
2) Check the data sheet and reinput
the CNC parameters.
3) Contact FANUC to specify a
numberofLaddersteps option of
the necessary size.
ER08 OBJECT UNMATCH 1) Contact FANUC. An unsupported function is used in the
sequence program.
ER09 PMC LABEL CHECK 1) Press and hold down the O and Z With a change in the PMC type, for
ERRORPLEASE TURN ON POWER key combination, and turn the CNC example, the retentiontype memory of
AGAIN WITH PUSH O&Z. back on. the PMC must be initialized.
(CLEAR PMC SRAM) 2) Replace the backup battery.
3) Replace the master printed circuit
board.
ER10 OPTION AREA NOTHING Contact FANUC to reconfigure the PMC The PMC management software is not
(xxxx) management software. loaded correctly.
ER11 OPTION AREA NOTHING Contact FANUC to reconfigure the PMC The PMC C board management
(xxxx) management software. software is not loaded correctly.
ER12 OPTION AREA ERROR (xxxx) Contact FANUC to reconfigure the PMC The PMC management software is
management software. invalid.
(The series of BASIC and OPTION do
not match.)
ER13 OPTION AREA ERROR (xxxx) Contact FANUC to reconfigure the PMC The PMC C board management
management software. software is invalid.
(The series of BASIC and OPTION do
not match.)
ER14 OPTION AREA VERSION Contact FANUC to reconfigure the PMC The PMC management software is
ERROR (xxxx) management software. invalid.
(The editions of BASIC and OPTION do
not match.)
ER15 OPTION AREA VERSION Contact FANUC to reconfigure the PMC The PMC C board management
ERROR (xxxx) management software. software is invalid.
(The editions of BASIC and OPTION do
not match.)
1429
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1430
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
1431
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1432
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
1433
M. ALARM MESSAGE LIST APPENDIX B61863E/14
M.3
SYSTEM ALARM
MESSAGES
(PMCSC)
Message STATUS LED Contents and solution
PC1nn CPU INTERPT xxxx yyyyyy A CPU error (abnormal interrupt) occurred.
nn : CPU exception handling code
It is an exception code of i80386. For details, please refer to
the manual of the CPU.
00 Division error such as a divisor is 0 in division instruction.
12 Stack exception such as violations of limit of stack segment.
13 General protection exception such as segment limit over.
xxxx : Segment selector where system error occurred.
The selector of 010302FB is used by C language.
STATUS LED lL yyyyyy: Offset address where system error occurred.
PC130 RAM PARITY aa xxxx yyyyyy The parity error occurred on the debugging RAM of PMC.
aa : RAM PARITY ERROR information.
xxxx : Segment selector where system error occurred.
STATUS LED jL yyyyyy: Offset address where system error occurred.
PC140 NMI BOC bb xxxx yyyyyy The RAM parity error or NMI(Non Maskable Interrupt) generated in
module of PMC engine.
bb : RAM PARITY ERROR information.
1, 2, 4, 8 Parity error occurred on basic DRAM.
14, 18 Parity error occurred on option DRAM.
20, 60, A0, E0 Parity error occurred on SRAM.
xxxx : Segment selector where system error occurred.
STATUS LED LJ yyyyyy: Offset address where system error occurred.
PC150 NMI SLC aa cc The communication error occurred in the I/O Link.
aa, cc : I/O Link error information.
This error may occur by the following causes.
1.When I/O UnitMODEL A is used, base1, 2 or 3 is not connected
though allocated.
2.The connection of cable is insufficient.
3.Defects of cable.
4.Defects of DI/DO units (I/O unit, Power Mate etc.)
5.Defects of PMC board (printed circuit board on host side where I/O
Link cable is connected.)
(solution) Investigate the cause of error.
1.Please confirm the allocation data (by EDITMODULE screen)
and compare with the actual connection.
2.Please confirm whether the cable is correctly connected.
If you cannot find the cause with the ways above, it may be the defect
of hardware.
Please investigate a defective place by the following methods.
3.Please confirm the specification of the cable referring to FANUC I/O
UnitMODEL B connecting manuals(B62163E).
4.Exchange the interface module of I/O Unit, the cable and the PMC
board, etc. one by one and, confirm whether this error occurs again.
The communication may fail by the noise etc. when this error still
occurs after replacing all DI/DO units.
STATUS LED JL Please investigate the cause of noise.
PC160 FBUS ERROR xxxx:yyyyyyyy A bus error occurred on the PMC.
PC161 FBUS ERROR xxxx:yyyyyyyy xxxx : Segment selector for which a bus error occurred.
PC162 FBUS ERROR xxxx:yyyyyyyy yyyyyyyy : Offset address where a bus error occurred.
STATUS LED Lj
PC170 LBUS ERROR xxxx:yyyyyyyy A bus error occurred on the PMC.
PC171 LBUS ERROR xxxx:yyyyyyyy xxxx : Segment selector for which a bus error occurred.
PC172 LBUS ERROR xxxx:yyyyyyyy yyyyyyyy : Offset address where a bus error occurred.
STATUS LED Lj
PC199 ROM PARITY eeeeeeee The parity error occur in PMC system ROM.
STATUS LED Ll eeeeeeee : ROM parity error information.
1434
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
NOTE
The system error on PMCSA1,SA2,SA3,SB,SB2 and SB3
is displayed as a system error on the CNC side.
(Refer to the FANUC Series 16MA Operators Manual
(B61874E) and FANUC Series 16TA Operators Manual
(B61804E).)
1435
M. ALARM MESSAGE LIST APPENDIX B61863E/14
M.4
SYSTEM ALARM
MESSAGES (C
LANGUAGE
FUNCTION FOR
PMCNB/NB2/NB6)
Message STATUS LED Contents and solution
RAM ERROR <a> bbcc xxxx: yyyyyyyy: PC010 The parity error occurs on the debugging RAM of PMC.
a : RAM which generates RAM parity.
B BASIC RAM
O OPTION RAM
S STATIC RAM
bb, cc : RAM PARITY information.
xxxx : Segment selector where system error occurred.
STATUS LED LJ or jL yyyyyyyy : Offset address where system error occurred.
ROM ERROR aaaaaaaa: PC020 The parity error occurs in PMC system ROM.
STATUS LED lL aaaaaaaa : ROM parity information
DIVIDE ERROR xxxx: yyyyyyyy: PC040 Division error occurs such as a divisor is 0 in the division instruction.
xxxx : Segment selector where system error occurred.
STATUS LED lL yyyyyyyy : Offset address where system error occurred.
BUS ERROR xxxx: yyyyyyyy: PC040 The BUS error (access on illegal address).
xxxx : Segment selector where system error occurred.
STATUS LED lL yyyyyyyy : Offset address where system error occurred.
STACK FAULT xxxx: yyyyyyyy: PC040 The stack exception such as the violation of the limit of the stack.
xxxx : Segment selector where system error occurred.
STATUS LED lL yyyyyyyy : Offset address where system error occurred.
GENERAL PROTECTION xxxx: yyyyyyyy: The general protection exception such as segment limit over was
PC040 generated.
xxxx : Segment selector where system error occurred.
STATUS LED lL yyyyyyyy : Offset address where system error occurred.
SLC ERROR aa (cc) : PC050 The communication error occurred in the I/O Link.
aa, cc : I/O Link error information.
This error may occur by the following causes.
1.When I/O UnitMODEL A is used, base1, 2 or 3 is not connected
though allocated.
2.The connection of cable is insufficient.
3.Defects of cable.
4.Defects of DI/DO units (I/O unit, Power Mate etc.)
5.Defects of PMC board (printed circuit board on host side where I/O
Link cable is connected.)
(solution) Investigate the cause of error.
1.Please confirm the allocation data (by EDITMODULE screen)
and compare with the actual connection.
2.Please confirm whether the cable is correctly connected.
If you cannot find the cause with the ways above, it may be the defect
of hardware.
Please investigate a defective place by the following methods.
3.Please confirm the specification of the cable referring to FANUC I/O
UnitMODEL B connecting manuals(B62163E).
4.Exchange the interface module of I/O Unit, the cable and the PMC
board, etc. one by one and, confirm whether this error occurs again.
The communication may fail by the noise etc. when this error still
occurs after replacing all DI/DO units.
STATUS LED JL Please investigate the cause of noise.
j : Off J : On lL : Blinking
1436
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
M.5
SYSTEM ALARM
MESSAGES
(PMCSB5/SB6/NB6)
Message Contents and solution
PC0nn CPU INTERRUPT xxxxxxxx CPU error
nn :Exception code
xxxxxxxx :Address at which an error occurred
PC004 CPU ERR xxxxxxxx:yyyyyyyy A CPU error occurred on the PMC.
PC006 CPU ERR xxxxxxxx:yyyyyyyy xxxxxxxx and yyyyyyyy represent an internal error code.
PC009 CPU ERR xxxxxxxx:yyyyyyyy
PC010 CPU ERR xxxxxxxx:yyyyyyyy This error may be caused by a main board failure.
(solution)
Replace the main board, then check if this error occurs again. If this error
still occurs, contact FANUC with the error status information (system con-
figuration, operation, error occurrence timing, error occurrence frequen-
cy, and so forth).
PC030 RAM PARITY aa:bb A RAM parity error occurred on the PMC.
aa and bb represent an internal error code.
(solution)
Replace the main board, then check if this error occurs again. If this error
still occurs, contact FANUC with the error status information (system con-
figuration, operation, error occurrence timing, error occurrence frequen-
cy, and so forth) and the internal error code above.
PC040 NMI BOC xxxxxxxx A nonmaskable interrupt (NMI) occurred in the PMC control module.
(solution)
(1) Check if the I/O assignment data matches the actual connections of
the I/O devices.
(2) Check if the cables are connected correctly.
(3) Check the cable specifications by referring to the FANUC I/O Unit
MODEL A Connection and Maintenance Manual (B61813E) or
FANUC I/O UnitMODEL B Connection Manual (B62163E).
(4) Replace the interface module, cables, and main board of the I/O Unit,
then check whether this error occurs again.
(5) Check the power line and stability of power for Master and Slave de-
vices.
(6) Check the connection of DO terminal line.
If this error still occurs after replacement of all the devices related to the
I/O Link according to Action (4), the communication error may have been
caused by noise. Attempt to identify the source of the noise.
1437
M. ALARM MESSAGE LIST APPENDIX B61863E/14
(solution)
Contact FANUC with the error status information (system configuration,
operation, error occurrence timing, error occurrence frequency, and so
forth), the internal error code above, and the LED statuses on each
board.
PC070 SUB65 CALL (STACK) A stack error occurred with the ladder functional instruction CALL/CAL-
LU.
(solution)
Check the correspondence between the CALL/CALLU instruction and
the SPE instruction. If the cause of the fault cannot be found, contact FA-
NUC with the error status information and the ladder program.
PC080 SYS EMG xxxxxxxx:yyyyyyyy A system alarm was issued due to other software.
PC081 FL EMG xxxxxxxx:yyyyyyyy
(solution)
Contact FANUC with the error status information (system configuration,
operation, error occurrence timing, error occurrence frequency, and so
forth), the internal error code above, and the LED statuses on each
board.
PC097 PARITY ERR (LADDER) A parity error occurred on the PMC system.
PC098 PARITY ERR (DRAM)
PC099 PARITY ERR (SRAM) This error may be caused by a main board failure.
(solution)
Replace the main board, then check whether this error occurs again. If
this error still occurs, contact FANUC with the error status information
(system configuration, operation, error occurrence timing, error occur-
rence frequency, and so forth).
1438
B61863E/14 APPENDIX M. ALARM MESSAGE LIST
M.6
PMC SYSTEM
ALARM MESSAGES
(PMCSB7)
Alarm number Faulty location/corrective action Contents
PC004 CPU ERR xxxxxxxx:yyyyyyyy 1) Replace the master printed circuit A CPU error occurred in the
PC006 CPU ERR xxxxxxxx:yyyyyyyy board. PMC.xxxxxxxx and yyyyyyyyy are
PC009 CPU ERR xxxxxxxx:yyyyyyyy 2) If the error recurs even after the internal error codes.
PC010 CPU ERR xxxxxxxx:yyyyyyyy replacement, contact FANUC to
PC012 CPU ERR xxxxxxxx:yyyyyyyy report the status (displayed
message, system configuration,
operation, when the error occurs,
occurrence frequency, etc.)
PC030 RAM PARITY aa:bb 1) Replace the master printed circuit A RAM parity error occurred in the
board. PMC.aa and bb are internal error codes.
2) If the error recurs even after the
replacement, contact FANUC to
report the status (displayed
message, system configuration,
operation, when the error occurs,
occurrence frequency, etc.) and the
above internal error codes.
PC050 NMI SLC aa:bb 1) Check that the I/O allocation data A communication error occurred in the
PC050 I/O LINK(CH_) aa:bb aa:bb matches the actual I/O device I/O LINK.
PC050 IOLINK CH_ aaaa connection. aa, bb and cc are internal error codes.If
bbbb:cccc 2) Check that the cable is connected this alarm is generated, probable
properly. causes include the following:
3) Check the cable specifications. 1) Although the base expansion is
4) Replace the I/O device interface assigned when the I/O Unit A is
module, cable, master printed circuit used, the base is not connected.
board, etc. 2) A cable is not connected securely.
3) Cabling is faulty.
4) I/O equipment (I/O unit, Power Mate,
etc.) is faulty.
5) Power failure of Master or Slave
device on I/O Link.
6) Short circuit of DO terminal on I/O
device.
7) The motherboard is faulty.
PC060 FBUS xxxxxxxx:yyyyyyyy 1) Replace the master printed circuit A bus error occurred in the PMC.
PC061 FLR xxxxxxxx:yyyyyyyy board.
2) If the error recurs even after the
replacement, contact FANUC to
report the status (displayed
message, system configuration,
operation, when the error occurs,
occurrence frequency, etc.)
PC070 SUB65 CALL (STACK) Check the correspondence between A stack error occurred in Ladder
the CALL/CALLU and SPE instructions function instruction CALL/CALLU.
PC090 NMI(___) xxxxxxxx:yyyyyyyy 1) Replace the master printed circuit An NMI with an unknown cause
board. occurred in the PMC management
2) If the error recurs even after the software.
replacement, contact FANUC to
report the status (displayed
message, system configuration,
operation, when the error occurs,
occurrence frequency, etc.)
1439
M. ALARM MESSAGE LIST APPENDIX B61863E/14
1440
N. EXAMPLE OF STEP SEQUENCE
B61863E/14 APPENDIX PROGRAMS
I/O Unit
Power Mate #1
Power Mate #2
Power Mate #3
NOTE
The addresses indicate the single addresses, as viewed
from the CNC.
The CNC controls the Power Mate units at the following signal timing.
Ready end #1
(Power Mate to CNC)
Drive start #1
(CNC to Power Mate)
1sec 1sec
Driving #1
(Power Mate to CNC) 1sec
1441
N. EXAMPLE OF STEP SEQUENCE
PROGRAMS APPENDIX B61863E/14
The following flowchart illustrates the interface with the Power Mate
units.
DENx
Finished
The interface with the Power Mate units is changed to the Step Sequence
program.
Dummy Step
finished
1442
N. EXAMPLE OF STEP SEQUENCE
B61863E/14 APPENDIX PROGRAMS
Example 1 The Step sequence program for three sequentially driven Power Mate
units:
Main program
L1
The input signal is set the LED.
Dummy trasition
Drive Power Mate#2
Dummy trasition
Dummy trasition
L1
1443
N. EXAMPLE OF STEP SEQUENCE
PROGRAMS APPENDIX B61863E/14
Example 2 The Step Sequence program for three simultaneously driven Power Mate
units:
Main program
L1
The input signal is set the LED.
Dummy trasition
L1
1444
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
1445
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
L1
condition
Operation finished.
L1
1446
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
Examples
L1
S1
(P10)
P11 P12
S2
(P20)
P21
L1
P10
P11
R9091.1
COMPB 1
30
R10
R9000.0
TRSET
P12
R9091.1
COMPB 1
30
R10
R9000.0
TRSET
P20
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 5
R12
R9091.0
R0.0
ADDB 1 ( )
R10
R9091.1 1
R10
P21
R9091.1
TRSET
1447
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
O.2 The operation is continued while the condition is true after executing the
operation.
DOWHILE
STATEMENT The difference between dowhile and while is that the operation is
executed at least one time.
Format
L1
operation
condition
L1
1448
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
Examples
L1
S1
(P20)
P21
S2
(P10)
P11 P12
L1
P10
P11
R9091.1
COMPB 1
30
R10
R9000.0
TRSET
P12
R9091.1
COMPB 1
30
R10
R9000.0
TRSET
P20
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 5
R12
R9091.0
R0.0
ADDB 1 ( )
R10
R9091.1 1
R10
P21
R9091.1
TRSET
1449
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
O.3 After the initial data is set, the operation is continued while the condition
is true.
FOR STATEMENT
Format
Set the initial data.
L1
operation
condition
L1
1450
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
Examples
S1
(P1)
P2
L1
S2
(P20)
P21
S3
(P10)
P11
P12
L1
P1
R9091.1
NUMEB 1
0
R10
P2
R9091.1
TRSET
P20
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 5
R12
P21
R9091.1
TRSET
P10
R9091.0
R0.0
ADDB 1 ( )
R10
R9091.1 1
R10
P11
R9091.0
COMPB 1
30
R10
R9000.0
TRSET
P21
R9091.0
COMPB 1
30
R10
R9000.0
TRSET
1451
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
O.4 If the condition is true, the operation 1 is executed and if the condition is
false, the operation 2 is executed.
IF ELSE STATEMENT
Format
condition
operation1 operation2
1452
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
Examples
S1
(P10)
P11 P12
S2 S3
(P20) (P22)
P21 P23
P1
0
P1
1
R9091.0
COMPB 1
30
R10
R9000.0
TRSET
P12
R9091.0
COMPB 1
30
R10
R9000.0
TRSET
P20
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 8
R12
P21
R9091.1
TRSET
P22
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 10
R12
P23
R9091.1
TRSET
1453
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
1454
O. STEP SEQUENCE CORRESPONDED
B61863E/14 APPENDIX C LANGUAGE
Examples
S1
(P10)
P1
0
P1
1
R9091.1
COMPB 1
30
R10
R9000.0
TRSET
P12
R9091.0
COMPB 1
40
R10
R9000.0
TRSET
P13
R9091.1
TRSET
P20
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 5
R12
P21
R9091.1
TRSET
P22
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 10
R12
1455
O. STEP SEQUENCE CORRESPONDED
C LANGUAGE APPENDIX B61863E/14
P23
R9091.1
TRSET
P24
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 15
R12
P25
R9091.1
TRSET
1456
P. CHINESE CHARACTER CODE, HIRAGANA
B61863E/14 APPENDIX CODE, AND SPECIAL CODE LIST
1457
P. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B61863E/14
1458
P. CHINESE CHARACTER CODE, HIRAGANA
B61863E/14 APPENDIX CODE, AND SPECIAL CODE LIST
1459
P. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B61863E/14
1460
P. CHINESE CHARACTER CODE, HIRAGANA
B61863E/14 APPENDIX CODE, AND SPECIAL CODE LIST
93BE
1461
P. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B61863E/14
1462
B61863E/14 Index
A C
About connection log of Ethernet, 603, 897 C input/output, 556
About the FS15i PMCNB6 programmer, 498 CALL (conditional subprogram call), 330
Addresses, signal names, comments, and line numbers, 363 Collective monitor function (PMCSB7), 831
ALLOW PMC STOP (PMCSB7: K902.2, PMCSA1: K19.2), 799 Comparison with the function of FS15B (PMCNB/NB2), 650
Compatibility of ladder diagram, 963
Alter, 997
Compatibility with CNC basic software, 1389
Alteration of sequence programs, 524
Compatibility with Series 21MODEL B, 1420
AND, 122
Compatible with Series 0, 1416
AND. NOT, 122
COMPB (comparison between binary data), 218
AND. STK, 125
Component units, 500, 971, 1391
Applicable FANUC ladder editions, 1396
Component units and connections, 499, 970, 1390
Applications, 371 Compress the sequence program, 545
Arbitrary functional instructions, 294 Compressed input by [COMAND] key, 1034
Area managed by the system program, 97 Condense, 1393
Assignment of I/O module addresses, 77 Condense command release of deleted area, 1045
Automatic operation when the power is turned on, 412 Configuration and operation of stepsequence programs, 922
Automatic start of trace setting, 874 Configuration of command, 1042
Automatic tracing function at power on, 431 Confirming the ladder mnemonics, 614
i1
Index B61863E/14
Data input to and output from other devices, 569 Divergence of simultaneous sequence, 928
Data keys and screen scroll key, 978 Dividing display of ladder diagram, 489
Data number, data attribute, data length, data area, 1368 Dowhile statement, 1448
DATA TBL CNTL SCREEN (PMCSB7: K900.7, PMCSA1: DSCHB (binary data search), 227
K17.7), 800 DUMP display on ladder diagram, 481
Data transfer between NB (4047 series) and FANUC LADDER,
1408
Data transfer between NB (4047 series) and NB (4048 series), 1409
Data transfer between NB/NB2 (4048 series) and FANUC LADDER,
E
1408 EDIT ENABLE (PMCSB7: K901.6, PMCSA1: K18.6), 799
DCNV (data conversion), 212 Editing a character string in message data, 542
DCNVB (extended data conversion), 214 Editing character strings of symbol data and comment data, 539
Debugging, 584 Editing character strings of title data, 517
DEC (decode), 167 Editing end, 1004
DECB (binary decoding), 169 Editing for Power MateMODEL D (PMCPA1/PA3), 1388
Delete, 1001 Editing function of ladder diagram, 957
Delete of sequence program, 527 Editing ladder mnemonics, 613
Delete of symbol data and comment, 538 Editing of sequence program (EDIT), 515
Deleting a sequence program, 1028 Editing symbol data and comment at once, 532
Deleting title data, 516 Editing the sequence program (EDIT), 612
Deletion of programs, 1018 Emergency stop signal (*ESP), 1383
Descriptions of displayed items, 580 Enabling automatic debugging at poweron, 588
i2
B61863E/14 Index
END (end of a ladder program), 329 For the FS16 (PMCSC or PMCSC3), 493
End of block step, 932 Forced input/output function, 449
END1 (1st level sequence program end), 157 Forcibly stopping the sequence program, 553
END2 (2nd level sequence program end), 158 Format and details of the control data of the WINDR functional
instruction, 1256
END3 (end of 3rd level sequence) (PMCSC/SC3/SC4/NB/
NB2/NB6/NB7 only), 159 Format and details of the control data of the WINDW functional
instruction, 1309
Ending edit of a sequence program, 1034
Formats and details of control data, 1059
Ending ladder mnemonics editing, 618
FS15i PMCNB6 operating procedure, 413
Entering data on the program check screen (*lowspeed response)
(not available for Power MateD/F, Series 21TA), 1141 FS16iLA assignment, 88
Example of step sequence programs, 1441 Functions for displaying memory areas and debugging the program
(MONIT), 577
Examples of structured programming, 370 Functions of processing, 968
Exclusive control for functional instructions, 943
Execution method, 375
Execution of a sequence program, 551 G
Execution of step sequence, 918
General rules, 937
Execution of Trace, 647
Graphical symbols, 905
Execution of trace, 870
Execution procedure of sequence program, 42
Execution time, 396 H
EXIN (external data input), 283
Help screen, 1004
Expansion of symbol size, 790
HIDE PMC PROGRAM (PMCSB7: K900.0, PMCSA1: K17.0),
Extended ladder instructions, 933 798
How to pick up a ladder diagram net, 750
How to set at NC parameter, 597
FDLIST command file attribute display, 1043 I/O link connecting check screen, 886
Floppy list screen, 773 I/O LinkII parameter setting screen, 446
I/O screen, 757
For MDI Units other than Standard MDI Units (for FS20 PMCSA1
and SA3), 412 I/O screen error messages (PMCNB6), 779
For statement, 1450 I/O signals to CNC, 52
For the FS15 (PMCNB), 493 I/O unit address setting (MODULE), 534
i3
Index B61863E/14
Input/output ladder/PMCparameter by MDI/DPL, 623 Level up of input/output function with memory card, 1401
Input/output method to FANUC FLOPPY CASSETTE (fixed Limitations in SYSTEM P Mate, 1020
4800bit/sec.), 623 Limitations with the SYSTEM P Mate, 984
Input/output method to office programmer (Pg Mate/Mark II) (fixed Limited function, 1420
9600bit/sec.), 623
Line numbers, 364
Input/output of ladder program with PG and floppy cassette/FA
card, 1035 List of window functions, 1056
Inputting a multibyte character (D.CHAR), 543 LOAD key (system program loading key), 976
Insert, 1000 Loading of floppy, 984
Insert of sequence program, 524 Loading the standard ladder (for Power MateD/F PMCPA1 and
PA3), 413
Interlocking, 54
Location search, 1001
Internal relay addresses (R), 95
Logical AND, 309
Interrupt enable/disable/clear, 396
Logical OR, 311
Interrupt processing, 394
Lowspeed response and highspeed response of window function,
Interrupt program, 394 1055, 1251
Interrupttype PMC function, 391
IO GROUP SELECTION (K906.1), 800
M
Memory card list screen, 764
J Message data input, 542
JMP (jump), 204 Message data setting (MESSAGE), 541
JMP Instructions with Label Specification, 380 Method for entering PMC parameters, 664
JMPB (label jump), 334 Migration from the PMCNB/NB2 to the PMCNB6, 1413
JMPC (label jump), 335 Migration from the PMCSA5/SB5/SB6 to the PMCSB7, 1414
JMPE (jump end), 209 Migration from the Series 0 and Series 21B to Series 0i, 1416
Jump, 930 Migration of ladder programs between different models, 1410
Migration of ladder programs from Power MateD/H to Power Mate
iD/H, 1411
Miscellaneous item, 368
K MMC3 R (MMCIII window data read), 315
Keep relay (KEEPRL), 464 MMC3W (MMCIII window data write), 318
Keep relay screen (KEEPRL), 668 MMCWR (reading MMC window data) (other than PMCPA1/PA3),
Key switch signals (Xn, Xn+2), 1383 297
Keyboard of system P series, 975 MMCWW (writing MMC window data) (other than PMCPA1/PA3),
299
Modification procedure, 1377
Modifying the converted sequence program, 1377
L Modifying the ladder mnemonics, 616
Label, 930 Modifying the values of signals by forced input/output, 457
Label addresses (JMPB, JMPC, LBL) (L), 112 Monitor time screen, 955
Ladder debugging function, 589 Monitoring elapsed time, 954
i4
B61863E/14 Index
MOVB (transfer of 1 byte), 301 Override signals (*OV1 to *OV8) and program protect key signal
(KEY), 1383
MOVD (transfer of 4 bytes), 304
MOVE (logical product transfer), 194
Moving a sequence program, 1032
Moving the sequence program, 531
P
Paper command, 1013
MOVN (transfer of an arbitrary number of bytes), 303
Parameter, 1392
MOVOR (data transfer after logical sum), 196
Parameter display on ladder diagram, 482
MOVW (transfer of 2 bytes), 302
Parameter menu, 1386
MUL (multiplication), 247
Parameter screen, 435, 585
MULB (binary multiplication), 249
Parameter setting and display, 987
Multiple data input, 462
Parameter setting screen, 429, 547
PARI (parity check), 210
Password and switching screen, 754
N Password protection, 752
NB/NB2 data compatibility, 1408 PMC address (S ADDRESS), 934
Net editor screen, 846 PMC basic instructions, 114
Nonvolatile memory, 353 PMC basic manu, 631
NOP (no operation), 351 PMC data setting and display (PMCPRM), 662
NOT (logical NOT), 313 PMC data table, 357
Notes, 883 PMC I/O signal display and internal relay display (PMCDGN), 424
Notes on using an MDI keyboard without cursor keys (when using PMC ladder diagram display (PMCLAD), 479
the FS20 PMCMODEL SA1/SA3), 572
PMC menu selection procedure by softkey, 418
NUME (definition of constant), 255
PMC operation for loader control function, 417
NUMEB (definition of binary constants), 256
PMC parameters setting and display (PMCPRM), 460
PMC programmer (CRT/MDI or PDP/MDI) [ladder editing function],
1390
i5
Index B61863E/14
R Reading set data (not available for Power MateD/F, Series 21TA),
1151
R keys (R0 to R3), 977 Reading setting data, 1352
RAM WRITE ENABLE (PMCSB7: K900.4, PMCSA1: K17.4), Reading setting data (*lowspeed response), 1074
800
Reading signals automatically at power on, 439
RD, 118
Reading the absolute position (absolute coordinates) of controlled
RD. NOT, 119 axes, 1094
RD. NOT. STK, 124 Reading the absolute position on a controlled axis, 1264
RD. STK, 123 Reading the acceleration/deceleration delay on controlled axes,
1102, 1268
Reading a character string of the CNC program being executed in the
buffer, 1153 Reading the actual spindle speed, 1139
Reading a custom macro variable (*lowspeed response), 1078 Reading the actual velocity of controlled axes, 1092
Reading a custom macro variable (lowspeed response), 1260 Reading the actual velocity of controlled axes (lowspeed response),
1264
Reading a parameter (*lowspeed response), 1070
Reading the CNC alarm status, 1083, 1356
Reading a parameter (not available for Power MateD/F, Series
21TA), 1150 Reading the CNC alarm status (lowspeed response), 1261
Reading a parameter (setting data) (lowspeed response), 1259 Reading the current program number, 1088
Reading a skip position (stop position of skip operation (G31)) of Reading the current program number (8digit program numbers)
controlled axes, 1098 (not available for Power MateD/F, Series 21TA), 1193
Reading a skip position (stop position of skip operation (G31)) of Reading the current program number (lowspeed response), 1262
controlled axes (lowspeed response), 1267
Reading the current screen number, 1242
Reading a tool offset, 1062 Reading the current sequence number, 1090
Reading a tool offset (lowspeed response), 1256 Reading the current sequence number (lowspeed response, 1263
Reading a workpiece origin offset value, 1258 Reading the estimate disturbance torque data, 1189
Reading a workpiece origin offset value (not supported by the Power Reading the load current (A/D conversion data) for the spindle mo-
MateD or F), 1066 tor, 1293
Reading A/D conversion data, 1111 Reading the machine position (machine coordinates) of controlled
Reading A/D conversion data for the feed motor, 1276 axes, 1096, 1266
Reading actual spindle speeds, 1213 Reading the machining time (lowspeed response), 1292
Reading an estimate disturbance torque data, 1291 Reading the measured point, 1362
Reading the parameter (*lowspeed response), 1345
Reading and writing of nonvolatile memory data, 356
Reading the relative position on a controlled axis, 1155, 1289
Reading and writing the laser command data and laser setting data,
1337 Reading the remaining travel, 1157, 1290
Reading clock data (date and time) (not available for Power MateF), Reading the servo delay for controlled axes, 1100, 1268
1143
Reading the tool life management data (number of tool groups)
Reading clock data (lowspeed response), 1288 (lowspeed response), 1279
Reading CNC status information, 1159 Reading the tool life management data (tool group number) (low
speed response), 1278
Reading CNC system information, 1060
Reading the tool life management data (tool life counter type) (not
Reading detailed alarm information (*lowspeed type), 1245 available for Power MateD/F, Series 21TA), 1165
Reading diagnosis data (*lowspeed response), 1109 Reading the tool offset data according to the specified tool number,
Reading diagnosis data (lowspeed response), 1275 1294
Reading the wire diameter offset, 1341
Reading diagnosis data (not available for Power MateD/F, Series
21TA), 1152 Reading tool lefe management data (cutter compensation number 1)
(lowspeed type), 1297
Reading fine torque sensing data (statistical calculation results), 1217
Reading tool life management data (cutter compensation No. (1):
Reading fine torque sensing data (store data), 1219 tool No.) (not available for Power MateD/F, Series 21TA), 1129
Reading load information of the spindle motor (serial interface), Reading tool life management data (cutter compensation No. (2):
1147 tool order No.) (not available for Power MateD/F, Series 21TA),
Reading machining distances, 1361 1131
Reading modal data, 1104 Reading tool life management data (cutter compensation No.1) (low
speed response), 1284
Reading modal data (lowspeed response), 1269
Reading tool life management data (cutter compensation No.2) (low
Reading model data, 1357 speed response), 1285
Reading of the comment, 1336 Reading tool life management data (number of tool groups) (not
available for Power MateD/F, Series 21TA), 1117
Reading of tool setting data, 1366
Reading tool life management data (number of tools) (lowspeed
Reading real parameters (lowspeed type), 1299 response), 1279
i6
B61863E/14 Index
Reading tool life management data (number of tools) (not available RST, 128
for Power MateD/F, Series 21TA), 1119
Reading tool life management data (tool diameter offset number 1)
(not available for Power MateD/F, Series 21TA), 1199
Reading tool life management data (tool group No.) (not available S
for Power MateD/F, Series 21TA), 1115
Scratch command deletion of files, 1045
Reading tool life management data (tool group number) (not avail-
able for Power MateD/F, Series 21TA), 1195 Screen configuration, 833, 840, 846
Reading tool life management data (tool group numbers) (lowspeed Screen display, 454
type), 1295 Screen for displaying general settings (GENERAL), 673
Reading tool life management data (tool information (1) : tool No.) Screen for displaying setting data related to C language function, 677
(not available for Power MateD/F, Series 21TA), 1133
Screen for displaying the setting data related to editing and debug-
Reading tool life management data (tool information (2): tool order ging, 674
No.) (not available for Power MateD/F, Series 21TA), 1135
Screen for displaying traced data, 588
Reading tool life management data (tool information 1) (lowspeed
response), 1286 Screen for setting/displaying online monitor parameters (ONLINE),
675
Reading tool life management data (tool information 1) (lowspeed
type), 1298 Screen of ladder debugging function, 589
Reading tool life management data (tool information 1) (not avail- Screen operation for PMCSA1, 788
able for Power MateD/F, Series 21TA), 1201
Screen operation for PMCSA1/SB7, 787
Reading tool life management data (tool information 2) (lowspeed
response), 1287 Screen operation for PMCSB7, 789
Reading tool life management data (tool length compensation No. Screen operations, 834, 841, 847, 856
(1): tool No.) (not available for Power MateD/F, Series 21TA), Screen Structure, 806
1125
Screen Structures, 822
Reading tool life management data (tool length compensation No.
(2): tool order No.) (not available for Power MateD/F, Series Search of sequence program, 528
21TA), 1127
Search of specified relay coil points in ladder diagram, 486
Reading tool life management data (tool length compensation No.1)
(lowspeed response), 1282 Searching a sequence program, 1029
Reading tool life management data (tool length compensation num- Searching for an address (SRCH), 542
ber 1) (lowspeed type), 1296 Selectable I/O link assignment function (PMCSB7), 875
Reading tool life management data (tool length offset number 1) (not Selecting the PMC programmer menu, 610
available for Power MateD/F, Series 21TA), 1197
Selection of program menu by soft keys, 1020
Reading tool life management data (tool life counter type) (low
speed response), 1281 Selection of programmer menus by softkeys, 506
Reading tool life management data (tool life counter) (lowspeed Sequence program, 41
response), 1280
Sequence program check and write into ROM (steps 8 to 11), 39
Reading tool life management data (tool life counter) (not available
for Power MateD/F, Series 21TA), 1123 Sequence program copy function, 575
Reading tool life management data (tool life) (lowspeed response), Sequence program creating procedure, 3
1280 Sequence program entry (steps 6, 7), 39
Reading tool life management data (tool life) (not available for Pow- Sequence program examples, 400
er MateD/F, Series 21TA), 1121
Sequence program generation (LADDER), 519
Reading tool life management data (tool No.) (not available for Pow-
er MateD/F, Series 21TA), 1137 Sequence program input, 520, 1022
Reading tool life management data (tool number) (lowspeed re- Sequence program memory capacity, 57
sponse), 1287
Sequence program processing time, 55
Reading tool setting data by specifying tool number, 1372
Sequence program structuring, 48, 369
Reading value of the Pcode macro variable (*lowspeed response),
1161 SET, 126
Registering the tool life management data (tool group) (*lowspeed Set items, 557
response) (not available for Power MateD/F, Series 21TA), 1167 Setting, 393
Remove command file copy, 1046 Setting and display screen, 463
Rename command file attribute change, 1044 Setting and displaying system parameters (SYSTEM PARAM), 611
Repetitive operation, 43 Setting function, 791
Respomse time, 395 Setting I/O commands, 1035
Restrictions, 385, 576 Setting menu (SETING), 672
ROM format program, 1007, 1014, 1017 Setting of Ethernet parameters, 599, 891
ROT (rotation control), 183 Setting of I/O device, 979
ROTB (binary rotation control), 186 Setting of online connection, 595, 889
i7
Index B61863E/14
Setting the transfer speed ([SPEED] soft key), 570 Structure of software key in PMC, 788, 789
SPCNT (spindle control), 321 System alarm messages (C language function for PMCNB/
NB2/NB6), 1436
SPE (end of a subprogram), 333
System alarm messages (PMCSB5/SB6/NB6), 1437
Special uses of the R3 key, 1019
System alarm messages (PMCSC), 1434
Specification, 936 System diagram of soft key, 1395
Specification and display of system parameters (SYSPRM), 1393 System floppy, 984
Specification of PMCs, 5 System parameter (PMCSB7), 884
Specification of step sequence, 935
Specifications, 373, 381, 434, 584
Specifications of password, 753 T
Specifying addresses, 1386
Terminology, 909
Specifying and displaying system parameters (SYSPRM), 508
The value of functional instruction parameter, 483
Specifying and displaying title data (TITLE), 516 Time screen, 953
Specifying the number of the program for I/O Link, 1227 Timer addresses (T), 110
Start and stop of a sequence program, 552 Timer screen, 953
Starting and stopping sequence programs, 783 Timer screen (TIMER), 463, 666
Starting and stopping the online debugging function, 624 Timer set time address, 165
Starting and stopping the sequence program (RUN/STOP), 619 Timer, counter, keep relay, nonvolatile memory control, data table,
Starting ladder mnemonics editing, 613 354
Title data display (TITLE), 636
Starting online communication by offline programmer (Ethernet
connection), 600 Title data editor screen, 637
Starting or stopping the trace function, 430 TMR (timer), 160
Starting the sequence program, 553 TMRB (fixed timer), 162
Step, 923 TMRC (timer), 164
Step operation [STEP], 591 Trace function (TRACE), 429
i8
B61863E/14 Index
Trace screen, 431, 640 Writing the tool life management data (cutter compensation number
2), 1318
Transfer between data area and nonvolatile memory, 1332
Writing the tool life management data (tool condition (1) : tool num-
Transfer to and from a FANUC FD Cassette, 559 ber) (*lowspeed response) (not available for Power MateD/F,
Series 21TA), 1183
Transfer to and from a FANUC LADDER, 559
Writing the tool life management data (tool group number), 1315
Transfer to and from a ROM WRITER, 571
Writing the tool life management data (tool information 1), 1319
Transition, 926
Writing the tool life management data (tool information 2), 1319
Writing the tool life management data (tool length compensation
number 1), 1317
U Writing the tool life management data (tool length compensation
number 2), 1317
User PMC Screen (PMCMDI), 492
Writing the tool life management data (tool length offset number (1) :
tool number) (*lowspeed response) (not available for Power
MateD/F, Series 21TA), 1175
Writing the tool life management data (tool length offset number (2) :
W tool operation sequence number) (*lowspeed response) (not
available for Power MateD/F, Series 21TA), 1177
What is a sequence program?, 35 Writing the tool life management data (tool life counter type), 1316
While statement, 1446 Writing the tool life management data (tool life counter type) (*low
Window function description (FS16PA), 1365 speed response) (not available for Power MateD/F, Series
21TA), 1173
Window function description (FS16W), 1340 Writing the tool life management data (tool life counter), 1316
Window function description (FS16/16iLA), 1330 Writing the tool life management data (tool life counter) (*low
Window function description (PMCNB/NB2/NB6), 1249 speed response) (not available for Power MateD/F, Series
21TA), 1171
Window function description (PMC
PA1/PA3/SA1/SA2/SA3/SA5/SB/SB2/SB3/SB4/SB5/SB6/SC/ Writing the tool life management data (tool life), 1315
SC3/SC4), 1054 Writing the tool life management data (tool life) (*lowspeed re-
sponse) (not available for Power MateD/F, Series 21TA), 1169
WINDR (reading CNC window data), 288
Writing the tool life management data (tool number), 1320
WINDW (writing CNC window data), 291
Writing the tool life management data (tool number) (*lowspeed
Writing (registering) tool life management data (tool group number) response) (not available for Power MateD/F, Series 21TA), 1187
(*lowspeed response) (not available for Power MateD/F, Series
21TA), 1203 Writing the tool management data (tool condition (2) : tool operation
sequence number) (*lowspeed response) (not available for Power
Writing a custom macro variable, 1312 MateD/F, Series 21TA), 1185
Writing a custom macro variable (*lowspeed response), 1081 Writing the tool offset data according to the specified tool number,
1321
Writing a data on the program check screen, 1313
Writing the torque limit override, 1314
Writing a parameter (*lowspeed response), 1072
Writing the wire diameter offset (*lowspeed response), 1343
Writing a parameter (setting data), 1311
Writing tool life management data (cutter compemsation number 1),
Writing a tool offset (*Lowspeed response), 1064 1327
Writing a tool offset data, 1310 Writing tool life management data (tool group numbers), 1325
Writing a workpiece origin offset value (*lowspeed response) (not Writing tool life management data (tool information 1), 1328
supported by the Power MateD or F), 1068
Writing tool life management data (tool information 1) (*lowspeed
Writing of tool setting data (lowspeed response), 1370 response) (not available for Power MateD/F, Series 210TA), 1210
Writing real parameters (lowspeed type), 1329 Writing tool life management data (tool length compensation number
1), 1326
Writing setting data (*lowspeed response), 1076
Writing tool life management data (tool length offset number 1)
Writing setting data (lowspeed type), 1353 (*lowspeed response) (not available for Power MateD/F, Series
21TA), 1206
Writing the feedrate, 1324
Writing tool life management data (tool radius offset number 1)
Writing the measured point (*lowspeed response), 1364 (*lowspeed response) (not available for Power MateD/F, Series
21TA), 1208
Writing the parameter (*lowspeed response), 1347
Writing value of the Pcode macro variable (*lowspeed response),
Writing the superposition move command, 1322 1163
Writing the tool life management data (cutter compensation number Writing, reading, and comparing sequence programs and PMC pa-
(1) : tool number) (*lowspeed response) (not available for Power rameters, 756
MateD/F, Series 21TA), 1179
Writing, reading, and verifying the sequence program and PMC
Writing the tool life management data (cutter compensation number parameter data, 554
(2) : tool operation sequence number) (*lowspeed response) (not
available for Power MateD/F, Series 21TA), 1181 WRT, 120
Writing the tool life management data (cutter compensation number WRT. NOT, 121
1), 1318
i9
Index B61863E/14
X
XMOV (indexed data transfer), 229
XMOVB (binary index modifier data transfer), 232
i10
Revision Record
FANUC PMCMODEL PA1/PA3/SA1/SA2/SA3/SA5/SB/SB2/SB3/SB4/SB5/SB6/SC/SC3/SC4/NB/NB2/NB6
LADDER LANGUAGE PROGRAMMING MANUAL (B61863E)
Addition of PMCMODEL
04 Aug.,93 11 Nov., 98 Addition of Power Mate i
PA1/PA3/RA3/RB3/RC3/NB.
Printed in Japan