0% found this document useful (0 votes)
28 views970 pages

GE Fanuc Automation: Computer Numerical Control Products

The GE Fanuc Automation programming manual provides guidelines for generating ladder sequence programs for various PMC models. It outlines the operation methods for CRT/MDI and SYSTEM P series, detailing specific models and their corresponding CNC applications. Additionally, the manual includes references to other essential manuals for sequence programming requirements.

Uploaded by

Ace Rimmer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views970 pages

GE Fanuc Automation: Computer Numerical Control Products

The GE Fanuc Automation programming manual provides guidelines for generating ladder sequence programs for various PMC models. It outlines the operation methods for CRT/MDI and SYSTEM P series, detailing specific models and their corresponding CNC applications. Additionally, the manual includes references to other essential manuals for sequence programming requirements.

Uploaded by

Ace Rimmer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 970

GE Fanuc Automation

Computer Numerical Control Products

PMC Model PA1/PA3/RA1/RA2/RA3/


RB/RB2/RB3/RB4/RB5/RB6/
RC/RC3/RC4/NB/NB2 Ladder Language

Programming Manual

GFZ-61863E/09 March 1996


INTRODUCTION
This programming manual describes the method of generating
ladder sequence programs for PMC.
It also describes the operation methods of CRT/MDI and
SYSTEM P series for sequence programming.
The models covered by this manual, and their abbreviations are:

Product name Abbreviation CNC for


FANUC PMC-MODEL PA1 PMC-PA1 FANUC Power Mate-MODEL D
FANUC Series 21-MODEL A

FANUC PMC-MODEL PA3 PMC-PA3 FANUC Power Mate-MODEL D/F/H


FANUC Series 21-MODEL A

FANUC PMC-MODEL RA1 PMC-RA1 FANUC Series 18-MODEL A/B


FANUC Series 20
FANUC Series 21-MODEL B
loader control function (note)

FANUC PMC-MODEL RA2 PMC-RA2 FANUC Series 18-MODEL A

FANUC PMC-MODEL RA3 PMC-RA3 FANUC Series 18-MODEL A


FANUC Series 20
FANUC Series 21-MODEL B

FANUC PMC-MODEL RB PMC-RB FANUC Series 16-MODEL A

FANUC PMC-MODEL RB2 PMC-RB2

FANUC PMC-MODEL RB3 PMC-RB3 FANUC Series 16-MODEL A/B


FANUC Series 18-MODEL B

FANUC PMC-MODEL RB4 PMC-RB4 FANUC Series 16-MODEL B


FANUC Series 18-MODEL B

FANUC PMC-MODEL RB5 PMC-RB5 FANUC Series 16-MODEL C


FANUC Series 18-MODEL C
FANUC PMC-MODEL RB6 PMC-RB6

FANUC PMC-MODEL RC PMC-RC FANUC Series 16-MODEL A

FANUC PMC-MODEL RC3 PMC-RC3 FANUC Series 16-MODEL A/B/C


FANUC Series 18-MODEL B/C

FANUC PMC-MODEL RC4 PMC-RC4 FANUC Series 16-MODEL B/C


FANUC Series 18-MODEL B/C

FANUC PMC-MODEL NB PMC-NB FANUC Series 15-MODEL B

FANUC PMC-MODEL NB2 PMC-NB2

Note
PMC–RA1 is applied to CNC with the loader control function.
CNC with the loader control function is as follows.
FANUC Series 16–MODEL A/B/C
FANUC Series 21–MODEL B
However, it does not include all items required for sequence
programming. For those required for sequence programming
refer to the following manuals.

Name of manual Reference items Application


FANUC Power Mate-MODEL D/F Interface between PMC and CNC PMC-PA1
CONNECTION MAINTENANCE MANUAL (B-62095E) PMC-PA3
FANUC Power Mate-MODEL H Interface between PMC and CNC PMC-PA3
CONNECTION MANUAL (B–62683EN)
FANUC Series 16/18 Interface between PMC and CNC PMC-RA1
CONNECTION MANUAL (B-61803E) PMC-RA2
PMC-RA3
PMC-RB
PMC-RB2
PMC-RB3
PMC-RC
PMC-RC3
FANUC Series 16/18/160/180-MODEL B Interface between PMC and CNC PMC-RB3
CONNECTION MANUAL (FUNCTION) (B-62443E-1) PMC-RB4
PMC-RC3
PMC-RC4
FANUC Series 16/18/160/180 MODEL C Interface between PMC and CNC PMC-RB5
CONNECTION MANUAL (FUNCTION) (B-62753EN-1) PMC-RB6
PMC-RC3
PMC-RC4
FANUC Series 20–FA/TA CONNECTION Interface between PMC and CNC PMC-RA1
MAINTENANCE MANUAL (B–62173E) PMC-RA3
FANUC Series 21–TB CONNECTION MAINTENANCE Interface between PMC and CNC PMC-RA1
MANUAL (B–62533E) PMC-RA3
FANUC Series 21/210–MB CONNECTION
MAINTENANCE MANUAL (B–62703EN–1)
FANUC Series 15-MODEL B Interface between PMC and CNC PMC-NB
BMI INTERFACE PMC-NB2
CONNECTION MANUAL (B-62073E-1)
FANUC PMC-MODEL RC/RC3/RC4/NB C language programming PMC-RC
C LANGUAGE PROGRAMMING MANUAL PMC-RC3
(B-61863E-1) PMC-RC4
PMC-NB
PMC-NB2

The models covered for reference by this manual, and their


abbreviations are:

Product name Abbreviation CNC for


FANUC PMC-MODEL P PMC-P FANUC Power Mate-MODEL C

FANUC PMC-MODEL NA PMC-NA FANUC Series 15-MODEL B


B–61863E/09 Table of contents
BOOK 1:
I. PMC SEQUENCE PROGRAM
1. SEQUENCE PROGRAM CREATING PROCEDURE . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 SPECIFICATION OF PMCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 SUMMARY OF SPECIFICATION OF LADDER PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3 WHAT IS A SEQUENCE PROGRAM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.4 CREATION OF INTERFACE SPECIFICATIONS (STEPS 1 TO 3) . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.5 CREATION OF LADDER DIAGRAM (STEP 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.6 CODING (STEP 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.7 SEQUENCE PROGRAM ENTRY (STEPS 6, 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.8 SEQUENCE PROGRAM CHECK AND WRITE INTO ROM (STEPS 8 TO 11) . . . . . . . . . . . . . . . 20
1.9 STORAGE AND CONTROL OF SEQUENCE PROGRAM (STEPS 12 TO 14) . . . . . . . . . . . . . . . 21

2. SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.1 EXECUTION PROCEDURE OF SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2 REPETITIVE OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.3 PRIORITY OF EXECUTION (1ST LEVEL, 2ND LEVEL AND 3RD LEVEL) . . . . . . . . . . . . . . . 25
2.4 SEQUENCE PROGRAM STRUCTURING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.5 PROCESSING I/O SIGNALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.5.1 Input signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.5.2 Output signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.5.3 I/O signals to CNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.5.4 Difference of status of signals between 1st level and 2nd level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.6 INTERLOCKING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.7 SEQUENCE PROGRAM PROCESSING TIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.8 SEQUENCE PROGRAM MEMORY CAPACITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

3. ADDRESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.1 ADDRESSES BETWEEN PMC AND CNC (PMC$NC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.2 ADDRESSES BETWEEN PMC AND MACHINE TOOL (PMC$MT) . . . . . . . . . . . . . . . . . . . . . . . 48
3.2.1 Addresses between PMC and machine tool for PMC-RB/RC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.2.2 Assignment of I/O module addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
3.2.3 I/O link connection unit assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.2.4 I/O unit model B assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.2.5 Power Mate–MODEL D/H assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.3 INTERNAL RELAY ADDRESSES (R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.3.1 Area managed by the system program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.4 ADDRESSES FOR MESSAGE SELECTION DISPLAYED ON CRT (A) . . . . . . . . . . . . . . . . . . . . 64
3.5 ADDRESS OF COUNTER (C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.6 ADDRESS OF KEEP RELAY AND NONVOLATILE MEMORY CONTROL (K) . . . . . . . . . . . . . 68
3.7 ADDRESS OF DATA TABLE (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
3.8 TIMER ADDRESSES (T) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
3.9 LABEL ADDRESSES (JMPB, JMPC, LBL) (L) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3.10 SUBPROGRAM NUMBERS (CALL, CALLU, SP) (P) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

c–1
Table of contents B–61863E/09

4. PMC BASIC INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75


4.1 DETAILS OF BASIC INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4.1.1 RD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.1.2 RD . NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4.1.3 WRT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4.1.4 WRT. NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
4.1.5 AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.1.6 AND. NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.1.7 OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.1.8 OR. NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.1.9 RD. STK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
4.1.10 RD. NOT. STK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.1.11 AND. STK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4.1.12 OR. STK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
4.1.13 SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
4.1.14 RST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

5. FUNCTIONAL INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5.1 END1 (1ST LEVEL SEQUENCE PROGRAM END) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.2 END2 (2ND LEVEL SEQUENCE PROGRAM END) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
5.3 END3 (END OF 3RD LEVEL SEQUENCE) (PMC-RC/RC3/RC4/NB/NB2 ONLY) . . . . . . . . . . . . 111
5.4 TMR (TIMER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
5.5 TMRB (FIXED TIMER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
5.6 TMRC (TIMER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
5.7 DEC (DECODE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
5.8 DECB (BINARY DECODING) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
5.9 CTR (COUNTER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
5.10 CTRC (COUNTER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
5.11 ROT (ROTATION CONTROL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
5.12 ROTB (BINARY ROTATION CONTROL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
5.13 COD (CODE CONVERSION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
5.14 CODB (BINARY CODE CONVERSION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
5.15 MOVE (LOGICAL PRODUCT TRANSFER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
5.16 MOVOR (DATA TRANSFER AFTER LOGICAL SUM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.17 COM (COMMON LINE CONTROL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
5.18 COME (COMMON LINE CONTROL END) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
5.19 JMP (JUMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
5.20 JMPE (JUMP END) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
5.21 PARI (PARITY CHECK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
5.22 DCNV (DATA CONVERSION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
5.23 DCNVB (EXTENDED DATA CONVERSION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
5.24 COMP (COMPARISON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
5.25 COMPB (COMPARISON BETWEEN BINARY DATA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
5.26 COIN (COINCIDENCE CHECK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
5.27 SFT (SHIFT REGISTER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
5.28 DSCH (DATA SEARCH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
5.29 DSCHB (BINARY DATA SEARCH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

c–2
B–61863E/09    

5.30 XMOV (INDEXED DATA TRANSFER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175


5.31 XMOVB (BINARY INDEX MODIFIER DATA TRANSFER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
5.32 ADD (ADDITION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
5.33 ADDB (BINARY ADDITION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
5.34 SUB (SUBTRACTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
5.35 SUBB (BINARY SUBTRACTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
5.36 MUL (MULTIPLICATION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
5.37 MULB (BINARY MULTIPLICATION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5.38 DIV (DIVISION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
5.39 DIVB (BINARY DIVISION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
5.40 NUME (DEFINITION OF CONSTANT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
5.41 NUMEB (DEFINITION OF BINARY CONSTANTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
5.42 DISP(MESSAGE DISPLAY) (PMC–RB/RB2/RB3/ RB4/RB5/RB6/RC/ RC3/RC4 ONLY) . . . . . . 198
5.43 DISPB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
5.44 EXIN (EXTERNAL DATA INPUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
5.45 WINDR (READING CNC WINDOW DATA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
5.46 WINDOW (WRITING CNC WINDOW DATA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
5.47 ARBITRARY FUNCTIONAL INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
5.48 MMCWR (READING MMC WINDOW DATA) (OTHER THAN PMC–PA1/PA3) . . . . . . . . . . . . . 231
5.49 MMCWW (WRITING MMC WINDOW DATA) (OTHER THAN PMC–PA1/PA3) . . . . . . . . . . . . 233
5.50 MOVB (TRANSFER OF 1 BYTE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
5.51 MOVW (TRANSFER OF 2 BYTES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
5.52 MOVN (TRANSFER OF AN ARBITRARY NUMBER OF BYTES) . . . . . . . . . . . . . . . . . . . . . . . . 237
5.53 DIFU (RISING EDGE DETECTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
5.54 DIFD (FALLING EDGE DETECTION) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
5.55 EOR (EXCLUSIVE OR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
5.56 LOGICAL AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
5.57 LOGICAL OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
5.58 NOT (LOGICAL NOT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
5.59 MMC3 R (MMC-III WINDOW DATA READ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
5.60 MMC3W (MMC-III WINDOW DATA WRITE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
5.61 SPCNT (SPINDLE CONTROL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
5.62 END (END OF A LADDER PROGRAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
5.63 CALL (CONDITIONAL SUBPROGRAM CALL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
5.64 CALLU (UNCONDITIONAL SUBPROGRAM CALL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
5.65 SP (SUBPROGRAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
5.66 SPE (END OF A SUBPROGRAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
5.67 JMPB (LABEL JUMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
5.68 JMPC (LABEL JUMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
5.69 LBL (LABEL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
5.70 AXCTL (AXIS CONTROL BY PMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
5.71 PSGNL (POSITION SIGNAL OUTPUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
5.72 PSGN2 (POSITION SIGNAL OUTPUT 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276

c–3
Table of contents B–61863E/09

6. NONVOLATILE MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278


6.1 TIMER, COUNTER, KEEP RELAY, NONVOLATILE MEMORY CONTROL,
DATA TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
6.2 READING AND WRITING OF NONVOLATILE MEMORY DATA . . . . . . . . . . . . . . . . . . . . . . . . 280
6.3 PMC DATA TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

7. LADDER DIAGRAM FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286


7.1 ADDRESSES, SIGNAL NAMES, COMMENTS, AND LINE NUMBERS . . . . . . . . . . . . . . . . . . . 287
7.1.1 Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
7.1.2 Signal names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
7.1.3 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
7.1.4 Line numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
7.2 SYMBOLS USED IN THE LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
7.3 LADDER DIAGRAM FORMAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
7.4 INFINITE NUMBER OF RELAY CONTACTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

8. MISCELLANEOUS ITEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

9. SEQUENCE PROGRAM STRUCTURING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293


9.1 EXAMPLES OF STRUCTURED PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
9.1.1 Implementation techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
9.1.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
9.1.3 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
9.2 SUBPROGRAMMING AND NESTING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
9.2.1 Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
9.2.2 Execution method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
9.2.3 Creating a program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
9.3 NOTES FOR SUBROUTINES WHEN YOU USE SUBROUTINES . . . . . . . . . . . . . . . . . . . . . . . . 302

10.JMP INSTRUCTIONS WITH LABEL SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . 304


10.1 SPECIFICATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
10.2 RESTRICTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308

II. PMC OPERATION (CRT/MDI)


1. GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
1.1 FOR MDI UNITS OTHER THAN STANDARD MDI UNITS (FOR FS20 PMC-RA1 AND RA3) . 324
1.2 AUTOMATIC OPERATION WHEN THE POWER IS TURNED ON . . . . . . . . . . . . . . . . . . . . . . . 324
1.3 CLEARING THE SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
1.4 LOADING THE STANDARD LADDER (FOR POWER MATE –D/F PMC–PA1 AND PA3) . . . . . 325
1.5 LADDER PASSWORD FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
1.6 PMC OPERATION FOR LOADER CONTOROL FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328

2. PMC MENU SELECTION PROCEDURE BY SOFTKEY . . . . . . . . . . . . . . . . . . . . . 329

c–4
B–61863E/09    

3. PMC I/O SIGNAL DISPLAY AND INTERNAL RELAY DISPLAY (PMCDGN) . . . 335
3.1 DISPLAYING TITLE DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
3.2 DISPLAY OF SIGNAL STATUS (STATUS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
3.3 ALARM SCREEN (ALARM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
3.4 TRACE FUNCTION (TRACE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
3.4.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
3.4.2 Parameter setting screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
3.4.3 Starting or stopping the trace function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
3.4.4 Trace screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
3.4.5 Automatic tracing function at power on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
3.5 DISPLAYING THE CONTENTS OF MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
3.5.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
3.5.2 Function for storing data in memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
3.6 FUNCTION FOR DISPLAYING SIGNAL WAVEFORMS (ANALYS) . . . . . . . . . . . . . . . . . . . . . . 345
3.6.1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
3.6.2 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
3.6.3 Parameter screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
3.6.4 Signal diagnosis screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
3.6.5 Reading signals automatically at power on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
3.7 DISPLAYING THE RUNNING STATE OF A USER TASK (USRDGN) . . . . . . . . . . . . . . . . . . . . . 351
3.8 DISPLAYING AND SETTING THE CONFIGURATION STATUS OF I/O DEVICES(IOCHK) . . 353
3.8.1 I/O Link Connecting Check Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354
3.8.2 I/O Link–II Parameter Setting Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

4. PMC PARAMETERS SETTING AND DISPLAY (PMCPRM) . . . . . . . . . . . . . . . . . 358


4.1 OUTLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
4.2 INPUT PMC PARAMETERS FROM MDI PANEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
4.2.1 Multiple data input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
4.3 SETTING AND DISPLAY SCREEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
4.3.1 Timer screen (TIMER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360
4.3.2 Counter screen (COUNTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
4.3.3 Keep relay (KEEPRL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
4.3.4 Data table (DATA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
4.4 SETTING SCREEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
4.5 NOTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373

5. PMC LADDER DIAGRAM DISPLAY (PMCLAD) . . . . . . . . . . . . . . . . . . . . . . . . . . . 374


5.1 LADDER DIAGRAM DISPLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
5.2 DUMP DISPLAY ON LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
5.3 PARAMETER DISPLAY ON LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
5.3.1 The value of functional instruction parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
5.4 SYMBOL AND COMMENT DISPLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
5.5 SEARCH OF SPECIFIED RELAY COIL POINTS IN LADDER DIAGRAM . . . . . . . . . . . . . . . . . 381
5.6 STOP OF LADDER DIAGRAM DISPLAY BY TRIGGER OF SIGNAL . . . . . . . . . . . . . . . . . . . . . 382
5.7 DIVIDING DISPLAY OF LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
5.8 ON–LINE EDIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

c–5
Table of contents B–61863E/09

6. USER PMC SCREEN (PCMDI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386


6.1 FOR THE FS16 (PMC-RC OR PMC-RC3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
6.2 FOR THE FS15 (PMC-NB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386

III. PMC PROGRAMMER (CRT/MDI)


1. GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389

2. COMPONENT UNITS AND CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390


2.1 COMPONENT UNITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
2.2 CONNECTING COMPONENT UNITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396

3. SELECTION OF PROGRAMMER MENUS BY SOFTKEYS . . . . . . . . . . . . . . . . . 397

4. SPECIFYING AND DISPLAYING SYSTEM PARAMETERS (SYSPRM) . . . . . . . 399

5. EDITING OF SEQUENCE PROGRAM (EDIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403


5.1 SPECIFYING AND DISPLAYING TITLE DATA (TITLE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
5.1.1 Entering title data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
5.1.2 Deleting title data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
5.1.3 Editing character strings of title data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
5.2 SEQUENCE PROGRAM GENERATION (LADDER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
5.2.1 Sequence program input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
5.2.2 Alteration of sequence programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
5.2.3 Insert of sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
5.2.4 Delete of sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
5.2.5 Search of sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
5.2.6 Copying the sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
5.2.7 Moving the sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
5.2.8 Editing symbol data and comment at once . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
5.2.9 Address change of sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
5.3 I/O UNIT ADDRESS SETTING (MODULE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
5.4 SYMBOL DATA SETTING (SYMBOL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
5.4.1 Symbol data and comment input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
5.4.2 Symbol data search (SRCH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
5.4.3 Delete of symbol data and comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
5.4.4 Editing character strings of symbol data and comment data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
5.4.5 Function for editing symbol data and comment data at one time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
5.4.6 Function of copying symbol and comment data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
5.5 MESSAGE DATA SETTING (MESSAGE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
5.5.1 Message data input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
5.5.2 Searching for an address (SRCH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
5.5.3 Editing a character string in message data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
5.5.4 Input with a katakana identification code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
5.5.5 Copying message data (COPY) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
5.5.6 Inputting a multi-byte character (D.CHAR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
5.5.7 Displaying input code (DSPMOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430

c–6
B–61863E/09    

5.6 CLEARING THE SEQUENCE PROGRAM AND CONDENSATION OF


THE SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
5.6.1 Clearing the Sequence Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
5.6.2 Compress the sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
5.6.3 Clearing the PMC Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
5.7 CROSS REFERENCE DISPLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
5.7.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
5.7.2 Parameter setting screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434

6. EXECUTION OF A SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438


6.1 START AND STOP OF A SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
6.2 STARTING THE SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
6.3 FORCIBLY STOPPING THE SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

7. WRITING, READING, AND VERIFYING THE SEQUENCE PROGRAM AND


PMC PARAMETER DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
7.1 OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
7.2 SET ITEMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
7.3 OPERATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
7.3.1 Transfer to and from a FAPT LADDER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
7.3.2 Transfer to and from a FANUC FD cassette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
7.3.3 Storage to flash EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
7.3.4 Storage to a memory card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
7.3.5 Data input to and output from other devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454
7.3.6 Setting the transfer speed ([SPEED] soft key) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
7.3.7 Transfer to and from a ROM WRITER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
7.3.8 Notes on using an MDI keyboard without cursor keys
(when using the FS20 PMC–MODEL RA1/RA3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
7.4 I/O ERROR MESSAGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
7.5 SEQUENCE PROGRAM COPY FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
7.5.1 Copy title data [CPYTTL] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
7.5.2 Copy a ladder program [CPYLAD] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
7.5.3 Copy symbol data and comment data [CPYSYM] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
7.5.4 Copy message data [CPYMSG] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
7.5.5 Copy the sequence programs [CPYALL] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
7.5.6 Copy I/O module data [CPYMDL] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
7.6 RESTRICTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461

8. FUNCTIONS FOR DISPLAYING MEMORY AREAS AND


DEBUGGING THE PROGRAM (MONIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
8.1 DISPLAYING THE GDT (GLOBAL DESCRIPTOR TABLE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
8.1.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
8.1.2 Descriptions of displayed items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
8.2 DISPLAYING THE MEMORY ALLOCATION INFORMATION
OF A USER PROGRAM CODED IN C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
8.2.1 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
8.2.2 Displayed items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468

c–7
Table of contents B–61863E/09

8.3 DEBUGGING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469


8.3.1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
8.3.2 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
8.3.3 Parameter screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
8.3.4 Screen for displaying traced data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
8.3.5 Enabling automatic debugging at power-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
8.3.6 Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
8.4 LADDER DEBUGGING FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
8.4.1 Screen of Ladder Debugging Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
8.4.2 Soft key menu of Ladder Debugging Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475
8.4.3 Step operation [STEP] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
8.4.4 Stop function of break with condition [BRKCTL] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

9. ERROR MESSAGES (FOR EDIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

10.ERROR MESSAGES (FOR I/O) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

11.PMC PROGRAMMER (DPL/MDI) (ONLY FOR THE POWER MATE–D/F/H) . . 482


11.1 SELECTING THE PMC PROGRAMMER MENU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484
11.2 SETTING AND DISPLAYING SYSTEM PARAMETERS (SYSTEM PARAM) . . . . . . . . . . . . . . . 485
11.3 EDITING THE SEQUENCE PROGRAM (EDIT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
11.4 EDITING LADDER MNEMONICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
11.4.1 Starting ladder mnemonics editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
11.4.2 Confirming the ladder mnemonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
11.4.3 Modifying the ladder mnemonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
11.4.4 Ending ladder mnemonics editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
11.5 STARTING AND STOPPING THE SEQUENCE PROGRAM (RUN/STOP) . . . . . . . . . . . . . . . . . . 491
11.6 ERROR MESSAGES (FOR LADDER MNEMONICS EDITING) . . . . . . . . . . . . . . . . . . . . . . . . . . 492
11.7 STORING THE SEQUENCE PROGRAM INTO FLASH EEPROM (I/O)
(ONLY FOR THE POWER MATE–H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
11.8 ERROR DETAILS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494
11.9 INPUT/OUTPUT LADDER/PMC–PARAMETER BY MDI/DPL . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
11.9.1 Input/Output method to office programmer (P–G Mate/Mark II) (Fixed 9600bit/sec.) . . . . . . . . . . . . 495
11.9.2 Input/Output method to FANUC FLOPPY CASSETE (Fixed 4800bit/sec.) . . . . . . . . . . . . . . . . . . . . 495
11.10 ON–LINE DEBUGGING FUNCTION (ONLY FOR POWER MATE–H) . . . . . . . . . . . . . . . . . . . . . 496
11.10.1 Starting and stopping the on–line debugging function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496
11.11 ERROR LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498

IV. STEP SEQUENCE FUNCTION


1. GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
1.1 STEP SEQUENCE METHOD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
1.2 GRAPHICAL SYMBOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
1.3 PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

c–8
B–61863E/09    

2. STEP SEQUENCE BASICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508


2.1 TERMINOLOGY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509
2.2 EXECUTION OF STEP SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518

3. CONFIGURATION AND OPERATION OF STEP- SEQUENCE PROGRAMS . . 522


3.1 STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
3.2 INITIAL STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
3.3 TRANSITION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
3.4 DIVERGENCE OF SELECTIVE SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
3.5 CONVERGENCE OF SELECTIVE SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
3.6 DIVERGENCE OF SIMULTANEOUS SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
3.7 CONVERGENCE OF SIMULTANEOUS SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
3.8 JUMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530
3.9 LABEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530
3.10 BLOCK STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
3.11 INITIAL BLOCK STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532
3.12 END OF BLOCK STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532

4. EXTENDED LADDER INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533


4.1 FUNCTIONAL INSTRUCTION TRSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534
4.2 PMC ADDRESS (S ADDRESS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534

5. SPECIFICATION OF STEP SEQUENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535


5.1 SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
5.2 GENERAL RULES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
5.3 EXCLUSIVE CONTROL FOR FUNCTIONAL INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . 543

6. CRT/MDI OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546


6.1 DISPLAYING OF SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
6.1.1 Program Configuration List (main screen) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
6.1.2 Step Sequence Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
6.1.3 Ladder Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
6.2 TIMER SCREEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
6.2.1 Time Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
6.2.2 Monitoring Elapsed Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
6.3 MONITOR TIME SCREEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
6.4 EDITING FUNCTION OF LADD ER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
6.4.1 Program Configuration List (main screen) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
6.4.2 Step Sequence Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
6.4.3 Ladder Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560
6.5 CORRESPONDING FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
6.6 COMPATIBILITY OF LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563

c–9
Table of contents B–61863E/09

V. PMC PROGRAMMER (SYSTEM P series)


1. GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567

2. FUNCTIONS OF PROCESSING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

3. COMPONENT UNITS AND CONNECTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570


3.1 COMPONENT UNITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
3.2 CONNECTIONS OF UNITS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
3.3 KEYBOARD OF SYSTEM P SERIES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
3.3.1 LOAD key (system program loading key) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
3.3.2 F keys (F1 to F0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
3.3.3 R keys (R0 to R3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
3.3.4 Data keys and screen scroll key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
3.4 SETTING OF I/O DEVICE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579

4. OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
4.1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
4.2 PREPARATION BEFORE OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
4.2.1 System floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
4.2.2 Limitations with the SYSTEM P Mate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
4.2.3 Loading of floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
4.2.4 FAPT LADDER system floppy loading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
4.2.5 Programmer menu screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
4.2.6 Parameter setting and display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
4.3 PROGRAM EDITING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
4.3.1 Data display and setting (title, symbol, ladder program, comment, message, I/O module) . . . . . . . . . 590
4.3.2 Programming from keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
4.3.3 Alter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
4.3.4 Insert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
4.3.5 Delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
4.3.6 Location search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
4.3.7 Display of ladder diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
4.3.8 Help screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
4.3.9 Editing end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
4.4 INPUT OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
4.4.1 Source program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
4.4.2 ROM format program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
4.5 OUTPUT OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
4.5.1 Source program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
4.5.2 Paper command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613
4.5.3 ROM format program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614
4.6 COLLATION OF PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
4.6.1 Collation of source programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
4.6.2 ROM format program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
4.7 DELETION OF PROGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
4.8 SPECIAL USES OF THE R3 KEY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619

c–10
B–61863E/09    

4.9 DIRECT EDITING BY LADDER DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620


4.9.1 Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
4.9.2 Limitations in SYSTEM P Mate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
4.9.3 Selection of program menu by soft keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
4.9.4 Sequence program input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
4.9.5 Substitution of sequence programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
4.9.6 Additions to sequence programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
4.9.7 Deleting a sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628
4.9.8 Searching a sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
4.9.9 Copying a sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631
4.9.10 Moving a sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
4.9.11 Symbol data display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
4.9.12 Compressed input by [COMAND] key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
4.9.13 Ending edit of a sequence program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
4.10 INPUT/OUTPUT OF LADDER PROGRAM WITH P–G AND FLOPPY CASSETTE/FA CARD . 636
4.10.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
4.10.2 Setting I/O commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
4.10.3 Program input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
4.10.4 Program output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
4.10.5 Program collation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638

5. FILE EDITING FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639


5.1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
5.2 CONFIGURATION OF COMMAND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643
5.3 FDLIST COMMAND — FILE ATTRIBUTE DISPLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
5.4 RENAME COMMAND — FILE ATTRIBUTE CHANGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
5.5 SCRATCH COMMAND — DELETION OF FILES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
5.6 CONDENSE COMMAND — RELEASE OF DELETED AREA . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
5.7 REMOVE COMMAND — FILE COPY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647

c–11
Table of contents B–61863E/09

BOOK 2:
APPENDIX
A. ERROR CODES LIST (FOR FAPT LADDER P–G) . . . . . . . . . . . . . . . . . . . . . . . . . 651

B. WINDOW FUNCTION DESCRIPTION (EXCEPT SERIES 15B PMC–NB/NB2) . . 654


B.1 FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
B.2 LOW–SPEED RESPONSE AND HIGH–SPEED RESPONSE OF WINDOW FUNCTION . . . . . 654
B.3 LIST OF WINDOW FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
B.4 FORMATS AND DETAILS OF CONTROL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
B.4.1 Reading CNC System Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658
B.4.2 Reading a Tool Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
B.4.3 Writing a Tool Offset (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
B.4.4 Reading a Workpiece Origin Offset Value (Not supported by the Power Mate–D or –F) . . . . . . . . . . 664
B.4.5 Writing a Workpiece Origin Offset Value (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
B.4.6 Reading a Parameter (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
B.4.7 Writing a Parameter (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
B.4.8 Reading Setting Data (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 672
B.4.9 Writing Setting Data (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
B.4.10 Reading a Custom Macro Variable (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 676
B.4.11 Writing a Custom Macro Variable (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678
B.4.12 Reading the CNC Alarm Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680
B.4.12.1 Except Power Mate–D and –F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680
B.4.12.2 For Power Mate–D and –F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683
B.4.13 Reading the Current Program Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686
B.4.14 Reading the Current Sequence Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688
B.4.15 Reading the Actual Velocity of Controlled Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690
B.4.16 Reading the Absolute Position (Absolute Coordinates) of Controlled Axes . . . . . . . . . . . . . . . . . . . . 692
B.4.17 Reading the Machine Position (Machine Coordinates) of Controlled Axes . . . . . . . . . . . . . . . . . . . . . 694
B.4.18 Reading a Skip Position (Stop Position of Skip Operation (G31)) of Controlled Axes . . . . . . . . . . . . 696
B.4.19 Reading the Servo Delay for Controlled Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 698
B.4.20 Reading the Acceleration/ Deceleration Delay on Controlled Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 700
B.4.21 Reading Modal Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702
B.4.22 Reading Diagnosis Data (:Low–Speed Response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707
B.4.23 Reading A/D Conversion Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709
B.4.24 Reading Tool Life Management Data (Tool Group No.) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 712
B.4.25 Reading Tool Life Management Data (Number of Tool Groups) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 714
B.4.26 Reading Tool Life Management Data (Number of Tools) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716
B.4.27 Reading Tool Life Management Data (Tool Life) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718
B.4.28 Reading Tool Life Management Data (Tool Life Counter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 720
B.4.29 Reading Tool Life Management Data (Tool Length Compensation No. (1): Tool No.) . . . . . . . . . . . 722
B.4.30 Reading Tool Life Management Data (Tool Length Compensation No. (2): Tool Order No.) . . . . . 724
B.4.31 Reading Tool Life Management Data (Cutter Compensation No. (1): Tool No.) . . . . . . . . . . . . . . . . 726
B.4.32 Reading Tool Life Management Data (Cutter Compensation No. (2): Tool Order No.) . . . . . . . . . . . 728
B.4.33 Reading Tool Life Management Data (Tool Information (1) : Tool No.) . . . . . . . . . . . . . . . . . . . . . . . 730
B.4.34 Reading Tool Life Management Data (Tool Information (2): Tool Order No.) . . . . . . . . . . . . . . . . . . 732
B.4.35 Reading Tool Life Management Data (Tool No.) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 734
B.4.36 Reading the Actual Spindle Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736
B.4.37 Entering Data on the Program Check Screen (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . 738
B.4.38 Reading Clock Data (Date and Time) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 740
B.4.39 Entering Torque Limit Data for the Digital Servo Motor (:Low–speed response) . . . . . . . . . . . . . . . . 742
B.4.40 Reading Load Information of the Spindle Motor (Serial Interface) . . . . . . . . . . . . . . . . . . . . . . . . . . . 744
B.4.41 Reading a Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746

c–12
B–61863E/09    

B.4.42 Reading Set Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747


B.4.43 Reading Diagnosis Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 748
B.4.44 Reading a Character String of the CNC Program Being Executed in the Buffer . . . . . . . . . . . . . . . . . 749
B.4.45 Reading the Relative Position on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751
B.4.46 Reading the Remaining Travel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753
B.4.47 Reading CNC Status Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
B.4.48 Reading an Operator Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757
B.4.49 Reading Value of the P-code Macro Variable (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . 759
B.4.50 Writing Value of the P–code Macro Variable (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . 761
B.4.51 Reading the Tool Life Management Data (Tool life counter type) . . . . . . . . . . . . . . . . . . . . . . . . . . . 763
B.4.52 Registering the Tool Life Management Data (Tool group) (:Low–speed response) . . . . . . . . . . . . . . . 765
B.4.53 Writing the Tool Life Management Data (Tool life) (:Low–speed response) . . . . . . . . . . . . . . . . . . . 767
B.4.54 Writing the Tool Life Management Data (Tool life counter) (:Low–speed response) . . . . . . . . . . . . . 769
B.4.55 Writing the Tool Life Management Data (Tool life counter type) (:Low–speed response) . . . . . . . . . 771
B.4.56 Writing the Tool Life Management Data
(Tool length offset number (1) : Tool number) (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . 773
B.4.57 Writing the Tool Life Management Data
(Tool length offset number (2) : Tool operation sequence number) (:Low–speed response) . . . . . . . . 775
B.4.58 Writing the Tool Life Management Data
(Cutter compensation number (1) : Tool number) (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . 777
B.4.59 Writing the Tool Life Management Data
(Cutter compensation number (2) : Tool operation sequence number) (:Low–speed response) . . . . . 779
B.4.60 Writing the Tool Life Management Data
(Tool condition (1) : Tool number) (:Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 781
B.4.61 Writing the Tool Management Data
(Tool condition (2) : Tool operation sequence number) (:Low–speed response) . . . . . . . . . . . . . . . . . 783
B.4.62 Writing the Tool Life Management Data (Tool number) (:Low–speed response) . . . . . . . . . . . . . . . . 785
B.4.63 Reading the Estimate disturbance torque data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787

C. WINDOW FUNCTION DESCRIPTION (FS15B PMC–NB/NB2) . . . . . . . . . . . . . . . 791


C.1 FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
C.2 LOW–SPEED RESPONSE AND HIGH–SPEED RESPONSE OF WINDOW FUNCTION . . . . . 791
C.2.1 Functional Instruction WINDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793
C.2.2 Functional Instruction WINDW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
C.3 FORMAT AND DETAILS OF THE CONTROL DATA OF
THE WINDR FUNCTIONAL INSTRUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
C.3.1 Reading the Tool Offset Data (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
C.3.2 Reading the Offset from the Workpiece Reference Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799
C.3.3 Reading a Parameter (Setting Data) (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 800
C.3.4 Reading a Custom Macro Variable (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
C.3.5 Reading the CNC Alarm State (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802
C.3.6 Calling the Number of a Running Program (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
C.3.7 Calling the Sequence Number of the Running Program (Low–speed response) . . . . . . . . . . . . . . . . . 804
C.3.8 Reading the Actual Speed of Controlled Axes (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . 805
C.3.9 Reading the Absolute Position on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
C.3.10 Reading the Machine Position on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
C.3.11 Reading the Skip Position on a Controlled Axis (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . 808
C.3.12 Reading a Servo Delay on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
C.3.13 Reading an Acceleration/ Deceleration Delay on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . 809
C.3.14 Reading the Continuous–State Data (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
C.3.15 Reading the Diagnostic Data (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816
C.3.16 Reading the Load Current (A/D Conversion Data) for the Feed Motor . . . . . . . . . . . . . . . . . . . . . . . . 817
C.3.17 Reading the Tool Life Management Data (Tool Group Number) (Low–speed response) . . . . . . . . . . 819
C.3.18 Reading the Tool Life Management Data (Number of Tool Groups) (Low–speed response) . . . . . . . 820
C.3.19 Reading the Tool Life Management Data (Number of Tools) (Low–speed response) . . . . . . . . . . . . . 820
C.3.20 Reading the Tool Life Management Data (Tool Life) (Low–speed response) . . . . . . . . . . . . . . . . . . . 821
C.3.21 Reading the Tool Life Management Data (Tool Life Counter) (Low–speed response) . . . . . . . . . . . . 821
C.3.22 Reading the Tool Life Management Data (Tool Life Counter Type) (Low–speed response) . . . . . . . 822

c–13
Table of contents B–61863E/09

C.3.23 Reading the Tool Life Management Data


(Tool Length Compensation Number 1) (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
C.3.24 Reading the Tool Life Management Data
(Tool Length Compensation Number 2) (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 824
C.3.25 Reading the Tool Life Management Data (Cutter Compensation Number 1) (Low–speed response) . 825
C.3.26 Reading the Tool Life Management Data (Cutter Compensation Number 2) (Low–speed response) . 826
C.3.27 Reading the Tool Life Management Data (Tool Information 1) (Low–speed response) . . . . . . . . . . . 827
C.3.28 Reading the Tool Life Management Data (Tool Information 2) (Low–speed response) . . . . . . . . . . . 828
C.3.29 Reading the Tool Life Management Data (Tool Number) (Low–speed response) . . . . . . . . . . . . . . . . 828
C.3.30 Reading the Clock Data (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
C.3.31 Reading the Relative Position on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
C.3.32 Reading the Remaining Traveling Distance on a Controlled Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
C.3.33 Reading an Estimate Disturbance Torque data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832
C.3.34 Reading the Machining Time (Low–speed response) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
C.3.35 Reading the Load Current (A/D Conversion Data) for the Spindle Motor . . . . . . . . . . . . . . . . . . . . . 833
C.3.36 Reading the Tool offset data according to the specified tool number . . . . . . . . . . . . . . . . . . . . . . . . . . 834
C.4 FORMAT AND DETAILS OF THE CONTROL DATA OF
THE WINDW FUNCTIONAL INSTRUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835
C.4.1 Writing the Tool Offset Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 836
C.4.2 Writing a Parameter (Setting Data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837
C.4.3 Writing a Custom Macro Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838
C.4.4 Writing the Data on the Program Check Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
C.4.5 Writing the Torque Limit Override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840
C.4.6 Writing the Tool Life Management Data (Tool Group Number) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 840
C.4.7 Writing the Tool Life Management Data (Tool Life) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841
C.4.8 Writing the Tool Life Management Data (Tool Life Counter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841
C.4.9 Writing the Tool Life Management Data (Tool Life Counter Type) . . . . . . . . . . . . . . . . . . . . . . . . . . 842
C.4.10 Writing the Tool Life Management Data (Tool Length Compensation Number 1) . . . . . . . . . . . . . . 843
C.4.11 Writing the Tool Life Management Data (Tool Length Compensation Number 2) . . . . . . . . . . . . . . 843
C.4.12 Writing the Tool Life Management Data (Cutter Compensation Number 1) . . . . . . . . . . . . . . . . . . . . 844
C.4.13 Writing the Tool Life Management Data (Cutter Compensation Number 2) . . . . . . . . . . . . . . . . . . . . 844
C.4.14 Writing the Tool Life Management Data (Tool Information 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 845
C.4.15 Writing the Tool Life Management Data (Tool Information 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 845
C.4.16 Writing the Tool Life Management Data (Tool Number) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 846
C.4.17 Writing the Tool offset data according to the specified tool number . . . . . . . . . . . . . . . . . . . . . . . . . . 847
C.4.18 Writing the Superposition Move Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848
C.4.19 Writing the Feedrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

D. WINDOW FUNCTION DESCRIPTION (FS16–LA) . . . . . . . . . . . . . . . . . . . . . . . . . . 851


D.1 OUTLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851
D.2 FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852
D.2.1 Transfer Between Data Area and Non–Volatile Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852
D.2.2 Reading of the Comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 856
D.2.3 Reading and Writing the Laser Command Data and Laser Setting Data . . . . . . . . . . . . . . . . . . . . . . . 857

c–14
B–61863E/09    

E. WINDOW FUNCTION DESCRIPTION (FS16–W) . . . . . . . . . . . . . . . . . . . . . . . . . . . 860


E.1 READING THE WIRE DIAMETER OFFSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 860
E.2 WRITING THE WIRE DIAMETER OFFSET (:LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . 862
E.3 READING THE PARAMETER (:LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 864
E.4 WRITING THE PARAMETER (:LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 866
E.5 READING THE CNC ALARM STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 871
E.6 READING MODEL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872
E.7 READING THE MEASURED POINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
E.8 WRITING THE MEASURED POINT (:LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . . . . . . . 877
E.9 READING THE SETTING DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 878
E.10 WRITING THE SETTING DATA (:LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . . . . . . . . . . 879

F. WINDOW FUNCTION DESCRIPTION (FS16–PA) . . . . . . . . . . . . . . . . . . . . . . . . . . 882


F.1 READING OF TOOL SETTING DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
F.1.1 Data Number, Data Attribute, Data Length, Data Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884
F.2 WRITING OF TOOL SETTING DATA (LOW–SPEED RESPONSE) . . . . . . . . . . . . . . . . . . . . . . 885
F.3 READING TOOL SETTING DATA BY SPECIFYING TOOL NUMBER . . . . . . . . . . . . . . . . . . . . 887
F.4 OTHER WINDOW FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889

G. SIGNAL ADDRESS CONVERSION


(FROM THE PMC–MODEL L/M TO THE PMC–MODEL RB/RC) . . . . . . . . . . . . . 890
G.1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
G.2 FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
G.3 CONVERSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
G.4 MODIFYING THE CONVERTED SEQUENCE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
G.4.1 Modification Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891

H. CONNECTING THE OPERATOR’S PANEL FOR SERIES 0 WITH SERIES 16,


SERIES 18, SERIES 21, OR POWER MATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
H.1 GENERAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
H.2 CONNECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
H.2.1 Connecting the I/O Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
H.2.2 Connecting the I/O Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
H.3 SIGNALS FOR CONNECTING THE OPERATOR’S PANEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
H.3.1 Emergency Stop Signal (*ESP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
H.3.2 Override Signals (*OV1 to *OV8) and Program Protect Key Signal (KEY) . . . . . . . . . . . . . . . . . . . . 897
H.3.3 Key Switch Signals (Xn, Xn+2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
H.3.4 LED Signals (Ym) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 898
H.4 SPECIFYING ADDRESSES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
H.4.1 Parameter Menu (for PMC–RB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
H.4.2 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900

c–15
Table of contents B–61863E/09

I. EDITING FOR POWER MATE–MODEL D (PMC–PA1/PA3) . . . . . . . . . . . . . . . . . 902


I.1 OUTLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
I.2 COMPATIBILITY WITH CNC BASIC SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
I.3 PMC PROGRAMMER (CRT/MDI OR PDP/MDI) [LADDER EDITING FUNCTION] . . . . . . . . 902
I.3.1 Component Units and Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903
I.3.1.1 Component units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903
I.3.1.2 Connection of Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904
I.3.1.3 Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
I.3.2 Specification and Display of System Parameters (SYSPRM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
I.3.3 Condense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 905
I.4 SYSTEM DIAGRAM OF SOFT KEY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907

J. APPLICABLE FAPT LADDER EDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908


J.1 FAPT LADDER (FOR PERSONAL COMPUTERS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 908
J.2 FAPT LADDER (SYSTEM P SERIES) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 910

K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH MEMORY CARD . . . . . . . . . 912


K.1 Outline of Leveled Up Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 912
K.2 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 913
K.2.1 CNC → Offline Programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 913
K.2.2 Offline Programmer → CNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 915
K.2.3 Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 916

L. ALARM MESSAGE LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 919

M. EXAMPLE OF STEP SEQUENCE PROGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . 926

N. STEP SEQUENCE CORRESPONDED C LANGUAGE . . . . . . . . . . . . . . . . . . . . . . 930


N.1 WHILE STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 930
N.2 DO–WHILE STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932
N.3 FOR STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
N.4 IF ELSE STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 936
N.5 SWITCH STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 938

O. CHINESE CHARACTER CODE, HIRAGANA CODE,


AND SPECIAL CODE LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 941

c–16
I. PMC SEQUENCE PROGRAM
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

1 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.

Start of control system


development

Decide the control object (machine, CNC)

Decide the specifications of control


operations
 Calculate the number of DI/DO points
 Estimate the control scale

Create the interface specifications


DI/DO terminal allocation

Create the ladder diagram


Create the addrss table

Entry method of the


sequence program

Key-in
Offline programmer
Specification of the
programmer

NC Enter the sequence program with the offline


programmer key

Store the sequence program into the PMC


RAM board by using the keys of the In necessary correct with the offline
CRT/MDI programmer key

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

Debug the sequence program with the


simulator

Yes
Should the program be
corrected?
No

1 Sequence program creating procedure (1/2)

3
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Correct with Perform system operation


the keys of the Debugging RAM
CRT/MDI

Yes Should the program


be corrected?

Write into the ROM using the


ROM writer

Perform system operation

Yes Should the program


be corrected?

No

Store the sequence program:


(1) Store in the disk of the offline
programmer
(2) Store in ROM

Output the ladder diagram of the


sequence program to the printer

Make sure that the maintenance


drawing is attached to the machine

End

1 Sequence program creating procedure (2/2)

4
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

1.1 Table 1.1 shows the specification of PMCs.


Note that the program size, processing speed, available function
SPECIFICATION OF commands, internal addresses, and nonvolatile memory addresses of
PMCs some PMCs are different from those of other PMCs.
Table 1.1 PMC specifications (1)
Type of PMC
Specification PMC-PA1 PMC-PA3
of PMC
Capacity of each modules
Program method language Ladder Ladder

MEMORY- Total
Number of ladder level 2 2
MODULE capacity
1st level excution period 8 ms 8 ms
Mean processing time of 4. 5 * 0. 15 A 22KB
basic command (us/ step) (us/ step)
Program capacity B 62KB
 Ladder (step) Approx. 3, 000 Approx. 5, 000
Approx. 12,000
C 126KB
(Only for Power
Mate D/H) It is impossible that make the data more
 Symbol, Comment (Note 1) 1 to 128KB 1 to 128KB than the total capacity of each
 Message 0.1 to 64KB 0.1 to 64KB modules.
 Language only – –
Maximum data size of each modules
Command Basic command 12 kinds 14 kinds
Function command 47 kinds 64 kinds MEMORY- SYMBOL
& MESSAGE
MODULE
Internal relay (R) 1100 byte 1118 byte COMMENT
Message request (A) 25 byte 25 byte
Keepmemory A 22KB 22KB
 Variable timer (T) 80 byte 80 byte
 Counter (C) 80 byte 80 byte B 62KB 62KB
 Keep relay (K) 20 byte 20 byte
 Data table (D) 1860 byte 1860 byte C 126KB 64KB
Subprogram (P) – –
Label (L) – –
Fixed timer Timer No. 100 Timer No. 100
devices specified devices specified

I/O
 I/O Link (Note 2) (I) 1024 points max. 1024 points max.
(Master) (O) 1024 points max. 1024 points max.
 I/O Link (I) 64 points max. 64 points max.
(Slave) (O) 64 points max. 64 points max.
 I/O card (I) 32 points max. 32 points max.
(O) 24 points max. 24 points max.

Sequence program
SRAM SRAM
(Note 3)

Notes
1. 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.
  "&# *+) ,&+"'& "* &'+ -"$$ "& +! '.) + 
    "* ,* "& +! '.) + 
 * -$,* "&"+ ."+! & *+)"*#  "& +! +$ ')%) -)*"'&* ' +! ()' )%%"& %&,$
& +$' * !- $"*+ +! %& ()'**"& +"% ' *" '%%&* ,+ +!"* %&,$ $"*+*
+! /,+"'& +"% ') '& *+( ! +,$ $) ()' )% /,+"'& ()')%& *( '
!  !* &'+ & !& 

5
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Table 1.1 PMC specifications (2)

Type of PMC

Specification
PMC-RA1 PMC-RA2 PMC-RA3
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 5.0 1.5 * 0. 15


command (us/ step) (us/ step) (us/ step)

Program capacity
 Ladder (step) 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
 Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 1)
 Message 0. 1 to 64KB 0. 1 to 64KB 0. 1 to 64KB
 Language only – – –

Command Basic command 12 kinds 12 kinds 14 kinds


Function command 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
 Variable timer (T) 80 byte
80 byte 80 byte
 Counter (C)
 Keep relay (K) 20 byte 20 byte 20 byte
 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
 I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
 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


1Mbit×1 (128KB) 1Mbit×1 (128KB) 1Mbit×1 (128KB)
(Note 2) (Note 2)

Notes
1. 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.
2. FLASH ROM is used in the FANUC Series 20.
3. 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.
4. Application PMC for FANUC Series 16–MODEL A loader control function is PMC–RA1.

6
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

Table 1.1 PMC specifications (3)

Type of PMC
Specification PMC-RB1 PMC-RB2 PMC-RB3
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 (us/ step) (us/ step) (us/ step)

Program capacity
 Ladder (step) 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
 Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 1)
 Message 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
 Language only – – –

Command Basic command 12 kinds 12 kinds 14 kinds


Function command 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
 Variable timer (T)
 Counter (C) 80 byte 80 byte 80 byte
 Keep relay (K) 80 byte 80 byte 80 byte
 Data table(D) (D) 20 byte 20 byte 20 byte
Subprogram (P) 1860 byte 1860 byte 3000 byte
Label (L)
– – 512 programs
Fixed timer
– – 9999 labels
Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified
devices specified

I/O
 I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
 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


1Mbit×1 (128KB) 1Mbit×1 (128KB) 1Mbit×1 (128KB)
ROM MODULE ROM MODULE
256KB (Note 2) 256KB (Note 2)

Notes
1. 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.
2. When the number of steps of the PMC-RB2, RB3 ladder program is approx. 24,000, the
capacity of the ROM module must be 256KB.
3. 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
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Table 1.1 PMC specifications (4)

Type of PMC
Specification PMC-RC PMC-RC3 PMC-NB
of PMC

Program method language Ladder Ladder Ladder


C-language C-language C-language

Number of ladder level 3 3 3

1st level excution period 8 ms 8 ms 8 ms

Mean processing time of basic 0.15 0.15 0.15


command (us/ step) (us/ step) (us/ step)

Program capacity
 Ladder (step) Approx. 16,000 Approx. 16,000 Approx. 8,000
Approx. 24,000 Approx. 24,000 Approx. 16,000
(Note 2)
Approx. 24,000
(Note 2)
 Symbol, Comment 1 to 128KB 1 to 128KB 1 to 128KB
(Note 1)
 Message 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
 Language only 896KB max. 896KB max. 896KB max.

Command Basic command 12 kinds 14 kinds 14 kinds


Function command 51 kinds 68 kinds 68 kinds

Internal relay (R) 1600 byte 1618 byte 1618 byte


Message request (A) 25 byte 25 byte 25 byte
Keepmemor
 Variable timer (T) 80 byte 80 byte 80 byte
 Counter (C) 80 byte 80 byte 80 byte
 Keep relay (K) 20 byte 20 byte 20 byte
 Data table (D) 3000 byte 3000 byte 3000 byte
Subprogram (P) – 512 programs 512 programs
Label (L) – 9999 labels 9999 labels
Fixed timer Timer No. 100 Timer No. 100 Timer No. 100
devices specified devices specified devices specified

I/O
 I/O link (I) 1024 points max. 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max. 1024 points max.
 I/O card (I) 156 points max. 156 points max. –
(O) 120 points max. 120 points max. –

Sequence program ROM MODULE ROM MODULE ROM MODULE


128KB 128KB 64KB
256KB 256KB 128KB
512KB 512KB 256KB
1MB 1MB 512KB
1MB

Notes
1. The size of a symbol and that of a comment of
PMC-RC/RC3 are fixed 32KB. The size of message of
PMC-RC/RC3 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.
2. 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)

8
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

Table 1.1 PMC specifications (5)

Series 18–
Series 16–MODEL B/Series 18–MODEL B
Model MODEL B
PMC-RB3 PMC-RC3 PMC-RB4 PMC-RC4 PMC-RA1

Programming method Ladder


Ladder Ladder
Ladder C–language Ladder
language C–language Step sequence
Step sequece

Number of ladder level 2 3 2 3 2

Level-1 Cycle Time 8 ms 8 ms 8 ms 8 ms 8 ms

Basic Instruction Execution Time * 0.1 0.1 * 0.1 0.1 5.0


(us/ step) (us/ step) (us/ step) (us/ step) (us/ step)

Program capacity
 Ladder (step) 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
 Symbol/Comment 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB
 Message
 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 –

Instruction (Basic) 14 kinds 14 kinds 14 kinds 14 kinds 12 kinds


(Functional) 67 kinds 69 kinds 67 kinds 69 kinds 49 kinds

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
 Var. Timer (T) 80 byte 80 byte 300 byte 300 byte 80 byte
 Counter (C) 80 byte 80 byte 200 byte 200 byte 80 byte
 Keep relay (K) 20 byte 20 byte 50 byte 50 byte 20 byte
 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
 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.
 I/O card (I) Max. 312 points max. 312 points max. 312 points max. 312 points max. 312 points max.
(Note) (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 128KB 128KB 128KB 128KB
256KB 256KB 256KB 256KB
512KB 512KB
1MB 1MB

Note
1. That is the maximum number when 2 I/O cards (with 156 inputs/120 outputs) are used.
2. 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.
3. Application PMC for FANUC Series 16–MODEL B loader control function is PMC–RA1.

9
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Table 1.1 PMC specifications (6)

Series 16–MODEL C/Series 18–MODEL C


Model
PMC-RB5 PMC-RC3 PMC-RB6 PMC-RC4

Programming method Ladder


Ladder Ladder
Ladder C–language
language C–language Step sequence
Step sequece

Number of ladder level 2 3 2 3

Level-1 Cycle Time 8 ms 8 ms 8 ms 8 ms

Basic Instruction Execution Time * 0.1 0.1 * 0.1 0.1


(us/ step) (us/ step) (us/ step) (us/ step)

Program capacity
 Ladder (step) 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
 Symbol/Comment 1 to 128KB 1 to 128KB 1 to 128KB 1 to 128KB
 Message 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB 0.1 to 64KB
 Language only – max. 896KB – max. 896KB

Instruction (Basic) 14 kinds 14 kinds 14 kinds 14 kinds


(Functional) 67 kinds 69 kinds 67 kinds 69 kinds

Internal relay (R) 1618 byte 1618 byte 3200 byte 3200 byte
Message request (A) 25 byte 25 byte 125 byte 125 byte
Non-volatile
 Var. Timer (T) 80 byte 80 byte 300 byte 300 byte
 Counter (C) 80 byte 80 byte 200 byte 200 byte
 Keep relay (K) 20 byte 20 byte 50 byte 50 byte
 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
 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.
 I/O card (I) Max. 312 points max. 312 points max. 312 points max. 312 points max.
(Note) (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 128KB 128KB 128KB
256KB 256KB 256KB 256KB
512KB 512KB
1MB 1MB

Notes
1. That is the maximum number when 2 I/O cards (with 156
inputs/120 outputs) are used.
2. Application PMC for FANUC Series 16–MODEL C loader
control function is PMC–RA1.

10
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

Table 1.1 PMC specifications (7)

Series 21–MODEL B/
Model Series 210–MODEL B
PMC-RA1 PMC-RA3
Programming method
Ladder Ladder
language

Number of ladder level 2 2

1st level excution period 8 ms 8 ms

Mean processing time of basic command 5.0 * 0.15


(us/ step) (us/ step)

Program capacity
 Ladder (step) Approx. 3, 000 Approx. 3, 000
Approx. 5, 000 Approx. 5, 000
Approx. 8, 000
Approx.12, 000
 Symbol/Comment 1 to 128KB 1 to 128KB
(Note 1)
 Message 0.1 to 64KB 0.1 to 64KB
 Language only – –

Command Basic command 12 kinds 14 kinds


Functioncommand 49 kinds 66 kinds

Internal relay (R) 1100 byte 1118 byte


Message request (A) 25 byte 25 byte
Keepmemory
 Variable timer (T) 80 byte 80 byte
 Counter (C) 80 byte 80 byte
 Keep relay (K) 20 byte 20 byte
 Data table (D) 1860 byte 1860 byte
Subprogram (P) – 512 programs
Label (L) – 9999 labels
Fixed timer Timer No. 100 Timer No. 100
devices specified devices specified

I/O
 I/O link (I) 1024 points max. 1024 points max.
(O) 1024 points max. 1024 points max.
 I/O card (I) 96 points max. 96 points max.
(O) 72 points max. 72 points max.
(Note 1) (Note 1)

Sequence program Flash ROM Flash ROM


128KB 128KB

Notes
1. Output points of I/O card in 4082 series are following ;
PMC–RA1 : 64points, PMC–RA3 : 64points
2. 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.
3. Application PMC for FANUC Series 21–B loader control
function is PMC–RA1.

11
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Table 1.1 PMC specifications (8)

Series 15–MODEL B
Model PMC-NB PMC-NB2
(4048 Series)
Programming method language Ladder Ladder
C–language C–language
Step sequence
Number of ladder level 3 3
Level–1 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) Approx.16,000 Approx.16,000
Approx.24,000 Approx.24,000
S Symbol/Comment 1 to 128KB 1 to 128KB
(Note)
S Message 0.1 to 64KB 0.1 to 64KB

S Language only max. 896KB max. 896KB

Instruction (Basic) 14 kinds 14 kinds


(Function) 69 kinds 69 kinds
Internal relay (R) 1618 byte 3200 byte
Message request (A) 25 byte 125 byte
Non–volatile
S Var.Timer (T) 80 byte 300 byte

S Counter (C) 80 byte 200 byte

S Keep relay (K) 20 byte 50 byte

S Data table (D) 3000 byte 8000 byte


Subprogram (P) 512 programs 2000 programs
Label (L) 9999 labels 9999 labels
Fixed timer Max 100 timers Max 100 timers
specified by specified by
timer No. timer No.
Input/output
S I/O link (I) max 1024 points. max 1024 points.
(O) max 1024 points. max 1024 points.
S I/O card (I) – –
(O) – –
Sequence program Flash ROM Flash ROM
storage media 64 KB 64 KB
128 KB 128 KB
256 KB 256 KB
512 KB 512 KB
1 MB 1 MB

Note
Please refer to (4) for PMC–NB(4047 Series).
The above–mentioned table is a value for PMC–NB/NB2
(4048 Series).

12
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

1.2
SUMMARY OF
SPECIFICATION OF
LADDER PROGRAM Table 1.2 Summary of specification of ladder program (1)

Model PMC-PA1 PMC-PA3 PMC-P


PMC Interfaces between the PMC and CNC Compatible Incompatible
address (F and G) (Note 2)

Interfaces between the PMC and Compatible Incompatible


machine (X and Y) (Note 2)

Others (R, A, C, K, D, T) Compatible Incompatible

Ladder ROM format (object) Incompatible (Note 1)


rogram
program
compatibility Source format (mnemonic) Compatible Incompatible
(Note 2)

System Divided system Not provided (Note 3) Provided

Undivided system Provided Not provided

Basic commands Compatible

Function DISP (SUB49) Not provided (Note 4) Provided


commands
COM Coil count specification Not provided (Note 5) Provided
(SUB9)
COME (SUB29) specification Provided

JMP Coil count specification Not provided (Note 5) Provided


(SUB10)
JMPE (SUB30) specification Provided

Notes
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 4).
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.

13
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

Table 1.2 Summary of specification of ladder program (2)

PMC-
RB3/ PMC-
PMC- PMC- PMC- PMC- PMC- PMC-
Model RB4/ RC3/
RA1 RA2 RA3 RB RB2 RC
RB5/ RC4
RB6
PMC address Interfaces between the PMC and CNC (F and
Compatible
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)
rogram
program
compatibility Source format (mnemonic) Compatible (Note 3)

System Divided system


Not provided (Note 4) Provided
Not provided
Provided
Not
(Note 4) provided
Undivided system Provided
Structuring Sub program Un-
Unusable Usable Unusable Usable Usable
usable
Basic commands Compatible
Function END3 (SUB48) Not provided Provided
commandsd DISP (SUB49) Not provided (Note 5) Provided
COM Coil count specification Not
Not provided
(SUB9) Not provided (Note 6) Provided Provided provided
(Note 6)
(Note 6)
COME (SUB29) specification Provided
JMP Coil count specification Not
Not provided
(SUB10) Not provided (Note 6) Provided Provided provided
(Note 6)
(Note 6)
JMPE (SUB30) specification Provided
FNC9X (SUB9X) Not provided Provided
MMCWR (SUB98), MMCWW (SUB99)
Provided (Note 7) Provided
MMC3R (SUB88), MMC3W (SUB89)
MOVB (SUB43), MOVW (SUB44) , Not
MOVN (SUB45)
Not provided Provided Not provided Provided
provided
Provided

DIFU (SUB57), DIFD (SUB58) Not


Not provided Provided Not provided Provided
provided
Provided

AND (SUB60), OR (SUB61) Not


NOT (SUB62), EOR (SUB59)
Not provided Provided Not provided Provided
provided
Provided

Function Commands for subprogram


command END (SUB64) , Not
Not provided Provided Not provided Provided
provided
Provided
(for structured CALL (SUB65), CALLU (SUB66) ,
programming)
rogramming) SP (SUB71), SPE (SUB72)
Extended jump command
Not
JMPB (SUB68), JMPC (SUB73) Not provided Provided Not provided Provided
provided
Provided
LBL (SUB69)

Notes
1. The internal relay and the data table in nonvolatile memory for the PMC-RB3, RC, RC3 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 PMC–RA2 can be used for the PMC–RA3 and the ROM for the
PMC–RB2 can be used for the PMC–RB3.
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 (PMC–RA1/RA2/RA3), only the MMC–III can be used. For the FS18B, the
MMC–III and MMC–IV can be used.
For the FS21B (PMC–RA1/RA3), the MMC–IV can be used.

14
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

Table 1.2 Summary of specification of ladder program (3)

Model PMC- PMC- PMC-


NA NB NB2
Series (4046) (4047) (4048)
(4048)
PMC address Interfaces between the PMC and CNC (F and G) Incompatible

Interfaces between the PMC and machine Compatible


(X and Y)

Subprogram, label (P and L) Not


Provided
provided

Others (R, A, C, K, D, T) Compatible (Note 1)

Ladder ROM format (object) Incompatible (Note 2)


rogram
program
compatibility Source format (mnemonic) Compatible (Note 3)

System Divided system Provided Not provided

Undivided system Not Provided


provided

Structuring Subprogram Usable Unusable

Step sequence Unusable Usable

Basic commands Compatible

Function END3 (SUB48) Provided


commands
DISP (SUB49) Provided Not provided

COM Coil count spesification Provided Not provided


(SUB9)
COME (SUB29) specification Provided

JMP Coil count specification Provided Not provided


(SUB10)
JMPE (SUB30) specification Provided

FNC9X (SUB9X) Provided

LIBRY (SUB60), LEND (SUB61) Provided Not provided

MMCWR (SUB98), MMCWW (SUB99)


MMC3R (SUB88), MMC3W (SUB89)
MOVB (SUB43), MOVW (SUB44)
Not
MOVN (SUB45) provided
Provided
DIFU (SUB57), DIFD (SUB58)
AND (SUB60), OR (SUB61)
NOT (SUB62), EOR (SUB59)
Function S Command for subprogram
command END (SUB64) , CALL (SUB65) , CALLU Not
Provided
(for structured (SUB66) , provided
programming) SP (SUB71) , SPE (SUB72)
S Extended jump command Not
Provided
JMPB (SUB68) , JMPC (SUB73) , LBL (SUB69) provided

Notes
1. Management of internal relay address and that of datatable
are different between the PMC–NB/NB2 and the PMC–NA.
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 PMC–NB/NB2 and PMC–NA.

15
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

1.3 This is paragraph outlines functions of a sequence program before


explaining the programming work.
WHAT IS A
SEQUENCE The sequence program is a program for sequence control of machine tools
and other systems.
PROGRAM?
A program is defined as a processing procedure to enable CPU to execute
arithmetic processing.
This program is converted into a format (machine language instructions)
to enable CPU to execute decoding and arithmetic processing, and stored
into the RAM or ROM memory.
The CPU reads out instructions of the program stored into the memory
at high speed every instruction, and executes the program by arithmetic
operation.
The programming of a sequence program begins with the production of
a ladder diagram which serves as a processing procedure for arithmetic
processing by CPU.
This ladder program is produced using PMC instructions.
After producing the ladder diagram, the processing sequence of this
ladder diagram is converted into machine language instructions, and
stored into the memory (program input).
Conversion into the machine language instructions and storage into the
memory are done by the PMC programmer. The PMC programmer is a
function to produce a program.
The sequence program being stored into the memory is sequentially read
out into the PMC’s CPU every instruction at high speed and executed.
Fig. 1.3 shows this relation.
The CPU reads out input circuit signals of address X0.0 by RD X0.0
instruction, and sets them into an operation register. Then, the CPU
executes AND operation with internal relay states at address R10.0
according to the AND R10.1 instruction, and sets these results into the
operation register.
The CPU executes instructions at high speed and outputs arithmetic
results to the address Y0.0 output circuit.

16
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

PMC (Programmable Machine Controller)

CPU

Sequence program memory


A B D W RD X0.0
Sequence
AND R10.1
X0.0 R10.1 R20.3 Y0.0 program input
C OR X6.1
AND.NOT R20.3
X6.1
WRT Y0.0

Controlled system, such as machine


tools and other systems
Input circuit
X0.0
X6.1

Output circuit
Y0.0

Internal relay (RAM)


R10.1
R20.3

1.3 Execution of sequence program by PMC

17
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

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 CONNECTING 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 FANUC 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.

18
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

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 (a)
and (b).

FIN
MF MF SF TF
Miscellaneous
function
finish signal
F7.0 F 7.0 F 7.2 F 7.3
SF G4.3

F7.2
TF MFIN SFIN TFIN

F7.3 R211.7 R211.5 R211.6

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

1.6

19
1. SEQUENCE PROGRAM CREATING
PROCEDURE I. PMC SEQUENCE PROGRAM B–61863E/09

1.7 The sequence program can be entered in five ways as follows:


SEQUENCE (1) Entry with CRT/MDI keys
PROGRAM ENTRY The sequence program is entered in the ladder diagram format by
pressing the keys of the CRT/MDI.
(STEPS 6, 7)
(2) Entry with keys of SYSTEM P series keyboard
The sequence program is entered in the mnemonic symbol by
pressing the keys of SYSTEM P series keyboard.
(3) Entry from PPR of SYSTEM P series
The sequence program punched on a paper tape is read out of the PPR
and stored in the memory of the SYSTEM P series.
(4) Entry form floppy disk of SYSTEM P series
This method is used when a completed sequence program is slightly
changed. The sequence program written in the floppy disk is stored
in the memory of SYSTEM P series.
(5) Entry form ROM Writer
This method is used when a completed sequence program is slightly
changed. The sequence program written in the ROM is stored from
the PMC Writer or FA Writer into P-G or Debugging RAM.

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.

20
1. SEQUENCE PROGRAM CREATING
B–61863E/09 I. PMC SEQUENCE PROGRAM PROCEDURE

1.9
(1) Storage and control of sequence program
STORAGE AND After debugging, the sequence program should be stored and
CONTROL OF controlled by the machine tool builder. It can be stored in the
SEQUENCE following ways:
PROGRAM (a) Storing in ROM
(STEPS 12 TO 14) The sequence program can be stored in the ROM. For control,
enter the drawing number, edition number, etc. of the machine
tool builder into the label provided in the ROM, and attach it to
the ROM for control. The same control is necessary for the ROM
for product.
(b) Storing in floppy disk
The sequence program can be stored in the floppy disk with
offline programmer. Many programs can be stored in one floppy
disk.
(c) Storing in paper tape
The sequence program can be stored in the form of a paper tape.
(d) Storing in FANUC floppy disk cassette
The sequence program can be stored in floppy disk cassette.
(2) Compiling and control of maintenance drawing
The sequence program can be output to the FANUC printer in the
ladder diagram format using the offline programmer or built-in
editing function. Be sure to attach the ladder diagram to the machine
as a maintenance drawing together with the machine tool magnetic
circuit diagrams, etc.

21
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

2 SEQUENCE PROGRAM

Since PMC sequence control handled by software and operates on


principles different from a general relay circuit, the sequence control
method must be fully understood in order to design the PMC sequence.

22
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

2.1 In a general relay sequence circuit, each relay operates at approximately


the same time. In the figure below for example, when relay A operates,
EXECUTION the relay D and E operate at approximately the same time. (When both
PROCEDURE OF contacts B and C are off.) In PMC sequence control, each relay of the
SEQUENCE circuit operates sequentially. When relay A operates, relay D operates,
then relay E (see Fig. 2.1 (a)). Thus each relay operates in sequence which
PROGRAM
can be written as a ladder diagram. (programmed sequence)

A B
D

A C
E

2.1 (a) Circuit examples

Although the PMC sequential operation is performed at high speed, the


speed will change with the order to be executed.
Fig. 2.1 (b) (A) and (B) illustrate operations varying from the relay circuit
to PMC program.

(P.B)
A C
B

A
C

(A)

(P.B)
A
C

A C
B

(B)

2.1 (b) Circuit examples

(1) Relay circuit


Operations are the same in both Fig. 2.1 (b) (A) and (B). Turning on
A (P.B) causes current to flow to coils B and C, which turns on B and
C. When C turns on, B turns off.
(2) PMC program
In Fig. 2.1 (b) (A), as in the relay circuit, turning on A (P.B) turns on
B and C, and after one cycle of the PMC sequence, turns off B. But
in Fig. 2.1 (b) (B), turning on A (P.B) turns on C, but does not turn
on B.

23
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

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.

24
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

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 The 1st level sequence part operates every 8 ms (high-speed sequential
(1ST LEVEL, 2ND operation).
If the 1st level sequence part is long, the total operating time, including
LEVEL AND 3RD
the 2nd level sequence part, is extended. Therefore the 1st level sequence
LEVEL) part must be programmed to be processed in as short time as possible.
The 2nd level sequence part operates every 8×n ms. Here n is a dividing
number for the 2nd level sequence part. The 2nd level sequence part is
divided automatically when the sequence program is transferred to the
RAM for debugging in the CNC unit or it is written on ROM after the
program is created. The time for one cycle of the sequence program is
then displayed on the offline programmer screen.
The 3rd level sequence part operates during idle time of PMC.
Sequence program

1st level sequence part Specifies the end of the


SUB 1
1st level sequence part.

Division 1

Division 2
2nd level sequence part

SUB 2 Division n

3rd level sequence part Specifies the end of the


SUB 48 2nd level sequence part.

(Only the models usable the 3rd level sequence)


Specifies the end of the 3rd level sequence part.

2.3 (a) Construction of sequence program


(1) Division of the 2nd level sequence part
The 2nd level sequence part must be divided in order to execute the
1st level sequence part. For example a sequence program is executed
in the following sequence when the dividing number is n. (See Fig.
2.3 (b), 2.3 (c) )
After the last 2nd level sequence part (division n) is executed, the
sequence program is executed again from the beginning. Thus, when
the dividing number is n, the cycle of execution is 8mms (8ms×n).
The 1st level sequence operates every 8 msec, and the 2nd level
sequence every 8×n msec. If the steps of the 1st level sequence is
increased, the steps of the 2nd level sequence operating within 8 msec
becomes less, thereby increasing the dividing number and making
the processing time longer. Therefore, it is desirable to program so
as to reduce the 1st level sequence to a minimum.
In the, PMC-RA1, -RA2, -RB and -RB2, 1.25 ms of 8 ms is assigned
to execution of the 1st and 2nd level sequences. The remaining time
is assigned to NC processing.
In the PMC-RC, 5 ms of 8 ms is assigned to execution of the 1st and
2nd level sequences. The standard setting value is 5 ms when system
parameter LADDER EXEC = 100%. The remaining time is assigned
to execution of the 3rd level sequence and the program.

25
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

8ms 8ms 8ms


1st level 1.25ms 1.25ms 1.25ms

Division 1 Division 2 Division n Division 1


2nd level
NC processing

2.3 (b) Sequence in which the Sequence Program Is Executed (PMC-RA1, -RA2, -RB and -RB2)

8ms 8ms 8ms


1st level 5ms 5ms 5ms

2nd level Division 1 Division 2 Division n Division 1

3rd level, program execution,


and displaying the PMC screen

2.3 (c) Sequence in which the Sequence Program Is Executed (PMC-RC)


(2) 1st level sequence part
Only short-width 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 PMC-RC, 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.
A functional instruction is executed only if the ACT condition is set
to on. Otherwise, the next instruction is executed. 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.

26
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

The PMC model usable only the undivided system, does not have
setting system parameter IGNORE DIVIDE CODE. It is always
operated under the undivided system.
A
Functional
instruction

B
Functional
instruction

C
Functional
instruction

The ladder program is divided if all functional instructions are


executed regardless of execution of an actual ladder program.

2.3 (d) Divisions in the divided system

A
Functional
instruction

B
Functional
instruction

C
Functional
instruction

Execution of an actual ladder program when A = 0, B = 1, and C = 0.

2.3 (e) Execution of a ladder program

(a) Example of effective use of the undivided system


Example 1)
Many M codes are usually used. Since more than one M code
is not used in the same block, the decoded M code is divided
into several parts. Machine instructions are used as these
decoded parts.
The M code is divided into M codes having two digits such
as M21, M22, M24, M28, and so on.
Example 2)
To reduce the number of ROM types using the same ladder
program for multiple machines, a PMC parameter must be
specified so that any of the following ladder program run.

Ladder A (Ladder common to all machines)

(Selected by a PMC parameter)

(Ladders dedicated
Ladder B1 Ladder B2 Ladder B3 to each machine)

2.3 (f)

27
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

(5) Construction of sequence program in the case of using Sub-program.

1st level sequence part

END1 (SUB 1)

2nd level sequence part

END2 (SUB 2)

3rd level sequence part


(Only about the PMC
model usable the 3rd
level sequence)
END3 (SUB 48)

SP
 Sub program must be written between 2nd
 level program and 3rd level program.

SPE

SP

Sub program

SPE

SP

SPE

End of sequence program END  The end of sequence program is expressed


 by END command.

2.3 (g)

28
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

2.4  : Can be used


SEQUENCE  : Cannot be used

PROGRAM PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

               
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
D
FUNC D D D f
Job B D
D
D
D

(2) Nesting
Ladder subprograms created in (1) above are combined to structure
a ladder sequence.
Main Program Sub Program1 Sub Program2

Job A Job A1 Job A11

D
D
Job B D Job A12

Job An

29
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

(3) Conditional branch


The main program loops and checks whether conditions are satisfied.
If a condition is satisfied, the corresponding subprogram is executed.
If the condition is not satisfied, the subprogram is skipped.

Main Program Sub Program1

PROCESS11 PROCESS11
STATE1 PROCESS1

PROCESS12
STATE2 PROCESS2

 PROCESS13



For details, see Chapter 9 of Part II.

30
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

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

Input signals from 1st level


CNC sequence part

Transmitted at the
start of 2nd level 2nd levelsy nchronous
input signal memory

Input signals from


CNC
Transmitted every 8 ms

Input signals from 2nd level


machine tool
sequence part

Output memory of CNC

Output signals to
CNC

MT
Output signalmemory

Output signals to Output signals to the


machine tool machine

Input signal memory

Input signals from Input signals from 3rd level


machine tool machine sequence part
(Only PMC-RC)
Transmitted
every 2 ms

2.5 PMC I/O signals

31
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

2.5.1 (1) Input memory of CNC


Input signal The input signals from CNC are loaded in memory of CNC and are
transferred to the PMC at intervals of 8 ms.
processing Since the 1st level and the 3rd level sequence part directly refer to
these signals and process operations, these signals do not
synchronize with input signals from the CNC.
See item 2.5.3.
(2) Input signals from machine tool (DI/DO card)
Input signals from the machine tool are transferred to the input signal
memory from the input circuit (DI/DO card). 1st level and 3rd level
sequence part directly processes by reading signals loaded in the
input signal memory.
(3) Input signal memory
The input signal memory stores signals transferred from the machine
tool at intervals of 2 ms period.
The PMC 1st level sequence part and 3rd level sequence part are used
to read and process signals stored in this memory.
In this case, state of signals set in the input signal memory
synchronizes with that of 1st level sequence part but not with that of
3rd level sequence part.
See item 2.5.3.
(4) 2nd level synchronous input signal memory
The 2nd level synchronous input signal memory stores signals
processed by the 2nd level sequence section.
State of the signals set in this memory synchronizes with that of the
2nd level sequence part.
Input signal memory and input signals from the CNC are transferred
to the 2nd level synchronous input signal memory only at the
beginning of execution of the 2nd level sequence section. Therefore,
the status of the 2nd level synchronous input signal memory does not
change from the beginning to end of the execution of the 2nd level
sequence part.
Programmer function makes the processing so that the 1st level
sequence section and 3rd level sequence section use the input signal
memory and input signals from the CNC side and the 2nd level
sequence section uses the 2nd level synchronous input signal
memory.

2.5.2 (1) CNC output memory


Output signal The output signals are transferred from the PMC to the CNC output
processing memory at intervals of 8 ms.
(2) Output signals to machine tool (DI/DO card)
Output signals to the machine tool are transferred from the PMC
output signal memory to the machine tool.
(3) Output signal memory
The output signal memory is set by the PMC sequence program.
Signals stored in this memory are transferred to the machine side at
a 2 ms period.

32
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

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 self-diagnosis
function.
The self-diagnosis 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

If after TF=0 is load, signal state changes to TF=1,


state of W1=1 and W2=1 may momentary occur

2.5.3 (a)

TF TFM

TFM W1

TFM W2

END 1

Make signal TF synchronized one, and state of


W1=1 and W2=1 may not occur.

2.5.3 (b)

33
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

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 high-speed 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

2.5.4 (a) 2.5.4 (b)

34
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

2.6 Interlocking is externally important in sequence control safety.


Interlocking with the sequence program is necessary. However,
INTERLOCKING interlocking with the end of the electric circuit in the machine tool
magnetics cabinet must not be forgotten. Even though logically
interlocked with the sequence program (software), the interlock will not
work when trouble occurs in the hardware used to execute the sequence
program. Therefore, always provide an interlock inside the machine tool
magnetics cabinet panel to ensure operator safety and to protect the
machine from damage.

35
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

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) msec
n= +1
(ET)msec – (HT)msec
(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 PMC-RB
(ET) = 1.25 ms = 1250µs
For PMC-RC (standard setting when LADDER EXEC = 100%)
(ET) = 5 ms = 5000µs
(d) IT) is the execution constant for calculating the processing time.
The value is as follows:
(IT) = 0.15µs

36
B–61863E/09 I. PMC SEQUENCE PROGRAM 2. SEQUENCE PROGRAM

(3) Processing time calculation example


(a) 1st level sequence
Basic instruction: 100 steps
Functional instruction:
CTR: 2 times,
COMPB: 2 times
CTR execution time constant: 26
COMPB execution time constant: 24
END.1 execution time constant: 206
HT={100+(262+242+206)10}0.15 =474 µsec
(b) 2nd level sequence
Basic instruction: 6,000 steps
Functional instruction:
TMR: 35 times,
DECB: 25 times,
ROTB: 2 times
TMR execution time constant: 23
DECB execution time constant: 20
ROTB execution time constant: 33
END.2 execution time constant: 32
LT={6,000+(23 35+20 25+33 2+32) 10} 0.15=3004.5msec
(c) Determination of the number of divisions (n)
3004.5 µsec
n= +1 = 4.87
1250µsec – 474 µsec

(d) Processing time calculation


Sequence processing time=4 (number of division)  8 msec=32
msec

37
2. SEQUENCE PROGRAM I. PMC SEQUENCE PROGRAM B–61863E/09

2.8 In the PMC-RB, one 1M-bit EPROM is used for storing the sequence
program. In the PMC-RA1,
SEQUENCE –RA2, –RB and –RB2, a 128KB, 256KB, 512KB, or 1MB ROM module
PROGRAM MEMORY is used for this purpose.
CAPACITY Table 2.8 (a) shows the maximum memory capacity available for the
sequence program. The number of bytes in parentheses indicates the size
of the area dedicated to the programs other than the sequence program.

Table 2.8 (a) Maximum Memory Capacity for a Sequence Program

Symbol and
 ROM Ladder Message Total
comment
PMC-RA1, RA2, 1M-bit 64KB 64KB each 64KB 126KB Note)
RB, RB2 EPROM
PMC-RC 128KB 96KB 64KB each 64KB 126KB Note)
ROM module
PMC-RC3 256KB 96KB 64KB each 64KB 254KB Note)
ROM module
PMC-NB 512KB 96KB 64KB each 64KB 288KB
ROM module (222KB)
1MB 96KB 64KB each 64KB 288KB
ROM module (734KB)

Note
All ladder, symbol, comment, and message data items
cannot be created using each maximum memory capacity.
Reduce the memory capacity for any of the data items and
create them so that they add up to the total capacity of each
ROM.

Generate a sequence program within a range of bytes shown in Table 2.8


(a). Calculate the number of bytes of sequence program instructions and
data based on Table 2.8 (b).
When the program is initialized, symbol and comment areas are allocated
32KB (extendable and reducible in 1KB units) on memory. When the
program is initialized, a message area is also allocated 2.1KB (extendable
and reducible in 1KB units). Therefore, program the basic instructions
and functional instructions listed in Table 2.8 (b) in the remaining
capacity which is the difference of the number of bytes shown in Table 2.8
(a) and the number of bytes for symbols, comments, and messages.

Table 2.8 (b) Sizes of sequence program instructions and data

Functional
Basic Functional
instruction Message data Symbol Comment
instruction instruction
parameters
4 bytes 4 bytes 4 bytes 1 byte/character 10 bytes 1 byte/character
(alphanumeric characters)
2 bytes/kana characters

38
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

3 ADDRESS

An address shows a signal location. Addresses include input/output


signals with respect to the machine, the input/output signals with respect
to the CNC, the internal relays, the counters, the keep relays (PMC
parameters), and data table. Each address consists of an address number
(for every 8 signals) and a bit number (0 to 7). Enter the symbol table
showing the relationship between the signal names and the addresses into
the programmer by using the keys of the CRT/MDI or the keys of the
keyboard of the offline programmer as in the case of the sequence
program.
For programming, see Chapter III and IV.
(1) Addresses related to PMC
Four types of addresses as shown in Fig. 3 are necessary for creation
of the PMC sequence program.

Internal relay

Note) Machine
CNC (MT)
signal PMC signal

Nonvolatile memory
(1) Counter
(2) Keep relay
(3) Data table
(4) Variable Timer

3 Addresses related to PMC

(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.

39
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

X 127. 7

Bit number (0 to 7)
Address number (within four numerics after alphabet)

An alphabet must be specified at the beginning of the address number


to indicate the type of the signal as shown in Table 3 (a). When
specifying the address in the byte unit by the functional instruction,
specify X127. In this case, “.” and the bit number are not necessary.

Table 3 (a) Alphabetic characters in address numbers (1)

Model
Character Signal description Power Mate Ć D Power MateĆ F Power MateĆ H
PMC PA1 PMCĆ PA3 PMCĆ PA3 PMCĆ PA3
X Input signal from the machine X0 to X127 X1000 to X1005 X0 to X127
to the PMC (MT to PMC) (I/O Link Master) X1020 to X1027 (I/O Link Master)
X1000 to X1003 (Slave) X1000 to X1003
(Built–in l/O Card) (Built–in I/O Card)
X1020 to X1051 X1020 to X1051
(I/O Link Slave) (I/O Link Slave)
Y Output signal from the PMC to Y0 to Y127 Y1000 to Y1003 Y0 to Y127
the machine (PMC to MT) (I/O Link Master) Y1020 to Y1027 (I/O Link Master)
(Note 3) Y1000 to Y1002 (Slave) Y1000 to Y1002
(Built–in I/ O Card) (Built–in l/O Card)
Y1020 to Y1051 Y1020 to Y1051
(I/O Link Slave) (I/O Link Slave)
F Input signal from the NC to the F0 to F255 F0 to F255 F0 to F255
PMC (NC to PMC) F1000 to F1255
(Dual path control)
G Output signal from the PMC to G0 to G255 G0 to G255 G0 to G255
the NC (PMC to NC) G1000 to G1255
(Dual path control)
R Internal relay (Note 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 (Note 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

Notes
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
Mate–MODEL F.
You cannot use the address X0–127 and Y0–127.

40
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Table 3 (a) Alphabetic characters in address numbers (2)

Model
Character Signal description FS20A FS18A
PMCĆRA1 PMCĆRA3 PMCĆRA1 PMCĆRA2 PMCĆRA3
X Input signal from the machine X0 to X127 X0 to X127
to the PMC (MT to PMC) X1000 to X1013 (Note1) X1000 to X1019
Y Output signal from the PMC to Y0 to Y127 Y0 to Y127
the machine (PMC to MT) Y1000 to Y1013 (Note1) Y1000 to Y1014
F Input signal from the NC to the F0 to F255 F0 to F255
PMC (NC to PMC) F1000 to F125 F1000 to F1255
G Output signal from the PMC to G0 to G255 G0 to G255
the NC (PMC to NC) G1000 to G1255 G1000 to G1255
R Internal relay (Note 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 (Note 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

Notes
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.

41
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 3 (a) Alphabetic characters in address numbers (3)

Chara- Model
Signal description
cter PMCĆRB PMCĆRB2 PMCĆRB3 PMCĆRC PMCĆRC3 PMCĆNB
X Input signal from the machine X0 to X127 X0 to X127
to the PMC (MT to PMC) X1000 to X1039
Y Output signal from the PMC to Y0 to Y127 Y0 to Y127
the machine (PMC to MT) Y1000 to Y1029
F Input signal from the NC to the F0 to F255 F0 to F319
PMC (NC to PMC) F1000 to F1255
G Output signal from the PMC to G0 to G255 G0 to G511
the NC (PMC to NC) G1000 to G1255
R Internal relay (Note 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 (Note 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

Notes
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.

42
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Table 3 (a) Alphabetic characters in address numbers (4)

Model
Signal descrip- Series
Character Series 16-MODEL B/Series 18-MODEL B
tion 18-MODEL B
PMCĆRB3 PMCĆRC3 PMCĆRB4 PMCĆRC4 PMCĆRA1
X Input signal from the X0 to X127 X0 to X127
machine to the PMC X1000 to X1019 X1000 to X1013
(MT to PMC) X1020 to X1039
Y Output signal from Y0 to Y127 Y0 to Y127
the PMC to the Y1000 to Y1014 Y1000 to Y1014
machine (PMC to MT) Y1020 to Y1034
F Input signal from the F0 to F255 F0 to F255 F0 to F511 F0 to F511 F0 to F255
NC to 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 Output signal from G0 to G255 G0 to G255 G0 to G511 G0 to G511 G0 to G255
the PMC to the NC G1000 to G1255 G1000 to G1255 G1000 to G1511 G1000 to G1511 G1000 to G1255
(PMC to NC) G2000 to G2511 G2000 to G2511
R Internal relay (Note 1) 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 –

43
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 3 (a) Alphabetic characters in address numbers (5)

Model
Character Signal description Series 16-MODEL C/Series 18-MODEL C
PMCĆRB5 PMCĆRC3 PMCĆRB6 PMCĆRC4
X Input signal from the machine to the PMC X0 to X127
(MT to PMC) X1000 to X1019
X1020 to X1039
Y Output signal from the PMC to the machine Y0 to Y127
(PMC to MT) Y1000 to Y1014
Y1020 to Y1034
F Input 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 Output signal from the PMC to the NC G0 to G255 G0 to G255 G0 to G511 G0 to G511
(PMC to NC) G1000 to G1255 G1000 to G1255 G1000 to G1511 G1000 to G1511
G2000 to G2511 G2000 to G2511
R Internal relay (Note 1) 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

44
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Table 3 (a) Alphabetic characters in address numbers (6)

Model
Character Signal description Series 21/210-MODEL B
PMCĆRA1 PMCĆRA3
X Input signal from the machine to X0 to X127
the PMC (MT to PMC) X1000 to X1011
Y Output signal from the PMC to the Y0 to Y127
machine (PMC to MT) Y1000 to Y1008 (Note)
F Input signal from the NC to the F0 to F255
PMC (NC to PMC) F1000 to F1255
G Output signal from the PMC to the G0 to G255
NC (PMC to NC) G1000 to G1255
R Internal relay (Note 2) 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 (Note 3) 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.

45
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 3 (a) Alphabetic characters in address numbers (7)

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 (Non–volatile memory) C0 to C79 C0 to C199
K Keep relay (Non–volatile memory) K0 to K19 K0 to K39
K900 to K909
D Data table (Non–volatile memory) D0 to D2999 D0 to D7999
T Variable timer T0 to T79 T0 to T299
(Non–volatile memory)
L Label number L1 to L9999
P Subprogram number P1 to P512 P1 to P2000

Notes
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) PMC–NB(Series 4047).

46
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

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) PMCCNC 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) PMCCNC 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.

47
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

3.2
ADDRESSES
BETWEEN PMC AND
MACHINE TOOL
(PMCMT)

3.2.1 (1) When the FANUC I/O UNIT-MODEL A is used


Addresses between (a) PMC ← MT
PMC and machine tool Addresses are from X0 to X127.
for PMC-RB/RC (b) PMC → MT
Addresses are from X0 to X127.
Up to 1024 input and 1024 output points can be assigned to any
address within the above range in byte units.
(2) When the built-in I/O card is used (except Series 15)
(a) PMC ← MT
Addresses are from X1000 to X1019.
(b) PMC → MT
Addresses are from X1000 to X1014.
The addresses in the above range are always specified. They cannot
therefore be changed when the I/O points are assigned to them.
(3) NC signals whose addresses are fixed and that are input from the
machine tool
Be sure to assign the following signals to be input from the machine tool
to the specified addresses because the NC unit refers to the following
fixed addresses during processing.

Note
If both I/O Unit and built-in I/O card are provided, the
address of the I/O card is valid.
(Except Series 15)

48
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Table 3.2.1 (a) Input Signals Whose Addresses Are Fixed (Series 16/Series 18)

Address
Signal Symbol When the I/O UNIT When the built-in I/O
MODEL A is used card is used
T Signal indicating that X-axis measurement position is reached XAE X4.0 X1004.0
system
t
Signal indicating that Z-axis 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 X-axis measurement position is reached XAE X4.0 X1004.0
t
system
Signal indicating that Y-axis measurement position is reached YAE X4.1 X1004.1
Signal indicating that Z-axis 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 UNIT When the built-in I/O
MODEL A is used card is used
TT Signal indicating that X-axis measurement position is reached XAE X13.0 X1013.0
system
t
Signal indicating that Z-axis 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

49
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 3.2.1(c) Input Signals Whose Addresses Are Fixed (Series 15)

Emergency
g y Skip
p signal
g Measurement position reached signal
Type of I/O unit
nit
stop address address AE1 (XAE) (Note 1) AE2 (ZAE)
Connection unit X6.4 X11.6 X8.3 X8.4
I/O unit X6.4 X11.6 X8.3 X8.4

3.2.2 The sequence program addresses of each module should be decided by the
Assignment of I/O machine tool builder. These decided addresses are set to the programmer
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 in PMC-RB/RC.
For the specifications and details of connections of the I/O interface
module, I/O module, CPU module, and other modules, see
CONNECTING MANUAL of Series 16.

PMC

I/O control Group


unit I/O Unit I/O Unit
#0

AIF01A AIF01B

Base#0 Base#1

3.2.2 (a)

50
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

PMC

I/O control Group


unit I/O Unit I/O Unit
#0

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

Connection unit Group


#3
Base#0

Possible to connect max. 16 groups


Max. 2 Base/Group
Max. 10 Slot/Base

3.2.2 (b)

(1) Group No.


Up to two I/O units can be connected using the additional I/O
interface module AIF01B, based on I/O interface AIF01A. Up to two
I/O units extended from AIF01A are called a group. When only one
interface module is not enough to accommodate the required I/O
modules, or when multiple I/O units are separately located remote
from the machine, connect the first AIF01A and the second AIF01A
with the cable. Up to 16 groups of I/O units can then be connected.
(2) Base No.
In one group, there are 2 max. I/O base units. The I/O unit with the
I/O interface module IF01A is assigned to base No. 0 and the base
No. is assigned No. 1 in order, starting from the one closest to base
No. 0.
(3) Slot No.
A maximum of 5 or 10 I/O modules can be mounted on the I/O base
unit ABU05A, ABU10A, respectively. The module mounting
position on the I/O base unit is expressed with slot Nos. In each base
unit, the mounting position of the I/O interface module is assigned
to slot No. 0 and slot Nos. 1, 2, 3 ... are assigned in order from the
left. In the case of I/O base unit (BU10B) for 10 slots, slot Nos. 1,
2 follow slot No. 8. The last slot Nos. 1, 2 are assigned for the next
base address. Each module can be mounted on an arbitrary slot. It
is possible to mount modules by skipping some slots.

51
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

(4) Module name


For module names, see Table 3.2.2 (a) to (c).
An actual module name begins with A. When specifying a module,
omit the first letter A from the module name.
Example) When specifying module AID16D, enter ID16D.

Table 3.2.2 (a) Input Modules


Number Indica-
Input Module name Rated Rated
No. Polarity Response time of input Terminal tion
format (Actual module name) voltage current
points by LED
1 Non-insulati ID32A Not
24VDC 7.5mA Both 20 ms max. 32 Connector
on DC input (AID32A) provided
ID32B Not
24VDC 7.5mA Both 2 ms max. 32 Connector
(AID32B) provided
2 Insulation ID16C Terminal
24VDC 7.5mA NEG 20 ms max. 16 Provided
DC input (AID32C) board
ID16D Terminal
24VDC 7.5mA POS 20 ms max. 16 Provided
(AID32D) board
ID32E Not
24VDC 7.5mA Both 20 ms max. 32 Connector
(AID32E) provided
ID32F Not
24VDC 7.5mA Both 2 ms max. 32 Connector
(AID32F) provided
3 Non-insulati IA16G 100 to 14.5mA ON : 20ms max Terminal
16 Provided
on DC input (AIAHG) 120VAC (AC120V) OFF : 45ms max board

Polarity NEG : 0 V common (current output)


POS : 24 V common (current output)

Table 3.2.2 (b) Output Modules


Number
Number
Output Module name Rated Rated of Indication
No. Polarity of Terminal Fuse
format (Actual module name) voltage current points/ by LED
points
common
1 Insulation OD08C 12 to 24 Terminal
2A NEG 8 8 Provided Provided
DC output (AOD08C) VDC board
OD08D Terminal
2A POS 8 8 Provided Provided
(AOD08D) board
OD16C Terminal Not
0.5A NEG 16 8 Provided
(AOD16C) board provided
OD16D Terminal Not
0.5A POS 16 8 Provided
(AOD16D) board provided
OD32C Not
0.3A NEG 32 8 Connector Not provided
(AOD32C) provided
OD32D Not
0.3A POS 32 8 Connector Not provided
(AOD32D) provided
2 AC output OA05E 100 to Terminal
2A – 5 1 Provided Provided
(AOA05E) 240 VAC board
OA08E Terminal
1A – 8 4 Provided Provided
(AOA08E) board
OA12E 100 to Terminal
0.5A – 12 6 Provided Provided
(AOR12G) 120 VAC board
3 Relay OR08G 250 VAC/ Terminal Not
4A – 8 1 Provided
output (AOR08G) 30 VDC board provided
max
max.
OR16G Terminal Not
2A – 16 4 Provided
(AOR16G) board provided

Polarity NEG : 0 V common (current output)


POS : 24 V common (current output)

52
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Table 3.2.2 (c) Other Modules

Module name Occupied


 Name Specifications
(actual module name) address
1 FANUC CNC SYSTEM FS04A Input: 4 bytes FANUC Series 0–c
FANUC Power Mate Output: 4 bytes (Applicable of FANUC I/O Link)
Mate MODEL
FANUC Power Mate–MODEL
FS08A Input: 8 bytes
A/B/C/D/E/F/H
Output: 8 bytes

OC02I Input: 16 bytes FANUC Power Mate–MODEL D/H

OC02O Output: 16 bytes

OC03I Input: 32 bytes

OC03O Output: 32 bytes

2 Analog input module AD04A Input: 8 bytes


(AAD04A)

4 Operator’s panel connection unit OC01I Input: 12 bytes Ordering drawing No.
A16B-2200-0660 (Sink type)
ty e)
OC01O Output: 8 bytes A16B-2201-0730 (Source type)

5 Operator’s panel connection unit /8 Input: 8 bytes Ordering drawing No.


A16B-2200-0661 (Sink type)
ty e)
/4 Output: 4 bytes A16B-2201-0731 (Source type)

6 Machine operator’s panel interface unit OC02I Input: 16 bytes

OC02O Output: 16 bytes

OC03I Input: 32 bytes

OC03O Output: 32 bytes

7 I/O link connection unit /V Input: V bytes Specify 1 to 8 in V.


Output: V bytes

OC02I Input: 16 bytes

OC02O Output: 16 bytes

OC03I Input: 32 bytes

OC03O Output: 32 bytes

8 I/O unit model B #V Input: V bytes Specify 1 to 10 in V.


Output: V bytes

## Input: 4 bytes Specify an area for reading the


power-on/off state of each I/O unit
model B.

9 Special modules not listed in Tables /V Input: V bytes Specify 1 to 8 in V.


3.1.2(a) and 3.1.2(b) Output: V bytes

Notes
1. For the method of I/O link connection unit assignment, see
Subsection 3.2.3.
2. For the method of I/O link model B assignment, see
Subsection 3.2.4.

53
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

(5) How to set address to each module


The character and the mount position of each module is now decided
with the group number, base number, slot number, and module name,
so the address of each module can now be decided, corresponding
these data and the input/output addresses. After display the I/O unit
address screen as shown below on the programmer’s CRT, set
necessary data on the screen. The module address is now decided.
The occupying DI/DO points (bytes) of each module are stored in the
programmer, so just decide the address of the head byte of each
module, and the addresses of the other bytes in the module are
automatically decided by the programmer.
For instance, when the module ID32A is assigned address X5 as in
Fig. 3.2.2 (d), the necessary 4 bytes are automatically secured. For
details on operation, see Chapters III, IV, “Programmer”. The
input/output addresses of each module can be freely decided in this
method at the machine tool builder, so the address can be decided
when making the ladder diagram, as long as it does not duplicate with
the addresses of each module.

ADDRESS GROUP BASE SLOT NAME

X000
X001
X002
X003
X004
X005 0 0 5 ID32A
X006 0 0 5 ID32A
Automaticall X007 0 0 5 ID32A
set X008 0 0 5 ID32A
X009

3.2.2 (d) I/O unit address screen

Note
When assigning Built-in I/O card, Connection unit 1,
Connection unit 2 or Connection unit for operator’s panel,
set base number to 0 and slot number to 1.

(6) Notes when setting addresses


(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/D-converted digital value from the input
address (XVVV) or when writing the D/A-converting value to the
output address (YVVV), readout and write-in must always be
done in word (16 bits) units.
No transfer instruction is exclusively prepared for each word (16
bits). However, each word can be transferred by using the ADDB

54
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

(SUB 36) instruction in which setting the format specification to 2


bytes, setting the addend data to constant ”0”, and then, setting the
addition result output address to an address at the transfer
destination, for example.

ADDRESS GROUP BASE SLOT NAME

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.2 (e)

3.2.3 Concept:
I/O link connection unit In conventional data transfer, when data is to be transferred between CNC
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.)

CNC A I/ O Unit I/ O Unit CNC B


Model A Model A

(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.

55
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

CNC A I/ O Unit I/ O Unit CNC B


Model A Model A

This portion is replaced by an I/O link


connection unit.
(a)
I/ O Unit
Model A  I/ O Unit
Model A

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.

CNC A I/ O Unit I/ O Unit CNC B


Model A Model A

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 16-byte addresses is attached to the
input side in GROUP = 1, enter “1.0.1.OC02I.”

56
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

3.2.4  Related hardware publications:


I/O unit model B FANUC I/O Unit-MODEL B Connection and Maintenance Manual
(B–62163E)
assignment
I/O unit model Bs can be used together with a Power Mate (which is a
conventional I/O link unit), operator panel interface unit, connection unit,
and I/O unit model As. In this case, the I/O unit model Bs alone occupy
one group; that is, no other type of unit can be present in that group.
An example of connection is shown below.

I/ O LINK
MASTER

[GROUP] =0
Power Mate

[BASE] =0, [SLOT] =1


[GROUP] =1

Operator’s panel
interface unit

[BASE] =0, [SLOT] =1


[GROUP] =2

→SLOT No. →SLOT No.

I/O Unit- A I/O Unit- A


[GROUP] =3

[BASE] =0 [BASE] =1

I/O unit model B


interface unit
I/O unit model B I/O unit model B
DI/DO unit DI/DO unit
(Unit No.=1) (Unit No.=20)

[BASE] =0, [SLOT] =1 [BASE] =0, [SLOT] =20

I/O unit model B I/O unit model B


DI/DO unit DI/DO unit
(Unit No.=5) (Unit No.=10)

[BASE] =0, [SLOT] =5 [BASE] =0, [SLOT] =10

I/O unit model B I/O unit model B


DI/DO unit DI/DO unit
(Unit No.=30) (Unit No.=9)

[BASE] =0, [SLOT] =30 [BASE] =0, [SLOT] =9

57
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Method of assignment: Specify a group number in [GROUP]. Always specify 0 in [BASE].


Specify the unit number of an I/O unit model B in [SLOT]. But when you
assign the power–on/off intormation, specify in [SLOT].
The data specified by [SLOT] and [NAME] is as follows:
[SLOT] = 0, 1, ...30:
Unit number (1 to 30) of an I/O unit model B DI/DO unit
[NAME]: Addresses occupied by an I/O unit model B
Input/output size of ([base unit] Assigned
Occupied address
+ [extended unit]) name
1 byte #1 Input/output: 1 byte
2 bytes #2 Input/output: 2 bytes
3 bytes #3 Input/output: 3 bytes
4 bytes #4 Input/output: 4 bytes
6 bytes #6 Input/output: 6 bytes
8 bytes #8 Input/output: 8 bytes
10 bytes #10 Input/output: 10 bytes
Power-on/off information ## Input: 4 bytes

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.”

3.2.5 When a Power Mate–MODEL D/H is used as I/O Link slave, it need to
be assigned on the I/O Link master side.
Power Mate–MODEL An example of connection is shown below.
D/H assignment
I/ O LINK
MASTER

[GROUP] =0
Operator’s panel
interface unit

[BASE] =0, [SLOT] =1


[GROUP] =1

Power Mate

[BASE] =0, [SLOT] =1

Method of assignment: Specify a group number in [GROUP].


Always specify 0 in [BASE].
Always specify 1 in [SLOT].
The data specified by [NAME] is as follows:
I/O points Input unit name at the Output unit name at the
(input/output) time of assignment time of assignment
32/32 FS04A FS04A
64/64 FS08A FS08A
128/128 OC02I OC02O
256/256 OC03I OC03O

Setting: When a Power Mate–D 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”

58
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

3.3 In each model, the following signals (bytes) can be used as internal relays.
This aea is cleared to zero when the power is turned on.
INTERNAL RELAY
ADDRESSES (R)
Model PA1 PA3

Number of 1100 1118


bytes

Model RA1 RA2 RA3

Number of
1100 1118 1118
bytes

Model RB RB2 RB3/RB5 RB4/RB6

Number of
1100 1118 1618 3200
bytes

Model RC RC3 RC4

Number of
bytes 1600 1618 3200

Model NB NB2

Number of
bytes 1618 3200

59
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Address number
 7 6 5 4 3 2 1 0

R0 PMC-PA1 PMC-RB3 PMC-RB4


PMC-PA3 PMC-RB5 PMC-RB6
R1 PMC-RA1 PMC-RC PMC-RC4
⋅ PMC-RA2 PMC-RC3 PMC-NB2
PMC-RA3 PMC-NB

PMC-RB

PMC-RB2

R999




R1499


R2999

R9000 PMC-PA1 PMC-PA3 PMC-RB4


⋅ PMC-RA1 PMC-RA2 PMC-RB6
PMC-RB PMC-RA3 PMC-RC4

PMC-RC PMC-RB2 PMC-NB2

⋅ PMC-RB3
R9099 PMC-RB5
PMC-RC3

PMC-NB


R9117


R9199

60
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

3.3.1
Area managed by the (1) R9000 (Operation output register for the ADDB, SUBB, MULB,
system program DIVB, and COMPB functional instructions)

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

The instruction ended


in error.

(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) (PMC-RC 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

R9010 Contents of the command to


97 96 95 94 93 92 91 90 be executed
Data output when the
R9011 97 96 95 94 93 92 91 90 processing is completed

R9012
Addresses of the control data for SUB90
R9013

R9014
Addresses of the control data for SUB91
R9015

R9026
Addresses of the control data for SUB97
R9027

61
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

(5) R9100 to R9117 (Interface area for the FNC9x functional


instruction) (PMC-RC3/RC4/NB/NB2 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
Contents of the command
R9100 97 96 95 94 93 92 91 90 to be executed

Data output when the


R9101 97 96 95 94 93 92 91 90 processing is completed

R9102
Addresses of the control data for SUB90
R9103

R9104
Addresses of the control data for SUB91
R9105

R9116
Addresses of the control data for SUB97
R9117

(6) R9091 (System timer)


4 signals can be used as system timer.
The specifications of every signal are as following.

7 6 5 4 3 2 1 0
R9091

always OFF
always ON

Cyclic signal of 200 ms


(104 ms ON, 96 ms OFF)

Cyclic signal of 1 second.


(504 ms ON, 496 ms OFF)

Note
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 (ON-OFF) includes 8 ms errors.

62
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

R9091. 5

104ms 96ms

200ms

R9091. 6

504ms 496ms

1 second

63
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

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 messages 200 200

Model RA1 RA2 RA3

Number of bytes 25 25 25

Number of messages 200 200 200

RB3/ RB4/
Model RB RB2 RB5 RB6

Number of bytes 25 25 25 125

Number of messages 200 200 200 1000

Model RC RC3 RC4

Number of bytes 25 25 125

Number of messages 200 200 1000

Model NB NB2

Number of bytes 25 125

Number of messages 200 1000

64
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Address number

7 6 5 4 3 2 1 0

A0
PMC-PA1 PMC-RB4
PMC-PA3 PMC-RB6
A1 PMC-RA1 PMC-RC4
PMC-RA2 PMC-NB2
PMC-RA3
PMC-RB
PMC-RB2
PMC-RB3
PMC-RB5
PMC-RC
A24 PMC-RC3
PMC-NB

A124

3.4 Address of message display reguest

65
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

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 region is nonvolatile, the contents of the memory do not
disappear even when the power is turned off.

Model PA1 PA3

Number of bytes 80 80

Number of counters 20 20

Model RA1 RA2 RA3

Number of bytes 80 80 80

Number of counters 20 20 20

RB3/ RB4/
Model RB RB2
RB5 RB6

Number of bytes 80 80 80 200

Number of counters 20 20 20 50

Model RC RC3 RC4

Number of bytes 80 80 200

Number of counters 20 20 50

Model NB NB2

Number of bytes 80 200

Number of counters 20 50

66
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Address number

7 6 5 4 3 2 1 0

PMC-PA1 PMC-RB4
C0 Preset value
PMC-PA3 PMC-RB6

C1 PMC-RA1 PMC-RC4
Counter PMC-RA2 PMC-NB2
No. 1 PMC-RA3
C2 Integrate value
PMC-RB
C3 PMC-RB2
PMC-RB3
PMC-RB5
PMC-RC
PMC-RC3
PMC-NB
C76 Preset value

C77 Counter
No. 20
C78 Integrate value

C79

C196 Preset value

C197 Counter
No. 50
C198 Integrate value

C199

3.5 Address of Counter

67
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

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 region is nonvolatile,
ADDRESS OF KEEP the contents of the memory do not disappear even when the power is
RELAY AND turned off.
NONVOLATILE
MEMORY CONTROL
(K)
Model PA1 PA3

Number of bytes 20 20
Nonvolatile memory
control address K16 K16

PMC control software K17 K17


parameter to to
K19 K19

Model RA1 RA2 RA3

Number of bytes 20 20 20
Nonvolatile memory
control address K16 K16 K16

PMC control software K17 K17 K17


parameter to to to
K19 K19 K19

RB3/ RB4/
Model RB RB2
RB5 RB6

Number of bytes 20 20 20 50
Nonvolatile memory
control address K16 K16 K16 K16

PMC control software K17 K17 K17 K900


parameter to to to to
K19 K19 K19 K909

Model RC RC3 RC4

Number of bytes 20 20 50
Nonvolatile memory
control address K16 K16 K16

PMC control software K17 K17 K900


parameter to to to
K19 K19 K909

Model NB NB2

Number of bytes 20 50

Nonvolatile memory K16 K16


control address
PMC control software K17 K900
parameter to to
K19 K909

68
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

Address number

7 6 5 4 3 2 1 0

K0
PMC-PA1 PMC-RB4
PMC-PA3 PMC-RB6
K1 PMC-RA1 PMC-RC4
PMC-RA2 PMC-NB2
PMC-RA3
PMC-RB
PMC-RB2
PMC-RB3
PMC-RB5
PMC-RC
K19 PMC-RC3
PMC-NB

K39

K900
PMC-RB4
PMC-RB6
PMC-RC4
PMC-NB2

K909

For the information about using “Nonvolatile memory control”, see the
section “6.1”.
PMC control software parameter area is used by PMC control software.
For more information about PMC control software parameter, see the
section “II 4.3”.
3.6 Address of Keep Relay and Nonvolative Memory Control

69
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

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

Number of bytes 1860 1860

Model RA1 RA2 RA3

Number of bytes 1860 1860 1860

RB3/ RB4/
Model RB RB2
RB5 RB6
Number of bytes 1860 1860 3000 8000

Model RC RC3 RC4

Number of bytes 3000 3000 8000

Model NB NB2

Number of bytes 3000 8000

Address number

7 6 5 4 3 2 1 0

D0 PMC-PA1 PMC-RB3 PMC-RB4


PMC-PA3 PMC-RB5 PMC-RB6
D1 PMC-RA1 PMC-RC PMC-RC4
PMC-RA2 PMC-RC3 PMC-NB2
PMC-RA3 PMC-NB
PMC-RB
PMC-RB2

D1859

D2999

D7999

3.7 Address of Data Table

70
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

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 region is nonvolatile, the contents of the memory do not
disappear even when the power is turned off.

Model PA1 PA3

Number of bytes 80 80

Number of timers 40 40

Model RA1 RA2 RA3

Number of bytes 80 80 80

Number of timers 40 40 40

RB3/ RB4
Model RB RB2
RB5 RB6

Number of bytes 80 80 80 300

Number of timers 40 40 40 150

Model RC RC3 RC4

Number of bytes 80 80 300

Number of timers 40 40 150

Model NB NB2

Number of bytes 80 300

Number of timers 40 150

71
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

Address number

7 6 5 4 3 2 1 0

Timer PMC-PA1 PMC-RB4


T0
No. 1 PMC-PA3 PMC-RB6
T1 PMC-RA1 PMC-RC4
PMC-RA2 PMC-NB2

T2 Timer PMC-RA3
No. 2 PMC-RB
T3 PMC-RB2
PMC-RB3
PMC-RB5
PMC-RC
PMC-RC3
PMC-NB
Timer
T78
No. 40
T79

Timer
T298
No. 150
T299

3.8 Timer Address

72
B–61863E/09 I. PMC SEQUENCE PROGRAM 3. ADDRESS

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.

Model PA1 PA3

Number of labels – 9999

Model RA1 RA2 RA3

Number of labels – – 9999

RB3/ RB4/
Model RB RB2 RB5 RB6

Number of labels – – 9999 9999

Model RC RC3 RC4

Number of labels – 9999 9999

Model NB/
NB2
Number of labels 9999

73
3. ADDRESS I. PMC SEQUENCE PROGRAM B–61863E/09

3.10 Subprogram numbers are used to specify jump destination subprogram


labels in the CALL and CALLU instructions. Subprogram number must
SUBPROGRAM be unique in the entire sequence program. In each model, the following
NUMBERS (CALL, number of subprograms can be used.
CALLU, SP) (P)
Model PA1 PA3

Number of subprograms – 512

Model RA1 RA2 RA2

Number of subprograms – – 512

RB3/ RB3/
Model RB RB2 RB5 RB6

Number of subprograms – – 512 2000

Model RC RC3 RC4

Number of subprograms – 512 2000

Model NB NB2

Number of subprograms 512 2000

74
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4 PMC BASIC INSTRUCTIONS

Designing a sequence program begins with writing a ladder diagram. The


ladder diagram is written using relay contact symbols and functional
instruction code. (These will be described later.) Logic written in the
ladder diagram is entered as a sequence program in the Programmer.
There are two sequence program entry methods. One is the entry method
with the mnemonic language (PMC instructions such as RD, AND and
OR). The other is the relay symbol method (using relay symbols such as
, and ) in which the sequence program is entered by using the
relay contact symbols and the functional instruction symbols of the
ladder
diagram. When the relay symbol method is used, the ladder diagram
format can be used and programming can be performed without
understanding the PMC instructions (basic instructions such as RD, AND
and OR).
Actually, however, the sequence program entered by the relay symbol
method is also internally converted into the instruction corresponding to
the PMC instruction. When the sequence program is punched on a paper
tape and then entered to the programmer, programming must be
performed with the PMC instructions.
Also, the meanings of the functional instructions described later must be
understood fully. See Sub-section 4.1 and Section 5.
On how to enter the sequence program into the programmer by using the
PMC instructions and relay symbols, see Chapter III or IV.
The following should be noted first before reading the explanation on
PMC instructions.
This manual describes the entry method using mnemonic language.
(1) Signal address
Relay coils and contacts written in a ladder diagram are each given
an address, represented with an address number and a bit number.
(See Fig. 4 (a)) Zero suppression is possible for the head zero. For
details of address, see Section 3.
Signal name
Relay name

A B
RO
X8.1 R12.6
C R9.0

Y20.4 Bit number

Address number

4 (a) Address of signal

75
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(2) Type
(a) Basic instruction
Basic instructions are most often used when designing sequence
programs. They perform one-bit 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) ) .
There are two types of PMC instructions, basic and functional.

Stack register (which temporarily stores the inter- The result of an operation
mediate result of an operation) currently being executed
enters here.

ST8 ST7 ST6 ST5 ST4 ST3 ST2 ST1 ST0

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.

76
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

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.

Table 4.1(a) Basic instruction and processing

Instruction
 Format 1 Format 2 Contents of processing
(coding) (keys ofFAPT 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.

3 WRT W Outputs the results of logical operations (status of ST0) to a specified


address.

4 WRT.NOT WN Inverts the results of logical operations (status of ST0) and outputs it to a
specified address.

5 AND A Induces a logical product.

6 AND.NOT AN Inverts the status of a specified signal and induces a logical product.

7 OR O Induces a logical sum.

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 and sets the status of a specified signal,
reads and sets it in ST0.

10 RD.NOT.STK RNS Shifts the stack register left one bit, inverts the logical status of a specified
signal, reads 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.

77
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Basic instructions available on each models are as shown in the “Table


4.1(b)”.

Table 4.1(b) Basic instruction

Model
PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ
No. Instruction PA1 PA3 RA1/ RB/ RC RA3 RB3/ RC3/ NB/
RA2 RB2 RB4/ RC4 NB2
RB5/
RB6
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

 : Cannot be used f : Can be used

Note
SET/RST are not availab eon PMC-RA3 for Series 20.

78
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.1 (1) Format


RD (Address)

Bit number

Address number

(2) Reads the status (1 or 0) of a signal at a specified address and sets it


in ST0.
(3) Is used when beginning coding with con-tact A ( ). See the ladder
diagram of Fig. 4.1.1 and entries in the coding sheet of Table 4.1.1
for an example of using the RD instruction.
(4) The signal read by the RD instruction may be any signal entered as
the logical condition for one coil (output).

A B C
W1

X10.1 X2.0 R2.1 R200.0

D G

W2
X5.1 R5.4 R200.1
E

Y5.2
F

Y5.3

4.1.1 Ladder diagram

Table 4.1.1 Coding for Fig. 4.1.1

Coding sheet Status of operating result


Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD X10 . 1 A A
2 AND X2 . 0 B A.B
3 AND . NOT R2 . 1 C A.B.C
4 WRT R200 . 0 W1 output A.B.C
5 RD X5 . 1 D D
6 OR . NOT Y5 . 2 E D+E
7 OR Y5 . 3 F D+E+F
8 AND R5 . 4 G (D+E+F)G
9 WRT R200 . 1 W2 output (D+E+F)G
10

79
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

4.1.2 (1) Format


RD . NOT
(Address)

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

R1.1 F2.2 F3.3 R210.1

D G

W2
G5.1 R10.5
E R210.2

X4.2
F

Y10.7

4.1.2 Ladder diagram

Table 4.1.2 Coding for Fig. 4.1.2

Coding sheet Status of operating result


Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD. NOT R1 . 1 A A
2 AND . NOT F2 . 2 B A.B
3 AND . NOT F3 . 3 C ABC
4 WRT R210 . 1 W1 output ABC
5 RD. NOT G5 . 1 D D
6 OR . NOT X4 . 2 E D+E
7 OR Y10 . 7 F D+E+F
8 AND R10 . 5 G (D+E+F)G
9 WRT R210 . 2 W2 output (D+E+F)G

80
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.3 (1) Format


WRT
(Address)

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

4.1.3 Ladder diagram

Table 4.1.3 Coding for Fig. 4.1.3

Coding sheet Status of operating result


Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD R220 . 1 A A
2 OR X4 . 2 B A+B
3 AND G2 . 2 C (A+B)C
4 WRT Y11 . 1 W1 output (A+B)C
5 WRT Y14 . 6 W2 output (A+B)C

81
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

4.1.4 (1) Format


WRT. NOT (Address)

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

4.1.4 Ladder diagram

Table 4.1.4 Coding for Fig. 4.1.4


Coding sheet Status of operating result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD R220 . 1 A A
2 OR X4 . 2 B A+B
3 AND G2 . 2 C (A+B) · C
4 WRT Y11 . 1 W1 output (D+E) · F
5 WRT. NOT Y14 . 6 W2 output (A+B) · C

82
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.5 (1) Format


AND (Address)

Bit number

Address number

(2) Induces a logical product.


(3) See Fig. 4.1.1 and Table 4.1.1 for an example of using the AND
instruction.

4.1.6 (1) Format


AND. NOT (Address)

Bit number

Address number

(2) Inverts the status of a signal at a specified address and induces a


logical product.
(3) See Fig. 4.1.1 and Table 4.1.1 for an example of using the AND.NOT
instruction.

4.1.7 (1) Format


OR (Address)

Bit number

Address number

(2) Induces a logical sum.


(3) See Fig. 4.1.1 and Table 4.1.1 for an example of using the OR
instruction.

4.1.8 (1) Format


OR. NOT (Address)

Bit number

Address number

(2) Inverts the status of a signal at a specified address and induces a


logical sum.
(3) See Fig. 4.1.1 and Table 4.1.1 for an example of using the OR.NOT
instruction.

83
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

4.1.9 (1) Format


RD. STK (Address)

Bit number

Address number

(2) Stacks the intermediate results of a logical operations. After shifting


the stack register left one bit, sets a signal at a specified address to
ST0.
(3) Is used when the signal to be specified is contact A ( ).
(4) See Fig. 4.1.9 and Table 4.1.9 for an example of using the RD.STK
instruction.

A B
W1
X1.1 Y1.2 Y15.0
C D

X1.3 Y1.4
E F

R2.1 R3.5

4.1.9 Ladder diagram

Table 4.1.9 Coding for Fig. 4.1.9

Coding sheet Status of operating result


Step
Instruction Address No. Bit No. Remarks ST2 ST1 ST0
Number
1 RD X1 . 1 A A
2 AND Y1 . 2 B AB
3 RD. STK X1 . 3 C AB C
4 AND Y1 . 4 D AB CD
5 OR. STK AB+CD
6 RD. STK R2 . 1 E AB+CD E
7 AND R3 . 5 F AB+CD EF
8 OR.STK AB+CD+EF
9 WRT Y15 . 0 W1 output AB+CD+EF
10

84
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.10 (1) Format


RD. NOT. STK (Address)

Bit number

Address number

(2) Stacks the intermediate results of a logical operations. Shifts the


stack register left one bit, inverts the status of a signal at a specified
address and sets it in ST0.
(3) Is used when the signal to be specified is contact B ( ).
(4) See Fig. 4.1.10 and Table 4.1.10 for an example of using the
RD.NOT.STK instruction.

A B E F
W1
X1.0 X1.1 Y1.2 Y1.3 Y15.7
C D G H

R1.4 R1.5 X1.6 Y1.7

4.1.10 Ladder diagram

Table 4.1.10 Coding for Fig. 4.1.10


Coding sheet Status of operating result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD X1 . 0 A A
2 AND. NOT X1 . 1 B AB
3 RD.NOT.STK R1 . 4 C AB C
4 AND. NOT R1 . 5 D AB CD
5 OR. STK AB+CD
6 RD. STK Y1 . 2 E AB+CD E
7 AND Y1 . 3 F AB+CD EF
8 RD.STK X1 . 6 G AB+CD EF G
9 AND. NOT Y1 . 7 H AB+CD EF GH
10 OR. STK AB+CD EF+GH
11 AND. STK (AB+CD)(EF+GH)
12 WRT Y15 . 7 W1 output (AB+CD)(EF+GH)
13
14

85
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

4.1.11 (1) Format


AND. STK (Address)

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.

4.1.12 (1) Format


OR. STK (Address)

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.

86
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.13 (1) Format


SET (Address)

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

4.1.13 Ladder diagram

Table 4.1.13 Coding for Fig. 4.1.13


Coding sheet Status of operating result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD R0 . 0 A A C
2 OR X0 . 0 B A+B C
Y0.0
3 SET Y0 . 0 – – (A+B) +C
output

87
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(4) Remarks
(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)

X0.0 Y0.1 X0.0

f
R0.0 Y0.1
D
D f
D
D
D X0.0
D
D
D

END2 END2

Example 1 Example 2

D The relation between COM and COME.


The operation of SET/RST in the section of COM/COME is as
follows.
COM condition ON (ACT=1) : It operates usually.
COM condition OFF (ACT=0) : SET does not operate.

88
B–61863E/09 I. PMC SEQUENCE PROGRAM 4. PMC BASIC INSTRUCTIONS

4.1.14 (1) Format


RST (Address)

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

4.1.14 Ladder diagram

Table 4.1.14 Coding for Fig. 4.1.14


Coding sheet Status of operating result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
Number No.
1 RD R0 . 0 A A C
2 OR X0 . 0 B A+B C
Y0.0
3 SET Y0 . 0 – (A+B) +C
output

89
4. PMC BASIC INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(4) Remarks
(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)

X0.0 Y0.1 X0.0

f
.
R0.0 Y0.1
.
f
.
X0.0
. .

. .

END2 END2

Example 1 Example 2

D The relation between COM and COME.


The operation of SET/RST in the section of COM/COME is as
follows.
COM condition ON (ACT=1) : It operates usually.
COM condition OFF (ACT=0) : RST does not operate.

90
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5 FUNCTIONAL INSTRUCTIONS

In preparing a sequence program, some functions such as the function for


controlling rotation via the shorter path, are difficult to program with
basic instructions, which perform only one-bit logical operations.
Therefore, functional instructions are available to facilitate
programming. See Table 5 (a).
Table 5 (a) Types and processing of functional instructions (1)

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 first-level ladder program f f

END2 SUB2 S2 End of a second-level ladder program f f

END3 SUB48 S48 End of a third-level ladder program  

TMR TMR S3 or TMR Timer processing f f

TMRB SUB24 S24 Fixed timer processing f f

TMRC SUB54 S54 Timer processing f f

DEC DEC S4 or DEC Decoding f f

DECB SUB25 S25 Binary decoding f f

CTR SUB5 S5 Counter processing f f

CTRC SUB55 S55 Counter processing f f

ROT SUB6 S6 Rotation control f f

ROTB SUB26 S26 Binary rotation control f f

COD SUB7 S7 Code conversion f f

CODB SUB27 S27 Binary code conversion f f

MOVE SUB8 S8 Data transfer after logical AND f f

MOVOR SUB28 S28 Data transfer after logical OR f f

MOVB SUB43 S43 Transfer of 1 byte  f

MOVW SUB44 S44 Transfer of 2 bytes  f

MOVN SUB45 S45 Transfer of an arbitrary number of bytes  f

COM SUB9 S9 Common line control f f

 : Cannot be used f : Can be used

91
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5 (a) Types and processing of functional instructions (2)

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

JMP SUB10 S10 Jump f f

JMPE SUB30 S30 End of a jump f f

JMPB SUB68 S68 Label jump 1  f

JMPC SUB73 S73 Label jump 2  f

LBL SUB69 S69 Label  f

PARI SUB11 S11 Parity check f f

DCNV SUB14 S14 Data conversion f f

DCNVB SUB31 S31 Extended data conversion f f

COMP SUB15 S15 Comparison f f

COMPB SUB32 S32 Binary comparison f f

COIN SUB16 S16 Coincidence check f f

SFT SUB33 S33 Shift register f f

DSCH SUB17 S17 Data search f f

DSCHB SUB34 S34 Binary data search f f

XMOV SUB18 S18 Indexed data transfer f f

XMOVB SUB35 S35 Binary indexed data transfer f f

ADD SUB19 S19 Addition f f

ADDB SUB36 S36 Binary addition f f

SUB SUB20 S20 Subtraction f f

SUBB SUB37 S37 Binary subtraction f f

MUL SUB21 S21 Multiplication f f

MULB SUB38 S38 Binary multiplication f f

DIV SUB22 S22 Division f f

DIVB SUB39 S39 Binary division f f

NUME SUB23 S23 Constant definition f f

NUMEB SUB40 S40 Binary constant definition f f

DISP SUB49 S49 Message display  

DISPB SUB41 S41 Extended message display f f

EXIN SUB42 S42 External data input f f

WINDR SUB51 S51 Window data read f f

WINDW SUB52 S52 Window data write f f

 : Cannot be used f : Can be used

92
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (a) Types and processing of functional instructions (3)

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

PSGN2 SUB63 S63 Position signal output 2 f f

DIFU SUB57 S57 Rising edge detection  f

DIFD SUB58 S58 Falling edge detection  f

EOR SUB59 S59 Exclusive OR  f

AND SUB60 S60 Logical AND  f

OR SUB61 S61 Logical OR  f

NOT SUB62 S62 Logical NOT  f

END SUB64 S64 End of a subprogram  f

CALL SUB65 S65 Conditional subprogram call  f

CALLU SUB66 S66 Unconditional subprogram call  f

SP SUB71 S71 Subprogram  f

SPE SUB72 S72 End of a subprogram  f

AXCTL SUB53 S53 PMC axes control f f

 : Cannot be used f : Can be used

93
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5 (a) Types and processing of functional instructions (4)

Model
Instruc-
Instr c SUB PMCĆ
Processing PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ
tion number NB/
RA1 RA2 RA3 RB RB2 RB3 RC RC3
NB2

END1 1 End of a first-level ladder program f f f f f f f f f

END2 2 End of a second-level ladder program f f f f f f f f f

END3 48 End of a third-level ladder program       f f f

TMR 3 Timer processing f f f f f f f f f

TMRB 24 Fixed timer processing f f f f f f f f f

TMRC 54 Timer processing f f f f f f f f f

DEC 4 Decoding f f f f f f f f f

DECB 25 Binary decoding f f f f f f f f f

CTR 5 Counter processing f f f f f f f f f

CTRC 55 Counter processing f f f f f f f f f

ROT 6 Rotation control f f f f f f f f f

ROTB 26 Binary rotation control f f f f f f f f f

COD 7 Code conversion f f f f f f f f f

CODB 27 Binary code conversion f f f f f f f f f

MOVE 8 Data transfer after Logical AND f f f f f f f f f

MOVOR 28 Data transfer after logical OR f f f f f f f f f

MOVB 43 Transfer of 1 byte   f   f  f f

MOVW 44 Transfer of 2 bytes   f   f  f f

MOVN 45 Transfer of an arbitrary number of bytes   f   f  f f

COM 9 Common line control f f f f f f f f f

COME 29 End of common line control f f f f f f f f f

JMP 10 Jump f f f f f f f f f

JMPE 30 End of a jump f f f f f f f f f

JMPB 68 Label jump 1   f   f  f f

JMPC 73 Label jump 2   f   f  f f

LBL 69 Label   f   f  f f

PARI 11 Parity check f f f f f f f f f

DCNV 14 Data conversion f f f f f f f f f

DCNVB 31 Binary data conversion f f f f f f f f f

COMP 15 Comparison f f f f f f f f f

COMPB 32 Binary comparison f f f f f f f f f

COIN 16 Coincidence check f f f f f f f f f

SFT 33 Shift register f f f f f f f f f

DSCH 17 Data search f f f f f f f f f

DSCHB 34 Binary data search f f f f f f f f f

 : Cannot be used f : Can be used

94
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (a) Types and processing of functional instructions (5)

Model
Instruc-
Instr c SUB PMCĆ
Processing PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ PMCĆ
tion number NB/
RA1 RA2 RA3 RB RB2 RB3 RC RC3
NB2

XMOV 18 Indexed data transfer f f f f f f f f f

XMOVB 35 Binary indexed data transfer f f f f f f f f f

ADD 19 Addition f f f f f f f f f

ADDB 36 Binary addition f f f f f f f f f

SUB 20 Subtraction f f f f f f f f f

SUBB 37 Binary subtraction f f f f f f f f f

MUL 21 Multiplication f f f f f f f f f

MULB 38 Binary multiplication f f f f f f f f f

DIV 22 Division f f f f f f f f f

DIVB 39 Binary division f f f f f f f f f

NUME 23 Constant definition f f f f f f f f f

NUMEB 40 Binary constant definition f f f f f f f f f

DISP 49 Message display    f f f f f 

DISPB 41 Extended message display f f f f f f f f f

EXIN 42 External data input f f f f f f f f f

SPCNT 46 Spindle control         f

WINDR 51 NC window data read f f f f f f f f f

WINDW 52 NC window data write f f f f f f f f f

FNC9X 9X Arbitrary functional instruction (X = 0 to 7)        f f

MMC3R 88 MMC3 window data read f f f f f f f f f

MMC3W 89 MMC3 window data write f f f f f f f f f

MMCWR 98 MMC window data read f f f f f f f f f

MMCWW 99 MMC window data write f f f f f f f f f

DIFU 57 Rising edge detection   f   f  f f

DIFD 58 Falling edge detection   f   f  f f

EOR 59 Exclusive OR   f   f  f f

AND 60 Logical AND   f   f  f f

OR 61 Logical OR   f   f  f f

NOT 62 Logical NOT   f   f  f f

END 64 End of a subprogram   f   f  f f

CALL 65 Conditional subprogram call   f   f  f f

CALLU 66 Unconditional subprogram call   f   f  f f

SP 71 Subprogram   f   f  f f

SPE 72 End of a subprogram   f   f  f f

AXCTL 53 PMC axes control f f f f f f f f 

 : Cannot be used f : Can be used

95
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5 (a) Types and processing of functional instructions (6)


Model
SUB Series 16/18ĆMODEL Series 18-
Name Processing Series 16/18ĆMODEL B
number B/C MODEL B
PMCĆRB3 PMCĆRB4 PMCĆRC3 PMCĆRC4 PMCĆRA1
END1 1 First level program end f f f f f
END2 2 Second level program end f f f f f
END3 48 Third level program end   f f 
TMR 3 Timer processing f f f f f
TMRB 24 Fixed timer processing f f f f f
TMRC 54 Timer processing f f f f f
DEC 4 Decoding f f f f f
DECB 25 Binary decoding f f f f f
CTR 5 Counter processing f f f f f
CTRC 55 Counter processing f f f f f
ROT 6 Rotation control f f f f f
ROTB 26 Binary rotation control f f f f f
COD 7 Code conversion f f f f f
CODB 27 Binary code conversion f f f f f
MOVE 8 ANDed data transfer f f f f f
MOVOR 28 ORed data transfer f f f f f
MOVB 43 Byte data transfer f f f f 
MOVW 44 Word data transfer f f f f 
MOVN 45 Block data transfer f f f f 
COM 9 Common line control f f f f f
COME 29 Common line control end f f f f f
JMP 10 Jump f f f f f
JMPE 30 Jump end f f f f f
JMPB 68 Label jump 1 f f f f 
JMPC 73 Label jump 2 f f f f 
LBL 69 Label f f f f 
PARI 11 Parity check f f f f f
DCNV 14 Data conversion f f f f f
DCNVB 31 Extended data conversion f f f f f
COMP 15 Comparison f f f f f
COMPB 32 Binary comparison f f f f f
COIN 16 Coincidence check f f f f f
SFT 33 Shift register f f f f f
DSCH 17 Data search f f f f f
DSCHB 34 Binary data search f f f f f
XMOV 18 Indexed data transfer f f f f f
XMOVB 35 Binary indexed data transfer f f f f f
ADD 19 Addition f f f f f
 : Cannot be used f : Can be used

96
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (a) Types and processing of functional instructions (7)


Model
SUB Series 16/18ĆMODEL Series 18-
Name Processing Series 16/18ĆMODEL B
number B/C MODEL B
PMCĆRB3 PMCĆRB4 PMCĆRC3 PMCĆRC4 PMCĆRA1
ADDB 36 Binary Addition f f f f f
SUB 20 Subtraction f f f f f
SUBB 37 Binary subtraction f f f f f
MUL 21 Multiplication f f f f f
MULB 38 Binary multiplication f f f f f
DIV 22 Division f f f f f
DIVB 39 Binary division f f f f f
NUME 23 Definition of constant f f f f f
NUMEB 40 Definition of binary constant f f f f f
DISP 49 Message display (Note)     
DISPB 41 Extended message display f f f f f
EXIN 42 External data input f f f f f
AXCTL 53 PMC axis control f f f f f
WINDR 51 Window data read f f f f f
WINDW 52 Window data write f f f f f
FNC9X 9X Arbitrary functional ins.   f f 
MMC3R 88 MMC3 window data read f f f f f
MMC3W 89 MMC3 window data write f f f f f
MMCWR 98 MMC2 window data read f f f f f
MMCWW 99 MMC2 window data write f f f f f
DIFU 57 Rising edge detection f f f f 
DIFD 58 Falling edge detection f f f f 
EOR 59 Exclusive OR f f f f 
AND 60 Logical production f f f f 
OR 61 Logical Add f f f f 
NOT 62 Logical Negation f f f f 
END 64 End of subprograms f f f f 
CALL 65 Conditional subprogram call f f f f 
CALLU 66 Unconditional subprogram call f f f f 
SP 71 Subprogram f f f f 
SPE 72 End of a subprogram f f f f 
 : cannot be used f : CAn be used  : Can be used (with some restrictions)

Note
On the PMC-RB3/RB4/RC3/RC4, DISP is provided only for the compatibility with Series 16 Model A. On
the Series 16 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 Model B, if both DISP and DISPB are used in the same sequence program, double sized
character can not be displayed by DISPB.

97
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5 (a) Types and processing of functional instructions (8)


Model
SUB
Name Processing Series 16-MODEL C/Series 18-MODEL C
number
PMCĆRB5 PMCĆRB6
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 Byte data transfer  f
MOVW 44 Word data transfer  f
MOVN 45 Block data transfer  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 conversion f f
DCNVB 31 Extended 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 Addition f f
 : Cannot be used f : Can be used

98
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (a) Types and processing of functional instructions (9)


Model
SUB
Name Processing Series 16-MODEL C/Series 18-MODEL C
number
PMCĆRB5 PMCĆRB6
ADDB 36 Binary Addition f f
SUB 20 Subtraction f f
SUBB 37 Binary subtraction f f
MUL 21 Multiplication f f
MULB 38 Binary multiplication f f
DIV 22 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 (Note)  
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 ins.  
MMC3R 88 MMC3 window data read f f
MMC3W 89 MMC3 window data write f f
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 production 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
 : cannot be used f : CAn be used  : Can be used (with some restrictions)

Note
On the PMC-RB5/RB6, 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.

99
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5 (a) Types and processing of functional instructions (10)


Model
SUB
Name Processing Series 21-MODEL B
number
PMCĆRA1 PMCĆRA3
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 Byte data transfer f f
MOVW 44 Word data transfer f f
MOVN 45 Block data transfer 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 f f
PARI 11 Parity check f f
DCNV 14 Data conversion f f
DCNVB 31 Extended 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 Addition f f
 : Cannot be used f : Can be used

100
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (a) Types and processing of functional instructions (11)


Model
SUB
Name Processing Series 21-MODEL B
number
PMCĆRA1 PMCĆRA3
ADDB 36 Binary Addition f f
SUB 20 Subtraction f f
SUBB 37 Binary subtraction f f
MUL 21 Multiplication f f
MULB 38 Binary multiplication f f
DIV 22 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 (Note)  
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 ins.  
MMC3R 88 MMC3 window data read f f
MMC3W 89 MMC3 window data write f f
MMCWR 98 MMC2 window data read f f
MMCWW 99 MMC2 window data write f f
DIFU 57 Rising edge detection  f
DIFD 58 Falling edge detection  f
EOR 59 Exclusive OR  f
AND 60 Logical production  f
OR 61 Logical Add  f
NOT 62 Logical Negation  f
END 64 End of subprograms  f
CALL 65 Conditional subprogram call  f
CALLU 66 Unconditional subprogram call  f
SP 71 Subprogram  f
SPE 72 End of a subprogram  f
 : Cannot be used f : Can be used

101
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

The execution time constant is a ratio of the execution time of a functional


instruction to the execution time (1.5 µs) of 10 basic instruction steps.
Execution time constants are used when a ladder program is executed in
the separate mode.

Table 5 (b) Execution Time Constants of Functional Instructions (1)

Instruc- SUB Model


Processing
tion Number PMC-RB PMC-RC
END1 1 End of a first-level ladder program 171 1033

END2 2 End of a second-level ladder program 26 45

END3 48 End of a third-level ladder program  0

TMR 3 Timer processing 19 33

TMRB 24 Fixed timer processing 19 34

TMRC 54 Timer processing 17 29

DEC 4 Decoding 21 28

DECB 25 Binary decoding 16 23

CTR 5 Counter processing 21 35

CTRC 55 Counter processing 18 26

ROT 6 Rotation control 37 53

ROTB 26 Binary rotation control 27 39

COD 7 Code conversion 20 29

CODB 27 Binary code conversion 19 29

MOVE 8 Data transfer after Logical AND 19 27

MOVOR 28 Data transfer after logical OR 13 19

COM 9 Common line control 11 14

COME 29 End of common line control 0.1 0.1

JMP 10 Jump 12 16

JMPE 30 End of a jump 9 11

PARI 11 Parity check 13 19

DCNV 14 Data conversion 25 37

DCNVB 31 Binary data conversion 132 233

COMP 15 Comparison 22 36

COMPB 32 Binary comparison 20 31

COIN 16 Coincidence check 21 36

SFT 33 Shift register 15 22

DSCH 17 Data search 237 287

DSCHB 34 Binary data search 351 596

XMOV 18 Indexed data transfer 26 38

XMOVB 35 Binary indexed data transfer 27 37

102
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (b) Execution Time Constants of Functional Instructions (2)

Instruc- SUB Model


Processing
tion Number PMC-RB PMC-RC
ADD 19 Addition 22 33

ADDB 36 Binary addition 25 39

SUB 20 Subtraction 21 32

SUBB 37 Binary subtraction 25 39

MUL 21 Multiplication 42 63

MULB 38 Binary multiplication 28 45

DIV 22 Division 44 66

DIVB 39 Binary division 33 53

NUME 23 Constant definition 18 25

NUMEB 40 Binary constant definition 13 20

DISP 49 Message display 51 93

DISPB 41 Extended message display 177 297

EXIN 42 External data input 29 49

WINDR 51 NC window data read 101 293

WINDW 52 NC window data write 101 293

FNC9X 9X Arbitrary functional instruction (X=0 to 7)  21

MMC3R 88 MMC3 window data read 342 375

MMC3W 89 MMC3 window data write 385 421

MMCWR 98 MMC window data read 100 293

MMCWW 99 MMC window data write 100 293

103
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Execution time constant: This constant represents how many times the execution time of a
functional instruction corresponds to the execution time of a basic
instruction (abount 1.5µs) . The execution time of a basic instruction is
time for ten basic instructions, that 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

5 (a) Function instruction format

104
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5 (b) Coding of function instruction

Coding sheet Status of operating result


Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
Number No.
1 RD R1 . 0 A A
2 AND R1 . 1 B AB
3 RD. STK R2 . 4 C AB C
4 AND. NOT R3 . 1 D AB CD
5 RD. STK R5 . 7 RST AB CD RST
6 RD. STK R7 . 1 ACT AB CD RST ACT
7 SUB ff Instruction AB CD RST ACT
8 (PRM) (Note 2) ffff Parameter 1 AB CD RST ACT
9 (PRM) ffff Parameter 2 AB CD RST ACT
10 (PRM) ffff Parameter 3 AB CD RST ACT
11 (PRM) ffff Parameter 4 AB CD RST ACT
12 WRT R10 . 1 W1 output AB CD RST W1

Notes
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 from the Programmer 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.

(2) Control condition


The number and meaning of control conditions vary with each
functional instruction. The control conditions are entered in the stick
register as shown in Table 5 (b). The sequence is fixed and cannot
be changed or omitted.

Note
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 IV for details.
(4) Parameter
Unlike basic instructions, functional instructions, can handle
numeric values. Thus the reference data or addresses containing data,
for example, are entered under Parameter. The number and meaning
vary with each functional instruction. The P key is used to enter
parameters in the Programmer.

105
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(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 PMC-RB/RC, 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) The CPU performs numeric data calculation on the basis of the
between BCD and binary becomes unnecessary and the PMC
processing time is reduced.
(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 4-digit 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.

106
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(b) Binary code data


The basic data handled with the binary code is of 1 byte (–128 to
+127), 2 bytes (–32,768 to +32,767) and 4 bytes (–99,999,999 to
+99,999,999). The data is stored at addresses R200, R201, R202
and R203 as shown below.

1 byte data (–128 to +127) Example: 1 byte data

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

2 byte data (–32,768 to + 32,767) 1 1 1 1 1 1 1 1 (–1)


7 6 5 4 3 2 1 0
R200 27 26 25 24 23 22 21 20

0 1 1 1 1 1 1 1 (+127)
R201  214 213 212 211 210 29 28

4 byte data (–99999999 to +99999999) 1 0 0 0 0 0 0 1 (–127)

7 6 5 4 3 2 1 0
R200 27 26 25 24 23 22 21 20

R201 215 214 213 212 211 210 29 28

R202 223 222 221 220 219 218 217 216

R203  230 229 228 227 226 225 224

By a functional instruction, specify smaller address R200.


A negative value is set by the two’s complement code.

(8) Addresses of numerical data handled in the function instructions


When numerical data handled in the function instructions are 2 bytes
or 4 bytes, addresses of numerical data specified by parameters of
function instructions are better to take even numbers.
The use of even addresses slightly reduces the execution time of
functional instructions.
These parameters of the functional instructions mainly handling
binary data are marked with an asterisk as follows.

107
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

* When 2-byte or 4-byte 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

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 execute the subtraction instruction (SUBB) by the 1st
level program and read the set information by referring to registers
R9000’s by the 2nd 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

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.

108
B–61863E/09 I. 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 shows the format of END.1 and Table 5.1 shows the coding.
Format

END1
(SUB 1)

Fig.5.1 Format of END.1

Table 5.1 Coding of END.1


Coding sheet
Step Address Bit
Instruction Remarks
Number Number Number
0082 SUB 1 End of 1st level

109
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.2
END2 (2ND LEVEL
SEQUENCE
PROGRAM END)

5.2.1 Specify at the end of the 2nd level sequence.


Function

5.2.2 Fig. 5.2 shows the expression format and Table 5.2 shows the coding
Format format.

END2
(SUB 2)

Fig.5.2 Format of END.2

Table 5.2 Coding of END.2


Coding sheet
Step Address Bit
Instruction Remarks
Number Number Number

1362 SUB 2 2nd level sequence program end

110
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.3
END3 (END OF 3RD
LEVEL SEQUENCE)
(PMC-RC/RC3/RC4/
NB/NB2 ONLY)

5.3.1 Specify this command at the end of the 3rd level sequence program, i.e.
Function it indicates the end of the sequence program. If there is no 3rd level
sequence program, specify this command immediately after END.2
command.

5.3.2 Fig. 5.3 shows description format and Table 5.3 shows coding format.
Format

END3
(SUB 48)

Fig.5.3 END.3 description format

Table 5.3 END.3 coding format


Coding sheet
Step Address Bit
Instruction Remarks
Number Number Number

2122 SUB 2 End of 3rd level program

111
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.4
TMR (TIMER)

5.4.1 This is an on-delay timer.


Function
5.4.2 Fig. 5.4 (a) shows description format and Table 5.4 (a) shows coding
Format format.

5.4.3 ACT=0: Turns off the timer relay (TMff).


Control condition ACT=1: Initiates the timer.

5.4.4 When the time preset is reached with ACT=1 as shown in Fig. 5.4 (b), the
Timer relay (TMff) timer relay turns on. The address of the timer relay is determined by
designer.

Timer relay

ACT

TMR ff TMff

fff.f
Match the timer number.
fff.f

Timer number
Control condition Instruction

Fig.5.4 (a) Format of TMR

Table 5.4 (a) Coding of TMR

Step Address Bit


Instruction Remarks
Number Number Number
1 RD ffff. f ACT
2 TMR ff
3 WRT fff. f TMff

ACT
TMff
T
T indicates the time set in this timer
command.

Fig.5.4 (b) Operation of the timer

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=84+6) is discarded, and only 32 ms is actually set.

112
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.4.6 The range for timers 1 to 8 is from 48 ms to 1,572.8 sec. The set time
Timer accuracy varies from 0 to +48 ms. The range for timers 9 to 40 is from 8 ms to 262.1
sec. The set time varies from 0 to +8 ms.
Variation in time is caused only by operation time of the Timer
Instruction. For example, when a timer instruction is used in the 2nd level
sequence part, the variation does not include the delay time (Max. 2nd
level sequence one cycle time) until the sequence actuates after the set
time is reached.

113
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.5
TMRB (FIXED TIMER)

5.5.1 This timer is used as a fixed on-delay 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.

5.5.2 The format is expressed as follows (Fig. 5.5 (a) ).


Format

Timer relay

ACT TMRB fff f····· f


TMB
(SUB24) Timer Preset fff
number time

5.5 (a) Format of TMRB

5.5.3 ACT=0: Turns off timer relay


Control conditions (TMBfff).
ACT=1: Start timer.

5.5.4 As shown in Fig. 5.5 (b), timer relay is set ON after certain time preset
Timer relay (TMBfff) in the parameter of this instruction pasts after ACT=1.
The designer will decide the address of the internal relay in the timer relay.

ACT
TMB
T
T indicates the time set in this timer
command.

5.5 (b) Timer operation

114
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.5.5
(a) Timer number
Parameter Sets timer number (1 to 100) of the fixed timers.
(b) Preset time (8 to 262,136 ms)
Processing is done every 8 ms in this fixed timer.
The preset time is therefore integral times of 8 ms and the odds are
omitted.
For example, when set 38 ms, 38=84+6, the odd 6 is omitted, and
the preset time becomes 32 ms.
The range of the preset time is 8 to 262,136 ms.

5.5.6 Time varies 0 to +8 ms 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.

115
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.6
TMRC (TIMER)

5.6.1 This is the on-delay timer.


Function

5.6.2 Fig. 5.6 (a) and Table 5.6 show the expression format and the coding
Format format, respectively.

ACT TMRC f ffff ffff


TM
Time set Time ff
Timer time resister
(SUB54) accuracy address address

Fig.5.6 (a) TMRC expression format

Table 5.6 TMRC coding format

Step Address Bit


Instruction Remarks
Number Number Number
1 RD ffff. f
2 SUB 54 TMRC command
3 (PRM) f Timer accuracy
4 (PRM) fff Timer set time address
5 (PRM) ffff Timer register address
6 WRT ffff. f TMff

5.6.3 ACT=0 : Turns off the timer relay


Control condition (TMff).
ACT=1 : Starts the timer.

5.6.4 Set the timer set time.


Timer accuracy 0 : 8 ms
1 : 48 ms

116
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.6.5 Sets the first address of the timer set time field.
Timer set time address The continuous 2-byte memory space is required for the timer set time
field.
Field D is normally used as this field.

Timer set time + 0


TIME
Timer set time + 1

Time : Timer set time


(1 to 32,767)

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

5.6.6
Timer register address
Timer register + 0

Timer register + 1
Timer register
Timer register + 2

Timer register + 3

5.6.7
Timer relay (TMff)
ACT
TM ff
T
T indicates the time set in this timer
command.

5.6 (b) Timer operation

117
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.7
DEC (DECODE)

5.7.1 Outputs 1 when the two-digit 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 (a) and Table 5.7 show the expression format and Table 5.7 (a)
Format show the coding format.

Decoding result output


ACT

DEC ffff ffff W1

fff. f fff. f

Decode ff ff
Control condition Instruction
instruction Number of digits
instruction
Address of decode signal Number of digits instruction

Fig.5.7 (a) Format of DEC

Table 5.7 (a) Coding of DEC

Step Address Bit


Instruction Remarks
Number Number Number
1 RD fff. f ACT
2 DEC ffff
3 (PRM) ffff
4 WRT fff. f W1, Decoding result output

5.7.3 ACT=0 : Turns the decoding result output off (W1).


Control condition ACT=1 : Performs decoding.
When the specified number is equal to the code signal, W1=1;
when not, W1=0.

5.7.4 Specify the address containing two-digit BCD code signals.


Code signal address

118
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.7.5 There are two paths, the number and the number of digits.
Decode specification Decode specification

f f f f

Number of digits specification

Number specification

(i) Number:
Specify the decode number.
Must always be decoded in two digits.
(ii) Number of digits:
01 : The high-order digit of two decimal digits is set to 0 and
only the low-order digit is decoded.
10 : The low-order digit is set to 0 and only the high-order 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)

MF DEN
DEC F10 3011 M30 M30
X
F7.0 F1.3 R228.1

Fig.5.7 (b) Ladder diagram using the DEC instruction

Table 5.7 (b) Coding for Fig. 5.7 (b)


Coding sheet

Step Address Bit


Instruction Remarks
Number Number Number
1 RD F 7.0
2 AND F 1 .3
3 DEC F 10
4 (PRM) 3011
5 WRT R228 . 1 M30X

119
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.8
DECB (BINARY
DECODING)

5.8.1 DECB decodes one, two, or four-byte binary code data. When one of the
Function (Fig. 5.8 (a)) 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.

5.8.2 Fig. 5.8 (b) show the expression format.


Format

DECB ffff Decode result output


ffff 7 6 5 4 3 2 1 0
Code
data
(SUB 25) Decode designating
number +0
1, 2 or 4-byte
binary code data Decode designating
+1
number

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.

5.8 (a) Function of DECB

*
ACT DECB f ffff ffff ffff
ffff

(SUB 25) Format Code Decode Decode


specifi-c data designa- result
ation address tion output
address

5.8 (b) Expression format of DECB

120
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.8.3 (a) Command (ACT)


Control conditions ACT=0: Resets (all the eight) output data bits.
ACT=1: Decodes data.
Result of processing is set in the output data address.

5.8.4
(a) Format specification
Parameters Specifies code data format:
1 : Code data is in binary format, occupying 1 byte
2 : Code data is in binary format, occupying 2 bytes
4 : Code data is in binary format, occupying 4 bytes
(b) Code data address
Specifies an address which stores code data.
(c) Number specification decode designation
Specifies the first of the eight successive numbers to be decoded.
(d) Decode result address
Specifies an address where the decoded result shall be output. A
one-byte area is required in the memory for the output.

121
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

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.

Note
When a incollect BCD data was set to a BCD type counter,
the morement of CTR cannot be sured.

This counter has the following functions to meet various applications.


(a) Preset counter
Outputs a signal when the preset count is reached. The number can
be preset from the CRT/MDI panel, or set in the sequence program.
(b) Ring counter
Upon reaching the preset count, returns to the initial value by issuing
another count signal.
(c) Up/down counter
The count can be either up or down.
(d) Selection of initial value
Selects the initial value as either 0 or 1.
A combination of the preceding functions results in the ring counter
below.

8 1
7 2

6 3
5 4

Presetting : 8
Initial value : 1

Such a counter permits the position of a rotor to be memorized.

122
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.9.2 Fig. 5.9 (a) show the expression format and Table 5.9 show the coding
Format format.

CN0

fff. f CTR ffff


(SUB 5)
UPDOWN Count up output

fff. f
W1
RST
fff. f
fff. f
ACT

fff. f Counter number

Instruction (SUB 5)
Control condition

5.9 (a) Format of CRT instruction

Table 5.9 Coding for Fig. 5.9 (a)

Coding sheet Memory status of control condition


Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
Number No.
1 RD fff . f CN0 CN0
2 RD. STK fff . f UPDOWN CN0 UPDOWN

3 RD. STK fff . f RST CN0 UPDOWN RST


4 RD. STK fff . f ACT CN0 UPDOWN RST ACT
5 SUB 5 CTR instruction CN0 UPDOWN RST ACT
6 (PRM) ff Counter number CN0 UPDOWN RST ACT
7 WRT fff . f W1 output number CN0 UPDOWN RST W1

5.9.3
(a) Specify the initial value. (CN0)
Control conditions CN0=0: Begins the value of the counter with 0.
0, 1, 2, 3 ····· n.
CN0=1: Begins the value of the counter with 1 (0 is not used).
1, 2, 3 ····· n.
(b) Specify up or down counter.
UPDOWN=0:
Up counter. The counter begins with 0 when CN0=0;
1 when 1.
UPDOWN=1:
Down counter. The counter begins with the preset value.

123
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(c) Reset (RST)


RST=0: Releases reset.
RST=1: Enables reset.
W1 becomes 0. The integrated value is reset to the initial value.

Note
Set RST to 1, only when reset is required.

(d) Count signal (ACT)

“1”

“0”

Count Count

0: Counter does not operate. W1 does not change.


ACT
1: Count is made by catching the rise of ACT.

5.9.4 There are twenty counters of 2 bytes (2 bytes for each preset value and
Counter number integrated value) in capacity. The number of counters that can be used is
1 to 20. For RB4/RC4, the number of counters that can be used is 1 to
199.

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.

124
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.9.6 [Example 1]
Examples of using the As a preset counter (See Fig. 5.9 (b) )
The number of workpieces to be machined is counted. When the number
counter reaches the preset count, a signal is output.
 L1 is a circuit to make logic 1.
 Since the count ranges from 0 to 9999, contact B of L1 is used for
making CN0=0.
 Since it is to be up counter, contract B of L1 is used make
UPDOWN=0.
 The reset signal of the counter uses input signal CRST.M from the
machine tool.
 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

5.9 (b) Ladder diagram for the counter, example 1

125
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

[Example 2]
Use of the counter to store the position of a rotor. (See Fig. 5.9 (c) )

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

5.9 (c) Ladder diagram for the counter, example 2

4
3 5

2
6

1 7

12 8

11 9
10

Fixed position for indexing

5.9 (d) Indexing for a rotor

Fig. 5.9 (c) shows a ladder diagram for a counter to store the position of
a rotor of Fig. 5.9 (d).
(1) Control conditions
(a) Count start number
When a 12-angle rotor shown in Fig. 5.9 (d) is used, the count
starting number is 1. Contact A of L1 is used for making CN0=1.
(b) Specify up and down
The signal REV changes according to the then direction of
rotation. It becomes 0 for forward rotation and 1 for reverse
rotation. Thus, the counter is an up counter for forward rotation
and a down counter for reverse rotation.

126
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(c) Reset
In this example, since W1 is not used, RST=0, and contact B of
L1 is used.
(d) Count signal
The count signal POS turns on and off 12 times each time the rotor
rotates once.
(2) Counter number and W1
In this example, the second counter is used. The result of W1 is not
used, but its address must be determined.
(3) Operation
(a) Setting the preset value
Since the rotor to be controlled is 12-angle as shown in Fig. 5.9
(d), 12 must be preset in the counter. It is set from the CRT/MDI
panel.
(b) Setting the current value
When the power is turned on, the position of the rotor must be
equated with the count on the counter. The count is set via the
CRT/MDI panel. Once a current value is set, then correct current
positions will be loaded to the counter every time.
(c) The POS signal turns on and off each time the rotor rotates.
The number of times of the POS signal turns on and off is counted
by the counter, as below.
1, 2, 3, . . . 11, 12, 1, 2, . . .
for forward rotation
1, 12, 11, . . . 3, 2, 1, 12 . . .
for reverse rotation

127
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.10
CTRC (COUNTER)

5.10.1 The numeral data of this counter are all binary. This counter has the
Functions following functions and can be used according to the application:
(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.10.2 Fig. 5.10 (a) and Table 5.10 show the expression format and the coding
Format format, respectively.

CN0
CTRC ffff ffff

UPDOWN
SUB 55

Counter Counter
RST preset value register W1
address address

ACT

Fig.5.10 (a) CTRC expression format

Table 5.10 CRTC coding format

Step Address Bit


Instruction Remarks
Number Number Number
1 RD ffff. f CN0
2 RD.STK ffff. f UPDOWN
3 RD.STK ffff. f RST
4 RD.STK ffff. f ACT
5 SUB 55 CRTC command
6 (PRM) ffff Counter preset address
7 (PRM) ffff Counter register address
8 WRT ffff. f W1

128
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.10.3
(a) Specifying the initial value (CN0)
Control conditions CN0=0 : The count value starts with “0”. 0, 1, 2, 3, . . . n
CN0=1 : The count value starts with “1”. 1, 2, 3, . . . n
(b) Specifying up or down count (UPDOWN)
UPDOWN=0:
Up counter.
The initial value is “0” when CN0=0 or “1” when CN0=1.
UPDOWN=1:
Down counter. The initial value is the preset value.
(c) Reset (RST)
RST=0 : Reset cancelled.
RST=1 : Reset. W1 is reset to “0”. The accumulated value is
reset to the initial value.
(d) Count signal (ACT)
ACT=0 : The counter does not operate. W1 does not change.
ACT=1 : The counter operates at the rise of this signal.

5.10.4 The first address of the counter preset value field is set.
Counter preset value The continuous 2-byte memory space from the first address is required for
this field. Field D is normally used.
address

Counter preset value+0


CTR: Preset value
CTR
(0 to 32,767)
Counter preset value+1

The counter preset value is binary. Therefore, it ranges from 0 to 32767.

5.10.5 The first address of the counter register field is set.


Counter register The continuous 4-byte memory space from the first address is required for
this field. Field D is normally used.
address
Note
When field R is specified as the counter register address,
the counter starts with count value “0” after powered on.

129
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.10.6 If the count value reaches the preset value, W1 is set to “1”.
Count-up output (W1) The W1 address can be determined freely.

Counter register +0
CTR Count value
Counter register +1

Counter register +2
WORK WORK : Unusable
Counter register +3

130
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.11
ROT (ROTATION
CONTROL)

5.11.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.11.2 Fig. 5.11 (a) shows the expression format and Table 5.11 shows the coding
Format 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

Control condition Current position address


Instruction
Rotor indexing address

5.11 (a) ROT instruction format

131
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5.11 Coding for Fig. 5.11 (a)


Coding sheet Status of operating result
Step Instruc- Address
Bit No. Remarks ST5 ST4 ST3 ST2 ST1 ST0
Number tion No.
1 RD ffff . f RN0 RN0
2 RD. STK ffff . f BYT RN0 BYT
3 RD. STK ffff . f DIR RN0 BYT DIR
4 RD. STK ffff . f POS RN0 BYT DIR POS
5 RD. STK ffff . f INC RN0 BYT DIR POS INC
6 RD. STK ffff . f ACT RN0 BYT DIR POS INC ACT
7 SUB 6 ROT RN0 BYT DIR POS INC ACT
8 (PRM) ffff Rotor indexing number RN0 BYT DIR POS INC ACT
9 (PRM) ffff Current position RN0 BYT DIR POS INC ACT
10 (PRM) ffff Goal position address RN0 BYT DIR POS INC ACT
11 (PRM) ffff Calculating result output address RN0 BYT DIR POS INC ACT
12 WRT fff . f RN0 BYT DIR POS INC W1
13
14
15

5.11.3
Control conditions (a) Specify the starting number of the rotor.
RN0=0 : Begins the number of the position of the rotor with 0.
RN0=1 : Begins the number of the position of the rotor with 1.
(b) Specify the number of digits of the process data (position data).
BYT=0: BCD two digits
BYT=1: BCD four digits
(c) Select the rotation direction via the shorter path or not.
DIR=0 : No direction is selected. The direction of rotation is
only forward.
DIR=1 : Selected. See (8) for details on the rotation direction.
(d) Specify the operating conditions.
POS=0 : Calculates the goal position.
POS=1 : Calculates the position one position before the goal
position.
(e) Specify the position or the number of steps.
INC=0 : Calculates the number of the position. If the position
one position before the goal position is to be calculated,
specify INC=0 and POS=1
INC=1 : Calculates the number of steps. If the difference
between the current position and the goal position is to
be calculated, specify INC=1 and POS=0.
(f) Execution command
ACT=0: The ROT instruction is not executed. W1 does not
change.
ACT=1: Executed. Normally, set ACT=0. If the operation
results are required, set ACT=1.

132
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.11.4 Specify the rotor indexing number.


Rotor indexing number

5.11.5 Specify the address storing the current position.


Current position
address

5.11.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.11.7 Calculate the number of steps for the rotor to rotate, the number of steps
Operation result output 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.
address

5.11.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.11 (b).
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.

An example of a 12-position rotor


(a) (b)
1 1
12 2 2 12

11 3
3 11
FOR REV REV FOR

10 4 4 10

9 5 5 9

8 6 6 8
7 7

Indexing fixed position Indexing fixed position

5.11 (b) Rotation direction

133
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.12
ROTB
(BINARY ROTATION
CONTROL)

5.12.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.11) 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.

5.12.2 Fig. 5.12 (a) shows the expression format of ROTB


Format

RN0

* * * *

DIR

POS
ROTB f ffff ffff ffff ffff
W1

INC

(SUB 26) Format Rotating Current Target Arith-me


specifi-c element position position tic result
ACT ation indexed address address output
position address
address

5.12 (a) Expression format of ROTB

5.12.3 The control conditions do not differ basically from those for ROT
Control conditions command described in section 5.11. However, BYT has been eliminated
from ROTB (it forms part of the ROTB parameters).
For the reset, see ROT.

134
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.12.4
(a) Format
Parameters " # #   !  &#" " # !"# #  #
!#! # "& # $!  &#"
  &#
  &#"
  &#"
 $! # $!  % "#" ! # !##
#" $!!# !"" # !  # !& !#
!! #& ! $! # !& " " & #
#
(b) ## # % "# !""
" # !"" # # $!  !#!& #
"#" #  %
(c) #! !#!"
! # $#"  $"  # #! !#!" " #


5.12.5 See Section 5.11.


Output for rotational
direction (W1)

5.12.6 Fig. 5.12 (b) illustrates a ladder diagram for a 12-position rotor to be
Example of using the controlled for rotation via the shorter path and for deceleration at the
position one position before the goal.
ROTB instruction
 The goal position is specified with CNC 32B of binary code (address
F26 to F29).
 The current position is entered with the binary code signal (address
X41) from the machine tool.
 The result of calculating the position one position before the goal is
output to address R230 (work area).
 Operation starts with the output TF (address F7.3) from the CNC.
 The coincidence check instruction (COIN) is used to detect the
deceleration and stop positions.

135
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

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
TF CW-M CCW-M
(0)

F0007.3 Y0005.6 Y0005.6

TF (0) COMPB 1004 R0230 X0041


(SUB 32) Refer- Refer- Compari
F0007.3 ence ence -son
data data data
TF format address
Deceleration
TDEC position
detection
R9000.0 F0007.3 R0228.2
TDEC TF
DEC-M Deceleration
command
R0228.2 F0007.3 Y0005.5
TCOMPB DEC-M

R0228.3 Y0005.5
TF (0)
COMPB 1004 F0026 X0041
(SUB 32) Refer- Refer-e Compari
F0007.3 ence nce -son
data data data
TF format address Goal position
TCO (stop position)
MPB detection
R9000.0 F0007.3 R0228.3
CR-CCW TCOMPB
TF
CW-M Forward r
otation
F0007.3 R0228.1 R0228.3 Y0005.6 command
TF CR-CCW TCOMPB
CCW-M Reverse
rotation
F0007.3 R0228.1 R0228.3 Y0005.6 command

5.12 (b) Example of a Ladder Diagram for the ROTB Instruction

136
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.13
COD
(CODE CONVERSION)

5.13.1 Converts BCD codes into an arbitrary two- or four-digits BCD numbers.
Function For code conversion shown in Fig. 5.13 (a) 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 two-digits
BCD number. The conversion table is entered in sequence with the
numbers to be retrieved in the two- or four-digits 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.13
(a), 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.

Table internal address Conversion table


Conversion input 0
data address 3
1
ffff
Specifies table internal
ÅÅÅÅÅÅÅ
2

ÅÅÅÅÅÅÅ
number (BCD two-digits).
3 137
4
Convert data
output address
ffff
ÅÅÅÅÅÅÅ
ÅÅÅÅÅÅÅ
Data of the specified table internal address is
output to this address.
n

5.13 (a) Code conversion diagram

137
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.13.2 Fig. 5.13 (b) shows the format for the COD instruction and Table 5.13
Format shows the coding format.

BYT

ffff. f
COD Error output
RST
(SUB 7) ffff ffff ffff
W1
ffff. f
ACT

ffff. f Converted data output


address
Conversion input data address
Size of table data
Control condition Instruction

Conversion data table

Table address Convert data

1 f f f f
2 f f f f
3 f f f f
4 f f f f

5.13 (b) COD instruction

Table 5.13 Coding for Fig. 5.13 (b)

Coding sheet Memory status of control condition


Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 7 COD instruction
5 (PRM) ffff Size of table data (1)
6 (PRM) ffff Conversion input data address (2)
7 (PRM) ffff Convert data output address (3)
8 (PRM) ffff Convert data at table address 0 (4)
9 (PRM) ffff Convert data at table address 1 (5)
10 : : :
11 WRT fff . f Error output W1

138
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.13.3
(a) Specify the data size.
Control conditions BYT=0 : Specifies that the conversion table data is to be BCD
two digits.
BYT=1 : Specifies that the conversion table data is to be BCD
four digits.
(b) Error output reset
RST=0 : Disable reset
RST=1 : Sets error output W1 to 0 (resets).
(c) Execution command
ACT=0 : The COD instruction is not executed. W1 does not
change.
ACT=1 : Executed.

5.13.4 A conversion table data address from 0 to 99 can be specified.


Size of table data Specify n+1 as the size of table when n is the last table internal number.

5.13.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 2-digit) is required for this conversion input data address.

5.13.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 1-byte memory at the convert data output address.
address Convert data BCD four digits in size, requires a 2-byte memory at the
convert data output address.

5.13.7 If an error occurs in the conversion input address during execution of the
Error output (W1) COD instruction, W1=1 to indicate an error.
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 operator’s panel light or
stopping axis feed.

5.13.8 The size of the conversion data table is from 00 to 99.


Conversion data table The conversion data can be either BCD two digits or four digits, which
is specified depends on the control conditions

139
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.14
CODB (BINARY
CODE CONVERSION)

5.14.1 This instruction converts data in binary format to an optional binary


Function format 1-byte, 2-byte, or 4-byte data.
Conversion input data address, conversion table, and conversion data
output address are necessary for data conversion; as shown in Fig. 5.14
(a).
Compared to the 5.13 ”COD Function Instruction”, this CODB function
instruction handles numerical data 1-, 2- and 4-byte length binary format
data, and the conversion table can be extended to maximum 256.

Table address Conversion table


Conversion 0
data address 2
ffff

ÅÅÅÅÅÅÅ
Specify table address 1
here.(binary format1 byte)

ÅÅÅÅÅÅÅ
2 (Note 1) This table data is binary

ÅÅÅÅÅÅÅ
format 2-byte data.

Conversion data
ÅÅÅÅÅÅÅ 3

ÅÅÅÅÅÅÅ
(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

5.14 (a) Code conversion diagram

5.14.2 Fig. 5.14 (b) shows the expression format of CODB.


Format

RST *
Error output
CODB f fff ffff ffff

W1
ACT (SUB 27) Format Number Conversi Conversi
designa- of on input on data
tion conver-s data output
ion table address address
data

5.14 (b) Expression format of CODB

140
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.14.3
(a) Reset (RST)
Control conditions RST=0 : Do not reset.
RST=1 : Reset error output W1 (W1=0).
(b) Activate command (ACT)
ACT=0: Do not execute CODB instruction
ACT=1: Execute CODB instruction.

5.14.4
(a) Format designation
Parameters Designates binary numerical size in the conversion table.
1 : Numerical data is binary 1-byte data.
2 : Numerical data is binary 2-byte data.
4 : Numerical data is binary 4-byte data.
(b) Number of conversion table data
Designates size of conversion table. 256 (0 to 255) data can be made.
(c) Conversion input data address
Data in the conversion data table can be taken out by specifying the
table number. The address specifying the table number is called
conversion input data address, and 1-byte memory is required from
the specified address.
(d) Conversion data output address
Address to output data stored in the specified table number is called
conversion data output address.
Memory of the byte length specified in the format designation is
necessary from the specified address.

5.14.5 Size of the conversion data table is maximum 256 (from 0 to 255).
Conversion data table This conversion data table is programmed between the parameter
conversion data output address of this instruction and the error output
(W1).

5.14.6 If there are any abnormality when executing the CODB instruction,
Error output (W1) W1=1 and error will be output.

141
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.15
MOVE
(LOGICAL PRODUCT
TRANSFER)
5.15.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 eight-bit 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
multi-plication data
Low-order four-bit logical
multiplication data
High-order four-bit
logical multiplication data

5.15.2 Fig. 5.15 (a) shows the expression format and Table 5.15 shows the
Format coding format.

ACT
MOVE (1) (2) (3) (4)
(SUB 8) ffff ffff ffff ffff
ffff. f

Output address

Control condition Input data address


Low-order 4-bit logical multiplication data

High-order 4-bit logical multiplication data

5.15 (a) Move instruction format

Table 5.15 Coding for Fig. 5.15 (a)

Coding sheet
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f ACT ACT
2 SUB 8 MOVE instruction
3 (PRM) ffff High-order 4-bit logical
multiplication data (1)
4 (PRM) ffff Low-order 4-bit logical
multiplication data (2)
5 (PRM) ffff Input data address (3)
6 (PRM) ffff Output data address (4)

142
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.15.3 ACT=0: Move instruction not executed.


Execution command ACT=1: Executed.

5.15.4 If a code signal and another signal co-exist 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

Logical multiplication data 0 0 0 1 1 1 1 1

Low-order four-bit logical multiplication data

High-order four-bit logical multiplication data

Address R210 0 0 0

Code signal

A MOVE (1) (2) (3) (4)


(SUB 8) 0001 1111 X035 R210
R228.1

5.15 (b) MOVE instruction ladder diagram

143
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.16
MOVOR
(DATA TRANSFER
AFTER LOGICAL
SUM)

5.16.1 This instruction ORs the input data and the logical sum data and
Function transfers the result to the destination.

Input data Logical sum data


OR

Output data

5.16.2 Fig. 5.16 shows the expression format of MOVOR.


Format

MOVOR ffff ffff ffff


ACT

(SUB 28) Input data Logical Output


address sum data address
address

5.16 Expression format of MOVOR

5.16.3 (a) Command (ACT)


Control conditions ACT=0: Do not execute MOVOR.
ACT=1: Execute MOVOR.

5.16.4 (a) Input data address


Specifies the address for the input data.
Parameters (b) Logical sum data address
Specifies the address of the logical sum data with which to OR the
transferred data.
(c) Output address
This is the address to contain the logical sum obtained. It is also
possible to obtain the logical sum (OR) of the input and the logical
sum data and output the result in the logical sum data address. For
this, you must set the logical sum data address for the output address.

144
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.17
COM (COMMON LINE
CONTROL)
5.17.1
 : Can be used
COM (Common line
 : Cannot be used
control) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

     f      f    

 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.17 (a) )
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.

ACT COM ffff

Number of
SUB 9
turned-off
coils

0 to 9999
0 : Region specification
Other than 0 : Numeric specification

COME
Effective only when the number of
SUB 29 turned-off coils is set to zero.

5.17 (a) Function of COM

145
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

 Fig. 5.17 (b) shows the expression format of COM


Format

COM ffff

SUB 9 Number of
turned-off
coils

5.17 Expression format of COM

ACT COM 2

(a)

A B
W1
ACT=1
11.0 11.1
(b) C

W2
D

(a) When COM ACT=1, execution


B F G begins with the step after COM.
(b) When COM ACT=0, coil W1 and coil
W3 W2 are turned OFF unconditionally,
ACT=0 and execution begins with the next
step after W2.

5.17 (c) Ladder diagram for the COM instruction

5.17.2 ACT=0 : The specified number of coils or the coils within the region
Control conditions specified are unconditionally turned off (set to 0).
ACT=1 : No processing is performed.
Processing is performed from the step next to the COM instruction.

146
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.17.3 (a) Number of turned-off coils


Parameter Specify 0 to 9999.
0 : Region specification
Other than 0: Coil number specification

ACT A B
W1

ACT C
W2

E F G
W3

5.17 (d) Relay circuit example

Notes
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 PMC-RA1, PMC-RA2, or PMC-RB2. 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
High-orde Low-order Input Output the output address
ACT1 r 4-bit 4-bit 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

5.17 (e)

147
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.17.4
 : Can be used
COM (Common line
 : Cannot be used
control) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

f f f f f  f f f f f  f f f f

5.17.5 The COM instruction controls the coils in a range up to a common line
Function control end instruction (COME). (See Fig. 5.17(e).) 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

5.17 (f) Function of COM

5.17.6 Fig. 5.17(g) shows the expression format of the functional instruction
Format COM.

ACT
COM 0

SUB 9

5.17 (g) Expression Format of COM

148
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.17.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.

5.17.8 (a) 0Specify 0. (Range specification only)


Parameters
Notes
1. COM instruction operation
Suppose the following Ladder diagram including a COM
instruction exists:

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

OFF ACT OUT2

So, the functional instructions in the range specified with a


COM instruction are processed, regardless of the setting of
ACT of the COM instruction. Note, however, that the coil for
the execution of a functional instruction is unconditionally
set to 0 when COM ACT = 0.
2. In the range specified with a COM instruction, no additional
COM instruction can be specified.
3. As explained in the figures in Note 1, the coil for WRT.NOT
in the range specified with a COM instruction is
unconditionally set to 1 when COM ACT = 0.

149
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.18
COME (COMMON
LINE CONTROL END)

5.18.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.

5.18.2 Fig. 5.18 (a) shows the expression format of COME


Format

COME

SUB 29

5.18 Expression format of COME

150
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.19
JMP (JUMP)

5.19.1
 : Can be used
JMP (Jump)  : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

     f      f    

5.19.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.

ACT JMP ffff

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.

5.19 (a)

5.19.3
Format
ACT JMP ffff

Number
SUB 10 of jumped
coils

151
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.19.4 ACT=0 : Nojump.Processing begins with the step after the JMP instruction.
Control conditions ACT=1 : The logic instructions contained within the specified number of
coils or the specified region are jumped. Processing is performed
from the next step.

5.19.5 (a) Number of jumped coils


Parameter Specify 0 to 9999.
0 : Region specification jump
Other than 0 : Coil number specification jump
When the jump end instruction is programmed in the coil number
specification, error is indicated when programming is completed.
Table 5.19 JMP instruction coding
Step Instruc- Address Bit Remarks
Number tion Number Number
1 RD fff. f ACT
2 SUB 10 JMP instruction
3 (PRM) ffff Number of coils to be jumped

Note
The number of coils can be specified only for the
PMC–RB/RC. Assume the number of coils to be 0 and
specify the region with the jump end (JMPE) command.

5.19.6 Fig. 5.19 shows a ladder diagram for the JMP instruction. When ACT=0,
Operation 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.19, W1 remains in a status before ACT=1. Similarly, W2
remains unchanged, even if signals B, C, and D change. Using the JMP
instruction does not reduce the execution time of the sequence.

ACT
JMP
2
(SUB 10)

A
W1
ACT=0
10.1 20.1
B
W2
C

E F
W3
ACT=1

Fig.5.19 (b) Ladder diagram for the JMP instruction

152
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.19.7
 : Can be used
JMP (Jump)  : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

f f f f f  f f f f f  f f f f

 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.19(a).) 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

Valid range of the


f
JMP instruction

JMPE

SUB 30

5.19 (c) Function of JMP

 Fig. 5.19(d) shows the expression format of the functional instruction
Format JMP.

ACT
JMP 0

SUB 10

5.19 (d) Expression Format of JMP

153
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

 ACT=1 : The logical instructions (including functional instructions) in


Control conditions the specified range are skipped; program execution proceeds to
the next step.
ACT=0 : The same operation as when JMP is not used is performed.

 (a) Specify 0. (Range specification only)


Parameters
Note
JMP instruction operation
When ACT = 1, processing jumps to a jump end instruction
(JMPE); the logical instructions (including functional
instructions) in the specified jump range are not executed.
When the Ladder program is executed in the nonseparate
mode, this instruction can reduce the Ladder execution
period (scan time).

154
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.20
JMPE (JUMP END)

5.20.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.20.2
Format
JMPE

SUB 30

155
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.21
PARI
(PARITY CHECK)

5.21.1 Checks the parity of code signals, and outputs an error if an abnormality
Function is detected. Secifies either an even- or odd-parity check. Only one-byte
(eight bits) of data can be checked.

5.21.2 Fig. 5.21 (a) shows the expression format and Table 5.21 shows the
Format coding format.

O.E (2)

ffff. f Error output


PARI
RST (1)
(SUB 11) ffff W1

ffff. f
ffff. f
ACT (0)

ffff. f

Check data address


Control condition Instruction

5.21 (a) PARI instruction format

Table 5.21 PARI instruction coding


Coding sheet Memory status of control condition
Step Address
Number Instruction No. Bit No. Remarks ST3 ST2 ST1 ST0

1 RD fff. f ACT O.E


2 RD. STK fff. f ACT O.E RST
3 RD. STK fff. f ACT O.E RST ACT
4 SUB 11 PARI instruction
5 (PRM) ffff Check data address
6 ffff. f Error output W1

156
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.21.3 (a) Specify even or odd.


Control conditions O.E=0 : Even-parity check
O.E=1 : Odd-parity check
(b) Reset
RST=0 : Disables reset.
RST=1 : Sets error output W1 to 0. That is, when a parity error
occurs, setting RST to 1 results in resetting.
(c) Execution command
ACT=0 : Parity checks are not performed. W1 does not alter.
ACT=1 : Executes the PARI instruction, performing a parity check.

5.21.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.

5.21.5 Fig. 5.21 (b) shows odd-parity checking of a code signal entered at
Example of using the address X036.
PARI instruction

7 6 5 4 3 2 1 0
Address X036 0

6-bit code signal


Odd-parity bit

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

5.21 (b) Ladder diagram for the PARI instruction

Note
For bits 0 to 7, bits other than those for the parity check must
be 0.

157
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.22
DCNV
(DATA CONVERSION)

5.22.1 Converts binary-code into BCD-code and vice versa.


Function

5.22.2 Fig. 5.22 shows the expression format and Table 5.22 shows the coding
Format format.

BYT (3)
(1) (1)
DCNV
fff. f
CNV (2)
(SUB 14) ffff ffff

fff. f Error output


RST (1)
W1
fff. f
fff. f
ACT (0)

fff. f
Conversion result output address
Instruction Input data address
Control condition

5.22 DCNV instruction format

Table 5.22 DCNV instruction coding

Coding sheet Memory status of control condition


Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD f fff . f BYT BYT
2 RD. STK fff . f CNV BYT CNV
3 RD. STK fff . f RST BYT CNV RST
4 RD. STK fff . f ACT BYT CNV RST ACT
5 SUB 14 DCNV instruction
6 (PRM) ffff (1) Input data address
7 (PRM) ffff (2) Conversion result output address
8 WRT fff . f W1 error output W1

158
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.22.3 (a) Specify data size.


Control conditions BYT=0 : Process data in length of one byte (8 bits)
BYT=1 : Process data in length of two byte (16 bits)
(b) Specify the type of conversion
CNV=0 : Converts binary-code into BCD-code.
CNV=1 : Converts BCD-code into binary-code.
(c) Reset
RST=0 : Disables reset.
RST=1 : Resets error output W1. That is, setting RST to 1 when
W1, makes W1=0.
(d) Execution command
ACT=0 : Data is not converted. W1 does not alter.
ACT=1 : Data is converted.

5.22.4 W1=0 : Normal


Error output (W1) W1=1 : Conversion error
W1=1 if the input data which should be BCD data, is binary
data, or if the data size (byte length) specified in advance is
exceeded when converting binary data into BCD data.

159
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.23
DCNVB (EXTENDED
DATA CONVERSION)

5.23.1 This instruction converts 1, 2, and 4-byte 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.

5.23.2 Fig. 5.23 shows the expression format of DCNVB


Format

SIN
* *

CNV

DCNVB f ffff ffff


W1
RST
(SUB 31)

Format Input data Conver-si


specifi-ca address on result
ACT tion output
address

5.23 Expression format of DCNVB

5.23.3 (a) Sign of the data to be converted (SIN)


Control conditions This parameter is significant only when you are converting BCD data
into binary coded data. It gives the sign of the BCD data.
Note that though it is insignificant when you are converting binary
into BCD data, you cannot omit it.
SIN=0 : Data (BCD code) to be input is positive.
SIN=1 : Data (BCD code) to be input is negative.
(b) Type of conversion (CNV)
CNV=0 : Convert binary data into BCD data
CNV=1 : Convert BCD data into binary data.
(c) Reset (RST)
RST=0 : Release reset
RST=1 : Reset error output W1. In other words, set W1=0.
(d) Execution command (ACT)
ACT=0 : Data is not converted. The value of W1 remains unchanged.
ACT=1 : Data is converted.

160
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.23.4 (a) Format specification


Parameters Specify data length (1,2, or 4 bytes).
Use the first digit of the parameter to specify byte length.
1 : one byte
2 : two bytes
4 : four bytes
(b) Input data address
Specify the address containing the input data address.
(c) Address for the conversion result output
Specify the address to output the data converted to BCD or binary
format.

5.23.5 W1=0 : Correct conversion


Error output (W1) W1=1 : Abnormally
(The data to be converted is specified as BCD data but is found to be
binary data, or the specified number of bytes cannot contain (and hence
an overflow occurs) the BCD data into which a binary data is converted.)

5.23.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)

161
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.24
COMP
(COMPARISON)

5.24.1 Compares input and comparison values.


Function

5.24.2 Fig. 5.24 shows the expression format and Table 5.24 shows the coding
Format format.

BYT COMP
f ffff ffff
(SUB 15) Comparison
fff.f result output
W1
ACT
ffff.f
fff.f

Instruction Comparison value


Control condition Input value

Input data format


(constant or address)

5.24 COMP instruction format

Table 5.24 COMP instruction coding


Coding sheet Memory status of control condition
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f ACT BYT ACT
3 SUB 15 COMP instruction
4 (PRM) f Input data format
5 (PRM) ffff Input data
6 (PRM) ffff Comparison data address
7 WRT fff . f W1: Comparison result output W1

162
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.24.3 (a) Specify the data size.


Control conditions BYT=0 : Process data (input value and comparison value) is BCD
two digits long.
BYT=1 : Process data (input value and comparison value) is four
digits long.
(b) Execution command
ACT=0 : The COMP instruction is not executed. W1 does not alter.
ACT=1 : The COMP instruction is executed and the result is output
to W1.

5.24.4 0 : Specifies input data with a constant.


Input data format 1 : Specifies input data with an address
Not specify input data directly, but specify an address storing input
data.

5.24.5 The input data can be specified as either a constant or the address storing
Input data it. The selection is made by a parameter of format specification.

5.24.6 Specifies the address storing the comparison data.


Comparison data
address

5.24.7 W1=0 :Reference data > Comparison data


Comparison result W1=1 :Reference data x Comparison data
output

163
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.25
COMPB
(COMPARISON
BETWEEN BINARY
DATA)

5.25.1 This instruction compares 1, 2, and 4-byte 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.

5.25.2 Fig. 5.25 shows the expression format of COMPB.


Format

* *

ACT COMPB ffff ffff ffff

Format Input data Address of


SUB 32 specifi- (address) data to be
cation compared

5.25 Expression format of COMPB

5.25.3 (a) Command (ACT)


Control conditions ACT=0 : Do not execute COMPB.
ACT=1 : Execute COMPB.

5.25.4 (a) Format specification


Parameters Specify data length (1,2, or 4 bytes) and format for the input data
(’constants data’ or ’address data’).

0 0

Specification of data length


1 : 1 byte length data
2 : 2 byte length data
Specification of format 4 : 4 byte length data
0 : Constants
1 : Address

(b) Input data (address)


Format for the input data is determined by the specification in a).
(c) Address of data to be compared
Indicates the address in which the comparison data is stored.

164
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.25.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

Zero (input data=data compared)

Negative (input data<data compared)

Overflow

165
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.26
COIN (COINCIDENCE
CHECK)

5.26.1 Checks whether the input value and comparison value coincide.
Function This instruction is available with BCD data.

5.26.2 Fig. 5.26 shows the expression format and Table 5.26 shows the coding
Format format.

BYT (1) COIN (1) (2) (3)


Result
fff.f W1
(SUB 16) f ffff ffff Output
ACT (0)
ffff.f
fff.f

Comparison value
Instruction
Control conditions Input value address

Input value format (constant or address)

5.26 COIN instruction format

Table 5.26 COIN instruction coding


Coding sheet Memory status of control condition
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f ACT BYT ACT
3 SUB 16 COIN instruction
4 (PRM) f Reference value format
5 (PRM) ffff Reference value
6 (PRM) ffff Comparison value address
7 WRT fff . f W1: Checking result output W1

166
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.26.3 (a) Specify the data size.


Control conditions BYT=0 : Process data (input value, and comparison values).
Each BCD is two digits long.
BYT=1 : Each BCD four digits long.
(b) Execution command
ACT=0 : The COIN instruction is not executed. W1 does not
change.
ACT=1 : The COIN instruction is executed and the results is output
to W1.

5.26.4 0 : Specifies input data as a constant.


Input data format. 1 : Specifies input data as an address.

5.26.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.

5.26.6 Specifies the address storing the comparison data.


Comparison data
address

5.26.7 W1=0 : Input data 0 Comparison data


Comparison result W1=1 : Input data = Comparison data
output

167
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.27
SFT
(SHIFT REGISTER)

5.27.1 This instruction shifts 2-byte (16-bit) data by a bit to the left or right. Note
Function that W1=1 when data ”1” is shifted from the left extremity (bit 15) in left
shift or from the right extremity (bit 0) in right shift.

5.27.2
Format
DIR
SFT *

CONT ffff

RST Address of W1
shift data

ACT
(SUB 33)

5.27.3 (a) Shift direction specification (DIR)


Control conditions DIR=0 : Left shift
DIR=1 : Right shift
(b) Condition specification (CONT)
CONT=0:
On ”1” bit shifts by one bit in the specified direction.
The condition of an adjacent bit (eighter right or left adjacent bit
according to the specification of shift direction DIR) is set to the
original bit position of the on ”1” bit.
Also, ”0” is set to bit 0 after shifting in the left direction or set to hit
15 after shifting in the right direction.
In case of leftward shift;

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Left shift

Bit shifts leftward every bit

Shift out at bit 15


Zero is set to bit 0.

CONT=1:
Shift is the same as above, but 1s are set to shifted bits.

168
B–61863E/09 I. 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

Each bit shifts leftward. Status 1 remains unchanged

(c) Reset (RST)


The shifted out data (W1=1) is reset (W1=0).
RST=0 : W1 is not reset.
RST=1 : W1 is reset (W1=0).
(d) Actuation signal (ACT)
Shift processing is done when ACT=1. For shifting one bit only,
execute an instruction when ACT=1, and then, set ACT to 0
(ACT=0).

5.27.4 (a) Shift data addresses


Parameters Sets shift data addresses. These designated addresses require a
continuous 2-byte memory for shift data.
Bit numbers are represented by bit 0 to 15 as shown below. When
addresses are designated for programming, an address number is
attached every 8 bits, and the designable bit numbers are 0 to 7.

7 6 5 4 3 2 1 0
Designated address

15 14 13 12 11 10 9 8

Designated address +1

5.27.5 W1=0 : ”1” was not shifted out because of the shift operation.
W1 W1=1 : ”1” was shifted out because of the shift operation.

169
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.28
DSCH
(DATA SEARCH)

5.28.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

Search data result output

5.27 (a)

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.28.2 Fig. 5.28 (b) shows the expression format and Table 5.28 shows the
Format coding format.

BYT (2)
DSCH (1) (2) (3) (4)
ffff.f Search data
BYT (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

Data table heading address

Number of data of the data table (Table capacity)

5.28 (b) DSCH instruction format

170
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5.28 DSCH instruction coding


Coding sheet Memory status of control condition
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 17 DSCH instruction
5 (PRM) ffff Number of data of the data table
6 (PRM) ffff Data table heading address
7 (PRM) ffff Search data address
8 (PRM) ffff Search result output address
9 WRT fff . f Search data presence/absence output adress W1

5.28.3 (a) Specify data size.


Control conditions BYT=0 : Data stored in the data table, BCD two digits long.
BYT=1 : Data stored in the data table, BCD four digits long.
(b) Reset
RST=0 : Release reset
RST=1 : Enables a reset, that is, sets W1 to 0.
(c) Execution command
ACT=0 : The DSCH instruction is not executed. W1 does not change.
ACT=1 : The DSCH is executed, and the table internal number
storing the desired data is output., If the data cannot be
found, W1=1.

5.28.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.28.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

5.28.6 Indicates the address of the data to be searched.


Search data address

5.28.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.

171
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.28.8 W1=0 : The data to be searched exists.


Search data W1=1 : The data to be searched does not exist.
presence/absence
output

172
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.29
DSCHB (BINARY
DATA SEARCH)

5.29.1 Alike the DSCH instruction of Section 5.28, 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.

Table number Data table


0
Search data
1
100 100
2
3
Search result output
2

5.29 (a)

5.29.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

5.29 (b)

173
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.29.3 (a) R eset (RST)


Control conditions RST=0 : Release reset
RST=1 : Reset. W1=”0”.
(b) Activation command
ACT=0 : Do not execute DSCHB instruction. W1 does not change.
ACT=1 : Execute DSCHB instruction. If the search data is found,
table number where the data is stored will be output. If the
search data is not found, W1 becomes 1.

5.29.4 (a) Format designation


Parameter Specifies data length. Specify byte length in the first digit of the
parameter.
1 : 1-byte long data
2 : 2-byte long data
4 : 4-byte long data
(b) Storage address of number of data in data table
Specifies address in which number of data in the data table is set.
This address requires memory of number of byte according to the
format designation.
Number of data in the table is n+1 (headnumber in the table is 0 and
the last number is n).
(c) Data table head address
Sets head address of data table.
(d) Search data address
Address in which search data is set.
(e) Search result output address
After searching, if search data is found, the table number where the
data is stored will be output. The searched table number is output in
this search result output address. This address requires memory of
number of byte according to the format designation.

5.29.5 W1=0 :Search data found.


Search result (W1) W1=1 :Search data not found.

174
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.30
XMOV (INDEXED
DATA TRANSFER)

5.30.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.

Table internal number Data table


0

ÅÅÅÅÅÅ ÅÅÅÅÅÅÅ
ÅÅÅÅÅÅÅ
1

ÅÅÅÅÅÅ
2
Input or output data 3
1
2

Table internal storing


2
input or output data

n
1 Read out data from the data table.
2 Write data in the data table.

5.30 (a) Reading and writing of data

5.30.2 Fig. 5.30 (b) shows the expression format and Fig. 5.30 shows the coding
Format 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)

5.30 (b) XMOV instruction format

175
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5.30 XMOV instruction coding


Coding sheet Memory status of control conditions
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RW BYT RW
3 RD. STK fff . f RST BYT RW RST
4 RD. STK fff . f ACT BYT RW RST ACT
5 SUB 18 XMOV instruction
6 (PRM) ffff Number of data of the data table
7 (PRM) ffff Data table heading address
8 (PRM) ffff Address storing input/output data
9 (PRM) ffff Address storing table internal number
10 WRT fff . f Error output W1

5.30.3 (a) Specify the number of digits of data.


Control conditions BYT=0 : Data stored in the data table, BCD in two digits long.
BYT=1 : Data stored in the data table, BCD in four digits long.
(b) Specify read or write
RW=0 : Data is read from the data table.
RW=1 : Data is write in the data table.
(c) Reset
RST=0 : Release reset.
RST=1 : Enables reset, that is, sets W1 to 0.
(d) Execution command
ACT=0 : The XMOV instruction is not executed. W1 does not
change.
ACT=1 : The XMOV instruction is executed.

5.30.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.30.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.30.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

176
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.30.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).

5.30.8 W1=0 :There is no error.


Error output W1=1 :There is an error.
An error occurs if a table internal number exceeding the
previously programmed number of the data table is specified.

177
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.31
XMOVB (BINARY
INDEX MODIFIER
DATA TRANSFER)

5.31.1 Alike the XMOV instruction of Section 5.30, 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.

Table internal number Data table


0

ÅÅÅÅÅÅ ÅÅÅÅÅÅ
ÅÅÅÅÅÅ
1

ÅÅÅÅÅÅ
2
Input or output data
1 3
2

Table number where 2


input/output data is stored

1 Data read from data table n


2 Data write to data table

5.31 Data read and data write

5.31.2
Format

RW
* * * *
XMOVB f ffff ffff ffff ffff
RST Storage Data I/O data Table
address table storage number
of W1
head address storage
Format number address address
ACT of data
designa-
in data
(SUB 35) tion table

178
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.31.3 (a) Read, write designation (RW)


Control conditions RW=0 : Read data from data table.
RW=1 : Write data to data table.
(b) Reset (RST)
RST=0 : Reset release.
RST=1 : Reset. W=1.
(c) Activation command (ACT)
ACT=0: Do not execute MOV instruction.
There is no change in W1.
ACT=1: Execute MOV instruction.

5.31.4 (a) Format designation


Parameters Specifies data length. Specify byte length in the first digit of the
parameter.
1 : 1-byte long data
2 : 2-byte long data
4 : 4-byte long data
(b) Storage address of number of data in data table
Specifies address in which number of data in the data table is set.
This address requires 1 or 2-byte memory according to the format
designation.
Number of data in the table is n+1 (head number in the table is 0 and
the last number is n).
(c) Data table head address
Sets head address in the data table.
(d) Input/Output data storage address
Reads and rewrites data in the data table. The data read or rewritten
is stored in this address.
(e) Table number storage address
When reading or rewriting data in the data table, table number of
where to read or rewrite must be specified. The specified table
number is stored in this table number storage address. This address
requires 1 or 2-byte memory according to the format designation.

5.31.5 W1=0 :No error


Error output (W1) W1=1 :Error found.
Error will be output if number of data more than pre-programmed in the
data table is specified.

179
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.32
ADD (ADDITION)

5.32.1 Adds BCD two-or four-digit data.


Function

5.32.2 Fig. 5.32 shows the expression format and Table 5.32 shows the coding
Format 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

Control conditions Addend


Summand address

Format of addend (Constant or address)

5.32 ADD instruction format

Table 5.32 DSCH instruction coding


Coding sheet Memory status of control conditions
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 19 ADD instruction
5 (PRM) f Addend format
6 (PRM) ffff Summand address
7 (PRM) ffff Addend (address)
8 (PRM) ffff Sum output address
9 WRT fff . f Error output W1

180
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.32.3 (a) Specify the number of digits of data.


Control conditions BYT=0 : Data is BCD two digits long.
BYT=1 : Data is BCD four digits long.
(b) Reset
RST=0 : Release reset.
RST=1 : Resets error output W1, that is, sets W1 to 0.
(c) Execution command
ACT=0 : The ADD instruction is not executed.
ACT=1 : The ADD instruction is executed.

5.32.4 0 : Specifies addend with a constant.


Data format of addend 1 : Specifies addend with an address.

5.32.5 Set the address storing the summand.


Summand address

5.32.6 Addressing of the addend depends on 4).


Addend (address)

5.32.7 Set the address to which the sum is to be output.


Sum output address

5.32.8 If the sum exceeds the data size specified in 3), a), W1=1 is set to indicate
Error output an error.

181
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.33
ADDB
(BINARY ADDITION)

5.33.1 This instruction performs binary addition between 1-, 2-, and 4-byte data.
Function In the operation result register (R9000), operating data is set besides the
numerical data representing the operation results. The required number
of bytes is necessary to store each augend, the added, and the operation
output data.

5.33.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

5.33.3 (a) Reset (RST)


Control conditions RST=0 : Release reset
RST=1 : Resets error output W1. In other words, makes W1=0.
(b) Command (ACT)
ACT=0 : Do not execute ADDB. W1 does not change now.
ACT=1 : Execute ADDB.

5.33.4 (a) Format specification


Parameters Specifies data length (1,2, and 4 bytes) and the format for the addend
(constant or address).

0 0

Data length specification


1 : 1 byte length data
2 : 2 bytes length data
4 : 4 bytes length data

Format specification
0 : Constant data
1 : Address data

182
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(b) Augend address


Address containing the augend.
(c) Addend data (address)
Specification in (a) determines the format of the addend.
(d) Result output address
Specifies the address to contain the result of operation.

5.33.5 W1=0 :Operation correct


Error output (W1) W1=1 :Operation incorrect
W1 goes on (W1=1) if the result of addition exceeds the specified data
length.

5.33.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

183
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.34
SUB (SUBTRACTION)

5.34.1 Subtracts BCD two-or four-digit data.


Function

5.34.2 Fig. 5.34 shows the expression format and Table 5.34 shows the coding
Format 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

Control condition Subtrahend (address or constant)


Subtrahend (data address)

Minuend data format

5.34 SUB Instruction format

Table 5.34 SUB instruction format


Coding sheet Memory status of control conditions
Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 20 SUB instruction
5 (PRM) f Data format of subtrahend
6 (PRM) ffff Minuend address
7 (PRM) ffff Subtrahend (address)
8 (PRM) ffff Difference output address
9 WRT fff . f Error output W1

184
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.34.3 (a) Specification of the number of digits of data.


Control conditions BYT=0 : Data BCD two digits long
BYT=1 : Data BCD four digits long

5.34.4 RST=0 : Release reset.


Reset RST=1 : Resets error output W1, that is, sets W1 to 0.

5.34.5 ACT=0 : The SUB instruction is not executed. W1 does not change.
Execution command ACT=1 : The SUB instruction is executed.

5.34.6 0 : Specifies subtrahend with a constant.


Data format of 1 : Specifies subtrahend with an address.
subtrahend

5.34.7 Set the address storing the minuend.


Minuend address

5.34.8 Addressing of the subtrahend depends on (6).


Subtrahend (address)

5.34.9 Sets the address to which the difference is output.


Difference output
address

5.34.10 W1 is set 1 to indicate an error if the difference is negative.


Error output

185
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.35
SUBB (BINARY
SUBTRACTION)

5.35.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.35.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
cation address

5.35.3 (a) Reset (RST)


Control conditions RST=0 : Release reset
RST=1 : Resets error output W1. (Set W1 to 0.)
(b) Command (ACT)
ACT=0: Do not execute SUBB. W1 does not change now.
ACT=1: Execute SUBB.

5.35.4 (a) Format specification


Parameters Specifies data length (1, 2, and 4 bytes) and the format for the
subtrahend (constant or address).

0 0

Data length specification


1 : 1 byte length data
2 : 2 bytes length data
4 : 4 bytes length data
Format specification
0 : Constant data
1 : Address data

(b) Minuend address


Address containing the minuend.

186
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(c) Minuend data (address)


Specification in (a) determines the format of the minuend.
(d) Result output address
Specifies the address to contain the result of operation.

5.35.5 W1=0 :Operation correct


Error output (W1) W1=1 :Operation incorrect
W1 goes on (W1=1) if the result of subtraction exceeds the specified data
length.

5.35.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

187
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.36
MUL
(MULTIPLICATION)

5.36.1 Multiplies BCD two-or four-digit data. The product must also be BCD
Function two-or four-digit data.

5.36.2 Fig. 5.36 shows the expression format and Table 5.36 shows the coding
Format 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

Control conditions Multiplier (address or constant)


Multiplicand address

Data format of multiplier (constant or address)

5.36 MUL instruction format

Table 5.36 MUL instruction coding

Coding sheet Memory status of control conditions


Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 21 MUL instruction
5 (PRM) f Data format of multiplier
6 (PRM) ffff Multiplicand address
7 (PRM) ffff Multiplier (address)
8 (PRM) ffff Product output address
9 WRT fff . f Error output W1

188
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.36.3 (a) Specify the number of digits of data.


Control conditions BYT=0 : Data is BCD two digits long.
BYT=1 : Data is BCD four digits long.
(b) Reset
RST=0 : Releases reset.
RST=1 : Resets error output W1, that is, sets W1 to 0.
(c) Execution command
ACT=0 : The MUL instruction is not executed. W1 does not
change.
ACT=1 : The MUL instruction is executed.

5.36.4 0 : Specifies multiplier with a constant.


Data format of 1 : Specifies multiplier with an address.
multiplier

5.36.5 Sets the address storing the multiplicand.


Multiplicand address

5.36.6 Addressing of the multiplier depends on 4).


Multiplier (address)

5.36.7 Set the address to which the product is output.


Product output
address

5.36.8 W1=1 is set to indicate an error if the product exceeds the size specified
Error output in 3), a).

189
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.37
MULB (BINARY
MULTIPLICATION)

5.37.1 This instruction multiplies 1-, 2-, and 4-byte 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.37.2
Format

A × B = C Error output
RST
MULB * * *
ffff ffff ffff ffff

ACT W1
Format Multi-plic Multiplier Product
(SUB 38) specifi- and address or output
cation address constant address

5.37.3 (a) Reset (RST)


Control conditions RST=0 : Release reset
RST=1 : Resets error output W1. In other words, makes W1=0.
(b) Command (ACT)
ACT=0: Do not execute MULB. W1 does not change now.
ACT=1: Execute MULB.

5.37.4 (a) Format specification


Parameters Specifies data length (1, 2, and 4 bytes) and the format for the
multiplier (constant or address).

0 0

Data length specification


1 : 1 byte length data
2 : 2 bytes length data
4 : 4 bytes length data

Format specification
0 : Constant data
1 : Address data

190
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(b) Multiplicand address


Address containing the multiplicand.
(c) Multiplier data (address or constant)
Specification in (a) determines the format of the multiplier.
(d) Result output address
Specifies the address to contain the result of operation.

5.37.5 W1=0 :Operation correct


Error output (W1) W1=1 :Operation incorrect
W1 goes on (W1=1) if the result of multiplication exceeds the specified
data length.

5.37.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

191
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.38
DIV (DIVISION)

5.38.1 Divides BCD two-or four-digit data. Remainders are discarded.


Function

5.38.2 Fig. 5.38 shows the expression format and Table 5.38 shows the coding
Format 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

Control conditions Divisor (address or constant)


Dividend address

Data format of divider

5.38 DIV instruction format

Table 5.38 DIV instruction coding

Coding sheet Memory status of control conditions


Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f RST BYT RST
3 RD. STK fff . f ACT BYT RST ACT
4 SUB 22 DIV instruction
5 (PRM) f Data format of divider
6 (PRM) ffff Dividend address
7 (PRM) ffff Divider (address)
8 (PRM) ffff Quatient output address
9 WRT fff . f Error output W1

192
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.38.3 (a) Specify the number of digits of data.


Control conditions BYT=0 : Data is BCD two digits long.
BYT=1 : Data is BCD four digits long.
(b) Reset
RST=0 : Releases reset.
RST=1 : Resets error output W1, that is, sets W1 to 0.
(c) Execution command
ACT=0 : The DIV instruction is not executed. W1 does not change.
ACT=1 : The DIV instruction is executed.

5.38.4 0 : Specifies divisor data by constant.


Divisor data format 1 : Specifies divisor data by address.
designation

5.38.5 Sets the address storing the dividend.


Dividend address

5.38.6 Addressing of the divisor depends on 4).


Divisor (address)

5.38.7 Sets the address to which the quotient is output.


Quotient output
address

5.38.8 W1=1 is set to indicate an error if the divider is 0.


Error output

193
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.39
DIVB (BINARY
DIVISION)

5.39.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.39.2
Format

A / B = C Error data
RST
* * *
DIVB ffff ffff ffff ffff

Divisor W1
ACT
Format Dividend (address) Quotient
SUB 36 specifi- address or address
cation constant

5.39.3 (a) Reset (RST)


Control conditions RST=0 : Release reset
RST=1 : Resets error output W1. In other words, makes W1=0.
(b) Command (ACT)
ACT=0: Do not execute DIVB. W1 does not change now.
ACT=1: Execute DIVB.

5.39.4 (a) Format specification


Parameters Specifies data length (1, 2, and 4 bytes) and the format for the divisor
(constant or address).

0 0

Data length specification


1 : 1 byte length data
2 : 2 bytes length data
4 : 4 bytes length data
Format specification
0 : Constant data
1 : Address data

194
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(b) Dividend address


Address containing the dividend
(c) Divisor data (address)
Specification in (a) determines the format of the divisor.
(d) Result output address
Specified the address to contain the result of operation.

5.39.5 W1=0 :Operation correct


Error output (W1) W1=1 :Operation incorrect
W1 goes on (W1=1) if the divisor is 0.

5.39.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

5.39.7 Depending on its length, the remainder is stored in one or more of


Remainder output registers R9002 to R9005.
address

195
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.40
NUME (DEFINITION
OF CONSTANT)

5.40.1 Defines constants, when required. In this case, constants are defined with
Function this instructions.

5.40.2 Fig. 5.40 shows the expression format and Table 5.40 shows the coding
Format format.

BYT (1) (2)


(1) NUME

fff.f ffff ffff


ACT (0)
(SUB 23)
fff.f

Instruction Constant Constant outputaddress


Control condition

5.40 NUME instruction format


Table 5.40 NUME instruction coding

Coding sheet Memory status of control conditions


Step Instruc- Address
Bit No. Remarks ST3 ST2 ST1 ST0
Number tion No.
1 RD fff . f BYT BYT
2 RD. STK fff . f ACT BYT ACT
3 SUB 23 NUME instruction
4 (PRM) ffff Constant

5 (PRM) ffff Constant output address

5.40.3 (a) Specify the number of digits of a constant.


Control conditions BYT=0 : Constant is BCD two digits long.
BYT=1 : Constant is BCD four digits long.
(b) Execution command
ACT=0 : The NUME instruction is not executed.
ACT=1 : The NUME instruction is executed.

5.40.4 Sets the constant as the number of digits specified in Item (a) in Subsec.
Constant 5.40.3.

5.40.5 Sets the address to which the constant defined in Subsec. 5.40.4 is output.
Constant output
address

196
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.41
NUMEB (DEFINITION
OF BINARY
CONSTANTS)

5.41.1 This instruction defines 1, 2, or 4-bytes long binary constant. Data entered
Function in decimal during programming is converted into binary data during
program execution. The binary data is stored in the specified memory
address(es).

5.41.2
Format
*
NUMEB
ACT
f ff ffff

Format Constant
(SUB 40) specifi- Constant output
cation address

5.41.3 (a) Command (ACT)


Control conditions ACT= 0: Do not execute NUMEB.
ACT= 1: Execute NUMEB.

5.41.4 (a) Format specification


Parameters Specifies data length (1, 2, or 4 bytes).
Use the first parameter digit to specify byte length:
1 : 1 byte
2 : 2 bytes
4 : 4 bytes
(b) Constant
Defined constants in decimal format. The constant must not executed
the number of bytes specified (format specification).
(c) Constant output address
Specifies the address of the area for output of the binary data. A
continuous memory area of the specified number of bytes is required
from the specified address.

197
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.42
DISP(MESSAGE
DISPLAY)
(PMC–RB/RB2/RB3/
RB4/RB5/RB6/RC/
RC3/RC4 ONLY)

5.42.1 DISP is used to display messages on the CRT screen, CNC of which enters
Function alarm status. Message data to be displayed is specified after the
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 display-request 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.42.2 Fig. 5.42 (a) shows the instruction format and Table 5.42 (a) shows the
Format coding format.

198
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(1) (2) (3) Process end


DISP
ACT
(SUB 49) ffff ffff ffff W1

fff. f

Message control address


Control condition
Number of data of one message data
Instruction
Total sum of data of message data

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  n  16

5.42 (a) DISP instruction format

199
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5.42 (a) DISP instruction coding

Coding sheet Memory status of control


conditions
Step Instruc- Address
Bit No. Remarks ST2 ST1 ST0
Number tion No.
RD fff . f ACT ACT
SUB 49 DISP ACT
(PRM) ffff Total sum of data of message data
(PRM) ffff Number of data of one message item
(PRM) ffff Message control address
(PRM) ffff Message number
(PRM) ffff 2
(PRM) ffff 3
: : : Message characters
: : :
(PRM) ffff m
(PRM) ffff Message number
(PRM) ffff 2
(PRM) ffff 3
: : : Message characters
: : :
(PRM) ffff m
: : :
: : :
(PRM) ffff Message number
(PRM) ffff 2
(PRM) ffff 3
: : : Message characters
: : :
(PRM) ffff m
WRT ffff Process end (W1) W1

5.42.3 ACT=0: Nothing is processed. W1 does not change.


Control condition ACT=1: The specified message data is displayed or cleared.
ACT must remain 1 until processing end is reported by W1.

5.42.4 (a) Total sum of message data of data:


Parameters mn
(b) Number of data of one massage data:
m Note)
(c) Message control address: Specifies the address of the RAM of
internal relay area (see (7) for details).

200
B–61863E/09 I. 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.

5.42.5 (a) Message number:


Message data The specified number produces an appropriate event as follows.
1000 to 1999 (alarm message):
The CNC is put in alarm status and the number and following data
are displayed. The maximum number of the displayed characters
is up to 32, except for the message number. When an alarm status
occurs, the operation being executed stops. To release the alarm
status, set the display-request bit (see Fig. 5.42 (b)) to 0.
2000 to 2099 (operator message):
The CNC is not put in alarm status and the number and following
data are displayed. The maximum number of the displayed
characters is 255, except for the message number.
2100 to 2999 (operator message):
The CNC is not put in alarm status and the number is not displayed.
Only the following data (up to 255 characters) is displayed.

Note
If all characters in the operator message are kana
characters, up to 254 kana characters are displayed.

(b) Message character


An alphanumeric character is specified with a two-digit decimal (two
characters per step). Table 5.42 (b) shows the correspondence
between characters and specified numbers.
The above message data is always specified because it is written on
ROM. The message data cannot therefore be changed as desired.
However, arbitrary numeric data of up to four BCD digits can be
displayed according to the specified variable data. The spindle tool
number which changes whenever ACT tools are changed and the
number of the tool at the tool-change position can be displayed, for
example. For specifying variable data, see (10) below.

5.42.6 W1=0 :Processing ends. Normally, W1=0. If W1=0 after W1=1,


Error output (W1) processing ends.
W1=1 :In process. W1=1 when ACT=1.

201
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Table 5.42 (b) Correspondince between characters and specified numbers


Specified Corresponding Specified Corresponding Specified Corresponding Specified Corresponding
number character number character number character number character
32 (space) 64 160 192
33 65 161 193
34 66 162 194
35 67 163 195
36 68 164 196
37 69 165 197
38 70 166 198
39 71 167 199
40 72 168 200
41 73 169 201
42 74 170 202
43 75 171 203
44 76 172 204
45 77 173 205
46 78 174 206
47 79 175 207
48 80 176 208
49 81 177 209
50 82 178 210
51 83 179 211
52 84 180 212
53 85 181 213
54 86 182 214
55 87 183 215
56 88 184 216
57 89 185 217
58 90 186 218
59 91 187 219
60 92 188 220
61 93 189 221
62 94 190 222
63 95 191 223
*1) minus *2) Under bar *3) Long bar

202
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.42.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
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.

One DISP functional instruction requires the four consecutive bytes


following the address specified in the above message control address
in order to check the display request and displayed status.
When messages are displayed or cleared, message data 1 to n (n x
16) and display-request bits correspond to each other as shown in
Fig.5.42 (b).
To display and clear a message data item, set the corresponding bit
to 1 and 0, respectively, and the control condition ACT to 1.
If the sequence program checks messages displayed on the screen,
message data 1 to n and display-request bits correspond to each other
as shown in Fig.5.42 (b).
Message data for which 1 is set among the 16 displayed status bits,
is the message data currently being displayed.

203
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

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
Display address 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 +1 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 8 7 6 5 4 3 2 1
Display
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.42 (b) 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.

5.42.8 (a) CNC external data input function


Remarks on using the The DISP instruction displays mes-sages using external data input
DISP instruction function or external message display, which in-volves external
work-number search, external tool offset, external work co-ordinate
system shift, etc. as well as message display. The DISP instruction
cannot display messages when any of these functions is being
executed. To check this, EPCA (any address in inter-nal relay area)
and EPCB (any address in control relay area) are used as interlock
signal. The sequence program sets EPCA to 1 while the message is
displayed, and to 0 upon competion of processing. The sequence
program sets EPCB to 1 while any function other than the above is
being processed, and to 0 upon completion of processing.
When EPCB = 1, messages must not be displayed (DISP ACT must
not be 1). Set ACT to 1 after making sure that EPCB = 0.
When the function other than message display is executed, execute
after making sure that EPCA = 0. DISP instruction and external data
input function (external tool offset, external work number search)
must be programmed in the same sequence level.
(b) External data input function address
During DISP instruction execution (EPCA = 1), the PMC ³ CNC
interface of the external data input function must not be used for
processing of external tool offset, external work-number search or
external work coordinate system shifting. If EPCA = 1, use the JUMP
instruction, for example, to skip writing data, so that nothing is
written in the interface.
(c) ACT and W1 of the DISP instruction
(a) Timing of ACT ON
If EPCB = 0, ACT may be set to 1 with any timing. For instance,
when all display-request bits are off or when the status displayed
on the screen and the display requests are the same, that is, when
there are no new display requests, even if ACT = 1, the DISP
instruction processes nothing and the operation terminates (W1
= 0).
Even if another display-request bit is set on and ACT is set to 1

204
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

with a prescribed number of messages (four alarm messages or


one operator messages) displayed on the screen, no message is
displayed for that request, but W1 = 0 after W1 = 1 and W1 = 1
again during execution of the next cycle. In other words, W1 only
changes back and forth between 1 and 0.
(b) Using two or more DISP instructions
If EPCB = 0, ACT of each DISP instruction may be turned on
simultaneously. Until the DISP instruction whose ACT was set
to 1 earlier, has been completed (W1 = 0), executing of the next
DISP instruction is kept waiting. W1 of the DISP instruction kept
waiting remains 0 at this time. Consequently, no messages more
than those specified number are displayed, as discussed in (a).
From (i) and (ii) above, set ACT to 1 whenever EPCB = 0. Do not
set ACT to 1 when EPCB = 1.

205
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.42.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)

[Message data specified]


7 6 5 4 3 2 1 0

AddressR220 0 0 0 0 0 MSI AL2 AL1


Display request
R221 0 0 0 0 0 0 0 0

R222 0 0 0 0 0
Display state
SPER R223 0 0 0 0 0 0 0 0
AL1

R220.0
ATCER  SPINDLE ALARM Message data 1 : AL1
AL2  ATC ALARM Message data 2 : AL2
 WORK SET UP Message data 3 : MS1
R220.1
WORK
MS1

R220.2

EPCB
ACT Whenever EPCB=0, ACT=1

R201.2

DISP Total One Control Messa


sum messag ge
ACT of
SUB es 10 addres When ACT=1, promptly R1=1, display being begun.
message W1
49 s
R201.2 s When display is completed, automatically W1=0.
R220
30 R201.3

1 1010 SPINDLE ALARM


2 1020 ATC ALARM
3 2100 WORK SET UP

W1
EP Interlock signal for external data input function
R201.3 CA
R295.0

5.42 (c)

206
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5.42 (c)


Step Instruc- Address
Number tion 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
m=10)
10)
0222
0221
0196
0222
(PRM) 0216
ACT
WRT R201.3 Process end (W1) W1
RD R201.3 W1
WRT R295.0 W1

Notes
1. 00 is ignored data.
2. Display example (The following is displayed on the screen in message data 1).
1010__SPINDLE_ALARM

207
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(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

5.42 (d)

208
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.42.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 SUB49 Instruction format
data
ffff Total number of steps in message data

ffff Number of steps in one message data item

ffff Message control address


ffff Message number

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

Notes
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.

(1) Specifying variable data


990m

Specifies the number of digits in the variable data.


(1m4)

Variable data

(2) Variable data address


VVVV:              

209
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(3) Variable data


Specify variable data consisting of up to four BCD digits (the number
of digits specified for m) to be displayed at the address specified by
the variable data address using the sequence program.
For example, variable data 1234 is specified at variable data address
R300 in BCD as shown below:

AddressR300 0011 0100

R301 0001 0010

(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

AddressR350 0011 0100

R351 0001 0010

210
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.43
DISPB

5.43.1 This instruction displays messages on the CRT/MDI 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.42.
However, it performs a special additional function, namely, it displays
numerical data.
You can program up to 200 messages. You must use the special message
addresses in your program (see Sec. 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 A0 to A24) and the
message data table.
Relation between the message display request memory address and
the message data table appears in Table 5.43.

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 (Message datacorresponding
A0 A0.0 to address A0.0)
A1
(Message datacorresponding
A2
A0.1 to address A0.1)

(Maximum) A2
(Maximum) A24.7 (Message datacorresponding
to address A24.7)

5.43 Message display request memory and message data table

(i) Message display request memory (RAM)


Addresses A0 to A24 constitute a 200-bit area. This is a display
request memory for up to 200 messages, each bit corresponding
to a message.
If you want to display a message on the CRT, set the
corresponding display request memory 1. Set 0 to erase the
message of CRT.
(ii) Message data table
This table stores messages corres-ponding to the message display
request bits. The table is stored in the EPROM together with the
sequence program. Message data table numbers correspond to the
message display request memory addresses.
The message data table capacity is prepared by the maximum

211
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

capacity of a message, or, 255 characters (255 bytes). Produce a


message data within this capacity.
A character prepared in CRT/MDI key consists of one byte, and
4 bytes are necessary for a message number (consisting of 4
characters) in the next item. A character not covered by the
CRT/MDI keys requires two bytes (a half–width kana character)
or four bytes (a kanji character or other full–width character). For
details, see Section 5.43.6.
(iii) Message number
This message number consisting of 4 digits must always be
defined at the start of each message data. The CRT display is as
specified below by this message number.
 FS16-M/T, FS18-M/T, FS15, FS20, Power Mate-D (single
path control), Power Mate-F and Power Mate-H
Message CNC Display contents
number screen
1000 to 1999 Alarm message Alarm message
screen  CNC is turned to alarm state.
2000 to 2099 Operator Operator message
message screen
2100 to 2999 Operator message (without message number)
 Only message data, no message number, is
displayed.

 FS16-TT and FS18-TT


Message CNC Display contents
number screen
1000 to 1999 Alarm message Alarm message
screen (The 1st  The 1st tool post side of CNC is turned to alarm
tool post side) state.
2000 to 2099 Operator Operator message
message screen
2100 to 2999 Operator message (without message number)
5000 to 5999 Alarm message Alarm message
screen (The 2nd  The 2nd tool post side of CNC is turned to alarm
tool post side) state.
 The displayed message number is a value by
witch 4000 is subtracted from specified number.

 Power Mate-D (dual path control)


Message CNC Display contents
number screen
1000 to 1999 Alarm message Alarm message
screen (The 1st  The 1st path side of CNC is turned to alarm state.
path side)
2000 to 2099 Operator Operator message
message screen
2100 to 2999 (Th 1st path
(The h Operator message (without message number)
side)

5000 to 5999 Alarm message Alarm message


screen (The 2nd  The 2nd path side of CNC is turned to alarm
path side) state.
 The displayed message number is a value by
witch 4000 is subtracted from specified number.
6000 to 6099 Operator Operator message
message screen  The displayed message number is a value by
(The 2nd path witch 4000 is subtracted from specified number.
side)
6100 to 6999 Operator message (without message number)

212
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Moreover, the DPL/ MDI display with Power Mate is as specified


below by this message number.
 Power Mate-D (single path control), Power Mate-F and
Power Mate-H
Message CNC Display contents
number screen
1000 to 1999 Alarm message Message number
screen  CNC is turned to alarm state.
 Only message number, no message data, is
displayed.
2000 to 2099 Operator Operator message
message screen  Only message data
data, no message number
number, is
2100 to 2999 displayed.

 Power Mate-D (dual path control)


Message CNC Display contents
number screen
1000 to 1999 Alarm message Message number
screen (The 1st  The 1st path side of CNC is turned to alarm state.
path side)  Only message number, no message data, is
displayed.
2000 to 2099 Operator Operator message
message screen  Only message data, no message number, is
2100 to 2999 (Th 1st path
(The h di l
displayed.
d
side)

5000 to 5999 Alarm message Message number


screen (The 2nd  The 2nd path side of CNC is turned to alarm
path side) state.
 Only message number, no message data, is
displayed.
 The displayed message number is a value by
witch 4000 is subtracted from specified number.
6000 to 6099 Operator Operator message
message screen  Only message data, no message number, is
6100 to 6999 (Th 2nd
(The d path
h di l d
displayed.
side)

Notes
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 33nd character is
not displayed.
3. A ”to” character (code A0H) is displayed as space character
to the screen on DPL/MDI.
4. The DPL/MDI cannot display kanji (full–width) 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.43.6).

213
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(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.43.2
Format
DISPB fff

ACT

(SUB 41) Number of


message

5.43.3 ACT=0 : Do not display messages on the CRT.


Conditions ACT=1 : Display the messages on the CRT.

5.43.4 (a) Number of messages


Parameters Specifies the total number of messages (up to 200).

5.43.5 To change the numerical data contained within the messages, enter in the
Numerical data display messages the number of digits making up the data and the memory
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.

214
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(a) Numerical data format

[Ibid, ffff]

Memory address storing the numerical data.


The numerical data must be of binary format.

Set the bid data after character i:

b: Number of bytes (1, 2, or 4)


i: Number of digits in the integer part (0 to 8)
d: Number of digits in the fractional part (0 to 8)

Notes
1. Sum of integer part digits and fractional part digits must be
within 8.
2. Blank is displayed for digits exceeding 8 digits.

(b) Example
The following message includes a 3-digit tool number at the spindle
and the offset data (f.ff) for this tool. And these data is contained
in a 2-byte memory address:
SPINDLE TOOL No. = [I 230,VVVV]
OFFSET DATA = [I 212, ]

5.43.6 Message characters not covered by the CRT/MDI keys (kanji and
Defining characters not half–width kana characters) can be input as follows:
found in the CRT/MDI (a) Half–width kana characters
(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.43). 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:

(b) Kanji (full–width) characters


 : Can be used
 : Cannot be used
Power FS20 FS21B FS18A FS16A FS16B FS16C FS15B
Mate FS21A FS18B FS18C

PA1 RA1 RA1 RA1 RA2 RB RB2 RC RB3 RC3 RB5 RC3 NB NB2
PA3 RA3 RA3 RA3 RB3 RC3 RB4 RC4 RB6 RC4

  f f  f  f f f f f  

215
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Notes
1. The PMC–RA1 for the FS18–A can be used when the PMC management software series is
4071.
2. The PMC–RB for the FS16–A can be used when the PMC management software series is
4063.
3. The PMC–RC/RC3 for the FS16–A cannot be used depending on the series and edition of the
CNC software.
4. For the FS16–A, 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.

(i) Data format


Numerical code enclosed by @02 and 01@
(ii) Input method
Enter the numerical codes corresponding to the characters to be
input, by referring to the kanji, hiragana, and special code table
in Appendix O. Each character requires four bytes.
(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

Notes
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 @ ar 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 : 2–byte code (kanji and hiragana characters)
01 : 1–byte code (alphanumerics and half–width 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@

216
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5.43 Character code table

2 3 4 5 A B C D
0 (Space) 0 @ P to _ *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) Han-dakuten

5.43.7 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

217
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.44
EXIN (EXTERNAL
DATA INPUT)

5.44.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
PMCCNC directly in your program.
The DISPB instruction uses the interface between the PMC and CNC
provided by the external data input function during display. The DISP
instruction prevents the interface signal transferred between the PMC and
CNC from being changed due to external cutter compensation or others.
You can use the EXIN instruction only when the PMCCNC interface
is of BMI (Basic Machine Interface) and optional external data input
function is provided with CNC.
An 4-byte control data as described below is required for external data
input function (option).

5.44.2
Format
ACT
EXIN ffff
W1
(SUB 42)
Control data
address

5.44

5.44.3 ACT=0 : Do not process external data input/output.


Control conditions ACT=1 : Process external data input/output.
ACT is to be maintained ’1’ till the end of external data input/output. After
external data input, reset ACT (W1 = 1).

5.44.4 (a) Control data (except PMC–NB)


Parameter The control data requires an area of four consecutive bytes beginning
with an address to be specified. In 16-TT and 18-TT, the first-byte
area is used for specifying a tool post.
In systems other than 16-TT and 18-TT, specify 0 for the area.
Specify data to be set for addresses G0 to G2 of the interface from
PMC to NC for the remaining three-byte area in sequence. For tool
post 2 of 16-TT or 18-TT, specify data to be set for addresses G1000
to G1002 in sequence. (Be sure to set the strobe signal (ESTB) to
ON.)

218
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

CTL+0
HEAD.NO (TT)
+1
ED0 to ED7
+2
ED8 to ED15
+3
EA0toEA6,ESTB
+4

[For systems other than 16-TT and 18-TT]


CTL+0 : 0
CTL+1 to CTL+3 : Data to be specified for G0 to G2
[For 16-TT and 18-TT]
(i) Tool post 1
CTL+0 : 0
CTL+1 to CTL+3: Data to be specified for G0 to G2
(ii) Tool post 2
CTL+0 : 2
CTL+1 to CTL+3: Data to be specified for G1000 to G1002

Note
Refer to the ”Series 16 or 18 Connection Manual” for
detailed data to be specified concerning external data input.

(b) A consecutive area in eight bytes is necessary as the control data.


In 15- M/ T, set command data in this CTL+0 - +7 by the same data
form as G32- 39 of BMI interface.
In 15- TT, set command data in this CTL+0 - +7 by the same data
form as G112- 119 of BMI interface.

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

A consecutive area in 16 bytes is necessary as the control data.


In 15-M/T, set command data in first CTL+0 - +7 by the same data
form as G32-39 of BMI interface. The data output from NC is written
in CTL+8 - +15 in the same data form as BMI interface F32-39.

219
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

In 15-TT, set command data in first CTL+0 - +7 by the same data


form as G112-119 of BMI interface. The data output from NC is
written in CTL+8 - +15 in the same data form as BMI interface
F112-119.

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 15-MODEL B Connection Manual (BMI
interface)”

5.44.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.

Notes
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.

220
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.44.6 If any of the following errors occurs during external data input, the bit in
Operation output the operation output register is set. In this case, external data transfer ends
(W1 = 1).
register

7 6 5 4 3 2 1 0
R9000

EXIN error

(Description of errors)
 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.
 An invalid head number was specified for 16-TT or 18-TT. (Data
other than 0 to 2 was specified.)

5.44.7 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

221
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.45
WINDR (READING
CNC WINDOW DATA)

5.45.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 high–speed
response and the latter is called the function of a low–speed response.

5.45.2
Format

ACT W1

WINDR Control
data
(SUB 51) address

5.45

5.45.3 ACT=0 : The WINDR function is not executed.


Control condition ACT=1 : The WINDR function is executed. Using the function of a
high–speed response, it is possible to read the data continuously
by always keeping ACT on. However, using the function of a
low–speed response, as soon as reading a data is completed,
reset ”ACT” once (ACT=0).

5.45.4 (a) Control data address


Parameter The PMC byte address is used to specify the area where control data
is stored.

222
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.45.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. However, function of
a low–speed response is used, the area
+n in 32 bytes is always necessary.

See Appendix B WINDOW FUNCTION DESCRIPTION.

Notes
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
(above–mentioned) is occasionally displayed. Even in this
case, the ”WINDR” or ”WINDW” is executed correctly.

5.45.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 low–speed response is
used, as soon as reading a data is completed, reset ”ACT”
(ACT=0).

223
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.45.7 If an error occurs during execution of the ”WINDR” or ”WINDW”, the


Operation output bit in the operation output register is set. At the same time, the reading
completion is set (W1=1). Details of the error are output to the completion
register code (CTL+2) in the control data area. See Appendix B WINDOW
FUNCTION DESCRIPTION.

7 6 5 4 3 2 1 0
R9000

WINDR error

5.45.8 When you use the function of a low–speed response, there are a few
Notes when this limitation. Refer to ”9.3 NOTE FOR SUBROUTINES WHEN YOU
USE SUBROUTINES” When you use the function of a high–speed
functional instruction response, there is no limitation.
is used in subroutine

224
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.46
WINDOW (WRITING
CNC WINDOW DATA)

5.46.1 This function writes various data items via the window between the PMC
Function and the CNC.
The ”WINDR” is classified into the function of a low–speed response.

5.46.2
Format

ACT W1

WINDW Control
data
(SUB 52) address

5.46

5.46.3 ACT=0 : The WINDW function is not executed.


Control condition ACT=1 : The WINDW function is executed. As soon as writing a data is
completed, reset ”ACT” once (ACT=0).

5.46.4 (a) Control data address


Parameter The PMC byte address is used to specify the area where control data
is stored.

5.46.5
Control data CTL+0 Function code * Set the control data area by sequence
program before executing the
+2 Completion code ”WINDR” or ”WINDW”.

+4 Data length

+6 Data number

+8 Data attribute

+10 Writing data


* The size of the writing data is always
+42 necessary in 32 bytes.

See Appendix B WINDOW FUNCTION DESCRIPTION.

225
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Notes
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
(above–mentioned) is occasionally displayed. Even in this
case, the ”WINDR” or ”WINDW” is executed correctly.

5.46.6 W1=0 : ”W1” is usually reset. The ”W1=0” indicates that the
Writing completion ”WINDW” is not executed or the ”WINDW” being executed
now.
(W1) W1=1 : ”W1” is set when the writing a data is completed by the writing
command (ACT=1). As soon as writing a data is completed,
reset ”ACT” (ACT=0).

5.46.7 If an error occurs during execution of the ”WINDR” or ”WINDW”, the


Operation output bit in the operation output register is set. At the same time, the writing
completion is set (W1=1). Details of the error are output to the completion
register code (CTL+2) in the control data area. See Appendix B WINDOW
FUNCTION DESCRIPTION.

7 6 5 4 3 2 1 0

R9000

WINDW error

226
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.46.8 When you use the function of a low–speed response, there are a few
Notes when this limitation. Refer to ”9.3 NOTE FOR SUBROUTINES WHEN YOU
USE SUBROUTINES”
functional instruction
is used in subroutine

227
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.47
ARBITRARY
FUNCTIONAL
INSTRUCTIONS
5.47.1
FNC 90 to 97
(arbitrary functional
instructions) (Only for
PMC-RC/RC3/NB/NB2)

 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.

 Fig. 5.47 (a) shows the notation format. Table 5.47 shows the coding
Format format.

ACT SUB90 ffffffff


W1

FNC 90 Control data


address

Fig.5.47 (a) FUNC 90 Notation Format

Table 5.47 FUNC 90 Coding Format

Step Com- Address


Bit No. Remarks
number mand No.
1 RD ffff. f ACT
2 SUB 90 FUNC90 command
3 (PRM) ffff Control data address
4 WRT ffff. f W1

 (a) Execution command (ACT)


Control condition This is used as the start condition of an arbitrary functional
instruction.

 (a) Control data address


Parameter Specifies the first address in the control data area.

228
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

 Set the control data to be used by an arbitrary functional instruction.


Control data If the control data is determined as follows, for example, the person who
created the ladder program determines a control address to set the control
data using the ladder program.

Control data 7⋅⋅⋅⋅⋅ 2 1 0


addres
CTL + 0 CNO UPDOWN RST

CTL + 1

CTL + 2
Counter number
CTL + 3

 This is used as the process end output of an arbitrary functional


Process end output (W1) instruction.

Note
If this functional instruction is displayed by the PCLAD
display function, an arbitrary functional instruction is
displayed as SUB9X, FNC99X.

5.47.2
Creating an arbitrary
function

 (a) Execution command (ACT)


Arbitrary functional The contents of the execution command can be referenced by bit 1
at R9010.
instruction and interface
(b) Control data address
The address where the control data is stored can be referenced in the
byte address format at R9012 or later.
(c) Process end output (W1)
The data output when the process terminates can be referenced by bit
1 at R9011.

229
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09


Use of the R field Execution command data
R9010 97 96 95 94 93 92 91 90 (See (3) in 5.46.1.)

R9011 97 96 95 94 93 92 91 90 Process end output data


(See (5) in 5.46.1.)

R9012 Control data address of SUB90 Byte address

R9014 Control data address of SUB91

R9026 Control data address of SUB97

 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.

230
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.48
MMCWR (READING
MMC WINDOW DATA)
(OTHER THAN
PMC–PA1/PA3)

5.48.1 This command reads up to 32 bytes of data via the window between PMC
Function and MMC. The data can be determined as required between the PMC
ladder program and MMC application program.

5.48.2
Format

MMCWR ffff ffff


ACT
Input data Input data W1
length address
(SUB98) address

Fig.5.48 MMCWR Command Format

Table 5.48 MMCWR Coding Format Coding sheet

Step Com- Address


number mand No. Bit No. Remarks

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

5.48.3 ACT=0 : The MMCWR function is not executed.


Control condition ACT=1 : The MMCWR function is executed. Hold ACT = 1 until
processing is completed and specify ACT = 0 immediately after
processing is completed (W1 = 1).

5.48.4 (a) Input data length address (two bytes)


Parameters Specifies the length of input data transferred from MMC. When
transfer is completed, the length of data actually transferred is
stored. The maximum data length is 32 bytes.
(b) Input data address
Specifies the area containing data transferred from MMC. An area
large enough for the specified input data length is required.

231
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.48.5 W1=0 :This value is usually set. W1 = 1 indicates that processing is


Processing completion completed. As soon as processing is completed, specify ACT=0.
W1=1 :This value is set when data transfer from MMC is completed or
(W1) if an error occurs.

5.48.6 If an MMC window transfer error occurs, the bit in the operation output
Operation output register is set to indicate the error. If an error occurs, the transferred data
is not stored in the input data area.
register

7 6 5 4 3 2 1 0

R9000

MMCWR error

5.48.7 The completion status information is specified in R9002 and R9003. The
Completion status completion codes and contents, W1, and error bits are as follows:
-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)

5.48.8 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

232
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.49
MMCWW (WRITING
MMC WINDOW DATA)
(OTHER THAN
PMC–PA1/PA3)

5.49.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.49.2
Format

MMCWW ffff ffff


ACT
Output data Output data W1
length address
(SUB99) address

Fig.5.49 MMCWW Command Format

Table 5.49 MMCWW Coding Format Coding sheet

Step Com- Address


number mand No. Bit No. Remarks

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

5.49.3 ACT=0 : The MMCWW function is not executed.


Control condition ACT=1 : The MMCWW function is executed. Hold ACT = 1 until
processing is completed and specify ACT = 0 immediately after
processing is completed.

5.49.4 (a) Output data length address (two bytes)


Parameters Specifies the length of output data transferred to MMC. The maximum
data length is 32 bytes.
(b) Output data address
Specifies the area storing data to be transferred to MMC. An area
large enough for the specified output data length is required.

233
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.49.5 W1=0 :This value is usually set. W1 = 1 indicates that processing is


Processing completion completed. As soon as processing is completed, specify ACT=0.
W1=1 :This value is set when data transfer to MMC is completed or if an
(W1) error occurs.

5.49.6 If an MMC window transfer error occurs, the bit in the operation output
Operation output register is set to indicate the error. If an error occurs, the transferred data
is not transferred to MMC.
register

7 6 5 4 3 2 1 0

R9000

MMCWW error

5.49.7 The completion status information is specified in R9002 and R9003. The
Completion status completion codes and contents, W1, and error bits are as follows:
-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)

5.49.8 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

234
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.50 f : Can be used


 : Cannot be used
MOVB (TRANSFER PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

OF 1 BYTE)  f   f   f f f f  f f f f

5.50.1 The MOVB instruction transfers 1-byte data from a specified source
Function address to a specified destination address.

5.50.2
Format ACT
MOVB Transfer Transfer
source destinatio
address n address
SUB 43

5.50.3 (a) Execution specification


Control conditions ACT=0 : No data is transferred.
ACT=1 : One-byte data is transferred.

235
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.51 f : Can be used


 : Cannot be used
MOVW (TRANSFER PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

OF 2 BYTES)  f   f   f f f f  f f f f

5.51.1 The MOVW instruction transfers 2-byte data from a specified source
Function address to a specified destination address.

5.51.2
Format ACT
MOVB Transfer Transfer
source destinatio
address n address
SUB 44

5.51.3 (a) Execution specification


Control conditions ACT=0 : No data is transferred.
ACT=1 : Two-byte data is transferred.

236
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.52 f : Can be used


 : Cannot be used
MOVN (TRANSFER PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

OF AN ARBITRARY  f   f   f f f f  f f f f

NUMBER OF BYTES)

5.52.1 The MOVN instruction transfers data consisting of an arbitrary number


Function of bytes from a specified source address to a specified destination address.

5.52.2
Format
ACT
MOVN Number of Transfer Transfer
bytes to be source destinatio
transferred address n address
SUB 45

5.52.3 (a) Execution specification


Control conditions ACT=0 : No data is transferred.
ACT=1 : A specified number of bytes are transferred.

5.52.4 (a) Number of bytes to be transferred


Parameters Specify the number of bytes to be transferred. An odd number can
also be specified. A number from 1 to 200 can be specified.

237
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.53 f : Can be used


 : Cannot be used
DIFU (RISING EDGE PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

DETECTION)  f   f   f f f f  f f f f

5.53.1 The DIFU instruction sets the output signal to 1 for one scanning cycle
Function on a rising edge of the input signal.

5.53.2
Format ACT OUT
DIFU Rising f
edge
SUB 57 number

5.53.3 (a) Input signal


Control conditions On a rising edge (0→1) of the input signal, the output signal is set to 1.
(b) Output signal
The output signal level remains at 1 for one scanning cycle of the
ladder level where this functional instruction is operating.

5.53.4 (a) Rising edge number


Parameters A rising edge number is used for rising edge detection. A number
from 1 to 256 can be specified. 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.53.5
Operation 1 2 3 4 Execution period

ACT

OUT

238
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.54 f : Can be used


 : Cannot be used
DIFD (FALLING EDGE PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

DETECTION)  f   f   f f f f  f f f f

5.54.1 The DIFD instruction set the output signal to 1 for one scanning period
Function on a falling edge of the input signal.

5.54.2
Format ACT OUT
DIFD Falling f
edge
SUB 58 number

5.54.3 (a) Input signal


Control conditions On a falling edge(1→0)of the input signal, the output signal is set to 1.
(b) Output signal
The output signal level remains at 1 for one scanning period of the
ladder level where this functional instruction is operating.

5.54.4 (a) Falling edge number


Parameters A falling edge number is used for falling edge detection. A number
from 1 to 256 can be specified. 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.54.5
Operation 1 2 3 4 Execution period

ACT

OUT

239
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.55 f : Can be used


 : Cannot be used
EOR PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

(EXCLUSIVE OR)  f   f   f f f f  f f f f

5.55.1 The EOR instruction exclusive-ORs the contents of address A with a


Function constant (or the contents of address B), and stores the result at address C.

5.55.2
Format
ACT
EOR Format Address Constant or Address
specification A address B C
SUB 59

5.55.3 (a) Input signal


Control conditions ACT=0 : The EOR instruction is not executed.
ACT=1 : The EOR instruction is executed.

5.55.4 (a) Format specification


Parameters Specify a data length (1, 2, or 4 bytes), and an input data format
(constant or address specification).

Data length specification


Format specification 1 : 1 byte
0 : Constant 2 : 2 bytes
1 : Address specification 4 : 4 bytes

(b) Address A
Input data to be exclusive-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 exclusive-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 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.

240
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.55.5 When address A and address B hold the following data:


Operation
Address A 1 1 1 0 0 0 1 1

Address B 0 1 0 1 0 1 0 1

The result of the exclusive OR operation is as follows:

Address C 1 0 1 1 0 1 1 0

241
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.56 f : Can be used


 : Cannot be used
LOGICAL AND PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.56.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.56.2
Format ACT
AND Format Address Constant Address
specification A or C
SUB 60 address B

5.56.3 (a) Input signal


Control conditions ACT=0 : The AND instruction is not executed.
ACT=1 : The AND instruction is executed.

5.56.4 (a) Format specification


Parameters Specify a data length (1, 2, or 4 bytes), and an input data format
(constant or address specification).

Data length specification


Format specification 1 : 1 byte
0 : Constant 2 : 2 bytes
1 : Address specification 4 : 4 bytes

(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.

242
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.56.5 When address A and address B hold the following data:


Operation
Address A 1 1 1 0 0 0 1 1

Address B 0 1 0 1 0 1 0 1

The result of the AND operation is as follows:

Address C 0 1 0 0 0 0 1 0

243
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.57 f : Can be used


 : Cannot be used
LOGICAL OR PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.57.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.57.2
Format ACT
OR Format Address Constant Address
specification or
A C
address
SUB 61 B

5.57.3 (a) Input signal


Control conditions ACT=0 : The OR instruction is not executed.
ACT=1 : The OR instruction is executed.

5.57.4 (a) Format specification


Parameters Specify a data length (1, 2, or 4 bytes), and an input data format
(constant or address specification).

Data length specification


Format specification 1 : 1 byte
0: Constant 2 : 2 bytes
1 : Address specification 4 : 4 bytes

(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.

244
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.57.5 When address A and address B hold the following data:


Operation
Address A 1 1 1 0 0 0 1 1

Address B 0 1 0 1 0 1 0 1

The result of the OR operation is as follows:

Address C 1 1 1 1 0 1 1 1

245
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.58 f : Can be used


 : Cannot be used
NOT (LOGICAL NOT) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.58.1 The NOT instruction inverts each bit of the contents of address A, and
Function stores the result at address B.

5.58.2
Format ACT
NOT Format Address Address B
specification
A
SUB 62

5.58.3 (a) Input signal


Control conditions ACT=0 : The NOT instruction is not executed.
ACT=1 : The NOT instruction is executed.

5.58.4 (a) Format specification


Parameters Specify a data length (1, 2, or 4 bytes), and an input data format
(constant or address specification).

Data length specification


1 : 1 byte
2 : 2 bytes
4 : 4 bytes

(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.

246
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.58.5 When address A holds the following data:


Operation
Address A 1 1 1 0 0 0 1 1

The result of the NOT operation is as follows:

Address B 0 0 0 1 1 1 0 0

247
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.59 f : Can be used


 : Cannot be used
MMC3 R (MMC-III PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

WINDOW DATA   f f f f f f f   f f f f f

READ)
5.59.1 The MMC3R instruction reads MMC-III application data via a
Function PMC-MMC window. Which buffer in the MMC-III is to be read can be
specified. The contents of read data can be freely determined by a PMC
Ladder program and MMC-III application program.

CNC Buffer 1
PMC PMC data Buffer 1 MMC-III
Offset

Data length

Buffer n
n = maximum of 10

5.59.2
Format

ACT W1
MMC3R Buffer Offset from Data length Input data f
specification the beginning
SUB 88 of the buffer

5.59.3 ACT=0 : The MMC3R instruction is not executed.


Control conditions ACT=1 : Data is read.
(ACT)

5.59.4 (a) Address for storing buffer specifications (2 bytes)


Parameters A buffer from which data is to be read is specified. Up to 10 buffers
can be specified. Specify the address where the buffer specification
is held.

Note
For the method of buffer registration, refer to the relevant
MMC-III manual.

248
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(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 MMC-III 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 MMC-III is stored.
A contiguous area not smaller than the length of data specified in c)
above is required.

5.59.5 W1=0 :When ACT = 0, W1 = 0 is set. If W1 = 0 is set when ACT = 1,


Processing completion it indicates that read processing is in progress.
W1=1 :Indicates that read processing has terminated. Whether read
(W1) processing has terminated normally or abnormally can be
checked with the state of R9000 described below.

5.59.6 When W1 indicates the termination of read processing, a termination state


Operation output is set.
register
7 6 5 4 3 2 1 0

R9000

MMC3R error

MMC3R=0 : Normal termination


MMC3R=1 : Abnormal termination

5.59.7 When ACT = 1, completion status information is set in the operation


Completion status register R9002.
information –11 : MMC initialization not completed (W1=0, R9000#0=0)
0 : Normal termination (W1=1, R9000#0=0)
2 : Data length error (W1=1, R9000#0=1)
The specified length of data is 0, negative data is specified, or
the maximum allowable data length is exceeded.
6 : The MMC-III is not attached. (W1=1, R9000#0=1)
3 : Buffer specification error (W1=1, R9000#0=1)

5.59.8 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

249
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.60 f : Can be used


 : Cannot be used
MMC3W (MMC-III PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

WINDOW DATA   f f f f f f f   f f f f f

WRITE)
5.60.1 The MMC3W instruction writes data to MMC-III application data via a
Function PMC-MMC window. Which buffer in the MMC-III is to be written to can
be specified. The contents of write data can be freely determined by a
PMC Ladder program and MMC-III application program.

CNC Buffer 1
PMC PMC data Buffer 1 MMC- III
Offset

Data length

Buffer n
n = maximum of 10

5.60.2
Format

ACT W1
MMC3R Buffer Offset from Data length Input data f
specification the
SUB 89 beginning of
the buffer

5.60.3 ACT=0 : The MMC3W instruction is not executed.


Control conditions ACT=1 : Data is written.
(ACT)

5.60.4 (a) Address for storing buffer specifications (2 bytes)


Parameters A buffer to which data is to be written is specified. Up to 10 buffers
can be specified. Specify the address where the buffer specification
is held.

Note
For the method of buffer registration, refer to the relevant
MMC-III manual.

250
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(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 MMC-III 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 MMC-III is stored.
A contiguous area not smaller than the length of data specified in c)
above is required.

5.60.5 W1=0 :When ACT = 0, W1 = 0 is set. If W1 = 0 is set when ACT = 1,


Processing completion it indicates that write processing is in progress.
W1=1 :Indicates that write processing has terminated. Whether write
(W1) processing has terminated normally or abnormally can be
checked with the state of R9000 described below.

5.60.6 When W1 indicates the termination of write processing, a termination


Operation output state is set.
register
7 6 5 4 3 2 1 0

R9000

MMC3R error

MMC3W=0 : Normal termination


MMC3W=1 : MMC3R = 1: Abnormal termination

5.60.7 When ACT = 1, completion status information is set in the operation


Completion status register R9002.
information -11 : MMC initialization not completed (W1=0, R9000#0=0)
0 : Normal termination (W1=1, R9000#0=0)
2 : Data length error (W1=1, R9000#0=1)
The specified length of data is 0, negative data is specified, or
the maximum allowable data length is exceeded.
6 : The MMC-III is not attached. (W1=1, R9000#0=1)
3 : Buffer specification error (W1=1, R9000#0=1)

5.60.8 Refer to Sec. 9.3.


Notes when this
functional instruction
is used in subroutine

251
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.61 f : Can be used


 : Cannot be used
SPCNT (SPINDLE PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

CONTROL)               f f

5.61.1 SPCNT performs the following processing using spindle speed data
Function (16-bit binary data) that is input from the NC or some other device to the
PMC:
(a) Gear selection (Up to four gears from GR1 to GR4 can be used.)
(b) Calculating a spindle motor rotation command (13-bit binary data)
when automatic gear selection is enabled
(c) Calculating a spindle motor rotation command (13-bit binary data)
when direct gear selection is enabled
(d) Clamping the spindle motor speed to an upper or lower limit
(e) Calculating a spindle motor rotation command when a spindle
override is specified
As shown in Fig.5.61, 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.

Spindle motor rotation command (13-bit binary data)

Maximum motor speed (8191)


Upper limit at which the motor
speed is clamped
GR1 GR2 GR3 GR4

Lower limit at which the motor Spindle speed


speed is clamped (rpm)
Maximum Maximum Maximum Maximum spindle
spindle speed spindle speed spindle speed for speed for GR4
for GR1 for GR2 GR3

5.61 Spindle Speeds and Corresponding Spindle Motor Rotation Commands

The spindle motor rotation command is calculated as 13-bit binary


data. If the spindle amplifier is a D/A converter provided in the
machine and can only handle 12-bit binary data, for example, the
calculated spindle motor rotation command must be halved before
being output (shifted right one bit position in a shift register).
(i) Spindle control with automatic gear selection
This functional instruction uses spindle speed data (16-bit binary
data) and the maximum spindle speeds set in parameters GR1 to
GR4 of this functional instruction to select a gear, calculate the
spindle motor rotation command for that selected gear, and output
the result to the control data address.
Based on this output information, the sequence program must
perform gear switching as necessary and output the rotation
command to the spindle motor.

252
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Spindle control
Information of GR1 to GR2
ȡ
ȧ
Spindle speed ȥ
ȧ SPCNT ȣ
Ȣ Ȧ Spindle motor
rotation
Ȥ command

(ii) Spindle control with direct gear selection


When direct gear selection is set, this functional instruction does
not perform gear selection. A gear to be used is selected by the
sequence program. The target gear must be set at the control data
address, which is a parameter of this functional instruction, using
the sequence program.
According to the set gear, the functional instruction calculates and
outputs a spindle motor rotation command. In this case, the
spindle motor rotation command has a linear relationship with the
spindle speed. The line for the selected gear is assumed to extend
to its lower limit (indicated by a dotted line). See Fig. 5.61.

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.

5.61.2
Format

CIRC
* * *
SPCNT ffff ffff ffff
OVRD

(SUB46) Spindle speed data Spindle control Control data


ACT
address parameter address address

253
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.61.3 (a) Direct gear specification (CIRC)


Control conditions CIRC=0 : Disables direct gear specification.
(Enablesautomatic gear selection.)
CIRC=1 : Enables direct gear specification.
(b) Override specification (OVRD)
OVRD=0 : Disables the override function
OVRD=1 : Enables the override function.
(c) Instruction execution specification (ACT)
ACT=0 : The SPCNT instruction is not executed.
ACT=1 : The SPCNT instruction is executed.

5.61.4 (a) Spindle speed data address


Parameters Specifies an even-numbered address at which the spindle speed data
(16-bit binary data) is stored.
(b) Spindle control parameter address
Specifies an even-numbered address at which the parameters for
spindle control are stored. Binary data is set in contiguous 24-byte
memory locations starting at the specified address.

Spindle control parameter +0 Lower spindle motor speed limit data


Spindle control parameter +4 Upper spindle motor speed limit data
Spindle control parameter +8 Maximum spindle speed for gear 1
Spindle control parameter +12 Maximum spindle speed for gear 2
Spindle control parameter +16 Maximum spindle speed for gear 3
Spindle control parameter +20 Maximum spindle speed for gear 4
Spindle control parameter +24

This 24-byte memory area is specified by addressing, and so it can


be allocated in any addressable memory location. For this type of
data, however, a data table in nonvolatile memory is most suitable.
For maintenance convenience, the memory area should be allocated
in the first data table (table group 1).
(i) Lower spindle motor speed limit data
Sets the lower spindle motor speed limit obtained from the
following expression:
Minimum speed (rpm) specified for
      the spindle motor
   =  8191
Maximum speed (rpm) obtainable by the
spindle motor

A value from 0 to 8191 can be specified as the lower speed limit


data. The maximum spindle motor speed is achieved when 10 V
is applied to the motor.
(ii) Upper spindle motor speed limit data
Sets the upper spindle motor speed limit obtained from the
following expression:
Maximum speed (rpm) specified for
Upper spindle motor the spindle motor
speed limit data =  8191
Maximum speed (rpm) obtainable by
the spindle motor

254
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

(iii) Maximum spindle speed for GR1


Sets a maximum spindle speed (rpm) for GR1. The maximum
spindle speed must be set in this parameter even when GR1 gear
is not provided. The maximum spindle speed is the speed of the
spindle when the motor operates at its maximum speed.
(iv) Maximum spindle speed for GR2
Sets a maximum spindle speed (rpm) for GR2. When GR2 is not
provided, this parameter must be set to 0.
(v) Maximum spindle speed for GR3
Sets a maximum spindle speed (rpm) for GR3. When the GR3 is
not provided, this parameter must be set to 0.
(vi) Maximum spindle speed for GR4
Sets a maximum spindle speed (rpm) for GR4. When the GR4 is
not provided, this parameter must be set to 0.
(c) Control data address
Contiguous 4-byte memory locations starting at the even-numbered
address specified in the control data address parameter must be
specified.

7 6 5 4 3 2 2 1
ȣ
Specified address+0 R13 R12 R11 R10 R09
Ȧ Spindle motor
Specified address+1 R08 R07 R06 R05 R04 R03 R02 R01 Ȥ rotation command

Specified address+2 GR4 GR3 GR2 GR1 } Spindle gear


} selection
Specified address+3 SOV128 SOV64 SOV32 SOV16 SOV8 SOV4 SOV2 SOV1 } Spindle override

(i) Spindle gear selection


7 6 5 4 3 2 2 1
GR4 GR3 GR2 GR1

[For automatic gear selection]


This functional instruction finds an appropriate gear using the
spindle speed data and the maximum spindle speed for each
gear, then outputs the result to GR1 to GR34.
[For direct gear selection]
The sequence program sets the gear to be used in GR1 to GR4.
This functional instruction calculates the spindle motor rotation
commands for all speeds from the upper motor speed limit to the
lower speed limit (extended portion indicated by dotted line). See
Fig. 5.61.
(ii) Spindle motor rotation command
7 6 5 4 3 2 2 1
R13 R12 R11 R10 R09
R08 R07 R06 R05 R04 R03 R02 R01

The spindle motor rotation command (13-bit binary data)


calculated by this functional instruction is set at these control data
addresses. This instruction specifies a spindle motor rotation
command with a spindle override applied.

255
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(iii) Spindle override


7 6 5 4 3 2 2 1
SOV128 SOV64 SOV32 SOV16 SOV8 SOV4 SOV2 SOV1

The sequence program must set a spindle override in binary. A


spindle override from 0% to 255% can be set in binary.

5.61.5 Spindle control is primarily used to control the spindle speed during
Use of spindle control normal cutting. It can, however, also be used to:

(a) Rotate the spindle motor at a specific speed when the gear is switched
The sequence program can output appropriate 13-bit 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 (SCNTB). 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

(c) Control the spindle in a tapping cycle


In a tapping cycle, spindle rotation is reversed at the bottom of a hole.
Using the HIGH gear to reverse the rotation requires a lower analog
voltage than using the LOW gear. So, using the HIGH gear reduces
the machining time.
To widen the usable range of the HIGH gear, set CIRC to 1 to disable
automatic gear selection.
(d) Clamp the spindle speed
When the BMI interface is used between the NC and PMC, spindle
control should be done by the PMC (sequence program), as described
in the BMI manual.
Clamping the spindle speed is one of the spindle control operations.
The spindle control functional instruction SPCNT (SUB46) can be
used to clamp the spindle speed. The clamping method is outlined
below. For precise control, conform to the specifications of the
machine supplied by the machine tool builder.

256
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

ȡ ȣ
ȧ ȧ 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 rpm
Maximum speed specified for the spindle motor = 35000 rpm
Maximum speed obtainable by the spindle motor = 40000 rpm
(Maximum speed when 10 V is applied to the spindle motor)
Maximum speed for gear 1 = 25000 rpm
Maximum speed for gear 2 = 40000 rpm
Maximum speed for gear 3 = 6000 rpm
Maximum speed for gear 4 = 100000 rpm
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
(1) Create a functional instruction.

R9091.1 MOVW

F10 R10
SUB44

R9091.1
NUMEB
2 0 R12
SUB40

CIRC
SPCNT R10 D10 R0

OVRD
SUB46

ACT

257
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

(2) Set the spindle speed data


Copy the spindle speed data (RO0 to RO15) to spindle speed data
addres specified at the first porameter of SPCNT.

R10 RO0 to 7 Copy from F10


RO8 to 15 Copy from F11
0 Clear by 0
0 Clear by 0

(3) Set the spindle control parameters.


The lower spindle motor speed limit data and the upper spindle
motor speed limit data are obtained as follows (see i) and ii) of b)
in 4)):
Lower spindle motor 1000
speed limit data =  8191 = 204 (rpm)
40000

Upper spindle motor 


speed limit data =  8191 = 7167 (rpm)


Then, the spindle control parameters are set as follows:

D10 toD13 204 Lower spindle motor speed limit data


D14 to D17 7167 Upper spindle motor speed limit data
D18 to D21 25000 Maximum spindle speed for gear 1
D22 to D25 40000 Maximum spindle speed for gear 2
D26 to D29 60000 Maximum spindle speed for gear 3
D30 to D33 100000 Maximum spindle speed for gear 4

(4) Calculate the spindle motor rotation command for the spindle
speed

Maximum motor speed (8191)


Lower limit at which the motor
speed is clamped
(7167) GR1 GR2 GR3 GR4

Lower limit at which the motor Spindle speed


speed is clamped (rpm)
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)

From the above graph, the following table can be obtained:

258
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Table 5.61 Maximum and Minimum Spindle Speeds for each Gear

Minimum spindle speed (rpm) Maximum spindle speed (rpm)


GR1 625 21877
GR2 21878 35004
GR3 35005 52506
GR4 52507 87499
(When CIRC = 0, OVRD = 0)

Thus, if the spindle speed data is 55000 (rpm), 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:

R0 to R1 Spindle motor rotation command


4505
R2 8 (GR4) Spindle gear selection

259
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.62 f : Can be used


 : Cannot be used
END (END OF A PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

LADDER PROGRAM)  f   f   f f f f  f f f f

5.62.1 The END functional instruction designates the end of a ladder program.
Function END must be placed at the end of the ladder program.

5.62.2
Format
END

SUB 64

260
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.63 f : Can be used


 : Cannot be used
CALL (CONDITIONAL PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

SUBPROGRAM  f   f   f f f f  f f f f

CALL)

5.63.1 The CALL functional instruction calls a subprogram. When a


Function subprogram number is specified in CALL, a jump occurs to the
subprogram if a condition is satisfied.

5.63.2
Format
ACT
CALL Subprogram
number
SUB 65

5.63.3 (a) Input signal


Control conditions ACT=0 : The CALL instruction is not executed.
ACT=1 : The CALL instruction is executed.

5.63.4 (a) Subprogram number


Parameters Specifies the subprogram number of a subprogram to be called. The
subprogram number must be specified in the P address form. A
number from P1 to P512 can be specified.
Example : To call subprogram 1

ACT
CALL P1

SUB 65

Note
Be careful when using the CALL instruction with the COM,
COME, JMP, or JMPE functional instruction. For details,
see Chapter 9 in Part I.

261
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.64 f : Can be used


 : Cannot be used
CALLU PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

(UNCONDITIONAL  f   f   f f f f  f f f f

SUBPROGRAM
CALL)

5.64.1 The CALLU functional instruction calls a subprogram. When a


Function subprogram number is specified, a jump occurs to the subprogram.

5.64.2
Format
CALLU Subprogram
number
SUB 66

5.64.3 (a) Subprogram number


Parameters Specifies the subprogram number of a subprogram to be called. The
subprogram number must be specified in the P address form. A
number from P1 to P512 can be specified.
Example : To call subprogram 1

CALLU P1

SUB 66

262
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.65 f : Can be used


 : Cannot be used
SP (SUBPROGRAM) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.65.1 The SP functional instruction is used to create a subprogram. A


Function subprogram number is specified as a subprogram name. SP is used with
the SPE functional instruction (mentioned later) to specify the
subprogram range.

5.65.2
Format
SP Subprogram
number
SUB 71

5.65.3 (a) Subprogram number


Parameters Specifies the subprogram number of a subprogram to be coded
following this instruction. The subprogram number must be
specified in the P address form. A number from P1 to P512 can be
specified. The specified subprogram number must be unique within
the sequence program.
Example: When the subprogram number is set to 1

SP P1

SUB 71

263
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.66 f : Can be used


 : Cannot be used
SPE (END OF A PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

SUBPROGRAM)     f   f f f f  f f f f

5.66.1 The SPE functional instruction is used to create a subprogram. SPE is


Function used with the SP functional instruction. It specifies the range of a
subprogram. When this functional instruction has been executed, control
is returned to the functional instruction that called the subprogram.

5.66.2
Format
SPE

SUB 72

264
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.67 f : Can be used


 : Cannot be used
JMPB (LABEL JUMP) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.67.1 The JMPB functional instruction transfers control to a Ladder immediately


Function after the label set in a Ladder program. The jump instruction can transfer
control freely before and after the instruction within the program unit (main
program or subprogram) in which the instruction is coded. (See the
description of the LBL functional instruction, which is be explained later.)
As compared with the conventional JMP functional instruction, JMPB
has the following additional functions:
D More than one jump instruction can be coded for the same label.
D Jump instructions can be nested.
Ladder program
Program unit Program unit
LBL AA
LBL AA

JMPB BB

JMPB AA
JMPB AA

JMPB AA LBL BB

5.67.2
Format ACT
JMPB Specification
of the jump
destination
SUB 68 label

5.67.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)

5.67.4 (a) Label specification


Parameters Specifies the label of the jump destination. The label number must
be specified in the L address form. A value from L1 to L9999 can
be specified.

Notes
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.

265
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.68 f : Can be used


 : Cannot be used
JMPC (LABEL JUMP) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.68.1 The JMPC functional instruction returns control from a subprogram to the
Function main program. Be sure to code the destination label in the main program.
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.68.2
Format ACT
JMPC Specification
of the jump
destination
SUB 73 label

5.68.3 ACT=0 : The instruction immediately following the JMPC instruction is


Control conditions executed.
ACT=1 : Control is transferred to the Ladder immediately after the
(ACT) specified label.

5.68.4 (a) Label specification


Parameters Specifies the label of the jump destination. The label number must
be specified in the L address form. A number from L1 to L9999 can
be specified.

Notes
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.

266
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.69 f : Can be used


 : Cannot be used
LBL (LABEL) PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

 f   f   f f f f  f f f f

5.69.1 The LBL functional instruction specifies a label in a Ladder program. It


Function specifies the jump destination for the JMPB and JMPC functional
instructions. (See the explanation of the JMPB and JMPC functional
instructions.)

Ladder program

LBL AA
LBL AA

JMPB BB

JMPB AA
JMPC AA

JMPC AA LBL BB

5.69.2
Format
LBL Label
specification
SUB 69

5.69.3 (a) Label specification


Parameters Specifies the jump destination for the JMPB and JMPC functional
instructions. The label number must be specified in the L address
form. A label number from L1 to L9999 can be specified. A label
number can be used more than once as long as it is used in a different
program unit (main program, subprogram).

Note
For the use of this instruction, see Chapter 10 of Part I.

267
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.70 f : Available
 : Unavailable
AXCTL (AXIS PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

CONTROL BY PMC) f f f f f f f f f f f f f f  

Notes
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.70.1 This function simplifies the handshake of DI/DO signal for the axis
Function control by PMC.

5.70.2
Format
RST W1
AXCTL ffff ffff f
Group No. Input data
ACT (SUB 53) of DI/DO signal address

AXCTL Instruction Format

AXCTL Instruction Coding


Step Instruc- Address Bit
Number tion Number Number Remarks

1 RD ffff. f RST
2 RD. STK ffff. f ACT
3 SUB 53
4 (PRM) ffff Number of DI/DO signal
5 (PRM) ffff Input data address
6 WRT ffff. f W1, processing completion

5.70.3 ACT=0 : The AXCTL function is not executed.


Control condition ACT=1 : The AXCTL function is executed.
ACT is to be maintained ‘1’ till the end of AXCTL processing.
And reset ACT immediately after the processing is complete
(W1 = 1).
RST=0 : Release reset.
RST=1 : Set the reset signal (ECLRx) to 1. All the buffered commands
are invalidated and the command being executed is stopped.
Set RST at the same time as the reset of CNC when CNC
becomes the state of alarm.

Note
When RST and ACT become 1 at the same time, RST is
prior to ACT.

268
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.70.4 (a) Group number of DI/DO signal


Parameters Spesify the DI/DO signal groups by the number.
1 : group A(G142 to G149, F130 to F132)
2 : group B(G154 to G161, F133 to F135)
3 : group C(G166 to G173, F136 to F138)
; Cannot be used on Power Mate-D/F
4 : group D(G178 to G185, F139 to F141)
; Cannot be used on Power Mate-D/F
5 : group E (G226 to G233, F228 to F230)
; Can be used only on Power Mate-H
6 : group F (G238 to G245, F231 to F233)
; Can be used only on Power Mate-H
Add 1000 to the above number as follows if you use HEAD2 of
FS16/18–TT or 2nd path of Power Matw–D.
1001 : group A (G1142 to G1149, F1130 to F1132)
1002 : group B (G1154 to G1161, F1133 to F1135)
1003 : group C (G1166 to G1173, F1136 to F1138)
; Cannot be used on Power Mate
1004 : group D (G1178 to G1185, F1139 to F1141)
; Cannot be used on Power Mate
(b) Input data address
Axis control by PMC instruction requires an area of 8 consecutive
bytes beginning with an address to be specified.

+0 FANUC reserved Specify 0.

1 Control command Specify the command to set EC0x-EC6x.

2 Command data 1 Specify the data to set EIF0x-EIF15x.

4 Command data 2 Specify the data to set EID0x-EID31x.

6
(x=A / B / C / D)
7

269
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

The following functions are available.


Operation Control Command data 1 Command data 2
Rapid traverse 00H Feedrate Total travel amount

Need not to set if CNC


PRM. 8002#0 = 0.
Cutting feed 01H Feedrate (Note 1) Total travel amount
(feed per min.)
Cutting feed (Note 2) 02H Feedrate per not used
(feed per revolution) revolution
Skip 03H Feedrate Total travel amount
(feed per min.) (Note 2)
Dwell 04H not used Dwell time
Reference pos. return 05H not used not used
Continuous feed (Note 3) 06H Feedrate Feed direction
(Note 4)
1st ref. pos. return 07H Feed rate
2nd ref. pos. return 08H
3rd ref. pos. return 09H Need not to set if CNC not used
4th ref. pos. return 0AH PRM. 8002#0 = 0.
(Note 2)
External pulse 0BH Pulse weighting
synchronization 0DH not used
(Note 2) 0EH
(Note 3) 0FH (Only M series)
Speed command 10H Feedrate not used
(Note 2)
(Note 5)
(Note 6) (Note 2)
Machine coordinate 20H Feedrate Position of machine
positioning. coordinate.
(Rapid traverse) Need not to set if CNC (absolute)
(Note 2) PRM. 8002#0 = 0.
(Note 6)

Notes
1. When you specify 0 for feedrate, CNC does not work.
Please release this state by RST = 1.
2. It is not available in PMC-MODEL PA1/PA3. External pulse
synchronization (axis control command : 0BH, 0DH),
however, can be used for the Power Mate–H (PMC–PA3).
3. When you end a continuous feed or external pulse
synchronization, set RST to 1. And, continuous feed can’t
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. Only on FANUC series 16/18, this function is available.
7. For details such as the range of command data, please refer
to the connecting manual for each CNC models.
8. About the miscellaneous function, please operate the
DI/DO signal with basic instruction of ladder program.

270
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

Example 1) In case of cutting feed (feed per min.)

+0 0H Not used (Specify 0).

1 01H Command code for cutting feed. (feed per min.)

2 Feedrate unit : mm/min.

4 Total travel amount

5 unit : 0.001mm

6
(x=A / B / C / D)
7

Example 2) In case of machine coordinate positioning.

+0 0H Not used (Specify 0).

1 Command code for machine coordinate


20H positioning.

2 0
or In case of CNC PRM8002#0= 0 not used.
Feedrate =1 Feedrate.
3

(Absolute)
4 Position in machine
coordinate system
5

Note
It is necessary to set the CNC parameters relating to the axis
movement.

5.70.5 W1=0 : It is 0 usually. W1=1 indicates that AXCTL instruction is


End of command (W1) completed.
Specify ACT=0 immediately after processing is completed.
(W1=1).
W1=1 : It will become 1 when the command of the axis control by PMC
is buffered on CNC (when EMBUFx=0) or when axis
movement is completed (when EMBUFx=1).

271
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.70.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

Group number of DI/DO


signal specification error.

Notes
1. W1 becomes 1 regardless of the state of ACT.
2. It is not related to the state of the alarm signal (EIALx).

5.70.7 (1) The following signals cannot be operated from this function.
Remarks Please operate by LADDER.
 Axis control stop signal
ESTPx (G142#5, G154#5, G166#5, G178#5)
 Servo-off signal
ESOFx (G142#4, G154#4, G166#4, G178#4)
 Block stop signal
ESBKx (G142#3, G154#3, G166#3, G178#3)
 Block stop inhibit signal
EMSBKx (G143#7, G155#7, G167#7, G179#7)
 Controlled axis selection signal
EAX1-EAX8 (G136#0 to #7)
 Override signal *FV0E-*FV7E (G151#0 to #7)
 Override cancel signal OVCE (G150#5)
 Rapid traverse override signal
ROV2E, ROV1E (G150#1, #0)
 Dry run signal DRNE (G150#7)
 Manual rapid traverse RTE (G150#7)
selection signal
 Skip signal SKIP/ESKIP (X4#7, #6)
 Buffering inhibit signal
EMBUFx (G142#2, G154#2, G166/#2, G178#2)
(x=A/B/C/D)

Note
Movement cannot be sured when controlled axis selection
signal (EAXx) is changed in the state of ACT=1.

(2) Buffering inhibit signal (EMBUFx)


0 : The commands are buffered on the CNC side.
Even if one command is being executed, the CNC accepts the next
command as long as there is vacancy in the buffer on CNC.
W1 will become 1 when the command of the axis control by PMC
is buffered on CNC.
1 : Prohibits the buffering on CNC.
W1 will become 1 when the movement of the instructed axis
control by PMC is completed.

272
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

5.71 f : Can be used


 : Cannot be used
PSGNL (POSITION RB3 RC3
PA1 PA3 RA1 RA2 RA3 RB RB2 RB5 RB6 RC NB NB2
RB4 RC4
SIGNAL OUTPUT)
f f × × × × × × × × × × × ×

5.71.1 This function outputs a signal that indicates the are in which the current
Function position in the mechanical coordinate system is located. The area is
specified by parameter.

5.71.2
Format

ACT PSGNL ffff ffff


Area division Current position

(SUB 50) specification area output


data address address

5.71 PSGNL instruction format

5.71.3 (a) Execution specification


Control condition ACT=0 : The PSGNL instruction is not executed.
ACT=1 : The PSGNLnstruction is executed.

5.71.4 (a) Area division specification data address


Parameters Set the top address of area division specification data 29 bytes of
continuous memory are necessary in nonvolatile memory area for
area division specification data.

273
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

Area division
(1 : 1st Axis, 2 : 2nd Axis,...)
specification data Axis No.
+0 or
Path No. (1 : 1st Path–1st Axis
(1byte) 2 :2nd Path–1st 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)

 In case of axis–No. specification


Please set axis–No. to select. (1 byte data of binary format)
In case of Power Mate–H, the axis No. ranges from 1 to 6.
(Example) Axis No.=1 : For machine coordinates of the 1st axis
Axis No.=2 : For machine coordinates of the 2nd axis
OR
 In case of path specification (Power Mate–MODEL D dual path
control)
Please set path–No. of axis to select. (1 byte data of binary format)
It is impossible to set path specification for Power Mate–H.
(Example)
Path spec.=1: For machine coordinates of the 1st axis on the 1st path)
Path spec.=2: For machine coordinates of the 1st axis on the 2nd path)
Each area division specification data (I, II, III, ...., VII) is 4bytes
binary format data. (Scale is 0.001mm or 0.001inch)

274
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

<Example of area division>

I II III IV V VI VII
(1) (2) (3) (4) (5) (6) (7) (8)
– 
Total stroke area

As shown in the above diagram, check can be performed for the 8


areas (1) to (8) by dividing the total stroke area by 7 division points.

Notes
1. Please set the division points data in ascending order (I <
II < .....<VI < VII).
2. Even if you need division points only under 7, you must set
the division specification data for7.

(b) Current position area output address


The current position in the machine coordinates system outputs in
which area it is position to the specified address.
Cureent position
7 6 5 4 3 2 1 0
area output address (1) (2) (3) (4) (5) (6) (7) (8)

Corresponding bit is set to 1 indicates the area in which the current


position in the machine coordinates system is licated.

275
5. FUNCTIONAL INSTRUCTIONS I. PMC SEQUENCE PROGRAM B–61863E/09

5.72 f : Can be used


 : Cannot be used
PSGN2 (POSITION PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB5 RB6 RC RC3 NB NB2
RB4 RC4
SIGNAL OUTPUT 2)
f f            

5.72.1 Turn W1=1 which th ecurrent position in the machine coordinates system
Function is in the area specifified by parameters.

5.72.2
Format
ACT PSGN2 ffff W1
Control data f
(SUB 63) address

7.72 PSGN2 instruction format

5.72.3 (a) Execution specification


Control condition ACT=0 : The PSGN2 instruction is not executed.
ACT=1 : The PSGN2instruction is executed.

5.72.4 (a) Control data address


Parameters Please set the top address of control data.
For the area specification data, 9bytes of continuous memory area in
the nonvolatile memory is necessary.

Control data+0
Axis No. (1 : 1st Axis, 2 : 2nd Axis,...)
or
Path No.
(1 : 1st Path–1st Axis
(1byte) 2 :2nd Path–1st Axis)

+1
Boundary Point 1
(4bytes)

Area division specification data


+5
Boundary Point 2
(4bytes)

D In case of axis–No. specification


Please set axis–No. to select. (1 byte data of binary format)
In case of Power Mate–H, the axis No. ranges from 1 to 6.
(Example) Axis No.=1 : For machine coordinates of the 1st axis
Axis No.=2 : For machine coordinates of the 2nd axis
OR

276
B–61863E/09 I. PMC SEQUENCE PROGRAM 5. FUNCTIONAL INSTRUCTIONS

D In case of path specification (Power Mate–MODEL D dual path


control)
Please set path–No. of axis to select. (1 byte data of binary format)
It is impossible to set path specification for Power Mate–H.
(Example)
Path spec.=1: For machine coordinates of the 1st axis on the 1st path)
Path spec.=2: For machine coordinates of the 1st axis on the 2nd path)
Each area divicion specification data (Boundary Point <1>/<2> is
4bytes binary format data. (Scale is 0.001mm or 0.001inch)

Note
Please set the data division specification data in ascending
order. (bounary point 1 x bounary point 2)

<Example of area division>

1
W1 0

Boundary Point < 1 > Boundary Point < 2 >


Note) Includes
– + F : Boundary Point <1><2>.
F F
Total stroke area

5.72.5 W1=0 :The current position in the machine coordinates system is outside
Current position area of the area specified by parameters.
W1=1 :The current position n the machine coordinates system is inside
output (W1) of the area specified by parameters.
<Example for PSGN2 instruction>

ACT PSGN2 D0320 W1


f
(SUB 63)

Binary Decimal
D0320 00000010 ( 2)
D0321 01100000 (-100000)
D0322 01111001
D0323 11111110
D0324 11111111
D0325 01000000 ( 200000)
D0326 00001101
D0327 00000011
D0328 00000000

In this case, when the current position in the machine coordinates system
(second axis) is from –100.000 to 200.000mm ACT=1, the current
position area output becomes W1=1..

277
6. NONVOLATILE MEMORY I. PMC SEQUENCE PROGRAM B–61863E/09

6 NONVOLATILE MEMORY

6.1 Monvolatile memory is considered nonvolatile if its contents are not


erased when the power is turned off.
TIMER, COUNTER,
(1) Used for the timer
KEEP RELAY, Time can be set and displayed from the CRT/MDI panel. The set time
NONVOLATILE can be read or written by a sequence program instruction.
MEMORY CONTROL, (2) Used for the counter (Address C0 to C79)
DATA TABLE Values can be set and displayed from the CRT/MDI panel. These
values can be read and written by a sequence program instruction.
Refer to section 3.5 for details of addresses.
The data format is two bytes of BCD or binary, and the higher-order
digits are entered at the smaller address.
Whether counter is processed by BCD format or binary format is
selected by a system parameter.
Example) PMC counter addresses are C0 and C1 and the set value
is 1578.

BCD code (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

Binary code (1578)

7 6 5 4 3 2 1 0
C0 0 0 1 0 1 0 1 0

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

215 214 213 212 211 210 29 28

To change low-order digits of the set value by a sequence program


instruction with 1 byte processing, specify C0 as the output address
of the functional instruction parameters to enter new data.

278
B–61863E/09 I. PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY

(3) Keep relay (Address K0 through K15)


This memory is used as parameters, keep relays, etc. for sequence
control. Setting and display are possible from the CRT/MDI panel
and sequence program instructions can be used for reading and
writing. Since data set or displayed from the CRT/MDI panel is
binary eight bits, each of the eight digits of data is set or displayed
as 0 or 1.
(4) Nonvolatile memory control (MWRTF, MWRTF2) (Address K16)
This memory is used when the position of a moving part of the
machine tool, such as a lathe turret, is stored in code (BCD, etc.) and
to maintain it while power is off.
#7 #6 #5 #4 #3 #2 #1 #0
K16 MWRTF2 MWRTF

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 (Address D0 to D1859)
A sizable amount of numeric data (data table) can be used for
sequence control by the PMC. See section 6.3 for details.

279
6. NONVOLATILE MEMORY I. PMC SEQUENCE PROGRAM B–61863E/09

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).

280
B–61863E/09 I. PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY

6.3 (1) Introduction


PMC sequence control sometimes requires a sizable amount of
PMC DATA TABLE numeric data (herein after referred to as data table. If contents of such
data table are free to set or to read, they can be used as various PMC
sequence control data, such as tool numbers of tools on the ATC
magazine.
Each table size can be set optionally in the memory for data table, and
1-, 2-, or 4-byte binary or BCD format data can be used per each table,
thus consigning a simple-to-use table.
Data in the data table can be set in the nonvolatile memory or
displayed via the CRT/MDI panel.
Data set in the data table can also be easily read or written by the
sequence program using function instructions as data search
(DSCHB), or index modification data transfer (XMOVB).

Note
The area at addresses D0 to D1859 is used as a data table
in PMC-PA1, PMC-PA3, PMC-RA1, PMC-RA2, PMC-RB, or
PMC-RB2. The area at addresses D0 to D2999 is used as
a data table in PMC-RC.

(2) Configuration of the PMC data table and notes on programming


(a) Configuration of the data table
PMC data table consists of table control data and data table. Table
control data control the size and data format (BCD or binary) of
the tables.
This table control data must first be set from CRT/MDI before
preparing data table. In the sequence program, the table control
data cannot be read or written. When the contents of the
nonvolatile memory are read or written using the Floppy Cassette,
the table control data is read or written together. Figure 6.3 (a) is
a general configuration of the data table, and Figure 6.3 (b) is a
detailed configuration of the data table. Also refer to 3.7 for data
table configuration.
(b) Data table head address
If the data table starts from an odd address, for example, when a
data table is created with an odd number of one-byte data, the
PSCHB instruction operates slower than when the data table
starts from an even address. It is recommended that the starting
address of a data table be an even number.

281
6. NONVOLATILE MEMORY I. PMC SEQUENCE PROGRAM B–61863E/09

Table control data


Data table number

D0
D1
Basic data table
(1860 bytes or 3000 bytes)

Data table

D1859
or
D2999

6.3 (a) General configuration of data table

282
B–61863E/09 I. PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY

Number of
tables

Table parameter

Table 1 Data type


control data
Number of data

Data table head address

Table parameter

Table 2 Data type


control data
Number of data Table control data

Data table head address

Table parameter

Table n Data type


control data
Number of data

Address No. Data table head address


D0 Table number
0 Data
D1
1 Data table 1
D2 :
n1
Table number
0
1
2 Data
3 Data table 2
: Data table
:
n2

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.

6.3 (b) Detailed configuration of data table

283
6. NONVOLATILE MEMORY I. PMC SEQUENCE PROGRAM B–61863E/09

(3) Table control data


The table control data controls a data table
If the table control data is not properly set, a data table described in
Item (4) cannot be properly created.
Referring to the description in Item (3), set the table control data, then
create a data table.
(a) Number of groups of tables
Specify the number of groups of data tables in binary.
(b) Control data for table groups 1 to n
Each data table has table control data consisting of the starting
address of the table, table parameters, data type, and the number
of data items.
(i) Starting address of the table
Specify the starting address of the table from D0 to D1859
or D0 to D2999.
(ii) Table parameter
#7 #6 #5 #4 #3 #2 #1 #0
MASK COD

ȡ 0 : A data table is specified in binary.


COD ȥ
Ȣ 1 : A data table is specified in BCD.
ȡ
0 : The contents of the data table are not protected.
MASK ȥ
Ȣ 1 : The contents of the data table are protected.
(iii) Data type
Specify the length of data in the data table.
ȡ 0 : One byte
ȥ 1 : Two bytes
Ȣ 2 : Four bytes
(iv) Number of data items
Specify the number of data items used in the data table.
(4) Data table
Data table can be created within the range of the memory (D address)
for the data table and separated some groups. This number of groups
is decided with the number of tables of table control data.
The maximum of the number of table groups.
Except series 15b PMC–NB max 100 tables
PMC–NB max 50 tables

284
B–61863E/09 I. PMC SEQUENCE PROGRAM 6. NONVOLATILE MEMORY

Table number

0
1
2
Table 1 (1-byte data)
3

Table 2 (2-byte data)

Each data table can be used in 1, 2 or 4 byte data. Table parameter


of table control data decides whether to use 1 or 2 byte data.
Therefore, 1 table number is taken for a 1-byte data when table data
is 1 byte; 2-byte data when table data is 2 bytes.
(5) Entering data in a data table
Specify a location number in the data table from the CRT/MDI panel,
then enter the data. A number for each location in the table is defined
for each data table group.

Note
Reading and Writing of the data table are available from the
sequence program.

285
7. LADDER DIAGRAM FORMAT I. PMC SEQUENCE PROGRAM B–61863E/09

7 LADDER DIAGRAM FORMAT

A designer examines and checks the ladder diagram in the process of


design. However, it should be noted that other persons (maintenance
servicemen, for example) read the ladder diagram far longer than the
designer.
Accordingly, the ladder diagram must be written to be easily understood
by all persons.
For this purpose, applicable symbols, writing method, and other methods
are specified as detailed below.

286
B–61863E/09 I. 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
Addresses represented as follows.

Bit number (0 to 7)

Address number
(A numeric of 4 digits or less after an alphabetic character)

An alphabetic character is prefixed to the start of each address number to


represent the kinds of signals as shown in Table 7.1.1.

Table 7.1.1 Alphabetic symbols of address numbers

Symbol Type of signal


X Input signal entered from machine tool to PMC (MTPMC)
Y Output signal sent from PMC to machine tool (PMCMT)
F Input signal entered from CNC to PMC (CNCPMC)
G Output signal sent from PMC to CNC (PMCCNC)
R Internal relay
A Message display request
C Counter
K Keep relay
D Data table
T Variable Timer
L Label number
P subprogram number

287
7. LADDER DIAGRAM FORMAT I. PMC SEQUENCE PROGRAM B–61863E/09

7.1.2 Suitable symbols shall be attached to I/O signals as signal names


Signal names according to the following procedure.
(1) The names of all signals containing CNC signals and machine tool
signals are represented within 6 characters.
Alphanumeric characters and special symbols described in this
manual are all employable.
(2) For CNCPMC signal names, signal names shown in the PMC
address table are employable as they are.
(3) CNC signals to be entered from the machine tool and CNC signals
to be sent to the machine tool are identified from each other by
prefixing X or Y to the start of these CNCPMC signal names,
respectively. A single block input signal is represented as XSRK by
prefixing X, while a start lamp output signal is represented as YSTL
by prefixing Y, for example. However, when X or Y is prefixed to the
start of an CNCPMC signal name, certain signal names exceed 6
characters. In such a case, omit the last character from such a signal
name (*SECLPX*SECL)

7.1.3 A comment of within 30 characters can be inserted to a relay coil in a


Comments sequence program and each symbol in a symbol table.
If a relay coil serves as an output signal to the machine tool, the detailed
description of the signal shall be attached to each relay coil as a comment.
If an auxiliary relay has a significant meaning from the viewpoints of the
sequence control, the description of the signal should be inserted without
fail.
The detailed description of signals must be done about input signals from
machine tool as a comment in the symbol table.
Since it is difficult to guess the meanings of signals perculier to the
machine tool, a detailed comment is necessary.

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.

288
B–61863E/09 I. 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

These are input signals from the CNC.


A contact

B contact

These are input signals from the machine side


A contact (including the built-in manual control panel).

B contact

These are timer contacts in the PMC


A contact

B contact

This is a relay coil whose contact is used only in


the PMC.

This is a relay coil whose contact is output to


CNC.

This is a relay coil whose contact is output to the


machine side.

This is the coil of a timer in the PMC.

This is a PMC fucnctional instruction. The actual


form varies depending on the instruction.

Note
If the coil is represented by or , the relay is within the
PMC, and the contact uses or .

289
7. LADDER DIAGRAM FORMAT I. PMC SEQUENCE PROGRAM B–61863E/09

7.3 (1) Format


The size should be A3 or A4 (JIS standard).
LADDER DIAGRAM
(2) Columns are used for wiring.
FORMAT

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)

Page number (1 to 999)

(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.

290
B–61863E/09 I. 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

The PMC is considered to have an infinite number of relay contact and


is written as in the figure below.

A
R1

A B

R2

291
8. MISCELLANEOUS ITEM I. PMC SEQUENCE PROGRAM B–61863E/09

8 MISCELLANEOUS ITEM

To create a ladder program related to the axis-control function by the


PMC, refer to the subsection, ”Axis-control function by the PMC,” in the
Connecting Manual.

292
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. SEQUENCE PROGRAM STRUCTURING

9 SEQUENCE PROGRAM STRUCTURING

f : Can be used
 : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

    f   f f f f  f f f f

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.

293
9. SEQUENCE PROGRAM STRUCTURING I. PMC SEQUENCE PROGRAM B–61863E/09

9.1
EXAMPLES OF
STRUCTURED
PROGRAMMING

9.1.1 Three major structured programming capabilities are supported.


Implementation (1) Subprogramming
techniques A subprogram can consist of a Ladder sequence as the processing
units.

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

Job A Job A1 Job A11

D
D
Job B D Job A12

Job An

(3) Conditional branch


The main program loops and check whether conditions are satisfied.
If a condition for a loop is satisfied, the corresponding subprogram
is executed. If the condition is not satisfied, the subprogram is
skipped.

Main Program Sub Program

PROCESS11 PROCESS11
STATE1 PROCESS1

PROCESS12
STATE2 PROCESS2

⋅ PROCESS13

294
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. SEQUENCE PROGRAM STRUCTURING

9.1.2 (1) Example


Applications Suppose that there are four major jobs.

If Y0 is 1, a request to machine a workpiece is assumed, and


A processing is performed (with a condition).
A : 1 Pick up a workpiece from a pallet. (A1)
2 Machine the workpiece. (A2)
3 Return the workpiece to the pallet. (A3)
B
B : 4 Move the pallet.

(2) Program structure

Sub Program P1 Sub Program P2 Sub Program P3 Sub Program P4

A A1 A1 A2

B A2 Sub Program P5 Sub Program P6

A3 B
A3

(3) Program description

Main Program

END1

Y0 ȣ
CALL MAIN Ȧ Machine a workpiece.
Ȥ
END2

Sub Program P1 (=MAIN)

SP MAIN

ȣ
CALL A Ȧ Machine a workpiece.
Ȥ
ȣ
CALL B Ȧ Move a pallet.
Ȥ
SPE

295
9. SEQUENCE PROGRAM STRUCTURING I. PMC SEQUENCE PROGRAM B–61863E/09

Sub Program P2 (=A)

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

Sub Program P3 (=A1)

SP A1
ȣ
Pick up a workpiece
from a pallet. Ȧ Ladder coding
Ȥ
SPE

Sub Program P4 (=A2)

SP A2

ȣ
Machine the workpiece. Ȧ Ladder coding
Ȥ
SPE

Sub Program P5 (=A3)

SP A3
ȣ
Return the workpiece to Ȧ Ladder coding
the pallet. Ȥ
SPE

296
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. SEQUENCE PROGRAM STRUCTURING

Sub Program P6 (=B)

SP B

ȣ
Move the pallet. Ȧ Ladder coding
Ȥ
SPE

9.1.3 (1) Main program


Specifications The main program is the Ladder program consisting of the first- and
second-level Ladder programs. One, but only one, main program can
be created. A subprogram cannot be called from the first-level
Ladder program. Any number of subprograms however, can be
called from the second-level Ladder program. The functional
instructions JMP and COM must be completed within each main
program or subprogram.
(2) Subprogram
A subprogram is a program called by the second-level Ladder
program. It is a program unit starting with the functional instruction
SP and ending with the functional instruction SPE. Up to 512
subprograms can be created for one PMC.
(3) Nesting
A subprogram can call another subprogram. The maximum nesting
depth is eight levels. Recursive calls are not allowed.

297
9. SEQUENCE PROGRAM STRUCTURING I. PMC SEQUENCE PROGRAM B–61863E/09

9.2
SUBPROGRAMMING
AND NESTING

9.2.1 Conditional JUMP (or unconditional JUMP) is coded in the main


Function program, and the name of a subprogram to be executed is specified. In
the subprogram, the name of the subprogram and a Ladder sequence to
be executed are coded.
When a subprogram is named Pn (program name), and this name is
specified in conditional JUMP, the subprogram is executed by calling it.
A symbol and comment can be added to Pn to assign a subroutine name.
In the example shown in Fig. 9.2.1, the main program calls three
subprograms. These calls are all conditional calls. Subprogram P1 is
named SUBPRO. It calls subprogram PROCS1 unconditionally.

Main Program Sub Program P1 (=SUBPRO)

END1 SP SUBPRO

f
CALL SUBPRO
CALLU PROCS1

CALL P2 f

CALL P3
ADD 0001 f
B 0001
END2 F10

R200

SPE

9.2.1 Example of Subprogramming and Nesting

298
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. 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.

Main Program Sub Program


⋅ ⋅ ⋅ ⋅ f
SP SUBPRO
END1
⋅ ⋅ ⋅ ⋅ f
A
CALL SUBPRO

⋅ ⋅ ⋅ ⋅ f ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

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.

299
9. SEQUENCE PROGRAM STRUCTURING I. PMC SEQUENCE PROGRAM B–61863E/09

9.2.3 Create subprograms in the same way as the first-, second-, and third-level
Creating a program Ladder programs.
Example of creation

⋅ ⋅ ⋅ ⋅ f

END1
A

CALL SUBPRO

⋅ ⋅ ⋅ ⋅ f

END2

SP SUBPRO

⋅ ⋅ ⋅ ⋅ f

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

SPE

SP P20

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

SPE

END Must create

300
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. SEQUENCE PROGRAM STRUCTURING

Inhibit items
(1) Subprograms are nested.

SP SUBPRO

⋅ ⋅ ⋅ ⋅ f

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

SPE

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

SPE

(2) A subprogram is created within the first-, second-, or third-level


Ladder program.

⋅ ⋅ ⋅ ⋅ f

END1

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

SP SUBPRO

⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅

END2

301
9. SEQUENCE PROGRAM STRUCTURING I. PMC SEQUENCE PROGRAM B–61863E/09

9.3 a) DISPB
NOTES FOR b) EXIN
SUBROUTINES c) WINDR (only low-speed response)
WHEN YOU USE d) WINDW (only low-speed response)
SUBROUTINES 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.
 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.
 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.

302
B–61863E/09 I. PMC SEQUENCE PROGRAM 9. SEQUENCE PROGRAM STRUCTURING

Example)
When subprogram is called from tow places. (The WINDR
instruction is used)

Main program Subprogram 1 Subprogram 2

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.

303
10. JMP INSTRUCTIONS WITH LABEL
SPECIFICATION I. PMC SEQUENCE PROGRAM B–61863E/09

10 JMP INSTRUCTIONS WITH LABEL SPECIFICATION

f : Can be used
 : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

    f   f f f f  f f f f

10.1 (1) Relationship between JMPB/JMPC and LBL


(Forward and backward jumps to the same label are possible.)
SPECIFICATIONS
JMPB A f : Possible

LBL A

f f

JMPB A

JMPC A

Note
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.

304
10. JMP INSTRUCTIONS WITH LABEL
B–61863E/09 I. PMC SEQUENCE PROGRAM SPECIFICATION

(2) Same label


(A label can be used more than once as long as it is unique within the
main program or each subprogram.)

LBL A

First level LBL B

END1

Second level
LBL C

END2

SP A SP A

LBL C

SPE

SP B

SP B

LBL B

SPE

Note
As mentioned in (8) of Section 10.2, the same label must not
exist in the first- and second-level Ladder programs.

(3) Number of labels


First-and second-level Ladder programs : Up to 256 labels
Subprogram : Up to 256 labels for each subprogram
Label number : L1 to L9999

305
10. JMP INSTRUCTIONS WITH LABEL
SPECIFICATION I. PMC SEQUENCE PROGRAM B–61863E/09

(4) Relationship between JMP/JMPE and JMPB/JMPC


(JMPB and JMPC can be used with JMP and JMPE freely.)

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

(5) Relationship between CALL/CALLU and JMPB/JMPC


(JMPB and JMPC can be used with CALL and CALLU freely.)

JMPB C f : Possible
f
JMPB A
f
CALL

LBL A

JMPB B
f

CALLU

LBL B

LBL C

306
10. JMP INSTRUCTIONS WITH LABEL
B–61863E/09 I. PMC SEQUENCE PROGRAM SPECIFICATION

(6) Position of JMPC


(JMPC coded between COM and COME can cause a jump.)

LBL A f : Possible

f
Second level

END2

SP B

SP A COM

JMPC A

COME

SPE

307
10. JMP INSTRUCTIONS WITH LABEL
SPECIFICATION I. PMC SEQUENCE PROGRAM B–61863E/09

10.2 (1) Jump destination of JMPB (1)


(A jump over END1 or END2 is inhibited.)
RESTRICTIONS
f : Possible
LBL A
  : Impossible

JMPB B
f

First level LBL B

JMPB C


END1

Second level LBL C

JMPB A

END2

(2) Jump destination of JMPB (2)


(A jump must be performed within a subprogram.)

f : Possible
JMPB A  : Impossible
f
LBL A
SP A
JMPB B


SPE

SP B
SP B

LBL B

SPE

308
10. JMP INSTRUCTIONS WITH LABEL
B–61863E/09 I. PMC SEQUENCE PROGRAM SPECIFICATION

(3) Jump destination of JMPB (3)


(A jump over COM or COME is inhibited.)

JMPB A f : Possible
 : Impossible

COME 

LBL A

JMPB D

f
JMPB B


COM

LBL B

JMPB C
f
LBL C

COME

LBL D

309
10. JMP INSTRUCTIONS WITH LABEL
SPECIFICATION I. PMC SEQUENCE PROGRAM B–61863E/09

(4) Jump destination of JMPC (1)


(A jump to the first-level Ladder program is inhibited.)

f : Possible
LBL A  : Impossible

First level

END1

Second level LBL B


f

END2

SP A

SP A

JMPC B

JMPC A

SPE

310
10. JMP INSTRUCTIONS WITH LABEL
B–61863E/09 I. PMC SEQUENCE PROGRAM SPECIFICATION

(5) Jump destination of JMPC (2)


(A jump to a label between COM and COME is inhibited.)

 : Impossible
COM

LBL A
Second level


COME

END2

SP A
SP A

JMPC A

SPE

(6) Jump destination of JMPC (3)


(Control must not be returned to a label that appears earlier than the
instruction that has called the subprogram.)
 : Impossible

LBL A


Second level

CALL A

END2

SP A
SP A

JMPC A

SPE

Note
Although Ladder diagrams can be edited, editing a Ladder
diagram may cause an infinite loop. So, be careful not to
program such processing.

311
10. JMP INSTRUCTIONS WITH LABEL
SPECIFICATION I. PMC SEQUENCE PROGRAM B–61863E/09

(7) LBL for JMPB (1)


(There is no LBL in the same subprogram.)

LBL A

Second level

END2

SP A
SP A

JMPB A

SPE

(8) LBL for JMPB (2)


(The same LBL is found in the first- and second-level Ladder
programs.)

JMPB A

First level
LBL A

END1

Second level

LBL A

END

312
10. JMP INSTRUCTIONS WITH LABEL
B–61863E/09 I. PMC SEQUENCE PROGRAM SPECIFICATION

(9) LBL for JMPC


(There is no LBL in the second-level Ladder program.)

LBL A
Second level

END2

SP A
SP A

JMPC B

SPE

313
II. PMC OPERATION (CRT/MDI)
B–61863E/09 II. 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 PMC-RC.
Switch the NC and PMC menus as described below.

NC screen to PMC screen


Press the SYSTEM function key on the CRT/MDI panel. Selecting the
PMC soft key displays the PMC basic menu.
PMC screen to NC screen
 Pressing the RETURN key (the leftmost key) on the PMC basic
menu screen changes the menu to the NC soft key menu.
 Selecting a function key on the PMC screen changes the screen to the
corresponding NC screen.
Figs. 1 (a) to 1 (l) show the standard CRT/MDI panels.

Note
A key enclosed in a box is a function key on the CRT/MDI
panel. A key enclosed in parentheses is a soft key
described below.

317
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

a) 9” small monochrome/color CRT/MDI panel for 16-TA/18-TA


(Horizontal type)

Function keys Address/numeric keys

SHIFT key
Cancel key
INPUT key

Edit keys

HELP key
RESET key

Soft keys Page keys


Cursor control keys

b) 9” monochrome/color CRT/MDI panel for 16-TA/18-TA


(Horizontal type)

RESET key
HELP key Address/numeric keys

Edit keys

Cancel key

INPUT key

Soft keys Page keys Function keys


Power on/off buttom SHIFT key Cursor control keys

318
B–61863E/09 II. PMC OPERATION (CRT/MDI) 1. GENERAL

c) 10” color LCD/MDI panel for 16-TA/18-TA (Horizontal type)

Function keys Address/numeric keys

Cancel key
SHIFT key
INPUT key

HELP key
RESET key

Page keys Edit keys


Soft keys
Power on/off buttom Cursor control keys

d) 10” color LCD/MDI panel for 16-TA/18-TA (Vertical type)

Power on/off buttom

Soft keys

RESET key Function keys

HELP key Edit keys

Cursor control keys


SHIFT key

Address/numeric keys Page keys


INPUT key
Cancel key

319
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

e) 14” color CRT/MDI panel for 16-TA/18-TA (Horizontal type)

RESET key
Address/numeric keys HELP key

SHIFT key

Edit keys

INPUT key
Cancel key
Function keys

Cursor control keys

Power on/off buttom Page keys


Soft keys

f) 14” color CRT/MDI panel for 16-TA/18-TA (Vertical type)

Soft keys

RESET key
Function keys
HELP key Edit keys
Cursor control keys

Address/numeric keys Page keys


Power on/off buttom INPUT key
SHIFT key Cancel key

320
B–61863E/09 II. PMC OPERATION (CRT/MDI) 1. GENERAL

g) 9” small monochrome/color CRT/MDI panel for 16-MA/18-MA


(Horizontal type)

Function keys Address/numeric keys

SHIFT key
Cancel keys
INPUT key

Edit keys

HELP key
RESET key

Page keys
Soft keys
Cursor control keys

h) 9” monochrome/color CRT/MDI panel for 16-MA/18-MA


(Horizontal type)

RESET key
HELP key Address/numeric keys

Edit keys

Cancel key

INPUT key

SHIFT key Cursor control keys


Power on/off buttom Soft keys Function keys
Page keys

321
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

i) 10” color LDC/MDI panel for 16-MA/18-MA (Horizontal type)

Function keys Address/numeric keys

Cancel key
SHIFT key
INPUT key

HELP key
RESET key

Page keys Edit keys


Soft keys
Cursor control keys
Power on/off buttom

j) 10” color LCD/MDI panel for 16-MA/18-MA (Vertical type)

Power on/off buttom

Soft keys

RESET key Function keys

HELP key Edit keys

Cursor control keys


SHIFT key

Address/numeric keys Page keys


INPUT key
Cancel keys

322
B–61863E/09 II. PMC OPERATION (CRT/MDI) 1. GENERAL

k) 14” color CRT/MDI panel for 16-MA/18-MA (Horizontal type)

RESET key
Address/numeric keys HELP key

SHIFT key

Edit keys

INPUT key
Cancel key
Function keys

Cursor control keys

Power on/off buttom Page keys


Soft keys

l) 14” color CRT/MDI panel for 16-MA/18-MA (Vertical type)

Soft keys

RESET key
Function keys

HELP key Edit keys

Cursor control keys

Address/numeric keys Page keys


Power on/off buttom
INPUT key
SHIFT key Cancel key

323
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

1.1 Note the followings when you input PMC-address 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 PMC-address (X, Y, F, G, R, A, C,
STANDARD MDI K, D, T), You can operate as same as FANUC Seires 18
UNITS (FOR FS20 (PMC-RA1/RA3).
PMC-RA1 AND RA3) (2) If MDI does not have those keys, input PMC-address as follows.
When inputting PMC-address (in PCLAD, STATUS and so on), you
can substitute number keys (0 to 9) and a hyphen key (–) for
PMC-address capital keys (X, Y, F, G, etc.). PMC-address capital
keys are corresponding to the number keys as follows.
PMC-address keys G F Y X A R T K C D
number keys 0– 1– 2– 3– 4– 5– 6– 7– 8– 9–

(Example) If you want to input “X0.0 [SRCH] ”, input “3-0.0 [SRCH] ”.

1.2 When a valid sequence program is stored in the PMC, set bit 2 of keep
relay K17 to 1 to start automatic operation when the power is turned on.
AUTOMATIC This setting eliminates the necessity for displaying the PMC screen every
OPERATION WHEN time the power is turned on.
THE POWER IS
TURNED ON Note
In the PMC-RA1/RB3/RB4/RC3/RC4 of the Series 16/18
MODEL-B, setting bit 2 of keep relay K17 or K900 to 0 starts
automatic operation when the power is turned on. Setting
bit 2 to 1 does not perform automatic operation.

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.

324
B–61863E/09 II. PMC OPERATION (CRT/MDI) 1. GENERAL

1.4 The PMC-PA1 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 Mate
Parameter in the Power Mate
–D/F PMC–PA1 AND
#7 #6 #5 #4 #3 #2 #1 #0
PA3) 8703 FLA

#0 (FLA) = 0 : The FANUC standard ladder is not used.


1 : The FANUC standard ladder is used.
(1) Set bit 0 (FLA) of NC parameter 8703 to 1.
This generates alarm 000 (power-off request) in the Power Mate.
(2) Turn off the power, then turn it on again.
If the PMC contains a sequence program (PMC alarm ER22
PROGRAM NOTHING does not occur), turn on the power while
clearing the sequence program (pressing X and O).
(3) The FANUC standard ladder is loaded.

Note
If the sequence program is not cleared in the PMC, the
FANUC standard ladder is not loaded. The existing
sequence program remains.

1.5 A password can be specified for a ladder program. Specified passwords


are stored as sequence program data. A ladder program for which the
LADDER PASSWORD password has been specified cannot be displayed or edited.
FUNCTION Symbols, comments and messages, however, can be displayed and edited
whether a password is specified or not.
(1) Applicable model
PMC–RA1/RB3/RB4/RC3/RC4 for Series 16/18–MODEL B
PMC–RB5/RB6 for Series 16/18–MODEL C
PMC–RA1/RA3 for Series 21/210–MODEL B
PMC–NB/NB2 for Series 15–MODEL B
(2) Types of passwords
A password consists of up to eight alphanumeric characters. The
following two types of passwords are used.
Display permissible : R password (READ)
Display and editing permissible : RW password (READ+WRITE)

325
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

Table 1.5(a) Screens Requiring Password Release and Corresponding


Password Types

Selected screen (soft key) Password


PMCLAD READ
ONLEDT READ+WRITE
M.SRCH (display) READ
M.SRCH (input) READ+WRITE
LADDER READ+WRITE
CLRLAD READ+WRITE
CLRALL READ+WRITE
DBGLAD READ
ONLEDT READ+WRITE

Notes
1 See the following items for the selected screens listed in
Table 1.5(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.2 Clear the ladder program (CLRLAD)
in Part III
CLRALL : 5.6.5 Clear the sequence program
(CLRALL) in Part III
DBGLAD : 8.4 Ladder Debug Function in Part III
ONLEDT : 5.8 On-line Editing in Part II
8.4.2 Soft key menu for ladder debug
function in Part III

(3) Setting a password


Set a password for a ladder program on the editing/password screen
on FAPT LADDER (for personal computers).
(4) Releasing password protection
A ladder program for which the password has been specified cannot
be displayed or edited until the password is input correctly. Once
password protection is released, the protection remains being
released until the power is turned off then on again.
(a) When operation which requires releasing the password
protection is performed, the system displays either of the
following messages to require the protection to be released,
depending on the type of password.
“KEY IN PASSWORD(R)” ··· READ PASSWORD
“KEY IN PASSWORD(R/W)” ··· READ+WRITE
PASSWORD
(b) Enter the password and press the [INPUT] key.
*The entered password is not displayed. (Echo back is not
performed.)

326
B–61863E/09 II. PMC OPERATION (CRT/MDI) 1. GENERAL

(c) When the password is correctly specified, the protection is


released and the corresponding operation becomes available. See
Table 1.5(a). If the password is incorrectly specified, the message
“FALSE PASSWORD” is displayed.

Notes
2 The sequence program is cleared by turning on the power
with the X and keys being held down, whether password
protection is specified or not.

(5) Special password


When a password beginning with the character # is set for RW
password, the subprogram after P1500 can be edited in spite of the
protection by this password.
Applicable model PMC–RB4/RC4 for the Series 16–MODEL B
PMC–RB4 series 4066 edition 08 (stamp H)
PMC–RC4 series 4068 edition 07 (stamp G)
EDITING CARD series 4073 edition 06 (stamp F)

LADDER <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP


P1500 ( ) USER PROGRAM NO.1

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P1500 V P1501 V]P1502

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.

327
1. GENERAL II. PMC OPERATION (CRT/MDI) B–61863E/09

1.6 Note the following when PMC of loader control function is operated.
PMC OPERATION  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  Connector JD5A of main board is used when communicating with
FUNCTION RS232–C.
 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.
 Connector JD1A of loader board is used when using I/O Link function.

328
2. PMC MENU SELECTION
B–61863E/09 II. PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY

2 PMC MENU SELECTION PROCEDURE BY SOFTKEY

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 built-in program-mer 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
PRO-GRAMMER”.

Notes
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 built–in programmer function:
Model Operation
PMC–RA1/RA2/RA3/RB/RB2/RB3 Mount the editing module.
(FS16/18–MODEL A),
PMC–RA1(FS16–MODEL A loader control) (A02B–0120C–C160)
PMC–PA1/PA3(Power Mate–D/H), Mount an editing card.
PMC–RA1/RB3/RB4 (FS16/18–MODEL B),
PMC–RA1/RA3(FS20,FS21/210–B),
PMC–RA1/RA3(FS20,FS21/210–B),
PMC–RA1 (FS16–MODEL B/C,
FS21–B loader control)
PMC–RC/RC3(FS16/18–MODEL A), The function is already contained.
PMC–RC3/RC4(FS16/18–MODEL B),
PMC–NB/NB2(FS15B)
Common to all the models listed above Set bit 1 of K17 to 1.

The FS18–MODEL A contains the PMC–RA1,RA2,or RA3. The series number is 4070.
The FS20 contains the PMC–RA1 or RA3. The series number is 4080.
The FS21/210–B contains PMC–RA1 or RA3. The series number is 4084.
The FS21–B(with loader control) contains PMC–RA1. The series number is 4086.

329
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY II. PMC OPERATION (CRT/MDI) B–61863E/09

PMC DIAGNOSIS FUNCTIONS MONIT RUN

SELECT ONE OF FOLLOWING SOFT KEYS

PMCLAD : DYNAMIC LADDER DISPLAY


PMCDGN : DIAGNOSIS FUNCTION
PMCPRM : PARAMETER(T/C/K/D)
RUN/STOP: RUN/STOP SEQUENCE PROGRAM
EDIT : EDIT SEQUENCE PROGRAM
Built-in programmer function
I/O : I/O SEQUENCE PROGRAM
SYSPRM : SYSTEM PARAMETER
MONIT : PMC MONITOR

[PMCLAD] [PMCDGN] [PMCPRM] [ ] [ ]

2 PMC basic menu screen (9”CRT)

Notes
3 Without built-in programmer function of PMC-RA1, -RA2,
-RA3, -RB, -RB2, -RB4, -RB5, or -RB6 there are only EDIT
and I/O functions.

2) Keys on CRT/MDI panel


The following keys are related to PMC operation on CRT/MDI panel.
a) <SYSTEM> key
Selects from CNC menu to PMC basic menu.
b) <PAGE°> key
Screen page return key.
c) <PAGE±> key
Screen page advance key.
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.2.5 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.2.5 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.

330
2. PMC MENU SELECTION
B–61863E/09 II. PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY

i) Next key
This key is used for extending menus of soft keys. By depressing
this key, a menu changes, and by depressing it again, the menu
is reset as before.
j) Return key
Various PMC operations are conducted by depressing soft keys
related to menus.
The menus sequentially change when depressing 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, PMC-RC/RC3/RC4/NB display the states while the
debugging function is used.

Data entry >


Status display DBG -RAM- ALM
Soft key display [ ] [ ] [ ] [ ] [ ]

 ALM : An alarm occurred in the PMC (For details, see


Section 3.3.)
 RAM : The currently effective sequence program storage
is a RAM module.
 ROM : The currently effective sequence program storage
is a ROM module.
 EPROM: Currently effective sequence program storage is
EPROM. (EPROM for PMC-RA1, PMC-RA2,
PMC-RB, and PMC-RB2)
 DBG : A break issued by the debugging function of
PMC-RC/RC3/RC4/NB in effective.
 BRK : The break issued by the debugging function of
PMC-RC/RC3/RC4/NB has terminated.

331
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY II. PMC OPERATION (CRT/MDI) B–61863E/09

4) Relation between PMC menus and soft keys


There are 2 types, A and B, in the series of CNC.

A–TYPE

RUN or STOP EDIT I/O SYSPRM MONIT

Chapter II.5 Chapter II.3 Chapter II.4 NEXT

PMCLAD PMCDGN PMCPRM

RET RET RET

TOP TITLE TIMER

BOTTOM STATUS COUNTR

SRCH ALARM KEEPRL

W- SRCH TRACE DATA

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.

332
2. PMC MENU SELECTION
B–61863E/09 II. PMC OPERATION (CRT/MDI) PROCEDURE BY SOFTKEY

B–TYPE

RUN or STOP EDIT I/O SYSPRM MONIT

Chapter II.5 Chapter II.3 Chapter II.4 NEXT

PMCLAD PMCDGN PMCPRM

RET RET RET

SEARCH TITLE TIMER

ADRESS STATUS COUNTR


(SYMBOL)
TRIGER ALARM KEEPRL

WINDOW TRACE DATA

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.

The softkey’ s type for the series of CNC.


CNC type Power Mate FS20 FS18 FS16 FS15B
PMC type PA1 PA3 RA1 RA3 RA1 RA2 RA3 RB RB2 RB3 RC RC3 NB NB2
Softkey type A A A A AB A B AB A B AB AB B B

Type A or B is selected depending on the Series of PMC control software.


Series of PMC control software and type of softkey are related as follows.
Type A Type B
FS16A 4061 4063
FS18A 4070 4071

333
2. PMC MENU SELECTION
PROCEDURE BY SOFTKEY II. PMC OPERATION (CRT/MDI) B–61863E/09

(Reference) Series of PMC control software is displayed on the


[PMCDGN] and [TITLE] screen as shown below.

PMC CONTROL PROGRAM


SERIES : 4063 EDITION : 08

Series of PMC control software

334
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

PMC I/O SIGNAL DISPLAY AND INTERNAL RELAY

3 DISPLAY (PMCDGN)

PMC I/O signals, internal relays, and other PMC diagnosis are displayed
on the screen by depressing soft key [PMCDGN].

PMCLAD PMCDGN PMCPRM

RET

TITLE STATUS ALARM TRACE

NEXT

M.SRCH ANALYS USRDGN

335
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.
To display the previous or next screen on the 9” CRT/MDI, use the
<PAGE °> or <PAGE ±> key.

PMC TITLE DATA #1 MONIT RUN


PMC PROGRAM NO. : 1234
EDITION NO. : 12
PMC CONTROL PROGRAM
SERIES : 4063 EDITION : 08
(SERIES : 4065 EDITION : 08)
PMC TYPE CONTROL : RB3 PROGRAM : RB3
MEMORY USED : 007.8 KB
LADDER : 007.0 KB
SYMBOL : 000.0 KB
MESSAGE : 000.8 KB
SCAN TIME : 008 MS
SCAN MAX : 016 MS MIN : 008 MS

[TITLE ] [STATUS ] [ALARM ] [TRACE ] [ ]

3.1 (a) Title Data 1

336
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

PMC TITLE DATA #2 MONIT RUN

MACHINE TOOL BUILDER NAME :


f · · · · · · · · · · · · · f

MACHINE TOOL NAME :


f · · · · · · · · · · · · · f

CNC & PMC TYPE NAME :


f · · · · · · · · · · · · · f

PROGRAM DRAWING NO. :


f · · · · · · · · · · · · · f

[TITLE ] [STATUS ] [ALARM ] [TRACE ] [ ]

3.1 (b) Title data 2

PMC TITLE DATA #3 MONIT RUN

DATE OF PROGRAMING :
f · · · · · · f

PROGRAM DESIGNED BY :
f · · · · · · · · · · · · · f

ROM WRITTEN BY :
f · · · · · · · · · · · · · f

REMARKS :
f · · · · · · · · · · · · · f

[TITLE ] [STATUS ] [ALARM ] [TRACE ] [ ]

3.1 (c) Title data 3

337
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

3.2 The contents at all addresses (X, Y, F, G, R, A, C, K, D, T, M, N)


disignated in programs can be displayed on the CRT screen. This display
DISPLAY OF SIGNAL is all done by “0” and “1” bit patterns, and symbol data is displayed
STATUS (STATUS) together at address bits where symbol data are difined. (M: 2nd level
synchronous buffer of X, N: 2nd level synchronous buffer of F)
For the display format, see Fig. 3.2

TITLE STATUS ALARM TRACE

RET
SEARCH NEXT

M.SRCH ANALYS USRDGN

1 Depress [STATUS] soft key. The CRT screen changes as shown in


Fig. 3.2, and the soft key menu is changed.
2 Depress [SEARCH] key after keying in an address to be displayed.
3 A continuous 8 byte data is displayed by a bit pattern from the
designated address in the top stage of the CRT screen.
4 Depress [SEARCH] key or page key to display another menu
address.

PMC SIGNAL STATUS MONIT RUN

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] [ ] [ ] [ ] [ ] [ ]

 3.2 Status display of PMC I/O signals and internal relays

338
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

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.

PMC ALARM MESSAGE MONIT STOP

ER00 PROGRAM DATA ERROR (ROM)

ALM

[TITLE ] [STATUS] [ALARM ] [TRACE ] [ ]

3.3 Alarm screen

For displayed messages, see the appendix, ”Alarm Message List.”

339
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.

TITLE STATUS ALARM TRACE

RET
T.DISP EXEC NEXT

or or
TRCPRM STOP

M.SRCH ANALYS USRDGN

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.

340
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

3.4.3 EXEC : Starts reading signals


Starting or stopping
the trace function Notes
1 Pressing the [EXEC] key again clears the results of the
previous trace.
If the trace parameters are not set correctly, the trace is not
performed.
When signals are being sampled using the function for
displaying signal waveforms, the trace is not performed.
2 The results of the trace are stored irrespective of when it
occurs. The stored data is 256-byte data before the latest
result. If the power is turned off, the results of the trace are
cleared.
3 Signals R9000 to R9007 cannot be traced.
4 A signal is traced at intervals of 8 ms. If the signal changes
within 8 ms, the changed signal state cannot be traced.
5 When the trace address type is specified as a physical
address, specify an effective memory address. If an
ineffective address is specified to execute the trace, a
system error may occur.

STOP : Stops reading signals.

PMC SIGNAL TRACE MONIT RUN

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 ] [ ] [ ] [ ]

3.4.3 Trace Parameter setting screen

341
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.

PMC SIGNAL TRACE MONIT RUN

1ST ADDRESS = X0000 (FF) 2ND ADDRESS = Y0000 (FF)


NO. 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0000 . . . . . . . . . . . . . . . .
0001 . . . . . . . . . . . . . . . .
0002 . . . . . . . . . . . . . . . .
0003 . . . . . . . . . . . . . . . .
0004 . . . . . . . . . . . . . . . .
0005 . . . . . . . . . . . . . . . .
0006 . . . . . . . . . . . . . . . .
0007 . . . . . . . . . . . . . . . .
0008 . . . . . . . . . . . . . . . .
0009 . . . . . . . . . . . . . . . .
0010 . . . . . . . . . . . . . . . .
0011 . . . . . . . . . . . . . . . .
0012 . . . . . . . . . . . . . . . .
0013 . . . . . . . . . . . . . . . .
0014 . . . . . . . . . . . . . . . .
0015 . . . . . . . . . . . . . . . .

[TRCPRM ] [ STOP ] [ ] [ ] [ ]

EXEC

3.4.4 Trace Screen

3.4.5 When the trace parameters have been specified and bit 5 of keep relay K17
Automatic tracing has been set to 1, the trace automatically starts at power on.
function at power on

342
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

3.5
DISPLAYING THE : Standard
 : optional
CONTENTS OF : cannot be used
MEMORY  : Can be used for the 4084 series.
Power FS16A
Power FS20/ FS16A/B FS16C FS16B/C
Mate- FS21B FS18A FS18B FS16A FS16A /B/C FS15B
Mate-H FS21A FS18B FS18C FS18B/C
D/F FS18B/C
PA1 PA3 PA3 RA1 RA3 RA1 RA3 RA1 RA2 RA3 RA1 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

               

 The ladder editing module is required for the PMC–RB/RB2/RB3 or


the Series 16 –MODEL A and for the PMC–RA1/RA2/RA3 or the
Series 18–MODEL A.
 This function can be used for the PMC–RA1–RB3/RB4/RC3/RC4 of
the Series 16/18–MODEL B and the PMC–RA1/RA3 of the Series
16/18–MODEL B and the PMC–RA1/RA3 of the Series 21/210–MB
as a standard function.

3.5.1 1) Pressing the [M.SRCH] soft key changes the screen to that shown in
Fig. 3.5. 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.

Note
If an address at which the memory is not used is specified,
a system error occurs. Be sure to specify the correct
address.

343
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.

Note
Some values cause a system error.

PMC CONTENTS OF MEMORY MONIT RUN

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 ] [ ] [ ] [ ]

3.5.2 Memory Display

344
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

3.6
FUNCTION FOR
DISPLAYING SIGNAL : Standard
 : optional
WAVEFORMS : cannot be used
(ANALYS)  : Can be used for the 4084 series.
Power FS20/ FS21B FS18A FS18B FS16A FS16A/B FS16C FS16A FS16A FS16B/C FS15B
Mate FS21A FS18B FS18C /B/C FS18B/C
FS18B/C
PA1 PA3 RA1 RA3 RA1 RA3 RA1 RA2 RA3 RA1 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2
                

 The ladder editing module is required for the PMC –RB/RB/RB2/RB3


of the Series 16–MODEL–A and for the PMC–RA1/RA2/RA3 of the
Series 18–MODEL–A.
 The ladder editing card is required for the PMC–RA1/RB3/RB4 of the
Series 16/18–MODEL B and the PMC–RA1/RA3 of the Series
21/210–MB.
 The work RAM is required for the PMC–RC/RC3 of the Series
16/18/MODEL–A.
 This function can be used for the PMC–RC3/RC4 of the Series 16/18
MODEL–B as a standard function.

3.6.1 1) Maximum number of signals traced at the same time: 16


Specifications 2) Maximum sampling period: 10 s
3) Sampling interval: 8 ms

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.

345
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

TITLE STATUS ALARM TRACE


NEXT

M.SRCH ANALYS USRDGN

RET SCOPE DELETE INIT ADRESS


or
SYMBOL

SGNPRM START T.SRCH ADRESS


or
SYMBOL NEXT

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.6 (b).)
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

Notes
1 Conditions 1 and 2 are effective when a trigger address is
specified.

346
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

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.

Notes
2 Trigger mode 1 is effective when condition 1 is set. Trigger
mode 2 is effective when condition 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.

347
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

PMC SIGNAL PARAMETER MONIT RUN

SAMPLING TIME : 10(1-10SEC)

TRIGGER ADDRESS : *ESP

CONDITION : 1
(0:START 1:TRIGGER-ON 2:TRIGGER-OFF)

TRIGGER MODE : 1
(0:AFTER 1:ABOUT 2:BEFORE 3:ONLY)

>

[SCOPE ] [DELETE] [INIT ] [ADRESS] [ ]

ADRESS/SYMBOL

3.6.3 (a) Parameter Setting Screen 1

PMC SIGNAL PARAMETER MONIT RUN

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

>

[SCOPE ] [DELETE] [INIT ] [ADRESS] [ ]

ADRESS/SYMBOL

3.6.3 (b) Parameter Setting Screen 2

348
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

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 (a).
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

349
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

Pressing the “²” key shifts traced data to the left. Pressing the “³”
key shifts traced data to the right.

PMC SIGNAL ANALYSIS(SCOPE) MONIT RUN


SAMPLING TIME : 10 CONDITION : 1
TRIGGER ADDRESS:*ESP TRIGGER MODE: 1

ED0
ED1
ED2
ED3
ED4
ED3

-256 0(MSEC)

[SGNPRM] [START ] [T.SRCH ] [ADRESS ] [ ]


START/STOP ADRESS/SYMBOL

3.6.4(a) Screen Displaying Signal Diagnosis

3.6.5 Since parameter and sampling data is stored in nonvolatile memory, data
Reading signals is retained when the power is turned off.
When the parameters for sampling have been specified and bit 6 of keep
automatically at power relay K17 has been set to 1, the data sampling automatically starts at
on power on.

350
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

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 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

               

Work RAM is necessary (A02B-0120-H987 for the PMC-RC and


PMC-RC3 and A02B-0162-J151 or A02B-0162-J152 for the PMC-NB).
For details, refer to the “PMC-RC/RC3/RC4/NB Programming Manual
(C language)” (B-61863-1).

PMC MONIT USER TASK #1 MONIT RUN

ID NAME LV STATUS WAIT-INF WAIT-ID


LAD3 10 READY
10 TASK__O1 @ 10 ACTIVE
11 TASK__O2 # 11 READY
12 TASK__O3 12 WAIT TIM
13 TASK__O4 13 WAIT EVT.O 1
14 TASK__O5 14 WAIT EVT.A 3
15 TASK__O6 15 WAIT PKT 2340
16 TASK__O7 STOP
17 TASK8 17 READY

>

[ ][ ][ ][ ][ ]

3.7 Screen Displaying the Running States of User Tasks

[Displayed items]

ID NAME LV STATUS WAIT-INF WAIT-ID


11 TASK1 # 13 WAIT EVT.O 10

ID for wait information


Wait information
Running state
Task level
Operation
Task name
Task ID

1) Operation
Code Description
# RS-232C being used
@ NC command edit being used

351
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

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

352
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

3.8
DISPLAYING AND  : Supprted
 : Not supported
SETTING THE Power Power FS21 FS20 FS18 FS16–A FS16–B FS18–B FS15–B
Mate–D/F/G Mate–H TA/TB
CONFIGURATION
        
STATUS OF I/O
DEVICES(IOCHK) In case of FS16–B/FS18–B :

TITLE STATUS ALARM TRACE

NEXT

M.SRCH ANALYS USRDGN IOCHK

RET

IOLNK IOLNK2

INPUT DELETE DELALL PRV.CH NXT.CH

RET NEXT

IOLNK IOLNK2

PMC I/O CHECK

SELECT ONE OF FOLLOWING SOFT KEYS

IOLNK : I/O LINK CHECK


IOLNK2 : I/O LINK–II SETTING

3.8 I/O Check Menu Screen

The I/O check screen has two functions. By pressing the soft key, the
following screens are displayed.
[IOLNK ] : I/O Link connecting check screen.
[IOLNK2] : I/O Link–II parameter setting screen.

353
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

In case of FS15–B :
FS15–B has not supported [IOLNK2] screen. By pressing [IOCHK] key,
I/O Link connecting check screen is selected directly.

TITLE STATUS ALARM TRACE

NEXT

M.SRCH ANALYS USRDGN IOCHK

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. When input to or output from
Check Screen an I/O devices is abnormal, check if the configuration of the connected
I/O devices correct is by referring the screen.

I/O CHECK

GROUP ID KIND OF UNIT

00 80 CONNECTION UNIT
01 82 OPERATOR PANEL
02 84 I/O UNIT MODEL A
03 96 CONNECTION UNIT
04 4A POWER MATE

Fig.3.8.1 Example of the I/O Link Screen

Table 3.8.1 I/O Devices and ID Codes

Displayed I/O device name ID Actual I/O device


CONNECTION UNIT 80 Connection unit
OPERATOR PANEL 82 Operator’s panel connection unit
I/O-B3 83 Expanded I/O B3
I/O UNIT MODEL A 84 to 87 I/O UNIT MODEL A
I/O UNIT MODEL B 9D to 9E I/O UNIT MODEL B
POWER MATE 4A Power Mate
CONNECTION UNIT 96 I/O Link connection unit
OTHER UNIT  Other than above

When the screen is displayed like fig.3.8.1(1)¡¤The I/O devices are


composed like following fig.3.8.1(2).

354
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

CNC Connection Group 0


Unit

Operator’s
Panel Connec- Group 1
tion Unit

I/O
Group 2
Unit MODEL A

Connection
Group 3
Unit

Power Mate
Group 4

3.8.1 (2) I/O Link Configuration

3.8.2 In case of using the I/O Link–II function, set the following I/O Link–II
I/O Link–II Parameter parameter on this screen. Depending on the kind of I/O Link–II interface
board, master/slave screen is displayed automatically.
Setting Screen Please refer to
FANUC I/O Link–II operating manual (B–62714EN)
about details of I/O Link–II 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 Link–II 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.
(6) Re–start I/O Link–II
Press the soft key [START] to re–start I/O Link–II after editing the
parameter.
When the re–start is completed normally, ”LINK STARTED” is
displayed.
If the re–start fails, ”START ERROR” is displayed. In this case, check
the parameter that is set.

355
3. PMC I/O SIGNAL DISPLAY AND
INTERNAL RELAY DISPLAY (PMCDGN) II. PMC OPERATION (CRT/MDI) B–61863E/09

Example of parameter setting of master.

PMC I/O LINK–II CH 1 (1/2)

GENERAL:
MAX SLAVE NO. = 03 (1–31)
SCAN TIME = 0100 (1–9999)MSEC
STATUS ADDRESS = R0500
DI/DO SETTING:
DI/DO MAP MODE = 1 (1,2)
DI/DO DATA SIZE = 16 (0–32)
DO ADDRESS = R0100
DI ADDRESS = R0150

[INPUT ] [DELETE ] [DELALL] [PRV.CH] [NXT.CH]

PMC I/O LINK–II CH 1 (2/2)

MESSAGE I/O SETTING:


MESSAGE SIZE = 032 (0–128)
OUTPUT ADDRESS = R0200
INPUT ADDRESS = R0250
STATUS:
REFRESH TIME = 40 MSEC
I/O LINK–II = 6546/01 (MASTER)

[INPUT ] [DELETE ] [DELALL] [PRV.CH] [NXT.CH]

3.8.2 (1) Example of the I/O Link–II Screen.(Master)

356
3. PMC I/O SIGNAL DISPLAY AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) INTERNAL RELAY DISPLAY (PMCDGN)

Example of parameter setting of slave.

PMC I/O LINK–II CH 1 (1/2)

GENERAL:
MAX SLAVE NO. = 03 (1–31)
STATION NO. = 02 (1–31)
STATUS ADDRESS = R0900
DI/DO SETTING:
DI/DO MAP MODE = 0 (0,2)
DI/DO DATA SIZE = 16 (0–32)
DO ADDRESS = R0000
DI ADDRESS = R0032

[INPUT ] [DELETE ] [DELALL] [PRV.CH] [NXT.CH]

PMC I/O LINK–II CH 1 (2/2)

MESSAGE I/O SETTING:


MESSAGE SIZE = 032 (0–128)
OUTPUT ADDRESS = R0256
INPUT ADDRESS = R0296
STATUS:
I/O LINK–II = 6545/01 (SLAVE )

[INPUT ] [DELETE ] [DELALL] [PRV.CH] [NXT.CH]

3.8.2 (2) Example of the I/O Link–II Screen.(Slave)

357
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

4 PMC PARAMETERS SETTING AND DISPLAY (PMCPRM)

358
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

4.1 Parameters of TIMER, COUNTER, KEEP RELAY and DATA TABLE,


which are nonvolatile, are set and displayed with CRT/MDI panel.
OUTLINE To use this function, press the soft key [PCPRM] of PMC basic menu
screen.

Note
The address and contents of the nonvolatile memory are
described in 3.5-3.8 of I 3. ”ADDRESS” and I
6.”NONVOLATILE MEMORY”.

4.2 1 Set NC to ”MDI” mode or ”Emergency Stop” status.


INPUT PMC 2 Set ”PWE” of NC setting screen or Program Protect Signal(”KEY4”)
PARAMETERS FROM to 1. (See the following table.)
MDI PANEL PWE KEY4
TIMER 

COUNTER   : Alternative
KEEP RELAY 

DATA TABLE  : Alternative

3 Press the following soft keys to select the screens.


[TIMER ] : TIMER screen
[COUNTR] : COUNTER screen
[KEEPRL] : KEEP RELAY screen
[ DATA ] : DATA TABLE screen
4 By using cursor keys, move cursor to the position for setting value.
5 Press the INPUT key after typing the value.
6 Set ”PWE” or ”KEY4” to 0 after setting value.

4.2.1 1 This function is effective on the screen of TIMER, COUNTER,


Multiple data input KEEP RELAY, and DATA TABLE.
2 Up to 10 data can be inputted at once.
3 The cursor is moved to the final data position of inputted data.
(1) Input method
 “ ; (EOB)” is used for separating data.
Press the INPUT key after typing “100; 200; 300”.
 “ ; =” is used for inputting the same value as preceding data.
Press the INPUT key after typing “100; =; =; 200; =”, and it
becomes “100, 100, 100, 200, 200”.
 “ ; ; ” is used for skipping an input address.
Press the INPUT key after typing “100; ; 100”.
The second data is not inputted.

359
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.

Page No.(Change pages with the page keys.)


The TIMER No.s used by TIMER instruction
The addresses refered by sequence program

PMC PRM (TIMER) #001 MONIT RUN

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
9 to 150
08 T14 0 18 T34 0 (in PMC– 8 (ms) 262.136 (s)
09 T16 8 19 T36 8 RB4/RC4)
10 T18 16 20 T38 10000

[TIMER ] [COUNTR ] [KEEPRL ] [ DATA ] [ ]

360
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

4.3.2 The maximum(PRESET) values and CURRENT values of the functional


Counter screen instruction CTR(SUB 5) are set and displayed on this screen.
(COUNTR)
The COUNTER No.s used by CTR instruction
The addresses refered by sequence program
Page No.(Change pages with the page keys.)
The maximum(PRESET) values of COUNTER
(The minimum values are specified in CTR instruction.)

PMC PRM (COUNTER) #001 MONIT RUN

NO. ADDRESS PRESET CURRENT The CURRENT values of COUNTER


01 C00 4 1
02 C04 4 2
03 C08 4 3
04 C12 5 4
05 C16 4 5
06 C20 545 6 You can use COUNTER No.s 1-20. 0-9999 in
07 C24 5 3 BCD(0-32767 in Binary) can be set as the PRE-
08 C28 6 2 SET and CURRENT values.
09 C32 6 1 For the PMC–RB4/RC4, the counter number is
10 C36 6 4 between 1 and 50.

[TIMER ] [COUNTR ] [KEEPRL ] [ DATA ] [ ]

4.3.3 The KEEP RELAYs and the Data for Controlling nonvolatile memory are
Keep relay (KEEPRL) set and displayed on this screen.

PMC PRM (KEEP RELAY) MONIT RUN


The address used by sequence program
NO. ADDRESS DATA NO. ADDRESS DATA
01 K00 00000000 11 K10 00000000
02 K01 00000000 12 K11 00000000
03 K02 00000000 13 K12 00000000
04 K03 00000000 14 K13 00000000
05 K04 00000000 15 K14 00000000
06 K05 00000000 16 K15 00000000
07 K06 00000000 17 K16 00000000
08 K07 00000000 18 K17 00000110
09 K08 00000000 19 K18 00000000
10 K09 00000000 20 K19 00000000
J : This area is reserved for special use. (Note)

[TIMER ] [COUNTR ] [KEEPRL ] [ DATA ] [ ]

361
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

Notes
1 The Data for Controlling Nonvolatile Memory(K16)
Refer to I 6.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.

The Data for PMC Management Software


Model PA1 PA3
PMC control software data 1 K17 K17
PMC control software data 2 K18 K18
Not used K19 K19

Model RA1 RA2 RA3


PMC control software data 1 K17 K17 K17
PMC control software data 2 K18 K18 K18
Not used K19 K19 K19

RB3/ RB4/
Model RB RB2
RB5 RB6
PMC control software data 1 K17 K17 K17 K900
PMC control software data 2 K18 K18 K18 K901
Not used K19 K19 K19 K902
to
K909

Model RC RC3 RC4


PMC control software data 1 K17 K17 K900
PMC control software data 2 K18 K18 K901
PMC control software data 3 K19 K19 K902
Not used K903
to
K909

Model NB NB2
PMC control software data 1 K17 K900
PMC control software data 2 K18 K901
PMC control software data 3 K19 K902
Not used K903
to
K909

PMC control software data 1 (K17 or K900)


K17 #7 #6 #5 #4 #3 #2 #1 #0
or DTBLDSP ANASTAT TRCSTART MEMINP SELCTMDL AUTORUN PRGRAM LADMASK
K900

#7 DTBLDSP 0 : The PMC parameter data table control screen is


displayed.
1 : The PMC parameter data table control screen is
not displayed.
#6 ANASTAT 0 : In the function for displaying signal waveforms,
sampling starts when the [START] soft key is pressed.
1 : In the function for displaying signal waveforms,
sampling starts automatically when the power is
turned on.

362
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

* This bit is effective only for applicable models specified in 3.6,


“Function for Displaying Signal Waveforms (ANALYS),” in Part
II.
#5 TRCSTAT 0 : In the signal trace function, tracing starts when
the [EXEC] soft key is pressed.
1 : In the signal trace function, tracing starts
automatically when the power is turned on.
#4 MEMINP 0 : Data cannot be entered in the memory content
display function.
1 : Data can be entered in the memory content
display function.
* This bit is effective only for applicable models specified in 3.5,
“Display the Contents of Memory (M.SRCH),” in Part II.
#3 SELCTMDL 0 : The sequence program stored in ROM (EPROM)
is enabled.
1 : The sequence program stored in the RAM
module or ROM module (only for
PMC-RB2/RB3) is enabled.
* This bit enables either the EPROM module or ROM/RAM
module when both modules are provided. It is effective for the
PMC-RA1, RA2, RA3, RB, RB2, and RB3. (It is not effective for
the Series 20 or Series 16/18 MODEL-B.)
#2 AUTORUN 0 : In RAM operation, a sequence program is not
executed when the power is turned on.
1 : In RAM operation, a sequence program is
executed automatically when the power is turned
on (as in ROM operation).
* For the PMC of the Series 16/18 MODEL-B, this bit has the
following meanings.
0 : The sequence program is executed automatically
when the power is turned on.
1 : The sequence program is executed when the
[RUN] soft key is pressed.
#1 PRGRAM 0 : The built-in programmer function is not
operated.
(The programmer menu is not displayed, either.)
1 : The built-in programmer function is operated.
(The programmer menu is displayed.)
#0 LADMASK 0 : Ladder dynamic display (PCLAD) is performed.
1 : Ladder dynamic display (PCLAD) is not
performed.

363
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

PMC control software data 2 (K18 or K901)


K18 #7 #6 #5 #4 #3 #2 #1 #0
or IGNDINT CHKPRTY CALCPRTY TRNSRAM TRGSTAT DBGSTAT IGNKEY
K901

#7 IGNDINT 0 : When the screen is switched to the PCMMDI


screen, the CRT is initialized.
1 : When the screen is switched to the PCMMDI
screen, the CRT is not initialized.
* The flag is used to determine whether PMC control software
initializes the CRT when the screen is switched to the PCMMDI
screen. Design application software sot that the CRT is initialized
when this flag is on.
#5 CHKPRTY 0 : The parity check is performed for the system
ROM and program ROM/RAM.
1 : The parity check is not performed for the system
ROM and program ROM/RAM.
#4 CALCPRTY 0 : The built-in programmer function performs
RAM parity calculation.
1 : The built-in programmer function does not
performs RAM parity calculation.
#3 TRNSRAM 0 : A ladder program is not automatically sent to the
backup RAM after on-line editing is completed.
1 : A ladder program is automatically sent to the
backup RAM after on-line editing is completed.
#2 TRGSTAT 0 : The trigger stop function does not automatically
start when the power is turned on.
1 : The trigger stop function automatically starts
when the power is turned on.
#1 DBGSTAT 0 : In the C language debug function, the break
processing does not automatically start when the
power is turned on.
1 : In the C language debug function, the break
processing automatically starts when the power is
turned on.
* This flag is effective for the PMC-RC/RC3.
#0 IGNKEY 0 : Function keys are enabled when a user program
displays the user screen.
1 : Function keys are disabled when a user program
displays the user screen.
* This flag is effective for the PMC-RC/RC3/RC4/NB/NB2. When
this bit is set to 1 of the user screen, the screen cannot be switched
to the NC screen using function keys. A program which always
sets this bit to 0 or which changes the screen to the NC screen is
required.

364
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

PMC control software data 3 (K19 or K902)


K19 #7 #6 #5 #4 #3 #2 #1 #0
or C-REJECT FROM-WRT
K902

#1 C-REJECT 0 : A C-language program is activated.


1 : A C-language program is forcibly not activated.
* The flag is effective for the PMC-RC/RC3/RC4.
#0 FROM-WRT 0 : The program is not automatically written to
F–ROM.
1 : After a lodder program on C program has been
edited, the program is automatically written to
F–ROM.

Notes
Be sure to set bits not used in the PMC control software data
1, 2 and 3 to 0.
 The PMC-RB3/RC3 of the Series 16 MODEL-B is not
provided with ER00 or ER06.
 For the PMC-RB3/RC3 of the Series 16 MODEL-B, debug
RAM and sequence-program ROM described in this manual
mean RAM.

In case of PMC–PA1/PA3
on Power Mate #7 #6 #5 #4 #3 #2 #1 #0
K17 DTBLDSP TRCSTART MEMINP AUTORUN PRGRAM LADMASK

#7 DTBLDSP 0 : The PMC parameter data table control screen is


displayed.
1 : The PMC parameter data table control screen is
not displayed.
#5 TRCSTAT 0 : In the signal trace function, tracing starts when
the [EXEC] soft key is pressed.
1 : In the signal trace function, tracing starts
automatically when the power is turned on.
#4 MEMINP 0 : Data cannot be entered in the memory content
display function.
1 : Data can be entered in the memory content
display function. (This flag is not effective for
Power Mate–D/F.)
#2 AUTORUN 0 : A sequence program is executed automatically
when the power is turned on.
1 : The sequence program is executed when the soft
key in programmer menu is pressed.
* This flag is not effective for the Power Mate–D/F.

365
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

#1 PRGRAM 0 : The built-in programmer function is not


operated. (The programmer menu is not
displayed, either.)
1 : The built-in programmer function is operated.
(The programmer menu is displayed.)
#0 LADMASK 0 : Ladder dynamic display (PMCLAD) is
performed.
1 : Ladder dynamic display (PMCLAD) is not
performed.

#7 #6 #5 #4 #3 #2 #1 #0
K18 CHKPRTY CALCPRTY TRGSTAT

#5 CHKPRTY 0 : The parity check is performed for the system


ROM and program ROM/RAM.
1 : The parity check is not performed for the system
ROM and program ROM/RAM.
#4 CALCPRTY 0 : The built-in programmer function performs
RAM parity calculation.
1 : The built-in programmer function does not
perform RAM parity calculation.
#2 TRGSTAT 0 : The trigger stop function does not automatically
start when the power is turned on.
1 : The trigger stop function automatically start
when the power is turned on. (This flag is not
effective for Power Mate–D/F.)

366
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

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

GROUP TABLE COUNT = 16 The number of group of Data Table

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

You can initialize the Data Table setting data. The


[G.DATA] [G.CONT] [NO.SRH] [ ] [ INIT ] initial data is as follows.

PMC DATA TBL CONTROL #001 MONIT RUN

GROUP TABLE COUNT = 1

NO. ADDRESS PARAMETER TYPE NO. OF DATA


001 D0000 00000000 0 1860

002 * 3000:PMC-RB3/RC/
RC3/NB

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.

367
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

Notes
Table Parameter
#7 #6 #5 #4 #3 #2 #1 #0

0 : Binary
1 : BCD

0 : Available to input
1 : Unavailable to input (Protection mode)

0 : Binary of BCD (The bit 0 is valid


1 : Hexadecimal (The bit 0 is invalid.)

(2) Data Table Screen


If the Data Table Controlling Data is set, Data Table Screen is
displayed by pressing the soft key [G.DATA].

Group No.s

Page No.
(Change pages with the page keys)
PMC PRM (DATA) 001/001 MONIT RUN

NO. ADDRESS DATA The address used by sequence program


001 D0000 10
002 D0001 48
003 D0002 5
004 D0003 64
005 D0004 0
006 D0005 0
007 D0006 48
008 D0007 10
009 D0008 1
010 D0009 1

[C.DATA] [G-SRCH] [SEARCH] [ ] [ ]

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.

You can change the screen to Data Table Controlling Data.

368
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

4.4 Part of KEEP RELAY parameters can be set on SETTING Screen.


SETTING SCREEN  : Can be used
 : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

  ∆   ∆      ∆ ∆   

Notes
∆: 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)
PMC–PA3 can be used only with Power Mate–H.

 The display items are different according to the type of CNC.


 The parameter is set by a soft key or the <INPUT> key with 0 or 1.
 Once an item has been set, the cursor moves to the next item.
[PMC-RA1/RA3/RB/RB3/RB4 on SETTING screen]

PMC PRM (SETTING) MONIT RUN

PROGRAMMER ENABLE = 0(0:NO 1:YES) (K17. 1)


LADDER START (RAM) = 0(0:MANUAL 1:AUTO) (K17. 2)
SELECT ROM/RAM = 0(0:ROM 1:RAM) (K17. 3)
SIGNAL TRACE START = 0(0:MANUAL 1:AUTO) (K17. 5)
DATA TBL CNTL SCREEN = 0(0:YES 1:NO) (K17. 7)
SIGNAL TRIGGER START = 0(0:MANUAL 1:AUTO)
(K18. 2)
TRANS LADDER(ONLEDT) = 0(0:MANUAL 1: AUTO)
(K18. 3)

[ NO ] [ YES ] [ ] [ ] [ ]

* The bracketed addresses show the related KEEP RELAYs.

369
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

[PMC–PA3 on SETTING screen]

PMC PRM (SETTING) MONIT RUN

PROGRAMMER ENABLE = 0(0:NO 1:YES) (K17. 1)


LADDER START = 0(0:AUTO 1:MANUAL) (K17. 2)
RAM WRITE ENABLE = 0(0:NO 1:YES) (K17. 4)
SIGNAL TRACE START = 0(0:MANUAL 1:AUTO) (K17. 5)
DATA TBL CNTL SCREEN = 0(0:YES 1:NO) (K17. 7)
SIGNAL TRIGGER START = 0(0:MANUAL 1:AUTO)
(K18. 2)

[ NO ] [ YES ] [ ] [ ] [ ]

* The bracketed address show the related KEEP RELAYs


[PMC-RC/RC3/RC4 on SETTING screen]

PMC PRM (SETTING) MONIT RUN

PROGRAMMER ENABLE = 0(0:NO 1:YES) (K17. 1)


LADDER START (RAM) = 0(0:MANUAL 1:AUTO) (K17. 2)
RAM WRITE ENABLE = 0(0:NO 1:YES) (K17. 4)
SIGNAL TRACE START = 0(0:MANUAL 1:AUTO) (K17. 5)
SIGNAL ANALYS START = 0(0:MANUAL 1:AUTO) (K17. 6)
DATA TBL CNTL SCREEN = 0(0:YES 1:NO)
(K17. 7)
FUNC KEY INP(CUSTOM) = 0(0:AVAL 1:IGNORE)
DEBUG FUNC START = 0(0:MANUAL 1:AUTO) (K18. 0)
SIGNAL TRIGGER START = 0(0:MANUAL 1:AUTO) (K18. 1)
TRANS LADDER (ONLEDT)= 0(0:MANUAL 1:AUTO) (K18. 2)
INITPMC-MDI SCREEN = 0(0:YES 1:NO) (K18. 3)
(K18. 7)

[ NO ] [ YES ] [ ] [ ] [ ]

* The bracketed addresses show the related KEEP RELAYs.

370
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

[PMC–NB/NB2 on SETTING screen]

PMC PRM (SETTING) MONIT RUN


NB NB2
PROGRAM ENABLE = 0 (0:NO 1:YES) (K17. 1, K900.1)
AUTOMATIC LADDER START = 0 (0:MANUAL 1:AUTO) (K17. 2, K900.2)
RAM WRITE ENABLE IN [M.SRC] = 0 (0:NO 1:YES) (K17. 4, K900.4)
SIGNAL TRACE START = 0 (0:MANUAL 1:AUTO) (K17. 5, K900.5)
SIGNAL ANALYSIS START = 0 (0:MANUAL 1:AUTO) (K17. 6, K900.6)
DATA TABLE CONTROL SCREEN = 0 (0:YES 1:NO)
(K17. 7, K900.7)
NC/PC KEY EFFECTIVE = 0 (0:AVAL 1:IGNORE)
(K18. 0, K901.0)
DEBUG FUNCTION START = 0 (0:MANUAL 1:AUTO)
SIGNAL TRIGGER START = 0 (0:MANUAL 1:AUTO) (K18. 1, K901.1)
TRANSFER LADDER (ONLINE–EDIT) = 0 (0:MANUAL 1:AUTO) (K18. 2, K901.2)
INITIALIZE PMC–MDI SCREEN = 0 (0:YES 1:NO) (K18. 3, K901.3)
WRITE TO F–ROM (EDIT) = 0 (0:NO 1:YES) (K18. 7, K901.7)
REJECT LANGUAGE = 0 (0:NO 1:YES) (K19. 0, K902.0)
SIGNAL ANALYSIS DISPLAY MODE = 0 (0:GRAPHIC 1:TEXT) (K19. 1, K902.1)
SPECIFY NC WINDOW FORMAT = 0 (0:AUTO 1:MANUAL)
NC WINDOW FORMAT (TOOL DATA) = 0 (0:EXPAND 1:STANDARD)

[ NO ] [ YES ] [ ] [ ] [ ]

* The bracketed addresses show the related KEEP RELAYs.


SIGNAL TRIGGER ENABLE
Displayed in case of PMC–NB(4047).
Stop function of ladder diagram display by trigger of signal is set.
The trigger stop function can be used by selecting ”YES” ,and turning
off and on the power.
WRITE TO F–ROM (EDIT)
Setting to write the LADDER data in F–ROM, when the edit of
LADDER ends.
When you select ”YES” and then get out of the EDIT screen, a
message confirming if you write to F–ROM is displayed.
REJECT LANGUAGE
It is setting of the start of the program of C language.
When ”YES” is selected, the program of C language is not started.
SIGNAL ANALYSIS DISPLAY MODE
The display form in the signal waveform display function is set.
The display form can be selected.
Select ”TEXT” and it is displayed by the character.
Select ”GRAPHIC” and it is displayed by the line.
SPECIFY NC WINDOW FORMAT
The form in functional instruction WINDR and WINDW are set.
When ”AUTO” is selected, the format is automatically distinguished
by the state of bit 4 of NC parameter 7401.
When ”MANUAL” is selected, the format is selected by ”NC
WINDOW FORMAT (TOOL DATA)”.

371
4. PMC PARAMETERS SETTING AND
DISPLAY (PMCPRM) II. PMC OPERATION (CRT/MDI) B–61863E/09

NC WINDOW FORMAT (TOOL DATA)


The format in functional instruction WINDR and WINDW are set.
When ”MANUAL” is selected by ”SPECIFY NC WINDOW
FORMAT”, this item is effective.
The window instruction of a new format can be used by selecting
”EXPAND”.
(The same meaning as bit 4 of NC parameter 7401 is 1.)
An old window instruction can be used by selecting ”STANDARD”
(The same meaning as bit 4 of NC parameter 7401 is 0.)

372
4. PMC PARAMETERS SETTING AND
B–61863E/09 II. PMC OPERATION (CRT/MDI) DISPLAY (PMCPRM)

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.

Note
It is not the number(NO.) but the address(ADDRESS) that
you type in searching.

Ex.3) In case of the ADDRESS,PARAMETER,TYPE and NO. OF


DATA of the Data Table Controlling Data NO.002.
1 Press the soft key [NO.SRH] after typing 2, and the cursor is
moved to the ADDRESS position.
2 Press the INPUT key after typing the ADDRESS(ex.D20;D must
not be omitted), and the cursor is automatically moved to the next
position(PARAMETER). The cursor is moved only by pressing
the INPUT key.
3 In the same way, set the PARAMETER,TYPE and NO. OF
DATA. If you finish setting the NO. OF DATA, the cursor is
moved to the position(ADDRESS) in the same line.
Ex.4) In case of setting D22 in the Data Table of the group 2
1 Press the soft key [G.DATA] on the Data Table Controlling Data
screen, and the Data Table screen is displayed.
2 Press the soft key [G-SRCH] after typing 2 on the Data Table
screen, and the Data Table of the group 2 is displayed.
3 Press the soft key [SEARCH] after typing D22(D can be omitted).
4 Press the INPUT key after typing the value.

373
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

5 PMC LADDER DIAGRAM DISPLAY (PMCLAD)

Displaying the PMC ladder diagram on CRT/MDI panel is available.


This ladder diagram display function offers functions effectively used for
locating troubles in addition to the simple ladder diagram display.
The following functions are done using the soft keys.
(1) Search and display of optional relay coil on ladder diagrams.

(2) Ladder diagram dynamic display.


(3) Stop of ladder diagram display by trigger of signal (on or off).
(4) Screen-dividing display.
(5) Monitor display of signal condition.
(6) Monitor display of parameter in functional instructions.
(7) ON LINE edit.
For this operation, depress [PMCLAD] soft key of PMC basic menu to
bring the following menu.

A–TYPE

PMCLAD PMCDGN PMCPRM

RET

TOP BOTTOM SRCH W-SRCH N-SRCH

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

B–TYPE

PMCLAD PMCDGN PMCPRM

RET

SEARCH ADRESS TRIGER WINDOW


(SYMBOL)

Sec. 5.5 Sec. 5.4 Sec. 5.6 Sec. 5.7 NEXT

DUMP DPARA ONLEDT


(NDPARA)

Sec. 5.2 Sec. 5.3 Sec. 5.8

374
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

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

[SEARCH] [ADRESS ] [TRIGER] [WINDOW] [ ]

[ DUMP ] [ DPARA ] [ ] [ONLEDT] [ ]

5.1 Ladder diagram display

375
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

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.

LADDER *TITLE DATA REMARKS 32 BYTES * NET 00001-00004 MONIT RUN

X1000.0 X1000.0
X1000.1 X1000.2 X1000.1
X1000.3

X1001.0 ACT SUB 3 0002 X1001.0


TMR

X1001.1 X1001.2 X1001.1

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 .......

[ BYTE ] [ WORD ] [ D.WORD ] [ ] [ ]

The [DUMP] soft key has the following functions.


(1) [BYTE] : Byte type display (1 BYTE)
“G0000 00 14 00 00 01 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”
(2) [WORD] : Word type display (2 BYTE)
“G0000 1400 0000 0001 0000 0000 0000 0000 0000”
“G0016 0000 0000 0000 0000 0000 0000 0000 0000”
(3) [D.WORD] : Long word type display (4 BYTE)
“G0000 00001400 00000001 00000000 00000000”
“G0016 00000000 00000000 00000000 00000000”

376
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

5.3 The value of parameter of a functional instruction is displayed in the


functional instruction of a ladder diagram.
PARAMETER
DISPLAY ON
LADDER *TITLE DATA REMARKS 32 BYTES * NET 00001-00004 MONIT RUN
LADDER DIAGRAM
X1000.0 X1000.0
X1000.0 RST X1000.3
ABSDE ACT
SUB36 2
ADDB
D0000
[ 0]←(Content of D0)
1
D0000
[ 0]

[ DUMP ] [ DPARA ] [ ] [ ONLEDT ] [ ]


(NDPARA)

The function of the soft key is as follows :


(1) [DPARA] : The value of parameter is displayed in functional
instruction.
(2) [NDPARA] : The value of parameter is not displayed in functional
instruction.

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
instr ction no.
no s form
1 2 3 4 5 6
1 END1 0
2 END2 0
3 TMR* 2 4 4 Binary
4 DEC 1 1 BCD
5 CTR** 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

377
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

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
21 MUL 3 2 2 2 BCD
22 DIV 3 2 2 2 BCD
23 NUME 1 2 BCD
24 TMRB* 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* 2 4 4 Binary
55 CTRC** 2 2 2 Binary
56
57 DIFU 0
58 DIFD 0
59 EOR 3 1/2/4 1/2/4 1/2/4 HEX
60 AND 3 1/2/4 1/2/4 1/2/4 HEX
61 OR 3 1/2/4 1/2/4 1/2/4 HEX
62 NOT 2 1/2/4 1/2/4 HEX
63 PSGN2 1 1 HEX
64 END 0
65 CALL 0
66 CALLU 0
67
68 JMPB 0
69 LBL 0
70
71 SP 0
72 SPE 0
73 JMPC 0
74
Y Y
Y Y
87
88 MMC3R 4 2 2 2 2 Unsign
89 MMC3W 4 2 2 2 2 Unsign
90 FNC90 1 2 Binary

378
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

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
91 FNC91 1 2 Binary
92 FNC92 1 2 Binary
93 FNC93 1 2 Binary
94 FNC94 1 2 Binary
95 FNC95 1 2 Binary
96 FNC96 1 2 Binary
97 FNC97 1 2 Binary
98 MMCWR 2 2 2 Unsign
99 MMCWW 2 2 2 Unsign

Notes
The data length of BCD is displayed for 1 is 2-figures, 2 is
4-figures.
1 The value of parameter is not displayed in this instruction.
* The timer is displayed the content of timer number (3: TMR,
24: TMRB, 54: TMRC).
** The counter is displayed the content of counter number (5:
CTR, 55: CTRC).

379
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

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)

LADDER MONIT RUN


Signal name
Address or
symbol name MA SPDALM X2.4 MACHINE Comments
mments READY
MACHINE
ALARM

[ SEARCH ] [ ADRESS ] [ TRIGER ] [ WINDOW ] [ ]


(SYMBOL)

(1) [ADRESS] : is used to display the address name.


(2) [SYMBOL] : is used to display the symbol name.

380
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

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

TOP BOTTOM SRCH W- SRCH N- SRCH

NEXT

F- SRCH

The function of the soft key is as follows :


(1) [TOP] : Displays the first NET of the ladder from the
beginning of the screen.
(2) [BOTTOM] : Displays the last NET of the ladder from the
beginning of the screen.
(3) [SRCH] : When the address and bit number or symbol name to
be searched are typed in and the [SRCH] key is
pressed, the specified address or symbol is searched
from the top of the current screen. If the specified
relay cannot be found until the last NET of the ladder,
the relay are searched again from the first ladder until
the NET where they started being searched.
(4) [W-SRCH] : This is used for searching a relay coil. Press
[W-SRCH] soft key after keying in an address and bit
number or symbol name. If the same address and bit
number or the same symbol name is detected, the
screen containing it will be displayed.
(5) [N-SRCH] : Displays the ladder with the specified NET number
from the beginning of the screen. Moreover, when
pressing the [N-SRCH] key without keying the NET
number, the display is scrolled down by one NET.
(6) [F-SRCH] : When the functional instruction name or functional
instruction number is typed in and the [F-SRCH] key
is pressed, the functional instruction is searched.

381
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

5.6
STOP OF LADDER  : Can be used
 : Cannot be us
DIAGRAM DISPLAY PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2
BY TRIGGER OF            ∆ ∆   
SIGNAL
Notes
∆: 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)
PMC–PA3 can be used only with Power Mate–H.

The ladder display can be stopped by manual operation or trigger of


signal.
The former ladder diagram display renews signal status every moment.
But by using this function, all the ladder diagram at the specified moment
can be checked.
The stop conditions as a trigger are specified by rising or falling edge
detection of the designated signal.
* Display of setting trigger
The setting address, condition and counter are displayed at the title
line.

“MODE : ON : X0000.0 : 0 : 0001 ”

COUNT : Trigger checking number (default 1)

POINT : Trigger checking point (default 0)


0 the top of the 1st level
1 after END1 execution
2 after END2 execution
3 after END3 execution

ADR : Trigger setting address

ON : Rising edge detection (TRGON) ,


OFF : Falling edge detection (TRGOFF)

* Setting form adr ; p1 ; p2 + [TRGON/TRGOFF] soft key


Note) “ ; ” = “EOB”
adr (trigger address) ; p1 (trigger point) ; p2 (trigger checking number
(1 to 65535))
* Because parameters are stored in the nonvolatile memory, they are
not lost even if the power is turned off.
When bit 2 of keep relay K18 is set to 1 after parameters for sampling
are specified, the trigger function automatically starts when the power
is turned on.

382
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

For this operation, press [TRIGER] soft key to bring the following menu.

SEARCH ADRESS TRIGER WINDOW

RET

TRGON TRGOFF START


(STOP)
NEXT

DUMP DPARA TRGSRC INIT


(NDPARA)

The function of the soft key is as follows :


(1) [TRGON] : Trigger is set on condition that the ladder status stops
when the status of designated signal is rising.
(2) [TRGOFF] : Trigger is set on condition that the ladder status stops
when the status of designated signal is falling.
(3) [START] : Change start/stop of trigger execution. While this
function is executing, “TRG” is blinking.
(4) [TRGSRC] : Search and blink the instruction stopped by trigger.
(5) [INIT] : The setting of trigger is initialized.

383
5. PMC LADDER DIAGRAM DISPLAY
(PMCLAD) II. PMC OPERATION (CRT/MDI) B–61863E/09

5.7 This function is used for dividing display of ladder diagram.


DIVIDING DISPLAY The maximum number of division is 6.
OF LADDER
LADDER *TITLE DATA REMARKS 32 BYTES * NET 00001-00004 MONIT RUN
DIAGRAM
*NET NO. 00001 – 00001
X1000.1 X1000.1 X1000.1 X1000.1 X1000.1 X1000.2 Y1000.0

*ESP SMBL X100.0 X100.0 X100.0

*NET NO. 00001 – 00001


X1000.0 X1000.1 X1000.2 Y1000.1

X1000.0 X1000.1 X1000.2 Y1000.2

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 .............

[DIVIDE ] [ CANCEL ] [ DELETE ] [SELECFT ] [ WIDTH ]

5.4 Dividing display of ladder diagram

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.

SEARCH ADRESS TRIGER WINDOW

RET

DIVIDE CANCEL DELETE SELECT WIDTH

The function of the soft key is as follows :


(1) [DIVIDE] : The screen will be divided.
The dividing display of ladder diagram can be
displayed for the designated NET number.
(NET number + [DIVIDE] )
(2) [CANCEL] : The dividing display of ladder diagram display ends.
(The screen returns to normal display.)
(3) [DELETE] : The screen division subject to operation is ended.
(4) [SELECT] : Change the screen subject to division operation.
The screen in operation is displayed by “purple” title
line, another screen is displayed by “blue” title line.
In monochrome CRT, the screen is displayed by
changing brightness.

384
5. PMC LADDER DIAGRAM DISPLAY
B–61863E/09 II. PMC OPERATION (CRT/MDI) (PMCLAD)

(5) [WIDTH] : Change the width of division by using [EXPAND] or


[SHRINK] soft key.
(6) [EXPAND] : The divided screen is expanded.
(7) [SHRINK] : The divided screen is shrank.

5.8
ON–LINE EDIT  : Can be used
∆ : Option
 : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 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)

For the PMC MODEL –RA series and –RB series, the editing module
(card) 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.
 Change the type of contact (A contact, B contact)
 Change address of contact and coil.
 Change address parameter of functional instruction.
This function don’t 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 power–off. For the
Series 15 MODEL B or Series 16 MODEL B/C, write the program into
flash EEPROM.
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.

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.

385
6. USER PMC SCREEN (PCMDI) II. PMC OPERATION (CRT/MDI) B–61863E/09

6 USER PMC SCREEN (PCMDI)

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 PMC-RC/RC3/RC4/NB programming
(PMC-RC OR manual for C language (B-61863E-1).
PMC-RC3)
Note
Pressing the <CUSTOM> key several times changes the
screen to the PMCMDI screen. 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 pl pcmdi function in
FOR THE FS15 C language. It is applicable only when the program has been written in
(PMC-NB) C language. For details, see the PMC-RC/RC3/RC4/NB programming
manual for C language (B-61863E-1).

386
III. PMC PROGRAMMER
(CRT/MDI)
B–61863E/09 III. 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 a on the
CRT/MDI panel. For this operation, the PMC debugging RAM for debug
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/non-division of ladder program (only
PMC-RC)
c) Parameters for executing C language programs (only for
PMC-RC)
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) Output of sequence programs to FANUC printer
b) Input/output of sequence programs to and from FANUC floppy
disk cassette
c) Input/output of sequence programs to and from debugging RAM
d) Input/output of sequence programs to and from ROM
e) 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

389
2. COMPONENT UNITS AND
CONNECTIONS III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

2 COMPONENT UNITS AND CONNECTIONS

This section describes only the 16/18 MODEL A. For other models, refer
to the order list and the connection manual for each model.
The units required for generating a sequence program and connection
methods are described below.

390
2. COMPONENT UNITS AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) CONNECTIONS

2.1 1) PCB and module for PMC


COMPONENT UNITS This is PCB and module for PMC. The type of board is as follows;
a) Series 16
i) PMC-RB (Main CPU board)
 PMC control (A20B-2900-0560, -0143)
 Debugging control (A20B-2900-0530)
 PMC user ROM
 Editing module (A02B-0120-C160)
ii) PMC-RC (Option 3 board)
 PMC control module
A20B-2900-0390
(When using language programs, work RAM is required.)
A20B-2900-0391
A20B-2900-0143
b) Series 18
i) PMC-RA1/RA2 (Main CPU board)
 PMC control module (A20B-2900-0142) for PMC-RA1
(A20B-2900-0920) for PMC-RA2
 Debugging RAM module (A20B-2900-0530) Common
 PMC user ROM with
PMC-RB
 Editing module (A02B-0120-0160)

391
2. COMPONENT UNITS AND
CONNECTIONS III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Configuration of the main CPU board (Series 16)

Connector Connector
Drawing number : A16B-2200-0900 name name Application

LED
PMC-RB CRT JA1 CRT video signal
ROM CPU MDI JA2 MDI keyboard
13
R232-1 JD5A RS-232-C serial port
R232-2 JD5B RS-232-C serial port
MPG JA3 Manual pulse generator
IOLINK JD1A FANUC I/O LINK
Module
SPDL-1 JA7A Serial spindle
1 2 3 4 5 6 7 8 A-OUT1 JA8A Analog output
APCBAT JA4A APC battery

AMP1 JV1 1st axis servo amplifier


AMP2 JV2 2nd axis servo amplifier
AMP3 JV3 3rd axis servo amplifier
AMP4 JV4 4th axis servo amplifier
ENC1 JF1 1st axis pulse coder
CNA ENC2 JF2 2nd axis pulse coder
ENC3 JF3 3rd axis pulse coder
F-bus
backplane 9 10 11 12 ENC4 JF4 4th axis pulse coder
connector SCALE1 JF21 1st axis scale
SERVO SCALE2 JF22 2nd axis scale
ROM
SCALE3 JF23 3rd axis scale
SCALE4 JF24 4th axis scale

2.1 (a) Layout of Parts on Main CPU Board (Series 16)

Table 2.1 (a) Modules of Main CPU board (Series 16)

No. Module Drawing number Functional outline


1 ROM module A20B-2900-0290 to 0293 ROM for CAP I or macros
2 ROM module A20B-2900-0290 to 0292 ROM for the CNC system
3 SRAM module A20B-2900-0530 RAM for debugging the PMC-RB
4 SRAM module A20B-2900-0530,-0531 RAM for part programs and parameters
A20B-2900-0540,-0541
5 PMC control module A20B-2900-0560 (For PMC-RB) PMC operation control
A20B-2900-0143 (For PMC-RC)
6 CRT control module A20B-2900-0150 to 0152 CRT display control
7 System control module A20B-2900-0101 to 0103 Clear, battery backup, spindle control, etc.
8 I/O interface module A20B-2900-0110 MDI, MPG, RS-232-C, etc.
9 Servo control module A20B-2900-0160 Digital servo control of the 3rd and 4th axes
10 Servo control module A20B-2900-0160 Digital servo control of the 1st and 2nd axes
11 Servo interface module A20B-2900-0370,-0380 3rd/4th axis amplifier/pulse coder interface
12 Servo interface module A20B-2900-0370,-0380 1st/2nd axis amplifier/pulse coder interface

392
2. COMPONENT UNITS AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) CONNECTIONS

Configuration of the option 3 board (Series 16)

Drawing number : A16B-2200-0940 (PMC-RC+CAP II)


A16B-2200-0941 (only for PMC-RC) Connector Connector
A16B-2200-0943 (only for CAP II) Name Name Application

LED

Module

1 2 3 4 5 6

IOLINK JD1A2 FANUC I/O LINK

CNA
7 8 9
F-bus
backplane CPU
connector

2.1 (b) Layout of Parts on Option 3 Board (Series 16)

Table 2.1 (b) Modules of Option 3 Board (Series 16)

No. Module Drawing number Functional outline


1 ROM module A20B-2900-0290 to 0293 User ROM for PMC-RC (Mount the RAM module
during debugging.)
2 ROM module A20B-2900-0292 System ROM for PMC-RC
3 DRAM module A20B-2900-0553 Work RAM for PMC-RC
4 PMC control module A20B-2900-0560 PMC operation control and I/O Link control
5 PMC CPU module A20B-2900-0390 For ladder capacity 2400 steps or C language
A20B-2900-0391 Other than the above

393
2. COMPONENT UNITS AND
CONNECTIONS III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Configuration of the Main CPU Board (Series 18)


Connector Connector
Drawing number : A16B-2201-0080 Name No. Description

LED
CRT JA1 CRT video signal
PMC-RA1/RA2 MDI JA2 MDI keyboard
ROM R232-1 JD5A RS-232-C serial port
16
R232-2 JD5B RS-232-C serial port
MPG JA3 Manual pulse generator
IOLINK JD1A FANUC I/O LINK
Module
SPDL-1 JA7A Serial spindle
A-OUT1 JA8A Analog output
1 2 3 4 5 6 7 8
APCBAT JA4A Battery for use with the APC

AMP1 JV1 Axis 1 servo amplifier


AMP2 JV2 Axis 2 servo amplifier
AMP3 JV3 Axis 3 servo amplifier
AMP4 JV4 Axis 4 servo amplifier
ENC1 JF1 Axis 1 pulse coder
CNA ENC2 JF2 Axis 2 pulse coder
ENC3 JF3 Axis 3 pulse coder
F-BUS
back plane 9 10 11 12 13 14 15 ENC4 JF4 Axis 4 pulse coder
connector SCALE1 JF21 Axis 1 scale
SCALE2 JF22 Axis 2 scale
SCALE3 JF23 Axis 3 scale
SCALE4 JF24 Axis 4 scale

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)

No. Module name Drawing no. Function outline


1 ROM module A20B-2900-0290 to 0293 ROM for macros or CAP 1
2 ROM module A20B-2900-0290 to 0292 ROM for the CNC system
3 SRAM module A20B-2900-0530 RAM for PMC-RA1/RA2 debug
4 SRAM module A20B-2900-0530,-0531 RAM for parameters and tape memory
A20B-2900-0540,-0541
5 PMC control module A20B-2900-0142 (PMC-RA1) PMC operation control
A20B-2900-0920 (PMC-RA2)
6 Main CPU module A20B-2900-0930 FS18 Main processor
7 System control module A20B-2900-0900 to 0902 Clear, battery backup, spindle control, servo/graphics
software flash ROM
8 I/O interface module A20B-2900-0110 MDI, MPG, RS-232-C
9 Graphics control module A20B-2900-0310 Graphics display control
10 Graphics CPU module A20B-2900-0590 Graphics control CPU
11 CRT control module A20B-2900-0154 to 0156 CRT display control
12 Servo control module A20B-2900-0160 Digital servo control for axes 3 and 4
13 Servo control module A20B-2900-0160 Digital servo control for axes 1 and 2
14 Servo interface module A20B-2900-0380 Amplifier, pulse coder, and interface for axes 3 and 4
15 Servo interface module A20B-2900-0380 Amplifier, pulse coder, and interface for axes 1 and 2

394
2. COMPONENT UNITS AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) CONNECTIONS

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.

Note
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 built-in programmer for PMC-RA1, PMC-RA2, RA3,
PMC-RB, PMC-RB2, or RB3 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 PMC-RA1, -RA2, -RB,
-RB2, -RB3, -RC, or -RC3, the storage of sequence programs in the
floppy, and the output of a sequence program into printer can be done.

395
2. COMPONENT UNITS AND
CONNECTIONS III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

2.2 (1) Connecting the debugging RAM module


CONNECTING a) PMC-RB, -RB2 and RB3 : Connect the module to portion 3
shown in Fig. 2.1 (a).
COMPONENT UNITS
b) PMC-RC and PMC-RC3 : Connect the module to portion 1
shown in Fig. 2.1 (b).
c) PMC-RA1, -RA2 and -RA3 : Connect the module to portion 3
shown in Fig. 2.1 (c).
(2) Connecting the editing module for PMC-RA1, -RA2, -RA3, -RB,
-RB2 and -RB3 Connect the module to portion 3 shown in Fig. 2.1
(a).
(3) Connecting ROM
a) PMC-RB, -RB2 and -RB3 : Connect EPROM to portion 13
shown in Fig. 2.1 (a).
b) PMC-RC and PMC-RC3 : Connect the ROM module to
portion 1 shown in Fig. 2.1 (b).
c) PMC-RA1, -RA2 and -RA3 : Connect EPROM to portion 16
shown in Fig. 2.1 (c).
 : Enabled
∆ : Enabled depending on the option
 : Disabled
RA1 RA2 RA3 RB RB2 RB3 RC RC3
RAM module        
Editing module        
EPROM        
ROM module     ∆ ∆  

Notes
1 When 24,000 optional PMC-RB2 and PMC-RB3 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 PMC-RA1, -RA2, -RA3, -RB,
-RB2 and -RB3.
3 Either a RAM module or ROM module can be connected to
each board of PMC-RC and PMC-RC3.

(4) Connecting the off–line programmer


Connect the off–line programmer to the reader/punch interface on the
CNC. There are several connectors for the reader/punch interface on
the CNC. The connector to be used is specified during I/O processing
for the PMC. For details, see Section 7.

396
3. SELECTION OF PROGRAMMER
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) MENUS BY SOFTKEYS

3 SELECTION OF PROGRAMMER MENUS BY SOFTKEYS

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 9-inch CRT/MDI panel.
The 14-inch CRT/MDI panel is different from the 9-inch
CRT/MDI panel about the number of soft keys. Five soft
keys are mounted on the 9-inch CRT/MDI panel, while ten
soft keys are mounted on the 14-inch CRT/MDI panel.

RESET key
HELP key Address/numeric keys

Edit keys

Cancel key

INPUT keys

SHIFT key Cursor control keys


Power on/off buttom Soft keys Function keys
Page keys

397
3. SELECTION OF PROGRAMMER
MENUS BY SOFTKEYS III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

(2) Relation between programmer menus and soft keys


The relation between programmer menus and soft keys are different
according to each function as shown in the following figure. These
menus are selected by pressing related keys. For the menu contents,
see the description given later. Refer to this figure for operation.

PMCLAD PMCDGN PMCPRM

Chapter III.6 Chapter III.5 Chapter III.7 Chapter III.4 NEXT

RUN or STOP EDIT I/O SYSPRM MONIT

RET RET RET RET

TITLE DBGLAD**

LADDER

SYMBOL GDT*

MESAGE USRMEM*

DEBUG*

NEXT

MODULE

CROSS

CLEAR

Notes
1 Mark “*” is valid for PMC-RC/RC3/RC4/NB function.
2 Mark “**” is valid for PMC-RA3/RB3 with Editing module or
PMC-RC/RC3 function.

398
4. SPECIFYING AND DISPLAYING SYSTEM
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PARAMETERS (SYSPRM)

SPECIFYING AND DISPLAYING SYSTEM PARAMETERS

4 (SYSPRM)

Display the system parameter screen by pressing soft key [SYSPRM] on


the basic programmer menu. Move the cursor to necessary system
parameters and specify them according to the menu displayed on the
screen. When this function is selected, if the sequence program is in
operation, the PMC management software automatically stops this
function.
(1) COUNTER DATA Specifies whether the counter value is used in binary or BCD by
TYPE functional instruction CTR.

Notes
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
RC/RC3/RC4/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 150% is specified, the time of 7.5 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)

399
4. SPECIFYING AND DISPLAYING SYSTEM
PARAMETERS (SYSPRM) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

100%
8 msec 150%
8 msec
1st and 2nd level 1st and 2nd level
parts of the ladder parts of the ladder
program program
5 ms 7.5 ms

Others Others
3 ms
0.5
ms

(3) LANGUAGE EXEC Specifies the division ratio of execution for PMC screen display and
RATIO (valid for language program.
PMC-RC/RC3/RC4/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 PMC-RB (IGNORE DIVID CODE = NO) or in the undivided system.
and-RC)
(5) LANGUAGE ORIGIN Specifies the first address of the link control statement data in the
(valid for PMC-RC/ language program.
RC3/RC4/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 PMC-RC/ programs. The setting of the parameter takes effect only after power is
RC3/NB) turned on. When the setting is to be changed, therefore, power must be
turned off.
For details, see the programming guide supplied with PMC–RC/RC3/NB
(B–61863E–1 for C). The default is the size in kilobytes resulting from
conversion of the ladder step option.
(7) FS0 OPERATOR Specifies whether the Series 0 operator’s panel is connected. When YES
PANEL is selected, specify the actual addresses of DI and DO connected to the
operator’s panel, the address of the key image transferred from the
operator’s panel, and the address of the LED image to be transferred to
the operator’s panel.
(a) KEY DI ADDRESS
Specify a PMC address representing the first address of the external
DI actually connected (X0 to X127 or X1000 to X1019).
(b) LED DO ADDRESS
Specify a PMC address representing the first address of the external
DO actually connected (Y0 to Y127 or Y1000 to Y1014).

400
4. SPECIFYING AND DISPLAYING SYSTEM
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PARAMETERS (SYSPRM)

(c) KEY BIT IMAGE ADDRESS


Specify a PMC address representing the first address of the key
image to be referenced by the user program. Usually specify an
arbitrary internal relay area.
(d) LED BIT IMAGE ADDRESS
Specify a PMC address representing the first address of the key
image to be generated by the user program. Usually specify an
arbitrary internal relay area.
(8) STEP SEQUENCE When creating new programs with the built–in editing function, set this
parameter first, then execute CLEAR ALL or perform clear operation
(turn on power while holding down X and O) at power on.
When selecting the step sequence method: STEP SEQUENCE = YES
When selecting the ladder method: STEP SEQUENCE = NO

PMC SYSTEM PARAMETER


COUNTER DATA TYPE = BINARY/BCD

FS0 OPERATOR PANEL = YES/NO

KEY DI ADDRESS = X100

LED DO ADDRESS = Y100

KEY BIT IMAGE ADDRESS = R900

LED BIT IMAGE ADDRESS = R910


>

[BINARY] [ BCD ] [ ] [ ] [ ]

4(a) PMC-RA Series System Parameter Screen

PMC SYSTEM PARAMETER

COUNTER DATA TYPE = BINARY/BCD

IGNORE DIVIDE CODE = NO/YES

>

[BINARY] [ BCD ] [ ] [ ] [ ]

4(b) PMC-RB Series System Parameter Screen (1st Page)

401
4. SPECIFYING AND DISPLAYING SYSTEM
PARAMETERS (SYSPRM) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

PMC SYSTEM PARAMETER MONIT STOP

COUNTER DATA TYPE = BINARY /BCD

LADDER EXEC = 100% (1-150)

LADDER EXEC RATIO = 50% (0-99)

IGNORE DIVIDE CODE = NO/YES

LANGUAGE ORIGIN = 841000H


(LANGUAGE AREA = 840000H,SIZE = 768KB)
MAX LADDER AREA SIZE = 90KB (1-96)

[BINARY] [ BCD ] [ ] [ ] [ ]

4 (c) PMC- RC, RC3 or NB System Parameter Screen (1st page)

PMC SYSTEM PARAMETER (1/2) MONIT STOP

COUNTER DATA TYPE = BINARY/BCD

IGNORE DIVIDE CODE = YES/NO

>

[BINARY] [ BCD ] [ ] [ ] [ ]

4(d) PMC-RB4/RB6/RC4 System Parameter Screen (1st Page)

Press the [NEXT] key to select the following screen for PMC-RB series,
PMC-RC series, and PMC-NB :

PMC SYSTEM PARAMETER

FS0 OPERATOR PANEL = YES/NO

KEY DI ADDRESS = X100

LED DO ADDRESS = Y100

KEY BIT IMAGE ADDRESS = R900

LED BIT IMAGE ADDRESS = R910

>

[ YES ] [ NO ] [ ] [ ] [ ]

4(e) PMC-RB Series, PMC-RC Series, or PMC-NB System Parameter


Screen (2nd Page)

402
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

5 EDITING OF SEQUENCE 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.

RUN EDIT I/O SYSPRM MONIT


(STOP)
RET

TITLE LADDER SYMBOL MESAGE

III.5.1 III.5.2 III.5.4 III.5.5 NEXT

MODULE CROSS CLEAR

III.5.3 III.5.7 III.5.6

PMC EDITION MENU MONIT STOP

SELECT ONE OF FOLLOWING SOFT KEYS

TITLE : TITLE DATA


LADDER : LADDER DIAGRAM
SYMBOL : SYMBOL & COMMENT DATA
MESAGE : MESSAGE DATA
MODULE : I/O MODULE DATA
CLEAR : CLEAR DATA
CROSS : CROSS REFERENCE

[TITLE ] [LADDER] [MESAGE] [ ] [ ]

[MODULE] [ ] [CROSS ] [ ] [CLEAR ]

5. Editing basic menu

403
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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  Machine tool builder name (32 characters)
 Machine tool name (32 characters)
DATA (TITLE)
 NC and PMC types (32 characters)
 Sequence program number (16 characters)
 Version (4 characters)
 Sequence program drawing number (32 characters)
 Date of sequence program creation (16 characters)
 Sequence program programmer (32 characters)
 ROM programmer (32 characters)
 Comment (32 characters)
The title for the 9” CRT consists of three screens. The screens are changed
by pressing <PAGE°> or <PAGE±> .

RUN EDIT I/O SYSPRM MONIT

RETURN

TITLE LADDER SYMBOL MESAGE

RETURN

INSERT DELETE

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) Press the [DELETE] key. Then, the maximum characters assigned
to the title data item are deleted.

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.

404
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

(2) Pressing the [DELETE] key deletes the character at the cursor.

PMC TITLE DATA #1 MONIT RUN

PMC PROGRAM NO. : 1234


EDITION NO. : 12

PMC CONTROL PROGRAM


SERIES : 4061 EDITION : 01

MEMORY USED : 44.0KB


LADDER : 32.0KB
SYMBOL : 10.2KB
MESSAGE : 01.8KB
SCAN TIME : 048 MSEC

[INSERT] [DELETE] [ ] [ ] [ ]

5.1 (a) Title Edit Screen 1

PMC TITLE DATA #2 MONIT RUN

MACHINE TOOL BUILDER NAME :


f · · · · · · · · · · · · · f

MACHINE TOOL NAME :


f · · · · · · · · · · · · · f

CNC & PMC TYPE NAME :


f · · · · · · · · · · · · · f

PROGRAM DRAWING NO. :


f · · · · · · · · · · · · · f

[INSERT] [DELETE] [ ] [ ] [ ]

5.1 (b) Title Edit Screen 2

0 PMC TITLE DATA #3 MONIT RUN


1
2 DATE OF PROGRAMING :
3 f · · · · · · · · · · · · · f
4
5 PROGRAM DESIGNED BY :
f · · · · · · · · · · · · · f
6
7
ROM WRITTEN BY :
8 f · · · · · · · · · · · · · f
9
0 REMARKS :
1 f · · · · · · · · · · · · · f
2
3
4 [INSERT] [DELETE] [ ] [ ] [ ]
5

5.1 (c) Title Edit Screen 3

405
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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
(LADDER) (STOP)
RET

TITLE LADDER SYMBOL MESAGE

RET

yj jy yj jy  j yyj FUNCTN

NEXT

––––– COMAND

NEXT

y(S)yj
III 5.3 y(R)yj III 5.7

RET

INSNET DELNET INSERT ADRESS SEARCH

NEXT

COPY MOVE CHANGE

5.2 Sequence program generation softkeys

Note
“y(S)yj”and “y(R)yj” are valid for PMC-PA3, -RA3, -RB3,
-RB4, -RC3,-RC4, and -NB.

Each of EDIT · LADDER software functional instruction keys can be


selected by the [COMAND] key. Type in one of the following character
strings and press software key [COMAND]. The character string within
parentheses ”[ ]” can be omitted. ”n” after the character string indicates
that a value can be input. For example, if the [COMMAND] key is pressed
after ”D2” is typed in, the operation can be performed in the same manner
when the <DELNET> key is pressed after ”2” is typed in.
I[NSERT] D[ELNET][n] n:value
A[DRESS] SY[MBOL]
S[EARCH] C[OPY][n]
M[OVE][n]
Generate and search a program by pressing soft keys of the above menu.

406
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

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;

407
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

R0.1 R10.2 R1.7 R20.2

X2.4

The contacts and coils inputtable in one line are as specified below.
9-inch CRT/MDI
10-inch CRT/MDI 7 contact + relay coil
14-inch CRT/MDI
They cannot be input into one line more than specified. If they exceed the specified
range, provide a dummy relay coil halfway.

1 Press soft key [ ] after moving the cursor to the start


position.
Symbol [ ] is input to the cursor position and
HORIZONTAL LINE ILLEGAL is displayed at the lower
right part of the CRT screen. This is a caution message to
show that the ladder diagram horizontal line is not entered
yet. Input address and bit data next.
2 Press <INPUT> key after inputting R0.1 by using address
key and numeric keys. The address is set on the contact, and
cursor shifts rightward.
3 Input A contact with address R10.2 by the above method 1,
2.
(Note) The order of processes 1 and 2 are interchangeable.
4 Input B contact R1.7
Press soft key [ ], input address R1.7, and then, press
<INPUT> key.
The address is set on the B contact and the cursor shifts
rightward.
5 Press soft key [ ]with the cursor kept as it is.
A right horizontal line is automatically drawn, and a relay
coil symbol is entered near the right vertical line.
6 Press <INPUT> key after inputting.
The cursor automatically shifts to the input start position of
the next line.
7 Input the OR condition next,
Press soft key [ ], input address X2.4 and then, press
INPUT key. The address is set on the B contact and the cursor
shifts rightward.
8 Press NEXT key, since the soft key of the right horizontal line
of OR is necessary.
9 Press soft key [ ] to input a horizontal line.
When inputting the horizontal bar key ([ ], [ ]), key
in a numerical value and press this bar key, and then the
horizontal line for the frequency will be drawn. However, this
horizontal line will not be drawn over the LINE.
10 Press soft key [ ], and input necessary upper right vertical
line or OR.

408
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

Notes
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 error–free.
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 When the CNC being used is a Series 15B, 16B or 18B, containing flash EEPROM, the program
is not automatically written into flash EEPROM upon the completion of editing. After editing
the program, write it into flash EEPROM, as described in Section 7.3.3 of Part III. Otherwise,
the results of editing will be lost upon power–off.

(2) In case of functional instruction program input;


For inputting a functional instruction, press [FUNCTN] soft key, and
then, input instruction symbol of the functional Instruction and SUB
number.
A function command can be input by pressing the [FUNCTN] key
after keying the Function Command No. When pressing the
[FUNCTN] key without keying in the Function Command No., the
function command table is displayed. Key in Function Command No.
and press [INPUT] key.
If you don’t keep the instruction symbol and SUB number into mind,
you can display a functional instruction table covering the
correspondence between instruction on symbols and SUB numbers
automatically by inputting a wrong instruction symbol or a wrong
SUB number and then pressing the soft key [FUNCTN] key or by
pressing soft key [FUNCTN] key only without inputting any other
key.
If an aimed functional instruction is not found in the displayed
functional instruction table, press [NEXT] key or [PAGE] key to
brings its subsequent table.
Press [FUNCTN] key when resetting the functional instruction table
to the original ladder diagram.

409
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Functional
instruction table

When a wrong functional


instruction is entered or
[FUNCTN] key only is
pressed;
FUNCTN

[NEXT] key (to display the subsequent


functional instruction table)

Functional instruction generation soft key


(Press this key again when resetting the functional instruction
table to the original ladder diagram)

Note
If the system is left undone without inputting any data after
pressing soft key [FUNCTN], the other soft keys are not
employ-able. In such a case, press [FUNCTN] key again.

DECB    




SUB 25 Format Code Specifi- Output


specifi- data cation data
cation address number address

Input functional instruction parameters in the vertical direction


as shown in the following figure when inputting functional
instructions from CRT/MDI panel.

DECB
SUB 25  CRT/MDI
ACT Format specification

 Code data address



 Specification number
 Output data address

1 Input a control condition.


Press soft key [ ], input the address and bit data, and
then, press <INPUT> key. The cursor shifts rightward.
2 Input an instruction.
Press soft key [FUNCTN], input SUB number 25, and then,
press <INPUT> key. A functional instruction diagram
appears as shown in the above figure.
3 Input an instruction parameter.

410
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

Input the first parameter, format specification, and then, press


<INPUT> key. The cursor automatically lowers downward. Input
three residual parameters in order.

5.2.2 The method of altering a generated sequence program is the same as


Alteration of sequence described in 5.2.1. Move the cursor to the program part to be altered and
input change data.
programs

5.2.3
Insert of sequence
program
yj jy yj jy  j yyj FUNCTN

INSNET DELNET ADRESS SEARCH

RETURN

INSNET INSLIN INSELM

A sequence program is inserted in four ways on the ladder diagram as


described below.
(1) To insert a relay contacts in the horizontal direction.

Simple horizontal insert

Insert

Move the cursor to the position where a sequence program is to be


inserted, and input the program by the method specified in 5.2.1.

When a vertical line is to be deleted


for the insert operation ;

Insert

ÅÅÅ
ÅÅÅ
Cursor

1 Set the cursor to the above position.

411
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

2 Press soft key [ ] for erasing the upper left vertical line. The
upper left vertical line to the cursor disappears.
3 Press soft key [ ] to produce a upper right vertical line to
the cursor, then, press soft key [ ]. Both verti-cal line and
horizontal line are pro-duced.
4 Shift the cursor to a line of contact insert position.
5 Press soft key [ ] to add contacts.
(2) For inserting vertical line;

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.)

412
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

Cursor

If the [INSLIN] key is pressed when the cursor is in the


position specified as shown in the above figure on the left, the
line is inserted as shown in the above figure on the right.
(4) Inserting the 1 NET sequence program elements
Elements can be inserted one by one.
1 Type in the number of elements to be inserted and press the
[INSELM] key. The elements corresponding to the input
number are inserted. If the number of elements prefixed by
character ”A” is typed in and the [INSELM] key is pressed,
the elements are inserted after the cursor.
(If the number of elements to be inserted is not typed in but
the [INSELM] key is pressed, one element is inserted.)

Cursor

When the [INSELM] key is pressed when the cursor is


positioned as shown in the above figure on the left, the
element is inserted as shown in the above figure on the right.

Cursor

If ”A” is typed in when the cursor is positioned as shown in


the above figure on the left and the [INSELEM] key is
pressed, the element is inserted as shown in the above figure
on the right.

413
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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

INSNET DELNET ADRESS SEARCH

RETURN

EXEC CANCEL SEARCH C-DOWN C-UP

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, [C-DOWN]
key, or [SEACH] key to blink the NETs to be deleted. Type
in a value and press the [C-DOWN] 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.

414
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

X 2.0 R20.1 Y 1.2 R6.4

R0.5 For searching the same address as specified


here, set the cursor to this position, and press
soft key [SRCH].
R20.1
R0.5 X 4.2

R21.0 Y 2.0

R20.1 R2.2

R0.4
The same address is searched, and the cursor shifts
to this position.
R0.5 R10.5

5.2.5 Search a sequence program by using the following soft keys. For the
Search of sequence following soft keys, see Fig. 5.2.
program
yj jy yj jy  j yyj FUNCTN

INSNET DELNET ADRESS SEARCH

RETURN

TOP BOTTOM SRCH W-SRCH N-SRCH

NEXT

F-SRCH C-DOWN C-UP

(1) Soft key [TOP]


When this key is pressed, the start of the sequence program is
displayed on the screen and the cursor shifts to this start position.
(2) Soft key [BOTTOM]
When this key is pressed, the last of the sequence program is
displayed on the screen, and the cursor shifts to this position.
(3) Soft key [SRCH]
This key is used to search a specified address. It searches the specified
address from the program of the cursor part to the last program of this
screen, and displays the address on the screen.

415
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

a) Method of specifying the address by the cursor


Set the cursor to the relay contact part of the address to be
searched and press soft key [SRCH].
The system searches the same address as the address specified by
the cursor from the cursor program on the presently displayed
screen to the end of the program (SUB 48).
When the same address is found, the program part is displayed
on the screen, and the cursor shifts to the address part. If the same
address is not found as a result of this search, an error is displayed.
b) Method of specifying the address by inputting it
Input an address to be searched by using address and numeric
keys and press soft key [SRCH]. The same address as specified
is searched from the program of the cursor part on the presently
displayed screen to the last of the program (SUB 48).
When the same address is found, the program part is displayed
on the screen, and the cursor shifts to the address part.
If the same address is not found as a result of this search, an error
is displayed.
(4) Soft key [W-SRCH]
This key specified an address of the relay coil to be searched, and
searches the relay coil of the specified address from the program at
the cursor part to the end of the program (SUB 48) on this screen.
Then, it displays the relay coil on the screen.
Two methods are available to specify the address of the relay coil to
be searched.
a) Method of specifying the address by cursor
Set the cursor to the relay contact of the relay coil to be searched,
and press soft key [W-SRCH].
The corresponding relay coil is searched from the program of the
cursor part to the end of the program (SUB 48).
When the relay coil is found, the program part is displayed on the
screen, and the cursor shifts to the relay coil.
If no corresponding relay coil is found as a result of search, an
error occurs.
b) Method of specifying the address by inputting it
Input the address of the relay coil to be searched by both address
and numeric keys, and then, press soft key [W-SRCH].
The specified address relay coil is searched from the program of
the cursor part on the presently displayed screen to the end of
program (SUB 48).
When the specified address relay coil is found, the program part
is displayed on the screen, and the cursor shifts to the relay coil.
If no relay coil is found as a result of search, an error is displayed.
(5) Soft key [N-SRCH]
Display the ladder with the specified NET number from the top of the
screen.
If the number is not typed in but the [N-SRCH] key is pressed, the
display is scrolled down by one NET.

416
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

(6) Soft key [F-SRCH]


Type in the functional instruction number and press the [F-SRCH]
key to start searching the functional instruction. When the [F-SRCH]
key is pressed during execution of a functional instruction, the
functional instruction with the same number as this instruction is
searched.
(7) Searching with cursor keys (<²>, <³>, <°>, <±>)
 Type in the address or symbol and press the cursor key to start
searching the address. When the ”³” key is pressed, the operation
is performed in the same manner when the [SRCH] key is pressed.
 Type in NET NO. and press the cursor key to start searching the NET
NO.
 Type in the functional instruction name or functional instruction
number with ”S” and press the cursor key to start searching the
functional instruction.
Example) Type in ”END1” or ”S1” and press the cursor key to
search functional instruction END1.

5.2.6 The sequence program with multiple NETs can be copied in NETs.
Copying the sequence Specify the NET to be copied and the copy position with the cursor. The
number of copies can be also specified.
program

yj jy yj jy Ę j yĘyj FUNCTN

COPY MOVE

RETURN

UNTIL CANCEL SEARCH C-DOWN C-UP

TO CANCEL SEARCH C-DOWN C-UP

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, [C-UP] key,
[C-DOWN] key, or [SEARCH] key to blink the NETs to be copied.
Type in a value and press [C-UP] or [C-DOWN] 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.

417
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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.
Moving the sequence Specify the NET to be moved and the move position with the cursor. The
number of times of moving NETs can be also specified.
program

yj jy yj jy  j yyj FUNCTN

COPY MOVE

RETURN

UNTIL CANCEL SEARCH C-DOWN C-UP

TO CANCEL SEARCH C-DOWN C-UP

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, [C-UP] key,
[C-DOWN] key, or [SEARCH] key to blink the NETs to be moved.
Type in a value and press [C-UP] or [C-DOWN] 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.

418
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

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

O-ADR CANCEL

N-ADR CANCEL

EXEC CANCEL SEARCH C- DOWN C-UP

(1) Changing the address while checking it one by one


a) Press the [CHANGE] key.

419
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

b) Input the original address and press the [O-ADR] key.


c) Input the new address and press the [N-ADR] key.
d) Press the [EXEC] key for executing the change. After
completion, the cursor will shift downward to the nearest address
to be changed.
If the [EXEC] key is pressed again at the point, the address
change can be continued.
(2) Changing the address within the specified range
a) Press the [CHANGE] key, and move the cursor to the address to
be changed.
b) Input the original address and press the [O-ADR] key.
c) Input the new address and press the [N-ADR] key.
d) The specified range will be brightened by using the [C-DOWN]
or [C-UP] key.
All the addresses within the specified range can be changed.
e) Press the [EXEC] key for executing the change.
(3) Address designation by a wild card
The address to be changed can be designated by using the “*” code
as a wild card.
(Example) “X*.0” means X0000.0, X0001.0, . . . . , X9999.0.
“X0000.*” means X0000.0, . . . . , X0000.7.
“X*” means X0000, X0001, . . . . , X9999.
The wild card can be used for both of the original address (O-ADR)
and new adress (N-ADR).
The following are examples by wild card.
a) “X0.*” to “D100.*”
X0000.0 ³ D0100.0
X0000.1 ³ D0100.1
:
X0000.7 ³ D0100.7

b) “X*.0” to “X*.7”
X0000.0 ³ X0000.7
X0001.0 ³ X0001.7
:
X9999.0 ³ X9999.7
[Limit items]
 The address of data part in Functional instruction “DISP”
cannot be changed.
 If the original address (O-ADR) and new address (N-ADR) are
different in address name and the byte part of new address
(N-ADR) is specified by a wild card, the change can not be
done.
Example) D1234.0 ³ X*.7, D* ³ X*

420
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

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

TITLE LADDER SYMBOL MESAGE

NEXT

CLEAR MODULE

RETURN

INPUT SEARCH DELETE

NEXT

IOSTRT

5.3 Address setting for I/O unit

(1) Address setting for each module


1 Press the soft key [MODULE].
The following module address setting screen is displayed.
2 Move the cursor to the address to be set, and input data in the
order of GROUP, BASE, SLOT, and NAME and press
INPUT key. Input a dot (.) as a delimiter of each data.
Example) When setting the AID16A module with group = 0,
base = 0, and slot = 5
0. 0. 5. ID16A
Table 3.2.2 in Section I-3.2 lists the necessary names for the
NAME column.
3 Set all data of the module employed to aimed addresses by
using the cursor key and page key.

421
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

PMC I/O MODULE

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

Note
I/O module data items are made valid in the power-on
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.

(2) Delete of address


A preset address of each module can be deleted as follows:
1 Move the cursor to the address to be deleted, and press soft
key [DELET] (see Fig. 5.3).
2 The preset address data are deleted.
(3) Soft key [SEARCH]
Searches the type-in address.
1 Type in the address to be searched and press the [SEARCH]
key.
2 The typed-in address starts being displayed from the top of
the screen.
(4) Validate the assignment data.
I/O module data is validated when the power is turned on. If I/O
module data is changed without changing the configuration of the I/O
devices, the new I/O module data is validated when the IOSTRT key
is pressed.
The conditions where the IOSTRT key is displayed depend on the
version of the programmer function.

422
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

(5) Error and warning messages issued during the editing of assignment
data
No. Error or warning message Description
1 ERR : GROUP NO. (0-15) The group number must be from 0 to 15.
2 ERR : BASE NO. (0-3) 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 Unit-B. It is forcibly set to 0.
4 ERR : SLOT NO. (1-10) The slot number must be from 1 to 10 for the I/O Unit-A.
5 ERR : SLOT NO. (0, 1-30) The slot number must be from 0 to 30 for the I/O Unit-B.
6 ERR : SLOT NO. MUST BE 0 The slot number must be 0 to set the power-on/off information for the I/O Unit-B.
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 Unit-A and I/O Unit-B are assigned in the same group. I/O Unit-A and I/O Unit-B
cannot exist in the same group.

423
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

5.4 A signal name (within 6 alphanumeric characters) can be attached to I/O


signals and internal relays employed in sequence programs.
SYMBOL DATA
SETTING (SYMBOL) Also, a comment (within 30 alphanumeric characters) can be attached to
the relay coils in addition to the symbol name.
Symbol data and comment are displayed together with a ladder diagram
on the CRT/MDI screen as follows.

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

R120.1 TIND D20.7 R52.1

APC

If symbol data and comment are defined in signal addresses of the


program, the signal name and comment are displayed as Shown in the
above figure.
If neither symbol data nor comment is defined at an address, the address
is displayed as it is.
A maximum of 64 KBytes can be used for the ladder, symbol, comment,
and data. After the program is initialized, the capacity of the symbol area
and that of the comment area are usually 32KB (28KB for PMC–NB)
each. When additional data is entered causing the total amount of data in
either area to exceed 32KB (28KB for PMC–NB), the area is
automatically extended in 1KB units.

STOP EDIT I/O SYSPRM MONIT

RETURN

TITLE LADDER SYMBOL MESAGE

RETURN

INPMOD DELETE SEARCH COPY

5.4(a) Setting and display of symbol data

424
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

When soft key [SYMBOL] is pressed, the following screen is displayed,


and the soft key operation is done hereafter.

SYMBOL & COMMENT 001


ADDRESS SYMBOL COMMENT
*---------* *------*-------*--------------*

5.4(b) Symbol data screen

5.4.1 Refer to Fig. 5.4 (a) and Fig. 5.4 (b). Input symbol data and comment on
Symbol data and the screen shown in Fig. 5.4 (b).
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
Delete of symbol data Fig. 5.4 (b), and press soft key [DELETE].
and comment

425
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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)

”INSERT” is displayed on the screen in the insertion mode. ”ALTER”


is displayed on the screen in the replacement mode.
 When the <INPUT> key is pressed
(1) In the character string edit status
Insertion mode : The entered character is inserted at the cursor.
If the [INPUT] key is pressed after no
character is entered, one space is inserted.
Replacement mode : The character at the cursor is replaced with
the entered character. If the [INPUT] key
is pressed after no character is entered, the
character at the cursor is replaced with one
space.
(2) When the length of the cursor is the same as the number of
characters that can be entered.
The original character string are replaced with the entered
characters.
 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 length of the cursor is the same as the number of
characters that can be entered
The character string at the cursor is deleted.

Note
The cursor having the size equivalent to the total size of the
maximum number of characters that can be entered is
displayed in the address section.

5.4.5 An address, symbol, and comment can be entered at one time.


Function for editing (1) Editing the symbol and comment assigned to address not defined
symbol data and Enter an address, enter the symbol and comment enclosed in
comment data at one characters other than alphanumeric characters, then press the
<INPUT> key.
time
The cursor may be located anywhere. A comment can be omitted.
Example) G0.4 / *EMG / EMERGENCYSW/ <INPUT> key
Address Symbol Comment

426
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

(2) Editing the symbol and comment assigned to address already defined
Move the cursor to the desired line of the address whose symbol and
comment are to be edited.
Next, enter the symbol and comment enclosed in characters other than
alphanumeric characters.
Then, press the <INPUT> key. A comment can be omitted.

5.4.6 Copy the specified data to re-edit and register it.


Function of copying
symbol and comment
INPMOD DELETE SEARCH COPY
data
RETURN

SYMBOL ALL CANCEL

UNTILL CANCEL

EXEC INPMOD DELETE CANCEL

(1) Press the [COPY] soft key.


(2) Select data to be copied with the corresponding soft key.
[ALL] : The address, symbol data, and comment data are copied.
[SYMBOL] : The address and symbol data are copied.
When either of the above soft keys is pressed, the line at the cursor
is specified as the beginning of the range of the data to be copied.
(3) Specify the range with the [±] and [°] cursor keys.
 A range of more than 15 lines cannot be specified. Up to 15 lines can
be displayed on one screen.
 A range cannot be specified at a position above the cursor position.
When the copy range of the data is specified, the data is displayed
differently.
(4) Press the [UNTIL] soft key to determine the copy range.
(5) Edit the address and symbol data according to the procedure
described in Sections 5.4.1 and 5.4.4.
(6) When updating the data is completed, press the [EXEC] soft key to
register the copied data.

427
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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

TITLE LADDER SYMBOL MESAGE

RET

INPMOD DELETE SRCH COPY DSPMOD

NEXT

ETC D.CHAR

5.5(a)

When soft key MESAGE is pressed, the next screen is displayed, and
setting operation can be done hereafter.

MESSAGE 001
NO. MESSAGE
A 00.0
A 00.1

A 01.1

5.5(b) Message data screen

After initialization, the capacity of the message area is approx. 2.1KB.


When additional data is entered causing the total amount of data in the
area to exceed 2.1KB, the message area is automatically extended in 1KB
units to a maximum of 64KB.

428
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

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

Maximum char- Insertion input Replacement input


acter input (32 (INSERT) (ALTER)
characters)

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.
 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.
 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

429
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

The entire message data specified at the address is deleted.

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
Copying message data [COPY] key.
(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 multi-byte character by pressing the [D.CHAR]
Inputting a multi-byte 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.
Multi-byte character : “@0248733E6F44643B5F01@100”
³“ ” is displayed.

430
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

5.6
CLEARING THE
SEQUENCE
RUN EDIT I/O SYSPRM
PROGRAM AND (STOP)

CONDENSATION OF RET

THE SEQUENCE
TITLE LADDER SYMBOL MESAGE
PROGRAM
RET NEXT

MODULE CROSS CLEAR

CLRTTL CLRLAD CLRSYM CLRMSG

NEXT

CLRALL CLRMDL CONDNS CLRPRM CLREXT

CLRTMR CLRCNT CLRKPR CLRDT

NEXT

CLRALL

5.6.1 Clears each data in the sequence program


Clearing the Sequence The function of the key is as follows:
Program (1) [CLRTTL] : Clears the title data.
(2) [CLRLAD] : Clears the ladder program.
(3) [CLRSYM] : Clears the symbol and comment data.
If the extend symbol and comment data is cleared,
the field is restored to the original size.
(4) [CLRMSG] : Clears the message data.
If the extend message data is cleared, the field is
restored tothe original size.
(5) [CLRALL] : Clear all data described in the above (1) to (4). Clear
also the C language programs for models which
create C language programs, such as models
PMC-RC, RC3, RC4, NB, and NB2.
Press this soft key when the message “PLEASE
CLEAR ALL” is displayed.
(6) [CLRMDL] : Clears the I/O module data.
(7) [CONDNS] : Compress the sequence program in 1KB units.
The detail will be explained chapter 5.6.2.

431
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Note
When the CNC being used is a Series 15/16/18 MODEL B,
containing flash EEPROM, write the program into flash
EEPROM. Otherwise, the results of clear will be lost after
power–off.

(8) [CLRPRM] : Clears each parameter data.


The detail will be explained chapter 5.6.3.
(9) [CLREXT] : Clears the expand nonvolatile memory (valid for
PMC-RC/RC3/RC4/NB/NB2)

5.6.2 Compresses the sequence program in 1KB units.


Compress the (1) [CONDNS] : Compresses the unused area in the message, symbol,
sequence program or comment area in the sequence program in 1KB
units when the capacity of the unused area extends
1KB. The unused area, which is the size less than
1KB, will not be compressed.

5.6.3 Clears each PMC parameter.


Clearing the PMC The function of the key is as follows:
Parameter (1) [CLRTMR] : Clears timer data.
(2) [CLRCNT] : Clears counter data.
(3) [CLRKPR] : Clears keep relay data.
(4) [CLRDT] : Clears data table.
(5) [CLRALL] : Clear all data described in the above (1) to (4).

Note
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”

432
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

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
Operation parameters.
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.

RUN EDIT I/O SYSPRM MONIT


(STOP)
RET

TITLE LADDER SYMBOL MESAGE

NEXT

MODULE CROSS CLEAR

RET

CRSREF INPUT INIT

CRSPRM

433
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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 (b).

PMC CROSS REFERENCE


SELECT CROSS TYPE = 1
( 1:ADDRESS 2:ADRS KIND 3:FUNCTION.NO )
1:REFERENCE ADDRESS
1 = X0000.0 5 =
2 = 6 =
3 = 7 =
4 = 8 =
2:ADRS KIND =
( G /F /Y /X /A /R /K /C /D /P /L )
3:FUNCTION.NO = ( ALL=0 )

[CRSREF] [INPUT ] [ ] [ INIT ] [ ]

5.7 (a) Cross Reference Setting (TYPE1)

PMC CROSS REFERENCE

X0000.0 ABCDE
: 1 2
( ) : 4 32

[CRSPRM] [ ] [ ] [ ] [ ]

5.7 (b) Cross Reference Display (TYPE1)

434
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

Display the reference of 1. In “SELECT CROSS TYPE”, input ”2”.


each address name 2. In “2: ADRS KIND”, input the address name.
3. Press [CRSREF] key.
The bit/byte addresses and the related symbol in the sequence
program will be displayed as shown in Fig.5.7 (d).

PMC CROSS REFERENCE


SELECT CROSS TYPE = 2
( 1:ADDRESS 2:ADRS KIND 3:FUNCTION.NO )
1:REFERENCE ADDRESS
1 = X0000.0 5 =
2 = 6 =
3 = 7 =
4 = 8 =
2:ADRS KIND = X
( G /F /Y /X /A /R /K /C /D /P /L )
3:FUNCTION.NO = ( ALL=0 )

[CRSREF] [INPUT ] [ ] [ INIT ] [ ]

5.7 (c) Cross Reference Setting (TYPE2)

PMC CROSS REFERENCE

HEAD CHARACTER = X

USED ADDRESS = X0000.0


SYMBOL NAME = ABCDE

X0000
SYMBOL NOTHING

[CRSPRM] [ ] [ ] [ ] [ ]

5.7 (d) Cross Reference Display (TYPE2)

435
5. EDITING OF SEQUENCE
PROGRAM (EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Display a functional 1. In “SELECT CROSS TYPE”, input “3”.


instruction list in use 2. In “3: FUNCTION. NO”, input “0”.
3. Press [CRSREF] key.
The functional instruction name and the functional instruction
number in the sequence program will be displayed as shown in
Fig.5.7 (f).

PMC CROSS REFERENCE


SELECT CROSS TYPE = 3
( 1:ADDRESS 2:ADRS KIND 3:FUNCTION.NO )
1:REFERENCE ADDRESS
1 = X0000.0 5 =
2 = 6 =
3 = 7 =
4 = 8 =
2:ADRS KIND =
( G /F /Y /X /A /R /K /C /D /P /L )
3:FUNCTION.NO = ( ALL=0 )

[CRSREF] [INPUT ] [ ] [ INIT ] [ ]

5.7 (e) Cross Reference Setting (TYPE3)

PMC CROSS REFERENCE

FUNCTION NAME END1( 1) END2( 2)


COD( 7)

[CRSPRM] [ ] [ ] [ ] [ ]

5.7 (f) Cross Reference Display (TYPE3)

436
5. EDITING OF SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM (EDIT)

Display the reference of 1. In “SELECT CROSS TYPE”, input “3”.


functional instruction 2. In “3: FUNCTION. NO”, input the functional instruction number.
(FUNCTION. NO =
number of the functional 3. Press [CRSREF] key.
instruction) The functional instruction name, functional instruction number and
NET number in the sequence program will be displayed as shown in
Fig.5.7 (g).

PMC CROSS REFERENCE

FUNCTION NO. = 7
FUNCTION NAME = COD
USED NET NO. = 6 14

[CRSPRM] [ ] [ ] [ ] [ ]

5.7 (g) Displaying of Cross Reference (TYPE3)

437
6. EXECUTION OF A SEQUENCE
PROGRAM III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

6 EXECUTION OF A SEQUENCE PROGRAM

438
6. EXECUTION OF A SEQUENCE
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PROGRAM

6.1 Start and Stop of a sequence program are described as follows.


START AND STOP OF
A SEQUENCE PMCLAD PMCDCN PMCPPM
PROGRAM
RETURN

RUN EDIT I/O SYSPRM MONIT


or STOP

6 The sequence program execution software key

An operable sequence program is usually automatically started when


power is turned on if the program is stored in ROM. However, the
program is not started if it is stored in RAM.
(1) Start of a sequence program (RUN)
When a sequence program is at the stopped state, pressing the [RUN]
key causes the sequence program to run displaying the software key
as [STOP].
The ladder program starts from the beginning. However, whether
C-language programs start from the beginning depends on the
function selected in advance.
a) When a C-language program starts from the beginning
Functions selected in advance: Ladder editing, reading the
system parameter, reading a sequence program using
input/output processing
b) When a C-language program does not start from the beginning
but restarts from the next step after stopping
Function selected in advance: Functions other than the function
in item (a)

Note
Both ladder and C-language programs start from the
beginning immediately after the power is turned on.

(2) Stop of a sequence program (STOP)


When a sequence program is at the run state, pressing the [STOP] key
causes the sequence program to stop displaying the software key as
[RUN].

439
6. EXECUTION OF A SEQUENCE
PROGRAM III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

6.2 The sequence program can be automatically started immediately after


power–on, when bit 2 of keep relay K17 (PMC parameter) is set to 1.
STARTING THE
SEQUENCE Note
PROGRAM For the Series 16/18 MODEL B, automatic start is specified
when bit 2 of K17 is set to 0.

6.3 To forcibly stop starting the sequence program in ROM or RAM, at


power-on, turn on the power by pressing the [Z] key while pressing the
FORCIBLY [CAN] key. (Except for PMC–NB)
STOPPING THE
This method is effective for locating the error when a system error occurs
SEQUENCE after power is turned on and when the error may be caused by the sequence
PROGRAM program.
Never perform this operation in a normal state.

440
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

WRITING, READING, AND VERIFYING THE SEQUENCE

7 PROGRAM AND PMC PARAMETER DATA

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.

RUN EDIT I/O SYSPRM

RETURN

EXEC CANCEL (NO.)

441
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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.

RUN EDIT I/O SYSPRM

RETURN

EXEC CANCEL (NO.)

NEXT

SPEED

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = HOST

DATA KIND =
(ALL:LADDER + LANGUAGE)
FUNCTION =

>
ALM
[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [F-ROM ]

[Case of FS16/18]

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = HOST

DATA KIND =

FUNCTION =

>

[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [ROMWRT]

[ ] [OTHERS] [SPEED ] [ ] [ COPY ]

442
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

Note
The sequence program can be output while the ladder is
being executed and 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. (PMC data cannot be input or output while the
ladder is being executed.)

443
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.2 (1) CHANNEL


SET ITEMS Specify which connector the reader/punch interface (such as
RS-232C) is connected to. CHANNEL must be set when HOST,
FDCAS, or OTHERS is selected for DEVICE.
(2) DEVICE
Select the device with which the PMC inputs or outputs data, using
soft keys.
Soft key Description
HOST Transfers data with a FAPT LADDER (P-G, P-G Mate, or personal
computer).
(See Subsection 7.3.1 for details.)
FDCAS Transfers data with a FANUC FD cassette.
(See Subsection 7.3.2 for details.)
F-ROM Transfers data with flash EEPROM. This is where the sequence program is
stored.
(See Subsection 7.3.3 for details.)
M-CARD Transfers data with a memory card.
(See Subsection 7.3.4 or details.)
OTHERS Transfers data with other input/output devices.
(See Subsection 7.3.5 for details.)
SPEED Used to set transfer conditions when RS-232C is used.
(See Subsection 7.3.6 for details.)
ROMWRT Transfers data with a ROM WRITER.
(See Subsection 7.3.6 for details)

Note
Some functions cannot be used with some PMC models.
See Section 7.3.

(3) DATA KIND


Select the type of output data using soft keys. DATA KIND must be
set when FDCAS, M-CARD, or OTHERS is selected for DEVICE.
DATA KIND CONTENTS
ALL Output the data of sequence program and C program
LADDER Output the data of sequence program
(Ladder, Symbol, Comment, Message, etc.)
PARAM Output PMC Parameters
(Note) (TIMER, COUNTER, KEEP RELAY, DATA TABLE, etc.)

Notes
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.

444
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

(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 M-CARD.
LIST Lists the files in FDCAS or M-CARD.
BLANK Performs blank check for F-ROM.
ERASE Clears the data in F-ROM.
FORMAT Initializes M-CARD (clears all data).

(5) FILE NO.


FILE NO. is displayed when FDCAS or M-CARD is selected for
DEVICE. Specify the file number or file name for WRITE, READ,
COMPARE, or DELETE processing. Note the following restrictions
on the file name when FDCAS or M-CARD is selected for DEVICE:
FDCAS (FANUC FD M-CARD (MEMORY
CASSETTE) CARD)
Number of characters Up to 17 characters following @ Up to 8 characters following @
in the file name or #. The file is written after the or #(*1).
existing files.
When the same name An error occurs. Delete the The new file is written over the
as an existing file is existing file and reoutput the existing file (the contents of the
specified new file. existing file are lost).
When -1 is specified The file is written after the The system names the file and
for the file name existing files. writes it(*2).
When 0 is specified for The file is written and all the The system names the file and
the file name existing files are deleted. writes it(*2).

Notes
1 Name the file in the MS-DOS 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:
DATA KIND File name The model name is
ALL model-name.ALL PMC-NB for the
LADDER model-name.LAD PMC-NB and PMC-RA
PARAM model-name.PRM
for the PMC-RA1 or
PMC-RA3.

445
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.3
OPERATIONS

7.3.1
Transfer to and from a (a) Setting the channel
FAPT LADDER Move the cursor to ”CHANNEL = .” Check that an RS-232C cable
is connected to the main board. Enter the number (1 or 2)
corresponding to the connector. The correspondence between the
connector and CHANNEL is as follows:
CHANNEL = 1 : JD5A (main board)
CHANNEL = 2 : JD5B (main board)
(b) Setting the transfer conditions
Press the [SPEED] soft key and set each condition. See Subsection
7.3.6 for details.
(c) Writing, reading, or collating the sequence program
Item Operation
DEVICE Press the [HOST] soft key.
Press the [EXEC] soft key and to make the NC ready for operation.

Select necessary items on a FAPT LADDER and start transfer.

Note
WRITE, READ, or COMPARE is automatically switched by
operation on a FAPT LADDER.

7.3.2 Reads or writes the sequence program, Pascal or C programs, or PMC


Transfer to and from a data.
FANUC FD cassette PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = FDCAS

DATA KIND = ALL


(ALL:LADDER + LANGUAGE)
FUNCTION = WRITE

FILE NO. = -1
(-1:ADD,0:INIT,OR @ NAME)
>
ALM
[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [F-ROM ]

(a) Setting the channel


Enter the number of the channel used at ”CHANNEL = .” See (a) in
Subsection 7.3.1 for details.

446
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

(b) Setting the transfer conditions


Press the [SPEED] soft key and set each condition. See Subsection
7.3.6 for details.
(c) Writing a file
Item Operation
DEVICE Press the [FDCAS] soft key.
FUNCTION Press the [WRITE] soft key.
DATA KIND Select the type of data to be output (see (3) in Section 7.2).
FILE NO. Name the file within 17 characters. -1 is displayed if no name is entered
(see (5) in Section 7.2).

Press the [EXEC] soft key to start outputting the file.


(d) Reading a file
Item Operation
DEVICE Press the [FDCAS] soft key.
FUNCTION Press the [READ] soft key.
FILE NO. Enter the number or name of the file to be input.

Press the [EXEC] soft key to start inputting the file.


(e) Collating a file
Item Operation
DEVICE Press the [FDCAS] soft key.
FUNCTION Press the [COMPAR] soft key.
FILE NO. Enter the number or name of the file to be collated.

Press the [EXEC] soft key to start collating the file.

Note
PMC data cannot be collated. The data the file is to be
collated with depends on the file.

(f) Deleting a file


Item Operation
DEVICE Press the [FDCAS] soft key.
FUNCTION Press the [DELETE] soft key.
FILE NO. Enter the number or name of the file to be deleted.

Press the [EXEC] soft key to start deleting the file.


(g) Listing the files
Item Operation
DEVICE Press the [FDCAS] soft key.
FUNCTION Press the [LIST] soft key.

Press the [EXEC] soft key to start listing the files.

447
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.3.3
Storage to flash  : Supported
 : Not supported
EEPROM
Power Power Mate-H FS21/ FS16–B
FS18 FS16–A FS15B
Mate-D/F/G FS20 210MB FS18–B
      

Formerly, a RAM module or ROM module was necessary for storing


programs. Using flash EEPROM, however, programs can be ROM-stored
on the PMC board.

Notes
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 EEPROM.
3 Even if the sequence program is cleared with the X and O
keys at power-on, the contents of F-ROM are not cleared.
Therefore, when the power is turned on again, the
sequence program in F-ROM is read. To clear the contents
of F-ROM, write F-ROM after clearing the sequence
program with X and O.

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = F-ROM

DATA KIND =
(ALL:LADDER + LANGUAGE)
FUNCTION = WRITE

RAM SIZE = A ( MAX SIZE = B )


PROGRAM ALREADY EXISTS (EXEC?)
>
ALM
[ EXEC ] [CANCEL] [ HOST ] [FDCAS ] [F-ROM ]

(a) Writing data to F-ROM


Item Operation
DEVICE Press the [F-ROM] soft key.
FUNCTION Press the [WRITE] soft key.

Press the [EXEC] soft key to start outputting data.

448
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

Notes
Operation in PMC–NB
1 If data is stored in F-ROM, a message is displayed to
confirm writing.
2 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

(b) Reading data from F-ROM


Item Operation
DEVICE Press the [F-ROM] soft key.
FUNCTION Press the [READ] soft key.

Press the [EXEC] soft key to start inputting data.


(c) Comparing data in F-ROM
Item Operation
DEVICE Press the [F-ROM] soft key.
FUNCTION Press the [COMPAR] soft key.

Press the [EXEC] soft key to start comparing data.


(d) Checking if data is stored in F-ROM
Item Operation
DEVICE Press the [F-ROM] soft key.
FUNCTION Press the [BLANK] soft key.

Press the [EXEC] soft key to check if data is stored in F-ROM.

Note
Operation in PMC–NB
When data is stored in F-ROM : BLANK ERROR is
displayed.
When no data is stored in F-ROM : BLANK COMPLETE is
displayed.

(e) Deleting data in F-ROM


Item Operation
DEVICE Press the [F-ROM] soft key.
FUNCTION Press the [ERASE] soft key.

Press the [EXEC] soft key to start deleting data.

Note
In FS16B/18B, [READ], [COMPAR], [BLANK] and [ERASE]
functions are unavailable.

449
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.3.4
Storage to a memory  : Supported
 : Not supported
card
Power Power Mate-H FS21/ FS16–B
FS18 FS16–A FS15B
Mate-D/F/G FS20 210MB FS18–B
      

Note
This function is not supported on DPL/MDI of Power
Mate–H.

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
(FAPT 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 MS–DOS FAT file
system. The size of memory–card that can be used is up to 32Mbytes.
The case of FS20,FS18B,FS16B PMC
 : Supported
 : Not supported
SRAM Card Flash Memory Card
Read of a file  
Format of a card  
Write of a file  
Delete of a file  
List of a file  

The case of FS15B(PMC–NB)


 : Supported
 : Not supported
Flash Memory Card
SRAM Card Unsupported
Supported Card
Card
Read of a file   
Format of a card   
Write of a file   
Delete of a file   
List of a file   

(1) Flash memory card writing


The following kinds of flash memory card are supported.
S Intel Series 2 Flash Memory Cards (or compatible cards)

450
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

Attribute memory is needed for any card.


Files can be written on the card that is formatted by MS–DOS. But
there are following limitations.
S It is impossible to alter a file that is already written.
S A card that is formatted by Flash File System can not be used.
(Neither Read nor List)
S The data can not be written in the last 128Kbyte of the card. So,
available size of a card is (Card_size – 128Kbyte). Please refer to
the following figure.

Before Writing

File–A

File–B

File–C

Add
File–D

128Kbyte

After writing

File–A

File–B

File–C

File–D

128Kbyte

”CLOSE ERROR” is displayed and File–D cannot be saved.


In the part of the ,the data of File–D is written. But ”read” and
”list” functions are not available for File–D.
After this operation, any file cannot be written to this card.
There are following limitations due to the system that formats the
flash memory card.
(a) When the card formatted and written files by FANUC products
is used by other systems.

451
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Ramu–zou CardPro
Note1) Note2)
Read of a file  
Add of file Not supported function 
List of file  

Notes
1. Ramu–zou 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
Ramu–zou
Note3)
Read of a file  
Add of file  
List of file  

Notes
3. If you use the CardPro to format a flash memory card, type
the following command.
¥UCPFORMAT drive–name: /F:FLASHFAT /NOCIS¥U

(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.

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = M–CARD

DATA KIND = PARAM


(ALL:LADDER + LANGUAGE)
FUNCTION = WRITE

FILE NO. = –1
(–1:ADD, 0:INIT, OR@ NAME)
>
ALM
[M–CARD] [OTHER] [ ] [ ] [ ]

(a) Formatting the memory card


Item Operation
DEVICE Press the [M-CARD] soft key.
FUNCTION Press the [FORMAT] soft key.

Press the [EXEC] soft key to start formatting.

452
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

(b) Writing a file


Item Operation
DEVICE Press the [M–CARD] soft key.
FUNCTION Press the [WRITE] soft key.
DATA KIND Select the type of data to be output.
(See (3) in Section 7.2)
FILE NO. Name the file within 8 characters. –1 is displayed if no name is entered.
(See (5) in Section 7.2)

Press the [EXEC] soft key to start outputting the file.


If the file name is not specified, the system names the file as follows:

DATA KIND File name The model name is PMC-NB for


the PMC-NB and PMC-RA for
ALL model-name.ALL
the PMC-RA1 or RA3.
LADDER model-name.LAD
PARAM model-name.PRM

(c) Reading a file


Item Operation
DEVICE Press the [M–CARD] soft key.
FUNCTION Press the [READ] soft key.
FILE NO. Enter the number or name of the file to be input.

Press the [EXEC] soft key to start inputting the file.


(d) Collating a file
Item Operation
DEVICE Press the [M–CARD] soft key.
FUNCTION Press the [COMPAR] soft key.
FILE NO. Enter the number or name of the file to be collated.

Press the [EXEC] soft key to start collating the file.

Note
PMC data cannot be collated.

(e) Deleting a file


Item Operation
DEVICE Press the [M–CARD] soft key.
FUNCTION Press the [DELETE] soft key.
FILE NO. Enter the number or name of the file to be deleted.

Press the [EXEC] soft key to start deleting the file.


(f) Listing the files
Item Operation
DEVICE Press the [M–CARD] soft key.
FUNCTION Press the [LIST] soft key.

Press the [EXEC] soft key to start listing the files.

453
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.3.5
Data input to and  : Supported
output from other  : Not supported
devices Power
FS20
FS21/
FS18 FS16 FS18B FS16B FS15B
Mate 210MB
       

Reads or writes the sequence program, Pascal or C programs, or PMC


data.

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1

DEVICE = OTHERS

DATA KIND = ALL


(ALL:LADDER + LANGUAGE)
FUNCTION = WRITE

>
ALM
[M-CARD] [OTHERS] [SPEED ] [ ] [ ]

(a) Setting the channel


Enter the number of the channel used at ”CHANNEL = .” See (a) in
Subsection 7.3.1 for details.
(b) Setting the transfer conditions
Press the [SPEED] soft key and set each condition. See Subsection
7.3.6 for details.
(c) Outputting data (PMC to input/output device)
Item Operation
DEVICE Press the [OTHERS] soft key.
FUNCTION Press the [WRITE] soft key.
DATA KIND Select the type of data to be output (see (3) in Section 7.2).
Set the input/output device so that it is ready to accept data (wait state).

Press the [EXEC] soft key to start outputting data.


(d) Inputting data (input/output device to PMC)
Item Operation
DEVICE Press the [OTHERS] soft key.
FUNCTION Press the [READ] soft key.
Press the [EXEC] soft key and wait until data input finishes.

The input/output device starts outputting data.

454
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

(e) Collating data


Item Operation
DEVICE Press the [OTHERS] soft key.
FUNCTION Press the [COMPAR] soft key.
Press the [EXEC] soft key and wait until data collation finishes.

The input/output device starts outputting data.

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
Power FS21/
key) Mate
FS20
210MB
FS18 FS16 FS18B FS16B FS15B

       

PMC SPEED OTHERS MONIT STOP


BAUD RATE = 3
(0:1200,1:2400,2:4800,3:9600,4:19200)

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 ]

The items shown above must be set when RS-232C 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 FAPT
LADDER.
Setting on the
Setting on the PMC (SPEED
Item personal
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 2 bits STOP BIT = 1 (2BIT)
bits
X parameter None

455
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.3.7
Transfer to and from a  : Supported
ROM WRITER  : Not supported
Power FS21/
FS20 FS18 FS16 FS18B FS16B FS15B
Mate 210MB
       

Reads or writes the sequence program, Pascal or C programs, or PMC


data.
This function is valid for the built-in programer function.
(a) Writing a file
Item Operation
DEVICE Press the [ROMWRT] soft key.
FUNCTION Press the [WRITE] soft key.

Press the [EXEC] soft key to start outputting the data.


(b) Reading a file
Item Operation
DEVICE Press the [ROMWRT] soft key.
FUNCTION Press the [READ] soft key.

Press the [EXEC] soft key to start inputting the data.


(c) Collating a file
Item Operation
DEVICE Press the [ROMWRT] soft key.
FUNCTION Press the [COMPAR] soft key.

Press the [EXEC] soft key to start collating the data.

7.3.8 When the machine tool builder creates a MDI keyboard which has no
Notes on using an MDI cursor keys on the PMC-MODEL RA1/RA3 of the FS 20, note the
following methods of operation. Ladder diagrams cannot be edited using
keyboard without the ladder-diagram-edit 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
PMC–MODEL not be modified, specify the same value again. When the item at the
RA1/RA3) 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 off-line programmer
(such as the P-G 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.

456
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

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 F-ROM
1 CHANNEL setting : No specification required. To move
the cursor, perform the operation
described in 1 of Example 1.
2 DEVICE setting : Press the [F-ROM] 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 (M-CARD)
1 CHANNEL setting : See 1 of Example 1 (or 1 of Example
2).
2 DEVICE setting : Press the [FDCAS] ([M-CARD]) key.
3 DATA KIND setting: Press the [LADDER] key for ladder
operation. Press the [PARAM] key
for PMC-parameter 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.

457
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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

R ANOTHER USED The FLASH ROM is being used by a device other than the PMC.
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 RS-232C interface is being used by a device other than the PMC.
Action) Check if another device is using the RS-232C interface.
nn = 6: There is no RS-232C option.
H nn = 20: The RS-232C interface is connected incorrectly.
O Action) Check that the connection and the setting, such as channel and baud rate, are
S correct.
T
. I/O WRITE ERROR nn nn = 20: The RS-232C interface is connected incorrectly.
F Action) Check that the connection and the setting, such as channel and baud rate, are
D correct.
C nn = 22: Communication cannot be performed normally.
A Action) Check if a cable is disconnected.
S I/O READ ERROR nn nn = 20: The RS-232C interface is connected incorrectly.
. Action) Check that the connection and the setting, such as channel and baud rate, are
O correct.
T nn = 22: Communication cannot be performed normally.
H Action) Check if a cable is disconnected.
E
R ADDRESS IS OUT OF RANGE (xxxxxx) Data other than that stored in the PMC debugging RAM area has been transferred.
S xxxxxx: Transfer address
DATA ERROR Invalid data has been read.
Action) Check the cables and the setting for SPEED.

458
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

Message CONTENTS ³ OPERATION


CREATE ERROR The file name is invalid.
Action) Name the file is the MS–DOS format (see(5) of Section 7.2).
NO MORE SPACE The memory card capacity is insufficient.
WRITE ERROR Action) Replace the memory card or delete unnecessary files and retry.
NOT READY The memory card is not mounted.
Action) Confirm if the memory card is mounted correctly.
MOUNT ERROR The memory card is not formatted.
Action) Format the memory card (see (a) of Subsection 7.3.4).
WRITE PROTECT The memory card is protected.
Action) Remove the protection of the memory card.
BATTERY ALARM The battery of the memory card is not enough.
M Action) Exchange the battery of the memory card.
E
M FILE NOT FOUND Specified file number or file name is not found.
O Action) Confirm the file number or the file name by LIST.
R DELETE ERROR The file cannot be deleted.
Y Action) Change the attribute of the file.
C PROGRAM ALREADY EXISTS The file name already exists.
A Action) Change to other file name.
R
D I/O WRITE ERROR nn nn=30 : The memory card is not mounted.
I/O READ ERROR nn Action) Confirm if the memory card is mounted correctly.
I/O COMPARE ERROR nn nn=31 : The data cannot be written to the memory card.
I/O DELETE ERROR nn Action) Remove the protection of the memory card.
I/O LIST ERROR nn Exchange the memory card for the S–RAM card.
I/O FORMAT ERROR nn nn=32 : The battery of the memory card is not enough.
Action) Exchange the battery of the memory card.
nn=102: The memory card capacity is insufficient.
Action) Replace the memory card or delete unnecessary files and retry.
nn=135: The memory card is not formatted.
nn=105: ditto
Action) Format the memory card.
nn=114: Specified file is not found.
Action) Confirm the file number or the file name by LIST.
nn=115: Specified file is protected.
Action) Confirm the attribute of the file.
C COPARE ERR XXXXXX = AA:BB The data between DEVICE and PMC is different.
o CONT?(Y/N) XXXXXX : Address
m aa : The data in PMC
m bb : The data in DEVICE
o Action) If you continue it, press Y key.
n Otherwise, press N key.

459
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
PMC PARAMETER DATA III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

7.5 The data items of the sequence program stored in EPROM can be copied
into the debugging RAM module for PMC-RA1, PMC-RA2, PMC-RB,
SEQUENCE and PMC-RB2.
PROGRAM COPY
The following shows the relationship between the function and soft keys.
FUNCTION

RUN EDIT I/O SYSPRM MONIT

RETURN

EXEC CANCEL (NO.)

NEXT

ROM COPY

CPYTTL CPYLAD CPYSYM CPYMSG

NEXT

CPYALL CPYMDL

7.5.1 Copies title data.


Copy title data
[CPYTTL]

7.5.2 Copies a ladder program.


Copy a ladder program
[CPYLAD]

7.5.3 Copies symbol data and comment data.


Copy symbol data and
comment data
[CPYSYM]

7.5.4 Copies message data.


Copy message data
[CPYMSG]

460
7. WRITING, READING, AND VERIFYING
THE SEQUENCE PROGRAM AND
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) PMC PARAMETER DATA

7.5.5 Copies all the sequence programs into the debugging RAM.
Copy the sequence
programs [CPYALL]

7.5.6 Copies I/O module data.


Copy I/O module data
[CPYMDL] Note
If the I/O module data is different from the currently selected
data during copying in Subsection 7.5.5 or 7.5.6, turn off the
power and restart the system.

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.

461
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

FUNCTIONS FOR DISPLAYING MEMORY AREAS AND

8 DEBUGGING 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.
 : Can be used
 : Cannot be used
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

               

Work RAM is necessary (A02B-0120-H987 for the PMC-RC and RC3


and A02B-0162-J151 or A02B-0162-J152 for the PMC-NB).
These functions facilitate debugging a user program created by the
machine tool builder in the C language. If the settings are erroneous, a
system error may occur or the system may be shut down. Specify the
settings correctly.
For details of operation, refer to the “PMC-RC/RC3/NB Programming
Manual (C language)” (B-61863-1).
The following figure shows the soft key related to these functions.

RUN EDIT I/O SYSPRM MONIT


(STOP)
RET

DBGLAD GDT USRMEM DEBUG

III 8.4 III 8.1 III 8.2 III 8.3

PMC MONITOR MENU MONIT STOP

SELECT ONE OF FOLLOWING SOFT KEYS

DBGLAD : DEBUG LADDER DIAGRAM


GDT : DESCRIPTOR TABLE MAP
USRMEM : USER MEMORY INFORMATION
DEBUG : DEBUG FUNCTION

[DBGLAD] [ ] [ GDT ] [USRMEM] [DEBUG ]

8 Basic Monitor Menu

462
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

8.1 Information of a User Program Coded in C


DISPLAYING THE GDT Nos. 32 to 95 defined in a user program can be displayed.
GDT (GLOBAL The specified GDTs can also be dumped.
DESCRIPTOR TABLE) The following figure shows the soft keys related to this function.

GDT USRMEM DEBUG

RET

NO.SRH M.DUMP

RET

SEARCH INPUT

NEXT

BYTE WORD D.WORD

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.

Note
Depending on the settings, a user program may operate
erroneously, causing a system error. Be sure to specify the
correct settings.

463
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

PMC DESCRIPTOR TABLE(GDT) MONIT RUN

NO. ACCESS USE BASE LIMIT


032 RW 16 0016000AH 0000056FH
033 RW 16 0016005AH 0000023FH
034 RW 16 00160300H 00000040H
035 RW 16 00160340H 00000234H
036 ER 16 00823000H 00000058H
037 ER 16 0084FB7CH 0000070AH
038 NULL DESCRIPTOR
039 ER 16 0084FF88H 0000292FH
040 RW 16 00160A6CH 0000005AH
041 RW 16 00160600H 00000402H
>

[NO.SRH] [ ] [ ] [M.DUMP] [ ]

8.1.1(a) User GDT Information

PMC DESCRIPTOR TABLE(GDT) MONIT RUN

NO. ACCESS USE BASE LIMIT


032 RW 16 0016000AH 0000056FH
033 RW 16 0016005AH 0000023FH
 
[NO.SRH] [ ] [ ] [M.DUMP] [ ]

PMC MEMORY DUMP(GDT NO.032) MONIT RUN

103:0000 0000 0000 0000 0000 0000 ......


103:0010 0000 0000 0000 0000 0000 ......
103:0020 0000 0000 0000 0000 0000 .....
Dumped
information of
GDT NO.32

8.1.1(b) Memory Dump

464
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

8.1.2
Descriptions of
displayed items

NO. ACCESS USE BASE LIMIT


32 ER 16 00862340H 0000523FH

Segment limit

Segment base

Segment type

Segment attribute

GDT NO.

(1) Access attribute of a segment


Code Description
RO Read-only data segment
RW Read/write data segment
ROD Read-only downward-expansion data segment
RWD Read/write downward-expansion data segment
EO Execute-only code segment
ER Execute/read code segment

(2) Segment type


Code Description
16 16-bit segment
32 32-bit segment

Note
A user program created with the IC286 compiler is
segmented in 16-bit units.

(3) Undefined segment


NULL DESCRIPTOR is displayed for an undefined segment.

465
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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  Data area
 Stack area
ALLOCATION
 Common memory area
INFORMATION OF A
The PMC management software dynamically allocates the areas
USER PROGRAM 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.

GDT USRMEM DEBUG

RET

TASK.D TASK.S COM.D M.DUMP

RET

SEARCH INPUT

NEXT

BYTE WORD D.WORD

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.

466
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

Note
Depending on the settings, a user program may operate
erroneously, causing a system error. Be sure to specify the
correct settings.

PMC USER MEMORY(TASK DATA) MONIT RUN

ID NAME GDT BASE LIMIT


10 TASK-O01 039 00160050H 00010100H
11 TASK-O02 040 00160060H 00004100H
12 TASK-O03 041 00160070H 00005100H
13 TASK-O04 042 00160080H 00000160H
14 TASK-O05 043 00160210H 00000170H
15 TASK-O06 044 00160110H 00000110H

>

[TASK.D] [TASK.S] [COM.D ] [M.DUMP] [ ]

8.2.1(a) Information of a Task Data Area

PMC USER MEMORY(TASK STACK) MONIT RUN

ID NAME GDT BASE LIMIT


10 TASK-O01 239 00161050H 00010100H
11 TASK-O02 240 00161060H 00004100H
12 TASK-O03 241 00161070H 00005100H
13 TASK-O04 242 00161080H 00000160H
14 TASK-O05 243 00161210H 00000170H
15 TASK-O06 244 00161110H 00000110H

>

[TASK.D] [TASK.S] [COM.D ] [M.DUMP] [ ]

8.2.1(b) Information of a Task Stack Area

467
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

PMC USER MEMORY(COMMON DATA) MONIT RUN

NO. GDT BASE LIMIT


01 042 00162010H 00000100H
02 045 00162020H 000A0100H
03 047 00162030H 0000D000H
04 048 00162040H 0000A100H

>

[TASK.D] [TASK.S] [COM.D ] [M.DUMP] [ ]

8.2.1(c) Information of a Common Memory Data Area

8.2.2 (1) Items displayed for a task data area and stack area
Displayed items

ID NAME GDT BASE LIMIT


10 TASK-001 032 00160010H 00000100H

Segment limit

Segment base

GDT No.

Task name

Task ID

(2) Items displayed for a common memory area

NO GDT BASE LIMIT


01 032 00160010H 00000100H

Segment limit

Segment base

GDT NO.

Common memory No.

468
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

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.1 (1) Number of breakpoints: Up to 4


Specifications (2) Number of portions to be traced: 8
(3) Capacity of memory used for storing traced data: Up to 256 bytes,
up to 32 bytes for each traced portion

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.

GDT USRMEM DEBUG

RET

D.DUMP BRK.NO EXEC INIT

RET

D.PRM BRK.NO

469
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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
When data is accessed, an even-numbered boundary or
four-byte boundary is used depending on the type specified
in ACCESS LENGTH.
Example)
ACCESS LENGTH = WORD
BREAK SEG.ADR = 103; 101
The segment addresses are assumed to be 103; 100 to
101.
ACCESS LENGTH = D.WORD
BREAK SEG.ADR = 103; 102
The segment addresses are assumed to be 103; 100 to
104.

(b) BREAK COND.


Specify a break condition.
0 (EXEC) : A program is interrupted at the specified
effective address.
1 (WRITE) : A program is interrupted when it writes
data to the specified address.
2 (READ/WRITE) : A program is interrupted when it writes
data to or read data from the specified
address.
(c) ACCESS LENGTH
Specify the address type of a breakpoint.
0 (BYTE) : An address is specified in units of bytes for
read/write operation at the specified address
and for when a program is interrupted at the
specified effective address.
1 (WORD) : An address is specified in units of words for
read/write operation at the specified address.
2 (D.WORD) : An address is specified in units of two words
for read/write operation at the specified
address.
(d) PASS COUNT
Specify the number of times a break condition is satisfied before
the program is interrupted, in the range of 1 to 65535.

470
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

(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.

Note
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.

(g) BREAK AVAIL.


Specify whether the parameters for each breakpoint are valid or
invalid.
(h) NO. TRACE ADR.
Using segment addresses, specify up to eight addresses from
which data is traced when a program is interrupted at a
breakpoint. Up to 32 bytes are stored for each address.
Use a key, such as EOB, to delimit a segment and an offset. Do
not use alphanumeric keys.
To initialize these addresses only, enter 0; 0.

Note
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.

471
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

(4) Changing a breakpoint


Up to four breakpoints can be specified. For each breakpoint,
parameters are specified and traced data is stored. To select a desired
breakpoint, press the [BRK.NO] soft key on the parameter screen.
The breakpoint is selected in the order of BP1, BP2, BP3, and BP4.

PMC DEBUG (PARAM) MONIT RUN

BREAK POINT NO.1

BREAK SEG.ADR = 0000:00000000


BREAK COND. = 0 ( 0:E 1:W 2:RW )
ACCESS LENGTH = 0 ( 0:B 1:W 3:D )
PASS COUNT = 32767
TASK ID = 1 ( 0:ALL / 10-25 )
TASK STATUS = 0 ( 0:PASS 1:STOP )
BREAK AVAIL. = 0 ( 0:NO 1:YES )

>

[D.DUMP] [BRK.NO] [ EXEC ] [ INIT ] [ ]

8.3.3 (a) Screen for Specifying a Break Condition

PMC DEBUG (PARAM) MONIT RUN

BREAK POINT NO.1


NO. DUMP ADR. TYPE LENGTH
(0:B/1:W/2:D) (32BYTE)
01 0000:00000000 0 10
02 0000:00000000 1 9
03 0000:00000000 2 8
04 0000:00000000 0 7
05 0000:00000000 1 6
06 0000:00000000 2 5
07 0000:00000000 0 4
08 0000:00000000 1 3
>

[D.DUMP] [BRK.NO] [ EXEC ] [ INIT ] [ ]

8.3.3 (b) Screen for Specifying Data to Be Traced

472
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

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.

PMC DEBUG (DUMP) MONIT RUN


BREAK POINT NO.1(0000:00000000)
REGISTER
EAX=00000000 EBX=00000000 ECX=00000000
EDX=00000000 ESI=00000000 EDI=00000000
EBP=00000000 ESP=00000000 IEP=00000000
DS=0000 ES=0000 FS=0000 GS=0000
SS=0000 CS=0000 EFLAGS=00000000
CONTENS OF MEMORY
01 0000:00000000 00000000 00000000
02 0000:00000000 00000000 00000000
03 0000:00000000 00 00 00 00 00 00 00 00
04 0000:00000000 0000 0000 0000 0000
>

[D.PRM ] [BRK.NO] [ ] [ ] [ ]

8.3.4 Screen for Displaying Traced Data

8.3.5 As parameters used for debugging and traces data are stored in the
Enabling automatic retained memory, they are not lost when the power is turned off.
debugging at power-on When bit 1 of keep relay K18 is set to 1 after break condition parameters
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) Using this debug function, which is incorporated in the CPU, reduces
the CPU speed. Do not use the function during normal system
operation.

473
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

8.4
LADDER  : Can be used
 : Cannot be used
DEBUGGING ∆ : To use this function, a ladder editing module is required
FUNCTION PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2

    ∆   ∆        

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 00001-00004 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

ACC=1 STK=0000 0011 OF=0 SF=1 ZF=1

[SEARCH ] [ STEP ] [ BRKCTL ] [ ] [ ADRESS ]

[ RUN ] [ DUMP ] [ DPARA ] [ONLEDT ] [ RESET ]

8.4.1 Screen of Ladder Debugging Function

474
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

8.4.2 For this operation, press [DBGLAD] soft key to bring the following
Soft key menu of menu.
Ladder Debugging
Function
DBGLAD GDT USRMEM DEBUG

RET

SEARCH STEP BRKCTL DUMP

Chap. 8.4.3 Chap. 8.4.3 NEXT

RUN ADRESS DPARA ONLEDT RESET


(STOP) (SYMBOL) (NDPARA)

The function of the soft key is as follows.


(1) [SEARCH] : is used to specify several types of search functions.
(2) [STEP] : is used to specify several types of Step Functions.
This function can not be used when the ladder
program is being executed.
(3) [BRKCTL] : is used to specify Stop Functions.
This function is to stop the execution of ladder when
specified condition becomes true. This function can
not be used when the ladder program is being
executed.
(4) [DUMP] : is used to display the contents of PMC address in the
2 lines at the bottom of CRT where the last NET is
normally displayed.
(5) [RUN] : is used to switch the monitor mode from STOP to
RUN, or vice versa.
(6) [ADRESS] : is used to switch the symbol display mode from
SYMBOL to ADDRESS, or vice versa.
(7) [DPARA] : is used to switch the mode for displaying the
contents of functional instruction parameters from
NDPARA (No Display Parameter) mode to DPARA
(Display Parameter) mode, or vice versa.
(8) [ONLEDT] : is used to edit the ladder program without stopping
the execution. Editing is limited within the
operations which do not change the size of ladder.
(9) [RESET] : is used to initialize the Step Function and Stop
Function.

Note
See Chapter II. 5.3 and 5.4 for details of (7) or (8).

475
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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.

SEARCH STEP BRKCTL DUMP

RET

ELMMNT NETMNT BLOCK B.SRCH TRNS.B

SEARCH START

The function of the soft key is as follows.


(1) [STEP] : A blinking cursor shows the current position at
which the execution is stopped. y moving the cursor,
a position at which the execution is to be stopped can
be specified.
(2) [ELMMNT] : is used to execute one instruction from current
position.
(3) [NETMNT] : is used to execute one net from current position.
(4) [BLOCK] : is used to execute from current position to specified
instruction. If specified instruction is not executed
because it is skipped by conditional JMP or CALL
instructions, the execution will stop at the END
instruction, END1 (SUB 1), END2 (SUB 2), or
END3 (SUB 48), of the current level.
(5) [B.SRCH] : is used to search the instruction at which the
execution is currently stopped.
(6) [TRNS.B] : is used to transfer the current status of input signals
to the synchronous buffer so that succeeding
instructions could operate on refreshed inputs when
the execution is continued from current position.
(For more about the synchronous buffer, see Chapter
I.2.5 Processing I/O Signal)

476
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) THE PROGRAM (MONIT)

Note
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
Stop function of break specified condition becomes true. Then, the signal condition can be
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]

“MODE :ON :X0000. 0 : 0 : 0000/12345”

COUNT : trigger counter


(present counter/specified counter)
POINT : trigger point at which the trigger
condition is checked (default is 0)
0 the top of the 1st level seq
1 after END1
2 after END2
3 after END3
ADR : specified trigger address

ON : signal turn on (TRGON), OFF : turn off

[Displaying of specified scan]

“SCAN COUNT : 00000/00003”

counter of scan (present counter/specified counter)

477
8. FUNCTIONS FOR DISPLAYING MEMORY
AREAS AND DEBUGGING
THE PROGRAM (MONIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

SEARCH STEP BRKCTL DUMP

RET

TRIGER SCAN INIT START


(STOP)

TRGON TRGOFF

The function of [BRKCTL] soft key is as follows.


(1) [TRIGER] : is used to specify the trigger condition by signal.
Trigger condition has to be specified according to the
following syntax. And then, the execution is started by
pressing [START] key.
“ADR ; PONIT (0-3) ; COUNT +
[TRGON/ TRGOFF]”
ADR : specified trigger address
POINT : trigger point at which the trigger condition
is checked (default is 0)
0 the top of the 1st level sequence
1 after END1
2 after END2
3 after END3
COUNT : counter of checked trigger (default is 1)
(1 to 65535)
(2) [TRGON] : is used to specify “turn on” trigger to stop the execution
when the signal is transitioned from off to on status.
(3) [TRGOFF] : is used to specify “turn off” trigger to stop the
execution when the signal is transitioned from on to off
status.
(4) [DUMP] : is used to display the contents of PMC address in the
2 lines at the bottom of CRT where the last NET is
normally displayed.
(5) [SCAN] : is used to specify a stop function by scan counter. To
specify a scan counter, input as follows.
“counter + [SCAN]”. (counter: 1 to 65535)
When the counter is not specified, it is recognized as
1.
After specifying the scan counter, the execution is
started by pressing [START] key.
(6) [INIT] : is used to initialize the stop function with break
condition.
(7) [START] : is used to start the execution after specifying the
condition to stop.

478
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) 9. ERROR MESSAGES (FOR EDIT)

9 ERROR MESSAGES (FOR EDIT)

Error messages (For EDIT 1)

Message Contents and solution


ADDRESS BIT NOTHING The address of the relay/coil is not set.
FUNCTION NOT FOUND There is no functional instruction of the input number.
COM FUNCTION MISSING The functional instruction COM(SUB9) is not correctly dealt with.
Correspondence of COM and COME(SUB29) is incorrect.
Or, the number of coil controlled by COM is specified by the model which the number
cannot be specified.(It is possible to specify the number of coil only on PMC-RB/RC.)
EDIT BUFFER OVER There is no empty area of the buffer for the editing.
(solution) Please reduce NET under editing.
END FUNCTION MISSING Functional instruction END1, END2, END3 and END do not exist
Or, there are error net in END1, END2, END3, END.
Or, order of END1, END2, END3, and END is not correct.
ERROR NET FOUND There is an error net.
ILLEGAL FUNCTION NO. The wrong number of the functional instruction is searched.
FUNCTION LINE ILLEGAL The functional instruction is not correctly connected.
HORIZONTAL LINE ILLEGAL The horizontal line of the net is not connected.
ILLEGAL NET CLEARED Because the power had been turn off while editing LADDER, some net under editing was cleared.
ILLEGAL OPERATION Operation is not correct.
The value is not specified and only INPUT key was pushed.
The address data is not correctly inputted.
Because the space to display the instruction on screen is not enough, the functional instruction
cannot be made.
SYMBOL UNDEFINED The symbol which was inputted is not defined.
INPUT INVALID There is an incorrect input data.
Non-numerical value was inputted with COPY,INSLIN,C-UP, C-DOWN etc.
The input address was specified for write coil.
An illegal character was specified for the data table.
NET TOO LARGE The input net is larger than the editing buffer.
(solution) Please reduce the net under editing.
JUMP FUNCTION MISSING The functional instruction JMP(SUB10) is not correctly dealt with.
Correspondence of JMP and JMPE(SUB30) is incorrect.
The number of coil to jump is specified by the model which the number of coil cannot specified.
(It is possible to specify the coil number only on PMC-RB/RC.)
LADDER BROKEN LADDER is broken.
LADDER ILLEGAL There is an incorrect LADDER.
IMPOSSIBLE WRITE You try to edit sequence program on the ROM.
OBJECT BUFFER OVER The sequence program area was filled.
(solution) Please reduce the LADDER.
PARAMETER NOTHING There is no parameter of the functional instruction.
PLEASE COMPLETE NET The error net was found in LADDER.
(solution) After correcting the error net, please continue operating.
PLEASE KEY IN SUB NO. Please input the number of the functional instruction.
(solution) If you do not input the functional instruction, please push soft key ”FUNC” again.
PROGRAM MODULE NOTHING You tried to edit though there was neither RAM for debugging nor ROM for sequence program.
RELAY COIL FORBIT There is an unnecessary relay or coil.
RELAY OR COIL NOTHING The relay or the coil does not suffice.
PLEASE CLEAR ALL It is impossible to recover the sequence program.
(solution) Please clear the all data.

479
9. ERROR MESSAGES (FOR EDIT) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

Error messages (For EDIT 2)

Message Contents and solution


SYMBOL DATA DUPLICATE The same symbol name is defined in other place.
COMMENT DATA OVERFLOW The comment data area was filled.
(solution) Please reduce the number of the comment.
SYMBOL DATA OVERFLOW The symbol data area was filled.
(solution) Please reduce the number of the symbol.
VERTICAL LINE ILLEGAL There is an incorrect vertical line of the net.
MESSAGE DATA OVERFLOW The message data area was filled.
(solution) Please reduce the number of the message.
1ST LEVEL EXECUTE TIME OVER The 1st level of LADDER is too large to complete execution in time.
(solution) Please reduce the 1st level of LADDER.

480
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) 10. ERROR MESSAGES (FOR I/O)

10 ERROR MESSAGES (FOR I/O)

Error messages (For I/O 2)


Message Contents and solution
I/O OPEN ERROR nn An error occurs when the reader/puncher interface was started.
nn = –1 Because the interface is used with NC etc., the interface is not able to be opened by PMC
side.
(solution) After other functions finishes using the line, please execute again.
6 There is no option for the interface.
20 The interface cannot be opened.
(solution) Please confirm the connection of the cable. Please confirm setting of the
baud rate etc.
I/O WRITE ERROR nn An output error occurred in the reader/puncher interface.
nn = 20 The state of the interface is not correct.
(solution) Please confirm the connection of the cable. Please confirm setting the baud
rate etc.
22 Opponent side is not ready to receive.
(solution) Please confirm the power supply on the opponent side. Or, please initialize the
interface.
I/O READ ERROR nn An input error occurred in the reader/puncher interface.
nn = 20 The state of the interface is not correct.
(solution) Please confirm the connection of the cable. Please confirm setting the baud
rate etc.
21 The data is not sent from the opponent side.
(solution) Please confirm the power supply on the opponent side.
I/O LIST ERROR nn An error occurred in directory read processing from FD Cassette.
nn = 20 The state of the interface is not correct.
(solution) Please confirm the connection of the cable. Please confirm setting of the baud
rate etc.
COMPARE ERR xxxxxx = aa:bb A compare error occurred.
CONT?(Y/N) xxxxxx : The Address where the compare error occurred.
aa : The data on PMC side
bb : The data on device side
Enter ’Y’ to continue processing.
ADDRESS IS OUT OF The data transferred to the address out of the PMC debugging RAM area.
RANGE(xxxxxx) xxxxxx : Transferred address.
(solution) Please confirm the address of the transferring data.
LADDER : Please confirm the model setting.
C language : Please confirm setting the address in the link control statement and build file.
ROM WRITER ERROR nnnnnn An error occurred in the ROM writer.

481
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

PMC PROGRAMMER (DPL/MDI)

11 (ONLY FOR THE POWER MATE–D/F/H)

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 Mate–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

H # / EOB &@ MENU


SUB OR AND STK NO. VAR

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

0 –/+ & CAN INPUT

DPL/MDI panel for Power Mate

482
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

Notes
1. The indication at the bottom left of each key applies to the
PMC programmer (DPL/MDI) function.
2. For keys such as the <D/R> key, the indication on the left
applies when the key is pressed once and that on the right
applies when the key is pressed twice.
(Example) Pressing the <D/R> key once enters ”D” and
pressing it twice enters ”R.”

The screen configuration for the PMC programmer (DPL/MDI) function


is as follows:

PMC programmer menu Sequence program start and stop


<INPUT>or<READ>
PMC PRG MENU 1/3 LADDER RUN/STOP
>RUN/STOP MONITOR (STOP)
<CAN>or<WRITE>

<↑> <↓>

<INPUT> PMC editing menu <INPUT> Editing ladder mnemonics


or<READ> or<READ>
PMC PRG MENU 2/3 PMC EDIT 1/1 N0001
>EDIT >LADDER RD X0000.0
<CAN>or <CAN>or
<WRITE> <WRITE>

<↑> <↓>

<INPUT> Setting and displaying PMC system parameters


or<READ>
PMC PRG MENU 3/3 CTR TYPE=BCD
>SYSTEM PARAM (BINARY=0/BCD=1)
<CAN>or
<WRITE>
The Power Mater–H supports the following screen:
<↑> <↓>
Screen for storing the sequence
<INPUT> program into flash ROM
or<WRITE>
PMC PRG MENU 4/4 DEVICE=F–ROM
>I/O >WRITE Y/N[YES]
<CAN>

483
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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

<O0001> N010!G90 PMC PRG MENU 1/3


G01 G43 X10 ; <PRGRM> >RUN/STOP

Can be switched only when K17#1 = 1.

To return to the CNC screen, press the <POS>, <PRGRM>, <VAR>,


<DGNOS/PARAM>, or <ALARM> key.

<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.

484
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

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

3 Press the <INPUT> or <READ> key. The system parameter screen


appears.

CTR TYPE = BIN


(BINARY=0/BCD=1)

4 The current counter data type is displayed on the screen.


(a) Specify the type of the counter value to be used for the CTR
functional instruction, as binary or BCD (enter <0> for binary or
<1> for BCD).
(b) Press the <INPUT> key.
The counter data type is set.
5 Pressing the <CAN> or <WRITE> key displays the PMC
programmer menu.

485
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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.

PMC PRG MENU 2/3


>EDIT

3 Press the <INPUT> or <READ> key. The PMC editing menu


appears.

PMC EDIT 1/1


>LADDER

To end editing and display the PMC programmer menu, press the <CAN>
or <WRITE> key.

486
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

11.4
EDITING LADDER
MNEMONICS

11.4.1 Selecting LADDER on the PMC programmer menu displays the ladder
Starting ladder mnemonics editing screen. If the sequence program is running, selecting
this function automatically stops the program.
mnemonics editing
1 Display the PMC programmer menu.
2 Display the LADDER item by pressing the <↓> or <↑> key.
PMC EDIT 1/1
>LADDER

3 Press the <INPUT> or <READ> key. The sequence program is


displayed.
Step number

> N0001
RD X0000.0

Instruction

11.4.2
Confirming the ladder 1 Cursor scroll (scroll per step)
Pressing the <↑> cursor key displays the instruction one step before
mnemonics that currently displayed. Pressing the <↓> cursor key displays the
instruction one step after that currently displayed.
2 Specifying the step number
Entering <NO.>, <step number>, then <INPUT> displays the
instruction having the entered step number.
(The <↓> cursor key can be used instead of the <INPUT> key.)
(Example) <NO.>, <123>, <↓>
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

4 Relay coil search


Entering <WRT>, <address number>, then <↓> searches for the
relay coil including the entered address.
(Example) <WRT>, <Y33.5>, <↓>

N0187
WRT. NOT Y0033.5

487
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

5 Functional instruction search


Entering <SUB>, <functional instruction number>, then <↓>
searches for the entered functional instruction.
(Example) <SUB>, <50>, <↓>

N0123
SUB 50 PSGNL

Notes
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

2. Display of some instructions may differ from that for FAPT


LADDER.

P–G, personal–computer FAPT LADDER Ladder mnemonics editing


(a) RD.NOT.STK RD.N.STK

(b) TMR timer–number SUB 03 TMR


P001 timer–number

(c) DEC code–signal–address SUB 04 DEC


(PRM) decode–instruction P001 code–signal–address
P002 decode–instruction

The above also applies when modifying the ladder mnemonics.

488
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

11.4.3
Modifying the ladder 1 Changing an instruction
mnemonics (a) Display the instruction to be changed.
(b) Enter a new instruction.
(c) Press the <ALTER> key.
(Example) <OR>, <Y32.4>, <ALTER>

N1234
AND R0123.4

Before change

N1234
OR Y0032.4

After change

Note
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.

4 Deleting the ladder program


(a) Enter <–9999>.
(b) Press the <DELET> key.
The whole ladder program is deleted.

489
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

11.4.4
Ending ladder 1 Press the <CAN> or <WRITE> key.
mnemonics editing 2 ”EXECUTING” is displayed.

N0001
EXECUTING

3 The PMC editing menu appears.

Notes
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

Pressing the <↑> or <↓> cursor key displays the ladder


mnemonics editing screen.
2. Pressing the <POS>, <PRGRM>, <VAR>,
<DGNOS/PARAM>, or <ALARM> key during the editing of
the sequence program displays the CNC screen by forcibly
terminating editing even if the program contains an error.

490
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

11.5 Selecting RUN/STOP on the PMC programmer menu displays the


sequence program start/stop screen.
STARTING AND
STOPPING THE 1 Display the PMC programmer menu.
SEQUENCE 2 Display the RUN/STOP item by pressing the <↓> or <↑> key.
PROGRAM PMC PRG MENU 1/3
(RUN/STOP) >RUN/STOP

3 Press the <INPUT> or <READ> key. The sequence program


start/stop screen appears.

LADDER RUN/STOP
MONITOR [RUN]

4 The current execution state of the sequence program is displayed on


the screen.
Pressing the <↓> or <↑> key switches the state between running and
stopped.
5 Pressing the <CAN> or <WRITE> key displays the PMC
programmer menu.

Note
When the sequence program cannot be started(RUN), the
alarm of PMC occurred. Please confirm the alarm status
referring to ”11.11 Error List”.

491
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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 power–off during editing.
8 1ST LEVEL EXEC TIME OVER The ladder first level is too great.

Note
Use a memory card for ladder diagram editing or the
CONDENSE function of FAPT LADDER (for personal
computers). These methods may, however, not be
effective.

492
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

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 MATE–H) PMC PRG MENU 4/4
>I/O

(3) Press the <INPUT> or <WRITE> key. The sequence program


storage screen appears. Pressing the <↓> or <↑> key switches display
between [YES] and [NO].
<↓>
DEVICE=F–ROM DEVICE=F–ROM
>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 F–ROM ”EXECUTING” BLINKS.


EXECUTING

Once the sequence program has been written normally,


”COMPLETE” is displayed.

WRITE TO F–ROM
COMPLETE

Note
If an error occurs, an error message appears on the screen.

Example Example error message

NOT EMG STOP

To return to the sequence program storage screen, press the <↑> or


<↓> key.
(5) Pressing the <CAN> key displays the PMC programmer menu.

493
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

11.8 The table below lists the details of the errors which may occur during
storage into F–ROM using the DPL/MDI (only for the Power Mate–H).
ERROR DETAILS
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 F–ROM.
NOT EMG STOP The CNC is not in the emergency stop state.
OPEN ERROR The OPEN processing has failed (IOCS library).
ERASE ERROR The ERASE processing has failed (IOCS library).
The F–ROM cannot be erased. Alternatively, the
F–ROM is defective.
WRITE ERROR The WRITE processing has failed (IOCS library).
The F–ROM cannot be written. Alternatively, the
F–ROM is defective.

494
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

11.9
INPUT/OUTPUT
LADDER/PMC–PARA
METER BY MDI/DPL

11.9.1  Method of Inputting/Outputting Ladder


Input/Output method to (1) Select “Diagnose screen” by key in <DGNOS> key.
office programmer (2) Key in <READ>key or <WRITE> key.
(P–G Mate/Mark II) (3) Turn on <F8> key from the office programmer menu screen, and
(Fixed 9600bit/sec.) key in menu number “5<NL>” or “3<NL>”.

11.9.2  Method of Inputting Ladder and PMC–Parameter.


Input/Output method to (1) Select “Diagnose screen” by key in <DGNOS>key.
FANUC FLOPPY (2) Key in <NO.>key and optionally key in [File No.].
CASSETE (Fixed (3) Key in <READ>key.
4800bit/sec.)
Note
In case of input PMC–Parameter, it is necessary to set
following conditions.
(a)Emergency stop condition, and NC–Parameter PWE=1.
(b)Stop condition the Ladder program.

 Method of Outoutting Ladder.


(1) Select “Diagnose screen” by key in <DGNOS>key.
(2) Key in <NO.>key and optionally key in [Files No.].
(3) Key in <WRITE>.

 Method of Outputting PMC–Patameter.


(1) Select “PMC STATUS screen” by key in <DIGNOS>key.
(2) Key in <No.> key and optionally key in [File No.].
(3) Key in <WRITE>.

Note
In case of output PMC–Parameter, it is necessary to set
following condition.
(a)Edit mode.
(b)Stop condition the Ladder program.

495
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

11.10 The on–line debugging function enables the monitoring and modification
of ladder programs and signal status on personal computer’s screen using
ON–LINE a personal computer connected to the Power Mate through an RS–232C
DEBUGGING cable.
FUNCTION (ONLY FANUC FAPT LADDER–II is necessary to use the on–line debugging
FOR POWER function. (This software is a programming system for developing
MATE–H) FANUC PMC sequence programs which operate on IBM PC/AT and
compatible computers.)

Software name Specification Personal computer


FAPT LADDER–II A08B–9201–J503 IBM PC/AT and compatible

In this section, only the parameter of on–line monitor driver for Power
Mate–H 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.

Name of Manual Spec.No. Reference Items


FAPT LADDER–II OPERATOR’S MANUAL B–66184EN On–line function

11.10.1 When using the on–line debugging function to connect a personal


Starting and stopping computer to the PMC, first start the driver that provides the
communication function of the PMC.
the on–line debugging When starting or stopping the driver, it is necessary to set either of the
function following parameters.
 Parameter screen for on–line monitor(PARAMETERS FOR ONLINE
MONITOR)
Pressing the [MONIT] then [ONLINE] soft keys on the PMC menu
screen causes the on–line monitor parameter screen to appear.
ParameterRS–232C = USE : On–line monitor driver is used.
NOT USE: On–line monitor driver is not
used.

Note
The CRT/MDI is necessary when the parameter is set on the
”PARAMETERS FOR ONLINE MONITOR” screen.

 Parameter in the Power Mate–H (No.0101#6)

#7 #6 #5 #4 #3 #2 #1 #0
0101

#6 = 0 : On–line monitor driver is not used.


1 : On–line monitor driver is used.
When either of the following conditions consists, the on–line monitor
driver is started.
Parameter ”RS–232C” is ”USE”
Bit 6 of parameter No.0101 is ”1”

496
11. PMC PROGRAMMER (DPL/MDI)
B–61863E/09 III. PMC PROGRAMMER (CRT/MDI) (ONLY FOR THE POWER MATE–D/F/H)

Notes
1. The on–line 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 above–mentioned parameter and stop the
on–line monitor driver.
2. While the on–line monitor driver is operating, the following
functions cannot be used.
[PMCLAD], [I/O], [EDIT], [SYSPRM] on CRT/MDI
[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.).

497
11. PMC PROGRAMMER (DPL/MDI)
(ONLY FOR THE POWER MATE–D/F/H) III. PMC PROGRAMMER (CRT/MDI) B–61863E/09

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 R–relay 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

1 ER01 PROGRAM DATA ERROR (RAM)

3 ER03 PROGRAM SIZE ERROR (OPTION)

4 ER04 LADDER OBJECT TYPE ERROR

7 ER07 NO OPTION (LADDER STEP)

7 6 5 4 3 2 1 0

R9046

0 ER16 RAM CHECK ERROR (PROGRAM RAM)

1 ER17 PROGRAM PARITY

2 ER18 PROGRAM DATA ERROR BY I/O

3 ER19 LADDER DATA ERROR

4 ER20 SYMBOL/COMMENT DATA ERROR

5 ER21 MESSAGE DATA ERROR

6 ER22 PROGRAM NOTHING

7 ER23 PLEASE TURN OFF POWER

498
IV. STEP SEQUENCE
FUNCTION
B–61863E/09 IV. STEP SEQUENCE FUNCTION 1. GENERAL

1 GENERAL

501
1. GENERAL IV. STEP SEQUENCE FUNCTION B–61863E/09

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.

1.1 (a) Ladder method

The greater the number of functions implemented by the PMC for a CNC
system, the larger and the more complicated the sequence program
becomes. A large-scale system requires a larger program and a greater
number of processes, making it hard for the ladder method to control the
overall process. This is because the ladder method does not describe the
order of control. While the ladder method is suitable for describing partial
control, it is hard to apply it to the description of the flow of control
overall.
To overcome this problem, structured programming has been introduced
into sequence control. A PMC that supports the subprogram function
enables the use of modular programs. As shown in Fig.1.1(b), a
large-scale program is divided into subprograms for each function,
simplifying the unit of processing. Since the programmer determines
how to divide the main program into subprograms and the control flow
used to call the subprograms, however, the programs are not necessarily
easy-to-understand by other programmers.

CALL
CALL

Subprogram
Subprogram

1.1 (b) Module method

502
B–61863E/09 IV. STEP SEQUENCE FUNCTION 1. GENERAL

Given these conditions, a step sequence method has been created to


describe programs structurally. It is well-suited to the control of entire
processes and provides an easy-to-understand visualized flow of the
process. The step sequence programming features the direct
representation of the control flow on a flow chart, as shown in Fig.1.1(c).
Each block of processing is described as a subprogram, using the ladder
method. The entire program is then created by combining these
subprograms.

Step 1

Transition

Step 2

Subprogram of ladder diagram

Drawing flow

1.1(c) Step sequence method

The step sequence method has the following features:


(1) Increased programming efficiency
 Since the flow of processes can be programmed directly, simple,
correct programming is enabled, reducing the time required for
programming.
 Even for complicated control, programming proceeds from the main
flow to detailed flow in each process, creating a structured, top-down
program, which is easy-to-understand by persons other than the
original creator.
 Structured modules can be used again easily.
(2) Easy debugging and maintenance
 Graphical display enables the operator to easily understand the
execution state of a program visually.
 Erroneous steps in a program can be found easily.
 A part of a program can be easily modified.
(3) High-speed program
 Since only the subprograms required for a certain process are
executed, the cycle time is reduced.
(4) Transition from ladder programs
 Since steps and transitions consist of conventional ladder programs,
conventional ladder programs can be converted to new step sequence
programs, without discarding ladder-program resources.
In step sequence programming, a sequence control program is divided
into two types of subprograms, steps and transitions. Steps describe
processes. Transitions connect steps and determine whether the transition
conditions from one step to another evaluate true. As shown in Fig.1.1(d),
a step sequence program is described using graphical symbols.

503
1. GENERAL IV. STEP SEQUENCE FUNCTION B–61863E/09

[ ] Step A Starts execution. Waits for machining request.


(Process 1)

Transition B Machining request?


When machining is requested
Step C Holds a workpiece on the pallet.
(Process 2)
Transition D Loading completed?
Once loading has been completed
Step E Machines the workpiece. (Process 3)

Transition F Machining completed?


Once machining has been completed
Step G Unloads the workpiece to the pallet.
(Process 4)
Transition H Unloading completed?
Once unloading has been completed
Step I Moves the pallet. (Process 5)

1.1 (d) Example of machining the workpiece

As shown in this example, the program flow from process 1 through


process 5 is expressed visually. Detailed programs related to the
movements performed aspart of each process, and the signals used for
determining whether transition conditions for proceeding to the next step
are satisfied, are not described here. To program complicated control
flows, many other functions are supported, such as divergence, jump, and
nesting functions. The details of these functions are described later.
Step sequence programming is suitable for creating programs which
control processes sequentially. Programs used for controlling a unit
which operates according to a certain sequence, such as a loader, ATC, and
other peripheral units, are best suited to step sequence programming. For
programs which control units with no particular sequence, such as that of
the operator’s panel which is always monitoring the emergency stop
signal or mode signals, however, are not well-suited to step sequence
programming. The PMC supports the advantages of both methods, ladder
and step sequence programming, by calling subprograms written
according to a step sequence and those written as a ladder, from the main
program.

504
B–61863E/09 IV. 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.

Table 1.2 List of graphical symbols

Display
Display of
Contents programming FAPT LADDER 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

505
1. GENERAL IV. STEP SEQUENCE FUNCTION B–61863E/09

1.3 Follow the procedure below to create a step sequence program. Use a
personal computer on which the FAPT 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- RB4/RB6/
Memory RC4/NB2
card ±
FAPT LADDER
(5) Write to the FlashROM
software (4) Transfer to the FlashROM
CNC device

(1) Create Step Sequence program (6) Execute


(editing) (7) Diagnosis and debugging
(2) Create a subprogram of ladder (8) Correct a subprogram of ladder diagram (editing)
diagram (editing)
(3) Compile

1.3 Programming to create a program

Table1.3 lists the step sequence functions supported by a personal


computer (on which the FAPT LADDER software package is
installed) and CNC.

506
B–61863E/09 IV. STEP SEQUENCE FUNCTION 1. GENERAL

1.3 Step sequence functions

 : usable
FAPT
LADDER
PMC-RB4/ of
Functions PMC-RC4 PMC-NB2
RB6
PERSONAL
COMPUTER
Display and edit of a program
 Display of subprogram list    
 Create a new subprogram 
 Delete a subprogram 
 Edit a subprogram of StepSequence 
form
 Edit a subprogram of ladder diagram    
 Compile 
 Decompile 
Input and output
 Input and output with a memory card    
 Input and output with RS232C    
 Write to a FlashROM   
Execution of program
 execution of a ladder diagram   
 execution of Step Sequence program   
Diagnosis and debugging (note1)
 Diagnosis of Step Sequence program   
 Diagnosis of a ladder diagram   
 Set and display a monitoring timer   

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).

507
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

2 STEP SEQUENCE BASICS

508
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

2.1 A step sequence program is created using a variety of graphical symbols,


as shown in Fig.2.1(a). The main terms used in the step sequence are
TERMINOLOGY described below.

(Block)
[ ] S1 (Initial Step)

P100 (Transition)

S2 (Step)

P101 (Transition)

L1 (Label)
S3

(Divergence of Selective Sequence)

(Divergence of
Simultaneous
Sequence)

(Convergence of
Simultaneous
Sequence)

(Convergence of Selective Sequence)

] S10 (Block Step)

L1 (Jump)

2.1(a) Step sequence elements

509
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

(1) Step

Sn
(Pm)

A step indicates a process, which is the basic processing unit in a step


sequence program. In a step, specify the S address (Sn), which is a
step number, and P address (Pm), which indicates a subprogram
(action program) specifying the details of processing in each step.
(2) Step state transition
When a step sequence program is executed, the process proceeds as
program processingadvances, the state of each step changs
accordingly. Each step can assume any of the logical states listed in
Table 2.1(a), its state changes as shown in Fig.2.1(b). Activation
refers to the changing of a step from the inactive state to the active
state. Inactivation refers to the changing of a step from the active state
to the inactive state.

Table 2.1(a) Step state

State Processing Display


Active Execution Activated step.
The action program (subprogram) is being Sn
executed.

Inactive Transition Transition from execution to halt.


to halt The action program (subprogram) is executed
once only, then the step automatically transits to
halt.
Sn
Halt Not activated state.
The action program (subprogram) has not yet
been executed.

Inactivate (halt status)

Activate (active status)

Inactivate (transition to halt)

Fig.2.1(b) Step state transition

510
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

(3) Transition

Pn

A transition denotes the transition conditions. When these evaluate


true, the step of the corresponding state changes from the inactive to
active state or vice the reverse. Specify the P address (Pn), which
indicates a subprogram describing the transition conditions in detail.
As shown in Fig.2.1(c), step S2 changes its state from inactive to
active when the conditions described in transition P10 evaluate true,
while step S2 changes its state from active to inactive when the
conditions described in transition P20 evaluate true.

Executing step1 Executing step2 Executing step3

S1 (step 1) S1 (step1) S1 (step1)

P10 (Condition P10 P10


is true)
S2 (step2) S2 (step2) S2 (step2)

P20 P20 (Condition P20


is true)

S3 (step3) S3 (step3) S3 (step3)

2.1(c) Transition of step state by the transition

Note that the step immediately before a transition must be active in


order to switch the next step from inactive to active when the
conditions specified in the transition evaluate true. As shown in
Fig.2.1(d), step S3 does not change to the active state, even when
transition P20 evaluates true, if step S1 is active and step S2 is
inactive. An active state passes from a certain step to the next step
when the corresponding transition conditions evaluate true, the
execution of the step sequence program advancing one step.

Executing step1 Executing step1

S1 (step1) S1 (step1)

P10 P10

S2 (step2) S2 (step2)

P20 (Condition P20


is true)
S3 (step3) S3 (step3)

2.1(d) Transition of step state by transition

511
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

(4) Initial Step

[ ] Sn
(Pm)

While a normal step can be activated by a transition, the initial step


is activated automatically when execution of the program starts, as
shown in Fig.2.1(e).

Stopping program (STOP) Executing program (RUN)

[ ] S1 (step1) [ ] S1 (step1)

P10 P10

S2 (step2) S2 (step2)

P20 P20

S3 (step3) S3 (step3)

2.1(e) Activate of initial step

Although the initial step, which is usually executed first, is often


placed at the top of a program, it can also be specified at some point
within a program. It is always activated first. After being deactivated
once, it can be subsequently be activated again. In this case, it acts
in the same way as a normal step.
(5) Divergence and Convergence of Selective Sequence
To describe a complicated sequence, selective sequences can be used.
A selective sequence offers multiple choices, from among which the
condition becomes true first activates the corresponding step, as
shown in Fig.2.1(f). The divergent paths join to generate the mai
sequence.

512
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

S1
(Divergence of selective sequence)
P21 P22 P23
S21 S22 S23

(Convergence of selective sequence)

When transition P21 When transition P22


evaluates true evaluates true
± ±

S1 S2

(true) (true)
S21 S22 S23 S21 S22 S23

2.1(f) Selective sequence

(6) Divergence and Convergence of Simultaneous Sequence


A Simultaneous sequence can be used to execute multiple processes
simultaneously. In a Simultaneous sequence, as shown in Fig.2.1(g),
one transition activates multiple steps. The activated multiple steps
are executed independently. Once all steps along the multiple paths
have been completed, the divergent paths join to generate the main
sequence.

513
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

S1
P10
(Divergence of
simultaneous
sequence)
S21 S22 S23

S31 S32 S33

(Convergence of
simultaneous
sequence)
S4

When transition P10


evaluates true
±

S1
P10 (true)

S21 S22 S23

S31 S32 S33

S4

2.1(g) Simultaneous sequence

(7) Jump and Label


The jump function is used to describe a non-serial sequence, such as
a repeated loop. As shown in Fig.2.1(h), when a jump designation
is activated, the sequence jumps to the step having the corresponding
jump destination label, after which that step is activated. To specify
a label number, the L address is used in the same way as a jump
instruction in ladder programming. A jump can be made to a previous
or subsequent step.

514
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

Executing step3 Executing step1

L1 L1 (Label)
S1 (step1) S1 (step1)

P10 P10

S2 (step2) S2 (step2)

P20 P20

S3 (step3) S3 (step3)

P30 (Condition ³³³ P30


is true)

L1 (Jump) L1

2.1(h) Jump and Label

(8) Block
A block refers to a group of consecutive steps and transitions. A block
can be a step sequence program. The more complicated the sequence
becomes, the larger and more complex the block is. A program can
be divided into multiple blocks in the same way as for subprograms
in ladder programming, based on the concept of modular
programming. Each block is identified by a P address, which
corresponds to the subprogram number in ladder programming.
A block is executed as the main program in a step sequence, or called
from another step sequence program as a subprogram.

Block (P1) Block (P2)

[ ] [ ]

2.1(i) Block

(9) Calling block


To execute a block as the main program in a step sequence, call the
block with the CALLU (SUB 66) or CALL (SUB65) instruction in
the same way as for ladder subprogram calling from the second level
ladder program.

515
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

Ladder (Second level) Block2 (P2)

[ ]

CALLU P2

CALLU P3

Block3 (P3)

[ ]

2.1(j) Calling block

(10) Block step (calling step sequence program)

] Sn
(Pm)

To call a block from the step sequence program as a subprogram,


specify a block step in the step sequence program which calls the
block, as shown in Fig.2.1(k). This is called bloc nesting.

Block (P1) Block (P2)

[ ] S1 [ ] S231

S232
S21 S22 ] S23
(P2) S233

S3

2.1(k) Block nesting

The program shown in Fig.2.1(k) is equivalent to in Fig.2.1(l). which


does not use a block step.

516
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

Block (P1)

[ ] S1

S21 S22 S231

S232

S233

S3

2.1(l) Program without block step

(11)End of block step

Use an end block step to terminate nested-block-step calling and to


return to the calling sequence.

517
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

2.2
EXECUTION OF STEP
SEQUENCE
Editing Compile Executing
(source program) (ROM format program)

First level
(Ladder diagram)

END1 (SUB 1) function

Second level
(Ladder diagram) CALL
CALL
END2 (SUB 2) function

Third level
(Ladder diagram)

END3 (SUB 48) function

Subprogram P1
(Ladder diagram)

[ ] Subprogram P2
(Step sequence)

Subprogram P3
(Ladder diagram)

[ ] Subprogram P4
(Step Sequence)

S
S
Subprogram Pn

END (SUB 64) function

2.2(a) Structure of program

518
B–61863E/09 IV. STEP SEQUENCE FUNCTION 2. STEP SEQUENCE BASICS

In the step sequence method, a program is created (edited) in units of


subprograms. The edited source program is compiled andconverted to an
executable ROM-format program, thenlinked, as shown in Fig.2.2(a). A
ROM-format program is a kind of a modular program, created using
conventional subprograms. A step sequence block is also a type of a
subprogram. Step sequence blocks are linked to the end of the first level
to third level ladder programs, together with other ladder subprograms.
In the same way as in the ladder method, a program is activated at certain
intervals, namely every 8 ms, as shown in Fig.2.2(b). The first level and
second level ladders are executed for a certain period (T ms), then the third
level ladder is executed for the remaining time. The period in which the
first level and second level ladders are executed varies with the PMC
model and the setting of the system parameter (LADDER EXEC).
Whether the third level ladder can be used depends on the PMC model.

tn-8 tn+0 tn+8 tn+16

8msec 8msec 8msec

T msec T msec T msec

First level

Second level

division division finished

Third level
(depends on
the PMC model)

2.2(b) Execution of program cyclically

After the first level ladder has been executed, the second level ladder i
executed for the remaining time. If the second level ladder cannot be fully
executed within one execution period, it is suspended part-way, with the
remainder being executed in the nextperiod. This type of execution is
called divided execution. Where the second level ladder is divided varies
with the execution time of the first level ladder and that of the executed
instructions of the second level ladder. Divided execution is divided into
two types, divided system and undivided system. In the divided system,
the position where the second level ladder is divided is determined in
advance, a divided instruction code being inserted at that position. In the
undivided system, in contrast, where the second level ladder is divided is
not determined in advance, the ladder being automatically divided upon
the determined period elapsing. A PMC which allows step sequence
programming executes the second level ladder in undivided system.

519
2. STEP SEQUENCE BASICS IV. STEP SEQUENCE FUNCTION B–61863E/09

In divided execution, the second level ladder is executed at an interval that


is a multiple of 8 ms (e. g., 8, 16, 24 ms). Input signals referenced in the
second level ladder, such as addresses X and F, are refreshed in
synchronization with the execution period for the second level ladder, so
that they do not change during the execution.
All subprograms, created using either the ladder or step sequence method,
are called from the second level ladder. Hence, the execution time of the
second level ladder includes those of ladder subprograms, step sequence
programs (blocks), steps, and transitions. Since only the activated step
and the transition which checks the transition condition from the step to
the next step are executed in a step sequence program, the second level
ladder is executed much more frequently than may be expected from the
total number of steps.

LEVEL1 (Ladder diagram)

LEVEL2 (Ladder diagram)

CALLU P2

R0. 0
CALL P1

LEVEL3 (Ladder diagram)

P1 (Ladder diagram)

P2 (Step sequence)
L1
[ ] S1 (P3)

P4

S2 (P5)

P6
L1

P3 (Ladder diagram)

P4 (Ladder diagram)

2.2(c) Execution of step sequence

520
B–61863E/09 IV. 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

First level LEVEL1

Second level LEVEL2

Subprogram
P2 P1

Step
P3 P4

Transition

Third level LEVEL3

2.2(d) Timing of execution of step sequenceprogram

In this case, step sequence program P2, step P3, transition P4, and ladder
subprogram P1 are executed. Step P5 and transition P6 are not executed.

521
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

CONFIGURATION AND OPERATION OF STEP-

3 SEQUENCE PROGRAMS

522
3. CONFIGURATION AND OPERATION OF
B–61863E/09 IV. STEP SEQUENCE FUNCTION STEP-SEQUENCE PROGRAMS

3.1 A step is a unit of processing in a program.


STEP [Display]

Sn
(Pm)

[Contents]
 Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm) specifying actua processing, for a step.
 Assign a step number to a step.
 The same step number cannot be used twice in a program.
 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
note1)
Activate Execution Activated step.
The action program (subprogram) is Sn 1
being executed.

Inactivate Transition to Transition from execution to halt.


halt The action program (subprogram) is
executed once only, then the step Sn 0
automatically transits to halt.
Stop Not activated state.
The action program (subprogram) 0
has not yet been executed. Sn

Note
Sn. 0 Refer to 4.(2)

Example) State transition of Step B

Transition A
Inactivate (halt state)

Step B
Transition A

Activate (execution state)


Transition C
Transition C

Inactivate (transition to halt)

(Execute one time)

523
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

[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

P101 Subprogram P101


R0.0
TRSET

524
3. CONFIGURATION AND OPERATION OF
B–61863E/09 IV. STEP SEQUENCE FUNCTION STEP-SEQUENCE PROGRAMS

3.2 An initial step is automatically activated when execution of the program


starts. Once it has been activated, it operates in the same way as a normal
INITIAL STEP step. The program can be returned to this step through other steps.
[Display]

[ ] Sn
(Pm)

[Contents]
 Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm) specifying the actual processing, for an
initial step.
 All initial steps are activated when the other steps are not activated.
 Each block must contain at least one initial step. No limit is applied
to the number of initial steps contained in a block.
 A block having no initial step cannot be executed if called.
 Assign a step number to an initial step.
 The same step number cannot be used more than once in a program.
 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

S2 Initial step S1 is executed in the same way as normal


step once S1 has been executed.
P102

L1

525
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

Example2

L1
When a program is executed, steps S3 and
S1 S4, specified by an initial step, are activated
first.
P101

Once steps S3 and S4 have been


S2 [ ] S3 executed, initial steps S3 and S4 are
executed in thesame way as normal
step when the program starts from step S1.
P102 P103

[ ] 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]
 Only one transition is required between steps.
 Transition between steps is performed as described below.

S1 While S1 is activate, only S1 and P101 are


executed.
Other steps and transition are not executed.
P101 When the transition P102 evaluates true unles S2
is not being executed, the state is ignored.
S2

When the transition P101 evaluates true, control


P102 passes fro S1 to S2. In this case, when the condition
i true, S1 is terminated regardless of the state of S1,
and S2 is activated.

 When a signal is set to 1 in a transition, it remains the state even if


the control is transferred to the subsequentstep. To set the signal to
0, use another subprogram to do so.
[Example]
Refer an example described on the Step function (3.1).

526
3. CONFIGURATION AND OPERATION OF
B–61863E/09 IV. STEP SEQUENCE FUNCTION STEP-SEQUENCE PROGRAMS

3.4 A selective sequence branches to two or more sequences. When the


transition evaluates true, the corresponding step is activated.
DIVERGENCE OF
SELECTIVE [Display]
SEQUENCE

[Contents]
 Transitions are placed after a divergence of selective sequence.
 The step connected to the transition for which the conditions are true
is first activated.
 When the conditions for any transition are true simultaneously, the
leftmost step is activated.
 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

3.5 It combines two or more divergent paths to the main sequence.


CONVERGENCE OF [Display]
SELECTIVE
SEQUENCE

[Contents]
The number of divergent paths must match that of the convergent
paths.
[Example]

S2 S3 While step S3 is executed, the transition


P103 evaluates true, thus step S4 is
activated.
P102 P103

S4

527
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

3.6 A simultaneous sequence branches to two or more sequences, and all


steps are activated simultaneously.
DIVERGENCE OF
SIMULTANEOUS [Display]
SEQUENCE

[Contents]
 A transition must be placed before a divergence of simultaneous
sequence.
 All branched steps are activated simultaneously, then executed.
 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

528
3. CONFIGURATION AND OPERATION OF
B–61863E/09 IV. STEP SEQUENCE FUNCTION STEP-SEQUENCE PROGRAMS

3.7 It combines two or more divergent paths to the main sequence.


CONVERGENCE OF [Display]
SIMULTANEOUS
SEQUENCE

[Contents]
 A convergence of simultaneous sequence is processed as follows.

S10 S20 When the transition P120 evaluates


true, step S10 and S20 are terminated
and step S21 is activated.

P120

S21

 Wait processing is processed as follows.


case1 )

S10 S15 When the transition P109 evaluates true


unless both of step S11 and S16 are active,
control does not pass to step S20.
P110 P115
When the transition P109 evaluates true
while both of S11 and S16 are active, S11
S11 S16 and S16 are terminated and S20 is
activated. In the case, P109 provides the
termination conditions for both S11 and S16.

P109

S20

case2 )

S11 S16 To specify the termination conditions for


S11 and S16 separately, place the condi-
tions in P111 and P116 and specify two
P111 P116 dummy steps, S12 and S17, as shown
A dummy step also requires a step number
S12 S17 and subprogram number. Alsospecify a
(dummy) (dummy) dummy transition condition, which becomes
always true, in P110.

P110

S20

529
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

3.8 A jump controls the execution of steps non-sequentially, together with a


transition.
JUMP
[Display]

Ln

[Contents]
 Specify a jump destination label (Ln).
 The step to which control is transferred (jumped) is activated.
 The jump destination must be within the same program.
 A jump cannot be performed from outside a simultaneous sequence
to within the simultaneous sequence, or from within a simultaneous
sequence to outside.
 A jump cannot be performed between parallel-branched 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

3.9 A label specifies the jump destination.


LABEL [Display]

Ln

[Contents]
Specify the jump destination label (Ln).
[Example]
Refer to an example described on the jump function (3.8).

530
3. CONFIGURATION AND OPERATION OF
B–61863E/09 IV. STEP SEQUENCE FUNCTION STEP-SEQUENCE PROGRAMS

3.10 A block step specifies the step sequence subprogram to be executed.


BLOCK STEP [Display]

] Sn
(Pm)

[Contents]
Define a step number (Sn), which controls the execution of a bloc
step, and a sub-program (Pm) specifying the actual process, for a
block step.

Notes
 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.

531
3. CONFIGURATION AND OPERATION OF
STEP-SEQUENCE PROGRAMS IV. STEP SEQUENCE FUNCTION B–61863E/09

3.11 This is an initial step on the block step.


INITIAL BLOCK STEP [Display]

[ ] Sn
(Pm)

[Contents]
 Define a step number (Sn), necessary for controlling execution, and
subprogram number (Pm)specifying the actual processing, for an
initial step.
 This step has the same function and graphical symbol asan initial
step.

3.12 This terminates a block step.


END OF BLOCK [Display]
STEP

[Contents]
 Use this step to terminate a block step.
 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

532
B–61863E/09 IV. STEP SEQUENCE FUNCTION 4. EXTENDED LADDER INSTRUCTIONS

4 EXTENDED LADDER INSTRUCTIONS

To enable the specification of steps and transitions, the components of a


step sequence program, by means of the ladder method, the following
signals and functional instructions are provided. These signals and
instructions can only be used in subprograms in which step sequence step
and transitions are specified.

533
4. EXTENDED LADDER INSTRUCTIONS IV. STEP SEQUENCE FUNCTION B–61863E/09

4.1 [Function]
FUNCTIONAL  This instruction describes that the conditions for a transition have
been true.
INSTRUCTION TRSET  This instruction is used in a subprogram which is called from a
transition.
[Format]

ACT

TRSET
(SUB122)

4.2 [Contens]
PMC ADDRESS (S  This address is used to read the logical state of a specified step.
0 : Transition to halt state, or halt state
ADDRESS)
1 : Execution state
 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
 This address allows any subprogram to reference the state of any step.
 Data cannot be written into state signal Sn. 0.
 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.

In case of starting the executing of


S2 and S6 synchronously:

S1 S4

P1 P4 Sub program
S5.0
S2 S5 TRSET

P2 P1

S3 S6

534
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP SEQUENCE

5 SPECIFICATION OF STEP SEQUENCE

535
5. SPECIFICATION OF STEP SEQUENCE IV. STEP SEQUENCE FUNCTION B–61863E/09

5.1
SPECIFICATION Contents/Kind of PMC PMC-RB4/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

536
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP SEQUENCE

5.2  One transition must exist between step and step.


GENERAL RULES
S1 S1
(P10) (P10) sub prog
Correct
CALL P10
P1 or S1
CALL P11
S2 S2
(P11) (P11)
The step S1 calls
to subprogram P10, P11.

 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

537
5. SPECIFICATION OF STEP SEQUENCE IV. STEP SEQUENCE FUNCTION B–61863E/09

 When a simultaneous sequence is specified in another simultaneous


sequence, one convergence must not be used for each sequence.

S1 S2 S1 S2

P2 P2

S3 S4 S3 S4

Correct

P1 P3

S5 S5 (dumy)

P1

S6

 When a selective sequence is specified in a simultaneous sequence,


dummy steps must be required both after the divergence and before
convergence.

S1 P2 P4 S1 S2 (dummy)

S2 S3
P2 P4
P3 P5
S3 S4

Correct P3 P5

P1
S5 (dummy)
S4

P1

S6

538
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP SEQUENCE

 In case of branching again immediately after the convergence, a


step/transition is required between the divergence and convergence.

S1 S2 S1 S2
Correct

P2 P10 P100 (dummy)


S100 (dummy)
S3 S10

P1 P10

S3 S10

S2 S10 S2 S10

Correct
P2 P11 P2 P11

S12 S13 S100 (dummy)


P100 (dummy )

S12 S13

 Immediately after the block step, a dummy transition which is always


true is needed.

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

539
5. SPECIFICATION OF STEP SEQUENCE IV. STEP SEQUENCE FUNCTION B–61863E/09

 The divergence must be terminated with the same type of convergence.

P2 P4 Correct P2 P4

S2 S3 S2 S3

P3 P5 P3 P5

P2 P2

Correct

S2 S3 S2 S3

P3
P3

 The number of convergences must match that of divergences.

P1 P2 P1 P2

S2 S3 L1 Correct S2 S3 L1

P3 P3

S4 S4

 The number of convergences must match that of divergences, even at


the end of a block step.

P1 P2 P1 P2

S2 S2

P3 Correct P3

540
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP SEQUENCE

 It is not possible to jump to the other subprogram.

Sub–program P1
Sub–program P2
S10
S100
P10
P100
L1
S101
S11 S20
P101
P11 P20
S102
S12 L1

 It is not possible to jump from a simultaneous sequence to another


simultaneous sequence.

S1

P1

S2 S10

P2 P10

S3 L1

P3
L1
S4

541
5. SPECIFICATION OF STEP SEQUENCE IV. STEP SEQUENCE FUNCTION B–61863E/09

 It is not allowed to jump from inside of the simultaneous sequence to


outside.

L1
S1

P1

S2 S10 S20

P2 P10 P20

S3 S11 L1

542
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP 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 CTRC (SUB60)
Con- Multiple functional instructions having the same 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.

(1) Functional instructions of group A


Since these functional instructions operate when the corresponding
signals change, they may not operate correctly when called from
multiplesteps.
Example)
While multiple CTR functional instructions are used, when
control passes from S1 to S2 with ACT of CTR not set to off, CTR
is not counted when called from step S2.

S1 Subprogram P100
(P100) R0.0
CTR 1 ( )
P1

S2
(P100)

X1.0

Subprogram P1
X1.0
TRSET

543
5. SPECIFICATION OF STEP SEQUENCE IV. STEP SEQUENCE FUNCTION B–61863E/09

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

(2) Functional instructions of group B


While an instruction is being executed through the interface with the
NC, other same instructions cannot be executed. PMC control
software does not receive the process when the instruction is not at
a same position (net).
If ACT is set to on and off in different instructions (or subprograms),
these processes are not terminated.

Note
In the window instructions (WINDR and WINDW),
low-speed-type is included the functional instructions of
group B.

544
B–61863E/09 IV. STEP SEQUENCE FUNCTION 5. SPECIFICATION OF STEP 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 ( )

545
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

6 CRT/MDI OPERATION

The following operations are supported to enable the diagnosis and


debugging of a step sequence program.
(1) Displaying the sequence diagram
(2) Displaying the run time of the step sequence program
(3) Monitoring the run time of the step sequence program

546
B–61863E/09 IV. 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

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ TIME ] [ P–ADRS ] [ ZOOM ]

Items displayed on the screen


Display Contents Display by [ZOOM] key
LEVEL1 Ladder first level Ladder diagram
LEVEL2 Ladder second level Ladder diagram
LEVEL3 Ladder third level note1) Ladder diagram
V Pxxx Subprogram Ladder diagram
V] Pxxx Subprogram Step sequence diagram

Pxxx indicates a subprogram number.

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).
[P–ADRS/P–SYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [P–ADRS] key
ispressed, the addresses are displayed. When the [P–SYMB] key is
pressed, the symbols are displayed.

547
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

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

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ TIME ] [ P–ADRS ] [ ZOOM ]

6.1.2(a) Program configuration list (main screen)

Example)
When the cursor is positioned to V] P0407 and press the
[ZOOM] key, the subprogram P407 isdisplayed.
(2) Displayed Step Sequence
Activated steps are indicated by red V (highlighted V on a
monochrome display). (In this manual, activated steps are indicated
by H.)

PCLAD <<STPSEQ>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN


S0001 P0001(ROTATE) ROTATE THE WORK TIP P0407 1– 1
<– L1
[ ] S1
P1

<– L4
] S2 S10 S20 S30

P2 P10 P13 P20 P30


<– L2
S3 S11 S13 S21 S31

P3 P11 P14 P21 P23 P31


S4 S14 S23 –> L2
P15 P22 S32

S15 S24

[ MAIN ] [ CHANGE ] [ TIME ] [ P–ADRS ] [ ZOOM ]

6.1.2(b) Step sequence screen

548
B–61863E/09 IV. 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.

L2 Jump Cannot zoom.

L2 Label Cannot zoom.

Pxxx means the subprogram number.


[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.
[MAIN] key
Press the [MAIN] key to return to the program configuration list.
[CHANGE] key
Press the [CHANGE] key to list the subprograms referenced in the
step sequence program.
[TIME] key
Press the [TIME] key to display the time display screen (Fig. 6.2.1).
[P–ADRS/P–SYMB/S–ADRS/S–SYMB] key
Displays the addresses specified with steps and transitions, using
addresses or symbols, if symbols have been assigned. And the display
of steps is changed to display the S addresses or P addresses.
Press the [P–ADRS] key to display the addresses of P addresses.
Press the [P–SYMB] key to display the symbols of P addresses.
Press the [S–ADRS] key to display the addresses of S addresses.
Press the [S–SYMB] key to display the symbols of S addresses.
(3) Displaying the list screen
While the step sequence screen is displayed and press the [CHANGE]
key, a list screen of the subprograms referenced in this step sequence
program is displayed.

PCLAD <<LIST>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN


S0001 P0001 (ROTATE) ROTATE THE WORK TIP
V] P0001 V] P0002 V] P0004 V] P0005 V] P0006 V] P0007

V P0008 V P0009 V P0014 V P0015 V P0016 V P0017


V P0021 V P0022 V P0024 V P0025 V P0026 V]P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V]P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ ] [ ] [ ZOOM ]

[ MAIN ] [ CHANGE ] [ ] [ ] [ ]

549
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

[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).
[P–ADRS/P–SYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [P–ADRS] key
is pressed, the addresses are displayed. When the [P–SYMB] 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

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V]P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ TIME ] [ P–ADRS ] [ ZOOM ]

6.1.3(a) Program configuration list (main screen)

Example)
When the cursor is positioned to LEVEL1, press the[ZOOM]
key, the first level ladder is displayed.

PCLAD <<STPSEQ>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN


S0001 P0001 (ROTATE) ROTATE THE WORK TIP P0100 4– 2
<– L1
[ ] S1
P1

<– L4
] S10 S20 S30
S2
P2 P10 P13 P20 P30
<– L2
S3 S11 S13 S21 S31

[ MAIN ] [ CHANGE ] [ TIME ] [ P–ADRS ] [ ZOOM ]

6.1.3(b) Step Sequence screen

550
B–61863E/09 IV. 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).

LADDER * STEP SEQUENCE DEMO PROGRAM * NET 0031–0033 MONIT RUN

R9091.1
MOVN 20
D10
R10
FIN
FIN
/ WINDR R10 ( )

FIN
MOVN 20
R10
SUB 45 D10

END1

SUB 1

[ SEARCH ] [ ADRESS ] [ TRIGER ] [ WINDOW ] [ ]

[ DUMP ] [ DPARA ] [ ] [ ONLEDT ] [ ]

6.1.3(c) Ladder screen

[SEARCH] key
Used for search within a subprogram.

SEARCH ADRESS TRIGER WINDOW

RET

TOP BOTTOM SRCH W–SRCH N- SRCH

NEXT

F–SRCH

[TOP] key
Displays the top of a subprogram.
[BOTTOM] key
Displays the bottom of a subprogram.

551
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

[SRCH] key
Searches for the specified address.
[W-SRCH] key
Displays the ladder in which the specified address is used as a coil
address.
[N-SRCH] key
Displays the ladder having the specified net number, at the top of
the screen.
[F-SRCH] 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.

552
B–61863E/09 IV. STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION

6.2 The elapsed time of a step sequence program is displayed.


TIMER SCREEN

6.2.1
Time Screen
STPSEQ <<STATUS>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT RUN

STEP NO. STATUS ELAPSE MONITOR STEP NO. STATUS.


S0001( ) EXEC 1000000 T(1) OVER S0010(TILE ) EXEC
S0002( ) EXEC 100 T(3) S0011( )
S0003( ) EXEC 10000 T(4) S0012( )
S0004( ) 1000000 S0013( )
⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅

[ UP ] [ DOWN ] [ SEARCH ] [ RESET ] [ MONIT ]

6.2.1 Time screen

Meaning of display
Display Contents
STEP NO. Step number
S0001 : Step number (123456) : symbol display
STATUS Step state
EXEC : Active space : Inactive
ELAPSE Actual elapsed time (per msec)
The time is increasing during active state.
MONITOR Monitor time
T (1) : monitoring time number
OVER : An elapsed time is over monitoring time

[UP] [DOWN] key


Scrolls the screen up or down, in units of pages, to display the
operation time of other steps. Acts in the same way as the page up
or down key.
[MONIT] key
Displays the screen used for setting the timer to monitor the operation
time. (See 6.3)
[SEARCH] key
Search and display the specified step number.
example) Display the S100 address.
Key in ”100” and press the [SEARCH] key.
[RESET] key
For all of monitoring steps, the error status which occurred by the
monitoring function is canceled.
To cancel the status per steps, press the [DELETE] key on the monitor
time screen. (Please refer to 6.3 Monitor Time Screen below)

553
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

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
N b
Number Add
Address N b
Number Add
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

554
B–61863E/09 IV. 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

NO. STEP NO. ELAPSE MONITOR


T(1) S0001( ) 1000000 2000
T(2) S0010(MOVE ) 100 1000
T(3) S0002( ) 100 2000
T(4) S0003( ) 10000 20000
T(5)
T(6)
T(7)
T(8)

[ DELETE ] [ ] [ ] [ ] [ ]

6.3 monitor time screen

Meaning of display
Display Meaning
NO. Monitor time number
T (1) : means monitor time 1.
STEP NO. Step number
S0001 : Step number (123456) : symbol display
ELAPSE Actual elapsed time (per msec)
The time is increasing during active state.
MONITOR Monitor time (per msec)

[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).

NO. STEP NO. ELAPSE MONITOR


T(1) S0001( ) 1000000 2000
T(2) S0010(MOVE )

Key in “MOVE” and push [INPUT] key.


(2) Position the cursor at the input position and define a monitor
time.

NO. STEP NO. ELAPSE MONITOR


T(1) S0001( ) 1000000 2000
T(2) S0010(MOVE ) 1000 100

Keyin “100” and push [INPUT] key.

555
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

Deletion of monitor
Position the cursor at the deletion and press [DELETE] key.

NO. STEP NO. ELAPSE MONITOR


T(1) S0001( ) 1000000 2000
T(2) S0010(MOVE ) 100 1000

Alteration of monitor
Position the cursor at the alteration position and input again.

NO. STEP NO. ELAPSE MONITOR


T(1) S0001( ) 1000000 2000
T(2) S0100( ) 2000 1000

Key in “S100” and push <INPUT> key.

556
B–61863E/09 IV. 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

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ ] [ P–ADRS ] [ ZOOM ]

Items displayed on the screen


Display Contents Display by [ZOOM] key
LEVEL1 Ladder first level Ladder diagram
LEVEL2 Ladder second level Ladder diagram
LEVEL3 Ladder third level (Note) Ladder diagram
V Pxxx Subprogram Ladder diagram
V] Pxxx Subprogram Step sequence diagram

Pxxx indicates a subprogram number.

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.
[P–ADRS/P–SYMB] key
Displays the addresses specified to subprograms, using addresses or
symbols, if symbols have been assigned. When the [P–ADRS] key
is pressed, the addresses are displayed. When the [P–SYMB] key is
pressed, the symbols are displayed.

557
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

6.4.2 (1) Position the cursor to a program indicated by ¢¢], then press the
[ZOOM] key.
Step Sequence Screen
LADDER <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP
P0407 ( ) STEP SEQUENCE NO.1

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ TIME ] [ P–ADRS ] [ ZOOM ]

6.4.2 (a) Program configuration list (main screen)

Example)
When the cursor is positioned to j] P0407 and press the
[ZOOM] key , the subprogram P407 is displayed.
(2) Displayed Step Sequence
Activated steps are indicated by red j (highlighted j on a
monochrome display). (In this manual, activated steps are indicated
by J.)

LADDER <<STPSEQ>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP


S0001 P0001(ROTATE) ROTATE THE WORK TIP P0407 1– 1
<– L1
[ ] S1
P1

<– L4
] S2 S10 S20 S30

P2 P10 P13 P20 P30


<– L2
S3 S11 S13 S21 S31

P3 P11 P14 P21 P23 P31


S4 S14 S23 –> L2
P15 P22 S32

S15 S24

[ MAIN ] [ CHANGE ] [ ] [ P–ADRS ] [ ZOOM ]

6.4.2 (b) Step sequence screen

558
B–61863E/09 IV. 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.

L2 Jump Cannot zoom.

L2 Label Cannot zoom.

Pxxx means the subprogram number.


[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.
[MAIN] key
Press the [MAIN] key to return to the program configuration list.
[CHANGE] key
Press the [CHANGE] key to list the subprograms referenced in
the step sequence program.
[P–ADRS/P–SYMB/S–ADRS/S–SYMB] key
Displays the addresses specified with steps and transitions, using
addresses or symbols, if symbols have been assigned.
And the display of steps is changed to display the S addresses or
P addresses.
Press the [P–ADRS] key to display the addresses of P addresses.
Press the [P–SYMB] key to display the symbols of P addresses.
Press the [S–ADRS] key to display the addresses of S addresses.
Press the [S–SYMB] key to display the symbols of S addresses.
(3) Displaying the list screen
While the step sequence screen is displayed and press the [CHANGE]
key, a list screen of the subprograms referenced in this step sequence
program is displayed.

LADDER <<LIST>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP


S0001 P0001 (ROTATE) ROTATE THE WORK TIP
V] P0001 V] P0002 V] P0004 V] P0005 V] P0006 V] P0007

V P0008 V P0009 V P0014 V P0015 V P0016 V P0017


V P0021 V P0022 V P0024 V P0025 V P0026 V]P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ CHANGE ] [ ] [ P–ADRS ] [ ZOOM ]

[ZOOM] soft key


To display a program, position the cursor to the program number
and press the [ZOOM] key. The step sequence screen (Fig. 6.4.2
(b)) or ladder screen (Fig. 6.4.3 (c)) is automatically displayed
according to the type of the program.

559
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

[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.
[P–ADRS/P–SYMB] key
Displays the addresses specified to subprograms, using addresses
or symbols, if symbols have been assigned. When the [P–ADRS]
key is pressed, the addresses are displayed. When the [P–SYMB]
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
LADDER <<MAIN>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP

LEVEL1 LEVEL2 LEVEL3


V P0001 V P0002 V P0004 V P0005 V P0006 V P0007
V P0008 V P0009 V P0014 V P0015 V P0016 V P0017
V P0021 V P0022 V P0024 V P0025 V P0026 V] P0027
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
⋅ ⋅ ⋅ ⋅ ⋅ ⋅
V P0101 V P0202 V]P0304 V]P0405 V]P0406 V]P0407

[ UP ] [ DOWN ] [ ] [ P–ADRS ] [ ZOOM ]

6.4.3 (a) Program configuration list (main screen)

Example)
When the cursor is positioned to LEVEL1, press the [ZOOM] key, the
first level ladder is displayed.

LADDER <<STPSEQ>> PROGRAM:(STEP SEQUENCE DEMO PROGRAM) MONIT STOP


S0001 P0001 (ROTATE) ROTATE THE WORK TIP P0100 4– 2
<– L1
[ ] S1
P1

<– L4
] S10 S20 S30
S2
P2 P10 P13 P20 P30
<– L2
S3 S11 S13 S21 S31

[ MAIN ] [ CHANGE ] [ ] [ P–ADRS ] [ ZOOM ]

6.4.3 (b) Step Sequence screen

Example)
When the cursor is positioned to ” P2”, press the [ZOOM] key, the
subprogram P2 is displayed.

560
B–61863E/09 IV. STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION

(2) Ladder Screen

LADDER NET 0031–0033 MONIT STOP

R9091.1
MOVN 20
D10
R10
FIN
FIN
/ WINDR R10 ( )

FIN
MOVN 20
R10
SUB 45 D10

END1

SUB 1

6.4.3(c) Ladder screen

Please refer to the following manual about the operations of editing a


ladder diagram.
FANUC PMC MODEL PA1/PA3/RA1/RA2/RA3/RB/RB2/RB3/
RB4/RC/RC3/RC4/NB
LADDER LANGUAGE PROGRAMMING MANUAL
(B–61863E)
III PMC PROGRAMMER(CRT/MDI) 5.2 Sequence
Program Generation(LADDER)

561
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

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 PMC-RB4/ PMC-RC4 PMC-NB2
RB6
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
FAPT LADDER (HOST)   
Floppy cassette (FDCAS)   
FlashROM (F-ROM)   
Memory card (M-CARD) ∆ 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)   

Notes
1 An Editor card is needed.
2 It is possible to use while an Editor card is not mounted.

562
B–61863E/09 IV. STEP SEQUENCE FUNCTION 6. CRT/MDI OPERATION

6.6 The PMC-RB4 and PMC-RC4 can be used with either the ladder method
or step sequence method. When a step sequence program is transferred
COMPATIBILITY OF to the old version of the PMC, ER08 OBJECT UNMATCH is displayed
LADDER DIAGRAM on the PMC/ALARM screen.
The model setting of FAPT 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 FAPT LADDER.
To create a program with the built-in 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.

PMC SYSTEM PARAMETER (1/2) MONIT STOP

COUNTER DATA TYPE = BINARY / BCD

STEP SEQUENCE = YES / NO

>

[BINARY] [ BCD ] [ ] [ ] [ ]

4(e) PMC-RB4/RB6 System parameter screen (first page)

PMC SYSTEM PARAMETER (2/2) MONIT STOP

FS0 OPERATOR PANEL = YES / NO

KEY DI ADDRESS =

LED DO ADDRESS =

KEY BIT IMAGE ADDRESS =

LED BIT IMAGE ADDRESS =

>

[ YES ] [ NO ] [ ] [ ] [ ]

4(f) PMC-RB4/RB6 System parameter screen (second page)

563
6. CRT/MDI OPERATION IV. STEP SEQUENCE FUNCTION B–61863E/09

PMC SYSTEM PARAMETER (1/2) MONIT STOP

COUNTER DATA TYPE = BINARY / BCD

LADDER EXEC = % (1–150)

LANGUAGE EXEC RATIO = % (0–99)

LANGUAGE ORIGIN = H
(LANGUAGE AREA = H, SIZE = KB)

STEP SEQUENCE = YES / NO

>

[BINARY] [ BCD ] [ ] [ ] [ ]

4(g) PMC-RC4/NB2 System parameter screen (first page)

PMC SYSTEM PARAMETER (2/2) MONIT STOP

FS0 OPERATOR PANEL = YES / NO

KEY DI ADDRESS =

LED DO ADDRESS =

KEY BIT IMAGE ADDRESS =

LED BIT IMAGE ADDRESS =

>

[ YES ] [ NO ] [ ] [ ] [ ]

4(h) PMC-RC4/NB2 System parameter screen (second page)

564
V. PMC PROGRAMMER
(SYSTEM P series)
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 1. GENERAL

1 GENERAL

The FAPT LADDER system can easily prepare sequence programs,


symbol data, titles, and message of PMC-RB and PMC-RC, and also
easily define addresses of the modules to be installed in an I/O unit by
using SYSTEM P series.
Major functions of this FAPT LADDER are as described below.
(1) Input, display and editing of sequence programs
(2) Transfer of sequence programs (including write into EPROM for
PMC or ROM module.)
(3) Collation of sequence programs
(4) Program error display
The SYSTEM P series is used in the stage of preparing a sequence
program only and separated from PMC after the sequence program has
been completed. The SYSTEM P series can be connected to PMC only
when the PMC is operated with the RAM card and cannot be connected
when PMC is operated with a EPROM for PMC or ROM module.

series 16/18/20/21
Machine tool
/Power Mate-D

PMC card DI/DO card

System floppy loading

FAPT LADDER Paper tape input/output


PMC-RA1/RA2 PPR
SYSTEM P series List output
(FAPT LADDER)
PMC EPROM for PMC
WRITER input/output
FAPT LADDER
PMC-RB/RC or

FA EPROM for PMC


WRITER input/output

ROM for PMC


module input/output

Floppy PRINTER
input/output
Sequence program figure output

1

567
2. FUNCTIONS OF PROCESSING V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

2 FUNCTIONS OF PROCESSING

(1) Input of sequence programs


Input sequence programs using the following units when sequence
programs are loaded into the memory of the SYSTEM P series.
a) SYSTEM P series keyboard
b) PPR tape reader (paper tape)
c) Floppy
d) PMC memory
e) EPROM for PMC or ROM module
(2) Sequence program display
Sequence programs can be displayed on the 12” graphic display of
SYSTEM P series as follows.
a) Sequence programs can be displayed using mnemonic symbols.
b) Sequence programs can also be displayed in the ladder diagram
format.
(3) Editing of sequence programs
A sequence program can be edited by using the SYSTEM P series
keyboard in the following three ways.
a) Alteration
b) Insertion
c) Deletion
(4) Transfer of sequence programs
Sequence programs can be transferred as follows.
a) From SYSTEM P series memory to PMC memory
b) From PMC memory to SYSTEM P series memory
c) From SYSTEM P series memory to floppy
d) From floppy to SYSTEM P series memory
e) From SYSTEM P series memory to EPROM or ROM module for
PMC (Write into EPROM for PMC or ROM module)
f) From EPROM for PMC or ROM module to SYSTEM P series
memory
(5) Collation of sequence programs
Sequence programs can be checked by collating them between the
following memories.
a) SYSTEM P series memory - PMC memory
b) SYSTEM P series memory - floppy
c) SYSTEM P series memory - EPROM for PMC or ROM module
d) SYSTEM P series memory - paper tape

568
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 2. FUNCTIONS OF PROCESSING

(6) Hard copy


a) Since FANUC PPR is connectable to SYSTEM P series, the
paper tape output and list output (mnemonic symbol) are
obtainable.
b) A ladder diagram can be printed out.
(7) Program error display
Sequence program errors are displayed on the screen of the SYSTEM
P series.
Error codes are displayed at the lower right of the screen as
ALARM=XXX.
Refer to list of error codes in Appendix.

569
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

3 COMPONENT UNITS AND CONNECTIONS

570
3. COMPONENT UNITS AND
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) CONNECTIONS

3.1 (1) SYSTEM P series


COMPONENT UNITS This system serves as a programmer to generate and edit sequence
programs.
(2) Series 16
This system transfers a generated sequence program to CNC.
(3) FANUC PPR
This PPR inputs/outputs a sequence program by using a paper tape,
and also output a source list to the printer.
(4) FANUC printer
This printer prints out the sequence program.
(5) FANUC PMC writer
This unit is used for writing a sequence program to the EPROM for
PMC or ROM module when the sequence program has been
completed.
(6) FANUC FA Writer
This unit is used for writing data to the EPROM or ROM module for
the PMC after a sequence program has been created.

571
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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 operator’s manuals.
UNITS
SYSTEM P-G Mark II: B-66014E
SYSTEM P-G Mate: B-66003E
This chapter mainly describes the connections between SYSTEM P series
and I/O devices.

3.2(a) External view of SYSTEM P Mark II

572
3. COMPONENT UNITS AND
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) CONNECTIONS

3.2(b) External view of SYSTEM P Mate

Since a volatile RAM is employed as the SYSTEM P series memory, all


programs (FAPT LADDER system programs and sequence program)
being loaded into memory are operation should be started with the input
of FAPT LADDER system programs (called system loading).
If the SYSTEM P series power supply is turned off halfway in the curse
of inputting a sequence program from the keyboard, the sequence
program must be stored in advance, and this FAPT LADDER provides an
output function to a floppy for this purpose.

573
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

FANUC ROM WRITER (FANUC PMC WRITER)

Adaptor for
ROM modules

(FANUC FA WRITER)

Rear panel of the SYSTEM P EPROM for


Mark II Adaptor for the PMC
1M-bit EPROMs

CN2 CN1
EPROM for the PMC CN4 CN3

Adaptor for 40-pin


ROMs
FANUC PPR
1 Tape input
ROM module
PMC-RA1/RA2/RB/RC 2 Tape printout
for the PMC
3 List output

FANUC PRINTER

Prints sequence program


figures.

3.2(c) Connection of SYSTEM P series with each unit

(1) Connect FANUC PPR to connector CN1.


(2) Connect FANUC PMC writer or FANUC FA writer to connector
CN2.
(3) Connect FANUC printer to connector CN3.
(4) Connect connector CN4 to PMC-RA1/RA2/RB/RB2/RC. It is
connected to a channel preset by a PMC I/O.
For details, refer to ”Setting and display of I/O in PMC programmer
(CRT/MDI) in III”.
Connector JD5A on MAIN PCB  1 CHANNEL
Connector JD5B on MAIN PCB  2 CHANNEL

574
3. COMPONENT UNITS AND
B–61863E/09 V. 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

3.3(a) Panel of the SYSTEM P Mark II key board

Function keys

Data input keys

3.3(b) Panel of the SYSTEM P Mate key board

575
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

3.3.1 This key is used to load the FAPT 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: PMC-PA1/PA2/RA1/RA2/RB/RB2/RC (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 FAPT LADDER decided
which function is to be executed.

576
3. COMPONENT UNITS AND
B–61863E/09 V. 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 FAPT LADDER system
program (1/2) or when pressing <NL> key only in a menu screen.
Refer to Fig. 4.2.2.
<R0> FAPT ladder start.
. A menu screen appears.
<R1> Editing a ladder diagram starts.
<R2> Not used in FAPT 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 PMC-RB/RC, 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
PMC-WRITER or floppy.

577
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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 lower-character, 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 FAPT LADDER.

578
3. COMPONENT UNITS AND
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) CONNECTIONS

3.4 (1) SYSTEM P series Mate


SETTING OF I/O An initial I/O device setting of ’FAPT LADDER’ for SYSTEM P
series Mate is as follows.
DEVICE
Table 3.4(a) FAPT LADDER (Mate) of table

Channel I/O device F key


CN1 PMC-RAM F8
CN2 PMC WRITER F9
FA WRITER
CN3 External printer F10

Alter the setting of the I/O device by under-mentioned ’IO command’


when using FANUC PPR.

(Setting method of IO i) Press the R3 key in the menu screen of R keys.


command) ’REQUEST =’ is displayed in the left bottom of screen and
becomes the state which can be typed in.
ii) Type in IO PPR, CN1 <NL>.
PPR is allocated to channel 1.
iii) Type in as follows when channel 1 allocation is returned to
PMC-RAM.
IO, NC, CN1, F8, BR10 <NL>
(2) SYSTEM P Mark II
The initial setting of I/O devices of FAPT LADDER for the SYSTEM
P Mark II is as follows.

Table 3.4(b) FAPT LADDER (Mark II)

Channel I/O device F key


CN1 FANUC PPR F1, F5, F6
CN2 PMC WRITER F9
FA WRITER
CN3 External printer F10
CN4 PMC-RAM F8

(3) When a FANUC Floppy Cassette or FANUC FA Card adapter is used,


change the setting of the I/O device by executing the following I/O
command:
i) Press the [R3] key on the menu screen for the [R] keys.
Then REQUEST = appears at the lower left of the screen allowing
data to be entered.
ii) Type IO BCA, CN2, F13, F14, then press the <NL> key. The
FANUC Floppy Cassette or FA Card adapter is allocated to
channel 2.
iii) To initialize the setting of channel 2 again, type IO AUX, CN2,
F9, then press the <NL> key.
(4) Setting of the ROM writer
The PMC-RA1, -RA2 or -RB uses one of 1MB EPROM (27C1024).
The PMC-RC uses one of ROM module (128KB, 256KB, or
512KB).

579
3. COMPONENT UNITS AND
CONNECTIONS V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

For this reason, when the PMC-RA1, -RA2 or -RB is used, both the
FA Writer and PMC Writer can be used. When the PMC-RC is used,
only the FA Writer is available.
When the PMC-RA1, -RA2 or -RB 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 PMC-RA1, -RA2, -RB or
RB2 is available. To use a 1MB EPROM (27C1024), the 1M
EPROM adapter (A13B0147-B001) 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 PMC-RA1, -RA2 or -RB,
the EPROM adapter (1MB) for the FA Writer is required. When
the FA writer is used with the PMC-RC, the ROM module
adapter is required.

580
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

4 OPERATION

581
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.1 Various operations of FAPT ladder are done onthe specified screen.
GENERAL Fig. 4.1 shows the relation between various operations and corresponding
screens.

Power on SYSTEM P series power on

SYSTEM P Visual identification characters

FAPT ladder system floppy loading


FAPT ladder
system loading

Visual identification characters


FAPT ladder
R key menu screen
R0, R1, R2, R3

Key-in NL Key-in R3 Key-in R0 Key-in R1 Key-in R2


Ladder diagram
REQUEST= Parameter screen Unused
direct editing

Key-in NL 00 or NL key-in
Menu screen

01 key-in 02 key-in 03 key-in 04 key-in 05 key-in 06 key-in 07 key-in 08 key-in 09 key-in 10 key-in

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 key-in

00 or NL key-in after
E NL key-in when an alarm occurred or when parameter set-ting.
processing was aborted halfway.
Automatic return when processing has been
terminated normally.

4.1(a) Relation between various operations and screens

582
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

START

SYSTEM P power
on

Load system floppy


Set necessary system parameters.

Sequence program input, title,


symbol, comment, message
I/O module

Editing

Debug using PMC-RAM

NO
Is dedug
completed?

YES

Write a sequence program into


EPROM for PMC or ROM
module

SYSTEM P series
power off

Operate the system after loading


EPROM for PMC or ROM module
to CNC

END

4.1(b) Outline of operation

583
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.2
PREPARATION
BEFORE OPERATION

4.2.1 The system floppy disk contains the system of FAPT LADDER for
System floppy PMC-RA1/RA2/RB/RB2/RC.

4.2.2 To apply the FAPT LADDER system for PMC-RA1/RA2/RB/RB2/RC


Limitations with the to the SYSTEM P Mate will overlay each of the following functions.
SYSTEM P Mate  The function to display the ladder diagram on the screen and output it
on an external printer, which is operated using the menu numbers 03 and
F4 or 04 to F10.
 The function to input/output the ROM formatted program and make its
comparison, which is operated combining the menu numbers 03, 05 or
07 and F2, F7, F8, F9, F13 or F14.
 Ladder diagram direct editing, which is operated by pressing <R1> key
on the R key menu screen and executing ladder diagram direct editing.
The SYSTEM P Mate has less memory than the SYSTEM P Mark II and
cannot load the system program on the system floppy disk at a time. The
remainder left unloaded will be loaded automatically when each of the
functions above is used. However, only in the case the system floppy disk
has not been installed into the drive, the message ”MOUNT SYSTEM
FLOPPY DISK” is displayed as follows:
SET SYSTEM FD & KEY I ’OK’ OR ’NO’
FDD =OK ODRIVEJ (VOL =01)
FDD =
Install the system floppy disk into the drive #0 or #1 and key in ’OK 0’
or ’OK 1’. If the system floppy disk is installed into the drive #0, it is
possible to key in only ’OK’ without specifying the drive number.

4.2.3 FAPT 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 operator’s
manual for SYSTEM P series.
The following describes the loading direction of the floppy.
Loading direction of floppy

584
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

Drive No. 0

Drive No. 1

CRT

4.2.3 Loading direction of floppy

4.2.4 (1) Turn on the SYSTEM P series power supply.


FAPT LADDER system (2) Set the system floppy or prepared exclusive system floppy into the
floppy disk.
floppy loading
(3) Continue depressing <LOAD> key for 2 to 3 seconds on the
keyboard.
(4) The system loading is started. After this system loading, ”FAPT
LADDER” is displayed on the CRT screen and R key menu also
appears.
This R key menu screen is shown in Fig. 4.2.6.
After this screen is displayed, take out system floppy or exclusive
system floppy.

4.2.4 R key menu screen

585
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.2.5 A programmer menu screen (hereinafter called menu screen) is displayed


Programmer menu by pressing <R0> key from the R key menu screen. Key in a menu number
to be executed Fig. 4.2.7 shows the menu screen.
screen
The parameter setting screen is displayed by pressing <R0> key just after
loading the 1/2 system floppy.
Set parameters as required, referring to 4.2.6.
Proceed to the menu screen by pressing <NL> key.
Parameters are displayable and settable from the menu screen, too.
Programmer menu screen (The programmer menu and function keys are
displayed.)
The following figure shows the screen to be displayed when the
programmer key (R0) is pressed.
The programmer menu, function keys with I/O indication, and statuses
are displayed on this screen.

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, PMC-RAM OR ROM.
04 OUTPUT LADDER PROGRAM TO PTP. FD OR PRINTER.
05 OUTPUT ROM DATA TO FD, PMC-RAM OR ROM.
06 COMPARE LADDER PROGRAM WITH PTR OR FD.
07 COMPARE ROM DATA WITH FD, PMC-RAM OR ROM.
Capacity of area
08 (UNUSED) used for symbols
09 CLEAR OF TITLE, SYMBOL, LADDER OR MESSAGE DATA. and comment data

10 PARAMETER SET. A period of the


00 END EDIT & DISPLAY. sequence program

F1 : PTR (I) . F4 : GRP (O) SYMBOL =00.0KB SCAN TIME=OOOMS Capacity of a


ladder program
F2 : FD (I) . F10 : FPRT (O) LADDER =00.0KB
F5 : PRT (O) MESSAGE=00.0KB Capacity of
message data
F6 : PTP (O) ROM MODULE=A
The number of the
F7 : FD (O) END SEQ.NO=00000 last step in the
F8 : PMC (I/O) ERR SEQ.NO=00000 sequence program

F9 : ROM (I/O) ERR BLOCK =00000 ALARM=00 The number of a


step at which an
error occurred
The number of an
error occurred
NO. =
The number of
blocks in which an
error was detected
Enter a menu number.

4.2.5 Programmer menu screen

586
B–61863E/09 V. 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.8), 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.

NO. ITEMS CURRENT PARAMETERS

01 (UNUSED) ;
02 COUNTER DATA TYPE ; BINARY
03 OPERATOR PANEL ; NO
KEY/LED ADDRESS ; /
KEY/LED BIT IMAGE ADRS. ; /
04 PMC TYPE ; PMC-RC
05 LANGUAGE ORIGIN ; 000000H
06 (UNUSED) ;
07 LADDER EXEC. ; 100% (1-150%)
08 (UNUSED) ;
09 IGNORE DIVIDE CODE ; NO
10 (UNUSED) ;
00 NOTHING TO SET
; ROM WRITER=FA WRITER
NO.=

4.2.6 Parameter setting screen (PMC-RC)

2 Key in “00 <NL>” to proceed to the menu screen, if displayed


parameters are employed as they are.
3 Set parameters according to the following procedure when it is
necessary to change the displayed parameters.
No operation is required for an item in which no change is required.
a) Set a counter data type. The initial value is set to the binary
format.
1 Key in “02 <NL>”
2 Select a binary or BCD notation, and key in the
corresponding number “@@<NL>”.
b) OPERATOR PANEL
Specifies whether the operator’s panel is used.
The initial value is already set to NO (unused).
1 Enter 03 and press the <NL> key.
2 The following message appears at the lower left of the screen.
EXAMPLE 0:NO, 1:YES
OP PANEL=
3 To disable the operator’s panel, enter 0 and press the <NL>
key. To enable the operator’s panel, enter 1 and press the
<NL> key.

587
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4 Selecting YES in step 3 displays the following message:


SET KEY/LED ADDRESS (KEY ADRS, LED ADRS.)
ADDR=
5 Enter a Y-address to specify the KEY address and a Y-address
to specify the LED address. For example, enter X0,Y0 and
press the <NL> key.
6 Entering data as shown above displays the following
message:
SET KEY/LED IMAGE ADDRESS (KEY ADRS, LED
ADRS.)
ADDR=
7 Enter addresses other than X- and F-addresses. For example,
enter R0,R10 and press the <NL> key.
c) Select the type of PMC.
The initial value has been set to the PMC-RB or -RA1.
1 Type 04 and press the <NL> key.
2 The following message appears at the lower left of the screen:
EXAMPLE 0:PMC-RB, 1:PMC-RC
PMC TYPE=
or
EXAMPLE 0:PMC-RA1, 1:PMC-RA2
PMC TYPE=
3 To select the PMC-RB or -RA1, enter 0 and press the <NL>
key. To select the PMC-RC or -RA2, enter 1 and press the
<NL> key.
4 When the type of PMC is changed, all data items including
ladder data are cleared. The following message is displayed
for confirmation:
CLEAR ALL DATA TO CHANGE PMC TYPE (0:NO,
1:YES)
CLEAR/KEEP=
5 To cancel changing the type of the PMC, enter 0 and press the
<NL> key. To change the type of the PMC, enter 1 and press
the <NL> key.
d) LANGUAGE ORIGN (for PMC-RC only)
The initial value is already set to 0.
1 Enter 05 and press the <NL> key.
2 Enter @@@@@@ (hexadecimal) and press the <NL> key
to specify the first address of the TCB in a C program.
e) LADDER EXEC (only for PMC-RC)
The parameter value for LADDER EXEC is fixed to 100% for the
PMC-RB. For the PMC-RC, the parameter value can be set as
follows.
1 key in “07 <NL>”.
2 Key in “@@@ <NL>” by numeric characters within a range
of 1% to 150%.
After setting, key in “@@ <NL>” or “<NL>” to set the menu screen.
This parameter is not supported for PMC-RA1, PMC-RA2, PMC-RB
or PMC-RB2.

588
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

f) IGNORE DIVIDE CODE (only for PMC-RB/RC)


It is possible to select whether to execute a ladder program by
dividing it into smaller units or without dividing it.
This parameter can be specified as follows for PMC-RB and
PMC-RC:
1 Enter 09 and press the <NL> key.
2 To execute the ladder program by dividing it into smaller
units, enter 0 and press the <NL> key. To execute it without
dividing it, enter 1 and press the <NL> key.
This parameter is not supported for PMC-RA1 or PMC-RA2.
The ladder program is always executed without being divided.

589
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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,
Individual screens are reset to the menu screen by ”E <NL>”. In this
comment, message, I/O
paragraph, only the input and editing operation of each data from the
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.

Menu screen Key in ’1 NL ’

EDIT screen
Ladder program list R0
screen
R0

Symbol & comment list


Title data list screen
screen

R0
R0
I/O module data list Message data list
screen screen
R0

4.3.1(a) Switching sequence of data display screen

*** TITLE DATA LIST ***


01 MACHINE TOOL BUILDER NAME
02 MACHINE TOOL NAME
03 PMC & NC NAME FANUC PMC-MODEL RB & F16MA
04 PMC PROGRAM NO.
05 EDITION NO.
06 PROGRAM DRAWING NO.
07 DATE OF PROGRAMMING
08 PROGRAM DESIGNED BY
09 ROM WRITTEN BY
10 REMARKS

PMC CONTROL PROGRAM SERIES : 4061 EDITION : 01

MEMORY USED : 00.0 KBYTE SCAN TIME : 008 MSEC

0003 ALTERED
EDIT

4.3.1(b) Title data list screen

590
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

a) MACHINE TOOL BUILDER NAME


Set the machine tool builder name (max. 32 characters).
Key in “A1 @@@..........@@@ NL”.

Machine tool builder name to be set


Example) “A1 ***MACHINE(LTD) NL”
b) MACHINE TOOL NAME
Set the machine tool name (max. 32 characters).
Key in “A2 @@@..........@@@ NL”.

Machine tool name to be set


Example) ”A2 ***MACHINE NL”
c) CNC & PMC NAME
Set the CNC and PMC name (max. 32 characters).
Key in “A3 @@@..........@@@ NL”.

NC and PMC name to be set


Example) “A3 F16MA.&.PMC-N NL”
d) PMC PROGRAM NO.
Set the sequence program number (max. 4 characters).
Key in “A4 @@@@ NL”.

Number to be set
Example) “A4 0001 NL”
e) EDITION NO.
Set the edition number (max. 2 characters).
Key in “A5 @@ NL”.

Edition number to be set


Example) “A5 G NL”
f) PROGRAM DRAWING NO.
Set the sequence program drawing number (max. 32 characters).
Key in “A6 @@@...........@@@ NL”.

Drawing number to be set


Example) “A6 0001-0002-000A NL”
g) DATE OF PROGRAMMING
Set the sequence programming date (max. 16 characters).
Key in “A7 @@..........@@ NL”.

Date to be set
Example) “A7 1990.10.23 NL”

591
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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 MEMO-COMMENT 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 easy-to-understand 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).

592
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

d) Delete
i) Delete every line
Key in “D@@@ NL”.

Line number to be deleted


ii) Sequential delete
Key in “D@@@@,@@@ NL”.
Delete end line number
Delete start line number
e) Search
i) Search by line number
Key in “L@@@@ NL”.

Line number to be searched


ii) Search by symbol name
Key in “L@@@@ SYMNAM NL”.
Symbol name to be searched
Line number with which the search is to
be started
iii) Address search
Key in “L@@@@ F0.1 NL”.
Address to be searched
Line number with which the search is to
be started
(3) Message data (MESSAGE DATA LIST screen)
Message data are alarm and operator message data to be displayed by
using functional instruction DISPB (SUB 41).

***MESSAGE DATA LIST***


0001 A00.0 0123456··········89XY Message data
0002 ABCD······
Line number 0003
0004
0005
0006
0007
0008
0009 A00.1
·
Address ·
·
EDIT =

4.3.1(c) Message data list screen

Maximum 255 characters are entered to one address as message data.


Input message data every maximum 32 characters/line by dividing
them into 8 lines.

593
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

a) Input and alter from keyboard


Set message data in the alter format for both entry and alter. All
characters are settable so long as they can be keyed in from the
SYSTEM P series keyboard.
Key in message data every line in the following format.
“A @@@ MESSAGE-DATA1 NL”.
Message data (maximum 32 characters)
Line number (maximum 3 digits)

A means alter.
b) Delete
Delete message data every line in the following format.
Key in “D@@@ NL”.

Line number to be deleted


c) Search
Search message data by address.
“A@@.@ NL”

Address of message data to be searched


(4) I/O module data (I/O MODULE DATA LIST screen)
I/O module data are used for determining addresses in a sequence
program of each I/O module.

***I/O MODULE DATA LIST***


ADDRESS GROUP BASE SLOT NAME
X000
X001
X002
X003
·
·
·
·

4.3.1(d) I/O module data list screen

a) Input and alter from keyboard


Set I/O module data in the following format when inputting or
altering them from the keyboard.
Key in I/O module data in the format of:
“@@@ @ @ @@ @@@@@ NL”
I/O module name
(maximum 5 digits)
Slot number (maximum 2 digits within
a range of 1 to 10)
Base number (1 digit within a range of 0 to 3)
Group number (1 digit within a range of 0 to 15)
Address (input X0, Y0, ...)

594
B–61863E/09 V. 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, ...)

Notes
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;

address group base slot name

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).

595
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.3.2 Input a sequence program from the keyboard.


Programming from Set the EDIT screen (LADDER PROGRAM LIST screen).
keyboard Press menu number ”1 <NL>” on the menu screen, or press <R0> key on
the symbol or I/O module screen. Turn off all F keys at this time.
Key in ”IS0 <NL>” (Insert Succession) to set the sequential insert mode,
and then, input a sequence program.
”*IS MODE*” is displayed at the lower right part of the screen. key in
desired instructions sequentially in the following format.

(Key in sequence) 1 IS0 <NL> (Sequential input start command)


 *IS MODE* is displayed at the lower right part of the screen.
2 R X0.1 <NL>
3 W R1.1 <NL>
4 IE <NL> (Sequential input end command)
 *IS MODE* display disappears from the lower right part of the
screen.

Notes
1 Instructions to be keyed in are entered by abbreviated
symbols as shown above for the purpose of preventing a
key-in failure and improving the operability by reducing the
number of key-in 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.

Usually do not program as shown below:

Wrong program

596
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

Table 4.3.2 Keyboard input format and screen display format

Input format from keyboard Display format on screen


(Simple symbol) (Full name)
R X0. 1 RD X0. 1
RN X0. 2 RD. NOT X0. 2
RNS X0. 3 RD.NOT.STK X0. 3
W R0. 4 WRT R0. 4
WN R0. 5 WRT.NOT R0.5
O Y1. 0 OR Y1. 0
ON Y1. 1 OR.NOT Y1.1
OS OR. STK
AG2. 0 AND G2. 0
AN G2. 1 AND.NOT G2. 1
AS AND. STK
T 5 TMR 5
D F0 DEC F0
S 5 SUB 5
P 1234 (Parameter)

4.3.3 Correct a generated sequence program by alter operation.


Alter Set the EDIT screen (LADDER PROGRAM LIST screen) first and
display the generated source program. Turn off all F keys at this time.
a) Alter every instruction
Key in “A@@@@@ R X0.1 NL”
Instruction to be altered
Line number of the instruction to be altered
(maximum 5 digits)
A means alter.
b) Sequential alter
i) Key in ”AS@@@@@ NL” (Alter Succession) to set the
sequential alter mode.
@@@@@: Line number to be sequentially altered (maximum
5 digits) “AS MODE” is displayed at the lower right part of the
screen.
ii) Instructions are sequentially altered starting with the Line
specified by @@@@@, each time the key-in operation is done
in the “R X0.1 <NL>” format.
iii) After sequential alter, key in “AE <NL>” (Alter End).
Example) Example of sequential alter of sequence program
For altering all step numbers 20 to 23;
(Key in sequence)
1 AS20 <NL> (Sequential alter start
command)
 *AS MODE* is displayed at the
lower right part of screen.
00020 RD Y0.1 2 R Y0.1 <NL>

597
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

00021 WRT R0.1 3 W R0.1 <NL>


00022 RD F1.1 4 R Y1.2 <NL>
00023 WRT R1.1 5 W R1.2 <NL>
6 AE <NL> (Sequential alter end
command)
 *AS MODE* display disappears
from the lower right part of the
screen.
c) Wiring change function
All of address used in Ladder Program is changed to a new
address independently of a command. Only bit address can be
changed.
Type in ’CA Address 1 Address 2 <NL>
(Symbol can not be changed)
A new address
A previous address to be changed
Abbreviation of CHANGE ALL
Example) ’CA R0.1 R1.2 <NL>’
— All ”R0.1” used in Ladder Program is changed
to ”R1.2”.

Note
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.

598
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

00001 SUB1 00001 SUB1


00002 RD X0.1 00002 RD X1.7
00003 WRT R1.3 00003 WRT R1.2
00004 RD R1.2 00004 RD R1.2
00005 WRT R1.3 00005 WRT R1.3
00006 RD X0.1 00006 RD X1.7
00007 WRT R1.4 00007 WRT R1.4
00008 RD R1.3 00008 RD R1.2
00009 SUB 8 00009 SUB 8
00010 1111 00010 1111
00011 1111 00011 1111
00012 X0 00012 X0
This does not apply to byte address.
00013 R2 00013 R2
00014 SUB 2 00014 SUB 2
00015 SUB 48 00015 SUB 48

‘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

EDIT= _ EDIT= _ EDIT= _

Abnormal end of Normal end of


changing. changing?
1 ‘CA R1.2 X0.1 NL’ Alarm No. 09 2 ‘CA X0.1 R1.2 NL’

As shown above, an alarm No. 09 occurs when a ladder program i is


changed by an operation of 1 and a ladder program ii will be produced.

599
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

Then, it may be impossible to return a ladder program ii to a ladder


program i by an operation 2.
(Special use of wiring All address used in ladder program of specified line number of
change function) subsequent, is changed a new address independently of a command.
Only bit address can be changed.
Operate carefully with enough recognition of above.
’C@@@@@ Address 1 Address 2 NL’
(Symbol cannot be changed)
A new address
A previous address to be changed
Change start line number

Example) ’C7 R0.1 R1.2 <NL>’


— All ”R0.1” used in ladder program of 7th line or
subsequent, are changed to ”R1.2”.

4.3.4 Insert a new program to the generated sequence program.


Insert Set the EDIT screen (LADDER PROGRAM LIST screen) first.
a) Insert every instruction

Key in “I@@@@@ R X0.1 NL”.


Instruction to be inserted
Line number just before the instruction to be
inserted (maximum 5 digits)
I means insert.

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 key-in
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.

600
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

00020 RD Y200.0 2 R.S R200.1 <NL>


00021 WRT R300.7 3 R.S R200.2 <NL>
4 R 5 <NL>
5 P 9 <NL>
6 IE <NL> (Sequential insert end
command)
 *IS MODE* display disappears
from the lower right part of the
screen.

4.3.5 i) Delete every instruction


Delete Key in “D@@@@@ NL”.
Line number to be deleted
(maximum 5 digits)
D means delete.
ii) Sequential delete
Key in “D@@@@@,@@@@@ NL”.
Line number to complete delete
(maximum 5 digits)
Line number to start delete

4.3.6 Search a sequence number by a line number or instruction


Location search i) Search by line number
Key in “L@@@@@ NL”.
Line number to be searched
(maximum 5 digits)
L means location search.
ii) Search by instruction (Search by address)
Key in “L@@@@@ R X0.1 NL”.
Instruction to be searched
Line number with which the search is to be started

Note
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.

601
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

iii) Search by instruction (Search by symbol)


Key in “L@@@@@ R ACT NL”.
Instruction to be searched
(ACT: Symbol name)
Line number with which the search is to be started

Note
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.

iv) Search by the bit address or its symbol name


The specified address (only bit address) or its symbol name is
searched from the specified line number independently of a
command.
Type in ’L@@@@ ????? NL’.
Bit address or its symbol name
Search start line number

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.

Example) ’L R R0.1 <NL>’


— Search the command ”RD R0.1” from 2nd line
displayed on the screen.
’L R0.1 <NL>’
— Search the bit address ”R0.1” from 2nd line displayed
on the screen.
’L SYMBOL <NL>’
— Search the symbol name ”SYMBOL” defined at bit
address from 2nd line displayed on the screen.

602
B–61863E/09 V. 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.

Scroll direction Key

Left (Left ladder on screen is ² NL


displayed.) 4 *** LADDER DIAGRAM ***

Right (Right ladder on screen is 6 NL


displayed.) X0.0 X0.1 Y 0.0
³
X1.0 X1.1 Y 0.1
Upper (Upper ladder on the ° NL
screen is displayed.) 8

Lower (Lower ladder on the 2 NL


screen is displayed.) ± TMR 1
X2.0 R 40.7
Upper half page X2.1
R2 NL
EDIT=
Lower half page
R2 NL

4.3.7 Ladder diagram display screen

603
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

Example)

* LADDER DIAGRAM *

1 From ’EDIT=’ IN the left figure, key in as follows.


’ISO NL’
END1 ’R X1.0 NL’
’W Y1.0 NL’
’IE NL’

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.8 Editing command explanation screen can be displayed from Ladder


Help screen program edition screen. (LADDER PROGRAM LIST or LADDER
DIAGRAM)
key in ’H <NL>’ to display the following screen.

*** HELP LIST ***


(@@@@@=SEQUENCE NO.)
<INSERT>
I@@@@@ OPERATION CODE : INSERT
IS@@@@@ : INSERT SUCCESSION START
IE : INSERT SUCCESSION END
<ALTER>
A@@@@@ OPERATION CODE : ALTER
AS@@@@@ : ALTER SUCCESSION START
AE : ALTER SUCCESSION END
<DELETE>
D@@@@(,@@@@@) : DELETE (SUCCESSION END)
<LOCATION SEACH>
L@@@@@ : SEQUENCE NO. SEARCH
L@@@@@ OPERATION CODE : OPERATION CODE SEARCH
L@@@@@ <ADDRESS OR SYMBOL> : ADDRESS OR SYMBOL SEARCH
L OPERATION CODE : SEARCH FROM DISPLAY 2ND LINE
L <ADDRESS OR SYMBOL> : SEARCH FROM DISPLAY 2ND LINE
F : FIND FROM DISPLAY 2ND LINE
<CHANGE ALL ADDRESS>
CA ADDRESS1 ADDRESS2 :CHANGE ALL ADDRESS1 TO ADDRESS2

Key in ”<NL>” to return it to ladder program editing screen.

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.

604
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

4.4
INPUT OF PROGRAM

4.4.1 Read source programs (parameters, titles,


Source program symbols, ladders, messages, and I/O modules) from an input unit
designated by an F key on the menu screen, and load them into SYSTEM
P series memory.
(1) Paper tape format of source programs
Paper tape format of source programs is of ISO code. No EIA code
paper tape can be used.
a) Parameter date

Feed % @0 CR ±±±±± % CR Feed

b) Title date

Feed % @1 CR 1 MACHINE TOOL CR ±±±±± % CR Feed

c) Symbol date

Feed % @2 CR F0.1 SYMBOL COMMENT CR ±±±± % CR Feed

d) Ladder program

Feed % @3 CR RD X0.1 CR ±± WRT WORK01 CR ±± % CR Feed

e) Message date

Feed % @4 CR A0.0 MESSAGE = 1 CR ±± A24.7 MESSAGE = 24 CR %


WRT WORK01 CR

CR ~ Feed

f) I/O module date

Feed % @5 CR X 0 0 0 5 ID32C CR ±±±±± % CR Feed

605
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

(2) Input method from PPR reader


1 Turn on F1 key.
2 Key in menu number ”2 <NL>”.
3 The screen is switched, and the entry of a source program is
started.
4 After the source program has been normally entered, the screen
is automatically reset to the programmer menu screen. If an error
was detected during entry, ”PART-” is displayed on the lower left
part of the screen. Check error contents, and key in ”E NL”. The
screen is reset to the programmer menu screen.
(3) Entry method from floppy
1 Turn on F2 key.
2 Key in menu number ”2 <NL>”.
3 The following message is displayed at the lower part of the screen.
SET FD & KEY IN ”OK” ”KILL” OR ”NO”
FD0=OK <DRIVE> <@NAME OR : NUMBER>
FD0=
Fig. 4.4.1 shows the menu screen in the floppy entry mode.
[Screen when source programs are input form floppy]

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. PMC-RAM OR ROM.
04 OUTPUT LADDER PROGRAM TO PTP. FD OR PRINTER.
05 OUTPUT ROM DATA TO FD. PMC-RAM OR ROM.
06 COMPARE LADDER PROGRAM WITH PTR OR FD.
07 COMPARE ROM DATA WITH FD. PMC-RAM 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 TIME-OO8MS
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

Key in file names to be input from floppy as shown in the example.

4.4.1 Floppy input menu screen

4 Insert the floppy into the disk, and enter the following data.
Characters in < > need not be keyed in.
OK @LADDER1 NL
File name (provisional file name)
5 The screen is switched, and the entry of source programs is started
from the floppy.

606
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

6 The following procedure is the same as in 4.4.1 2) 4.


7 A file name is inputtable up to maximum 17 characters. All
characters on the SYSTEM P series keyboard are employable for
this entry. The kinds of capitals are not limited.
”@” (at mark) shows a file name input identifier. Key in it just before
the file name as shown in example $$ without fail.

Note
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.

4.4.2 (1) Transfer of sequence program from the PMC-RA1/RA2/RB/RC


ROM format program The created sequence program is transferred from the
PMC-RA1/RA2/RB/RC.
First, connect the SYSTEM P Series and the CNC with a
Reader/Puncher interface cable. (Refer to Appendix 1 for details of
the cable.) For the method and location of connection, refer to the
section ”3.2 Configuration devices and their connection”. In the
following procedure, operations 1 to 6 are NC side operations.
The keys enclosed in [ ] are soft keys.
1 Pressing soft keys [SYSTEM] and [PMC] displays the PMC
screen. Steps 2 to 4 below must be performed when [I/O] is not
displayed on the PMC screen. For a 9-inch CRT, press soft key
[NEXT] to check that [I/O] is not on the screen.
2 Pressing soft keys [PMCPRM] and [KEEPRL] on the PMC
screen displays the keep relay setting screen.
3 Set K17.1 to 1 on the keep relay setting screen.
4 Pressing soft key [RETURN] displays the PMC screen.
5 On the PMC screen, pressing soft key [I/O] displays the I/O
screen. For a 9-inch CRT, press soft key [NEXT] before pressing
soft key [I/O].
6 Pressing soft key [EXEC] on the I/O screen puts the system in the
EXECUTING state.
7 Turn on the F8 key on the SYSTEM P series menu screen. (Turn
on the F12 key at the same time when the C-language program is
included.)
8 If the menu number ‘3 [NL]’ is keyed in, the message shown
below will be displayed. PMC-RA1/RA2/RB/RC is not
displayed. Key in the type of ROM module to be used from now
on. (Refer to Note 1 when selecting ROM module B, C or D.)

607
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

SELECT THE TYPE OF ROM MODULE ACCORDING


TO THE FOLLOWING NO.
ROM MODULE 0:A 1:B, 2:C, 3:D
NO.=
By means of the above-described operations, the program transfer
is started. The transfer screen is displayed on the SYSTEM P
Series screen and the transfer counter counts. The screen returns
to the menu screen after the end of transfer.
(2) Input from a floppy disk
1 Turn on the F2 key. (Turn on the F12 key at the same time when
the C language program is included.)
2 If the menu number ‘3 [NL]’ is keyed in, the message shown
below will be displayed. PMC-RA1/RA2/RB/RC is not
displayed. Key in the type of ROM module to be used from now
on. (Refer to Note 1 when selecting ROM module B, C or D.)
SELECT THE TYPE OF ROM MODULE ACCORDING
TO THE FOLLOWING NO.
ROM MODULE 0:A 1:B, 2:C, 3:D
NO.=
3 The following message is displayed at the lower left part of the
screen.
SET FD & KEY IN ‘OK’,‘KILL’ OR ‘NO’
FD=OK <@FILE NAME>
FD0=OK <DRIVE><@NAME OR : NUMBER>
FD0=
4 Insert the floppy into the disk and enter the following data
5 ’OK @LADDER2 [NL]
File name
6 The screen is switched and the ROM format program is started
from the floppy disk.
7 After reading is ended, the screen is automatically changed to the
program menu screen if no problem occurs. When an error is
detected during reading, ’PART’ = is displayed on the left lower
part of the screen. Check the error and key in ’E [NL]’ to return
the screen to the program menu screen.
(3) Method of inputting from the FA writer and PMC writer
1 Check the setting of the ROM writer. (See Section 3.4, ”Setting
of I/O Device.”)
2 Put the FA Writer in the REMOTE mode by the
[REMOTE/LOCAL] key before using it.
3 Turn on the F9 key. (Turn on the F12 key at the same time when
the C language program is included.)
4 If the menu number ‘3 <NL>’ is keyed in, the message shown
below will be displayed. PMC-RA1/RA2/RB/RC is not
displayed. Key in the type of ROM module to be used from now
on. (Refer to Note 1 when selecting ROM module B, C or D.)
SELECT THE TYPE OF ROM MODULE ACCORDING
TO THE FOLLOWING NO.
ROM MODULE 0:A 1:B, 2:C, 3:D
NO.=

608
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

5 The screen is switched and the message shown below is


displayed.
SET EPROM OR ROM MODULE & KEY IN ‘OK’ OR
‘NO’
KEY IN=
6 Check the above message. For the PMC-RA1/RA2/RB, insert
the EPROM for the PMC into the FA Writer or PMC Writer. For
the PMC-RC, insert the ROM module for the PMC into the FA
Writer or PMC Writer. Note, however, that ROM modules are not
available with the PMC Writer.
7 Key in ’OK <NL>’ or ’NO <NL>’.
When ’OK <NL>’ is keyed in, the sequence program written into
the EPROM and ROM module for PMC is entered into P-G
memory.
The screen returns to the menu screen if it ends with no problems
occurring.
When ’NO <NL>’ is keyed in, the screen returns to the menu
screen.

Note
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.

609
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.5
OUTPUT OF
PROGRAM

4.5.1 By selecting ’04 <NL>’ (OUTPUT LADDER PROGRAM) from menu


Source program no.4, the following detail menu is displayed.

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.

610
B–61863E/09 V. 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.)

611
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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

* ALL ADDRESS ’ALL’


* HEAD CHARACTER ’G’
* ADDRESS ’G14.6’
* ADDRESS TO ADDRESS ’G14.6,R142.5’
* ADDRESS TO END ’G14.6-END’

* END ; PUSH ’NL’ KEY

ADDR=

Notes
 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.
 If R1 key is pressed when each data is being output to the
FANUC printer (External printer), the output is cancelled.

(9) OUTPUT CROSS REFERENCE (SEQUENCE NO)


Addresses (symbols, comments) are printed with cross reference
Nos. by FANUC external PRINTER.
These Nos. correspond to the Mnemonic format list (screen) or
Ladder diagram (RD command line number).
Key in above detailed memo No. ’09 <NL>’ and turn F10 key on. The
screen changes to display the key in example and ’ADDR=’ as below.
Key in addresses to be output according to examples.
Key in example Address to be output
ALL ALL <NL> All addresses (G,F,Y,X,A,R,T,K,C,D
in order)
Address initial R <NL> All address with the specified initial
Bit address X1.0<NL> Only bit address specified address
Byte address R58 <NL> Bit 0 - 7 of specified
Address range specification F8.0, X7.2<NL> Specified addresses in order of
G,F,Y,X,A,R,T,K, C,D
Specify X0.2-END<NL> All address after specified address

612
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

*** CROSS REFERENCE LIST ***


PAGE=1
ADDRESS SYMBOL COMMENT DATA

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

Notes
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.

4.5.2 A 12-inch chart is also applicable to the FANUC printer (external printer).
Paper command (The standard chart size is 11 inches.) Enter the command for changing
the chart by the following operation.
(1) Press [R3] key from the R key menu screen.
(2) ’REQUEST=’ is displayed at the lower left part of the screen.
(3) Key in ’PAPER <NL>’.
(4) The following message is displayed at the lower left part of the screen.
KEY IN NUMBER OF PAPER LENGTH
EXAMPLE 11-INCH;0,12-INCH;1.
LINE NUM.=
(5) Key in ’0 <NL>’ for 11-inch chart, or ’1 <NL>’ for 12-inch chart.

613
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.5.3 (1) Transfer of sequence program into PMC-RA1/RA2/RB/RC


ROM format program A generated sequence program is transferred into
PMC-RA1/RA2/RB/RC.
Connect SYSTEM P series to CNC by using a Reader/Puncher
interface cable. (For this cable, see Appendix 1.) for the connection
method and places, see Section 3.2.
Steps 1 to 6 show the operation on the CNC side.
1 Pressing soft keys <SYSTEM> and [PMC] displays the PMC
screen. Steps 2 to 4 below must be performed when [I/O] is not
displayed on the PMC screen. For a 9-inch CRT, press soft key
[NEXT] to check that [I/O] is not on the screen.
2 Pressing soft keys [PMCPRM] and [KEEPRL] on the PMC
screen displays the keep relay setting screen.
3 Set K17.1 to 1 on the keep relay setting screen.
4 Pressing soft key [RETURN] displays the PMC screen.
5 On the PMC screen, pressing soft key [I/O] displays the I/O
screen. For a 9-inch CRT, press soft key [NEXT] before pressing
soft key [I/O].
6 Pressing soft key [EXEC] on the I/O screen puts the system in the
EXECUTING state.
7 Turn on F8 key from the SYSTEM P series menu screen. (Also
turn on F12 key when the C language program is included.)
8 Key in menu number ”5 <NL>”.
Now, the program transfer is started.
In SYSTEM P series, the transfer screen is displayed and the
transfer counter is counted up. After transfer, the screen is reset
to menu screen. In CNC screen, the COUNTER display is
counted up.
*Procedure when a i) When an alarm 31 occurs on SYSTEM P series screen;
program cannot be Cause 1 : Reader/Puncher interface cable is defective.
transferred from Remedy : Use the specified cable.
SYSTEM P series to RAM Cause 2 : Reader/Puncher interface connector is not
connected to correct channel SYSTEM P series.
of PMC Remedy : Connect the connector correctly.
ii) When the transfer counter of SYSTEM P series screen is
counted up and normally terminated, but data are not
transferred to the PMC RAM correctly;
Cause 1 : Reader/Puncher interface connector is not
connected to CNC.
Remedy : Connect it correctly.
Cause 2 : CNC screen is not set to ”I/O of PMC” screen.
Remedy : Set the I/O screen by the soft key.
Cause 3 : An error occurs in ACI channel due to a certain
cause.
Remedy : Turn off the power supply once, and turn it on
again.
(2) Output method to floppy
1 Turn on F7 key. (Also turn on F12 key when the C language
program is included.)

614
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

2 Set the floppy to the disk.


3 Key in menu number ”5 <NL>”.
4 The screen is switched and the following message is displayed:
SET FD & KEY IN ”OK”,”KILL” OR ”NO”.
FD0= OK <INT OR ADD><P OR NP,></DATE,>
<DRIVE>@NAME
FD0 =
When loading data starting with the start of the floppy, specify
INT. When loading data after the loaded files, specify ADD. After
outputting all data, the screen is reset to the program menu screen.
The menu screen is also reset by keying in ”NO <NL>”.
(3) Method of outputting data to FA writer or PMC writer (EPROM for
PMC/ROM module write)
1 Check the setting of the ROM writer. (See Section 3.4, ”Setting
of I/O Device.”)
2 Put the FA writer in the REMOTE mode by the
[REMOTE/LOCAL] key before using it.
3 Turn on F9 key. (Turn on F12 key when the C language program
is included.)
4 Key in menu number ”5 NL”.
5 The screen is switched to the title screen, and the following
message is displayed.
SET EPROM OR ROM MODULE & KEY IN ”OK” OR
”NO”.
KEY IN =
Check the above message. For the PMC-RA1/RA2/RB, insert
the EPROM for the PMC into the FA Writer or PMC Writer. For
the PMC-RC, insert the ROM module for the PMC into the FA
Writer or PMC Writer. Note, however, that ROM modules are not
available with the PMC Writer.
6 Key in ”OK <NL>” or ”NO <NL>”.
When ”OK <NL>” is keyed in, data are output from the SYSTEM
P series memory to the EPROM for PMC or ROM module.
After normal end, the screen is reset to the menu screen.

615
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

*** TRANSFER ROM DATA TO PMC WRITER ***

01 MACHINE TOOL BUILDER NAME


02 MACHINE TOOL NAME
03 PMC & NC NAME
04 PMC PROGRAM NO
05 EDITION NO
06 PROGRAM DRAWING NO
07 DATE OF PROGRAMING
08 PROGRAM DESIGNED BY
09 ROM WRITTEN BY
10 REMARKS

PMC CONTROL PROGRAM SERIES : 4061 EDITION :01

MEMORY USED : 00.0 KBYT SCAN TIME : 008 MSEC

SET EPROM OR ROM MODULE & KEY IN ’OK’ OR ’NO’


KEY IN =

*** TRANSFER ROM DATA TO PMC WRITER ***

01 MACHINE TOOL BUILDER NAME


02 MACHINE TOOL NAME
03 PMC & NC NAME
04 PMC PROGRAM NO
05 EDITION NO
06 PROGRAM DRAWING NO
07 DATE OF PROGRAMING
08 PROGRAM DESIGNED BY
09 ROM WRITTEN BY
10 REMARKS

PMC CONTROL PROGRAM SERIES : 4061 EDITION :01


MEMORY USED : 00.0 KBYT SCAN TIME : 008 MSEC
Display mode
BLANK : Blank check
MODE=BLANK PROGRAM : Write
ROML=10 ROMH=EF MEM FF AD=000000 VERIFY : Compare
ALARM=083

OUTPUT= Error number

Enter ’E NL’, and restart from menu.

616
B–61863E/09 V. 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.
Collation of source The operation method is the same as source program entry, except that ”6”
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
ROM format program device. The operation method is the same as in 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 PMC–RAM
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 P–G and PMC–RAM : The comparison
between P–G and PMC–RAM 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.

617
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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 =

4.7 Delection of sepuence programs


Example)
i) When all title data are to be deleted;
Key in ”1 <NL>”.
ii) When all symbol data are to be deleted;
Key in ”2 <NL>”.
iii) When all ladder programs are to be deleted;
Key in ”3 <NL>”.
iv) When all message data are to be deleted;
Key in ”4 <NL>”.
v) When I/O module data are to be deleted;
Key in ”5 <NL>”.
vi) When all titles, symbols, ladders, messages and I/O module data
are to be deleted;
Key in ”6 <NL>”.
vii) When no data are to be deleted;
Key in ”NO <NL>”.

618
B–61863E/09 V. 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 FAPT 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.

619
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.9
DIRECT EDITING BY
LADDER DIAGRAM

4.9.1 Using the P–G Mate/Mark II software keys (in the case of P–G Mate, the
Outline F keys), sequence program creation and editing can be performed directly
by the ladder diagram.
In the following explanation, [P–G Mate] is called [Mate] and [P–G 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.
 Ladder diagram direct editing by software key and cursor (input,
addition, deletion and substitution)
 Copying, moving and deletion of multiple lines of the ladder
 Optional relay and coil reference
 Comment display on ladder diagram

4.9.2 (1) This function operates only when the P–G 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 (P–G
Mark II). In the description that follows, an explanation for the soft
keys (P–G Mark II) is given. When P–G 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.

4.9.3 The program menu appears in order to operate this function.


Selection of program The program menu is displayed when the <R1> key is pressed from the
menu by soft keys R menu screen. The program menu is displayed above the soft keys (in
the case of P–G Mate, the function keys) as shown in the screen below,
and gives significance to the keys.
(1) Keyboard
Refer to Section ”3.3 SYSTEM P keyboard”.
(2) Relationship betweeen program menus and soft keys
The relationship between the program menus and the soft keys is
shown in the following for each function. These menus are changed
by pressing the related keys. For menu contents, refer to the
explanations described later. Utilize this figure when operating.

620
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

R0 : PROGRAMMER
R1 : EDIT
R2 : UNUSED
R3 : REQUEST
Press the <R1> key

R keys menu screen

FUNCTN or or COMAND

[ COMAND ]

[ COMAND ]

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

1 2 3 4 5

1 [ DELNET ]

EXEC CANCEL SEARCH C-DOWN C-UP

2 [ INSERT ]

INSNET INSLIN INSELM

3 [ ADRESS ]

INSNET DELNET INSERT SYMBOL SEARCH COPY MOVE

4 [ SEARCH ]

TOP BOTTOM SRCH W-SRCH N-SRCH F-SRCH C-DOWN C-UP

5 [ COPY/MOVE ]

UNTIL CANCEL SEARCH C-DOWN C-UP

TO CANCEL SEARCH C-DOWN C-UP

621
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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

R0.1 R10.2 R1.7 R20.2

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.

622
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

8 Press the soft key [ ] to input a horizontal line


When inputting the horizontal bar key [ ], by keying in a
numerical value and pressing this bar key, a horizontal line for the
frequency will be drawn. However, this horizontal line will not
be drawn over the LINE.
9 Because the upper right line OR is necessary, press the soft key
[ ] and input the upper right vertical line to end.

Notes
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 error–free.
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.

1 Case of multiple nets on 1 LINE

Net is repeated

Downward from the net is erased

2 Case of multiple WRT results in 1 NET difference as shown in the diagram below.

Section C is erased

623
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

Notes
3 Case of exceeding the highest rank WRT in 1 NET

A C

Section B is erased

(2) Case of functional instruction program input


To input a functional instruction, input the soft key [FUNCTN], and
then input the functional instruction name or SUB number.
Further, when inputting a functional instruction, after keying in the
functional instruction number, it does not matter if the [FUNCTN]
key is pressed.
When you can not remember the instruction name or SUB number,
the functional instruction table corresponding to the instruction
symbol and SUB number can be displayed on the screen.
The functional instruction table is automatically displayed after
inputting an incorrect instruction name or SUB number and then
pressing the [FUNCTN] key, or by pressing the [FUNCTN] key only
without inputting any other key.
In order to return from the functional instruction table to the original
ladder diagram, press the [FUNCTN] key.

ACT MOVE (1) (2) (3) (4)

(SUB 8)

Control condition Output address

Input address
Low rank 4 bit logic data

High rank 4 bit logic data

When inputting a functional instruction with this function, the functional


instruction parameters are input vertically as shown in the diagram below.

MOVE
(1)
(SUB 8) (2)
(3)
(4)

624
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

1 Input a control condition.


Press soft key [ ], input the address and bit data, and then
press the <NL> key. The cursor shifts rightward.
2 Input an instruction
Press the soft key [FUNCTN], input SUB number 8, and then
press the <NL> key. A functional instruction diagram appears as
shown in the above figure.
3 Input an instruction parameter
Input the high rank 4 bit logic data of the first parameter, and then
press the <NL> key. The cursor automatically lowers
downwards. Input the three residual parameters in order.

4.9.5 The method of substituting a created sequence program is the same as that
Substitution of described earlier in Section 4.9.4.
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
Additions to sequence operate with the soft keys shown below.
programs When you want to end the program menu shown below, press the soft key
at the extreme left.

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

INSNET INSLIN INSELM

A sequence program is added in four ways on the ladder diagram as


described below.
(1) Case of adding a relay contact in the horizontal direction

When the addition is horizontal

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.

625
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

When a vertical line influences the addition

ÕÕÕ
Case of adding

ÕÕÕ
Cursor

1 Move the cursor to the above position.


2 Press the soft key [ ] in order to erase the upper left vertical line.
The upper left line, vertical to the cursor disappears.
3 Press the soft key [ ] in order to produce an upper right line
vertical to the cursor. Then, press the soft key [ ]. Both
vertical and horizontal lines are created.
4 Shift the cursor to a line of contact addition position.
5 Press the soft key [ ] to add contacts.
(2) Adding a vertical line
For adding a vertical line as shown in the above diagram, the area to
be added is required. In order to produce this area, shift the entire part
after the part to be added by one line by moving the cursor to the
ladder diagram within the dotted line range (an optional part is
allowable) and then pressing the soft key [INSNET].
The lower ladder diagram shifts downward by one line, each time the
[INSNET] key is pressed thereby producing the area to which a line
is to be added.
If a surplus addition area remains unused after the addition processing
ends (for example, if an area corresponding to 3 lines has been
reserved when two lines have been added), there is no problem if the
area is left remaining.

Addition

1 Move the cursor to the ladder diagram bounded by a dotted line.


2 Press the soft key [INSNET].

626
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

3 Pressing the [INSNET] key without keying in numeric values will


cause one line to be inserted.
4 Pressing the [INSNET] key with keying in numeric values will
cause the line to be inserted the number of times specified by the
numeric value input.
5 After setting the cursor to a position to which you want to add,
press the soft key [ ]. After setting address data, press the
<NL> key. The cursor shifts rightward.
6 Press the shift key [ ] to create an OR circuit.
(3) Inserting the 1 NET sequence program LINE.
Space lines are inserted in units of 1 LINE.
1 Key in the number of lines you want to insert and press the
[INSLIN] key. The inputted number of lines will be inserted. (If
the number of lines to be inserted is not keyed in, but the
[INSLIN] key is pressed, one line will be inserted.)

ÕÕÕ
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.)

627
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

ÕÕÕ
ÕÕÕ
a

Cursor

b ÕÕÕ
ÕÕÕ
If 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.

ÕÕÕ
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
program [– – – –] : Deletion of horizontal lines, relay contacts coils, etc.
[ ] : 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

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

EXEC CANCEL SEARCH C-DOWN C-UP

628
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

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, [C–DOWN] 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 [C–DOWN] 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.

4.9.8 Search a sequence program by using the following soft keys.


Searching a sequence (1) Soft key [TOP]
program When this key is pressed, the start of the sequence program is
desplayed on the screen and the cursor also sifts to the program start
position.
(2) Soft key [BOTTOM]
When this key is pressed, the last of the sequence program is
displayed on the screen and the cursor also shifts to this program end
position.
(3) Soft key [SRCH]
In this search, you specify an address you want to search and it
searches the specified address from the program of the cursor part on
this screen to the last part of the program and displays the address on
the screen. There are two methods to specify the address you want
to search.
(a) Method of specifying the address by the cursor
Set the cursor to the relay contact part of the address you want to
search and press the soft key [SRCH].
The system searches the same address as the address specified by
the cursor from the cursor part of the program currently displayed
on the screen to the end of the program.
When the same address is found, the program part is displayed
on the screen, and the cursor shifts to that address part. If the same
address is not found as a result of this search, the cursor remains
in the same position.
When finishing, press the soft key on the extreme left.
(b) Method of specifying the address by input
Input the address you want to searcch by using address and
numeric keys, then press the soft key [SRCH].
The same address as specified is searched from the program of the
cursor part currently displayed on the screen to the last part of the
program.

629
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

When the same address is found, the program part is displayed


on the screen, and the cursor shifts to that address part.
If the same address is not found as a result of this search, an error
is displayed.
(4) Soft key [W–SRCH]
This key specifies an address of the relay coil to be searched, and then
searches the relay coil of the specified address from the program at
the cursor part to the end of the program on this screen. Then, it
displays the relay coil on the screen.
Two methods are available to specify the address of the relay coil to
be searched.
(a) Method of specifying the address by cursor
Set the cursor to the relay contact of the relay coil to be searched,
and press the soft key [W–SRCH].
The corresponding relay coil is searched from the program of the
cursor part to the end of the program.
When the relay coil is found, the program part is displayed on the
screen, and the cursor shifts to the relay coil.
If no corresponding relay coil is found as a result of the search,
an error occurs.

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

TOP BOTTOM SRCH W-SRCH N-SRCH F-SRCH C-DOWN C-UP

X2.0

R0.5
ÕÕÕ
R20.1

ÕÕÕ
Y1.2
R6.4

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
R0.5 R10.5 the cursor shifits to this position.

(b) Method of specifying the address by input


Input the address of the relay coil to be searched by both address
and numeric keys, and then press the soft key [W–SRCH].
The specified address relay coil is searched from the program of
the cursor part currently displayed on the screen to the end of the
program.

630
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

When the specified address relay coil is found, the program part
is displayed on the screen, and the cursor shifts to the relay coil.
If no relay coil is found as a result of the search, an error occurs.
(5) Soft key [N–SRCH]
This displays the ladder with the specified NET number from the top
of the screen. If the number is not keyed in, but the [N–SRCH] key
is pressed, the display is scrolled down by one NET.
(6) Soft key [S–SRCH]
Key in the functional instruction name or number and press the
[S–SRCH] key to start searching the functional instruction. When the
[S–SRCH] key is pressed during execution of a functional
instruction, the functional instruction with the same number as this
instruction is searched.
(7) Searching with cursor keys (<²> , <³> )
 Key in the address or symbol and press the cursor to start searching
the NET No.
 Key in the NET NO. and press the cursor key to start searchng the
NET NO.
 Key in the functional instruction name or functional instruction
number starting with ”S” and press the cursor key to start searching
the functional instruction.
Example) Key in ”END1” or ”S1” and press the cursor to search
functional instruction END1.

4.9.9 The sequence program with multiple NETs is copied in units of NETs.
Copying a sequence Specify the NET to be copied and specify the copy position with the
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, [C–UP] key,
[C–DOWN] 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 [C–UP] or [C–DOWN] 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–3 can be omitted.

631
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

UNTIL CANCEL SEARCH C-DOWN C-UP

TO CANCEL SEARCH C-DOWN C-UP

Note
An error NET cannot be copied.

4.9.10 A sequence program with multiple NETS is moved in units of NETs.


Moving a sequence Specify the NET to be moved and specify the move position with the
cursor. When moving, the number of moves can also be specified.
program
1 Moving
Move the cursor to the NET you want to move and press the [MOVE]
key. The NET you want to move will be displayed in yellow. (In the
case of Mate, in reversal display.)
2 Moving multiple NETs
Move the cursor with the cursor UP/DOWN key, [C–UP] key,
[C–DOWN] key, or [SEARCH] key to display in yellow the NET to
be moved. (In the case of Mate, in reversal display.) Further, if you
key in a numerical value and press the [C–UP] or [C–DOWN] key,
you can 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 moving address
Moving is performed by the [TO] key. At this time, the NET is
moved in the direction above the cursor.
5 Further, if the NET you want to move is already known, if the cursor
is moved to the first NET and the number of NETs is keyed in, then
by pressing the [MOVE] key, steps 1–3 can be omitted.

632
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

INSNET DELNET INSERT ADRESS SEARCH COPY MOVE

UNTIL CANCEL SEARCH C-DOWN C-UP

TO CANCEL SEARCH C-DOWN C-UP

Note
An error NET cannot be copied.

4.9.11 (1) Symbol and comment data display


Symbol data display Symbol data and comment are displayed together with a ladder
diagram on the screen as follows.
When symbol data and comment are defined in signal addresses in the
program, the signal name and comment are displayed as shown in the
above diagram.
When converting the symbol and address display, press the shift key
[ADRESS or SYMBOL].
(2) Symbol input and search in the sequence program
When symbol data is defined in signal addresses in the sequence
program, input and reference can be performed by the symbols.
(Address and symbol are only different in operation.)
If neither symbol data nor comment is defined at an address, the
address is displayed as it is.

633
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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

R120.1 TIND D20.7 R52.1

APC

Signal name An address is displayed if a symbol is


(within 6 characters) not defined.

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 ] n :numerical value

A [DRESS]

SY [MBOL]

S [EARCH]

C [OPY] [n ]

M [OVE] [n ]

The creation and search of programs is performed by pressing the


software keys of the above menu.

634
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

Notes
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

Note
When an error NET exists, ERROR NET NO. is displayed
and you cannot end the edit. End after correcting the
erroneous NET.

635
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.10
INPUT/OUTPUT OF
LADDER PROGRAM
WITH P–G 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 P–G 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 P–G or reading the program
stored in a floppy cassette/FA card by using P–G into PMC RAM. The
usable adapters are as follows:
 FANUC cassette adapter 3 (A13B–0131–B001)/cassette F1
(A87L–0001–0038)
 FANUC floppy cassette adapter (A13B–0150–B001)/floppy cassette
(A87L–0001–0039)
 FA card adapter (A13B–0148–B001)/FA card (A87B–0001–0108)

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]’.

4.10.3 1 Turn on F13 key.


Program input (Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘3 [NL]’.
3 (For PMC–RC only) Enter the type of a ROM module to be used.
(See the following note for selecting ROM module B or C.)
SELECT THE TYPE OF ROM MODULE ACCORDING TO THE
FOLLOWING NO.
ROM MODULE 0:A, 1:B, 2:C
No. =
4 The message is displayed lower left on the screen.
SET BC & KEY IN ‘OK’ OR ‘NO’
BC = OK <FILE NO. OR NEXT>
BC =
5 Set the floppy cassette/FA card in the adapter, and enter the following
data.

636
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 4. OPERATION

6 ‘OK 1 [NL]’ (specify file No.) or ‘OK NEXT [NL]’ (read the next
file).
7 The screen changes, and reading the program from the floppy
cassette/FA card starts.
8 When the program reading 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.

Note
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.

4.10.4 1 Turn on F14 key.


Program output (Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘5 [NL]’.
3 The message is displayed lower left on the screen.
SET BC & KEY IN ‘OK’ OR ‘NO’
BC = OK <INT OR ADD OR FILE NO.>
BC =
4 Set the floppy cassette/FA card in the adapter, and enter the following
data.
5 ‘OK INT [NL]’ (write at the floppy head),
‘OK ADD [NL]’ (write in the next file) or ‘OK1 [NL]’ (specify file
No.).

Note
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.

637
4. OPERATION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

4.10.5 1 Turn on F13 key.


Program collation (Turn on F12 too, when C language program is included.)
2 Key in the menu No. ‘7 [NL]’.
3 The following operations are the same as those after 3 in ‘Program
input’.

Note
For the program which is output from
PMC–RA1/RA2/RB/RC 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.

638
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION

5 FILE EDITING FUNCTION

639
5. FILE EDITING FUNCTION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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 key–in enable condition.

Note
The format for file designation is as follows:
[drive No.] @ file name
: file No.

The file attributes are as shown below.


(1) File number
(2) File name
(3) File creation date
(4) Identification of protection file (protect)
(5) File size
(6) Multi–volume number
These file attributes are attached when writing data into floppy disk.
When writing, the next floppy disk set request message is displayed, so
specify date and protection file.

File editing command table


Name of Contents inputted from keyboard
Contents of jobs command (NL key is inputted at the end of a
(Instruction) command)
Display of file name, or file FDLIST FDLI [D, [P,] [S,] [F,]
size [L,] File designation

Change of file name, date, RENAME P ] [,/date]


etc. RENA file designation [,
[,@ new file name] NP

Deletion of file SCRATCH SCRA file designation


File area condensation CONDENSE COND [drive No.]
Copy of file REMOVE M
(This command is REMO [ ,] [file designation]
A
effective for SYSTEM P
series with 2–floppy disk [, INT ] [, P ] [,/date]
ADD NP
unit.)
[,@ new. file name]

Set FD, and key in ’OK’, KILL, or ’NO’.


FD=OK <INT or ADD,> <P or NP,> </data>
<drive> <@name>
FD=_

Set the floppy disk and key in as follows.

640
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION

OK INT. P , [/date] [drive] [@ file name]


ADD NP
NO
KILL

When reading, the following floppy set request message is displayed.

Set FD, and key in ’OK’, KILL, or ’NO’.


FD=OK <drive.> <@name or : nember>
FD=_

Set floppy disk and key in as follows.

OK [drive number] @ file name


: file number
NO
KILL

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.

641
5. FILE EDITING FUNCTION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

Parameter Function Notes


INT When writing, write from the head of When omitted, it is regarded as
the floppy ADD. If INT is specified to
protection file,
file an error generaters.
generaters
ADD When writing, add after exising fie
P Prepare as protection file When omitted, it is regarded as NP.
Ready files can be changed by
NP Prepare as ordinary file RENAME command.
Date Specify file preparation date with 6 Blank when omitted.
numbers
Drive number Specify drive number 0 or 1 set with When omitted, it is regarded as 0.
read/write floppy disk. See Note).
0 ; Upper unit
1; Lower unit
@ File name Specify file name (Max. 17 Always specify when writing.
characters). When reading, the first When reading, if omitted, the file is
name correspond–ing to the valid.
specified names is vallid.
; File number When reading, specify the With the FDLIST command, file
necessary file number after the :. number and file name list can be
displayed.

Note
When specifying drive number and file name or file number,
specify without separating, as follows.

Example) 0 @ ABC or 1 : 5
When displaying set request message, drive number is decided by the
system, and ’FD0=’ or ’FD1=’ is displayed, instead of the ’FD=’
message, to check the drive (unit) to be used. If a drive number is specified
then, it will be ignored. (FD0 shows drive 0, and FD1, drive 1).

642
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION

5.2 (1) General form of command


CONFIGURATION OF Operation Space Operand
COMMAND Command name or its _ List of one or more parameters delimited
abbreviated form by delimiter symbol ’ , ’ (comma).
(4 leading characters)

A command name consists of plural alphabetic characters, and it can


be abbreviated by four leading characters.
An operand consists of parameters peculiar to commands and
parameters specified in floppy disk mounting request message.
(2) Execution of operands and commands
If operands are fully designated, a command is executed without
displaying any floppy disk mounting request message.
However, a certain command may require many parameters. If these
parameters cannot be recalled, specify the command name only.
Necessary parameters are indicated in the floppy disk mounting
request message. Accordingly, parameters can be input from the
keyboard according to this display. The message may be displayed
twice separately according to commands. (Old and new names are
requested separately in RENAME command, for example.)

643
5. FILE EDITING FUNCTION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

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.

c) This command displays the information (attributes) on the floppy


disk files.
If no attribute to be displayed is designated, the file number, file
name, and multi–volume number only are displayed. The following
example shows the display of all information (L designation)
NO. FILE NAME V. DATE SIZE P.
001 DATA1 830928 72 P
002 DATA2 831028 60
003 DATA3 831028 8 P
**** DELETED FILE **** 10
005 DATA4 901022 10 P
006 DATA5 901022 5
FILE USED AREA = 155
DELETED FILE AREA = 10
FREE AREA = 1019

Note
The numeric characters shown in SIZE, FILE USED AREA,
DELETED FILE AREA, and FREE AREA are displayed
assuming that 256 characters are 1.

644
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION

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

Designation of file to be changed Designation of file to be changed


b) Function
File attributes are renewed when they are designated by operand
parameters. Attributes which are not designated are stored as they
are. Protection files can be cancelled, but neither dates nor file names
are changeable. The designation of protection files must be cancelled
once before changing their attributes.
If all operands are omitted, the system displays an input message to
request the designation of a file to be changed. When the file to be
changed is designated by keying operation, a message is displayed
to input attributes of the file to be changed by keying operation.
Designate new data.
If the file to be changed only is designated together with the
command, the system asks the file attributes to be changed.
(RENAME: 5 <NL>, for example)
Old attributes (B) and new attributes (A) are displayed by executing
this command as shown below, for example.
Example)
RENAME :3, @ NEWNAME <F11>NL>
RENA : 3,@NEWNAME
NO. FILE NAME V. DATE P.
B: 003 DATA3 901020
A: 003 NEWNAME 901020

645
5. FILE EDITING FUNCTION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

5.5 This command deletes files of floppy disk.


SCRATCH COMMAND a) Input format
— DELETION OF @ file name
SCRATCH [drive No.]
FILES : file No.
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.

5.6 This command releases the deleted file area to be employable.


CONDENSE a) Input format
COMMAND — CONDENSE [drive No.]
RELEASE OF b) Function
DELETED AREA The area occupied by the file deleted by SCRATCH command cannot
be employed for writing new data under that condition. By executing
this command, all unemploy–able areas can be released. Since it
takes time to execute this command, it is recommended to arrange
these areas when there are many files to be deleted and the residual
capacity of the floppy disk is small.

646
B–61863E/09 V. PMC PROGRAMMER (SYSTEM P series) 5. FILE EDITING FUNCTION

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

Input designation Output designation


Designation of
copying method
b) Operand
No. M,A designation:
Specified file is copied with specified file attributes.
M (manual):
Copies designated files one by one.
Floppy disk mounting request message is displayed every file to ask
if the file is to be copied or not. If input file is not designated, all files
becomes the object to be copied.
If new file name is not designated, input file name is produced.
Accordingly, the output designation of REMOVE command is
meaningless, because the request for output designation is performed
every file.
i) When a file name is designated as an input;
All coincident files having the designated length are treated as
processing objects. If @A is desig–nated, for example, all files
starting with A are asked.
ii) When a file number is designated as an input;
Files from a file having the designated file number to the last file
are treated as processing objects.
A (auto):
All files conforming to the designated conditions are copied. The
output designation file name is meaningless. However, P, NP and /
date are designated to all copied files with new attributes.
i)
If the file name or file number is not designated by input
designation, all files of the input floppy disk are copied.
ii) If the file name or file number is designated in input designation,
processing is done in the same way as in M designation.
c) Function
This command copies floppy disk files to another floppy disk. Files
are output to a floppy disk opposite to the drive number (0, if omitted)
designated by input designation. These files are copied by the
following three methods.
i) Copy of one file only (Neither M nor A is designated.)
(Ex. 1) REMOVE : 3,P, @ NEW <NL>
In this example, the input/output designations are as
follows; Input designation : 3rd file of drive No.0 floppy
disk

647
5. FILE EDITING FUNCTION V. PMC PROGRAMMER (SYSTEM P series) B–61863E/09

Output designation : File name is ”NEW”, drive No.1


floppy disk with protection
ii) The system asks every file to check if the file is to be copied or
not. (M designation)
(Ex. 2) REMOVE M,1 @ A <NL>
In this example, the system asks to copy or not every file
with file name starting with ”A” of drive No.1 floppy
disk.
A change of attributes such as file name, date, and file
protection can be designated.
iii) All designated files are copied. (A designation)
(Ex. 3) REMOVE A,: 3, INT,/830920 <NL>
In this example, files with file name starting with ”A”
and with file No.3 and later of drive No.0 floppy disk are
copied to drive No.1 floppy disk from the head of it with
designated date ”830930”. The copied file names cannot
be changed in this method.
When this command is executed, input file attributed (I) and output
file attributes (O) are displayed. The next display example shows the
execution of ’REMOVE A, 1 @TO, INT, P <NL>’.
NO. FILE NAME V.DATE P.
I:001 T01 ZX 1. 100/40 830920
O:001 T01 ZX 1. 100/40 830920 P
I:002 T02 ZX 1. 150/50 830920
O:002 T02 ZX 1. 150/50 830920 P
I:003 T04 ZX 1. 100/50 830920
O:003 T04 ZX 1. 100/50 830920 P
I:004 T05 ZX 1. 20/50 830920
O:004 T05 ZX 1. 20/50 830920 P
If REMOVE command is only designated, key in operands according
to the request message. The following are general designation format
for file copy.
i) Without M, A designation (One file is copied.)
0 @ file name INT P
REMOVE , ,
1 : file No. ADD NP

[,/ date] [, @ new file name] <NL>


ii) With M designation (request message is displayed for each
objected file.)
0 @ file name
REMOVE M,
1 : file No

iii) With A designation (All subjected files are copied.)


0 @ file name INT P
REMOVE , ,
1 : file No. ADD NP

[,/ date] <NL>

648
APPENDIX
B–61863E/09 APPENDIX A. ERROR CODES LIST (FOR FAPT LADDER P–G)

A ERROR CODES LIST (FOR FAPT LADDER P–G)

Error codes Details of errors


01 Sequence program area over
02 No. of divisions has exceeded 99.
03 High level program time over
05 An error block was detected.
07 No designated step number is found.
08 An undefined instruction was specified.
09 An undefined address was specified.
10 Parameter data error
11 An address was employed in OR.STK and AND.STK.
12 An unemployable subroutine number was specified.
13 An unemployable timer number was specified.
14 A comparison error occurred.
15 A jump instruction was specified, exceeding END1 and END2.
16 A common instruction was specified, exceeding END1 and END2.
17 An instruction format error
18 An attempt was made to delete a parameter.
19 An attempt was made to add a parameter.
20 An erroneous system parameter data
21 A parameter was specified in a mode other than subroutine mode.
24 END2 is not specified.
25 WRT instruction is not specified in WRT instruction subroutine.
27 END1 is not specified.
29 A data sent from PMC–RB/RC is in error.
30 R1 key is pressed during data transmission between SYSTEM P series and PMC–RB/RC.
31 Input/output unit error
32 Read error
33 Hardware error of floppy disk
34 No designated file name is found.
41 An error occurred when inputting ROM data from ROM writer.
43 An error occurred when writing ROM data into ROM writer.
44 An error is deleted during comparison between SYSTEM P series–memory data and floppy data.
45 An error occurred when comparing ROM data with ROM writer data.
46 Key input data over
47 No designated symbol name is found.
48 A numeric value was directly specified to address parameters.
49 Counter number error
50 Decode functional instruction error

651
A. ERROR CODES LIST (FOR FAPT LADDER P–G) APPENDIX B–61863E/09

Error codes Details of errors


51 Symbol name (max. 6 characters) over
52 Input data error
53 Comment data are in error.
54 Symbol table over
55 Comment data area over
56 Designated symbol name is already employed.
57 Symbol table sequence is in error.
58 Designated symbol name is not found.
59 END1 was detected in COM mode.
60 END1 was detected in JMP mode.
61 END2 was detected in COM mode.
62 END2 was detected in JMP mode.
63 END 3 was detected in COM mode.
64 END 3 was detected in JMP mode.
65 END 3 is not specified.
66 COM functional instruction was specified in COM mode.
67 JMP functional instruction was specified in JMP mode.
68 Message address error
69 Message data area over
70 Message data error
71 No symbol table is prepared.
72 NC model error in title
73 Title number error
74 Title data error
75 I/O port address error
76 Group number error
77 Base number error
78 Slot number error
79 I/O module name error
80 I/O port data are not prepared yet.
81 I/O port data were doubly specified.
82 Specified symbol or address is missing.
83 An invalid unit is loaded in the ROM WRITER or the specification of ROM WRITER does not meet the
unit.
84 ROM module type is different from the specified one.
87 Output (or input) module was specified as an input (or output) address.
88 The same slot number was specified in the same group and the same base number.
89 The model of PMC is different.
93 The number of coils is specified by the COM or JMP command. (This causes an error for PMC–RA1
and PMC–RA2.)
150 Parity error of transfer data (check the cable.)
151 Excessive or insufficient data to be transferred (Check the cable.)
152 An EPROM or ROM module is not inserted in the ROM writer, or specification of the ROM writer is
invalid.

652
B–61863E/09 APPENDIX A. ERROR CODES LIST (FOR FAPT LADDER P–G)

Error codes Details of errors


153 Blank check error (Ultraviolet ray is not sufficiently irradiated or the EPROM, ROM module is defective.)
154 Write error (EPROM or ROM module is defective.)
155 Verifyerror (EPROM or ROM module is defective.)
156 Data output level error (EPROM or ROM module is defective.)
157 Timer test error is ROM writer (ROM writer is defective.)
158 I/O test error in ROM write (ROM writer is defective.)
159 A/D converter test error in ROM writer (ROM writer is defective.)
160 Power test error in ROM writer (ROM writer is defective.)
161 Power (VPP) is defective (EPROM, ROM module or ROM writer is defective.)
162 Power supply (VCC) is defective (EPROM, ROM module or ROM writer is defective.)
163 ROM test error in ROM writer (ROM writer is defective.)
164 RAM test error in ROM writer (ROM writer is defective.)
170 An initialization error in the external memory floppy disk.
171 The inputted ROM format data is greater than the specified cassette type.
The PASCAL origin of the inputted PASCAL load module is unsuitable.
172 The specified ROM format data cannot be edited with the P–G Mate.
Outputting data in the ROM format is possible, however.

653
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

WINDOW FUNCTION DESCRIPTION

B (EXCEPT SERIES 15B PMC–NB/NB2)

B.1
FUNCTION This window function is a functional instruction by which the data on the
CNC side is read or is written.

B.2
LOW–SPEED In the way to process, there are window function high speed and one
processed at low speed.
RESPONSE AND
In case of a low–speed response, The data is read or written by the control
HIGH–SPEED
between CNC and PMC
RESPONSE OF
Therefore, it is necessary to ACT=1 of the window instrucion must be
WINDOW FUNCTION held until the transfer completion information (W1) becomes 1
(interlock).
In a high–speed response, it is not necessity for take the interlock because
the data is directly read.

Notes
1. The window instruction of a low–speed response is
controlled exclusively with the other window instructions of
low–speed 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 low–speed response such as W1=1 and
ACT=1 of the window instruction of a low–speed response.
The window instruction of a high–speed response is not
exclusively controlled like a low–speed 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

Notes
2. 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 two–path control of the Power Mate–D.

654
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

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 :Low–speed response 14 W
4 Read the work origin offset *PM :Low–speed response 15 R
5 Write work origin offset *PM :Low–speed response 16 W
6 Read parameters *RB56 :Low–speed response 17 R
7 Write parameters :Low–speed response 18 W
8 Read setting data *RB56 :Low–speed response 19 R
9 Write setting data :Low–speed response 20 W
10 Read custom macro variables *RB56 :Low–speed response 21 R
11 Write custom macro variables :Low–speed response 22 W
12 Read the CNC alarm state 23 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 *RB56 :Low–speed 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 38 R
25 Reading tool life management data (number of tool group s) *PM *21T 39 R
26 Reading tool life management data (number of tools) *PM *21T 40 R
27 Reading tool life management data (usable life of tool) *PM *21T 41 R
28 Reading tool life management data (tool usage counter) *PM *21T 42 R
Reading tool life management data (tool length compensation No. (1): Tool No.)
29 43 R
*PM *21T
Reading tool life management data (tool length compensation No. (2):
30 44 R
Tool order No.) *PM *21T
Reading tool life management data (cutter compensation No. (1): Tool No.)
31 45 R
*PM *21T
Reading tool life management data (cutter compensation No. (2): Tool order No.)
32 46 R
*PM *21T
33 Reading tool life management data (tool information (1): Tool No.) *PM *21T 47 R
Reading tool life management data (tool information (2): Tool order No.)
34 48 R
*PM *21T
35 Reading tool life management data (tool No.) *PM *21T 49 R
36 Reading the actual spindle speed 50 R

655
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

Number Description Function code R/W


Entering data on the program check screen :low–speed response
37 150 W
*PM *21T
38 Reading clock data (date and time) 151 R
39 Writing torque limit data for the digital servo motor:low–speed response 152 W
40 Reading load information of the spindle motor (serial interface) 153 R
41 Reading a parameter *PM *21T 154 R
42 Reading setting data *PM *21T 155 R
43 Reading diagnosis data *PM *21T 156 R
44 Reading a character string of the CNC program being executed in the buffer *C 157 R
45 Reading the relative position of a controlled axis 74 R
46 Reading the remaining travel 75 R
47 Reading CNC status information 76 R
48 Reading an operator message 83 R
49 Reading value of the P– code macro variable *RB56 :low– speed response 59 R
50 Writing value of the P– code macro variable :low– speed response 60 W
51 Reading the Tool life management data (Tool life counter type) 160 R
52 Registering the Tool life management data (Tool group) :low– speed response 163 W
53 Writing the Tool life management data (Tool life) :low– speed response 164 W
54 Writing the Tool life management data (Tool life counter) :low– speed response 165 W
Writing the Tool life management data (Tool life counter type)
55 166 W
:low– speed response
Writing the Tool life management data (Tool length offset number (1): Tool number)
56 167 W
:low– speed response
Writing the Tool life management data (Tool length offset num–ber (2): Tool opera-
57 168 W
tion sequence number) :low– speed response
Writing the Tool life management data (Cutter compensation number (1):
58 169 W
Tool number) :low– speed response
Writing the Tool life management data (Cutter compensation nu–mber (2):
59 170 W
Tool operation sequence number) :low– speed response
Writing the Tool life management data (Tool condition (1): Tool number)
60 171 W
:low– speed response
Writing the Tool management data (Tool condition (2):
61 172 W
Tooloperation sequence number) :low– speed response
62 Writing the Tool life management data (Tool number) :low– speed response 173 W
63 Reading the Estimate disturbance torque data 211 R

*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 Low-speed 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 Mate-D or F.

*4 Functions marked with *21T are not provided for the Series 21T.

*5 Functions marked with *RB56 support high–speed window response for the RB5/RB6.

*6 Functions marked with *C are not provided for the RB5/RB6.

656
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4
FORMATS AND (1) In the explanation of the window functions, minuses (–) in the data
DETAILS OF structure fields indicate that input data need not be set in these fields
or that output data in these fields is not significant.
CONTROL DATA
(2) All data is in binary unless otherwise specified.
(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.

Completion code Meaning


0 Normal termination
1 Error (invalid function code)
2 Error (invalid data block length)
3 Error (invalid data number)
4 Error (invalid data attribute)
5 Error (invalid data)
6 Error (necessary option missing)
7 Error (write–protected)

Input and output control data has the following structure.


Top address +0
Function code

2
Completion code

4
Data length (M) These data items are set as input
(Byte length of data area) data and remain unchanged in the
6 output data.
Data number

8
Data attribute

10
Data area *Data length
Depends on the function.
 

657
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.1
Reading CNC System [Description]
Information System information peculiar to the CNC can be read. Such system
information includes the series name of the CNC (Series 16, 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.

[Input data structure]

Top address + 0
(Function code)
0

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

[Completion codes]
0 : CNC system information has been read normally.

658
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]

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, . . . )

14 ROM series of CNC system ASCII characters


software(4 bytes) (B 0 0 0 1, . . . )

18 ROM version of CNC system ASCII characters


software(4 bytes) (0 0 0 1, 0 0 0 2, , . . )

22 ASCII characters
Number of controlled axes (2 bytes)
( 2, 3, 4, . . . )

Notes
1. Data is stored from the upper digit in each lower byte.
2. In the Power Mate–D and –F, the data corresponding to the
CNC series name and machine type are left as spaces.
3. In two–path control of the Power Mate–D, the data for the
first path is the same as that for the second path.

659
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.2
Reading a Tool Offset [Description]
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.

[Input data structure]

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)

 

42

(a) Offset types (for machining centers, Power Mate–D, F)

Cutter Tool length If the type of tool offset need not be


specified, enter 0.
Wear 0 2
Figure 1 3

Note
In the Power Mate–D and –F, read tool offsets without
specifying the classification (i.e. cutter compensation, tool
length, tool wear, and tool geometry).

(b) Offset types (for lathes)

X axis Z axis Tool tip R Virtual tool tip Y axis


Wear 0 2 4 6 8
Figure 1 3 5 7 9

660
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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 Mate–D/F.

[Output data structure]

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

10 Tool offset value Signed binary (A negative value is


represented in 2’s complement.)
Upper 3 bytes are always “0” for virtual
tool tip

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.002 0.0002
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

661
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.3
Writing a Tool Offset [Description]
(:Low–speed The tool offset value can be directly written into the CNC.
response)
Wear offset data, geometry offset data, cutter compensation data, and tool
length offset data can be written as a tool offset.

[Input data structure]

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 2’s complement.)
Upper 3 bytes are always “0” for virtual
tool tip

(a) Offset types (for machining centers, Power Mate–D, F)

Cutter Tool length If the type of tool offset need not be


specified, enter 0.
Wear 0 2
Figure 1 3

In the Power Mate–D and –F, write tool offsets without specifying the
classification (i.e. cutter compensation, tool length, tool wear, and tool
geometry).
(b) Offset types (for lathes)

X axis Z axis Tool tip R Virtual tool tip Y axis


Wear 0 2 4 6 8
Figure 1 3 5 7 9

662
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

Input data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.002 0.0002
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0002 0.00002
specification

[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 Mate–D, F)

[Output data structure]

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 2’s complement.)

663
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.4
Reading a Workpiece [Description]
Origin Offset Value The workpiece origin offset recorded in the CNC can be read.
(Not supported by the
A workpiece origin offset is provided for each controlled axis (the first
Power Mate–D or –F) axis to the eighth axis) in the CNC. Either the workpiece origin offset for
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.

[Input data structure]

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)

 

42

664
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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
read.
6
(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 2’s complement.)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.002 0.0002
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

665
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.5
Writing a Workpiece The specified offset number is out of range. (Power Mate–D/F)
Origin Offset Value [Description]
(:Low–speed
response) Data can be written directly as a workpiece origin offset value in the CNC.
A workpiece origin offset is provided for each controlled axis (the first
axis to the eighth axis) in the CNC. Either the workpiece origin offset
value for a specific axis can be written, or the workpiece origin offset
values for all axes can be written at one time. If the additional axis option
is not provided, however, the workpiece origin offset value for the
additional axis cannot be written.

[Input data structure]

Top address + 0
(Function code)
16

2 L = 4 : Workpiece origin offset value for a specific


(Completion code) axis is written.

(Need not be set) L = 4*n
Workpiece origin offset values for all axes
4 are written.
(Data length)
L
(L: Byte length of the workpiece N = 0: External workpiece origin offset
origin offset value) N = 1: G54
6 · ·
(Data number) · ·
N N = 6: G59
(N = 0 to 6)
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 = 1 to n, or –n) Value

10 Signed binary (A negative value is


Workpiece origin offset value represented in 2’s complement.)

Input data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.002 0.0002
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0002 0.00002
specification

666
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

10 Signed binary number (A negative value


Workpiece origin offset value is represented in 2’s complement.)

667
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.6
Reading a Parameter [Description]
(:Low–speed Parameter data in the CNC can be read.
response)
There are four types of parameters in the CNC: Bit parameters having a
definite meaning for each bit, byte parameters holding 1–byte data, word
parameters holding 2–byte data, and double word parameters holding
4–byte 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 Operator’s manual of the CNC.

[Input data structure]

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 = 1 to n or –1)
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.

 

42

668
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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

2 (Completion code) When no axis or one axis is specified


? L = 1: Bit or byte parameter
(See the explanation of L = 2: Word parameter
the completion codes.) L = 4: Double word parameter
4
(Data length)
L
When all axes are specified
(L = 1, 2, 4, 1*n, 2*n, 4*n)
L = 1*n : Bit or byte parameter
6 L = 2*n: Word parameter
(Data number) L = 4*n: Double word parameter
N
(N = Input data)

8
(Data attribute)
M
(M = Input data) Value

10 Parameter data Parameter–dependent form

For the RB5/RB6, macro executor parameters 9000 to 9011 cannot be read.

669
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.7
Writing a Parameter [Description]
(:Low–speed Data can be written in a parameter in the CNC.
response)
There are four types of parameters in the CNC: Bit parameters having a
definite meaning for each bit, byte parameters holding 1–byte data, word
parameters holding 2–byte data, and double word parameters holding
4–byte 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, then the target bit in the read 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 Operator’s 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

2 When no axis or one axis is specified


(Completion code) L = 1: Bit or byte parameter
— L = 2: Word parameter
(Need not be set.) L = 4: Double word parameter
4
(Data length)
L When all axes are specified
(L = 1, 2, 4, 1*n, 2*n, 4*n)
L = 1*n: Bit or byte parameter
6 L = 2*n: Word parameter
(Data number) L = 4*n: Double word parameter
N
(N = parameter number)

8 M = 0: No axis
(Data attribute) M = 1 to n: One axis
M M = –1: All axes
(M = 0, 1 to n, or –1)
When all axes are specified by spindle parame-
ters (parameters 4000 to 4799), only two axes
are specified.

Value

10 Parameter data Parameter–dependent form

670
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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

10 Parameter data: Input data Parameter–dependent form

671
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.8
Reading Setting Data [Description]
(:Low–speed The CNC setting data can be read.
response)
There are four types of setting data in the CNC: Bit setting data having
a definite meaning for each bit, byte setting data stored in bytes, word
setting data stored in 2–byte units, and double–word setting data stored
in 4–byte 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 Operator’s 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: One axis
(M = 1 to n or –1)
M = –1: All axes
10
(Data area)

(Need not be set)

 

42

672
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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).

[Output data structure]

Top address + 0
(Function code)
19

2 (Completion code) When no axis or one axis is specified


? L = 1: Bit or byte parameter
(See the explanation of L = 2: Word parameter
the completion codes.) L = 4: Double word parameter
4
(Data length)
L
When all axes are specified
(L = 1, 2, 4, 1*n, 2*n, 4*n)
L = 1*n: Bit or byte parameter
6 L = 2*n: Word parameter
(Data number) L = 4*n: Double word parameter
N
(N = Input data)

8
(Data attribute)
M
(M = Input data) Value
10
Setting data Parameter–dependent form

673
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.9
Writing Setting Data [Description]
(:Low–speed Data can be written as setting data in the CNC.
response)
For details of setting data, refer to the Operator’s manual of the CNC.

[Input data structure]

Top address + 0
(Function code)
20

2 When no axis or one axis is specified


(Completion code) L = 1: Bit or byte parameter
— L = 2: Word parameter
(Need not be set.) L = 4: Double word parameter
4
(Data length)
L When all axes are specified
(L = 1, 2, 4, 1*n, 2*n, 4*n)
L = 1*n: Bit or byte parameter
6 L = 2*n: Word parameter
(Data number) L = 4*n: Double word parameter
N
(N = Setting data number)

8 M = 0: No axis
(Data attribute)
M M = 1 to n: One axis
(M = 0, 1 to n, or –1)
M = –1: All axes

Value

10 Setting data Setting data–dependent form

674
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

10 Setting data: Input data Setting data–dependent form

675
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.10 [Description]
Reading a Custom A custom macro variable recorded in the CNC can be read.
Macro Variable Custom macro variables may or may not be read depending on the
variable type.
(:Low–speed (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
floating–point representation. When the option to add common
variables is provided, however, common variables range from #100
to #199 and #500 to #999.
Note
Power Mate–D (two–path control), Power Mate–F: #100 to
199, #500 to 699.
Memory module A of one–path control: #100 to #149, #500
to #531.
Memory module B/C of one–path control: #100 to #199,
#500 to #699.

(3) System variables


System variables (#1000 and up) can be read in floating–point
representation.
For details of the custom macro variables, refer to the Operator’s
Manual for the CNC.

Note
For the RB5/RB6, system variables cannot be read.

[Input data structure]


Top address + 0
(Function code)
21

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)
 
42

676
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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 Mate–D,
F)
[Output data structure]

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 = 1 n 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

10 Custom macro variable data (4 bytes) Signed binary


Mantissa (custom macro B) (A negative value is represented in 2’s
complement.)

14 Custom macro variable data (2 bytes)


Exponent (custom macro B): The num- Signed binary
ber of decimal digits 0 to 8 (no negative values)

677
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.11
Writing a Custom [Description]
Macro Variable Data can be written in a custom macro variable in the CNC.
(:Low–speed
For details of common variables, refer to the Operator’s manual of the
response) CNC.

[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 floating–point
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)

(Need not be set) Value

10 Custom macro variable data (4 bytes) Signed binary


Mantissa (custom macro B) (A negative value is represented in 2’s
complement.)

14 Custom macro variable data (2 bytes) Signed binary


Exponent (custom macro B): The num- (A negative value is represented in 2’s
ber of decimal digits complement.)

678
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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 Mate–D,
F)

[Output data structure]

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

10 Custom macro variable data: Input data Signed binary


Mantissa (custom macro B) (A negative value is represented in 2’s
complement.)

14 Custom macro variable data: Input data


Exponent (custom macro B): The num- Signed binary
ber of decimal digits

679
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.12
Reading the CNC
Alarm Status

B.4.12.1
Except Power Mate–D [Description]
and –F When the CNC is placed in the alarm status, the alarm status data can be
read.
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

680
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

(2) Second byte of alarm status data

7 6 5 4 3 2 1 0

APAL
SPA
(Not used)
(Not used)
(Not used)
(Not used)
(Not used)
(Not used)

APAL: APC alarm


SPA : Spindle alarm

[Input data structure]

Top address + 0
(Function code)
23

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not to be set)

10
(Data area)

(Need not be set)

 

42

681
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Completion codes]
0 : This alarm status in the CNC has been read normally.

[Output data structure]

Top address + 0
(Function code)
23

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.

682
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.12.2
For Power Mate–D (1) Overview
and –F PMC application programs can read CNC alarm information.
(2) Alarm information
1) Alarm status
Information concerning the alarm type
2) Detailed alarm
Information concerning the alarm number and axis information
(3) Input data configuration

Top address+0 +2 +4 +6 +8 +10


Function Completion Data Data Data Data
code code length number attribute area

Function code : 23 (fixed)


Completion code : No specification required.
Data length : No specification required.
Data number : Number of alarms which can be stored. (Up to 30).
If 31 or more are specified, the value is assumed to
be 30.
Data attribute : Other than 0 : Alarm status information
: Detailed alarm information, indicated in two–byte
bit–type data described below (multiple bits can be
specified.)
Data area : No specification required.

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 bit

Bit 0 : P/S alarm 100 (PS1)


(PWE, parameter write enable, is set to 1.)
Bit 1 : P/S alarm 000 (PS2)
(Turn off the power. Writing data into certain parameters may
cause this alarm.)
Bit 2 : P/S alarm 101 (PS3)
(Part program storage has been disrupted. This alarm is issued
when the CNC is turned off during tape editing or machining
program reading. To release this alarm, press the RESET key
while holding down the PROG key.)
Bit 3 : A P/S alarm (PS) other than those described above has been
issued. (Up to 255)
Bit 4 : Stroke limit alarm (OTS)

683
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

Bit 5 : Overheat alarm (OH)


Bit 6 : Servo alarm (SV)
Bit 7 : Not used
Bit 8 : APC alarm (APAL)
Bit 9 : Spindle alarm (SPA)
Bit 10 : P/S alarm 5000 or greater (PS_2)
Bit 11 to Bit 15 : Not used
Data attribute : 0 : Alarm status information
(4) Output data configuration

Top address+0 +2 +4 +6 +8 +10


Function Completion Data Data Data Data
code code length number attribute area

Function code : 23 (fixed)


Completion code : Always 0.
Data length : 2 when the input data attribute is set to 0 and no
alarm is issued.
2 + 4*n when the input data attribute is set to other
than 0 (n stands for the number of alarms issued).
Data number : Same as that for the input data.
Data attribute : Same as that for the input data.
Data area : Two–byte bit–type data when the input data
attribute is set to 0 (each bit indicates the same
information as that for the input data).
(2 + 4*n)–byte data, described below, for all alarm
states specified in the input data attribute when the
input data attribute is other than 0.

2byte 2byte 2byte 4byte 4byte

Axis information Alarm number


⋅⋅
7 6 5 4 3 2 1 0

n 15 14 13 12 11 10 9 8

Bit 0 = 1 : When an alarm is is sued


for the first axis
⋅⋅
Bit 1 = 1 : When an alarm is issued
for the second axis
Bits 2 to 15 are always set to 0.

⋅⋅
Number First alarm Second n–th
of alarms alarm alarm
(n: Number of alarms issued)

(5) Completion code


0 : CNC alarm status has been read normally.

684
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Completion codes]
0 : This alarm status in the CNC has been read normally.

[Output data structure]

Top address + 0
(Function code)
24

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.

685
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.13
Reading the Current [Description]
Program Number The program number of a machining program being executed 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 main program is the first
loop program from which the subprogram was called (even in nested).

[Input data structure]

Top address + 0
(Function code)
24

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not to be set)

10
(Data area)

(Need not be set)

 

42

686
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Completion codes]
0 : The program number of the program currently being executed has
been read normally.

[Output data structure]

Top address + 0
(Function code)
24

2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length)
L
(L = 4)

6
(Data number)

8
(Data attribute)

Value

10 Current program number: ON Unsigned binary, 2 bytes long

12 Program number of the main program:


OMN

(a) Current program number (ON)


The program number of the program being executed is set.
(b) Program number of the main program (OMN)
When the currently executed program is a subprogram, the number
of its main program (first loop main program) is set. When the
currently executed program is not a subprogram, 0 is set.

687
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.14
Reading the Current [Description]
Sequence Number The sequence number of a machining program being executed on the
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.

[Input data structure]

Top address + 0
(Function code)
25

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not to be set)

10
(Data area)

(Need not be set)

 

42

688
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Completion codes]
0 : The current sequence number has been read normally.

[Output data structure]

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

689
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.15
Reading the Actual [Description]
Velocity of Controlled The actual velocity of a movement on CNC–controlled axes can be read.
Axes Note that the read speed is the composite velocity for the controlled 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.

[Input data structure]

Top address + 0
(Function code)
26

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not to be set)

10
(Data area)

(Need not be set)

 

42

690
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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

10 Actual velocity for controlled axes Unsigned binary


<Data increments>
SInput in mm
1 mm/min
SInput in inches
0.01 inch/min.

691
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.16
Reading the Absolute
[Description]
Position (Absolute
Coordinates) of The absolute coordinates of the CNC–controlled axes for movement can
Controlled Axes be read. The read absolute coordinates equal the absolute coordinates
(absolute position) indicated on the current position display screen in the
CNC. (The screen is displayed by pressing function button POS.)

[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)

(Need not be set)

8 M = 1 to n: Absolute coordinate of a specific


(Data attribute) axis. n is the axis number.
M
(M = 1 to n or –1 )
M = –1: Coordinates of all axes
10
(Data area)

(Need not be set)

 

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.

692
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]

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)
L
(L: Input data) Value

10 Absolute coordinate of the controlled Signed binary


axis specified (4 bytes) (A negative value is represented in 2’s
complement.)

When the number of controlled axes is 4

Value

10 Absolute coordinate of the first axis Signed binary


(4 bytes) (A negative value is represented in 2’s
complement.)
14 Absolute coordinate of the second axis
(4 bytes)

18 Absolute coordinate of the third axis


(4 bytes)

22 Absolute coordinate of the fourth axis


(4 bytes)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
y
system system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.001 0.0001
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

693
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.17
Reading the Machine [Description]
Position (Machine
Coordinates) of The machine coordinates of CNC–controlled axes for movement can be
Controlled Axes read. The read value equals the machine coordinate indicated on the
current position display screen displayed in the CNC. (This screen can
be displayed by pressing the function button POS.)

[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)

(Need not be set)

8 M = 1 to n: Machine coordinate of a specific


(Data attribute) axis. n is the axis number.
M
(M = 1 to n or –1 )
M = –1: Coordinates of all axes
10
(Data area)

(Need not be set)

 

42

[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.

694
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]

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

10 Machine coordinate of the controlled Signed binary


axis specified (4 bytes) (A negative value is represented
in 2’s complement.)

When the number of controlled axes is 4

Value

10 Machine coordinate of the first axis Signed binary


(4 bytes) (A negative value is represented
in 2’s complement.)
14 Machine coordinate of the second axis
(4 bytes)

18 Machine coordinate of the third axis


(4 bytes)

22 Machine coordinate of the fourth axis


(4 bytes)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.001 0.0001
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

695
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.18
Reading a Skip [Description]
Position (Stop Position
of Skip Operation When a block of the skip operation (G31) is executed by the CNC and the
(G31)) of Controlled skip signal goes on to stop the machine, the absolute coordinates of the
stop position on the axes of movement can be read.
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)

(Need not be set)

8 M = 1 to n: Skip coordinate on a specific axis.


(Data attribute) n is the axis number.
M
(M = 1 to n or –1 )
M = –1: Coordinates on all axes
10
(Data area)

(Need not be set)

 

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.

696
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]

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

10 Skip coordinate of the controlled axis Signed binary


specified(4 bytes) (A negative value is represented in 2’s
complement.)

When the number of controlled axes is 4

Value

10 Skip coordinate of the second axis Signed binary


(4 bytes) (A negative value is represented in 2’s
complement.)
14 Skip coordinate of the third axis
(4 bytes)

18 Skip coordinate of the fourth axis


(4 bytes)

22 Skip coordinate of the first axis


(4 bytes)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.001 0.0001
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

697
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.19
Reading the Servo [Description]
Delay for Controlled The servo delay, which is the difference between the specified coordinates
Axes of CNC–controlled axes and the actual servo position, can be read.

[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)

(Need not be set)

8 M = 1 to n: Servo delay for a specific axis


(Data attribute)
M
(M = 1 to n or –1 )
M = –1: Servo delay for all axes
10
(Data area)

(Need not be set)

 

42

698
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

10 Servo delay for the controlled axis spe- Signed binary


cified (4 bytes) (A negative value is represented in 2’s
complement.)

When the number of controlled axes is 4

Value

10 Servo delay for the first axis (4 bytes) Signed binary


(A negative value is represented in 2’s
complement.)
14 Servo delay for the second axis
(4 bytes)

18 Servo delay for the third axis (4 bytes)

22 Servo delay for the fourth axis


(4 bytes)

699
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.20
Reading the [Description]
Acceleration/
Deceleration Delay on The acceleration/deceleration delay, which is the difference between the
Controlled Axes coordinates of controlled axes programmed in the CNC and the position
after acceleration/deceleration is performed, can be read.

[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)

(Need not be set)

8 M = 1 to n: Acceleration/deceleration delay for a


(Data attribute) specific axis
M
(M = 1 to n or –1 )
M = –1: Acceleration/deceleration delay for all
10 axes
(Data area)

(Need not be set)

 

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.

700
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]

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

10 Acceleration/deceleration delay for the Signed binary


controlled axis specified (4 bytes) (A negative value is represented in 2’s
complement.)

When the number of controlled axes is 4

10 Acceleration/deceleration delay for the Signed binary


first axis (4 bytes) (A negative value is represented in 2’s
complement.)
14 Acceleration/deceleration delay for the
second axis (4 bytes)

18 Acceleration/deceleration delay for the


third axis (4 bytes)

22 Acceleration/deceleration delay for the


fourth axis (4 bytes)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.001 0.0001
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

701
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.21
Reading Modal Data [Description]
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

7 6 5 4 3 2 1 0

S Code in a group 1byte

1byte

0: Not specified in the block


1: Specified in the block

Note
G codes for machining centers are also used for the Power
Mate–D and –F except those marked with *. G codes marked
with ** are not provided for the Power Mate–F.

(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
G72 G G72 G G73 G 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

702
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

(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

703
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

(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

– – – – – Number of decimal places

The specification of whether a decimal point is specified or not, in FLAG1,


and the specification of the number of decimal places, in FLAG2, are valid
only for F code. Even if a decimal point is not specified, the number of deci-
mal places may not be 0.

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

Note
The Power Mate–D or –F is not provided with the second
auxiliary function.

704
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Input data structure]

Top address + 0
(Function code)
32

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6 N = 0 to : See the list of data explained


(Data number) above.
N N = –1: All data for G function
(N: Data type)
N = –2: All data for other than G function
8
(Data attribute)
M M=0: Current block
(M: Specified block )

10 M=1: Next block


(Data area)
— M=2: Block after the next block
(Need not be set)

 

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.

705
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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: G 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.

706
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.22
Reading Diagnosis [Description]
Data (:Low–Speed The information displayed on the diagnosis data screen in the CNC can
Response) be read.

[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: 0, 1 to n, or –1)
M = –1: All axes
10
(Data area)

(Need not be set)

707
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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

10 Diagnosis data Data–dependent form

708
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.23
Reading A/D [Description]
Conversion Data The load current for the CNC control axis can be converted to analog
voltage, and input to the A/D converter in the CNC to obtain digital data.
The output of the A/D converter can then be read.

[Input data structure]

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)

(a) Type of analog voltage (data number)

N Type of analog voltage


0 General–purpose analog voltage information
(for four channels)
2 Load information for the CNC–controlled axes

Note
Only one–path control of the Power Mate MODEL D is
provided with one channel of general–purpose analog
voltage information.

709
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

(b) Specifying a CNC–controlled axis (data attribute)


Specify a CNC–controlled axis for which the voltage conversion
data for the load current is to be read. Data must be specified
according to the following table:

Specification of CNC controlled–axis


Specified data Connector in the CNC
1 JV1 (MAIN BOARD)
2 JV2 (MAIN BOARD)
3 JV3 (MAIN BOARD)
4 JV4 (MAIN BOARD)
5 JV5 (OPTION BOARD)
6 JV6 (OPTION BOARD)
7 JV7 (OPTION BOARD)
8 JV8 (OPTION BOARD)

[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.

[Output data structure]

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

10 A/D conversion data (2 bytes) Binary number from 0 to 7282


AD
A/D conversion data (two bytes)

14 A/D conversion data (2 bytes) Binary number from 0 to 255


AD
For general–purpose analog voltage
information

710
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

(a) A/D conversion data (AD) for feed motor 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:

(AD * 128) N + Load current [A


7282 peak]

AD = A/D conversion data [Value read by the window function (")]


N = Nominal current limit for the amplifier corresponding to the motor

(b) A/D conversion data (A/D) for general–purpose analog voltage


information
In A/D conversion data (A/D), 0 corresponds to –10 V, 128
corresponds to 0 V, 255 corresponds to +10 V, and other values
correspond in a direct proportion to these values.

(AD * 128) N + Load current [A


128 peak]

AD = A/D conversion data [Value read by the window function (")]


N = Nominal current limit for the amplifier corresponding to the motor

711
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.24
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Group No.)
By specifying a tool No., the No. of the tool group to which the specified
tool belongs can be read from tool life management data.

[Input data structure]

Top address + 0
(Function code)
38

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)
M
(M : Tool No.)

10
(Data area)

(Need not be set)

 

42

Note
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.

712
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

10 Tool group No. (4 bytes) Unsigned binary

When the specified tool belongs to two or more tool groups

10 Tool group No. (4 bytes) Unsigned binary

14 Tool group No. (4 bytes)

18 Tool group No. (4 bytes)

713
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.25
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Number of Tool
Groups) The number of tool groups in tool life management data can be read.
The number of tool groups 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

[Input data structure]

Top address + 0
(Function code)
39

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

714
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Completion codes]
0 : The number of tool group Nos. has been read normally.
6 : The tool life management option has not been added.

[Output data structure]

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

10 Number of tool groups (4 bytes) Unsigned binary

715
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.26
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Number of Tools)
By specifying a tool group No., the number of tools that belong to the tool
group can be read from tool life management data.
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

[Input data structure]

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)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

716
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

Note
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.

[Output data structure]

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

10 Number of tools (4 bytes) Unsigned binary

717
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.27
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Life)
By specifying a tool group No., the life of tools belonging to the tool
group can be read from tool life management data.
Whether to display the tool life in minutes or the number of cycles is
selected by bit 2 of parameter 6800 (LTM) for the CNC.

[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)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

Note
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.

718
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

Tool life (4 bytes) Unsigned binary


10
Unit: Time (minutes) or
number of cycles

719
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.28
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Life Counter)
By specifying a tool group No., the tool life counter for the specified tool
group can be read from tool life management data.

[Input data structure]

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)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

Note
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.

720
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

Tool life counter (4 bytes) Unsigned binary


10
Unit: Time (minutes) or
number of cycles

721
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.29
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Length
By specifying a tool group No. and a tool No., the tool length
Compensation No. (1): compensation No. for the specified tool can be read from tool life
Tool No.) management data. This function is available only with the M series
CNCs.

[Input data structure]

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)

 

42

Note
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.

722
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]

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

10 Tool length compensation No. (4 bytes) Unsigned binary

723
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.30
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Length
By specifying a tool group No. and tool order No., the tool length
Compensation No. (2):
compensation No. for the specified tool can be read from tool life
Tool Order No.) management data. This function is available only with the M series CNCs.

[Input data structure]

Top address + 0

(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)

 

42

Note
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.

724
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
44

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

725
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.31
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Cutter Compensation
By specifying a tool group No. and a tool No., the cutter compensation
No. (1): Tool No.) No. for the specified tool can be read from tool life management data.
This function is available only with the M series CNCs.

[Input data structure]


Top address + 0

(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)

 

42

Note
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.

726
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
45

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

727
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.32
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Cutter Compensation
By specifying a tool group No. and a tool order No., the cutter compensation
No. (2): Tool Order
No. for the specified tool can be read from tool life management data. This
No.) function is available only with the M series CNCs.

[Input data structure]

Top address + 0

(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)

 

42

Note
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.

728
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
46

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

729
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.33
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool Information (1) :
By specifying a tool group No. and a tool No., the information for the
Tool No.) specified tool can be read from tool life management data.

[Input data structure]


Top address + 0

(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)

 

42

Note
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.

730
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
47

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 high–order bytes are fixed to 0.

731
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.34
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data
[Description]
(Tool Information (2):
Tool Order No.) By specifying a tool group No. and a tool order No., the information for
the specified tool can be read from tool life management data.

[Input data structure]

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)

 

42

Note
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.

732
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
48

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 high–order bytes are fixed to 0.

733
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.35
Reading Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data
[Description]
(Tool No.)
By specifying a tool group No. and a tool order No., the No. of the
corresponding tool can be read from tool life management data.

[Input data structure]

Top address + 0

(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)

 

42

Note
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.

734
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
49

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

735
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.36
Reading the Actual [Description]
Spindle Speed The actual speed of the spindle can be read from the CNC.

[Input data structure]


Top address + 0

(Function code)
50

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not be set)

10
(Data area)

(Need not be set)

 

42

736
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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 increments>
rpm

737
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.37
Entering Data on the (Not available for Power Mate–D/F, Series 21–TA)
Program Check Screen [Description]
(:Low–speed
On the program check screen of the CNC, data can be entered for the
response) spindle tool No. and the next tool No. This function is available only with
the M series CNCs.
This function is effective only when bit 2 of parameter 3108 is 1.

[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)

(Need not be set) Value
10
Data for the spindle tool No. Unsigned binary
(4 bytes)
or data for the next tool No.
(4 bytes)

738
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
150

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)

739
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.38
Reading Clock Data (Not available for Power Mate–F)
(Date and Time) [Description]
The current date (year, month, day) and time (hours, minutes, seconds)
can be read from the clock built into the CNC.

[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)

(Need not be set)
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.

740
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Output data structure]


Top address + 0
(Function code)
151

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)

[Example] September 10th, 1990 [Example] 23:59:59


(hours:minutes:seconds)
Data area Data area
1990 23
+2 +2
9 59
+4 +4
10 59

741
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.39
Entering Torque Limit
Data for the Digital [Description]
Servo Motor Torque limit values for the digital servo motor can be entered.
(:Low–speed
response) [Input data structure]
Top address + 0
(Function code)
152

2
(Completion code)

(Need not be set)

(Data length)
2

6
(Data number)

(Need not be set)
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 high–order byte is always set to 0. Values from 0 to 255 correspond to 0%
to 100%.

[Example] To specify a torque limit of 50%, enter 128.

742
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[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.

[Output data structure]


Top address + 0
(Function code)
152

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 high–order byte is always set to 0. <Unit: %>
Values from 0 to 255 correspond to 0%
to 100%.

743
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.40
Reading Load [Description]
Information of the Load information of the serial spindle can be read.
Spindle Motor (Serial
The equation to normalize the load information is shown below
Interface)
Load (%) + L 
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.)

[Input data structure]


Top address + 0

(Function code)
153

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6 N = –1: Specifies both the first and second


(Data number) axes of the serial spindle.
N N = 0: Specifies the first axis of the serial
(Need not be set) spindle.
8 N = 1: Specifies the second axis of the
(Data attribute) serial spindle.

(Need not be set)

10
(Data area)

(Need not be set)

X X

42

744
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

[Completion codes]
0 : Load information of the serial spindle has been read normally.

[Output data structure]


Top address + 0
(Function code)
153

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 = –1: Specifies both the first and second
(Data number) axes of the serial spindle.
N N = 0: Specifies the first axis of the serial
(N: Input data) spindle.
8 N = 1: Specifies the second axis of the serial
spindle.
(Data attribute)
— Value
10
Load information of the serial spindle Signed binary, 2 bytes long
(first or second axis)

When all axes are specified

(Data attribute)
— Value
10
First axis in the load information of the Signed binary, 2 bytes long
serial spindle
12
Second axis in the load information of
the serial spindle

745
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.41
Reading a Parameter (Not available for Power Mate–D/F, Series 21–TA)
[Description]
Parameter data stored in the CNC can be read directly from the CNC via
the FANUC bus.
This function is basically the same as the function described in Section
3.6 ”Reading a Parameter,” except that the function code is 154 and some
of the completion codes are different.

[Input data structure]

Top address + 0

(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)
— When all axes are specified by spindle
(Need not be set) parameters (parameters 4000 to 4799),
only two axes are specified.

 

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.

746
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.42
Reading Set Data (Not available for Power Mate–D/F, Series 21–TA)
[Description]
Set data stored in the CNC can be read directly from the CNC via the
FANUC bus.
This function is basically the same as the function described in Section
3.8 ”Reading Set Data,” except that the function code is 155 and some of
the completion codes are different.

[Input data structure]


Top address + 0

(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)

 

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.

747
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

B.4.43
Reading Diagnosis (Not available for Power Mate–D/F, Series 21–TA)
Data [Description]
Data displayed on the diagnosis data screen of the CNC can be read
directly from the CNC via the FANUC bus.
This function is basically the same as the function described in Section
3.22 ”Reading Diagnosis Data,” except that the function code is 156 and
some of the completion codes are different.

[Input data structure]

Top address + 0

(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: 0, 1 to n, or –1)

10 M = –1 : All axes
(Data area)

(Need not be set)

 

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.

748
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.44
Reading a Character [Description]
String of the CNC In a machining program being executed on the CNC, the block currently
Program Being executed, the next block, and the next block but one can be read in the
Executed in the Buffer CNC program format. That is, these blocks can be read in the form of a
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.

[Input data structure]


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)

8 M=0 : Current block


(Data attribute)
M M = 1 to n : Next block
(M: Specified block)

10 M = –1 : Next block but one


(Data area)

(Need not be set)

 

74

Note
When data specified by the NC is a macro statement, the
character string cannot be read correctly.

749
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]


Top address + 0
(Function code)
157

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)

  
  

73
NC command data for the 64th character
RC(64)

750
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.45
Reading the Relative [Description]
Position on a The relative coordinates of the machine moving along an axis controlled
Controlled Axis by the CNC can be read.

[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)

(Need not be set)

8
(Data attribute) M = 1 to n : Reads the relative coordinates of
M each axis. n is an axis No.
(M: 1 to n or –1)
M = –1 : Reads the relative coordinates of
10 all axes.
(Data area)

(Need not be set)

 

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.

751
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Output data structure]

Top address + 0
(Function code)
74

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 2’s
complement.)

When the number of controlled axes is 4

Value
10
Relative coordinates on the first axis Signed binary
(4 bytes) (A negative value is represented in 2’s
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)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
y
system system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification mm, deg
g
Diameter system
0.001 0.0001
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.0001 0.00001
specification

Double values can be read for a machining center system or when radius
specification is used for the relevant axis of a lathe system.

752
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.46
Reading the Remaining
[Description]
Travel
The remaining travel of the machine along an axis controlled by the CNC
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.)

[Input data structure]

Top address + 0

(Function code)
75

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute) M = 1 to n: Reads the remaining travel along
M each axis. n is an axis No.
(M: 1 to n or –1)
M = –1 : Reads the remaining travel along all
10 axes.
(Data area)

(Need not be set)

 

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.

753
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Output data structure]

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 2’s
complement.)

When the number of controlled axes is 4

Value
10
Remaining travel along the first axis Signed binary
(4 bytes) (A negative value is represented in 2’s
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)

Output data unit


Increment Increment
Input system
system IS–B system IS–C
Machining center mm, deg
0.001 0.0001
system
y system
Power Mate–D, F inch system 0.0001 0.00001
Radius
0.001 0.0001
specification g
mm, deg
Diameter system
0.0005 0.00005
Lathe specification
system Radius
0.0001 0.00001
specification
inch system
Diameter
0.00005 0.000005
specification

754
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.47
Reading CNC Status [Description]
Information Status information (status indication on the screen) can be read from the
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

15 (Soft key indication) 15


00 05 10 15 20 25 30 35

[Input data structure]


Top address + 0

(Function code)
76

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)

(Need not be set)

10

(Data area)
 — 
(Need not be set)

42

755
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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

16 Status of M, S, T, and B functions 0 : *** (Other states)


(2 bytes) 1 : FIN
18 Status of emergency stop (2 bytes) 0 : (Releases the emergency stop state)
1 : — —EMerGency — —
2 : — RESET —
(The reset signal is on.)
20 Alarm status (2 bytes) 0 : *** (Other states)
1 : ALarM
2 : BATtery low
22
Status of program edit (2 bytes) 0 : ******* (Non editing)
1 : EDIT
2 : SeaRCH
3 : OUTPUT
4 : INPUT
5 : COMPARE
6 : LabelSKip
7 : OFST
8 : WSFT
9 : ReSTaRt

756
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.48
Reading an Operator [Description]
Message An NC operator message displayed on the NC screen can be read. An
operator message consists of up to 256 characters.
If the specified message is not found, –1 is output for the message No.

[Input data structure]


Top address + 0

(Function code)
83

2
(Completion code)

(Need not be set)

4
(Data length)

(Need not be set)

6
(Data number)

(Need not be set)

8
(Data attribute)
0
(Always set to 0)

10

(Data area)
 — 
(Need not be set)

268

757
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Completion codes]
0 : The operator message has been read normally.
4 : A value other than 0 was specified for the data attribute.
6 : The option has not been added.

[Output data structure]


Top address + 0
(Function code)
83

2
(Completion code)
?
(See the explanation of
the completion codes.)
4
(Data length) L : 5 to 257
L

6
(Data number)

(Input data)

8
(Data attribute)

(Input data) Value
10
Operator message No. 2000 to 2099 or –1

12 Number of characters of the message 0 to 257

14
Operator character string ASCII character string
Code of the first character: CH(1) (The null code (¥00) is always
appended to the end.)
15
Code of the second character: CH(2)

16
Code of the third character: CH(3)

 

Code of the Nth character: CH(N)

267
Code of the last character: NULL

758
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.49
Reading Value of the [Description]
P-code Macro Variable This function gets the value of variable for Macro–compiler (P–code
(:Low–speed macro variable) of specified number.
response) The extended P–code macro variable is not able to be read.

[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
(P–code macro variable number)

+ 10
(Data attribute)

(Need not be set)

+ 12
(Data area)

(Need not be set)

+ 18

Note
The ’Data number’ occupies 4 bytes instead of 2 bytes of
usual data structure.

759
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Completion codes]
0 : Success to read the value of P–code macro variable.
3 : The P–code macro variable specified by ’Data number’ is not able
to be read.
5 : The value of the P–code 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 P–code macro variable Signed binary
(4bytes) (Minus number is represented by 2’s
complemental)

+ 16 Figures after decimal point of the value Signed binary


(2bytes) (Minus number is represented by 2’s
complemental)

760
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.50
Writing Value of the [Description]
P–code Macro Variable This function stores the value into the variable for Macro–compiler
(:Low–speed (P–code macro variable) of specified number.
response) The extended P–code macro variable is not able to be written into.

[Input data structure]


Top address + 0
(Function code)
60

+2
(Completion code)

(Need not be set)

+4
(Data length)
6

+6
(Data number)
N
(P–code macro variable number)

+ 10
(Data attribute)

(Need not be set) Value
+ 12
Value of P–code macro variable Signed binary
(4bytes) (Minus number is represented by 2’s
complemental)

+ 16
Figures after decimal point of the value Signed binary
(2bytes) (Minus number is represented by 2’s
complemental)

Note
The ’data number’ occupies 4 bytes instead of 2 bytes of
usual data structure.

761
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Completion codes]
0 : Success to store the value into P–code macro variable.
2 : The data length has illegal data (is not 6).
3 : The P–code macro variable specified by ’Data number’ is not able
to be written.
6 : No option, or no Macro ROM module.

[Output data structure]


Top address + 0

(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 P–code macro variable
(4bytes)

+ 16
Figures after decimal point of the value
(2bytes)

762
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.51
Reading the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool life counter type)
This function gets the Tool life counter type of specified tool group in the
Tool life management data. (M series only)

[Input data structure]


Top address + 0

(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)

(Need not be set)

+ 10
(Data area)

(Need not be set)

+ 12

Note
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 power–on, ”0”
of Tool group number results ”0” as counter type.
”0” of counter type will be returned on T series.

763
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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)

764
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.52
Registering the Tool (Not available for Power Mate–D/F, Series 21–TA)
Life Management Data
(Tool group) [Description]
(:Low–speed This function registers the Tool group in Tool life management data, with
response) Tool number, length of life and Tool life counter type. On T series, the
Tool life counter type will be specified by the NC parameter ”LTM”
(No.6800#2), and this function cannot set/change the counter type.

[Input data structure]

Top address + 0
(Function code)
163

+2
(Completion code)

(Need not be set)

+4
(Data length)
8
+6
(Data number)

(Need not be set)

+8
(Data attribute)
M
(M = Tool number) Value
+ 10
Tool group number (2bytes) Unsigned binary
1–512
+ 12
Tool life counter type (2bytes) 1 : Frequency
2 : Real time in minutes
+ 14
Length of Tool life (4bytes) Unsigned binary
1–9999 (Frequency)
1–4300 (Real time in minutes)

[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.

765
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[Output data structure]


Top address + 0

(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)

Length of Tool life (4bytes)


(Same as input data)

766
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.53
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool life)
This function sets the length of Tool life of the specified Tool group in the
(:Low–speed Tool life management data.
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)

(Need not be set) Value
+10
Length of Tool life (4bytes) Unsigned binary
1–9999 (Frequency)
1–4300 (Real time in minutes)

767
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.
[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)

768
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.54
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool life counter)
This function sets the Tool life counter in the specified Tool group in the
(:Low–speed Tool life management data.
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)

(Need not be set) Value
+10
Length of Tool life (4bytes) Unsigned binary
1–9999 (Frequency)
1–4300 (Real time in minutes)

769
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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)

770
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.55
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool life counter type)
This function sets the Tool life counter type of specified Tool group in the
(:Low–speed Tool life management data. (M series only)
response)
[Input data structure]

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)

(Need not be set) Value
+10
Tool life counter type (2bytes) 1 : Frequency
2 : Real time in minutes

771
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

772
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.56
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool length offset
This function sets the Tool length offset number of the specified Tool
number (1) : Tool group in the Tool life management data. (M series only)
number)
(:Low–speed
response) [Input data structure]

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
1–255

773
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

Note
The effective value for Tool length offset number depends
on Tool compensation number available on NC.

774
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.57
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool length offset
This function sets the Tool length offset number of the Tool of the
number (2) : Tool specified Tool operation sequence number in the Tool life management
operation sequence data. (M series only)
number)
(:Low–speed
response) [Input data structure]

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
1–255

775
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

Note
The effective value for Tool length offset number depends
on Tool compensation number available on NC.

776
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.58
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Cutter compensation
This function sets the Cutter compensation number of the specified Tool
number (1) : Tool group in the Tool life management data. (M series only)
number)
(:Low–speed
response) [Input data structure]

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
1–255

777
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

Note
The effective value for Cutter compensation number
depends on Tool compensation number available on NC.

778
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.59
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Cutter compensation
This function sets the Cutter compensation number of the Tool of the
number (2) : Tool specified Tool operation sequence number in the Tool life management
operation sequence data. (M series only)
number)
(:Low–speed
response) [Input data structure]

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
1–255

779
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

Note
The effective value for Cutter compensation number
depends on Tool compensation number available on NC.

780
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.60
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool condition (1) :
This function sets the Tool condition of the specified Tool group in the
Tool number) Tool life management data.(M series only)
(:Low–speed
response)
[Input data structure]

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

781
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

This function changes Tool condition as below.


command before call after call

skip ( # ) usable ( )
clear skip ( # ) in use (@)
consumed ( * ) usable ( )

unused ( ) skip (#)


SKIP in use (@) skip (#)
consumed (*) skip (*)

782
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.61
Writing the Tool (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool condition (2) :
This function sets the Tool condition of the Tool of the specified Tool
Tool operation operation sequence number in the Tool life management data.
sequence number)
(:Low–speed
response) [Input data structure]

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

783
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

This function changes Tool condition as shown in B.4.60.

784
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.62
Writing the Tool Life (Not available for Power Mate–D/F, Series 21–TA)
Management Data [Description]
(Tool number)
This function registers a tool to the specified Tool group in the Tool life
(:Low–speed management data.
response)
[Input data structure]

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
1–9999

785
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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.

[Output data structure]

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)

786
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

B.4.63
Reading the Estimate Power
FS20 FS18 FS16
Mate
disturbance torque
  ∆ ∆
data
∆ : The support is decided by CNC series
: No support

(1) servo axis


[Description ]
The load torques except a necessary torque for acceleration/ deceleration
of the torques of the digital servo axis are read.

[Input data structure]

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

787
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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=2n, 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 2’s
the controlled axis specified complement. )
(2 bytes)
+12

When the number of controlled axes is 4

Value
+10 Estimate disturbance torque
data forfirst axis Signed binary
(2 bytes) (A negative value is represented in 2’s
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

788
B. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (EXCEPT SERIES 15B PMC–NB/NB2)

(2) spindle axis


[Description]
The load torques except a necessary torque for acceleration/ deceleration
of the torques of the serial spindle axis are read.

[Input data structure]

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

+8
(Data attribute) M=1 to n : Estimate disturbance torque
M data for specific axis. “n” is the
(M=1 to n or – 1) axis number.
+10
M= – 1 : Estimate disturbance torque
(Data area)
data for all axes.

(Need not to be set)
+12

789
B. WINDOW FUNCTION DESCRIPTION
B. (EXCEPT SERIES 15B PMC–NB/NB2) APPENDIX B–61863E/09

[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=2n, 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 2’s
(2 bytes) complement. )
+12

When the number of controlled axes is 2

Value

+10 Estimate disturbance torque Signed binary


data for first axis (2 bytes) (A negative value is represented in 2’s
complement. )
+12 Estimate disturbance torque
data forsecond axis (2 bytes)

[supporting soft]
CNC FS16 : B005 SERIES K EDITION
B105 SERIES H EDITION
B205 SERIES H EDITION
FS18 : BD03 SERIES L EDITION
BE03 SERIES I EDITION
BF03 SERIES I EDITION
SERVO : 9060 SERIES J EDITION
SPINDLE : 9A50 SERIES Q EDITION

790
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C WINDOW FUNCTION DESCRIPTION (FS15B PMC–NB/NB2)

C.1
FUNCTION This window function is a functional instruction by which the data on the
CNC side is read or is written.
Option (A02B–0162–J917) of NC window is necessary.

C.2
LOW–SPEED In the way to process, there are window function high speed and one
RESPONSE AND processed at low speed.
HIGH–SPEED In case of a low–speed response, The data is read or written by the control
between CNC and PMC.
RESPONSE OF
WINDOW FUNCTION Therefore, it is necessary to ACT=1 of the window instrucion must be
held until the transfer completion information (W1) becomes 1
(interlock).
In a high–speed response, it is not necessity for take the interlock because
the data is directly read.
Moreover, option (A02B–0162–J984) of NC window B is necessary to
read (the processing of) the tool offset data, the tool life management data
and machining time.

Notes
1. The window instruction of a low–speed response is
controlled exclusively with the other window instructions of
low–speed 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 low–speed response such as W1=1 and
ACT=1 of the window instruction of a low–speed response.
The window instruction of a high–speed response is not
exclusively controlled like a low–speed 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

791
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

Notes
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 A–E It does not support a new format.
Please use bit 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 bit 4 of NC parameter 7401 as 1.

Function that is effected by bit 4 of NC parameter 7401.


CONTENT
FUNCTION
7401#4
Tool life management data 0 The data of tool life management for 128
sets of tools can be read and written.
1 The data of tool life management for 512
sets of tools can be read and written.
Tool offset data according 0 This function can not be used.
to the specified tool
number 1 The tool offset data can be read and
written.

Note
Functions except the above–mentioned are not related to
bit 4 of NC parameter 7401.
If there is no option of the corresponding function, window
instructions can not be used.

792
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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+0 Data area
(32 byte)
 
DATA+31

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
General–purpose analog input (high) 34 0 Number 2 byte

793
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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 0 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

794
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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+0 Data area
(32 byte)
 
DATA+31

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 0 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

795
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3
FORMAT AND (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
DETAILS OF THE entered.
CONTROL DATA OF
(2) The length of all data blocks and data items is represented in bytes.
THE WINDR
(3) The read data becomes valid only when the instruction terminates
FUNCTIONAL normally.
INSTRUCTION Completion
Meaning
code
–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.

796
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.1
Reading the Tool Offset [Description]
Data (Low–speed The tool offset value (tool compensation) is read from the CNC.
response)
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

797
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

(Note 1) Offset format


M series (machining center system) T series (lathe system)

Data type Format Offset number Data type Format Offset number
(CTL+2, 3) (CTL+2, 3)

Tool compensation A Tool compensation A


Compensation 1 Offset number Compensation along 1 Offset number
the X–axis
Tool compensation B Compensation along 2 Offset number
Geometry 1 Offset number the Z–axis
compensation Tool–tip radius com- 3 Offset number
Wear 1 Offset number pensation
compensation +1000 Compensation along 4 Offset number
the Y–axis
Tool compensation C Compensation re- 5 Offset number
Tool length lated to the position Offset number
Geometry 1 Offset number of the virtual tool
compensation
Wear 1 Offset number Tool compensation B
compensation +1000 Geometry
Cutter compensation
Geometry 2 Offset number Compensation 1 Offset number
compensation along the X–axis
Wear 2 Offset number Compensation 2 Offset number
compensation +1000 along the Z–axis
Tool–tip radius 3 Offset number
compensation
Compensation 4 Offset number
along the Y–axis
Wear
compensation
Compensation 1 Offset number
along the X–axis +1000
Compensation 2 Offset number
along the Z–axis +1000
Tool–tip radius 3 Offset number
compensation +1000
Compensation 4 Offset number
along the Y–axis +1000
Compensation 5 Offset number
related to the
position of the
virtual tool

798
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.2
Reading the Offset [Description]
from the Workpiece The offset from the workpiece reference point of the current coordinate
Reference Point 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

799
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.3
Reading a Parameter
(Setting Data) [Description]
(Low–speed response) A parameter of the CNC is read.

Set data Read data


0 0
Function code Function code
17 17
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Parameter number Parameter number

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

800
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.4
Reading a Custom [Description]
Macro Variable A custom macro variable is read from the CNC.
(Low–speed response)
Note
The position of the decimal point must be specified
beforehand.

Set data Read data


0 0
Function code Function code
21 21
2 2
Completion code Completion code

4 4
Data length Data length
— 6
6 6
Custom macro Custom macro
variable number variable number
8 8
Data attribute Data attribute
0
10 10
Data area Custom macro
(4 byte) variable value
(4 byte)

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

801
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.5
Reading the CNC
Alarm State [Description]
(Low–speed response) If the CNC is in the alarm state, the details of the alarm are read.

Set data Read data


0 0
Function code Function code
23 23
2 2
Completion code Completion code

4 4
Data length Data length
— 2
6 6
Data number Data number
0
8 8
Data attribute Data attribute
0
10 10
Data area ALARM 1
(2 byte) 11
ALARM 2
12 12

The following alarm states can be read:

ALARM 1 Data format ALARM 2 Data format


7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0

#0 : Background P/S alarm #0 : External alarm message


#1 : Foreground P/S alarm #1 : Not defined
#2 : Overheat #2 : P/S alarm preventing the processing
#3 : Sub–CPU error from continuing (serious alarm)
#4 : Excessive synchronization error #3 : Not defined
#5 : Parameter enable switch enabled #4 : Servo alarm
#6 : Overtravel #5 : I/O error
#7 : PC error #6 : Parameter input requiring the power to be turned off
#7 : System error

802
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.6
Calling the Number of
a Running Program
(Low–speed response) [Description]
The number of a running machining program is read from the CNC.

Set data Read data


0 0
Function code Function code
24 24
2 2
Completion code Completion code

4 4
Data length Data length
— 6
6 6
Data number Data number
0
8 8
Data attribute Data attribute
0
10 10
Data area Program number
(6 byte)

14
FLAG 1
15
FLAG 2
16 16

FLAG 1 Data format FLAG 2 Data format


7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0

#0 to 3 : Number of decimal places #3 : Whether at least one address in the range


#4 : Whether a decimal point is provided of D to the second miscellaneous
(0: Not provided, 1: Provided) function is specified after the NC is reset
#5 : Positive or negative (0: Not specified, 1: Specified)
(0: Positive, 1: Negative) #7 : Whether the read data is specified in the
#6 : Whether only one digit is provided current block of the part program
(0: Not only one, 1: Only one) (0: Not specified, 1: Specified)
#7 : Not defined Other bits are not defined.

803
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.7
Calling the Sequence [Description]
Number of the Running The sequence number of the running machining program is read from the
Program CNC. If the blocks of the running machining program have no sequence
(Low–speed response) numbers, the sequence number of the block most recently executed is
read.

Set data Read data


0 0
Function code Function code
25 25
2 2
Completion code Completion code

4 4
Data length Data length
— 6
6 6
Data number Data number
0
8 8
Data attribute Data attribute
0
10 10
Data area Sequence number
(6 byte) (4 byte)

14
FLAG 1
15
FLAG 2
16 16

FLAG 1 Data format FLAG 2 Data format


7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0

#0 to 3 : Number of decimal places #3 : Whether at least one address in the


#4 : Whether the decimal point is provided range of D to the second miscellaneous
(0: Not provided, 1: Provided) function is specified after the NC is reset
#5 : Positive or negative (0: Not specified, 1: Specified)
(0: Positive, 1: Negative) #7 : Whether the read data is specified in the
#6 : Whether only one digit is provided current block of the part program
(0: Not only one, 1: Only one) (0: Not specified, 1: Specified)Other bits
#7 : Not defined are not defined.

804
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.8
Reading the Actual [Description]
Speed of Controlled
The actual speed of the feed axes controlled by the CNC is read.
Axes
(Low–speed response) The composite speed of the controlled axes is read. If the X–, Y–, and
Z–axes, the basic three axes, are controlled as feed axes, the composite
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

805
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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 4–byte 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)

Local coordinate system (G52)

Workpiece origin offset (G54 or after)

External workpiece origin offset

Workpiece coordinate system (G92)

x
Origin of the machine coordinate system

2) The unit of the read value is determined as follows:


(1) For the machining center system or when the radius is specified for the axis of the lathe systm.
The data shows double of the present position with the least input increment as a unit.
(2) When the diameter is specified for the lathe system
The data shows the present position with the least input increment.
(3) When the input unit is multiplied by 10
The data shows twenty–times the present position (radius programming) or ten–times the
present position (diameter programming) with the last command increment as a unit.
3) The present position of a moving axis can be read whenever the function instruction is executed.

806
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.10
Reading the Machine [Description]
Position on The machine position (machine coordinates) on a feed axis controlled by
a Controlled Axis 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

1) The unit of the read value is determined as follows:


(1) For the machining center system or when the radius is specified
for the axis of the lathe systm.
The data shows double of the present position with the least
input increment as a unit.
(2) When the diameter is specified for the lathe system
The data shows the present position with the least input
increment.
(3) When the input unit is multiplied by 10
The data shows twenty–times the present position (radius
programming) or ten–times the present position (diameter
programming) with the last command increment as a unit.
2) The present position of a moving axis can be read whenever the
function instruction is executed.

807
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.11
Reading the Skip
Position on a [Description]
Controlled Axis The absolute coordinates of the skip position specified in the CNC are
(Low–speed response) 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

1) The unit of the read value is determined as follows:


(1) For the machining center system or when the radius is specified
for the axis of the lathe systm.
The data shows double of the present position with the least
input increment as a unit.
(2) When the diameter is specified for the lathe system
The data shows the present position with the least input
increment.
(3) When the input unit is multiplied by 10
The data shows twenty–times the present position (radius
programming) or ten–times the present position (diameter
programming) with the last command increment as a unit.
2) Once the skip signal has been input to the NC, movement along the
relevant axis is stopped then, after the elapse of the servo delay, the
absolute position can be read.

808
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.12
Reading a Servo Delay [Description]
on a Controlled Axis
A servo delay, which is the difference between the specified position on
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 an
Acceleration/ [Description]
Deceleration Delay on An acceleration/deceleration delay, which is the difference between the
a Controlled Axis programmed position on a controlled axis and the actual position after the
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

809
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.14
Reading the [Description]
Continuous–State Data The continuous–state data is read from the CNC.
(Low–speed response)
The continuous–state 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 continuous–state data of the previous
block is read. When CTL2 is set to 2, the continuous–state data of the next
block is read.
(1) Continuous–state 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

(Note) Format of the continuous–state data


7 6 5 4 3 2 1 0
DATA+0

#0 to #6 : Continuous–state data
#7 : Specified block
1= Current block
0= Previous block

810
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

(2) Continuous–state data of a function other than the preparatory


function
The following eleven data items of an NC part program can be read:
addresses D, E, H, L, M, N, O, S, T, and F, and second miscellaneous
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
— 6
6 6
Data type 24 – : All 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
(6 byte) (4 byte)

14
FLAG 1
15
FLAG 2
16 16

FLAG 1 Data format FLAG 2 Data format


7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0

#0 – 3 : Number of decimal places #3 : Whether at least one address in the


#4 : Whether the decimal point is provided range of D to the second miscellaneous
(0: Not provided, 1: Provided) function is specified after the NC is reset
#5 : Positive or negative (0: Not specified, 1: Specified)
(0: Positive, 1: Negative) #7 : Whether the read data is specified in the
#6 : Whether only one digit is provided current block of the part program
(0: Not only one, 1: Only one) (0: Not specified, 1: Specified)
#7 : Not defined Other bits are not defined.

811
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

(3) Data specification


Kind of data Data specification
Modal data 1) Modal data of G function
The relationship between the numbers specified in the CTL1 (kinds of data), modal data codes is shown below. Into
CTL2 (the specified block), specify 0 (previous data), 1 (present date), or 2 (next data) in accordance with the
necessary modal data.
The G code for the lathe system is expressed with the G code system B. Refer to the table indicating the G function
system. For example, the G32 of the G code system A corresponds to the G33 of the G code system B. As a result,
the code fetched in the DATA + 0 is 4.

G code for lathe


Specified number in G code for machining Code fetched in
system
CTL1 (kinds of data) center system DATA + 0
(G code system B)
00 G00 G00 0
G01 G01 1
G02 G02 2
G03 G03 3
G33 G33 4
— G77 8
— G78 9
— G79 10
01 G17 G97 0
G18 G96 1
G19 — 2
02 G90 G90 1
G91 G91 0
03 G22 G22 0
G23 G23 1
04 G93 — 2
G94 G94 0
G95 G95 1
05 G20 G20 1
G21 G21 0
06 G40 G40 0
G41 G41 1
G42 G42 2
07 G43 — 1
G44 — 2
G49 — 0
08 G80 G80 0
G81 G81 1
G82 G82 2
G83 G83 3
G84 G84 4
G85 G85 5
G86 G86 6
G87 G87 7
G88 G88 8
G89 G89 9
G73 G83.1 10
G74 G84.1 11
G76 G86.1 12
09 G98 G98 0
G99 G99 1
10 G50 — 0
G51 — 1

812
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

Kind of data Data specification


Modal data
G code for lathe
Specified number in G code for machining Code fetched in
system
CTL1 (kinds of data) center system DATA + 0
(G code system B)
11 G66 G66 1
G67 G66 0
G66.1 G66.1 2
12 G96 G68 1
G97 G69 0
13 G54 G54 0
G55 G55 1
G56 G56 2
G57 G57 3
G58 G58 4
G59 G59 5
14 G61 G61 1
G62 — 2
G63 — 3
G64 G64 0
15 G69 G17 0
G68 G18 1
— G19 2
16 G15 — 0
G16 — 1
17 G50.1 G50.1 0
G51.1 G51.1 1

813
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

Kind of data Data specification


Modal data
Table — 1 of G code system for a lathe system
G code system *1)
F nction
Function
A B C
G00 G00 G00 Positioning
G01 G01 G01 Linear interpolation
G02 G02 G02 Circular interpolation CW
G03 G03 G03 Circular interpolation CCW
G04 G04 G04 Dwell
G07 G07 G07 Hypotherical axis interpolation
G09 G09 G09 Exact stop
G10 G10 G10 Data setting
G10.1 G10.1 G10.1 PC data setting
G11 G11 G11 Data setting mode cancel
G17 G17 G17 XpYp plane selection Xp: X axis or its parallel axis
G18 G18 G18 ZpXp plane selection Yp: Y axix or its parallel axis
G19 G19 G19 YpZp plane selection Zp: Z axis or its parallel axis
G20 G20 G70 Inch input
G21 G21 G71 Metric input
G22 G22 G22 Stored stroke check on
G23 G23 G23 Stored stroke check off
G27 G27 G27 Reference point return check
G28 G28 G28 Reference point return
G29 G29 G29 Return from reference point
G30 G30 G30 Return to 2nd, 3rd, 4th reference point
G31 G31 G31 Skip function
G32 G32 G32 Thread cutting
G34 G34 G34 Variable lead thread cutting
G35 G35 G35 Circular thread cutting CW
G36 G36 G36 Circular thread cutting CCW or automatic tool
compensation (X axis)
G37 G37 G37 Automatic tool compensation #1 or automatic tool
compensation (Z axis)
G37.1 G37.1 G37.1 Automatic tool compensation #1
G37.2 G37.2 G37.2 Automatic tool compensation #2
G37.3 G37.3 G37.3 Automatic tool compensation #3
G40 G40 G40 Tool nose radius compensation cancel
G41 G41 G41 Tool nose radius compensation left
G42 G42 G42 Tool nose radius compensation right
G50 G92 G92 Work coordinates change/maximum spindle spped
setting
G50.1 G50.1 G50.1 Programmable mirror image cancel
G51.1 G51.1 G51.1 Programmable mirror image
G52 G52 G52 Local coordinate system setting
G53 G53 G53 Machine coordinate system selection
G54 G54 G54 Work coordinate system 1 selection
G55 G55 G55 Work coordinate system 2 selection
G56 G56 G56 Work coordinate system 3 selection
G57 G57 G57 Work coordinate system 4 selection
G58 G58 G58 Work coordinate system 5 selection
G59 G59 G59 Work coordinate system 6 selection
G61 G61 G61 Exact stop mode
G62 G62 G62 Automatic corner override
G64 G64 G64 Cutting mode
G65 G65 G65 Macro call
G66 G66 G66 Macro modal call A
G66.1 G66.1 G66.1 Macro modal call B
G67 G67 G67 Macro modal call A/B cancel
G68 G68 G68 Mirror image for double currets on
G69 G69 G69 Mirror image for double currets cancel
G70 G70 G72 Finishing cycle
G71 G71 G73 Stock removal in turning

814
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

Kind of data Data specification


Modal data Table — 2 of G code system for a lathe system
G code system *1)
F nction
Function
A B C
G72 G72 G74 Stock removal in facing
G73 G73 G75 Pattern repeating
G74 G74 G76 Peck drilling Z axis
G75 G75 G77 Grooving in X axis
G76 G76 G78 Threading cycle
G80 G80 G80 Canned cycle for drilling cancel
G81 G81 G81 Drilling cycle, spot boring
G82 G82 G82 Drilling cycle, counter boring
G83 G83 G83 Peck drilling cycle
G83.1 G83.1 G83.1 Peck drilling cycle
G84 G84 G84 Tapping cycle
G84.1 G84.1 G84.1 Counter tapping cycle
G85 G85 G85 Boring cycle
G86 G86 G86 Boring cycle
G86.1 G86.1 G86.1 Fine boring cycle
G87 G87 G87 Back boring cycle
G88 G88 G88 Boring cycle
G89 G89 G89 Boring cycle
G90 G77 G20 Outting cycle A
G92 G78 G21 Thread cutting cycle
G94 G79 G24 Outting cycle B
G96 G96 G96 Constant surface speed control
G97 G97 G97 Constant surface speed control
G98 G94 G94 Feed per minute
G99 G95 G95 Feed per revolution
— G90 G90 Absolute command
— G91 G91 Incremental command
— G98 G98 Canned cycle initial level return
— G99 G99 Canned cycle R point level return

*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.

2) Modal data other than the G function

Modal data other than CTL1 (kinds of data)


Field from which to
the G function For machining For turning fetch data
(address in the part program) system system
D 24 —
E 25 24
H 26 25
L 27 26
M 28 27
N 29 28 DATA+0 to DATA+5
O 30 29
S 31 30
T 32 31
F 33 32
Second auxiliary function 34 33

815
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.15
Reading the Diagnostic
Data [Description]
(Low–speed 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
Diagnosis number
The diagnosis number must fall in the range of 0 to 103 or
200 to 303.

816
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.16
Reading the Load [Description]
Current 1. The load current for an axis controlled by the CNC is converted to
(A/D Conversion Data) adigital value and the digital value is read.
for 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.
Set data Read data
0 0
Function code Function code
34 34
2 2
Completion code Completion code

4 4
Data length Data length
— 2
6 6
Data number Data number

8 8
Axis number Axis number

10 10
Data area A/D conversion data
(2 byte) (2 byte)

12 12

An analog voltage ranging from –10V to +10V is input to the A/D


converter of the NC. The voltage is converted to a digital value ranging
form 0 to +255 and transferred by the window function to the PMC. This
value is called the A/D conversion data.
The digital value is proportional to the analog voltage: 0 corresponds to
–10V, 128 corresponds to 0V, and 255 corresponds to +10V.
Type of analog voltage input Data number Axis number
General–purpose analog input 0 1
2
3
4
5
6
Analog input of a voltage caluculated 200 1
from the load current for the axis con- 2
trolled by the NC 3
(AC servo motor only) 4
5
6
7
8
9
10
11
12
13
14
15

Method of calculation of the load current of controlled axis from the read
A/D conversion data is as follows.

817
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

a) In the case of peak current [Ao–p] of load current is calculated.


(READ DATA) * 128
LOAD CURRENT[Ao–p] + [Ao–p]
(COEFFICIENT)
b) In the case of ratings currents [Arms] of load current are calculated.
(READ DATA) * 128
LOAD CURRENT[Arms] + [Arms]
(COEFFICIENT) Ǹ2
c) In the case of percent (rate) is calculated.
LOAD CURRENT[Ao–p]
rate of load[%] + 100[%]
PEAK CURRENT OF SERVO MOTOR
COEFFICIENT:
It decides depending on the capacity of the amplifier to be used.
PEAK CURRENT OF SERVO MOTOR :
It dicides with the servo motor.

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

Moreover, the amplifier of 80A is used for the motor of 30S.


The coefficient is calculated.
The coefficient is a value by which the peak current of amplifier is
converted by 128.
COEFFICIENT + 128 + 128 + 1.6
PEAK CURRENT VALUE OF AMPLIFIER 80
The peak current of the servo motor is calculated.
PEAK CURRENT[Ao–p]+ (ratings currents) Ǹ2

+ 16 Ǹ2 + 22.62742

8 23 [Ao–p]
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[Ao–p] of load current
(READ DATA) * 128
LOAD CURRENT[Ao–p] + + 150 * 128
(COEFFICIENT) 1.6
+ 13.75 [Ao–p]

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[Ao–p]
RATE OF LOAD[%] + 100
PEAK CURRENT OF SERVO MOTOR

+ 13.75 100 + 59.8 [%]


23

818
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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
(Low–speed 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.

819
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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
(Low–speed response) read.

Set data Read data


0 0
Function code Function code
39 39
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 Number of tool
(4 byte) groups
(4 byte)

14 14

C.3.19
Reading the Tool Life
Management Data [Description]
(Number of Tools) The number of tools cataloged in the specified tool group is read.
(Low–speed response)
Set data Read data
0 0
Function code Function code
40 40
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Data attribute Data attribute
0
10 10
Data area Number of tools
(4 byte) (4 byte)

14 14

820
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.20
Reading the Tool Life
Management Data
(Tool Life) [Description]
(Low–speed response) The tool life of the specified tool group is read.

Set data Read data


0 0
Function code Function code
41 41
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Data attribute Data attribute
0
10 10
Data area Tool life
(4 byte) (4 byte)

14 14

C.3.21
Reading the Tool Life
Management Data
(Tool Life Counter) [Description]
(Low–speed response) The tool life counter of the specified tool group is read.

Set data Read data


0 0
Function code Function code
42 42
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Data attribute Data attribute
0
10 10
Data area Tool life counter
(4 byte) (4 byte)

14 14

821
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.22
Reading the Tool Life
Management Data
(Tool Life Counter
Type) [Description]
(Low–speed response) The tool life counter type of the specified tool group is read.

Set data Read data


0 0
Function code Function code
160 160
2 2
Completion code Completion code

4 4
Data length Data length
— —
6 6
Tool group No. Tool group No.

8 8
Data attribute Data attribute
0
10 10
Data area Tool life counter type
(4 byte) (4 byte)

14 14

Tool life counter type


1 : The tool life counter indicates the number of times the tool has been used.
2 : The tool life counter indicates the period of time the tool has been used.

822
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.23
Reading the Tool Life
Management Data
(Tool Length
Compensation [Description]
Number 1) A tool length compensation number is read according to the specified tool
(Low–speed response) group number and tool number.

Set data Read data


0 0
Function code Function code
43 43
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Tool No. Tool No.

10 10
Data area Tool length compensa-
(4 byte) tion No.
(4 byte)

14 14

If nothing is specified after the H code, the NC transfers 255 (FFH).

823
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.24
Reading the Tool Life
Management Data
(Tool Length
Compensation [Description]
Number 2) A tool length compensation number is read according to the specified tool
(Low–speed response) group number and tool order number.

Set data Read data


0 0
Function code Function code
44 44
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Tool order number Tool order number

10 10
Data area Tool length
(4 byte) compensation No.
(4 byte)

14 14

If nothing is specified after the H code, the NC transfers 255 (FFH).

824
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.25
Reading the Tool Life
Management Data
(Cutter Compensation [Description]
Number 1) A cutter compensation number is read according to the specified tool
(Low–speed response) group number and tool number.

Set data Read data


0 0
Function code Function code
45 45
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Tool No. Tool No.

10 10
Data area Cutter
(4 byte) compensation No.
(4 byte)

14 14

If nothing is specified after the D code, the NC transfers 255 (FFH).

825
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.26
Reading the Tool Life
Management Data
(Cutter Compensation [Description]
Number 2) A cutter compensation number is read according to the specified tool
(Low–speed response) group number and tool order number.

Set data Read data


0 0
Function code Function code
46 46
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Tool order number Tool order number

10 10
Data area Cutter
(4 byte) compensation No.
(4 byte)

14 14

If nothing is specified after the D code, the NC transfers 255 (FFH).

826
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.27
Reading the Tool Life
Management Data [Description]
(Tool Information 1) The tool information (status) is read according to the specified tool group
(Low–speed response) number and tool number.

Set data Read data


0 0
Function code Function code
47 47
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

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.

827
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.28
Reading the Tool Life
Management Data [Description]
(Tool Information 2) The tool information (status) is read according to the specified tool group
(Low–speed response) number and tool order number.

Set data Read data


0 0
Function code Function code
48 48
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

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 3.27.

C.3.29
Reading the Tool Life
Management Data [Description]
(Tool Number) A tool number is read according to the specified tool group number and
(Low–speed response) tool order number.

Set data Read data


0 0
Function code Function code
49 49
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Tool group No. Tool group No.

8 8
Tool order number Tool order number

10 10
Data area Tool No.
(4 byte) (4 byte)

14 14

828
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.30
Reading the Clock Data [Description]
(Low–speed response) The current data (year, month, day) and current time (hours, minutes,
seconds) can be read from the clock built into the CNC.

Set data Read data


0 0
Function code Function code
151 151
2 2
Completion code Completion code

4 4
Data length Data length
— 6
6 0 : Current data 6
Data format Data format

8 1 : Current time 8
Data attribute Data attribute
0
10 10
Data area Clock data
(6 byte) (6 byte)

16 16

(Note) Format of clock data


The data is binary.
Current date
DATA+ 0
Years (Example: 1992)
+2
Months (Example: 12)
+4
Days (Example: 16)
+6
Current time
DATA+ 0
Hours (Example: 23)
+2
Minutes (Example: 59)
+4
Seconds (Example: 59)
+6

829
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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.

Set data Read data


0 0
Function code Function code
74 74
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 Relative position
(4 byte) (4 byte)

14 14

1) The unit of the read value is determined as follows:


(1) For the machining center system or when the radius is specified
for the axis of the lathe systm.
The data shows double of the present position with the least
input increment as a unit.
(2) When the diameter is specified for the lathe system
The data shows the present position with the least input
increment.
(3) When the input unit is multiplied by 10
The data shows twenty–times the present position (radius
programming) or ten–times the present position (diameter
programming) with the last command increment as a unit.
2) The present position of a moving axis can be read whenever the
function instruction is executed.

830
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.32
Reading the Remaining [Description]
Traveling Distance on a The remaining traveling distance on a feed axis controlled by the CNC is
Controlled Axis read.

Set data Read data


0 0
Function code Function code
75 75
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 Remaining travel
(4 byte) (4 byte)

14 14

831
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.33
Reading an Estimate [Description]
Disturbance Torque 1) The load torques except a necessary torque for acceleration/
data deceleration of the torques of the servo axis are read.
2) The load torques except a necessary torque for acceleration/
deceleration of the torques of the serial spindle axis are read.

Set data Read data


0 0
Function code Function code
211 211
2 2
Completion code Completion code

4 4
Data length Data length
— 2
6 6
Data number 0: Estimate disturbance
Data number
0 or 1 torque data of a digital
servo
8 8
1: Estimate disturbance
Axis number torque data of a serial Axis number
spindle
10 10 Estimate disturbance
Data area
torque
(2 byte)
(2 byte)
12 12

Kind of data Data specification


Estimate disturbance torque data Please refer to ”FANUC AC SERVO AMPLIFIER AMINTENANCE MANUAL
of a digital servo (B–65005E)” for correspondence of the load torque with the value of the read data.
Estimate disteurbance torque data Please refer to ”FANUC AC SPINDLE SERVO UNIT (SERIAL INTERFACE) MAINTE-
of a serial spindle NANCE MANUAL (B–65045E)” for correspondence of the load torque with the value of
the read data.
The load torque of the spindle is understood from the undermentioned calculation type.

Load torque + The read data Maximum output torque of spindle


16384

832
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.3.34
Reading the Machining [Description]
Time The machining time currently specified for a program is read.
(Low–speed response)
Set data Read data
0 0
Function code Function code
178 178
2 2
Completion code Completion code

4 4
Data length Data length
— 6
6 6
Program number Program number

8 8
Data attribute Data attribute
1 1
10 10
Data area Machining time
(6 byte) (6 byte)

16 16

C.3.35
Reading the Load [Description]
Current The load current for the spindle (spindle motor) is converted to a digital
(A/D Conversion Data) value and the digital value is read. (See Section 3.16, ”Reading the Load
for the Spindle Motor Current (A/D Conversion Data) for the Feed Motor.”)

Set data Read data


0 0
Function code Function code
153 153
2 2
Completion code Completion code

4 4
Data length Data length
— 2
6 6
Data number Data number
0
8 8
Axis number Axis number

10 10
Data area A/D conversion data
(2 byte) (2 byte)
12 12

833
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.3.36
Reading the Tool offset [Description]
data according to the The tool number is spedified and the tool offset data is read.
specified tool number
Set data Read data
0 0
Function code Function code
213 213
2 2
Completion code Completion code

4 4
Data length Data length
— 4
6 6
Data format Data format

8 8
Tool number Tool number

10 10
Data area offset data
(4 byte) (4 byte)

16 16

The data form Tool number


Kind of the data to be read
CTL1 CTL2
Tool number 01 Tool display number
Pot number 10 Tool No.
Pot number 11 Tool display number
Tool length compensation value 20 Tool No.
Tool length compensation value 21 Tool display number
Cutter compensation value 30 Tool No.
Cutter compensation value 31 Tool display number

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)

834
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.4
FORMAT AND DETAILS (1) See the description of the window function. The data item marked
OF THE CONTROL with a dash (–) in the description of the data structure need not be
entered.
DATA OF THE WINDW When output, the data item has no meaning.
FUNCTIONAL (2) The length of all data blocks and data items is represented in bytes.
INSTRUCTION
(3) The output data becomes valid only when the instruction terminates
normally.
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.

835
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.4.1
Writing the Tool Offset [Description]
Data The data is directly written into the tool offset value (tool compensation)
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)

Tool compensation A Tool compensation A


Compensation 1 Offset number Compensation along the 1 Offset number
X–axis
Tool compensation B Compensation along the 2 Offset number
Geometry 1 Offset number Z–axis
compensation Tool–tip radius compensation 3 Offset number
Wear 1 Offset number Compensation along the 4 Offset number
compensation +1000 Y–axis
Compensation related to the posi- 5 Offset number
Tool compensation C tion of the virtual tool Offset number
Tool length
Geometry 1 Offset number Tool compensation B
compensation Geometry compensation
Wear 1 Offset number Compensation along the X–axis 1 Offset number
compensation +1000 Compensation along the Z–axis 2 Offset number
Tool–tip radius compensation 3 Offset number
Cutter Compensation along the Y–axis 4 Offset number
Geometry 2 Offset number Wear compensation
compensation Compensation along the X–axis 1 Offset number
Wear 2 Offset number +1000
compensation +1000 Compensation along the Z–axis 2 Offset number
+1000
Tool–tip radius compensation 3 Offset number
+1000
Compensation along the Y–axis 4 Offset number
+1000
Compensation related to the 5 Offset number
position of the virtual tool

836
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.4.2
Writing a Parameter [Description]
(Setting Data) The data is written into the parameter area of the CNC.
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

837
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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

(Note 1) In the case of writing a Custom Macro Variable of


upper than 100000.
Please input ”10” to ”Data attribute”, and input last
four digits of variable number to ”Custom macro
variable number”.

(Note 2) Specification of the position of the decimal point


7 6 5 4 3 2 1 0
DATA+4

#0 to #3 : Set number of digit beelow decimal point.


#4 to #7 : Set to ”0”.

Examples (Value written in the NC) 


(value of custom macro variable)
10 (Positon of decimal point)
Value in the NC Custom macro variable value Position of
decimal point
1234. 000 0
123. 400 1234 1
12. 340 2
1. 124 3
0. 1234 4

838
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.4.4
Writing the Data on the [Description]
Program Check Screen The data to be displayed on the program check screen of the CNC is
rewritten.

Set data
0
Function code
150
2
Completion code

4
Data length
2
6
Data type

8
Data attribute
0
10
Data on the program
check screen
(2 byte)
12

Data type Data type Attribute


M code which is being executed (1 to 5) 1 to 5 0
Spindle speed range 100 0
Spindle tool number 200 0
Number of the tool to be used next 201 0

839
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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 Un–signed 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.

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
Group number
6 DATA+0
Data number Life counter type
DATA+1 DATA+0 BIT 7

8 DATA+2
Tool life value
Tool No. DATA+3

10 Group number 1 to 512


Tool life value 1 to 9999 (Specified number of time)
Tool group No.
1 to 4300 (Specified time)
(4 byte) Tool life counter type ( DATA+0 BIT 7)
12 0: Number of time
Tool life value 1: Time (minute)
14

840
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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

10
Tool life
(4 byte)

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

10
Tool life counter
(4 byte)

14

841
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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

10
Tool life counter type
(4 byte)

14

Tool life counter type


1 : The tool life counter indicates the number of times the tool has been used.
2 : The tool life counter indicates the period of time the tool has been used.

842
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

C.4.10
Writing the Tool Life
Management Data
(Tool Length [Description]
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 Length [Description]
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

843
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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

844
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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

845
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

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

846
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

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

The data form Tool number


Kind of the data to be written
CTL1 CTL2
Change of Tool number 00 Tool No.
Change of Tool number 01 Tool display number
Pot number 10 Tool No.
Pot number 11 Tool display number
Tool length compensation value 20 Tool No.
Tool length compensation value 21 Tool display number
Cutter compensation value 30 Tool No.
Cutter compensation value 31 Tool display number
Addition of Tool number 40 Tool No.
Addition of Tool number 41 Tool display number

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)

847
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.4.18
Writing the (1) For three axes
Superposition Move [Description]
Command
After the axes for manual handle feed are selected in the manual handle
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.

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

(Note 1) Format of superposition move command

DATA+0
First manual pulse generator
DATA+2
Second manual pulse generator
DATA+4
Third manual pulse generator
DATA+6

848
C. WINDOW FUNCTION DESCRIPTION
B–61863E/09 APPENDIX (FS15B PMC–NB/NB2)

(2) For four axes

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

Axis specification mode


7 6 5 4 3 2 1 0

#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)

(Note 1) Format of superposition move command


DATA+0
First manual pulse generator
DATA+2
Second manual pulse generator
DATA+4
Third manual pulse generator
DATA+6
Fourth manual pulse generator
DATA+8

849
C. WINDOW FUNCTION DESCRIPTION
C. (FS15B PMC–NB/NB2) APPENDIX B–61863E/09

C.4.19
Writing the Feedrate [Description]
Feedrate writing can be specified only in the feed–per–minute mode. The
velocity command is specified with F10–d. 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 1) Format of feedrate


7 6 5 4 3 2 1 0
DATA+0 Flag for validating the velocity command
: Bit 2 of DATA+0
DATA+2 (0: The NC is valid.
Feedrate, F 1: The PMC is valid.)
DATA+4 Exponent Feedrate, F : DATA+2 and DATA+3
of feedrate, d Exponent of feedrate, d : DATA+4 and DATA+5
DATA+6

850
B–61863E/09 APPENDIX D. WINDOW FUNCTION DESCRIPTION (FS16–LA)

D WINDOW FUNCTION DESCRIPTION (FS16–LA)

D.1
OUTLINE The following function is added to PMC–CNC window function for
FS16–LA.
(1) Transferring a processing condition file in non–volatile memory to
data area in CNC memory, and vice versa.
(2) Reading a comment command in a part program.
(3) Reading data commanded to laser oscillator

851
D. WINDOW FUNCTION DESCRIPTION (FS16–LA) APPENDIX B–61863E/09

D.2
FUNCTION

D.2.1
Transfer Between Data (1) Transfer from data area to non–volatile memory. (% low–speed
Area and Non–Volatile type)
Memory
[Contents of data]
The data can be transferred from the data area in CNC to PMC
non–volatile memory by PMC–RC application.
Setting the original data set or group in data attribute M.
Setting the written address of non–volatile memory for the offset address
from the top address in address N.
Setting the total byte No. of written data set in address L.
Setting the forward structure of data set in data.
And the data can be transferred set or group from data area to non–volatile
memory.

[Structure of input data]

Top address + 0 The following End Code is output at reading end.

(Function code) 0 : normal end


183 3 : The incorrect data is set in Address.
4 : The incorrect data is set in Data attribute.
2
(End Code)

(No need to set)

4 L = Set the total byte No. of the data structure


(Data length) for 1 set in non–volatile memory.
L This data must be set in case of transferring
the data group.
(No–need to set in case of transferring the set)
6
(Address) N = Set the forward address by the offset from
N the top address of non–volatile memory.

8
M = Set the kind of data set or group to transfer
(Data attribute)
M 1–10 : Set of processing data
101–103 : Set of piercing d data
10 201–205 : Set of edge process data
(Data) 1000 : Group of processing data
1001 : Group of piercing data
1002 : Group of edge process data

Structure of data set


Set the correspondence of 1 set of data item in
data area and data item in non–volatile memory
by relative address for non–volatile memory.
(Refer to attention 1)

852
B–61863E/09 APPENDIX D. WINDOW FUNCTION DESCRIPTION (FS16–LA)

(2) Transfer from non–volatile memory to data area (% low–speed type)

[Contents of data]
The data can be transferred from the processing condition file registered
in non–volatile memory to the data area in CNC by PMC–RC application.
Setting the forward data set or group in data attribute M.
Setting the original read address for the offset address from non–volatile
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 non–volatile memory
to data area.

[Structure of input data]

Top address + 0 The following End Code is output at reading end.

(Function code) 0 : normal end


184 3 : The incorrect data is set in Address.
4 : The incorrect data is set in Data attribute.
2
(End Code)

(No need to set)

4 L = Set the total byte No. of the data structure


(Data length) for 1 set in non–volatile memory.
L This data must be set in case of transferring
the data group.
(No–need to set in case of transferring the set)
6
(Group No.) N = Set the original address by the offset from
N the top address of non–volatile memory.

8
M = Set the kind of data set or group to transfer
(Data attribute)
M 1–10 : Set of processing data
101–103 : Set of piercing d data
10 201–205 : Set of edge process data
(Data) 1000 : Group of processing data
1001 : Group of piercing data
1002 : Group of edge process data

Structure of data set


Set the correspondence of 1 set of data item in
data area and data item in non–volatile memory
by relative address for non–volatile memory.
(Refer to attention 1)

853
D. WINDOW FUNCTION DESCRIPTION (FS16–LA) APPENDIX B–61863E/09

(3) Data structure of data area


(a) Processing data set
Address Data item Byte No.
0 Feed–rate 4
4 Peak power 2
6 Pulse frequency 2
8 Pulse duty 2
10 Assist gas pres. 2
12 Assist gas select 2
14 Assist gas settling time 2
16 Reference displacement 2
18 Offset amount 4
22 Edge process select 2
24 Start–up process select 2

(b) Piercing data set


Address Data item Byte No.
0 Peak power 2
2 Initial frequency 2
4 Initial duty 2
6 Frequency increment 2
8 Duty increment 2
10 Step time 2
12 Step No. 2
14 Piercing time 4
18 Assist gas pres. 2
20 Assist gas select 2
22 Assist gas settling time 2
24 Reference displacement 2

(c) Edge processing data set


Address Data item Byte No.
0 Judge angle 2
2 Peak power 2
4 Pulse frequency 2
6 Pulse duty 2
8 Piercing time 4
12 Assist gas pres. 2
14 Assist gas select 2
16 Return distance 4
20 Return feed rate 2
22 Return frequency 2
24 Return duty 2

854
B–61863E/09 APPENDIX D. WINDOW FUNCTION DESCRIPTION (FS16–LA)

Note
1. 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
non–volatile memory.

Data structure of data area The example of data structure for


the processing condition file in
non–volatile memory

Address Data Address Data

0 Feed–rate 0 Feed–rate

4 Peak power 4 Peak power

6 Pulse frequency 6 Pulse frequency


8 Pulse duty 8 Pulse duty

10 Assist gas pres. 10 Focus distance

12 Assist gas select 12 Assist gas pres.

14 Assist gas time 14 Assist gas select

16 Ref. displacement 16 Assist gas time

18 Offset amount 18 Ref. displacement

22 Edge select 20 Offset amount

24 Start–up select 24 Pulse type

26 Edge select

28 Start–up select

Data item in data area Address Data setting value

Feed–rate Top address +10 0


Peak power Top address +12 4
Pulse frequency Top address +14 6
Pulse duty Top address +16 8
Assist gas pres. Top address +18 12
Assist gas select Top address +20 14
Assist gas time Top address +22 16
Ref. displacement Top address +24 18
Offset amount Top address +26 20
Edge select Top address +28 26
Start–up select Top address +30 28

855
D. WINDOW FUNCTION DESCRIPTION (FS16–LA) APPENDIX B–61863E/09

D.2.2
Reading of the The data in the parentheses is written in the comment area, if the following
Comment M–code is commanded in a part program. This comment can be read from
PMC.

Mxxx (* * * * * * *) ;

Less than 24 characters,


including alphabet, numeral, decimal–point and +/–

[Contents of data]
Contents of the data can be read for ASCII code.

[Structure of input data]

Top address + 0 The following End Code is output at writing end.

(Function code) 0 : normal end


140 1 : The data length of comment data is over 24
bytes
2
(End Code)

(No need to set)

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.

Notes
1. The comment is over–written if the next comment is input.
2. M–code number for reading of the comment is set to
parameter number 15350.
Setting value is 0 to 999.

856
B–61863E/09 APPENDIX D. WINDOW FUNCTION DESCRIPTION (FS16–LA)

D.2.3
Reading and Writing (1) Reading the laser command data and laser setting data
the Laser Command (:high–speed type)
Data and Laser Setting
Data [Contents of the data]
The laser command data and laser setting data for CNC can be read by
PMC–RC application. The data are separated to groups and can be read
by the group.

[Structure of input data]

Top address + 0 The following End Code is output at writing end.

(Function code) 0 : normal end


186 2 : The incorrect data is set for Data length.
3 : The incorrect data is set for Data No.
2
(End Code)

(No need to set)

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)

857
D. WINDOW FUNCTION DESCRIPTION (FS16–LA) APPENDIX B–61863E/09

(2) Writing the laser command data and laser setting data (:low–speed
type)

[Contents of the data]


The data can be written to the laser command data for CNC by PMC–RC
application. The data are separated to groups and can be written by the
group.

[Structure of input data]

Top address + 0 The following End Code is output at writing end.

(Function code) 0: normal end


187 2: The incorrect data is set for Data length.
3: The incorrect data is set for Data No.
2 5: The data beyond the allowable range is set
(End Code) for data command to write.

(No need to set)

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)

858
B–61863E/09 APPENDIX D. WINDOW FUNCTION DESCRIPTION (FS16–LA)

(3) The data structure of the laser command data and laser setting data

Group No. Address Top Byte No. Data length Item


add. + for every item Byte No.
0 10 2 4 Power control duty const
12 2 Power control minimum duty
1 10 2 10 Power monitor (Read only)
12 2 Power offset (Read only)
14 2 Actual power (Read only)
16 4 Actual feedrate (Read only)
2 10 2 2 Power input offset coe.
3 10 2 4 Assist gas select
12 2 Assist gas flow select
4 10 2 30 Assist gas flow–1 pre–time
12 2 pre–pres
14 2 wrk–pres
16 2 aft–time
18 2 aft–pres
20 2 Assist gas flow–2 pre–time
22 2 pre–pres
24 2 wrk–pres
26 2 aft–time
28 2 aft–pres
30 2 Assist gas flow–3 pre–time
32 2 pre–pres
34 2 wrk–pres
36 2 aft–time
38 2 aft–pres
5 10 2 6 Processing peak power
12 2 Processing pulse frequency
14 2 Processing pulse duty
6 0 2 10 Piercing peak power
12 2 Piercing pulse frequency
14 2 Piercing pulse duty
16 4 Piercing time
7 10 4 22 Feed–rate command
14 2 Peak power command
16 2 Pulse frequency command
18 2 Pulse duty command
20 2 Assist gas select command
22 2 Assist gas settling time
24 2 Assist gas pressure
26 2 Reference displacement
28 4 Offset amount
10 10 2 2 Ref. displacement command

859
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E WINDOW FUNCTION DESCRIPTION (FS16–W)

E.1
READING THE WIRE [Description]
DIAMETER OFFSET The wire diameter offset value recorded in the CNC can be read.

[Input data structure]

Top address
(Function)
13
+2
(Completion)

+4
(Data length)
L Offset Corner–R Clearance Condition
+6
(Number)
N 0–15 16 17 —

+8
(Attribute)
0 0 0 1
M
+ 10
(Data area)

[Output data structure]

Top address
(Function)
13
+2
(Completion)
? Offset Corner–R Clearance Condition
+4
(Data length) 4 4 4 8
L
+6
(Number)
0–15 16 17 —
N
+8
(Attribute) 0 0 0 1
M
+ 10
(Data area)
Offset value Corner–R value Clearance value Actual offset value
D
+ 14
Direction

+ 16
Offset mode

+ 18

860
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

[Data number]
0–15 : Reads the Offset value.
0–16 : Reads the Corner–R value.
0–17 : Reads the Clearance value.
0–— : Reads the condition.

[Data attribute]
0 : Reads the Offset value, Corner–R value or Clearance value.
1 : Reads the condition.

[Contents of data]
a) Unit of Offset, Corner–R, Clearance and actual offset value
Metric system input : 10–3 [mm]
(In case the incremental system is 1/10,
output data unit is 10–4 [mm].)
Inch system input : 10–5 [inch]

Note
Offset, Corner–R, Clearance or Actual offset value is signed
binary in 4 bytes. A negative value is represented in 2’s
complement.

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.

861
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E.2
WRITING THE WIRE [Description]
DIAMETER OFFSET The wire diameter offset value can be written into the CNC.
(:LOW–SPEED
RESPONSE)
[Input data structure]
Top address
(Function)
14
+2
(Completion)
— Offset Corner–R Clearance Condition
+4
(Data length) 4 4 4 8
L
+6
(Number)
0–15 16 17 —
N
+8
(Attribute) 0 0 0 1
M
+ 10
(Data area)
Offset value Corner–R value Clearance value 0, 1
D
+ 12

+ 14

[Output data structure]


Top address
(Function)
14
+2
(Completion)
?
+4
(Data length)
L
+6
(Number)
N
+8
(Attribute)
M
+ 10
(Data area)
D

862
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

[Data number]
0–15 : Writes the Offset value.
0–16 : Writes the Corner–R value.
0–17 : Writes the Clearance value.
0–— : Writes the condition.

[Data attribute]
0 : Writes the Offset value, Corner–R value or Clearance value.
1 : Writes the condition.

[Contents of data]
a) Unit of Offset, Corner–R, Clearance and actual offset value

Note
Offset, Corner–R, Clearance or Actual offset value is signed
binary in 4 bytes. A negative value is represented in 2’s
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.

863
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E.3
READING THE [Description]
PARAMETER Parameter data in the CNC can be read.
(:LOW–SPEED There are four types of parameters in the CNC: Bit parameters having a
RESPONSE) definite meaning for each bit, byte parameters holding 1–byte data, word
parameters holding 2–byte data, and double word parameters holding
4–byte 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.
Specify pitch error compensation data in data Nos. 11000 to 18255.

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
17 17
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Data length) (Data length)
— L
+6 +6
(Number) (Number)
N N
+8 +8
(Attribute) (Attribute)
M M
+ 10 + 10
(Data) (Data)
— —

[Data length]
L = 1 or 1*n : Reads bit or byte type parameter.
2 or 2*n : Reads word type parameter.
4 or 4*n : Reads 2 words type parameter.
(Note: n is the axis number.)

[Data number]
N = (Parameter number)
or (Pitch error data number)+10000

[Data attribute]
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.)

864
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

[Completion code]
0 : Parameter data has been read 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 : Option is not provided.

865
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E.4
WRITING THE [Description]
PARAMETER Parameter data in the CNC can be written.
(:LOW–SPEED There are four types of parameters in the CNC: Bit parameters having
RESPONSE) a definite meaning for each bit, byte parameters holding 1–byte data, word
parameters holding 2–byte data, and double word parameters holding
4–byte 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.
Specify pitch error compensation data in data Nos. 11000 to 18255.
Some parameters cause a P/S alarm 000 when data is written. (The power
must be turned off before continuing operation.)

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
18 18
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Data length) (Data length)
L L
+6 +6
(Number) (Number)
N N
+8 +8
(Attribute) (Attribute)
M M
+ 10 + 10
(Data) (Data)
Parameter data D

[Data length]
L = 1 or 1*n : Reads bit or byte type parameter.
2 or 2*n : Reads word type parameter.
4 or 4*n : Reads 2 words type parameter.
(Note: n is the axis number.)

[Data number]
N = (Parameter number)
or (Pitch error data number)+10000

866
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

[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.)

[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 : Option is not provided.

867
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

[Types of parameters] In the B908 system, data type of ( ) are used.


No. Length No. Data type No. Data type No. Data type
0000 Bit 0070 Byte 0140 Byte 0210 2W(––)
0001 Bit 0071 Byte 0141 Byte 0211 —
0002 Bit 0072 Byte 0142 Byte 0212 —
0003 Bit 0073 Byte 0143 Byte 0213 —
0004 Bit 0074 Byte 0144 Byte 0214 —
0005 Bit 0075 Byte 0145 Byte 0215 —
0006 Bit 0076 Byte 0146 Word 0216 —
0007 Bit 0077 Byte 0147 Word 0217 —
0008 Bit 0078 Byte 0148 Word 0218 —
0009 Bit 0079 Byte 0149 Word 0219 —
0010 Bit 0080 Byte 0150 Word 0220 —
0011 Bit 0081 Byte 0151 Word 0221 —
0012 Bit 0082 Byte 0152 Word 0222 —
0013 Bit 0083 Byte 0153 Word 0223 —
0014 Bit 0084 Byte 0154 Word 0224 —
0015 Bit 0085 Byte 0155 Word 0225 —
0016 Bit 0086 Byte 0156 Byte 0226 —
0017 Bit 0087 Byte 0157 Word 0227 —
0018 Bit 0088 Byte 0158 Word 0228 —
0019 Bit 0089 Byte 0159 Word 0229 —
0020 Bit 0090 Byte 0160 Word 0230 —
0021 Bit 0091 Byte 0161 Word 0231 —
0022 Bit 0092 Word 0162 Word 0232 —
0023 Bit 0093 Word 0163 Word 0233 —
0024 Bit 0094 Word 0164 2words 0234 —
0025 Bit 0095 Word 0165 Word 0235 —
0026 Bit 0096 Word 0166 2words 0236 —
0027 Bit 0097 Word 0167 Word 0237 —
0028 Bit 0098 Word 0168 Word 0238 —
0029 Bit 0099 Word 0169 Word 0239 —
0030 Bit 0100 Word 0170 Word 0240 —
0031 Bit 0101 Word 0171 Word 0241 —
0032 Bit 0102 Word 0172 Word 0242 —
0033 Bit 0103 Word 0173 Word 0243 —
0034 Bit 0104 Word 0174 Word 0244 —
0035 Bit 0105 Word 0175 Word 0245 —
0036 Bit 0106 Word 0176 Word 0246 —
0037 Bit 0107 Word 0177 Byte 0247 —
0038 Bit 0108 Word 0178 2W(Byte) 0248 —
0039 Bit 0109 Word 0179 2words 0249 —
0040 Byte 0110 Word 0180 Byte(2W) 0250 —
0041 Byte 0111 Word 0181 Byte 0251 —
0042 Word 0112 2words 0182 Byte 0252 —
0043 Word 0113 Word 0183 Byte 0253 —
0044 Word 0114 Word 0184 Byte 0254 —
0045 Word 0115 Word 0185 Byte 0255 —
0046 Byte 0116 Word 0186 Byte 0256 —
0047 Word 0117 Word 0187 Byte 0257 —
0048 Word 0118 Word 0188 Word 0258 —
0049 Word 0119 Word 0189 Byte 0259 —
0050 Word 0120 Word 0190 Byte 0260 —
0051 Word 0121 Word 0191 2words 0261 —
0052 Word 0122 Word 0192 2words 0262 —
0053 Word 0123 2words 0193 2words 0263 —
0054 Word 0124 Byte 0194 2words 0264 —
0055 Word 0125 Byte 0195 2words 0265 —
0056 Word 0126 Byte 0196 Word 0266 —
0057 Word 0127 Byte 0197 2words 0267 —
0058 Byte(––) 0128 Byte 0198 Byte 0268 —
0059 Byte(––) 0129 Byte 0199 2words 0269 —
0060 Byte 0130 Byte 0200 Byte 0270 —
0061 Byte 0131 Byte 0201 word 0271 —
0062 Byte 0132 Byte 0202 — 0272 —
0063 Byte 0133 Byte 0203 — 0273 —
0064 Byte 0134 Byte 0204 — 0274 —
0065 Byte 0135 Byte 0205 — 0275 —
0066 Byte 0136 Byte 0206 — 0276 —
0067 Byte 0137 Byte 0207 — 0277 —
0068 Word 0138 Byte 0208 — 0278 —
0069 2words 0139 Byte 0209 — 0279 —

868
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

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

869
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

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 —

870
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

E.5
READING THE CNC [Description]
ALARM STATUS When the CNC is placed in the alarm status, the alarm status data can be
read.

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
23 23
+2 +2
(Completion) (Completion)
— 0
+4 +4
(Data length) (Data length)
— 2
+6 +6
(Number) (Number)
— —
+8 +8
(Attribute) (Attribute)
— —
+ 10 + 10 First byte
(Data area) (Data area)
+ 11 Alarm status
— Second byte
+ 12

[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

APCER : Absolute pulco alarm

[Completion codes]
0 : This alarm status in the CNC has been read normally.

871
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E.6
READING MODAL [Description]
DATA Modal information in the CNC can be read.
(1) Format and types of modal data for the G function

7 6 5 4 3 2 1 0

Code in a group : 1 byte

0 : Not specified in the current block


1 : Specified in the current block

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

872
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

(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

Number of input digits


0 : Positive
1 : Negative

0 : Not specified in the current block


1 : Specified in the current block

Identification code Specified address Meaning of value


100 B
101 D
102 E Offset number
103 F
104 H Feedrate
105 L
106 M
107 S
108 T Tapper data
109 R
110 P
111 Q

873
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
32 32
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Data length) (Data length)
— L
+6 +6
(Number) (Number)
N N
+8 +8
(Attribute) (Attribute)
M M
+ 10 + 10
(Data area) Modal data for Other than
— G function G function
+ 12

+ 14
Flag for other than
G function
+ 16

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.

[Data length]
L= 2 : G function
2*n : All data for G function
6 : Other than G function
6*m : All data for other than G function

[Data number]
N = 0 to 111 : Identification code
–1 : All data for G function
–2 : All data for other than G function

[Data attribute]
M = 0 : Current block
1 : Next block
2 : Block after the next block

[Completion code]
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.

874
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

E.7
READING THE [Description]
MEASURED POINT The measured point that are get by positioning can be read. Also, the slit
width by slitting and the hole diameter by centering can be read.

[Input data structure]


Top address
(Function)
185
+2
(Completion)

+4
(Length) Reads Reads slit width
— measured point of hole diameter
+6
(Number) Point number 0
N
+8
(Attribute) 0 1
M
+ 10
(Data area)

[Output data structure]


Top address
(Function)
185
+2
(Completion) Reads Reads slit width
? measured point of hole diameter
+4
(Length) 10 4
L
+6
(Number)
Point number 0
N
+8
(Attribute)
0 1
M
+ 10
Type Slit width of hole
(Data area)
diameter
+ 12

Machine
+ 14 coordinate of
X axis

+ 16

Machine
+ 18 coordinate of
Y axis

+ 20

875
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

[Data unit]
Metric system input : 10–3 [mm]
(In case the incremental system is 1/10, output
data unit is 10–4 [mm].)
Inch system input : 10–5 [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.

876
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

E.8
WRITING THE [Description]
MEASURED POINT The measured point that are get by positioning can be written. Also, the
(:LOW–SPEED slit width by slitting and the hole diameter by centering can be written.
RESPONSE)

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
186 186
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Length) (Length)
10 10
+6 +6
(Number) (Number)
Point number N
+8 +8
(Attribute) (Attribute)
0 0
+ 10 + 10
(Data area) (Data area)
Type
+ 12 + 12
Machine
coordinate of X axis
+ 14 + 14

+ 16 + 16
Machine
coordinate of Y axis
+ 18 + 18

+ 20 + 20

[Data unit]
Metric system input : 10–3 [mm]
(In case the incremental system is 1/10, output
data unit is 10–4 [mm].)
Inch system input : 10–5 [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.

877
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

E.9
READING THE [Description]
SETTING DATA The CNC setting data can be read.

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
19 19
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Data length) (Data length)
— L
+6 +6
(Number) (Number)
N N
+8 +8
(Attribute) (Attribute)
— —
+ 10 + 10
(Data area) (Data area)
— Setting data

[Data number]
Data number is shown in the setting data table.

[Completion codes]
0 : Setting data has been read normally.
3 : Invalid data is specified as the data number.

878
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

E.10
WRITING THE [Description]
SETTING DATA Setting data in the CNC can be written.
(:LOW–SPEED
RESPONSE)

[Input data structure] [Output data structure]


Top address Top address
(Function) (Function)
20 20
+2 +2
(Completion) (Completion)
— ?
+4 +4
(Data length) (Data length)
L L
+6 +6
(Number) (Number)
N N
+8 +8
(Attribute) (Attribute)
— —
+ 10 + 10
(Data area) (Data area)
Setting data Setting data

[Data length]
Data length is shown in the setting data table.

[Data number]
Data number is shown in the setting data table.

[Completion codes]
0 : Setting data has been written normally.
2 : Invalid data is specified as the data length.
3 : Invalid data is specified as the data number.

879
E. WINDOW FUNCTION DESCRIPTION (FS16–W) APPENDIX B–61863E/09

Setting data table


a) HANDY screen

Setting data Data number Data type Note


X MIRROR IMAGE 1 Bit Bit 0
Y MIRROR IMAGE 1 Bit Bit 1
AXIS EXCHANGE 1 Bit Bit 2
TV CHECK 1 Bit Bit 3
PUNCH (OUTPUT) CODE 1 Bit Bit 4
INPUT UNIT 1 Bit Bit 5
I/O DEVICE 4 Byte —
AUTO RESTART 2 Bit Bit 3
10 TIMES INPUT 1 Bit Bit 7
AUTO POWER OFF
M02/M30 3 Bit Bit 0
M00/M01 3 Bit Bit 1
REVERSE ALARM 3 Bit Bit 2
WIRE BREAK 3 Bit Bit 3
SCALE FACTOR 5 2 words —
ROTATION ANGLE 6 2 words —
DATE — — Function code 15
TIME — — Function code 15

b) TAPPER screen

Setting data Data number Data type Note


CUTTING MODE 15 Byte —
PROGRAM PLANE 17 2 words —
THICKNESS (+/–) 18 2 words —
GUIDE DISTANCE NOZZLE — — Function code 18
GUIDE DISTANCE UPPER GUIDE 20 2 words —
GUIDE DISTANCE LOWER GUIDE 21 2 words —
REFERENCE OFFSET U VERTICAL 22 2 words —
REFERENCE OFFSET V VERTICAL 23 2 words —
REFERENCE OFFSET Z WORK TABLE — — —

880
B–61863E/09 APPENDIX E. WINDOW FUNCTION DESCRIPTION (FS16–W)

c) AWF screen

Setting data Data number Data type Note


AWF ON/OFF 2 Bit Bit 2
BREAK REPAIR 2 Bit Bit 1
NUMBER OF TRIALS PROGRAMMED 40 Byte —
NUMBER OF TRIALS ACTUAL 42 Byte —
NUMBER OF AWR PROGRAMMED 41 Byte —
NUMBER OF AWR ACTUAL 43 Byte —
POWER REDUCTION 24 Byte —
THREADING POSITION U1 26 2 words —
THREADING POSITION V1 27 2 words —
THREADING POSITION Z1 28 2 words —

d) CONSUMPTION LINE INDICATOR screen

Setting data Data number Data type Note


WIRE Word —
( ) REST 30 Word —
WIRE CUTTER Word —
( ) REST 31 Word —
( ) REST 32 Word —
( ) REST 33 Word —
( ) REST 34 Word —
( ) REST 35 Word —
( ) REST 36 Word —
( ) REST 37 Word —

e) OPERATOR’S PANEL screen

Setting data Data number Data type Note


OP. BLOCK SKIP /0 38 Bit Bit 0
OP. BLOCK SKIP /1 38 Bit Bit 1
OP. BLOCK SKIP /2 38 Bit Bit 2
OP. BLOCK SKIP /3 38 Bit Bit 3
OP. BLOCK SKIP /4 38 Bit Bit 4
OP. BLOCK SKIP /5 38 Bit Bit 5
OP. BLOCK SKIP /6 38 Bit Bit 6
OP. BLOCK SKIP /7 38 Bit Bit 7
OP. BLOCK SKIP /8 39 Bit Bit 0
OP. BLOCK SKIP /9 39 Bit Bit 1
PARAMETER WRITE ENB. 1 Bit Bit 6

881
F. WINDOW FUNCTION DESCRIPTION (FS16–PA) APPENDIX B–61863E/09

F WINDOW FUNCTION DESCRIPTION (FS16–PA)

F.1
READING OF TOOL [Description]
SETTING DATA Various Tool setting data recorded in the CNC can be read.

[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 multi–tool control) is required, but it is missing.

882
B–61863E/09 APPENDIX F. WINDOW FUNCTION DESCRIPTION (FS16–PA)

[Output data structure]


Top address + 0
(Function code)
188

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)

 

48

883
F. WINDOW FUNCTION DESCRIPTION (FS16–PA) APPENDIX B–61863E/09

F.1.1
Data Number,
Data Attribute, Data number, data attribute, data length and data area of various tool
setting data are as follows.
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–136
Number of turret indexing 1 2 bytes Binary
1–136
Tool number of reference point 2 2 bytes Binary
0
1–136
Feed amount per revolution of 3 4 bytes Binary
turret 1–99999999
Total punch count 4 8 bytes Binary
1–99999999
Tool number 0 2 bytes Binary
1–9999
Punch count 1 4 bytes Binary
1–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
tti d data
t 5 2 bytes Binary
1–136
1–136
1 136
(Not used) 6 4 bytes
Tool shape (C) for graphic 7 2 bytes Binary
High byte=0 0–4
Tool shape (I) for graphic 8 4 bytes Binary
0–999999
Tool shape (J) for graphic 9 4 bytes Binary
0–999999
Tool shape (K) for graphic 10 4 bytes Binary
0–360000
Tool number for multi–tool 0 2 bytes Binary
High byte=0 0–99
Tool angle for multi–tool 1 4 bytes Binary
±360000
Tool position compensation of Y 2 4 bytes Binary
Number of ±99999999
Multi tool setting
Multi–tool
Tool shape (C) for multi–tool data +200 3 2 bytes Binary
High byte=0 0–4
Tool shape (I) for multi–tool 201–264 4 4 bytes Binary
0–999999
Tool shape (J) for multi–tool 5 4 bytes Binary
0–999999
Tool shape (K) for multi–tool 6 4 bytes Binary
0–360000

884
B–61863E/09 APPENDIX F. WINDOW FUNCTION DESCRIPTION (FS16–PA)

data unit
Machine Input of IS–A Input of IS–B

Tool position mm 0. 01 0. 001


compensation inch 0. 001 0. 0001

Input unit Input of IS–A Input of IS–B

Tool shape and mm 0. 01 0. 001


angle for graphic inch 0. 001 0. 0001

Tool angle for deg 0. 01 0. 001


li l
multi–tool

F.2
WRITING OF TOOL [Description]
SETTING DATA The various tool setting data can be directly written into the CNC.
(LOW–SPEED
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 (multi–tool control or graphic) is required
but it is missing.

885
F. WINDOW FUNCTION DESCRIPTION (FS16–PA) APPENDIX B–61863E/09

[Output data structure]


Top address + 0
(Function code)
189

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)

 

48

Note
See Sec. F. 1 for data unit.

886
B–61863E/09 APPENDIX F. WINDOW FUNCTION DESCRIPTION (FS16–PA)

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)

Notes
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.

887
F. WINDOW FUNCTION DESCRIPTION (FS16–PA) APPENDIX B–61863E/09

[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 multi–tool control) is required, but it is missing.

[Output data structure]

Top address + 0
(Function code)
141

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)


A 
A

48

888
B–61863E/09 APPENDIX F. WINDOW FUNCTION DESCRIPTION (FS16–PA)

F.4
OTHER WINDOW The FS16–PA supports the following window functions, described in this
FUNCTIONS manual.

Number Function
code
1 Reading CNC system information 0
2 Reading a tool offset 13
3 Writing a tool offset :low–speed response 14
4 Reading a workpiece origin offset 15
5 Writing a workpiece origin offset :low–speed response 16
6 Reading a parameter :low–speed response 17
7 Writing a parameter :low–speed response 18
8 Reading setting data :low–speed response 19
9 Writing setting data :low–speed response 20
10 Reading a custom macro variable :low–speed response 21
11 Writing a custom macro variable :low–speed response 22
12 Reading the CNC alarm state 23
13 Reading the current program number 24
14 Reading the current sequence number 25
15 Reading an actual velocity for a controlled axis 26
16 Reading an absolute position on a controlled axis 27
17 Reading a machine position on a controlled axis 28
18 Reading a skip position on a controlled axis 29
19 Reading a servo delay amount on a controlled axis 30
20 Reading an acceleration/deceleration delay amount on a controlled axis 31
21 Reading modal data 32
22 Reading diagnostic data :low–speed response 33
38 Reading clock data (date and time) 151
41 Reading a parameter 154
42 Reading setting data 155
43 Reading diagnostic data 156
44 Reading a character string of the CNC program being executed in the buffer 157
45 Reading the relative position on a controlled axis 74
46 Reading the remaining travel on a controlled axis 75
47 Reading CNC status information 76
48 Reading an operator message 83

889
G. SIGNAL ADDRESS CONVERSION (FROM THE
G. PMC–MODEL L/M TO THE PMC–MODEL RB/RC) APPENDIX B–61863E/09

SIGNAL ADDRESS CONVERSION

G (FROM THE PMC–MODEL L/M TO THE PMC–MODEL RB/RC)

G.1
GENERAL DI/DO signals used in the PMC–MODEL L/M can be converted to
signals for the PMC–MODEL RB/RC using the FAPT LADDER
program for the PMC–MODEL RB/RC.

G.2
FUNCTION The DI/DO signals used between the NC unit and the PMC correspond
to word addresses consisting of addresses and values. Word addresses of
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 0–T/M are
converted to those used in the standard FANUC Series 16–T/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 one–to–one relationship, the word address is converted. For
details, see the signal conversion table.

G.3
CONVERSION (1) Load the FAPT LADDER program for the PMC–RB/RC.
(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
PMC–RB/RC. Select the name of the file corresponding to the
conversion from Table 1 and enter it.
SET FD & KEYIN ‘OK’, ‘KILL’ OR ‘NO’
FD0 = OK<DRIVE> <@NAME OR :NUMBER>
FD0 =

Table 1 File Name in the Data Floppy for the PMC–RB/RC

File name
FS0–T → FS16–T COMV.FS0–T
FS0–M → FS16–M COMV.FS0–M

890
G. SIGNAL ADDRESS CONVERSION (FROM THE
B–61863E/09 APPENDIX PMC–MODEL L/M TO THE PMC–MODEL RB/RC)

(4) Read a source ladder program created with FAPT LADDER for the
PMC–L/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=

G.4
MODIFYING THE The above operation terminates the conversion. Check the converted
program. If an error occurs in the conversion, modify the program.
CONVERTED
Enter 1 on the programmer menu to change the screen to the screen for
SEQUENCE editing a sequence program. Editing operation is the same as usual.
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
Modification Procedure (1) When the Series 0 and 16 differ in the number of parameters used in
a functional instruction
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.)

891
G. SIGNAL ADDRESS CONVERSION (FROM THE
G. PMC–MODEL L/M TO THE PMC–MODEL RB/RC) APPENDIX B–61863E/09

(3) Deleting SUB48 (END3) (In the PMC–RB)


If SUB48 (END3) is specified in the PMC–RB, an error occurs
because the PMC–RB is not provided with SUB48 (END3). When
this error occurs, delete third–level programs, or change the
third–level programs to second–level 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.

892
H. CONNECTING THE OPERATOR’S PANEL FOR
B–61863E/09 APPENDIX SERIES 0 WITH SERIES 16 OR 18

CONNECTING THE OPERATOR’S PANEL FOR Series 0 WITH Series 16,

H Series 18, Series 21, OR Power Mate

H.1
GENERAL The Series 0 operator’s panel consists of key switches, LEDs, a rotary
switch, and so on. Because the states of key switches and lamps are coded,
the number of the signal lines required for connecting the operator’s 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

Bit image Input Coding


Keyboard
Rk and on Xn and on
PMC
management
software
Bit image Output Coding
LED
Rl and on Ym and on

Protect key
Input Contact Emergency stop
X* and on button
Override rotary
switch
etc.

Series 0 operator’s manual

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. 1 (a) Connection between the CNC and the Operator’s Panel

893
H. CONNECTING THE OPERATOR’S PANEL FOR
H. SERIES 0 WITH SERIES 16 OR 18 APPENDIX B–61863E/09

The operator’s panel is made up of the following keys, LEDs, etc.


 Key switch (Seat key)
 42 keys (0–TB)
 46 keys (0–MB)
 LEDs (red) ....................... Prepared for all key switches
 Override rotary switch ..... 4 bits
 Emergency stop button .... 1 bit
 Program protect key ........ 1 bit

Fig. 1 (b) Front view of operator’s panel for 0–TC

Fig. 1 (c) Front view of operator’s panel for 0–MC

894
H. CONNECTING THE OPERATOR’S PANEL FOR
B–61863E/09 APPENDIX SERIES 0 WITH SERIES 16 OR 18

Fig. 1 (d) External view of operator’s panel for 9” CRT/MDI with full–keyboard (0–TC)

Fig. 1 (e) External view of operator’s panel for 9” CRT/MDI with full–keyboard (0–MC)

895
H. CONNECTING THE OPERATOR’S PANEL FOR
H. SERIES 0 WITH SERIES 16 OR 18 APPENDIX B–61863E/09

H.2
CONNECTION

H.2.1
Connecting the I/O Unit

CNC (Series 16 or 18)

MAIN CPU
I/O unit Series 0 operator’s panel

JD1A
JD1B DI M1A
(I/O Link)
module

CP32

PSU DO M2A
CP6 JD1A module

24 VDC Another I/O unit

DI module : +24 V common, 20 ms


Example) AID32A1

DO module : 0 V common
Example) AOD32A1

H.2.2
Connecting the I/O
Card CNC (Series 16 or 18)
To another I/O unit
MAIN CPU

JD1A Interface with other machines


(I/O Link)

Series 0 operator’s panel

I/O card
DI M1A
connector

DO
M2A
connector

896
H. CONNECTING THE OPERATOR’S PANEL FOR
B–61863E/09 APPENDIX SERIES 0 WITH SERIES 16 OR 18

H.3
SIGNALS FOR
CONNECTING THE
OPERATOR’S PANEL

H.3.1
Emergency Stop Signal This signal is used for the fixed address directly monitored by the CNC.
(*ESP) For connecting the signal, refer to the description of the interface between
the CNC and the PMC in the ”Series 16 or 18 Connection Manual.”

H.3.2
Override Signals (*OV1 Their key switch contact signals are directly input to the PMC. Handle
to *OV8) and Program them with the PMC ladder program.
Protect Key Signal For connecting these signals, refer to the description of the interface
(KEY) between the CNC and the PMC in the ”Series 16 or 18 Connection
Manual.”

H.3.3
Key Switch Signals The key switch signals are coded by the PMC management software, and
(Xn, Xn+2) input to the area indicated by address R in the form of to the bit image.
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.)

897
H. CONNECTING THE OPERATOR’S PANEL FOR
H. SERIES 0 WITH SERIES 16 OR 18 APPENDIX B–61863E/09

H.3.4
LED Signals (Ym) Specify the LED signals at PMC address R using the user PMC ladder
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.)

Table H.3.4 (a) Key Switch and LED Signal Addresses


#7 #6 #5 #4 #3 #2 #1 #0
Xn KD7 KD6 KD5 KD4 KD3 KD2 KD1 KD0

Xn+1

Xn+2 KST KA3 KA2 KA1 KA0

Ym LD7 LD6 LD5 LD4 LD3 LD2 LD1 LD0

Table H.3.4 (b) Bit Image Addresses of Key Switch and LED Signals
(for the small operator’s 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

Rk+6/Rl+6 F10 D10 C10 B10 A10

898
H. CONNECTING THE OPERATOR’S PANEL FOR
B–61863E/09 APPENDIX SERIES 0 WITH SERIES 16 OR 18

Table H.3.4 (c) Bit Image Addresses of Key Switch and LED Signals
(for the operator’s 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

Rk+3/Rl+3 D2 C5 A5 E10 D10 C10 B10 A10

Rk+4/Rl+4 D4 D5 B2 E11 D11 C11 B11 A11

Rk+5/Rl+5 D1 B1 B4 E12 D12 C12 B12 A12

Rk+6/Rl+6 D3 B3 B5 E13 D13 C13 B13 A13

899
H. CONNECTING THE OPERATOR’S PANEL FOR
H. SERIES 0 WITH SERIES 16 OR 18 APPENDIX B–61863E/09

H.4
SPECIFYING The following section describes how to specify key switch and LED
ADDRESSES signal addresses and the bit image addresses.

H.4.1
Parameter Menu
(for PMC–RB) KEY IN ONE OF THE FOLLOWING NO.S WHICH YOU WANT TO SET PARA.S
NO. ITEMS CURRENT PARAMETERS
01 (UNUSED) ;
02 COUNTER DATA TYPE ; BINARY
03 OPERATOR PANEL ; YES
KEY/LED ADDRESS ; X0000/Y0000
KEY/LED BIT IMAGE ADRS. ; R0900/R0910
04 PMC TYPE ; PMC–RB
05 (UNUSED) ;
06 (UNUSED) ;
07 (UNUSED) ;
08 (UNUSED) ;
09 IGNORE DIVIDED CODE ; NO
10 (UNUSED) ;
00 NOTHING TO SET ;
; ROM WRITER = FA WRITER
NO. =

H.4.2
Procedure 1) Select 3 from the parameter menu. Then, the following message is
displayed:
EXAMPLE 0:NO, 1:YES
OP.PANEL=_

2) Select 1(:YES). Then, the following message is displayed:


SET KEY/LED ADDRESS(KEY ADRS., LED ADRS.)
ADDR=_

3) Specify a key or LED address (X or Y). For example, to specify a


key switch address as X0 and LED address as Y0, enter X0,Y0 and
press the [NL] key ([NL]: New line key). The following message is
then displayed:
SET KEY/LED BIT IMAGE ADDRESS(KEY ADRS., LED ADRS.)
ADDR=_

900
H. CONNECTING THE OPERATOR’S PANEL FOR
B–61863E/09 APPENDIX SERIES 0 WITH SERIES 16 OR 18

4) Specify bit image addresses. For example, to specify R900 and


R910, enter R900,R910 and press the [NL] key.
Then, the current display returns to the original parameter menu, and
the following message appears:

: : :
03 OPERATOR PANEL ; YES
KEY/LED ADDRESS ; X0000/Y0000
KEY/LED BIT IMAGE ADRS. ; R0900/R0910
: : :

Notes
1. After the above procedure, the addresses in Tables 3.1,
3.2–A, and 3.2–B are defined as the following PMC
addresses:
Xn → X0000 Rk / Rl →R0900/R0910
Xn+1 → X0001 Rk+1 / Rl+1→R0901/R0911
Xn+2 → X0002 Rk+2 / Rl+2→R0902/R0912
Rk+3 / Rl+3→R0903/R0913
Ym → Y0000 Rk+4 / Rl+4→R0904/R0914
Rk+5 / Rl+5→R0905/R0915
Rk+6 / Rl+6→R0906/R0916
Rk+7 / Rl+7→R0907/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]

901
I. EDITING FOR POWER MATE–MODEL D
I. (PMC–PA1/PA3) APPENDIX B–61863E/09

I EDITING FOR POWER MATE–MODEL D (PMC–PA1/PA3)

I.1
OUTLINE Ladder diagram editing function for FANUC PMC–MODEL PA1/PA3
has high compatibility in a basic specification between ladder diagram
editing function for FANUC PMC–MODEL RA1/RA2.
Following abbreviations are used in this chapter.

CNC Model Product/Card Name Abbr.


FANUC Power Mate–MODEL D FANUC PMC–MODEL PA1 PMC–PA1
FANUC PMC–MODEL PA3 PMC–PA3
Ladder diagram editing Editing card
memory card
FANUC Series 18 FANUC PMC–MODEL RA1 PMC–RA1
FANUC PMC–MODEL RA2 PMC–RA2

I.2
COMPATIBILITY WITH Editing card described herein apply to the following software or later.
CNC BASIC CNC
SOFTWARE · Version 08(H) or later of Power Mate–MODEL D basic software
8830 Series.
PMC
· Version 04(D) or later of PMC–PA1/PA3 control software 4075
Series.

I.3
PMC PROGRAMMER This function is used to set PMC system parameters and also generate and
(CRT/MDI OR execute sequence programs by using soft keys a on the CRT/MDI unit or
PDP/MDI unit. You can not use following function because FANUC
PDP/MDI) [LADDER Power Mate–MODEL D does not use ROM for sequence program.
EDITING FUNCTION] · Sequence Program Copy Function
· Writing, Reading, and Verification of the Sequence Program and
PMC Parameter Data to/from/with ROM.

902
I. EDITING FOR POWER MATE–MODEL D
B–61863E/09 APPENDIX (PMC–PA1/PA3)

I.3.1
Component Units and The units required for generating a sequence program and connection
Connections methods are described below.

I.3.1.1
Component units (1) Editing card
This is used for editing sequence program.
If this card is inserted in CNC at the time of its power–on, PMC
displays the programmer menu.
When you want to put on and take off, you must turn off the CNC
power.

Note
Please do not release the write protect switch of editing card
for preventing a mistake deleting.

WRITE PROTECT

Editing Card
(A02B–0166–K701#4076)

Fig. 3.1.1

903
I. EDITING FOR POWER MATE–MODEL D
I. (PMC–PA1/PA3) APPENDIX B–61863E/09

(2) CRT/MDI unit, PDP/MDI unit


CRT/MDI unit or PDP/MDI unit are necessary when you generate
or edit sequence program using editing card.
CRT/MDI unit (A02B–0166–C001)
PDP/MDI unit (A02B–0166–C010, A02B–0166–C011)

I.3.1.2
Connection of Feed the editing card into connector CNMC of the CNC.
Components When you want to put on and take off, you must turn off the CNC power.
(Refer to the fig. 3.1.2)

Fig. 3.1.2

904
I. EDITING FOR POWER MATE–MODEL D
B–61863E/09 APPENDIX (PMC–PA1/PA3)

I.3.1.3
Parameter Please set bit 1 in K17 of keep relay area for PMC parameters.
#7 #6 #5 #4 #3 #2 #1 #0
K17 PRGRAM

PRGRAM 0: The programmer function is disabled.


(The programmer menu is not displayed.)
1: The programmer function is enabled.
(The programmer menu is displayed.)

I.3.2
Specification and FANUC Power Mate–MODEL D can set only COUNTER DATA TYPE.
Display of System The meaning of this parameter is same as PMC–RA1/RA2.
Parameters (SYSPRM)
PMC SYSTEM PARAMETER
COUNTER DATA TYPE = BINARY/BCD

[BINARY] [ BCD ] [ ] [ ] [ ]

Fig. 3.2 PMC–PA1 or PA3 System Parameter Screen

I.3.3
Condense When the following condition is satisfied, the CONDNS key will be used
in FANUC Power Mate–MODEL D.
· 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.3.3 (a)]
(1) Delete symbol data(0.2KB).
(2) Push [CONDNS] key.
(3) The memory status becomes as Fig.3.3 (c) and LADDER can be
edited more.

905
I. EDITING FOR POWER MATE–MODEL D
I. (PMC–PA1/PA3) APPENDIX B–61863E/09

Notes
1. Sequence program area in Figure 3.3 (a) – (c) is 64KB.
2. The underlined memory in Figure 3.3 (a) – (c) is the same
as the memory display of the TITLE screen.
3. The symbol/comment area in Figure 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.

Message Message Message


10.0KB 10.0KB 10.0KB

Symbol/Comment Symbol/Comment Executed Symbol/Comment


19.1KB 18.9KB Condense 18.9KB
Symbol/
Comment
0.2KB 19.0KB
Delete
20.0KB (Unused area 1.1KB) (Unused area 0.1KB)

(Unused area 0.9KB)

Ladder Ladder Ladder


34.0KB 34.0KB 34.0KB

(Unused area 1.0KB)

Fig. 3.3 (a) Fig. 3.3 (b) Fig. 3.3 (c)

906
I. EDITING FOR POWER MATE–MODEL D
B–61863E/09 APPENDIX (PMC–PA1/PA3)

I.4
SYSTEM DIAGRAM
OF SOFT KEY

PCLAD PCDGN PCPRM

NEXT

STOP EDIT I/O SYSPRM

RETURN

TITLE LADDER SYMBOL MESAGE

NEXT

MODULE CROSS CLEAR

Fig. 4.1

TITLE LADDER SYMBOL MESAGE

FUNCTN

RETURN NEXT

COMAND

INSNET DELNET INSERT ADRESS SEARCH

NEXT

COPY MOVE CHANGE

Fig. 4.2

907
J. APPLICABLE FAPT LADDER EDITIONS APPENDIX B–61863E/09

J APPLICABLE FAPT LADDER EDITIONS

The following tables list the editions of offline programs required to


program each PMC model.

J.1
FAPT LADDER A08B–9200–J502#JP (PC9801):
(FOR PERSONAL FAPT LADDER PMC–RA1/RB/RC system
COMPUTERS) A08B–9201–J502#EN (IBM PC/AT):

Model
PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC–
PA1 PA3 RA1 RA2 RA3 RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4 NB NB2
Edition
1.0 and later                
2.0 and later                
3.0 and later                
4.0 and later                
5.0 and later                
6.0 and later                
7.1 and later                
8.0 and later                
8.5 and later                
: Not supported, : Supported, : Restrictedly supported (Note 1)

A08B–9200–J603#JP (PC–9801): PMC–RA1/RA2/RA3 module

A08B–9201–J603#EN (IBM PC/AT):


Model PMC– PMC– PMC– PMC– PMC–
Edition PA1 PA3 RA1 RA2 RA3
1.0 and later     
2.0 and later     
4.0 and later     
: Not supported, : Supported, : Restrictedly supported (Note 1)

A08B–9200–J604#JP (PC–9801):
PMC–RB/RB2/RB3/RC/RC3 module

A08B–9201–J604#EN (IBM PC/AT):

908
B–61863E/09 APPENDIX J. APPLICABLE FAPT LADDER EDITIONS

Model PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC– PMC–
Edition RB RB2 RB3 RB4 RB5 RB6 RC RC3 RC4
1.0 and later         
3.0 and later         
4.0 and later         
5.0 and later         
7.0 and later         
: Not supported, : Supported, : Restrictedly supported (Note 1)

A08B–9200–J606#JP (PC–9801): PMC–NB module


A08B–9201–J606#EN (IBM PC/AT):
Model PMC– PMC–
Edition NB NB2
1.0 and later  
2.0 and later  
3.0 and later  

Notes
1. The edition of FAPT LADDER adopted for the PMC–RA2 or
PMC–RB2 can be used to program the PMC–RA3 or
PMC–RB3 as long as the functional instructions that include
structured programming are not used (as long as FAPT
LADDER is used within the range of the specifications of the
PMC–RA2 or PMC–RB2).
When this edition is used:

(1)The following functional instructions cannot be used. (For


details, see Section 5 of Part I.)
– MOVB, MOVW, MOVN
– DIFU, DIFD
– AND, OR, NOT, EOR
– END, CALL, CALLU, SP, SPE
– JMPB, JMPC, LBL

(2)A sequence program created by the editing function (ladder


editing module) contained in the PMC–RA3/RB3 cannot be
edited after it is read into the offline programmer.

(3)A sequence program created by the offline programmer and


transferred to the PMC (sequence program transferred and
edited by the built–in editing function) can be edited again
after it is read into the offline programmer.

909
J. APPLICABLE FAPT LADDER EDITIONS APPENDIX B–61863E/09

J.2
FAPT LADDER A08B–0035–J595#E (P–G Mark II): FAPT LADDER PMC–RA1/RA2
(SYSTEM P SERIES) A08B–0036–J595#E (P–G Mate):
Model PMC– PMC– PMC– PMC– PMC–
Edition PA1 PA3 RA1 RA2 RA3
1.1 and later     
2.1 and later     
3.1 and later     
4.1 and later     
: Not supported, : Supported, : Restrictedly supported (Note 1)

Note
1. A sequence program cannot be transferred from the
PMC–RA1 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.

A08B–0036–J964 (P–G Mark II and P–G Mate):


PMC–RA1/RA2/RB/RC/PA1/PA3 data
Model PMC– PMC– PMC– PMC– PMC–
Edition PA1 PA3 RA1 RA2 RA3
1.1 and later     
2.1 and later     
: Not supported, : Supported, : Restrictedly supported (Note 1)

A08B–0035–J595#E (P–G Mark II):


FAPT LADDER PMC–RB/RB2/RC
A08B–0036–J595#E (P–G Mate):
Model PMC– PMC– PMC– PMC– PMC– PMC–
Edition RB RB2 RB3 RC RC3 NB
1.1 and later      
4.1 and later      
: Not supported, : Supported, : Restrictedly supported (Note 1)

910
B–61863E/09 APPENDIX J. APPLICABLE FAPT LADDER EDITIONS

Notes
1. The edition of FAPT LADDER adopted for the PMC–RA2 or
PMC–RB2 can be used to program the PMC–RA3 or
PMC–RB3 as long as some functional instructions including
structured programming are not used (as long as FAPT
LADDER is used within the range of the specifications of the
PMC–RA2 or PMC–RB2).
When this edition is used:

(1)The following functional instructions cannot be used. (For


details, see Section 5 of Part I.)
– MOVB, MOVW, MOVN
– DIFU, DIFD
– AND, OR, NOT, EOR
– END, CALL, CALLU, SP, SPE
– JMPB, JMPC, LBL

(2)A sequence program created by the editing function (ladder


editing module) contained in the PMC–RA3/RB3 cannot be
edited after it is read into the offline programmer.

(3)A sequence program created by the offline programmer and


transferred to the PMC (sequence program transferred and
edited by the built–in editing function) can be edited again
after it is read into the offline programmer.

911
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
MEMORY CARD APPENDIX B–61863E/09

K LEVEL UP OF INPUT/OUTPUT FUNCTION WITH MEMORY CARD

K.1
OUTLINE OF The function is leveled up, that is Input/Output function with Memory
LEVELED UP Card by CNC or Offline Programmer. The leveled up contents are as
follows.
CONTENTS
(1) The time is reduced in Inputing/Outputing between CNC and
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. (Refer to K.2.3.)
Memory Card function can be used in the following editions of CNC
basic software and PMC management software and FAPT LADDER
for Personal Computer.

· CNC basic software


non leveled up leveled up
FANUC Series 20–FA basic software (D001) 05–06 More than 07
FANUC Series 20–TA basic software (D101) 02 More than 03

· PMC management software


non leveled up leveled up
PMC–RA1/RA3 management software (4080) 04–05 More than 06

· FAPT LADDER for Personal Computer


non leveled up leveled up
FAPT LADDER PMC–RA1/RA2/RB/RB2/RC SYSTEM
(A08B–9200–J502#JP (PC–9801)) 6.1 6.2 More than 6.3
(A08–9201–J502#EN (IBM PC/AT))
PMC–RA1/RA2 MODULE
(PMC–RA1/RA2/RA3/PA1/PA3)
4.1 More than 4.2
(A08B–9200–J603#JP (PC–9801))
(A08–9201–J603#EN (IBM PC/AT))

912
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
B–61863E/09 APPENDIX MEMORY CARD

K.2
OPERATION

K.2.1
CNC → Offline (1) Operation of CNC
Programmer 1) On PMC I/O screen, specify M–CARD as “DEVICE”, WRITE
as “FUNCTION”, LADDER as “DATA KIND”, any file name,
which is omissible, as “FILE NO.” (See Fig. K.2.1(a)) and
press the soft key [EXEC].

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1
DEVICE = M–CARD
FUNCTION = WRITE
DATA KIND = LADDER
FILE NO. =
( #NAME )

[ EXEC ][CANCEL][ WRITE ][ READ ][COMPAR]

[DELETE][ LIST ][FORMAT ][ ][SETUP ]

Fig. K.2.1(a) PMC I/O Screen

(2) Operation of Offline Programmer (FAPT LADDER for Personal


Computer)
2) Mount a Memory Card interface on the personal computer.
3) Select [INOUT] (I/O) from the main menu.
4) Select [M–CARD] (Memory Card) from the I/O menu. (See
Fig. K.2.1(b))

I/O PMC–RA1 <O>[A:¥FLADDER¥ ]


F1 KEY : FA WRITER
F2 KEY : PMC WRITER
F3 KEY : PMC
F4 KEY : Handy File
F5 KEY : Memory Card
F10 KEY : END

FAWRT PMC PMC FDCAS M END


WRT CARD

Fig. K.2.1(b) I/O Menu Screen

913
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
MEMORY CARD APPENDIX B–61863E/09

5) Select [READ] (PROGRAMMER ← Memory Card). (See Fig.


K.2.1(c))

I/O (M_CARD) PMC–RA1 <O> [A:¥FLADDER¥ ]

F1 KEY : WRITE (PROGRAMMER –> Memory Card)

F2 KEY : READ (PROGRAMMER <– Memory Card)

F10 KEY : END

WRITE READ END

Fig. K.2.1(c) I/O (I/O M_CARD) Screen

6) Specify the followings:


– Name of the Memory Card file
Specify the name of the file in the Memory Card which is to be
converted and the Memory Card drive on which the Memory
Card is mounted.
– Name of the ROM format file to be created
Specify a file name to be given to the converted ROM format
data.

I/O (FROM MC) PMC–RA1 <O> [A:¥FLADDER¥ ]

READ (PROGRAMMER <– Memory Card)

Memory Card FILE NAME :


(Specify the MEMORY CARD drive)

ROM FORMAT FILE NAME :

EXEC END

Fig. K.2.1(d) I/O (FROM MC) Screen

7) After it is decompiled, the converted ROM format file can be


edited by the personal computer.

914
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
B–61863E/09 APPENDIX MEMORY CARD

K.2.2
Offline Programmer → (1) Operation of Offline Programmer (FAPT LADDER for Personal
CNC computer)
1) Mount a Memory Card interface on the personal computer.
2) Compile a source program and create a ROM format file.
3) Return to the main menu and select [INOUT] (I/O).
4) From the I/O menu, select {M–CARD] (memory Card).
5) Select [WRITE] (PROGRAMMER ³ Memory Card). (See
Fig. K.2.1(b)).
6) Specify the following:
– Name of the ROM format file
Specify the name of the ROM format file to be converted.
– Name of Memory Card file name
Specify the name to be given to the converted Memory Card
file and the Memory Card drive to which the data is output.
(The file can be accessed by the Memory Card interface
incorporated into the CNC.)

I/O (TO MC) PMC– RA1 <O> [A:¥FLADDER¥ ]

WRITE(PROGRAMMER –> Memory Card)

ROM FORMAT FILE NAME :

Memory Card FILE NAME :


(Specify the MEMORY CARD drive)

EXEC END

Fig. K.2.2(a) I/O (TO MC) Screen

(2) Operation of CNC


There are 2 methods by which the sequence program can be inputted
from Memory Card.
– The method of using I/O function of PMC
On PMC I/O screen, specify M–CARD as “DEVICE”, READ
as “FUNCTION”, the file name or file No. you want to input as
“FILE NO.” and press the soft key [EXEC].
– The method of using BOOT SYSTEM (When CNC starting up)
Refer to K.2.3.

915
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
MEMORY CARD APPENDIX B–61863E/09

K.2.3
Note Sequence programs which are output from leveled up CNC or Offline
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)

CNC Offline Programmer

: Leveled up : Available with no condition

: Available with some condition

: 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)

916
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
B–61863E/09 APPENDIX MEMORY CARD

· In case of (3)
Output operation : Output sequence programs by setting the output
format to 1 (:S–FORMAT) on the following
SETUP screen PMC I/O. The default output
format is 0 (:BINARY).

PMC I/O PROGRAM MONIT STOP

CHANNEL = 1
DEVICE = M–CARD
FUNCTION = WRITE
DATA KIND = LADDER
FILE NO. =
( #NAME )

[ EXEC ][CANCEL][ WRITE ][ READ ][COMPAR]

[DELETE][ LIST ][FORMAT ][ ][SETUP ]

PMC SETUP M–CARD MONIT STOP

OUTPUT FORMAT (PROGRAM) = 1


(0:BINARY,1:S–FORMAT)

[ INPUT ][ ][ ][ ][ INIT ]

Press [INIT] key to reset default value 0.

Input operation : Input sequence programs by selecting F6:“I/O”


on main menu screen of FAPT LADDER, then
F3:“Handy File & Memory Card”.

917
K. LEVEL UP OF INPUT/OUTPUT FUNCTION WITH
MEMORY CARD APPENDIX B–61863E/09

· In case of (4)
Output operation : Output sequence programs by selecting F6:“I/O”
on main menu screen of FAPT LADDER, then
F4:“Handy File”.
Input operation : Input sequence programs by selecting F6:“I/O” on
main menu screen of FAPT LADDER, then
F3:“Handy File & Memory Card”.

918
B–61863E/09 APPENDIX L. ALARM MESSAGE LIST

L ALARM MESSAGE LIST

Alarm messages 1 (alarm screen)


Message Contents and solution
ALARM NOTHING Normal status
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 sequence program exceeds the maximum size of
LADDER(PMC–RC only).
(solution) Please change MAX LADDER AREA SIZE at the SYSPRM
screen and restart the system.
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
programmer.
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
(PMC–RC only).
ER07 NO OPTION (LADDER STEP) There is no step number option of LADDER.
ER16 RAM CHECK ERROR (PROGRAM RAM) The debugging RAM cannot be read/written normally.
(solution) Please exchange the debugging RAM.
ER17 PROGRAM PARITY The parity error occurred on ROM for sequence program or the
debugging RAM.
(solution) ROM: The deterioration of ROM may be deteriorated
Please exchange ROM for the sequence program
RAM: Please edit the sequence program once on PMC
Still the error occurs, exchange the debugging
RAM.
F–ROM: (PMC–NB/FS–20)
Please edit the sequence program once on PMC
and write sequence program to F–ROM again.

Notes
1. The PMC–RB3/RC3 for the Series 16 MODEL–B does not support ER00 and ER06.
2. For the PMC–RB3/RC3 for the Series 16 MODEL–B, the ”debugging RAM” and ”ROM for
sequence program,” described in the table, are not supported but the relevant descriptions
apply to ordinary RAM.

919
L. ALARM MESSAGE LIST APPENDIX B–61863E/09

Alarm messages 2 (alarm screen)


Message Contents and solution
ER18 PROGRAM DATA ERROR BY I/O Transferring the sequence program from offline programmer was
interrupted by the power off etc.
(solution) Please clear the sequence program and transfer the
sequence program again.
ER19 LADDER DATA ERROR Editing the LADDER was interrupted by the power off or by the switch to
the CNC screen by the function key etc.
(solution) Please edit LADDER once on PMC.
Or, please input LADDER again.
ER20 SYMBOL/ COMMENT DATA ERROR Editing the symbol and comment was interrupted by the power off or by
the switch to the CNC screen by the function key etc.
(solution) Please edit symbol and comment once on PMC.
Or, please input symbol and comment again.
ER21 MESSAGE DATA ERROR Editing the message data was interrupted by the power off or the switch to
the CNC screen by the function key etc.
(solution) Please edit message data once on PMC.
Or, please input message data again.
ER22 PROGRAM NOTHING There is no sequence program.
ER23 PLEASE TURN OFF POWER There is a change in setting LADDER MAX AREA SIZE etc.
(solution) Please restart the system to make the change effective.
ER32 NO I/O DEVICE Any DI/DO unit of I/O Unit or the connection unit etc. is not connected.
When built–in I/O card is connected, this message is not displayed.
(solution) When built–in I/O card is used:
Please confirm whether the built–in I/O card is certainly
connected with.
When I/O Link is used:
Please confirm whether the DI/DO units turning on. Or
please confirm the connection of the cable.
ER33 SLC ERROR The LSI for I/O Link is defective.
(solution) Please exchange the module of PMC engine.
ER34 SLC ERROR (xx) The communication with the DI/DO units of the xx group failed.
(solution) Please confirm the connection of the cable connected to the
DI/DO units of the xx group.
Please confirm whether the DI/DO units turned on earlier
than CNC and PMC. Or, please exchange the module of
PMC engine on the DI/DO units of the xx group.
ER35 TOO MUCH OUTPUT DATA IN GROUP The number of the output data in the xx group exceeded the max. The
(xx) data, which exceed 32 bytes, become ineffective.
(solution) Please refer to the following for the number of the data for
each group.
”FANUC I/O Unit–MODEL A connecting and maintenance
manual” (B–61813E)
”FANUC I/O Unit–MODEL B connecting manual”(B–62163E)
ER36 TOO MUCH INPUT DATA IN GROUP (xx) The number of the input data in the xx group exceeded the max. The
data, which exceed 32 bytes, become ineffective.
(solution) Please refer to the following for the number of the data for
each group.
”FANUC I/O Unit–MODEL A connecting and maintenance
manual” (B–61813E)
”FANUC I/O Unit–MODEL B connecting manual”(B–62163E)
ER38 MAX SETTING OUTPUT DATA OVER (xx) The assignment data for a group exceeds 128 bytes.
(The assignment data of output side of xx group or later become
ineffective.)
(solution) Please reduce the assignment data to 128 bytes or less for
the number of the output data of each group.
ER39 MAX SETTING INPUT DATA OVER (xx) The assignment data for a group exceeds 128 bytes.
(The assignment data of input side of xx group or later become infective.)
(solution) Please reduce the assignment data to 128 bytes or less for
the number of the input data of each group.

920
B–61863E/09 APPENDIX L. ALARM MESSAGE LIST

Alarm messages 3 (alarm screen)


Message Contents and solution
WN01 LADDER MAX SIZE ERROR The MAX LADDER AREA SIZE in the system parameter is illegal.
(solution) Set the correct value to MAX LADDER AREA SIZE and re
start the system.
WN02 OPERATE PANEL ADDRESS ERROR The address setting data of the operator’s panel for FS–0 is illegal.
(solution) Please correct the address setting data.
WN03 ABORT NC–WINDOW/EXIN LADDER was stopped while CNC and PMC were communicating.
The functional instruction WINDR, WINDW, EXIN, DISPB, and etc. may
not work normally.
(solution) When restarting the system, this alarm will be released.
Execute the sequence program(Press RUN key) after con
firming whether there is a problem in LADDER or not.
WN04 UNAVAIL EDIT MODULE The LADDER editing module cannot be recognized.
(PMC–RA1/RA2/RA3/RB/RB2/RB3, except RA1/RA3 for FS–20)
(solution) Please confirm the slot position installed.
Please confirm the installed module.
WN06 TASK STOPPED BY DEBUG FUNC Some user tasks are stopped by break point of the debugging function.
WN07 LADDER SP ERROR (STACK) When functional instruction CALL(SUB65) or CALLU(SUB66) was
executed, the stack of the LADDER overflowed.
(solution) Please reduce the nesting of the subprogram to 8 or less.
WN17 NO OPTION (LANGUAGE) There is no C language option.
WN18 ORIGIN ADDRESS ERROR The LANGUAGE ORIGIN address of the system parameter is wrong
(solution) Please set the address of symbol RC_CTLB_INIT in the map
file to the LANGUAGE ORIGIN of the system parameter.
WN19 GDT ERROR (BASE, LIMIT) The value of BASE, LIMIT or ENTRY of user defined GDT is illegal.
(solution) Please correct the address in link control statement and build
file.
WN20 COMMON MEM. COUNT OVER The number of common memories exceeds 8.
(solution) Please reduce the number of common memories to 8 or
less. It is necessary to correct a link control statement,build
file and the source file for the common memory.
WN21 COMMON MEM. ENTRY ERROR GDT ENTRY of the common memory is out of range.
(solution) Please correct the address of GDT ENTRY of the common
memory in the link control statement.
WN22 LADDER 3 PRIORITY ERROR The priority of LADDER LEVEL 3 is out of range.
(solution) Please correct the value of LADDER LEVEL 3 in the link
control statement within the range of 0 or 10–99 or –1.
WN23 TASK COUNT OVER The number of user tasks exceeds 16.
(solution) Please confirm TASK COUNT in the link control statement.
When the number of tasks is changed, it is necessary to
correct the link control statement, build file and the
composition of the files to be linked.
WN24 TASK ENTRY ADDR ERROR The selector of the entry address to the user task is out of range.
(solution) Please correct the table of GDT in build file to the value
within 32(20H)–95(5FH).
WN25 DATA SEG ENTRY ERROR The entry address of the data segment is out of range.
(solution) Please correct DATA SEGMENT GDT ENTRY in the link
control statement and the table of GDT in build file within
32(20H)–95(5FH).
WN26 USER TASK PRIORITY ERROR The priority of the user task is out of range.
(solution) Please correct the TASK LEVEL in link control statement
within the range of 10–99 or –1.
Note: Only one task can have TASK LEVEL –1 (including
LADDER LEVEL 3).

921
L. ALARM MESSAGE LIST APPENDIX B–61863E/09

Alarm messages 4 (alarm screen)


Message Contents and solution
WN27 CODE SEG TYPE ERROR The code segment type is illegal. The code segment of RENAMESEG in
the binding control file is wrong.
(solution) Please correct the entry of the code segment in the link
control statement to correspond to the entry in the build file.
WN28 DATA SEG TYPE ERROR The data segment type is illegal. The data segment of RENAMESEG in
the binding control file is wrong.
(solution) Please correct the entry of the code segment in the link
control statement to correspond to the entry in the build file.
WN29 COMMON MEM SEG TYPE ERROR The segment type of common memory is illegal. The segment of
RENAMESEG in the building control file of the common memory is
wrong.
(solution) Please correct the entry of common memory in the link
control statement to correspond to the entry in the build file.
WN30 IMOPSSIBLE ALLOCATE MEM. The memories for the data and stack etc. cannot be allocated.
(solution) Please confirm whether the value of code segment in build
file and USER GDT ADDRESS in link control statement is
correct or not.
Or please reduce the value of MAX LADDER AREA SIZE
of the system parameter and the size of the stack in link
control statement at the least.
WN31 IMPOSSIBLE EXECUTE LIBRARY The library function cannot be executed.
(solution) Please confirm the object model of the library.
Or, system ROM of PMC must be replaced with one of later
version.
WN32 LNK CONTROL DATA ERROR Link control statement data is illegal.
(solution) Please confirm whether the address of symbol RC_CTLB_
INIT in map file is set to LANGUAGE ORIGIN of the system
parameter. Or, please make the link control statement again.

System alarm messages 1 (PMC–RC)


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 0103–02FB 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.

922
B–61863E/09 APPENDIX L. ALARM MESSAGE LIST

System alarm messages 2 (PMC–RC)


Message STATUS LED Contents and solution
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 Unit–MODEL 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 ”EDIT”→”MODULE” 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
Unit–MODEL B connecting manuals(B–62163E)”.
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 F–BUS ERROR xxxx yyyyyy The BUS error (access to disabled address) occurred.
xxxx : Segment selector where system error occurred.
STATUS LED Lj yyyyyy: Offset address where system error occurred.
PC199 ROM PARITY eeeeeeee The parity error occur in PMC system ROM.
STATUS LED Ll eeeeeeee : ROM parity error information.

STATUS LED (green) are LED1, LED2 on PMC–RC. CAP–II is LED3


and LED4.
j : Off J : On lL : Blinking

Notes
1. The system error on PMC–RA1,RA2,RA3,RB,RB2 and
RB3 is displayed as a system error on the CNC side.
(Refer to the ”FANUC Series 16–MA Operator’s Manual
(B–61874E)” and ”FANUC Series 16–TA Operator’s Manual
(B–61804E)”.)
2. Error information is needed to investigate on FANUC, please
take notes of it.

923
L. ALARM MESSAGE LIST APPENDIX B–61863E/09

System alarm messages 3 (PMC–NB/NB2)


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 Unit–MODEL 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 ”EDIT”→”MODULE” 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
Unit–MODEL B connecting manuals(B–62163E)”.
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.

STATUS LED (green) are LED1, LED2 on PMC–NB.

j : Off J : On lL : Blinking

Note
Error information is needed to investigate on FANUC,
please take notes of it

924
B–61863E/09 APPENDIX L. ALARM MESSAGE LIST

System alarm messages (PMC–RB5/RB6)


Message Contents and solution
PC0nn CPU INTERRUPT xxxxxxxx CPU error

nn :Exception code
xxxxxxxx :Address at which an error occurred
PC030 RAM PARITY xxxxxxxx RAM parity error

xxxxxxxx :Address at which an error occurred


PC040 NMI BOC xxxxxxxx A non–maskable interrupt (NMI) occurred in the PMC control module.

xxxxxxxx :Address at which an error occurred


PC050 NMI SLC aa bb A communication error occurred in the I/O Link.

aa, bb :I/O Link error information (Record this information because it


is necessary for FANUC to investigate the cause.)
This error may occur by the following causes:
(1) When the I/O Unit–A is used, an expansion base has been allocated
but not connected.
(2) Insufficient cable connection
(3) Defective cable
(4) Defective I/O device (such as the I/O Unit or Power Mate)
(5) Defective PMC board

(Solution)
(1) Confirm that I/O allocation data is matched with the actual I/O device
connection.
(2) Confirm that cable connection is correct.
If you cannot find the cause with the ways above, the hardware may
be defective. Investigate the cause as follows:
(3) Confirm the cable specifications by referring to the FANUC I/O Unit–
MODEL A Connection and Maintenance Manual (B–61813E) and
FANUC I/O Unit–MODEL B Connection Manual (B–62163E).
(4) Check whether the error occurs again by replacing the I/O Unit interf
ace module, cables, and PMC board, one by one.
If the error still occurs after all devices related to the I/O Link have been
replaced in step (4), the error may be caused by noise. In such a case,
investigate the cause of the noise.
PC060 F–BUS ERROR xxxxxxxx Bus error

xxxxxxxx: Address at which an error occurred


PC098 ROM PARITY (DRAM) Parity error for PMC system ROM
PC099 ROM PARITY (SRAM)

925
M. EXAMPLE OF STEP SEQUENCE PROGRAMS APPENDIX B–61863E/09

M EXAMPLE OF STEP SEQUENCE PROGRAMS

The CNC is connected two or three Power Mate units.

CNC Connection Unit.

I/O Unit

X0.0:Safety switch Y0.0:Safety switch


Y1.0:Ready end#1
Y1.1:Drive start#1
Y2.0:Ready end#2
Y2.1:Drive start#2
Y3.0:Ready end#3
Y3.1:Drive start#3

Power Mate #1

X100.0:Ready end#1 Y100.0:Emergency#1


X100.1:Driving#1 Y100.1:Drive start#1

Power Mate #2

X110.0:Ready end#2 Y110.0:Emergency#2


X110.1:Driving#2 Y110.1:Drive start#2

Power Mate #3

X120.0:Ready end#3 Y120.0:Emergency#3


X120.1:Driving#3 Y120.1:Drive start#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

926
B–61863E/09 APPENDIX M. EXAMPLE OF STEP SEQUENCE PROGRAMS

The following flowchart illustrates the interface with the Power Mate
units.

CNC Power Mate x

When the ready and signal is off,


the driving start common is not sent.

The start signal (STx) is set on.


STx

The start signal (STx) is set off


after 1 second.
STx

Start moving by the start signal and


the DEN signal (DENx) is set on for
CNC.

DENx
When the moving finishes, the NC
program is rewound and the DEN
signal (DENx) is set off.

DENx

Waiting for that the moving


finishes.

Finished

The interface with the Power Mate units is changed to the Step Sequence
program.

Step Sequence for the Power Mate

Dummy Step

Ready end Ready

The start signal is set on. finished

Wait for 1 second.

The start signal is set off.

Wait for that the TIMER finishes.

The moving status is set the LED.

Wait for that the moving finishes.

finished

927
M. EXAMPLE OF STEP SEQUENCE PROGRAMS APPENDIX B–61863E/09

Example 1 The Step sequence program for three sequentially driven Power Mate
units:

Main program

L1
The input signal is set the LED.

The input signal is 1 (true).

Drive Power Mate#1

Dummy trasition
Drive Power Mate#2

Dummy trasition

Drive Power Mate#3

Dummy trasition

Start the timer.

Wait for one second.

Clear the timer.


Wait for that the timer finishes.

L1

928
B–61863E/09 APPENDIX M. EXAMPLE OF STEP SEQUENCE PROGRAMS

Example 2 The Step Sequence program for three simultaneously driven Power Mate
units:

Main program

L1
The input signal is set the LED.

The input signal is 1 (true).

Drive Power Drive Power Drive Power


Mate#1 Mate#2 Mate#3

Dummy trasition

Start the timer.

Wait for one second.

Clear the timer.

Wait for that the timer finishes.

L1

929
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

N STEP SEQUENCE CORRESPONDED C LANGUAGE

N.1
WHILE STATEMENT The operation is continued while the condition is true.

Format

L1
condition

The condition is false. The condition is true.


operation

Operation finished.

L1

930
B–61863E/09 APPENDIX N. STEP SEQUENCE CORRESPONDED 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

931
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

N.2
DO–WHILE The operation is continued while the condition is true after executing the
STATEMENT operation.
The difference between do–while and while is that the operation is
executed at least one time.

Format
L1
operation

condition

The condition is false. The condition is true.

L1

932
B–61863E/09 APPENDIX N. STEP SEQUENCE CORRESPONDED 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

933
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

N.3
FOR STATEMENT After the initial data is set, the operation is continued while the condition
is true.

Format
Set the initial data.

L1
operation

condition

The condition is false. The condition is true.

L1

934
B–61863E/09 APPENDIX N. STEP SEQUENCE CORRESPONDED 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

935
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

N.4
IF ELSE STATEMENT If the condition is true, the operation 1 is executed and if the condition is
false, the operation 2 is executed.

Format
condition

The condition is true. The condition is false.

operation1 operation2

936
B–61863E/09 APPENDIX N. STEP SEQUENCE CORRESPONDED 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

937
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

N.5
SWITCH STATEMENT The operation connected to the condition is executed.

Format
condition

condition1 condition2 condition3


operation1 operation2 operation3

938
B–61863E/09 APPENDIX N. STEP SEQUENCE CORRESPONDED C LANGUAGE

Examples
S1
(P10)

P11 P12 P13


S2 S3 S4
(P20) (P22) (P24)
P21 P23 P25

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

939
N. STEP SEQUENCE CORRESPONDED C LANGUAGE APPENDIX B–61863E/09

P23
R9091.1
TRSET

P24
R9091.0
R0.0
MULB 1 ( )
R10
R9091.1 15
R12

P25
R9091.1
TRSET

940
O. CHINESE CHARACTER CODE, HIRAGANA
B–61863E/09 APPENDIX CODE, AND SPECIAL CODE LIST

CHINESE CHARACTER CODE, HIRAGANA CODE, AND SPECIAL CODE

O LIST

&Replace all tables with follows.

¨ The characters with mark ¨ cannot be displayed on FANUC Series 16–MODEL A.

941
O. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B–61863E/09

942
O. CHINESE CHARACTER CODE, HIRAGANA
B–61863E/09 APPENDIX CODE, AND SPECIAL CODE LIST

943
O. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B–61863E/09

944
O. CHINESE CHARACTER CODE, HIRAGANA
B–61863E/09 APPENDIX CODE, AND SPECIAL CODE LIST

945
O. CHINESE CHARACTER CODE, HIRAGANA
CODE, AND SPECIAL CODE LIST APPENDIX B–61863E/09

946
B–61863E/09 Index
Note
Index entries with page numbers higher than 648 are in Book 2.

[A] [B]
ADD (ADDITION), 180 BLOCK STEP, 531
ADDB (BINARY ADDITION), 182
Additions to sequence programs, 625
[C]
ADDRESS, 39
CALL (CONDITIONAL SUBPROGRAM CALL),
Address change of sequence program, 419 261
ADDRESS OF COUNTER (C), 66 Calling the Number of a Running Program (Low–
speed response), 803
ADDRESS OF DATA TABLE (D), 70
Calling the Sequence Number of the Running Pro-
ADDRESS OF KEEP RELAY AND NONVOLATILE gram (Low–speed response), 804
MEMORY CONTROL (K), 68 CALLU (UNCONDITIONAL SUBPROGRAM
Addresses, 287 CALL), 262
CHINESE CHARACTER CODE, HIRAGANA
ADDRESSES BETWEEN PMC AND CNC CODE, AND SPECIAL CODE LIST, 941
(PMC$NC), 47
Clearing the PMC Parameter, 432
ADDRESSES BETWEEN PMC AND MACHINE
TOOL (PMC$MT), 48 CLEARING THE SEQUENCE PROGRAM, 324
Addresses between PMC and machine tool for PMC– Clearing the Sequence Program, 431
RB/RC, 48 CLEARING THE SEQUENCE PROGRAM AND
CONDENSATION OF THE SEQUENCE PRO-
ADDRESSES FOR MESSAGE SELECTION DIS- GRAM, 431
PLAYED ON CRT (A), 64
CNC → Offline Programmer, 913
ADDRESSES, SIGNAL NAMES, COMMENTS,
AND LINE NUMBERS, 287 COD (CODE CONVERSION), 137
ALARM MESSAGE LIST, 919 CODB (BINARY CODE CONVERSION), 140
CODING (STEP 5), 19
ALARM SCREEN (ALARM), 339
COIN (COINCIDENCE CHECK), 166
Alter, 597
COLLATION OF PROGRAM, 617
Alteration of sequence programs, 411
Collation of source programs, 617
AND, 83 COM (COMMON LINE CONTROL), 145
AND. NOT, 83 COME (COMMON LINE CONTROL END), 150
AND. STK, 86 Comments, 288
APPENDIX 5 WINDOW FUNCTION DE- COMP (COMPARISON), 162
SCRIPTION (FS16–W), 860 COMPATIBILITY OF LADDER DIAGRAM, 563
APPLICABLE FAPT LADDER EDITIONS, 908 COMPATIBILITY WITH CNC BASIC SOFTWARE,
Applications, 295 902
COMPB (COMPARISON BETWEEN BINARY
ARBITRARY FUNCTIONAL INSTRUCTIONS, 228 DATA), 164
Area managed by the system program, 61 COMPONENT UNITS, 391, 571
Assignment of I/O module addresses, 50 Component units, 903
AUTOMATIC OPERATION WHEN THE POWER IS COMPONENT UNITS AND CONNECTIONS, 390,
TURNED ON, 324 570
Automatic tracing function at power on, 342 Component Units and Connections, 903
Compress the sequence program, 432
AXCTL (AXIS CONTROL BY PMC), 268
Compressed input by [COMAND] key, 634
Index B–61863E/09

Note
Index entries with page numbers higher than 648 are in Book 2.

Condense, 905 [D]


CONDENSE COMMAND – RELEASE OF DE- Data display and setting (title, symbol, ladder pro-
LETED AREA, 646 gram, comment, message, I/O module), 590
CONFIGURATION AND OPERATION OF STEP– Data input to and output from other devices, 454
SEQUENCE PROGRAMS, 522
Data keys and screen scroll key, 578
CONFIGURATION OF COMMAND, 643 Data Number, Data Attribute, Data Length, Data
Confirming the ladder mnemonics, 487 Area, 884
Data table (DATA), 367
CONNECTING COMPONENT UNITS, 396
DCNV (DATA CONVERSION), 158
Connecting the I/O Card, 896
DCNVB (EXTENDED DATA CONVERSION), 160
Connecting the I/O Unit, 896 DEBUGGING, 469
CONNECTING THE OPERATOR’S PANEL FOR DEC (DECODE), 118
Series 0 WITH Series 16, Series 18, Series 21, OR
Power Mate, 893 DECB (BINARY DECODING), 120
Delete, 601
CONNECTION, 896
Delete of sequence program, 414
Connection of Components, 904
Delete of symbol data and comment, 425
CONNECTIONS OF UNITS, 572 Deleting a sequence program, 628
CONVERGENCE OF SELECTIVE SEQUENCE, 527 Deleting title data, 404
CONVERGENCE OF SIMULTANEOUS SE- DELETION OF PROGRAMS, 618
QUENCE, 529 Descriptions of displayed items, 465
CONVERSION, 890 DETAILS OF BASIC INSTRUCTIONS, 77
Copy a ladder program [CPYLAD], 460 DIFD (FALLING EDGE DETECTION), 239
Difference of status of signals between 1st level and
Copy I/O module data [CPYMDL], 461 2nd level, 34
Copy message data [CPYMSG], 460 DIFU (RISING EDGE DETECTION), 238
Copy symbol data and comment data [CPYSYM], 460 DIRECT EDITING BY LADDER DIAGRAM, 620
Copy the sequence programs [CPYALL], 461 DISP(MESSAGE DISPLAY) (PMC–RB/RB2/RB3/
RB4/RB5/RB6/RC/ RC3/RC4 ONLY), 198
Copy title data [CPYTTL], 460 DISPB, 211
Copying a sequence program, 631 Display of ladder diagram, 603
Copying message data (COPY), 430 DISPLAY OF SIGNAL STATUS (STATUS), 338
Copying the sequence program, 417 Displayed items, 468
DISPLAYING AND SETTING THE CONFIGU-
CORRESPONDING FUNCTION, 562 RATION STATUS OF I/O DEVICES(IOCHK), 353
Counter screen (COUNTR), 361 Displaying input code (DSPMOD), 430
Creating a program, 300 DISPLAYING OF SEQUENCE PROGRAM, 547
CREATION OF LADDER DIAGRAM (STEP 4), 18 DISPLAYING THE CONTENTS OF MEMORY, 343
DISPLAYING THE GDT (GLOBAL DESCRIPTOR
CROSS REFERENCE DISPLAY, 433 TABLE), 463
CRT/MDI OPERATION, 546 DISPLAYING THE MEMORY ALLOCATION IN-
FORMATION OF A USER PROGRAM CODED IN
CTR (COUNTER), 122 C., 466
CTRC (COUNTER), 128 DISPLAYING THE RUNNING STATE OF A USER
TASK (USRDGN), 351
B–61863E/09 Index

Note
Index entries with page numbers higher than 648 are in Book 2.

DISPLAYING TITLE DATA, 336 Entering Torque Limit Data for the Digital Servo Mo-
tor (:Low–speed response), 742
DIV (DIVISION), 192
EOR (EXCLUSIVE OR), 240
DIVB (BINARY DIVISION), 194
ERROR CODES LIST (FOR FAPT LADDER P–G),
DIVERGENCE OF SELECTIVE SEQUENCE, 527 651
DIVERGENCE OF SIMULTANEOUS SEQUENCE, ERROR DETAILS, 494
528
ERROR LIST, 498
DIVIDING DISPLAY OF LADDER DIAGRAM, 384
ERROR MESSAGES (FOR EDIT), 479
DO–WHILE STATEMENT, 932
ERROR MESSAGES (FOR I/O), 481
DSCH (DATA SEARCH), 170
ERROR MESSAGES (FOR LADDER MNEMONICS
DSCHB (BINARY DATA SEARCH), 173 EDITING), 492
DUMP DISPLAY ON LADDER DIAGRAM, 376 EXAMPLE OF STEP SEQUENCE PROGRAMS, 926
EXAMPLES OF STRUCTURED PROGRAMMING,
294
[E] Except Power Mate–D and –F, 680
EXCLUSIVE CONTROL FOR FUNCTIONAL
Editing a character string in message data, 429 INSTRUCTIONS, 543
Editing character strings of symbol data and comment Execution method, 299
data, 426
EXECUTION OF A SEQUENCE PROGRAM, 438
Editing character strings of title data, 404
EXECUTION OF STEP SEQUENCE, 518
EDITING FOR POWER MATE–MODEL D (PMC–
PA1/PA3), 902 EXECUTION PROCEDURE OF SEQUENCE PRO-
GRAM, 23
EDITING FUNCTION OF LADDER DIAGRAM,
557 EXIN (EXTERNAL DATA INPUT), 218
EDITING LADDER MNEMONICS, 487 EXTENDED LADDER INSTRUCTIONS, 533
EDITING OF SEQUENCE PROGRAM (EDIT), 403
Editing symbol data and comment at once, 419
EDITING THE SEQUENCE PROGRAM (EDIT), [F]
486 F keys (F1 to F0), 576
Emergency Stop Signal (*ESP), 897 FAPT LADDER (FOR PERSONAL COMPUTERS),
Enabling automatic debugging at power–on, 473 908
END (END OF A LADDER PROGRAM), 260 FAPT LADDER (SYSTEM P SERIES), 910
END OF BLOCK STEP, 532 FAPT LADDER system floppy loading, 585

END1 (1ST LEVEL SEQUENCE PROGRAM END), FDLIST COMMAND – FILE ATTRIBUTE DIS-
109 PLAY, 644

END2 (2ND LEVEL SEQUENCE PROGRAM END), FILE EDITING FUNCTION, 639
110 FOR MDI UNITS OTHER THAN STANDARD MDI
END3 (END OF 3RD LEVEL SEQUENCE) (PMC– UNITS (FOR FS20 PMC–RA1 AND RA3), 324
RC/RC3/RC4/NB ONLY), 111 For Power Mate–D and –F, 683
Ending edit of a sequence program, 635 FOR STATEMENT, 934
Ending ladder mnemonics editing, 490 FOR THE FS15 (PMC–NB), 386
Entering Data on the Program Check Screen (:Low– FOR THE FS16 (PMC–RC OR PMC–RC3), 386
speed response), 738
FORCIBLY STOPPING THE SEQUENCE PRO-
Entering title data, 404 GRAM, 440
Index B–61863E/09

Note
Index entries with page numbers higher than 648 are in Book 2.

FORMAT AND DETAILS OF THE CONTROL IF ELSE STATEMENT, 936


DATA OF THE WINDR FUNCTIONAL
INSTRUCTION, 796 Implementation techniques, 294
FORMAT AND DETAILS OF THE CONTROL INFINITE NUMBER OF RELAY CONTACTS, 291
DATA OF THE WINDW FUNCTIONAL INITIAL BLOCK STEP, 532
INSTRUCTION, 835
INITIAL STEP, 525
FORMATS AND DETAILS OF CONTROL DATA,
657 INPUT OF PROGRAM, 605
FUNCTION, 654, 791, 852, 890 INPUT PMC PARAMETERS FROM MDI PANEL,
359
Function, 298
Input signal processing, 32
FUNCTION FOR DISPLAYING SIGNAL WAVE-
FORMS (ANALYS), 345 Input with a katakana identification code, 430
Function for storing data in memory, 344 INPUT/OUTPUT LADDER/PMC–PARAMETER BY
MDI/DPL, 495
Function of copying symbol and comment data, 427
Input/Output method to FANUC FLOPPY CASSETE
FUNCTIONAL INSTRUCTION TRSET, 534 (Fixed 4800bit/sec.), 495
Functional Instruction WINDR, 793 Input/Output method to office programmer (P–G
Functional Instruction WINDW, 795 Mate/Mark II) (Fixed 9600bit/sec.), 495
FUNCTIONAL INSTRUCTIONS, 91 INPUT/OUTPUT OF LADDER PROGRAM WITH
P–G AND FLOPPY CASSETTE/FA CARD, 636
FUNCTIONS FOR DISPLAYING MEMORY AREAS
AND DEBUGGING THE PROGRAM (MONIT), Inputting a multi–byte character (D.CHAR), 430
462
Insert, 600
FUNCTIONS OF PROCESSING, 568
Insert of sequence program, 411
INTERLOCKING, 35
INTERNAL RELAY ADDRESSES (R), 59
[G]
GENERAL RULES, 537
GRAPHICAL SYMBOLS, 505
[J]
JMP (JUMP), 151
JMP INSTRUCTIONS WITH LABEL SPECIFI-
[H] CATION, 304
Help screen, 604 JMPB (LABEL JUMP), 265
JMPC (LABEL JUMP), 266
JMPE (JUMP END), 155
[I] JUMP, 530
I/O ERROR MESSAGES, 458
I/O Link Connecting Check Screen, 354
I/O link connection unit assignment, 55 [K]
I/O Link–II Parameter Setting Screen, 355
Keep relay (KEEPRL), 361
I/O signals to CNC, 33
Key Switch Signals (Xn, Xn+2), 897
I/O UNIT ADDRESS SETTING (MODULE), 421
KEYBOARD OF SYSTEM P SERIES, 575
I/O unit model B assignment, 57
B–61863E/09 Index

Note
Index entries with page numbers higher than 648 are in Book 2.

[L] MOVB (TRANSFER OF 1 BYTE), 235


MOVE (LOGICAL PRODUCT TRANSFER), 142
LABEL, 530
Moving a sequence program, 632
LABEL ADDRESSES (JMPB, JMPC, LBL) (L), 73
LADDER DEBUGGING FUNCTION, 474 Moving the sequence program, 418

LADDER DIAGRAM DISPLAY, 375 MOVN (TRANSFER OF AN ARBITRARY NUM-


BER OF BYTES), 237
LADDER DIAGRAM FORMAT, 286, 290
MOVOR (DATA TRANSFER AFTER LOGICAL
LADDER PASSWORD FUNCTION, 325 SUM), 144
Ladder Screen, 550, 560 MOVW (TRANSFER OF 2 BYTES), 236
LBL (LABEL), 267 MUL (MULTIPLICATION), 188
LEVEL UP OF INPUT/OUTPUT FUNCTION WITH MULB (BINARY MULTIPLICATION), 190
MEMORY CARD, 912
Multiple data input, 359
Limitations in SYSTEM P Mate, 620
Limitations with the SYSTEM P Mate, 584
Line numbers, 288
[N]
LIST OF WINDOW FUNCTIONS, 655
NONVOLATILE MEMORY, 278
LOAD key (system program loading key), 576
NOT (LOGICAL NOT), 246
Loading of floppy, 584
NOTE, 373
LOADING THE STANDARD LADDER (FOR Power
Mate –D/F PMC–PA1 AND PA3), 325 Note, 916
Location search, 601 Notes, 473
LOGICAL AND, 242 NOTES FOR SUBROUTINES WHEN YOU USE
SUBROUTINES, 302
LOGICAL OR, 244
Notes on using an MDI keyboard without cursor keys
LOW–SPEED RESPONSE AND HIGH–SPEED RE- (when using the FS20 PMC–MODEL RA1/RA3),
SPONSE OF WINDOW FUNCTION, 654, 791 456
NUME (DEFINITION OF CONSTANT), 196
NUMEB (DEFINITION OF BINARY CONSTANTS),
[M] 197
Message data input, 429
MESSAGE DATA SETTING (MESSAGE), 428
MISCELLANEOUS ITEM, 292 [O]
MMC3 R (MMC–III WINDOW DATA READ), 248 Offline Programmer → CNC, 915
MMC3W (MMC–III WINDOW DATA WRITE), 250 ON–LINE DEBUGGING FUNCTION(ONLY FOR
MMCWR (READING MMC WINDOW DATA) POWER MATE–H), 496
(OTHER THAN PMC–PA1/PA3), 231 ON–LINE EDIT, 385
MMCWW (WRITING MMC WINDOW DATA) OPERATION, 581
(OTHER THAN PMC–PA1/PA3), 233
Operation, 340, 343, 345, 433, 463, 466, 469, 913
Modification Procedure, 891
OPERATIONS, 446
MODIFYING THE CONVERTED SEQUENCE PRO-
GRAM, 891 OR, 83
Modifying the ladder mnemonics, 489 OR. NOT, 83
MONITOR TIME SCREEN, 555 OR. STK, 86
Monitoring Elapsed Time, 554 OTHER WINDOW FUNCTIONS, 889
Index B–61863E/09

Note
Index entries with page numbers higher than 648 are in Book 2.

Outline of Leveled Up Contents, 912 Program input, 636


OUTPUT OF PROGRAM, 610 Program output, 637
Output signal processing, 32 Programmer menu screen, 586
Override Signals (*OV1 to *OV8) and Program Pro- PROGRAMMING, 506
tect Key Signal (KEY), 897 Programming from keyboard, 596
PSGN2 (POSITION SIGNAL OUTPUT 2), 276
PSGNL (POSITION SIGNAL OUTPUT), 273
[P]
Paper command, 613
Parameter, 905 [R]
PARAMETER DISPLAY ON LADDER DIAGRAM, R keys (R0 to R3), 577
377 RD, 79
Parameter Menu (for PMC–RB), 900 RD . NOT, 80
Parameter screen, 346, 470 RD. NOT. STK, 85
Parameter setting and display, 587 RD. STK, 84
Parameter setting screen, 340, 434 Reading a Character String of the CNC Program Be-
PARI (PARITY CHECK), 156 ing Executed in the Buffer , 749
PMC ADDRESS (S ADDRESS), 534 Reading a Custom Macro Variable (:Low–speed re-
sponse), 676
PMC BASIC INSTRUCTIONS, 75 Reading a Custom Macro Variable (Low–speed re-
PMC DATA TABLE, 281 sponse), 801
PMC I/O SIGNAL DISPLAY AND INTERNAL Reading a Parameter, 746
RELAY DISPLAY (PMCDGN), 335 Reading a Parameter (:Low–speed response), 668
PMC LADDER DIAGRAM DISPLAY (PMCLAD), Reading a Parameter (Setting Data) (Low–speed re-
374 sponse), 800
PMC MENU SELECTION PROCEDURE BY SOFT- Reading a Servo Delay on a Controlled Axis, 809
KEY, 329
Reading a Skip Position (Stop Position of Skip Opera-
PMC OPERATION FOR LOADER CONTOROL tion (G31)) of Controlled Axes, 696
FUNCTION, 328
Reading a Tool Offset, 660
PMC PARAMETERS SETTING AND DISPLAY
(PMCPRM), 358 Reading a Workpiece Origin Offset Value (Not sup-
ported by the Power Mate–D or –F), 664
PMC PROGRAMMER (CRT/MDI OR PDP/MDI)
[LADDER EDITING FUNCTION], 902 Reading A/D Conversion Data, 709

PMC PROGRAMMER (DPL/MDI) (ONLY FOR THE Reading an Acceleration/Deceleration Delay on a


POWER MATE–D/F/H), 482 Controlled Axis, 809
Reading an Estimate Disturbance Torque data, 832
Power Mate–MODEL D/H assignment, 58
Reading an Operator Message, 757
PREPARATION BEFORE OPERATION, 584
READING AND WRITING OF NONVOLATILE
PRIORITY OF EXECUTION (1ST LEVEL, 2ND MEMORY DATA, 280
LEVEL AND 3RD LEVEL), 25
Reading and Writing the Laser Command Data and
Procedure, 900 Laser Setting Data, 857
PROCESSING I/O SIGNALS, 31 Reading Clock Data (Date and Time), 740
Program collation, 638 Reading CNC Status Information, 755
Program Configuration List (main screen), 547, 557 Reading CNC System Information, 658
PROGRAM EDITING, 590 Reading Diagnosis Data, 748
B–61863E/09 Index

Note
Index entries with page numbers higher than 648 are in Book 2.

Reading Diagnosis Data (:Low–Speed Response), 707 Reading the Machining Time (Low–speed response),
833
Reading Load Information of the Spindle Motor (Seri-
al Interface), 744 Reading the Offset from the Workpiece Reference
Point, 799
Reading Modal Data, 702
Reading the Relative Position on a Controlled Axis,
READING MODEL DATA, 872 751, 830
Reading of the Comment, 856 Reading the Remaining Travel, 753
READING OF TOOL SETTING DATA, 882 Reading the Remaining Traveling Distance on a Con-
Reading Set Data, 747 trolled Axis, 831
Reading Setting Data (:Low–speed response), 672 Reading the Servo Delay for Controlled Axes, 698
Reading signals automatically at power on, 350 Reading the Skip Position on a Controlled Axis (Low–
speed response), 808
READING THE MEASURED POINT, 875
Reading the Tool Life Management Data (Cutter
READING THE PARAMETER (:LOW–SPEED RE- Compensation Number 1) (Low–speed response),
SPONSE), 864 825
READING THE SETTING DATA, 878 Reading the Tool Life Management Data (Cutter
Compensation Number 2) (Low–speed response),
Reading the Absolute Position (Absolute Coordinates) 826
of Controlled Axes, 692
Reading the Tool Life Management Data (Number of
Reading the Absolute Position on a Controlled Axis, Tool Groups) (Low–speed response), 820
805
Reading the Tool Life Management Data (Number of
Reading the Acceleration/Deceleration Delay on Con- Tools) (Low–speed response), 820
trolled Axes, 700
Reading the Tool Life Management Data (Tool In-
Reading the Actual Speed of Controlled Axes (Low– formation 1) (Low–speed response), 827
speed response), 805
Reading the Tool Life Management Data (Tool In-
Reading the Actual Spindle Speed, 736 formation 2) (Low–speed response), 828
Reading the Actual Velocity of Controlled Axes, 690 Reading the Tool Life Management Data (Tool
Reading the Clock Data (Low–speed response), 829 Length Compensation Number 1) (Low–speed re-
sponse), 823
READING THE CNC ALARM STATUS, 871 Reading the Tool Life Management Data (Tool
Reading the CNC Alarm State (Low–speed response), Length Compensation Number 2) (Low–speed re-
802 sponse), 824
Reading the CNC Alarm Status, 680 Reading the Tool Life Management Data (Tool life
counter type), 763
Reading the Continuous–State Data (Low–speed re-
sponse), 810 Reading the Tool Life Management Data (Tool Life
Counter Type) (Low–speed response), 822
Reading the Current Program Number, 686
Reading the Tool Life Management Data (Tool Life
Reading the Current Sequence Number, 688 Counter) (Low–speed response), 821
Reading the Diagnostic Data (Low–speed response), Reading the Tool Life Management Data (Tool
816 Life)(Low–speed response), 821
Reading the Estimate disturbance torque data, 787 Reading the Tool Life Management Data (Tool Num-
Reading the Load Current (A/D Conversion Data) for ber) (Low–speed response), 828
the Feed Motor, 817 Reading the Tool Life Management Data(Tool Group
Number)(Low–speed response), 819
Reading the Load Current (A/D Conversion Data) for
the Spindle Motor, 833 Reading the Tool Offset Data (Low–speed response),
797
Reading the Machine Position (Machine Coordinates)
of Controlled Axes, 694 Reading the Tool offset data according to the specified
tool number, 834
Reading the Machine Position on a Controlled Axis,
807 READING THE WIRE DIAMETER OFFSET, 860
Index B–61863E/09

Note
Index entries with page numbers higher than 648 are in Book 2.

Reading Tool Life Management Data (Cutter Com-


pensation No. (1): Tool No.), 726
[S]
SCRATCH COMMAND – DELETION OF FILES,
Reading Tool Life Management Data (Cutter Com- 646
pensation No. (2): Tool Order No.), 728
Screen for displaying traced data, 473
Reading Tool Life Management Data (Number of Screen of Ladder Debugging Function, 474
Tool Groups), 714 Search of sequence program, 415
Reading Tool Life Management Data (Number of SEARCH OF SPECIFIED RELAY COIL POINTS IN
Tools), 716 LADDER DIAGRAM, 381
Searching a sequence program, 629
Reading Tool Life Management Data (Tool Group
No.), 712 Searching for an address (SRCH), 429
SELECTING THE PMC PROGRAMMER MENU,
Reading Tool Life Management Data (Tool Informa- 484
tion (1) : Tool No.), 730
Selection of program menu by soft keys, 620
Reading Tool Life Management Data (Tool Informa- SELECTION OF PROGRAMMER MENUS BY
tion (2): Tool Order No.), 732 SOFTKEYS, 397
SEQUENCE PROGRAM, 22
Reading Tool Life Management Data (Tool Length
Compensation No. (1): Tool No.), 722 SEQUENCE PROGRAM CHECK AND WRITE
INTO ROM (STEPS 8 TO 11), 20
Reading Tool Life Management Data (Tool Length SEQUENCE PROGRAM COPY FUNCTION, 460
Compensation No. (2): Tool Order No.), 724
SEQUENCE PROGRAM CREATING PROCEDURE,
Reading Tool Life Management Data (Tool Life 3
Counter), 720 SEQUENCE PROGRAM ENTRY (STEPS 6, 7), 20
Reading Tool Life Management Data (Tool Life), 718 SEQUENCE PROGRAM GENERATION (LAD-
DER), 406
Reading Tool Life Management Data (Tool No.), 734 Sequence program input, 407, 622
SEQUENCE PROGRAM MEMORY CAPACITY, 38
READING TOOL SETTING DATA BY SPECIFY-
ING TOOL NUMBER, 887 SEQUENCE PROGRAM PROCESSING TIME, 36
SEQUENCE PROGRAM STRUCTURING, 29, 293
Reading Value of the P–code Macro Variable (:Low–
speed response), 759 SET, 87
SET ITEMS, 444
Registering the Tool Life Management Data (Tool
group) (:Low–speed response), 765 SETTING AND DISPLAY SCREEN, 360
SETTING AND DISPLAYING SYSTEM PARAME-
REMOVE COMMAND – FILE COPY, 647 TERS (SYSTEM PARAM), 485
RENAME COMMAND – FILE ATTRIBUTE Setting I/O commands, 636
CHANGE, 645 SETTING OF I/O DEVICE, 579
SETTING SCREEN, 369
REPETITIVE OPERATION, 24
Setting the transfer speed ([SPEED] soft key), 455
RESTRICTIONS, 308, 461 SFT (SHIFT REGISTER), 168
ROM format program, 607, 614, 617 SIGNAL ADDRESS CONVERSION (FROM THE
PMC–MODEL L/M TO THE PMC–MODEL RB/
ROT (ROTATION CONTROL), 131 RC), 890
Signal diagnosis screen, 349
ROTB (BINARY ROTATION CONTROL), 134
Signal names, 288
RST, 89 SIGNALS FOR CONNECTING THE OPERATOR’S
PANEL, 897
B–61863E/09 Index

Note
Index entries with page numbers higher than 648 are in Book 2.

Soft key menu of Ladder Debugging Function, 475 SUB (SUBTRACTION), 184
Source program, 605, 610 SUBB (BINARY SUBTRACTION), 186
SP (SUBPROGRAM), 263 SUBPROGRAM NUMBERS (CALL, CALLU, SP)
SPCNT (SPINDLE CONTROL), 252 (P), 74
SPE (END OF A SUBPROGRAM), 264 SUBPROGRAMMING AND NESTING, 298
SPECIAL USES OF THE R3 KEY, 619 Substitution of sequence programs, 625
SPECIFICATION, 536 SUMMARY OF SPECIFICATION OF LADDER
PROGRAM, 13
Specification and Display of System Parameters
(SYSPRM), 905 SWITCH STATEMENT, 938
SPECIFICATION OF PMCs, 5 SYMBOL AND COMMENT DISPLAY, 380
SPECIFICATION OF STEP SEQUENCE, 535 Symbol data and comment input, 425
SPECIFICATIONS, 304 Symbol data display, 633
Specifications, 297, 345, 469 Symbol data search (SRCH), 425
SPECIFYING ADDRESSES, 900 SYMBOL DATA SETTING (SYMBOL), 424
SPECIFYING AND DISPLAYING SYSTEM PA- SYMBOLS USED IN THE LADDER DIAGRAM,
RAMETERS (SYSPRM), 399 289
SPECIFYING AND DISPLAYING TITLE DATA
(TITLE), 404 SYSTEM DIAGRAM OF SOFT KEY, 907

START AND STOP OF A SEQUENCE PROGRAM, System floppy, 584


439
Starting and stopping the on–line debugging function,
496
STARTING AND STOPPING THE SEQUENCE
[T]
PROGRAM (RUN/STOP), 491 TERMINOLOGY, 509
Starting ladder mnemonics editing, 487 The value of functional instruction parameter, 377
Starting or stopping the trace function, 341 Time Screen, 553
STARTING THE SEQUENCE PROGRAM, 440 TIMER ADDRESSES (T), 71
STEP, 523 TIMER SCREEN, 553
Step operation [STEP], 476 Timer screen (TIMER), 360
STEP SEQUENCE BASICS, 508
TIMER, COUNTER, KEEP RELAY, NONVOLA-
STEP SEQUENCE CORRESPONDED C LAN- TILE MEMORY CONTROL, DATA TABLE, 278
GUAGE, 930
TMR (TIMER), 112
STEP SEQUENCE METHOD, 502
TMRB (FIXED TIMER), 114
Step Sequence Screen, 548, 558
TMRC (TIMER), 116
Stop function of break with condition [BRKCTL], 477
TRACE FUNCTION (TRACE), 340
STOP OF LADDER DIAGRAM DISPLAY BY
TRIGGER OF SIGNAL, 382 Trace screen, 342
STORAGE AND CONTROL OF SEQUENCE PRO- Transfer Between Data Area and Non–Volatile
GRAM (STEPS 12 TO 14), 21 Memory, 852
Storage to a memory card, 450 Transfer to and from a FANUC FD cassette, 446
Storage to flash EEPROM, 448 Transfer to and from a FAPT LADDER, 446
STORING THE SEQUENCE PROGRAM INTO Transfer to and from a ROM WRITER, 456
FLASH EEPROM (I/O) (ONLY FOR THE POWER
MATE–H), 493 TRANSITION, 526
Index B–61863E/09

Note
Index entries with page numbers higher than 648 are in Book 2.

Writing the Tool Life Management Data (Cutter Com-


pensation Number 1), 844
Writing the Tool Life Management Data (Cutter Com-
[U] pensation Number 2), 844
USER PMC SCREEN (PCMDI), 386 Writing the Tool Life Management Data (Tool condi-
tion (1) : Tool number) (:Low–speed response), 781
Writing the Tool Life Management Data (Tool Group
[W] Number), 840
Writing the Tool Life Management Data (Tool In-
WHAT IS A SEQUENCE PROGRAM?, 16 formation 1), 845
WHILE STATEMENT, 930
Writing the Tool Life Management Data (Tool In-
WINDOW (WRITING CNC WINDOW DATA), 225 formation 2), 845
WINDOW FUNCTION DESCRIPTION (EXCEPT Writing the Tool Life Management Data (Tool Length
SERIES 15B PMC–NB/NB2), 654 Compensation Number 1), 843
Window Function Description (FS15B PMC–NB/ Writing the Tool Life Management Data (Tool Length
NB2) , 791 Compensation Number 2), 843
WINDOW FUNCTION DESCRIPTION (FS16–LA), Writing the Tool Life Management Data (Tool length
851 offset number (1) : Tool number) (:Low–speed re-
WINDOW FUNCTION DESCRIPTION (FS16–PA), sponse), 773
882
Writing the Tool Life Management Data (Tool length
WINDR (READING CNC WINDOW DATA), 222 offset number (2) : Tool operation sequence num-
ber) (:Low–speed response), 775
Writing a Custom Macro Variable, 838
Writing a Custom Macro Variable (:Low–speed re- Writing the Tool Life Management Data (Tool Life
sponse), 678 Counter Type), 842
Writing a Parameter (:Low–speed response), 670 Writing the Tool Life Management Data (Tool life
counter type) (:Low–speed response), 771
Writing a Parameter (Setting Data), 837
Writing the Tool Life Management Data (Tool Life
Writing a Tool Offset ( :Low–speed response), 662 Counter), 841
Writing a Workpiece Origin Offset Value(:Low–speed Writing the Tool Life Management Data (Tool life
response), 666 counter) (:Low–speed response), 769
WRITING OF TOOL SETTING DATA (LOW–
SPEED RESPONSE), 885 Writing the Tool Life Management Data (Tool Life),
841
Writing Setting Data (:Low–speed response), 674
Writing the Tool Life Management Data (Tool life)
WRITING THE MEASURED POINT (:LOW– (:Low–speed response), 767
SPEED RESPONSE), 877
Writing the Tool Life Management Data (Tool Num-
WRITING THE PARAMETER (:LOW–SPEED RE- ber), 846
SPONSE), 866
Writing the Tool Life Management Data (Tool num-
WRITING THE SETTING DATA (:LOW–SPEED ber) (:Low–speed response), 785
RESPONSE), 879
Writing the Tool Management Data (Tool condition
Writing the Data on the Program Check Screen, 839 (2) : Tool operation sequence number) (:Low–speed
Writing the Feedrate, 850 response), 783
Writing the Superposition Move Command, 848 Writing the Tool Offset Data, 836
Writing the Tool Life Management Data (Cutter com- Writing the Tool offset data according to the specified
pensation number (1) : Tool number) (:Low–speed tool number, 847
response), 777
Writing the Torque Limit Override, 840
Writing the Tool Life Management Data (Cutter com-
pensation number (2) : Tool operation sequence WRITING THE WIRE DIAMETER OFFSET
number) (:Low–speed response), 779 (:LOW–SPEED RESPONSE), 862
B–61863E/09 Index

Note
Index entries with page numbers higher than 648 are in Book 2.

Writing Value of the P–code Macro Variable (:Low–


speed response), 761
WRITING, READING, AND VERIFYING THE SE-
QUENCE PROGRAM AND PMC PARAMETER [X]
DATA, 441 XMOV (INDEXED DATA TRANSFER), 175
WRT, 81 XMOVB (BINARY INDEX MODIFIER DATA
TRANSFER), 178
WRT. NOT, 82
Revision Record

FANUC PMC–MODEL PA1/PA3/RA1/RA2/RA3/RB/RB2/RB3/RB4/RC/RC3/RC4/NB LADDER LANGUAGE PROGRAMMING MANUAL (B–61863E)

Addition of PMC–MODEL RB4/RC4


Addition of the following Appendix.
S Window function description (FS16–LA)
05 May.,’94 S Window function description (FS16–W)
S Window function description (FS16PA)
S PMC MODEL RA1/RA3 Supplementary Explanation of
Programming

Addition of PMC–MODEL Addition PMC–NB2


PA1/PA3/RA3/RB3/RC3/NB.
04 Aug.,’93 09 Mar.,’96

Addition of PMC–MODEL RA1/RA2/RB2 Addition of PMC–RA5/RA6

03 Mar., ’92 08 Oct.,’95

All pages are revised. Total revision


PMC–MODEL RC is added.
02 Aug., ’91 07 Apr.,’95

Corresponds to 18–B

01 Oct., ’90 06 Nov.,’94

Edition Date Contents Edition Date Contents

You might also like