B64393en PDF
B64393en PDF
B64393en PDF
PMC
PROGRAMMING MANUAL
B-64393EN/02
• No part of this manual may be reproduced in any form.
• All specifications and designs are subject to change without notice.
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”.
This manual contains the program names or device names of other companies, some of
which are registered trademarks of respective owners. However, these names are not
followed by ® or ™ in the main body.
B-64393EN/02 DEFINITION OF WARNING, CAUTION, AND NOTE
WARNING
Applied when there is a danger of the user being injured or when there is a
danger of both the user being injured and the equipment being damaged if the
approved procedure is not observed.
CAUTION
Applied when there is a danger of the equipment being damaged, if the
approved procedure is not observed.
NOTE
The Note is used to indicate supplementary information other than Warning and
Caution.
s-1
B-64393EN/02 TABLE OF CONTENTS
TABLE OF CONTENTS
DEFINITION OF WARNING, CAUTION, AND NOTE .................................s-1
1 OVERVIEW OF PMC .............................................................................. 1
1.1 WHAT IS PMC?............................................................................................. 1
1.1.1 Basic Configuration of PMC ....................................................................................1
1.1.2 I/O Signals of PMC ..................................................................................................1
1.1.3 PMC Signal Addresses .............................................................................................2
1.2 WHAT IS LADDER LANGUAGE? ................................................................. 5
1.2.1 Ladder Diagram Format ...........................................................................................5
1.2.2 Signal Name (Symbol Name)...................................................................................6
1.2.3 Comment ..................................................................................................................6
1.2.4 Graphic Symbols of Relays and Coils......................................................................7
1.2.5 Line Number and Net Number .................................................................................7
1.2.6 Difference Between Relay Sequence Circuit and Ladder Sequence Program .........8
1.2.7 Specification of Extended Symbol and Comment....................................................9
1.3 SEQUENCE PROGRAM CREATION PROCEDURE .................................. 12
1.3.1 Determining Specification......................................................................................12
1.3.2 Creating Ladder Diagram .......................................................................................12
1.3.3 Editing Sequence Program .....................................................................................12
1.3.4 Transferring and Writing Sequence Program to PMC ...........................................13
1.3.5 Checking Sequence Program..................................................................................14
1.3.6 Storage and Management of Sequence Program....................................................14
1.4 EXECUTION OF SEQUENCE PROGRAM ................................................. 15
1.4.1 Execution Procedure of Sequence Program ...........................................................16
1.4.2 Repetitive Operation...............................................................................................17
1.4.3 Processing Priority (1st Level, 2nd Level, and 3rd Level).....................................17
1.4.4 Structured Sequence Program ................................................................................19
1.4.4.1 Implementation .................................................................................................. 19
1.4.4.2 Subprogramming and nesting ............................................................................ 24
1.4.4.3 Notes on using subroutines................................................................................ 28
1.4.5 Synchronization Processing of I/O Signals ............................................................30
1.4.6 Interlock .................................................................................................................34
1.4.7 Notes on I/O Signals Updated by Other Than PMC ..............................................34
1.5 PMC/L FUNCTION FOR Series 0i-D/0i Mate-D .......................................... 35
2 PMC SPECIFICATIONS........................................................................ 36
2.1 SPECIFICATIONS....................................................................................... 36
2.1.1 Basic Specifications ...............................................................................................36
2.1.2 Program Capacity ...................................................................................................39
2.1.3 Sequence Program Memory Capacity ....................................................................40
2.1.4 Data Size for PMC Message Multi-Language Display ..........................................40
2.1.5 PMC Addresses ......................................................................................................41
2.1.6 Basic Instructions ...................................................................................................43
2.1.7 Functional Instructions (Arranged in Sequence of Instruction Group) ..................44
2.1.8 Functional Instructions (Arranged in Sequence of SUB No.) ................................51
2.2 PMC SIGNAL ADDRESSES........................................................................ 57
2.2.1 Addresses for Signals Between the PMC and CNC (F, G) ....................................57
2.2.2 Addresses of Signals Between the PMC and Machine (X, Y) ...............................58
2.2.3 Internal Relay Addresses (R)..................................................................................59
2.2.4 System Relay Addresses (R9000) ..........................................................................60
c-1
TABLE OF CONTENTS B-64393EN/02
c-3
TABLE OF CONTENTS B-64393EN/02
c-4
B-64393EN/02 TABLE OF CONTENTS
c-5
TABLE OF CONTENTS B-64393EN/02
c-6
B-64393EN/02 TABLE OF CONTENTS
5.5.5 Reading the Servo Delay for Controlled Axes (High-speed Response)...............589
5.5.6 Reading the Acceleration/Deceleration Delay on Controlled Axes
(High-speed Response).........................................................................................591
5.5.7 Reading the Feed Motor Load Current Value (A/D Conversion Data)
(High-speed Response).........................................................................................593
5.5.8 Reading the Actual Spindle Speed (High-speed Response).................................595
5.5.9 Reading the Relative Position on a Controlled Axis (High-speed Response)......596
5.5.10 Reading the Remaining Travel (High-speed Response).......................................598
5.5.11 Reading the Actual Velocity of each Controlled Axis (High-speed Response)...600
5.5.12 Reading Actual Spindle Speeds (High-speed Response) .....................................602
5.5.13 Entering Torque Limit Data for the Digital Servo Motor
(Low-speed Response) .........................................................................................605
5.5.14 Reading Load Information of the Spindle Motor (Serial Interface)
(High-speed Response).........................................................................................607
5.5.15 Reading the Actual Speed of Servo Motor (High-speed Response) ....................609
5.5.16 Reading the Estimate Disturbance Torque Data (High-speed Response) ............615
5.5.17 Presetting the Relative Coordinate (Low-speed Response) .................................619
5.5.18 Reading the Actual Machine Position of Controlled Axes...................................621
5.6 TOOL LIFE MANAGEMENT FUNCTION .................................................. 623
5.6.1 Reading The Tool Life Management Data
(Tool Group Number) (High-speed Response) ....................................................623
5.6.2 Reading Tool Life Management Data
(Number of Tool Groups) (High-speed Response) ..............................................625
5.6.3 Reading Tool Life Management Data
(Number of Tools) (High-speed Response) .........................................................627
5.6.4 Reading Tool Life Management Data (Tool Life)
(High-speed Response).........................................................................................629
5.6.5 Reading Tool Life Management Data (Tool Life Counter)
(High-speed Response).........................................................................................631
5.6.6 Reading Tool Life Management Data
(Tool Length Compensation Number (1): Tool Number)
(High-speed Response).........................................................................................633
5.6.7 Reading Tool Life Management Data (Tool Length Compensation Number (2):
Tool Order Number) (High-speed Response) ......................................................635
5.6.8 Reading Tool Life Management Data (Cutter Radius Compensation Number (1):
Tool Number) (High-speed Response).................................................................637
5.6.9 Reading Tool Life Management Data (Cutter Radius Compensation Number (2):
Tool Order Number) (High-speed Response) ......................................................639
5.6.10 Reading Tool Life Management Data (Tool Information (1): Tool Number)
(High-speed Response).........................................................................................641
5.6.11 Reading Tool Life Management Data (Tool Information (2):
Tool Order Number) (High-speed Response) ......................................................643
5.6.12 Reading Tool Life Management Data (Tool Number) (High-speed Response)...645
5.6.13 Reading the Tool Life Management Data (Tool Life Counter Type)
(High-speed Response).........................................................................................647
5.6.14 Registering Tool Life Management Data (Tool Group)(Low-speed Response) ..648
5.6.15 Writing Tool Life Management Data (Tool Life) (Low-speed Response)...........650
5.6.16 Writing Tool Life Management Data (Tool Life Counter)
(Low-speed Response) .........................................................................................652
5.6.17 Writing Tool Life Management Data (Tool Life Counter Type)
(Low-speed Response) .........................................................................................654
5.6.18 Writing Tool Life Management Data (Tool Length Compensation Number (1):
Tool Number)
(Low-speed Response) .........................................................................................655
c-9
TABLE OF CONTENTS B-64393EN/02
5.6.19 Writing Tool Life Management Data (Tool Length Compensation Number (2):
Tool Order Number) (Low-speed Response) .......................................................656
5.6.20 Writing Tool Life Management Data (Cutter Radius Compensation Number (1):
Tool Number) (Low-speed Response) .................................................................657
5.6.21 Writing Tool Life Management Data (Cutter Radius Compensation Number (2):
Tool Order Number) (Low-speed Response) .......................................................658
5.6.22 Writing the Tool Life Management Data (Tool Information (1): Tool Number)
(Low-speed Response) .........................................................................................659
5.6.23 Writing the Tool Management Data (Tool Information (2): Tool Order Number)
(Low-speed Response) .........................................................................................661
5.6.24 Writing Tool Life Management Data (Tool Number) (Low-speed Response) ....663
5.6.25 Reading The Tool Life Management Data (Tool Group Number)
(High-speed Response) (8-digit Tool Number)....................................................664
5.6.26 Reading Tool Life Management Data (Tool Information (1): Tool Number)
(High-speed Response) (8-digit Tool Number)....................................................666
5.6.27 Registering Tool Life Management Data (Tool Group Number) (Low-speed
Response) (8-digit Tool Number) ........................................................................668
5.6.28 Reading Tool Life Management Data (Tool Length Compensation Number (1):
Tool Number) (High-speed Response) (8-digit Tool Number)............................670
5.6.29 Reading Tool Life Management Data (Cutter Radius Compensation Number (1):
Tool Number) (High-speed Response) (8-digit Tool Number)............................672
5.6.30 Writing Tool Life Management Data (Tool Length Compensation Number (1):
Tool Number) (Low-speed Response) (8-digit Tool Number) ............................674
5.6.31 Writing Tool Life Management Data (Cutter Radius Compensation Number (1):
Tool Number) (Low-speed Response) (8-digit Tool Number) ............................675
5.6.32 Writing the Tool Life Management Data (Tool Information (1): Tool Number)
(Low-speed Response) (8-digit Tool Number) ....................................................676
5.6.33 Deleting Tool life Management Data (Tool Group) (Low-speed Response) .......678
5.6.34 Deleting Tool life Management Data (Tool Data) (Low-speed Response)..........679
5.6.35 Clearing Tool Life Management Data (Tool Life Counter and Tool Information)
(Low-speed Response) .........................................................................................680
c-11
TABLE OF CONTENTS B-64393EN/02
10.5.5 Setting the Display Format of the LADDER DIAGRAM MONITOR Screen ....996
10.5.6 LADDER DIAGRAM EDITOR Screen ............................................................1002
10.5.7 NET EDITOR Screen.........................................................................................1005
10.5.8 Address Alteration Function ..............................................................................1005
10.5.9 Address Map Display Screen .............................................................................1007
10.5.10 Duplicate Coil Check Screen..............................................................................1008
10.5.11 Subprogram List Display Screen........................................................................1009
10.5.12 Title Screen.........................................................................................................1011
10.6 DISPLAYING AND EDITING SYMBOL AND COMMENT ....................... 1012
10.6.1 Extended Symbol and Comment Screen ............................................................1012
10.6.2 Displaying Extended Symbol and Comment .....................................................1013
c-14
B-64393EN/02 1.OVERVIEW OF PMC
1 OVERVIEW OF PMC
1.1 WHAT IS PMC?
The programmable machine controller (PMC) is a programmable controller (PC) built into a CNC to
perform sequence control for a machine tool (spindle rotation, tool change, machine operator's panel control,
and so on).
Sequence control is to perform control steps successively in a predetermined sequence or according to the
logic operation.
Programs for performing sequence control for machine tools are called sequence programs. Generally,
sequence programs coded in the Ladder language are used.
Internal External
I/O Sequence I/O
program
The sequence program reads input signals, performs operations, and outputs results in a predetermined
sequence.
-1-
1.OVERVIEW OF PMC B-64393EN/02
Nonvolatile memory
(1) Variable timer (T)
Internal relay (R) (2) Counter (C)
(3) Keep relay (K)
(4) Data table (D)
The PMC signal address format consists of an address number and bit number (0 to 7) as follows:
Bit number (0 to 7)
Address number (letter followed by decimal
number)
The first letter of an address number represents the type of the signal.
In sequence programs, an address of a byte may be specified. In the above example, specify X127 to
specify a byte address. In this case, the period "." and bit number are unnecessary.
-2-
B-64393EN/02 1.OVERVIEW OF PMC
-3-
1.OVERVIEW OF PMC B-64393EN/02
-4-
B-64393EN/02 1.OVERVIEW OF PMC
-5-
1.OVERVIEW OF PMC B-64393EN/02
(1) Signal names may consist of any alphanumeric characters and the special symbols. The number of
characters that can be entered varies depending on the PMC model. For the allowable number of
characters, see the table in Subsection 2.1.1.
(2) As the names of the signals between the CNC and PMC, use the signal names indicated in the address
table of the PMC without modifications.
(3) Some CNC signals are input from the machine or output to the machine. The names of these signals
are distinguished by prefixing X or Y to the names of signals between the CNC and PMC.
For example, a single block input signal is represented as XSBK by prefixing X, while a start lamp
output signal is represented as YSTL by prefixing Y.
The names of some signals between the CNC and PMC, however, exceed the maximum allowable
number of characters as a result of prefixing X or Y to the names. In such a case, delete the last
character of the signal name.
(*SECLP → X*SECL)
(4) The same signal name (symbol name) cannot be assigned to more than one signal address.
1.2.3 Comment
A comment can be added to each symbol in the symbol table so that it can be indicated as a comment on a
relay or coil in the sequence program. The number of characters that can be entered varies depending on the
PMC model. For the number of characters that can be entered, see the table in Subsection 2.1.1.
For all relays and coils that are output signals to the machine, add a comment to provide a detailed signal
explanation. For other auxiliary relays, provide explanations of the signals if these relays have significant
meanings in sequence control.
In particular for machine-related input signals, be sure to provide a detailed signal explanation as a
comment in the symbol table.
Add detailed comments to signals dedicated to the machine so that one can guess the meanings of these
signals just from the symbol names.
-6-
B-64393EN/02 1.OVERVIEW OF PMC
Relays (contacts)
Instruction representation Function
-| |- Normally open contact (contact A)
-|/ |- Normally closed contact (contact B)
Coils
Instruction representation Function
-{- Coil
-{{- Negated coil
-(S)- Set coil
-(R)- Reset coil
These instructions perform a 1-bit operation and are called basic instructions.
In addition, there are functional instructions that enable easy programming of complicated operations for
processing byte, word, and double-word data, which are difficult to program just using basic instructions.
The symbol formats of the functional instructions are slightly different from instruction to instruction. For
details, see the description of each functional instruction in Chapter 4.
-7-
1.OVERVIEW OF PMC B-64393EN/02
A
R1
B
R2
With the PMC, relay contacts are considered to be unlimited, so ladder diagrams are created as shown in Fig.
1.2.6 (b).
A
R1
A B
R2
In a relay sequence circuit having no contact between a branch point and a coil as shown in Fig. 1.2.6 (c), a
similar ladder diagram can be created even for the PMC.
A B
R1
R2
-8-
B-64393EN/02 1.OVERVIEW OF PMC
P1 (Control_Path1) P2 (Control_Path2)
X*ESP X*ESP
Global Symbol :
X*ESP = X8.4
Using local symbols, symbol conflict does not occur. So it is easy to develop ladder in modular
programming technique. And it is easy to reuse sequence programs. When you have to program a
similar program in some sub programs, copy the logic to another sub program, redefine the local
symbols, and compile on FANUC LADDER-III.
NOTE
1 Same local symbol names are not allowed in the same sub program.
2 Same symbol name of global symbol and local symbol are not allowed.
3 Local symbol can not be defined to address P. Symbol definition to address P
must be global symbol.
4 You cannot create a sequence program using extended symbol and comment
only with CNC. To create it, you have to use FANUC LADDER-III.
-9-
1.OVERVIEW OF PMC B-64393EN/02
NOTE
When multiple symbol and comment are defined to the same signal, you can
search the names by each symbol. On the other hand the symbol on PMC screen
is displayed one of these symbol names. So if you search symbols, displayed
symbol name on searched position may be different from searched word.
NOTE
1 In ladder editing screen, for example, BYTE type symbol can be set to the WORD
type parameter of a function. But it is recommended that data type of the symbol
should be consistent with the data type of the parameter that it is assigned to.
2 When two or more symbols are defined with a signal and these symbols have
different data types the symbol name of largest data type is displayed on PMC
screens.
CAUTION
The assignment of address may change by modifying symbol / comment data.
NOTE
By setting 1 to K903.5 of system keep relay, the signal state of the symbols whose
addresses are assigned automatically can be initialized when updating sequence
program to the one of different symbol / comment data.
In this case, changing the symbol / comment data whose address is not assigned
automatically will also initialize all signal states of the address range for automatic
assignment to 0.
- 10 -
B-64393EN/02 1.OVERVIEW OF PMC
NOTE
Although it is allowed to use special characters in symbol, using only alphabets,
digits and _(underscore) to comply with the variable name defined in IEC61131-3 is
recommended.
- 11 -
1.OVERVIEW OF PMC B-64393EN/02
(1) PC programmer
FANUC supplies FANUC LADDER-III as sequence program development software for FANUC
PMC. Use of FANUC LADDER-III allows you to edit a program in the Ladder language on a
personal computer.
By using either of these editing methods, a sequence program can be entered in a ladder diagram form from
the EDITOR screen. FANUC LADDER-III can also output an entered sequence program to a printer in a
ladder diagram form.
Furthermore, FANUC LADDER-III provides a function for converting a program in a ladder diagram form
to mnemonic form or vice versa. By using this function, you can edit the program in mnemonic form with
a text editor.
Fig. 1.3.3 shows an example of a ladder diagram, and Table 1.3.3 shows an example of a mnemonic form.
- 12 -
B-64393EN/02 1.OVERVIEW OF PMC
Auxiliary function
completion
signal
Fig. 1.3.3
Table 1.3.3
Step No. Instruction Address No. & bit No. Remarks
1 RD F7.0 MF
2 OR F7.2 SF
3 OR F7.3 TF
4 RD.NOT.STK F7.0 MF
5 OR R211.7 MFIN
6 AND.STK
7 RD.NOT.STK F7.2 SF
8 OR R211.5 SFIN
9 AND.STK
10 RD.NOT.STK F7.3 TF
11 OR R211.6 TFIN
12 AND.STK
13 WRT G4.3 FIN
During sequence program editing, signal names (symbols) and comments can be entered for I/O signals,
relays, and coils. Easy-to-understand signal names and comments should be entered to improve program
maintainability.
After inputting the sequence program, write it in the flash ROM. This operation can be done with the
DATA I/O screen of the PMC.
- 13 -
1.OVERVIEW OF PMC B-64393EN/02
- 14 -
B-64393EN/02 1.OVERVIEW OF PMC
Sequence program
memory
Sequence
program
input
Output circuit
The RD instruction causes the CPU to read the signal of the input circuit at address X0.0 and set the read
data in the operation register. Next, the AND instruction causes the CPU to AND the set data with the
internal relay state at address R10.1 and set the result in the operation register. The CPU then executes the
subsequent instructions at high speed, and the operation result is output to the output circuit at address Y0.0.
- 15 -
1.OVERVIEW OF PMC B-64393EN/02
In PMC sequence control, on the other hand, relays in the circuit operate sequentially. When relay A in Fig.
1.4.1 (a) operates, relay D operates, then relay E operates.
Therefore, in PMC sequence control, relays operate in the order coded in the ladder diagram (the order of
programming). The sequential operations in this sequence are performed at high speed, but some
instructions are affected by the execution order.
Accordingly, in the ladder diagrams shown in Fig. 1.4.1 (b), there is a distinctive difference in operation
between the PMC sequence and the sequence of the relay circuit.
- 16 -
B-64393EN/02 1.OVERVIEW OF PMC
1.4.3 Processing Priority (1st Level, 2nd Level, and 3rd Level)
A sequence program consists of two operation parts: a high-speed sequence part called the 1st level, which
is executed every several msec, and a normal sequence part called the 2nd level. When the model used
allows use of the 3rd level, the 3rd level sequence part is added. (See Fig. 1.4.3 (a).)
Sequence program
Division 2
2nd level sequence part
Division n
The 1st level sequence part is a high-speed sequence part that is executed every ladder execution cycle. The
ladder execution cycle is 8 msec, which is set in a CNC parameter. If the execution of the 1st level program
requires a long time, the overall execution time including the 2nd level (sequence processing time) is
extended. So, the 1st level sequence part should be created so that it can be processed in a short time where
possible. The 2nd level sequence part is executed every (ladder execution cycle × n) msec (where n is the
number by which the 2nd level is divided). The 3rd level sequence part is executed when the PMC is idle.
- 17 -
1.OVERVIEW OF PMC B-64393EN/02
As the amount of the 1st level sequence part increases, the amount of the 2nd level sequence portion
executed within the ladder execution cycle decreases. As a result, the number of divisions n increases,
which increases the overall execution time including the 2nd level (sequence processing time).
Therefore, the 1st level sequence program part should be minimized where possible. The division
number of 2nd level may be indefinite because of changing of the working condition of functional
instructions in 1 st level and 2 nd level.
1st level
Last division n
Division 1 Division 2
2nd level
3rd level
3rd level processing
Ladder execution cycle (8 ms) Ladder execution cycle (8 ms) Ladder execution cycle(8 ms)
- 18 -
B-64393EN/02 1.OVERVIEW OF PMC
1.4.4.1 Implementation
Three major implementation techniques are supported.
Job A
Job B
(2) Nesting
Ladder routines created in (1) are connected to configure a ladder sequence.
Job An
- 19 -
1.OVERVIEW OF PMC B-64393EN/02
Application example
(1) Example
Suppose that there are four major jobs.
Machine workpiece.
Machine workpiece.
Move pallet.
- 20 -
B-64393EN/02 1.OVERVIEW OF PMC
Machine workpiece.
Pick up workpiece
from pallet. Ladder representation
Ladder representation
Machine workpiece.
Ladder representation
Return workpiece to pallet.
- 21 -
1.OVERVIEW OF PMC B-64393EN/02
Specifications
(1) Main program
A ladder program consisting of the 1st ladder level and 2nd ladder level is called a main program. You
can create just one main program. Subprogram calls from the 1st ladder level are not allowed. Any
number of subprogram calls from the 2nd ladder level may be made. Functional instructions JMP and
COM must be closed within the main program and each subprogram.
(2) Subprogram
Programs called from the 2nd ladder level are referred to as subprograms. A subprogram is a program
unit enclosed by functional instructions SP and SPE. Up to 512 or 5000 subprograms can be created
for one PMC.
(3) Nesting
A subprogram can call another subprogram.
Up to eight levels of subprograms can be nested.
Recursive calls are not permitted.
- 22 -
B-64393EN/02 1.OVERVIEW OF PMC
Subprograms
End of sequence
End of entire sequence program is
program
indicated by END instruction.
Fig. 1.4.4.1
- 23 -
1.OVERVIEW OF PMC B-64393EN/02
- 24 -
B-64393EN/02 1.OVERVIEW OF PMC
Execution method
The main program is always active. Subprograms are active only when called by another program.
In the following example, subprogram SUBPRO is called by signal A.
Program cycle
Signal A
Main
program
Subprogram
Management
program
Execution flow
(1) A subprogram call by functional instruction CALL transfers control to the subprogram.
(2) When the execution of the subprogram is completed, control is returned to the main program.
(3) When the execution of the main program is completed, the ladder program postprocessing is
performed.
- 25 -
1.OVERVIEW OF PMC B-64393EN/02
Creating a program
After the 1st, 2nd, and 3rd level ladder programs, create subprograms in the similar manner.
Creation example
- 26 -
B-64393EN/02 1.OVERVIEW OF PMC
Inhibit items
(1) Subprograms are nested.
(2) A subprogram is created within the 1st, 2nd, or 3rd level ladder program.
- 27 -
1.OVERVIEW OF PMC B-64393EN/02
For the above functional instructions, ACT = 1 must be held until transfer completion information (coil) is
set to 1.
When using these functional instructions in subprograms, note the following prohibition:
(1) When one of the above functional instructions is being used within a subprogram and is not yet
completed (processing is in progress), the subprogram call is canceled. (ACT for the CALL
instruction is set to 0.)
(2) When one of the above functional instructions is being used within a subprogram and is not yet
completed (processing is in progress), the subroutine is called from another subprogram.
When a subprogram using the above functional instructions is called from more than one place, exclusive
control is required. An example of using the WINDR instruction (low-speed type) is given below.
- 28 -
B-64393EN/02 1.OVERVIEW OF PMC
Example:
A subprogram is called from two places. (When the WINDR instruction is used)
Set DATA1.
Set DATA2.
Explanation:
Subprogram 1 controls ACT (A) and W1 (B) of WINDR (subprogram 2).
The main program determines which data (C1 or C2) is to be used according to A controlled by subprogram
1. Upon completion of the WINDR instruction, the next data is set, and the other CALL instruction is
executed. In the subsequent operation, these steps are repeated.
- 29 -
1.OVERVIEW OF PMC B-64393EN/02
CNC PMC
Sequence
Input memory of CNC program
1st level
Input signal from CNC (F)
sequence part
Transferred every
8ms
2nd level synchronous input signal memory 2nd level
sequence part
Transferred
Transferred
at start of
every 2ms
2nd level
Machine Tool
Input signal memory
3rd level
sequence part
Input signal from machine Input signal from machine (X)
NOTE
The 2nd level synchronous input signal memories are F and X address. Other
addresses are not synchronous input signals.
- 30 -
B-64393EN/02 1.OVERVIEW OF PMC
NOTE
The 2nd level synchronous input signal memories are F and X address. Other
addresses are not synchronous input signals.
- 31 -
1.OVERVIEW OF PMC B-64393EN/02
NOTE
1 The statuses of the input memory of the CNC, input signals from the machine,
output memory of the CNC, and output signals to the machine can be viewed on
the SIGNAL STATUS screen of the PMC. For the SIGNAL STATUS screen, see
Section 7.1.
- 32 -
B-64393EN/02 1.OVERVIEW OF PMC
Difference in signal status between 1st level and 2nd level sequence parts
The status of the same input signal may become different between the 1st and 2nd level sequence parts. The
1st level sequence part uses the input signal memory for signal processing while the 2nd level sequence part
uses the 2nd level synchronous input signal memory. Therefore, it is possible that an input signal for the
2nd level sequence part lags behind the input signal for the 1st level sequence part by a cycle of the 2nd
level sequence execution at the worst.
When creating a sequence program, note the following:
Signal status
A.M On (pulse signal with short pulse width in time)
B Off
C On
When the 1st level is executed, the following difference can occur between Fig. 1.4.5 (d) and Fig. 1.4.5 (e):
NOTE
In the middle of 1st level processing, a signal status change may occur
asynchronously with the sequence program processing. For details, see
Subsection 1.4.7.
1st level
2nd level
- 33 -
1.OVERVIEW OF PMC B-64393EN/02
1.4.6 Interlock
In sequence control, considering how to provide an interlock is a key design issue from the safety point of
view. Of course, an interlock must be provided by sequence programs. Furthermore, an interlock must also
be provided at the end of the electrical circuit in the power magnetic cabinet of the machine. Even when an
interlock is provided logically by a sequence program (software), the interlock by the sequence program
will not work if the hardware for executing the sequence program fails for a certain cause. Therefore, be
sure to provide an interlock within the power magnetic cabinet of the machine to ensure safety of the
operator and prevent machine damage.
- 34 -
B-64393EN/02 1.OVERVIEW OF PMC
Other function
CNC CPU
CNC function
PMC function
Other function
Moreover, there are the following differences between 0i-D PMC and 0i-D/0i Mate-D PMC/L.
Table 1.5 (a) Difference of 0i-D PMC and 0i-D/0i Mate-D PMC/L
0i-D/0i Mate-D
Function 0i-D PMC
PMC/L
Maximum controllable CNC path 2 1
Maximum points of I/O Link DI : 2048 points DI : 1024 points (Note 1)
DO: 2048 points DO : 1024 points (Note 1)
Override function of DI/DO signal available not available
Trace function max. 32 points max. 16 points
PMC axis control function max. 8 groups max. 4 groups (Note 2)
Dual Check Safety function (option) available not available
NOTE
1 Maximum input/output number of I/O link for 0i Mate-D is 256points/256points.
2 This function for 0i Mate-D cannot be used.
- 35 -
2.PMC SPECIFICATIONS B-64393EN/02
2 PMC SPECIFICATIONS
2.1 SPECIFICATIONS
- 36 -
B-64393EN/02 2.PMC SPECIFICATIONS
NOTE
1 This PMC is used for Dual Check Safety and handles the safety related signals.
2 To use the Function Block function, its option is necessary for each CNC. When
specifying this option, the Extended PMC Ladder Instruction Function can also be
used. Because the Extended PMC Ladder Instruction Function is included in the
Function Block function, it is not necessary to order the option of the Extended
PMC Ladder Instruction Function separately.
3 A program can be created on level 3 for the compatibility with programs for other
models, but it is not executed.
4 It is the processing speed of Basic Instruction other than Positive/Negative
transition contact.
5 The maximum overall program size (including the maximum number of ladder
steps, symbols/ comments, and messages) varies depending on option settings.
See 2.1.2 “ Program Capacity” for details.
6 For the number of functional instructions, each parenthesized number indicates
the number of all functional instructions, and each non-parenthesized number,
the number of valid functional instructions.
7 Maximum input/output number of I/O link for 0i Mate-D is 256points/256points.
8 These are the number for extended symbol and comment character. The number
of basic symbol character is 16 and the number of comment character is 30.
Refer to section 1.2.7 "Specification of extended symbol and comment" for details
9 This number is the number of single-byte characters. When you use double-byte
characters as a comment, the number becomes half.
10 The capacity of the program storage area varies depending on option settings.
See 2.1.2 “ Program Capacity” for details.
- 37 -
2.PMC SPECIFICATIONS B-64393EN/02
NOTE
1 This area is used to specify the precision of the variable timer. Do not use this
area in user programs.
2 This PMC is used for Dual Check Safety function (option). See "Dual Check
Safety Connection Manual (B-64303EN-4)" for details.
3 There are no extra relays in Dual Check Safety PMC.
4 The message display relay can not be used in Dual Check Safety PMC because
of invalid function.
- 38 -
B-64393EN/02 2.PMC SPECIFICATIONS
NOTE
1 The package 1 has 24,000 steps option. 32,000 steps option is the additional
option.
2 The package 2 has 5,000 steps option. 8,000 steps option is the additional
option.
3 The Dual Check Safty function has 3,000 steps option.
- 39 -
2.PMC SPECIFICATIONS B-64393EN/02
NOTE
1 The total sequence program size (including all items such as ladders,
symbols/comments, and messages) cannot exceed the sequence program
memory storage capacity. If a ladder, symbol/ comment, or message is large,
the size of other categories may be limited.
2 The PMC programmer may adjust arrangement of these items in the sequence
program memory to improve processing efficiency. As a result, up to 1K byte
(1024 bytes) may be added to the sum of the sizes of individual items.
3 Each full-size character takes a memory capacity of 2 bytes.
4 For half-size katakana, full-size hiragana, kanji, and special characters, each
character in a character code notation (including leading and trailing "@"
characters) takes a memory capacity of one byte. See descriptions about the
DISPB function instructions for the character input code notation.
5 One definition of extended symbol and comment takes 16-23 bytes plus the
memory according to the length of symbol and comment.
6 8 bytes are taken for a sub-program when local symbols are defined in the
sub-program.
- 40 -
B-64393EN/02 2.PMC SPECIFICATIONS
- 41 -
2.PMC SPECIFICATIONS B-64393EN/02
NOTE
1 This PMC is used for Dual Check Safety function (option). See "Dual Check
Safety Connection Manual (B-64303EN-4)" for details.
2 This area is reserved for PMC management software. No I/O can be allocated
in this area. Do not use it in user programs.
3 This area is reserved for PMC management software. Do not use it in user
programs.
4 This area is used to specify the precision of a variable timer.
- Don't modify the value of timer and precision except for writing same value
when working the timer.
- Don't set the value other than the following range.
- If above rules are violated, the working of the timer is not guaranteed.
- Other than the range from T9000 to T9999 are reserved.
- 42 -
B-64393EN/02 2.PMC SPECIFICATIONS
NOTE
This PMC is used for Dual Check Safety function (option). See "Dual Check
Safety Connection Manual (B-64303EN-4)" for details.
- 43 -
2.PMC SPECIFICATIONS B-64393EN/02
- 44 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.7 (b) Functional instruction list (arranged in sequence of instruction group) (2)
Required 0i-D
0i-D / 0i
Instruction Instruction SUB memory 0i-D DCS
Processing Mate-D
group name No. size PMC PMC
PMC/L
(byte) (Note1)
- 45 -
2.PMC SPECIFICATIONS B-64393EN/02
Table 2.1.7 (c) Functional instruction list (arranged in sequence of instruction group) (3)
Required 0i-D
0i-D / 0i
Instruction Instruction SUB memory 0i-D DCS
Processing Mate-D
group name No. size PMC PMC
PMC/L
(byte) (Note1)
Comparison 1 EQB 200 Signed Binary Comparison (=) 16 { { {
(1 byte length)
2 EQW 201 Signed Binary Comparison (=) 16 { { {
(2 byte length)
3 EQD 202 Signed Binary Comparison (=) 16 { { {
(4 byte length)
4 NEB 203 Signed Binary Comparison (≠) 16 { { {
(1 byte length)
5 NEW 204 Signed Binary Comparison (≠) 16 { { {
(2 byte length)
6 NED 205 Signed Binary Comparison (≠) 16 { { {
(4 byte length)
7 GTB 206 Signed Binary Comparison (>) 16 { { {
(1 byte length)
8 GTW 207 Signed Binary Comparison (>) 16 { { {
(2 byte length)
9 GTD 208 Signed Binary Comparison (>) 16 { { {
(4 byte length)
10 LTB 209 Signed Binary Comparison (<) 16 { { {
(1 byte length)
11 LTW 210 Signed Binary Comparison (<) 16 { { {
(2 byte length)
12 LTD 211 Signed Binary Comparison (<) 16 { { {
(4 byte length)
13 GEB 212 Signed Binary Comparison (≧) 16 { { {
(1 byte length)
14 GEW 213 Signed Binary Comparison (≧) 16 { { {
(2 byte length)
15 GED 214 Signed Binary Comparison (≧) 16 { { {
(4 byte length)
16 LEB 215 Signed Binary Comparison (≦) 16 { { {
(1 byte length)
17 LEW 216 Signed Binary Comparison (≦) 16 { { {
(2 byte length)
18 LED 217 Signed Binary Comparison (≦) 16 { { {
(4 byte length)
19 RNGB 218 Signed Binary Comparison (range) 20 { { {
(1 byte length)
20 RNGW 219 Signed Binary Comparison (range) 20 { { {
(2 byte length)
21 RNGD 220 Signed Binary Comparison (range) 20 { { {
(4 byte length)
22 COMPB 32 Comparison between binary data 20 { { {
23 COMP 15 Comparison 16 { { {
24 COIN 16 Coincidence check 16 { { {
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 46 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.7 (d) Functional instruction list (arranged in sequence of instruction group) (4)
Required 0i-D
0i-D / 0i
Instruction Instruction SUB memory 0i-D DCS
Processing Mate-D
group name No. size PMC PMC
PMC/L
(byte) (Note1)
Table 2.1.7 (e) Functional instruction list (arranged in sequence of instruction group) (5)
Required 0i-D
0i-D / 0i
Instruction Instruction SUBNo memory 0i-D DCS
Processing Mate-D
group name . size PMC PMC
PMC/L
(byte) (Note1)
- 48 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.7 (f) Functional instruction list (arranged in sequence of instruction group) (6)
Required 0i-D
0i-D / 0i
Instruction Instruction SUBN memory 0i-D DCS
Processing Mate-D
group name o. size PMC PMC
PMC/L
(byte) (Note1)
Operation 20 DIVSB 328 Division (1 byte length) 20 ● ● ●
21 DIVSW 329 Division (2 byte length) 20 ● ● ●
22 DIVSD 330 Division (4 byte length) 20 ● ● ●
23 MODSB 331 Remainder (1 byte length) 20 ● ● ●
24 MODSW 332 Remainder (2 byte length) 20 ● ● ●
25 MODSD 333 Remainder (4 byte length) 20 ● ● ●
26 INCSB 334 Increment (1 byte length) 8 ● ● ●
27 INCSW 335 Increment (2 byte length) 8 ● ● ●
28 INCSD 336 Increment (4 byte length) 8 ● ● ●
29 DECSB 337 Decrement (1 byte length) 8 ● ● ●
30 DECSW 338 Decrement (2 byte length) 8 ● ● ●
31 DECSD 339 Decrement (4 byte length) 8 ● ● ●
32 ABSSB 340 Absolute value (1 byte length) 16 ● ● ●
33 ABSSW 341 Absolute value (2 byte length) 16 ● ● ●
34 ABSSD 342 Absolute value (4 byte length) 16 ● ● ●
35 NEGSB 343 Sign inversion (1 byte length) 16 ● ● ●
36 NEGSW 344 Sign inversion (2 byte length) 16 ● ● ●
37 NEGSD 345 Sign inversion (4 byte length) 16 ● ● ●
CNC 1 DISPB 41 Message display 8 { { Δ
function 2 EXIN 42 External data input 8 { { Δ
3 WINDR 51 CNC window data read 8 { { Δ
4 WINDW 52 CNC window data write 8 { { Δ
5 AXCTL 53 PMC axis control 12 { { Δ
6 PSGN2 63 Position signal 8 { { Δ
7 PSGNL 50 Position signal 12 { { Δ
Program 1 COM 9 Common line control 8 { { {
control 2 COME 29 End of common line control 4 { { {
3 JMP 10 Jump 12 { { {
4 JMPE 30 End of jump 4 { { {
5 JMPB 68 Label jump 1 16 { { {
6 JMPC 73 Label jump 2 16 { { {
7 LBL 69 Label 12 { { {
8 CALL 65 Conditional subprogram call 12 { { {
9 CALLU 66 Unconditional subprogram call 12 { { {
10 SP 71 Subprogram 8 { { {
11 SPE 72 End of subprogram 4 { { {
12 END1 1 End of first-level program 4 { { {
13 END2 2 End of second-level program 4 { { {
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 49 -
2.PMC SPECIFICATIONS B-64393EN/02
Table 2.1.7 (g) Functional instruction list (arranged in sequence of instruction group) (7)
Required 0i-D
0i-D / 0i
Instruction Instruction SUB memory 0i-D DCS
Processing Mate-D
group name No. size PMC PMC
PMC/L
(byte) (Note1)
Program 14 END3 48 End of third-level program 4 { Δ Δ
control (Note3) (Note4) (Note4)
15 END 64 End of ladder program 4 { { {
16 NOP 70 No operation 8 { { {
17 CS 74 Case call 8 { { {
18 CM 75 Sub program call in case call 12 { { {
19 CE 76 End of case call 4 { { {
Rotation 1 ROT 6 Rotation control 20 { { {
control 2 ROTB 26 Binary rotation control 24 { { {
Invalid 1 SPCNT 46 Spindle control 16 Δ Δ Δ
instruction 2 DISP 49 Message display 16+n Δ Δ Δ
(Note5)
3 MMCWR 98 MMC window data read 12 Δ Δ Δ
4 MMCWW 99 MMC window data write 12 Δ Δ Δ
5 FNC90 90 Arbitrary-function instruction 1 8 Δ Δ Δ
6 FNC91 91 Arbitrary-function instruction 2 8 Δ Δ Δ
7 FNC92 92 Arbitrary-function instruction 3 8 Δ Δ Δ
8 FNC93 93 Arbitrary-function instruction 4 8 Δ Δ Δ
9 FNC94 94 Arbitrary-function instruction 5 8 Δ Δ Δ
10 FNC95 95 Arbitrary-function instruction 6 8 Δ Δ Δ
11 FNC96 96 Arbitrary-function instruction 7 8 Δ Δ Δ
12 FNC97 97 Arbitrary-function instruction 8 8 Δ Δ Δ
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
NOTE
1 This term stands for the Dual Check Safety PMC (option).
2 These instructions are intended to maintain source-level compatibility with
programs for conventional models. They are treated as a NOP instruction
(instruction that performs no operation).
3 The 3rd level sequence part is available for the compatibility with programs for
conventional models. However, the execution cycle period for processing the 3rd
level sequence part is not guaranteed. See Section 1.4.3 "Processing priority".
4 These instructions are intended to maintain source-level compatibility with
programs for other models. A program can be created on level 3, but it is not
executed.
5 Memory size added by the number of data tables to be used. In the COD
instruction, CODB instruction (1byte length), CODB instruction (2byte length), or
DISP instruction, number of data * 2 byte is added. And, when the number of
data is odd, 2 byte is added moreover. In the CODB instruction, number of data
* 4 byte is added.
- 50 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.8 (b) Functional instruction list (arranged in sequence of SUB No.) (2)
Required
0i-D / 0i 0i-D
Instruction SUB memory 0i-D
Processing Mate-D DCS PMC
name No. size PMC
PMC/L (Note1)
(byte)
MOVD 47 4-byte transfer 12 { { {
END3 48 End of third-level program 4 { Δ Δ
(Note3) (Note4) (Note4)
DISP 49 Message display 16+n Δ Δ Δ
(Note5)
PSGNL 50 Position signal 12 { { Δ
WINDR 51 CNC window data read 8 { { Δ
WINDW 52 CNC window data write 8 { { Δ
AXCTL 53 PMC axis control 12 { { Δ
TMRC 54 Timer processing 16 { { {
CTRC 55 Counter processing 12 { { {
CTRB 56 Counter processing 12 { { {
DIFU 57 Rising-edge detection 8 { { {
DIFD 58 Falling-edge detection 8 { { {
EOR 59 Exclusive OR 20 { { {
AND 60 Logical AND 20 { { {
OR 61 Logical OR 20 { { {
NOT 62 Logical NOT 16 { { {
PSGN2 63 Position signal 8 { { Δ
END 64 End of ladder program 4 { { {
CALL 65 Conditional subprogram call 12 { { {
CALLU 66 Unconditional subprogram call 12 { { {
JMPB 68 Label jump 1 16 { { {
LBL 69 Label 12 { { {
NOP 70 No operation 8 { { {
SP 71 Subprogram 8 { { {
SPE 72 End of subprogram 4 { { {
JMPC 73 Label jump 2 16 { { {
CS 74 Case call 8 { { {
CM 75 Sub program call in case call 12 { { {
CE 76 End of case call 4 { { {
TMRBF 77 Fixed off-delay timer 12 { { {
FNC90 90 Arbitrary-function instruction 1 8 Δ Δ Δ
FNC91 91 Arbitrary-function instruction 2 8 Δ Δ Δ
FNC92 92 Arbitrary-function instruction 3 8 Δ Δ Δ
FNC93 93 Arbitrary-function instruction 4 8 Δ Δ Δ
FNC94 94 Arbitrary-function instruction 5 8 Δ Δ Δ
FNC95 95 Arbitrary-function instruction 6 8 Δ Δ Δ
FNC96 96 Arbitrary-function instruction 7 8 Δ Δ Δ
FNC97 97 Arbitrary-function instruction 8 8 Δ Δ Δ
MMCWR 98 MMC window data read 12 Δ Δ Δ
MMCWW 99 MMC window data write 12 Δ Δ Δ
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 52 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.8 (c) Functional instruction list (arranged in sequence of SUB No.) (3)
Required
0i-D / 0i 0i-D
Instruction SUB memory 0i-D
Processing Mate-D DCS PMC
name No. size PMC
PMC/L (Note1)
(byte)
EQB 200 Signed Binary Comparison (=)(1 byte length) 16 { { {
EQW 201 Signed Binary Comparison (=)(2 byte length) 16 { { {
EQD 202 Signed Binary Comparison (=)(4 byte length) 16 { { {
NEB 203 Signed Binary Comparison (≠)(1 byte length) 16 { { {
NEW 204 Signed Binary Comparison (≠)(2 byte length) 16 { { {
NED 205 Signed Binary Comparison (≠)(4 byte length) 16 { { {
GTB 206 Signed Binary Comparison (>)(1 byte length) 16 { { {
GTW 207 Signed Binary Comparison (>)(2 byte length) 16 { { {
GTD 208 Signed Binary Comparison (>)(4 byte length) 16 { { {
LTB 209 Signed Binary Comparison (<)(1 byte length) 16 { { {
LTW 210 Signed Binary Comparison (<)(2 byte length) 16 { { {
LTD 211 Signed Binary Comparison (<)(4 byte length) 16 { { {
GEB 212 Signed Binary Comparison (≧)(1 byte length) 16 { { {
GEW 213 Signed Binary Comparison (≧)(2 byte length) 16 { { {
GED 214 Signed Binary Comparison (≧)(4 byte length) 16 { { {
LEB 215 Signed Binary Comparison (≦)(1 byte length) 16 { { {
LEW 216 Signed Binary Comparison (≦)(2 byte length) 16 { { {
LED 217 Signed Binary Comparison (≦)(4 byte length) 16 { { {
RNGB 218 Signed Binary Comparison (range)(1 byte 20 { { {
length)
RNGW 219 Signed Binary Comparison (range)(2 byte 20 { { {
length)
RNGD 220 Signed Binary Comparison (range)(4 byte 20 { { {
length)
TMRST 221 Stop watch timer (1 ms accuracy) 20 ● ● ●
TMRSS 222 Stop watch timer (1 sec accuracy) 20 ● ● ●
CTRD 223 Counter processing (4 byte length) 12 ● ● ●
MOVBT 224 Bit transfer 24 ● ● ●
SETNB 225 Data setting (1 byte length) 20 ● ● ●
SETNW 226 Data setting (2 byte length) 20 ● ● ●
SETND 227 Data setting (4 byte length) 20 ● ● ●
XCHGB 228 Data exchange (1 byte length) 12 ● ● ●
XCHGW 229 Data exchange (2 byte length) 12 ● ● ●
XCHGD 230 Data exchange (4 byte length) 12 ● ● ●
SWAPW 231 Data swap (2 byte length) 16 ● ● ●
SWAPD 232 Data swap (4 byte length) 16 ● ● ●
TBLRB 233 Reading data from table (1 byte length) 24 ● ● ●
TBLRW 234 Reading data from table (2 byte length) 24 ● ● ●
TBLRD 235 Reading data from table (4 byte length) 24 ● ● ●
TBLRN 236 Reading data from table (Arbitrary byte length) 28 ● ● ●
TBLWB 237 Writing data to table (1 byte length) 24 ● ● ●
TBLWW 238 Writing data to table (2 byte length) 24 ● ● ●
TBLWD 239 Writing data to table (4 byte length) 24 ● ● ●
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 53 -
2.PMC SPECIFICATIONS B-64393EN/02
Table 2.1.8 (d) Functional instruction list (arranged in sequence of SUB No.) (4)
Required
0i-D / 0i 0i-D
Instruction SUB memory 0i-D
Processing Mate-D DCS PMC
name No. size PMC
PMC/L (Note1)
(byte)
TBLWN 240 Writing data to table (Arbitrary byte length) 28 ● ● ●
DSEQB 241 Searching data from table (=)(1 byte length) 28 ● ● ●
DSEQW 242 Searching data from table (=)(2 byte length) 28 ● ● ●
DSEQD 243 Searching data from table (=)(4 byte length) 28 ● ● ●
DSNEB 244 Searching data from table (≠)(1 byte length) 28 ● ● ●
DSNEW 245 Searching data from table (≠)(2 byte length) 28 ● ● ●
DSNED 246 Searching data from table (≠)(4 byte length) 28 ● ● ●
DSGTB 247 Searching data from table (>)(1 byte length) 28 ● ● ●
DSGTW 248 Searching data from table (>)(2 byte length) 28 ● ● ●
DSGTD 249 Searching data from table (>)(4 byte length) 28 ● ● ●
DSLTB 250 Searching data from table (<)(1 byte length) 28 ● ● ●
DSLTW 251 Searching data from table (<)(2 byte length) 28 ● ● ●
DSLTD 252 Searching data from table (<)(4 byte length) 28 ● ● ●
DSGEB 253 Searching data from table (≧)(1 byte length) 28 ● ● ●
DSGEW 254 Searching data from table (≧)(2 byte length) 28 ● ● ●
DSGED 255 Searching data from table (≧)(4 byte length) 28 ● ● ●
DSLEB 256 Searching data from table (≦)(1 byte length) 28 ● ● ●
DSLEW 257 Searching data from table (≦)(2 byte length) 28 ● ● ●
DSLED 258 Searching data from table (≦)(4 byte length) 28 ● ● ●
DMAXB 259 Maximum data (1 byte length) 28 ● ● ●
DMAXW 260 Maximum data (2 byte length) 28 ● ● ●
DMAXD 261 Maximum data (4 byte length) 28 ● ● ●
DMINB 262 Minimum data (1 byte length) 28 ● ● ●
DMINW 263 Minimum data (2 byte length) 28 ● ● ●
DMIND 264 Minimum data (4 byte length) 28 ● ● ●
EORB 265 Exclusive OR (1 byte length) 20 ● ● ●
EORW 266 Exclusive OR (2 byte length) 20 ● ● ●
EORD 267 Exclusive OR (4 byte length) 20 ● ● ●
ANDB 268 Logical AND (1 byte length) 20 ● ● ●
ANDW 269 Logical AND (2 byte length) 20 ● ● ●
ANDD 270 Logical AND (4 byte length) 20 ● ● ●
ORB 271 Logical OR (1 byte length) 20 ● ● ●
ORW 272 Logical OR (2 byte length) 20 ● ● ●
ORD 273 Logical OR (4 byte length) 20 ● ● ●
NOTB 274 Logical NOT (1 byte length) 16 ● ● ●
NOTW 275 Logical NOT (2 byte length) 16 ● ● ●
NOTD 276 Logical NOT (4 byte length) 16 ● ● ●
SHLB 277 Bit shift left (1 byte length) 20 ● ● ●
SHLW 278 Bit shift left (2 byte length) 20 ● ● ●
SHLD 279 Bit shift left (4 byte length) 20 ● ● ●
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 54 -
B-64393EN/02 2.PMC SPECIFICATIONS
Table 2.1.8 (e) Functional instruction list (arranged in sequence of SUB No.) (5)
Required
0i-D / 0i 0i-D
Instruction SUB memory 0i-D
Processing Mate-D DCS PMC
name No. size PMC
PMC/L (Note1)
(byte)
SHLN 280 Bit shift left (Arbitrary byte length) 24 ● ● ●
SHRB 281 Bit shift right (1 byte length) 20 ● ● ●
SHRW 282 Bit shift right (2 byte length) 20 ● ● ●
SHRD 283 Bit shift right (4 byte length) 20 ● ● ●
SHRN 284 Bit shift right (Arbitrary byte length) 24 ● ● ●
ROLB 285 Bit rotation left (1 byte length) 20 ● ● ●
ROLW 286 Bit rotation left (2 byte length) 20 ● ● ●
ROLD 287 Bit rotation left (4 byte length) 20 ● ● ●
ROLN 288 Bit rotation left (Arbitrary byte length) 24 ● ● ●
RORB 289 Bit rotation right (1 byte length) 20 ● ● ●
RORW 290 Bit rotation right (2 byte length) 20 ● ● ●
RORD 291 Bit rotation right (4 byte length) 20 ● ● ●
RORN 292 Bit rotation right (Arbitrary byte length) 24 ● ● ●
BSETB 293 Bit set (1 byte length) 16 ● ● ●
BSETW 294 Bit set (2 byte length) 16 ● ● ●
BSETD 295 Bit set (4 byte length) 16 ● ● ●
BSETN 296 Bit set (Arbitrary byte length) 20 ● ● ●
BRSTB 297 Bit reset (1 byte length) 16 ● ● ●
BRSTW 298 Bit reset (2 byte length) 16 ● ● ●
BRSTD 299 Bit reset (4 byte length) 16 ● ● ●
BRSTN 300 Bit reset (Arbitrary byte length) 20 ● ● ●
BTSTB 301 Bit test (1 byte length) 16 ● ● ●
BTSTW 302 Bit test (2 byte length) 16 ● ● ●
BTSTD 303 Bit test (4 byte length) 16 ● ● ●
BTSTN 304 Bit test (Arbitrary byte length) 20 ● ● ●
BPOSB 305 Bit search (1 byte length) 12 ● ● ●
BPOSW 306 Bit search (2 byte length) 12 ● ● ●
BPOSD 307 Bit search (4 byte length) 12 ● ● ●
BPOSN 308 Bit search (Arbitrary byte length) 16 ● ● ●
BCNTB 309 Bit count (1 byte length) 12 ● ● ●
BCNTW 310 Bit count (2 byte length) 12 ● ● ●
BCNTD 311 Bit count (4 byte length) 12 ● ● ●
BCNTN 312 Bit count (Arbitrary byte length) 16 ● ● ●
TBCDB 313 Binary to BCD conversion (1 byte length) 16 ● ● ●
TBCDW 314 Binary to BCD conversion (2 byte length) 16 ● ● ●
TBCDD 315 Binary to BCD conversion (4 byte length) 16 ● ● ●
FBCDB 316 BCD to Binary conversion (1 byte length) 16 ● ● ●
FBCDW 317 BCD to Binary conversion (2 byte length) 16 ● ● ●
FBCDD 318 BCD to Binary conversion (4 byte length) 16 ● ● ●
ADDSB 319 Addition (1 byte length) 20 ● ● ●
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
- 55 -
2.PMC SPECIFICATIONS B-64393EN/02
Table 2.1.8 (f) Functional instruction list (arranged in sequence of SUB No.) (6)
Required
0i-D / 0i 0i-D
Instruction SUB memory 0i-D
Processing Mate-D DCS PMC
name No. size PMC
PMC/L (Note1)
(byte)
ADDSW 320 Addition (2 byte length) 20 ● ● ●
ADDSD 321 Addition (4 byte length) 20 ● ● ●
SUBSB 322 Subtraction (1 byte length) 20 ● ● ●
SUBSW 323 Subtraction (2 byte length) 20 ● ● ●
SUBSD 324 Subtraction (3 byte length) 20 ● ● ●
MULSB 325 Multiplication (1 byte length) 20 ● ● ●
MULSW 326 Multiplication (2 byte length) 20 ● ● ●
MULSD 327 Multiplication (4 byte length) 20 ● ● ●
DIVSB 328 Division (1 byte length) 20 ● ● ●
DIVSW 329 Division (2 byte length) 20 ● ● ●
DIVSD 330 Division (4 byte length) 20 ● ● ●
MODSB 331 Remainder (1 byte length) 20 ● ● ●
MODSW 332 Remainder (2 byte length) 20 ● ● ●
MODSD 333 Remainder (4 byte length) 20 ● ● ●
INCSB 334 Increment (1 byte length) 8 ● ● ●
INCSW 335 Increment (2 byte length) 8 ● ● ●
INCSD 336 Increment (4 byte length) 8 ● ● ●
DECSB 337 Decrement (1 byte length) 8 ● ● ●
DECSW 338 Decrement (2 byte length) 8 ● ● ●
DECSD 339 Decrement (4 byte length) 8 ● ● ●
ABSSB 340 Absolute value (1 byte length) 16 ● ● ●
ABSSW 341 Absolute value (2 byte length) 16 ● ● ●
ABSSD 342 Absolute value (4 byte length) 16 ● ● ●
NEGSB 343 Sign inversion (1 byte length) 16 ● ● ●
NEGSW 344 Sign inversion (2 byte length) 16 ● ● ●
NEGSD 345 Sign inversion (4 byte length) 16 ● ● ●
({: Usable. ●: The option of Extended PMC Ladder Instruction Function is needed. Δ: Executed
as NOP instruction (Note 2). ×: Unusable.)
NOTE
1 This term stands for the Dual Check Safety PMC (option).
2 These instructions are intended to maintain source-level compatibility with
programs for conventional models. They are treated as a NOP instruction
(instruction that performs no operation).
3 The 3rd level sequence part is available for the compatibility with programs for
conventional models. However, the execution cycle period for processing the 3rd
level sequence part is not guaranteed. See Section 1.4.3 "Processing priority".
4 These instructions are intended to maintain source-level compatibility with
programs for other models. A program can be created on level 3, but it is not
executed.
5 Memory size added by the number of data tables to be used. In the COD
instruction, CODB instruction (1byte length), CODB instruction (2byte length), or
DISP instruction, number of data * 2 byte is added. And, when the number of
data is odd, 2 byte is added moreover. In the CODB instruction, number of data
* 4 byte is added.
- 56 -
B-64393EN/02 2. PMC SPECIFICATIONS
2.2.1 Addresses for Signals Between the PMC and CNC (F, G)
This subsection briefly describes interface addresses. Refer to the applicable CNC connection manual
for details.
- 57 -
2. PMC SPECIFICATIONS B-64393EN/02
0i-D PMC
The addresses for two channels, X0 to X127, X200 to X327, can be used for the signals
input
0i-D PMC
The addresses for two channels, Y0 to Y127, Y200 to Y327, can be used for signals
output.
- 58 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
This address is not synchronized in the 2nd level ladder. A value of a signal in
this address may change during the execution of 2nd level ladder same as 1st
and 3rd level ladder when it is written by other program (Ex. Network function, C
language executor).
- 59 -
2. PMC SPECIFICATIONS B-64393EN/02
(1) R9000 (operation output register for the ADDB, SUBB, MULB, DIVB, and COMPB functional
instructions)
7 6 5 4 3 2 1 0
R9000
The result is 0.
The result is negative.
The result has overflowed.
(2) R9000 (error output for the EXIN, WINDR, and WINDW functional instructions)
7 6 5 4 3 2 1 0
R9000
(3) R9002 to R9005 (operation output registers for the DIVB functional instruction)
The remainder of a division performed with the DIVB functional instruction is output to these
addresses.
System timers
Four signals can be used as system timers.
Their specifications are as follows.
7 6 5 4 3 2 1 0
R9000
- 60 -
B-64393EN/02 2. PMC SPECIFICATIONS
R9091.5
200 msec
R9091.6
1 sec
CAUTION
1 Each signal is initially OFF.
2 The signals R9091.0, R9091.1 are set at the beginning of the first ladder level on
every cycle.
3 Each pulse signal (ON-OFF signal) has an error of ±8 msec (ladder execution
period).
7 6 5 4 3 2 1 0
R9015
- 61 -
2. PMC SPECIFICATIONS B-64393EN/02
RUN
Execution status of Ladder
STOP
CAUTION
Reference this signal only within a ladder program. Do not reference it from an
external system or program as it indicates the status of ladder execution
separately for each ladder execution level.
- 62 -
B-64393EN/02 2. PMC SPECIFICATIONS
CAUTION
1 Reference this signal only within the ladder program. Do not reference it from
an external system or program as it indicates the status of ladder execution
separately for each ladder execution level.
2 If the power is turned off or a CNC system alarm occurs, ladder execution and I/O
signal transfer are immediately stopped for safety purposes. In this case,
therefore, this signal cannot be used.
R9015.1
SUB65 Pxxxx
CALL
(b) Example of forcibly turning off an output signal programmed on the first ladder level just
before the ladder stops
R9015.1
Input Output
CNC Unit
Y0.0
R9015.1
Y0.0 I/O Link slave
I/O Link
- 63 -
2. PMC SPECIFICATIONS B-64393EN/02
NOTE
1 This addresses are not synchronized in the 2nd level ladder. A value of a signal in
this addresses may change during the execution of 2nd level ladder same as 1st
and 3rd level ladder when it is written in other program (Ex. Network function, C
language executor).
- 64 -
B-64393EN/02 2. PMC SPECIFICATIONS
Address number
7 6 5 4 3 2 1 0
E9999
NOTE
1 Although an address of odd number can be set to the start address of a extra
relay table, it is not recommended because the functional instructions such as
DSCHB work faster at even addresses than at odd addresses.
2 Extra relays (E) can be included in PMC parameter output. If you set 1 to the
system keep relay K906.3, no information of extra relays is included in PMC
parameter output.
3 You have an option on the format of the extra relays when you include the extra
relays in the PMC parameter output. See “2.3.2 PMC Parameter Format” for the
detail of the format of the extra relays.
4 Even if the extra relays are not configured as non-volatile memory, their control
data are non-volatile.
- 65 -
2. PMC SPECIFICATIONS B-64393EN/02
Number of table
groups n = 1 to 100
Table parameter
Table parameter
Table group 2
Data type
control data
Table control data
Number of data items
Table parameter
Intra-table number
0 Extended relay
1 Table group n (Note) m1, m2, and mn are the last
: intra-table number of the
mn respective extended relay
table.
- 66 -
B-64393EN/02 2. PMC SPECIFICATIONS
#7 #6 #5 #4 #3 #2 #1 #0
SIGN HEX MASK COD
COD
0: Data in this table are displayed in binary format.
1: Data in this table are displayed in BCD format.
MASK
0: The contents of this table are not protected.
1: The contents of this table are protected.
HEX
0: Data in this table are displayed in binary or BCD format. (COD is effective)
1: Data in this table are displayed in hexadecimal format.
SIGN
0: Data in this table are displayed as signed numbers.
1: Data in this table are displayed as unsigned numbers.
NOTE
1 The setting of COD (bit 0) is effective when HEX (bit 2) = 0.
2 The setting of SIGN (bit 3) is effective when COD (bit 0) = 0 and HEX (bit 2) = 0.
(iii) Data type
This item decides the length of data in this table.
0 : 1 byte length
1 : 2 bytes length
2 : 4 bytes length
3 : 8 bits
(iv) Number of data items
This item decides the number of data items in this table.
- 67 -
2. PMC SPECIFICATIONS B-64393EN/02
Address number
7 6 5 4 3 2 1 0
A0
Message display request
A1
.
.
.
∼ ∼
A249
A9000
Message status display
A9001
.
.
.
∼ ∼
A9249
- 68 -
B-64393EN/02 2. PMC SPECIFICATIONS
Address number
7 6 5 4 3 2 1 0 Variable
timer
T0
PMC/L 0i-D PMC
DCS PMC
T1
.
. ∼ ∼
.
T79
.
. ∼ ∼
.
T499
Variable-timer
precision
T9000
PMC/L 0i-D PMC
DCS PMC
T9001
.
. ∼ ∼
.
T9079
.
. ∼ ∼
.
T9499
- 69 -
2. PMC SPECIFICATIONS B-64393EN/02
- 70 -
B-64393EN/02 2. PMC SPECIFICATIONS
Address number
7 6 5 4 3 2 1 0
Variable
counter
C0
Preset value PMC/L 0i-D PMC
C1 DCS PMC
Counter
C2 No. 1
Cumulative value
C3
.
.
.
∼ ∼
C76
Preset value
C77
Counter
C78 No. 20
Cumulative value
C79
.
.
.
∼ ∼
C396
Preset value
C397 Counter
No. 100
C398
Cumulative value
C399
Fixed
counter
C5000
Cumulative value PMC/L 0i-D PMC
C5001 DCS PMC
.
.
.
∼ ∼
C5038
Cumulative value
C5039
.
.
.
∼ ∼
C5198
Cumulative value
C5199
- 71 -
2. PMC SPECIFICATIONS B-64393EN/02
.
.
.
∼ ∼
K19
.
.
.
∼ ∼
K99
K900 System
area
K901
.
.
.
∼ ∼
K999
- 72 -
B-64393EN/02 2. PMC SPECIFICATIONS
#7 #6 #5 #4 #3 #2 #1 #0
K909 MWRTF2 MWRTF
On the KEEP RELAY screen, it is possible to set and display the address of the nonvolatile memory. It
is also possible for a sequence program to read or write the address.
If the power is accidentally turned off when the turret is rotating, the turret stops at an unexpected
position and a mismatch occurs between the current position stored in the memory and the actual turret
position. When the power is resumed and a normal operation begins, the mismatch results in an
incorrect sequence operation.
To prevent such a malfunction, make a check by using nonvolatile memory control in a sequence program
as follows:
(1) Write "1" to MWRTF for the nonvolatile memory control before the turret starts moving.
(2) Start the turret.
(3) After the turret has stopped, reset MWRTF to "0".
(4) If the power is turned off after the turret has started, therefore, MWRTF stays at "1".
(5) When the CNC power is turned on, MWRTF2 is set to "1" automatically if MWRTF is "1", thus
informing the sequence program of the failure.
To sum up, the sequence program performs steps (1) to (4) and checks for an abnormal condition,
using MWRTF2. If an abnormal condition (NWRTF2 = 1) is detected, an alarm is raised to the
operator, using a user-created alarm output program.
(6) Recognizing the alarm, the operator resets MWRTF and MWRTF2 to "0" on the KEEP RELAY
screen.
(7) After making the memory content match the actual turret position, restart operation.
- 73 -
2. PMC SPECIFICATIONS B-64393EN/02
Explained below is the meaning of each bit of the system keep relay address. The bits and addresses left
unused are reserved for use by the system.
The system keep relays indicated with an asterisk (*) can be set up, using setting parameters.
#7 #6 #5 #4 #3 #2 #1 #0
K900 DTBLDSP MEMINP AUTORUN PRGRAM LADMASK
NOTE
Using the override function requires setting "Override enable"
(K906.0).
- 74 -
B-64393EN/02 2. PMC SPECIFICATIONS
#7 #6 #5 #4 #3 #2 #1 #0
K902 PROTPRM HIDEPRM ALLWSTOP FROM-WRT
#7 #6 #5 #4 #3 #2 #1 #0
SYMEX
K903 CLRATVAR CLRFBVAR ASKPASS
DISP
NOTE
To make the setting of K903.1 effective, turn off and on power of
the CNC.
NOTE
Refer to “10.1.4 Assignment of FB variable” about address
assignment of FB variable.
- 75 -
2. PMC SPECIFICATIONS B-64393EN/02
CLRATVAR Initialization of the memory area for automatic address assignment at updating sequence
program
0: Not clear the area to which addresses are assigned automatically.
1: Clear the area to which addresses are assigned automatically when changing symbol
data other than FB variable.
NOTE
Refer to “(6) Automatic address assignment at compiling on FANUC
LADDER-III” of “1.2.7 Extension of a symbol and comment” about
automatic address assignment.
#7 #6 #5 #4 #3 #2 #1 #0
EXRELAY
K906 CTLOUT
KEEPSYS TRCST EOUTPUT IOLNKCHK IOGRPSEL OVRRID
NOTE
Using the override function requires setting "Memory write permit"
(K900.4).
- 76 -
B-64393EN/02 2. PMC SPECIFICATIONS
#7 #6 #5 #4 #3 #2 #1 #0
EXRELAY LADSET
K909 MWRTF2 MWRTF
SCRENBL INDPNT
Example:
A0.0 0×8+0 = 0
A249.7 249 × 8 + 7 = 1999
#7 #6 #5 #4 #3 #2 #1 #0
K920 Group 7 Group 6 Group 5 Group 4 Group 3 Group 2 Group 1 Group 0
#7 #6 #5 #4 #3 #2 #1 #0
K921 Group 15 Group 14 Group 13 Group 12 Group 11 Group 10 Group 9 Group 8
- 77 -
2. PMC SPECIFICATIONS B-64393EN/02
#7 #6 #5 #4 #3 #2 #1 #0
K922 Group 7 Group 6 Group 5 Group 4 Group 3 Group 2 Group 1 Group 0
#7 #6 #5 #4 #3 #2 #1 #0
K923 Group 15 Group 14 Group 13 Group 12 Group 11 Group 10 Group 9 Group 8
#7 #6 #5 #4 #3 #2 #1 #0
K924 Group 7 Group 6 Group 5 Group 4 Group 3 Group 2 Group 1 Group 0
#7 #6 #5 #4 #3 #2 #1 #0
K925 Group 15 Group 14 Group 13 Group 12 Group 11 Group 10 Group 9 Group 8
#7 #6 #5 #4 #3 #2 #1 #0
K926 Group 7 Group 6 Group 5 Group 4 Group 3 Group 2 Group 1 Group 0
#7 #6 #5 #4 #3 #2 #1 #0
K927 Group 15 Group 14 Group 13 Group 12 Group 11 Group 10 Group 9 Group 8
- 78 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
This addresses are not synchronized in the 2nd level ladder. A value of a signal in
this addresses may change during the execution of 2nd level ladder same as 1st
and 3rd level ladder when it is written in other program (Ex. Network function, C
language executor).
- 79 -
2. PMC SPECIFICATIONS B-64393EN/02
Address number
7 6 5 4 3 2 1 0
D0
PMC/L 0i-D PMC
Data held separately
DCS PMC
∼ from data table ∼ D1
(address D)
.
.
.
∼ ∼
D2999
.
.
.
∼ ∼
D9999
NOTE
In some cases, the start address of a data table is odd. If an odd number of
1-byte data tables are created, for example, the start address of the next data
table may be odd. This setting is acceptable. However, an even start address
assures faster operations than an odd start address. We recommend you use
even start addresses whenever possible.
- 80 -
B-64393EN/02 2. PMC SPECIFICATIONS
Number of table n
groups
Table parameter
Data type
Table group 1
control data
Number of data items
Table parameter
Table parameter
Data type
Table group n
control data
Number of data items
Intra-table number
0 Data
1 Table group n
: (Note) n1, n2, and np are the last
np intra-table number of the
respective data tables.
- 81 -
2. PMC SPECIFICATIONS B-64393EN/02
#7 #6 #5 #4 #3 #2 #1 #0
SIGN HEX MASK COD
COD
0: Data in the data table is in binary form.
1: Data in the data table is in BCD form.
MASK
0: The contents of the data table is not protected.
1: The contents of the data table is protected.
HEX
0: Data in the data table is in binary or BCD form.
1: Data in the data table is in HEX form.
SIGN
0: Data in the data table is signed.
1: Data in the data table is unsigned.
NOTE
1 The setting of COD (bit 0) is valid if HEX (bit 2) = 0.
2 The setting of SIGN (bit 3) is valid if COD (bit 0) = 0 and HEX (bit 2) = 0.
- 82 -
B-64393EN/02 2. PMC SPECIFICATIONS
Intra-table number
Table group 1
(1-byte data)
Table group 2
(2-byte data)
Data in each data table can be 1, 2, or 4-byte data depending on the data type of the corresponding
table control data.
If the table data is 1-byte data, one intra-table number in the corresponding data table is assigned to
one byte of data. If the table data is 2-byte data, one intra-table number is assigned to two bytes of
data.
NOTE
The sequence program can also read and write the data table.
- 83 -
2. PMC SPECIFICATIONS B-64393EN/02
- 84 -
B-64393EN/02 2. PMC SPECIFICATIONS
(1) Timer
This parameter specifies a timer value.
It is possible to set and display the timer value on the TIMER screen.
The sequence program can read and write the timer setting.
(2) Counter
This parameter is used for a counter preset value and cumulative value. It is possible to set and
display these values on the COUNTER screen. Sequence program instructions can also read and
write these settings. See Subsection 2.2.8 for details of the counter addresses.
Counter data is two bytes in ether BCD or binary form. Higher-order bits are held at higher
addresses. Whether the counter address is BCD or binary is determined according to the
corresponding PMC system parameter.
The default setting is binary form.
(Example)
If the counter addresses of the PMC are C0 and C1, and the preset value is 1578
To change the lower digit of the preset value to a certain value, using a 1-byte processing instruction
in the sequence program, write the new data by specifying C0 with an output address in the
parameter of a functional instruction.
- 85 -
2. PMC SPECIFICATIONS B-64393EN/02
- 86 -
B-64393EN/02 2. PMC SPECIFICATIONS
N Sum of the timer address (T) offset and 600000. The sum can range from N600000 to
N600xxx and from N609000 to N609xxx. "xxx" can take the values listed below.
P The numbers from N600000 mean the timer value. The unit of the value depends on the
timer accuracy which are numbers from N609000.
For example, when the timer accuracy is 3(100ms) and this value is 5, the timer value
means 500ms. The range of effective value is from 0 to 32767.
The numbers from N609000 mean the timer accuracy. Each value is the following timer
accuracy.
- 87 -
2. PMC SPECIFICATIONS B-64393EN/02
(Example)
N600000 P1; (Timer number 1 T0)
N600002 P20; (Timer number 2 T2)
.
N600498 P32767; (Timer number 250 T498)
N Sum of the counter address (C) and 610000. The sum can range from N610000 to
N610xxx and from N615000 to N615nnn. "xxx" and "nnn" can take the values listed
below.
P Counter address value in decimal notation. It has a size of 2 bytes and can range from 0
to 32767 for a range of N610000 to N610xxx. The preset and current values alternate.
For a range of N615000 to N615nnn, each counter value can range from 0 to 32767, and
only the current values appear. The counter addresses are assumed to be binary for
input/output no matter whether the counter data type is specified as BCD or binary.
(Example)
N610000 P7; (Counter number 1 C0)
N610002 P7; ( C2)
.
N610396 P9999; (Counter number 100 C396)
N610398 P0; ( C398)
- 88 -
B-64393EN/02 2. PMC SPECIFICATIONS
N Sum of the keep relay address (K) offset and 620000. The sum can range from N620000
to N620xxx and from N620900 to N620999.
P Keep relay address value in binary notation. It can range from 00000000 to 11111111
for a range of N620000 to N620xxx. For a range of N620900 to N620999, it can range
from 00000000 to 11111111.
(Example)
N620000 P00000000; (K0)
N620001 P11111111; (K1)
.
N620099 P10101010; (K99)
- 89 -
2. PMC SPECIFICATIONS B-64393EN/02
N Sum of the control data table address offset and 630000. The sum can range from
N630000 to N630600.
P Control data table address value.
(Example)
N630000 P2;
N630002 P00000000;
N630003 P0;
N630004 P10;
N630006 P0;
N630010 P00000001;
N630011 P0;
N630012 P10;
N630014 P10;
"xxxxx" and "nnnn" indicating a range can take the values listed below.
- 90 -
B-64393EN/02 2. PMC SPECIFICATIONS
N Sum of the data table address (D) offset and 640000. The sum can range from N640000 to
N64nnnn.
P Data table address value. Its size depends on the "data type" of data table control data
and is represented using a signed decimal number. It can range from -128 to 127, from
-32768 to 32767, and from -2147483648 to 2147483647, respectively, for 1-, 2-, and
4-byte data. And the range of the binary notation is 00000000 to 11111111.
(Example)
N640000 P-128;
N640001 P100;
N640002 P0;
.
N640010 P1000;
N640012 P-1;
.
N649992 P50000000;
N649996 P50000000;
- 91 -
2. PMC SPECIFICATIONS B-64393EN/02
In “Byte format”, all extra relays are stored as byte data, and no information of extra relay control
data is included.
In “Table format”, extra relays are stored in the same manner as the data table; they are stored in the
format according to the extra relay control data, and the information of the control data is also
included.
If you choose “No output”, no information about extra relays are included in PMC parameter file.
N Sum of the offset number of the extra relay and 690000. Its valid range is N690000 to
N699999.
P The value of the extra relay. Shown in signed decimal number. Its valid range is –128 to
127.
(Example)
N690000 P-128;
N690001 P100;
・
N699998 P127;
N699999 P0;
%
N Sum of address offset of the control data and 635000. Its valid range is N63500 to
N635798.
P The value of the control data.
- 92 -
B-64393EN/02 2. PMC SPECIFICATIONS
(Example)
N635000 P2;
N635002 P00000000;
N635003 P0;
N635004 P10;
N635006 P0;
N635010 P00000001;
N635011 P0;
N635012 P10;
N635014 P10;
N Sum of the offset number of the extra relay and 690000. Its valid range is N690000 to
N699999.
P The value of the extra relay. Its data size depends on the “Data type” of the control data
that the extra relay belongs to, and shown as singed decimal number. Its valid range is
–128 to 127 for 1 byte data, -32768 to 32767 for 2 byte data, –2147483648 to 2147483647
for 4 byte data, and 00000000 to 11111111 of binary for bit format.
(Example)
N690000 P-128;
N690001 P100;
N690002 P0;
・
N690010 P1000;
N690012 P-1;
・
N699992 P50000000;
N699996 P50000000;
- 93 -
2. PMC SPECIFICATIONS B-64393EN/02
NOTE
Using the override function requires setting "Override enable" (K906.0).
- 94 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
Using the override function requires setting "Memory write permit" (K900.4).
(16) Selectable I/O Link assignment function: Selecting a valid group: (K920-K927 0: No. 1: Yes.)
This item specifies a group to be enabled or disabled for the selectable I/O Link assignment function
for individual addresses. The default setting is 0 (disable) for all groups.
See Section 3.3 for the selectable I/O Link assignment function.
- 95 -
2. PMC SPECIFICATIONS B-64393EN/02
See Section 3.3 for explanations about the selectable I/O Link assignment function.
- 96 -
B-64393EN/02 2. PMC SPECIFICATIONS
The following table summaries the CNC parameters related to the PMC.
Table 2.4.3 (a) Summary of the CNC parameters related to the PMCs
No. Use Remarks
24 Setting up communication with ladder development tools PMC online connection function
11931#1 Maximum Number of Message External message
Communication parameters
Setting up communication with ladder development tools
00024
(FANUC LADDER-III and ladder editing package)
This item specifies whether to enable/disable the PMC online connection function.
Entering this parameter makes it possible to enable/disable the PMC online setup function
without displaying the PMC online setup screen.
NOTE
1 The setting of this parameter is put into effect when it is changed or
the power is turned on. It is unnecessary to turn the power off and on
again after the parameter is re-set.
2 The setting changed on the PMC online setup screen is not reflected
to this parameter.
3 As for the RS-232C, the communication settings, such as a baud
rate, specified on the PMC online setup screen are valid. The valid
settings are a baud rate of 9600 bps, no parity, and two stop bits if no
change has been made on the PMC online setup screen since
installation.
- 97 -
2. PMC SPECIFICATIONS B-64393EN/02
#1 M16 In the external data input and external messages, the maximum number of external alarm
messages and external operator messages that can be displayed is:
0: 4.
1: 16.
NOTE
1 The setting of this parameter is put into effect when it is changed or
the power is turned on
- 98 -
B-64393EN/02 2. PMC SPECIFICATIONS
Transporting programs require modification because the specifications of the following functions have
been changed.
(1) The used size of system, some functional instructions and symbol/comment (extended type) are
changed. Generally, the program size of 0i-D PMC becomes bigger than PMC-SB7 for 0i-C even if the
same source program is converted. If the program size exceed the capacity of the flash ROM, please
change the ladder step option or reduce the symbol and comment.
As for the total memory of PMC program which includes symbols, comments, messages and ladder of
24,000 step or 32,000 step options, refer to “2.1.2 Program capacity”.
(2) For PMC-SB7 for 0i-C, the timer precision defined with the TMR functional instruction is fixed at a
certain value. For 0i-D PMC, the timer precision can be set up for each timer number separately.
(3) There are some differences in the window function. Please refer to the chapter 5.
(4) Programs can be created on the third level because of program compatibility. The operations on the
third level are not guaranteed with respect to timing, however. Use only the first and second levels in
programming.
- 99 -
2. PMC SPECIFICATIONS B-64393EN/02
Transporting programs requires modification because the specifications of the following functions have
been changed.
(1) The used size of system, some functional instractions and symbol/comment (extended type) are
changed. Generally, the program size of PMC/L becomes bigger than PMC-SA1 for 0i-C/0i Mate-C
even if the same source program is converted. If the program size exceed the capacity of the flash
ROM, please change the ladder step option or reduce the symbol and comment.
As for the total memory of PMC program which includes symbols, comments, messages and ladder of
5,000 step or 8,000 step options, refer to “2.1.2 Program capacity”.
(2) For the PMC-SA1, the timer precision defined with the TMR functional instruction is fixed at a certain
value. For PMC/L, the timer precision can be set up for each timer number separately.
(3) The nonvolatile memory control keep relay (MWRTF and MWRTF2) has been changed from K16 to
K909.
(4) In the PMC-SA1, the system area is "K17 to K20". In the PMC/L, it is "K900 to K999".
(5) There are some differences in the window function. Please refer to the chapter 5.
- 100 -
B-64393EN/02 2. PMC SPECIFICATIONS
- 101 -
2. PMC SPECIFICATIONS B-64393EN/02
FANUC LADDER-III is used to convert a sequence program of other PMC models to the one of
0i-D/0i-Mate D PMC.
Changing PMC model is possible easily with using the "PMC Type changed and save" function of FANUC
LADDER-III.
And, if the "PMC Type changed and save" function can not be used by the version of FANUC LADDER-III,
PMC model can be changed by using the mnemonic conversion.
i) Activate FANUC LADDER-III, and open the original ladder program for PMC-SB7.
ii) Select [File] - [PMC Type changed and save].
iii) Input the destination ladder program name, and select PMC Type, PMC Path and PMC Memory, and
press the [Ok] button.
NOTE
For detailed operation, see the section "3.18 PMC TYPE CHANGED AND SAVE"
of "FANUC LADDER-III OPERATOR'S MANUAL(B-66234EN)".
- 102 -
B-64393EN/02 2. PMC SPECIFICATIONS
ii) Change the system parameters in the mnemonic file for PMC-SB7 by text editor. (“4 PMC-SB7” -> “4
0i-D PMC”)
If the mnemonic file has insufficient parameters for 0i-D PMC, the initial values are set with
conversion for the source program.
The mnemonic file format of the system parameter for 0i-D PMC is as follows.
%@0
2 BINARY 2: Counter type (BINARY or BCD)
3 NO 3: Operator panel (YES or NO)
4 0i-D PMC 4: PMC type (0i-D PMC)
31 1 31: Number of display language (comment) (1-16)
32 -1 32: CNC display language number 1 (-1, 0-127)
33 0 33: Comment set number 1 (0-16)
%
iii) Create a new LAD file for 0i-D PMC by FANUC LADDER-III. (Select 0i-D PMC as PMC type with
[File] -> [New Program])
iv) Convert the mnemonic file to the source program.([Tool] -> [Source Program Convert])
NOTE
For detailed operation, see the section "11.19 HOW TO CONVERT FROM
CONVENTIONAL MODEL" of "FANUC LADDER-III OPERATOR'S MANUAL
(B-66234EN)".
- 103 -
2. PMC SPECIFICATIONS B-64393EN/02
NOTE
This function is optional.
Step 1 At first, prepare a ladder program. The message data in the ladder program must have alarm
numbers associated.
Step 2 Prepare a mnemonic file of multi-language message data. The mnemonic file is a text file, and can
be created and edited by some text editor application on PC. The alarm numbers in the mnemonic
file must correspond with the alarm numbers in the message data of the ladder program.
Step 3 Make the memory card format file of the ladder program by compile process on FANUC
LADDER-III as usual.
Step 4 Make the memory card format file of the multi-language message data using “Multi-language PMC
Message Creation Tool” included in FANUC LADDER-III which supports this function.
Step 5 Store these memory card format files created in step 3 and 4. You can use Boot Menu to store them
directly into Flash ROM, or you can use PMC I/O screen to read them into the memory, and then
write them into Flash ROM.
You can store two or more language sets of messages into a multi-language message data file. And you can
prepare two or more multi-language message data files to enable switching the available language of the
messages by altering the message file in CNC afterwards.
- 104 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
1 Message data for multi-language display cannot be created, browsed, or edited on
the CNC screen. To create or edit the message data, FANUC LADDER-III is
required.
2 If the ladder program uses the extended symbol and comment feature, you can
use symbols in multi-language message data instead of “A” address notation.
Otherwise, you have to use “A” address notation only.
3 For instructions of FANUC LADDER-III and file format of multi-language message
data mnemonic file, refer to the following manual:
Manual title Drawing No.
FANUC LADDER-III Operator's Manual B-66234EN
Outline of the process flow from data creation to display them with PMC message multi-language display
function
Mnemonic file (Message) Step 2
Ladder program ID code:%@4-D (ANSI/Unicode)
Message (Standard)
Message Japanese ALM1001 “1001 ”
ALM1001 “1001 E.STOP” display/editor
screen German ALM1001 “1001 E.STöP”
Step 1
Message
screen
- 105 -
2. PMC SPECIFICATIONS B-64393EN/02
The message data which has a language attribute number other than ones in the table above, will be just
ignored.
Selection of language
If messages of required language are not found in multi-language message data, English messages will be
used instead. If English messages are not found either, messages in ordinary message data in ladder
program will be used.
NOTE
1 A message defined in multi-language message data will not be displayed unless
the corresponding message data in ladder program has valid alarm number.
2 If messages of current language has no corresponding message entry to the bit of
“A” address that has turned on, alarm message without any message will be
issued, with the alarm number that is defined at corresponding entry in ordinary
message data. If ordinary message data has no valid alarm number at the entry,
no alarm is issued.
3 It may take a while to change alarm and operator messages to one of languages
after changing display language of CNC. The more messages per a language are
defined especially using symbol, the longer time it tends to take to switch them.
- 106 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
To increase the number of displayable messages on the CNC screen, the relevant
NC parameter needs to be set. If the number of displayable messages is
increased by setting the NC parameter, the number of displayable messages also
increases with DISPB instruction, even without using multi-language display
function.
A0
B0
C0
D0
* The character code in the table is for the code format notation. which is enclosed by "@0D" and "01@"
A0
B0
* The character code in the table is for the code format notation which is enclosed by "@0E" and "01@"
- 107 -
2. PMC SPECIFICATIONS B-64393EN/02
60
70
80
90
A0
B0
C0
D0
E0
F0
* The character code in the table is for the code format notation which is enclosed by "@05" and "01@"
NOTE
1 The characters that can be displayed on CNC screen are as same as ones that
can be displayed by conventional DISPB function. If code of a character that can
not be displayed is contained in message data, the character will not be displayed.
2 For instructions for editing message data on personal computer, refer to the
following manual:
Manual title Drawing No.
FANUC LADDER-III Operator's Manual B-66234EN
- 108 -
B-64393EN/02 2. PMC SPECIFICATIONS
NOTE
For instructions for editing message data of Simplified Chinese and Korean
(Hangul characters) on personal computer, refer to the following manual:
Manual title Drawing No.
FANUC LADDER-III Operator's Manual B-66234EN
- 109 -
2. PMC SPECIFICATIONS B-64393EN/02
NOTE
For the method of battery replacement, refer to "Maintenance Manual
(B-64305EN)".
NOTE
1 A delay occurs in PMC parameter backup operation. For details, see Subsection
2.3.1, "Cautions for Reading from/Writing to Nonvolatile Memory ".
Width the following functions, data backed up by the battery can be saved to an external device.
- 110 -
B-64393EN/02 2. PMC SPECIFICATIONS
WARNING
Exercise special care when clearing PMC parameters. When PMC parameters
are cleared, the machine malfunctions. After clearing PMC parameters, be sure to
set the correct values again.
NOTE
PMC battery backup data is also cleared when the entire memory of the CNC is
cleared. For operation to clear the entire memory of the CNC, refer to
"Maintenance Manual (B-64305EN)".
- 111 -
3.I/O LINK B-64393EN/02
3 I/O LINK
Chapter 3, "I/O LINK", consists of the following sections:
The update cycle of the signals from I/O Link depends on the combination with each PMC and each I/O
Link channel. The update cycle of the signals from I/O Link when each PMC uses each I/O Link channel
is shown in the following table.
Table 3.1 (a) Update cycle of the signals from I/O Link
0i-D/0i Mate-D 0i-D
0i-D PMC
PMC/L DCSPMC
Channel 1 2msec 2msec
(cannot use)
Channel 2 2msec
(cannot use)
Channel 3 (cannot use) 2msec
NOTE
1 To use channels 2 to 3 of the I/O Link, the I/O Link point expansion option is
required for each channel.
2 When using the I/O Link, the last 1byte of the X address for which no I/O device
is assigned (normally X127 or X327) is used by the system. Therefore, some bits
at these X addresses may be changed.
Please don't use X addresses for which no I/O device is assigned.
- 112 -
B-64393EN/02 3.I/O LINK
Slaves
Group 0
I/O Link
master
Group 1
Operator's panel
connection unit
Group 2
Power Mate
: : : : :
: : : : :
Group 15
(1) The I/O Link consists of one master and multiple slaves.
Master: CNC (such as Series 0i-D)
Slaves: I/O Unit-MODEL A, Power Mate, operator's panel connection unit, and other devices
(2) Up to 16 groups of slaves can be connected to one I/O Link.
Group numbers 0 to 15 are sequentially assigned. Number 0 is assigned to the group nearest to the
master.
The number of connected slaves in a group differs depending on the types of slaves.
(3) Any slave can be connected in any group. One group must consist of slaves of the same type,
however.
NOTE
1 Turn the power to the slaves and master on simultaneously or turn the power to
the slaves on before turning the power to the master.
2 When turning the power to the master off, also turn the power to all slaves off.
Turn the power to all slaves on again before turning the power to the master on or
turn the power to all slaves and the master on simultaneously. Turn the power to
the master on after turning the power to all slaves on or turn the power to the
master and all slaves on simultaneously.
3 For the maximum number of slaves per group that can be connected, refer to the
hardware connection manual for each I/O device used as a slave.
- 113 -
3.I/O LINK B-64393EN/02
3.1.2 Numbers of Input Points and of Output Points of the I/O Link
The I/O Link has up to 1024 input points and up to 1024 output points for each channel when viewed
from the master. These I/O points can be assigned to each slave to periodically pass I/O data between the
master and each slave.
Each slave occupies the predetermined number of I/O points.
The total number of I/O points occupied by all slaves connected to one channel is up to 1024 points (128
bytes) for each of input and output.
The number of I/O points occupied by one group is up to 256 points (32 bytes) for each of input and
output.
Obtain the number of occupied I/O points as follows.
[Number of output points]
Total number of points required for output modules used in one group Number of occupied I/O points
0 to 32 32
40 to 64 64
72 to 128 128
136 to 256 256
NOTE
When obtaining the number of points, assume that the number of points required
for AOA05E is 8 and that of points required for AOA12F is 16.
NOTE
The number of occupied I/O points may differ from the actual number of I/O
points. For example, if the number of input points is smaller than or equal to that
of output points for a group, the number of input points is assumed equal to that
of output points. For this reason, when the number of input points for the actually
connected hardware components is 128 and that of output points is 256, the
number of occupied input points is assumed to be 256 because there is the
following relationship between the numbers of input points and of output points:
128 (number of input points) ≦ 256 (number of output points)
For more specific rules, see Section 3.2.
- 114 -
B-64393EN/02 3.I/O LINK
(1) Type of I/O device whose connection location is specified with its group, base, and slot numbers
I/O Unit-MODEL A is of this type. Specify the connection location with its group, base, and slot
numbers.
The range of valid settings of each item is as follows:
Group = 0 to 15
Base = 0 and 1
Slot = 1 to 10 (number of a slot on a I/O Unit-MODEL A base board)
(2) Type of I/O device whose connection location is specified with its group and slot numbers
I/O Unit-MODEL B and handy machine operator's panels are of this type. Always set the base
number to 0.
The range of valid settings of each item is as follows:
Group = 0 to 15
Base =0 (Always set 0.)
Slot = 0 to 30 (NOTE)
NOTE
For detailed information on settings, see Subsections 3.2.2 and 3.2.6.
(3) Type of I/O device whose connection location is specified with its group number
Machine operator's panel interface unit, I/O Link connection unit, Power Mate, and other devices are
of this type. One unit of this type occupies one group. When using this type, always set the base
number to 0 and the slot number to 1.
The range of valid settings of each item is as follows:
Group = 0 to 15
Base =0 (Always set 0.)
Slot =1 (Always set 1.)
- 115 -
3.I/O LINK B-64393EN/02
NOTE
1 Assign the start byte of an analog input module (AD04A) or analog output module
(DA02A) to an even input address (X ) or even output address (Y ).
2 Always read an A/D converted digital value from an input address (X ) or
write a digital value to be converted to an analog value to an output address
(Y ) in word (16-bit) units.
For details of the assignment method, see the assignment method for each I/O device described later.
When you want to set assignment data using the I/O module screen, for required operations, see Section
9.4.
- 116 -
B-64393EN/02 3.I/O LINK
Table 3.2 (a) Module names (1)
Module name Occupied
Name Specifications
(actual module name) address
Input modules for ID32A (AID32A1) 4 bytes for input A03B-0807-J101
I/O Unit-MODEL A ID32B (AID32B1) 4 bytes for input A03B-0807-J102
ID32H (AID32H1) 4 bytes for input A03B-0807-J111
ID16C (AID16C) 2 bytes for input A03B-0807-J103
ID16D (AID16D) 2 bytes for input A03B-0807-J104
ID16K (AID16K) 2 bytes for input A03B-0807-J113
ID16L (AID16L) 2 bytes for input A03B-0807-J114
ID32E (AID32E1) 4 bytes for input A03B-0807-J105
ID32E (AID32E2) 4 bytes for input A03B-0807-J110
ID32F (AID32F1) 4 bytes for input A03B-0807-J106
ID32F (AID32F2) 4 bytes for input A03B-0807-J109
IA16G (AIA16G) 2 bytes for input A03B-0807-J107
AD04A (AAD04A) 8 bytes for input A03B-0807-J051
AD04A (AAD04B) 8 bytes for input A03B-0819-J063
ES01A (AES01A) 1 byte for input A03B-0807-C108
ID08F (AID08F) 1 byte for input A03B-0807-C112
Output modules for OD32A (AOD32A1) 4 bytes for output A03B-0807-J162
I/O Unit-MODEL A OD08C (AOD08C) 1 byte for output A03B-0807-J151
OD08D (AOD08D) 1 byte for output A03B-0807-J152
OD16C (AOD16C) 2 bytes for output A03B-0807-J153
OD16D (AOD16D) 2 bytes for output A03B-0807-J154
OD32C (AOD32C1) 4 bytes for output A03B-0807-J155
OD32C (AOD32C2) 4 bytes for output A03B-0807-J172
OD32D (AOD32D1) 4 bytes for output A03B-0807-J156
OD32D (AOD32D2) 4 bytes for output A03B-0807-J167
OA05E (AOA05E) 1 byte for output A03B-0807-J157
OA08E (AOA08E) 1 byte for output A03B-0807-J158
OA12F (AOA12F) 2 bytes for output A03B-0807-J159
OR08G (AOR08G) 1 byte for output A03B-0807-J160
OR16G (AOR16G) 2 bytes for output A03B-0807-J161
OR16H (OR16H2) 2 bytes for output A03B-0807-J165
DA02A (ADA02A) 4 bytes for output A03B-0807-J052
DA02A (ADA02B) 4 bytes for output A03B-0819-J060
BK01A (ABK01A) 1 byte for output A03B-0807-C164
OA08K (AOA08K) 1 byte for output A03B-0807-C169
OD08L (AOD08L) 1 byte for output A03B-0807-C170
OD16D (AOD16D2) 2 bytes for output A03B-0807-C171
OR08I (AOR08I3) 1 byte for output A03B-0807-C166
OR08J (AOR08J3) 1 byte for output A03B-0807-C168
Output modules with an /2 (AOD16DP) 2 bytes for output A03B-0807-J182
output protection function /1 (AOD08DP) 1 byte for input
for I/O Unit-MODEL A A03B-0819-J183
/1 (AOD08DP) 1 byte for output
Input/output module for IO24I (AIO40A) 3 bytes for input
A03B-0807-C200
I/O Unit-MODEL A IO16O (AIO40A) 2 bytes for output
- 117 -
3.I/O LINK B-64393EN/02
- 118 -
B-64393EN/02 3.I/O LINK
NOTE
1 For the specifications and connection of each I/O device, refer to the relevant
hardware connection manual.
2 For the assignment method for each I/O device, see Subsections 0 to 3.2.8.
3 As assignment data for a handy machine operator's panel, assign multiple
module names successively. For details, see Subsection 3.2.6.
- 119 -
3.I/O LINK B-64393EN/02
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
F F
0 0
1 1
A B
Base 0 Base 1
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
F F
0 0
1 1
A B
Base 0 Base 1
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
F F
0 0
1 1
A B
Base 0 Base 1
Base 0
Group 3
Power Mate
Base 0
Assignment method
(1) Group number
For I/O Unit-MODEL A, up to two I/O units can be connected when interface module AIF01A is
used as the basic unit and expansion interface module AIF01B is also used. This is called the base
expansion function. This set of up to two I/O units comprises one group (see Fig. 3.2.1 (a)). When
required I/O modules cannot be contained only in one group or when multiple I/O units are to be
distributed at distant locations on the machine side, the second AIF01A can be connected to the first
AIF01A using a cable to add a group. (See Fig. 3.2.1 (b).)
- 120 -
B-64393EN/02 3.I/O LINK
(2) Base number
One group consists of up to two I/O base units. The base number of the I/O unit on which interface
module AIF01A is mounted is 0; the base number of the other I/O unit is 1.
In other words, when the base expansion function is used, the base number of the basic unit is
always 0 and that of the expansion unit is always 1. When the base expansion function is not used,
the base number is always 0.
NOTE
For I/O Unit-MODEL A, when assigning 3, 5, 6, or 7 bytes, change the module
name as follows.
Do not use IO24I, /3, /5, /6, or /7 as a module name.
Module names
Before change → After change
IO24I → /4
/3 → /4
/5 → /8
/6 → /8
/7 → /8
NOTE
For the specifications and connection of I/O Unit-MODEL A and related I/O
modules, refer to the hardware connection manual for each I/O device.
- 121 -
3.I/O LINK B-64393EN/02
I/O LINK
MASTER
[GROUP] = 0
Power Mate
[BASE] = 0, [SLOT] = 1
[GROUP] = 1
Operator's panel
interface unit
[BASE] = 0, [SLOT] = 1
[GROUP] = 2
[BASE] = 0 [BASE] = 1
I/O Unit-B
interface unit
I/O Unit-B I/O Unit-B
DI/DO unit DI/DO unit
(Unit No. = 1) (Unit No. = 20)
- 122 -
B-64393EN/02 3.I/O LINK
Assignment method
As the group number, set the group number used in the configuration. As the base number, always set 0.
As the slot number, set the unit number of a DI/DO unit of I/O Unit-MODEL B. To assign power on-off
information, set 0 for the slot number.
Set the following values for the slot number and assignment name:
Slot number:
0: Power on-off information
1 to 30: Unit number
Assignment name:
Module name representing the address occupied by the I/O Unit-MODEL B DI/DO unit (see Table
3.2 (b).)
Example of setting
To connect an I/O Unit-MODEL B DI/DO unit with unit number 10 whose occupied address is 3 bytes in
GROUP=1:
Enter 1.0.10.#3.
NOTE
When channels 2 to 3 are also used to connect I/O devices, the maximum total
number of groups used for connecting I/O Unit-MODEL B with channels 1 to 3 is
8.
- 123 -
3.I/O LINK B-64393EN/02
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
F F
0 0
2 1
C B
Group 1
Group 2
Operator's panel
connection unit
For the AIF02C, the base expansion function of the AIF02A is removed and the functions of the I/O Unit-
MODEL B interface unit are added.
When I/O Unit-MODEL A is not used, only I/O Unit-MODEL B cannot be used. The base expansion
function cannot also be used.
The AIF02C occupies two groups. Assignment is required for each of I/O Unit-MODEL A and I/O Unit-
MODEL B.
NOTE
For details of the AIF02C, refer to "FANUC I/O Unit-MODEL A Connection and
Maintenance Manual" (B-61813E).
NOTE
For the setting of each I/O Unit-MODEL B unit and the specifications and
connection of related I/O modules, refer to the hardware connection manual for
each I/O device in addition to the above connection manual.
- 124 -
B-64393EN/02 3.I/O LINK
Example of assignment
Example)
CNC
JD1A
Operator's panel
I/O module
A20B-2002-0470
JD1B
JD1A
- 125 -
3.I/O LINK B-64393EN/02
CAUTION
Always connect expansion modules 1, 2, and 3 in this order closely when
required. Any intermediate expansion module cannot be skipped.
You may want to make the above setting so that expansion module 1 is not
mounted to connect it later and connection information of only expansion module
2 is assigned, but the setting is disabled.
Basic
module
JD1B
JD1A
Basic Expansion
module module 1
JD1B
JD1A
- 126 -
B-64393EN/02 3.I/O LINK
(b) When DO alarm detection is used
• Regardless of the number of manual pulse generators
Input: X=CM16I, output: Y=CM04O
- 127 -
3.I/O LINK B-64393EN/02
(1) Operator's panel I/O module (compatible with matrix input, A20B-2002-0470)
Operator's panel
I/O module
JD1B
JD1A
48 input points
32 output points
Operator's panel
I/O module
JD1B
JD1A
- 128 -
B-64393EN/02 3.I/O LINK
(3) Distribution I/O machine operator's panel
(A20B-8001-0721, A20B-8001-0720, A20B-8001-0210)
Input: 8 points for override signals and so on + 24 general-purpose points + 64
matrix points
Output: 64 matrix points
Operator's panel
I/O module
JD1B
JD1A
- 129 -
3.I/O LINK B-64393EN/02
I/O LINK
MASTER
[GROUP] = 0
Operator's panel
interface unit
[BASE] = 0, [SLOT] = 1
[GROUP] = 1
Power Mate
[BASE] = 0, [SLOT] = 1
Assignment method
For the group number, set the group number used in the configuration.
For the base number, always set 0.
For the slot number, always set 1.
Number of input/output points Input device assignment name Output device assignment name
(input/output) (module name) (module name)
32/32 FS04A FS04A
64/64 FS08A FS08A
96/96 /12 /12
128/128 OC02I or /16 OC02O or /16
160/160 /20 /20
192/192 /24 /24
224/224 /28 /28
256/256 OC03I or /32 OC03O or /32
NOTE
1 Assign input and output module names with the same number of points.
2 For the I/O Link β amplifier, assign OC02I/OC02O.
Examples of settings
To connect Power Mate i-D with 256/256 points in group 1:
Enter 1.0.1.OC03I for input and 1.0.1.OC03O for output.
- 130 -
B-64393EN/02 3.I/O LINK
(a)
I/O Unit ↔ I/O Unit
Model A Model A
An I/O Link connection unit replaces the connected devices to eliminate cable connection and enable the
power to each master or slave to be turned on and off independently.
Therefore, when an I/O Link connection unit is used, the connection is as follows.
I/O Link
connection unit
- 131 -
3.I/O LINK B-64393EN/02
Assignment method
Assignment data is determined according to the types of I/O devices replaced with an I/O Link
connection unit.
Occupied address Input device assignment name Output device assignment name
1 to 8 / ( :Numeric character 1 to 8) / ( :Numeric character 1 to 8)
12 /12 /12
16 OC02I or /16 OC02O or /16
20 /20 /20
24 /24 /24
28 /28 /28
32 OC03I or /32 OC03O or /32
Example of setting
To connect a connection unit whose occupied address is 16 bytes in GROUP=1 as an input device:
Enter 1.0.1.OC02I.
To connect a connection unit whose occupied address is 28 bytes in GROUP=1 as an input device:
Enter 1.0.1. /28.
NOTE
For details of the hardware connection method, particularly connection of a power
supply, refer to the hardware connection manual for each related master/slave
device.
- 132 -
B-64393EN/02 3.I/O LINK
Operator's panel
Group 1
connection unit
Assignment method
Assign 16 bytes to X addresses and 32 bytes to Y addresses contiguously starting from any address for
each group. Set the group number used in the configuration for the group number and always set 0 for the
base number. Set the slot number and assignment name as shown in the table below. The number of
occupied input points for each group is 32 bytes, which is the same as that of output points, because of
limitations of the I/O Link.
- 133 -
3.I/O LINK B-64393EN/02
For each version, an example of connection is shown and the assignment method is described below.
AS-i power
supply Group 0
I/O Link I/O Link-AS-i
master converter unit for
AS-i slave AS-i slave
Ver 2.0
Group 1
Operator's panel
connection unit
- 134 -
B-64393EN/02 3.I/O LINK
AS-i power
supply Groups 0 and 1
I/O Link I/O Link-AS-i
Group 2
Operator's panel
connection unit
Group number Input device assignment name Output device assignment name
n OC03I OC03O
n+1 OC03I OC03O
NOTE
An I/O Link-AS-i converter unit for Ver 2.1 cannot be used as a converter unit for
Ver 2.0 with assignment data for Ver 2.0.
- 135 -
3.I/O LINK B-64393EN/02
CNC
An operator's panel consists of the following keys, LEDs, and other components:
• Key-operated switches (sheet keys)
42 keys (0-TC)
46 keys (0-MC)
• LEDs (red) on all key-operated switches
• Override rotary switch (4 bits)
• Emergency stop button (1 bit)
• Program protect key (1 bit)
- 136 -
B-64393EN/02 3.I/O LINK
- 137 -
3.I/O LINK B-64393EN/02
Fig. 3.2.8 (d) Machine operator's panel for the 0-TC full-keyboard 9-inch CRT/MDI unit
- 138 -
B-64393EN/02 3.I/O LINK
Fig. 3.2.8 (e) Machine operator's panel for the 0-MC full-keyboard 9-inch CRT/MDI unit
- 139 -
3.I/O LINK B-64393EN/02
Example of connection
CNC
MAIN CPU
I/O Link I/O unit FS0 operator's panel
JD1A
JD1B DI M1A
(I/O Link)
module
CP32
PSU DO M2A
CP6 JD1A module
Assignment method
For the group number ([GROUP]), set the group number used in the configuration.
For the base number ([BASE]), always set 0.
For the slot number ([SLOT]), always set 1.
For the above example of connection, the FS0 operator's panel occupies 32 points (4 bytes) for both input
and output. Therefore, the assignment names are as follows.
- 140 -
B-64393EN/02 3.I/O LINK
This signal is directly monitored by the CNC and is assigned at the fixed address.
For connection, refer to the section describing the interface between the CNC and PMC in the CNC
connection manual.
Override signals (*OV1 to *OV8) and program protect key signal (KEY)
For these signals, the relevant key-operated switch contact signals are directly input to the PMC. Directly
process these signals with a PMC ladder program.
For connection, refer to the section describing the interface between the CNC and PMC in the CNC
connection manual.
Each key-operated switch signal is coded by PMC management software and input to the relevant PMC
address R as a bit image.
Whether a required key is pressed can be determined by checking the bit image of the key-operated
switch using the user PMC ladder program. (See Tables 3.2.8 (a), 3.2.8 (b), and 3.2.8 (c).) When a key is
pressed, the bit corresponding to the key is 1.
Up to two keys can be input simultaneously. Do not use any keyboard input method for a user PMC
program that requires simultaneous pressing of three or more keys. If three or more keys are pressed
simultaneously, they are not input correctly.
It takes up to 60 ms until the bit corresponding to a key is set to 1 (0) after the key is pressed (released).
The address of a key-operated switch signal (Xn to Xn+2: Table 3.2.8 (a)) and the address of its bit
image (Rk to Rk+7: Tables 3.2.8 (b) and (c)) can be defined as the fixed address or an unused address
without restrictions.
Create each LED signal at PMC address R as a bit image in the user PMC ladder program. PMC
management software converts the bit image of the LED signal to a coded output signal. (See Tables
3.2.8 (a), (b), and (c).) When a value of 1 is written in an LED bit image, the corresponding LED is
automatically turned on. In the same way, when a value of 0 is written, the LED is turned off. All LEDs
are off at power-on.
It takes up to 200 ms until an LED is turned on (off) after a value of 1 (0) is written in the corresponding
bit image by the PMC.
- 141 -
3.I/O LINK B-64393EN/02
The address of an LED signal (Ym: Table 3.2.8 (a)) and the address of its bit image (Rl to Rl+7: Tables
3.2.8 (b) and (c)) can be defined as the fixed address or an unused address without restrictions.
Xn+1
Table 3.2.8 (b) Key-operated switch and LED signal bit image addresses
(for a compact operator's panel)
KEY/LED #7 #6 #5 #4 #3 #2 #1 #0
Rk/Rl F3 F2 F1 D1 C1 B1 A1
Rk+1/Rl+1 F4 D2 C2 B2 A2
Rk+2/Rl+2 D4 D3 C4 C3 B4 B3 A4 A3
Rk+3/Rl+3 F6 F5 D5 C5 B5 A5
Rk+4/Rl+4 F8 D6 C6 B6 A6
Rk+5/Rl+5 D8 C8 B8 A8 A7
Rk+6/Rl+6 F9 D9 C9 B9 A9
Table 3.2.8 (c) Key-operated switch and LED signal bit image addresses
(for a full-keyboard operator's panel)
KEY/LED #7 #6 #5 #4 #3 #2 #1 #0
Rk/Rl E1 C1 A1 E6 D6 C6 B6 A6
Rk+1/Rl+1 E2 C2 A2 E7 D7 C7 B7 A7
Rk+2/Rl+2 E3 C3 A3 E8 D8 C8 B8 A8
Rk+3/Rl+3 E5 C4 A4 E9 D9 C9 B9 A9
- 142 -
B-64393EN/02 3.I/O LINK
Setting addresses
Use the system parameter screen to set key-operated switch and LED signal addresses and bit image
addresses.
For details of screen operations, see Section 9.8 described later. For details of parameters to be set, see
Section 2.4 described earlier.
The following simply describes how values set on the system parameter screen are set at addresses shown
in Tables 3.2.8 (a), (b), and (c).
Example:
On the system parameter screen, specify that the FS0 operator's panel is to be used. Then, set the start
key-operated switch address for "DI address", start LED signal address for "DO address", start key-
operated switch bit image address for "key input image address", and start LED signal bit image address
for "LED output image address".
When the following values are set:
DI address: X0
DO address: Y0
Key input image address: R900
LED output image address: R910
The addresses shown in Tables 3.2.8 (a), (b), and (c) are set to the following PMC addresses:
Xn → X0000
Xn+1 → X0001
Xn+2 → X0002
Ym → Y0000
Rk / Rl → R0900 / R0910
Rk+1 / Rl+1 → R0901 / R0911
Rk+2 / Rl+2 → R0902 / R0912
Rk+3 / Rl+3 → R0903 / R0913
Rk+4 / Rl+4 → R0904 / R0914
Rk+5 / Rl+5 → R0905 / R0915
Rk+6 / Rl+6 → R0906 / R0916
Rk+7 / Rl+7 → R0907 / R0917
- 143 -
3.I/O LINK B-64393EN/02
3.3.1 Outline
This function enables the common use of a sequence program for several machines which have different
I/O device configuration with each other, by setting the parameter to enable/disable each group in I/O link
assignment data.
Machine A Machine B
I/O devices I/O devices
Make ROM format file with I/O link assignment data that is used in both the
machine A and the machine B.
- 144 -
B-64393EN/02 3.I/O LINK
The I/O devices that are used in all machines can be set as basic part of configuration that is always
effective.
Basic part
Determine the basic part and the optional part of I/O link assignment data.
NOTE
When you set a basic part, you have to assign devices of basic part continuously
from group 0. And the basic part is connected with the top of the link.
- 145 -
3.I/O LINK B-64393EN/02
Optional part
Basic part
This function requires setting the following parameters. These parameters can be set for each channel.
For details of each parameter, see Sections 2.4 and 9.5.
NOTE
The use of the "I/O Link point expansion option" for channel 2 enables this
function for the relevant channel.
- 146 -
B-64393EN/02 3.I/O LINK
3.3.2 Example
There are three machines which have different configurations of I/O devices, each other.
• Configuration A
A machine which has a distribution I/O machine operator's panel and a connection panel I/O
connected with channel 1 of NC.
Channel 1
Channel 2
No connection
• Configuration B
A machine which has a distribution I/O machine operator's panel and a Power Mate connected with
channel 1 of NC.
Channel 1
Channel 2
No connection
• Configuration C
A machine which has the configuration A on channel 1 and two beta amplifiers on channel 2.
Channel 1
Channel 2
Group 0 Group 1
These machines can use a common sequence program which has I/O link assignment data that includes
all I/O device configurations. The contents of parameters for each I/O device configuration are as shown
below.
- 147 -
3.I/O LINK B-64393EN/02
Channel 2
Address Group Base Slot Name I/O device
X0200 0 0 1 OC02I Beta amp.
: : : : : :
X0220 1 0 1 OC02I Beta amp.
: : : : : :
• Configuration A
• System parameter
X0000/Y0000
ENABLE SELECTION = YES
BASIC GROUP COUNT = 1
X0200/Y0200
ENABLE SELECTION = YES
BASIC GROUP COUNT = 0
• Setting parameter
Group NO. 00 01 02 03 04 05 06 07
(X0000/Y0000) * 1 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
Group NO. 00 01 02 03 04 05 06 07
(X0200/Y0200) 0 0 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
- 148 -
B-64393EN/02 3.I/O LINK
• Configuration B
• System parameter
X0000/Y0000
ENABLE SELECTION = YES
BASIC GROUP COUNT = 1
X0200/Y0200
ENABLE SELECTION = YES
BASIC GROUP COUNT = 0
• Setting parameter
Group NO. 00 01 02 03 04 05 06 07
(X0000/Y0000) * 0 1 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
Group NO. 00 01 02 03 04 05 06 07
(X0200/Y0200) 0 0 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
• Configuration C
• System parameter
X0000/Y0000
ENABLE SELECTION = YES
BASIC GROUP COUNT = 1
X0200/Y0200
ENABLE SELECTION = YES
BASIC GROUP COUNT = 0
• Setting parameter
Group NO. 00 01 02 03 04 05 06 07
(X0000/Y0000) * 1 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
Group NO. 00 01 02 03 04 05 06 07
(X0200/Y0200) 1 1 0 0 0 0 0 0
08 09 10 11 12 13 14 15
0 0 0 0 0 0 0 0
- 149 -
3.I/O LINK B-64393EN/02
(3) The actual contents of I/O link assignment data modified by the parameter
• Configuration A
Channel 1
Address Group Base Slot Name I/O device
X0000 0 0 1 CM12I Distribution I/O machine operator’s
panel
: : : : : :
X0020 1 0 1 CM03I Connection panel I/O
: : : : : :
Channel 2
No connection
• Configuration B
Channel 1
Address Group Base Slot Name I/O device
X0000 0 0 1 CM12I Distribution I/O machine operator’s
panel
: : : : : :
X0030 1 0 1 FS08A Power Mate
: : : : : :
Channel 2
No connection
• Configuration C
Channel 1
Address Group Base Slot Name I/O device
X0000 0 0 1 CM12I Distribution I/O machine operator’s
panel
: : : : : :
X0020 1 0 1 CM03I Connection panel I/O
: : : : : :
Channel 2
Address Group Base Slot Name I/O device
X0200 0 0 1 OC02I Beta amp.
: : : : : :
X0220 1 0 1 OC02I Beta amp.
: : : : : :
- 150 -
B-64393EN/02 3.I/O LINK
3.3.3 Notes
(1) If PMC-parameters are cleared, cycling the power of CNC links only the basic part.
(2) After selecting the assignment data, the I/O devices are linked with shifted group number of
effective I/O link assignment data.
You can check the actual result of connection using the I/O Link connection display screen.
Group 4 Effective
(3) You can not exchange the order of the I/O group number.
WARNING
1 If the machine is linked again with incorrect setting of I/O link assignment
parameters, the machine may perform unexpected operation. If you want to
have the machine linked with I/O devices under the selected I/O link assignment
data, you have to turn off and on power after the confirmation of the correct
connection of the I/O devices.
2 To prevent any operator error caused in a case as described in "WARNING 1"
above, it is recommended that the "I/O Link connection check function" be
enabled. For details, see Section 3.4.
- 151 -
3.I/O LINK B-64393EN/02
NOTE
1 All I/O devices connected to the channel in which this alarm occurs are not
linked.
2 The ladder program is executed regardless of whether this alarm occurs.
The execution of this function can be controlled using keep relay K906.2.
K906.2
0: Enables the I/O Link connection check function. (Initial value)
1: Disables the I/O Link connection check function.
CAUTION
If I/O devices are linked in the status in which an I/O device error or I/O device
connection error occurs or the setting of an I/O device is changed due to an
unintentional operation, the machine may not operate normally. This function
can always be operated to detect an I/O device error at power-on. To
troubleshoot problems with I/O devices easily, it is recommended that keep relay
K906.2 be set to the initial value (0).
- 152 -
B-64393EN/02 4.LADDER LANGUAGE
4 LADDER LANGUAGE
Chapter 4, "LADDER LANGUAGE", consists of the following sections:
- 153 -
4.LADDER LANGUAGE B-64393EN/02
RO
A B
X8.1 R12.6
C R9.0
Address number
- 154 -
B-64393EN/02 4.LADDER LANGUAGE
(3) Storage of logical operation results
There is a register that stores the interim results of logical operations during the execution of a
sequence program.
This register consists of a total of nine bits, which is divided into a one-bit segment and an eight-bit
segment as shown in Fig. 4.1 (b).
When an instruction (such as RD.STK) that temporarily stores the interim result of a logical
operation is executed, the current content of the register is shifted to the left and the interim logical
operation result is stacked in the register, as shown in the above figure. Conversely, when an
instruction (such as AND.STK) that retrieves a stacked signal is executed, the register content is
shifted to the right and the signal is retrieved. The last stacked signal is retrieved first. For
information about the actual uses and operations of these instructions, see the relevant descriptions
in this manual.
- 155 -
4.LADDER LANGUAGE B-64393EN/02
Mnemonic format:
The instructions are displayed in this format when you edit or print a ladder program that has been
converted to the mnemonic format with FANUC LADDER-III, by using a commercially available
text editor.
Mnemonic format (abbreviated):
These are the abbreviated forms of instructions that you can use when editing a ladder program that
has been converted to the mnemonic format with FANUC LADDER-III, by using a commercially
available text editor. If you input a file in this abbreviated format and convert it again to the ladder
diagram format with FANUC LADDER-III, the code in the file can still be recognized as being
written in the valid mnemonic format.
Table 4.1.1
Instruction
Mnemonic
No. Mnemonic Processing
format
format
(abbreviated)
1 RD R Reads the status of the specified signal and sets it in the ST0 bit.
Reads and reverses the logical status of the specified signal and sets it in
2 RD.NOT RN
the ST0 bit.
Outputs the logical operation result (the status of the ST0 bit) to the
3 WRT W
specified address.
Reverses and outputs the logical operation result (the status of the ST0
4 WRT.NOT WN
bit) to the specified address.
5 AND A Produces a logical product.
Reverses the logical status of the specified signal and produces a logical
6 AND.NOT AN
product.
7 OR O Produces a logical sum.
Reverses the logical status of the specified signal and produces a logical
8 OR.NOT ON
sum.
Shifts the register content one bit to the left and sets the status of the
9 RD.STK RS
signal at the specified address in the ST0 bit.
Shifts the register content one bit to the left, reads and reverses the logical
10 RD.NOT.STK RNS
status of the signal at the specified address, and sets it in the ST0 bit.
Sets the logical product of the ST0 and ST1 bits in the ST1 bit and shifts
11 AND.STK AS
the register content one bit to the right.
Sets the logical sum of the ST0 and ST1 bits in the ST1 bit and shifts the
12 OR.STK OS
register content one bit to the right.
Finds the logical sum of the ST0 bit and the status of the signal at the
13 SET SET
specified address and outputs it to the specified address.
Finds the logical product of the reversed status of the ST0 bit and the
14 RST RST status of the signal at the specified address and outputs it to the specified
address.
Positive transition contact instruction. When rising transition (0→1) of the
15 RDPT RPT specified signal is detected, "1" is set to the ST0 bit. Otherwise "0" is set to
the ST0 bit.
Positive transition contact instruction. When rising transition (0→1) of the
16 ANDPT APT specified signal is detected, ST0 bit is not changed. Otherwise "0" is set to
the ST0 bit.
- 156 -
B-64393EN/02 4.LADDER LANGUAGE
Instruction
Mnemonic
No. Mnemonic Processing
format
format
(abbreviated)
Positive transition contact instruction. When rising transition (0→1) of the
17 ORPT OPT specified signal is detected, "1" is set to the ST0 bit. Otherwise ST0 bit is
not changed.
Positive transition contact instruction. Shifts the stack register content one
18 RDPT.STK RPTS bit to the left and when rising transition (0→1) of the specified signal is
detected, "1" is set to the ST0 bit. Otherwise "0" is set to the ST0 bit .
Negative transition contact instruction. When falling
19 RDNT RNT transition (1→0) of the specified signal is detected, "1" is set to the ST0
bit. Otherwise "0" is set to the ST0 bit.
Negative transition contact instruction. When falling transition (1→0) of the
20 ANDNT ANT specified signal is detected ST0 bit is not changed. Otherwise "0" is set to
the ST0 bit.
Negative transition contact instruction. When falling transition (1→0) of the
21 ORNT ONT specified signal is detected, "1" is set to the ST0 bit. Otherwise ST0 bit is
not changed.
Negative transition contact instruction. ifts the stack register content one
22 RDNT.STK RNTS bit to the left and when falling transition (1→0) of the specified signal is
detected, "1" is set to the ST0 bit. Otherwise "0" is set to the ST0 bit.
Instruction to make a branch of circuit. Shifts the stack register one bit to
23 PUSH PS
the left. The contents of ST0 bit is not changed.
Instruction to make a branch of circuit. Shifts the stack register content
24 POP PP
one bit to the right. (ST1→ST0)
- 157 -
4.LADDER LANGUAGE B-64393EN/02
4.1.2 RD Instruction
Format
W1
A B C
RD W2
D G
instruction
X5.1 R5.4
R200.1
E
Y5.2
F
Y5.3
Fig. 4.1.2
(Address)
RD .
Bit number
Address number
Table 4.1.2
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X10 .1 A A
2 AND X2 .0 B A⋅B
3 AND.NOT R2 .1 C A⋅B⋅C
4 WRT R200 .0 W1 output A⋅B⋅C
5 RD X5 .1 D D
6 OR.NOT Y5 .2 E D+E
7 OR Y5 .3 F D+E+F
8 AND R5 .4 G (D + E + F)⋅G
9 WRT R200 .1 W2 output (D + E + F)⋅G
Operation
(1) Use this instruction to start coding from contact A (−⏐⏐−). For examples of how the RD
instruction is used, see the ladder diagram shown in Fig. 4.1.2 and the input example in the
mnemonic format given in Table 4.1.2.
(2) The instruction reads the status (0 or 1) of the signal at the specified address and sets it in the ST0
bit.
(3) The signal (contact) to be read by the RD instruction may be any signal (contact) that is input as a
logical condition of a coil (output).
- 158 -
B-64393EN/02 4.LADDER LANGUAGE
G5.1 R10.5
R210.2
E
X4.2
F
Y10.7
Fig. 4.1.3
(Address)
RD.NOT .
Bit number
Address number
Table 4.1.3
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD.NOT R1 .1 A A
2 AND.NOT F2 .2 B A⋅B
3 AND.NOT F3 .3 C A⋅B⋅C
4 WRT R210 .1 W1 output A⋅B⋅C
5 RD.NOT G5 .1 D D
6 OR.NOT X4 .2 E D+E
7 OR Y10 .7 F D+E+F
8 AND R10 .5 G (D + E + F)⋅G
9 WRT R210 .2 W2 output (D + E + F)⋅G
Operation
(1) Use this instruction to start coding from contact B (−⏐/⏐−). For examples of how the RD.NOT
instruction is used, see the ladder diagram shown in Fig. 4.1.3 and the input example in the
mnemonic format given in Table 4.1.3.
(2) The instruction reads and reverses the logical status of the signal at the specified address and sets it
in the ST0 bit.
(3) The signal (contact) to be read by the RD.NOT instruction may be any contact B that is input as a
logical condition of a coil.
- 159 -
4.LADDER LANGUAGE B-64393EN/02
A C W1
R220.1 G2.2
Y11.1
B
W2
WRT
X4.2 Y14.6 instruction
Fig. 4.1.4
(Address)
WRT .
Bit number
Address number
Table 4.1.4
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD R220 .1 A A
2 OR X4 .2 B A+B
3 AND G2 .2 C (A + B)⋅C
4 WRT Y11 .1 W1 output (A + B)⋅C
5 WRT Y14 .6 W2 output (A + B)⋅C
Operation
(1) The WRT instruction outputs the result of the logical operation, namely the status of the ST0 bit (0
or 1), to the specified address.
(2) The instruction can also output a logical operation result to two or more addresses simultaneously.
In that case, use the WRT instruction as shown in Fig. 4.1.4 and Table 4.1.4.
CAUTION
In each WRT,WRT.NOT instruction, specify different address. Double coil, which
means a coil with an address is often used in one ladder program, may occur
troubles of the execution timing in the sequence program. Don't use "double coil".
- 160 -
B-64393EN/02 4.LADDER LANGUAGE
A C
W1
R220.1 G2.2
Y11.1
B
W2
X4.2 Y14.6
WRT.NOT instruction
Fig. 4.1.5
(Address)
WRT.NOT .
Bit number
Address number
Table 4.1.5
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD R220 .1 A A
2 OR X4 .2 B A+B
3 AND G2 .2 C (A + B)⋅C
4 WRT Y11 .1 W1 output (A + B)⋅C
5 WRT.NOT Y14 .6 W2 output (A + B)⋅C
Operation
(1) The WRT.NOT instruction reverses and outputs the result of the logical operation, namely the status
of the ST0 bit, to the specified address. Fig. 4.1.5 and Table 4.1.5 show examples of how the
WRT.NOT instruction is used.
CAUTION
In each WRT,WRT.NOT instruction, specify different address. Double coil, which
means a coil with an address is often used in one ladder program, may occur
troubles of the execution timing in the sequence program. Don't use "double coil".
- 161 -
4.LADDER LANGUAGE B-64393EN/02
A B C W1
D G W2
X5.1 R5.4
R200.1
E
Y5.2
F
AND
AND??
instruction
Y5.3
Fig. 4.1.6
(Address)
AND .
Bit number
Address number
Table 4.1.6
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X10 .1 A A
2 AND X2 .0 B A⋅B
3 AND.NOT R2 .1 C A⋅B⋅C
4 WRT R200 .0 W1 output A⋅B⋅C
5 RD X5 .1 D D
6 OR.NOT Y5 .2 E D+E
7 OR Y5 .3 F D+E+F
8 AND R5 .4 G (D + E + F)⋅G
9 WRT R200 .1 W2 output (D + E + F)⋅G
Operation
(1) This instruction produces a logical product.
(2) For examples of how the AND instruction is used, see Fig. 4.1.6 and Table 4.1.6.
- 162 -
B-64393EN/02 4.LADDER LANGUAGE
A B C W1
D G W2
X5.1 R5.4
R200.1
E
AND.NOT
instruction
Y5.2
F
Y5.3
Fig. 4.1.7
(Address)
AND.NOT .
Bit number
Address number
Table 4.1.7
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X10 .1 A A
2 AND X2 .0 B A⋅B
3 AND.NOT R2 .1 C A⋅B⋅C
4 WRT R200 .0 W1 output A⋅B⋅C
5 RD X5 .1 D D
6 OR.NOT Y5 .2 E D+E
7 OR Y5 .3 F D+E+F
8 AND R5 .4 G (D + E + F)⋅G
9 WRT R200 .1 W2 output (D + E + F)⋅G
Operation
(1) This instruction reverses the status of the signal at the specified address and produces a logical
product.
(2) For examples of how the AND.NOT instruction is used, see Fig. 4.1.7 and Table 4.1.7.
- 163 -
4.LADDER LANGUAGE B-64393EN/02
4.1.8 OR Instruction
Format
A B C W1
D G W2
X5.1 R5.4
R200.1
E
Y5.2
F
Y5.3 OR instruction
Fig. 4.1.8
(Address)
OR .
Bit number
Address number
Table 4.1.8
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X10 .1 A A
2 AND X2 .0 B A⋅B
3 AND.NOT R2 .1 C A⋅B⋅C
4 WRT R200 .0 W1 output A⋅B⋅C
5 RD X5 .1 D D
6 OR.NOT Y5 .2 E D+E
7 OR Y5 .3 F D+E+F
8 AND R5 .4 G (D + E + F)⋅G
9 WRT R200 .1 W2 output (D + E + F)⋅G
Operation
(1) This instruction produces a logical sum.
(2) For examples of how the OR instruction is used, see Fig. 4.1.8 and Table 4.1.8.
- 164 -
B-64393EN/02 4.LADDER LANGUAGE
A B C W1
D G W2
X5.1 R5.4
R200.1
E
Y5.3
Fig. 4.1.9
(Address)
OR.NOT .
Bit number
Address number
Table 4.1.9
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X10 .1 A A
2 AND X2 .0 B A⋅B
3 AND.NOT R2 .1 C A⋅B⋅C
4 WRT R200 .0 W1 output A⋅B⋅C
5 RD X5 .1 D D
6 OR.NOT Y5 .2 E D+E
7 OR Y5 .3 F D+E+F
8 AND R5 .4 G (D + E + F)⋅G
9 WRT R200 .1 W2 output (D + E + F)⋅G
Operation
(1) This instruction reverses the status of the signal at the specified address and produces a logical sum.
(2) For examples of how the OR.NOT instruction is used, see Fig. 4.1.9 and Table 4.1.9.
- 165 -
4.LADDER LANGUAGE B-64393EN/02
A C W1
X1.3 Y1.4
E F
R2.1 R3.5
RD.STK instruction
Fig. 4.1.10
(Address)
RD.STK .
Bit number
Address number
Table 4.1.10
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X1 .1 A A
2 AND Y1 .2 C A⋅C
3 RD.STK X1 .3 B A⋅C B
4 AND Y1 .4 D A⋅C B⋅D
5 OR.STK A⋅C + B⋅D
6 RD.STK R2 .1 E A⋅C + B⋅D E
7 AND R3 .5 F A⋅C + B⋅D E⋅F
8 OR.STK A⋅C + B⋅D + E⋅F
9 WRT Y15 .0 W1 output A⋅C + B⋅D + E⋅F
Operation
(1) The RD.STK instruction stacks the interim result of a logical operation. Use this instruction when
the signal you specify is contact A (−⏐⏐−). After shifting the register content one bit to the left, the
instruction sets the status of the signal at the specified address in the ST0 bit.
(2) For examples of how the RD.STK instruction is used, see Fig. 4.1.10 and Table 4.1.10.
- 166 -
B-64393EN/02 4.LADDER LANGUAGE
A B E F W1
RD.NOT.STK instruction
Fig. 4.1.11
(Address)
RD.NOT.STK .
Bit number
Address number
Table 4.1.11
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X1 .0 A A
2 AND.NOT X1 .1 B A⋅B
3 RD.NOT.STK R1 .4 C A⋅B C
4 AND.NOT R1 .5 D A⋅B C⋅D
5 OR.STK A⋅B + C⋅D
6 RD.STK Y1 .2 E A⋅B + C⋅D E
7 AND Y1 .3 F A⋅B + C⋅D E⋅F
8 RD.STK Y1 .6 G A⋅B + C⋅D E⋅F G
9 AND.NOT Y1 .7 H A⋅B + C⋅D E⋅F G⋅H
10 OR.STK A⋅B + C⋅D E⋅F + G⋅H
11 AND.STK (A⋅B + C⋅D)⋅(E⋅F + G⋅H)
12 WRT Y15 .7 W1 output (A⋅B + C⋅D)⋅(E⋅F + G⋅H)
Operation
(1) The RD.NOT.STK instruction stacks the interim result of a logical operation. Use this instruction
when the signal you specify is contact B (−⏐/⏐−). After shifting the register content one bit to the
left, the instruction reverses the status of the signal at the specified address and sets it in the ST0 bit.
(2) For examples of how the RD.NOT.STK instruction is used, see Fig. 4.1.11 and Table 4.1.11.
- 167 -
4.LADDER LANGUAGE B-64393EN/02
A B E F W1
AND.STK instruction
R1.4 R1.5 X1.6 Y1.7
AND.STK
Table 4.1.12
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X1 .0 A A
2 AND.NOT X1 .1 B A⋅B
3 RD.NOT.STK R1 .4 C A⋅B C
4 AND.NOT R1 .5 D A⋅B C⋅D
5 OR.STK A⋅B + C⋅D
6 RD.STK Y1 .2 E A⋅B + C⋅D E
7 AND Y1 .3 F A⋅B + C⋅D E⋅F
8 RD.STK Y1 .6 G A⋅B + C⋅D E⋅F G
9 AND.NOT Y1 .7 H A⋅B + C⋅D E⋅F G⋅H
10 OR.STK A⋅B + C⋅D E⋅F + G⋅H
11 AND.STK (A⋅B + C⋅D)⋅(E⋅F + G⋅H)
12 WRT Y15 .7 W1 output (A⋅B + C⋅D)⋅(E⋅F + G⋅H)
Operation
(1) The AND.STK instruction finds the logical product of the operation result stored in the ST0 bit and
that stored in the ST1 bit and sets it in the ST1 bit. The instruction then shifts the register content
one bit to the right and puts the resulting logical product into the ST0 bit. Fig. 4.1.12 (b) shows a
detailed image of what is shown in Fig. 4.1.12 (a).
ST1 ST0
A B E F
W1
C D G H
AND.STK instruction
(2) For examples of how the AND.STK instruction is used, see Fig. 4.1.12 (a) and Table 4.1.12.
- 168 -
B-64393EN/02 4.LADDER LANGUAGE
A C W1
X1.3 Y1.4
E F
R2.1 R3.5
OR.STK instruction
RD.STK??
OR.STK
Table 4.1.13
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD X1 .1 A A
2 AND Y1 .2 C A⋅C
3 RD.STK X1 .3 B A⋅C B
4 AND Y1 .4 D A⋅C B⋅D
5 OR.STK A⋅C + B⋅D
6 RD.STK R2 .1 E A⋅C + B⋅D E
7 AND R3 .5 F A⋅C + B⋅D E⋅F
8 OR.STK A⋅C + B⋅D + E⋅F
9 WRT Y15 .0 W1 output A⋅C + B⋅D + E⋅F
- 169 -
4.LADDER LANGUAGE B-64393EN/02
Operation
(1) The OR.STK instruction finds the logical sum of the operation result stored in the ST0 bit and that
stored in the ST1 bit and sets it in the ST1 bit. The instruction then shifts the register content one
bit to the right and puts the resulting logical sum into the ST0 bit. Fig. 4.1.13 (b) shows a detailed
image of what is shown in Fig. 4.1.13 (a).
ST1
A C
ST0
B D
W1
E F
OR.STK instruction
OR.STK??
(2) For examples of how the OR.STK instruction is used, see Fig. 4.1.13 (a) and Table 4.1.13.
CAUTION
In the example shown in Table 4.1.13, the OR.STK instruction is specified at step
number 5. You will obtain the same result if you place the OR.STK instruction
between step numbers 7 and 8. However, coding similar instructions, such as
OR.STK and AND.STK, successively makes you prone to errors. It is therefore
recommended to code your program as shown in Table 4.1.13.
- 170 -
B-64393EN/02 4.LADDER LANGUAGE
A C
(S)
R0.0 Y0.0
X0.0
SET instruction
Fig. 4.1.14
(Address)
SET .
Bit number
Address number
Table 4.1.14
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD R0 .0 A A
2 OR X0 .0 B A+B
3 SET Y0 .0 Y0.0 output A+B
Operation
(1) This instruction keeps the status of the specified address to ON. It finds the logical sum of the
operation result (ST0) and the specified address and outputs it to the specified address.
(2) For examples of how the SET instruction is used, see Fig. 4.1.14 and Table 4.1.14.
CAUTION
When placed between the COM and COME instructions, the SET instruction
behaves as follows:
When the COM condition is set to ON (ACT = 1), the SET instruction runs
normally.
When the COM condition is set to OFF (ACT = 0), the SET instruction does not
run.
- 171 -
4.LADDER LANGUAGE B-64393EN/02
A C
(R)
R0.0 Y0.0
X0.0
RST instruction
Fig. 4.1.15
(Address)
RST .
Bit number
Address number
Table 4.1.15
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST2 ST1 ST0
number No.
1 RD R0 .0 A A
2 OR X0 .0 B A+B
3 RST Y0 .0 Y0.0 output A+B
Operation
(1) This instruction keeps the status of the specified address to OFF. It finds the logical product of the
operation result (ST0) and the specified reversed address and outputs it to the specified address.
(2) For examples of how the RST instruction is used, see Fig. 4.1.15 and Table 4.1.15.
CAUTION
When placed between the COM and COME instructions, the RST instruction
behaves as follows:
When the COM condition is set to ON (ACT = 1), the RST instruction runs
normally.
When the COM condition is set to OFF (ACT = 0), the RST instruction does not
run.
- 172 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.1.16(a) shows the ladder format and Table 4.1.16(a) shows the mnemonic format.
A W1
P
X10.0 Y20.0
RDPT instruction
Operation
Timing chart in the above example is as follows.
W1
1 scan
CAUTION
1 The bit, already turned on when a program is started after program reading by the
Input/Output function or Power ON, turns on the output with the scan at the
beginning just after starting.
2 An output may not be turned on when a bit changes with OFF→ON→OFF during
1 scan. Moreover, when validating the result of ladder edit, a scanning time
temporarily becomes larger.
3 In ladder edit, when the bit of the edited contact turns on, an output is turned on
with the scan of the beginning after edit
4 When this instruction is skipped by Jump instruction or subroutine call instruction,
this instruction is not executed and the output of instruction does not change.
5 This instruction uses a work memory internally in order to detect bit transition.
The PMC Software or the FANUC LADDER-III searches the work memory
automatically in the domain which can be used, and is assigned. Therefore, the
program edited in a different procedure becomes mismatching at the comparing,
even when the appearance of ladder diagram is the same.
- 173 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.1.17(a) shows the ladder format and Table 4.1.17(a) shows the mnemonic format.
A B W1
P
X10.0 R20.0 Y30.0
ANDPT instruction
Operation
Timing chart in the above example is as follows.
A
B
W1
1 scan
NOTE
Please refer to "4.1.16 RDPT Instruction" notes about this instruction.
- 174 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.1.18(a) shows the ladder format and Table 4.1.18(a) shows the mnemonic format.
A W1
X10.0 Y30.0
B
P
R20.0
ORPT Instruction
Operation
Timing chart in the above example is as follows.
A
B
W1
1 scan
NOTE
Please refer to "4.1.16 RDPT Instruction" notes about this instruction.
- 175 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.1.19(a) shows the ladder format and Table 4.1.19(a) shows the mnemonic format.
A B W1
P
X10.0 R20.0 Y40.0
C RDPT.STK instruction
R30.0
Operation
Timing chart in the above example is as follows.
A
B
C
W1
1 scan
NOTE
Please refer to "4.1.16 RDPT Instruction" notes about this instruction.
- 176 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.1.20(a) shows the ladder format and Table 4.1.20(a) shows the mnemonic format.
A W1
N
X10.0 Y20.0
RDNT Instruction
Operation
Timing chart in the above example is as follows.
W1
1 scan
CAUTION
1 The bit, already turned off when a program is started after program reading by the
Input/Output function or Power ON, turns on the output with the scan at the
beginning just after starting.
2 An output may not be turned on when a bit changes with ON→OFF→ON during 1
scan. Moreover, when validating the result of ladder edit, a scanning time
temporarily becomes larger.
3 In ladder edit, when the bit contained in the edited ladder net has already turned
off, only the edited contact does not turned on with the scan of the beginning after
edit.
4 When this instruction is skipped by Jump instruction or subroutine call instruction,
this instruction is not executed and the output of instruction does not change.
5 This instruction uses a work memory internally in order to detect bit transition.
The PMC Software or the FANUC LADDER-III searches the work memory
automatically in the domain which can be used, and is assigned. Therefore, the
program edited in a different procedure becomes mismatching at the comparing,
even when the appearance of ladder diagram is the same.
- 177 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.1.21(a) shows the ladder format and Table 4.1.21(a) shows the mnemonic format.
A B W1
N
X10.0 R20.0 Y30.0
ANDNT Instruction
Operation
Timing chart in the above example is as follows.
A
B
W1
1 scan
NOTE
Please refer to "4.1.20 RDNT Instruction" notes about this instruction.
- 178 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.1.22(a) shows the ladder format and Table 4.1.22(a) shows the mnemonic format.
A W1
X10.0 Y30.0
B
N
R20.0
ORNT Instruction
Operation
Timing chart in the above example is as follows.
A
B
W1
1 scan
NOTE
Please refer to "4.1.20 RDNT Instruction" notes about this instruction.
- 179 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.1.23(a) shows the ladder format and Table 4.1.23(a) shows the mnemonic format.
A B W1
N
X10.0 R20.0 Y40.0
C RDNT.STK Instruction
R30.0
Operation
Timing chart in the above example is as follows.
A
B
C
W1
1 scan
NOTE
Please refer to "4.1.20 RDNT Instruction" notes about this instruction.
- 180 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.1.24(a) shows the ladder format and Table 4.1.24(a) shows the mnemonic format.
A B W1
C W2
R30.0 Y60.0
POP Instruction
D W3
R40.0 Y70.0
Operation
(1) In the above example, the value of A stored in ST0 is shift to ST1 by PUSH instruction before
performing the logical product of A and B. The value of ST0 is not changed.
(2) After outputting the operation result of the logical product of A and B to W1, the value of A stored
in ST1 is shifted to ST0 by POP instruction.
(3) Before performing the logical product of A and C, the value of A stored in ST0 is shifted to ST1 by
PUSH instruction. The value of ST0 is not changed.
(4) After outputting the operation result of the logical product of A and C to W2, the value of A stored
in ST1 is shifted to ST0 by POP instruction.
(5) The logical product of A and D is performed and an operation result is outputted to W3.
- 181 -
4.LADDER LANGUAGE B-64393EN/02
L0 L1 Instruction Parameter 1
C D
(2) Parameter 2
W1
R 2.4 R 3.1 Parameter 3
RST
(1) Parameter 4
R 10.1
R 5.7
ACT
(0)
(Note 1)
R 7.1
7 6 5 4 3 2 1 0
R9000
R9001
R9002
R9003
R9004
R9005
- 182 -
B-64393EN/02 4.LADDER LANGUAGE
Table 4.2.1 (a) Coding format of the functional instructions
Mnemonic format Status of operation result
Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
number No.
1 RD R1 . 0 A A
2 AND R1 . 1 B A⋅B
3 RD.STK R2 . 4 C A⋅B C
4 AND.NOT R3 . 1 D A⋅B C⋅D
5 RD.STK R5 . 7 RST A⋅B C⋅D RST
6 RD.STK R7 . 1 ACT A⋅B C⋅D RST ACT
7 SUB {{ Instruction A⋅B C⋅D RST ACT
8 (PRM) (Note 2) {{{{ Parameter 1 A⋅B C⋅D RST ACT
9 (PRM) {{{{ Parameter 2 A⋅B C⋅D RST ACT
10 (PRM) {{{{ Parameter 3 A⋅B C⋅D RST ACT
11 (PRM) {{{{ Parameter 4 A⋅B C⋅D RST ACT
12 WRT R10 . 1 W1 output A⋅B C⋅D RST W1
NOTE
1 The number within each pair of parentheses shown for the control conditions
represents the position in the register where the result is to be stored.
2 The term (PRM) in the Instruction fields for step numbers 8 to 11 means a
parameter. You do not need to input the term (PRM); just enter an address or
numeric data.
CAUTION
All functional instructions give precedence to the RST processing when they
include RST in their control conditions. Therefore, when RST = 1, the functional
instruction carries out the RST processing even if ACT = 0.
(3) Instruction
For the types of functional instructions, see Subsection 2.1.7 or 2.1.8.
To input the instruction with relay symbols, use the soft keys of the programmer.
(4) Parameters
Unlike the basic instructions, the functional instructions deal with numeric values. Therefore,
reference data values and addresses storing data may be entered in their parameters. The number of
parameters and the meanings of those parameters differ for each functional instruction.
(5) W1
W1 is the destination to which the functional instruction outputs its operation result when that result
can be represented by a one-bit value, 0 or 1. The designer can freely decide the address of W1.
The meaning of W1 differs for each functional instruction. Some functional instructions do not
have the W1 output.
- 183 -
4.LADDER LANGUAGE B-64393EN/02
(Example)
When BCD data 1234 is stored at addresses R250 and R251
7 6 5 4 3 2 1 0
R250 0 0 1 1 0 1 0 0
3 4
7 6 5 4 3 2 1 0
R251 0 0 0 1 0 0 1 0
1 2
In the functional instruction, specify the address having the smaller number, R250.
Note) The low-order digits are stored in the smaller number address.
- 184 -
B-64393EN/02 4.LADDER LANGUAGE
(b) Binary format data
Basically, the data processed in the binary format is handled in units of one byte (−128 to +127),
two bytes (−32,768 to +32,767), or four bytes (−2,147,483,648 to +2,147,483,647). The data
is stored at addresses R200, R201, R202, and R203, as shown below. Note that negative
numbers are set as two's complements.
0 1 1 1 1 1 1 1 (+127)
R201 ± 214 213 212 211 210 29 28
R202 223 2
22
2
21
2
20
2
19
2
18
2
17
2
16
R203 ± 2
30
2
29
2
28
2
27
2
26
2
25
2
24
- 185 -
4.LADDER LANGUAGE B-64393EN/02
* When the numeric data consists of two or four bytes, specify an even-numbered or multiple-of-four address
for each of those addresses marked with *. Doing so causes the functional instruction to execute faster.
Error output
7 6 5 4 3 2 1 0
R9000
R9001
R9002
R9003
R9004
R9005
This register consists of six bytes, from R9000 to R9005. A single block of data can be read from the
register in bits or bytes at a time.
To read the data of the first bit of R9000, for example, specify RD R9000.1.
- 186 -
B-64393EN/02 4.LADDER LANGUAGE
4.3 TIMER
The following types of timer instruction are available. Use any of these instructions as appropriate for
your purpose.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 187 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.3.1 (a) shows the ladder format and Table 4.3.1 shows the mnemonic format.
ACT W1
SUB 3
TMR {{{ Timer number
Timer relay
In the above mnemonic format, instruction name "TMR" at step number 2 can be abbreviated as "T".
ACT
W1
T
T indicates the time set in this timer command.
Control condition
ACT = 0: Turns off W1.
ACT = 1: Starts the timer.
Parameter
Set the timer number.
WARNING
1 If the timer number is duplicated, or falls outside the valid range, the operation will
be unpredictable.
- 188 -
B-64393EN/02 4.LADDER LANGUAGE
Setting timers
The initial value of the timer setting time can be set in steps of 48 msec for timer numbers 1 to 8 and in
steps of 8 msec for timer numbers 9 and later. (For information about the number of timers of each
PMC, see the table below.) The setting time value is rounded down to a multiple of the unit time.
For example, if 38 msec is set, the remainder 6 (38 = 8 × 4 + 6) is discarded, and only 32 msec is actually
set.
Timer accuracy
The timer screen allows you to set the accuracy of each timer individually. The setting time range and
error are as shown below. For detailed information about how to set the timer accuracy, see Subsection
7.3.1.
Error is caused only by operation time of the timer instruction. For example, when a timer instruction is
used in the 2nd level sequence part, the variation does not include the delay time (Max. 2nd level
sequence one cycle time) until the sequence actuates after the set time is reached.
- 189 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.3.2 (a) shows the ladder format and Table 4.3.2 shows the mnemonic format.
ACT W1
SUB 24
TMRB {{{
Timer number Timer relay
{{{{ Setting time
ACT
W1
T
T indicates the time set in this timer command.
Control condition
ACT = 0: Turns off W1.
ACT = 1: Starts the timer.
- 190 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
Specify the timer number of a fixed timer. The timer numbers and the setting time range are as shown
below.
WARNING
If the same timer number is used more than once or if a timer number out of the
valid range is used, operation is unpredictable.
- 191 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig 4.3.3(a) shows the ladder format and Table 4.3.3 shows the mnemonic format.
ACT W1
SUB 77
TMRBF {{{ Timer number
{{{{ Setting time Timer relay
ACT
W1 T
T indicates the timer value.
Control condition
ACT=0: Starts the timer.
ACT=1: Reset the timer and turn on W1.
- 192 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
Specify the timer number of the fixed timer to the 1st parameter. You have to specify the unique timer
number for all the TMRB (SUB 24) and TMRBF (SUB 77) instructions.
Specify the timer value of the fixed timer to the 2nd parameter. The unit is millisecond.
The available timer number and timer value is shown below.
WARNING
If the timer number of TMRB or TMRBF is conflicted or if the timer number is out of
range, the operation is not guaranteed.
Note: 0 is allowed only when the automatic numbering function described hereafter is used.
- 193 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.3.4 (a) shows the ladder format and Table 4.3.4 shows the mnemonic format.
ACT W1
SUB 54
TMRC {
Timer accuracy number Timer relay
{{{{ Timer set time address
{{{{ Timer register address
ACT
W1
T
T indicates the time set in this timer command.
Control condition
ACT = 0: Turns off W1.
ACT = 1: Starts the timer.
- 194 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Timer accuracy
The timer accuracy values, setting time range, and error are as shown below.
Timer Setting
The range of setting time (Note) Margin of error
accuracy number
8 msec 0 8 msec to about 262.1 sec 0 to ±1st level sweep interval (8 msec)
48 msec 1 48 msec to about 26.2 min 0 to ±1st level sweep interval (8 msec)
1 sec 2 1 sec to about 546 min 0 to ±1st level sweep interval (8 msec)
10 sec 3 10 sec to about 91 h 0 to ±1st level sweep interval (8 msec)
1 min 4 1 min to about 546 h 0 to ±1 sec
1 msec 5 1 msec to about 32.7 sec 0 to ±1st level sweep interval (8 msec)
10 msec 6 10 msec to about 327.7 sec 0 to ±1st level sweep interval (8 msec)
100 msec 7 100 msec to about 54.6 min 0 to ±1st level sweep interval (8 msec)
Error exclusively refers to that taking place while the timer instruction carries out its operation. It
does not include, for example, error that occurs when the timer instruction is used in the 2nd level
sequence program, such as the delay from the expiry of the timer until the sequence program
initiates processing (time equivalent to one cycle of the 2nd level at worst).
NOTE
The value range of the setting time is between 0 and 32,767 for all timer
accuracies. For example, when the timer accuracy is 8 msec, the value 0
means 8 msec and the value 32,767 means 262,136 msec.
The timer setting time is converted to the binary format based on the timer accuracy (in units of 8
msec, 48 msec, etc.).
The timer setting time is shown as follows:
8 msec 8 to 262,136 msec
48 msec 48 to 1,572,816 msec
1 sec 1 to 32,767 sec
10 sec 10 to 327,670 sec
1 min 1 to 32,767 min
1 msec 1 to 32,767 msec
10 msec 10 to 327,670 msec
100 msec 100 to 3,276,700 msec
- 195 -
4.LADDER LANGUAGE B-64393EN/02
Timer register + 0
Timer register + 1
Timer register
Timer register + 2
Timer register + 3
- 196 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Setting time", a constant or a PMC memory address for storing data can be specified. An integration
time is output to a specified PMC address, so that the integration time can be output to the outside or used
for another operation.
When the integration time has reached "Setting time", timer relay W1=1 is set. If ACT=1 even when the
integration time has exceeded "Setting time", a measurement is continued until a maximum time is
reached. During this period as well, timer relay W1=1 is set.
To reset the integration time and timer relay to 0, set RST (Reset)=1.
As indicated below, two types of Stop watch timer instructions are available according to the timer
accuracy.
On
ACT
Off
On
RST
Off
Setting time
Integration time
On
Timer relay
Off
W1
- 197 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.3.5 (b) shows the ladder format and Table 4.3.5 (b) shows the mnemonic format.
RST W1
Control condition
(a) Reset (RST)
RST=0 : Reset operation is canceled.
RST=1 : Reset operation is executed.
The integration time is reset to 0.
Even when input signal ACT=1 is set, reset operation has priority, and the stop watch
timer is stopped. W1=0 is also set.
NOTE
Set RST to 1 only when reset operation is needed. Usually, set RST to 0.
- 198 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Setting time
Specify a time-out period for the timer. A value from 0 to 2147483647 may be specified. If a
value out of this range is specified, integration operation is performed but timer relay W1=0 is set at
all times.
In this parameter, a constant or a PMC memory address for storing data can be specified.
If an address is specified, specify "Setting time" as signed binary data by using the contiguous four
bytes of memory starting from the specified address.
Specified address +0
Specified address +1
Setting time
Specified address +2 (Signed binary data)
Specified address +3
NOTE
When a Setting time is rewritten during execution of instruction, the result is
reflected immediately.
- 199 -
4.LADDER LANGUAGE B-64393EN/02
(4)
(3)
Setting time Error
(2)
Integration time (1)
On
Timer relay W1 Off
Integration time accumulation starts in the execution cycle immediately after ACT=1 (On) is set, and
continues until an execution cycle where ACT=0 (Off) is set. Timer relay W1=1 (On) is set when
the integration time has reached "Setting time".
A maximum error per measurement section (pair of ACT On/Off) is "±ladder execution cycle time".
NOTE
Please do not perform rewriting of integration time during execution of instruction.
NOTE
W1 must not be omitted.
- 200 -
B-64393EN/02 4.LADDER LANGUAGE
4.4 COUNTER
The following types of counter instruction are available. Use any of these instructions as appropriate for
your purpose.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 201 -
4.LADDER LANGUAGE B-64393EN/02
WARNING
When a incollect BCD data was set to a BCD type counter, the movement of CTR
cannot be sured.
If changing the counter type, be sure to reconfigure the preset value and count
value.
8 1
7 2
6 3
5 4
Presetting : 8
Initial value : 1
- 202 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.4.1 (a) shows the ladder format and Table 4.4.1 shows the mnemonic format.
CNO W1
SUB 5
UPD CTR {{{ Counter number
Count up output
RST
ACT
Control conditions
(a) Specify the initial value. (CNO)
CNO = 0: Begins the value of the counter with 0.
0, 1, 2, 3, ....., n.
CNO = 1: Begins the value of the counter with 1 (0 is not used).
1, 2, 3, ....., n.
(b) Specify up or down counter. (UPDOWM)
UPD = 0: Up counter. The counter begins with 0 when CNO = 0; 1 when CNO = 1.
UPD = 1: Down counter. The counter begins with the preset value.
CAUTION
Set RST to 1, only when reset is required.
- 203 -
4.LADDER LANGUAGE B-64393EN/02
"0"
Count Count
Parameter
(a) Counter number
The numbers that can be used are shown below.
0i-D 0i-D / 0i Mate-D 0i-D
PMC PMC/L DCS PMC
Counter number 1 to 100 1 to 20 1 to 20
The preset value and cumulative value that can be set are as follows:
Binary counter: 0 to 32,767
BCD counter: 0 to 9,999
WARNING
1 If the counter number is duplicated, or falls outside the valid range, the operation
will be unpredictable.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 204 -
B-64393EN/02 4.LADDER LANGUAGE
L1
L1
R200.1
L1 R200.1
R200.1
L1
(CN0) CUP Countup output
R200.1 SUB 5
L1 Y6.1
R200.1
CRST.M
(RST)
X36.0
CUP M30X
(ACT)
Y6.1 R200.3
- 205 -
4.LADDER LANGUAGE B-64393EN/02
[Example 2]
Use of the counter to store the position of a rotor. (See Fig. 4.4.1 (c).)
L1
"1"
R200.1
R200.1
L1
R200.1
L1
(CN0)
R200.1 SUB 5 R200.0
REV
(UPDOWN) CTR 0002
R200.1
L1
(RST)
R200.1
POS
(ACT)
X36.0
3 4
5
2
6
1 7
12 8
11 9
10
Fig. 4.4.1 (c) shows a ladder diagram for a counter to store the position of a rotor of Fig. 4.4.1 (d).
- 206 -
B-64393EN/02 4.LADDER LANGUAGE
(1) Control conditions
(a) Count start number
When a 12-angle rotor shown in Fig. 4.4.1 (d) is used, the count starting number is 1.
Contact A of L1 is used for making CNO = 1.
(b) Specify up and down
The signal REV changes according to the then direction of rotation. It becomes 0 for forward
rotation and 1 for reverse rotation. Thus, the counter is an up counter for forward rotation and
a down counter for reverse rotation.
(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. 4.4.1 (d), 12 must be preset in the
counter. It is set from the counter 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 counter 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 2, as below.
1, 2, 3, . . . 11, 12, 1, 2, . . .
for forward rotation
1, 12, 11, . . . 3, 2, 1, 12 . . .
for reverse rotation
- 207 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.4.2 shows the ladder format and Table 4.4.2 shows the mnemonic format.
CNO W1
SUB 56
UPD CTRB {{{ Counter number
{{{{ Preset value Count up
RST
ACT
Control conditions
(a) Specifying the initial value (CNO)
CNO = 0: The counter value starts with "0". 0,1,2,3,.......,n
CNO = 1: The counter value starts with "1". 1,2,3,.........,n
(b) Specifying up or down (UPD)
UPD = 0: Up counter
The initial value is "0" when CNO = 0 or "1" when CNO = 1.
UPD = 1: Down counter
The initial value is the preset value.
- 208 -
B-64393EN/02 4.LADDER LANGUAGE
(c) Reset (RST)
RST = 0: Cancels reset.
RST = 1: Resets. W1 is reset to 0. The accumulated value is reset to the initial value.
(d) Count signal (ACT)
ACT = 0: The counter does not operated. W1 does not change.
ACT = 1: The counter operates at the rise of this signal.
Parameters
(a) Counter number
The numbers that can be used are shown below.
WARNING
1 If the counter number is duplicated, or falls outside the valid range, the operation
will be unpredictable.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
Accumulate value
The address C5000s are used for accumulate value of the CTRB. Each CTRB consumes 2 bytes.
CTRB of counter number 1 uses C5000-5001 and CTRB of number 2 uses C5002-5003 for their
accumulate values.
- 209 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.4.3 shows the ladder format and Table 4.4.3 shows the mnemonic format.
CNO W1
SUB 55
UPD CTRC {{{{ Counter preset value address
{{{{ Counter register address
RST Count up
ACT
Control conditions
(a) Specifying the initial value (CNO)
CNO = 0: The count value starts with "0". 0, 1, 2, 3, . . . n
CNO = 1: The count value starts with "1". 1, 2, 3, . . . n
(b) Specifying up or down count (UPD)
UPD = 0: Up counter. The initial value is "0" when CNO = 0 or "1" when CNO = 1.
UPD = 1: Down counter. The initial value is the preset value.
- 210 -
B-64393EN/02 4.LADDER LANGUAGE
(c) Reset (RST)
RST = 0: Reset cancelled.
RST = 1: Reset. W1 is reset to "0". The accumulated value is reset to the initial value.
(d) Count signal (ACT)
ACT = 0: The counter does not operate. W1 does not change.
ACT = 1: The counter operates at the rise of this signal.
Parameters
(a) Counter preset value address
The first address of the counter preset value field is set.
The continuous 2-byte memory space from the first address is required for this field. Field D is
normally used.
Counter register +0
CTR Count value
Counter register +1
Counter register +2
WORK WORK: Unusable
Counter register +3
CAUTION
When R address is specified as the counter register address, the counter starts
with count value "0" at power on.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 211 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
Format
Fig. 4.4.4 shows the ladder format and Table 4.4.4 shows the mnemonic format.
Countup
CN0 W1
SUB 223
UPDOWN
{{{{ Counter preset value address
CTRD
{{{{ Counter register address
RST
ACT
- 212 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Specifying the initial value (CN0)
CN0 = 0: The count value starts with "0". 0, 1, 2, 3, . . . n
CN0 = 1: The count value starts with "1". 1, 2, 3, . . . n
(b) Specifying up or down count (UPDOWN)
UPDOWN = 0: Up counter. The initial value is "0" when CN0 = 0 or "1" when CN0 = 1.
UPDOWN = 1: Down counter. The initial value is the preset value.
(c) Reset (RST)
RST = 0: Reset cancelled.
RST = 1: Reset. W1 is reset to "0". The accumulated value is reset to the initial value.
(d) Count signal (ACT)
ACT = 0: The counter does not operate. W1 does not change.
ACT = 1: The counter operates at the rise of this signal.
Parameters
(a) Counter preset value address
The first address of the counter preset value field is set.
The continuous 4-byte memory space from the first address is required for this field. Address D is
normally used.
Counter register +0
Counter register +1
Count value
Counter register +2 (0 to 2,147,483,647)
Counter register +3
Counter register +4
WORK: Unusable
Counter register +5
CAUTION
When R address is specified as the counter register address, the counter starts
with count value "0" at power on.
- 213 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
W1 is not omissible.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 214 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 215 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.5.1 shows the ladder format and Table 4.5.1 shows the mnemonic format.
ACT
SUB 43
MOVB {{{{ Transfer source address
{{{{ Transfer destination address
Control condition
(a) Execution specification
ACT = 0: No data is transferred.
ACT = 1: One-byte data is transferred.
Parameters
(a) Transfer source address
Specify the source address for the transfer.
- 216 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.5.2 shows the ladder format and Table 4.5.2 shows the mnemonic format.
ACT
SUB 44
MOVW {{{{ Transfer source address
{{{{ Transfer destination address
Control condition
(a) Execution specification
ACT = 0: No data is transferred.
ACT = 1: Two-byte data is transferred.
Parameters
(a) Transfer source address
Specify the source address for the transfer.
NOTE
Take care not to specify overlapped areas for source and destination. If the
source and destination areas are overlapped with each other, the result is not
guaranteed.
- 217 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.5.3 shows the ladder format and Table 4.5.3 shows the mnemonic format.
ACT
SUB 47
MOVD {{{{ Transfer source address
{{{{ Transfer destination address
Control condition
(a) Input signal
ACT = 0: No data is transferred.
ACT = 1: Four-byte data is transferred.
Parameters
(a) Transfer source address
Specify the source address for the transfer.
NOTE
Take care not to specify overlapped areas for source and destination. If the
source and destination areas are overlapped with each other, the result is not
guaranteed.
- 218 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.5.4 shows the ladder format and Table 4.5.4 shows the mnemonic format.
ACT
SUB 45
MOVN { Number of bytes to be transferred
{{{{ Transfer source address
{{{{ Transfer destination address
Control condition
(a) Execution specification
ACT = 0: No data is transferred.
ACT = 1: A specified number of bytes are transferred.
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 9,999 can be specified.
CAUTION
Make sure that the source data area and destination data area are within the
PMC address range.
NOTE
Take care not to specify overlapped areas for source and destination. If the
source and destination areas are overlapped with each other, the result is not
guaranteed.
- 219 -
4.LADDER LANGUAGE B-64393EN/02
7 6 5 4 3 2 1 0
Input data 0 0 0 0 0 0 0 0
Logical { { { { { { { {
multiplication data
Format
Fig. 4.5.5 (a) shows the ladder format and Table 4.5.5 shows the mnemonic format.
ACT
SUB 8
MOVE {{{{ High-order 4-bit logical multiplication data
{{{{ Low-order 4-bit logical multiplication data
{{{{ Input data address
{{{{ Output address
Execution command
ACT = 0: MOVE instruction not executed.
ACT = 1: Executed.
- 220 -
B-64393EN/02 4.LADDER LANGUAGE
7 6 5 4 3 2 1 0
Address X35
Code signal
Another signal
Address R210 0 0 0
Code signal
A SUB 8
0001 High-order 4-bit logical multiplication data
- 221 -
4.LADDER LANGUAGE B-64393EN/02
Output data
Format
Fig. 4.5.6 shows the ladder format and Table 4.5.6 shows the mnemonic format.
ACT
SUB 28
MOVOR {{{{ Input data address
{{{{ Logical sum data address
{{{{ Output address
Control condition
(a) Command (ACT)
ACT = 0: Do not execute MOVOR.
ACT = 1: Execute MOVOR.
Parameters
(a) Input data address
Specifies the address for the input data.
- 222 -
B-64393EN/02 4.LADDER LANGUAGE
The number of data table elements: M (It specifies the storage address of number
of data table elements)
DT[0] D I 3 S B
DT[2]
DT[3] B
DT[4]
DT[5] C
DT[M−1]
Data table: DT
The operation of the instruction:
DT[I] → S
Fig. 4.5.7 (a) Read data from data table (basic specification)
The number of data table elements: M (It specifies the storage address of number
of data table elements)
The number of index array elements: N (It specifies the format specification)
DT[4]
I[N−1] S[N−1]
DT[5] C
Index Input/output
array: I data array: S
DT[M−1]
Data table: DT
Fig. 4.5.7 (b) Read data from data table (extended specification)
- 223 -
4.LADDER LANGUAGE B-64393EN/02
S B I 3 DT[0]
DT[2]
DT[3] B
DT[4]
DT[5]
DT[M−1]
Data table: DT
The operation of the instruction:
S → DT[I]
The number of data table elements: M (It specifies the storage address of number
of data table elements)
The number of index array elements: N (It specifies the format specification)
S A I[0] 1 DT[0] D
DT[4]
S[N−1] I[N−1]
DT[5] C
Input/output Index
data array: S array: I
DT[M−1]
Data table: DT
The operation of the instruction:
S[n] → DT[I[n]] (n = 0, 1, 2, ..., N−1)
- 224 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Figs. 4.5.7 (e) and (f) show the ladder format and Tables 4.5.7 (a) and (b) show the mnemonic format.
RW W1
SUB 35
RST XMOVB { Format specification
{{{{ Storage address of number of data table elements
ACT {{{{ Data table head address DT[ ]
{{{{ I/O data storage address S
{{{{ Index storage address I
RW W1
SUB 35
RST XMOVB {{{{ Format specification
{{{{ Storage address of number of data table elements
ACT {{{{ Data table head address DT[ ]
{{{{ I/O data storage address S[ ]
{{{{ Index storage address I[ ]
- 225 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Read, write designation (RW)
RW = 0: Read data from data table.
RW = 1: Write data to data table.
(b) Reset (RST)
RST = 0: Reset release.
RST = 1: Reset. W1 = 0.
(c) Activation command (ACT)
ACT = 0: Do not execute XMOVB instruction. There is no change in W1.
ACT = 1: Execute XMOVB instruction.
Parameters
(a) Format specification
Specifies data length. Specify byte length in the first digit of the parameter.
0001: 1-byte length data
0002: 2-byte length data
0004: 4-byte length data
When setting format specification in the following extended format, XMOVB can read/write
multiple data in data table in 1 instruction.
Specifies data length (1, 2, or 4) to the 1st digit as above-mentioned. Specifies the number of the
index array elements to the 2nd and 3rd digit. Specifies 0 to the 4th digit.
0nn1: In case of reading/writing multiple (nn) data in data table by 1 byte length
0nn2: In case of reading/writing multiple (nn) data in data table by 2 bytes length
0nn4: In case of reading/writing multiple (nn) data in data table by 4 bytes length
The nn is the numerical value from 02 to 99. When setting 00 or 01, it works as the basic
specification in which one data transfer is performed by one instruction.
- 226 -
B-64393EN/02 4.LADDER LANGUAGE
Format specification (extended specification):
0 n n x
- 227 -
4.LADDER LANGUAGE B-64393EN/02
WARNING
1 You can not specify the table that includes different kind of address type or
discontinuous address area. In this case, operation is not guaranteed.
2 You have to set the "Storage address of number of data table elements" and the
"Data table head address" not to exceed the limit of its continuous address area.
If the table exceeds the limit of the continuous address area, operation is not
guaranteed. For example, when a range of address R is 0 to 7999 and the
"Format specification" is set to 1 and the "Data table head address" is set to
"R7990", you can set 10 or less to the "Storage address of number of data table
elements".
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 228 -
B-64393EN/02 4.LADDER LANGUAGE
RW = 0 W1
SUB 35
XMOVB 0041
RST = 0
R0
R100
ACT = 1 R200
D0
R100 D D0 2 R200 A
R101 D1 5 R201 B
R102 A D2 8 R202 C
R103 D3 0 R203 D
R106
R107
R108 C
Data table
- 229 -
4.LADDER LANGUAGE B-64393EN/02
RW = 1 W1
SUB 35
XMOVB 0041
RST = 0
R0
R200
ACT = 1 R100
D0
R100 A D0 2 R200 D
R101 B D1 5 R201
R102 C D2 8 R202 A
R103 D D3 0 R203
R206
R207
R208 C
Data table
- 230 -
B-64393EN/02 4.LADDER LANGUAGE
CAUTION
The data table heading address specified here is table internal number 0. The
table internal number specified here, however, is different from that mentioned in
Subsection 2.2.12.
1
2
Input or output data <1> 3
<2>
Format
Fig. 4.5.8 (b) shows the ladder format and Table 4.5.8 shows the mnemonic format.
BYT W1
SUB 18
RW XMOV {{{{ Number of data of the data table (Table capacity)
{{{{ Data table heading address
RST {{{{ Address storing input/output data
{{{{ Address storing table internal number
ACT
- 231 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Specify the number of digits of data. (BYT)
BYT = 0: Data stored in the data table, BCD in two digits long.
BYT = 1: Data stored in the data table, BCD in four digits long.
(b) Specify read or write (RW)
RW = 0: Data is read from the data table.
RW = 1: Data is write in the data table.
(c) Reset (RST)
RST = 0: Release reset.
RST = 1: Enables reset, that is, sets W1 to 0.
(d) Execution command (ACT)
ACT = 0: The XMOV instruction is not executed. W1 does not change.
ACT = 1: The XMOV instruction is executed.
Parameters
(a) Number of data of the data table
Specifies the size of the data table. If the beginning of the data table is 0 and the end is n, n + 1 is set
as the number of data of the data table. The value which you can set depends on the control
condition "BYT".
BYT=0: 1 to 99
BYT=1: 1 to 9999
WARNING
1 You can not specify the table that includes different kind of address type or
discontinuous address area. In this case, operation is not guaranteed.
2 You have to set the "Number of data of the data table" and the "Data table
heading address" not to exceed the limit of its continuous address area. If the
table exceeds the limit of the continuous address area, operation is not
guaranteed. For example, when a range of address R is 0 to 7999 and the control
condition "BYT" is set to 0 and the "Data table heading address" is set to
"R7990", you can set 10 or less to the "Number of data of the data table".
- 232 -
B-64393EN/02 4.LADDER LANGUAGE
Error output
W1 = 0: There is no error.
W1 = 1: There is an error.
An error occurs if a table internal number exceeding the previously programmed number of the
data table is specified.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 233 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
Transfer source data is specified in "Transfer source address" and "Transfer source bit position". Transfer
destination data is specified in "Transfer destination address" and "Transfer destination bit position".
From "Transfer source bit position", data consisting of successive bits as many as "Number of bits to be
transferred" is transferred to "Transfer destination address".
R100
7 6 5 4 3 2 1 0
Transfer source
Transfer destination
7 6 5 4 3 2 1 0
R500
Positions other than R500.4-6 remain unchanged.
R101 R100
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Transfer source
Transfer destination
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
R501 R500
Positions other than R500.3-5 remain unchanged.
- 234 -
B-64393EN/02 4.LADDER LANGUAGE
R101 R100
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
Transfer source
Transfer destination
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
R501 R500
Positions other than R500.7, R501.0, and R501.1 remain unchanged.
Format
Fig. 4.5.9(d) shows the ladder format and Table 4.5.9 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 224 {{{{
MOVBT {{{{
{{{{
{{{{
{{{{
ACT
- 235 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Number of bits to be transferred
Specify the number of bits to be transferred. A number from 1 to 256 may be specified.
NOTE
Bits are transferred even when "Transfer source address" and "Transfer
destination address" overlap each other.
NOTE
Bits are transferred even when "Transfer source address" and "Transfer
destination address" overlap each other.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 236 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Setting data", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Data setting instructions are available according to the type of data to
be set. In each instruction, "Setting data" and the data at "Setting destination address" are of the same
data type.
A A
A Number of
setting data
A
A
- 237 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.5.10(b) shows the ladder format and Table 4.5.10(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 225 {{{{
SETNB {{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 238 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Number of setting data
Specify the number of setting data items. A number from 1 to 256 may be specified.
NOTE
Please specify a valid number to the "Number of setting data", so that the area
from "Setting destination address" may be arranged within valid address range.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 239 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Data exchange instructions are available according to the type of data
to be exchanged. In each instruction, the data items at exchange addresses are of the same data type.
Address1 Address2
- 240 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.5.11(b) shows the ladder format and Table 4.5.11(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional instruction
SUB 228 {{{{
XCHGB {{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 241 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Address 1
Specify the 1st address which exchanges data.
(b) Address 2
Specify the 2nd address which exchanges data.
NOTE
If Address 1 and Address 2 areas are overlapped with each other, the result is not
guaranteed.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 242 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The number of data items to be swapped is specified using a constant. Swap source data and a result
output destination are specified using addresses.
As indicated below, two types of Data swap instructions are available according to the type of data to be
swapped. The SWAPW instruction swaps the higher one byte and lower one byte of each data item with
each other. The SWAPD instruction swaps the higher two bytes and lower two bytes of each data item
with each other.
In each instruction, source data and output data are of the same data type.
Swap
15 87 0
- 243 -
4.LADDER LANGUAGE B-64393EN/02
31 24 23 16 15 87 0
Swap
31 24 23 16 15 87 0
Format
Fig. 4.5.12(c) shows the ladder format and Table 4.5.12(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional instruction
SUB 231 {{{{
SWAPW {{{{
{{{{
ACT
- 244 -
B-64393EN/02 4.LADDER LANGUAGE
Table 4.5.12 Mnemonic of SWAPW, SWAPD instruction
Mnemonic format Memory status of control
condition
Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
number No.
1 RD {{{{ .{ ACT ACT
2 SUB 231 SUB No. (SWAPW instruction)
3 (PRM) {{{{ Number of data (Constant)
4 (PRM) {{{{ Source data top address
5 (PRM) {{{{ Result output top address
6 WRT {{{{ .{ Normal end output W1
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Number of data
Specify the number of data items to be swapped. A number from 1 to 256 may be specified.
NOTE
Please specify a valid number to the "Number of data", so that both of the area
from "Source data top address" and the area from "Result output top address"
may be arranged within valid address range.
NOTE
If "Source data top address" and "Result output top address" match each other
completely, the instruction is executed normally. If the source data area partially
overlaps the result output area, normal operation of the instruction is not
guaranteed.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 245 -
4.LADDER LANGUAGE B-64393EN/02
0
Search data 1
100 2 100
3
Search result output
2
CAUTION
You can specify any R,E and D address for the data table in this functional
instruction.
Format
Fig. 4.5.13 (b) shows the ladder format and Table 4.5.13 shows the mnemonic format.
RST W1
SUB 34
ACT DSCHB { Format designation
{{{{ Storage address of number of data in data table
{{{{ Data table head address
{{{{ Search data address
{{{{ Output address of search result
- 246 -
B-64393EN/02 4.LADDER LANGUAGE
Table 4.5.13 Mnemonic of DSCHB instruction
Memory status of control
Mnemonic format
condition
Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
number No.
1 RD {{{{ .{ RST RST
2 RD.STK {{{{ .{ ACT RST ACT
3 SUB 34 DSCHB instruction
4 (PRM) { Format designation
5 (PRM) {{{{ Storage address of number of data in
data table
6 (PRM) {{{{ Data table head address
7 (PRM) {{{{ Search data address
8 (PRM) {{{{ Output address of search result
9 WRT {{{{ .{ Search result W1
Control conditions
(a) Reset (RST)
RST = 0: Release reset
RST = 1: Reset. W1 = "0".
Parameters
(a) Format designation
Specifies data length. Specify byte length in the first digit of the parameter.
1: 1 byte length
2: 2 bytes length
4: 4 bytes length
(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). The
value which you can set depends on the "(a) Format designation".
1 byte length: 1 to 255
2 bytes length: 1 to 16384
3 bytes length: 1 to 16384
(c) Data table head address
Sets head address of data table.
(d) Search data address
Address in which search data is set.
(e) Output address of search result
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.
- 247 -
4.LADDER LANGUAGE B-64393EN/02
WARNING
1 You can not specify the table that includes different kind of address type or
discontinuous address area. In this case, operation is not guaranteed.
2 You have to set the "Storage address of number of data table elements" and the
"Data table head address" not to exceed the limit of its continuous address area.
If the table exceeds the limit of the continuous address area, operation is not
guaranteed. For example, when a range of address R is 0 to 7999 and the
"Format specification" is set to 1 and the "Data table head address" is set to
"R7990", you can set 10 or less to the "Storage address of number of data table
elements".
- 248 -
B-64393EN/02 4.LADDER LANGUAGE
1
Search data
2
100 100
CAUTION
You can specify any R,E and D address for the data table in this functional
instruction.
Format
Fig. 4.5.14 (b) shows the ladder format and Table 4.5.14 shows the mnemonic format.
BYT W1
SUB 17
RST DSCH {{{{ Number of data of the data table (Table capacity)
{{{{ Data table heading address
ACT {{{{ Search data address
{{{{ Search result output address
- 249 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Specify data size. (BYT)
BYT = 0: Data stored in the data table, BCD two digits long.
BYT = 1: Data stored in the data table, BCD four digits long.
(b) Reset (RST)
RST = 0: Release reset
RST = 1: Enables a reset, that is, sets W1 to 0.
(c) Execution command (ACT)
ACT = 0: The DSCH instruction is not executed. W1 does not change.
ACT = 1: The DSCH is executed, and the table internal number storing the desired data is output.
If the data cannot be found, W1 = 1.
Parameters
(a) Number of data of the data table
Specifies the size of the data table. If the beginning of the data table is 0 and the end is n, n + 1 is
set as the number of data of the data table. The value which you can set depends on the control
condition "BYT".
BYT=0: 1 to 99
BYT=1: 1 to 9999
(b) Data table heading address
Addresses that can be used in a data table are fixed. When preparing a data table, the addresses to
be used must be determined beforehand, specify the head address of a data table here.
(c) Search data address
Indicates the address of the data to be searched.
(d) Search result output address
If the data being searched for is found, the internal number of the table storing the data is output to
this field. This address field is called a search result output address field.
The search result output address field requires memory whose size is the number of bytes
conforming to the size of the data specified by BYT.
WARNING
1 You can not specify the table that includes different kind of address type or
discontinuous address area. In this case, operation is not guaranteed.
2 You have to set the "Number of data of the data table" and the "Data table
heading address" not to exceed the limit of its continuous address area. If the
table exceeds the limit of the continuous address area, operation is not
guaranteed. For example, when a range of address R is 0 to 7999 and the control
condition "BYT" is set to 0 and the "Data table heading address" is set to
"R7990", you can set 10 or less to the "Number of data of the data table".
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 250 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use these functions, the option of “Extended PMC Ladder Instruction
Function” is necessary.
- 251 -
4.LADDER LANGUAGE B-64393EN/02
4.6.1 TBLRB (Reading Data from Table (1 Byte Length) : SUB 233)
TBLRW (Reading Data from Table (2 Bytes Length) : SUB 234)
TBLRD (Reading Data from Table (4 Bytes Length) : SUB 235)
The Reading data from table instruction transfers data from a specified position in a table to another
address.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". In "Reading position", a data position is specified
relative to the top data position assumed to be 0.
In "Reading position", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Reading data from table instructions are available according to the type
of data to be read from a table. In each instruction, the data in the table and data at "Transfer destination
address" are of the same data type. However, the data type of "Reading position" is two-byte signed
binary data at all times.
0 D100
Reading position
1 D102
D200 10 : : :
10 D120
11 D122
- 252 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.6.1(b) shows the ladder format and Table 4.6.1(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 233 {{{{
TBLRB {{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 253 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
Specified address +0
Reading position
Specified address +1 (Signed binary data)
Output (W1)
W1=1: When a transfer operation is terminated normally
W1=0: When no transfer operation is executed (ACT=0)
When a value not within the valid range is specified in "Reading position"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 254 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". In "Reading position", a data position is specified
relative to the top data position assumed to be 0. In "Reading position", a constant or a PMC memory
address for storing data can be specified.
The byte length of data to be read from the table is specified in "Data size". The data in the table and
data at "Transfer destination address" are of the same data length. However, the data type of "Reading
position" is two-byte signed binary data at all times.
D100
Reading position
0 :
D105
D200 10 D106
1 :
D111
: : :
D160
10 :
D165
D166
11 :
D171
D300
The data No. in a table
:
D305
- 255 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.6.2(b) shows the ladder format and Table 4.6.2(a) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 236 {{{{
TBLRN {{{{
{{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 256 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
Specified address +0
Reading position
Specified address +1 (Signed binary data)
NOTE
The operation of the instruction is not guaranteed if "Transfer destination address"
overlaps the table. Specify "Transfer destination address" that does not overlap
the table.
Output (W1)
W1=1: When a transfer operation is terminated normally
W1=0: When no transfer operation is executed (ACT=0)
When a value not within the valid range is specified in "Reading position"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 257 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". In "Writing position", a data position is specified
relative to the top data position assumed to be 0. In "Writing position", a constant or a PMC memory
address for storing data can be specified.
As indicated below, three types of Writing data to table instructions are available according to the type of
data to be written to a table. In each instruction, the data in the table and transfer data are of the same
data type. However, the data type of "Writing position" is two-byte signed binary data at all times.
0 D100
Writing position
1 D102
D200 10
: : :
10 D120
11 D122
D300 250
The data No. in a table
Transfer data
- 258 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.6.3(b) shows the ladder format and Table 4.6.3 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 237 {{{{
TBLWB {{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 259 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
Specified address +0
Writing position
Specified address +1 (Signed binary data)
Output (W1)
W1=1: When a transfer operation is terminated normally
W1=0: When no transfer operation is executed (ACT=0)
When a value not within the valid range is specified in "Writing position"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 260 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". In "Writing position", a data position is specified
relative to the top data position assumed to be 0. In "Writing position", a constant or a PMC memory
address for storing data can be specified.
The byte length of data to be written to the table is specified in "Data size". The data in the table and
data at "Transfer data top address" are of the same data length. However, the data type of "Writing
position" is two-byte signed binary data at all times.
D100
Writing position 0 :
D105
D200 10 D106
1 :
D111
: : :
D160
10 :
D165
D166
11 :
D171
The data No. in a table
D300
Transfer data top address
:
D305
- 261 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.6.4(b) shows the ladder format and Table 4.6.4 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 240 {{{{
TBLWN {{{{
{{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 262 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
Specified address +0
Writing position
Specified address +1 (Signed binary data)
NOTE
The operation of the instruction is not guaranteed if "Transfer data top address"
overlaps the table. Specify "Transfer data top address" that does not overlap
the table.
Output (W1)
W1=1: When a transfer operation is terminated normally
W1=0: When no transfer operation is executed (ACT=0)
When a value not within the valid range is specified in "Writing position"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 263 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, eighteen types of Searching data from table instructions are available according to
the search condition and data type. In each instruction, the data in the table and "Search data" are of the
same data type. However, the data type of "Search starting position" and "Find position output address"
is two-byte signed binary data at all times.
- 264 -
B-64393EN/02 4.LADDER LANGUAGE
Table4.6.5 (a) Kinds of Searching data from table instruction
Instruction SUB Search
Data type
name No. condition
1 DSEQB 241 = 1 byte length signed binary data
2 DSEQW 242 2 bytes length signed binary data
3 DSEQD 243 4 bytes length signed binary data
4 DSNEB 244 ≠ 1 byte length signed binary data
5 DSNEW 245 2 bytes length signed binary data
6 DSNED 246 4 bytes length signed binary data
7 DSGTB 247 > 1 byte length signed binary data
8 DSGTW 248 2 bytes length signed binary data
9 DSGTD 249 4 bytes length signed binary data
10 DSLTB 250 < 1 byte length signed binary data
11 DSLTW 251 2 bytes length signed binary data
12 DSLTD 252 4 bytes length signed binary data
13 DSGEB 253 ≧ 1 byte length signed binary data
14 DSGEW 254 2 bytes length signed binary data
15 DSGED 255 4 bytes length signed binary data
16 DSLEB 256 ≦ 1 byte length signed binary data
17 DSLEW 257 2 bytes length signed binary data
18 DSLED 258 4 bytes length signed binary data
The top of a table is specified in "Table top address". In "Search starting position", a data position is
specified relative to the top data position assumed to be 0. A value output to "Find position output
address" is also indicated as a data position relative to the top data position assumed to be 0. In "Search
starting position", a constant or a PMC memory address for storing data can be specified.
If a value not within the valid range is specified in "Search starting position", -1 is output to "Find
position output address", and W1=0 is set.
Moreover, if data that satisfies a specified condition is not found in the area from "Search starting
position" to the end of the table as a result of search operation, -1 is output to "Find position output
address", and W1=0 is set.
- 265 -
4.LADDER LANGUAGE B-64393EN/02
0 D100 10
Search starting position Search data
1 D102 200
D200 3 D300 175
2 D104 4000
3 D106 175
4 D108 50
5 D110 90
6 D112 0
7 D114 180
: : :
19 D138 200
D400 7
- 266 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.6.5(b) shows the ladder format and Table 4.6.5(c) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 241 {{{{
DSEQB {{{{
{{{{
{{{{
{{{{
ACT
Fig. 4.6.5 (b) Format of DSEQx, DSNEx, DSGTx, DSLTx, DSGEx, DSLEx instruction
Table 4.6.5 (c) Mnemonic of DSEQx, DSNEx, DSGTx, DSLTx, DSGEx, DSLEx instruction
Mnemonic format Memory status of control
condition
Step Address
Instruction Bit No. Remarks ST3 ST2 ST1 ST0
number No.
1 RD {{{{ .{ ACT ACT
2 SUB 241 SUB No. (DSEQB instruction)
3 (PRM) {{{{ Number of data (Constant)
4 (PRM) {{{{ Table top address
5 (PRM) {{{{ Search starting position (Address or
Constant)
6 (PRM) {{{{ Search data (Address or Constant)
7 (PRM) {{{{ Find position output address
8 WRT {{{{ .{ Result output W1
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 267 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
Specified address +0
Search starting position
Specified address +1 (Signed binary data)
Specified address +0
Find position
Specified address +1 (Signed binary data)
- 268 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
W1=1: When data that satisfies a specified condition is found
W1=0: When no search operation is executed (ACT=0)
When data that satisfies a specified condition is not found in the area from "Search starting
position" to the end of the table
When a value not within the valid range is set in "Search starting position"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 269 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". A value output to "Find position output address"
is indicated as a data position relative to the top data position assumed to be 0.
A search is made starting at the top of a table. In "Number of search data", the number of data items to
be searched in the area from the top of a table to a desired search position is specified.
As indicated below, three types of Maximum data instructions are available according to the data type of
a table to be searched. In each instruction, the data in the table and data at "Maximum data output
address" are of the same data type. However, the data type of "Number of search data" and "Find
position output address" is two-byte signed binary data at all times.
- 270 -
B-64393EN/02 4.LADDER LANGUAGE
D400 10
0 D100 100
(Search range)
1 D102 200
2 D104 30000
3 D106 -2000
4 D108 50
5 D110 720
6 D112 30000
7 D114 -2000
8 D116 10000
9 D118 2000
10 D120 0
11 D122 0
: : :
19 D138 0
D200 30000
D300 2
Maximum data output address
Find position output address
- 271 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.6.6(b) shows the ladder format and Table 4.6.6(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 259 {{{{
DMAXB {{{{
{{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 272 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
This parameter indicates the total number of data items of a table. A data range to be searched is
specified using the "Number of search data" parameter.
Specified address +0
Number of search data
Specified address +1 (Signed binary data)
Specified address +0
Find position
Specified address +1 (Signed binary data)
Output (W1)
W1=1: When a search operation is terminated normally
W1=0: When no search operation is executed (ACT=0)
When, a value not within the valid range is set in "Number of search data"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 273 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The top of a table is specified in "Table top address". A value output to "Find position output address"
is indicated as a data position relative to the top data position assumed to be 0.
A search is made starting at the top of a table. In "Number of search data", the number of data items to
be searched in the area from the top of a table to a desired search position is specified.
As indicated below, three types of Minimum data instructions are available according to the data type of a
table to be searched. In each instruction, the data in the table and data at "Minimum data output
address" are of the same data type. However, the data type of "Number of search data" and "Find
position output address" is two-byte signed binary data at all times.
- 274 -
B-64393EN/02 4.LADDER LANGUAGE
D400 10
0 D100 100
(Search range)
1 D102 200
2 D104 30000
3 D106 -2000
4 D108 50
5 D110 720
6 D112 30000
7 D114 -2000
8 D116 10000
9 D118 2000
10 D120 0
11 D122 0
: : :
19 D138 0
D200 -2000
D300 3
Minimum data output address
Find position output address
- 275 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.6.7(b) shows the ladder format and Table 4.6.7(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 262 {{{{
DMINB {{{{
{{{{
{{{{
{{{{
ACT
Control condition
(a) Input signal
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 276 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Number of data
Specify the number of data items in a table. Ensure that the entire table is within the valid address
range.
This parameter indicates the total number of data items of a table. A data range to be searched is
specified using the "Number of search data" parameter.
Specified address +0
Number of search data
Specified address +1 (Signed binary data)
Specified address +0
Find position
Specified address +1 (Signed binary data)
Output (W1)
W1=1: When a search operation is terminated normally
W1=0: When no search operation is executed (ACT=0)
When a value not within the valid range is set in "Number of search data"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 277 -
4.LADDER LANGUAGE B-64393EN/02
4.7 COMPARISON
The following types of comparison instruction are available. Use any of these instructions as appropriate
for your purpose.
NOTE
1 You can set either constant or address to each parameter for the "(*1)" marked
instruction. When you input a number to its parameter on LADDER editing
screen, the input is recognized as a constant parameter. When you input a
symbol that is composed of digits and that may be considered as a number, the
input is recognized as a number and treated as a constant parameter too. If you
want to set such address that has a confusing symbol, you have to input the
address, not the symbol, to the parameter.
- 278 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.1 shows the ladder format and Table 4.7.1 shows the mnemonic format.
ACT W1
SUB 200
EQB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 201
EQW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 202
EQD {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 279 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
EQB: -128 to 127
EQW: -32768 to 32767
EQD: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" = "Data 2"
W1=0: - When ACT=0
- When ACT=1 and "Data 1" ≠ "Data2"
- 280 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.2 shows the ladder format and Table 4.7.2 shows the mnemonic format.
ACT W1
SUB 203
NEB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 204
NEW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 205
NED {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 281 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
NEB: -128 to 127
NEW: -32768 to 32767
NED: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" ≠ "Data 2"
W1=0: - When ACT=0
- When ACT=1 and "Data 1" = "Data2"
- 282 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.3 shows the ladder format and Table 4.7.3 shows the mnemonic format.
ACT W1
SUB 206
GTB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 207
GTW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 208
GTD {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 283 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
GTB: -128 to 127
GTW: -32768 to 32767
GTD: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" > "Data 2"
W1=0: - When ACT=0 "
- When ACT=1 and "Data 1" ≦ "Data2"
- 284 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.4 shows the ladder format and Table 4.7.4 shows the mnemonic format.
ACT W1
SUB 209
LTB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 210
LTW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 211
LTD {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 285 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
LTB: -128 to 127
LTW: -32768 to 32767
LTD: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" < "Data 2"
W1=0: - When ACT=0
- When ACT=1 and "Data 1" ≧ "Data2"
- 286 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.5 shows the ladder format and Table 4.7.5 shows the mnemonic format.
ACT W1
SUB 212
GEB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 213
GEW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 214
GED {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 287 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
GEB: -128 to 127
GEW: -32768 to 32767
GED: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" ≧ "Data 2"
W1=0: - When ACT=0
- When ACT=1 and "Data 1" < "Data2"
- 288 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.6 shows the ladder format and Table 4.7.6 shows the mnemonic format.
ACT W1
SUB 215
LEB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 216
LEW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
ACT W1
SUB 217
LED {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
- 289 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
You can specify the constant or any address. The valid data range is shown below.
LEB: -128 to 127
LEW: -32768 to 32767
LED: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1" ≦ "Data 2"
W1=0: - When ACT=0
- When ACT=1 and "Data 1" > "Data2"
- 290 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.7 shows the ladder format and Table 4.7.7 shows the mnemonic format.
ACT W1
SUB 218
RNGB {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
{{{{ Input data (Constant or Address)
ACT W1
SUB 219
RNGW {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
{{{{ Input data (Constant or Address)
ACT W1
SUB 220
RNGD {{{{ Data1 (Constant or Address)
{{{{ Data2 (Constant or Address)
{{{{ Input data (Constant or Address)
- 291 -
4.LADDER LANGUAGE B-64393EN/02
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Data 1
(b) Data 2
(c) Input data
You can specify the constant or any address. The valid data range is shown below.
RNGB: -128 to 127
RNGW: -32768 to 32767
RNGD: -2147483648 to 2147483647
Output (W1)
The result is output to W1.
W1=1: - When ACT=1 and "Data 1 ≦ Input data ≦ Data 2"
- When ACT=1 and "Data 2 ≦ Input data ≦ Data 1"
W1=0: - When ACT=0
- When ACT=1 and except for above condition.
- 292 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.8 shows the ladder format and Table 4.7.8 shows the mnemonic format.
ACT
SUB 32
COMPB
00
Format specification
{{{{ Input data (address)
{{{{ Address or data to be compared
Control condition
(a) Command (ACT)
ACT = 0: Do not execute COMPB.
ACT = 1: Execute COMPB.
Parameters
(a) Format specification
Specify data length (1,2, or 4 bytes) and format for the input data ('constants data' or 'address data').
0 0
- 293 -
4.LADDER LANGUAGE B-64393EN/02
7 6 5 4 3 2 1 0
R9000
The following table shows the relationship among the [input data], [data compared], and operation output
register.
- 294 -
B-64393EN/02 4.LADDER LANGUAGE
(5) When checking that [input data] < [data compared]
ACT R9000.5 R9000.1 Check result
R9000.1
- 295 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.7.9 shows the ladder format and Table 4.7.9 shows the mnemonic format.
BYT W1
SUB 15
ACT COMP { Specification of input data format
{{{{ Input data
{{{{ Comparison data address
Control conditions
(a) Specify the data size. (BYT)
BYT = 0: Process data (input value and comparison value) is BCD two digits long.
BYT = 1: Process data (input value and comparison value) is BCD four digits long.
(b) Execution command (ACT)
ACT = 0: The COMP instruction is not executed. W1 does not alter.
ACT = 1: The COMP instruction is executed and the result is output to W1.
Parameters
(a) Specification of input data format
0: Specifies input data with a constant.
1: Specifies input data with an address
Not specify input data directly, but specify an address storing input data.
(b) Input data
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.
(c) Comparison data address
Specifies the address storing the comparison data.
- 296 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.7.10 shows the ladder format and Table 4.7.10 shows the mnemonic format.
BYT W1
SUB 16
ACT COIN { Specification of input data format
{{{{ Input data
{{{{ Comparison data address
Control conditions
(a) Specify the data size.
BYT = 0: Process data (input value, and comparison values) is BCD two digits long.
BYT = 1: Process data (input value, and comparison values) is BCD four digits long.
(b) Execution command
ACT = 0: The COIN instruction is not executed. W1 does not change.
ACT = 1: The COIN instruction is executed and the results is output to W1.
Parameters
(a) Specification of input data format
0: Specifies input data as a constant.
1: Specifies input data as an address.
(b) Input data
The input data can be specified as either a constant or an address storing it. The selection is made by
a parameter of format designation.
(c) Comparison data address
Specifies the address storing the comparison data.
- 297 -
4.LADDER LANGUAGE B-64393EN/02
- 298 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 299 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.1 shows the ladder format and Table 4.8.1 shows the mnemonic format.
ACT OUT
SUB 57
DIFU {{{{ Rising edge number
Control conditions
(a) Input signal (ACT)
On a rising edge (0 → 1) of the input signal, the output signal is set to 1.
Detection result
(a) Output signal (OUT)
The output signal level remains at 1 for one scanning cycle of the ladder level where this functional
instruction is operating.
Parameters
0i-D 0i-D/ 0i Mate-D 0i-D
PMC PMC/L DCS PMC
Rising edge number 1 to 1000 1 to 256 1 to 256
WARNING
If the same number is used for another DIFU instruction or a DIFD instruction
(described later) in one Ladder diagram, operation is not guaranteed.
Operation
1 2 3 4 Execution period
ACT
OUT
- 300 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.2 shows the ladder format and Table 4.8.2 shows the mnemonic format.
ACT OUT
SUB 58
DIFD {{{{ Falling edge number
Control conditions
(a) Input signal (ACT)
On a falling edge (1→0) of the input signal, the output signal is set to 1.
Detection result
(a) Output signal (OUT)
The output signal level remains at 1 for one scanning period of the ladder level where this functional
instruction is operating.
Parameters
0i-D 0i-D/ 0i Mate-D 0i-D
PMC PMC/L DCS PMC
Rising edge number 1 to 1000 1 to 256 1 to 256
WARNING
If the same number is used for another DIFD instruction or a DIFU instruction
(described above) in one ladder diagram, operation is not guaranteed.
Operation
1 2 3 4
Execution period
ACT
OUT
- 301 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.3 shows the ladder format and Table 4.8.3 shows the mnemonic format.
ACT
SUB 59
EOR
00
Format specification
{{{{ Address A
{{{{ Constant or address B
{{{{ Address C
Control conditions
(a) Input signal (ACT)
ACT=0: The EOR instruction is not executed.
ACT=1: The EOR instruction is executed.
Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
0 0
(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.
- 302 -
B-64393EN/02 4.LADDER LANGUAGE
(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.
Operation
When address A and address B hold the following data:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
Address C 1 0 1 1 0 1 1 0
- 303 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.4 shows the ladder format and Table 4.8.4 shows the mnemonic format.
ACT
SUB 60
AND
00
Format specification
{{{{ Address A
{{{{ Constant or address B
{{{{ Address C
Control conditions
(a) Input signal (ACT)
ACT=0: The AND instruction is not executed.
ACT=1 : The AND instruction is executed.
Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
0 0
(b) Address A
Input data to be ANDed. The data that is held starting at this address and has the data length
specified in format specification is treated as input data.
- 304 -
B-64393EN/02 4.LADDER LANGUAGE
(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.
Operation
When address A and address B hold the following data:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
Address C 0 1 0 0 0 0 0 1
- 305 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.5 shows the ladder format and Table 4.8.5 shows the mnemonic format.
ACT
SUB 61
OR
00
Format specification
{{{{ Address A
{{{{ Constant or address B
{{{{ Address C
Control conditions
(a) Input signal (ACT)
ACT=0: The OR instruction is not executed.
ACT=1: The OR instruction is executed.
Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes), and an input data format (constant or address specification).
0 0
(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.
- 306 -
B-64393EN/02 4.LADDER LANGUAGE
(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.
Operation
When address A and address B hold the following data:
Address A 1 1 1 0 0 0 1 1
Address B 0 1 0 1 0 1 0 1
Address C 1 1 1 1 0 1 1 1
- 307 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.6 shows the ladder format and Table 4.8.6 shows the mnemonic format.
ACT
SUB 62
NOT 000
Format specification
{{{{ Address A
{{{{ Address B
Control conditions
(a) Input signal (ACT)
ACT=0: The NOT instruction is not executed.
ACT=1: The NOT instruction is executed.
Parameters
(a) Format specification
Specify a data length (1, 2, or 4 bytes).
0 0 0
(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.
- 308 -
B-64393EN/02 4.LADDER LANGUAGE
Operation
When address A holds the following data:
Address A 1 1 1 0 0 0 1 1
Address B 0 0 0 1 1 1 0 0
- 309 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.7 (a) shows the ladder format and Table 4.8.7 shows the mnemonic format.
O.E W1
SUB 11
RST PARI {{{{ Check data address
ACT
Control conditions
(a) Specify even or odd. (O.E)
O.E=0: Even-parity check
O.E=1: Odd-parity check
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 310 -
B-64393EN/02 4.LADDER LANGUAGE
7 6 5 4 3 2 1 0
Address X036 0
A
A
R228.0
A R228.0
R228.0
A
SUB 11
R228.0
PARI X036
ERST.M
ERR
X32.7
TF
F7.3
NOTE
For bits 0 to 7, bits other than those for the parity check must be 0.
- 311 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.8 shows the ladder format and Table 4.8.8 shows the mnemonic format.
DIR W1
SUB 33
CONT SFT {{{{ Address of shift data
RST
ACT
Control conditions
(a) Shift direction specification (DIR)]
DIR=0: Left shift
DIR=1: Right shift
- 312 -
B-64393EN/02 4.LADDER LANGUAGE
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Left shift
CONT=1:
Shift is the same as above, but "1" s are set to shifted bits.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Left shift
0 0 0 0 0 0 1 <1> 1 <1> 0 0 1 <1> 0 0
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 6 5 4 3 2 1 0
Designated address
15 14 13 12 11 10 9 8
Designated address +1
Shifted out
W1=0: "1" was not shifted out because of the shift operation.
W1=1: "1" was shifted out because of the shift operation.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 313 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Data A" and "Data B", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Exclusive OR instructions are available according to the type of data to
be operated. In each instruction, "Data A", "Data B", and the data at "Address C" are of the same data
type.
Format
Fig. 4.8.9(a) shows the ladder format and Table 4.8.9(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 265 {{{{
EORB {{{{
{{{{
ACT
- 314 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data A
Specify input data to be exclusive-ORed. In this parameter, a constant or a PMC memory address
for storing data can be specified. Specify data by using signed binary data. A value within the
following range may be specified:
(b) Data B
Specify input data to be exclusive-ORed. In this parameter, a constant or a PMC memory address
for storing data can be specified. Specify data by using signed binary data. A value within the
same range as for "Data A" may be specified.
(c) Address C
Specify the address to which the result of exclusive-OR operation is to be output.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 315 -
4.LADDER LANGUAGE B-64393EN/02
Operation
When "Data A" and "Data B" hold the following values, the value indicated below is output to "Address
C":
Binary data
Data A 1 1 1 0 0 0 1 1 (-29)
Data B 0 1 0 1 0 1 0 1 (85)
Address C 1 0 1 1 0 1 1 0 (-74)
Fig. 4.8.9 (b) Example of operation of the EORB, EORW, and EORD instructions
- 316 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Data A" and "Data B", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Logical AND instructions are available according to the type of data to
be operated. In each instruction, "Data A", "Data B", and the data at "Address C" are of the same data
type.
Format
Fig. 4.8.10(a) shows the ladder format and Table 4.8.10(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 268 {{{{
ANDB {{{{
{{{{
ACT
- 317 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data A
Specify input data to be logical-ANDed. In this parameter, a constant or a PMC memory address
for storing data can be specified. Specify data by using signed binary data. A value within the
following range may be specified:
(b) Data B
Specify input data to be logical-ANDed. In this parameter, a constant or a PMC memory address
for storing data can be specified. Specify data by using signed binary data. A value within the
same range as for "Data A" may be specified.
(c) Address C
Specify the address to which the result of logical-AND operation is to be output.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 318 -
B-64393EN/02 4.LADDER LANGUAGE
Operation
When "Data A" and "Data B" hold the following values, the value indicated below is output to "Address
C":
Binary data
Data A 1 1 1 0 0 0 1 1 (-29)
Data B 0 1 0 1 0 1 0 1 (85)
Address C 0 1 0 0 0 0 0 1 (65)
Fig. 4.8.10 (b) Example of operation of the ANDB, ANDW, and ANDD instructions
- 319 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Data A" and "Data B", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Logical OR instructions are available according to the type of data to
be operated. In each instruction, "Data A", "Data B", and the data at "Address C" are of the same data
type.
Format
Fig. 4.8.11(a) shows the ladder format and Table 4.8.11(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 271 {{{{
ORB {{{{
{{{{
ACT
- 320 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data A
Specify input data to be logical-ORed. In this parameter, a constant or a PMC memory address for
storing data can be specified. Specify data by using signed binary data. A value within the
following range may be specified:
(b) Data B
Specify input data to be logical-ORed. In this parameter, a constant or a PMC memory address for
storing data can be specified. Specify data by using signed binary data. A value within the same
range as for "Data A" may be specified.
(c) Address C
Specify the address to which the result of logical-OR operation is to be output.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 321 -
4.LADDER LANGUAGE B-64393EN/02
Operation
When "Data A" and "Data B" hold the following values, the value indicated below is output to "Address
C":
Binary data
Data A 1 1 1 0 0 0 1 1 (-29)
Data B 0 1 0 1 0 1 0 1 (85)
Address C 1 1 1 1 0 1 1 1 (-9)
Fig. 4.8.11 (b) Example of operation of the ORB, ORW, and ORD instructions
- 322 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Data A", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Logical NOT instructions are available according to the type of data to
be operated. In each instruction, "Data A" and the data at "Address B" are of the same data type.
Format
Fig. 4.8.12(a) shows the ladder format and Table 4.8.12(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 274 ○○○○
NOTB ○○○○
ACT
- 323 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data A
Specify input data on which a logical-NOT operation is to be performed. In this parameter, a
constant or a PMC memory address for storing data can be specified. Specify data by using signed
binary data. A value within the following range may be specified:
(b) Address B
Specify the address to which the result of logical-NOT operation is to be output.
Output (W1)
When the instruction is executed, W1=1 is set. That is, W1 always assumes the same state as ACT.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
Operation
When "Data A" holds the following value, the value indicated below is output to "Address B":
Binary data
Data A 1 1 1 0 0 0 1 1 (-29)
Address B 0 0 0 1 1 1 0 0 (28)
Fig. 4.8.12 (b) Example of operation of the NOTB, NOTW, and NOTD instructions
- 324 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit shift left instructions are available according to the type of data to
be operated. Shift source bit data and the data at a shift result output address are of the same data type.
The value of the last bit shifted out by a shift operation is output to W1. The value(s) of the preceding
left-side bit(s) are lost.
R101 R100
7 0 7 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Shift source
Bits 12 to 15 are
lost. Shifted left by a
specified number of
W1
bits
Bit 11 is output to W1. 0 is shifted in.
Shift result 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R103 R102
7 0 7 0
If 0 or a negative value is specified in "Number of shift bits", the data specified in "Shift source data" is
output to "Shift result output address" without modification, and W1=0 is set.
- 325 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.13(b) shows the ladder format and Table 4.8.13(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 277 {{{{
SHLB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 326 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Shifting source data
Specify bit shift source data. In this parameter, a constant or a PMC memory address for storing
data can be specified.
Specify data by signed binary data. A value within the following range may be specified:
Output (W1)
W1=1 When the value of the last bit shifted out is 1
W1=0 When no shift operation is executed (ACT=0)
When the value of the last bit shifted out is 0
When 0 or a negative value is specified in "Number of shift bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 327 -
4.LADDER LANGUAGE B-64393EN/02
4.8.14 SHLN (Bit Shift Left (Arbitrary Bytes Length) : SUB 280)
The Bit shift left instruction shifts bit data to the left by a specified number of bits. In the empty bit
position(s) after shift operation, 0 is shifted in. The result of shift operation is output to a specified
address.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The Bit shift left instruction performs a bit shift operation on a bit string of a specified data size.
Shifting source data and the result of shift operation are of the same data size.
The value of the last bit shifted out by shift operation is output to W1. The value(s) of the preceding
left-side bit(s) are lost.
Shift result 0 0 0 0 0
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R105 R104 R103
7 0 7 0 7 0
If 0 or a negative value is specified in "Number of shift bits", the shift source data is output to "Shift
result output address" without modification, and W1=0 is set.
- 328 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.14(b) shows the ladder format and Table 4.8.14 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 280 {{{{
SHLN {{{{
{{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 329 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data size
Specify the number of bytes of data on which a bit shift operation is to be performed. A value from
1 to 256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that both of the area from
"Shifting source data top address" and the area from "Shift result output address"
may be arranged within valid address range.
Specified address +0
Specified address +1
Number of shift bits
Specified address +2 (Signed binary data)
Specified address +3
Output (W1)
W1=1 When the value of the last bit shifted out is 1
W1=0 When no shift operation is executed (ACT=0)
When the value of the last bit shifted out is 0
When 0 or a negative value is specified in "Number of shift bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 330 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit shift right instructions are available according to the type of data to
be operated. Shift source bit data and the data at a shift result output address are of the same data type.
The value of the last bit shifted out by shift operation is output to W1. The value(s) of the following
right-side bit(s) are lost.
R101 R100
7 0 7 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Shift source
Bits 0 to 3 are
W1 lost.
Bit 4 is output to W1. Shifted right by a
specified number of bits
ト
Shift result 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 is shifted in. R103 R102
7 0 7 0
If 0 or a negative value is specified in "Number of shift bits", the shift source data is output to "Shift
result output address" without modification, and W1=0 is set.
- 331 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.15(b) shows the ladder format and Table 4.8.15(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 281 {{{{
SHRB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 332 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Shifting source data
Specify bit shift source data. In this parameter, a constant or a PMC memory address for storing
data can be specified.
Specify data by signed binary data. A value within the following range may be specified:
Output (W1)
W1=1 When the value of the last bit shifted out is 1
W1=0 When no shift operation is executed (ACT=0)
When the value of the last bit shifted out is 0
When 0 or a negative value is specified in "Number of shift bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 333 -
4.LADDER LANGUAGE B-64393EN/02
4.8.16 SHRN (Bit Shift Right (Arbitrary Bytes Length) : SUB 284)
The Bit shift right instruction shifts bit data to the right by a specified number of bits. In the empty bit
position(s) after shift operation, 0 is shifted in. The result of shift operation is output to a specified
address.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The Bit shift right instruction performs a bit shift operation on a bit string of a specified data size.
Shifting source data and the result of shift operation are of the same data size.
The value of the last bit shifted out by shift operation is output to W1. The value(s) of the following
right-side bit(s) are lost.
Bits 0 to 3 are
W1
lost.
Bit 4 is output to W1.
Shifted right by a specified number of bits
Shift result 0 0 0 0 0
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 is shifted
R105 R104 R103
in.
7 0 7 0 7 0
If 0 or a negative value is specified in "Number of shift bits", the shift source data is output to "Shift
result output address" without modification, and W1=0 is set.
- 334 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.16(b) shows the ladder format and Table 4.8.16 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 284 {{{{
SHRN {{{{
{{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 335 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data size
Specify the number of bytes of data on which a bit shift operation is to be performed. A value from
1 to 256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that both of the area from
"Shifting source data top address" and the area from "Shift result output address"
may be arranged within valid address range.
Specified address +0
Specified address +1
Number of shift bits
Specified address +2 (Signed binary data)
Specified address +3
Output (W1)
W1=1 When the value of the last bit shifted out is 1
W1=0 When no shift operation is executed (ACT=0)
When the value of the last bit shifted out is 0
When 0 or a negative value is specified in "Number of shift bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 336 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit rotation left instructions are available according to the type of data
to be operated. Rotation source bit data and the data at a rotation result output address are of the same
data type.
R101 R100
7 0 7 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Rotation source
- 337 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.17(b) shows the ladder format and Table 4.8.17(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 285 {{{{
ROLB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 338 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Rotation source data
Specify bit rotation source data. In this parameter, a constant or a PMC memory address for
storing data can be specified.
Specify data by signed binary data. A value within the following range may be specified:
Output (W1)
W1=1 When the value of bit 0 after rotation is 1
W1=0 When no rotation operation is executed (ACT=0)
When the value of bit 0 after rotation is 0
When 0 or a negative value is specified in "Number of rotation bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 339 -
4.LADDER LANGUAGE B-64393EN/02
4.8.18 ROLN (Bit Rotation Left (Arbitrary Bytes Length) : SUB 288)
The Bit rotation left instruction rotates bit data to the left by a specified number of bits. The result of
rotation operation is output to a specified address.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The Bit rotation left instruction performs a bit rotation operation on a bit string of a specified data size.
Rotation source data and the result of rotation operation are of the same data size.
- 340 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.18(b) shows the ladder format and Table 4.8.18 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 288 {{{{
ROLN {{{{
{{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 341 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data size
Specify the number of bytes of data on which a bit rotation operation is to be performed. A value
from 1 to 256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that both of the area from
"Rotation source data top address" and the area from "Rotation result output
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Number of rotation bits
Specified address +2 (Signed binary data)
Specified address +3
Output (W1)
W1=1 When the value of bit 0 after rotation is 1
W1=0 When no rotation operation is executed (ACT=0)
When the value of bit 0 after rotation is 0
When 0 or a negative value is specified in "Number of rotation bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 342 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit rotation right instructions are available according to the type of
data to be operated. Rotation source bit data and the data at a rotation result output address are of the
same data type.
R101 R100
7 0 7 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Rotation source
Rotated right by
a specified number of bits
右方向に テ シ ン
Rotation result
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R103 R102
W1 7 0 7 0
The most significant bit after rotation is output to W1.
The value of the most significant bit (bit 15 in the example above) after rotation is output to W1.
If 0 is specified in "Number of rotation bits", the data specified in "Rotation source data" is output to
"Rotation result output address" without modification, and W1=0 is set.
- 343 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.8.19(b) shows the ladder format and Table 4.8.19(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 289 {{{{
RORB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 344 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Rotation source data
Specify bit rotation source data. In this parameter, a constant or a PMC memory address for
storing data can be specified.
Specify data by signed binary data. A value within the following range may be specified:
Output (W1)
W1=1 When the value of the most significant bit after rotation is 1
W1=0 When no rotation operation is executed (ACT=0)
When the value of the most significant bit after rotation is 0
When 0 or a negative value is specified in "Number of rotation bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 345 -
4.LADDER LANGUAGE B-64393EN/02
4.8.20 RORN (Bit Rotation Right (Arbitrary Bytes Length) : SUB 292)
The Bit rotation right instruction rotates bit data to the right by a specified number of bits. The result of
rotation operation is output to a specified address.
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
The Bit rotation right instruction performs a bit rotation operation on a bit string of a specified data size.
Rotation source data and the result of rotation operation are of the same data size.
Rotation result
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R105 R104 R103
W1 7 0 7 0 7 0
The value of the most significant bit (bit 15 in the example above) at the last address after rotation is
output to W1.
If 0 is specified in "Number of rotation bits", the rotation source data is output to "Rotation result output
address" without modification, and W1=0 is set.
- 346 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.20(b) shows the ladder format and Table 4.8.20 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 292 {{{{
RORN {{{{
{{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 347 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data size
Specify the number of bytes of data on which a bit rotation operation is to be performed. A value
from 1 to 256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that both of the area from
"Rotation source data top address" and the area from "Rotation result output
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Number of rotation bits
Specified address +2 (Signed binary data)
Specified address +3
Output (W1)
W1=1 When the value of the most significant bit at the last address after rotation is 1
W1=0 When no rotation operation is executed (ACT=0)
When the value of the most significant bit at the last address after rotation is 0
When 0 or a negative value is specified in "Number of rotation bits"
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 348 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit set instructions are available according to the type of data to be
operated.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of a specified address.
For example, if R100 is specified in "Data address", and 20 is specified in "Bit position" with the BSETD
instruction, R102.4 is set to ON.
Bit position 31 20 0
Format
Fig. 4.8.21(a) shows the ladder format and Table 4.8.21(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 293 {{{{
BSETB {{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the address of data on which a bit operation is to be performed.
If a value not within the valid range is specified in this parameter, the data is not modified, and W1=0
is set.
Output (W1)
W1=1 When an operation is terminated normally
W1=0 When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 350 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of the start address.
For example, if R100 is specified in "Data top address", 6 is specified in "Data size", and 36 is specified
in "Bit position", R104.4 is set to ON.
Bit position 47 36 0
Data size = 6
Format
Fig. 4.8.22 shows the ladder format and Table 4.8.22 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 296 {{{{
BSETN {{{{
{{{{
ACT
- 351 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data size
Specify the number of bytes of data on which a bit operation is to be performed. A value from 1 to
256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that the area from "Data top
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Bit position
Specified address +2 (Signed binary data)
Specified address +3
If a value not within the valid range is specified in this parameter, the data is not modified, and W1=0
is set.
- 352 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
W1=1 When an operation is terminated normally
W1=0 When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 353 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit reset instructions are available according to the type of data to be
operated.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of a specified address.
For example, if R100 is specified in "Data address", and 20 is specified in "Bit position" with the BRSTD
instruction, R102.4 is set to OFF.
Bit position 31 20 0
Format
Fig. 4.8.23 shows the ladder format and Table 4.8.23(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 297 {{{{
BRSTB {{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the address of data on which a bit operation is to be performed.
If a value not within the valid range is specified in this parameter, the data is not modified, and W1=0
is set.
Output (W1)
W1=1 When an operation is terminated normally
W1=0 When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 355 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of the start address.
For example, if R100 is specified in "Data top address", 6 is specified in "Data size", and 36 is specified
in "Bit position", R104.4 is set to OFF.
Bit position 47 36 0
Data size = 6
Format
Fig. 4.8.24 shows the ladder format and Table 4.8.24 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 300 {{{{
BRSTN {{{{
{{{{
ACT
- 356 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data size
Specify the number of bytes of data on which a bit operation is to be performed. A value from 1 to
256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that the area from "Data top
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Bit position
Specified address +2 (Signed binary data)
Specified address +3
If a value not within the valid range is specified in this parameter, the data is not modified, and W1=0
is set.
- 357 -
4.LADDER LANGUAGE B-64393EN/02
Output (W1)
W1=1 When an operation is terminated normally
W1=0 When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 358 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit test instructions are available according to the type of data to be
operated.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of a specified address.
For example, if R100 is specified in "Data address", and 20 is specified in "Bit position" with the BTSTD
instruction, the state of R102.4 is output.
Bit position 31 20 0
Format
Fig. 4.8.25 shows the ladder format and Table 4.8.25(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 301 {{{{
BTSTB {{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the address of data on which a bit operation is to be performed.
If a value not within the valid range is specified in this parameter, W1=0 is set.
Output (W1)
W1=1 Specified bit is 1.
W1=0 Specified bit is 0.
When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 360 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of the start address.
For example, if R100 is specified in "Data top address", 6 is specified in "Data size", and 36 is specified
in "Bit position", the bit state of R104.4 is output.
Bit position 47 36 0
Data size = 6
Format
Fig. 4.8.26 shows the ladder format and Table 4.8.26 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 304 {{{{
BTSTN {{{{
{{{{
ACT
- 361 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data size
Specify the number of bytes of data on which a bit operation is to be performed. A value from 1 to
256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that the area from "Data top
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Bit position
Specified address +2 (Signed binary data)
Specified address +3
If a value not within the valid range is specified in this parameter, W1=0 is set.
- 362 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
W1=1 Specified bit is 1.
W1=0 Specified bit is 0.
When no operation is executed (ACT=0)
When "Bit position" is not within the valid range
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 363 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit search instructions are available according to the type of data to be
operated.
Bits are searched in the order from bit 0 to bit 7 at the data top address then bits are searched in the order
from bit 0 to bit 7 at the next address. In this way, bit search operation is further performed for up to bit
7 of the last address.
The bit position of the bit that is first found to be ON is output.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of the start address.
For example, if R100 is specified in "Data address" with the BPOSD instruction, and only R102.4 is set
to ON, 20 is output to "Bit position output address".
Bit position 31 20 0
- 364 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.8.27 shows the ladder format and Table 4.8.27(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 305 {{{{
BPOSB {{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the address of data on which a bit operation is to be performed.
- 365 -
4.LADDER LANGUAGE B-64393EN/02
Output (W1)
W1=1 is set when the instruction is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when there is no bit set to ON.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 366 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
Bits are searched in the order from bit 0 to bit 7 at "Data top address" then bits are searched in the order
from bit 0 to bit 7 at the next address. In this way, bit search operation is further performed for up to bit
7 of the last address.
The bit position of the bit that is first found to be ON is output.
A bit position is identified by sequentially counting bit positions, starting with 0, from the least
significant bit of the start address.
For example, if R100 is specified in "Data top address", 6 is specified in "Data size", and only R104.4 is
set to ON, 36 is output to "Bit position output address".
Bit position 47 36 0
Data size = 6
Format
Fig. 4.8.28 shows the ladder format and Table 4.8.28 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 308 {{{{
BPOSN {{{{
{{{{
ACT
- 367 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data size
Specify the number of bytes of data on which a bit operation is to be performed. A value from 1 to
256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that the area from "Data top
address" may be arranged within valid address range.
Specified address +0
Specified address +1
Bit position
Specified address +2 (Signed binary data)
Specified address +3
- 368 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
W1=1 : When an operation is terminated normally
W1=0 : When no operation is executed (ACT=0)
When there is no bit set to ON
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 369 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Bit count instructions are available according to the type of data to be
operated.
Format
Fig. 4.8.29 shows the ladder format and Table 4.8.29(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 309 {{{{
BCNTB {{{{
ACT
- 370 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the address of data on which a bit operation is to be performed.
Output (W1)
W1=1 : When an operation is executed (ACT=1)
W1=0 : When no operation is executed (ACT=0)
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 371 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
Format
Fig. 4.8.30 shows the ladder format and Table 4.8.30 shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 312 {{{{
BCNTN {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
- 372 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Data size
Specify the number of bytes of data on which a bit operation is to be performed. A value from 1 to
256 may be specified.
NOTE
Please specify a valid number to the "Data size", so that the area from "Data top
address" may be arranged within valid address range.
Specified address +0
Specified address +1
ON-Bit count
Specified address +2 (Signed binary data)
Specified address +3
Output (W1)
W1=1 : When an operation is executed (ACT=1)
W1=0 : When no operation is executed (ACT=0)
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 373 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 374 -
B-64393EN/02 4.LADDER LANGUAGE
4
Convert data
output address
{{{{
Data of the specified table internal address
is output to this address.
n
- 375 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.9.1 (b) shows the ladder format and Table 4.9.1 shows the mnemonic format.
{{{{. { SUB 7
RST {{{ Size of table data
COD {{{{ Conversion input data address
{{{{. { {{{{ Converted data output address
ACT
{{{{. {
Control condition
0 { { { {
1 { { { {
2 { { { {
3 { { { {
- 376 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Specify the data size. (BYT)
BYT=0: Specifies that the conversion table data is to be BCD two digits.
BYT=1: Specifies that the conversion table data is to be BCD four digits.
Parameters
(a) Size of table data
A conversion table data address from 00 to 99 can be specified.
Specify n+1 as the size of table when n is the last table internal number.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 377 -
4.LADDER LANGUAGE B-64393EN/02
Conversion data 0
address 2
{{{{
Specify table address here. 1
(binary format1 byte)
2 (Note 1) This table data is binary
format 2-byte data.
Conversion data 3
(Note 2) Conversion table is
output address 1250 written in the ROM
{{{{ together together with
Data stored in the specified ∼ ∼
∼ ∼
the program, because it
table address is output to is defined in the
this address sequence program.
n
(n: max. 255)
Format
Fig. 4.9.2 (b) shows the ladder format and Table 4.9.2 shows the mnemonic format.
RST W1
SUB 27
ACT CODB { Format designation
{{{ Number of conversion table data
{{{{ Conversion input data address
{{{{ Conversion data output address
- 378 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Reset (RST)
RST=0: Do not reset.
RST=1: Reset error output W1 (W1=0).
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.
- 379 -
4.LADDER LANGUAGE B-64393EN/02
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 380 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.9.3 shows the ladder format and Table 4.9.3 shows the mnemonic format.
BYT W1
SUB 14
CNV DCNV {{{{ Input data address
{{{{ Conversion result output
RST
ACT
Control conditions
(a) Specify data size. (BYT)
BYT=0: Process data in length of one byte (8 bits)
BYT=1: Process data in length of two bytes (16 bits)
- 381 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Input data address
Specify the address of the input data
(b) Output address after conversion
Specify the address output data converted into BCD or binary type
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
- 382 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.9.4 shows the ladder format and Table 4.9.4 shows the mnemonic format.
SIN W1
SUB 31
CNV DCNVB { Format specification
{{{{ Input data address
RST {{{{ Conversion result output address
ACT
Control conditions
(a) Sign of the data to be converted (SIN)
This parameter is significant only when you are converting BCD data into binary coded data. It
gives the sign of the BCD data.
Note that though it is insignificant when you are converting binary into BCD data, you cannot omit
it.
SIN=0: Data (BCD code) to be input is positive.
SIN=1: Data (BCD code) to be input is negative.
- 383 -
4.LADDER LANGUAGE B-64393EN/02
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
2: two bytes
4: four bytes
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this
instruction are prohibited. You have to place a single coil instruction as the output
of this instruction.
7 6 5 4 3 2 1 0
R9000
Negative
Overflow
(data exceeds the number of bytes specified)
- 384 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.9.5 (a) shows the ladder format and Table 4.9.5 (a) shows the mnemonic format.
ACT W1
SUB 4
DEC {{{{ Address of decode signal
{{{{ Decode instruction
The mnemonic-format instruction name "DEC" for step number 2 above may be abbreviated as "D".
Control condition
ACT=0: Turns the decoding result output off (W1).
ACT=1: Performs decoding.
When the specified number is equal to the code signal, W1=1; when not, W1=0.
Parameters
(a) Code signal address
Specify the address containing two-digit BCD code signals.
- 385 -
4.LADDER LANGUAGE B-64393EN/02
Decode specification {{ {{
(i) Number:
Specify the decode number.
Must always be decoded in two digits.
(ii) Number of digits:
01: The high-order digit of two decimal digits is set to 0 and only the low-order digit is
decoded.
10: The low-order digit is set to 0 and only the high-order digit is decoded.
11: Two decimal digits are decoded.
W1
SUB 4 R200
DEC
R100.0 R103.1 3011
R228.1
- 386 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Decode designating
number +7
Decode designating numbers
Eight numbers, each of which is added by 0, 1, 2, . . . , and 7 to the specified
number are decoded.
When number 62 is specified, for example, eight numbers of 62 to 69 are
decoded.
If code data is 62, 0 bit of output data is turned on; if 69, 7th bit is turned on.
Decode designating
number +8
8n-1 8(n-1)
Decode designating
number +(8n-1)
- 387 -
4.LADDER LANGUAGE B-64393EN/02
Figs. 4.9.6 (c) and (d) show the ladder formats and Tables 4.9.6 (a) and (b) show the mnemonic formats.
ACT
SUB 25
DECB { Format specification
{{{{ Code data address
{{{{ Decode designation
{{{{ Decode result output address
ACT
SUB 25
DECB 0
Format specification
{{{{ Code data address
{{{{ Decode designation
{{{{ Decode result output address
Control conditions
(a) Command (ACT)
ACT=0: Resets all the output data bits.
ACT=1: Decodes data. Results of processing is set in the output data address.
- 388 -
B-64393EN/02 4.LADDER LANGUAGE
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 bytes length
0004: Code data is in binary format of 4 bytes length
When setting format specification in the following extended format, DECB can decode multiple (8 ×
n) bytes by 1 instruction.
0nn1: In case of decoding multiple (8 × nn) bytes and code data is binary format of 1 byte
length
0nn2: In case of decoding multiple (8 × nn) bytes and code data is binary format of 2 bytes
length
0nn4: In case of decoding multiple (8 × nn) bytes and code data is binary format of 4 bytes
length
The nn is the numerical value from 02 to 99. When setting 00 or 01, it works for decoding 8
numbers.
- 389 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Binary to BCD conversion instructions are available according to the
type of data to be converted.
If conversion source binary data is not within the valid BCD format data range (if source binary data is a
negative value or is greater than the maximum allowable value), the result of conversion is not output,
and W1=0 is set.
Format
Fig. 4.9.7 shows the ladder format and Table 4.9.7(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 313 ○○○○
TBCDB ○○○○
ACT
- 390 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Source data
Specify conversion source binary data. In this parameter, a constant or a PMC memory address for
storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when conversion source data is not within the
valid BCD format data range.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction DCNVB, W1=1 is set when an operation is
terminated abnormally. With TBCDB, TBCDW, and TBCDD, W1=1 is set when
an operation is terminated normally.
3 No data is output to the operation output registers (R9000).
- 391 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of BCD to Binary conversion instructions are available according to the
type of data to be converted.
If conversion source data is invalid as BCD format data, the result of conversion is not output, and W1=0
is set.
Format
Fig. 4.9.8 shows the ladder format and Table 4.9.8(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 316 ○○○○
FBCDB ○○○○
ACT
- 392 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Source data
Specify conversion source BCD format data. In this parameter, a constant or a PMC memory
address for storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when conversion source data is invalid as BCD
format data.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction DCNVB, W1=1 is set when an operation is
terminated abnormally. With FBCDB, FBCDW, and FBCDD, W1=1 is set when
an operation is terminated normally.
3 No sign is specified for binary data output as the result of conversion. Invert the
sign by using NEGSx after conversion if necessary.
4 No data is output to the operation output registers (R9000).
- 393 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
- 394 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.1 shows the ladder format and Table 4.10.1 shows the mnemonic format.
RST W1
SUB 36
ACT ADDB
00
Format specification
{{{{ Augend address
{{{{ Addend data (address)
{{{{ Result output address
Control conditions
(a) Reset (RST)
RST=0: Release reset
RST=1: Resets error output W1. In other words, makes W1=0.
- 395 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the addend (constant or address).
0 0
Format specification
0: Constant data
1: Address data
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
Zero
Negative
Overflow
- 396 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.2 shows the ladder format and Table 4.10.2 shows the mnemonic format.
RST W1
SUB 37
ACT SUBB
00
Format specification
{{{{ Menuend address
{{{{ Minuend data (address)
{{{{ Result output address
Control conditions
(a) Reset (RST)
RST=0: Release reset
RST=1: Resets error output W1. (Set W1 to 0.)
- 397 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the subtrahend (constant or address).
0 0
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
- 398 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.3 shows the ladder format and Table 4.10.3 shows the mnemonic format.
RST W1
SUB 38
ACT MULB
00
Format specification
{{{{ Multiplicand address
{{{{ Multiplier data (address)
{{{{ Result output address
Control conditions
(a) Reset (RST)
RST=0: Release reset
RST=1: Resets error output W1. In other words, makes W1=0.
- 399 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the multiplier (constant or address).
0 0
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
- 400 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.4 shows the ladder format and Table 4.10.4 shows the mnemonic format.
RST W1
SUB 39
ACT DIVB
00
Format specification
{{{{ Dividend address
{{{{ Divisor data (address)
{{{{ Result output address
Control conditions
(a) Reset (RST)
RST=0: Release reset
RST=1: Resets error output W1. In other words, makes W1=0.
- 401 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Format specification
Specifies data length (1, 2, and 4 bytes) and the format for the divisor (constant or address).
0 0
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
7 6 5 4 3 2 1 0
R9000
Zero
Negative
Overflow
- 402 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.5 shows the ladder format and Table 4.10.5 shows the mnemonic format.
BYT W1
SUB 19
RST ADD { Data format of addend (Constant or address)
{{{{ Summand address
ACT {{{{ Addend
{{{{ Sum output address
Control conditions
(a) Specify the number of digits of data. (BYT)
BYT=0: Data is BCD two digits long.
BYT=1: Data is BCD four digits long.
- 403 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data format of addend
0: Specifies addend with a constant.
1: Specifies addend with an address.
Error output
W1=0: Normal operation
W1=1: Abnormal operation. W1 is set to 1 to indicate an error, e.g. if the result of the addition exceeds
the data size specified for control condition (a) described above.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
- 404 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.6 shows the ladder format and Table 4.10.6 shows the mnemonic format.
BYT W1
SUB 20
RST SUB { Data format of subtrahend
{{{{ Minuend address
ACT {{{{ Subtrahend
{{{{ Difference output address
Control conditions
(a) Specification of the number of digits of data. (BYT)
BYT=0: Data BCD two digits long
BYT=1: Data BCD four digits long
- 405 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data format of subtrahend
0: Specifies subtrahend with a constant.
1: Specifies subtrahend with an address.
Error output
W1=0: Normal operation
W1=1: Abnormal operation. W1 is set 1 to indicate an error if the difference is negative.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
- 406 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.7 shows the ladder format and Table 4.10.7 shows the mnemonic format.
BYT W1
SUB 21
RST MUL { Data format of multiplier (constant or address)
{{{{ Multiplicand address
ACT {{{{ Multiplier
{{{{ Product output address
Control conditions
(a) Specify the number of digits of data. (BYT)
BYT=0: Data is BCD two digits long.
BYT=1: Data is BCD four digits long.
- 407 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Data format of multiplier
0: Specifies multiplier with a constant.
1: Specifies multiplier with an address.
Error output
W1=0: Normal operation
W1=1: Abnormal operation. W1=1 is set to indicate an error if the product exceeds the specified size.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
- 408 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.8 shows the ladder format and Table 4.10.8 shows the mnemonic format.
BYT W1
SUB 22
RST DIV { Divisor data format designation
{{{{ Dividend address
ACT {{{{ Divisor (address)
{{{{ Quotient output address
Control conditions
(a) Specify the number of digits of data. (BYT)
BYT=0: Data is BCD two digits long.
BYT=1: Data is BCD four digits long.
- 409 -
4.LADDER LANGUAGE B-64393EN/02
Parameters
(a) Divisor data format designation
0: Specifies divisor data by constant.
1: Specifies divisor data by address.
Error output
W1=0: Normal operation
W1=1: Abnormal operation. W1=1 is set to indicate an error if the divider is 0.
CAUTION
The multiple use of coil, WRT, WRT.NOT, SET or RST, that follows this instruction
are prohibited. You have to place a single coil instruction as the output of this
instruction.
- 410 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Figs. 4.10.9 (a) and (b) show the ladder formats and Tables 4.10.9 (a) and (b) show the mnemonic formats.
ACT
SUB 40
NUMEB { Format specification
{{{{ Constant
{{{{ Constant output address
ACT
SUB 40
NUMEB 0
Format specification
{{{{ Constant
{{{{ Constant output address
- 411 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Command (ACT)
ACT= 0: Do not execute NUMEB.
ACT=1 : Execute NUMEB.
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 bytes length
0004: Binary data of 4 bytes length
When setting format specification in the following extended format, NUMEB can define all the set
constants simultaneously in an array having nn elements.
Specify data length (1, 2, or 4) to the 1st digit as above-mentioned.
Specify the number of the array in which is a constant to the 2nd and 3rd digit is defines.
Specify 0 to the 4th digit.
0nn1: In case of defining multiple (nn) data by 1 byte length
0nn2: In case of defining multiple (nn) data by 2 bytes length
0nn4: In case of defining multiple (nn) data by 4 bytes length
The n is the numerical value from 02 to 99. When setting 00 or 01, it works as the basic specification
that works for one data.
(b) Constant
Defined constants in decimal format. Set a constant data within the effective range for the byte length
which is set in above (a).
- 412 -
B-64393EN/02 4.LADDER LANGUAGE
- 413 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.10.10 shows the ladder format and Table 4.10.10 shows the mnemonic format.
BYT
SUB 23
ACT NUME {{{{ Constant
{{{{ Constant output address
Control conditions
(a) Specify the number of digits of a constant. (BYT)
BYT=0: Constant is BCD two digits long.
BYT=1: Constant is BCD four digits long.
Parameters
(a) Constant
Sets the constant as the number of digits specified for control condition (a).
- 414 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Augend data" and "Addend data", a constant or a PMC memory address for storing data can be
specified.
As indicated below, three types of Addition instructions are available according to the type of data to be
operated. In each instruction, "Augend data", "Addend data", and the data at "Result output address" are of
the same data type.
If an operation results in a positive overflow, the maximum value of each data type is output to "Result
output address", and W1=0 is set.
If an operation results in a negative overflow, the minimum value of each data type is output to "Result
output address", and W1=0 is set.
Format
Fig. 4.10.11 shows the ladder format and Table 4.10.11(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 319 {{{{
ADDSB {{{{
{{{{
ACT
- 415 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Augend data
Specify an augend for addition operation. In this parameter, a constant or a PMC memory address for
storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction ADDB, W1=1 is set when an operation is
terminated abnormally. With ADDSB, ADDSW, and ADDSD, W1=1 is set when
an operation is terminated normally.
3 No data is output to the operation output registers (R9000).
- 416 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Minuend" and "Subtrahend", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Subtraction instructions are available according to the type of data to be
operated. In each instruction, "Minuend", "Subtrahend", and the data at "Result output address" are of the
same data type.
If an operation results in a positive overflow, the maximum value of each data type is output to "Result
output address", and W1=0 is set.
If an operation results in a negative overflow, the minimum value of each data type is output to "Result
output address", and W1=0 is set.
Format
Fig. 4.10.12 shows the ladder format and Table 4.10.12(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 322 {{{{
SUBSB {{{{
{{{{
ACT
- 417 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Minuend
Specify a minuend for subtraction operation. In this parameter, a constant or a PMC memory address
for storing data can be specified.
(b) Subtrahend
Specify a subtrahend for subtraction operation. In this parameter, a constant or a PMC memory
address for storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction SUBB, W1=1 is set when an operation is
terminated abnormally. With SUBSB, SUBSW, and SUBSD, W1=1 is set when an
operation is terminated normally.
3 No data is output to the operation output registers (R9000).
- 418 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Multiplicand" and "Multiplier", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Multiplication instructions are available according to the type of data to
be operated. In each instruction, "Multiplicand", "Multiplier", and the data at "Result output address" are of
the same data type.
If an operation results in a positive overflow, the maximum value of each data type is output to "Result
output address", and W1=0 is set.
If an operation results in a negative overflow, the minimum value of each data type is output to "Result
output address", and W1=0 is set.
Format
Fig. 4.10.13 shows the ladder format and Table 4.10.13(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 325 {{{{
MULSB {{{{
{{{{
ACT
- 419 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Multiplicand
Specify a multiplicand for multiplication operation. In this parameter, a constant or a PMC memory
address for storing data can be specified.
(b) Multiplier
Specify a multiplier for multiplication operation. In this parameter, a constant or a PMC memory
address for storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction MULB, W1=1 is set when an operation is
terminated abnormally. With MULSB, MULSW, and MULSD, W1=1 is set when
an operation is terminated normally.
3 No data is output to the operation output registers (R9000).
- 420 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Dividend" and "Divisor", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Division instructions are available according to the type of data to be
operated. In each instruction, "Dividend", "Divisor", and the data at "Result output address" are of the same
data type.
If an operation results in an overflow, the maximum value of each data type is output to "Result output
address", and W1=0 is set.
If the divisor is 0, and the dividend is 0 or a positive value, the maximum value of each data type is output
to "Result output address", and W1=0 is set.
If the divisor is 0, and the dividend is a negative value, the minimum value of each data type is output to
"Result output address", and W1=0 is set.
- 421 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.10.14 shows the ladder format and Table 4.10.14(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 328 {{{{
DIVSB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Dividend
Specify a dividend for division operation. In this parameter, a constant or a PMC memory address for
storing data can be specified.
(b) Divisor
Specify a divisor for division operation. In this parameter, a constant or a PMC memory address for
storing data can be specified.
- 422 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0), when the divisor is 0, or when an operation results in
an overflow.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction DIVB, W1=1 is set when an operation is
terminated abnormally. With DIVSB, DIVSW, and DIVSD, W1=1 is set when an
operation is terminated normally.
3 No data is output to the operation output registers (R9000).
4 No data is output to the remainder output addresses (R9002-R9005). To calculate
remainder data, use the MODSB, MODSW, or MODSD instruction.
Operation
The result of each operation depends on the signs of the dividend and divisor as indicated below.
- 423 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Dividend" and "Divisor", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Remainder instructions are available according to the type of data to be
operated. In each instruction, "Dividend", "Divisor", and the data at "Result output address" are of the same
data type.
If the quotient of a division operation results in an overflow (if "Dividend" is the minimum value of each
data type or the divisor is -1), 0 is output to "Result output address", and W1=1 is set.
If "Divisor" is 0, and "Dividend" is 0 or a positive value, the maximum value of each data type is output to
"Result output address", and W1=0 is set.
If "Divisor" is 0, and "Dividend" is a negative value, the minimum value of each data type is output to
"Result output address", and W1=0.
- 424 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.10.15 shows the ladder format and Table 4.10.15(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 331 {{{{
MODSB {{{{
{{{{
ACT
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Dividend
Specify a dividend for remainder operation. In this parameter, a constant or a PMC memory address
for storing data can be specified.
(b) Divisor
Specify a divisor for remainder operation. In this parameter, a constant or a PMC memory address for
storing data can be specified.
- 425 -
4.LADDER LANGUAGE B-64393EN/02
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when the divisor is 0.
NOTE
1 W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
2 With the similar functional instruction DIVB, W1=1 is set when an operation is
terminated abnormally. With MODSB, MODSW, and MODSD, W1=1 is set when
an operation is terminated normally.
3 No data is output to the operation output registers (R9000).
4 No data is output to the remainder output addresses (R9002-R9005).
Operation
The result of each operation depends on the signs of the dividend and divisor as indicated below.
- 426 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Increment instructions are available according to the type of data to be
operated.
If the Increment instruction is executed when data to be operated is the maximum value of a data type, the
data to be operated remains unchanged from the maximum value, and W1=0 is set.
For example, if data to be operated by the INCSW instruction is 32767, the data remains unchanged from
32767 as the result of operation, and W1=0 is set.
Format
Fig. 4.10.16 shows the ladder format and Table 4.10.16(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 334 {{{{
INCSB
ACT
- 427 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the PMC memory address the value at which is to be incremented.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 428 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
As indicated below, three types of Decrement instructions are available according to the type of data to be
operated.
If the Decrement instruction is executed when data to be operated is the minimum value of a data type, the
data to be operated remains unchanged from the minimum value, and W1=0 is set.
For example, if data to be operated by the DECSW instruction is -32768, the data remains unchanged from
-32768 as the result of operation, and W1=0 is set.
Format
Fig. 4.10.17 shows the ladder format and Table 4.10.17(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 337 {{{{
DECSB
ACT
- 429 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Data address
Specify the PMC memory address the value at which is to be decremented.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 430 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Source data", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Absolute value instructions are available according to the type of data to
be operated. In each instruction, "Source data" and the data at "Result output address" are of the same data
type.
If an operation results in an overflow (if the minimum value of a data type is converted), the maximum
value of the data type is output to "Result output address", and W1=0 is set.
Format
Fig. 4.10.18 shows the ladder format and Table 4.10.18(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 340 {{{{
ABSSB {{{{
ACT
- 431 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Source data
Specify source data to be converted to an absolute value. In this parameter, a constant or a PMC
memory address for storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 432 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
To use this function, the option of “Extended PMC Ladder Instruction Function” is
necessary.
In "Source data", a constant or a PMC memory address for storing data can be specified.
As indicated below, three types of Sign inversion instructions are available according to the type of data to
be operated. In each instruction, "Source data" and the data at "Result output address" are of the same data
type.
If an operation results in an overflow (if the minimum value of a data type is converted), the maximum
value of the data type is output to "Result output address", and W1=0 is set.
Format
Fig. 4.10.19 shows the ladder format and Table 4.10.19(b) shows the mnemonic format.
ACT W1
ACT ACT2
Functional Instruction
SUB 343 {{{{
NEGSB {{{{
ACT
- 433 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Input signal (ACT)
ACT = 0: Instruction not executed.
ACT = 1: Executed.
Parameters
(a) Source data
Specify source data whose sign is to be inverted. In this parameter, a constant or a PMC memory
address for storing data can be specified.
Output (W1)
W1=1 is set when an operation is terminated normally.
W1=0 is set when no operation is executed (ACT=0) or when an operation results in an overflow.
NOTE
W1 may be omitted. Moreover, an other functional instruction can be connected
instead of a coil.
- 434 -
B-64393EN/02 4.LADDER LANGUAGE
- 435 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
To use this instruction requires that the external data input option or external
message option be set on the CNC side.
(a) In the program, specify 0 in the parameter and set ACT to 1. See Fig. 4.11.1 (a).
If you set any bit of the message display request memory (addresses A) to "1" when ACT = 1, the
instruction displays the message data defined in the message data table corresponding to that bit.
While the message is displayed, the bit of the message display status memory corresponding to that
message remains to be "1".
Even if multiple messages are requested simultaneously, the instruction does not necessarily display
all the requested messages. The number of messages that can be displayed simultaneously is
determined by the specifications of the CNC screen. For example, if the CNC is designed to display
up to four messages on its screen at a time, a fifth message cannot be displayed unless any of the four
currently displayed messages is cleared. This way, you can display the sixth and subsequent messages
as you clear the currently displayed messages one by one.
Message display request memory Message data table
7 6 5 4 3 2 1 0 A000.0 (Message data corresponding to
A0 0 0 0 0 0 0 1 1 address A000.0)
A1 0 0 0 0 0 0 0 0
A000.1 (Message data corresponding to
A2 0 0 0 0 0 0 0 0 address A000.1)
|
| ∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼
| ∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼∼
A249 1 0 0 0 0 0 0 0
A9249 1 0 0 0 0 0 0 0 [ ][ ][ ][ ][ ]
Fig. 4.11.1 (a) Message display request memory, message display status memory, and message data table
NOTE
When ACT = 0, no message display processing is performed at all. Make sure
that ACT is always set to "1" and code the program so that the message display
can be enabled or disabled by setting the data in the message display request
memory.
- 436 -
B-64393EN/02 4.LADDER LANGUAGE
• Standard specification
This message number consisting of 4 digits must always be defined at the start of each message
data. Using this four-digit number, set the type and number of the message and the CNC screen
on which the message is to be displayed. The CNC screen is as specified below by this message
number.
NOTE
Normally, the number of the operator message with the message number is 100
(2000 to 2099) and the number of it without the message number is 900 (2100 to
2999). By setting into the CNC parameter No. 6310 "The number of the operator
message with the message number", you can change the number of it with the
message number.
(Example)
400 is set into the CNC parameter No.6310
- 2000 to 2399 displaying with the number
- 2400 to 2999 displaying without the number
- 437 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
1 The path number specified with alarm message and operator message is the
interface path number in PMC side.
2 For the path number for the operator message, Specify the top path number. If you
specify other path number except the top, the operator message is not displayed.
The following table shows the message numbers and the corresponding CNC screens.
NOTE
1 The message number may have leading zeros like "001".
2 Valid numbers of external alarm message are from 0 to 999 by default. You can
expand of message number the range to 0 to 4095 by setting 1 to CNC parameter
No.6301#0.
3 Valid numbers of external operator message are from 0 to 999 by default. You can
expand of message number the range to 0 to 4095 by setting 1 to CNC parameter
No.6301#1.
4 Valid numbers of external operator message with message number are from 0 to
99 by default. You can change the range of message number by CNC parameter
No.6310.
(b) You need not use numerical codes for message data input. Instead, when programming, directly key in
the characters making up the messages (from the CNC screen keyboard). For the characters that CNC
screen does not provide for, you must enter these characters by numerical data with special symbols
"@". For details, see the column "Defining characters not found in the CNC screen" described later.
- 438 -
B-64393EN/02 4.LADDER LANGUAGE
(c) If you write the message data items in the ROM after programming, you cannot change them any more
(they will become fixed data items). The only exception is numerical values you want to use as
variables. You can display these values, existing in memory at the time when the message display
starts, by defining their memory addresses in the message data. Note, however, that their values in
memory cannot be displayed in real time.
(d) A message is displayed on the NC alarm message/operator message screen.
When using the DISPB instruction, you must satisfy the following conditions:
To use DISPB, the optional External Data Input function or External Message Display is necessary for
NC.
Format
Fig. 4.11.1(b) shows the ladder format and Table 4.11.1(a) shows the mnemonic format.
ACT
SUB 41
DISPB 0 (Not used)
Control conditions
ACT=0: Do not display messages on the CNC screen.
ACT=1: Display the messages on the CNC screen.
Parameter
This parameter is not used.
Enter "0" as the input value. (NOTE)
NOTE
Thanks to the compatibility with the former models, the instruction runs normally if
the entered value is in the range between 1 and 2000.
- 439 -
4.LADDER LANGUAGE B-64393EN/02
[Ibid, {{{{]
(ii) Unsigned
[Ubid, {{{{]
Address where the numerical data is stored
Set binary data in the specified address.
NOTE
1 Sum of integer part digits and fractional part digits must be within 8.
2 Blank is displayed for digits exceeding 8 digits.
3 Do not use any space between the brackets, [ ].
(b) Example
The following message includes 3 digits tool number at the spindle and the offset data ({.{{) for
this tool. And these data are contained in memory address of 2bytes:
SPINDLE TOOL NO. = [I230, ]
OFFSET DATA = [I212, ΔΔΔΔ]
- 440 -
B-64393EN/02 4.LADDER LANGUAGE
NOTE
Spaces are used between each numerical code in example to understand easily,
but do not use them actually.
NOTE
1 It recommends that Kanji character is input from FANUC LADDER-III.
2 Some Kanji characters cannot be displayed. These characters can be checked by
“Invalid kanji character check button” on FANUC LADDER-III.
3 For operation of FANUC LADDER-III , refer to the following manual:
Manual title Drawing No.
FANUC LADDER-III Operator's Manual B-66234EN
(iii) Example
- 441 -
4.LADDER LANGUAGE B-64393EN/02
UNZUL Ä SSIGE
NOTE
You can only input the character code described in the character code table (Table
4.11.1 (c)) between “@0D” and “01@”.
C И MBO Л
NOTE
You can only input the character code described in the character code table (Table
4.11.1 (d)) between “@0E” and “01@”.
123
NOTE
You can only input the character code described in the character code table (Table
4.11.1 (e)) between “@05” and “01@”.
- 442 -
B-64393EN/02 4.LADDER LANGUAGE
CAUTION
1 To define @, enter @40...@, where 40 is the code corresponding to @40 . . . . @
Code for @
2 To renew the message line displayed on the CNC screen, input as:@ 0A @ at the
end of the data.
3 When using numerical codes, @ code occupies 1 byte, and space code occupies
2 bytes. (Space code = 20, 2 and 0 occupies 1 byte each).
4 The following control codes are used:
02: 2-byte code (kanji and hiragana characters)
0D: 1-byte code (European characters type 1)
0E: 1-byte code (European characters type 2)
05: 1-byte code (European characters type 3)
01: 1-byte code (alphanumeric and half-width kana characters)
Do not specify control code between control codes as follows. The characters may
not be correctly displayed.
@02 ... 02 ... 01@ @0D ... 0D ... 01@ @0E ... 0E ... 01@ @05 ... 05 ... 01@
@02 ... 01 ... 01@
5 Spaces are used between each numerical code in example to understand easily,
but do not use them actually.
6 Do not specify the character strings for numerical data display between control
codes such as @ and @, @02 and 01@, and etc.
- 443 -
4.LADDER LANGUAGE B-64393EN/02
A0
B0
C0
D0
A0
B0
60
70
80
90
A0
B0
C0
D0
E0
F0
- 444 -
B-64393EN/02 4.LADDER LANGUAGE
(b) Examples
Example 1:
Message data in any of four languages is set starting at A0.0 in the order of Japanese, English,
Italian, German, Japanese and so on. The Italian message data is displayed.
Set the parameters as follows:
Message shift value : 2
Message shift start address : A0.0
(Message shift value = 0:Japanese/1:English/2:Italian/ 3:German)
Manipulate A0.0, A0.4, A1.0, and A1.4 with the ladder.
Message table
A0.0 Japanese 1
When A0.0 is turned on, Italian 1 is displayed.
A0.1 English 1
(The message data is shifted by 2 bits).
A0.2 Italian 1
A0.3 German 1
A0.4 Japanese 2
A0.5 English 2 When A0.4 is turned on, Italian 2 is displayed.
A0.6 Italian 2 (The message data is shifted by 2 bits).
A0.7 German 2
: :
Am.n :
- 445 -
4.LADDER LANGUAGE B-64393EN/02
Example 2:
As common alarm messages, English message data is displayed with A0.0 through A9.7.
Operator messages are set starting at A10.0 in the order of Japanese, English, Italian, German and
so on, and German message data is displayed.
Set the parameters as follows:
Message shift value : 3
Message shift start address : A10.0
(Message shift value = 0:Japanese/1:English/ 2:Italian/3:German)
Manipulate A10.0, A10.4, A11.0, A11.4, and so forth with the ladder.
When any of A0.0 to A9.7 is turned on, the message corresponding to the bit is displayed.
Message table
Example 3:
As common alarm messages, English message data is displayed with A0.0 through A9.7.
Operator messages are set starting at A10.0 in the order of Japanese, English, Italian, German and
so on, with 40 successive messages assigned to each language. For these messages, German
message data is displayed.
Set the parameters as follows:
Message shift value : 120 (40 × 3)
Message shift start address : A10.0
(Message shift value = 0:Japanese/40:English/ 80:Italian/120:German)
Manipulate A10.0 through A14.7 with the ladder.
When any of A0.0 to A9.7 is turned on, the message corresponding to the bit is displayed.
- 446 -
B-64393EN/02 4.LADDER LANGUAGE
Message table
(c) Notes
The same message number should be assigned to a message in each language that has the same
meaning.
Message table
- 447 -
4.LADDER LANGUAGE B-64393EN/02
NOTE
When using this instruction, do not directly write the "external data input signals" to
be exchanged between CNC and PMC. Writing these signals directly causes an
adverse effect on the handshake sequence, potentially disabling the external data
input functions or causing them to malfunction.
You can use the EXIN instruction only when optional external data input function is provided with NC.
Four-byte control data as described below is required for external data input function (option).
In addition to the basic specification, the extended specification is also supported that needs six bytes of
control data. With this setting, the extended operation can use ED16 to ED31 signals (for program number
O8 digits etc.). To use the extended specification, it is necessary to set to CNC parameter 6300#7 (EEX)=1.
CNC parameter
#7 #6 #5 #4 #3 #2 #1 #0
6300 EEX
[Data format] Bit type
EEX EXIN function of PMC
0: basic specification
1: extended specification
NOTE
1 To enable 8 digits of program number, set 1 to the CNC parameter No. 11304#3
(ON8).
2 To handle 8 digits of program number for EXIN instruction, set 1 to the CNC
parameter No. 6300#7 (EEX). This setting will be effective after cycling power of
CNC.
Format
Fig. 4.11.2 shows the ladder format and Table 4.11.2 shows the mnemonic format.
ACT W1
SUB 42
EXIN {{{{ Control data address
- 448 -
B-64393EN/02 4.LADDER LANGUAGE
Control conditions
ACT=0: Do not process external data input/output.
ACT=1: Process external data input/output.
ACT is to be maintained '1' till the end of external data input/output. After external data input,
reset ACT(W1 = 1).
Parameter
(a) Control data
The control data needs 4 continuous bytes from the specification address. The path is specified to the
1st byte. The addresses G0 to G2 of the interface from PMC to NC are specified by after 3 bytes. For
2nd path, the addresses G1000 to G1002 are specified.
In case of the extended specification (program number O8 digits etc.), a control data is extended. In
this case, the control data address needs 6 continuous bytes from the specified address. The path is
specified in the 1st byte. The addresses G0 to G2 and G210 to G211 of the interface from PMC to NC
are specified in later 5 bytes. For 2nd path, the addresses G1000 to G1002 and G1210 to G1211 are
specified.
Extended specification
Basic specification
(program number O8 digits etc.)
CTL+0 CTL+0
HEAD.NO. HEAD.NO.
+1 +1
ED0 to ED7 ED0 to ED7
+2 +2
ED8 to ED15 ED8 to ED15
+3 +3
EA0 to EA6,ESTB ED16 to ED23
+4 +4
ED24 to ED31
+5
EA0 to EA6,ESTB
+6
In case of the extended specification (program number O8 digits etc.), it sets CTL+1 to CTL+5 as
follows.
CTL+1 to CTL+2 : Data to be specified for G0 to G1
CTL+3 to CTL+4 : Data to be specified for G210 to G211
CTL+5 : Data to be specified for G2
- 449 -
4.LADDER LANGUAGE B-64393EN/02
In case of the extended specification (program number O8 digits etc.), it sets CTL+1 to CTL+5 as
follows.
CTL+1 to CTL+2 : Data to be specified for G0 to G1
CTL+3 to CTL+4 : Data to be specified for G210 to G211
CTL+5 : Data to be specified for G2
In case of the extended specification (program number O8 digits etc.), it sets CTL+1 to CTL+5 as
follows.
CTL+1 to CTL+2 : Data to be specified for G1000 to G1001
CTL+3 to CTL+4 : Data to be specified for G1210 to G1211
CTL+5 : Data to be specified for G1002
NOTE
Refer to the NC connecting manual for detailed data to be specified concerning
external data input.
CAUTION
1 The EXIN command cannot input multiple external data items at the same time.
Be sure to issue the next EXIN command (ACT = 1) after external data transfer
ends (W1 = 1).
2 Be sure to specify an interlock when the external data input function is used by
commands other than the function command EXIN.
3 When an external program number search, one of the external data input
functions, is executed, the end of data transfer (W1 = 1) means that the search
command has been accepted. Note that this does not mean the completion of the
program search. To confirm the completion of the program search, check the
search completion signal (ESEND = 1) after the data transfer ends (W1 = 1).
- 450 -
B-64393EN/02 4.LADDER LANGUAGE
7 6 5 4 3 2 1 0
R9000
EXIN error
(Description of errors)
• When the EXIN command (ACT = 1) is started, the strobe signal (ESTB) or EREND signal is
already on. The external data may be input by commands other than the function command
EXIN.
- 451 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.11.3 shows the ladder format and Table 4.11.3 shows the mnemonic format.
ACT W1
SUB 51
WINDR {{{{ Control data address
Control condition
ACT=0: The WINDR function is not executed.
ACT=1: The WINDR function is executed. Using the function of a high-speed response, it is possible to
read the data continuously by always keeping ACT on. However, using the function of a
low-speed response, as soon as reading a data is completed (W1=1), reset "ACT" once (ACT=0).
Parameter
(a) Control data address
The PMC byte address is used to specify the area where control data is stored.
Control data
CTL+0 Function code * Set the control data area by sequence
program before executing the
+2 Completion code "WINDR".
+4 Data length
+6 Data number
+8 Data attribute
+n
See Chapter 5.
- 452 -
B-64393EN/02 4.LADDER LANGUAGE
R9000
WINDR error
- 453 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.11.4 shows the ladder format and Table 4.11.4 shows the mnemonic format.
ACT W1
SUB 52
WINDW {{{{ Control data address
Control condition
ACT=0: The WINDW function is not executed.
ACT=1: The WINDW function is executed. As soon as writing a data is completed (W1=1), reset "ACT"
once (ACT=0).
Parameter
(a) Control data address
The PMC byte address is used to specify the area where control data is stored.
Control data
CTL+0 Function code * Set the control data area by sequence
program before executing the
+2 Completion code "WINDW".
+4 Data length
+6 Data number
+8 Data attribute
See Chapter 5.
- 454 -
B-64393EN/02 4.LADDER LANGUAGE
7 6 5 4 3 2 1 0
R9000
WINDW error
- 455 -
4.LADDER LANGUAGE B-64393EN/02
Function
This function simplifies the handshake of DI/DO signal for the axis control by PMC.
Format
Fig. 4.11.5 shows the ladder format and Table 4.11.5 shows the mnemonic format.
RST W1
SUB 53
ACT AXCTL {{{{ Group No. of DI/DO signal
{{{{ Axis control data address
Control condition
ACT=0: The AXCTL function is not executed.
If RST is 1, PMC axis control instruction reset processing is performed.
ACT=1: The AXCTL function is executed.
ACT is to be maintained '1' till the end of AXCTL processing.
And reset ACT immediately after the processing is complete (W1 = 1) or when the CNC enters the
alarm state.
RST=0: Release reset.
RST=1: Set the reset signal (ECLRx) to 1 and W1 becomes 0. All the buffered commands are invalidated
and the command being executed is stopped.
If the CNC enters the alarm state, reset the PMC axis control instruction by setting ACT to 0.
- 456 -
B-64393EN/02 4.LADDER LANGUAGE
CAUTION
1 Usually, set both ACT and RST to 0. Set ACT or RST to 1 only when executing the
instruction. Note that, while ACT or RST is set to 1, you cannot update the ladder
program after editing it.
2 If you make any change to the ladder program while RST is set to 1, you may be
unable to continue to execute the AXCTL instruction when re-executing the ladder
program. When changing the ladder program, set both ACT and RST to 0.
3 When RST and ACT become 1 at the same time, RST is prior to ACT.
Parameters
(a) Group number of DI/DO signal
Specify the DI/DO signal group by the number.
2
Command data 1 (EIF0x to EIF15x)
6
(x=A/B/C/D)
7
- 457 -
4.LADDER LANGUAGE B-64393EN/02
CAUTION
1 The rapid traverse rate is effective when parameter RPD (No. 8002#0) is set to 1.
2 When you specify 0 for feedrate, CNC does not work. Please release this state by
RST = 1.
3 When you end a continuous feed or external pulse synchronization, set RST to 1.
And, continuous feed can't be used with buffering inhibits signal (EMBUFx) = 1.
You must set the signal to 0.
4 Specify the direction by most significant bit of command data 2.
5 Command control axis must be specified to rotary axis by setting parameter ROTx
(No. 1006#0) to 0.
6 For details such as the range of command data, please refer to the NC connecting
manual.
7 The above table is not up-to-date. For the latest information, refer to the
descriptions about PMC axis control in the "CNC Connection Manual (Functions)".
- 458 -
B-64393EN/02 4.LADDER LANGUAGE
5 unit : 0.001mm
2 0
or In case of CNC PRM8002#0 = 0 not used.
Feedrate = 1 Feedrate.
3
Position in machine
4
coordinate system
(Absolute)
5
CAUTION
It is necessary to set the CNC parameters relating to the axis movement.
- 459 -
4.LADDER LANGUAGE B-64393EN/02
7 6 5 4 3 2 1 0
R9000
NOTE
1 W1 becomes 1 regardless of the state of ACT.
2 It is not related to the state of the alarm signal (EIALx).
Remarks
(1) The following signals are processed in this functional instruction.
• Axis control command signals EC0g to EC6g (G143.0 to G143.6)
• Controlled axis feed signals EIF0g to EIF15g (G144 to G145)
• Axis control data signals EID0g to EID31g (G146 to G149)
• Axis control command read signal EBUFg (G142.7)
• Axis control command read completion signal EBSYg (F130.7)
• Reset signal ECLRg (G142.6)
As for other than above signals (like the following signals), it is necessary to process G-addresses
(X-addresses) from the ladder program directly.
• Axis control temporary stop signal ESTPx (G142.5, G154.5, G166.5, G178.5)
• Servo-off signal ESOFx (G142.4, G154.4, G166.4, G178.4)
• Block stop signal ESBKx (G142.3, G154.3, G166.3, G178.3)
• Block stop disable signal EMSBKx (G143.7, G155.7, G167.7, G179.7)
• Controlled axis selection signals EAX1 to EAX8 (G136.0 to 7)
• Feedrate override signals *EFOV0 to *EFOV7 (G151.0 to 7)
• Override cancellation signal EOVC (G150.5)
• Rapid traverse override signals EROV2, EROV1 (G150.1,0)
• Dry run signal EDRN (G150.7)
• Manual rapid traverse selection signal ERT (G150.6)
• Skip signal SKIP/ESKIP (X4.7, X4.6)
• Buffering disable signal EMBUFx (G142.2、G154.2, G166.2, G178.2)
(x=A/B/C/D)
WARNING
Movement cannot be sured when controlled axis selection signal (EAXx) is
changed in the state of ACT=1.
- 460 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.11.6 shows the ladder format and Table 4.11.6 shows the mnemonic format.
ACT W1
SUB 63
PSGN2 {{{{ Control data (Address)
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to W1.
Parameters
(a) Control data
Set the top address of the control data. There are two types of format for the control data. One is the
"Extended format" and the other is the "Basic format". On multi-path CNC, you can use this function
only using the "Extended format". We recommend using the "Extended format" in any case.
[Extended format]
- On multi-path CNC, choose this format.
- The continuous 12-bytes memory is necessary.
- You should set zero to the first 2-bytes area.
- 461 -
4.LADDER LANGUAGE B-64393EN/02
[Basic format]
- This format is only available on single-path CNC.
- The continuous 9-bytes memory is necessary.
(a-3) Position a, b
Set the machine position with 4-bytes length binary data with machine unit. You must set positions to
be "Position a ≦ Position b". The position value "1" means the minimum unit of data with machine
unit.
For example, when the setting of minimum unit of data is "IS-B" and the setting of machine unit is
"mm", the position 10000 means "10.000mm".
CAUTION
1 You must set positions to be "Position a ≦Position b". If not, this instruction does
not work correctly.
- 462 -
B-64393EN/02 4.LADDER LANGUAGE
Output (W1)
When the machine position is "Position a ≦Machine position ≦Position b", W1 is turned on.
W1=1: - When ACT=1 and "Position a ≦Machine position ≦Position b"
W1=0: - When ACT=0
- When ACT=1 and "Machine position < Position a" or "Position b < Machine position"
- When ACT=1 and invalid path or axis number is specified.
Machine - a b +
position
W1=1
0
7 6 5 4 3 2 1 0
R9000
Example
The example of using this instruction is shown bellow.
- The control data address is R320.
- The setting of machine unit is "mm".
- The setting of minimum unit of data is "IS-B".
- The axis is 3rd axis on 2nd CNC path.
- The settings of machine position are "-800mm" and "123.456 mm".
ACT SUB 63 R320 W1
PSGN2
In this case, you should set the control data using "Extended format" as following.
When ACT=1 and the machine position is equal or grater than -800 mm and is equal or smaller than
123.456 mm, the W1 is turned on.
- 463 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.11.7 shows the ladder format and Table 4.11.7 shows the mnemonic format.
ACT
SUB 50
PSGNL {{{{ Control data (Address)
{{{{ Output (Address)
Control condition
(a) Command (ACT)
ACT=0: Do not execute the instruction. The W1 becomes 0.
ACT=1: Execute the instruction. The result is output to "Output".
- 464 -
B-64393EN/02 4.LADDER LANGUAGE
Parameters
(a) Control data
Set the top address of the control data.
- The continuous 29-bytes memory is necessary.
CAUTION
1 You must set all positions to be "Position a < b < c < d < e < f < g". If not, this
instruction does not work correctly.
- 465 -
4.LADDER LANGUAGE B-64393EN/02
(b) Output
Set the output address to this parameter. This output needs 1-byte length memory. When ACT=1, one
of the bits corresponding to the current machine position is turned on by this instruction. When
ACT=1 and any error occurs in this instruction, all bits of output will be turned off. When ACT=0, the
output will not be updated.
The correspondence between the setting of Position (a) to (g) and the bit signals of output are shown
below.
Machine - a b c d e f g +
Position (1) (2) (3) (4) (5) (6) (7) (8)
7 6 5 4 3 2 1 0
Output (1) (2) (3) (4) (5) (6) (7) (8)
Output#7=1
=0
Output#6=1
=0
Output#5=1
=0
Output#4=1
=0
Output#3=1
=0
Output#2=1
=0
Output#1=1
=0
Output#0=1
=0
- 466 -
B-64393EN/02 4.LADDER LANGUAGE
7 6 5 4 3 2 1 0
R9000
Example
The example of using this instruction is shown bellow.
- The control data address is R320.
- The output address is R319.
- The setting of machine unit is "mm".
- The setting of minimum unit of data is "IS-B".
- The axis is 3rd axis.
- The each positions are "a = -400 mm", "b = -200 mm", "c = -100 mm", "d = 0 mm", "e = 10 mm",
"f = 100 mm" and "g = 123.456 mm".
ACT SUB 50 R320 R319
PSGNL
R333 0 (4byte) d = 0 mm
R337 10000 (4byte) e = 10 mm
R341 100000 (4byte) f = 100 mm
R345 123456 (4byte) g = 123.456 mm
R348
- 467 -
4.LADDER LANGUAGE B-64393EN/02
- 468 -
B-64393EN/02 4.LADDER LANGUAGE
ACT
SUB 9 0
COM
Range in
which the
COM
instruction is
effective
SUB 29
COME
Format
Fig. 4.12.1 (b) shows the ladder format and Table 4.12.1 shows the mnemonic format.
ACT
SUB 9
COM 0
Control conditions
ACT=0: The coils within the region specified are unconditionally turned off (set to 0).
ACT=1: The program operates in the same way as when COM is not used.
- 469 -
4.LADDER LANGUAGE B-64393EN/02
Parameter
(a) Specify 0. (Range specification only)
CAUTION
1 Operation of the COM instruction
Suppose a ladder diagram that includes the COM instruction, as shown below.
ACT
SUB 9 0
COM
ON OUT1
OFF OUT2
{
SUB 29
COME
For the "OUTx" coils, the COM instruction makes the above ladder diagram similar
to the ladder description shown below.
ON ACT OUT1
- 470 -
B-64393EN/02 4.LADDER LANGUAGE
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.
JMP instruction
COM instruction
×
Prohibited
JMP instruction
COM instruction
COME instruction
JMPE instruction ×
Prohibited
COME instruction
JMPE instruction
- 471 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.12.2 shows the ladder format and Table 4.12.2 shows the mnemonic format.
SUB 29
COME
- 472 -
B-64393EN/02 4.LADDER LANGUAGE
ACT
SUB 10 0
JMP
Valid range
of the JMP
instruction
SUB 30
JMPE
Format
Fig. 4.12.3 (b) shows the ladder format and Table 4.12.3 shows the mnemonic format.
ACT
SUB 10
JMP 0
Control conditions
ACT=1: The logical instructions (including functional instructions) in the specified range are skipped;
program execution proceeds to the next step.
ACT=0: The same operation as when JMP is not used is performed.
- 473 -
4.LADDER LANGUAGE B-64393EN/02
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).
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.
JMP instruction
COM instruction
×
Prohibited
JMP instruction
COM instruction
COME instruction
JMPE instruction ×
Prohibited
COME instruction
JMPE instruction
- 474 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.12.4 shows the ladder format and Table 4.12.4 shows the mnemonic format.
SUB 30
JMPE
- 475 -
4.LADDER LANGUAGE B-64393EN/02
Ladder program
JMPB BB
JMPB AA
JMPB AA
JMPB AA LBL BB
Format
Fig. 4.12.5 shows the ladder format and Table 4.12.5 shows the mnemonic format.
ACT
SUB 68
JMPB L{{{{ Specification of the jump destination label
Control conditions
ACT=0: The next instruction after the JMPB instruction is executed.
ACT=1: Control is transferred to the Ladder immediately after the specified label.
- 476 -
B-64393EN/02 4.LADDER LANGUAGE
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.
CAUTION
1 For the specifications of this instruction, see the description of functional
instruction JMP.
2 When this instruction is used to jump back to a previous instruction, care must be
taken not to cause an infinite loop.
- 477 -
4.LADDER LANGUAGE B-64393EN/02
Ladder program
Main program Main program
LBL AA
LBL AA
LBL BB
Subprogram Subprogram
JMPC AA JMPC AA
JMPC AA JMPC BB
Format
Fig. 4.12.6 shows the ladder format and Table 4.12.6 shows the mnemonic format.
ACT
SUB 73
JMPC L{{{{ Specification of the jump destination label
Control conditions
ACT=0: The instruction after the JMPC instruction is executed.
ACT=1: Control is transferred to the Ladder after the specified label.
- 478 -
B-64393EN/02 4.LADDER LANGUAGE
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.
CAUTION
1 For the specifications of this instruction, see the description of functional
instruction JMP.
2 When this instruction is used to jump back to a previous instruction, care must be
taken not to cause an infinite loop.
- 479 -
4.LADDER LANGUAGE B-64393EN/02
LBL AA
LBL AA
JMPB BB
JMPB AA
JMPC AA
JMPC AA LBL BB
Format
Fig. 4.12.7 shows the ladder format and Table 4.12.7 shows the mnemonic format.
SUB 69
LBL L{{{{ Label specification
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).
NOTE
For the use of this instruction, see the description of functional instruction JMPB
and JMPC.
- 480 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.12.8 shows the ladder format and Table 4.12.8 shows the mnemonic format.
ACT
SUB 65
CALL P{{{{ Subprogram number
Control conditions
(a) Input signal
ACT=0: The CALL instruction is not executed.
ACT=1: The CALL instruction is executed.
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
ACT
SUB 65 P1
CALL
CAUTION
Be careful when using the CALL instruction with the COM, COME, JMP, or JMPE
functional instruction.
For details, see Subsection 1.4.4.
- 481 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.12.9 shows the ladder format and Table 4.12.9 shows the mnemonic format.
SUB 66
CALLU P{{{{ Subprogram number
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.
SUB 66 P1
CALLU
- 482 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.12.10 shows the ladder format and Table 4.12.10 shows the mnemonic format.
SUB 71
SP P{{{{ Subprogram number
Parameters
(a) Subprogram number
Specifies the subprogram number of a subprogram to be coded following this instruction. The
subprogram number must be specified in the P address form.
The specified subprogram number must be unique within the sequence program.
Example: When the subprogram number is set to 1
SUB 71 P1
SP
- 483 -
4.LADDER LANGUAGE B-64393EN/02
SUB 72
SPE
SUB 1
END1
- 484 -
B-64393EN/02 4.LADDER LANGUAGE
SUB 2
END2
SUB 48
END3
- 485 -
4.LADDER LANGUAGE B-64393EN/02
SUB 64
END
- 486 -
B-64393EN/02 4.LADDER LANGUAGE
The CS starts the case call block and the CE ends the block. Each CM that should be located between the CS
and CE specifies a sub program to be called in each case.
Executing case call block, the CS instruction evaluates the case number from its 1st parameter and only one
of CMs that is selected by the case number is activated and calls its associated sub program. When the case
number is 0, the 1st CM immediately after CS is executed and certain sub program is called. When the case
number is 1, the 2nd CM after CS is executed. The number from 0 to 255 is allowed as the case number.
When the case number except 0 through 255 is detected on CS, no sub program is called.
The CM instructions should be programmed immediately after the CS. Other functions except CM must not
be programmed between CS and CE. If not so, an error will be detected in compiling process.
The case call block is available only in LEVEL2 and outside of a COM and COME block where normal
subprogram call instructions such as CALL and CALLU are allowed. The case call block can be
programmed wherever normal subprogram call instructions can be programmed.
- 487 -
4.LADDER LANGUAGE B-64393EN/02
In the following example program, the sub program corresponding to the case number is called.
• R100 = 0 The sub program P10 is called.
• R100 = 1 The sub program P20 is called.
• R100 = 2 The sub program P50 is called.
• R100 = n The sub program P15 is called.
SUB10
JMP
0
SUB75
CM Case number 0
P10
Sub program address
SUB75
CM Case number 1
P20
Sub program address
SUB75
CM Case number 2
P50
Sub program address
..............
SUB75
CM Case number n
P15 (255 in maximum)
Sub program address
SUB76
CE
SUB30
JMPE
- 488 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.12.17 shows the ladder format and Table 4.12.17 shows the mnemonic format.
SUB 74
CS {{{{ Case number (Signed integer in 2 bytes length)
Parameters
(a) Case number
Set the address or symbol of the variable in which the case number is stored and commanded. The data
type is signed integer in 2 bytes length.
NOTE
Case number is evaluated by CS only once in every cycle. Even if you change the
case number in the sub program which is called by the case call block, this change
becomes effective in next cycle. This means that only one or no sub program is
called in each case call block in each cycle.
- 489 -
4.LADDER LANGUAGE B-64393EN/02
The CM that should be located between the CS and CE is used to specify a sub program to be called when
the case number meets the condition.
Format
Fig. 4.12.18 shows the ladder format and Table 4.12.18 shows the mnemonic format.
The CM should be programmed immediately after the CS .Other functions except CM must not be
programmed between CS and CE.
SUB 75
CM P{{{{ Sub program address (P address)
Parameters
(a) Sub program address
Set a P address or symbol of a sub program that is call in the case.
- 490 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig.4.12.19 shows the ladder format and Table 4.12.19 shows the mnemonic format.
SUB 76
CE
- 491 -
4.LADDER LANGUAGE B-64393EN/02
- 492 -
B-64393EN/02 4.LADDER LANGUAGE
Format
Fig. 4.13.1 (a) shows the ladder format and Table 4.13.1 shows the mnemonic format.
RNO W1
SUB 6
BYT ROT {{{{ Rotor indexing number
{{{{ Current position address
DIR {{{{ Goal position address
{{{{ Operation result output address
POS
INC
ACT
- 493 -
4.LADDER LANGUAGE B-64393EN/02
Control conditions
(a) Specify the starting number of the rotor. (RNO)
RNO=0: Begins the number of the position of the rotor with 0.
RNO=1: Begins the number of the position of the rotor with 1.
(b) Specify the number of digits of the process data (position data). (BYT)
BYT=0: BCD two digits
BYT=1: BCD four digits
(c) Select the rotation direction via the shorter path or not. (DIR)
DIR=0: No direction is selected. The direction of rotation is only forward.
DIR=1: Selected. See rotating direction output (W1) described below for details on the rotation
direction.
Parameters
(a) Rotor indexing number
Specify the rotor indexing number.
- 494 -
B-64393EN/02 4.LADDER LANGUAGE
1 1
12 2 2 12
11 3
3 11
FOR REV REV FOR
10 4 4 10
9 5 5 9
8 6 6 8
7 7
- 495 -
4.LADDER LANGUAGE B-64393EN/02
Format
Fig. 4.13.2 (a) shows the ladder format and Table 4.13.2 shows the mnemonic format.
RNO W1
SUB 26
DIR ROT { Format specification
{{{{ Rotating element indexed position address
POS {{{{ Current position address
{{{{ Target position address
INC {{{{ Arithmetic result output address
ACT
Control conditions
The control conditions do not differ basically from those for ROT command. However, BYT has been
eliminated from ROTB (it forms part of the ROTB parameters).
For the reset, see ROT.
- 496 -
B-64393EN/02 4.LADDER LANGUAGE
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.
- 497 -
4.LADDER LANGUAGE B-64393EN/02
A A
Logic 1
R0228.0 R0228.0
A
R0228.0
A CR-CCW
RNO
Shorter path or not
R0228.0 SUB 26 4 Reference data format R0228.1
A ROTB D0000 Rotor indexing number
DIR
X0041 Current position address
R0228.0 F0026 Goal position address
A R0230 Calculation result output address
POS
R0228.0
A
INC
R0228.0
TF CW-M CCW-M
ACT
F0007.3 Y0005.6 Y0005.7
TF
ACT
F0007.3 SUB 32 1004 Reference data format
COMPB R0230 Reference data
X0041 Comparison data address
TF TDEC
Deceleration
position detection
R9000.0 F0007.3 R0228.2
TDEC TF DEC-M
Deceleration
command
R0228.2 F0007.3 Y0005.5
TCOMPB DEC-M
R0228.3 Y0005.5
TF
ACT
F0007.3 SUB 32 1004 Reference data format
COMPB F0026 Reference data
X0041 Comparison data address
TF TCOMPB Goal position
(stop position)
R9000.0 F0007.3 R0228.3 detection
TF CR-CCW TCOMPB CW-M
Forward rotation
command
F0007.3 R0228.1 R0228.3 Y0005.6
TF CR-CCW TCOMPB CCW-M
Reverse rotation
command
F0007.3 R0228.1 R0228.3 Y0005.7
Fig. 4.13.2 (b) Example of a ladder diagram for the ROTB instruction
- 498 -
B-64393EN/02 4.LADDER LANGUAGE
- 499 -
4.LADDER LANGUAGE B-64393EN/02
If any of the above phenomena occurs, the functional instruction causing the problem needs to be fixed.
Check the functional instructions mentioned above to see whether there is any ACT or RST condition
remaining on, and correct the ladder program according to the following procedure.
1. Put the machine in safe condition and turn off the power of the NC.
2. Turn on the power of the NC while holding down the "CAN" and "Z" keys simultaneously, to restart
the NC with the ladder program halted.
3. In the ladder diagram edit screen, redesign the logic associated with the problematic functional
instruction. When done, set the ACT or RST condition to off. If the same operation is repeating
because of an inadequate JMPB or JMPC instruction, review the jump condition and, if necessary,
change the ladder structure.
4. Write the resulting logic to flash ROM using the I/O screen.
5. Run the ladder program.
If the ladder program does not stop or cannot be changed even after you make the correction, there may be
other functional instructions that have the same condition settings. Check for other functional instructions
having the same condition settings, besides the one you have corrected, and repeat the above procedure to
correct them all.
- 500 -
B-64393EN/02 5.WINDOW FUNCTIONS
5 WINDOW FUNCTIONS
This chapter describes the functions that can be executed with the WINDR (SUB 51) and WINDW (SUB
52) functional instructions, as well as the formats and other details of the control data to be set for
executing these functions.
- 501 -
5.WINDOW FUNCTIONS B-64393EN/02
- 502 -
B-64393EN/02 5.WINDOW FUNCTIONS
Top address +0
Function code
2
Completion code
6
Data number
8
Data attribute
10
Data area * Data length
Depends on the function.
≈ ≈
(1) In the explanation of the window functions below, minuses (-) in the data structure fields indicate
that input data need not be set in these fields or that output data in these fields is not significant.
(2) All data is in binary unless otherwise specified.
(3) All data block lengths and data lengths are indicated in bytes.
(4) Output data is valid only when window processing terminates normally.
(5) Output data always includes one of the following completion codes. Note, however, that all of the
completion codes listed are not always provided for each function.
- 503 -
5.WINDOW FUNCTIONS B-64393EN/02
When using the low-speed response window function, set ACT to 0 immediately after the data transfer
end data (W1) is set to 1 for the window instruction. For details, see "CAUTION" below.
CAUTION
1 The window instruction of a low-speed response is controlled exclusively with the
other window instructions of low-speed response.
Therefore, when the data is read or written continuously, it is necessary to clear
ACT of the functional instruction to 0 once when the completion information (W1)
become 1.
It does not work about ACT=1 of the other window instructions of low-speed
response such as W1=1 and ACT=1 of the window instruction of a low-speed
response.
The window instruction of a high-speed response is not exclusively controlled like
a low-speed response. Therefore, when the data is read or written continuously,
you need not make ACT=0.
2 The completion of the other window instruction of low-speed response may be
delayed by the execution of application using FOCAS2 functions and C language
executor application. If some window instruction of a low speed response is
executed continuously with a high frequency, the completion of the other window
instruction of low-speed response will be delayed, or may not be done. You
should take care that the execution of application using FOCAS2 functions and C
language executor application may be delayed. The window instruction of a low-
speed response should be executed with the lowest required frequency.
- 504 -
B-64393EN/02 5.WINDOW FUNCTIONS
If the ladder program takes long to stop or does not stop for any of these reasons, the following operations
will be affected.
If any of the above phenomena occurs, the functional instruction causing the problem needs to be fixed.
For information about how to fix the problem, see Section 4.15.
- 505 -
5.WINDOW FUNCTIONS B-64393EN/02
- 506 -
B-64393EN/02 5.WINDOW FUNCTIONS
Function
Group No. Description Response R/W
code
10 Reading the remaining travel 75 High-speed R
11 Reading the actual velocity of each controlled axes 91 High-speed R
12 Reading actual spindle speeds 138 High-speed R
13 Entering torque limit data for the digital servo motor 152 Low-speed W
Axis information Reading load information of the spindle motor (serial
14 153 High-speed R
(Section 5.5) interface)
15 Reading the actual speed of servo motor 207 High-speed R
16 Reading the estimate disturbance torque data 211 High-speed R
17 Presetting the relative coordinate 249 Low-speed W
18 Reading the actual machine position of controlled axes 428 High-speed R
Reading the tool life management data (tool group
1 38 High-speed R
number)
Reading tool life management data (number of tool
2 39 High-speed R
groups)
3 Reading tool life management data (number of tools) 40 High-speed R
4 Reading tool life management data (tool life) 41 High-speed R
5 Reading tool life management data (tool life counter) 42 High-speed R
Reading tool life management data (tool length
6 43 High-speed R
compensation number (1): Tool number)
Reading tool life management data (tool length
7 44 High-speed R
compensation number (2): Tool order number)
Reading tool life management data (cutter radius
8 45 High-speed R
compensation number (1): Tool number)
Reading tool life management data (cutter radius
9 46 High-speed R
compensation number (2): Tool order number)
Reading tool life management data (tool information
10 47 High-speed R
(1): Tool number)
Reading tool life management data (tool information
11 48 High-speed R
(2): Tool order number)
12 Reading tool life management data (tool number) 49 High-speed R
Tool life
Reading the tool life management data (tool life
management 13 160 High-speed R
counter type)
functions
14 Registering tool life management data (tool group) 163 Low-speed W
(Section 5.6)
15 Writing tool life management data (tool life) 164 Low-speed W
16 Writing tool life management data (tool life counter) 165 Low-speed W
Writing tool life management data (tool life counter
17 166 Low-speed W
type)
Writing tool life management data (tool length
18 167 Low-speed W
compensation number (1): Tool number)
Writing tool life management data (tool length
19 168 Low-speed W
compensation number (2): Tool order number)
Writing tool life management data (cutter radius
20 169 Low-speed W
compensation number (1): Tool number)
Writing tool life management data (cutter radius
21 170 Low-speed W
compensation number (2): Tool order number)
Writing tool life management data (tool information (1):
22 171 Low-speed W
Tool number)
Writing the tool management data (tool information (2):
23 172 Low-speed W
Tool order number)
24 Writing tool life management data (tool number) 173 Low-speed W
Reading the tool life management data (tool group
25 200 High-speed R
No.) (8-digit tool number)
Reading tool life management data (tool information
26 201 High-speed R
(1): Tool number) (8-digit tool number)
- 507 -
5.WINDOW FUNCTIONS B-64393EN/02
Function
Group No. Description Response R/W
code
Registering tool life management data (tool group
27 202 Low-speed W
number) (8-digit tool number)
Reading tool life management data (tool length
28 compensation number (1): Tool number) (8-digit tool 227 High-speed R
number)
Reading tool life management data (cutter radius
29 compensation number (1): Tool number) (8-digit tool 228 High-speed R
number)
Tool life Writing tool life management data (tool length
management 30 compensation number (1): Tool number) (8-digit tool 229 Low-speed W
functions number)
(Section 5.6) Writing tool life management data (cutter radius
31 compensation number (1): Tool number) (8-digit tool 230 Low-speed W
number)
Writing the tool life management data (tool information
32 231 Low-speed W
(1): Tool number) (8-digit tool number)
33 Deleting tool life management data (tool group) 324 Low-speed W
34 Deleting tool life management data (tool data) 325 Low-speed W
Clearing tool life management data (tool life counter
35 326 Low-speed W
and tool information)
*1 Function codes that have R in the R/W column are window read functions specifiable with the WINDR
function command. Function codes that have W in the R/W column are window write functions
specifiable with the WINDW function command.
*2 Functions of "High-speed" in their Response field can read or write data immediately upon request. On
the other hand, functions of "Low-speed" in their Response field need to request the CNC to read or
write data and receiving response from CNC completes the request.
NOTE
To read or write data for the second path in two-path control CNC, add 1000 to
the function code number.
- 508 -
B-64393EN/02 5.WINDOW FUNCTIONS
- 509 -
5.WINDOW FUNCTIONS B-64393EN/02
Function
Description Response R/W
code
151 Reading clock data (date and time) High-speed R
152 Entering torque limit data for the digital servo motor Low-speed W
153 Reading load information of the spindle motor (serial interface) High-speed R
154 Reading a parameter High-speed R
155 Reading setting data High-speed R
156 Reading diagnosis data (specific number only) High-speed R
160 Reading the tool life management data (tool life counter type) High-speed R
163 Registering the tool life management data (tool group) Low-speed W
164 Writing the tool life management data (tool life) Low-speed W
165 Writing the tool life management data (tool life counter) Low-speed W
166 Writing the tool life management data (tool life counter type) Low-speed W
Writing the tool life management data (tool length compensation number (1): Tool
167 Low-speed W
number)
Writing the tool life management data (tool length compensation number (2): Tool
168 Low-speed W
order number)
Writing the tool life management data (cutter radius compensation number (1):
169 Low-speed W
Tool number)
Writing the tool life management data (cutter radius compensation number (2):
170 Low-speed W
Tool order number)
171 Writing the tool life management data (tool information (1): Tool number) Low-speed W
172 Writing the tool management data (tool condition (2): Tool order number) Low-speed W
173 Writing the tool life management data (tool number) Low-speed W
200 Reading the tool life management data (tool group number) (8-digit tool number) High-speed R
Reading tool life management data (tool information (1): Tool number) (8-digit tool
201 High-speed R
number)
202 Registering tool life management data (tool group number) (8-digit tool number) Low-speed W
207 Reading the actual speed of servo motor High-speed R
211 Reading the estimate disturbance torque data High-speed R
Reading tool life management data (tool length compensation number (1): Tool
227 High-speed R
number) (8-digit tool number)
Reading tool life management data (cutter radius compensation number (1): Tool
228 High-speed R
number) (8-digit tool number)
Writing tool life management data (tool length compensation number (1): Tool
229 Low-speed W
number) (8-digit tool number)
Writing tool life management data (cutter radius compensation number (1): Tool
230 Low-speed W
number) (8-digit tool number)
Writing the tool life management data (tool information (1): Tool number) (8-digit
231 Low-speed W
tool number)
249 Presetting the relative coordinate Low-speed W
321 Reading a real type parameter High-speed R
323 Writing a real type parameter Low-speed W
324 Deleting the tool life management data (tool group) Low-speed W
325 Deleting the tool life management data (tool data) Low-speed W
326 Deleting the tool life management data (tool life counter and tool information) Low-speed W
395 Reading the pitch error compensation data High-speed R
396 Writing the pitch error compensation data Low-speed W
428 Reading the actual machine position of controlled axes High-speed R
433 Reading detailed information of CNC alarm Low-speed R
- 510 -
B-64393EN/02 5.WINDOW FUNCTIONS
*1 Function codes that have R in the R/W column are window read functions specifiable with the WINDR
function command. Function codes that have W in the R/W column are window write functions
specifiable with the WINDW function command.
*2 Functions of "High-speed" in their Response field can read or write data immediately upon request. On
the other hand, functions of "Low-speed" in their Response field need to request the CNC to read or
write data and receiving response from CNC completes the request.
NOTE
To read or write data for the second path in two-path control CNC, add 1000 to
the function code number.
- 511 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 CNC system information has been read normally.
- 512 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
0
(Always terminates normally)
+4 (Data length L)
14
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 CNC series name ASCII characters
(2 bytes) (0)
NOTE
Data is stored from the upper digit in each lower byte.
- 513 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Offset number
+8 (Data attribute M)
Offset type
Completion codes
0 The tool offset has been read normally.
3 The offset number specified for reading is invalid. (This completion code is returned when the
specified offset number data is not from 1 to the maximum number of offsets.)
4 There are mistakes in the data attribute that specifies the type of the offset to be read.
- 514 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Offset number
(Same as input data)
+8 (Data attribute M)
Offset type
(Same as input data)
+10 Tool offset value Signed binary (A negative value is represented in 2's
complement.)
+13 (4bytes) Upper 3 bytes are always "0" for virtual tool tip.
- 515 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Offset number
+8 (Data attribute M)
Offset type
+10 Tool offset value Signed binary (A negative value is represented in 2's
complement.)
+13 Upper 3 bytes are always "0" for virtual tool tip.
- 516 -
B-64393EN/02 5.WINDOW FUNCTIONS
Completion codes
0 The tool offset has been written normally.
2 The data byte length for the tool offset specified for writing is invalid.
3 The offset number specified for writing is invalid. (This completion code is returned when the
specified offset number data is not from 1 to the maximum number of offsets.)
4 There are mistakes in the data attribute that specifies the type of the offset to be written. (Some
wrong offset types do not result this completion code.)
5 The tool offset value is out of the effective range.
6 For the offset number specified for writing, the additional tool offset number option is required, but
it is missing.
Also, the tool function option is not added that is necessary for the type of the offset specified for
writing.
116 The tool offset value is out of the effective range set by the wrong operation prevention function.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Offset number
(Same as input data)
+8 (Data attribute M)
Offset type
(Same as input data)
+10 Tool offset value Signed binary (A negative value is represented in 2's
complement.)
+13 (Same as input data)
- 517 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=0: External workpiece origin offset
Offset group number N=1: G54
: :
N=6: G59
With "addition of workpiece coordinate system pair"
N=7: G54.1 P1
: :
N=306: G54.1 P300
+8 (Data attribute M) M=1 to n: Workpiece origin offset number of a specific
Axis number axis. n is the axis number.
M=-1: Read for all axes.
+10 (Data area)
-
+41 (Need not to be set)
Completion codes
0 The workpiece origin offset has been read normally.
3 The specified offset number is invalid.
4 The specified axis number is invalid.
- 518 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L) L=4: The workpiece origin offset value for a specific
Byte length of the workpiece axis is read.
origin offset value L=4*n: Workpiece origin offsets for all axes are read.
+6 (Data number N)
Offset group number
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Workpiece origin offset value Signed binary number (A negative value is
represented in 2's complement.)
- 519 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) L=4: Workpiece origin offset value for a specific axis
Byte length of the workpiece is written.
origin offset value L=4*n: Workpiece origin offset values for all axes are
written.
+6 (Data number N) N=0: External workpiece origin offset
Offset group number N=1: G54
: :
N=6: G59
With the option of adding Workpiece coordinate
systems.
N=7: G54.1 P1
: :
N=306: G54.1 P300
+8 (Data attribute M) M=1 to n: Workpiece origin offset number of a specific
Axis number axis. n is the axis number.
M=-1: Write for all.
+10 Workpiece origin offset value Signed binary number (A negative value is
represented in 2's complement.)
- 520 -
B-64393EN/02 5.WINDOW FUNCTIONS
Completion codes
0 The workpiece origin offset has been written normally.
2 The specified data length is invalid.
3 The offset number is invalid.
4 The specified axis number is invalid.
5 The workpiece origin offset value is out of the effective range.
6 There is no workpiece coordinate shift option added.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
- 521 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Parameter number
Completion codes
0 Parameter data has been read normally.
3 The parameter number specified for reading is invalid.
4 The specified data attribute is invalid because it is neither 0, -1, nor a value 1 to n (n is the number of
axes).
- 522 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L=1: Bit or byte parameter
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word parameter
L=4: Double word parameter
When all axes are specified
L=1*n: Bit or byte parameter
L=2*n: Word parameter
L=4*n: Double word parameter
+6 (Data number N)
Parameter number
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Parameter data Parameter - dependent form
CAUTION
Macro executor parameters 9000 to 9011 cannot be read.
- 523 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) When no axis or one axis is specified
L=1: Bit or byte parameter
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word parameter
L=4: Double word parameter
When all axes are specified
L=1*n: Bit or byte parameter
L=2*n: Word parameter
L=4*n: Double word parameter
+6 (Data number N)
Parameter number
Completion codes
0 Parameter data has been written normally.
2 The data byte length of the parameter specified for writing is invalid.
3 The parameter number specified for writing is invalid.
4 The specified data attribute is invalid because it is neither 0, -1, nor a value from 1 to n (n is the
number of axes).
6 The necessary option is not added.
113 The CNC status is that the writing the parameter cannot be allowed.
- 524 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
CAUTION
1 Parameters may not become effective immediately depending on the parameter
numbers.
2 There is timing when it can't be written in some parameters. In this case '113' is
set to the completion code.
- 525 -
5.WINDOW FUNCTIONS B-64393EN/02
NOTE
This function cannot read integer type or bit type parameters. To read an integer
type or bit type parameter, use the function having function code 17 or 154.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set the parameter number with singed binary format
Parameter number in four bytes length.
+12 Decimal point position Set the decimal point position of the parameter value.
(2 bytes)
+14 (Data area)
-
+17 (Need not to be set)
- 526 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) Reading axis type parameters for all axes (M=-1, Example for 3 controlled-axes)
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set the parameter number with singed binary format
Parameter number in four bytes length.
+12 Decimal point position Set the decimal point position of the parameter value
for the 1st axis.
(2 bytes)
+14 (Data area)
-
(Need not to be set)
+18 Decimal point position Set the decimal point position of the parameter value
for the 2nd axis.
(2 bytes)
+20 (Data area)
-
(Need not to be set)
+24 Decimal point position Set the decimal point position of the parameter value
for the 3rd axis.
(2 bytes)
+26 (Data area)
-
+29 (Need not to be set)
Completion codes
0 Normal completion
3 The data number is invalid.
4 The data attribute is invalid.
5 The decimal point position is invalid.
- 527 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
Parameter number
(Same as input data)
+10 (Data attribute M)
Axis number
(Same as input data)
+12 Decimal point position
(2) Reading axis type parameters for all axes (M=-1, Example for 3 controlled-axes)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
18
(6 bytes * 3 axes)
+6 (Data number N)
Parameter number
(Same as input data)
+10 (Data attribute M)
-1
(Same as input data)
+12 Decimal point position
- 528 -
B-64393EN/02 5.WINDOW FUNCTIONS
The read parameter value for each specified decimal point position is shown below.
- 529 -
5.WINDOW FUNCTIONS B-64393EN/02
NOTE
This function cannot write integer type or bit type parameters. To write an
integer type or bit type parameter, use the function having function code 18.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) Set the data length.
6
+6 (Data number N) Set the parameter number with singed binary format
Parameter number in four bytes length.
+12 Decimal point position Set the decimal point position of the parameter value.
(2 bytes)
+14 Parameter value Set the parameter value with singed binary format in
four bytes length
+17 (4 bytes)
- 530 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) Writing axis type parameters for all axes (M=-1, Example for 3 controlled-axes)
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) Set the data length.
18
(6bytes * 3axes)
+6 (Data number N) Set the parameter number with singed binary format
Parameter number in four bytes length.
+12 Decimal point position Set the decimal point position of the parameter value
for the 1st axis.
(2 bytes)
+14 Parameter value Set the parameter value for the 1st axis with singed
binary format in four bytes length
(4 bytes)
+18 Decimal point position Set the decimal point position of the parameter value
for the 2nd axis.
(2 bytes)
+20 Parameter value Set the parameter value for the 2nd axis with singed
binary format in four bytes length
(4 bytes)
+24 Decimal point position Set the decimal point position of the parameter value
for the 3rd axis.
(2 bytes)
+26 Parameter value Set the parameter value for the 3rd axis with singed
binary format in four bytes length
+29 (4 bytes)
Completion codes
0 Normal completion
2 The data length is invalid.
3 The data number is invalid.
4 The data attribute is invalid.
5 The decimal point position is invalid.
113 The CNC status is that the writing the parameter cannot be allowed.
- 531 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(Same as input data)
+6 (Data number N)
Parameter number
(Same as input data)
+10 (Data attribute M)
Axis number
(Same as input data)
+12 Decimal point position
(2) Reading axis type parameters for all axes (M=-1, Example for 3 controlled-axes)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
18
(Same as input data)
+6 (Data number N)
Parameter number
(Same as input data)
+10 (Data attribute M)
-1
(Same as input data)
+12 Decimal point position
- 532 -
B-64393EN/02 5.WINDOW FUNCTIONS
The parameter value for each specified decimal point position is shown below.
CAUTION
1 Parameters may not become effective immediately depending on the parameter
numbers.
2 There is timing when it can't be written in some parameters. In this case '113' is
set to the completion code.
- 533 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Setting data number
Completion codes
0 Setting data has been read normally.
3 The setting number specified for reading is invalid.
4 The specified data attribute is invalid because it is neither 0, -1, nor a value from 1 to n (n is the
number of axes).
- 534 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L=1: Bit or byte setting data
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word setting data
L=4: Double word setting data
When all axes are specified
L=1*n: Bit or byte setting data
L=2*n: Word setting data
L=4*n: Double word parameter
+6 (Data number N)
Parameter number
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Setting data Parameter - dependent form
- 535 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) When no axis or one axis is specified
L=1: Bit or byte setting data
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word setting data
L=4: Double word setting data
When all axes are specified
L=1*n: Bit or byte setting data
L=2*n: Word setting data
L=4*n: Double word setting data
+6 (Data number N)
Setting data number
Completion codes
0 Setting data has been written normally.
2 The byte length of the setting data specified for writing is invalid.
3 The setting data number specified for writing is invalid.
4 The specified data attribute is invalid because it is neither 0, -1, nor a value from 1 to n (n is the
number of axes).
+2 (Completion code)
?
(See above description)
+4 (Data length L)
- 536 -
B-64393EN/02 5.WINDOW FUNCTIONS
NOTE
For details of the custom macro variables, refer to the "Common to Lathe System
/ Machining Center System USER'S MANUAL (B-64304EN)".
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Custom macro variable number
Completion codes
0 Completed successfully
1 No option for custom macro variables
3 The data number is invalid.
4 The mantissa is out of range.
- 537 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
Custom macro variable number
(Same as input data)
+8 (Data attribute M)
Number of decimal places
(Same as input data)
+10 Mantissa(D1) Signed binary format in 4 bytes length
(4 bytes)
+14 Number of decimal places(D2) Signed binary format in 2 bytes length
D2 = -1, 0 to 8
+15 (2 bytes)
You can read D1 and D2 when the custom macro variable is expressed by the following formula.
[Custom macro variable] = D1 × 10 –D2
There is a "null" state on custom macro variables that means the value is not defined. When the custom
macro variable is "null", the D1=0 and the D2 = -1 are read in spite of the specified value of M.
Result data
Value of the custom Specified number of
Number of decimal
macro variable decimal places (M) Mantissa (D1)
places (D2)
0 1234 3
1 12 1
1.234 2 123 2
3 1234 3
4 12340 4
0 1 0 1
Null - 0 -1
NOTE
When you set 0 to number of decimal places M, the read value of D2 may
changes by the value of the macro variable and the setting of CNC system. So,
we recommend to set 1 to 8 to number of decimal places M.
- 538 -
B-64393EN/02 5.WINDOW FUNCTIONS
NOTE
For details of the custom macro variables, refer to the "Common to Lathe System
/ Machining Center System USER'S MANUAL (B-64304EN)".
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
6
+6 (Data number N)
Custom macro variable number
(4 bytes)
+14 Number of decimal places (D2) Signed binary format in 2 bytes length
D2 = -1, 0 to 8
+15 (2 bytes)
- 539 -
5.WINDOW FUNCTIONS B-64393EN/02
You should set values to D1 and D2 when the custom macro variable is expressed by the following
formula.
[Custom macro variable] = D1 × 10 –D2
There is a "null" state on custom macro variables that means the value is not defined. When you set D1=0
and D2= -1, the custom macro variable becomes "null" state.
Completion codes
0 Completed successfully
2 The data length is invalid.
3 The data number is invalid.
6 No option for custom macro variables
7 The variable is write-protected.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(Same as input data)
+6 (Data number N)
Custom macro variable number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Mantissa (D1)
- 540 -
B-64393EN/02 5.WINDOW FUNCTIONS
- 541 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 Completed successfully.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Alarm status 4 bytes bit type
+13
CAUTION
In the previous CNC model (Series 0i-C, 16, 18, 21, etc.), the size of output data
are 2 bytes. On this model, note that the size of output data is expanded to 4
bytes.
- 542 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The program number of the currently executing program was read successfully.
5 The program number exceeds 4-digit. (Use function code 90.)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Current program number (ON) Unsigned binary, 2 bytes long
- 543 -
5.WINDOW FUNCTIONS B-64393EN/02
- 544 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The current sequence number has been read normally.
+2 (Completion code)
?
(See above description)
+4 (Data length L) Note that the data length must be set to 4 bytes even
4 though the current program number is 2 bytes long
(the sequence number is indicated by 5 digits).
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Current sequence number Unsigned binary
+13
- 545 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=0 to 33: Each data reading
Data type (See. Table 5.4.17 (a) to (c))
N=-1: Collective reading (Group No.0 to 31)
+8 (Data attribute M) M=0: Current block
Specified block M=1: Next block
M=2: (reserved)
+10 (Data area)
-
(Need not to be set)
NOTE
1 A modal information for a block after the next block cannot be read.
2 When a collective reading, the read modal information of groups are from No. 0 to
No.31. To read modal information of over No. 31 group, use the each data
reading by setting over 31 to the data nubmer N.
- 546 -
B-64393EN/02 5.WINDOW FUNCTIONS
Table5.4.17 (a) Modal information of G-function (part 1)
Group Machining center system Lathe system
number Code in a G code Code in a
G code
(Data type) group A series B series C series group
0 G00 0 G00 G00 G00 0
G01 1 G01 G01 G01 1
G02 2 G02 G02 G02 2
G02.2 10 G02.2 G02.2 G02.2 20
G02.3 12 G02.3 G02.3 G02.3 22
G02.4 15 G02.4 G02.4 G02.4 18
G03 3 G03 G03 G03 3
G03.2 11 G03.2 G03.2 G03.2 21
G03.3 13 G03.3 G03.3 G03.3 23
G03.4 16 G03.4 G03.4 G03.4 19
G06.2 14 G06.2 G06.2 G06.2 17
G33 4 G32 G33 G33 4
G34 24 G34 G34 G34 9
G35 22 G35 G35 G35 14
G36 23 G36 G36 G36 15
G90 G77 G20 5
G92 G78 G21 6
G94 G79 G24 7
1 G17 0 G96 G96 G96 1
G18 8 G97 G97 G97 0
G19 4
2 G90 0 G90 G90 0
G91 1 G91 G91 1
3 G22 1 G68 G68 G68 1
G23 0 G69 G69 G69 0
4 G93 2 G93 G93 G93 2
G94 0 G98 G94 G94 0
G95 1 G99 G95 G95 1
5 G20(G70) 0 G20 G20 G70 0
G21(G71) 1 G21 G21 G71 1
6 G40 0 G40 G40 G40 0
G41 1 G41 G41 G41 1
G41.2 3 G41.2 G41.2 G41.2 3
G41.3 5 G41.3 G41.3 G41.3 5
G41.4 6 G41.4 G41.4 G41.4 6
G41.5 8 G41.5 G41.5 G41.5 8
G41.6 10 G41.6 G41.6 G41.6 11
G42 2 G42 G42 G42 2
G42.2 4 G42.2 G42.2 G42.2 4
G42.4 7 G42.4 G42.4 G42.4 7
G42.5 9 G42.5 G42.5 G42.5 9
G42.6 11 G42.6 G42.6 G42.6 12
- 547 -
5.WINDOW FUNCTIONS B-64393EN/02
- 548 -
B-64393EN/02 5.WINDOW FUNCTIONS
Table5.4.17 (c) Modal information of G-function (part 3)
Group Machining center system Lathe system
number Code in a G code Code in a
G code
(Data type) group A series B series C series group
13 G54(G54.1) 0 G54(G54.1) G54(G54.1) G54(G54.1) 0
G55 1 G55 G55 G55 1
G56 2 G56 G56 G56 2
G57 3 G57 G57 G57 3
G58 4 G58 G58 G58 4
G59 5 G59 G59 G59 5
14 G61 1 G61 G61 G61 1
G62 2 G62 G62 G62 2
G63 3 G63 G63 G63 3
G64 0 G64 G64 G64 0
15 G68 1 G17 G17 G17 0
G68.2 2 G18 G18 G18 4
G69 0 G19 G19 G19 8
16 G15 0 G68.1 G68.1 G68.1 1
G16 1 G68.2 G68.2 G68.2 2
G69.1 G69.1 G69.1 0
17 G40.1 0 G50 G50 0
G41.1 1 G51 G51 1
G42.1 2
18 G25 0
G26 1
19 G50.2(G250) G50.2(G250) G50.2(G250) 0
G51.2(G251) G51.2(G251) G51.2(G251) 1
20 G12.1(G112) 1 G12.1(G112) G12.1(G112) G12.1(G112) 1
G13.1(G113) 0 G13.1(G113) G13.1(G113) G13.1(G113) 0
21 G50.1 0 G50.1 G50.1 G50.1 0
G51.1 1 G51.1 G51.1 G51.1 1
22 G43 G43 G43 1
G43.1 G43.1 G43.1 3
G43.4 G43.4 G43.4 4
G43.5 G43.5 G43.5 5
G43.7(G44.7) G43.7(G44.7) G43.7(G44.7) 6
G44 G44 G44 2
G49(G49.1) G49(G49.1) G49(G49.1) 0
23 G80.5 0 G15 G15 G15 0
G81.5 1 G16 G16 G16 1
26 G80.5 G80.5 G80.5 0
G81.5 G81.5 G81.5 1
27 G80.4 G80.4 G80.4 0
G81.4 G81.4 G81.4 1
30 G50.2 0
G51.2 1
33 G80.4 0
G81.4 1
- 549 -
5.WINDOW FUNCTIONS B-64393EN/02
Completion codes
0 Completed successfully
3 The data number is invalid
4 The data attribute is invalid
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
Data type
(Same as input data)
+8 (Data attribute M)
Specified block
(Same as input data)
+10 Modal information of G-function See "Fig. 5.4.17 (a) Modal information of G-function".
(2 bytes)
+11
+2 (Completion code)
?
(See above description)
+4 (Data length L) n=1 to 32: Effective number of G-function group.
2*n
- 550 -
B-64393EN/02 5.WINDOW FUNCTIONS
7 6 5 4 3 2 1 0
Top Address +10
Code in a group
0 : Not specified in the group
1 : Specified in the group
7 6 5 4 3 2 1 0
Top Address +11 0
(2) Reading modal information of other than G-function (Data number=100 to 126, -2)
Using this function, you can read modal information of other than G-function.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=100 to 126: Each data reading (See Table 5.4.17
Data type (d))
N=-2: Collective read (No.100 to 126)
+8 (Data attribute M) M=0: Current block
Specified block M=1: Next block
M=2: (reserved)
+10 (Data area)
-
(Need not to be set)
NOTE
A modal information for a block after the next block cannot be read.
- 551 -
5.WINDOW FUNCTIONS B-64393EN/02
Completion codes
0 Completed successfully
3 The data number is invalid
4 The data attribute is invalid
- 552 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
Data type
(Same as input data)
+8 (Data attribute M)
Specified block
(Same as input data)
+10 Modal information See "Fig. 5.4.17 (b) Modal information of other than
G-function".
+15 (6 bytes)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
174
+6 (Data number N)
Data type
(Same as input data)
+8 (Data attribute M)
Specified block
(Same as input data)
+10 Modal information of See "Fig. 5.4.17 (b) Modal information of other than
Data type No.100 G-function".
(6 bytes)
+16 Modal information of See "Fig. 5.4.17 (b) Modal information of other than
Data type No.101 G-function".
(6 bytes)
~ ~
+166 Modal information of See "Fig. 5.4.17 (b) Modal information of other than
Data type No.126 G-function".
(6 bytes)
+172 Reserved
- 553 -
5.WINDOW FUNCTIONS B-64393EN/02
Data 4 bytes
FLAG1 1 byte
FLAG2 1 byte
7 6 5 4 3 2 1 0
0 : Positive
1 : Negative
0 : A decimal point not specified
1 : A decimal point specified
0 : Not specified in the current block
1 : Specified in the current block
7 6 5 4 3 2 1 0
NOTE
1 The specification of whether a decimal point is specified or not, in FLAG1, and
the specification of the number of decimal places, in FLAG2, are valid only for F
code. Even if a decimal point is not specified, the number of decimal places
may not be 0.
2 PMC-SB7 outputs the number of input digits to bits 0 to 3 of FLAG1, while 0i-D/0i
Mate-D PMC does not. If you need to have the number of input digits output as
with the former specification, read the CNC parameters of the following numbers,
by using the window function for reading a parameter (function code 17 or 154).
• For the M function: No.3030(allowable number of digits of the M code)
• For the S function: No.3031(allowable number of digits of the S code)
• For the T function: No.3032(allowable number of digits of the T code)
• For the B function: No.3033(allowable number of digits of the B code)
- 554 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Diagnosis No.
Completion codes
0 Diagnosis data has been read from the CNC normally.
3 The specified diagnosis data number is invalid.
4 The data specified as the data attribute is invalid because it is neither 0, -1, nor a value from 1 to n (n
is the number of axes).
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L L=1: Bit or byte data
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word data
L=4: Double word data
When all axes are specified
L=1*n: Bit or byte data
L=2*n: Word data
L=4*n: Double word data
+6 (Data number N)
Diagnosis No.
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Diagnosis data Data - dependent form
(1, 2, 4 bytes)
- 555 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L L=6: Floating point type data
(L = 6, 6*n) When all axes are specified
L=6*n: Floating point type data
+6 (Data number N)
Diagnosis No.
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 decimal point
(2 bytes)
+12 Diagnosis data
+15 (4 bytes)
- 556 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Diagnosis number
Completion codes
0 Diagnosis data has been read from the CNC normally.
3 The specified diagnosis data number is invalid.
4 The data specified as the data attribute is invalid because it is neither 0, -1, nor a value from 1 to n (n
is the number of axes).
- 557 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L L=1: Bit or byte data
(L = 1, 2, 4, 1*n, 2*n, 4*n) L=2: Word data
L=4: Double word data
When all axes are specified
L=1*n: Bit or byte data
L=2*n: Word data
L=4*n: Double word data
+6 (Data number N)
Diagnosis number
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Diagnosis data Data - dependent form
(1, 2, 4 bytes)
+2 (Completion code)
?
(See above description)
+4 (Data length L) When no axis or one axis is specified
L L=6: Floating point type data
(L = 6, 6*n) When all axes are specified
L=6*n: Floating point type data
+6 (Data number N)
Diagnosis number
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Decimal point
(2 bytes)
+12 Diagnosis data
+15 (4 bytes)
- 558 -
B-64393EN/02 5.WINDOW FUNCTIONS
NOTE
For details of the P-CODE variables and extended P-CODE variables, refer to the
"Macro Executor PROGRAMMING MANUAL (B-64303EN-2)".
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Signed binary format in 4 bytes length (note)
P-CODE variable number
NOTE
The data length is 4 bytes instead of 2 bytes.
Completion codes
0 Completed successfully
3 The data number is invalid.
4 The mantissa is out of range.
- 559 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
P-CODE variable number
(Same as input data)
+10 (Data attribute M)
Number of decimal places
(Same as input data)
+12 Mantissa (D1) Signed binary format in 4 bytes length
(4 bytes)
+16 Number of decimal places (D2) Signed binary format in 2 bytes length
D2 = -1, 0 to 8 (Floating-point type)
+17 (2 bytes) D2 = 0 to 8 (Integer type)
You can read D1 and D2 when the P-CODE variable is expressed by the following formula.
You can define the type of P-CODE variables as a floating-point type or an integer type by the setting of
CNC parameter No. 9033#3 and 9033#4.
- 560 -
B-64393EN/02 5.WINDOW FUNCTIONS
(b) Integer type)
When P-CODE variables are integer type, there is no "null" state.
NOTE
When you set 0 to number of decimal places M, the read value of D2 may
changes by the value of the macro variable and the setting of CNC system. So,
we recommend to set 1 to 8 to number of decimal places M.
- 561 -
5.WINDOW FUNCTIONS B-64393EN/02
NOTE
For details of the P-CODE variables and extended P-CODE variables, refer to the
"Macro Executor PROGRAMMING MANUAL (B-64303EN-2)".
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
6
(4 bytes)
+16 Number of decimal places (D2) Signed binary format in 2 bytes length
D2 = -1, 0 to 8 (Floating-point type)
+17 (2 bytes) D2 = 0 to 8 (Integer type)
NOTE
The data length is 4 bytes instead of 2 bytes.
You should set values to D1 and D2 when the custom macro variable is expressed by the following
formula.
You can define the type of P-CODE variables as a floating-point type or an integer type by the setting of
CNC parameter No. 9033#3 and 9033#4.
- 562 -
B-64393EN/02 5.WINDOW FUNCTIONS
(a) Floating-point type)
When P-CODE variables are floating-point type, there is a "null" state on P-CODE variables that
means the value is not defined. When you set D1=0 and D2= -1, the P-CODE variable becomes
"null" state.
Completion codes
0 Completed successfully
2 The data length is invalid.
3 The data number is invalid.
6 No option for macro executor
- 563 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(Same as input data)
+6 (Data number N)
P-CODE variable number
(Same as input data)
+10 (Data attribute M)
0
(Same as input data)
+12 Mantissa (D1)
- 564 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 CNC status information has been read normally.
- 565 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
14
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Indication of which mode is 0: MDI
currently selected, automatic or 1: MEMory
manual (2 bytes) 2: **** (Other state)
3: EDIT
4: HaNDle
5: JOG
6: Teach in JOG
7: Teach in HND
8: INC. feed
9: REFerence
10: ReMoTe
+12 Status of automatic operation 0: **** (Reset stste)
(2 bytes) 1: STOP
2: HOLD
3: StaRT
4: MSTR
+14 Status of movement along the 0: *** (Other state)
axis of dwelling 1: MoTioN
(2 bytes) 2: DWell
+16 Status of M, S, T, and B functions 0: *** (Other state)
(2 bytes) 1: FIN
- 566 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The program number of the currently executing program has been read normally.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
8
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Number of the program currently Unsigned binary format, 4-byte length
being executed (ON)
(4bytes)
+14 Program number of the main Unsigned binary format, 4-byte length
program (OMN)
+17 (4bytes)
- 567 -
5.WINDOW FUNCTIONS B-64393EN/02
- 568 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
Completion codes
0 Data has been entered on the program check screen normally.
2 The data length in bytes is invalid.
3 The data No. is invalid.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N) N=0: Spindle tool No.
N=1: Next tool No.
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Data for the spindle tool No. or Unsigned binary
data for the next tool No.
+13 (4 bytes)
- 569 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=-1: Reads current date and time
-1, 0, 1 N=0: Reads current date
N=1: Reads current time
+8 (Data attribute M) Set 0 to this field.
0
Completion codes
0 Data of the clock built into the CNC has been read normally.
3 A value other than 0, 1, and -1 was specified for the data No.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
- 570 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When both the current date and current time are specified to be read by entering [-1] for the data No.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
+6 (Data number N)
+21
- 571 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
6
- 572 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When changing both the current date and the current time.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
12
- 573 -
5.WINDOW FUNCTIONS B-64393EN/02
Completion codes
0 Data of the clock built into the CNC has been written normally.
2 Data length is invalid.
3 A value other than 0, 1, and -1 was specified for the data No.
5 Specified year, month, day, hours, minutes or seconds are incorrect.
+0 +0
139 139
+2 +2
0 0
+4 +4
6 6
+6 +6
0 1
+8 +8
0 0
+10 +10
2007 23
+12 +12
11 59
+14 +14
8 59
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
+6 (Data number N)
- 574 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When writing both the current date and current time.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
+6 (Data number N)
+21
- 575 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Pitch error compensation No.
Completion codes
0 The pitch error compensation value has been read normally.
3 Illegal pitch error compensation number.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
1
+6 (Data number N)
Pitch error compensation No.
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Pitch error compensation value
(1 byte)
- 576 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
1
+6 (Data number N)
Pitch error compensation No.
Completion codes
0 The pitch error compensation value has been read normally.
2 Illegal data length.
3 Illegal pitch error compensation number.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
1
(Same as input data)
+6 (Data number N)
Pitch error compensation No.
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Pitch error compensation value
- 577 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N = 1 to 30
Maximum number of alarms
+10 (Data)
-
+(12+8*(N-1)+7) (Need not to be set)
NOTE
The appropriate size of the data area corresponding to the maximum number of
alarms is necessary.
Alarm type number Alarm type Alarm type number Alarm type
-1 All alarm 10 DS alarm
0 SW alarm 11 IE alarm
1 PW alarm 12 BG alarm
2 IO alarm 13 (Reserve)
3 PS alarm 14 (Reserve)
4 OT alarm 15 EX alarm
5 OH alarm 16 (Reserve)
6 SV alarm 17 (Reserve)
7 SR alarm 18 (Reserve)
8 MC alarm 19 (Reserve)
9 SP alarm 20 (Reserve)
- 578 -
B-64393EN/02 5.WINDOW FUNCTIONS
Completion codes
0: Completed successfully
1: Not supported
3: The maximum number of alarms is invalid.
You should set the number 1 to 30.
4: Alarm type number is invalid.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
(L = 2 + 8 * N)
+6 (Data number N)
(2 bytes)
+12 Axis information Bit format in 4 bytes length
Refer to the "[Output data structure] (1)
(4bytes) Structure of detailed alarm information"
for details.
+16 Alarm type number Signed binary format in 2 bytes length
Refer to the "[Input data structure] (2) 1st
(2bytes) Alarm type number" for details.
+18 Alarm number Signed binary format in 2 bytes length
0 to 32767
(2bytes)
~ ~
+(12+8*(N-1)) Axis information
(4bytes)
+(12+8*(N-1)+4) Alarm type number
N th
(2bytes)
+(12+8*(N-1)+6) Alarm number
+(12+8*(N-1)+7) (2bytes)
NOTE
1 When the "number of alarms" is less than "maximum number of alarms" that you
specify, the data at the position of "number of alarms" or after are set with 0 in
"axis information" and -1 in "alarm type number" and "alarm number".
2 You ought not to program as depended on output order of the alarm information
because this order may be changed.
- 579 -
5.WINDOW FUNCTIONS B-64393EN/02
Example
NC alarm : EX0005(Not axis type)
: SV0302(An alarm for the 1st axis.)
: OT0500(An alarm for the 3rd axis.)
1. In case that all alarm types are read and the maximum number of alarms is set to 4.
- 580 -
B-64393EN/02 5.WINDOW FUNCTIONS
2. In case that OT alarm type is read and the maximum number of alarms is set to 4.
- 581 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The actual velocity for the controlled axes has been read normally.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Actual velocity for controlled Unsigned binary
axes <Data increments>
• Input in mm : 1mm/min.
+13 (4 bytes) • Input in inches : 0.01 inch/min
- 582 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The absolute coordinates of the controlled axes have been read normally.
4 Data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is the
number of axes). Alternatively, the specified axis number is greater than the number of controlled
axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Absolute coordinate of the Signed binary
controlled axis specified (A negative value is represented in 2's complement)
+13 (4 bytes)
- 583 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Absolute coordinate of the first Signed binary
axis (A negative value is represented in 2's complement)
(4 bytes)
+14 Absolute coordinate of the Signed binary
second axis (A negative value is represented in 2's complement)
(4 bytes)
+18 Absolute coordinate of the third Signed binary
axis (A negative value is represented in 2's complement)
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 584 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The machine coordinates of the controlled axes have been read normally.
4 Data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is the
number of axes). Alternatively, the specified axis number is greater than the number of the
controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Machine coordinate of the Signed binary
controlled axis specified (A negative value is represented in 2's complement)
+13 (4 bytes)
- 585 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Machine coordinate of the first Signed binary
axis (A negative value is represented in 2's complement)
(4 bytes)
+14 Machine coordinate of the Signed binary
second axis (A negative value is represented in 2's complement)
(4 bytes)
+18 Machine coordinate of the third Signed binary
axis (A negative value is represented in 2's complement)
+21 (4 bytes)
CAUTION
When an inch machine is used in metric input, or when a millimeter machine is
used in inch input, the machine position that is read with bit 0 of parameter No.
3104 set to 1 differs from the value indicated by the CNC. In this case,
therefore, the value read through the ladder must be calculated (converted).
NOTE
1 The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
2 Update cycle of the machine position becomes faster by setting 1 to the CNC
parameter No. 11300#5 (MPH). You should apply this setting only if necessary
because this setting may lower the performance of CNC a little.
- 586 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The coordinates of the skip stop position for the controlled axes have been read normally.
4 Data specified for the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is the
number of axes). Alternatively, the specified axis number is greater than the number of controlled
axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Skip coordinate of the controlled Signed binary
axis specified (A negative value is represented in 2's complement)
+13 (4 bytes)
- 587 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Skip coordinate of the first axis Signed binary
(A negative value is represented in 2's complement)
(4 bytes)
+14 Skip coordinate of the second Signed binary
axis (A negative value is represented in 2's complement)
(4 bytes)
+18 Skip coordinate of the third axis Signed binary
(A negative value is represented in 2's complement)
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 588 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=0: Read with Input unit
Unit N=1: Read with Detection unit
Completion codes
0 The servo delay for the controlled axes have been read normally.
3 The data number is invalid.
4 The data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is
the number of axes). Alternatively, the specified axis number is greater than the number of
controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Unit
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Servo delay Signed binary format in 4 bytes length.
+13 (4 bytes)
- 589 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
Unit
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Servo delay of 1st axis Signed binary format in 4 bytes length
(4 bytes)
+14 Servo delay of 2nd axis Signed binary format in 4 bytes length
(4 bytes)
+18 Servo delay of 3rd axis Signed binary format in 4 bytes length
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 590 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=0: Read with Input unit
Unit N=1: Read with Detection unit
Completion codes
0 The acceleration/deceleration delay for the control axis has been read normally.
3 The data number is invalid.
4 The data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is
the number of axes). Alternatively, the specified axis number is greater than the number of
controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Unit
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Acc./Dec. delay Signed binary format in 4 bytes length.
+13 (4 bytes)
- 591 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
Unit
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 ACC./Dec. delay of 1st axis Signed binary format in 4 bytes length
(4 bytes)
+14 ACC./Dec. delay of 2nd axis Signed binary format in 4 bytes length
(4 bytes)
+18 ACC./Dec. delay of 3rd axis Signed binary format in 4 bytes length
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 592 -
B-64393EN/02 5.WINDOW FUNCTIONS
5.5.7 Reading the Feed Motor Load Current Value (A/D Conversion
Data) (High-speed Response)
The digital value converted from the load current of the CNC-controlled axis can be read.
NOTE
The load current value of Cs-axis can not be read.
If you want to know a load information of Cs-axis, please use the function code
No.153 (Reading load information of the spindle motor).
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Type of analog voltage
2 N=2: Load information for the CNC-controlled axes.
NOTE
There is no general-purpose analog input on 0i-D / 0i Mate-D. If you need such a
function, use the I/O Link analog input module.
Completion codes
0 A/D conversion data has been read normally.
3 The data specified for the data number is invalid.
4 The data specified for the data attribute is invalid, or the specified axis number is greater than the
number of controlled axes.
- 593 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
2
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 A/D conversion data Binary number from 0 to +/-6554
+11 (2 bytes)
(a) A/D conversion data (AD) of CNC controlled axis load information
The load current for the specified CNC controlled axis is converted into analog voltage, the input to
the A/D converter to output a digital data.
The value actually set in the AD field is obtained from the following formula:
NOTE
For the nominal current limits, see the descriptions of the control motor.
- 594 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The actual speed of the spindle has been read normally.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Actual spindle speed Unsigned binary
<Data unit>
+13 1/min
- 595 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The relative coordinates on the controlled axis have been read normally.
4 The specified data attribute is invalid. That is, a value other than -1 and 1 to n (number of axes) was
specified, or the specified axis No. was greater than the number of controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Relative coordinates on the Signed binary
specified controlled axis (A negative value is represented in 2's complement)
+13 (4 bytes)
- 596 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When read all axes. (ex. number of controlled axes is 3)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Relative coordinates on the first Signed binary
axis (A negative value is represented in 2's complement)
(4 bytes)
+14 Relative coordinates on the Signed binary
second axis (A negative value is represented in 2's complement)
(4 bytes)
+18 Relative coordinates on the third Signed binary
axis (A negative value is represented in 2's complement)
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 597 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The remaining travel along the controlled axis has been read normally.
4 The specified data attribute is invalid. That is, a value other than -1 and 1 to n (number of axes) was
specified, or the specified axis No. was greater than the number of controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Remaining travel along the Signed binary
specified controlled axis (A negative value is represented in 2's complement)
+13 (4 bytes)
- 598 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When read all axes. (ex. number of controlled axes is 3)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Remaining travel along the first Signed binary
axis (A negative value is represented in 2's complement)
(4 bytes)
+14 Remaining travel along the Signed binary
second axis (A negative value is represented in 2's complement)
(4 bytes)
+18 Remaining travel along the third Signed binary
axis (A negative value is represented in 2's complement)
+21 (4 bytes)
NOTE
The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
- 599 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The actual velocity of the each controlled axis has been read normally.
4 The specified data attribute is invalid. That is, a value other than −1 and 1 to n (number of axes) was
specified, or the specified axis No. was greater than the number of controlled axes.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Actual velocity of each controlled Unsigned binary(A negative value is represented in
axes 2's complement)
+13 (4 bytes)
- 600 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When read all axes. (ex. number of controlled axes is 3)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Actual velocity of first axis Unsigned binary
(A negative value is represented in 2's complement)
(4 bytes)
+14 Actual velocity of second axis Unsigned binary
(A negative value is represented in 2's complement)
(4 bytes)
+18 Actual velocity of third axis Unsigned binary
(A negative value is represented in 2's complement)
+21 (4 bytes)
- 601 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The actual spindle speed was read successfully.
4 The spindle speed in 'Data Attribute' has wrong values, that is, a value outside of the range -1 to -(n -
1) or 1 to n (n: number of spindles).
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Spindle number
(Same as input data)
+10 Actual speed of specified spindle Signed binary
<Data unit>
+13 (4bytes) 1/min
- 602 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) When read multiple spindles. (ex. 3 spindles)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3spindles)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-2: Read spindles on No.1 to No.3 axes.
-2
(Same as input data)
+10 Actual speed of No.1 spindle Signed binary
<Data unit>
(4 bytes) 1/min
+14 Actual speed of No.2 spindle Signed binary
<Data unit>
(4 bytes) 1/min
+18 Actual speed of No.3 spindle Signed binary
<Data unit>
+21 (4 bytes) 1/min
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The actual spindle speed was read successfully.
4 The spindle speed in 'Data Attribute' has wrong values, that is, a value outside of the range -11 to -(9
+ 1) or 11 to (10 + n) (n: number of spindles).
- 603 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Spindle number(+10)
(Same as input data)
+10 Position coder-less actual Signed binary
spindle speed <Data unit>
+13 (4bytes) 1/min
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3spindles)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-12: Read spindles on No.1 to No.3 axes.
-12
(Same as input data)
+10 Position coder-less actual No.1 Signed binary
spindle speed <Data unit>
(4bytes) 1/min
+14 Position coder-less actual No.2 Signed binary
spindle speed <Data unit>
(4bytes) 1/min
+18 Position coder-less actual No.3 Signed binary
spindle speed <Data unit>
+21 (4bytes) 1/min
- 604 -
B-64393EN/02 5.WINDOW FUNCTIONS
5.5.13 Entering Torque Limit Data for the Digital Servo Motor (Low-
speed Response)
Torque limit values for the digital servo motor can be entered.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
2
CAUTION
1 To use this function, you should set the CNC parameter No. 6286#0 to 1.
2 Calculate the torque limit data assuming that the value of CNC parameter
No.2060 is 100%. And, when using the standard parameter of servo motor, the
value of 100% means the maximum torque of it.
Completion codes
0: Torque limit data has been entered normally.
4: The specified data attribute is invalid. That is, a value other than 1 to n (number of axes) was
specified, or the specified axis No. was greater than the number of controlled axes.
113: The CNC status is that the writing data cannot be allowed. You should confirm that the CNC
parameter No. 6286#0 is set to 1.
- 605 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
(Same as input data)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Torque limit data Unsigned binary
(2 byte) <Unit : %>
+11 (Same as input data) Values from 0 to 255 correspond to 0% to 100%
- 606 -
B-64393EN/02 5.WINDOW FUNCTIONS
L
Load (%) = ×λ
32767
NOTE
The "λ" is equal to the value of parameter No. 4127.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=0: Read the load of the No.1 spindle
Spindle number N=1: Read the load of the No.2 spindle
N=2: Read the load of the No.3 spindle
N=3: Read the load of the No.4 spindle
N=-1: Read the loads of the No.1 and No.2 spindle
N=-2: Read the loads of the No.1 to No.3 spindles
N=-3: Read the loads of the No.1 to No.4 spindles
+8 (Data attribute M) Set 0 to this field.
0
Completion codes
0 Load information of the serial spindle has been read normally.
- 607 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
Spindle number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Load information of the serial Unsigned binary, 2 bytes long
spindle
+11
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(2bytes * 3spindles)
+6 (Data number N) N=-2: Read the loads of the No.1 to No.3 spindles
-2
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Load information of the 1st serial Unsigned binary, 2 bytes long
spindle
+14 Load information of the 3rd serial Unsigned binary, 2 bytes long
spindle
+15
- 608 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=11: Actual speed (rev / min)
11
Completion codes
0 Normal completion
3 The data number is invalid.
4 The data attribute is invalid.
- 609 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
11
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Actual speed Signed binary format in 4 bytes length
Data unit: "rev / min" for a rotary motor, "cm / min" for
+13 (4 bytes) a linear motor
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
11
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Actual speed for 1st axis Signed binary format in 4 bytes length
Data unit: "rev / min" for a rotary motor, "cm / min" for
(4 bytes) a linear motor
+14 Actual speed for 2nd axis Signed binary format in 4 bytes length
Data unit: "rev / min" for a rotary motor, "cm / min" for
(4 bytes) a linear motor
+18 Actual speed for 3rd axis Signed binary format in 4 bytes length
Data unit: "rev / min" for a rotary motor, "cm / min" for
+21 (4 bytes) a linear motor
- 610 -
B-64393EN/02 5.WINDOW FUNCTIONS
(2) Reading the thermal simulation data (OVC data) (Data number N = 14)
Reading the thermal simulation data (OVC data) of servo motor.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=14: Thermal simulation data (OVC data).
14
Completion codes
0 Normal completion
3 The data number is invalid.
4 The data attribute is invalid.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
14
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Thermal simulation data Signed binary format in 2 bytes length
Data unit: %
(2 bytes) The OVC alarm will happen when this value is
+11 100 %.
- 611 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(2bytes * 3axes)
+6 (Data number N)
14
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Thermal simulation data for 1st Signed binary format in 2 bytes length
axis Data unit: %
(2 bytes) The OVC alarm will happen when this value is
100 %.
+12 Thermal simulation data for 2nd Signed binary format in 2 bytes length
axis Data unit: %
(2 bytes) The OVC alarm will happen when this value is
100 %.
+14 Thermal simulation data for 3rd Signed binary format in 2 bytes length
axis Data unit: %
(2 bytes) The OVC alarm will happen when this value is
+15 100 %.
- 612 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) N=15: Torque command.
15
Completion codes
0 Normal completion
3 The data number is invalid.
4 The data attribute is invalid.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
15
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Torque command Signed binary format in 2 bytes length
Data: This data is nomalized from -6554 to 6554.
+11 (2 bytes)
- 613 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(2bytes * 3axes)
+6 (Data number N)
15
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
+10 Torque command for 1st axis Signed binary format in 2 bytes length
Data: This data is nomalized from -6554 to 6554.
(2 bytes)
+12 Torque command for 2nd axis Signed binary format in 2 bytes length
Data: This data is nomalized from -6554 to 6554.
(2 bytes)
+14 Torque command for 3rd axis Signed binary format in 2 bytes length
Data: This data is nomalized from -6554 to 6554.
+15 (2 bytes)
- 614 -
B-64393EN/02 5.WINDOW FUNCTIONS
NOTE
The abnormal load detection function option is required. For detailed settings of
parameters and so forth, refer to the description of abnormal load detection in
the Connection Manual (Function).
Parameter No.2165 N
less than 20 The value of No.2165
20 or more The value that is rounded down below the one's digit of the value of No.2165
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The estimate disturbance torque data have been read normally.
4 The data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is
the number of axes). Alternatively, the specified axis number is greater than the number of
controlled axes.
- 615 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Estimate disturbance torque data (A negative value is represented in 2's complement)
for the controlled axis specified
+11 (2 bytes)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(2bytes * 3axes)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Estimate disturbance torque data Signed binary(A negative value is represented in 2's
for first axis complement)
(2 bytes)
+12 Estimate disturbance torque data Signed binary(A negative value is represented in 2's
for second axis complement)
(2 bytes)
+14 Estimate disturbance torque data Signed binary(A negative value is represented in 2's
for third axis complement)
+15 (2 bytes)
- 616 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
1
Completion codes
0 The estimate disturbance torque data have been read normally.
4 The data specified as the data attribute is invalid because it is neither a value from -1 to -(n-1) nor a
value from 1 to n (n is the number of axes). Alternatively, the specified axis number is greater than
the number of controlled axes.
- 617 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
1
(Same as input data)
+8 (Data attribute M)
Spindle number
(Same as input data)
+10 Estimate disturbance torque data Signed binary
for the controlled axis specified (A negative value is represented in 2's complement)
+11 (2 bytes)
+2 (Completion code)
?
(See above description)
+4 (Data length L)
6
(2bytes * 3spindles)
+6 (Data number N)
1
(Same as input data)
+8 (Data attribute M) -2: Read the loads of the No.1 to No.3 spindles
-2
(Same as input data)
+10 Estimate disturbance torque data Signed binary
for first axis (A negative value is represented in 2's complement)
(2 bytes)
+12 Estimate disturbance torque data Signed binary
for second axis (A negative value is represented in 2's complement)
(2 bytes)
+14 Estimate disturbance torque data Signed binary
for third axis (A negative value is represented in 2's complement)
+15 (2 bytes)
- 618 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N) Set 0 to this field.
0
- 619 -
5.WINDOW FUNCTIONS B-64393EN/02
Completion codes
0 Success to set the value of relative coordinate.
4 Data specified for the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is the
number of axes). Alternatively, the specified axis number is greater than the number of controlled
axes.
5 Relative coordinate is out of range.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
(4*n bytes)
- 620 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) 0 : Machine position taht servo delay and
Data type acceleration/deceleration delay is not applied.
1 : Machine position taht servo delay and
acceleration/deceleration delay is applied.
+8 (Data attribute M) 1 to n (n is the number of axes in the CNC-path) :
Axis number Reads the value of a specified axis.
-1 : Reads the value of all axes in the CNC-path.
+10 (Data area)
-
(Need not to be set)
Completion codes
0 The machine position was read successfully.
3 The data specified as the data number is invalid.
4 The data specified as the data attribute is invalid because it is neither -1 nor a value from 1 to n (n is
the number of axes). Alternatively, the specified axis number is greater than the number of
controlled axes.
13 CNC is busy.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Data type
(Same as input data)
+8 (Data attribute M)
Axis number
(Same as input data)
+10 Machine position Signed binary format in 4 bytes length.
+13 (4 bytes)
- 621 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
12
(4bytes * 3axes)
+6 (Data number N)
Data type
(Same as input data)
+8 (Data attribute M) M=-1: All axes.
-1
(Same as input data)
+10 Machine position of 1st axis Signed binary format in 4 bytes length
(4 bytes)
+14 Machine position of 2nd axis Signed binary format in 4 bytes length
(4 bytes)
+18 Machine position of 3rd axis Signed binary format in 4 bytes length
+21 (4 bytes)
CAUTION
The position is read in the machine unit, independently of input system.
Therefore, the read value differs from the position on CNC screen when
displaying machine coordinates on the ACTUAL POSITION screen with input
system (CNC parameter No.3104#0=1) on a machine that has difference unit of
input and output system.
NOTE
1 The reading position does not depend on the diameter or radius setting even
using the Diamiter and Radius Setting Switching function but depends only on
the setting of the CNC parameter No. 1006#3 (DIAx).
2 To read a machine position that servo delay and acceleration/deceleration delay
is applied, set 1 to the CNC parameter No.11313#7.
3 When reading a machine position without servo delay and
acceleration/deceleration delay, the update cycle of the machine position
becomes faster by setting 1 to the CNC parameter No. 11300#5 (MPH). You
should apply this setting only if necessary because this setting may lower the
performance of CNC a little.
- 622 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
+8 (Data attribute M)
Tool No.
CAUTION
1 When the tool number is set to "0", the tool group number of the currently used
tool is read. If a tool group number is not specified after the power is turned ON,
tool group number "0" is read.
2 If the same tool belongs to two or more tool groups, 32 tool groups can be read
in the maximum. In this case, 128 bytes are required as the data area in the
maximum.
Completion codes
0 The tool group number is read successfully.
4 The tool number in 'Data Attribute' has a wrong value.
5 The tool number is not registered.
6 The tool life management option has not been added on.
- 623 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool No.
(Same as input data)
+10 Tool group No. Unsigned binary
+13 (4 bytes)
(2) When the specified tool is registered in multiple groups. (ex. number of registered grou is 3)
+2 (Completion code)
?
(See above description)
+4 (Data length L) 'n' is the number of tool groups to which the specified
12 tool belongs
(4bytes * n)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool No.
(Same as input data)
+10 Tool group No. Unsigned binary
(4 bytes)
+14 Tool group No. Unsigned binary
(4 bytes)
+18 Tool group No. Unsigned binary
+21 (4 bytes)
- 624 -
B-64393EN/02 5.WINDOW FUNCTIONS
Parameter 6800
GS2 GS1 Number of tool groups Tools per group
0 0 1/8 of Max. pairs (No.6813) 32
0 1 1/4 of Max. pairs (No.6813) 16
1 0 1/2 of Max. pairs (No.6813) 8
1 1 Max. pairs (No.6813) 4
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
Completion codes
0 The number of tool group numbers has been read successfully.
6 No option for the tool life management.
- 625 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Number of tool groups Unsigned binary
+13 (4 bytes)
- 626 -
B-64393EN/02 5.WINDOW FUNCTIONS
Parameter 6800
GS2 GS1 Number of tools in a tool group
0 0 1 to 32
0 1 1 to 16
1 0 1 to 8
1 1 1 to 4
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected.
While no tool group is selected yet after power-on of CNC, "0" of the tool group
number results "0" of number of tools.
Completion codes
0 The number of tools has been read successfully.
3 The specified tool group number is incorrect.
6 No option for the tool life management.
- 627 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Number of tools Unsigned binary
+13 (4 bytes)
- 628 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected.
While no tool group is selected yet after power-on of CNC, "0" of the tool group
number results "0" of tool life value.
Completion codes
0 The tool life has been read successfully.
3 The specified tool group number is incorrect.
6 No option for the tool life management.
- 629 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Tool life Unsigned binary
Time or number or cycles
+13 (4 bytes)
In case the tool group chooses machining time to manage the lives of the tools, CNC parameter
No.6805#0(FCO) determines the unit of the return value as below.
FCO Unit
0 1 minute
1 0.1 minute
- 630 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected.
While no tool group is selected yet after power-on of CNC, "0" of the tool group
number results "0" of tool life counter.
Completion codes
0 The tool life has been read successfully.
3 The specified tool group number is incorrect.
6 No option for the tool life management.
- 631 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Tool life counter Unsigned binary
Time or number or cycles
+13 (4 bytes)
In case the tool group chooses machining time to manage the lives of the tools, CNC parameter
No.6805#0(FCO) determines the unit of the return value as below.
FCO Unit
0 1 minute
1 0.1 minute
- 632 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of tool length compensation number.
Completion codes
0 The tool length compensation number has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not found in the specified tool group.
6 No option for the tool life management.
- 633 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Tool length compensation Unsigned binary
number
+13
(4 bytes)
- 634 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected. While no tool group is selected yet after power-on of CNC, specifying
the current group results "0" of tool length compensation number.
Specifying "0" to the tool order number means the tool that is currently used. If
the tool group has not ever been selected, tool order number "0" means the first
tool in the group instead.
Completion codes
0 The tool length compensation number has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool order number is incorrect.
5 The specified tool group has no tool in the specified tool order position.
6 No option for the tool life management.
- 635 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool length compensation Unsigned binary
number
+13
(4 bytes)
- 636 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of cutter radius compensation number.
Completion codes
0 The cutter radius compensation number has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number was not found in the specified tool group.
6 No option for the tool life management.
- 637 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Cutter compensation number Unsigned binary
+13 (4 bytes)
- 638 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
CAUTION
If 0 is specified for the tool group number, the tool group currently used is
referred. In this case, if any tool group has not been used since the power to the
CNC was turned on, 0 is read.
When 0 is specified for the tool order number, the data of the current tool in the
tool group is read if the group has already been used, or the data of the first tool
in the group is read if the group has not ever used.
Completion codes
0 The cutter radius compensation number has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool order number is incorrect.
5 The specified tool group has no tool in the specified tool order position.
6 No option for the tool life management.
- 639 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Cutter compensation number Unsigned binary
+13 (4 bytes)
- 640 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of tool status information.
Completion codes
0 The tool status information has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number was not found in the specified tool group.
6 No option for the tool life management.
- 641 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Tool status information 0: See "CAUTION" on the previous page.
(4 bytes) 1: The tool is registered.
2: The tool has reached the end of its life.
3: The tool was skipped.
+13 The three high-order bytes are fixed to 0.
- 642 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected. While no tool group is selected yet after power-on of CNC, specifying
the current group results "0" of tool status information.
Specifying "0" to the tool order number means the tool that is currently used. If
the tool group has not ever been selected, tool order number "0" means the first
tool in the group instead.
Completion codes
0 The tool status information has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool order number is incorrect.
5 The specified tool group has no tool in the specified tool order position.
6 No option for the tool life management.
- 643 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool status information 0: See "CAUTION" on the previous page.
(4 bytes) 1: The tool is registered.
2: The tool has reached the end of its life.
3: The tool was skipped.
+13 The three high-order bytes are fixed to 0.
- 644 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected. While no tool group is selected yet after power-on of CNC, specifying
the current group results "0" of tool number.
Specifying "0" to the tool order number means the tool that is currently used. If
the tool group has not ever been selected, tool order number "0" means the first
tool in the group instead.
Completion codes
0 The tool number has been read successfully.
3 The specified tool group number is incorrect.
4 The specified tool order number is incorrect.
5 The specified tool group has no tool in the specified tool order position.
6 No option for the tool life management.
- 645 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool number Unsigned binary
+13 (4 bytes)
- 646 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected. While no tool group is selected yet after power-on of CNC, "0" of the
tool group number results "0" of tool life counter type.
Completion codes
0 The tool life counter type has been read successfully.
3 The specified tool group number is incorrect.
6 No option for Tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Tool life counter type 0: No counter type
1: Frequency
+11 (2 bytes) 2: Real time
- 647 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
8
+8 (Data attribute M)
Tool number
+17
NOTE
CNC parameter FCO(6805#0) decides the unit of tool life value of real time
counter type as follows:
6805#0 = 0 : 1 minute (1–4300)
6805#0 = 1 : 0.1 minute (1–43000)
Completion codes
0 Succeeded to register the tool group.
3 The specified tool group number is incorrect.
4 The tool number in 'Data attribute' has wrong value.
5 The length of tool life in 'Data area' is out of range.
6 No option for the tool life management.
- 648 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
8
(Same as input data)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Tool group number
(2 bytes)
(Same as input data)
+12 Tool life counter type
(2 bytes)
(Same as input data)
+14 Length of Tool life
(4 bytes)
+17 (Same as input data)
- 649 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+13
NOTE
CNC parameter FCO(6805#0) decides the unit of tool life value of real time
counter type as follows:
6805#0 = 0 : 1 minute (1–4300)
6805#0 = 1 : 0.1 minute (1–43000)
Completion codes
0 Succeeded to set the length of tool life.
3 The specified tool group number is incorrect.
5 The length of tool life is out of range.
6 No option for the tool life management.
13 The data of the currently selected tool group or the next tool group cannot be rewritten. An attempt
was made to rewrite the data of the currently selected tool group or the next group.
- 650 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Length of Tool life
(4 bytes)
+13 (Same as input data)
- 651 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+13
NOTE
CNC parameter FCO(6805#0) decides the unit of tool life value of real time
counter type as follows:
6805#0 = 0 : 1 minute (1–4300)
6805#0 = 1 : 0.1 minute (1–43000)
Completion codes
0 Succeeded to set the tool life counter.
3 The specified tool group number is incorrect.
5 The value for tool life counter is out of range.
6 No option for the tool life management.
- 652 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Length of Tool life
(4 bytes)
+13 (Same as input data)
- 653 -
5.WINDOW FUNCTIONS B-64393EN/02
5.6.17 Writing Tool Life Management Data (Tool Life Counter Type)
(Low-speed Response)
This function sets the tool life counter type of specified tool group in the tool life management data.
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
2
+6 (Data number N)
Tool group number
Completion codes
0 Succeeded to set the tool life counter type.
3 The specified tool group number is incorrect.
5 The value for tool life counter type is wrong.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
(Same as input data)
+10 Tool life counter type
(2 bytes)
+11 (Same as input data)
- 654 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
+13 (4 bytes)
Completion codes
0 Succeeded to set the tool length compensation number.
3 The specified tool group number is incorrect.
4 The tool number in 'Data attribute' has wrong value.
5 The tool number is not found in the tool group.
6 No option for the tool life management.
Output data structure
Top Address +0 (Function code)
167
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Tool length compensation
number
(4 bytes)
+13 (Same as input data)
CAUTION
The effective value for tool length compensation number depends on tool
compensation number available on CNC.
- 655 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
+13 (4 bytes)
Completion codes
0 Succeeded to set the tool length compensation number.
3 The specified tool group number is incorrect.
4 The tool order number is wrong.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool length compensation
number
(4 bytes)
+13 (Same as input data)
CAUTION
The effective value for tool length compensation number depends on tool
compensation number available on CNC.
- 656 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
Completion codes
0 Succeeded to set the cutter radius compensation number.
3 The specified tool group number is incorrect.
4 The tool number in 'Data attribute' has wrong value.
5 The tool number is not found in the tool group.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Cutter radius compensation
number (4 bytes)
+13 (Same as input data)
CAUTION
The effective value for Cutter radius compensation number depends on tool
compensation number available on CNC.
- 657 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
Completion codes
0 Succeeded to set the cutter radius compensation number.
3 The specified tool group number is incorrect.
4 The tool order number is wrong.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Cutter radius compensation
number (4 bytes)
+13 (Same as input data)
CAUTION
The effective value for cutter radius compensation number depends on tool
compensation number available on CNC.
- 658 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
2
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
Completion codes
0 The tool information is written successfully.
3 The tool group number exceeds maximum number of registered groups.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 The tool life management option has not been added on.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+10 Tool information
(2 bytes)
+11 (Same as input data)
- 659 -
5.WINDOW FUNCTIONS B-64393EN/02
- 660 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
2
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
Completion codes
0 The tool information has been set successfully.
3 The specified tool group number is incorrect.
4 The tool order number is incorrect.
6 No option for Tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool information
(2 bytes)
+11 (Same as input data)
- 661 -
5.WINDOW FUNCTIONS B-64393EN/02
- 662 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
Completion codes
0 Succeeded to register the tool number.
3 The specified tool group number is incorrect.
4 The tool order number is wrong.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
(Same as input data)
+10 Tool number
(4 bytes)
+13 (Same as input data)
- 663 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N) Set 0 to this field.
0
+8 (Data attribute M)
Tool number
NOTE
1 When the tool number is set to "0", the tool group number of the currently used
tool is read. If a tool group number is not specified after the power is turned ON,
tool group number "0" is read.
2 If the same tool belongs to two or more tool groups, 32 tool groups can be read
in the maximum. In this case, 128 bytes are required as the data area in the
maximum.
Completion codes
0 The tool group number is read successfully.
4 The tool number in 'Data Attribute' has a wrong value.
5 The tool number is not registered.
6 The tool life management option has not been added on.
- 664 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool group number Unsigned binary
+15 (4 bytes)
(2) When the specified tool is registered in multiple groups. (ex. number of registered grou is 3)
+2 (Completion code)
?
(See above description)
+4 (Data length L) 'n' is the number of tool groups to which the specified
12 tool belongs
(4bytes * n)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool group number Unsigned binary
(4 bytes)
+16 Tool group number Unsigned binary
(4 bytes)
+20 Tool group number Unsigned binary
+23 (4 bytes)
- 665 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of tool status information.
Completion codes
0 The tool information was read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 No option for the tool life management.
- 666 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool status information 0: See "CAUTION" on the previous page.
1: The tool is registered.
(4 bytes) 2: The tool has reached the end of its life.
3: The tool was skipped
+15 The three high-order bytes are fixed to 0.
- 667 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
8
+8 (Data attribute M)
Tool number
+19
NOTE
CNC parameter FCO(6805#0) decides the unit of tool life value of real time
counter type as follows:
6805#0 = 0 : 1 minute (1–4300)
6805#0 = 1 : 0.1 minute (1–43000)
Completion codes
0 The tool length was registered successfully.
3 The specified tool group number is incorrect.
4 The tool number in 'Data Attribute' has a wrong value.
5 The tool life value is out-of-range.
6 No option for the tool life management.
- 668 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
8
(Same as input data)
+6 (Data number N)
0
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool group number
(2 bytes)
(Same as input data)
+14 Tool life counter type
(2 bytes)
(Same as input data)
+16 Tool life value
(4 bytes)
+19 (Same as input data)
- 669 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of tool length compensation number.
Completion codes
0 The tool length compensation number was read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 No option for the tool life management.
- 670 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool length compensation Unsigned binary
number
+15 (4 bytes)
- 671 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
-
(Need not to be set)
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
CAUTION
Specifying "0" to the tool group number means the tool group that is currently
selected, and "0" to the tool number means the tool that is currently used in the
group.
While no tool group is selected yet after power-on of CNC, specifying the current
tool of the current group results "0" of cutter radius compensation number.
Completion codes
0 The cutter radius compensation number was read successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 No option for the tool life management.
- 672 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Cutter radius compensation Unsigned binary
number
+15 (4 bytes)
- 673 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
Completion codes
0 The tool length compensation number was written successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 No option for the tool life management.
Output data structure
Top Address +0 (Function code)
229
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool length compensation
number(4 bytes)
+15 (Same as input data)
CAUTION
The effective value for tool length compensation number depends on tool
compensation number available on CNC.
- 674 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
4
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
Completion codes
0 The cutter radius compensation number was written successfully.
3 The specified tool group number is incorrect.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
4
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Cutter radius compensation
number (4 bytes)
+15 (Same as input data)
CAUTION
The effective value for Cutter radius compensation number depends on tool
compensation number available on CNC.
- 675 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L)
2
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool number
Completion codes
0 The tool information is written successfully.
3 The tool group number exceeds maximum number of registered groups.
4 The specified tool number is incorrect.
5 The specified tool number is not registered to the specified tool group.
6 The tool life management option has not been added on.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
2
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool number
(Same as input data)
+12 Tool information
(2 bytes)
+13 (Same as input data)
- 676 -
B-64393EN/02 5.WINDOW FUNCTIONS
This function changes tool condition as shown below.
Command Before call After call
Skip (#) Unused ( )
clear Skip (#) In use (@)
Expired (*) Unused ( )
Unused ( ) Skip (#)
skip In use (@) Skip (#)
Expired (*) Skip (#)
- 677 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) Set 0 to this field.
0
+6 (Data number N)
Tool group number
Completion codes
0 Succeeded to delete the tool group number.
3 The specified tool group number is incorrect.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
0
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
+9 (Same as input data)
- 678 -
B-64393EN/02 5.WINDOW FUNCTIONS
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) Set 0 to this field.
0
+6 (Data number N)
Tool group number
+8 (Data attribute M)
Tool order number
+9
Completion codes
0 Succeeded to delete the tool group number.
3 The specified tool group number is incorrect.
4 The tool order number is wrong.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
0
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
Tool order number
+9 (Same as input data)
- 679 -
5.WINDOW FUNCTIONS B-64393EN/02
+2 (Completion code)
-
(Need not to be set)
+4 (Data length L) Set 0 to this field.
0
+6 (Data number N)
Tool group number
Completion codes
0 Succeeded to clear the tool life counter and the tool information.
3 The specified tool group number is incorrect.
6 No option for the tool life management.
+2 (Completion code)
?
(See above description)
+4 (Data length L)
0
(Same as input data)
+6 (Data number N)
Tool group number
(Same as input data)
+8 (Data attribute M)
0
+9 (Same as input data)
- 680 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
Screen title
[+]
Soft key page
Key entry line turning key
- 681 -
6.OPERATING THE PMC SCREEN B-64393EN/02
- 682 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
- 683 -
6.OPERATING THE PMC SCREEN B-64393EN/02
To switch from the operation soft keys to a specific PMC submenu or to the PMC main menu, click the
[<] soft key.
No operation soft keys are displayed when the screen requires no operation. In that case, the [(OPRT)]
soft key is not displayed, either.
On the other hand, a screen that involves multiple different functions consists of two or more layers of
operation soft keys.
In that case, to return from the operation soft keys of one layer to those of the previous layer, click the
[EXIT] soft key.
A transition diagram for the PMC main menu soft keys, PMC submenu soft keys, and operation soft keys
is shown below.
< (OPRT)
EXIT
The number of
operation soft key
Operation soft keys (2nd layer) layers differs for
each screen.
EXIT
- 684 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
Example) Ladder display/editing screen
Operate the ladder display/editing screen by switching three layers of operation soft keys - ladder display
operation soft keys (1st layer), ladder editing operation soft keys (2nd layer), and ladder net editing
operation soft keys (3rd layer).
- 685 -
6.OPERATING THE PMC SCREEN B-64393EN/02
There are two kinds of data protection for PMC. One is the Programmer Protection Function and another
is Protection of Data at 8 Levels.
The Programmer Protection Function is effective in standard. When the Protection of Data at 8 Levels is
added, the Programmer Protection Function becomes ineffective and the Protection of Data at 8 Levels
becomes effective.
PMC system provides various embedded programmer functions such as edit, diagnosis and debugging
which help the programming and debugging of sequence program. To use these functions which may
even disable safety mechanism realized by sequence program, it is required that the operator of these
functions should be an expert who fully understands the sequence program and the operation of PMC. It
is also strongly recommended to the developer of machine that these functions should be protected from
careless use by ordinary operators after the machine is shipped into the field. Furthermore, if these
functions partly need to be used in the field for any purpose such as the maintenance or adjustment, the
developer of the machine should implement any means to enable these functions after forcing the
machine in safe mode or should let the operator know and strictly follow proper procedure to ensure the
safety.
The setting parameters described in this section are provided for the developer of machine to be able to
properly program the sequence or control the parameters for necessary conditions on which the operator
is allowed to use PMC programmer functions safely by eliminating careless operation which may cause
"stopping the ladder", "changing sequence program" or "changing important setting data".
These parameters can be set on the setting screen or in some system keep relays (K900 to 999).
- 686 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
NOTE
The override function also requires the setting of "OVERRIDE ENABLE" in the
setting parameters.
WARNING
If the sequence program is stopped while the machine is operating, the machine
may cause unexpected operation. Before stopping the sequence program,
make sure that there is no one near the machine and that the tool will not collide
with the workpiece or machine. Operating the machine in any inappropriate
fashion can result in the death of or serious injury to the user. The tool,
workpiece, and/or machine can also be damaged.
CAUTION
Set this setting to "NO"(0) before shipment of the machine. If this setting is left
as "YES"(1), the operator may stop execution of the ladder program by mistake.
If you want to protect this setting, please make a sequence that always writes 0
in this bit by your ladder. Or please control the machine to force to translate into
safety state by sequence program using the way described in Section 2.2.4
when the ladder stops.
- 687 -
6.OPERATING THE PMC SCREEN B-64393EN/02
NOTE
Even if this parameter is set to "YES", these functions do not be hidden except
for Ladder monitor/editing screen if "PROGRAMMER ENABLE" is set to "YES".
NOTE
1 Even if this parameter is set to "YES", these functions which have program
display are invalid if "HIDE PMC PROGRAM" is set to "YES".
2 These screens with stop of ladder program require below setting "ALLOW PMC
STOP".
- 688 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
CAUTION
Set this setting to "NO"(0) before shipment of the machine if you want to prohibit
operator form editing the program. If you want to protect this setting, please
make a sequence that always writes 0 in this bit by your ladder.
NOTE
1 Even if this parameter is set to "YES", these functions which have program
display are invalid if "HIDE PMC PROGRAM" is set to "YES".
2 These editing screens require above setting "EDIT ENABLE".
WARNING
If the sequence program is stopped while the machine is operating, the machine
may cause unexpected operation. Before stopping the sequence program,
make sure that there is no one near the machine and that the tool will not collide
with the workpiece or machine. Operating the machine in any inappropriate
fashion can result in the death of or serious injury to the user. The tool,
workpiece, and/or machine can also be damaged.
CAUTION
Set this setting to "NO"(0) before shipment of the machine. If this setting is left
as "YES"(1), the operator may stop execution of the ladder program by mistake.
If you want to protect this setting, please make a sequence that always writes 0
in this bit by your ladder. Or please control the machine to force to translate into
safety state by sequence program using the way described in Section 2.2.4
when the ladder stops.
- 689 -
6.OPERATING THE PMC SCREEN B-64393EN/02
• Forcing function
• Override function (NOTE)
• The change of the PMC parameters from the timer, counter, keep relay, and data screens is disabled.
• The input of the PMC parameters from the PMC I/O screen is disabled.
NOTE
The override function also requires the setting of "OVERRIDE ENABLE" in the
setting parameters.
CAUTION
Set this setting to "NO"(0) before shipment of the machine. If this setting is left
as "YES"(1), the operator may modify PMC parameters or PMC signals by
mistake. If you want to protect this setting, please make a sequence that always
writes 0 in this bit by your ladder.
CAUTION
To enter the PMC parameters from the data I/O screen requires a special
operation. For information about how to enable the input of the PMC
parameters, see "Output from the data I/O screen" in Subsection 6.2.2.
- 690 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
CAUTION
1 To change the PMC parameters on an individual screen requires a special
operation. For information about how to enable the input of the PMC
parameters, see "Input from the PMC parameter screen" in Subsection 6.2.2.
2 To enter the PMC parameters from the data I/O screen requires a special
operation. For information about how to enable the input of the PMC
parameters, see "Output from the data I/O screen" in Subsection 6.2.2.
- 691 -
6.OPERATING THE PMC SCREEN B-64393EN/02
(2) If you want to allow operator only monitoring the sequence program;
• PROGRAMMER ENABLE (K900.1) "NO"
• HIDE PMC PROGRAM (K900.0) "NO"
• EDIT ENABLE (K901.6) "NO"
• ALLOW PMC STOP (K902.2) "NO"
NOTE
Please use the password function of sequence program for particular operator.
Please refer to FANUC LADDER-III operator's manual B-66234EN "5.4".
(3) If you want to allow operator monitoring and editing the sequence program;
• PROGRAMMER ENABLE (K900.1) "NO"
• HIDE PMC PROGRAM (K900.0) "NO"
• EDIT ENABLE (K901.6) "YES"
• ALLOW PMC STOP (K902.2) "NO"
NOTE
Please use the password function of sequence program for particular operator.
Please refer to FANUC LADDER-III operator's manual B-66234EN "5.4".
(4) If you want to allow operator monitoring and editing the sequence program which requires stop of
ladder;
• PROGRAMMER ENABLE (K900.1) "NO"
• HIDE PMC PROGRAM (K900.0) "NO"
• EDIT ENABLE (K901.6) "YES"
• ALLOW PMC STOP (K902.2) "YES"
NOTE
Please use the password function of sequence program for particular operator.
Please refer to FANUC LADDER-III operator's manual B-66234EN "5.4".
WARNING
If a sequence program is stopped while the machine is operating, the machine
may behave unexpectedly. Before stopping the sequence program, make sure
that nobody is near the machine and that the tool cannot interfere with the work-
piece or machine. Incorrect operation of the machine presents an extreme risk of
death or serious injury to the user. Damage the tool, work-piece, and/or the
machine is also likely.
- 692 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
(5) The case that operator who familiar with the machine and the ladder sequence operate all the PMC
programmer functions;
• PROGRAMMER ENABLE (K900.1) "YES"
• HIDE PMC PROGRAM (K900.0) "NO"
WARNING
If a sequence program is stopped while the machine is operating, the machine
may behave unexpectedly. Before stopping the sequence program, make sure
that nobody is near the machine and that the tool cannot interfere with the work-
piece or machine. Incorrect operation of the machine presents an extreme risk
of death or serious injury to the user. Damage the tool, work-piece, and/or the
machine is also likely.
(6) If you want to prohibit the editing and input/output of the ladder and allow the input/output of the
PMC parameters:
• PROGRAMMER ENABLE (K900.1) "NO"
• RAM WRITE ENABLE (K900.4) "NO"
• HIDE PMC PROGRAM (K900.0) "YES"
• EDIT ENABLE (K901.6) "NO"
• ALLOW PMC STOP (K902.2) "NO"
• HIDE PMC PARAM (K902.6) "NO"
• PROTECT PMC PARAM (K902.7) "NO"
NOTE
1 To input the PMC parameters, place the NC in the emergency stop state and set
the PWE parameter, which is one of the NC parameters, to 1.
2 To output the PMC parameters, set the EDIT mode.
- 693 -
6.OPERATING THE PMC SCREEN B-64393EN/02
NOTE
1 These operations may be protected by the programmer protection function. For
details of the programmer protection function, see "PROTECT PMC PARAM" in
Subsection 6.2.1.
2 If you set "RAM WRITE ENABLE" to "YES", the change of the PMC parameters
is enabled, regardless of the above operations and the other protection. For
details "RAM WRITE ENABLE", see "RAM WRITE ENABLE" in Subsection
6.2.1.
The guidance message displayed when protected PMC parameters are inputted on the PMC parameters
screen.
Guidance message Contents
MUST BE IN EMERGENCY STOP OR IN MDI MODE NC is not in edit mode and not in emergency stop mode.
PWE MUST BE ON PWE is 0.
EITHER PWE OR KEY4 MUST BE ON PWE is 0 and KEY4 signal is 0.
THIS FUNCTION IS PROTECTED This function is protected by the programmer protection
function or protection of data at 8 levels.
- 694 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
(2) If the sequence program is being debugged and can be stopped (STOP state)
(a) Place the sequence program in the stop state.
(b) The protection of the parameters is canceled, making it possible to enter them.
NOTE
1 These operations may be protected by the programmer protection function. For
details of the programmer protection function, see "PROTECT PMC PARAM" in
Subsection 6.2.1.
2 If you set "RAM WRITE ENABLE" to "YES", the input of the PMC parameters
from the PMC I/O screen is enabled, regardless of the above operations and the
other protection. For details "RAM WRITE ENABLE", see "RAM WRITE
ENABLE" in Subsection 6.2.1.
The guidance message displayed when protected PMC parameters are inputted on the I/O screen.
Guidance message Contents
MUST BE IN EMERGENCY STOP OR IN EDIT MODE CNC is not in emergency stop or EDIT mode.
PWE MUST BE ON PWE is 0.
THIS FUNCTION IS PROTECTED This function is protected by the programmer protection
function or protection of data at 8 levels.
(2) If the sequence program is being debugged and can be stopped (STOP state)
(a) Place the sequence program in the stop state.
(b) The protection of the parameters is canceled, making it possible to enter them.
NOTE
These operations may be protected by the programmer protection function. For
details of the programmer protection function, see "PROTECT PMC PARAM" in
Subsection 6.2.1.
The guidance message displayed when protected PMC parameters is outputted on the I/O screen.
Guidance message Contents
MUST BE IN EMERGENCY STOP OR IN EDIT MODE CNC is not in emergency stop or EDIT mode.
THIS FUNCTION IS PROTECTED This function is protected by the programmer protection
function or protection of data at 8 levels.
- 695 -
6.OPERATING THE PMC SCREEN B-64393EN/02
NOTE
1 Once you cancel the password, you will not be asked to enter the password until
you either shut down the system and turn on its power again or replace the
ladder program using the I/O or other function.
2 The sequence program that lets you turn on the power by pressing "X" and "O"
simultaneously can be cleared, regardless of whether the password is set or not.
3 When K903.2=1, you will not be asked to enter the password.
- 696 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
[ZOOM]
[EXIT] [EDIT]
When the message appears prompting you
to enter the password for displaying data,
Ladder editing enter the display permission password or
screen edit permission password (*1) (*2).
NOTE
1 When only the display permission password is set, both the display and editing
functions are protected.
When only the edit permission password is set, the editing function is protected.
When both the display permission password and edit permission password are
set, both the display and editing functions are protected. In that case, you can
cancel the protection of the display and editing functions by using the edit
permission password.
2 Enter the password when you want to display the content of a program protected
by the partial protection function by using the [ZOOM] soft key.
- 697 -
6.OPERATING THE PMC SCREEN B-64393EN/02
Ladder program
Level 1 Protected area:
Level 2 Display and edit permission
Level 3 passwords can protect the area
from displaying and editing.
Subprogram Machine tool builders can edit the
P1 to P1499 programs in this area
Subprogram
P1500 to P5000 Unprotected area:
Dealers or end users can edit the
programs in this area.
CALL
Setting method
On FANUC LADDER-III, you should set the edit permission password which has “#” character at the
beginning of string (Up to 16 characters including “#”)
The subprograms from P1500 to P5000 can be displayed and edited regardless of the password protection.
Even if you set the display permission password, the display of subprograms from P1500 to P5000 is not
protected owing to this function.
Table 6.2.4 The protection status of each program for partial protection function
Protected/
Program type
not protected
Level 1 The display and editing functions are protected by each password.
Main programs Level 2
Level 3
P1 to P1499
Sub programs
P1500 to P5000 You can display and edit the subprograms without password.
NOTE
This function can be used only for 0i-D PMC.
- 698 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
NOTE
For the details of the protection of data at 8 levels on CNC, please refer to the
Connection Manual (Function) of CNC. And, please refer to the Users Manual of
CNC for the details of operation of setting the protection levels.
CAUTION
When the protection of data at 8 levels is added, the ordinary programmer
protection function of PMC becomes ineffective. But, the password function of
PMC is available with the protection of data at 8 levels at the same time.
WARNING
All protection levels of PMC item are level 0 in the initial condition. Namely, all
PMC data are not protected. Therefore, please set the opportune level (value) to
prevent a miss operation.
Operation level
8 operation levels can be set for CNC and PMC operation.
Operation levels 0 to 3 are selected by the memory protection key signal. Operation levels 4 to 7 are
selected by password.
When operation level 4 to 7 is set, the operation level remains unchanged until the password is cleared.
(The operation level also remains unchanged if the power is turned off.)
Operation level 7 is reserved for CNC and PMC maintenance.
- 699 -
6.OPERATING THE PMC SCREEN B-64393EN/02
NOTE
1 Some data types do not have an output function.
2 For data whose protection level is higher than the operation level, the protection
level cannot be changed.
3 The current data protection level cannot be changed to a protection level that is
higher than the current operation level.
4 The I/O protection level of message data for multi-language display is the same
as the I/O protection level of sequence programs.
- 700 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
5 Move the cursor to “CHANGE” level or “OUTPUT” level of a desired data item.
6 Key in a new desired level, then press the [INPUT] soft key.
- 701 -
6.OPERATING THE PMC SCREEN B-64393EN/02
Fig. 6.3 (a) Ladder diagram screen (extended symbol and comment)
Fig. 6.3 (b) Signal status screen (extended symbol and comment)
When using extended symbol and comment, you can define local symbols in each sub-program.
Moreover, you can define multiple symbol and comment to one signal.
- 702 -
B-64393EN/02 6.OPERATING THE PMC SCREEN
However, only one symbol and comment can to be displayed on PMC screen except I/O diagnosis screen
and symbol and comment screen, for a PMC address.
The priority of displaying symbol and comment, and range of search function is defined as follows.
NOTE
When multiple symbol and comment are defined in one signal, you can search
each symbol name. On the other hand the symbol displayed on PMC screen is
one of these symbol names. So if you search a symbol, displayed symbol name
on searched position may be different from searched word.
- 703 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
SYSTEM
- 704 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
The additional information line at the bottom of the screen displays the symbol and comment of the
address on which the cursor is placed. When the cursor is placed on a byte, the byte symbol and
comment are displayed.
Table contents
• ADDRESS: Address referenced by a sequence program
• 0 to 7: Data at each bit position
• HEX: Display of each byte in hexadecimal
• DEC: Display of each byte in decimal
Operation procedure
(1) Press the [STATUS] soft key. The screen shown above appears.
(2) Key in an address whose data to be displayed, then press the [SEARCH] soft key.
(3) The data starting at the input address is displayed as a bit pattern.
(4) To display the data at another address, press the cursor keys, page keys, or [SEARCH] soft key.
(5) To modify the status of a signal, switch to the forced I/O screen by pressing the [FORCE] soft key.
NOTE
The [FORCE] soft key is displayed and usable when the forced I/O function is
enabled. For details, see Section 6.2.
- 705 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
(6) On the forced I/O screen, an overridden X signal or Y signal is prefixed by a greater-than sign (>) to
indicate the setting of override.
Address search Switching to display in decimal Switching to the forced I/O screen
- 706 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
WARNING
1 Special care must be exercised when modifying a signal with the forced
Input/output function. If the forced input/output function is used incorrectly, the
operation of the machine may be unpredictable. Never use this function when
person are near the machine.
2 The Override function is a special function for debugging the ladder program.
Therefore, when shipping the machine, please disable the Override function
invariably.
3 When using the Override function, the update cycle of input/output signals of I/O
Link becomes to the same as the first level execution cycle of ladder program
(8ms). Do not use the Override function when you debug the ladder program
that is affected by the changing of update cycle of I/O signals.
4 The I/O setting values of the Override function are cleared when the power is
turned off. So, Override settings for all signals are reset when cycling the power
of CNC.
Machine
I/O address
Overwrite
X,Y
Overwrite
- 707 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Example 1:
Forced I/O is performed for R0 in the following ladder program:
X0.0
MOVE 1111
1111
K0
R0
Example 2:
Forced I/O is performed for X0 in a configuration where the I/O Unit-MODEL A is connected
to X0 via the I/O Link.
A value input from the I/O Unit-MODEL A is transferred to X0 cyclically. So, even if the
value of X0 is modified forcibly during a period, X0 is overwritten in the next cycle by the
value input from the I/O Unit-MODEL A.
I/O Unit-MODEL A NC
X0 = FFh X0 = FFh
X0 = FFh X0 = FFh
A value may be cyclically transferred even to an unallocated address. So, the forced I/O
function for X in the forced I/O mode must be used when a sequence program is debugged with
no I/O device connected or allocated.
When an I/O device is connected, use the override mode, described below, to debug a sequence
program.
- 708 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Example:
Forced I/O is performed for X0 in a configuration where the I/O Unit-MODEL A is connected
to X0 via the I/O link.
I/O Unit-MODEL A NC
X0 = FFh
X0 = FFh
I/O Unit-MODEL A × NC
Transfer from the I/O Unit-MODEL
A is disabled.
X0 = FFh
X0 = FFh
I/O Unit-MODEL A × NC
X0 = FFh X0 = 00h
In this way, the forced I/O function for X in the override mode can also be used to debug a sequence
program when an I/O device is connected. If the override state is set for an Y address, a value after
modification by forced I/O is output to the I/O device.
- 709 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Input mode
Additional information
line
In the input mode display area to the right of the title, "OVERRIDE" is displayed only when the forced
I/O mode is set to the override mode.
The signal status display area indicates the signal status of each address. The status shown below is
indicated for X and Y signal bits for which override is set.
(1) X signal
(Input signal from the I/O device) → (Input signal to the ladder)
The hexadecimal or decimal display field on the rightmost position of the screen displays the value
of the input signal to the ladder on the right side.
(2) Y signal
(Output signal from the ladder)→(Output signal to the I/O device)
The hexadecimal or decimal display field on the rightmost position of the screen displays the value
of the output signal from the ladder on the left side.
- 710 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
The message display line at the bottom of the screen displays an error message as required.
Soft keys on the forced I/O screen
Forced I/O
Address search Switching to decimal input Switching to the signal status display screen
Override
Switching to the signal status
Address search Switching to decimal input display screen
- 711 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 712 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Page display
In the alarm message display area, an alarm message output from the PMC is displayed. When many
alarm messages are output to two or more pages, the page keys can be used to switch from one page to
another.
In the page display area to the right of the title, the number of the page currently displaying messages is
indicated.
- 713 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Method of input
(1) As the data delimiter, ";" (EOB) is used.
Example: "100;200;300;" + Input key
(2) With ;=, the value of the immediately preceding data item is input.
Example: "100;=;=;200;=" + Input key inputs 100,100,100,200,200.
(3) With ;;, data items can be input, skipping an address.
Example: "100;;100" + Input key inputs no data for the second item.
(4) With "R;input-value;count", the same value can be input as many times as a specified count.
Example: "R;100;200" + Input key inputs two hundred 100s in a column.
- 714 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Page display
Comment display
area
NOTE
When using a display unit which has 7 soft keys, the comment display mode is
not available.
- 715 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Table contents
• NO.: Timer number specified for a functional instruction timer.
• ADDRESS: Address referenced by a sequence program
• PRESET: Timer setting value
• ACC: Timer accuracy
• COMMENT: T address comment
In the PRESET column, timer setting values are displayed. When the timer accuracy is 8, 48, 1, 10, or
100 msec, only a numeric value is displayed. When the timer accuracy is the second or minute, a time
value is displayed using H, M, and S with the separator "_" used to delimit one unit from another as
follows:
aaH_bbM_ccS
In the ACC column, timer accuracy values are displayed. The table below indicates the time setting
values and notation of each accuracy value.
Timer No. Accuracy notation Minimum time setting Maximum time setting
1 to 8 48 (initial value) 48 msec 1572.8 seconds
9 to 250 8 (initial value) 8 msec 262.1 seconds
1 to 250 1 1 msec 32.7 seconds
1 to 250 10 10 msec 327.7 seconds
1 to 250 100 100 msec 54.6 minutes
1 to 250 S 1 second 546 minutes
1 to 250 M 1 minute 546 hours
NOTE
Above table is for 0i-D PMC. The timer number is 1 to 40 in 0i Mate-D PMC/L.
The additional information line at the bottom of the screen displays the symbol and comment of the
address on which the cursor is placed.
Setting accuracy to an initial value Setting accuracy to 100 msec Setting accuracy to 1 minute
- 716 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
- 717 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Page display
Comment display
area
NOTE
When using a display unit which has 7 soft keys, the comment display mode is
not available.
Table contents
• NO.: Counter number specified for a functional instruction counter
- 718 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
The additional information line at the bottom of the screen displays the symbol and comment of the
address on which the cursor is placed. If the cursor is placed on a PRESET value, the symbol and
comment of the address of the PRESET value are displayed. If the cursor is placed on a CURRENT
value, the symbol and comment of the address of the CURRENT value are displayed.
- 719 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Page display
For details of the area for the PMC management software, see Subsection 2.2.11.
CAUTION
If the area for the PMC management software is protected by the programmer
protection function, the area is not displayed on the KEEP RELAY screen. For
details, see Section 6.2.
- 720 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Screen operations
Soft keys on the KEEP RELAY screen
K address search
CAUTION
1 Do not use the special use area, because the relays in this area are reserved for
PMC system software use, and they affect behavior of the PMC software. Set
"0" to any relays that are not mentioned below, to prevent unexpected behavior
of PMC.
2 Be sure to set the reserved portion of the area for the PMC management
software to 0.
- 721 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Display of the
number of groups
Page display
Comment
display area
- 722 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
When using a display unit which has 7 soft keys, the comment display mode is
not available.
Table contents
• GROUP TABLE COUNT: Number of data items in the data table
• NO.: Group number
• ADDRESS: Data table start address
• PARAMETER: Data table control parameter
• TYPE: Data length (0 = 1 byte, 1 = 2 bytes, 2 = 4 bytes, 3 = bit)
• DATA: Number of data items in each data table
• COMMENT: Comment on the start D address of each group
The additional information line at the bottom of the screen displays the symbol and comment of the
address on which the cursor is placed. When the cursor is placed on the PARAMETER, TYPE, or DATA
column, the current setting is displayed.
The ADDRESS column displays the start address of a data table. Multiple groups may share an address.
When the [SYMBOL] soft key is pressed, the symbol of the start address is displayed.
NOTE
The data table control parameters have the following meanings:
#7 #6 #5 #4 #3 #2 #1 #0
0: Binary format
1: BCD format (Bits 2 and 3 are invalid.)
0: Without input protection
1: With input protection
0: Binary or BCD format (Bit 0 is valid.)
1: Hexadecimal format (Bits 0 and 3 are invalid.)
0: Signed (valid only when bits 0 and 2 are set to 0)
1: Unsigned (valid only when bits 0 and 2 are set to 0)
NOTE
1 When data table control data is protected by the programmer protection function,
the data table control data screen is not displayed. For details, see Section 6.2.
2 When PMC parameters are output using the I/O screen (see Section 7.4), only
the data of an address D area set in the data table control data is output from the
data table screen. The data of an address D area not set in the data table
control data is not output.
- 723 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Data table control data Switching to the soft keys for Switching to Extra
initialization data size setting relay screen
Setting for signed decimal Setting for BCD Protection state modification
Fig. 7.3.4 (c) Soft keys on the DATA TABLE CONTROL screen
- 724 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 When data table control data is initialized, the entire data area is set as a single
table. The start address is the start address of the D addresses. The control
parameters are set as follows: signed binary format, without input protection,
one-byte data size, and the number of data items set to the total number of bytes
in the entire D address area.
2 For 0i Mate-D PMC/L, the initial number of data items is 3000. For 0i-D PMC, it
is 10000.
- 725 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Group
information line
Page display
NOTE
When using a display unit which has 7 soft keys, the comment display mode is
not available.
- 726 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Table contents
• NO.
• ADDRESS: Address used by the sequence program
• DATA: Data value of data table
• COMMENT: Comment on the D address
• 0 to 7: Data of each bit
• HEX: Display of each byte in hexadecimal
The group information line at the top of the screen displays a group number, group start address, settings,
and comment on the start address.
The additional information line at the bottom of the screen displays the symbol and comment of the
address on which the cursor is placed. In the bit display mode, a bit symbol and comment, or a byte
symbol and comment are displayed, depending on the cursor position.
Soft keys on the DATA TABLE screen
Switching to the list screen Address search Switching to the Extra relay screen
- 727 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 728 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
- 729 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
1 Extra relays (E) can be included only in PMC parameter output from 1st PMC. If
you set 1 to the system keep relay K906.3, no information of extra relays is
included in PMC parameter output.
2 You have an option on the format of the extra relays when you include the extra
relays in the PMC parameter output. See “2.3.2 PMC Parameter Format” for the
detail of the format of the extra relays.
3 Even if the extra relays are not configured as non-volatile memory, their control
data are non-volatile.
- 730 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
On this screen, sequence programs, PMC parameters and PMC message data for multi-language display
can be written to the specified device, read from the device, and compared. The query selection cursor,
which moves vertically from one question to another, is displayed, as is the option selection cursor, which
moves horizontally from one option to another.
The following types of devices can be used for input/output. The desired device type can be selected by
positioning the query selection cursor to "DEVICE" and moving the option selection cursor to that type.
• MEMORY CARD: Data can be output to and input from a memory card.
• FLASH ROM: Data can be output to and input from flash ROM.
• FLOPPY: Data can be output to and input from Handy File or Floppy Cassette.
• OTHERS: Data can be output to and input from other general-purpose RS-232C
input/output devices.
In STATUS in the lower part of the screen, a detailed explanation of execution and the execution status
are displayed. During write, read, and comparison, the size of the data already transferred is indicated as
the execution (intermediate) result.
- 731 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
The following gives a display example shown when PMC parameters are written to a memory card:
Execution Switch to the list screen Switch to the port setting screen
Change the input mode Delete a character Generating a new file name
Cancellation
- 732 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
• PMC path
Set a following string that indicates a PMC path.
• Data type
Set a following string that indicates a data type.
• Data number
The data number is the three digits number that begins at '000'. The next number of the
maximum data number of a file that exists on a memory card or floppy disk is set to the data
number. However, when a file that has a data number '999' exists on a memory card or floppy
disk, '999' is set to the data number.
NOTE
When 128 or more files exist on a memory card or floppy disk, the "Generating
new file name" does not work correctly. You should only use this function when
127 or less files exist on the device.
• Full-string input
An entire file name is selected by the cursor and the entire file name is replaced by input.
• Insert mode
Input characters are inserted at the cursor. If you press the INPUT key without no character,
one space character will be inserted.
• Replace mode
The characters on and after cursor are replaced by input characters. If you press the INPUT key
without no character, the character on the cursor will be replaced by space character.
- 733 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
For the description of the error messages on the I/O screen, see Section 11.1.
- 734 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
The table below indicates the available memory cards and their usable functions.
Each card must comply with TYPE1 or TYPE2 of PCMCIA (Personal Computer Memory Card
International Association) 2.0 or later, or must comply with TYPE1 or TYPE2 of JEIDA (Japan
Electronic Industry Development Association) 4.0 or later. The format complies with the FAT file
system of MS-DOS.
{: Supported
×: Not supported
Flash memory card
ATA card SRAM card
Supported card Unsupported card
Read of a file { { { {
Format of a card { { { ×
Write of a file { { { ×
Delete of a file { { × ×
List of a file { { { {
A file can be written to a card formatted in the MS-DOS format. However, the following restrictions are
imposed:
• Existing files cannot be replaced.
• Cards formatted by the flash file system cannot be used. (Even the read function and directory
display function cannot be used.)
• The data of a flash memory card written to in the built-in slot of a personal computer may not be
read.
- 735 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
No data can be written to the last 128K bytes of a card. This means that the usable card size is (card size -
128K bytes).For details, see Fig. 7.4.1.
Before a write
File-A
File-B
File-C
Added
File-D
128K bytes
After a write
File-A
File-B
File-C
File-D
128K bytes
Fig. 7.4.1
NOTE
Recommendable devices that can handle a flash memory card formatted and
written to by the FANUC system are unavailable from manufacturers other than
FANUC. Moreover, recommendable devices that can format and write to a card
to allow read operation by the FANUC system are unavailable from
manufacturers other than FANUC.
This is because the demand for flash memory cards in the card market is so low
that compatible models are disappearing.
When using flash memory cards, understand the situations mentioned above
and fully take compatibility into consideration.
- 736 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
This screen allows the setting of the communication data required for communication using the RS-232C.
Communication data can be set for each of the two types of devices independently of the other.
Selected device type is displayed to "DEVICE" menu on screen.
NOTE
Parity is always "NONE".
- 737 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 738 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
If MEMORY CARD is selected for DEVICE, and a memory card holding files is inserted into the slot,
the contents of the memory card are displayed. If FLOPPY is selected for DEVICE, the contents of a
Floppy Cassette or Handy File are displayed.
NOTE
Up to 128 files can be displayed on this screen. When 129 or more files are
saved, the 129th and subsequent files are ignored.
When a file is selected on this screen, the screen display can be returned to the I/O screen. To select a file,
place the cursor at the name of the file, then press either the [SELECT] soft key or the INPUT key. After
the key entry, the screen display switches to the I/O screen automatically. In this case, the cursor is
positioned at READ on the FUNCTION menu, and the number and name of the file selected on the list
screen are indicated in the FILE NO. and FILE NAME fields, respectively. A display example is shown
below.
- 739 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
To return the screen display to the I/O screen without selecting a file, press the [EXIT] soft key. Even if
the memory card or the floppy disk in the floppy cassette, or the handy file is exchanged while the file list
screen is being displayed, the display data is not automatically updated. In this case, press the [REFRSH]
soft key. The contents of the new memory card are then displayed.
- 740 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
The PMC query may not be displayed, depending on the setting of each query.
For details, see the description of each operation procedure.
When only PMC1 exists, the indication below is provided, so that no selection operation is required. In
this case, the query selection cursor does not move to PMC.
PMC = PMC1
- 741 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
When PMC parameters for the conventional model are read with the multi-PMC system
NOTE
1 When only the first PMC exists, only the step for reading PMC parameters
including PMC information needs to be executed.
2 For a nonexistent PMC, no soft key is displayed.
- 742 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE MEMORY CARD
FUNCTION WRITE
KIND OF DATA SEQUENCE PROGRAM
(2) Move the query selection cursor to FILE NAME and enter a file name.
You should enter the file name with "8.3 format" that is constructed with base name, less than 8
characters, dot "." and extension, less than 3 characters.
Or, press the [NAME] soft key to set a new file name.
(3) Press the [EXEC] soft key to output the sequence program.
Press the [CANCEL] soft key to stop the operation.
(4) If the specified file name already exists on a memory card, the following message will be displayed.
If you want to overwrite the file, press the [YES] soft key. And, if you want to cancel the output,
press the [NO] key.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
NOTE
For writing to the flash memory card, see "Writing to the flash memory card" in
Subsection 7.4.1.
- 743 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
WARNING
When the sequence program being executed is updated to the sequence
program whose symbols are assigned to the different addresses, the signal state
may be unsuitable. If you activate the sequence program in this state, the
machine may behave in an unexpected way, and there is an extreme risk of
death or serious injury, as well as the likelihood of the tool, workpiece and
machine being damaged. Therefore, initialize the signals if needed before
starting the updated sequence program.
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted
into CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 This operation can be performed only when the operation condition allows
sequence program input. For details, see Section 6.2.
2 In a sequence program which uses exteneded symbol and comment format, if
you edit the symbol / comment data of the sequence program by FANUC
LADDER-III and store it into CNC with K903.5=1, the address area for
automatically assignment will be initialized to 0.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION READ
(2) Specify an input target sequence program by performing the following operations:
• Move the query selection cursor to FILE NO., then key in an input target file number. At this
time, the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the input target file name.
• Switch the screen display to the list screen, then select the input target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
- 744 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be read. If a sequence
program for the conventional model is read, the read operation is terminated
abnormally with the following message:
"LADDER TYPE UNMATCH"
WARNING
1 If a ladder program is read while another ladder program is being executed, the
ladder program being executed is automatically stopped. Take special care
when stopping a ladder program. If a ladder program is stopped at an
inadequate timing or in an inadequate machine state, the machine can make an
unexpected movement. Moreover, when a ladder program is stopped, the safety
feature and monitoring based on the ladder program do not function. Before
stopping a ladder program, make sure that the machine state is normal and that
there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 745 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION COMPARE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key to execute a sequence program comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
1 When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be compared. If a
sequence program for the conventional model is compared, the compare
operation is terminated abnormally with the following message:
"LADDER TYPE UNMATCH"
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 746 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE FLASH ROM
FUNCTION WRITE
KIND OF DATA SEQUENCE PROGRAM
NOTE
When programs are written, flash ROM initialization may consume some time.
During initialization, "INITIALIZING FLASH ROM." is displayed in the STATUS
display field.
- 747 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
WARNING
When the sequence program being executed is updated to the sequence
program whose symbols are assigned to the different addresses, the signal state
may be unsuitable. If you activate the sequence program in this state, the
machine may behave in an unexpected way, and there is an extreme risk of
death or serious injury, as well as the likelihood of the tool, workpiece and
machine being damaged. Therefore, initialize the signals if needed before
starting the updated sequence program.
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted
into CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 This operation can be performed only when the operation condition allows
sequence program input. For details, see Section 6.2.
2 In a sequence program which uses exteneded symbol and comment format, if
you edit the symbol / comment data of the sequence program by FANUC
LADDER-III and store it into CNC with K903.5=1, the address area for
automatically assignment will be initialized to 0.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Input target PMC)
DEVICE FLASH ROM
FUNCTION READ
- 748 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
WARNING
1 If a ladder program is read while another ladder program is being executed, the
ladder program being executed is automatically stopped. Take special care
when stopping a ladder program. If a ladder program is stopped at an
inadequate timing or in an inadequate machine state, the machine can make an
unexpected movement. Moreover, when a ladder program is stopped, the safety
feature and monitoring based on the ladder program do not function. Before
stopping a ladder program, make sure that the machine state is normal and that
there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
- 749 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Compare target PMC)
DEVICE FLASH ROM
FUNCTION COMPARE
(2) Press the [EXEC] soft key to execute a sequence program comparison.
When a sequence program camparison with the flash ROM is performed, the processing cannot be
stopped.
- 750 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE FLOPPY
FUNCTION WRITE
KIND OF DATA SEQUENCE PROGRAM
(2) Move the query selection cursor to FILE NAME and enter a file name.
When using a MS-DOS formatted floppy disk, you should enter the file name with "8.3 format" that
is constructed with base name, less than 8 characters, dot "." and extension, less than 3 characters.
When using a FANUC formatted floppy disk, you should enter the file name with less than 17
characters.
Or, press the [NAME] soft key to set a new file name.
(3) Press the [EXEC] soft key to output the sequence program.
Press the [CANCEL] soft key to stop the operation.
- 751 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
WARNING
When the sequence program being executed is updated to the sequence
program whose symbols are assigned to the different addresses, the signal state
may be unsuitable. If you activate the sequence program in this state, the
machine may behave in an unexpected way, and there is an extreme risk of
death or serious injury, as well as the likelihood of the tool, workpiece and
machine being damaged. Therefore, initialize the signals if needed before
starting the updated sequence program.
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted
into CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 This operation can be performed only when the operation condition allows
sequence program input. For details, see Section 6.2.
2 In a sequence program which uses exteneded symbol and comment format, if
you edit the symbol / comment data of the sequence program by FANUC
LADDER-III and store it into CNC with K903.5=1, the address area for
automatically assignment will be initialized to 0.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE FLOPPY
FUNCTION READ
(2) Specify an input target sequence program by performing the following operations:
• Move the query selection cursor to FILE NO., then key in an input target file number. At this time,
the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the input target file name.
• Switch the screen display to the list screen, then select the input target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
- 752 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be read. If a sequence
program for the conventional model is read, the read operation is terminated
abnormally with the following message:
"LADDER TYPE UNMATCH"
WARNING
1 If a ladder program is read while another ladder program is being executed, the
ladder program being executed is automatically stopped. Take special care
when stopping a ladder program. If a ladder program is stopped at an
inadequate timing or in an inadequate machine state, the machine can make an
unexpected movement. Moreover, when a ladder program is stopped, the safety
feature and monitoring based on the ladder program do not function. Before
stopping a ladder program, make sure that the machine state is normal and that
there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
- 753 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE FLOPPY
FUNCTION COMPARE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key to execute a sequence program comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
1 When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be compared. If a
sequence program for the conventional model is compared, the compare
operation is terminated abnormally with the following message:
"LADDER TYPE UNMATCH"
- 754 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE OTHERS
FUNCTION WRITE
KIND OF DATA SEQUENCE PROGRAM
- 755 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
WARNING
When the sequence program being executed is updated to the sequence
program whose symbols are assigned to the different addresses, the signal state
may be unsuitable. If you activate the sequence program in this state, the
machine may behave in an unexpected way, and there is an extreme risk of
death or serious injury, as well as the likelihood of the tool, workpiece and
machine being damaged. Therefore, initialize the signals if needed before
starting the updated sequence program.
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted
into CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 This operation can be performed only when the operation condition allows
sequence program input. For details, see Section 6.2.
2 In a sequence program which uses exteneded symbol and comment format, if
you edit the symbol / comment data of the sequence program by FANUC
LADDER-III and store it into CNC with K903.5=1, the address area for
automatically assignment will be initialized to 0.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE OTHERS
FUNCTION READ
- 756 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be read. If a sequence
program for the conventional model is read, the read operation is terminated
abnormally with the following message:
"LADDER TYPE UNMATCH"
WARNING
1 If a ladder program is read while another ladder program is being executed, the
ladder program being executed is automatically stopped. Take special care
when stopping a ladder program. If a ladder program is stopped at an
inadequate timing or in an inadequate machine state, the machine can make an
unexpected movement. Moreover, when a ladder program is stopped, the safety
feature and monitoring based on the ladder program do not function. Before
stopping a ladder program, make sure that the machine state is normal and that
there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
- 757 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
sequence program output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE OTHERS
FUNCTION COMPARE
(2) Press the [EXEC] soft key to execute a sequence program comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
1 When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
2 Sequence programs for the conventional model cannot be compared. If a
sequence program for the conventional model is compared, the compare
operation is terminated abnormally with the following message:
"LADDER TYPE UNMATCH"
- 758 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows PMC
parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE MEMORY CARD
FUNCTION WRITE
KIND OF DATA PARAMETER
(2) Move the query selection cursor to FILE NAME and enter a file name.
You should enter the file name with "8.3 format" that is constructed with base name, less than 8
characters, dot "." and extension, less than 3 characters.
Or, press the [NAME] soft key to set a new file name.
(4) If the specified file name already exists on a memory card, the following message will be displayed.
If you want to overwrite the file, press the [YES] soft key. And, if you want to cancel the output,
press the [NO] key.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
NOTE
1 For writing to the flash memory card, see "Writing to the flash memory card" in
Subsection 7.4.1.
- 759 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
This operation can be performed only when the operation condition allows PMC
parameter input. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION READ
(2) Specify input target PMC parameters by performing the following operations:
• Move the query selection cursor to FILE NO., then key in an input target file number. At this
time, the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the input target file name.
• Switch the screen display to the list screen, then select the input target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
NOTE
When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
WARNING
When PMC parameters are read, a modified parameter can exercise an
unexpected influence on ladder operation. Before reading PMC parameters,
make sure that the parameters to be read do not affect ladder operation.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 760 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
Compare operation can be performed only when the operation condition allows
PMC parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION COMPARE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key to execute a PMC parameter comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 761 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
This operation can be performed only when the operation condition allows PMC
parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE FLOPPY
FUNCTION WRITE
KIND OF DATA PARAMETER
(2) Move the query selection cursor to FILE NAME and enter a file name.
When using a MS-DOS formatted floppy disk, you should enter the file name with "8.3 format" that
is constructed with base name, less than 8 characters, dot "." and extension, less than 3 characters.
When using a FANUC formatted floppy disk, you should enter the file name with less than 17
characters.
Or, press the [NAME] soft key to set a new file name.
(3) Press the [EXEC] soft key to output the PMC parameters.
Press the [CANCEL] soft key to stop the operation.
- 762 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows PMC
parameter input. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE FLOPPY
FUNCTION READ
(2) Specify input target PMC parameters by performing the following operations:
• Move the query selection cursor to FILE NO., then key in an input target file number. At this
time, the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the input target file name.
• Switch the screen display to the list screen, then select the input target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
NOTE
When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
- 763 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
WARNING
When PMC parameters are read, a modified parameter can exercise an
unexpected influence on ladder operation. Before reading PMC parameters,
make sure that the parameters to be read do not affect ladder operation.
- 764 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
Compare operation can be performed only when the operation condition allows
PMC parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE FLOPPY
FUNCTION COMPARE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key to execute a PMC parameter comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
- 765 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
This operation can be performed only when the operation condition allows PMC
parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE OTHERS
FUNCTION WRITE
KIND OF DATA PARAMETER
- 766 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
WARNING
When PMC parameters are read, a modified parameter can exercise an
unexpected influence on ladder operation. Before reading PMC parameters,
make sure that the parameters to be read do not affect ladder operation.
- 767 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
PMC parameter output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE OTHERS
FUNCTION COMPARE
(2) Press the [EXEC] soft key to execute a PMC parameter comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
- 768 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
message data for multi-language display output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE MEMORY CARD
FUNCTION WRITE
KIND OF DATA MESSAGE
(2) Move the query selection cursor to FILE NAME and enter a file name.
You should enter the file name with "8.3 format" that is constructed with base name, less than 8
characters, dot "." and extension, less than 3 characters.
Or, press the [NAME] soft key to set a new file name.
(3) Press the [EXEC] soft key to output the message data for multi-language display.
Press the [CANCEL] soft key to stop the operation.
(4) If the specified file name already exists on a memory card, the following message will be displayed.
If you want to overwrite the file, press the [YES] soft key. And, if you want to cancel the output,
press the [NO] key.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
NOTE
For writing to the flash memory card, see "Writing to the flash memory card" in
Subsection 7.4.1.
- 769 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
This operation can be performed only when the operation condition allows
message data for multi-language display input. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION READ
(2) Specify an input target message data for multi-language display by performing the following
operations:
• Move the query selection cursor to FILE NO., then key in an input target file number. At this
time, the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the input target file name.
• Switch the screen display to the list screen, then select the input target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key.
Before the reading of the file is started, the following message is displayed to check if read
processing may be executed:
"Reading MESSAGE DATA PMCx"
<Caution> Take special care reading a sequence program or PMC parameters.
* When an inadequate file is read, the machine can make an unexpected movement.
* When a sequence program is read during operation, the program being executed is
automatically stopped.
(As PMCx, the PMC number embedded in the data is displayed.)
Press the [EXEC] soft key to continue the operation. Press the [CANCEL] soft key to stop the
operation.
If the reading of the message data for multi-language display is continued, the ladder program being
executed is automatically stopped.
NOTE
1 When the format of a specified file cannot be recognized, the read operation is
terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
- 770 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
WARNING
1 If a message data for multi-language display is read while ladder program is
being executed, the ladder program being executed is automatically stopped.
Take special care when stopping a ladder program. If a ladder program is
stopped at an inadequate timing or in an inadequate machine state, the machine
can make an unexpected movement. Moreover, when a ladder program is
stopped, the safety feature and monitoring based on the ladder program do not
function. Before stopping a ladder program, make sure that the machine state is
normal and that there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 771 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
Compare operation can be performed only when the operation condition allows
message data for multi-language display output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
DEVICE MEMORY CARD
FUNCTION COMPARE
(2) Specify a message data for multi-language display to be compared, by performing the following
operations:
• Move the query selection cursor to FILE NO., then key in a compare target file number. At
this time, the FILE NAME field displays the file name corresponding to the entered file number.
• Move the query selection cursor to FILE NAME, then key in the compare target file name.
• Switch the screen display to the list screen, then select the compare target file.
For the list screen, see Subsection 7.4.3.
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
(3) Press the [EXEC] soft key to execute a message data for multi-language display comparison.
Press the [CANCEL] soft key to stop the operation.
NOTE
1 When the format of a specified file cannot be recognized, the compare operation
is terminated abnormally with the following message:
"UNKNOWN FILE FORMAT"
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
- 772 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
This operation can be performed only when the operation condition allows
message data for multi-language display output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Output target PMC)
DEVICE FLASH ROM
FUNCTION WRITE
KIND OF DATA MESSAGE
(2) Press the [EXEC] soft key to save s message data for multi-language display.
When writing to the flash ROM is performed, the processing cannot be stopped.
NOTE
When programs are written, flash ROM initialization may consume some time.
During initialization, "INITIALIZING FLASH ROM." is displayed in the STATUS
display field.
- 773 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
This operation can be performed only when the operation condition allows
message data for multi-language display input. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Input target PMC)
DEVICE FLASH ROM
FUNCTION READ
(2) Press the [EXEC] soft key to input message data for multi-language display.
When reading from the flash ROM is performed, the processing cannot be stopped.
If the reading of message data for multi-language display is continued, the ladder program being
executed is automatically stopped.
WARNING
1 If a message data for multi-language display is read while ladder program is
being executed, the ladder program being executed is automatically stopped.
Take special care when stopping a ladder program. If a ladder program is
stopped at an inadequate timing or in an inadequate machine state, the machine
can make an unexpected movement. Moreover, when a ladder program is
stopped, the safety feature and monitoring based on the ladder program do not
function. Before stopping a ladder program, make sure that the machine state is
normal and that there is no person near the machine.
2 When an attempt is made to stop the ladder program being executed, the stop
processing may continue endlessly, depending on the ladder operation. In such
a case, modify the ladder program according to Section 4.15.
- 774 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
Compare operation can be performed only when the operation condition allows
message data for multi-language display output. For details, see Section 6.2.
(1) On the I/O screen, make the following settings with the query selection cursor and option selection
cursor:
Query Setting
PMC (Compare target PMC)
DEVICE FLASH ROM
FUNCTION COMPARE
(2) Press the [EXEC] soft key to execute a message data for multi-language display comparison.
When a message data for multi-language display camparison with the flash ROM is performed, the
processing cannot be stopped.
- 775 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Query Setting
DEVICE MEMORY CARD
FUNCTION DELETE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
NOTE
No files can be deleted from a flash memory card.
Query Setting
DEVICE MEMORY CARD
FUNCTION FORMAT
(2) Press the [EXEC] soft key to format the memory card.
Press the [CANCEL] soft key to stop the operation.
NOTE
When the formatting of a memory card is executed with FORMAT selected, all
data of the memory card is lost. Be careful when formatting a memory card.
For the supported memory cards, see the pertinent table in Subsection 7.4.1.
NOTE
For writing to the flash memory card, see "Writing to the flash memory card" in
Subsection 7.4.1.
- 776 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
Query Setting
DEVICE FLOPPY
FUNCTION DELETE
NOTE
If a value is set in the FILE NO. field, and a file name not corresponding to the
file number is entered in the FILE NAME field when FILE NO. and FILE NAME
are displayed at the same time, the value set in the FILE NO. field is erased, and
the setting in the FILE NAME field becomes valid.
Query Setting
DEVICE FLOPPY
FUNCTION DELETE ALL
NOTE
The following Floppy Cassette does not support the operation of FORMAT:
FLOPPY CASSETTE ADAPTER A13B-0131-B001
- 777 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Channel number
Group number
CAUTION
1 IDs other than those for the I/O units listed in Table 7.5 represent undefined
units.
2 I/O Units not for this CNC system are also written in Table 7.5.
Soft keys
- 779 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
With the multi-PMC system, the signals of all PMCs can be traced simultaneously.
Before trace operation can be executed, the trace parameters must be set. Press the [TRCPRM] soft key
to switch the screen display to the trace parameter setting screen.
By setting the PMC setting screen, the trace function can be automatically started after the power is
turned on. In this case as well, the trace parameters must be set beforehand.
NOTE
For the setting to automatically start the trace function after the power is turned
on, see Subsection 7.6.5.
- 780 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
- 781 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Trigger position
← 1 sec →← 9 sec →
- 782 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
- 783 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 784 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
- 785 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 786 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
The cursor indicating current position is initially displayed on the original point (0 point). The position of
the cursor is displayed in "CURSOR POSITION" in the upper of the screen. The cursor can move
horizontally with the <←> or <→> key. After the execution, following operation is enabled.
(1) Scroll of screen
- Cursor up/down key and Page up/down key
Enables the vertical scroll for the specified signal
- Cursor right/left key, [NEXT>>] soft key and [<< PREV] soft key
Enables the horizontal scroll of the graph.
(2) Automatic calculation of the selected range
Pressing the [MARK] soft key marks the current position and displays the mark cursor.
If the mark cursor duplicates with the current position cursor, the current position cursor has priority
of display. The "MARK POSITION" that shows the position of the mark cursor and "RANGE" that
shows the range between the mark cursor and the current position cursor are displayed in the upper
of screen.
Moving the current position cursor changes these values. Pressing the [MARK] soft key again
releases the select range mode.
- 787 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
For details of the method of setting PMC setting data, see Section 9.5.
- 788 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
(1) Operation
Press the [OUTPUT] soft key. The soft key display changes to [EXEC] and [CANCEL]. Press the
[EXEC] soft key to start output. Upon completion of output, the soft key display returns to the
initial status on the signal trace result screen.
(a) Header
At the start of data, an identifier representing the type of data and edition information are
output.
Identifier: ('PMC TRACE DATA')
Edition information: ('Edition', 1)
NOTE
1 For a setting item that is invalidated in combination with another setting, only a
setting number and setting item name are output, with a blank output in the
setting column and the setting character string column. (However, commas are
not omitted.)
2 For an item name that changes according to the setting of another item, the item
name displayed according to the setting is displayed. (Example: Sampling
time/Sampling frame dependent on the selection of a Sampling mode option)
3 For a sampling stop trigger address and sampling trigger address, an address is
output in the setting column, and a symbol is output in the setting character
string column. When no symbol is set, an address is output in the setting
character string column as well.
4 For a sampling stop trigger position, (successful trigger position/sampling frame
count) is output after "%". (This is because a frame position is internally held, so
that an error can occur at the time of conversion to a percentage value.)
- 790 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 Data is not output beyond set sampling addresses. This means that no blank is
output in the item of 'Address'.
2 For an address for which no symbol or no comment is set, no data is output, but
a blank is output in the column. Commas are not omitted but are output for up to
set sampling addresses.
- 791 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
(4) Example of trace result output (For view comfort, tab settings are made in several places. In actual
data output, however, no tab settings are made.)
‘Setting’, , ,
1,‘Sampling mode’, 2, ‘SIGNAL TRANSITION’
2,‘Sampling resolution’, 8, ‘MSEC’
3,‘Sampling time’, 2000,
4,‘Stop condition’, 3, ‘TRIGGER’
5,‘Stop trigger address’, ‘X10.0’, ‘SYMBOL1’
6,‘Stop trigger mode’, 1, ‘RISING EDGE’
7,‘Stop trigger position’, 50(1250/2500), ‘%’
8,‘Sampling condition’, 1, ‘TRIGGER’
9,‘Sampling trigger address’,‘X10.1’, ‘SYMBOL2’
10,‘Sampling trigger mode’, 3, ‘BOTH EDGE’
- 792 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
Supported types of I/O network device are PROFIBUS and I/O LINK.
NOTE
“Symbol order” is available only in case of the sequence program with extended
symbol and comment.
- 793 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
Listing order
Additional information
(3) ADDRESS
The actual locations of I/O variables are displayed.
- 794 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
(4) VALUE
The current values of I/O variables are displayed as signed decimal, according to the data type of
them (i.e. BOOL, BYTE, WORD, and DWORD). If the data type is BOOL, “ON” or “OFF” is also
displayed as follows.
I/O type:
Module type Shown as
Input module I
Output module O
Other *
Network type:
Network type Shown as
PROFIBUS P
I/O LINK Ln (n: channel number)
Network address:
Network type Network address notation
PROFIBUS <Slave #>.<Slot #>
I/O LINK <Group #>.<Base #>.<Slot #>
NOTE
This screen shows the I/O information according to the network setting that
became effective at the time of the last power-on.
The notes for each network device are as follows:
PROFIBUS
1. If you have changed some of the profibus parameters, you have to cycle the
power once to make the changes take effect.
I/O LINK
1. Only the I/O Link assingments, which are made effective by the setting of
“Machine Signal Interface” in Configuration Parameter menu and the setting
of “Selectable I/O Link Assignment Function”, are displayed.
2. If you have changed the following parameters, you have to cycle the power
once to make them take effect:
• “I/O module assignment data”
• “Machine signal interface” in PMC configuration parameter
• “Selectable I/O Link assignment function”
3. If you have stored new sequence program to PMC, its I/O Link assignment
data will not take effect until you write it into Flash-ROM and cycle the power
once.
- 795 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
(6) REMARK
The remarks up to 8 characters extracted from comment data are displayed. To specify the remark at
this field, set “100” to the attribute value of the comment, which you want to show in this field, on
FANUC LADDER-III,
Attribute value: 0 to 17
0: English 9: Danish
1: Japanese 10: Portuguese
2: German 11: Polish
3: French 12: Hungarian
4: Chinese (Traditional) 13: Swedish
5: Italian 14: Czech
6: Korean 15: Chinese (Simplified)
7: Spanish 16: Russian
8: Dutch 17: Turkish
NOTE
In case of the extended symbol and comment, the comments on the screen will
be switched dynamically another language when the language setting of CNC
changes.
Screen operations
Softkeys on the I/O Diagnosis screen
Search for data Switch to the address order display Switch to the network order display
Switch to the all group display PMC path switching Screen settings
Switch to the specified group display Switch to the symbol order display
- 796 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
NOTE
1 When arrived back to the starting position where the first search operation hit by
repeated search of the same entry, the message “REACHED TO THE END OF
SYMBOL DATA.” appears.
2 If the setting “SHOW PROGRAM” is set to “SYMBOL” or “PROGRAM NO.”, the
symbol name is displayed in one of forms below:
<Program Symbol>.<Signal Symbol>
<Program Number>.<Signal Symbol>
In this case, search function will not hit in “Program Symbol” nor “Program
Number”.
3 On a symbol screen in network order a searching word is performed in address
order. When you search a part string and some word are hit, the searched
position (cursor position) may move to unexpected direction.
NOTE
“Symbol order” is available only in case of the sequence program with extended
symbol and comment.
- 797 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
The I/O variables are sorted by its network address. The sorting order is not affected by the type of
modules such as input or output. The order is determined according only to priority of network
address portion as following:
NOTE
If while sorting the I/O variables in “Network order” mode, the following messages may
appear:
SORTING DATA [PROFIBUS : n SLAVE]
SORTING DATA [I/O LINK : n CH m GROUP]
NOTE
If while extracting the I/O variables of specific group, the following messages may
appear:
SELECTING GROUP [PROFIBUS : n SLAVE]
SELECTING GROUP [I/O LINK : n CH m GROUP]
- 798 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
If the setting item “FORCING ENABLE” is set to “YES” in the setting screen, you can change the
value of I/O variables as described above.
The mark “FORCING” at the right end of the screen title indicates the forcing function is enabled.
WARNING
1 You have to pay special attention to use Forced I/O function to change status of signals.
Inappropriate use of Forced I/O function may cause unexpected reaction of machine.
You have to make it sure that nobody is near the machine when you use this function.
2 As you use Forcing mode of Forced I/O function to change status of signal, however, the
signal may look proof against Forced I/O function, because LADDER program or I/O
device writes into the signal repeatedly. In this case, even if the signal looks unchanged,
actual signal may be changed in very short moment. You should be careful for the
reaction of machine to such signal changes.
- 799 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
- 800 -
B-64393EN/02 7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT])
• FIELD NUMBER
Sets the field number, which indicates the field to be a group name. If this number is 1, the
first field, which means the portion of each symbol name from the first character to the
character just before the first appearance of the delimiter character.
NOTE
If 0 is set, the group feature of I/O Diagnosis screen is disabled.
In this case, the delimiter has no effect.
Example:
Case of “_” as delimiter, and group name at 2nd field
The symbol = I_AL_NC_WATCH_DOG_SIGNAL
DELIMITER = ‘_’
FIELD NUMBER = 2
As a result, “AL” is extracted as its group name
WARNING
1 You have to pay special attention to use Forced I/O function to change status of signals.
Inappropriate use of Forced I/O function may cause unexpected reaction of machine.
You have to make it sure that nobody is near the machine when you use this function.
2 As you use Forcing mode of Forced I/O function to change status of signal, however, the
signal may look proof against Forced I/O function, because LADDER program or I/O
device writes into the signal repeatedly. In this case, even if the signal looks unchanged,
actual signal may be changed in very short moment. You should be careful for the
reaction of machine to such signal changes.
NOTE
If the Forced I/O function is protected by the programmer protection function, this setting
is not effective.
The Forced I/O function will be protected in the condition as follows.
- 801 -
7.PMC DIAGNOSIS AND MAINTENANCE SCREENS ([PMCMNT]) B-64393EN/02
NOTE
These setting data are kept in the nonvolatile memory not to be lost even if the
power is turned off.
Screen operations
Softkeys on the I/O Diagnosis screen
- 802 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
SYSTEM
Pressing the [LADDER] soft key causes the sequence program to be dynamically displayed, allowing you
to monitor operation. The editor screen allows you to make changes to relay and functional instructions
in the sequence program to change the operation of the sequence program.
The ladder diagram display/editor functions consist of the following screens:
(1) Ladder diagram display screen (LADDER DIAGRAM MONITOR screen)
Displays ladder diagrams to monitor the current states of relays, coils, and so on.
(2) COLLECTIVE MONITOR screen
Displays selected ladder net to monitor the current states of relays, coils, and so on.
(3) LADDER DIAGRAM EDITOR screen
Allows you to edit ladder diagram in units of net.
(4) NET EDITOR screen
Allows you to edit single net in a ladder diagram.
(5) PROGRAM LIST VIEWER screen
Allows you to select the subprogram to be displayed on the LADDER DIAGRAM MONITOR
screen.
(6) PROGRAM LIST EDITOR screen
Allows you to edit a ladder program in units of subprograms. Also allows you to select the
subprogram to be edited on the LADDER DIAGRAM EDITOR screen.
(7) SUBPROGRAM LIST VIEWER screen
Displays the list of the called subprogram and the subprogram switching history.
The following screens can be called from the LADDER DIAGRAM EDITOR screen:
(8) FUNCTIONAL INSTRUCTION DATA TABLE VIEWER screen
Allows you to view the contents of the data table for functional instruction with a data table.
(9) FUNCTIONAL INSTRUCTION DATA TABLE EDITOR screen
Allows you to edit the contents of the data table for functional instruction with a data table.
NOTE
You can protect these screens by using the programmer protection function. For
details, see Section 6.2.
You can change between screens as shown in the figure below.
- 803 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
[<] [PMCLAD]
PMC LADDER menu
[<] [<]
[SPLIST] [ZOOM]
SUBPROGRAM LIST LADDER DIAGRAM PROGRAM LIST
VIEWER screen MONITOR screen VIEWER screen
[LADDER] [LIST]
[ZOOM] [BACK]
Display function [LIST] [ZOOM]
[BACK]
(monitor)
[LIST] [ZOOM]
[EXIT] [SWITCH]
[EDIT]
COLLECTIVE MONITOR screen
[ZOOM]
LADDER DIAGRAM PROGRAM LIST
Edit function EDITOR screen EDITOR screen
[LIST]
NOTE
The [EDIT] soft key on the LADDER DIAGRAM MONITOR screen is displayed
and becomes available if the programmer protection function enables to edit
ladder program. For details, see Section 6.2.
- 804 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
SP area
Size area
- 805 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 806 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 807 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 808 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(b) In the additional information line near the bottom of the screen, the following information of
the address under the cursor is displayed when the cursor is shown.
• Net number of the net at the cursor
• Address and its symbol and comment information
• Current value
Symbol and Comment are displayed with fixed length when using Basic type Symbol and
Comment data.
In case of the bit address under the cursor.
Left justified Symbol and Comment are displayed with flexible length when using Extended
type Symbol and Comment data.
In case of the bit address under the cursor.
NOTE
1 When you set K903.1 to 1 and using Basic type Symbol and Comment data, the
symbol and comment are displayed with flexible length on additional information
line, as same as when using Extended Symbol and Comment data.
2 Displayed comment characters on additional information line is shown below
when the symbol and comment are displayed with fixed length.
8.4 inch : 15 characters
10.4 inch : 15 characters
3 When symbol and comment on an additional information line are displayed with
flexible length and all the characters of comment cannot be displayed on the line,
a period is displayed at the end of comment string.
(c) In the message line, error messages or inquiry messages will be displayed depending on the
situation.
(d) In the area for LADDER diagrams, 8 × 8, 8 × 6, 8 × 4, 7 × 8, 7 × 6, and 7 × 4 relays can be
displayed (horizontally and vertically). For details, see Subsection 8.2.2.
(e) The gage indicating the current display position in relation to the whole Ladder program is
displayed at the right end of the screen.
- 809 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
(3) Monitor
(a) Contacts and coils change their colors and/or shapes according to the status of the signals.
The status of power flow is not displayed.
(b) Usually, the parameters of functional instructions are monitored and displayed. You can
suppress the monitor and display by an appropriate setting. For details, see Subsection 8.2.2.
- 810 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 811 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 812 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(2) Other operations
(a) Cursor move keys, Page change keys
With cursor hidden, you can move diagram in the screen by up/down Cursor move keys and
Page change keys.
↑
PAGE
Move screen
← →
Search backward
With cursor displayed, you can move the cursor by all cursor move keys and Page change keys.
When cursor is placed on some relay or some address parameter of a functional instruction, the
information about the address under cursor is displayed at “Additional Information Line”.
(b) “number” + INPUT key
When cursor is shown, you can force the value of the address under cursor by entering new
value as “number” + INPUT key. In this screen, Forced I/O function is limited only to
Forcing mode. This Forced I/O function asks you to confirm your intention before it takes
effect. Once it is confirmed that you actually want to change value by this function, you can
change the value of the same relay or parameter without further confirmation. However, after
you move cursor or you operate other functions, you will be asked when you use the Forced I/O
function again.
WARNING
1 You have to pay special attention to use Forced I/O function to change status of
signals. Inappropriate use of Forced I/O function may cause unexpected
reaction of machine. You have to make it sure that nobody is near the machine
when you use this function.
2 As you use Forcing mode of Forced I/O function to change status of signal,
however, the signal may look proof against Forced I/O function, because LADDER
program or I/O device writes into the signal repeatedly. In this case, even if the
signal looks unchanged, actual signal may be changed in very short moment.
You should be careful for the reaction of machine to such signal changes.
NOTE
1 If the forced I/O function is protected by the programmer protection function,
pressing the INPUT key has no effect. For details of protection conditions, and
the like, see Section 6.2.
2 Parameters of timer functional instructions, TMR and TMRB, which have special
monitor formats, are not supported by Forced I/O function. For details, see the
description of functional instructions of special monitor format in Subsection 8.2.3.
(a) The string followed by [SEARCH] is treated as symbol first. In case that the symbol “D0” is
assigned to the bit address “R0.0”, the operation “D0” + [SEARCH] will search the bit address
“R0.0”, instead of byte address “D0”.
(b) To search the symbol that consists of only digit characters, which will usually be treated as net
number, you can use leading space to specify explicitly the string is symbol. For example,
while “123” + [SEARCH] will search the 123rd net from top of the LADDER, “_123” +
[SEARCH] (“_” is space) will search address with symbol “123”.
(c) When the range for searching is GLOBAL, and the target is found in other than displaying
subprogram, the screen will automatically switch to the subprogram to which the found target
belongs. Searching GLOBAL net number that current subprogram does not contain, for
example, the subprogram that contains the net of the net number will appear in the screen,
displaying the net.
(4) Shortcuts
(a) When cursor is hidden, left/right cursor move keys without string act just like [PREV]/[NEXT]
soft keys.
(b) String followed by [SEARCH] soft key in “Main soft keys” starts searching directly.
(c) [SEARCH] soft key in the search soft keys without string searches the address or the functional
instruction under cursor forward. If cursor is hidden, or cursor is placed neither on a relay nor
on a functional instruction, this operation just repeats the last successful search forward, just
like [NEXT] soft key.
(d) [W-SRCH] soft key without string searches forward a write coil of the same address with relay
under cursor. If cursor is hidden, or cursor is not placed on a relay, this operation will search
a write coil of the bit address that is searched at last successful search. If the last search was
not made with bit address, the last entered string for searching is used to determine what bit
address is to be searched for a write coil.
(e) [F-SRCH] soft key without string searches forward the same functional instruction with one
under cursor. If cursor is hidden, or cursor is not placed on a functional instruction, this
operation will search a functional instruction that is searched at last successful search. If the
last search was not made for functional instruction, the last entered string for searching is used
to determine what functional instruction is to be searched.
(f) [LIST] soft key following string that indicates subprogram, switches subprogram on LADDER
DIAGRAM MONITOR screen. Examples for strings to specify subprogram are following:
“L1” Level 1
“P10”, “10” Subprogram “P10”
“0”(zero), “G” Whole of LADDER program (Global)
- 814 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
SYMBOL (default)
Addresses that have a symbol are displayed by the symbols. Addresses without symbols
are displayed by the addresses themselves.
ADDRESS
All addresses are displayed as the addresses themselves even if they have a symbol.
COMPACT (default)
Occupies least space in diagram. Monitors of current values of address parameters are
omitted.
WIDE
Extends the box horizontally to reserve spaces for the monitors of current values of
address parameters. The box becomes wider than COMPACT.
TALL
Extends the box vertically to reserve spaces for the monitors of current values of address
parameters. The box becomes taller than COMPACT.
- 815 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
COMPACT
WIDE
TALL
The displays of current values of address parameters change their format according to each
parameter. See Subsection 8.2.3 for detail.
When you place the cursor on an address parameter, its current value is displayed in the
“Additional Information Line” in both formats of binary decimal, and BCD (or hexadecimal
binary).
NONE (default)
Relay comments are not displayed.
1 LINE
Relay comments are displayed in one line. Up to 15 characters (7 characters in Japanese)
of relay comment can be displayed when "WIDE" is selected for the "CONTACT
WIDTH" setting that is described below. Characters after 15th character will not be
displayed.
2 LINE
Relay comments are displayed in two lines. Up to 30 characters (14 characters in
Japanese) of relay comment can be displayed when "WIDE" is selected to the
"CONTACT WIDTH" setting that is described below. Up to 14 characters can be
displayed. Characters after 30th character will not be displayed.
Display styles of relay comment
- 816 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
NORMAL (default)
A relay is expressed with 8-character length.
Up to 7 characters of symbol can be displayed.
WIDE
A relay is expressed with 16-character length.
Up to 15 characters of symbol can be displayed.
NORMAL
WIDE
YES (default)
Right margin of 2 lines of 15 characters is reserved for display of coil comments.
NO
Right margin is used to extend diagram by one more relay, instead of showing coil
comment. The screen position bar is also displayed at the right edge of the screen in this
option.
Show Coil comment setting
YES NO
YES
Cursor is displayed. Cursor move keys will move the cursor. When the cursor is
placed on bit or byte addresses, the information of the address is displayed at "Additional
Information Line". When you search something with the cursor displayed, the cursor
goes directly where it is found. This option is recommended for search operation with
LADDER program that contains many large nets.
NO (default)
Cursor is not displayed. Up/down cursor move keys will scroll the contents of screen
directly. When you search something with the cursor hidden, the net, which contains it,
will appear at the top of the screen.
- 817 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
LOCAL
Net number starts from 1 at top of current subprogram. Net number is defined only
within current subprogram. The net number information at upper right of the screen is
displayed in the format "displaying range/nets in subprogram NET".
GLOBAL (default)
Net number starts from 1 at top of Level 1 program. Net number is defined identically at
whole of program. The net number information at upper right of the screen is displayed
in the format "displaying range/subprogram range NET".
Current Current
Subprogram Subprogram
- 818 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(h) WRAP SEARCH ENABLED
Allows search process to wrap from top/bottom to bottom/top to continue to search.
YES (default)
Downward search will continue to search from top of LADDER when reaches to bottom.
Upward search will also continue to search from bottom when reaches to top.
NO
Search process will fail when reached top or bottom, and displays an error message at
Message Line.
Not found
Not found
- 819 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
• BOLD DIAGRAM
Sets thickness of diagram lines. This setting also affects shapes of relays.
YES (default)
Diagram is drawn with thick lines. Relays are drawn in more distinct shapes.
You have to choose this option to make following "VARIABLE RELAY SYMBOL"
setting effective.
NO
Diagram is drawn with thin lines. Relays are drawn in smaller shapes.
YES
NO
YES
Shapes of relays change according to their on/off status. This option is effective
only when the setting "BOLD DIAGRAM" is set to "YES". If it is set to "NO",
shapes of relays will not change regardless of this setting.
NO (default)
Shapes of relays will not change.
- 820 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
• ADDRESS COLOR
Colors for the relay address are set. You can specify these colors by entering color
number. 16 colors (from No. 0 to No. 15) are available. Foreground color should be
different from background one.
• DIAGRAM COLOR
General color and its background color for LADDER Diagram. You can specify these
colors by entering color number, or by using right and left cursor move keys to change the
color number. You can use 16 numbers from 0 to 15; however, some different number
may correspond to the same color. You can not specify the same number to the
foreground and the background colors.
• ACTIVE RELAY COLOR
Color setting for the active relay. When a contact allows power flow, and when a coil
receives power, they are active and are displayed with this color setting. When contacts
and coils are not active, they are displayed with "general color". You can specify these
colors in the same manner as color setting of DIAGRAM COLOR, etc.
• PARAMETER COLOR
Color setting for the monitor of functional instruction parameters. They are displayed
when functional instructions are displayed in the shape other than "COMPACT". You
can specify these colors in the same manner as color setting of DIAGRAM COLOR, etc.
• COMMENT COLOR
Colors for the relay comment are set. You can specify these colors by entering color
number, or by moving right and left cursor. 16 colors (from No. 0 to No. 15) are
available. Foreground color should be different from background one.
- 821 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NOTE
1 "Variable" in "Monitor format" field means that this parameter changes its size
according to the other parameter. See the descriptions for each functional
instruction for detail.
2 Functional instruction with "*" mark has Data table.
No. Name Parameter Monitor format No. Name Parameter Monitor format
1 END1 − − 18 XMOV 1 constant
2 END2 − − 2 4-digits BCD
3 TMR 1 special 3 4-digits BCD
4 DEC 1 2-digits BCD 4 4-digits BCD
2 constant 19 ADD 1 constant
5 CTR 1 special 2 4-digits BCD
6 ROT 1 constant 3 4-digits BCD
2 4-digits BCD 4 4-digits BCD
3 4-digits BCD 20 SUB 1 constant
4 4-digits BCD 2 4-digits BCD
7 COD * 1 constant 3 4-digits BCD
2 2-digits BCD 4 4-digits BCD
3 4-digits BCD 21 MUL 1 constant
8 MOVE 1 constant 2 4-digits BCD
2 constant 3 4-digits BCD
3 2-digits HEX 4 4-digits BCD
4 2-digits HEX 22 DIV 1 constant
9 COM 1 constant 2 4-digits BCD
10 JMP 1 constant 3 4-digits BCD
11 PARI 1 1-byte binary 4 4-digits BCD
14 DCNV 1 no monitor 23 NUME 1 constant
2 no monitor 2 4-digits BCD
15 COMP 1 constant 24 TMRB 1 special
2 4-digits BCD 2 constant
3 4-digits BCD 25 DECB 1 constant
16 COIN 1 constant 2 variable binary
2 4-digits BCD 3 constant
3 4-digits BCD 4 2-digits HEX
17 DSCH 1 constant 26 ROTB 1 constant
2 4-digits BCD 2 variable binary
3 4-digits BCD 3 variable binary
4 4-digits BCD 4 variable binary
5 variable binary
- 822 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
No. Name Parameter Monitor format No. Name Parameter Monitor format
27 CODB * 1 constant 39 DIVB 1 constant
2 constant 2 variable binary
3 1-byte binary 3 constant or
4 variable binary variable binary
28 MOVOR 1 2-digits HEX 4 variable binary
2 2-digits HEX 40 NUMEB 1 constant
3 2-digits HEX 2 constant
29 COME − − 3 variable binary
30 JMPE − − 41 DISPB 1 constant
31 DCNVB 1 constant 42 EXIN 1 8-digits HEX
2 no monitor 43 MOVB 1 1-byte binary
3 no monitor 2 1-byte binary
32 COMPB 1 constant 44 MOVW 1 2-bytes binary
2 constant or 2 2-bytes binary
variable binary 45 MOVN 1 constant
3 variable binary 2 4-bytes binary
33 SFT 1 4-digits HEX 3 4-bytes binary
34 DSCHB 1 constant 47 MOVD 1 4-bytes binary
2 variable binary 2 4-bytes binary
3 variable binary 48 END3 − −
4 variable binary 50 PSGNL 1 1-byte binary
5 variable binary 2 2-digits HEX
35 XMOVB 1 constant 51 WINDR 1 2-bytes binary
2 variable binary 52 WINDW 1 2-bytes binary
3 variable binary 53 AXCTL 1 constant
4 variable binary 2 8-digits HEX
5 variable binary 54 TMRC 1 constant
36 ADDB 1 constant 2 special
2 variable binary 3 special
3 constant or 55 CTRC 1 2-bytes binary
variable binary
4 variable binary 56 CTRB 1 constant
37 SUBB 1 constant 2 special
2 variable binary 57 DIFU 1 constant
3 constant or 58 DIFD 1 constant
variable binary 59 EOR 1 constant
4 variable binary 2 variable HEX
38 MULB 1 constant 3 constant or
2 variable binary variable HEX
3 constant or 4 variable HEX
variable binary
4 variable binary
- 823 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
No. Name Parameter Monitor format No. Name Parameter Monitor format
60 AND 1 constant 203 NEB 1 constant or
2 variable HEX 1-byte binary
3 constant or 2 constant or
variable HEX 1-byte binary
4 variable HEX 204 NEW 1 constant or
61 OR 1 constant 2-bytes binary
2 variable HEX 2 constant or
3 constant or 2-bytes binary
variable HEX 205 NED 1 constant or
4 variable HEX 4-bytes binary
62 NOT 1 constant 2 constant or
2 variable HEX 4-bytes binary
3 variable HEX 206 GTB 1 constant or
63 PSGN2 1 1-byte binary 1-byte binary
64 END − − 2 constant or
65 CALL 1 no monitor 1-byte binary
66 CALLU 1 no monitor 207 GTW 1 constant or
68 JMPB 1 no monitor 2-bytes binary
69 LBL 1 no monitor 2 constant or
70 NOP 1 constant 2-bytes binary
71 SP 1 no monitor 208 GTD 1 constant or
72 SPE − − 4-bytes binary
73 JMPC 1 no monitor 2 constant or
74 CS 1 2-bytes binary 4-bytes binary
75 CM 1 no monitor 209 LTB 1 constant or
76 CE - − 1-byte binary
77 TMRBF 1 special 2 constant or
2 constant 1-byte binary
200 EQB 1 constant or 210 LTW 1 constant or
1-byte binary 2-bytes binary
2 constant or 2 constant or
1-byte binary 2-bytes binary
201 EQW 1 constant or 211 LTD 1 constant or
2-bytes binary 4-bytes binary
2 constant or 2 constant or
2-bytes binary 4-bytes binary
202 EQD 1 constant or 212 GEB 1 constant or
4-bytes binary 1-byte binary
2 constant or 2 constant or
4-bytes binary 1-byte binary
- 824 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
No. Name Parameter Monitor format No. Name Parameter Monitor format
213 GEW 1 constant or 221 TMRST 1 Constant or
2-bytes binary Special
2 constant or 2 Special
2-bytes binary 3 No monitor
214 GED 1 constant or 222 TMRSS 1 Constant or
4-bytes binary Special
2 constant or 2 Special
4-bytes binary 3 No monitor
215 LEB 1 constant or 223 CTRD 1 4-bytes binary
1-byte binary 2 4-bytes binary
2 constant or 224 MOVBT 1 No monitor
1-byte binary 2 4-bytes HEX
216 LEW 1 constant or 3 Constant
2-bytes binary 4 4-bytes HEX
2 constant or 5 Constant
2-bytes binary 225 SETNB 1 No monitor
217 LED 1 constant or 2 Constant or
4-bytes binary 1-byte binary
2 constant or 3 1-byte binary
4-bytes binary 226 SETNW 1 No monitor
218 RNGB 1 constant or 2 Constant or
1-byte binary 2-bytes binary
2 constant or 3 2-bytes binary
1-byte binary 227 SETND 1 No monitor
3 constant or 2 Constant or
1-byte binary 4-bytes binary
219 RNGW 1 constant or 3 4-bytes binary
2-bytes binary 228 XCHGB 1 1-byte binary
2 constant or 2 1-byte binary
2-bytes binary 229 XCHGW 1 2-bytes binary
3 constant or 2 2-bytes binary
2-bytes binary 230 XCHGD 1 4-bytes binary
220 RNGD 1 constant or 2 4-bytes binary
4-bytes binary 231 SWAPW 1 No monitor
2 constant or 2 2-bytes binary
4-bytes binary 3 2-bytes binary
3 constant or 232 SWAPD 1 No monitor
4-bytes binary 2 4-bytes binary
3 4-bytes binary
- 825 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
No. Name Parameter Monitor format No. Name Parameter Monitor format
233 TBLRB 1 No monitor 241 DSEQB 1 No monitor
2 1-byte binary 2 1-byte binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 1-byte binary 4 Constant or
234 TBLRW 1 No monitor 1-byte binary
2 2-bytes binary 5 2-bytes binary
3 Constant or 242 DSEQW 1 No monitor
2-bytes binary 2 2-bytes binary
4 2-bytes binary 3 Constant or
235 TBLRD 1 No monitor 2-bytes binary
2 4-bytes binary 4 Constant or
3 Constant or 2-bytes binary
2-bytes binary 5 2-bytes binary
4 4-bytes binary 243 DSEQD 1 No monitor
236 TBLRN 1 No monitor 2 4-bytes binary
2 No monitor 3 Constant or
3 4-bytes binary 2-bytes binary
4 Constant or 4 Constant or
2-bytes binary 4-bytes binary
5 4-bytes binary 5 2-bytes binary
237 TBLWB 1 No monitor 244 DSNEB 1 No monitor
2 1-byte binary 2 1-byte binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 1-byte binary 4 Constant or
238 TBLWW 1 No monitor 1-byte binary
2 2-bytes binary 5 2-bytes binary
3 Constant or 245 DSNEW 1 No monitor
2-bytes binary 2 2-bytes binary
4 2-bytes binary 3 Constant or
239 TBLWD 1 No monitor 2-bytes binary
2 4-bytes binary 4 Constant or
3 Constant or 2-bytes binary
2-bytes binary 5 2-bytes binary
4 4-bytes binary 246 DSNED 1 No monitor
240 TBLWN 1 No monitor 2 4-bytes binary
2 No monitor 3 Constant or
3 4-bytes binary 2-bytes binary
4 Constant or 4 Constant or
2-bytes binary 4-bytes binary
5 4-bytes binary 5 2-bytes binary
- 826 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
No. Name Parameter Monitor format No. Name Parameter Monitor format
247 DSGTB 1 No monitor 253 DSGEB 1 No monitor
2 1-byte binary 2 1-byte binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
1-byte binary 1-byte binary
5 2-bytes binary 5 2-bytes binary
248 DSGTW 1 No monitor 254 DSGEW 1 No monitor
2 2-bytes binary 2 2-bytes binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
2-bytes binary 2-bytes binary
5 2-bytes binary 5 2-bytes binary
249 DSGTD 1 No monitor 255 DSGED 1 No monitor
2 4-bytes binary 2 4-bytes binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
4-bytes binary 4-bytes binary
5 2-bytes binary 5 2-bytes binary
250 DSLTB 1 No monitor 256 DSLEB 1 No monitor
2 1-byte binary 2 1-byte binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
1-byte binary 1-byte binary
5 2-bytes binary 5 2-bytes binary
251 DSLTW 1 No monitor 257 DSLEW 1 No monitor
2 2-bytes binary 2 2-bytes binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
2-bytes binary 2-bytes binary
5 2-bytes binary 5 2-bytes binary
252 DSLTD 1 No monitor 258 DSLED 1 No monitor
2 4-bytes binary 2 4-bytes binary
3 Constant or 3 Constant or
2-bytes binary 2-bytes binary
4 Constant or 4 Constant or
4-bytes binary 4-bytes binary
5 2-bytes binary 5 2-bytes binary
- 827 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
No. Name Parameter Monitor format No. Name Parameter Monitor format
259 DMAXB 1 No monitor 265 EORB 1 Constant or
2 1-byte binary 1-byte HEX
3 Constant or 2 Constant or
2-bytes binary 1-byte HEX
4 1-byte binary 3 1-byte HEX
5 2-bytes binary 266 EORW 1 Constant or
260 DMAXW 1 No monitor 2-bytes HEX
2 2-bytes binary 2 Constant or
3 Constant or 2-bytes HEX
2-bytes binary 3 2-bytes HEX
4 2-bytes binary 267 EORD 1 Constant or
5 2-bytes binary 4-bytes HEX
261 DMAXD 1 No monitor 2 Constant or
2 4-bytes binary 4-bytes HEX
3 Constant or 3 4-bytes HEX
2-bytes binary 268 ANDB 1 Constant or
4 4-bytes binary 1-byte HEX
5 2-bytes binary 2 Constant or
262 DMINB 1 No monitor 1-byte HEX
2 1-byte binary 3 1-byte HEX
3 Constant or 269 ANDW 1 Constant or
2-bytes binary 2-bytes HEX
4 1-byte binary 2 Constant or
5 2-bytes binary 2-bytes HEX
263 DMINW 1 No monitor 3 2-bytes HEX
2 2-bytes binary 270 ANDD 1 Constant or
3 Constant or 4-bytes HEX
2-bytes binary 2 Constant or
4 2-bytes binary 4-bytes HEX
5 2-bytes binary 3 4-bytes HEX
264 DMIND 1 No monitor 271 ORB 1 Constant or
2 4-bytes binary 1-byte HEX
3 Constant or 2 Constant or
2-bytes binary 1-byte HEX
4 4-bytes binary 3 1-byte HEX
5 2-bytes binary 272 ORW 1 Constant or
2-bytes HEX
2 Constant or
2-bytes HEX
3 2-bytes HEX
- 828 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
No. Name Parameter Monitor format No. Name Parameter Monitor format
273 ORD 1 Constant or 282 SHRW 1 Constant or
4-bytes HEX 2-bytes HEX
2 Constant or 2 Constant or
4-bytes HEX 2-bytes binary
3 4-bytes HEX 3 2-bytes HEX
274 NOTB 1 Constant or 283 SHRD 1 Constant or
1-byte HEX 4-bytes HEX
2 1-byte HEX 2 Constant or
275 NOTW 1 Constant or 4-bytes binary
2-bytes HEX 3 4-bytes HEX
2 2-bytes HEX 284 SHRN 1 No monitor
276 NOTD 1 Constant or 2 Constant or
4-bytes HEX 4-bytes HEX
2 4-bytes HEX 3 Constant or
277 SHLB 1 Constant or 4-bytes binary
1-byte HEX 4 4-bytes HEX
2 Constant or 285 ROLB 1 Constant or
1-byte binary 1-byte HEX
3 1-byte HEX 2 Constant or
278 SHLW 1 Constant or 1-byte binary
2-bytes HEX 3 1-byte HEX
2 Constant or 286 ROLW 1 Constant or
2-bytes binary 2-bytes HEX
3 2-bytes HEX 2 Constant or
279 SHLD 1 Constant or 2-bytes binary
4-bytes HEX 3 2-bytes HEX
2 Constant or 287 ROLD 1 Constant or
4-bytes binary 4-bytes HEX
3 4-bytes HEX 2 Constant or
280 SHLN 1 No monitor 4-bytes binary
2 Constant or 3 4-bytes HEX
4-byteS HEX 288 ROLN 1 No monitor
3 Constant or 2 Constant or
4-bytes binary 4-bytes HEX
4 4-bytes HEX 3 Constant or
281 SHRB 1 Constant or 4-bytes binary
1-byte HEX 4 4-bytes HEX
2 Constant or 289 RORB 1 Constant or
1-byte binary 1-byte HEX
3 1-byte HEX 2 Constant or
1-byte binary
3 1-byte HEX
- 829 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
No. Name Parameter Monitor format No. Name Parameter Monitor format
290 RORW 1 Constant or 301 BTSTB 1 1-byte HEX
2-bytes HEX 2 Constant or
2 Constant or 1-byte binary
2-bytes binary 302 BTSTW 1 2-bytes HEX
3 2-bytes HEX 2 Constant or
291 RORD 1 Constant or 2-bytes binary
4-bytes HEX 303 BTSTD 1 4-bytes HEX
2 Constant or 2 Constant or
4-bytes binary 4-bytes binary
3 4-bytes HEX 304 BTSTN 1 No monitor
292 RORN 1 No monitor 2 4-bytes HEX
2 Constant or 3 Constant or
4-bytes HEX 4-bytes binary
3 Constant or 305 BPOSB 1 1-byte HEX
4-bytes binary 2 1-byte binary
4 4-bytes HEX 306 BPOSW 1 2-bytes HEX
293 BSETB 1 1-byte HEX 2 2-bytes binary
2 Constant or 307 BPOSD 1 4-bytes HEX
1-byte binary 2 4-bytes binary
294 BSETW 1 2-bytes HEX 308 BPOSN 1 No monitor
2 Constant or 2 4-bytes HEX
2-bytes binary 3 4-bytes binary
295 BSETD 1 4-bytes HEX 309 BCNTB 1 1-byte HEX
2 Constant or 2 1-byte binary
4-bytes binary 310 BCNTW 1 2-bytes HEX
296 BSETN 1 No monitor 2 2-bytes binary
2 4-bytes HEX 311 BCNTD 1 4-bytes HEX
3 Constant or 2 4-bytes binary
4-bytes binary 312 BCNTN 1 No monitor
297 BRSTB 1 1-byte HEX 2 4-bytes HEX
2 Constant or 3 4-bytes binary
1-byte binary 313 TBCDB 1 Constant or
298 BRSTW 1 2-bytes HEX 1-byte binary
2 Constant or 2 1-byte HEX
2-bytes binary 314 TBCDW 1 Constant or
299 BRSTD 1 4-bytes HEX 2-bytes binary
2 Constant or 2 2-bytes HEX
4-bytes binary 315 TBCDD 1 Constant or
300 BRSTN 1 No monitor 4-bytes binary
2 4-bytes HEX 2 4-bytes HEX
3 Constant or
4-bytes binary
- 830 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
No. Name Parameter Monitor format No. Name Parameter Monitor format
316 FBCDB 1 Constant or 325 MULSB 1 Constant or
1-byte HEX 1-byte binary
2 1-byte binary 2 Constant or
317 FBCDW 1 Constant or 1-byte binary
2-bytes HEX 3 1-byte binary
2 2-bytes binary 326 MULSW 1 Constant or
318 FBCDD 1 Constant or 2-bytes binary
4-bytes HEX 2 Constant or
2 4-bytes binary 2-bytes binary
319 ADDSB 1 Constant or 3 2-bytes binary
1-byte binary 327 MULSD 1 Constant or
2 Constant or 4-bytes binary
1-byte binary 2 Constant or
3 1-byte binary 4-bytes binary
320 ADDSW 1 Constant or 3 4-bytes binary
2-bytes binary 328 DIVSB 1 Constant or
2 Constant or 1-byte binary
2-bytes binary 2 Constant or
3 2-bytes binary 1-byte binary
321 ADDSD 1 Constant or 3 1-byte binary
4-bytes binary 329 DIVSW 1 Constant or
2 Constant or 2-bytes binary
4-bytes binary 2 Constant or
3 4-bytes binary 2-bytes binary
322 SUBSB 1 Constant or 3 2-bytes binary
1-byte binary 330 DIVSD 1 Constant or
2 Constant or 4-bytes binary
1-byte binary 2 Constant or
3 1-byte binary 4-bytes binary
323 SUBSW 1 Constant or 3 4-bytes binary
2-bytes binary 331 MODSB 1 Constant or
2 Constant or 1-byte binary
2-bytes binary 2 Constant or
3 2-bytes binary 1-byte binary
324 SUBSD 1 Constant or 3 1-byte binary
4-bytes binary 332 MODSW 1 Constant or
2 Constant or 2-bytes binary
4-bytes binary 2 Constant or
3 4-bytes binary 2-bytes binary
3 2-bytes binary
- 831 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 832 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
Displays current value by seconds (HH:MM:SS if 1 minute or more) (preset value is displayed by
TMRB
milliseconds)
The 2nd parameter shows preset value, and the 3rd parameter shows current value as their
monitor displays.
These two monitor displays changes their format according to the 1st parameter as below:
1st parameter Resolution Display format
0 8 msec by second
1 48 msec by second
TMRC 2 1 second HH:MM:SS
3 10 seconds HH:MM:SS
4 1 minute HH:MM:SS
5 1 msec by second
6 10 msec by second
7 100 msec by second
Displays current value by seconds (HH:MM:SS if 1 minute or more) (preset value is displayed by
TMRBF
milliseconds)
By the setting time or the addition time, the monitor display format is changed as follows.
In the case of 59 minutes and less than 59 seconds:
TMRSS MM:SS:xxx
When 1 hour is exceeded:
HHH: MM:SS
By the setting time or the addition time, the monitor display format is changed as follows.
In the case of less than 10000 hours:
TMRST HHHH: MM:SS
When 10000 hours is exceeded:
It displays by 10 figures of signed decimal numbers.
Displays in "Current/Preset" format by binary or BCD according to the counter type setting in
CTR
LADDER Program.
- 833 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 834 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(2) Operations
Soft keys of Functional Instruction Data Table Viewer screen of functional instruction COD
Search for data Search for
table number data value Display BCD2 digits Display BCD4 digits
Exit
Soft keys of Functional Instruction Data Table Viewer screen of functional instruction CODB
Exit
- 835 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 836 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
CAUTION
1 You can edit ladder programs regardless of whether they are active or not. To
execute a ladder program with the results of editing being reflected, you must
update the ladder program. To do this, click the [UPDATE] soft key, or update
the program when exiting from the LADDER DIAGRAM EDITOR screen. For
details of the method of protecting editing, see Section 7.3.
2 After you have edited a sequence program, the results of editing will be lost if the
power is turned off without first writing the edited sequence program to flash ROM.
Write the sequence program to flash ROM on the I/O screen. If you set "WRITE
TO F-ROM(EDIT)" to "YES" on the general functions' setting parameter screen, a
confirmation message will be displayed, prompting you to ask whether to write a
sequence program to flash ROM after the end of editing. For details of this
setting, see Section 9.5.
- 837 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Program List Change to Search soft keys Add net Automatic input
Select net Delete net Cut net Copy net Paste net
Display address
map display Make changes
Change address screen effective Abandon changes Setting screen
- 838 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(g) [DELETE] Delete net
Deletes selected nets. The nets deleted by [DELETE] soft key are lost. If you delete wrong
nets by the [DELETE] soft key, you have to abandon the all modifications you have made, and
restore LADDER program to the original one before editing operation by using the [RESTRE]
soft key.
(h) [CUT] Cut nets
Cuts selected nets. The cut nets are preserved in Paste Buffer, and disappear from diagram.
The contents of Paste Buffer before [CUT] operation are lost.
[CUT] and [PASTE] soft keys are used to move nets.
The Paste Buffer can contain approx. 8000 steps maximum, and [CUT] may fail to cut nets of
over 8000 steps.
(i) [COPY] Copy nets
Copy selected nets into Paste Buffer. No change on diagram will be made. The contents of
Paste Buffer before [COPY] operation are lost.
[COPY] and [PASTE] soft keys are used to copy nets.
(j) [PASTE] Paste nets
Pastes nets at cursor position, which were stored into Paste Buffer by [CUT] or [COPY] soft
key.
Pressing [PASTE] soft key while selecting nets using [SELECT] soft key, alters the selected
nets with the nets in Paste Buffer.
The contents of Paste Buffer will remain until turning NC power off.
(k) [CHANGE] Change addresses
Switches to the mode in which the address alteration function is enabled.
(l) [ADRMAP] Display the address map display screen
Displays the address map display screen to view references of addresses in use.
(m) [UPDATE] Make changes effective
Reflects the results of the editing operations executed thus far in the ladder program under
execution. If it succeeds to update running LADDER, edited LADDER starts to run.
WARNING
You have to pay special attention to modify running LADDER program. If you
modify LADDER program in wrong way, or update LADDER program with the
machine in improper status, it may cause unexpected reaction of the machine.
You have to make it sure that modifications you make on LADDER program is
appropriate, machine is in proper status, and nobody is near the machine, when
you update LADDER program.
- 839 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
WARNING
You have to pay special attention to run/stop LADDER program.
Running/stopping LADDER program in a wrong timing, or with machine in
improper status, may cause unexpected reaction of machine. You have to make
it sure that machine is in proper status, and nobody is near the machine when you
run/stop LADDER program.
WARNING
You have to pay special attention to modify running LADDER program. If you
modify LADDER program in wrong way, or update LADDER program with the
machine in improper status, may cause unexpected reaction of the machine.
You have to make it sure that modifications you make on LADDER program is
appropriate, machine is in proper status, and nobody is near the machine, when
you update LADDER program.
- 840 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
SYMBOL (default)
Addresses that have a symbol are displayed by the symbols. Addresses without symbols
are displayed by the addresses themselves.
ADDRESS
All addresses are displayed as the addresses themselves even if they have a symbol.
(b) SHOW COMMENT OF CONTACT
Set the style of relay comment. These are three options as below. When you display relay
comment, less ladder diagram circuits are shown.
NONE (default)
Relay comments are not displayed.
1 LINE
Relay comments are displayed in one line. Up to 15 characters (7 characters in Japanese)
of relay comment can be displayed when "WIDE" is selected for the "CONTACT
WIDTH" setting that is described below. Characters after 15th character will not be
displayed.
2 LINE
Relay comments are displayed in two lines. Up to 30 characters (14 characters in
Japanese) of relay comment can be displayed when "WIDE" is selected to the
"CONTACT WIDTH" setting that is described below. Up to 14 characters can be
displayed. Characters after 30th character will not be displayed.
- 841 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NORMAL (default)
A relay is expressed with 8-character length.
Up to 7 characters of symbol can be displayed.
WIDE
A relay is expressed with 16-character length.
Up to 15 characters of symbol can be displayed.
NORMAL
WIDE
YES (default)
Right margin of 2 lines of 15 characters is reserved for display of coil comments.
NO
Right margin is used to extend diagram by one more relay, instead of showing coil
comment.
- 842 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
YES NO
LOCAL
Net number starts from 1 at top of current subprogram. Net number is defined only
within current subprogram. The net number information at upper right of the screen is
displayed in the format "displaying range / nets in subprogram NET".
GLOBAL (default)
Net number starts from 1 at top of Level 1 program. Net number is defined identically at
whole of program. The net number information at upper right of the screen is displayed
in the format "displaying range / subprogram range NET".
Current Current
Subprogram Subprogram
YES (default)
Downward search will continue to search from top of LADDER when reaches to bottom.
Upward search will also continue to search from bottom when reaches to top.
NO
Search process will fail when reached top or bottom, and displays an error message at
Message Line.
- 843 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Wrap search
YES NO
Not found
Not found
YES (default)
Postprocessing is always performed when you exit from the LADDER DIAGRAM
EDITOR screen. The postprocessing checks the contents of the ladder diagram. This
means that merely by entering the LADDER DIAGRAM EDITOR screen and then exiting
from it, the contents of the ladder diagram is checked again.
NO
Postprocessing is performed only if the ladder program has been changed. No
postprocessing will be performed when you enter the LADDER DIAGRAM EDITOR
screen and then exiting from it. This means that you can exit from the LADDER
DIAGRAM EDITOR screen even if the ladder program contains an error.
Cursor : :
- 844 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
MULTIPLE NETS
You can modify multiple nets near the cursor.
Action in modifying an existing net when “ZOOM MODE” is “MULTIPLE NETS”.
- 845 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
• BOLD DIAGRAM
Sets thickness of diagram lines. This setting also affects shapes of relays.
YES (default)
Diagram is drawn with thick lines. Relays are drawn in more distinct shapes.
NO
Diagram is drawn with thin lines. Relays are drawn in smaller shapes.
YES
NO
• ADDRESS COLOR
Colors for the relay address are set. You can specify these colors by entering color
number. 16 colors (from No. 0 to No. 15) are available. Foreground color should be
different from background one.
• DIAGRAM COLOR
General color and its background color for LADDER Diagram.
• SELECTED NET COLOR
Color setting for a selected net. The net subject to the editing operation will be displayed
in this color.
• PROTECTED NET COLOR
Color setting for a net protected from an editing operation. The protected net will not be
selected as an object of editing. When a subprogram is displayed, those nets that contain
the following functional instructions are protected so that they cannot be deleted or
entered.
END1 END3 SP
END2 SPE
• COMMENT COLOR
Colors for the relay comment are set. You can specify these colors by entering color
number. 16 colors (from No. 0 to No. 15) are available. Foreground color should be
different from background one.
Fig. 8.3.3 (a) Structure of the NET EDITOR screen (ONE NET)
- 847 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Fig. 8.3.3 (b) Structure of the NET EDITOR screen (MULTIPLE NETS)
- 848 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(2) Operation with Soft keys
Functional
A contact B contact Normal coil Inverted coil instructions
Set coil Reset coil Data table Abandon changes Edit next net
(a) [ ], [ ], [ ], [ ], [ S ], [ R ], [ ], [ ]
Place relays (contacts and coils), or change type of existing relays.
When one of these relay soft keys is pressed at cursor on blank place, new relay of the soft key
is placed under the
cursor. When the soft key follows a string that means a bit address, the bit address is assigned
to the newly placed relay.
If no bit address is given, last entered bit address is automatically used for the new relay. If no
bit address has been entered yet, the new relay will have no address assigned to it. Contacts can
be placed at other than rightmost column, and coils can be placed at rightmost column only.
Moving cursor onto an existing relay, pressing a relay soft key of different type changes the
type of relay under the cursor. But, changing coil to contact, and changing contact to coil are
forbidden.
NOTE
The soft key of Positive transition contact[ ] and Negative transition
contact[ ] are displayed when the Extended PMC Ladder Instruction
Function is effective.
- 849 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 850 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(i) [NXTNET] Go to next net
If [ZOOM] soft key at LADDER DIAGRAM EDITOR screen is used to reach NET EDITOR
screen, the [NXTNET] soft key acts on setting of "ZOOM MODE" on ladder diagram editor
setting screen.
- 851 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
If [CREATE] soft key at LADDER DIAGRAM EDITOR screen is used to reach NET
EDITOR screen, [NXTNET] will finish creating current net, insert it into the LADDER
program, and start with blank to create another new net to be inserted next to the current net.
Net 1 Net 1
Net 2 Editing Net 2a Editing
Net 3 Net A Net A Net B
Net 4 Net 3
:
Net 4
:
:
- 852 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(l) [APPCLM] Insert column after cursor
Inserts one blank column at right of cursor position. Diagram elements on right of horizontal
cursor position will be shifted to right by one column. And if necessary, net will be expanded
to right.
- 853 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
On NET EDITOR screen, the priority of displaying symbol and comment by setting of "ZOOM
MODE" on ladder diagram editor setting screen and by selected program is defined as follows.
- 854 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
Convergence point
Output
Input section section
"Input section" consists of contacts and functional instruction, and the result of operations of input section
is led to "Convergence point". After the convergence point, there is "Output section" that consists of
coils only. The "Convergence point" is the nearest point to right power line, where all connections join
with each other to gather into single connection.
Convergence Output
Input section point section
Input section contains at least one relay or functional instruction, however, output section may contain
nothing.
- 855 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NOTE
In order to use the structure of extended type net, the option of the Extended
PMC Ladder Instruction Function is necessary.
As for the structure of extended type net, the following points are extended to the structure of standard
type net.
• Two or more functional instructions can be used for one net.
• A relay or other functional instructions are connectable with the output of a functional instruction.
• In the output section, not only a coil (coil, negative coil, set coil, reset coil) but also a relay and the
functional instruction can be located.
Convergence point
Functional Functional
instruction instruction
Functional
Branch point
instruction
NOTE
The functional instruction, which can be used with the structure of extended type
net has restriction. For details, please refer to Table 8.3.4.2.
- 856 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 857 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 859 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NOTE
When using it with structure of extended type net, it is also possible to also output
a result of operation to a coil or to omit a coil.
- 861 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
D E
Functional
C instruction
- 862 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
8.3.5 Optimization
In order to generate the always same object from the inputted ladder diagram, the optimization which
deletes bit stack manipulation omissible by changing an operation order, makes smaller the object
generated, and makes execution speed quick is performed. However, the optimization which changes an
access order to each bit address is not performed.
A B E
D
Inputted ladder diagram
A B E
- 863 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 864 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
Operations at this screen are below:
(3) Shortcuts
(a) [SELECT] soft key and INPUT key following number or name of a functional instruction will
select the specified functional instruction directly, instead of the one under cursor.
(b) When [FUNC] soft key in NET EDITOR screen is pressed following a string that means
number or name of a functional instruction, the specified functional instruction is entered
directly, without displaying FUNCTIONAL INSTRUCTION LIST screen.
- 865 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 866 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
Soft keys of FUNCTIONAL INSTRUCTION DATA TABLE EDITOR screen of functional instruction CODB
NOTE
In the functional instruction COD (SUB7), the data type of the data table can
dynamically be changed either BCD2 or BCD4 by "BYT" which is one of input
condition. So the data type of the data table is decided when the functional
instruction COD is executed. Decide the display data digit according to the status
of "BYT" by pressing either [BCD2] soft key or [BCD4] soft key. After turning the
power on, the default displaying data type is BCD4 digits. But if you change data
type by pressing [BCD2] soft key or [BCD4] soft key, the data type is kept until you
change again.
The data table of functional instruction COD is stored in the memory as BCD4
digits type. If you change the data type from BCD4 digits to BCD2 digits, the data
is displayed without higher 2-digits. But the data of higher 2-digits is kept in the
memory. So you return the data type from BCD2 digits to BCD4 digits, the
former BCD4 digits is recovered. The input range of the data obeys the current
data type.
- 867 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NOTE
On functional instruction CODB, the data type is decided by the first parameter of
it. So, if you change data type, the first parameter is changed too.
When you added functional instruction CODB to ladder program, the default data
type is BYTE.
NOTE
In case of functional instruction COD, the number of data is decided by the first
parameter of it. In case of functional instruction CODB, the number of data is
decided by the second parameter of it. If you change the number of data, these
parameters are changed too.
- 868 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
On the PROGRAM LIST EDITOR screen, a preview of the editor screen for the ladder program currently
positioned by the cursor on the program list is displayed on the right of the screen.
- 869 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 870 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 871 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 872 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(2) Calling from the LADDER DIAGRAM MONITOR screen
On the LADDER DIAGRAM MONITOR screen, press the [SWITCH] soft key.
- 873 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 875 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
(4) Picking up a ladder net from the LADDER DIAGRAM MONITOR screen
You can pick up a ladder net from the LADDER DIAGRAM MONITOR screen. The procedure
for picking up a ladder net is as described below.
(a) From the LADDER DIAGRAM MONITOR screen, press the [SEARCH] soft key to display
the soft keys for search.
(b) Move the cursor to the ladder net to pick up.
(c) Press the [PICKUP] soft key to pick up and load the net specified in (b) at the beginning of the
COLLECTIVE MONITOR screen.
(d) For the ladder net picked up and loaded into the COLLECTIVE MONITOR screen, the " "
mark is displayed at the left end of the net.
Fig. 8.4.2 (d) LADDER DIAGRAM MONITOR screen (search soft keys)
- 876 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 877 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 878 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(a) [ALTER] Alter to the address specified in the NEW ADDRESS field
Alters the address indicated by the cursor in the ladder diagram display area to the address
specified in the "NEW ADDRESS" field.
This soft key is not displayed if the cursor in the ladder diagram does not indicate an address
that can be altered.
(b) [ALTALL] Alter to the address specified in the NEW ADDRESS field at once
Alters all instances of the address specified in the "OLD ADDRESS" field to the address
specified in the "NEW ADDRESS" field at once. If a whole program is selected, alteration
will take place globally. If a local program is selected, alteration will take place locally.
The following messages are displayed at the start and end of alteration.
(Confirmation message before alteration)
DO YOU ALTER ALL OLD ADDRESS IN GLOBAL?
(At the end of alteration)
ADDRESSES WERE ALTERED INTO "XXXXX" IN THE GLOBAL.
(c) [<=>] Switch the cursor position
Switches the cursor position between "OLD ADDRESS" and "NEW ADDRESS" alternately.
- 879 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
- 880 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
- 881 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
NOTE
1 Parameters of functional instructions are handled as addresses in use with a
length of one byte, regardless of the data length of the parameters.
2 The range of the addresses to be searched for is determined by the specified
address.
Example: When R100.0 is specified, R100.0 to R7999.7 are searched for. (0i-D
PMC)
3 The following addresses are not subject to unused address search: (0i-D PMC)
X/Y1000 to X/Y1127, R9000 to R9499, T0 to T499, T9000 to T9499, C0 to C399,
C5000 to C5199, K900 to K999, A9000 to A9249, P1 to P5000, and L1 to L9999
(c) [JUMP]
Moves you to the net in which the bit address at the cursor position is in use. At this time, the
soft keys will be those of a search menu, allowing lap search with a single round, regardless of
the ladder screen settings.
(d) [EXIT]
Switches the screen to the LADDER DIAGRAM EDITOR screen. At this time, the
LADDER DIAGRAM EDITOR screen displays the ladder net that it displayed before the
switch to this screen.
- 882 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
NOTE
This operation is available to bit addresses only.
You cannot automatically input byte addresses.
- 883 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Operation
This function is applicable to the first parameters of the following functional instructions.
SUB3 (TMR)
SUB5 (CTR)
SUB24 (TMRB)
SUB56 (CTRB)
SUB57 (DIFU)
SUB58 (DIFD)
Moving the cursor to one of these parameters and pressing the [AUTO] soft key causes an unused
parameter number to be input.
NOTE
Special specifications apply to SUB3 (TMR) and SUB5 (CTR). For details, see
"Automatic input of the TMR parameter of a functional instruction" and "Automatic
input of the CTR parameter of a functional instruction", described later.
If you perform this operation with a parameter number already input, an unused parameter number
subsequent to that number will be set.
If an attempt is made to perform this operation on a function instruction to which this operation is not
applicable, the following error message will be displayed.
If no unused numbers for parameters are found, the following error message will be displayed.
- 884 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
CTR-number xx: setting xxxxxxxxxx current-value xxxxxxx
- 885 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Time to check
When you edit coils, this function always detects double coils.
When the check makes a hit, the following message is displayed:
- 886 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
The result of check is displayed with a list of net numbers of a program that is using duplicated data.
You can display a selected ladder net by moving the cursor and pressing the [JUMP] soft key.
Screen structures
(1) ADDRESS
Duplicated PMC address of coil and Functional instruction's name and number are displayed. You
can also display it by symbol instead of PMC address by pressing the [SYMBOL] soft key.
- 887 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
Fig. 8.10 (b) Soft keys on the Duplicate coil check screen
When you cancel the searching, the check result display area is cleared. Please operate the search
function again to re-display it.
- 888 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
The following letters can be used for searching functional instruction.
- 889 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
History 1 Step Screen Subprogram List State Display Ladder Screen Subprogram List Collective Monitor
[LIST]
Program List
[ZOOM]
History 2 Step Screen Subprogram List State Display Ladder Screen Subprogram List Collective Monitor
[SPLIST] [ZOOM]
[SWITCH]
History 3
Step Screen Subprogram List State Display Ladder Screen Subprogram List Collective Monitor
[JUMP]
History 4 Step Screen Subprogram List State Display Ladder Screen Subprogram List Collective Monitor
History n Step Screen Subprogram List State Display Ladder Screen Subprogram List Collective Monitor
- 890 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
P203 P203
- 891 -
8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD]) B-64393EN/02
History of
the
displayed
subprogram
Size area
Calling
subprogram
- 892 -
B-64393EN/02 8.LADDER DIAGRAM MONITOR AND EDITOR SCREENS ([PMCLAD])
(d) [SEARCH] Subprogram search
Searches for a subprogram. When you press the [SEARCH] soft key after entering a
subprogram name or symbol name, the subprogram corresponding to the entered character
string is searched for.
(e) [LIST] Go to PROGRAM LIST VIEWER screen
Displays the program list screen.
(2) Others
For details of screen structures and operation, see Section 8.1, "DISPLAYING A PROGRAM LIST
([LIST] SCREEN)".
- 893 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
SYSTEM
- 894 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
PMC type
- 895 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operations
Switch to the editor screen Switch to the TITLE DATA (MESSAGE) screen
NOTE
The [EDIT] soft key appears when the Programmer Protection is released, and
it becomes effective.
- 896 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Input mode
Screen operations
Soft keys on the PMC Title Data Editor screen
Change the input mode Delete title data Move to the PMC Title Data screen
- 897 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
• Full-string input
The entire string at the cursor is selected and replaced with an input string.
• Insert mode
Input characters are inserted at the cursor. Pressing the INPUT key with inputting no
characters inserts one space.
• Replace mode
Input characters replace characters at and after the cursor. Pressing the INPUT key with
inputting no characters replaces the character at the cursor with a space.
- 898 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Screen operation
- 899 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
For details of former type symbol and comment screen, see Subsection 9.2.1 to 9.2.4.
For details of extended type symbol and comment screen, see Subsection 9.2.5 to 9.2.7.
Scroll bar
ADDRESS: Displays the byte or bit addresses for which a symbol or comment is registered.
SYMBOL: Displays the symbol for each address (16 characters).
COMMENT: Displays the comment for the address (30 characters).
Scroll bar: Indicates the position of the current displayed data.
Amount of occupied memory:
The amounts of memory occupied by symbol data and of that occupied by comment data,
and total amount of memory occupied by symbol and comment data are displayed under
the symbol and comment display.
- 900 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Screen operations
Soft keys on the SYMBOL & COMMENT DATA VIEWER screen
Fig. 9.2.1 Soft keys on the SYMBOL & COMMENT DATA VIEWER screen
CAUTION
When the programmer protection function is enabled, the [EDIT] soft key
appears and is available. When the online monitor function is enabled, you
cannot move to the SYMBOL & COMMENT DATA EDITOR screen.
For details, see Section 6.2.
- 901 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Amount of unused memory: The amount of unused memory for editing symbol and comment data is
displayed under the symbol and comment display.
Screen operations
Soft keys on the SYMBOL & COMMENT DATA EDITOR screen
Change data or register changed data as a new entry Delete all data
Terminate editing
Fig. 9.2.2 Soft keys on the SYMBOL & COMMENT DATA EDITOR screen
- 902 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operations using the soft keys
(a) [ZOOM] Change data or register changed data as a new entry
Switches to the screen for changing data of the entry at the cursor or registering the changed
data as a new entry.
(b) [NEW] Register a new entry
Switches to the screen for registering a new entry.
(c) [DELETE] Delete data
Deletes symbol and comment data at the cursor.
(d) [DELALL] Delete all data
Deletes all symbol and comment data.
(e) [SEARCH] Search for data
Searches for the address corresponding to the input string or an address for which symbol or
comment data containing the input string is defined and displays it on the screen. Both bit and
byte addresses can be searched for.
(f) [EXIT] Terminate editing
Switches to the SYMBOL & COMMENT DATA VIEWER screen.
Example 1:
Inputs an address, symbol, and comment. A slash “/” is used as a delimiter.
G0.4/*EMG/EMERGENCYSW/INPUT key
Example 2:
Omits a comment. A slash “/” is used as a delimiter.
G0.4/*EMG// INPUT key
G0.4/*EMG/ INPUT key
G0.4/*EMG INPUT key
To update symbol or comment data for an existing address, move the cursor to the target address and
enter symbol or comment data with omitting the address.
Example 3:
Omits an address and inputs symbol and comment data. A slash “/” is used as a delimiter.
/*EMG/EMERGENCYSW/INPUT key
In this case, when symbol or comment data is omitted, the displayed data is not changed.
- 903 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operations
Soft keys on the symbol & comment data entry editor screen
Change the input mode Replace an entry New entry Delete characters Cancel edits
Fig. 9.2.3 Soft keys on the symbol & comment data entry editor screen
- 904 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operations using the soft keys
(a) [INPMOD] Change the input mode
Pressing the [INPMOD] soft key changes the input mode. The selection cycles in the following
order. In the insert mode, "INSERT" appears on the screen; in the replace mode, "ALTER"
appears.
• Full-string input
The entire string at the cursor is selected and replaced with an input string.
• Insert mode
Input characters are inserted at the cursor. Pressing the INPUT key with inputting no
characters inserts one space.
• Replace mode
Input characters replace characters at and after the cursor. Pressing the INPUT key with
inputting no characters replaces the character at the cursor with a space.
(b) [ALTER] Replace an entry
Replaces the target entry with edit data. When the data in the address field is updated and the
address is a new one, the original data corresponding to the old address is deleted and the edit
data is registered as a new entry. If an address to be registered as a new one is already
registered, a confirmation message appears, which asks you if you are sure to overwrite the old
data.
(c) [ADD] New entry
Registers input data as a new entry. If the address of the new entry is already registered, a
confirmation message appears, which asks you if you are sure to overwrite the old data.
(d) [DELETE] Delete characters
Performs either of the following deletions:
• In the full-string input mode
Deletes the string at the cursor.
• In the insert or replace mode
Deletes one character at the cursor.
(e) [CANCEL] Cancel edits
Cancels edits and switches to the SYMBOL & COMMENT DATA EDITOR screen. The data
is not updated.
(f) [PREV] Editing previous entry
You can edit a symbol and comment on previous entry without leaving from editing mode.
(g) [NEXT] Editing next entry
You can edit a symbol and comment on next entry without leaving from editing screen.
- 905 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operations
Symbol & comment data entry editor screen
Delete characters
Fig. 9.2.4 Soft keys on the symbol & comment data entry editor screen
- 906 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operations using the soft keys
(a) [INPMOD] Change the input mode
Pressing the [INPMOD] soft key changes the input mode. The selection cycles in the following
order. In the insert mode, "INSERT" appears on the screen; in the replace mode, "ALTER"
appears.
Full-string Insert Replace
input mode mode
• Full-string input
The entire string at the cursor is selected and replaced with an input string.
• Insert mode
Input characters are inserted at the cursor. Pressing the INPUT key with inputting no
characters inserts one space.
• Replace mode
Input characters replace characters at and after the cursor. Pressing the INPUT key with
inputting no characters replaces the character at the cursor with a space.
(b) [ADD] Register new entry data
Registers input data as a new entry. If the address of the new entry is already registered, a
confirmation message appears, which asks you if you are sure to overwrite the old data.
(c) [DELETE] Delete entry data
Performs either of the following deletions:
• In the full-string input mode
Deletes the string at the cursor.
• In the insert or replace mode
Deletes one character at the cursor.
(d) [CANCEL] Cancel edits
Cancels edits and switches to the SYMBOL & COMMENT DATA EDITOR screen. The data
is not updated.
(2) Screen operation using other keys
Cursor keys: Move the cursor.
(3) RETURN key operation
On the symbol & comment data entry editor screen, the return key operation is disabled. To
terminate editing of a symbol and comment data entry and return to the SYMBOL & COMMENT
DATA EDITOR screen, use the [EXIT] soft key.
- 907 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Scroll bar
Fig. 9.2.5(a) Extended symbol and comment displaying screen (Outline mode, Symbol order)
Fig. 9.2.5(b) Extended symbol and comment displaying screen (Details mode, Symbol order)
- 908 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Pressing the [ADRS] or [SYMBOL] soft key, you can sort entries by address or characters of symbol.
Fig. 9.2.5(c) Extended symbol and comment displaying screen (Outline mode, Address order)
Fig. 9.2.5(d) Extended symbol and comment displaying screen (Details mode, Address order)
PROG.SYMBOL: Symbol is displayed. When a symbol is local symbol, this symbol is displayed as the
form “[PROGRAM NAME].[SYMBOL]”
ADDRESS: Address is displayed.
TYPE: Data type is displayed.
COMMENT: Comment is displayed. When multi comments are defined, you can see each comment
by pressing the soft key [SW.CMT].
- 909 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Operation
Soft keys on the SYMBOL & COMMENT DATA VIEWER screen
Switch to the address Switch the program name Change the display mode
order display to symbol notation
Fig. 9.2.5(e) Soft key layout in extended symbol and comment displaying screen
- 910 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Fig. 9.2.6(a) Extended symbol and comment editing screen (One comment display)
Pressing the [ALLCMT] soft key changes a screen to the “All comment display” screen. In the “All
comment display” screen, you can refer to other comment sets in editing.
Fig. 9.2.6 (b) Extended symbol and comment editing screen (All comment display)
FREE: Free memory size to store symbol and comment is shown. Editing various data such as sequence
program and message will change this free size.
- 911 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Operation
Soft keys on the SYMBOL & COMMENT DATA EDITOR screen
End of editing
Search for data Display the previous entry Display the next entry
Select characters Delete characters Cut characters Copy characters Paste characters
Fig. 9.2.6 (c) Soft key layout in extended symbol and comment editing screen
- 912 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operation by soft key
(a) [ALLCMT] / [ONECMT] Changing the comment display mode
This soft key allows you to change the comment display mode.
One mode is “All comment display”. Another is “One comment display”. In the “All comment
display” mode, you can edit all comments in the same screen. In the “One comment display”
mode, you can refer to another symbol and comment.
(b) [SEARCH] Searching word
You can search entry by address expression, part characters of symbol or part characters of
comment.
(c) [PREV] Editing previous entry
You can edit a symbol and comment on previous entry without leaving from editing mode.
(d) [NEXT] Editing next entry
You can edit a symbol and comment on next entry without leaving from editing screen.
(e) [NEW] Adding a new entry
You can add a new symbol and comment entry.
(f) [DELETE] Deleting entry
You can delete a symbol and comment entry.
(g) [ADRS] / [SYMBOL] Changing a displaying order
You can change the displaying order. Pressing the soft key [ADRS], all entries are sorted by
address. Pressing the soft key [SYMBOL], entries are sorted by character of symbols in each
sub programs.
(h) [PRGSYM] / [PRGNO.] Changing a display of program name
Pressing the [PRGSYM] soft key, all symbols defined to addresses P are displayed as a name
of sub program. Pressing the [PRGNO.] soft key, addresses P are displayed as a name of
subprogram.
(i) [SW.CMT] Changing a display of comment set.
Pressing the [SW.CMT] soft key, current displaying comment set is changed to next comment
set.
(j) [EXIT] Terminating editing
Pressing the [EXIT] soft key, editing of symbol and comment is terminated. A screen is
changed to symbol and comment display screen.
(k) [INPMOD] Changing an input mode
Pressing the [INPMOD] soft key, input mode is changed as following. Current input mode is
displayed on right top of the screen.
WHOLE INSERT ALTER
• WHOLE
This mode is whole editing mode. Whole characters on the cursor are replaced.
• INSERT
The input characters are inserted before the cursor. On comment editing box, pressing the
INPUT key with no character inserts one white space before the cursor.
• ALTER
The characters on and after cursor are overwritten by input characters. On comment
editing box, pressing the INPUT key with no character overwrites a character on the
cursor by one white space.
(l) [LF] Inserting a new line code
On comment editing box, pressing the [LF] soft key inserts a new line code. When you print a
sequence program on FANUC LADDER-III, comment string starts new line at the inserted new
line code. New line code is only available in comment string.
- 913 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 914 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Fig. 9.2.7 (a) Adding new entry of symbol and comment screen (One comment display)
Fig. 9.2.7 (b) Adding new entry of symbol and comment screen (All comment display)
- 915 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Operation
Soft keys on the SYMBOL & COMMENT DATA EDITOR screen (New entry mode)
Change to the all comment
displayed screen Registering the entry Registering the current entry and create a new entry
Switch displaying
comment Cancel edits
Change the input mode Insert the line feed code (for comment)
Select characters Delete characters Cut characters Copy characters Paste characters
Fig. 9.2.7 (c) Soft key layout in adding new entry of symbol and comment screen
As for the explanation of other soft keys, please refer to "9.2.6 Editing Extended Symbol and
Comment".
- 916 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Screen configuration
(1) On the screen, message addresses, message requesting monitors, message numbers, and message
data are displayed from left to right. A message requesting monitor indicates the status of the signal
(A addresses) of the message address. In the simple message data display area, the first line of data
is displayed.
(2) In the detailed message data display at the bottom of the screen, message data at the cursor is all
displayed.
(3) On the message display line at the bottom of the screen, an error message appears when issued.
- 917 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operations
Soft keys on the PMC Message Data Viewer screen
NOTE
When the programmer protection function is enabled, the [EDIT] soft key
appears and is available. When the online monitor function is enabled, you
cannot move to the MESSAGE DATA EDITOR screen. For details, see Section
6.2.
(c) [PVIEW] Previewing message data
Displays a character code enclosed by at signs (@) with the corresponding character actually
displayed.
Example)
Kana: ”@B6C532@” →”カナ 2”
Kanji: ”@0248733E6F44643B5F01@100”→”非常停止 100”
European character type 1: UNZUL@0DC101@SSIGE → "UNZULÄSSIGE"
European character type 2: C@0EA501@MBO@0EA801@ → "CИMBOЛ"
European character type 3: @05ED01@123 → " 123"
- 918 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Screen configuration
(1) On the screen, message addresses, message numbers, and message data are displayed from left to
right. In the message data edit area, the first line of data is displayed.
(2) In the detailed message data display at the bottom of the screen, message data at the cursor is all
displayed.
(3) On the message display line at the bottom of the screen, an error message appears when issued.
- 919 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operations
Soft keys on the PMC Message Data Editor screen
Previewing message
data characters
Display the entry editor screen Search for message data Switch to the display screen
Paste an entry
- 920 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(i) [PASTE] Paste an entry
Replaces data at the cursor with the entry transferred to the pasting buffer by the [CUT] or
[COPY] soft key. When the contents of the pasting buffer are pasted by pressing the [PASTE]
soft key, they are not erased. The contents of the pasting buffer are retained until the power to
the NC is turned off.
(j) [DELALL] Delete all entries
Deletes all message data.
- 921 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Input mode
Message number edit area Area for editing a message data string
Screen configuration
(1) On the screen, message addresses, message numbers, and message data are displayed from left to
right. In the simple message data display area, the first line of data is displayed.
(2) The message number edit area and area for editing a message data string at the bottom of the screen
are used to edit the message number and data.
(3) On the message display line at the bottom of the screen, an error message appears when issued.
- 922 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Screen operations
Soft keys on the message data entry editor screen
Change the input mode Change data to be edited Input an at sign (@) Switch to the editor screen
Select characters Delete characters Cut characters Copy characters Paste characters
Cancel edits
Fig. 9.3.3 Soft keys on the message data entry editor screen
• Full-string input
The entire string at the cursor is selected and replaced with an input string.
• Insert mode
Input characters are inserted at the cursor. Pressing the INPUT key with inputting no
characters inserts one space.
• Replace mode
Input characters replace characters at and after the cursor. Pressing the INPUT key with
inputting no characters replaces the character at the cursor with a space.
(b) [<=>] Change data to be edited
Use this soft key to move the cursor between the message number edit area and area for editing
a message string. You can check the cursor position to know which data is currently being
edited.
(c) [@] Input an at sign (@)
To display a kana, kanji, or special character, the character code of the character is enclosed by
at signs (@). To simplify the input of an at sign (@), this soft key adds an at sign (@) to the
string in the key input line. This soft key is enabled when the input mode is insert or replace.
In the full-string input mode, this soft key is not displayed.
(d) [PVIEW] Previewing message data
Displays a character code enclosed by at signs (@) with the corresponding character actually
displayed.
The operation method conforms to that for [PVIEW] on the MESSAGE DATA VIEWER
screen. For details, see "Screen operations" for the MESSAGE DATA VIEWER screen.
- 923 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
NOTE
1 For details of the input format for kanji and other special character strings, see
Subsection 4.11.1.
2 For details of the extended specification of message number, see the description
of Extended specification in Subsection 4.11.1.(iv)
- 924 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Channel number
Screen operations
- 925 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Channel number
Screen operations
Soft keys in I/O MODULE EDITOR screen
- 926 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
NOTE
As to the allocation name of I/O Unit, see Tables 3.2 (a) to 3.2 (c) in Chapter 3.
(c) The I/O Unit is allocated to address of the cursor position for the I/O Unit size.
In case of above example (b), I/O Unit is allocated at X08 and X09 like as follows.
NOTE
1 To make the allocation effective, after storing the Ladder program in the flash
ROM, turn the power to the CNC and all slave I/O devices off, then on again.
2 The Ladder program is not stopped automatically when you open I/O MODULE
VIEWER screen or EDITOR screen.
- 927 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 928 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
NOTE
You can also use the keep relay screen (for K900 and after) to set these setting
parameters.
Setting screen of multi-language display function, selectable I/O link assignment function and
OVERRIDE mode of the forced input/output function and System Keep Relay screen can be protected by
programmer protection function.
[PMCCNF] [PMCMNT]
[SETING] [KEEPRL]
[<]
PMC SETTING (GENERAL) screen Keep Relay
(K0-K99)
- 929 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Use the [↑] and [↓] keys to move the item cursor.
Use the [←] and [→] keys to move the setting cursor and set the parameter.
Use the page keys to switch to another page.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
- 930 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(e) DATA TBL CNTL SCREEN (K900.7)
YES: Displays PMC parameter data table control screen.
NO: Does not displays PMC parameter data table control screen.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
NOTE
This setting effects some PMC functions.
For details, see Section 6.2.
- 931 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
NOTE
For details of the display condition for this screen, see Section 6.2.
NOTE
Data set for "MESSAGE SHIFT START ADDRESS" is valid only when the value
set for "MESSAGE SHIFT VALUE" is other than 0.
- 932 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(3) Setting screens for the selectable I/O link assignment function
NOTE
For details of the display condition for this screen, see Section 6.2.
WARNING
If you modify this setting parameter without care, the I/O assignment data may
not match I/O devices and turning on the power may result in unexpected
malfunctions of machine. So, it is required that the operator of this function
should be an expert who fully understands the sequence program and the
operation of PMC. It is also strongly recommended to the developer of machine
that this setting screen should be protected from careless use by ordinary
operators after the machine is shipped into the field.
- 933 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 934 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(4) PMC SETTING (OVERRIDE) screen
On this screen, specify whether to enable the override function.
NOTE
For details of the display condition for this screen, see Section 6.2.
NOTE
The change to this parameter setting is made effective at the next power-on.
After changing the setting of this parameter, be sure to turn the power off, then
on again.
WARNING
Special care must be exercised when using the Override function. If the Override
function is used incorrectly, the operation of the machine may be unpredictable.
Therefore, please use the Override function after understood "7.1.1 Forced I/O
function" sufficiently. Moreover, When shipping the machine, please disable the
Override function invariably.
- 935 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 936 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
The status display for PMC shows title information (comment), ladder execution performance monitor,
current execution time of the ladder program, sequence program number and edition corresponding to the
title data, and alarm mark.
The ladder execution performance monitor shows the progress of the execution of the level-1 and level-2
sequence sections of the ladder program on the monitor bar. The progress of the execution of the level-1
sequence section of the ladder program is displayed with a numeric value next to the monitor bar. When
the ladder program is stopped, the monitor bar is not displayed.
The alarm mark is displayed only when an alarm is issued on the PMC. Nothing is displayed when no
alarm is issued.
- 937 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
CAUTION
When the programmer protection function is enabled, the [RUN]/[STOP] soft key
appears and is available. For details, see Section 6.2.
- 938 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
WARNING
If the sequence program is stopped while the machine is operating, the machine
may behave in an unexpected way. Before stopping the sequence program,
ensure that there are no people near the machine and that the tool cannot
collide with the workpiece or machine.
Otherwise, there is an extreme risk of death or serious injury, as well as the
likelihood of the tool, workpiece, and machine being damaged.
NOTE
In case of a fatal PMC alarm that prevents the program to start, even if you
press "YES" softkey, the program will not start.
- 939 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
CAUTION
When the online function is used with RS-232C, the selected channel is
occupied by the PMC system. To use other functions with RS-232C, specify
other channel setting than the one used by online function.
Even while you are monitoring signals, ladder program and PMC parameters, and editing PMC
parameters using the online function, you can monitor them also on following PMC screen.
On these screens, if you start editing the sequence program by online edit or storing another sequence
program from FANUC LADDER-III or Ladder Editing Package to PMC, PMC will stop monitoring the
sequence program. When updating the sequence program is completed, PMC will start monitoring the
new program again.
- 940 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
However, on the following PMC screens, even if you start storing another sequence program from
FANUC LADDER-III or Ladder Editing Package to PMC, symbol and comment data displayed in the
screen will not be updated automatically.
When symbol and comment data are displayed again by page up/down key, etc, the updated symbol and
comment data will be displayed.
CAUTION
1 While communicating with online function, you can not move to following PMC
editor screens and an attempt will result in an error message "PROGRAM IS
BEING MODIFIED".
On the other hand, while the following PMC screens are displayed, a demand to
make connection with the online function of FANUC LADDER-III or Ladder
Editing Package will be rejected, and will issue a communication error instead
and you can not use online function.
Use the online function on the screen except following PMC screens.
- LADDER DIAGRAM EDITOR screen
- PROGRAM LIST EDITOR screen
- TITLE DATA EDITOR screen
- SYSTEM PARAMETER EDITOR screen
- I/O MODULE EDITOR screen
- SYMBOL & COMMENT DATA EDITOR screen
- MESSAGE DATA EDITOR screen
- PMC PARAMETER (DATA TABLE) screen (write enable)
(When data table control data is protected, the data table control data can not
be modified on the screen. For details, see section 6.2.1 and 6.2.2)
2 If you start storing a PMC parameter from FANUC LADDER-III or Ladder Editing
Package to PMC, while the PMC PARAMETER (DATA TABLE) screen is
displayed, data table is displayed according to the old data table control data
until you once exit and re-enter PMC PARAMETER (DATA TABLE) screen.
- 941 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Before using the online function, put the online function into the connection waiting state on the PMC.
To put the PMC into the connection waiting state, use the PARAMETERS FOR ONLINE MONITOR
screen or relevant CNC parameter.
To use Ethernet for connecting the online function, set Ethernet communication parameters. For details
of the Ethernet communication parameters, see Subsection 9.7.3.
(1) Setting of online connection using the PARAMETERS FOR ONLINE MONITOR screen
Press the [ONLINE] soft key to display the PARAMETERS FOR ONLINE MONITOR screen.
NOTE
When the programmer protection function is enabled, the online setting screen is
available. For details, see Section 6.2.
EMG ST: Terminates communication forcibly. Use this key if communication becomes abnormal
and the connection cannot be terminated normally.
INIT: Initializes the parameters to their default values.
CAUTION
In case of configuration of CNC with which neither Ethernet nor HSSB is
available, the item of "HIGH SPEED " is not displayed.
- 942 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(a) Case of connection by RS-232C (FANUC LADDER-III)
(i) Check that "NOT USE" is selected at the "RS-232C" item.
(ii) Set the parameter of "CHANNEL" and "BAUD RATE".
(iii) Move the cursor to the "RS-232C" item with Up or Down Cursor key.
(iv) Select "USE" with Left or Right Cursor key.
(b) Case of connection by Ethernet (FANUC LADDER-III, Ladder Editing Package)
(i) Move the cursor to the "HIGH SPEED" item with Up or Down Cursor key.
(ii) Select "USE" with Left or Right Cursor key.
(c) Case of connection by HSSB (Ladder Editing Package)
(i) Move the cursor to the "HIGH SPEED" item with Up or Down Cursor key.
(ii) Select "USE" with Left or Right Cursor key.
NOTE
1 When both "RS-232C = USE" and "HIGH SPEED = USE" are selected, the PMC
system will communicate with the application which is connected at first. If PMC
system is already connecting with an application, it can not connect with other
applications.
2 When you use the online function by Ethernet, the setting of Ethernet
parameters at CNC is necessary in advance.
- 943 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
The display messages and the meanings are shown in the table of below.
- 944 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
- 945 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
(b) Select the [Network Address] tab and push the <Add Host> button. Input the "IP Address" and
"Port No." inputted in (1) of this subsection.
- 946 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(c) Select the [Setting] tab, and add the IP Address to "Use device".
- 947 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 948 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
- 949 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Display screen
Screen operation
- 950 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operation using the soft key
[EDIT] Switch to the edit screen
Switches to the system parameter edit screen.
CAUTION
When the programmer protection function is enabled, the [EDIT] soft key
appears and is available. When the online monitor function is enabled, you
cannot move to the system parameter edit screen. For details, see Section 6.2.
Setting screen
Screen operation
Terminate setting
Initialize settings
CAUTION
After changing the data type, set the counter value again.
See Subsection 7.3.2.
- 951 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
- 952 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Display screen
Screen operation
- 953 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Setting screen
Screen operation
Terminate setting
Initialize settings
- 954 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
(1) Operation using the soft key
(a) [EXIT] Terminate setting
Switches to the system parameter display screen.
(b) [INIT] Initialize settings
Initializes all system parameters.
- 955 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
9.8.3 Displaying and Setting Parameters for the Selectable I/O Link
Assignment Function
Display and set parameters for using the selectable I/O Link assignment function.
Display screen
• ENABLE SELECTION
Whether to enable or disable the selectable I/O Link assignment function
• BASIC GROUP COUNT
Number of groups always enabled for any machine configuration
Screen operation
CAUTION
When the programmer protection function is enabled, the [EDIT] soft key
appears and is available. When the online monitor function is enabled, the
system parameter edit screen cannot be displayed. For details, see Section 6.2.
- 956 -
B-64393EN/02 9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF])
Setting screen
• ENABLE SELECTION
Specify whether to enable or disable the selectable I/O Link assignment function with YES or NO.
The initial setting is NO (disabled).
• BASIC GROUP COUNT
Set the number of groups always enabled for any machine configuration.
CAUTION
When enabling this function, set the setting parameters (K920 to K927 described
below) properly according to the actually connected I/O devices. If this function
is enabled, but the DI/DO area is not assigned to a hardware channel, the
function does not operate.
NOTE
The parameters can be set only for available channels according to the I/O Link
configuration. For a channel for which the parameters cannot be set, the BASIC
GROUP COUNT field is left blank.
- 957 -
9.PMC CONFIGURATION DATA SETTING SCREENS ([PMCCNF]) B-64393EN/02
Screen operation
Terminate setting
Initialize settings
- 958 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
Function
block FUNC2
FUNC
IN1 OUT1
IN2 OUT2
Function block definition
NOTE
To use the Function Block function, its option is necessary. This option includes
the Extended PMC Ladder Instruction Function. So, it is not necessary to arrange
the option of the Extended PMC Ladder Instruction Function separately.
NOTE
Programming using function blocks requires FANUC LADDER-III, a PMC
programmer that runs on PC. You can also use PMC screens built into the CNC
to display the function block monitor and to change addresses and other items
that are set as parameters.
- 959 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
Instance name
Input section
An “instance name” is a name that uniquely identifies each instance of a function block. Each instance
has different name with each other.
A “function block name” is the name of the source function block definition of each instance. The
instances that call the same function block have the same function block name.
“Input parameters” receive input signals to a function block. Specify the value passed to each input
parameter with an address or constant in the “input section”. For a bit signal, specify its address on the
relevant contact.
“Output parameters” are output signals from a function block. In the “output section”, specify the
address for receiving each output parameter value to fetch the output of the function block. For a bit
signal, specify its address on the relevant coil.
“Input/output parameters” functions as both input and output of a function block. It is represented as
the two same parameter names in the input and output parameter positions connected by a line.
- 960 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted into
CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 While the data of input/output parameters are passed by reference, the data of
other parameters are passed by value.
2 A value of 2 or larger can be specified to pass multiple contiguous data items of
the same data type.
- 961 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted into
CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
1 A value of 2 or larger can be specified to allocate contiguous areas for multiple
data items of the same data type.
- 962 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(4) Program in a function block(FB body program)
Item Specification Remarks
Programming language Ladder language can call another function block
(up to 4 nested levels).
Maximum number of steps 8000 steps per function block
Available addresses Defined parameters, and internal and external
variables (NOTE 1)
Fixed PMC addresses (NOTE 2)
Available instructions Basic and functional instructions available with the
PMC for 0i-D/0i Mate-D. The following
instructions cannot be used, however:
END1, END2, END3, END
SP, SPE, CALL, CALLU, JMPC
CS, CM, CE
The following instructions cannot be used in any
function block for which more than one instance is
to be created:
TMR
CTR, CTRB
For the following instructions, the automatic
number assignment function must be used:
TMRB, TMRBF
DIFU, DIFD
Call of another function block Other function block can be called up to 4 levels
deep.
NOTE
1 They are programmed not with actual addresses, but with symbols.
2 Any addresses (including X, Y, F, G, R, D, and so on) available in the ladder
language of the PMC for 0i-D/ 0i Mate-D can be directly specified.
NOTE
1 In PMC for 0i-D, up to 5000 instances can be used. In DCS PMC and PMC/L for
0i-D/0i Mate-D, up to 512 instances can be used.
- 963 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
- 964 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
NOTES
1 In addition to the memory usage listed in the table, some amount of memory may
be used to adjust the memory allocation.
2 These items are required for each type of function block used in the program.
3 To enable function block definitions to be restored at decompilation, include the
function block definition data in the object. In this case, the memory usage varies
depending on the contents of the function block definition. Generally the memory
usage of a function block consisting of 8000 steps may be about 7K to 10K bytes.
4 The size of FB body program is added for each instance.
5 The memory usage in following cases is 8 bytes.
- Case of input side of input/output parameter
- Case of omitted output side of output parameter and input/output parameter.
6 The size of FB body program is calculated in the same way as for conventional
ladder programs as the memory usage listed in the table below.
Type of instruction Memory usage
Basic instruction 4 bytes
Functional instruction 4 bytes
Functional instruction parameter 4 bytes
See “2.1.4 Sequence Program Memory Capacity” for details.
7 One double-byte character uses 2 bytes.
8 One definition of symbol and comment data uses 16 to 23 bytes of memory. In
addition, memory is used based on the lengths of the symbol and comment
character strings.
9 This memory is required for each function block call.
- 965 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
When updating sequence program to the one by the following operations, FB variable area will be
initialized.
(a) When changing a FB definition (except for editing FB body program only)
(b) When adding / deleting / moving a FB instance
(c) When changing an address of input / output parameter
(d) When changing a symbol / comment data referred as an external variable
(e) When changing the setting of “Assignment Address of FB” in the system parameter
NOTE
1 Depending on how you modify the sequence program, the updated sequence
program may run safety without initializing FB variable area.
2 By setting 1 to K903.4 of system keep relay, you can choose not initialize FB
variable area when changing the address of FB variable. (See “2.2.11 System
Keep Relay Addresses (K)” for details)
- 966 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
• Alphabetic characters (A to Z)
• Numeric characters (0 to 9)
• Underscore (_)
NOTE
1 A function block name must not begin with a numeric character. When an
underscore is specified as the first character, it must be followed by an
alphanumeric character.
2 A name character string can consist of up to 40 characters.
In addition to the name, you can define an arbitrary character string as a comment for a function block.
- 967 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
• Parameter
• Internal variable
• External variable
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted into
CNC. (See “10.1.4 Assignment of FB variable” for details.)
The following table lists the maximum number of variables of each type that can be used in a function
block.
NOTE
1 Different addresses are assigned for parameters and internal variables in different
function block instances.
2 You can directly specify an actual address in the FB body program. In this case,
the address has an effect equivalent to an external variable. The address is not
included in the above number because it is not assumed to be an external
variable.
Each type of variable definition consists of the following information. Each variable type has its features
and restrictions. For details, see the explanation of each type of variable.
(a) Symbol
Each variable is identified by a symbol represented by a character string consisting of the following
characters (identifier conforming to IEC61131-3):
• Alphabetic characters (A to Z)
• Numeric characters (0 to 9)
• Underscore (_)
NOTE
1 A symbol must not begin with a numeric character. When an underscore is
specified as the first character, it must be followed by an alphanumeric character.
2 A symbol character string can consist of up to 40 characters.
3 The following symbols are reserved and not available for other purpose:
• EN
• ENO
For details of these symbols, see “(1) EN input and ENO output”.
- 968 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
In addition to the symbol, you can define an arbitrary character string as a comment for each
variable.
You cannot use the same symbol for more than one variable in a function block definition.
NOTE
1 A constant is also displayed in the monitor format listed above if given to an input
parameter.
2 BCD data is correctly displayed in hexadecimal notation.
NOTE
The larger value is specified as the number of input or output parameters, the
larger amount of data must be copied during the execution of each relevant
function block instance, resulting in worse performance. In this case, memory
allocated for each instance is also increased. If you require input or output
parameters that use a large amount of PMC memory (R, D), you can use
input/output parameters to efficiently pass the large data.
Parameter
Parameters are variables used to exchange values between a function block and the circuit outside the
function block.
- 969 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
The EN input and ENO output are special input and output parameters that control the execution of the
function block. For details, see “(1) EN input and ENO output” below.
For each parameter, specify an address for exchanging a value or a constant. While a constant or
address can be specified for an input parameter, only an address can be specified for an input/output
parameter or output parameter.
NOTE
A parameter having the name of EN or ENO is always treated as the EN input or
ENO output. You cannot define a parameter or variable other than the EN input or
ENO output with the name of EN or ENO.
(a) EN input
The EN input controls whether to execute the function block. It functions as follows:
• When the EN input is ON, the FB body program is executed. When the FB has ENO
output, the ENO is set to ON before the program is executed.
• When the EN input is OFF, the FB body program is not executed and control is passed to
the execution of the subsequent program with the status at that point kept. When the FB
has ENO output, the ENO is set to OFF.
When the FB has no EN input, the FB body program is executed in the same way as when it is
ON.
NOTE
You can also use common line control (COM instruction) to control execution,
which is similar to using the EN input. Common line control is also valid for a
function block for without EN input.
- 970 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(b) ENO output
The ENO output indicates whether operation of a function block terminates normally. The
value of the ENO output is set to ON before the FB body program is executed. If an error
occurs in the FB body program and the output is invalid, the ENO output should be set to OFF.
When the EN input is OFF or when ACT of common line control (COM instruction) is OFF,
the ENO output is automatically set to OFF.
NOTE
You cannot write to an input parameter in the FB body program.
- 971 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
If a value is not set for an output parameter in the FB body program, the previous
value is remained.
- 972 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
For an input/output parameter, you can specify an address in each of the left input and right output
sections. You can omit an address in the output section, but cannot omit one in the input section.
When an input/output parameter is accessed in the FB body program, the address specified in the
input section is referenced directly. The value of the input/output parameter is copied to the address
specified in the output section after function block processing terminates.
For input/output parameter “Current Value” in the figure above, the address specified in the input
section is “R0120” and that specified in the output section is “R1020.”
- 973 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
Internal variables
An internal variable is used only in the function block.
(2) Arrangement
Internal variables are arranged in contiguous memory areas in the order in which they are defined.
Nonvolatile and volatile variables are arranged in different areas.
NOTE
1 When internal variables of different data types are arranged, any variable of a
data type such as INT or DWORD that occupies at least 2 bytes is not aligned
based on the data type, but is arranged on a byte boundary. To avoid affect
performance, try to adjust the order of variable definitions so that variables of
these data types are arranged at even addresses. (The start of an internal
variable is always arranged at an even address.)
2 When a non-BOOL variable is arranged following a BOOL variable, any unused
bit address is not assigned to other BOOL variable after that. For example,
BOOL, SINT, BOOL, and SINT variables defined in this order use 4 byte area. A
used memory can be reduced to define the BOOL variables contiguously.
#7 #6 #5 #4 #3 #2 #1 #0
Unused BOOL uses 1 bit.
SINT uses 1 byte.
Unused BOOL uses 1 bit.
SINT uses 1 byte.
- 974 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
External variables
An external variable is used in a function block to refer a symbol defined in advance in ladder program
outside the function block. The entity (address) to be accessed is the same even from different function
block instances.
If a symbol definition of the same name as an external variable is not found during compilation, an error
occurs.
NOTE
1 Details (including the real address) of an external variable are defined not by an
external variable declaration in the function block definition, but by symbol data of
the used ladder program. An external variable declaration in a function block
definition is used for referencing a variable defined in the ladder program.
2 The name of an external variable is an identifier conforming to IEC61131-3, so
only a symbol defined as an identifier conforming to IEC61131-3 can be
referenced. For details of a variable name, see Section 10.2.2, “Variable
Information”
3 The symbol and data type of a declared external variable must be consistent
within the whole program. For example, if a program registers symbol “ABC” of the
bit type, and a function block declares “ABC” as a byte external variable, a
compilation error occurs because the data type of the variable indicated by symbol
“ABC” is inconsistent.
4 A fixed address can be referenced by writing not a symbol, but a specific address
directly in the FB body program. In this case, the address does not need to be
counted as an external variable.
- 975 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
Creating more than one instance of a function block which writes data at a fixed
address causes duplicate writing.
NOTE
1 An ordinary subprogram cannot be called from a function block.
2 A function block call is independent of the nesting of subprogram call using the
CALL or CALLU instruction in the ladder language. Therefore, you do not have to
count a function block call in the number of nested subprogram call levels, or a
subprogram call in the number of nested function block call levels.
3 The depth of nested function block calls is not determined based on not the
number of nested function blocks actually called during execution, but the number
of nested function block calls defined in the program. That is, a function block call
that is programmed not to call actually is also counted. Therefore, any function
block cannot be called recursively.
4 For each of function block calls (instances) in a function block, a number is
automatically added to its instance name during compilation on FANUC
LADDER-III so that they have different names.
(2) Restrictions
There are some restrictions at creating the FB body program comparing with an ordinary ladder
program.
Do not use the following functional instructions in a function block of which more than one
instance is to be created because they cannot perform independent operations for different
function block instances:
• TMR
• CTR, CTRB
- 976 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
When the following functional instructions are used in a function block, set 0 to the timer
number, and rising and falling numbers with FANUC LADDER-III so that the automatic
number assignment function assigns different numbers for different function block instances:
• TMRB, TMRBF
• DIFU, DIFD
NOTE
If these functional instructions are used in a program without using the automatic
number assignment function, these instructions may not work correctly because
more than one functional instruction having the same number may operate
simultaneously.
When the following functional instructions are used in a FB body program, time is integrated
only while the FB body program is called:
• TMRST, TMRSS
The following functional instructions are executed in plural ladder scans. Do not cancel calling
a FB body program when the status of instruction is not completed (executing). Executing of
instruction means that from the execution start (ACT) is set to 1 and transfer completion (coil)
becomes 1 until the ACT is set to 0 and the coil becomes 0:
• DISPB
• EXIN
• WINDR (low-speed type only)
• WINDW (low-speed type only)
• AXCTL
NOTE
1 When the FB body program call is canceled in executing one of the above
functional instructions, other EXIN, WINDR, WINDW and AXCTL may not work
correctly. Operation of instruction is not also guaranteed.
2 As for AXCTL instruction, use the reset request (RST) = 0 normally. Do not cancel
the FB body program call when the reset request (RST) = 1. When canceled,
other AXCTL may not work correctly and operation of instruction is not
guaranteed.
For the example, see Subsection 1.4.4.3, " Notes on using subroutines".
- 977 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
• Version information
• Protection information
• Character string indicating the user definition version (character string consisting of up to 16
desired characters)
• Last update time stamp
These information items are used for managing the function block in a library. They are also used as
criteria at an identity check function for function blocks during recompilation on FANUC
LADDER-III.
NOTE
FANUC LADDER-III automatically records the last update time stamp. You do not
need specific setting or operation.
• Editing protection
• Browsing and editing protection
Select editing or browsing and editing protection and set a password to protect the function block
definition. You can use a character string consisting of up to any 16 desired characters for the
password.
According to the selected type of protection, the relevant operations are prohibited as listed in the
table below.
- 978 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
Each protection setting prohibits the following operations.
NOTE
The FB body program can be displayed and monitored on both the PMC screens
and FANUC LADDER-III, but can be edited only on FANUC LADDER-III in the
offline mode.
Protection with a password can be released by entering the password to enable the relevant operation
temporarily.
- 979 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
CAUTION
When editing FB definitions and FB instances by the offline editing function on
FANUC LADDER-III, the addresses assigned to the parameters and variables of
function block will be changed. Therefore, the parameters and variables of all
function blocks will be initialized by 0 when the sequence program is inputted into
CNC. (See “10.1.4 Assignment of FB variable” for details.)
NOTE
A total of function block instance which can be created in a program is as follows.
• Up to 5000, in the case of PMC for 0i-D
• Up to 512, in the case of DCS PMC and PMC/L for 0i-D/0i Mate-D
This number includes function blocks called from other function blocks.
- 980 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(1) Name of a function block instance
To insert an instruction which calls a function block in a ladder program, a name must be assigned to
the instance to be created at that time. Instance names are assigned to distinguish individual
instances when the same function block is called plurally in a program. The same name cannot be
assigned to more than one instance.
For the name of a function block instance, specify a character string consisting of the following
characters (identifier conforming to IEC61131-3):
• Alphabetic characters (A to Z)
• Numeric characters (0 to 9)
• Underscore (_)
NOTE
1 A function block instance name must not begin with a numeric character. When
an underscore is specified as the first character, it must be followed by an
alphanumeric character.
2 A name character string can consists of up to 40 characters.
3 When a function block contains a function block call instance, underscore (_) +
4-digit number is automatically added to the instance name in the function block
definition during compilation on FANUC LADDER-III so that the name uniquely
identifies the instance. For this reason, 5 characters (“_nnnn”) are added to a
function block instance name in a function block definition and the maximum
number of characters of the instance name becomes 35. If a name to which a
number is added is the name of another symbol, a compilation error occurs. Do
not use any similar symbols.
FB definition containing FB calls PARENT1
PARENT_FB PARENT_FB
CHILD1 CHILD1_0001
CHILD_FB CHILD_FB
CHILD_FB CHILD_FB
- 981 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
For a non-BOOL parameter, specify an address to the right or left side of the parameter name. For an
input parameter, you can also specify a constant.
Fig.10.3.2 (a) Specifying an address (upper) and a constant (lower) for parameters
For a BOOL parameter, a contact is displayed in the input section. Specify an address on the contact.
And, you can add coils, contacts and connection lines if needed.
For an input/output parameter, no contact is displayed in the input section even when the data type is
BOOL. Directly specify an address in the same way as for other data types of parameters.
For the output section for an output parameter or input/output parameter, you can omit the address
specification if the output value does not need to be saved.
NOTE
The consistency of the data type between the symbol set to the parameter and the
parameter itself is basically not checked. Combination of the BOOL and
non-BOOL types causes an error. Any combination of a numeric type (such as
INT or DINT) and a bit set type (such as BYTE) is available.
When a symbol of a different type is set for an input or output parameter, data of
the size which suites to the type of parameter is actually input or output. Note that
if data is input and output in different sizes, the program may not work as
expected.
- 982 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
1. Input process
2. Execution of the FB body program
3. Output process
1. The signal status of R0000.0 is copied into input parameter “count signal”.
2. The signal status of R0000.1 is copied into input parameter “reset signal”.
3. The value 10000 is copied into input parameter “setting value”.
The address of input/output parameter “current value” itself will be R0120 and the value is not
copied.
NOTE
When a function block to be executed has the EN input and the EN input is OFF,
value is set for the subsequent input parameters but the subsequent execution
step of the FB body program is skipped. For details of the EN input, see Section
10.2.2, “Variable Information”.
- 983 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
When a function block to be executed has the EN input and the EN input is OFF,
the FB body program is not executed. For details of the EN input, see Section
10.2.2, “Variable Information”.
1. The signal status of output parameter “count up” is copied into R0001.0.
2. The value of input/output parameter “current value” is copied into R1020.
NOTE
1 Output process is performed in the order in which parameters are arranged.
When the order in which values are set is important, change the order of
parameters or use input/output parameters to adjust the timing to set values.
2 When a value is set to an input/output parameter in the FB body program, the
value is set directly to the address specified in the input section of the input/output
parameter. Then the value of output and input/output parameter is set to an
address in the output section at output process.
- 984 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
FB instance name
FB definition name
Output parameter
Input parameter
The following table lists whether each PMC function related to function blocks is available with the
Series 0i-D/0i Mate-D.
NOTE
Any address in the input section assigned to an input/output parameter cannot be
changed.
- 985 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
Any function block is not displayed in the program list of this screen.
When pressing the [ZOOM] soft key after inputting the function block instance name, the screen display
switches to the FB body program of the specified function block instance.
For details of the screen, see Section 8.1, "DISPLAYING A PROGRAM LIST ([LIST] SCREEN)".
NOTE
The size of FB body program is not included in the program size of GLOBAL and
each subprogram displayed in the list.
- 986 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
Fig.10.5.2 (a) Function block displayed on the ladder diagram monitor screen
- 987 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
PMC address
• Net number
Number of the net at the cursor position
• PMC address
4-digit byte address + bit address
• Symbol
Symbol set for the function block parameter
• Comment
Comment set for the function block parameter
• Value
Value of the parameter at the cursor position according to its data type
- When the type is BOOL: “ON” or “OFF”
- When the type is not BOOL: Decimal or hexadecimal number
NOTE
When the cursor is positioned on a constant or an omitted parameter in the output
section, only the net number is displayed.
When the cursor position is on the function block definition name or instance name.
• Function block definition name
Net number Function block definition name Comment
- 988 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(2) Function block display
On the ladder diagram monitor screen, you can monitor the signal status and current value of each
parameter of a function block in the ladder program being executed. The parameter is displayed in
the format corresponding to its data type.
1 4
2
5
3
6
1. For a BOOL parameter in the input section, contact instructions are connected.
NOTE
No constant can be set for a BOOL parameter.
NOTE
For an input/output parameter, no constant can be set in the input section. Set a
PMC address.
4. For a BOOL parameter in the output section, coil instructions are connected. And, you can
connect a contact instruction before the coil instruction.
5. Displays the PMC address defined as the copy destination of the output parameter.
6. Displays a blank when output section for a parameter is omitted.
- 989 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
- WORD
- DWORD
- 990 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(4) Operation with Soft keys
The soft key operations to function block are described below. About the other operation with soft
keys, see Subsection 8.2.1, "Operating on the LADDER DIAGRAM MONITOR Screen".
Back to previous FB Information Subprogram List Switch PMC paths Screen Settings
Jump to Search Address or Net Search Write Coil Search Functional Pick up a Ladder
Top/Bottom Instruction Diagram net
- 991 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
1 When search function find the target and attempt to zoom in a function block for
which browsing and editing protection is set, you are asked to enter the password.
When pressing the [SKIP] key in this case, the target address is skipped and the
next target is searched.
2 When a GLOBAL program is displayed and you search for an internal variable of a
function block, the FB body program is displayed and the cursor moves to the
target address.
3 When a subprogram is displayed and you search for an internal variable of a
function block in the global search mode, the cursor also moves to the target
address in the FB body program.
NOTE
1 The FB body program is not included in the GLOBAL program. To display an FB
body program, zoom in the function block from the section in which the relevant
function block instance is used.
2 When K903.2=1, you will not be asked to enter the password.
Example)
Version Date Protection status
01 2007/09/03 PROT = P
Protection status
P : browsing and editing protection
R : editing protection
- 992 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(i) [SPLIST] Switch to the subprogram list screen
Switches the screen display to the subprogram list display screen.
(j) [SWITCH] Switch PMC paths
Switches PMC paths.
(k) [SETING] Screen settings
Goes to setting screen for LADDER DIAGRAM MONITOR screen.
- 993 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
Internal and external variables with the monitor display attribute are listed under the monitor display of
parameters. You can also change the value of each variable displayed in the monitor.
You can display or hide the FB instance monitor by the screen setting. See Subsection 10.5.5 " Setting the
Display Format of the LADDER DIAGRAM MONITOR Screen".
The variables to be displayed in the FB instance monitor can be defined in the function block definition
on FANUC LADDER-III.
NOTE
1 You can monitor variables in the bit string display of BYTE and WORD only in the
FB instance monitor.
2 The 32-bit bit string monitor format is not available.
- 994 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
Function block definition name Function block instance name Function block instance comment Net number
- 995 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
About other settings, see Subsection 8.2.2 "Setting the Display Format of the LADDER DIAGRAM
MONITOR Screen".
Setting of “SHOW COMMENT Parameter Comment in the input and output sections
OF CONTACT” Name Non-BOOL monitor BOOL (relay) Non-BOOL (byte address)
2 line 2 lines Displayed 2 lines 2 lines
1 line 2 lines Displayed 1 line 1 line
None (default) 2 lines Not displayed Not displayed Not displayed
- 996 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
The display format in each setting value is shown below.
- 997 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
- 998 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(c) “NONE” for “SHOW COMMENT OF CONTACT”
The display format when setting “NONE” for “SHOW COMMENT OF CONTACT” is as
follows.
- 999 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
- 1000 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(5) DIAGRAM APPEARANCE SETTING (COLOR)
The display color of each element of function block instance is determined by a color setting on the
ladder diagram monitor setting screen. The correspondence of the display color in each element and
the setting item is as follows.
- 1001 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
Table10.5.6 (a) Whether the input and output sections can be edited
Input section Output section
Input parameter Can be edited.
(NOTE)
Input/output parameter Cannot be edited. Can be edited. (NOTE)
Output parameter Can be edited. (NOTE)
NOTE
The following operations are not possible in the LADDER DIAGRAM EDITOR
Screen. Use the NET EDITOR Screen instead.
• Adding or deleting a contact or a coil in the input section or the output section
of BOOL type parameter.
• Omitting the address set in the output section.
• Setting the address in the output section which is omitted.
Fig.10.5.6 (a) Function block displayed on the ladder diagram editor screen
- 1002 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
(1) Screen structures
(a) It is basically same with LADDER DIAGRAM MONITOR screen. It displays a function
block like the ladder diagram monitor screen. The parameter or FB instance monitor is not
displayed, however.
(b) Items displayed in the additional information display line on the ladder diagram editor screen
are almost the same as in the line on the ladder diagram monitor screen. When the cursor is
positioned on the input or output parameter or input/output parameter of the function block,
however, the type of that parameter is displayed at the rightmost position in the additional
information display line.
Program List Change to Search soft keys Edit new net Add net Automatic input
Select net Delete net Cut net Copy net Paste net
Display address
map display Make changes
Change address screen effective Abandon changes Setting screen
- 1003 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
Even if a net of function block instance is deleted, the FB body program remains.
To delete unused FB body program, you have to delete a net of FB instance by
the offline editing function on FANUC LADDER-III.
- 1004 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
This screen is the same as the screen described in Subsection 8.3.3, "NET EDITOR Screen". For details
of the screen, see Subsection 8.3.3.
NOTE
The input and output parameters of a function block instance and the PMC
address used in the FB body program cannot be changed by this function. To
change these addresses, use FANUC LADDER-III.
Specify the area subject to search and alteration Exit from the address alteration function
PMC addresses used in the input and output section of the function block can be changed. The
following explains address conversion function operations related to function blocks. For details, see
Section 8.5, "ADDRESS ALTERATION FUNCTION".
• [ALTER]
You can position the cursor on an address in the input or output section of a function block,
enter a desired PMC address for “Alter address”, and press the [ALTER] soft key to replace a
PMC address.
• [ALTALL]
You can set a PMC address set in the input or output section of a function block for “OLD
ADDRESS” and a PMC address after conversion for “NEW ADDRESS”, and press the
[ALTALL] soft key to convert the address in the input and output sections of the function block
that is set for “OLD ADDRESS”.
- 1005 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
• [USECHK]
Checks to see if the address specified in the "NEW ADDRESS" field is in use by searching for
the address through the ladder diagram. The address used in the function block instance and FB
body program is the subject of the use check, too.
• [PICKUP]
You can fetch a PMC address set in the input or output or input/output section of a function
block for “OLD ADDRESS” or “NEW ADDRESS”.
NOTE
When trying to alter an address assigned in the input section for an input/output
parameter, the following error message is displayed.
"CANNOT EDIT INPUT/OUTPUT PARAM ADDRESS"
- 1006 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
An asterisk (*) is marked also to the address which is used in the FB body program and function block
instance when using a function block function.
Symbol and comment (s) is marked to the address of internal and external variables that are not used
actually in the FB body program and function block instance but defined in function block.
NOTE
1 Non-BOOL parameters of function block are handled as addresses in use with a
length of one byte, regardless of the data length of the parameters.
2 It does not jump to the address used in the FB body program because it cannot be
edited.
For details of the Address Map Display Screen, see Subsection 8.6.1, "Address Map Display Screen".
- 1007 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
For details of the Duplicate Coil Check, see Section 8.10, "CHECKING OF DUPLICATE COIL
([D.COIL] SCREEN)".
NOTE
Do not delete the symbol for the function block instance name on the symbol and
comment editor screen. When it is deleted, jump function for FB body program
become unavailable.
- 1008 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
Size area
Called subprogram
- 1009 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
NOTE
Do not delete the symbol for the function block instance name on the symbol and
comment editor screen. When it is deleted, displaying the screen in order of
symbols may not work correctly.
For details of the Subprogram List Display Screen, see Section 8.11, "DISPLAYING A SUBPROGRAM
LIST ([SPLIST] SCREEN)".
- 1010 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
For details of the Title Screen, see Section 9.1, "DISPLAYING AND EDITING TITLE DATA ([TITLE]
SCREENS)".
- 1011 -
10.FUNCTION BLOCK FUNCTION B-64393EN/02
There are the following symbol and comment data definitions related to function block.
(1) Symbol and comment definition of function block instance name
PROG.SYMBOL: Displayed as the form “[PROGRAM NAME].[SYMBOL]”
ADDRESS: This column is blank.
TYPE: “FB_I” is displayed.
(2) Symbol and comment definition of internal and external variables in the function block
PROG.SYMBOL: Local symbol to the function block
• When a symbol is defined for the function block instance:
“function-block-instance-name.symbol”
• When a symbol is not defined for the function block instance:
“function-block-definition-name.symbol”
NOTE
The symbol for a function block cannot be changed or added. Available
operations are line deletion in entry units and all deletion only.
- 1012 -
B-64393EN/02 10.FUNCTION BLOCK FUNCTION
NOTE
When multiple symbol and comment are defined to the same address, you can
search it by each symbol name. On the other hand the symbol displayed for the
address on PMC screen is one of these symbol names. So if you search such a
symbol, displayed symbol name on searched position may be different from the
symbol searched.
- 1013 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1014 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1015 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1016 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1017 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
NOTE
The displayed group number is wiring number of I/O device.
- 1019 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1020 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1021 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
NOTE
The displayed group number is wiring number of I/O device.
- 1022 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1023 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1026 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1027 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
Error messages that may be displayed on the PMC NET EDITOR screen
Alarm number Faulty location/corrective action Contents
ILLEGAL FUNCTIONAL Specify the name of an available The entered name of functional
INSTRUCTION NAME functional instruction. instruction is invalid.
- 1028 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1030 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
Error messages that may be displayed on the TITLE DATA EDITOR screen
Alarm number Faulty location/corrective action Contents
TOO MANY Make sure that the entered character The number of characters in the entered
CHARACTERS string is within the allowable input length.character string exceeds the allowable input
length. Some of the characters are
discarded.
PROGRAM IS BEING Disconnect the online communication with The title data cannot be displayed because
MODIFIED FANUC LADDER-III. Stop other online communication with FANUC
applications from accessing the title data. LADDER-III is in progress or another
application is accessing the title data.
THIS FUNCTION IS Cancel the protection by the programmer This function is protected by the
PROTECTED protection function or 8-level protection programmer protection function or 8-level
function. protection function.
Error messages that may be displayed on the SYMBOL & COMMENT DATA
EDITOR screen
Alarm number Faulty location/corrective action Contents
TOO MANY Make sure that the entered address is The number of characters in the entered
CHARACTERS within the allowable input length. address exceeds the allowable address
input length.
ADDRESS IS REQUIRED Enter data in a batch correctly, as No address was entered during the batch
instructed in "Editing a set of symbol and input of address, symbol, and comment
comment data" in Subsection 9.2.2. data using the SYMBOL & COMMENT
EDITOR screen.
ILLEGAL PMC ADDRESS Enter an address correctly. The specified address is invalid, or the
entered address character string contains
a space or spaces.
THE ADDRESS Specify another address. An already registered address was
ALREADY HAS AN entered.
ENTRY
THE SYMBOL NAME IS Specify another symbol. An already registered symbol was entered.
ALREADY USED
PMC ADDRESS MUST Enter a PMC address in the ADDRESS No PMC address was entered when new
BE ENTERED field. symbol/comment data is registered.
TOO LONG SYMBOL Make sure that the symbol consists of 16 The entered symbol exceeds the specified
NAME characters or less. number of characters.
TOO LONG COMMENT Make sure that the comment consists of 30 The entered comment exceeds the
STRING characters or less. specified number of characters.
BAD SYMBOL NAME Define a symbol that contains no space. The entered symbol contains a space or
spaces.
THE STRING IS NOT Specify another character string for the The search was done for the specified
FOUND search. character string but did not find it.
OUT OF SPACE Create free space for the sequence The symbol/comment editing area has no
program, by deleting unnecessary ladder free space.
or message data.
PROGRAM IS BEING Disconnect the online communication with The symbol/comment data cannot be
MODIFIED FANUC LADDER-III. Stop other displayed because online communication
applications from accessing the with FANUC LADDER-III is in progress or
symbol/comment data. another application is accessing the
symbol/comment data.
THIS FUNCTION IS Cancel the protection by the programmer This function is protected by the
PROTECTED protection function or 8-level protection programmer protection function or 8-level
function. protection function.
- 1031 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1032 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
Error messages that may be displayed on the I/O MODULE EDITOR screen
- 1033 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1034 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1036 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
- 1037 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
- 1038 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
In this message format, CHn (where n is 1 or a higher number) represents the number of the channel that
has caused the communication error. “Gra” represents a group number in which a problem may occur.
“bb” means internal code.
However, correct group number may not be shown depend on cause or condition of the communication
error. Please note that it is difficult to identify the cause of the error or the location of the fault with these
values alone, for the following reasons.
(1) If the communication error has resulted from a hardware fault or noise, these register values
themselves may not be correct.
(2) Different register values may be presented for the same cause depending on the timing of the error
occurrence.
- 1039 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
(5) Noise
Take necessary counter-noise measures, as instructed in "Connection Manual (Hardware)". If the
communication cables are bundled together with the power cables, noise may be introduced to the
communication cables. To avoid such noise, install the communication cables and the power cables
in separate bundles. Also, connect the shield of the communication cable to the ground plate using a
cable clamp. (Refer to "Connection Manual (Hardware)".)
(6) DO connection to ground
With some types of operator's panel, a communication alarm occurs if the DO terminal is connected
to ground or to another DO terminal due to inadequate cable connection, module malfunction or
failure, or other cause.
(7) Insufficient power capacity or drop in voltage
Check whether the power capacity is insufficient. While the machine had a sufficient power
capacity when originally designed, it may be suffering a power shortage due to such factors as
subsequent modifications to the machine design and/or the factory facilities. Also, even if there is
no problem under normal operating conditions, certain operations may result in a drop in voltage.
(8) Loose power connection
Check that the power cable is connected firmly. Several cases have been identified in which
intermittent errors occur at an extremely low incidence because the power cable is loosely connected
to the power unit precluding the stable supply of power to the slave.
(9) Power unit malfunction or failure
A communication error may result from an instantaneous interruption of power supply due to a
malfunction or failure of the power unit.
(10) Restart of the slave at the time of the CNC restart
When the master I/O Link device is restarted, the slave needs to be restarted as well. Particular care
must be exercised about intelligent-type slaves (those that exert standalone control independently,
such as FS0-C, Power Mate, β amplifier, and spindle monitor unit) because, when the power of the
master is turned off, a system alarm is generated in the slave. If the CNC alone is restarted in this
situation, the system alarm in the slave causes another system alarm to be generated in the master.
(11) System alarm in the slave
In cases where intelligent-type slaves are used, if a system alarm occurs in any of the slaves, the
master also generates a system alarm. Similarly, if a system alarm occurs in the master, the slave
generates a system alarm as well. Therefore, when such slaves are used, it is important to know
which device (master or slave) has generated a system alarm first.
If only the master is experiencing a system alarm while no such alarm is occurring in the slave, the
likely cause is that the power of the slave was turned off instantaneously, causing a system alarm in
the master, and then the slave was restarted.
(12) Failure to connect the optical I/O Link adapter to ground
The optical I/O Link adapter, which accomplishes conversion between electrical cable and optical
cable, uses its own case as a grounding body. Therefore, the case of the adapter must be connected
to ground.
(13) CNC or I/O device malfunction or failure
A communication error may stem from a hardware malfunction or failure. Try replacing boards
having an I/O Link connector (master PCB and PMC boards), the PMC control module (which may
be attached directly to the master PCB in some PMC types), back panel, individual slaves, or other
adequate components.
(14) Operation mistake
If the error has occurred only once, it may be due to an operation mistake, such as turning off the
power of the slave inadvertently.
- 1040 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
"Had the machine been operating normally before the error occurred?"
If the machine suddenly starts to experience problems while it has been operating normally all along,
one potential cause of those problems is noise, loose connector connection, or insufficient power
capacity due to such factors as modifications to machine design and/or the factory facilities.
Another highly likely cause is a hardware failure.
If the machine is still in the startup phase and has no operation records, you need to begin your
investigation by checking the assignment data and hardware connections.
Examine the actual I/O Link configuration (types of the master and slaves and their connections) and
the assignment data.
Based on "Connection Manual (Hardware)", check whether the assignment data matches the actual
I/O Link configuration, whether the I/O Link point count is within the limit, whether terminal
resistors and other connectors are properly connected, whether a power cable is properly connected
to each master and slave, whether the power-on or power-off procedure has been performed
normally, and so on.
(3) Timing
If the error occurs when you turn on the power, first check whether each cable connector is
connected to the appropriate device, as well as the assignment data. A system alarm occurs when
the power is turned on, if bases 1 to 3 are assigned while bases 1 to 3 are actually not connected.
Also, when the master is restarted, the slave needs to be restarted as well. Check that the power of
the slave is off before turning off the power of the master.
If the error repeats every time you carry out a certain operation, the likely cause is that an inadequate
voltage is applied to the machine because of loose connector connection, noise, insufficient power
capacity, or DO connection to ground that is caused by that particular operation.
(4) Operation
"Does the error occur every time you carry out the same operation?"
If the error occurs every time you carry out the same operation, you can locate the faulty part by
removing the slaves sequentially starting with the one having the largest group number. Note that
removing certain types of slaves (e.g., operator's panel) leaves you unable to manipulate the machine.
Take necessary precautions for safety before removing such slaves.
If an error is unrepeatable and occurs with low frequency, its cause is difficult to identify. In that
case, there is no option but to take every possible measure and see if the error will be corrected.
Such measures include replacing hardware components (masters, slaves, cables, etc.), strengthening
the power supply (using an independent power source not shared with other devices), enhancing the
earth grounding system, shielding the cables, and installing the PMC cables and other cables in
separate bundles.
- 1041 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
(5) Phenomenon
Each time the same error occurs, check the system alarm message (register values), the LEDs on the
slave, and the system alarm message displayed by the slave. As described earlier, these indications
may vary depending on certain conditions. If the status denoted by these indications changes every
time, the information given by the register values and LEDs is not reliable.
The communication error may be due to another alarm event that occurred before the I/O Link
system alarm. Check the alarm history and system alarm history records for any such alarm.
If the slave also has alarm history and system alarm history data, check those history records as well.
If the same register values are displayed every time the system alarm occurs, those register values
may help you identify the location or cause of the error. However, as described earlier, these
register values are not always valid.
In response to an error that has occurred singly, the I/O Link attempts to retransmit data. If the error
cannot be avoided by this retransmission attempt, then a system alarm is generated.
Every time such a retransmission takes place, one of the register values is incremented by 1. The
addresses of these registers are the same regardless of the type of the PMC system.
By checking these register values, you can know whether the communication had been unstable all
along or a communication error occurred suddenly after a reasonable period of stable operation.
In cases where a communication error repeats intermittently and the values of these registers are
frequently updated, try replacing adequate hardware components. If the register values come to stay
unchanged after you replace a certain hardware component, then you can tell that particular
hardware component is the cause of the error.
These registers are volatile memory, and their values are cleared to 0 at the time of powering on.
- 1042 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
NC
Optical I/O link Optical I/O link
adapter adapter
Optical cable
<Cause> Groups 0 and 1 were connected using a cable to which a +5 V power wire was
attached.
<Explanation> The cable to which a +5V power wire is attached is intended to connect optical I/O
Link adapters. When not using optical I/O Link adapters, use a cable to which a +5V
power wire is not attached.
Note that, when this troubleshooting work (replacing the cable) was done, the
operator's panel I/O module was replaced as well. Therefore, the direct cause of the
error might have been the operator's panel I/O module.
NC
<Cause> The cable between groups 2 and 3 had a short circuit inside it.
<Explanation> Because the alarm had been occurring with relatively high frequency (two or three
times a day), the cause of the error was located by removing the salve devices
sequentially starting with the one having the largest group number.
- 1043 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
A system alarm occurs if you execute "I/O Link startup" after storing the
ladder program using the online monitor.
<Category> Assignment data mismatch
<Register> 83:41
<Configuration>
NC
(Correct) (Wrong)
Group Base Slot Module name Group Base Slot Module name
0 0 N Module 1 0 0 n Module 1
1 0 N Module 2 0 1 n Module 2
2 0 N Module 3 0 2 n Module 3
<Explanation> If the base numbers are mistakenly assigned, the error almost always occurs when the
power of the CNC is turned on.
A system alarm is prone to occur when the feeder starts to operate after the
machining process.
<Category> Noise
<Configuration>
NC
<Cause> None of the masters, slaves, or communication cables were properly grounded to earth.
<Explanation> If a system alarm is prone to occur in response to a specific operation, it is highly
likely that a drop in voltage, noise interference, loose cable connection, or short circuit
results from that operation.
- 1044 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
A system alarm occurs almost every time the automatic operation begins.
<Category> Noise
<Configuration>
NC
Group 0 Group 1
<Cause> The communication cables and power cables were installed in the same bundle.
<Explanation> The error no longer occurred after the communication cables and power cables were
installed in separate bundles. In this case, too, noise is considered to be the cause of
the error. Note, however, that such noise-caused errors do not necessarily occur in
response to one specific operation. In many cases, they emerge as intermittent errors
that occur with extremely low frequency and it is difficult to identify any particular
condition for them to arise. Therefore, if an error is occurring intermittently and if
you have potential error factors, such as any hardware component not connected to
ground, poor grounding, and cables installed near a noise source, you need to take
necessary measures for each of those error factors and see if the error will be corrected.
NC
- 1045 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
A system alarm occurs once every five times the feeder is moved.
<Category> Insufficient power capacity or drop in voltage
<Configuration>
NC
I/O Unit-A
Group 0
<Cause> The power voltage of the slave dropped from 24 volts to 17 volts when the feeder was
moved.
<Explanation> If a system alarm is prone to occur in response to a specific operation, it is highly
likely that a drop in voltage, noise interference, or loose cable connection results from
that operation.
NC
Group 0 Group 1
<Cause> A flashing lamp was lit when an alarm occurred, which caused the power voltage of
the slave to drop from 24 volts to 10 volts.
<Explanation> We checked the LED of group 0 (β amplifier) and found that an NMI had occurred.
As a result of examining the power supply of the β amplifier, we were able to confirm
that its voltage would drop when its flashing lamp was lit.
- 1046 -
B-64393EN/02 11.PMC ALARM MESSAGES AND ACTIONS TO TAKE
NC
<Cause> The cable was loosely connected to the terminal block of the slave power unit; it was
merely in touch of the block. We conducted a voltage measurement and found that the
voltage of the slave sometimes dropped from the 24-volt level.
<Explanation> At the time when this measurement was conducted, the voltage of the slave dropped
only by 2 volts or so and no system alarm occurred. However, when the voltage level
is unstable, any instantaneous yet substantial change in voltage can lead to an error.
To prevent this, check that each cable is connected firmly, replace the power supply
unit, or use a stable power supply.
A system alarm occurs when data is written using the BOOT screen.
<Category> Restart of the slave at the time of the CNC restart
<Configuration> (Unknown)
<Cause> When a macro was to be written using the BOOT screen, only the power of the CNC
was turned off and then on while the power of the slaves remained on.
<Explanation> When the master I/O Link device is restarted, all the slaves need to be restarted as well.
- 1047 -
11.PMC ALARM MESSAGES AND ACTIONS TO TAKE B-64393EN/02
NC
System alarms began to occur after the machine had been in operation for
about one year.
<Category> Failure to connect the optical I/O Link adapter to ground
<Configuration> (Unknown)
<Cause> The connection between the optical I/O Link adapter case and the inside of the optical
I/O Link adapter was loose.
<Explanation> The case of the optical I/O Link adapter is not painted and serves as a grounding body
as well. Therefore, the optical I/O Link adapter must be connected to ground. In this
case, the adapter was properly grounded but, because it was installed in a position
subject to vibration, the connection between the adapter case and the inside of the
adapter had been lost.
NC
<Cause> The basic connector panel I/O module of group 5 was faulty.
<Explanation> Since the alarm had occurred every time the power was turned on, we removed the
devices sequentially, starting with the one having the largest group number, and
checked whether an alarm would arise. As a result, we found out that the system
would start normally when group 5 was removed. We then conducted a test with the
basic module of group 5 attached to another CNC and discovered that the error was
due to the malfunction of that individual module.
- 1048 -
B-64393EN/02 INDEX
INDEX
BCNTN (Bit Count (Arbitrary Bytes Length):
<A> SUB 312)......................................................................372
About Connection Log of Ethernet ..............................948 BCNTW (Bit Count (2 Bytes Length): SUB 310)........370
About Ethernet Communication Parameters ................945 BIT OPERATION........................................................298
ABSSB (Absolute Value (1 Byte Length): SUB 340)..431 BPOSB (Bit Search (1 Byte Length): SUB 305)..........364
ABSSD (Absolute Value (4 Bytes Length): SUB 342) 431 BPOSD (Bit Search (4 Bytes Length): SUB 307) ........364
ABSSW (Absolute Value (2 Bytes Length): SUB 341)431 BPOSN (Bit Search (Arbitrary Bytes Length):
ADD (BCD Addition: SUB 19) ...................................403 SUB 308)......................................................................367
ADDB (Binary Addition: SUB 36) ..............................395 BPOSW (Bit Search (2 Bytes Length): SUB 306) .......364
Adding an Extended Symbol and Comment ................915 BRSTB (Bit Reset (1 Byte Length): SUB 297)............354
Address Alteration Function ...............................877,1005 BRSTD (Bit Reset (4 Bytes Length): SUB 299) ..........354
Address Map Display Screen ..............................881,1007 BRSTN (Bit Reset (Arbitrary Bytes Length):
Addresses for Signals Between the PMC and CNC SUB 300)......................................................................356
(F, G)..............................................................................57 BRSTW (Bit Reset (2 Bytes Length): SUB 298) .........354
Addresses of Signals Between the PMC and Machine BSETB (Bit Set (1 Byte Length): SUB 293)................349
(X, Y) .............................................................................58 BSETD (Bit Set (4 Bytes Length): SUB 295)..............349
ADDSB (Addition (1 Byte Length): SUB 319) ...........415 BSETN (Bit Set (Arbitrary Bytes Length): SUB 296) .351
ADDSD (Addition (4 Bytes Length): SUB 321)..........415 BSETW (Bit Set (2 Bytes Length): SUB 294) .............349
ADDSW (Addition (2 Bytes Length): SUB 320).........415 BTSTB (Bit Test (1 Byte Length): SUB 301)..............359
ALARM MESSAGE LIST ........................................1015 BTSTD (Bit Test (4 Bytes Length): SUB 303) ............359
AND (Logical AND: SUB 60).....................................304 BTSTN (Bit Test (Arbitrary Bytes Length): SUB 304)361
AND Instruction...........................................................162 BTSTW (Bit Test (2 Bytes Length): SUB 302) ...........359
AND.NOT Instruction..................................................163
AND.STK Instruction ..................................................168 <C>
ANDB (Logical AND (1 Byte Length): SUB 268) ......317 CALL (Conditional Subprogram Call: SUB 65) ..........481
ANDD (Logical AND (4 Bytes Length): SUB 270) ....317 CALLU (Unconditional Subprogram Call: SUB 66) ...482
ANDNT Instruction .....................................................178 Causes of Communication Errors...............................1039
ANDPT Instruction ......................................................174 Cautions for Reading from/Writing to Nonvolatile
ANDW (Logical AND (2 Bytes Length): SUB 269) ...317 Memory ..........................................................................86
ASSIGNMENT METHOD ..........................................115 CE (End of Case Call: SUB 76) ...................................491
Assignment Method for a Handy Machine Operator's Check Items................................................................1041
Panel.............................................................................133 CHECKING OF DUPLICATE COIL ([D. COIL]
Assignment Method for an AS-i Converter Unit..........134 SCREEN) .....................................................................887
Assignment Method for Distribution I/O Connection CHECKING PMC ALARMS ([ALARM] SCREEN)..713
Panel I/O Modules and Distribution I/O Operator's Checking Sequence Program..........................................14
Panel I/O Modules........................................................125 Clearing Tool Life Management Data (Tool Life
Assignment Method for I/O Link Connection Units ....131 Counter and Tool Information) (Low-speed Response)680
Assignment Method for I/O Unit-MODEL A ..............120 CM (Sub Program Call in Case Call: SUB 75) ............490
Assignment Method for I/O Unit-MODEL B ..............122 CNC INFORMATION.................................................512
Assignment Method for the Power Mate......................130 CNC Parameters Related to the PMCs ...........................97
Assignment of FB variable...........................................966 COD (Code Conversion: SUB 7) .................................375
Automatic Start of Trace Setting..................................788 CODB (Binary Code Conversion: SUB 27).................378
AUTOMATICALLY INPUTTING UNUSED CODE CONVERSION ................................................374
PARAMETER NUMBERS .........................................884 COIN (Coincidence Check: SUB 16)...........................297
AXCTL (Axis Control by PMC: SUB 53) ...................456 Collective Monitor Function ........................................872
AXIS INFORMATION................................................582 Collective Monitor Screen ...........................................874
COM (Common Line Control: SUB 9) ........................469
<B> COME (Common Line Control End: SUB 29) ............472
Basic Configuration of PMC............................................1 Comment ..........................................................................6
Basic Instructions ....................................................43,154 Communication Status .................................................944
Basic Screen Operations...............................................684 COMP (Comparison: SUB 15).....................................296
Basic Specifications .......................................................36 Comparing Message Data for Multi-Language Display
BCNTB (Bit Count (1 Byte Length): SUB 309) ..........370 with Flash ROM Files ..................................................775
BCNTD (Bit Count (4 Bytes Length): SUB 311) ........370
i-1
INDEX B-64393EN/02
Comparing Message Data for Multi-Language Display Deleting Tool life Management Data (Tool Data)
with Memory Card Files ..............................................772 (Low-speed Response) .................................................679
Comparing PMC Parameters with Files of Other Deleting Tool life Management Data (Tool Group)
Devices (via the RS-232C Port) ...................................768 (Low-speed Response) .................................................678
Comparing PMC Parameters with FLOPPY Files .......765 Details of the Basic Instructions...................................156
Comparing PMC Parameters with Memory Card Files 761 DETECTION OF DOUBLE COILS............................886
Comparing Sequence Programs with Files of Other Determining Specification..............................................12
Devices (via the RS-232C Port) ...................................758 DIFD (Falling Edge Detection: SUB 58) .....................301
Comparing Sequence Programs with Flash ROM Difference Between Relay Sequence Circuit and Ladder
Files..............................................................................750 Sequence Program............................................................8
Comparing Sequence Programs with FLOPPY Files ...754 DIFU (Rising Edge Detection: SUB 57) ......................300
Comparing Sequence Programs with Memory Card DISPB (Display Message: SUB 41).............................436
Files..............................................................................746 DISPLAY AND OPERATION CONDITIONS FOR
COMPARISON............................................................278 SCREENS ....................................................................686
Compatibility between 0i-D / 0i Mate-D PMC/L and Display Format for Parameters.....................................822
PMC-SA1 for 0i-C / 0i Mate-C....................................100 Display history of a Subprogram..................................890
Compatibility between 0i-D DCSPMC and Display of European Characters...................................107
30i/31i/32i-A DCSPMC ...............................................102 Display of Simplified Chinese and Korean (Hangul
Compatibility between 0i-D PMC and 30i/31i/32i-A Characters) ...................................................................108
PMC .............................................................................101 Displaying a File List ([LIST] Screen).........................739
Compatibility between 0i-D PMC and PMC-SB7 for DISPLAYING A PROGRAM LIST ([LIST]
0i-C ................................................................................99 SCREEN) .....................................................................805
Compatibility between 0i-D/0i Mate-D PMC/L and DISPLAYING A SUBPROGRAM LIST ([SPLIST]
32i-A PMC/L ...............................................................101 SCREEN) .....................................................................890
COMPATIBILITY WITH CONVENTIONAL DISPLAYING AND EDITING A FUNCTION
MODELS .......................................................................99 BLOCK ........................................................................985
COMPB (Comparison Between Binary Data: SUB 32)293 DISPLAYING AND EDITING I/O MODULE
Configuration of an I/O Link .......................................113 ALLOCATION DATA ([MODULE] SCREENS).......925
COUNTER...................................................................201 DISPLAYING AND EDITING MESSAGE DATA
Counter Addresses (C) ...................................................70 ([MESAGE] SCREENS)..............................................917
Creating a Function Block Call Section .......................980 DISPLAYING AND EDITING PMC SETTINGS
Creating Ladder Diagram...............................................12 ([SETING] SCREENS) ................................................929
CS (Case Call: SUB 74) ...............................................487 DISPLAYING AND EDITING SYMBOL AND
CTR (Counter: SUB 5).................................................202 COMMENT ...............................................................1012
CTRB (Fixed Counter: SUB 56) ..................................208 DISPLAYING AND EDITING SYMBOL AND
CTRC (Counter: SUB 55) ............................................210 COMMENT DATA ([SYMBOL] SCREENS) ............900
CTRD (Counter (4 Bytes Length): SUB 223) ..............212 DISPLAYING AND EDITING TITLE DATA
([TITLE] SCREENS) ...................................................895
<D> Displaying and Setting Parameters for an FS0
DATA BACKED UP BY THE BATTERY.................110 Operator's Panel ...........................................................953
DATA INPUT/OUTPUT ([I/O] SCREEN)..................731 DISPLAYING AND SETTING PARAMETERS FOR
Data Size for PMC Message Multi-Language Display ..40 THE ONLINE FUNCTION ([ONLINE] SCREEN) ....940
Data Table Addresses (D) ..............................................79 Displaying and Setting Parameters for the Selectable
DATA TRANSFER .....................................................215 I/O Link Assignment Function.....................................956
DCNV (Data Conversion: SUB 14) .............................381 DISPLAYING AND SETTING SYSTEM
DCNVB (Extended Data Conversion: SUB 31)...........383 PARAMETERS ([SYSPRM] SCREENS) ...................950
DEC (Decode: SUB 4) .................................................385 Displaying and Setting the Counter Data Type ............950
DECB (Binary Decoding: SUB 25) .............................387 Displaying Extended Symbol and Comment702,908,1013
DECSB (Decrement (1 Byte Length): SUB 337).........429 DISPLAYING I/O LINK CONNECTION STATUS
DECSD (Decrement (4 Bytes Length): SUB 339) .......429 ([I/OLNK] SCREEN)...................................................778
DECSW (Decrement (2 Bytes Length): SUB 338) ......429 Displaying I/O Module Allocation Data ......................925
DEFINITION OF WARNING, CAUTION, AND Displaying Internal and External Variables in
NOTE............................................................................s-1 the Monitor (FB Instance Monitor Display).................994
Deleting Memory Card Files or Formatting a Memory Displaying Message Data.............................................917
Card..............................................................................776 Displaying Symbol and Comment Data .......................900
Deleting One or All FLOPPY Files..............................777 Displaying the FB Body Program ................................995
i-2
B-64393EN/02 INDEX
i-3
INDEX B-64393EN/02
NEGSW (Sign Inversion (2 Bytes Length): SUB 344) 433 OVERVIEW OF PMC .....................................................1
NET EDITOR Screen .........................................847,1005 Overview of Specifications ..........................................961
NEW (2 Bytes Length: SUB 204)................................281
Nonvolatile Memory Control Address (K).....................73 <P>
NOP (No Operation: SUB 70)......................................486 PARAMETERS FOR THE PMC SYSTEM ..................94
NOT (Logical NOT: SUB 62)......................................308 PARI (Parity Check: SUB 11)......................................310
NOTB (Logical NOT (1 Byte Length): SUB 274).......323 Partial Protection Function for Ladder Program ..........698
NOTD (Logical NOT (4 Bytes Length): SUB 276) .....323 Partially Changing Symbol and Comment Data...........904
NOTE ON PROGRAMMING .....................................500 Password Function .......................................................696
Note on the Programming of a Low-speed Response PMC Addresses ..............................................................41
Window Instruction......................................................505 PMC ALARM MESSAGES AND ACTIONS TO
Notes ............................................................................151 TAKE .........................................................................1014
Notes on I/O Signals Updated by Other Than PMC.......34 PMC CONFIGURATION DATA SETTING
Notes on using subroutines ............................................28 SCREENS ([PMCCNF]) ..............................................894
NOTW (Logical NOT (2 Bytes Length): SUB 275) ....323 PMC DIAGNOSIS AND MAINTENANCE
Numbers of Input Points and of Output Points of SCREENS ([PMCMNT]).............................................704
the I/O Link..................................................................114 PMC MESSAGE MULTI-LANGUAGE DISPLAY
NUME (BCD Definition of Constant: SUB 23)...........414 FUNCTION..................................................................104
NUMEB (Definition of Binary Constants: SUB 40)....411 PMC Parameter Format..................................................87
PMC Parameter Input/Output Conditions ....................694
<O> PMC PARAMETERS ....................................................85
Operating on the FUNCTIONAL INSTRUCTION PMC Signal Addresses................................................2,57
DATA TABLE EDITOR Screen .................................867 PMC SPECIFICATIONS...............................................36
Operating on the LADDER DIAGRAM EDITOR PMC System Alarm Messages ...................................1020
Screen...........................................................................838 PMC System Parameters ................................................96
Operating on the LADDER DIAGRAM MONITOR PMC/L FUNCTION FOR Series 0i-D/0i Mate-D..........35
Screen...........................................................................811 POP Instruction ............................................................181
Operating on the Screen ........................................879,882 Presetting the Relative Coordinate (Low-speed
OPERATING THE PMC SCREEN .............................681 Response) .....................................................................619
Operation after Execution of Trace ..............................786 Processing Priority (1st Level, 2nd Level, and 3rd
Operation Errors.........................................................1023 Level) .............................................................................17
OPERATION INSTRUCTION....................................394 Program Capacity...........................................................39
OPERATION SCREENS OF THE PMC AND SOFT PROGRAM CONTROL ..............................................468
KEY ORGANIZATION ..............................................683 Program List Display Screen........................................986
Optimization.................................................................863 PROGRAM LIST EDITOR Screen .............................869
OR (Logical OR: SUB 61) ...........................................306 Programmer Protection Function .................................686
OR Instruction..............................................................164 Protection of Data at 8 Levels ......................................699
OR.NOT Instruction.....................................................165 PSGN2 (Position Signal: SUB 63) ...............................461
OR.STK Instruction .....................................................169 PSGNL (Position Signal: SUB 50)...............................464
ORB (Logical OR (1 Byte Length): SUB 271) ............320 PUSH Instruction .........................................................181
ORD (Logical OR (4 Bytes Length): SUB 273) ..........320
ORNT Instruction.........................................................179 <R>
ORPT Instruction .........................................................175 RD Instruction..............................................................158
ORW (Logical OR (2 Bytes Length): SUB 272) .........320 RD.NOT Instruction.....................................................159
Other Information.........................................................978 RD.NOT.STK Instruction ............................................167
Outline..........................................................................144 RD.STK Instruction .....................................................166
Outputting a Message Data for Multi-Language Display RDNT Instruction.........................................................177
to the Memory Card .....................................................769 RDNT.STK Instruction ................................................180
Outputting a Sequence Program to the FLOPPY .........751 RDPT Instruction .........................................................173
Outputting a Sequence Program to the Memory Card..743 RDPT.STK Instruction.................................................176
Outputting PMC Parameters to Other Devices (via Reading a Custom Macro Variable (High-speed
the RS-232C Port) ........................................................766 Response) .....................................................................537
Outputting PMC Parameters to the FLOPPY...............762 Reading a Parameter (High-speed Response)...............522
Outputting PMC Parameters to the Memory Card .......759 Reading a P-CODE Macro Variable (High-speed
Outputting Sequence Programs to Other Devices (via Response) .....................................................................559
the RS-232C Port) ........................................................755 Reading a Real Type Parameter (High-speed
OVERVIEW ................................................................959 Response) .....................................................................526
i-5
INDEX B-64393EN/02
Reading a Skip Position (Stop Coordinates of Skip Reading The Tool Life Management Data (Tool Group
Operation (G31)) of Controlled Axes (High-speed Number) (High-speed Response) .................................623
Response) .....................................................................587 Reading The Tool Life Management Data (Tool Group
Reading a Tool Offset (High-speed Response) ............514 Number) (High-speed Response) (8-digit Tool Number)
Reading a Workpiece Origin Offset Value .....................................................................................664
(High-speed Response) ................................................518 Reading the Tool Life Management Data (Tool Life
Reading Actual Spindle Speeds (High-speed Counter Type) (High-speed Response) ........................647
Response) .....................................................................602 Reading Tool Life Management Data (Cutter Radius
Reading Clock Data (Date and Time) (High-speed Compensation Number (1): Tool Number) (High-speed
Response) .....................................................................570 Response) .....................................................................637
Reading CNC Status Information (High-speed Reading Tool Life Management Data (Cutter Radius
Response) .....................................................................565 Compensation Number (1): Tool Number) (High-speed
Reading CNC System Information (High-speed Response) (8-digit Tool Number) ................................672
Response) .....................................................................512 Reading Tool Life Management Data (Cutter Radius
Reading Detailed Information of CNC Alarm .............578 Compensation Number (2): Tool Order Number)
Reading Diagnosis Data (High-speed Response) .........557 (High-speed Response).................................................639
Reading Diagnosis Data (Low-speed Response)..........555 Reading Tool Life Management Data (Number of Tool
Reading Load Information of the Spindle Motor Groups) (High-speed Response)...................................625
(Serial Interface) (High-speed Response) ....................607 Reading Tool Life Management Data (Number of Tools)
Reading Modal Data (High-speed Response) ..............546 (High-speed Response).................................................627
Reading Setting Data (High-speed Response)..............534 Reading Tool Life Management Data (Tool Information
Reading the Absolute Position (Absolute Coordinates) (1): Tool Number) (High-speed Response) ..................641
of Controlled Axes (High-speed Response) .................583 Reading Tool Life Management Data (Tool Information
Reading the Acceleration/Deceleration Delay on (1): Tool Number) (High-speed Response) (8-digit Tool
Controlled Axes (High-speed Response) .....................591 Number) .......................................................................666
Reading the Actual Machine Position of Controlled Reading Tool Life Management Data (Tool Information
Axes .............................................................................621 (2): Tool Order Number) (High-speed Response)........643
Reading the Actual Speed of Servo Motor (High-speed Reading Tool Life Management Data (Tool Length
Response) .....................................................................609 Compensation Number (1): Tool Number) (High-speed
Reading the Actual Spindle Speed (High-speed Response) .....................................................................633
Response) .....................................................................595 Reading Tool Life Management Data (Tool Length
Reading the Actual Velocity of Controlled Axes Compensation Number (1): Tool Number) (High-speed
(High-speed Response) ................................................582 Response) (8-digit Tool Number) ................................670
Reading the Actual Velocity of each Controlled Axis Reading Tool Life Management Data (Tool Length
(High-speed Response) ................................................600 Compensation Number (2): Tool Order Number)
Reading the CNC Alarm Status (High-speed (High-speed Response).................................................635
Response) .....................................................................541 Reading Tool Life Management Data (Tool Life
Reading the Current Program Number (8-digit Counter) (High-speed Response) .................................631
Program Numbers) (High-speed Response) .................567 Reading Tool Life Management Data (Tool Life)
Reading the Current Program Number (High-speed (High-speed Response).................................................629
Response) .....................................................................543 Reading Tool Life Management Data (Tool Number)
Reading the Current Sequence Number (High-speed (High-speed Response).................................................645
Response) .....................................................................545 Registering New Symbol and Comment Data..............906
Reading the Estimate Disturbance Torque Data Registering Tool Life Management Data (Tool Group
(High-speed Response) ................................................615 Number) (Low-speed Response) (8-digit Tool Number)
Reading the Feed Motor Load Current Value (A/D .....................................................................................668
Conversion Data) (High-speed Response) ...................593 Registering Tool Life Management Data (Tool Group)
Reading the Machine Position (Machine Coordinates) (Low-speed Response) .................................................648
of Controlled Axes (High-speed Response) .................585 Repetitive Operation ......................................................17
Reading the Pitch Error Compensation Value RNGB (1 Byte Length: SUB 218)................................291
(High-speed Response) ................................................576 RNGD (4 Bytes Length: SUB 220)..............................291
Reading the Relative Position on a Controlled Axis RNGW (2 Bytes Length: SUB 219) .............................291
(High-speed Response) ................................................596 ROLB (Bit Rotation Left (1 Byte Length): SUB 285) .337
Reading the Remaining Travel (High-speed ROLD (Bit Rotation Left (4 Bytes Length): SUB 287)337
Response) .....................................................................598 ROLN (Bit Rotation Left (Arbitrary Bytes Length):
Reading the Servo Delay for Controlled Axes SUB 288)......................................................................340
(High-speed Response) ................................................589
i-6
B-64393EN/02 INDEX
ROLW (Bit Rotation Left (2 Bytes Length): SHLW (Bit Shift Left (2 Bytes Length): SUB 278) .....325
SUB 286)......................................................................337 SHRB (Bit Shift Right (1 Byte Length): SUB 281) .....331
RORB (Bit Rotation Right (1 Byte Length): SHRD (Bit Shift Right (4 Bytes Length): SUB 283) ...331
SUB 289)......................................................................343 SHRN (Bit Shift Right (Arbitrary Bytes Length):
RORD (Bit Rotation Right (4 Bytes Length): SUB 284)......................................................................334
SUB 291)......................................................................343 SHRW (Bit Shift Right (2 Bytes Length): SUB 282)...331
RORN (Bit Rotation Right (Arbitrary Bytes Length): SUB Signal Name (Symbol Name)...........................................6
292) ..............................................................................346 Signal Trace Function ([TRACE] Screen) ...................780
RORW (Bit Rotation Right (2 Bytes Length): Signed Binary Comparison (<).....................................285
SUB 290)......................................................................343 Signed Binary Comparison (=).....................................279
ROT (Rotation Control: SUB 6) ..................................493 Signed Binary Comparison (>).....................................283
ROTATION CONTROL..............................................492 Signed Binary Comparison (≦)...................................289
ROTB (Binary Rotation Control: SUB 26) ..................496 Signed Binary Comparison (≧)...................................287
RST Instruction ............................................................172 Signed Binary Comparison (≠).....................................281
Signed Binary Comparison (Range).............................291
<S> SP (Subprogram: SUB 71) ...........................................483
Sample Cases .............................................................1043 SPE (End of a Subprogram: SUB 72) ..........................484
Saving Message Data for Multi-Language Display to Specification of Extended Symbol and Comment............9
the Flash ROM .............................................................773 SPECIFICATIONS ........................................................36
Saving Sequence Programs to the Flash ROM.............747 Starting and Stopping Sequence Programs...................939
Screen Structures..........................................................878 Storage and Management of Sequence Program ............14
SELECTABLE I/O LINK ASSIGNMENT FUNCTION Structure of extended type net......................................856
.....................................................................................144 Structure of standard type net.......................................855
SELECTING AND DISPLAYING THE NECESSARY Structure of Valid Net ..................................................855
LADDER NET ([SWITCH] SCREEN]) ......................872 Structured Sequence Program ........................................19
SEQUENCE PROGRAM CREATION PROCEDURE .12 SUB (BCD Subtraction: SUB 20) ................................405
Sequence Program Memory Capacity ............................40 SUBB (Binary Subtraction: SUB 37)...........................397
SET Instruction ............................................................171 Subprogram List Display Screen.........................892,1009
SETNB (Data Setting (1 Byte Length): SUB 225).......237 Subprogram Number Addresses (P) ...............................84
SETND (Data Setting (4 Bytes Length): SUB 227).....237 Subprogramming and nesting.........................................24
SETNW (Data Setting (2 Bytes Length): SUB 226) ....237 SUBSB (Subtraction (1 Byte Length): SUB 322) ........417
Setting an I/O Target PMC...........................................741 SUBSD (Subtraction (4 Bytes Length): SUB 324) ......417
Setting and Displaying Counter Values ([COUNTR] SUBSW (Subtraction (2 Bytes Length): SUB 323)......417
Screen) .........................................................................718 SWAPD (Data Swap (4 Bytes Length): SUB 232) ......243
Setting and Displaying Data Tables ([DATA] Screen) 722 SWAPW (Data Swap (2 Bytes Length): SUB 231) .....243
Setting and Displaying Keep Relays ([KEEPRL] Synchronization Processing of I/O Signals ....................30
Screen) .........................................................................720 System Keep Relay Addresses (K).................................74
SETTING AND DISPLAYING PMC System Relay Addresses (R9000) ..................................60
PARAMETERS ...........................................................714
Setting and Displaying Variable Timers ([TIMER] <T>
Screen) .........................................................................715 TABLE DATA.............................................................251
Setting of Trace Parameter ([TRCPRM] Screen).........781 TBCDB (Binary to BCD Conversion (1 Byte Length):
Setting Parameters..........................................................94 SUB 313)......................................................................390
Setting Parameters for the Online Function .................942 TBCDD (Binary to BCD Conversion (4 Bytes
SETTING Screen of I/O DIAGNOSIS ........................800 Length): SUB 315) .......................................................390
Setting Subprogram List Screen...................................893 TBCDW (Binary to BCD Conversion (2 Bytes
Setting the Communication Port ([SETING] Screen) ..737 Length): SUB 314) .......................................................390
Setting the Display Format of the LADDER TBLRB (Reading Data from Table (1 Byte Length):
DIAGRAM MONITOR Screen ............................815,996 SUB 233)......................................................................252
Setting the LADDER DIAGRAM EDITOR Screen ....841 TBLRD (Reading Data from Table (4 Bytes Length):
Setting the PROGRAM LIST EDITOR Screen ...........871 SUB 235)......................................................................252
Setting the Program List Screen...................................807 TBLRN (Reading Data from Table (Arbitrary Bytes
SFT (Shift Register: SUB 33) ......................................312 Length): SUB 236) .......................................................255
SHLB (Bit Shift Left (1 Byte Length): SUB 277)........325 TBLRW (Reading Data from Table (2 Bytes Length):
SHLD (Bit Shift Left (4 Bytes Length): SUB 279)......325 SUB 234)......................................................................252
SHLN (Bit Shift Left (Arbitrary Bytes Length): TBLWB (Writing Data to Table (1 Byte Length):
SUB 280)......................................................................328 SUB 237)......................................................................258
i-7
INDEX B-64393EN/02
TBLWD (Writing Data to Table (4 Bytes Length): Writing the Tool Life Management Data (Tool
SUB 239)......................................................................258 Information (1): Tool Number) (Low-speed Response)
TBLWN (Writing Data to Table (Arbitrary Bytes (8-digit Tool Number)..................................................676
Length): SUB 240).......................................................261 Writing the Tool Management Data (Tool Information
TBLWW (Writing Data to Table (2 Bytes Length): (2): Tool Order Number) (Low-speed Response).........661
SUB 238)......................................................................258 Writing to the Memory Card ........................................735
The Convert Method of Source Program Using Writing Tool Life Management Data (Cutter Radius
FANUC LADDER-III..................................................102 Compensation Number (1): Tool Number) (Low-speed
TIMER .........................................................................187 Response) .....................................................................657
Timer Addresses (T) ......................................................69 Writing Tool Life Management Data (Cutter Radius
Title Screen ................................................................1011 Compensation Number (1): Tool Number) (Low-speed
TMR (On-delay Timer: SUB 3) ...................................188 Response) (8-digit Tool Number) ................................675
TMRB (Fixed On-delay Timer: SUB 24) ....................190 Writing Tool Life Management Data (Cutter Radius
TMRBF (Fixed Off-delay Timer: SUB 77)..................192 Compensation Number (2): Tool Order Number)
TMRC (On-delay Timer: SUB 54) ..............................194 (Low-speed Response) .................................................658
TMRSS (Stop Watch Timer (1sec Accuracy): Writing Tool Life Management Data (Tool Length
SUB 222)......................................................................197 Compensation Number (1): Tool Number) (Low-speed
TMRST (Stop Watch Timer (1ms Accuracy): Response) .....................................................................655
SUB 221)......................................................................197 Writing Tool Life Management Data (Tool Length
TOOL LIFE MANAGEMENT FUNCTION ...............623 Compensation Number (1): Tool Number) (Low-speed
Trace Result Output .....................................................789 Response) (8-digit Tool Number) ................................674
TRACING AND DISPLAYING PMC SIGNAL Writing Tool Life Management Data (Tool Length
STATUS.......................................................................780 Compensation Number (2): Tool Order Number)
Transferring and Writing Sequence Program to PMC....13 (Low-speed Response) .................................................656
Transition of the PMC Screens ....................................683 Writing Tool Life Management Data (Tool Life
Counter Type) (Low-speed Response) .........................654
<U> Writing Tool Life Management Data (Tool Life
Usage of PMC Message Multi-Language Display Counter) (Low-speed Response) ..................................652
Function .......................................................................104 Writing Tool Life Management Data (Tool Life)
(Low-speed Response) .................................................650
<V> Writing Tool Life Management Data (Tool Number)
Variable Information ....................................................968 (Low-speed Response) .................................................663
WRT Instruction...........................................................160
<W> WRT.NOT Instruction .................................................161
WHAT IS LADDER LANGUAGE? ...............................5
WHAT IS PMC? ..............................................................1 <X>
WHAT IS THE I/O LINK? ..........................................112 XCHGB (Data Exchange (1 Byte Length): SUB 228) .240
WINDOW FUNCTIONS .............................................501 XCHGD (Data Exchange (4 Bytes Length): SUB 230)240
WINDR (Reading CNC Window Data: SUB 51) ........452 XCHGW (Data Exchange (2 Bytes Length):
WINDW (Writing CNC Window Data: SUB 52) ........454 SUB 229)......................................................................240
Writing a Custom Macro Variable (Low-speed XMOV (Indexed Data Transfer: SUB 18)....................231
Response) .....................................................................539 XMOVB (Binary Index Modifier Data Transfer:
Writing a Parameter (Low-speed Response) ................524 SUB 35)........................................................................223
Writing a P-CODE Macro Variable (Low-speed
Response) .....................................................................562
Writing a Real Type Parameter (Low-speed
Response) .....................................................................530
Writing a Tool Offset (Low-speed Response)..............516
Writing a Workpiece Origin Offset Value (Low-speed
Response) .....................................................................520
Writing Clock Data (Date and Time) (Low-speed
Response) .....................................................................572
Writing Setting Data (Low-speed Response) ...............536
Writing the Pitch Error Compensation Value
(Low-speed Response) .................................................577
Writing the Tool Life Management Data (Tool
Information (1): Tool Number) (Low-speed Response)659
i-8
Revision Record
FANUC Series 0i-MODEL D/Series 0i Mate-MODEL D PMC PROGRAMMING MANUAL (B-64393EN)