Model PA1/PA3/SA1/SA2/SA3/SA5/
SB/SB2/SB3/SB4/SB5/SB6/SB7/
SC/SC3/SC4/NB/NB2/NB6
Ladder Language Programming Manual, GFZ-61863E/15,
Vol. 1 of 4
February 2005
Page 2
GFL-002
Warnings, Cautions, and Notes
as Used in this Publication
Warning
Warning notices are used in this publication to emphasize that hazardous voltages,
currents, temperatures, or other conditions that could cause personal injury exist in this
equipment or may be associated with its use.
In situations where inattention could cause either personal injury or damage to equipment,
a Warning notice is used.
Caution
Caution notices are used where equipment might be damaged if care is not taken.
Note
Notes merely call attention to information that is especially significant to understanding and
operating the equipment.
This document is based on information available at the time of its publication. While efforts
have been made to be accurate, the information contained herein does not purport to cover all
details or variations in hardware or software, nor to provide for every possible contingency in
connection with installation, operation, or maintenance. Features may be described herein
which are not present in all hardware and software systems. GE Fanuc Automation assumes no
obligation of notice to holders of this document with respect to changes subsequently made.
GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory
with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or
usefulness of the information contained herein. No warranties of merchantability or fitness for
purpose shall apply.
The following are trademarks of GE Fanuc Automation, Inc.
This manual includes safety precautions for protecting the user and preventing damage to the
machine. Precautions are classified into W arning and Caution according to their bearing on safety.
Also, supplementary information is described as a Note. Read the Warning, Caution, and Note
thoroughly before attempting to use the machine.
WARNING
Applied when there is a danger of the user being injured or when there is a danger of both the user
being injured and the equipment being damaged if the approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment being damaged, if the approved procedure is not
observed.
NOTE
The Note is used to indicate supplementary information other than Warning and Caution.
` Read this manual carefully, and store it in a safe place.
s–1
Page 4
Page 5
B–61863E/15
PREFACE
PREFACE
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.
Renaming of PMC
Models
Applicable models
FANUC PMC–MODEL P A1PMC–PA1FANUC Power Mate–MODEL D
FANUC PMC–MODEL P A3PMC–PA3F ANUC Power Mate–MODEL D/F/H
FANUC PMC–MODEL SA1(Note 1)
(Old Name : FANUC PMC–MODEL RA1)
FANUC PMC–MODEL SA2(Note 1)
(Old Name : FANUC PMC–MODEL RA2)
This manual presents programming descriptions for the PMC
models listed in the following table. Note that some models have
been renamed; in the product name column, the old names are
enclosed in parentheses, while the new names appear above the
old names. However , the previous specifications are still applied
to the renamed models. Thus, when using the renamed models,
users should:
• Read the old names shown in this manual as the new names.
• Read the old names appearing on the units as the new names.
The models covered by this manual, and their abbreviations are :
Product NameAbbreviationsApplicable CNC
FANUC Series 21–MODEL A
FANUC Series 21–MODEL A
PMC–SA1
(PMC–RA1)
PMC–SA2
(PMC–RA2)
FANUC Series 18–MODEL A/B
FANUC Series 20–MODEL A
FANUC Series 21–MODEL B
FANUC Series 20i–MODEL A
FANUC Series 0i–MODEL A
FANUC Series 21i–MODEL A/B
Loader control function (Note 2)
FANUC Series 18–MODEL A
FANUC PMC–MODEL SA3(Note 1)
(Old Name : FANUC PMC–MODEL RA3)
FANUC PMC–MODEL SA5(Note 1)
(Old Name : FANUC PMC–MODEL RA5)
FANUC PMC–MODEL SB(Note 1)
(Old Name : FANUC PMC–MODEL RB)
FANUC PMC–MODEL SB2(Note 1)
(Old Name : FANUC PMC–MODEL RB2)
FANUC PMC–MODEL SB3(Note 1)
(Old Name : FANUC PMC–MODEL RB3)
PMC–SA3
(PMC–RA3)
PMC–SA5
(PMC–RA5)
PMC–SB
(PMC–RB)
PMC–SB2
(PMC–RB2)
PMC–SB3
(PMC–RB3)
p–1
FANUC Series 18–MODEL A
FANUC Series 20–MODEL A
FANUC Series 21–MODEL B
FANUC Series 0i–MODEL A
FANUC Series 21i–MODEL A
FANUC Series 16–MODEL A
FANUC Series 16–MODEL A/B
FANUC Series 18–MODEL B
Page 6
PREFACE
Product NameApplicable CNCAbbreviations
FANUC PMC–MODEL SB4(Note 1)
(Old Name : FANUC PMC–MODEL RB4)
FANUC PMC–MODEL SB5(Note 1)
(Old Name : FANUC PMC–MODEL RB5)
FANUC PMC–MODEL SB6(Note 1)
(Old Name : FANUC PMC–MODEL RB6)
FANUC PMC–MODEL SB7PMC–SB7FANUC Series 16i–MODEL B
FANUC PMC–MODEL SC(Note 1)
(Old Name : FANUC PMC–MODEL RC)
PMC–SB4
(PMC–RB4)
PMC–SB5
(PMC–RB5)
PMC–SB6
(PMC–RB6)
PMC–SC
(PMC–RC)
FANUC Series 16–MODEL B
FANUC Series 18–MODEL B
FANUC Series 16–MODEL C
FANUC Series 18–MODEL C
FANUC Series 16i–MODEL A
FANUC Series 18i–MODEL A
FANUC Power Mate i–MODEL D/H
FANUC Series 16–MODEL C
FANUC Series 18–MODEL C
FANUC Series 16i–MODEL A
FANUC Series 18i–MODEL A
FANUC Series 21i–MODEL A
FANUC Power Mate i–MODEL D/H
FANUC Series 18i–MODEL B
FANUC Series 21i–MODEL B
FANUC Series 16–MODEL A
B–61863E/15
FANUC PMC–MODEL SC3(Note 1)
(Old Name : FANUC PMC–MODEL RC3)
FANUC PMC–MODEL SC4(Note 1)
(Old Name : FANUC PMC–MODEL RC4)
FANUC PMC–MODEL NBPMC–NBFANUC Series 15–MODEL B
FANUC PMC–MODEL NB2PMC–NB2
FANUC PMC–MODEL NB6PMC–NB6FANUC Series 15i–MODEL A
PMC–SC3
(PMC–RC3)
PMC–SC4
(PMC–RC4)
FANUC Series 16–MODEL A/B/C
FANUC Series 18–MODEL B/C
FANUC Series 16–MODEL B/C
FANUC Series 18–MODEL B/C
FANUC Series 15i–MODEL B
NOTE
1 These models have been renamed; in the product name
column, the old names are enclosed in parentheses, while
the new names appear above the old names. However, the
previous specifications are still applied to the renamed
models.
Thus, when using the renamed models, users should :
• Read the old names shown in this manual as the new
names.
• Read the old names appearing on the units as the new
names.
2 PMC–SA1 is applied to the loader control side of a CNC
having the loader control function.
The CNC models having the loader control function are as
follows :
FANUC Series 16–MODEL A/B/C
FANUC Series 18–MODEL A/B/C
FANUC Series 21–MODEL B
FANUC Series 16i/18i/21i–MODEL A/B
p–2
Page 7
B–61863E/15
PREFACE
Other manuals
FANUC Power Mate-MODEL D/F
CONNECTION MANUAL (B-62833EN)
FANUC Power Mate-MODEL H
CONNECTION MANUAL (B–62683EN)
FANUC Power Mate i-MODEL D/H
CONNECTION MANUAL (FUNCTION) (B–63733EN–1)
FANUC Series 16/18
CONNECTION MANUAL (B-61803E)
FANUC Series 16/18/160/180-MODEL B
CONNECTION MANUAL (FUNCTION) (B-62443E-1)
FANUC Series 16/18/160/180-MODEL C
CONNECTION MANUAL (FUNCTION) (B-62753EN-1)
FANUC Series 16i/18i/21i/160i/180i/210i–MODEL A
CONNECTION MANUAL (FUNCTION) (B-63003EN-1)
FANUC Series 16i/18i/21i/160i/180i/210i–MODEL B
CONNECTION MANUAL (FUNCTION) (B-63523EN-1)
FANUC Series 20–FA/TA
CONNECTION MANUAL (B–62173E)
FANUC Series 21/210–MODEL B
CONNECTION MANUAL (FUNCTION) (B–62703EN–1)
FANUC Series 15-MODEL B
BMI INTERFACE
CONNECTION MANUAL (B-62073E-1)
FANUC Series 15i/150i-MODEL A
CONNECTION MANUAL (FUNCTION) (B–63323EN–1)
FANUC PMC
C LANGUAGE PROGRAMMING MANUAL
(B-61863E-1)
However, it does not include all items required for sequence
programming. For those required for sequence programming
refer to the following manuals.
B.4.4Reading a Workpiece Origin Offset Value (not Supported by the Power Mate–D or –F)1154. . .
B.4.5Writing a Workpiece Origin Offset Value(:Low–speed Response)
B.4.48Reading Value of the P–code Macro Variable (:Low–speed Response)1249. . . . . . . . . . . . . . .
B.4.49Writing Value of the P–code Macro Variable (:Low–speed Response)1251. . . . . . . . . . . . . . . .
B.4.50Reading the Tool Life Management Data (Tool Life Counter Type)1253. . . . . . . . . . . . . . . . . . .
B.4.51Registering the Tool Life Management Data (Tool Group) (:Low–speed Response)1255. . . . .
B.4.52Writing the Tool Life Management Data (Tool Life) (:Low–speed Response)1257. . . . . . . . .
B.4.53Writing the Tool Life Management Data (Tool Life Counter) (:Low–speed Response)1259. .
B.4.54Writing the Tool Life Management Data (Tool Life Counter Type)
C.3.17Reading the Tool Life Management Data (Tool Group Number) (Low–speed Response)1397. .
C.3.18Reading the Tool Life Management Data (Number of Tool Groups)
C.3.21Reading Tool Life Management Data (Tool Life Counter) (Low–speed Response)1399. . . . . . .
C.3.22Reading Tool Life Management Data (Tool Life Counter Type) (Low–speed Response)1400. .
C.3.23Reading Tool Life Management Data (Tool Length Compensation No.1)
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
D Calculate the number of DI/DO points
D 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
Specification of the
programmer
NC
Store the sequence program into the PMC
RAM board by using the keys of the
CRT/MDI
If necessary correct with the keys of the
CRT/MDI
Is there a simulator?
Yes
Debug the sequence program with the
simulator
Offline programmer
Enter the sequence program with the offline
programmer key
In necessary correct with the offline
programmer key
When the debugging connect the offline
programmer to CNC and transfer the
sequence program to Debugging RAM
No
6
5
Yes
Should the program be
corrected?
No
A
Fig. 1 Sequence program creating procedure (1/2)
3
Page 38
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
A
B–61863E/15
Correct with
the keys of the
CRT/MDI
Perform system operation
Debugging RAM
Yes
Yes
Should the program
be corrected?
Write into the ROM using the
ROM writer
Perform system operation
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
7
8
9
10
11
12
End
Fig. 1 Sequence program creating procedure (2/2)
4
Page 39
B–61863E/15
PMC SEQUENCE PROGRAM
1. SEQUENCE PROGRAM
CREATING PROCEDURE
1.1
Table 1.1 shows the specification of PMCs.
Note that the program size, processing speed, available function
SPECIFICATION OF
PMCs
Specification
of PMC
Program method language Ladder Ladder
Number of ladder level22
1st level execution period8 ms8 ms
Mean processing time of
basic command
Program capacity
D Ladder (step) (Note 1,3)
D Symbol, Comment (Note 2,3)
D Message (Note 3)
D Language only
Command Basic command
Internal relay(R)
Message request(A)
Keepmemory
D Variable timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)
It is impossible that make the data more than the total
capacity of each modules.
Total
capacity
Program size
One–Path
control
Two–Path
control
24KB
64KB
128KB
D Power Mate F
Program size
64KB
D Power Mate H
Program size
128KB
5
Page 40
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 1KB.
The size of a message is fixed to 0.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 I/O Link Master function is not available in the Power Mate–MODEL F.
5 FLASH ROM is used in the Power Mate–MODEL H.
6 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
7 Up to 256/256 points of Input/Output points are available or I/O Link (Slave) in the Power
Mate–MODEL D/H.
6
Page 41
B–61863E/15
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (2)
T ype of PMC
Specification
PMC–SA1PMC–SA2PMC–SA3
of PMC
Program method languageLadderLadderLadder
Number of ladder level222
1st level execution period8 ms8 ms8 ms
Mean processing time of basic
command
Program capacity
D Ladder (step) (Note 1,3)
D Symbol, Comment
(Note 2,3)
D Message (Note 3)
D Language only
Command Basic command
Function command
Internal relay(R)
Message request(A)
Keepmemory
D Variable timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 32KB.
The size of a message is fixed to 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 FLASH ROM is used in the FANUC Series 20.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
6 Application PMC for FANUC Series 16–MODEL A loader control function is PMC–SA1.
7
Page 42
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
T able 1.1 PMC specifications (3)
T ype of PMC
Specification
PMC–SB1PMC–SB2PMC–SB3
of PMC
Program method languageLadderLadderLadder
Number of ladder level222
1st level excution period8 ms8 ms8 ms
Mean processing time of basic
command
Program capacity
D Ladder (step) (Note 1,3,4)
D Symbol, Comment
(Note 2,4)
D Message(Note 4)
D Language only
Command Basic command
Function command
Internal relay(R)
Message request(A)
Keepmemory
D Variable timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)(D)
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed to 32KB.
The size of a message is fixed to 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 When the number of steps of the PMC-SB2, SB3 ladder program is approx. 24,000, the
capacity of the ROM module must be 256KB.
4 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
8
Page 43
B–61863E/15
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (4)
T ype of PMC
Specification
of PMC
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC–SCPMC–SC3PMC–NB
Program method languageLadder
Number of ladder level333
1st level execution period8 ms8 ms8 ms
Mean processing time of basic
command
Program capacity
D Ladder (step) (Note 1,3)
D Symbol, Comment
(Note 2,3)
D Message(Note 3)
D Language only
Command Basic command
Function command
Internal relay(R)
Message request(A)
Keepmemor
D Variable timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 The size of a symbol and that of a comment of PMC-SC/SC3
are fixed 32KB. The size of message of PMC-SC/SC3 is
fixed 2.1KB. The size of a symbol and that of a comment
of PMC-NB are fixed 28KB. The size of message of
PMC-NB is fixed 2.1KB. The maximum size of a symbol and
that of a comment are 64KB each.
3 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
4 When the number of steps of the PMC-NB ladder program
is not less than 8,000, the OPTION DRAM is required.
(A02B-0162-J151, J152)
10
Page 45
B–61863E/15
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (5)
1. SEQUENCE PROGRAM
CREATING PROCEDURE
Series 18–
MODEL B
Model
Series 16–MODEL B/Series 18–MODEL B
PMC–SB3PMC–SC3PMC–SB4PMC–SC4PMC–SA1
Programming method
language
Number of ladder level23232
Level-1 Cycle Time8 ms8 ms8 ms8 ms8 ms
Basic Instruction Execution Time0.1
Program capacity
D Ladder (step)(Note 1,3)
D Symbol/Comment (Note 2,3)
D Message(Note 3)
D Language only
Instruction (Basic)
(Functional)
Internal relay(R)
Message request(A)
Non-volatile
D Var. Timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB. The size of message is fixed 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 That is the maximum number when 2 I/O cards (with 156 inputs/120 outputs) are used.
5 As values indicated with an asterisk (*) in the table, former versions of the programming manual
and catalogs have listed the mean processing time of basic commands, but this manual lists
the execution time for one step. The actual ladder program execution performance (speed) of
each PMC has not been changed.
6 Application PMC for FANUC Series 16–MODEL B loader control function is PMC–SA1.
12
Page 47
B–61863E/15
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (6)
1. SEQUENCE PROGRAM
CREATING PROCEDURE
Model
Series 16–MODEL C/Series 18–MODEL C
PMC–SB5PMC–SC3PMC–SB6PMC–SC4
Programming method
language
Number of ladder level2323
Level-1 Cycle Time8 ms8 ms8 ms8 ms
Basic Instruction Execution Time0.1
Program capacity
D Ladder (step)(Note 1,3)
D Symbol/Comment (Note 2,3)
D Message(Note 3)
D Language only
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB. The size of message is fixed 2.1KB.
The maximum size of a symbol and that of a comment are 64KB each.
3 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
4 That is the maximum number when 2 I/O cards (with 156 inputs/120 outputs) are used.
5 Application PMC for FANUC Series 16–MODEL C loader control function is PMC–SA1.
14
Page 49
B–61863E/15
Model
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (7)
Model
Programming method
language
Number of ladder level22
1st level excution period8 ms8 ms
Mean processing time of basic command5.0
Program capacity
D Ladder (step)(Note 1,4)
D Symbol/Comment (Note 2,4)
(Note 4)
D Message
D Language only
Command Basic command
Functioncommand
Internal relay(R)
Message request(A)
Keepmemory
D Variable timer(T)
D Counter(C)
D Keep relay(K)
D Data table(D)
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 The size of a symbol and that of a comment are fixed 32KB.
The size of message is fixed 2.1KB. The maximum size of
a symbol and that of a comment are 64KB each.
3 When extended memory is not specified in the 4082 series
(ordering drawing No.: A02B–0210–H020 or
A02B–0210–H022), the program capacity is 64KB.
4 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
5 Output points of I/O card in 4082 or 4084 series are following;
PMC–SA1 : 64points, PMC–SA3 : 64points
6 As values indicated with an asterisk (*) in the table, former
versions of the programming manual and brochure have
listed the mean processing time of basic commands, but this
manual lists the execution time for one step. The actual
ladder program execution performance (speed) of each
PMC has not been changed.
7 Application PMC for FANUC Series 21–B loader control
function is PMC–SA1.
16
Page 51
B–61863E/15
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (8)
FANUC Series 16i/160i/18i/180i
1. SEQUENCE PROGRAM
CREATING PROCEDURE
ModelPMC–SA5
PMC–SB5PMC–SB6
(Loader control)
Programming methodLadderLadder Ladder step sequence
Number of ladder levels222
First–level execution period8 ms8 ms8 ms
Basic instruction processing time5.0 µ sec/step0.085 µ sec/step0.085 µ sec/step
Program capacity
About 3,000
About 5,000
About 8,000
About 12,000
About 16,000
About 24,000
1KB to 128KB
0.1KB to 64KB
25 bytes (200 points)
80 bytes (40 each)
80 bytes (20 each)
–
–
14
66
1618 bytes
20 bytes
3,000 bytes
512 each
9999 each
100 each
About 3,000
About 5,000
About 8,000
About 12,000
About 16,000
About 24,000
About 32,000
About 40,000
1KB to 128KB
0.1KB to 64KB
14
67
3200 bytes
125 bytes (1000 points)
300 bytes (150 each)
200 bytes (50 each)
50 bytes
8,000 bytes
2000 each
9999 each
100 each
I/O
D I/O link (Input)
(Note 4)
(Output)
Sequence program storage mediaFlash ROM
1024 points maximum
1024 points maximum
128KB
1024 points maximum
1024 points maximum
Flash ROM
128KB (16,000
steps option or less)
256KB (24,000
steps option or less)
2048 points maximum
(Note 5)
2048 points maximum
(Note 5)
Flash ROM
128KB (16,000
steps option or less)
256KB (24,000
steps option)
384KB (32,000/40,000
steps option)
17
Page 52
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 The PMC–SA1 can be used with the loader control function of the FANUC Series
16i/18i/21i/160i/180i/210i–A.
4 For I/O of the FANUC Series 16i/18i/21i/160i/180i/210i–A, only the I/O link is used.
5 1024 points maximum (channel 1)+1024 points maximum (channel 2)= 2048 points maximum.
You can use the I/O Link channel 2 only when CNC hardware support the I/O Link 2–channel
and optional I/O Link expansion is provided with CNC.
18
Page 53
1. SEQUENCE PROGRAM
B–61863E/15
Model
Programming methodLadderLadderLadder
Number of ladder levels2222
First–level execution period8 ms8 ms8 ms8 ms
Basic instruction
About 3,000
About 5,000
About 8,000
About 12,000
About 16,000
1KB to 128KB
0.1KB to 64KB
14
66
1118 bytes
25 bytes (200 points)
80 bytes (40 each)
80 bytes (20 each)
20 bytes
1860 bytes
512 each
9999 each
100 each
1024 points maximum
1024 points maximum
Flash ROM
128KB
About 3,000
About 5,000
About 8,000
About 12,000
About 16,000
About 24,000
About 32,000
About 40,000
1KB to 128KB
0.1KB to 64KB
125 bytes (1000 points)
300 bytes (150 each)
2048 points maximum
(Note 5)
2048 points maximum
(Note 5)
Flash ROM
128KB (16,000
steps option or less)
256KB (24,000
steps option)
384KB (32,000/40,000
steps option)
Ladder
Step sequence
14
67
200 bytes (50 each)
3200 bytes
50 bytes
8,000 bytes
2000 each
9999 each
100 each
19
Page 54
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
NOTE
1 This is the number of ladder steps for the program only with basic instructions. The use of
functional instructions may vary the number of ladder steps.
2 These have no limit of size for each. However , the total size of sequence program (the sum total
of ladder, symbols/comments, messages, etc.) never exceed the storage size of sequence
program. The size of them influences the capacity of others.
3 The PMC–SA1 can be used with the loader control function of the FANUC Series
16i/18i/21i/160i/180i/210i–A.
4 For I/O of the FANUC Series 16i/18i/21i/160i/180i/210i–A, only the I/O link is used.
5 1024 points maximum (channel 1)+1024 points maximum (channel 2)= 2048 points maximum.
You can use the I/O Link channel 2 only when CNC hardware support the I/O Link 2–channel
and optional I/O Link expansion is provided with CNC.
20
Page 55
B–61863E/15
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (10)
FUNAC Power Mate i–MODEL D/H
Model
Programming methodLadderLadder step sequence
Number of ladder levels22
Level–1 cycle time8 ms8 ms
Basic instruction execution time0.085
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder, symbols/
comments, messages, etc.) never exceed the storage size
of sequence program. The size of them influences the
capacity of others.
21
Page 56
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
T able 1.1 PMC specifications (11)
Series 15–MODEL B
Model
PMC–NB
PMC–NB2
(4048 Series)
Programming method languageLadder
Number of ladder level33
Level–1 Cycle Time8 ms8 ms
Basic instruction
S Var.Timer(T)
S Counter (C)
S Keep relay(K)
S Data table(D)
Subprogram(P)
Label(L)
Fixed timer
Input/output
S I/O link (I)
(O)
S I/O card(I)
(O)
Sequence program
storage media
C–language
0.1
(µs/step)
Approx. 8,000
Approx.16,000
Approx.24,000
1 to 128KB
0.1 to 64KB
max. 896KB
14 kinds
69 kinds
1618 bytes
25 bytes
80 bytes
80 bytes
20 bytes
3000 bytes
512 programs
9999 labels
Max 100 timers
specified by
timer No.
max 1024 points.
max 1024 points.
–
–
Flash ROM
64 KB (8,000
steps)
128 KB (16,000
steps)
256 KB (24,000
steps)
512 KB (24,000
steps)
1 MB (24,000
steps)
Ladder
C–language
Step sequence
0.1
(µs/step)
Approx. 8,000
Approx.16,000
Approx.24,000
1 to 128KB
0.1 to 64KB
max. 896KB
14 kinds
69 kinds
3200 bytes
125 bytes
300 bytes
200 bytes
50 bytes
8000 bytes
2000 programs
9999 labels
Max 100 timers
specified by
timer No.
max 1024 points.
max 1024 points.
–
–
Flash ROM
64 KB (8,000
steps)
128 KB (16,000
steps)
256 KB (24,000
steps)
512 KB (24,000
steps)
1 MB (24,000
steps)
22
Page 57
B–61863E/15
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
CREATING PROCEDURE
NOTE
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder, symbols/
comments, messages, etc.) never exceed the storage size
of sequence program. The size of them influences the
capacity of others.
3 Please refer to (4) for PMC–NB(4047 Series).
The above–mentioned table is a value for PMC–NB/NB2
(4048 Series).
23
Page 58
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (12)
B–61863E/15
Model
FANUC Series 15i
PMC–NB6
Programming method
Ladder
C–language
Number of ladder levels3
First–level execution period8 ms
Basic instruction processing time0.085 µ sec/step
Program capacity
1 This is the number of ladder steps for the program only with
basic instructions. The use of functional instructions may
vary the number of ladder steps.
2 These have no limit of size for each. However, the total size
of sequence program (the sum total of ladder,
symbols/comments, messages, etc.) never exceed the
storage size of sequence program. The size of them
influences the capacity of others.
3 The one and only I/O of the FANUC Series 15i is the I/O
Link.
24
Page 59
B–61863E/15
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
T able 1.1 PMC specifications (13)
Series 21i–BSeries 16i/18i/21i–B
CREATING PROCEDURE
ModelPMC–SA1PMC–SA1
PMC–SB7
(Loader control)
Programming methodLadderLadderLadder
Number of ladder levels223
First–level execution period8 ms8 ms8 ms
Basic instruction processing time5.0 µ sec/step5.0 µ sec/step0.033 µ sec/step
Program capacity
S Ladder (step)(Note 1,2)
S Symbol & comment (Note 2)
S Message(Note 2)
Instruction(Basic instruction)
(Functional instruction)
Internal Relay(R)
Extra Relay(E)
Message Request(A)
Nonvolatile Memory
S Data Tables(D)
S Variable Timers(T)
S Fixed Timers
S Counters (C)
Fixed Counters (C)
S Keep Relays (K)
Subprograms (P)
Labels (L)
I/O I/O link
S Input
S Output
Sequence program storage mediaFlash ROM
About 3,000
About 5,000
1 to 128KB
0.1 to 64KB
12
48
–
200 points (25 byte)
40 points (80 byte)
20 points (80 byte)
–
–
–
1024 points maximum
1024 points maximum
128KB
1100 bytes
1,860 byte
100 points
20 byte
About 3,000
About 5,000
About 8,000
About 12,000
1 to 128KB
0.1 to 64KB
12
48
–
200 points (25 byte)
40 points (80 byte)
20 points (80 byte)
–
–
–
1024 points maximum
1024 points maximum
Flash ROM
128KB
About 3,000
About 5,000
About 8,000
About 12,000
About 16,000
About 24,000
About 32,000
About 40,000
About 48,000
About 64,000
1KB or more
8KB or more
1,100 byte
1,860 byte
100 points
20 byte
2048 points maximum (Note 3)
2048 points maximum (Note 3)
COME (SUB29) specificationProvided
Coil count specification
JMPE (SUB30) specificationProvided
Not providedProvidedNot providedProvided
Not provided (Note 4)Provided
UnusableUsableUnusableUsable
Not provided (Note 6)Provided
Not provided (Note 6)Provided
Provided (Note 7)Provided
Not provided
Not provided
Not provided
Not provided
Not provided
Provided
Provided
Provided
Provided
Provided
Compatible (Note 8)
Compatible
Incompatible (Note 2)
Compatible (Note 3)
Not provided
(Note 4)
Compatible
Not provided
(Note 6)
Not provided
(Note 6)
Not provided
Not provided
Not provided
Not provided
Not provided
Provided
Provided
Provided
Provided
Provided
Not
provided
Provided
Un-
usable
Provided
Provided
Not
provided
Not
provided
Not
provided
Not
provided
Not
provided
Provided
provided
provided
(Note 6)
provided
(Note 6)
Provided
Provided
Provided
Provided
Provided
PMC–
SC3/
SC4
Not
Usable
Not
Not
30
Page 65
B–61863E/15
1. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
CREATING PROCEDURE
NOTE
1 The internal relay and the data table in nonvolatile memory
for the PMC-SB3, SC, SC3 are extended, compared with
those for other models.
2 The same ROM cannot be shared by different models. The
ROM must be rewritten using the offline programmer.
However, the ROM for the PMC–SA2 can be used for the
PMC–SA3 and the ROM for the PMC–SB2 can be used for
the PMC–SB3.
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–SA1/SA2/SA3), only the MMC–III can
be used. For the FS18B, the MMC–III and MMC–IV can be
used.
For the FS21B (PMC–SA1/SA3), the MMC–IV can be used.
For the FS16i/18i/21i, the MMC–IV can be used.
For the FS16C/18C, the MMC–IV can be used.
8 In the PMC–SB4, SB6, and SC4, interface extension is
made. The extended portion of the interface is not
compatible with other PMCs.
31
Page 66
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
T able 1.2 Summary of specification of ladder program (3)
B–61863E/15
Model
Series
PMC address Interfaces between the PMC and CNC (F and G)
1 Compatibility is not maintained for the interface unique to
the Series 15i.
2 The PMC–NB6 of the Series 15i is highly compatible with
the PMC–NB2 of the Series 15–B. The PMC–NB2 and
PMC–NB6 differ from each other in:
(1) Execution time–dependent ladder
As instruction execution becomes faster, the following
changes may occur in the execution timing:
S Change in the execution cycle of the second ladder
level
S Change in timing for the second–level split and
first–level execution
S Change in timing for ladder execution and I/O transfer
(2) Window functions
The functional instructions that can be used vary
between the PMC–NB2 and PMC–NB6. See Chapter 5,
”PMC Functional Instructions” in Part I, ”PMC Sequence
Program.”
(3) Screen manipulation
The operating procedure for the PMC screen for the
PMC–NB6 of the 15i varies slightly from that for the
PMC–NB2 of the 15–B.
See Chapter 7, ”PMC–NB6 Screen Manipulation,” in
Part II, ”PMC Manipulation.”
(4) Step sequence
For the PMC–NB6, the step sequence is optional.
3 The C option is necessary.
33
Page 68
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
T able 1.2 Ladder Compatibility (5)
B–61863E/15
Model
PMC address PMC–CNC interface (F, G)F0 to F255
PMC–machine interface (X, Y)X0 to X127
Area used by management software (K)K17 to K19Changed to
Basic instructionCompatible
Function
instruction
END3
CTRB
MOVD
DISPYesNo
SA5SB5SB6SB7
16i/18i/21i–A16i/18i/21i–B
G0 to G255
Y0 to Y127
NoYes
Expanded to F0
to F51 1 and G0
X200 to X327
Y327 are added.
K900 to K909
The above table lists the differences to be noted on upward conversion to
the PMC–SB5, PMC–SB6, or PMC–SB7. Simple conversion in the
reverse direction cannot be performed generally because functions such
as the PMC address ranges are limited.
to G511
and Y200 to
Expanded to F0
to F767 and G0
to G767
Compatible
Expanded to
K900 to K919
(additional)
34
Page 69
1. SEQUENCE PROGRAM
B–61863E/15
PMC SEQUENCE PROGRAM
CREATING PROCEDURE
CAUTION
1 The above table does not contain simple addition of reserved areas for PMC addresses that
are not used by the ladder.
2 Execution time–dependent ladder
As instruction execution becomes faster, the following changes may occur in the execution
timing:
S Change in the execution cycle of the second ladder level
S Change in timing for the second–level split and first–level execution
S Change in timing for ladder execution and I/O transfer
A ladder which can be operated on the 16i/18i/21i–A must also be checked for operation on
the 16i/18i/21i–B system.
3 Changes in memory capacities required for a sequence program (PMC–SB7)
As described in Section 2.8, the memory capacities required for the system and
symbol/comment data have been changed. As a result, the capacity of flash ROM is increased
as compared with the PMC–SA5/SB5/SB6, even for the same source program. If a created
sequence program exceeds the capacity of flash ROM, add the step count option or delete
unnecessary symbols and comments.
4 Screen display and operation
The PMC–SB7 has much the same screen display/operation system as the
PMC–SA5/SB5/SB6. Some operations for the PMC–SA5/SB5/SB6 have been modified to
improve operability and functionality, however . The same goes for the PMC–SA1. For details,
see Chapter 1, ”SCREEN OPERATION FOR PMC–SA1/SB7” in Part V.
5 PMC parameter input/output (PMC–SB7)
With increase in size of a PMC parameter (T, C, K, and D areas), the data format used for
inputting PMC parameters from a memory card or floppy disk (FANUC Handy File) or outputting
them to it on the PMC I/O screen has been extended.
S PMC parameters output by the PMC–SA5/SB5/SB6 can be read by the PMC–SB7.
S PMC parameters output by the PMC–SB7 cannot be read by the PMC–SA5/SB5/SB6.
An extension relay (E area) has been added as a PMC address. A PMC parameter input or
output by the PMC–SB7 contains the E area. If a PMC parameter output by the PMC–SB7 is
read, the E area is initialized to the status when the PMC parameter is output.
35
Page 70
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
1.3
WHAT IS A
SEQUENCE
PROGRAM?
This is paragraph outlines functions of a sequence program before
explaining the programming work.
A sequence program is a program for sequence control of machine tools
and other systems.
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.
36
Page 71
B–61863E/15
AB DW
X0.0 R10.1
C
X6.1
Controlled system, such as machine
tools and other systems
R20.3
Y0.0
Sequence
program input
PMC SEQUENCE PROGRAM
PMC (Programmable Machine Controller)
Sequence program memory
RD X0.0
AND R10.1
OR X6.1
AND.NOT R20.3
WRT Y0.0
Input circuit
X0.0
X6.1
1. SEQUENCE PROGRAM
CREATING PROCEDURE
CPU
Output circuit
Y0.0
Internal relay (RAM)
R10.1
R20.3
Fig. 1.3 Execution of sequence program by PMC
37
Page 72
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
1.4
CREATION OF
INTERFACE
SPECIFICATIONS
(STEPS 1 TO 3)
1.5
CREA TION OF
LADDER DIAGRAM
(STEP 4)
After deciding the control object specifications and calculating the
number of input/output signal points, create the interface specifications.
Use the input/output signal interface tables in the CONNECTION
MANUAL for the creation of the interface specifications. Enter the signal
names (within six characters) in the input/output signal interface table
according to the type of the connected signals. For the input/output
signals, see CONNECTION MANUAL.
Express the control operations decided by step 2 by use of the ladder
diagram (relay circuit diagram). For the functions of the timer, counter,
etc. which cannot be expressed with the relay symbols (i.e. the functional
instructions), express them with the symbols assigned to the functional
instructions.
In the offline programmer and built-in editing function, the sequence
program can be entered in the ladder diagram format from the keys of the
CRT/MDI panel or from the keys of the keyboard of the SYSTEM P
series.
Also, the entered sequence program can be output to the printer in the
ladder diagram format using the SYSTEM P series.
Therefore, entry can be performed while the ladder diagram is created on
the CRT screen at the time of sequence program entry. Thus no ladder
diagram may be prepared in advance.
However , in order to shorten the time occupied by the equipment for the
creation of the sequence program or to efficiently create the sequence
program, it is recommended to prepare the ladder diagram in advance.
The ladder diagram is used as a maintenance diagram by the personnel in
charge of maintenance in FANUC, the machine tool builder and end user
in the world. Therefore, the ladder diagram must be easy to understand.
Signal names (max. six characters) can be entered to the input/output
signals, comments (max. 30 characters) can be entered to the relay coil,
and comments (max. 30 characters) can be entered to the input/output
signals of the address tables at the time of entry of the sequence program.
Be sure to enter understandable signal names and comments as much as
possible.
In the coding, the contents of control expressed in the ladder diagram are
converted into PMC instructions. In the case of using the offline
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.
MF
F 7.0
MFIN
R211.7
SF
F 7.2
SFIN
R211.5
TF
F 7.3
TFIN
R211.6
Address number,
bit number
FIN
Miscellaneous
function
finish signal
G4.3
Remark
Fig. 1.6
39
Page 74
1. SEQUENCE PROGRAM
CREATING PROCEDURE
PMC SEQUENCE PROGRAM
B–61863E/15
1.7
SEQUENCE
PROGRAM ENTR Y
(STEPS 6, 7)
The sequence program can be entered in five ways as follows:
(1) Entry with CRT/MDI keys
The sequence program is entered in the ladder diagram format by
pressing the keys of the CRT/MDI.
(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
SEQUENCE
PROGRAM CHECK
AND WRITE INTO
ROM (STEPS 8 TO 11)
Check the sequence program and write it into the ROM after check is over .
The sequence program can be checked in two ways.
(1) Check by simulator
Instead of the machine, connect a simulator (consisting of lamps and
switches). Instead of using input signals from the machine, enter
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 W riter 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.
40
Page 75
B–61863E/15
PMC SEQUENCE PROGRAM
1. SEQUENCE PROGRAM
CREATING PROCEDURE
1.9
STORAGE AND
CONTROL OF
SEQUENCE
PROGRAM
(STEPS 12 TO 14)
(1) Storage and control of sequence program
After debugging, the sequence program should be stored and
controlled by the machine tool builder. It can be stored in the
following ways:
(a) Storing in ROM
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 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.
41
Page 76
2. SEQUENCE PROGRAM
SEQUENCE PROGRAM
2
PMC 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.
B–61863E/15
42
Page 77
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.1
EXECUTION
PROCEDURE OF
SEQUENCE
PROGRAM
In a general relay sequence circuit, each relay operates at approximately
the same time. In the figure below for example, when relay A operates,
the relay D and E operate at approximately the same time. (When both
contacts B and C are off.) In PMC sequence control, each relay of the
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
can be written as a ladder diagram. (programmed sequence)
AB
D
AC
E
Fig. 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)
AC
B
A
C
(A)
(P.B)
A
C
AC
B
(B)
Fig. 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.
43
Page 78
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
B–61863E/15
2.2
REPETITIVE
OPERATION
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
sequence program ends, the program starts over from the beginning. This
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.
44
Page 79
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.3
PRIORITY OF
EXECUTION
(1ST LEVEL, 2ND
LEVEL AND 3RD
LEVEL)
A sequence program consists of three parts: 1st level sequence, 2nd level
sequence and 3rd level sequence. The 3rd level sequence part is added
to the models usable the 3rd level sequence. (see Fig. 2.3 (a)).
Sequence program
1st level sequence part
2nd level sequence part
3rd level sequence part
Fig. 2.3 (a) Construction of sequence program
SUB 1
SUB 2
SUB 48
(Only the models usable the 3rd level sequence)
Specifies the end of the 3rd level sequence part.
Specifies the end of the
1st level sequence part.
Division 1
Division 2
Division n
Specifies the end of the
2nd level sequence part.
The 1st level sequence part operates every 8 ms (high–speed sequential
operation).
If the 1st level sequence part is long, the total operating time, including
the 2nd level sequence part, is extended. Therefore the 1st level sequence
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.
(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–SA1, –SA2, –SB and –SB2, 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–SC, 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.
45
Page 80
2. SEQUENCE PROGRAM
8ms8ms8ms
1st level
1.25ms1.25ms1.25ms
PMC SEQUENCE PROGRAM
B–61863E/15
2nd level
NC processing
Fig. 2.3 (b) Sequence in which the Sequence Program Is Executed (PMC–SA1, –SA2, –SB and –SB2)
8ms8ms8ms
1st level
2nd level
3rd level, program execution,
and displaying the PMC screen
Fig. 2.3 (c) Sequence in which the Sequence Program Is Executed (PMC–SC)
5ms5ms5ms
Division 1Division 1Division nDivision 2
Division 1Division 1Division nDivision 2
(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.
Since the sequence using many functional instructions requires a lot
of processing time, the undivided system should be specified so that
the PMC is used more effectively (see Fig. 2.3 (e)).
To operate the PMC in the undivided system, set system parameter
IGNORE DIVIDE CODE to YES.
The PMC model usable only the undivided system, does not have
setting system parameter IGNORE DIVIDE CODE. It is always
46
Page 81
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
operated under the undivided system.
A
B
C
The ladder program is divided if all functional instructions are
executed regardless of execution of an actual ladder program.
Fig. 2.3 (d) Divisions in the divided system
A
B
C
Functional
instruction
Functional
instruction
Functional
instruction
Functional
instruction
Functional
instruction
Functional
instruction
Execution of an actual ladder program when A = 0, B = 1, and C = 0.
Fig. 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 B2Ladder B1Ladder B3
(Ladder common to all machines)
(Selected by a PMC parameter)
(Ladders dedicated
to each machine)
47
Fig. 2.3 (f)
Page 82
2. SEQUENCE PROGRAM
1st level sequence part
2nd level sequence part
3rd level sequence part
(Only about the PMC
model usable the 3rd
level sequence)
PMC SEQUENCE PROGRAM
B–61863E/15
(5) Construction of sequence program in the case of using Sub–program.
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
FUNC
Job B
D
D
D
DDD
DDD
f
f
(2) Nesting
Ladder subprograms created in (1) above are combined to structure
a ladder sequence.
Main ProgramSub Program1 Sub Program2
Job AJob A1Job A11
D
Job An
D
D
Job A12
Job B
49
Page 84
2. SEQUENCE PROGRAM
Main ProgramSub Program1
PMC SEQUENCE PROGRAM
B–61863E/15
(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.
STATE1PROCESS1
STATE2PROCESS2
D
D
D
For details, see Chapter 9.
PROCESS11
PROCESS12
PROCESS13
PROCESS11
50
Page 85
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.5
PROCESSING I/O
SIGNALS
CNC
Input memory of CNC
Input signals from
CNC
Transmitted at the
start of 2nd level
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.
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.
PMC
Sequence program
1st level
sequence part
2nd level synchronous
input signal memory
Transmitted every 8 ms
Output memory of CNC
Output signals to
CNC
MT
Output signals to
machine tool
Input signals from
machine tool
Transmitted
every 2 ms
Input signals from
CNC
Input signals from
machine tool
Output signalmemory
Output signals to the
machine
Input signal memory
Input signals from
machine
2nd level
sequence part
3rd level
sequence part
Fig. 2.5 PMC I/O signals
51
Page 86
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
B–61863E/15
2.5.1
Input Signal
Processing
(1) Input memory of CNC
The input signals from CNC are loaded in memory of CNC and are
transferred to the PMC at intervals of 8 ms.
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
Output Signal
Processing
(1) CNC output memory
The output signals are transferred from the PMC to the CNC output
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.
52
Page 87
B–61863E/15
2. SEQUENCE PROGRAMPMC 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
I/O Signals to CNC
Signals input from the CNC are transferred to the PMC at intervals of 8
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
TF
END 1
W1
W2
If after TF=0 is load, signal state changes to TF=1,
state of W1=1 and W2=1 may momentary occur
Fig. 2.5.3 (a)
TF
TFM
TFM
END 1
Make signal TF synchronized one, and state of
W1=1 and W2=1 may not occur.
Fig. 2.5.3 (b)
TFM
W1
W2
53
Page 88
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
B–61863E/15
2.5.4
Difference of Status of
Signals between 1st
Level and 2nd Level
The status of the same input signal may be different in the 1st level and
2nd level sequences. That is, at 1st level, processing is performed using
input signal memory and at 2nd level, processing is performed using the
2nd level synchronous input signal memory . Therefore, it is possible for
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
BOFF
COF
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).
1st Level
2nd Level
A.MB
W1
END 1
A.MC
W2
Fig. 2.5.4 (a)Fig. 2.5.4 (b)
A.MB
W1C
W1
END 1
W2
54
Page 89
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.5.5
Notes on Input/Output
Signals Over a Network
Input/output signals (assignment to the R, D, and E addresses) over a
network (such as the Ethernet, I/O Link–II, PROFIBUS, DEVICENET,
and FL–NET) are updated asynchronously with the execution of the PMC
sequence program. Therefore, when using the signals updated over a
network in the PMC sequence program, keep the following in mind.
(1)Notes on an input signal
When an input signal over a network is referenced at multiple points
in the PMC sequence program, there are not guarantees that the same
value can be referenced even in the same cycle in the sequence
program.
T o guarantee that the same value can be referenced as an input signal
in the same cycle in the sequence program, save the status of the input
signal in the internal relay or the like.
(2)Notes on an output signal
An output signal over a network may be forwarded to a slave unit
during the operating cycle of the PMC sequence program. Be careful
when multiple signals are referenced on the slave unit side.
(3)Notes on multibyte data
The data concurrency (indicating that data is not broken) of multibyte
data input or output over a network is not guaranteed.
To ensure the data concurrency, the sequence processing performed
during data input and output must not cause data to be broken.
55
Page 90
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
B–61863E/15
2.6
INTERLOCKING
Interlocking is externally important in sequence control safety.
Interlocking with the sequence program is necessary. However,
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.
56
Page 91
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.7
SEQUENCE
PROGRAM
PROCESSING TIME
The exact sequence processing time is displayed on the CR T screen when
the sequence programs have been completed. The time is 2nd level
sequence division number n x 8 ms.
This section explains how to estimate processing times that are important
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
n=
(ET)µsec – (HT)µsec
(LT) µsec
+1
(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–SB
(ET) = 1.25 ms = 1250µs
For PMC–SC (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
57
Page 92
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
(3) Processing time calculation example (for PMC–SB)
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
B–61863E/15
(c) Determination of the number of divisions (n)
3004.5 µsec
n=
1250µsec – 474 µsec
+1 = 4.87
(d) Processing time calculation
Sequence processing time=4 (number of division) 8 msec=32
msec
NOTE
For the PMC–SB/SC, see the execution time constant of
each function instruction in T able 5 (b) in Section I–5, ”PMC
FUNCTION INSTRUCTIONS.”
58
Page 93
B–61863E/15
2. SEQUENCE PROGRAMPMC SEQUENCE PROGRAM
2.8
SEQUENCE
PROGRAM MEMOR Y
CAPACITY
The following tables list memory capacities required for a sequence
program. Create a sequence program so that the total capacity of these
items does not exceed the sequence program memory capacity.
T able 2.8 (a) PMC–SB7
Type
Ladder (Note 2)
Symbol/comment
(Note 2)
Message (Note 2)One half–width alphanumeric character in
OthersSystem used areaAbout 15K bytes
Basic instruction4 bytes
Functional instruction4 bytes
Functional instruction parameter4 bytes
One symbol or comment24 bytes
One half–width character in a comment1 byte (Note 3)
a message
Item
T able 2.8 (b) PMC–SB4/SB6/SC4/NB2/NB6
Memory capacity
(Note 1)
1 byte (Note 4)
Type
Ladder (Note 2)
Symbol/comment
(Note 2)
Message (Note 2)One half–width alphanumeric character in
OthersSystem used areaAbout 4K bytes
Basic instruction4 bytes
Functional instruction4 bytes
Functional instruction parameter4 bytes
One symbol or comment12 bytes
One half–width character in a comment1 byte
a message
Item
Memory capacity
(Note 1)
1 byte (Note 4)
T able 2.8 (c) PMC–SB6 (I/O links expanded)
Type
Ladder (Note 2)
Symbol/comment
(Note 2)
Item
Basic instruction4 bytes
Functional instruction4 bytes
Functional instruction parameter4 bytes
One symbol or comment12 bytes
One half–width character in a comment1 byte
Memory capacity
(Note 1)
Message (Note 2)One half–width alphanumeric character in
a message
OthersSystem used areaAbout 9.5K bytes
1 byte (Note 4)
59
Page 94
2. SEQUENCE PROGRAM
PMC SEQUENCE PROGRAM
T able 2.8 (d) PMC–SA1/SA3/SA5/SB/SB2/SB3/SB5/SC/SC3/PA1/PA3/NB
B–61863E/15
Type
Ladder (Note 2)
Symbol/comment
(Note 2)
Message (Note 2)One half–width alphanumeric character in
OthersSystem used areaAbout 2K bytes
Basic instruction4 bytes
Functional instruction4 bytes
Functional instruction parameter4 bytes
One symbol or comment10 bytes
One half–width character in a comment1 byte
a message
Item
Memory capacity
(Note 1)
1 byte (Note 4)
NOTE
1 The total capacity of a sequence program (including all
items such as ladder, symbols/comments, and messages)
cannot exceed the capacity of the sequence program
storage memory. If the ladder, symbol/comment, or
message area is large, the size of another area may be
limited.
2 The PMC programmer may adjust arrangement of the areas
in the sequence program memory to improve processing
efficiency. As a result, up to 1K (1024) bytes may be added
to the total capacity of each type of data.
3 A full–width character requires double the capacity.
4 For each of half–width katakana characters and special
characters, and full–width hiragana characters, kanji
characters, and special characters, a capacity of 1 byte is
required per digit of the notation (including characters
preceding and following the character such as @) by
character code input. For details of notation by character
code input, refer to the paragraph describing DISPB in
Chapter 5, “FUNCTIONAL INSTRUCTIONS.”
60
Page 95
B–61863E/15
3
ADDRESS
PMC SEQUENCE PROGRAM
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, IV and V.
(1) Addresses related to PMC
Four types of addresses as shown in Fig. 3 are necessary for creation
of the PMC sequence program.
3. ADDRESS
Internal relay
Note)
(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.
CNC
signal
Fig. 3 Addresses related to PMC
PMC
Nonvolatile memory
(1) Counter
(2) Keep relay
(3) Data table
(4) Variable Timer
Machine
(MT)
signal
(2) Address regulations
The address comprises the address number and the bit number in the
format as shown below.
61
Page 96
3. ADDRESS
PMC SEQUENCE PROGRAM
B–61863E/15
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. When
specifying the address in the byte unit by the functional instruction,
specify X127. In this case, “.” and the bit number are not necessary.
T able 3 Alphabetic characters in address numbers (1)
Model
CharacterSignal descriptionPower Mate - DPower Mate- FPower Mate- H
PMC PA1PMC- PA3PMC- PA3PMC- PA3
XSignal from the machine to the
PMC (MT to PMC)
YSignal from the PMC to the
machine (PMC to MT)
(Caution 3)
FSignal from the NC to the PMC
(NC to PMC)
GSignal from the PMC to the NC
(PMC to NC)
RInternal relay (Caution 1)R0 to R999
AMessage request signalA0 to A24A0 to A24A0 to A24
CCounterC0 to C79C0 to C79C0 to C79
KKeep relay (Caution 2)K0 to K19K0 to K19K0 to K19
TVariable timerT0 to T79T0 to T79T0 to T79
DData tableD0 to D1859D0 to D1859D0 to D1859
LLabel Number–L1 to L9999L1 to L9999L1 to L9999
PSubprogram Number–P1 to P512P1 to P512P1 to P512
X0 to X127
(I/O Link Master)
X1000 to X1003
(Built–in l/O Card)
X1020 to X1051
(I/O Link Slave)
Y0 to Y127
(I/O Link Master)
Y1000 to Y1002
(Built–in I/ O Card)
Y1020 to Y1051
(I/O Link Slave)
F0 to F255
F1000 to F1255
(Two–path control)
G0 to G255
G1000 to G1255
(Two–path control)
R9000 to
R9099
R0 to R999
R9000 to
R9117
X1000 to X1005
X1020 to X1027
(Slave)
Y1000 to Y1003
Y1020 to Y1027
(Slave)
F0 to F255F0 to F255
G0 to G255G0 to G255
R0 to R999
R9000 to R9117
X0 to X127
X1000 to X1003
X1020 to X1051
Y0 to Y127
Y1000 to Y1002
Y1020 to Y1051
R0 to R999
R9000 to R9117
(I/O Link Master)
(Built–in I/O Card)
(I/O Link Slave)
(I/O Link Master)
(Built–in l/O Card)
(I/O Link Slave)
CAUTION
1 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
2 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
3 I/O Link Master function is not available in the Power
Mate–MODEL F.
You cannot use the address X0–127 and Y0–127.
62
Page 97
B–61863E/15
PMC SEQUENCE PROGRAM
T able 3 Alphabetic characters in address numbers (2)
Model
CharacterSignal descriptionFS20AFS18A
PMC-SA1PMC-SA3PMC-SA1PMC-SA2PMC-SA3
XSignal from the machine to the
PMC (MT to PMC)
YSsignal from the PMC to the
machine (PMC to MT)
FSignal from the NC to the PMC
(NC to PMC)
GSignal from the PMC to the NC
(PMC to NC)
RInternal relay (Caution 2)R0 to R999
AMessage request signalA0 to A24A0 to A24
CCounterC0 to C79C0 to C79
KKeep relay (Caution 3)K0 to K19K0 to K19
DData tableD0 to D1859D0 to D1859
TVariable timerT0 to T79T0 to T79
LLabel number–L1 to L9999–L1 to L9999
PSubprogram number–P1 to P512–P1 to P512
X0 to X127
X1000 to X1013 (Caution 1)
Y0 to Y127
Y1000 to Y1013 (Caution 1)
F0 to F255
F1000 to F125
G0 to G255
G1000 to G1255
R0 to R999
R9000 to R9099
R9000 to R9117
R0 to R999
R9000 to R9099
X0 to X127
X1000 to X1019
Y0 to Y127
Y1000 to Y1014
F0 to F255
F1000 to F1255
G0 to G255
G1000 to G1255
R0 to R999
R9000 to R9117
3. ADDRESS
CAUTION
1 X1000 to X1007 and Y1000 to Y1007 are configured as a
matrix.
2 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
3 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
63
Page 98
3. ADDRESS
Chara–
PMC SEQUENCE PROGRAM
T able 3 Alphabetic characters in address numbers (3)
B–61863E/15
Chara–
cter
XSignal from the machine to the
YSignal from the PMC to the
FSignal from the NC to the PMC
GSignal from the PMC to the NC
RInternal relay (Caution 1)R0 to R999
AMessage request signalA0 to A24
CCounterC0 to C79
KKeep relay (Caution 2)K0 to K19
DData tableD0 to D1859D0 to D2999
TVariable timerT0 to T79
LLabel number––L1 to L9999–L1 to L9999
PSubprogram number––P1 to P512–P1 to P512
Signal description
PMC (MT to PMC)
machine (PMC to MT)
(NC to PMC)
(PMC to NC)
PMC-SBPMC-SB2 PMC-SB3PMC-SCPMC-SC3PMC-NB
R9000 to
R9099
R0 to R999
R9000 to
R9117
R0 to R1499
R9000 to
Model
X0 to X127
X1000 to X1039
Y0 to Y127
Y1000 to Y1029
F0 to F255
F1000 to F1255
G0 to G255
G1000 to G1255
R0 to R1499
R9000 to
R9117
R9099
R0 to R1499
R9000 to
R9117
CAUTION
1 R9000 to R9117 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
2 K17 to K19 are areas reserved for the PMC system
program; these areas cannot be used for output by a
sequence program.
X0 to X127
Y0 to Y127
F0 to F319
G0 to G511
R0 to R1499
R9000 to
R9117
64
Page 99
B–61863E/15
PMC SEQUENCE PROGRAM
T able 3 Alphabetic characters in address numbers (4)
Model
Character
Signal descrip-
tion
Series 16-MODEL B/Series 18-MODEL B
PMC-SB3PMC-SC3PMC-SB4PMC-SC4PMC-SA1
XSignal from the
machine to the PMC
(MT to PMC)
YSignal from the PMC
to the machine (PMC
to MT)
FSignal from the NC to
the PMC (NC to
PMC)
GSignal from the PMC
to the NC (PMC to
NC)
RInternal relayR0 to R1499
AMessage request
signal
CCounterC0 to C79C0 to C199C0 to C79
KKeep relayK0 to K19K0 to K39
TData tableT0 to T79T0 to T299T0 to T79
DVariable timerD0 to D2999D0 to D7999D0 to D1859
LLabel numberL1 to L9999L1 to L9999–
PSubprogram numberP1 to P512P1 to P2000–
F0 to F255
F1000 to F1255
G0 to G255
G1000 to G1255
R9000 to R9117
A0 to A24A0 to A124A0 to A24
X0 to X127
X1000 to X1019
X1020 to X1039
Y0 to Y127
Y1000 to Y1014
Y1020 to Y1034
F0 to F511
F1000 to F1511
F2000 to F2511
G0 to G511
G1000 to G1511
G2000 to G2511
R0 to R2999
R9000 to R9199
K900 to K909
3. ADDRESS
Series
18-MODEL B
F0 to F255
F1000 to F1255
G0 to G255
G1000 to G1255
R0 to R999
R9000 to R9099
K0 to K19
65
Page 100
3. ADDRESS
PMC SEQUENCE PROGRAM
T able 3 Alphabetic characters in address numbers (5)
Model
CharacterSignal descriptionSeries 16-MODEL C/Series 18-MODEL C
PMC-SB5PMC-SC3PMC-SB6PMC-SC4
XSignal from the machine to the PMC (MT to
PMC)
YSignal from the PMC to the machine (PMC
to MT)
FSignal from the NC to the PMC (NC to
PMC)
GSignal from the PMC to the NC (PMC to
NC)
RInternal relayR0 to R1499
AMessage request signalA0 to A24A0 to A124
CCounterC0 to C79C0 to C199
KKeep relayK0 to K19K0 to K39
TData tableT0 to T79T0 to T299
DVariable timerD0 to D2999D0 to D7999
LLabel numberL1 to L9999L1 to L9999
PSubprogram numberP1 to P512P1 to P2000
F0 to F255
F1000 to F1255
G0 to G255
G1000 to G1255
R9000 to R9117
X0 to X127
X1000 to X1019
X1020 to X1039
Y0 to Y127
Y1000 to Y1014
Y1020 to Y1034
F0 to F511
F1000 to F1511
F2000 to F2511
G0 to G511
G1000 to G1511
G2000 to G2511
R0 to R2999
R9000 to R9199
K900 to K909
B–61863E/15
66
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.