Professional Documents
Culture Documents
R-30+A CONTROLLER
Integrated PMC
OPERATOR'S MANUAL
B-82614EN/02
• Original Instructions
Before using the Robot, be sure to read the "FANUC Robot Safety Manual (B-80687EN)" and
understand the content.
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export from Japan may be subject to an export license by the
government of Japan.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual we have tried as much as possible to describe all the various matters.
However, we cannot describe all the matters which must not be done, or which cannot be
done, because there are so many possibilities.
Therefore, matters which are not especially described as possible in this manual should be
regarded as ”impossible”.
SAFETY
B-82614EN/02 SAFETY PRECAUTIONS
1 SAFETY PRECAUTIONS
For the safety of the operator and the system, follow all safety precautions when operating a robot and its
peripheral devices installed in a work cell.
In addition, refer to the “FANUC Robot SAFETY HANDBOOK (B-80687EN)”.
Operator:
• Turns robot controller power ON/OFF
• Starts robot program from operator’s panel
Maintenance engineer:
• Operates the robot
• Teaches robot inside the safety fence
• Maintenance (adjustment, replacement)
During the operation, programming, and maintenance of your robotic system, the programmer, teaching
operator, and maintenance engineer should take additional care of their safety by using the following safety
precautions.
(1) Have the robot system working persons attend the training courses held by FANUC.
FANUC provides various training courses. Contact our sales office for details.
s-3
SAFETY PRECAUTIONS B-82614EN/02
(2) Even when the robot is stationary, it is possible that the robot is still in a ready to move state, and is
waiting for a signal. In this state, the robot is regarded as still in motion. To ensure working person
safety, provide the system with an alarm to indicate visually or aurally that the robot is in motion.
(3) Install a safety fence with a gate so that no working person can enter the work area without passing
through the gate. Install an interlocking device, a safety plug, and so forth in the safety gate so that the
robot is stopped as the safety gate is opened.
The controller is designed to receive this interlocking signal of the door switch. When the gate is
opened and this signal received, the controller stops the robot (Please refer to "STOP TYPE OF
ROBOT" in SAFETY for detail of stop type). For connection, see Fig.1.2 (a) and Fig.1.2 (b).
(4) Provide the peripheral devices with appropriate grounding (Class A, Class B, Class C, and Class D).
(5) Try to install the peripheral devices outside the work area.
(6) Draw an outline on the floor, clearly indicating the range of the robot motion, including the tools such
as a hand.
(7) Install a mat switch or photoelectric switch on the floor with an interlock to a visual or aural alarm that
stops the robot when a working person enters the work area.
(8) If necessary, install a safety lock so that no one except the working person in charge can turn on the
power of the robot.
The circuit breaker installed in the controller is designed to disable anyone from turning it on
when it is locked with a padlock.
(9) When adjusting each peripheral device independently, be sure to turn off the power of the robot.
RP1
Pulsecoder
RI/RO,XHBK,XROT
RM1
Motor power/brake
EARTH
Safety fence
s-4
B-82614EN/02 SAFETY PRECAUTIONS
Dual chain
Panel board (Note)
FENCE2
(1) If you do not have to operate the robot, turn off the power of the robot controller or press the
EMERGENCY STOP button, and then proceed with necessary work.
(2) Operate the robot system at a location outside of the safety fence
(3) Install a safety fence with a safety gate to prevent any worker other than the operator from entering the
work area unexpectedly and to prevent the worker from entering a dangerous area.
(4) Install an EMERGENCY STOP button within the operator’s reach.
Dual chain
External stop button
Panel board
EES1
(Note)
EES11 Connect EES1and EES11,EES2 and EES21or EMGIN1and EMGIN2.
s-5
SAFETY PRECAUTIONS B-82614EN/02
(1) Unless it is specifically necessary to enter the robot work area, carry out all tasks outside the area.
(2) Before teaching the robot, check that the robot and its peripheral devices are all in the normal operating
condition.
(3) If it is inevitable to enter the robot work area to teach the robot, check the locations, settings, and other
conditions of the safety devices (such as the EMERGENCY STOP button, the DEADMAN switch on
the teach pendant) before entering the area.
(4) The programmer must be extremely careful not to let anyone else enter the robot work area.
Our operator panel is provided with an emergency stop button and a key switch (mode switch) for selecting the
automatic operation mode (AUTO) and the teach modes (T1 and T2). Before entering the inside of the safety fence
for the purpose of teaching, set the switch to a teach mode, remove the key from the mode switch to prevent other
people from changing the operation mode carelessly, then open the safety gate. If the safety gate is opened with the
automatic operation mode set, the robot stops (Please refer to "STOP TYPE OF ROBOT" in SAFETY for detail of
stop type). After the switch is set to a teach mode, the safety gate is disabled. The programmer should understand
that the safety gate is disabled and is responsible for keeping other people from entering the inside of the safety
fence. (In case of R-30iA Mate Controller standard specification, there is no mode switch. The automatic operation
mode and the teach mode is selected by teach pendant enable switch.)
Our teach pendant is provided with a DEADMAN switch as well as an emergency stop button. These button and
switch function as follows:
(1) Emergency stop button: Causes an emergency stop (Please refer to "STOP TYPE OF ROBOT" in SAFETY for
detail of stop type) when pressed.
(2) DEADMAN switch: Functions differently depending on the mode switch setting status.
(a) Automatic operation mode: The DEADMAN switch is disabled.
(b) Teach mode: Servo power is turned off when the operator releases the DEADMAN switch or when the
operator presses the switch strongly.
Note) The DEADMAN switch is provided to stop the robot when the operator releases the teach pendant or
presses the pendant strongly in case of emergency. The R-30iA/ R-30iA Mate employs a 3-position
DEADMAN switch, which allows the robot to operate when the 3-position DEADMAN switch is pressed to
its intermediate point. When the operator releases the DEADMAN switch or presses the switch strongly,
the robot stops immediately.
The operator’s intention of starting teaching is determined by the controller through the dual operation of setting the
teach pendant enable/disable switch to the enable position and pressing the DEADMAN switch. The operator should
make sure that the robot could operate in such conditions and be responsible in carrying out tasks safely.
The teach pendant, operator panel, and peripheral device interface send each robot start signal. However the validity
of each signal changes as follows depending on the mode switch and the DEADMAN switch of the operator panel, the
teach pendant enable switch and the remote condition on the software.
s-6
B-82614EN/02 SAFETY PRECAUTIONS
Software
Teach pendant
Mode remote Teach pendant Operator panel Peripheral device
enable switch
condition
Local Allowed to start Not allowed Not allowed
On
T1, T2 Remote Allowed to start Not allowed Not allowed
mode Local Not allowed Not allowed Not allowed
Off
Remote Not allowed Not allowed Not allowed
(5) (Only when R-30iA Controller or CE or RIA specification of R-30iA Mate controller is selected.) To
start the system using the operator’s panel, make certain that nobody is the robot work area and that
there are no abnormal conditions in the robot work area.
(6) When a program is completed, be sure to carry out a test run according to the procedure below.
(a) Run the program for at least one operation cycle in the single step mode at low speed.
(b) Run the program for at least one operation cycle in the continuous operation mode at low speed.
(c) Run the program for one operation cycle in the continuous operation mode at the intermediate
speed and check that no abnormalities occur due to a delay in timing.
(d) Run the program for one operation cycle in the continuous operation mode at the normal
operating speed and check that the system operates automatically without trouble.
(e) After checking the completeness of the program through the test run above, execute it in the
automatic operation mode.
(7) While operating the system in the automatic operation mode, the teach pendant operator should leave
the robot work area.
s-7
SAFETY PRECAUTIONS B-82614EN/02
(11) When handling each unit or printed circuit board in the controller during inspection, turn off the circuit
breaker to protect against electric shock.
If there are two cabinets, turn off the both circuit breaker.
(12) When replacing parts, be sure to use those specified by FANUC.
In particular, never use fuses or other parts of non-specified ratings. They may cause a fire or result in
damage to the components in the controller.
(13) When restarting the robot system after completing maintenance work, make sure in advance that there
is no person in the work area and that the robot and the peripheral devices are not abnormal.
s-9
SAFETY PRECAUTIONS B-82614EN/02
WARNING
The stopping distance and stopping time of Controlled stop are longer than the
stopping distance and stopping time of Power-Off stop. A risk assessment for the
whole robot system, which takes into consideration the increased stopping
distance and stopping time, is necessary when Controlled stop is used.
When the E-Stop button is pressed or the FENCE is open, the stop type of robot is Power-Off stop or
Controlled stop. The configuration of stop type for each situation is called stop pattern. The stop pattern is
different according to the controller type or option configuration.
The following table indicates the Stop pattern according to the controller type or option configuration.
The stop pattern of the controller is displayed in "Stop pattern" line in software version screen. Please refer
"Software version" in operator's manual of controller for the detail of software version screen.
s - 10
B-82614EN/02 SAFETY PRECAUTIONS
Alarm Condition
SRVO-001 Operator panel E-stop Operator panel E-stop is pressed.
SRVO-002 Teach pendant E-stop Teach pendant E-stop is pressed.
SRVO-007 External emergency stops External emergency stop input (EES1-EES11, EES2-EES21) is
open. (R-30iA controller)
SRVO-194 Servo disconnect Servo disconnect input (SD4-SD41, SD5-SD51) is open.
(R-30iA controller)
SRVO-218 Ext.E-stop/Servo Disconnect External emergency stop input (EES1-EES11, EES2-EES21) is
open. (R-30iA Mate controller)
SRVO-408 DCS SSO Ext Emergency Stop In DCS Safe I/O connect function, SSO[3] is OFF.
SRVO-409 DCS SSO Servo Disconnect In DCS Safe I/O connect function, SSO[4] is OFF.
The stop type of DCS Position and Speed Check functions is not affected by the loading of this option.
WARNING
The stopping distance and stopping time of Controlled stop are longer than the
stopping distance and stopping time of Power-Off stop. A risk assessment for the
whole robot system, which takes into consideration the increased stopping
distance and stopping time, is necessary when this option is loaded.
s - 11
B-82614EN/02 TABLE OF CONTENTS
TABLE OF CONTENTS
SAFETY.......................................................................................................s-1
1 INTEGRATED PMC OVERVIEW ............................................................ 1
1.1 INTEGRATED PMC SPECIFICATIONS ........................................................ 1
1.2 PMC Program ................................................................................................ 2
1.3 BASIC COMMANDS...................................................................................... 3
1.4 Function Command ....................................................................................... 4
1.5 PMC ADDRESSES........................................................................................ 6
1.5.1 Symbols and Comments ...........................................................................................7
1.5.2 External I/O Device..................................................................................................7
1.5.3 Internal Relay ...........................................................................................................9
1.5.4 Nonvolatile Memory ..............................................................................................10
1.5.5 Data Table ..............................................................................................................11
1.5.6 Interface between PMC Program and Robot Program ...........................................14
1.5.7 System Control by PMC Program (System Interface) ...........................................15
1.5.8 PMC Setting Parameters (K17-K19)......................................................................19
1.5.9 PMC System Area (R9000-R9117)........................................................................19
1.5.10 Internal Relay Assignment .....................................................................................20
1.6 Standard PMC Program .............................................................................. 21
1.7 Save/Load PMC Program and PMC Parameters......................................... 21
2 SEQUENCE PROGRAM ....................................................................... 23
2.1 Execution Procedure of Sequence Program................................................ 23
2.2 Repetitive Operation .................................................................................... 24
2.3 Level 1 and Level 2...................................................................................... 24
2.4 PMC EXECUTION PROCESSING TIME .................................................... 25
2.5 Update Timing of Signals............................................................................. 25
2.6 INTERLOCKING.......................................................................................... 26
2.7 Sequence Program Structuring.................................................................... 27
2.7.1 Examples of Structured Programming ...................................................................27
2.7.1.1 Implementation Techniques............................................................................... 27
2.7.1.2 Applications....................................................................................................... 28
2.7.1.3 Specifications..................................................................................................... 30
2.7.2 Subprogramming and Nesting................................................................................30
2.7.2.1 Function ............................................................................................................. 30
2.7.2.2 Execution Method.............................................................................................. 31
2.7.2.3 Creating a Program ............................................................................................ 32
2.8 JMP Instructions with Label Specification.................................................... 34
2.8.1 Specifications .........................................................................................................34
2.8.2 Restrictions.............................................................................................................37
c-2
B-82614EN/02 TABLE OF CONTENTS
c-3
TABLE OF CONTENTS B-82614EN/02
c-4
B-82614EN/02 TABLE OF CONTENTS
7.14.4 Counter Preset Value Address..............................................................................150
7.14.5 Counter Register Address.....................................................................................150
7.14.6 Count-up Output (W1) .........................................................................................150
7.15 DCNV (Data Conversion) .......................................................................... 150
7.15.1 Function................................................................................................................150
7.15.2 Format ..................................................................................................................150
7.15.3 Control Conditions ...............................................................................................151
7.15.4 Error Output (W1) ................................................................................................151
7.16 DCNVB (Extended Data Conversion) ........................................................ 152
7.16.1 Function................................................................................................................152
7.16.2 Format ..................................................................................................................152
7.16.3 Control Conditions ...............................................................................................152
7.16.4 Parameters ............................................................................................................152
7.16.5 Error Output (W1) ................................................................................................153
7.16.6 Operation Output Register (R9000) .....................................................................153
7.17 DEC (Decode) ........................................................................................... 153
7.17.1 Function................................................................................................................153
7.17.2 Format ..................................................................................................................153
7.17.3 Control Condition.................................................................................................154
7.17.4 Code Signal Address ............................................................................................154
7.17.5 Decode Specification............................................................................................154
7.17.6 W1 (Decoding Result Output)..............................................................................154
7.18 DECB (Binary Decoding) ........................................................................... 155
7.18.1 Function (Fig.7.18.2 (a), (b))................................................................................155
7.18.2 Format ..................................................................................................................155
7.18.3 Control Conditions ...............................................................................................156
7.18.4 Parameters ............................................................................................................156
7.19 DIFD (Falling Edge Detection) ................................................................... 156
7.19.1 Function................................................................................................................156
7.19.2 Format ..................................................................................................................156
7.19.3 Control Conditions ...............................................................................................156
7.19.4 Parameters ............................................................................................................156
7.19.5 Operation ..............................................................................................................157
7.20 DIFU (Rising Edge Detection).................................................................... 157
7.20.1 Function................................................................................................................157
7.20.2 Format ..................................................................................................................157
7.20.3 Control Conditions ...............................................................................................157
7.20.4 Parameters ............................................................................................................157
7.20.5 Operation ..............................................................................................................158
7.21 DIV (Division)............................................................................................. 158
7.21.1 Function................................................................................................................158
7.21.2 Format ..................................................................................................................158
7.21.3 Control Conditions ...............................................................................................159
7.21.4 Divisor Data Format Designation.........................................................................159
7.21.5 Dividend Address .................................................................................................159
7.21.6 Divisor (Address) .................................................................................................159
7.21.7 Quotient Output Address......................................................................................159
7.21.8 Error Output .........................................................................................................159
7.22 DIVB (Binary Division) ............................................................................... 159
7.22.1 Function................................................................................................................159
7.22.2 Format ..................................................................................................................160
7.22.3 Control Conditions ...............................................................................................160
7.22.4 Parameters ............................................................................................................160
c-5
TABLE OF CONTENTS B-82614EN/02
c-10
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
PMC stands for Programmable Machine Control. The Integrated PMC is a method of executing Ladder
Logic on the Robot controller.
-1-
1. INTEGRATED PMC OVERVIEW B-82614EN/02
-2-
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
RD.NOT Read the specified address and set the inverse condition of the
read value in ST0.
WRT Set the result value (ST0) in the specified address.
WRT.NOT Set the inverse condition of the result value (ST0) to the
specified address.
AND Read the specified address, calculate the AND of the read
value with ST0 and set the result in ST0.
AND.NOT Read the specified address, calculate the AND of the inverse of
the read value with ST0 and set the result in ST0.
OR Read the specified address, calculate the OR of the read value
with ST0 and set the result in ST0.
RD.STK Shift stack to left, then read the specified address and set the
read value in ST0.
RD.NOT.STK Shift stack to left, then read the specified address and set the
inverse of the read value to ST0.
AND.STK Calculate the AND of ST1 with ST0, set the result in ST1 then
shift stack to right.
OR.STK Calculate the OR of ST1 with ST0, set the result in ST1 then
shift stack to right.
SET Read the specified address, calculate the OR of the read value
with ST0 then set the result to the specified address.
RST Read the specified address, calculate the AND of the read
value with the reversed value of ST0 then set the result to the
specified address.
Refer to Chapter 5 "Basic command reference" for details of every basic command.
NOTE
PMC addresses F0-255 and G0-255 cannot be specified in basic commands.
Use MOVW(SUB44) to access these PMC addresses.
-3-
1. INTEGRATED PMC OVERVIEW B-82614EN/02
Refer to Chapter 6 "Function command reference" for details of every function command.
The "Processing time" in the above list is used in Section 2.4, "Processing Time of PMC Execution".
NOTE
X area and Y area of the PMC address cannot be specified in function commands.
Use basic commands to access these PMC addresses.
NOTE
No function commands except MOVW(SUB44) can use PMC addresses F0-255
and G0-255. Use MOVW(SUB44) to access these PMC addresses.
If you specify F0-255 or G0-255 in MOVW (SUB44), you must specify even
addresses. If you specify an odd address of this area, the PMC program will
cause an error in the robot controller.
-5-
1. INTEGRATED PMC OVERVIEW B-82614EN/02
The first character of a PMC address must have an alphabetic character which indicates the type of the PMC
address.
If "." and bit number are omitted, it indicates a Byte address.
-6-
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
-7-
1. INTEGRATED PMC OVERVIEW B-82614EN/02
I/O assignment
NOTE
The assignment of I/O port names (DI, DO, and so forth) to I/O devices is set in
the I/O assignment menu on the teach pendant. This assignment also affects the
Integrated PMC. The "I/O module editting" menu of PMC programmer is not used
for the robot controller Integrated PMC.
-8-
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
NOTE
The X area and Y area can not be used with any function commands. To access
this area, use a basic command.
Address Description
R General internal relay.
This relay can be specified in basic commands and function commands.
Value becomes 0 when power is cycled. Setting of power failure recovery does not affect this
area.
K Keep relay
This relay can be specified in basic commands and function commands.
K17-19 are used for PMC setting parameters
The value is kept even if the power is cycled. Setting of power failure recovery does not affect
this area.
D Data table
This area can be accessed as various data types that are defined in the Data Table Control
Data.
It can be specified in basic commands and function commands.
The value is kept even if the power is cycled. Setting power failure recovery does not affect
this area.
T Timer
This area is used for the timer value of TMR (SUB3).
You can read and set timer values in Timer menu.
The value is kept even if the power is cycled. Setting power failure recovery does not affect
this area.
C Counter
This area is used for preset data and current data in the function command CTR (SUB5).
You can read and set counter values in Counter menu.
The value is kept even if the power is cycled. Setting of power failure recovery does not affect
this area.
F1000-1255 System interface input
The PMC program can read the status of the robot controller from this area.
The PMC program can not set the area.
G1000-1255 System interface output
The PMC program can control the robot system with this area.
The value becomes initial value when power is cycled. Setting of power failure recovery does
not affect this area.
K, D, T and C areas are called nonvolatile memory. The value of these areas are kept even if the power is
cycled.
-9-
1. INTEGRATED PMC OVERVIEW B-82614EN/02
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.
(3) Keep relay
This memory is used as parameters, keep relays, etc. for sequence control. Setting and display are
possible from the PMC menu and sequence program instructions can be used for reading and writing.
(4) Data table
A sizable amount of numeric data (data table) can be used for sequence control by the PMC. See
section 1.5.5 for details.
- 10 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
- 11 -
1. INTEGRATED PMC OVERVIEW B-82614EN/02
- 12 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
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 PMC menu, 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 is available from the sequence program.
This Data Table group shows GO[10001-11500] that corresponds to D0-3000 as one Data Table element.
- 13 -
1. INTEGRATED PMC OVERVIEW B-82614EN/02
The setting of Data Table Control Data does not affect PMC execution.
Internal relays should be used to communicate between the PMC program and a Robot program.
Correspondence of R, K area to DO
The R area and K area correspond to DO[10001-] as follows. This correspondence is always the same.
For example, a robot program can read R0.0 as DO[11001]. If a robot program outputs to DO[11001], the
value is set to R0.0.
- 14 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
Correspondence of D area to GO
The PMC program and Robot program can exchange integer data. The D area corresponds to GO[10001-]
as follows. This correspondence is always the same
For example, a robot program can access D0 and D1 as GO[10001]. The data type of GO is 16 bits of an
unsigned integer. D0 is the lower byte of GO[10001] and D1 is the upper byte of GO[10001]. If a robot
program sets data to GO[11001], the value is set to D0 and D1.
Conflict of output
CAUTION
Do not output to the same internal relay from both a PMC program and a robot
program. Otherwise, the value output by the robot program will be superseded by
the value output by the PMC program.
F1000-1255 and G1000-1255 are called the system interface. The PMC program can control the robot
system with the system interface. For example, the PMC program can execute a robot program.
Every address of the system interface has a specific function.
Function of F1000-F1255
The PMC program can read the status of the robot system from F1000-F1255
Outputs of the System Interface:
Function of G1000-G1255
The PMC program can control the robot system with G1000-G1255
Input to the System Interface:
Initial
Address Name Function
value
G1000.0 IMSTP 1 Same as IMSTP in UOP
G1000.1 HOLD 1 Same as HOLD in UOP
G1000.2 SFSPD 0 Same as SFSPD in UOP
G1000.3 CSTOPI 0 Same as CSTOPI in UOP
G1000.4 RESET 0 Same as RESET in UOP
G1000.5 START 0 Same as START in UOP
G1000.6 HOME 0 Same as HOME in UOP
G1000.7 ENBLE 0 Same as ENBLE in UOP
G1001.0 PNS1 1 Same as RSR1/PNS1 in UOP
G1001.1 PNS2 1 Same as RSR2/PNS2 in UOP
G1001.2 PNS3 1 Same as RSR3/PNS3 in UOP
G1001.3 PNS4 1 Same as RSR4/PNS4 in UOP
G1001.4 PNS5 1 Same as PNS5 in UOP
G1001.5 PNS6 1 Same as PNS6 in UOP
G1001.6 PNS7 1 Same as PNS7 in UOP
G1001.7 PNS8 1 Same as PNS8 in UOP
G1002.0 PNSTRB 0 Same as PNSTROBE in UOP
G1002.1 PSTART 0 Same as PRODSTART in UOP
G1002.2- 0 Reserved
G1007.7
- 16 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
Initial
Address Name Function
value
G1008.0- UALM1- 0 When a value of this area is 1, a
G1011.7 UALM32 corresponding user alarm occurs. For
example, user alarm 1 occurs when
G1008.0(UALM1) is 1.
If a reset occurs when this area is 1, the
user alarm occurs again, and the alarm
cannot be cleared.
G1012.0- 0 Reserved
G1255.7
The values of G1000-G1255 are always set to the initial value when the controller is turned on. Setting
power failure recovery does not affect the initial value. Signals that are not output by the PMC program will
always remain at the initial value. Specifically, all of PNS1-8 must be output in order to use PNS, or the
correct PNS number cannot be set.
- 17 -
1. INTEGRATED PMC OVERVIEW B-82614EN/02
If UI and UO are normally used for UOP, this ladder program can be used as is.
The UOP function can be easily customized by modifying this ladder program. For example, UI[6]
(START) can be changed to detect the rising edge; the original UI [6] detects the falling edge.
- 18 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
DTBLDSP (Default: 0)
0: The Data Table Control Data can be changed in the Data Table Control Data menu.
The Data Table Control Data menu on the PMC programmer can be displayed.
1: The Data Table Control Data cannot be changed in the Data Table Control Data menu.
The Data Table Control Data menu on the PMC programmer cannot be displayed.
MEMINP (Default: 1)
0: The value in Byte menu and Bit menu in the PMC menus cannot be changed.
The value in "Signal status" on the PMC programmer cannot be changed.
1: The value in Byte menu and Bit menu in the PMC menus can be changed.
You can change The value in "Signal status" on the PMC programmer can be changed.
SELECTMDL (Default: 0)
0: The PMC program saved in FROM is loaded to RAM at power up.
1: The Standard PMC program is loaded to RAM at power up.
(This setting is changed to 0 automatically by "Backup program" on the PMC programmer or by
loading LADDER.PMC in file menu.)
AUTORUN (Default: 0)
0: PMC runs at power up automatically.
1: PMC does not run at power up automatically.
PROGRAM (Default: 1)
0: PMC programmer is not available. ("Load program", "Store program", "Backup program" and
"Run/Stop the program" are not available in PMC programmer.)
1: PMC programmer is available.
LADMASK (Default: 0)
0: Ladder monitor in PMC programmer can be displayed.
1: Ladder monitor in PMC programmer cannot be displayed.
NOTE
The area K18-19 is not used and should be left at 0.
- 19 -
1. INTEGRATED PMC OVERVIEW B-82614EN/02
- 20 -
B-82614EN/02 1. INTEGRATED PMC OVERVIEW
Using the Standard PMC program as a template for a new PMC program
To use the Standard PMC program as a template for a new PMC program, do the following.
1. Save STDLDR.PMC to floppy disk or memory card using the PMC menus on the teach pendant.
Refer to Section 3.1.12, "Save STDLDR.PMC", for information on saving STDLDR.PMC.
2. Copy STDLDR.PMC to the hard disk of the PC where PMC programmer is installed. (STDLDR.PMC
can be used directly from the floppy disk, but it is better to copy it to hard disk because it might be used
frequently.)
3. Load STDLDR.PMC to PMC programmer just after creating new PMC program. Then decompile it.
Refer to Section 2.3, "Load Standard PMC program" for information on loading the Standard PMC
program.
After this operation, the Standard PMC program can be used.
The PMC program and PMC parameters can be recovered by loading the saved files.
The PMC program and PMC parameters can be copied by loading the files that are saved from another
robot.
- 21 -
1. INTEGRATED PMC OVERVIEW B-82614EN/02
- 22 -
B-82614EN/02 2. SEQUENCE PROGRAM
2 SEQUENCE PROGRAM
The PMC sequence control is handled by the software and operates on principles different from a general
relay circuit. Therefore, the sequence control method must be fully understood in order to design the PMC
sequence.
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 the PMC program.
- 24 -
B-82614EN/02 2. SEQUENCE PROGRAM
R-30iA
(Number of steps 0.025) + Total of processing time of
function commands (μsec)
The processing time of every function command is specified in Section 1.4, "Function Commands".
If a Level 1 program takes more than 4000μsec, Level 1 program execution will
not be completed in one scan. Level 1 programs must not take more than 4000μsec.
Even if Level 1 takes less than 4000μsec, the processing time of a Level 2 program in one scan is reduced by
the processing time of Level 1. Level 1 should be kept as short as possible to allow time for a Level 2
program to run.
The scan time of Level 2 is 8 ms times the number of divisions of a Level 2 program.
- 25 -
2. SEQUENCE PROGRAM B-82614EN/02
The same situation occurs when a robot program changes an internal relay and the PMC program reads the
same internal relay or when Level 1 changes an internal relay and Level 2 reads the same internal relay. In
these cases, if the internal relay is read at multiple locations of the ladder program, the value of the internal
relay should be copied to another internal relay and the copied internal relay should be read in the ladder
program from that point forward.
Read by Read by
Address
Level 1 Level 2
External device input (X, F) Inconsistent Inconsistent
External The area set by Level 1 Consistent Inconsistent
device output The area set by Level 2 Consistent * Consistent
(Y, G) The area set by Robot Inconsistent Inconsistent
program
Internal relay The area set by Level 1 Consistent Inconsistent
(R, K, D) The area set by Level 2 Consistent * Consistent
The area set by Robot Inconsistent Inconsistent
program
Areas that are changed by a process other than the current ladder program are inconsistent. One exception
is that Level 1 can read an area set by Level 2 consistently. It is not necessary to copy the area to another
internal relay. (Items marked "*" in the above list.)
2.6 INTERLOCKING
Interlocking is necessary in the sequence program and is externally important in sequence control safety.
However, make sure to interlock with the end of the electric circuit in the machine tool magnetics cabinet.
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.
- 26 -
B-82614EN/02 2. SEQUENCE PROGRAM
(2) Nesting
Ladder subprograms created in 1 above are combined to structure a Ladder sequence.
- 27 -
2. SEQUENCE PROGRAM B-82614EN/02
2.7.1.2 Applications
(1) Example
Suppose that there are four major jobs.
- 28 -
B-82614EN/02 2. SEQUENCE PROGRAM
- 29 -
2. SEQUENCE PROGRAM B-82614EN/02
2.7.1.3 Specifications
(1) Main program
The main program is the Ladder program consisting of the Level 1 and Level 2 ladder programs. One,
but only one, main program can be created. A subprogram cannot be called from the Level 1 ladder
program. Any number of subprograms however, can be called from the Level 2 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 Level 2 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.
2.7.2.1 Function
Conditional JUMP (or unconditional JUMP) is coded in the main 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. 2.7.2.1, the main program calls three subprograms. These calls are all
conditional calls. Subprogram P1 is named SUBPRO. It calls subprogram PROCS1 unconditionally.
- 30 -
B-82614EN/02 2. SEQUENCE PROGRAM
- 31 -
2. SEQUENCE PROGRAM B-82614EN/02
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.
- 32 -
B-82614EN/02 2. SEQUENCE PROGRAM
Inhibit items
(1) Subprograms are nested.
- 33 -
2. SEQUENCE PROGRAM B-82614EN/02
2.8.1 Specifications
(1) Relationship between JMPB/JMPC and LBL
(Forward and backward jumps to the same label are possible.)
CAUTION
The specifications allow backward jumps. A backward jump, however, might
result in an infinite loop or cause the execution time of the Level 1 Ladder program
to exceed 4 ms. Create a program carefully so an infinite loop does not occur.
CAUTION
Do not skip TMR, TMRB and TMRC by JMP, JMPE, JMPB, JMPC, and LBL. If
TMR, TMRB or TMRC are skipped, they might not work correctly. Turn off the
controller, then turn it on again to recover from this problem.
- 34 -
B-82614EN/02 2. SEQUENCE PROGRAM
(2) Same label
(A label can be used more than once as long as it is unique within the main program or each
subprogram.)
NOTE
As mentioned in (8) of Section 2.8, the same label must not exist in the Level 1
and Level 2 Ladder programs.
- 35 -
2. SEQUENCE PROGRAM B-82614EN/02
- 36 -
B-82614EN/02 2. SEQUENCE PROGRAM
(6) Position of JMPC
(JMPC coded between COM and COME can cause a jump.)
2.8.2 Restrictions
(1) Jump destination of JMPB (1)
(A jump over END1 or END2 is inhibited.)
- 37 -
2. SEQUENCE PROGRAM B-82614EN/02
- 38 -
B-82614EN/02 2. SEQUENCE PROGRAM
(4) Jump destination of JMPC (1)
(A jump to the first-level Ladder program is inhibited.)
- 39 -
2. SEQUENCE PROGRAM B-82614EN/02
CAUTION
Do not create a Ladder program using the jump function to create an infinite loop.
- 40 -
B-82614EN/02 2. SEQUENCE PROGRAM
(7) LBL for JMPB (1)
(There is no LBL in the same subprogram.)
- 41 -
2. SEQUENCE PROGRAM B-82614EN/02
- 42 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
This chapter explains all operations from creating a new PMC program to executing it on the robot
controller.
NOTE
Use "FAPT LADDER-II for Robot" to program the robot controller Integrated
PMC.
RS-232-C cable
Use the following RS-232-C cross cable.
- 43 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(3) Move the cursor to 1 RS-232-C, and press , DETAIL. The RS-232-C port detail screen will be
displayed.
- 44 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(6) Press ENTER.
(2) Type the source program name as "Drive:\Source program name." If an existing program (directory
name) is specified, the specified program will be selected. If a new program (directory name) is
specified, the specified program will be created.
- 45 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(3) Press , EXEC or press . The following menu will be displayed. Select PMC-SB5/RB5 and
press . The initial menu will be displayed.
NOTE
The PMC type must be "PMC-SB5/RB5." If another PMC type is selected, the
created PMC program cannot be used in the robot controller.
NOTE
If you are using "FAPT LADDER-II for Robot", only "PMC-SB5/RB5" will be
displayed in this list.
- 46 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
NOTE
Contents of the selected program will be lost by this operation. Only do this just
after creating a new PMC program.
(1) Create a new PMC program according to Section 3.2, "Creating a New PMC Program".
(2) Press , I/O in the Off-Line menu of FAPT LADDER-II. The I/O menu will be displayed.
(3) Press , Handy File in the I/O menu.
- 47 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(5) Type the directory path of STDLDR.PMC in the "Handy File file name" item. This could be a
directory on the hard drive, floppy drive, etc.
(12) When decompile is completed, the message "Decompile completed" is displayed. You can now edit
the loaded PMC program.
- 48 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
NOTE
The robot controller Integrated PMC does not support the On-Line edit function.
PMC programs must be edited with the Off-Line Function. However, the robot
controller Integrated PMC does support PMC program transfer during PMC
program execution.
- 49 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(4) Select LEVEL1 or LEVEL2 using the arrow keys, and press . The Ladder diagram of the
selected level will be displayed.
- 50 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(9) Press , and , TO. "LATMP.#LA" is inserted above the cursor position.
- 51 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(2) Press , CONDNS. The PMC program is compiled. When compiling is completed without error,
"Compile completed" will be displayed. If an error occurs, modify the PMC program and compile
again.
NOTE
, CONDNS compiles in condensed mode. , EXEC compiles in normal
mode. Both modes are the same for PMC program execution. Condensed mode
generates a smaller PMC program than normal mode, so transfer time of
condensed mode is shorter than normal mode.
(3) Select Store, Store to PMC program memory. The PMC program is transferred from FAPT
LADDER-II to robot controller.
- 52 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
NOTE
The PMC program is transferred into RAM memory using the above procedure.
When controller power is cycled, the original PMC program is loaded back into
RAM memory, thus overwriting the PMC program that was recently transferred.
To keep the new PMC program after power is cycled, the program must be
transferred to ROM memory. To write the PMC program to ROM, refer to Section
3.9, "Writing PMC ProgramS to ROM".
If a PMC program is running during this procedure, the PMC program continues to run during transfer. The
executing PMC program is switched to the new program when the transfer is complete. With this procedure,
you can send a PMC program without stopping execution.
NOTE
When a PMC program is transferred during execution, the value of internal relays,
internal variables, and so forth are not initialized. This might cause unexpected
output. For example, DIFU turns on when the PMC program is switched. Be
careful when making large changes to the PMC program.
When transferring a program, if an error occurs, the following dialog box will be displayed on FAPT
LADDER-II.
- 53 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
NOTE
The PMC program error is a `warning', and it is not displayed in the active alarm
screen. Please check the Alarm History screen to see this error displayed.
In the Alarm History screen, the errors are listed in the order they occurred. The last alarm is on the top line.
Refer to Chapter 9, "Integrated PMC Error Codes" for details of all PMC errors.
When an alarm occurs during program transfer, the new PMC program can not run. If a previous PMC
program is running during PMC program transfer, the previous PMC program continues to run. The new
PMC program cannot be written to ROM until it is correctly transferred.
If a PMC program has more than 10 errors, the 11th and higher alarms are not displayed in the alarm history
screen and "PRIO-140 can't display all PMC errors" is displayed. The first ten alarms must
be corrected in order to see the remaining alarms.
- 54 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
NOTE
When data type is BCD, invalid values for BCD (10,11,12,13,14,15) are not
displayed correctly.
CAUTION
Do not page up or down rapidly if you use FAPT LADDER-II on Windows NT.
Otherwise, the Online Monitoring function might lose communication with the
controller.
- 56 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(3) Type the address to monitor by keyboard, and press , Search. Status of entered address is
displayed.
In the signal monitor screen, you can change the value of any address. Place the cursor on the bit address,
press , and the value of the bit is changed as 1, 0, 1.
- 57 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(2) When the PMC program is running, the following dialog box is displayed. To stop the program, select
YES and press . The PMC program will stop.
If the PMC program is stopped, the message in the dialog box will be "RUN the program". Selecting
YES and pressing will run the program.
NOTE
Before backing up the PMC program, press the E-STOP on the teach pendant or
Operator's panel, or the robot controller must be in Controlled start mode. If the
robot controller is not in this condition, a dialog box with "N:E-3019 F-ROM
undefined error code is displayed on FAPT LADDER-II, and "PRIO-142
Need E-STOP or CTRL start" is displayed on the robot controller teach
pendant.
(3) The following dialog box will be displayed. Select "EXEC" and press ENTER. Program backup takes
about 10 seconds. Do not shut down power to the robot controller during program backup, otherwise
the PMC program might become corrupted and will need to be reloaded.
- 58 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(4) When PMC program backup is completed, the following dialog box is displayed. Select CANCEL and
press .
NOTE
Rarely, "PRIO-145 Purging flash file, please wait" is displayed on the
robot controller teach pendant, and the dialog box with "N:E-3019 F-ROM
undefined error code is displayed on FAPT LADDER-II at this time. This
means that the robot controller system is arranging ROM data, and it takes a few
minutes. In this case, please wait until the message "PRIO-146 Flash file
purge is completed" is displayed on the robot controller teach pendant. Do
not shut down power during this process. After the purge is complete,
communication between the robot controller and FAPT LADDER-II will be lost.
Be sure to connect again.
NOTE
If you select "On-Line (selected program)" and do the following operation, the
selected program will be lost. You must select "On-Line function".
(2) Press , and select "Save program as…" in the "1. File" pull down menu.
- 59 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(3) The following dialog box will be displayed. Type the directory path of the new source program where
this PMC program will be saved.
NOTE
If the specified source program already exists, the specified source program will
be superceded.
(4) Press , and select "Off-Line Function in "1. File" pull down menu. The PMC program
will be decompiled automatically and the Off-Line menu will be displayed.
(5) Edit the PMC program using the Off-Line Function of FAPT LADDER-II.
(6) When PMC program modification is completed, compile the PMC program, and press
(ON-LINE FUNCTION) in the Off-Line menu. FAPT LADDER-II communicates with the robot
controller and the following dialog box is displayed.
- 60 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(7) Select Store, "Store to PMC program memory." The PMC program is transferred to the robot
controller.
(8) Check the modified PMC program.
(9) Write the PMC program to ROM according to Section 3.9, "WRITING PMC PROGRAM TO ROM."
This chapter explains the procedure to load/save LADDER.PMC and PARAM.PMC using FAPT
LADDER.II.
- 61 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
NOTE
The robot controller supports "Handy File" format only. Do not select any other
format.
"Handy File" is a file that can be loaded from a Floppy Disk Drive or Memory Card.
FDCAS stands for Floppy Drive Cassette, which is the same as "Handy File". The
"Memory Card" selection, in the "I/O" screen, is not used to create a loadable file
for the Memory Card.
(5) Type the directory path and file name of LADDER.PMC in the "Handy File file name" item. The file
name must be LADDER.PMC.
Example: C:\LADDER.PMC
- 62 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
NOTE
The robot controller supports "Handy File" format only. Do not select any other
format.
(5) Type the directory path and file name of LADDER.PMC in the "Handy File file name" item.
Example: C:\LADDER.PMC
- 63 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(12) When the decompile is complete, the message "Decompile normal end" will be displayed. You can
then edit the loaded PMC program.
NOTE
PARAM.PMC can not be saved when PMC is running. You must stop the PMC or
do a Controlled start, to save PARAM.PMC.
- 64 -
B-82614EN/02 3. PROGRAMMING WITH FAPT LADDER-II
(4) Type the directory path and file name of PARAM.PMC to save.
Example: C:\PARAM.PMC
NOTE
PARAM.PMC can not be loaded when PMC is running. You must stop the PMC
or do a Controlled start, to load PARAM.PMC.
- 65 -
3. PROGRAMMING WITH FAPT LADDER-II B-82614EN/02
(4) Type the directory path and file name of PARAM.PMC to load.
Example: C:\PARAM.PMC
- 66 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
This software runs in the Microsoft® software Windows® operating system environment. This manual
does not cover basic Windows® operations. If you are a beginner to Windows®, read the Windows®
manual first to learn the basic operations.
This manual describes the programming items of FANUC LADDER –III for Robots with respect to the
ROBOT CONTROLLER. These items include how to create a new sequence program, how to transfer it to
the ROBOT CONTROLLER, how to execute it and how to write it into ROBOT CONTROLLER ROM.
NOTE
There is "FANUC LADDER-III" and "FANUC LADDER-III for Robot". Use
"FANUC LADDER-III for Robot" to program the Robot Integrated PMC.
Microsoft® and Windows® are registered trademarks of Microsoft Corporation in the United States of
America.
Some functions of FANUC LADDER-III for Robot are not supported by the robot controller.
The following is the list of menu items not supported.
- 67 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
Connect the D-Sub 25pin to the RS-232-C port in front side of ROBOT CONTROLLER operator panel.
- 68 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
Port Init
[TYPE]
[ TYPE ] DETAIL
JOINT 100%
1 Current position 5 HMI device
2 PMC programmer 6 RoboWeld EQ1
3 PPP 7 RoboWeld EQ2
4 Modem/PPP 8 -- NEXT --
- 69 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
(7) Move the cursor to 2 Speed (Baud rate), and press ([CHOICE]). Select the same speed as the
setting in FANUC LADDER-III for Robot. (Refer to "Help" on toolbar with FANUC LADDER-III for
Robot to learn the setup of the Speed (Baud rate).)
Port Init
[TYPE]
(3) Move the cursor to the port that is set as [PMC programmer]. Press (DETAIL). The port detail
screen will be displayed.
(If "PMC programmer" is not set to any ports, you are finished in the "Port Init" setup screen.)
[ TYPE ] DETAIL
- 70 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(5) Select an item other than "PMC Programmer" in the displayed menu (such as “No Use”).
JOINT 100%
1 Sensor 5 Maintenance Cons
2 Host Comm 6 Factory Terminal
3 No Use 7 TP Demo Device
4 KCL/CRT 8 -- NEXT --
- 71 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
(2) Enter the name of a program file you want to create. Specify "LAD" in the extension, and the extension
cab be omitted.
(3) Select RBT-SB5 as PMC model.
(4) Click <OK>, then the program is created and program list is displayed.
- 72 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
Standard PMC program can be imported from ROBOT CONTROLLER as STDLDR.PMC file.
Refer to "1.6 STANDARD PMC PROGRAM" for the detailed information of Standard PMC program.
Procedure
NOTE
If the program has been edited, any change will be discarded. This procedure
should be performed just after a new program is created.
- 73 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
(2) Select "Handy-file Format File" and click the <Next> button.
(5) Click the <OK> button. The following decompile screen appear.
- 74 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(6) To decompile, click the <YES> button. The [Decompile] screen appears.
NOTE
The robot controller Integrated PMC does not support the On-Line edit function.
PMC programs must be edited with the Off-Line Function. However, the robot
controller Integrated PMC does support PMC program transfer during PMC
program execution.
Procedure
(1) In the [Program List] screen, double click LEVEL1, LEVEL2, or subprograms, such as P0001. Edit
screen of selected program appears.
- 75 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
Procedure
(1) Select [Tool]-[Compile]. The [Compile] dialog appears.
(2) Click [Option] tab to set the complie options.
- 76 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
NOTE
When "Compiled in the Condensation mode" is checked, program is compiled by
condense mode. When not checked, program is compiled by normal mode.
Both modes are the same for PMC program execution. Condensed mode
generates a smaller PMC program than normal mode, so transfer time of
condensed mode is shorter than normal mode.
Procedure
(1) Connect ROBOT CONTROLLER and FANUC LADDER-III for Robot by cable, according to "4.1
CONNECTING FANUC LADDER-III for Robot ".
(2) Select [Tool]-[Store to PMC].
(3) Select <I/O by MONIT-ONLINE function>, and then click the <Next> button. (Please go to 7. if
ROBOT CONTROLLER and FANUC LADDER-III for Robot are on communication.) The following
message appears.
(7) Click the <Next> button. The [Program transfer wizard Selection of program] screen appears.
- 78 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(8) Click the <Next> button. The [Program transfer wizard Configuration of processing] screen appears.
(9) Click the <Finish> button. Then, the [Transfer monitor] screen appears, and then the program is
transferred.
NOTE
The PMC program is transferred into RAM memory using the above procedure.
When controller power is cycled, the original PMC program is loaded back into
RAM memory, thus overwriting the PMC program that was recently transferred.
To keep the new PMC program after power is cycled, the program must be
transferred to ROM memory. To write the PMC program to ROM, refer to Section
4.9, "Writing PMC ProgramS to F-ROM".
If a PMC program is running during this procedure, the PMC program continues to run during transfer. The
executing PMC program is switched to the new program when the transfer is complete. With this procedure,
you can send a PMC program without stopping execution.
NOTE
When a PMC program is transferred during execution, the value of internal relays,
internal variables, and so forth are not initialized. This might cause unexpected
output. For example, DIFU turns on when the PMC program is switched. Be
careful when making large changes to the PMC program.
When transferring a program, if an error occurs, the following dialog box will be displayed on FANUC
LADDER-III for Robot.
- 79 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
In this case PMC is still executing the previous PMC program. An error message is also displayed on the
robot controller teach pendant.
The teach pendant displays the last error message. To read all error message, display the alarm history
screen with the following procedure.
(2) Select "4. ALARM". The Active Alarm screen will be displayed.
(3) Press F3 in Active Alarm screen. The History Alarm screen will be displayed.
NOTE
The PMC program error is a `warning', and it is not displayed in the active alarm
screen. Please check the Alarm History screen to see this error displayed.
In the Alarm History screen, the errors are listed in the order they occurred. The last alarm is on the top line.
Refer to Chapter 9, "INTEGRATED PMC ERROR CODE" for details of all PMC errors. When an alarm
occurs during program transfer, the new PMC program can not run. If a previous PMC program is running
during PMC program transfer, the previous PMC program continues to run. The new PMC program cannot
be written to ROM until it is correctly transferred.
- 80 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
If a PMC program has more than 10 errors, the 11th and higher alarms are not displayed in the alarm history
screen and "PRIO-140 can't display all PMC errors" is displayed. The first ten alarms must
be corrected in order to see the remaining alarms.
LADDER MONITOR
- 81 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
- 82 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
NOTE
When data type is BCD, invalid values for BCD (10, 11, 12, 13, 14, 15) are not
displayed correctly.
If PMC program is not running, the message "Are you sure to run the program ?" appears. Follow the same
procedure to run the program.
- 83 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
NOTE
Before backing up the PMC program, press the E-STOP on the teach pendant or
Operator's panel, or the robot controller must be in Controlled start mode. If the
robot controller is not in this condition, a dialog box with "N:E-3007 "Flash ROM
Not EMG stop" error code" is displayed on FANUC LADDER-III for Robot,
and "PRIO-142 Need E-STOP or CTRL start" is displayed on the robot
controller teach pendant.
Procedure
(1) Make sure the TP program on ROBOT CONTROLLER program is stopped.
(2) Press EMERGENCY STOP on the operator panel or teach pendant. (When ROBOT CONTROLLER
is at a Controlled Start, step 2 is not required.)
(3) Select [Tool]-[Back Up] on FANUC LADDER-III for Robot. The following message appears.
(4) Click <OK>. Then Back Up starts. Don't turn off the ROBOT CONTROLLER during Back Up. The
following message is displayed when it finishes.
NOTE
Rarely, "PRIO-145 Purging flash file, please wait" is displayed on the
robot controller teach pendant, and the dialog box with "N:E-3007 "Flash ROM
Not EMG stop" code" is displayed on FANUC LADDER-II at this time. This
means that the robot controller system is arranging ROM data, and it takes a few
minutes. In this case, please wait until the message "PRIO-146 Flash file
purge is completed" is displayed on the robot controller teach pendant. Do
not shut down power during this process. After the purge is complete,
communication between the robot controller and FANUC LADDER-II will be lost.
Be sure to connect again.
- 84 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
- 85 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
(6) The [Communication] screen appears and the communication with ROBOT CONTROLLER starts.
(7) After communication is established, the [Program transfer wizard Selection of loading/store] screen
appears.
- 86 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(8) Click the<Next>. The following message is displayed.
- 87 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
This chapter explains the procedure to load/save LADDER.PMC and PARAM.PMC using FANUC
LADDER-III for Robot.
NOTE
The robot controller supports "HANDY FILE" format only. Do not select any other
format.
"HANDY FILE" is a file that can be loaded from a floppy disk or memory card.
(4) Specify directory and file to export. File name must be LADDER.PMC.
Example'C:\LADDER.PMC
(5) Click <Finish> to export LADDER.PMC.
- 89 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
- 90 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
- 91 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
Procedure
(1) According to "4.1 CONNECTING FANUC LADDER-III for Robot", connect ROBOT
CONTROLLER with FANUC LADDER-III for Robot by cable.
(2) Select [Tool]-[Load from PMC]. (If FANUC LADDER-III for Robot and ROBOT CONTROLLER
are on communication, go to step 8.)
- 92 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(5) Click <Yes>.
(6) The [Communication] screen is displayed until communication with ROBOT CONTROLLER is
established.
- 93 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
NOTE
File name must be PARAM.PMC. If the file has another, the ROBOT
CONTROLLER can not load it.
- 94 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(11) Click <Next>. The Program transfer wizard screen appears.
NOTE
Stop PMC programs or perform controlled start to load PARAM.PMC when PMC
program is running. PARAM.PMC cannot be loaded during program execution.
The error message below is display if the PMC program is not stopped.
- 95 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
Procedure
(1) According to "4.1 CONNECTING FANUC LADDER-III for Robot ", connect ROBOT
CONTROLLER with FANUC LADDER-III for Robot by cable.
(2) Select [Tool]-[Store to PMC]. (If FANUC LADDER-III for Robot and ROBOT CONTROLLER are
on communication, go to step 8.)
- 96 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(6) The [Communication] screen is displayed.
- 97 -
4. FANUC LADDER-III for Robot PROGRAMMING B-82614EN/02
(9) Remove the check next to the Ladder, check PMC parameter. Input the file name to be stored in the
"Selection of" box below.
NOTE
File name must be PARAM.PMC. If the file has another name, the ROBOT
CONTROLLER can not load it.
- 98 -
B-82614EN/02 4. FANUC LADDER-III for Robot PROGRAMMING
(10) Click <Next>. The program transfer wizard screen appears.
(11) Click <Finish>. Then PMC program is transferred to RAM in ROBOT CONTROLLER.
NOTE
Stop PMC program or perform controlled start to load PARAM.PMC when PMC
program is running. PARAM.PMC cannot be loaded during program execution.
- 99 -
5. TEACH PENDANT OPERATION B-82614EN/02
- 100 -
B-82614EN/02 5. TEACH PENDANT OPERATION
Addr.
The Addr. column displays the byte address.
Symbol
The Symbol column displays the symbol of the byte address.
7, 6, 5, 4, 3, 2, 1, 0
The 7-0 columns display the value of every bit of the address.
When the cursor is on these columns, you can set the bit to 1 by pressing the key and to 0 by pressing
the key.
Hex
The Hex column displays the value of the byte address hexadecimal format.
- 101 -
5. TEACH PENDANT OPERATION B-82614EN/02
When the cursor is on this column, you can set a new value with the numeric keys and the key. To
enter the A-F characters, press or key to select a character and press to decide.
Dec
The Dec column displays the value of the byte address in decimal format.
When the cursor is on this column, you can set a new value with the numeric keys and the key.
Comment
The Comment line displays the coil comment of the byte address.
Go to bit menu
To go to the bit menu press , BIT.
The Bit menu displays the value, symbol and comment of bit addresses. The corresponding port name is
also displayed.
Address
The Address column displays bit address.
Symbol
The Symbol column displays symbol of the bit address.
- 102 -
B-82614EN/02 5. TEACH PENDANT OPERATION
Port name
The Port name column displays the corresponding I/O port name of the bit address. The System interface
name is also displayed in this column.
If an internal relay is assigned to an I/O port, the assigned I/O port name
is also displayed in this column.
If there are multiple corresponding I/O ports, they are displayed side by side. If the length is too long to
display, the last character becomes ">".
Example: "DO[10001],GO[1]-0,DO>"
In this case, you can scroll through the port names by pressing the key and the key.
Value
The "Value" column displays the value of the bit address.
When the cursor is on this column, you can set the bit to 1 by pressing the key to 0 by pressing the
key.
Comment
The Comment line displays the coil comment of the byte address.
Go to byte menu
To go to the byte menu, press , BYTE.
- 103 -
5. TEACH PENDANT OPERATION B-82614EN/02
No.
The No. column displays the timer number. This number is specified in the TMR function command as the
"timer number" parameter.
Addr.
The Addr. column displays the corresponding PMC address. One timer uses two bytes of the T area.
Symbol
The Symbol column displays symbol of the byte address.
Data
The Data column displays the timer value in msec.
You can set a new value using the numeric keys and the key.
• Timers 1- 8 have a resolution of 48 msec.
• Timers 9- 40 have a resolution of 8 msec.
• If you enter a preset value that is not divisible by the resolution, the remainder is omitted.
Example: If you enter 60 for Timer No. 1, the value becomes 48.
Comment
The Comment column displays the coil comment of the byte address.
No.
The No. column displays the counter number. This number is specified in the CTR function commandas the
"counter number" parameter.
Addr.
The Addr. column displays the corresponding PMC address. One counter uses four bytes of the C area.
Symbol
The Symbol column displays symbol of the byte address.
- 104 -
B-82614EN/02 5. TEACH PENDANT OPERATION
Preset
The Preset column displays preset value of the counter.
You can set a new value using the numeric keys and the key.
Current
The Current column displays current value of the counter.
You can set a new value using the numeric keys and the key.
Comment
The Comment column displays coil comment of the byte address.
Grp
The Grp column displays the Data Table group number.
Address
The Address column displays the starting address of the Data Table group.
You can set a new value with the numeric keys and the key.
Number
The Number column displays the number of elements in the Data Table group.
You can set a new value with the numeric keys and key.
Access
The Access column displays the accessing mode of the Data Table group.
Byte: One element uses one byte of D area.
Word: One element uses two bytes of D area.
DWord: One element uses four bytes of D area.
To change the access mode, press the [CHOICE] key and select an item from the displayed menu.
- 105 -
5. TEACH PENDANT OPERATION B-82614EN/02
Type
The Type column displays the data type of the Data Table group.
Dec: Data is displayed as decimal format.
Hex: Data is displayed as hexadecimal format.
BCD: Data is displayed as BCD format.
To change the data type press , [CHOICE], and select an item from the displayed menu.
Protect
The Protect column displays the protection setting of the Data Table group.
Off: You can change the value of the Data Table group.
On: You can not change the value of the Data Table group.
To change the protection setting press , [CHOICE] and select an item from the displayed menu.
The protection setting is used only in the Data Table menu of the PMC menus and the Data Table monitor in
PMC programmer. You can change the value of the D area from the Byte menu or Bit menu even though
the protection setting is On.
Select Add group. A new Data table group is inserted under the current Data Table group.
The new Data Table group has the same setting as the current line.
The Data Table groups under the new Data Table group are moved down.
- 106 -
B-82614EN/02 5. TEACH PENDANT OPERATION
Protect
The Protection setting of the selected Data Table group is displayed in the upper line of the screen as
Protect:Off.
You can not change the protection setting in this menu.
No.
The No. column displays element number.
NOTE
The first element number is 1. The first number of data in Table of function
commands DSCH, DSCHB, XMOV and XMOVB is 0.
(Data number in Table) = (Element number) - 1
Addr.
The Addr. column displays the PMC address in the D area.
Symbol
The Symbol column displays the symbol of the byte address.
Data
The Data column displays the data of the element.
Data type is displayed in right side of "Data" header as "Data(Dec)".
Data is displayed in the selected Data type format.
You can set a new value with the numeric keys and the key.
When the data type is Hex, enter A-F characters by pressing the or keys to select the character
and pressing to decide.
Comment
The Comment column displays the coil comment of the byte address.
- 107 -
5. TEACH PENDANT OPERATION B-82614EN/02
Use Programmer
DISABLE : PMC programmer is not available. ("Load program", "Store program", "Backup program"
and "Run/Stop the program" are not available in PMC programmer.)
ENABLE : PMC programmer is available.
ENABLE : You can change values in the Byte menu and Bit menu of the PMC menus.
- 108 -
B-82614EN/02 5. TEACH PENDANT OPERATION
You can change values in "Signal status" of the PMC programmer.
Program size
The Program size area displays the number of steps in the PMC program. The number of steps of level 1,
level 2 and the total of level 1 and level 2 are displayed. "16384" in the right side of "Total" is the maximum
number of steps.
Scan time
The Scan time area displays the scan time of level 1 and level2. Current scan time, maximum scan time and
minimum scan time are displayed. Maximum scan time and minimum scan time are the maximum and
minimum since the last power up.
- 109 -
5. TEACH PENDANT OPERATION B-82614EN/02
5.1.10 Search
Search procedure
Use the following procedure to search for PMC addresses, symbols, comments and port names.
(1) Press , [FUNC]. The following menu is displayed.
(2) Select "1 Search", and type the search word at the "Address/Symbol/Port name:" prompt.
- 110 -
B-82614EN/02 5. TEACH PENDANT OPERATION
PMC is stopped
NOTE
You must select an external file device in file menu before this procedure. Refer
to Section 5.2 Operation in File Menu" for information on how to select an external
file device.
(3) Press YES. STDLDR.PMC is saved to the selected external file device.
NOTE
You must select an external file device in file menu before this procedure. Refer
to Section 5.2, "Operation in File Menu," for information on how to select an
external file device.
(1) Press while in the PMC menus. The following menu is displayed.
- 112 -
B-82614EN/02 5. TEACH PENDANT OPERATION
- 113 -
5. TEACH PENDANT OPERATION B-82614EN/02
NOTE
If you select Floppy disk, you must set the serial port in Port Init menu before this
procedure.
If you use MS-DOS to format the floppy disk, the following setting is needed.
- 114 -
B-82614EN/02 5. TEACH PENDANT OPERATION
(3) Press , NO. Similar messages are displayed repeatedly. Select NO until LADDER.PMC or
PARAM.PMC is displayed.
- 115 -
5. TEACH PENDANT OPERATION B-82614EN/02
All backup
The "All backup" function in the File menu can back up all files to recover the current system.
LADDER.PMC and PARAM.PMC are also saved with the "All backup" function.
NOTE
All files in the selected external file device are deleted by the following procedure.
Save STDLDR.PMC
You can not save STDLDR.PMC from the File menu.
- 116 -
B-82614EN/02 5. TEACH PENDANT OPERATION
(3) Move the cursor on the file to load, and press , LOAD. The following message is displayed.
CAUTION
If "PRIO-145 Purging flash file, please wait" is displayed when you
are loading LADDER.PMC, the robot controller system is arranging ROM data,
and it takes about a few minutes. In this case, wait until the message "PRIO-146
Flash file purge is completed" is displayed on the robot controller teach
pendant. Do not shut down power during this processing. Otherwise, corruption
of memory could occur.
All restore
The "All restore" function in the File menu of the Controlled Start mode can load all files in the selected
external file device. LADDER.PMC and PARAM.PMC are also loaded by the "All restore" function.
NOTE
All robot programs and settings are lost by the following procedure. The
programs and settings become that of the files that are restored.
(1) Turn the robot controller off. Then press and hold and keys on teach pendant, and turn on
the robot controller. The following menu is displayed.
- 117 -
5. TEACH PENDANT OPERATION B-82614EN/02
(2) Select "Controlled start", and wait a moment. The following menu is displayed.
(3) Press MENU and select "File". The File menu is displayed.
Load STDLDR.PMC
You can not load STDLDR.PMC. You must rename it to LADDER.PMC to load it.
To use the standard PMC program temporarily, set "Use standard ladder" item in the Parameters menu to
ENABLE, then turn off the controller, then turn it on again.
- 118 -
B-82614EN/02 6. BASIC COMMAND REFERENCE
(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 contact A ( ). See the ladder diagram of Fig. 6.1 and entries in
the coding sheet of Table 6.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).
- 119 -
6. BASIC COMMAND REFERENCE B-82614EN/02
(2) Inverts the status of a signal at a specified address and sets it in ST0.
(3) Is used when beginning coding with contact B ( ). See the ladder diagram of Fig. 6.2 and entries in
the coding sheet of Table 6.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.
- 120 -
B-82614EN/02 6. BASIC COMMAND REFERENCE
Table 6.2 Coding for Fig. 6.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 R2 . 2 B A·B
3 AND . NOT R3 . 3 C A·B·C
4 WRT R210 . 1 W1 output A·B·C
5 RD. NOT R5 . 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
6.3 WRT
(1) Format
(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. 6.3 and Table 6.3.
- 121 -
6. BASIC COMMAND REFERENCE B-82614EN/02
(2) Inverts the results of logical operations, that is, the status of ST0 and outputs it to a specified address.
Fig. 6.4 and Table 6.4 show an example on using the WRT.NOT instruction.
6.5 AND
(1) Format
- 122 -
B-82614EN/02 6. BASIC COMMAND REFERENCE
(2) Inverts the status of a signal at a specified address and induces a logical product.
(3) See Fig. 6.1 and Table 6.1 for an example of using the AND.NOT instruction.
6.7 OR
(1) Format
(2) Inverts the status of a signal at a specified address and induces a logical sum.
(3) See Fig. 6.1 and Table 6.1 for an example of using the OR.NOT instruction.
- 123 -
6. BASIC COMMAND REFERENCE B-82614EN/02
(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. 6.9 and Table 6.9 for an example of using the RD.STK instruction.
(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. 6.10 and Table 6.10 for an example of using the RD.NOT.STK instruction.
- 124 -
B-82614EN/02 6. BASIC COMMAND REFERENCE
(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. 6.10 and Table 6.10 for an example of using the AND.STK instruction.
- 125 -
6. BASIC COMMAND REFERENCE B-82614EN/02
(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. 6.9 and Table 6.9 or Fig. 6.10 and Table 6.10 for examples of using the OR.STK instruction.
NOTE
In Table 6.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 6.9, because
coding OR.STK or AND.STK in succession is prone to cause an error.
6.13 SET
(1) Format
(2) The result STO of the logical operation is set to a specified address. The result is held until an RST is
issued.
(3) Refer to the figure below for an example of using the SET instruction.
6.14 RST
(1) Format
(2) The result STO of the logical operation will reset the specified address.
(3) Refer to the figure below for an example of using the RST instruction.
(4) Remarks
• 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.
- 127 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.1.1 Function
Adds BCD two-or four-digit data.
7.1.2 Format
Fig.7.1.2 shows the expression format and Table 7.1.2 shows the coding format.
7.2.1 Function
This instruction performs binary addition between 1-, 2-, and 4-byte data. 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.
7.2.2 Format
7.2.4 Parameters
(a) Format specification
Specifies data length (1,2, and 4 bytes) and the format for the addend (constant or address).
- 130 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.3.1 Function
The AND instruction ANDs the contents of address A with a constant (or the contents of address B), and
stores the result at address C.
7.3.2 Format
7.3.4 Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
(b) Address A
Input data to be combined in the AND operation. 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 combined in the AND operation. 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.
7.3.5 Operation
When address A and address B hold the following data:
- 131 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.4.1 Function
The CALL functional instruction calls a subprogram. When a subprogram number is specified in CALL, a
jump occurs to the subprogram if a condition is satisfied.
7.4.2 Format
7.4.4 Parameters
(a) Subprogram number
Specifies the subprogram number of a subprogram to be called. The subprogram number must be
specified in the P address form.
Example : To call subprogram 1
- 132 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
NOTE
Be careful when using the CALL instruction with the COM, COME, JMP, or JMPE
functional instruction.
7.5.1 Function
The CALLU functional instruction calls a subprogram. When a subprogram number is specified, a jump
occurs to the subprogram.
7.5.2 Format
7.5.3 Parameters
(a) Subprogram number
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
7.6.1 Function
COD converts BCD codes into an arbitrary two- or four-digits BCD numbers. For code conversion shown
in Fig.7.6.1 the conversion input data address, conversion table, and convert data output address must be
provided.
Set a table address, in which the data to be retrieved from the conversion table is contained, to conversion
table input data address in a 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 conversion input data address number is
used to retrieve the contents of the conversion table. The number that is retrieved is output to the convert
data output address. As shown in Fig.7.6.1, when 3 is entered in the conversion input data address, the
contents 137 located at 3 in the conversion table is output to the convert data output address.
- 133 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.6.2 Format
Fig.7.6.2 shows the format for the COD instruction and Table 7.6.2 shows the coding format.
- 134 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
Table 7.6.2 Coding for Fig.7.6.2
Coding sheet Memory status of control condition
Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
Number No.
1 RD . BYT BYT
2 RD. STK . RST BYT RST
3 RD. STK . ACT BYT RST ACT
4 SUB 7 COD instruction
5 (PRM) Size of table data (1)
6 (PRM) Conversion input data address
(2)
7 (PRM) Convert data output address
(3)
8 (PRM) Convert data at table address 0
(4)
9 (PRM) Convert data at table address 1
(5)
10 : : :
11 WRT . Error output W1
For example, W1=1 results if a number exceeding the table size specified in the sequence program is
specified as the conversion input address. When W1=1, it is desirable to effect an appropriate interlock,
such as having the error lamp on the machine tool operator's panel light or stopping axis feed.
7.7.1 Function
This instruction converts data in binary format to an optional binary 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.7.7.1.
Compared to the 7.6 "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.
7.7.2 Format
Fig.7.7.2 shows the expression format of CODB.
- 136 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.7.4 Parameters
(a) Format designation
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.
7.8.1 Function
Checks whether the input value and comparison value coincide.
This instruction is available with BCD data.
7.8.2 Format
Fig.7.8.2 shows the expression format and Table 7.8.2 shows the coding format.
- 137 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
- 138 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.9.1 Function
The COM instruction controls the coils in a range up to a common line control end instruction (COME).
(See Fig.7.9.1) 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.
7.9.2 Format
Fig.7.9.2 shows the expression format of the functional instruction COM.
- 139 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.9.4 Parameters
(a) Specify 0. (Range specification only)
NOTE
1 COM instruction operation
Suppose the following Ladder diagram including a COM instruction exists:
Then, for the coil "OUTx," this Ladder diagram has the same effect as the
following Ladder diagram:
7.9.5 Caution
Do not create a program in which a combination of JMP and JMPE instructions are used to cause a jump to
and from a sequence between the COM and COME instructions; the ladder sequence might not be able to
operate normally after the jump.
- 140 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.10.1 Function
This instruction indicates the division in the region specification of the
common line control instruction (COM).
This instruction cannot be used alone. It must be used together with the COM instruction.
7.10.2 Format
Fig.7.10.2 shows the expression format of COME
7.11.1 Function
Compares input and comparison values.
7.11.2 Format
Fig.7.11.2 shows the expression format and Table 7.11.2 shows the coding format.
- 141 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.11.5 Parameter
The input data can be specified as either a constant or the address storing it. The selection is made by a
parameter of format specification.
- 142 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.12.1 Function
This instruction compares 1, 2, and 4-byte binary data with one another. 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.
7.12.2 Format
Fig.7.12.2 shows the expression format of COMPB.
7.12.4 Parameters
(a) Format specification
Specify data length (1,2, or 4 bytes) and format for the input data ('constants data' or 'address data').
7.13.1 Function
CTR is used as a counter. Counters are used for various purposes.
Numerical data such as preset values and count values can be used with either BCD format or binary format
by a system parameter.
NOTE
In BCD format, every four bits can be equal to 0-9. If the four bits equal A-F, the
value is incorrect for BCD format. When the CTR function is selected to use BCD
format, if the preset value or the current value of the CTR has an incorrect value,
the CTR function command does not work correctly.
- 144 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.13.2 Format
Fig.7.13.2 show the expression format and Table 7.13.2 show the coding format.
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.
(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.
WARNING
If the counter number is duplicated, or falls outside the valid range, the operation
will be unpredictable.
[Example 2]
Use of the counter to store the position of a rotor. (See Fig.7.13.6 (b))
- 147 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
Fig.7.13.6 (b) shows a ladder diagram for a counter to store the position of a rotor of Fig.7.13.6 (c).
(1) Control conditions
(a) Count start number
When a 12-angle rotor shown in Fig.7.13.6 (c) 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 current 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.
(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.7.13.6 (c), 12 must be preset in the
counter. It is set from the PMC screen.
(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 PMC screen. 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
7.14.1 Functions
The numeric data of this counter is binary. This counter has the 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, turn on the output.
- 148 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
(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.
7.14.2 Format
Fig.7.14.2 and Table 7.14.2 show the expression format and the coding format, respectively.
NOTE
When field R (Register) is specified as the counter register address, the counter
starts with count value "0" after the controller is turned on.
7.15.1 Function
Converts binary-code into BCD-code and vice versa.
7.15.2 Format
Fig.7.15.2 shows the expression format and Table 7.15.2 shows the coding format.
- 150 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
- 151 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.16.1 Function
This instruction converts 1, 2, and 4-byte binary code into BCD code or vice versa. To execute this
instruction, you must preserve the necessary number of bytes in the memory for the conversion result output
data.
7.16.2 Format
Fig.7.16.2 shows the expression format of DCNVB
7.16.4 Parameters
(a) Format specification
Specify data length (1,2, or 4 bytes).
Use the first digit of the parameter to specify byte length.
1 : one byte
- 152 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
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.
7.17.1 Function
Outputs 1 when the two-digit BCD code signal is equal to a specified number, and 0 when not.
7.17.2 Format
Fig.7.17.2 and Table 7.17.2 show the expression format and Table 7.17.2 show the coding format.
- 153 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
(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.
- 154 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
Table 7.17.6 Coding for Fig.7.17.6
Coding sheet
Step Address Bit
Instruction Remarks
Number Number Number
1 RD R 7.0
2 AND R 1 .3
3 DEC R10
4 (PRM) 3011
5 WRT R228 . 1 M30X
7.18.2 Format
- 155 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.18.4 Parameters
(a) Format specification
Set the size of code data to the 1st digit of the parameter.
0001 : Code data is in binary format of 1 byte length
0002 : Code data is in binary format of 2 byte length
0004 : Code data is in binary format of 4 byte length
(b) Code data address
specifies an address at which code data is stored.
(c) Number specification decode designation
Specifies the first of the 8 continuous numbers to be decoded.
(d) Decode result address
Specifies an address where the decoded result shall be output.
A one-byte area is necessary in the memory for the output.
7.19.1 Function
The DIFD instruction sets the output signal to 1 for one scanning period on a falling edge of the input signal.
7.19.2 Format
7.19.4 Parameters
(a) Falling edge number
Specify the values from 1 to 256.
- 156 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
WARNING
If the same number is used for another DIFD instruction or a DIFU instruction in
one ladder diagram, operation is not guaranteed.
7.19.5 Operation
7.20.1 Function
The DIFU instruction sets the output signal to 1 for one scanning cycle on a rising edge of the input signal.
7.20.2 Format
7.20.4 Parameters
(a) Rising edge number
Specify the values from 1 to 256.
CAUTION
If the same number is used for another DIFU instruction or a DIFD instruction in
one Ladder diagram, the operation is not guaranteed to work correctly.
- 157 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.20.5 Operation
7.21.1 Function
Divides BCD two-or four-digit data. Remainders are discarded.
7.21.2 Format
Fig.7.21.2 shows the expression format and Table 7.21.2 shows the coding format.
- 158 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.22.1 Function
This instruction divides binary data items 1, 2, and 4 byte in length. In the operation result register (R9000),
operation data is set and the remainder is set to R9002 and so forth.
A required number of bytes is necessary to store the dividend, divisor, and the result (quotient).
- 159 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.22.2 Format
7.22.4 Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the divisor (constant or address).
- 160 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.23.1 Function
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.
NOTE
The data table heading address specified in the parameter of this functional
instruction is 0 as table internal number.
7.23.2 Format
Fig.7.23.2 shows the expression format and Table 7.23.2 shows the coding format.
- 161 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
- 162 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.24.1 Function
Like the DSCH instruction, this function instruction instructs a 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 ROM.
- 163 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.24.2 Format
7.24.4 Parameter
(a) Format designation
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 (head number 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.
- 164 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.25.1 Function
The END functional instruction designates the end of a ladder program. END must be placed at the end of
the ladder program.
7.25.2 Format
7.26.1 Function
Must be specifies once in a sequence program, either at the end of the Level 1 program, or at the beginning
of the Level 2 program when there is no Level 1 program.
7.26.2 Format
Fig. 7.26.2 shows the format of END1 and Table 7.26.2 shows the coding.
7.27.1 Function
Specify at the end of the Level 2 program.
- 165 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.27.2 Format
Fig.7.27.2 shows the expression format and Table 7.27.2 shows the coding format.
7.28.1 Function
The EOR instruction exclusive-ORs the contents of address A with a constant (or the contents of address B),
and stores the result at address C.
7.28.2 Format
7.28.4 Parameters
(a) Format specification
Specifies a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
- 166 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
(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. 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.
7.28.5 Operation
When address A and address B hold the following data:
7.29.1 Function
The JMP instruction causes a departure from the normal sequence to 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.7.29.1) Specify 0 as the number of coils, and specify a range to be skipped using the jump end
instruction.
When the jump end instruction is not specified, the message JUMP FUNCTION MISSING is displayed.
- 167 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.29.2 Format
Fig.7.29.2 shows the expression format of the functional instruction JMP.
7.29.4 Parameters
(a) Specify 0. (Range specification only)
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. This instruction can reduce the Ladder execution period (scan time).
7.29.5 Caution
Do not create a program in which a combination of JMP and JMPE instructions is used to cause a jump to
and from a sequence between the COM and COME instructions; the ladder sequence may not be able to
operate normally after the jump.
- 168 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
Do not skip TMR, TMRB, and TMRC by JMP, JMPE, JMPB, JMPC, and LBL. If TMR, TMRB, or TMRC
are skipped, they might not work correctly after this. You need to cycle power to recover this situation.
7.30.1 Function
The JMPB functional instruction transfers control to a Ladder immediately 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.
As compared with the JMP functional instruction, JMPB has the following additional functions:
• More than one jump instruction can be coded for the same label.
• Jump instructions can be nested.
- 169 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.30.2 Format
7.30.4 Parameters
(a) Label specification
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.
NOTE
For the specifications of this instruction, see Section 2.8.2 "Restrictions".
When this instruction is used to jump back to a previous instruction, care must be
taken not to cause an infinite loop.
7.31.1 Function
The JMPC functional instruction returns control from a subprogram to the main program. Be sure to code
the destination label in the main program. The specifications of this JMPC functional instruction are the
same as the JMPC functional instruction, except that JMPC always returns control to the main program.
• More than one jump instruction can be coded for the same label.
- 170 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.31.2 Format
7.31.4 Parameters
(a) Label specification
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.
NOTE
When this instruction is used to jump back to a previous instruction, care must be
taken not to cause an infinite loop.
7.32.1 Function
This instruction indicates the division in the region specification of the jump instruction (JMP).
It cannot be used alone. It must be used together with the JMP instruction.
7.32.2 Format
7.33.1 Function
The LBL functional instruction specifies a label in a Ladder program. It specifies the jump destination for
the JMPB and JMPC functional instructions. (See the JMPB and JMPC functional instructions.)
- 171 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.33.2 Format
7.33.3 Parameters
(a) Label specification
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).
7.34.1 Function
The MOVB instruction transfers 1-byte data from a specified source address to a specified destination
address.
7.34.2 Format
- 172 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.35.1 Function
The MOVE instruction ANDs logical multiplication data and input data, and outputs the results 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.35.2 Format
Fig.7.35.2 shows the expression format and Table 7.35.2 shows the coding format.
7.36.1 Function
The MOVN instruction transfers data consisting of an arbitrary number of bytes from a specified source
address to a specified destination address.
- 174 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.36.2 Format
7.36.4 Parameters
(a) Number of bytes to be transferred
Specify the number of bytes to be transferred. An odd number can also be specified. A number from
1 to 200 can be specified.
7.37.1 Function
This instruction ORs the input data and the logical sum data and transfers the result to the destination.
7.37.2 Format
Fig.7.37.2 shows the expression format of MOVOR.
- 175 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.37.4 Parameters
(a) Input data address
Specifies the address for the input data.
(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.
7.38.1 Function
Only MOVW can access group I/O and analog I/O (F0-255 and G0-255). The other function command and
all basic commands can not access to F0-255 and G0-255.
NOTE
When you specify F0-255 or G0-255 in MOVW, please specify an even address
of F0-255 or G0-255. If you specify an odd address of F0-255 or G0-255 in
MOVW, the PMC program causes error in R-J3.
7.38.2 Format
- 176 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.39.1 Function
Multiplies BCD two-or four-digit data. The product must also be BCD two-or four-digit data.
7.39.2 Format
Fig.7.39.2 shows the expression format and Table 7.39.2 shows the coding format.
7.40.1 Function
This instruction multiplies 1-, 2-, and 4-byte binary data items. 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 multiplicand, multiplier, and the result (product).
7.40.2 Format
- 178 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
ACT=0: Do not execute MULB. W1 does not change now.
ACT=1: Execute MULB.
7.40.4 Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the multiplier (constant or address).
7.41.1 Function
The NOT instruction inverts each bit of the contents of address A, and stores the result at address B.
- 179 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.41.2 Format
7.41.4 Parameters
(a) Format specification
Specify a data length (1, 2, or 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.
7.41.5 Operation
When address A holds the following data:
- 180 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.42.1 Function
Defines BCD constants, when required. In this case, constants are defined with this instruction.
7.42.2 Format
Fig.7.42.2 shows the expression format and Table 7.42.2 shows the coding format.
7.42.4 Constant
Sets the constant as the number of digits specified in Item (a) in Subsection 7.42.3.
- 181 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.43.1 Function
This instruction defines 1, 2, or 4-bytes long binary constant. Data entered in decimal during programming
is converted into binary data during program execution. The binary data is stored in the specified memory
address(es).
7.43.2 Format
7.43.4 Parameters
(a) Format specification
Specifies data length (1, 2, or 4 bytes).
Use the first parameter digit to specify byte length:
0001 : Binary data of 1 byte length
0002 : Binary data of 2 byte length
0004 : Binary data of 4 byte length
(b) Constant
Defined constants in decimal format. Set a constant data within the effective range for the byte length
which is set in "(a) Format specification".
(c) Constant output address
Specifies the address of the area for output of the binary data. The memory of the number of bytes
which is set in "(a) Format specification" is necessary.
7.44 LOGICAL OR
7.44.1 Function
The OR instruction ORs the contents of address A with a constant (or the contents of address B), and stores
the result at address C.
- 182 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.44.2 Format
7.44.4 Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
(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.
7.44.5 Operation
When address A and address B hold the following data:
- 183 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.45.1 Function
This instruction checks the parity of code signals, and outputs an error if an abnormality is detected.
Specifies either an even- or odd-parity check.
Only one-byte (eight bits) of data can be checked.
7.45.2 Format
Fig.7.45.2 shows the expression format and Table 7.45.2 shows the coding format.
NOTE
For bits 0 to 7, bits other than those for the parity check must be 0.
7.46.1 Function
Controls rotors, such as the tool post, ATC, rotary table, etc., and is used 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
- 185 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.46.2 Format
Fig.7.46.2 shows the expression format and Table 7.46.2 shows the coding format.
- 186 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
- 187 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.47.1 Function
This instruction is used to control rotating elements including the tool post, ATC (Automatic Tool Changer),
rotary table, etc. In the ROT command 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.
7.47.2 Format
Fig.7.47.2 shows the expression format of ROTB
- 188 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.47.4 Parameters
(a) Format
Specifies data length (1, 2, or 4 bytes). Use the first digit of the parameter to specify the number of
bytes.
1 : 1 byte
2 : 2 bytes
4 : 4 bytes
All numerical data (number of indexed positions for the rotating elements, current address, etc.) are in
the binary format.
Therefore, they require the memory space specified by data length.
(b) Rotating element indexed position address
Specifies the address containing the number of rotary element positions to be indexed.
(c) Other parameters
For the functions and use of the other parameters, see Section 7.46, "Rotation Control."
- 189 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
- 190 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.48.1 Function
This instruction shifts 2-byte (16-bit) data by a bit to the left or right.
Note 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.
7.48.2 Format
CONT=1:
Shift is the same as above, but 1s are set to shifted bits.
- 191 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.48.4 Parameters
(a) Shift data addresses
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.48.5 W1
W1=0 : "1" was not shifted out because of the shift operation.
W1=1 : "1" was shifted out because of the shift operation.
7.49 SP (SUBPROGRAM)
7.49.1 Function
The SP functional instruction is used to create a subprogram. A subprogram number is specified as a
subprogram name. SP is used with the SPE functional instruction to specify the subprogram range.
7.49.2 Format
- 192 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.49.3 Parameters
(a) Subprogram number
Specifies the subprogram number of a subprogram to be coded following this instruction. The
subprogram number must be specified by P1 to P512. The specified subprogram number must be
unique within the sequence program.
Example: When the subprogram number is set to 1
7.50.1 Function
The SPE functional instruction is used to create a subprogram. SPE is 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.
7.50.2 Format
7.51.1 Function
This instruction subtracts BCD two-or four-digit data.
7.51.2 Format
Fig.7.51.2 shows the expression format and Table 7.51.2 shows the coding format.
- 193 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.51.4 Reset
RST=0 : Release reset.
RST=1 : Resets error output W1, that is, sets W1 to 0.
- 194 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.52.1 Function
This instruction subtracts one data from another, both data being in the 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).
7.52.2 Format
7.52.4 Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the subtrahend (constant or address).
- 195 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.53.1 Function
7.53.2 Format
Fig.7.53.4 (a) shows description format and Table 7.53.4 shows coding format.
- 196 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
Variation in time is caused only by the operation time of the Timer Instruction. For example, when a timer
instruction is used in the second 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.
- 197 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
7.53.7 Parameter
Set the timer number.
WARNING
If the timer number is duplicated, or falls outside the valid range, the operation will
be unpredictable.
7.54.1 Function
This timer is used as a fixed on-delay timer.
Time present in this fixed timer is written to ROM together with the sequence program, so the timer time
once set cannot be changed unless the whole ROM is exchanged.
7.54.2 Format
The format is expressed as follows (Fig.7.54.2).
7.54.5 Parameter
(a) Timer number
Sets timer number (1 to 100) of the fixed timers.
- 198 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
WARNING
If the same timer number is used more than once or if a timer number out of the
valid range is used, the operation is unpredictable.
(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 remainder is omitted.
For example, when set 38 ms, 38=8 4+6, the remainder of 6 is omitted, and the preset time becomes 32
ms.
The range of the preset time is 8 to 262,136 ms.
7.55.1 Function
This is the on-delay timer.
A timer setting time is set at an arbitrary address. The selection of an address determines whether the timer
is a variable timer or fixed timer. No limit is imposed on the number of timers provided areas can be
allocated.
7.55.2 Format
Fig.7.55.2 and Table 7.55.2 show the expression format and the coding format, respectively.
- 199 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
The timer set time is converted into the binary value in 8 ms (48 ms) units.
The timer set time is shown as follows:
8 ms 8 to 262,136 ms
48 ms 48 to 1,572,816 ms
1s 1 to 32,767s
10 s 1 to 327,670s
1m 1 to 32,767m
- 200 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.56.1 Function
Reads or rewrites the contents of the data table. Like the DSCH 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.
7.56.2 Format
Fig.7.56.2 shows the expression format and Table 7.56.2 shows the coding format.
- 201 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
- 202 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.57.1 Function
Like the XMOV instruction of Section 7.56, this function instruction instructs reading and rewriting of data
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.
(a) Read data from data table
- 203 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
- 204 -
B-82614EN/02 7. FUNCTION COMMAND REFERENCE
7.57.2 Format
7.57.4 Parameters
(a) Format designation
Specifies data length. Specify byte length in the first digit of the parameter.
0001 : 1-byte long data
0002 : 2-byte long data
0004 : 4-byte long data
(b) Storage address of number of data table elements
Set to the memory at the byte length which sets the number of the data table elements in "(a) Format
specification" and sets the address to this parameter. The effective range of number of data table
elements is as follows with the byte length which set in "(a) Format specification".
1 byte length : 1 to 255
2 byte length : 1 to 32767
(Actually, set a value below the size of the D area.)
4 byte length : 1 to 99999999
(Actually, set a value below the size of the D area.)
(c) Data table head address
Sets head address in the data table.
The memory of (byte length) × (number of data table elements) which was set in "(a) Format
specification" and "(b) Storage address of number of data table elements" is necessary.
(d) Input/Output data storage address
In case of the reading, set the address of the memory which stores a reading result. In case of the
writing, set the address of the memory which stores a writing result. The memory with the byte length
which set in "(a) Format specification" is necessary.
(e) Index storage address
- 205 -
7. FUNCTION COMMAND REFERENCE B-82614EN/02
Set the address of the memory in which an index value is stored. The memory with the byte length set
in "(a) Format specification" is necessary. The effective range of number of data in index is as follows
according to the byte length set in "(A) Format specification".
Actually, set the value which is smaller than the value to set in "(b) Storage address of number of data
table elements" to the index.
When setting an index value above the value to set in "(b) Storage address of number of data table
elements", it causes an error output W1=1 in instruction execution.
1 byte length : 0 to 254
2 byte length : 0 to 32766
4 byte length : 0 to 99999998
- 206 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
- 207 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
NOTE
Rack 33 is an internal rack. This does not correspond to any external devices.
8.1 X
The X area corresponds to the digital input ports of the robot controller.
The PMC uses this area to input information from external I/O devices.
NOTE
The X area can not be used in any function command. If you specify the X area in
a function command, the PMC program causes an error in the robot controller,
and the PMC program can not be started.
To use the X area in a function command, copy the value of this area to internal
relay by basic command, and use the internal relay in a function command.
Xa.b ↔ DI[c]
a×8+b+1=c
- 208 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
- 209 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
- 210 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
Xa.b ↔ UI[c]
( a - 1000 ) × 8 + b + 1 = c
Xa.b ↔ WI[c]
( a - 1005 ) × 8 + b + 1 = c
- 211 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
Xa.b ↔ WSTI[c]
( a - 1010 ) × 8 + b + 1 = c
Xa.b ↔ LDI[c]
( a - 1015 ) × 8 + b + 1 = c
Xa.b ↔ RI[c]
( a - 1020 ) × 8 + b + 1 = c
- 212 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
Xa.b ↔ SI[c]
( a - 1025 ) × 8 + b = c
8.2 Y
The Y area corresponds to the digital output ports of the robot controller. The PMC uses this area to output
information to external I/O devices.
NOTE
The Y area can not be used in any function command. If you specify Y area in a
function command, the PMC program causes an error in the controller, and the
PMC program can not be started.
To use the Y area in a function command, copy the value of this area to internal
relay by basic command, and use the internal relay in a function command.
Ya.b ↔ DO[c]
a×8+b+1=c
- 214 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
- 215 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
Ya.b ↔ UO[c]
( a - 1000 ) × 8 + b + 1 = c
Ya.b ↔ WO[c]
( a - 1005 ) × 8 + b + 1 = c
- 216 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
Ya.b WSTO[c]
( a - 1010 ) × 8 + b + 1 = c
Ya.b ↔ LDO[c]
( a - 1015 ) × 8 + b + 1 = c
Ya.b ↔ RO[c]
( a - 1020 ) × 8 + b + 1 = c
- 217 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
Ya.b ↔ SO[c]
( a - 1025 ) × 8 + b + 1 = c
8.3 F
The F0-127 area corresponds to the robot controller group input (GI), and the F128-255 area corresponds to
the analog input (AI). One port of GI and AI uses two bytes of the F area. An even address corresponds to
the upper byte, and an odd address corresponds to the lower byte.
NOTE
F0-255 can be used by the function command MOVW only. If the other function
command or any basic command uses F0-255, the PMC program causes an
error, and the PMC program can not be started.
You must specify an even address of the F0-255 area for the function command
MOVW. If you specify an odd address of F0-255 for the function command
MOVW, the PMC program causes an error.
To use the F0-255 area in a basic command or other function command, copy the
value of this area to the internal relay by using MOVW, and use the internal relay
in the basic command or the function command.
NOTE
The F1000-1255 area is for system interface input. See Section 8.3.3
8.3.3 F1000-F1255
This area is used to interface between the robot controller system and the PMC program. The PMC program
can read the robot controller system status by using this area.
Refer to Section 1.5.7, "System control by PMC program (System interface)" for details about the system
interface.
You can assign the F1000.0-F1003.7 area to DI, DO, GI, GO, UI and UO as rack 33, slot 6 start point 1-32.
The correspondence of the F area address and start point is shown below.
- 219 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
8.4 G
The G0-127 area corresponds to the robot controller group output (GO), and the G128-255 area
corresponds to the analog output (AO). One port of GO and AO uses two bytes of the G area. An even
address corresponds to the upper byte, and an odd address corresponds to the lower byte.
G0-255 can be used by the function command MOVW only. If the other function
command or any basic command uses G0-255, the PMC program causes an
error, and the PMC program can not be started.
You must specify an even address of the G0-255 area for the function command
MOVW. If you specify an odd address of G0-255 for the function command
MOVW, the PMC program causes an error.
To use the G0-255 area in a basic command or other function command, copy the
value of this area to the internal relay by using MOVW, and use the internal relay
in the basic command or other function command.
- 220 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
8.4.3 G1000-G1255
This area is used to interface between the robot controller system and the PMC program. The PMC program
can control the robot controller system by using this area.
Refer to Section 1.5.7 (null)"System control by PMC program (System interface)" for details about the
system interface.
You can assign the G1000.0-G1003.7 area to DI, DO, GI, GO, UI and UO as rack 33, slot 7 start point 1-32.
The correspondence of the G area address to start point is shown below.
- 221 -
8. PMC ADDRESS CORRESPONDENCE B-82614EN/02
8.5 R
8.5.1 R0-R1499
This area is the general internal relay. The value of the R area becomes 0 when the controller is turned off
whether the power failure recovery is enabled or disabled.
The R area is accessed at DO[11001]-DO[23000]. The correspondence of the R area address to the DO
index is shown below.
Ra.b ↔ DO[c]
a × 8 + b + 11001 = c
8.5.2 R9000-R9117
This area is the PMC system area.
This area does not correspond to any I/O port, and this area can not be assigned to I/O port.
Refer to Section 1.5.9, "PMC system area" for details about the PMC system area.
8.6 K
8.6.1 K0-K19
This area is the keep relay. The value of the K area is kept when the controller is turned off whether power
failure recovery is enabled or disabled.
The K area is accessed at DO[10001]-DO[10160]. The correspondence of the K area address to the DO index
is shown below.
Ka.b ↔ DO[c]
a × 8 + b + 10001 = c
- 222 -
B-82614EN/02 8. PMC ADDRESS CORRESPONDENCE
8.7 D
8.7.1 D0-D2999
The D area is the Data Table. The value of the D area is kept when the controller is turned off whether
power failure recovery is enabled or disabled.
The D area can be accessed as GO[10001]-GO[11500]. Every GO port corresponds to two bytes of the D
area. The correspondence of the D area address to the GO index is shown below.
Da (Upper byte), Db (Lower byte) GO[c]
a = (( c - 10001 ) × 2 ) + 1
b = (( c - 10001 ) × 2 )
8.8 T
8.8.1 T0-T79
The T area is for the timer data of the function command TMR(SUB3). The value of the T area is kept when
the controller is turned off whether power failure recovery is enabled or disabled.
You can read and set timer data in Timer menu, and you do not need to read and set the T area directly.
You can assign the T area to DI, DO, GI, GO, UI and UO as rack 33, slot 4 start point 1-640. The
correspondence of the T area address to the start point is shown below.
Ta.b ↔ Start point c
a×8+b+1=c
8.9 C
8.9.1 C0-C79
The C area is for the preset data and current data of the function command CTR(SUB5). The value of the C
area is kept when the controller is turned off whether power failure recovery is enabled or disabled.
You can read and set preset data and current data in the Counter menu, and you do not need to read and set
the C area directly.
You can assign the C area to DI, DO, GI, GO, UI and UO as rack 33, slot 5 start point 1-640. The
correspondence of the C area address to the start point is shown below.
Ca.b ↔ Start point c
a×8+b+1=c
- 223 -
9. INTEGRATED PMC ERROR CODES B-82614EN/02
NOTE
x in the above WARN stands for the function block number
(Example: DISP = 49)
- 224 -
B-82614EN/02 9. INTEGRATED PMC ERROR CODES
NOTE
x in the above WARN stands for the address number (Example:
R3.4)
NOTE
x in the above WARN stands for the address number (Example:
R3.4)
NOTE
x in the above WARN stands for the address number (Example: F3).
SUBy in the above WARN stands for the function block number
(Example: DISP = 49, SUB 49)
PRIO-139 WARN Invalid CNC addr x(hex) (x stands for the CNC address)
[Cause] Specified CNC address is invalid.
[Remedy] Check the PMC type of FAPT LADDER II.
- 226 -
B-82614EN/02 INDEX
INDEX
Countup Output (W1) ..................................................146
<A> Count-up Output (W1) .................................................150
ADD (Addition) ...........................................................128 Creating a New PMC Program.......................................45
ADDB (Binary Addition).............................................129 Creating a Program ........................................................32
Addend (Address) ........................................................129 CREATING PMC PROGRAM......................................72
Address Storing Input/Output Data ..............................203 CTR (Counter) .............................................................144
Address Storing the Table Internal Number.................203 CTRC (Counter)...........................................................148
AND.............................................................................122 Current Position Address .............................................187
AND. NOT...................................................................123
AND. STK ...................................................................125 <D>
Applications ...................................................................28 D 223
D0-D2999 ....................................................................223
<B> Data Format of Addend................................................129
BASIC COMMAND REFERENCE ............................119 Data Format of Multiplier ............................................178
BASIC COMMANDS......................................................3 Data Format of Subtrahend ..........................................194
Bit Menu ......................................................................102 Data Table......................................................................11
Byte Menu....................................................................101 Data Table Control Data Menu ....................................105
Data Table Head Address...................................... 163,203
<C> Data Table Menu..........................................................107
C 223 DCNV (Data Conversion)............................................150
C0-C79 .........................................................................223 DCNVB (Extended Data Conversion) .........................152
CALL (Conditional Subprogram Call).........................132 DEC (Decode)..............................................................153
CALLU (Unconditional Subprogram Call)..................133 DECB (Binary Decoding) ............................................155
Caution..................................................................140,168 Decode Specification ...................................................154
Check PMC Program (On-line Monitor)........................54 DIFD (Falling Edge Detection)....................................156
COD (Code Conversion)..............................................133 Difference Output Address ..........................................195
CODB (Binary Code Conversion) ...............................136 DIFU (Rising Edge Detection).....................................157
Code Signal Address ....................................................154 DIV (Division) .............................................................158
COIN (Coincidence Check) .........................................137 DIVB (Binary Division)...............................................159
COM (Common Line Control).....................................139 Dividend Address.........................................................159
COME (Common Line Control End) ...........................141 Divisor (Address).........................................................159
COMP (Comparison) ...................................................141 Divisor Data Format Designation ................................159
Comparison Data Address.....................................138,142 DSCH (Data Search) ....................................................161
Comparison Result Output ....................................139,143 DSCHB (Binary Data Search) .....................................163
COMPB (Comparison Between Binary Data)..............143
Compiling a PMC Program.......................................51,76 <E>
CONNECTING FANUC LADDER-III for Robot Editting a PMC Program...........................................49,75
TO ROBOT CONTROLLER .....................................68 END (End of a Ladder Program) .................................165
Connection Between Robot Controller And Fapt END1 (1st Level Sequence Program End)...................165
Ladder-II.....................................................................43 END2 (2nd Level sequence program End) ..................165
Constant .......................................................................181 EOR (Exclusive or)......................................................166
Constant Output Address .............................................181 Error Output ..................................... 129,159,178,195,203
Control Condition...........................................154,197,200 Error Output (W1)........................... 130,135,137,151,153,
Control Conditions ..... 128,129,131,132,135,137,138,139, 160,179,185,196,206
142,143,145,149,151,152,156,157,159,160,162,1 Ethernet Connection.......................................................70
64,166,168,173,175,176,177,178,180,181,182, Example of Using the MOVE Instruction ....................174
183,184,187,189,191,194,195,198,202,205 Example of Using the PARI Instruction.......................185
Control Conditions (ACT) ....................................170,171 Example of Using the ROTB Instruction .....................189
Conversion Data Table..........................................136,137 Examples of Structured Programming ...........................27
Conversion Input Data Address ...................................135 Examples of Using the Counter ...................................146
Convert Data Output Address ......................................135 Execution Command............................................. 174,194
Counter Menu ..............................................................104 Execution Method ..........................................................31
Counter Number...........................................................146 Execution Procedure of Sequence Program ...................23
Counter Preset Value Address......................................150 Exporting LADDER.PMC using FANUC
Counter Register Address.............................................150 LADDER-III for Robot ..............................................88
i-1
INDEX B-82614EN/02
i-2
B-82614EN/02 INDEX
PMC PROGRAM MONITORING (ONLINE STORE/LOAD PMC PROGRAM AND
MONITOR) ................................................................81 PARAMETERS .........................................................88
PMC Setting Parameters (K17-K19)..............................19 Storing PARAM.PMC by FANUC LADDER-III
PMC System Area (R9000-R9117)................................19 for Robot ....................................................................96
Precision of the Timer ..................................................199 SUB (Subtraction)........................................................193
Product Output Address ...............................................178 SUBB (Binary Subtraction) .........................................195
PROGRAMMING WITH FAPT LADDER-II...............43 Subprogramming and Nesting........................................30
Subtrahend (Address)...................................................195
<Q> Sum Output Address ....................................................129
Quotient Output Address..............................................159 Summand Address .......................................................129
Symbols and Comments...................................................7
<R> System Control by PMC Program (System
R 222 Interface) ....................................................................15
R0-R1499 .....................................................................222
R9000-R9117 ...............................................................222 <T>
RD ................................................................................119 T 223
RD. NOT......................................................................120 T0-T79 .........................................................................223
RD. NOT. STK ............................................................124 TEACH PENDANT OPERATION .............................100
RD. STK ......................................................................123 Timer Accuracy .................................................... 197,200
Remainder Output Address ..........................................161 Timer Menu .................................................................103
Repetitive Operation ......................................................24 Timer Register Address................................................200
Reset.............................................................................194 Timer Relay (TMB{{{)...........................................198
Restrictions.....................................................................37 Timer Relay (TM{{).......................................... 197,201
ROT (Rotation Control) ...............................................185 Timer Set Time Address ..............................................200
Rotating Direction Output (W1)...................................187 Title Menu....................................................................109
ROTB (Binary Rotation Control).................................188 TMR (Timer) ...............................................................196
Rotor Indexing Number ...............................................187 TMRB (Fixed Timer)...................................................198
RS-232C Connection .....................................................68 TMRC (Timer).............................................................199
RST ..............................................................................127 Transfer PMC program ..................................................52
Run/Stop PMC ........................................................57,111 TRANSFERRING PMC PROGRAM............................77
RUNNING OR STOPPING PMC PROGRAM .............83
<U>
<S> Update Timing of Signals ..............................................25
SAFETY........................................................................s-1
Save LADDER.PMC and PARAM.PMC ....................112 <W>
Save LADDER.PMC, PARAM.PMC ..........................115 W1................................................................................192
Save STDLDR.PMC ....................................................112 W1 (Decoding Result Output)......................................154
Save/Load PMC Program and PMC Parameters .......21,61 Writing Pmc Program to F-rom .....................................83
Saving LADDER.PMC Using FAPT Writing PMC Program to ROM .....................................58
LADDER-II................................................................61 WRT.............................................................................121
Saving PARAM.PMC Using FAPT LADDER-II ..........64 WRT. NOT ..................................................................122
Search...........................................................................110
Search Data Address ....................................................163 <X>
Search Data Presence/Absence Output ........................163 X 208
Search Result (W1) ......................................................164 X0-X127 ↔ DI[1]-DI[1024] (General Digital
Search Result Output Address......................................163 Input) ........................................................................208
SEQUENCE PROGRAM ..............................................23 X1000-X1004 ↔ UI[1]-UI[40] (User Operator
Sequence Program Structuring.......................................27 Panel Inputs).............................................................211
SET ..............................................................................126 X1005-X1009 ↔ WI[1]-WI[40] (Weld Digital
Setting Timers ..............................................................197 Inputs) ......................................................................211
SFT (Shift Register) .....................................................191 X1010-X1014 ↔ Wsti[1]-Wsti[40] (Wire Stick
Size of Table Data........................................................135 Inputs) ......................................................................212
SP (Subprogram) ..........................................................192 X1015-X1019 ↔ LDI[1]-LDI[40] (Laser Digital
SPE (End of a Subprogram) .........................................193 Inputs) ......................................................................212
Specifications ............................................................30,34 X1020-X1024 ↔ RI[1]-RI[40] (Robot Digital
Standard PMC Program .................................................21 Inputs) ......................................................................212
Status Menu..................................................................109 X1025-X1026 ↔ SI[1]-SI[16] (Standard
Operator Panel Inputs)..............................................213
i-3
INDEX B-82614EN/02
<Y>
Y 213
Y0-Y127 ↔ DO[1]-DO[1024] (General Digital
Output) .....................................................................213
Y1000-Y1004 ↔ UO[1]-UO[40] (User Operator
Panel Outputs) ..........................................................216
Y1005-Y1009 ↔ WO[1]-WO[40] (Weld Digital
Outputs)....................................................................216
Y1010-Y1014 ↔ WSTO[1]-WSTO[40] (Wire
Stick Outputs)...........................................................217
Y1015-Y1019 ↔ LDO[1]-LDO[40] (Laser
Digital Outputs)........................................................217
Y1020-Y1024 ↔ RO[1]-RO[40] (Robot Digital
Outputs)....................................................................217
Y1025-Y1026 ↔ SO[1]-SO[16] (SOP Outputs)..........218
i-4
Revision Record
FANUC Robot series R-30iA CONTROLLER Integrated PMC OPERATOR'S MANUAL (B-82614EN)
01 Mar.,2007
* B - 8 2 6 1 4 E N / 0 2 *