Re Cki A468.2
Re Cki A468.2
Re Cki A468.2
INSTRUCTIONS
FOR INFORM LANGUAGE
Upon receipt of the product and prior to initial operation, read these instructions thoroughly, and
retain for future reference.
MOTOMAN INSTRUCTIONS
MOTOMAN- INSTRUCTIONS
YRC1000micro INSTRUCTIONS
YRC1000micro OPERATOR’S MANUAL
YRC1000micro MAINTENANCE MANUAL
YRC1000micro ALARM CODES (MAJOR ALARMS) (MINOR ALARMS)
CAUTION
• In some drawings in this manual, the protective covers or shields
are removed to show details. Make sure to install all the covers and
shields in place before operating this product.
• YASKAWA is not responsible for incidents arising from unauthorized
modification of its products. Unauthorized modification voids the
product warranty.
NOTICE
• The drawings and photos in this manual are representative
examples and differences may exist between them and the
delivered product.
• YASKAWA may modify this model without notice when necessary
due to product improvements, modifications, or changes in
specifications. If such modification is made, the manual number will
also be revised.
• If your copy of the manual is damaged or lost, contact a YASKAWA
representative to order a new copy. The representatives are listed
on the back cover. Be sure to tell the representative the manual
number listed on the front cover.
ii
Notes for Safe Operation
Read this manual carefully before installation, operation, maintenance, or
inspection of the YRC1000micro.
In this manual, the Notes for Safe Operation are classified as “DANGER”,
“WARNING”, “CAUTION”, or “NOTICE”.
iii
DANGER
• Before operating the manipulator, make sure the servo power is
turned OFF by performing the following operations. When the servo
power is turned OFF, the SERVO ON LED on the programming
pendant is turned OFF.
– Press the emergency stop button on the programming pendant or
on the external control device, etc.
– Disconnect the safety plug of the safety fence. (when in the play
mode or in the remote mode).
If operation of the manipulator cannot be stopped in an emergency,
personal injury and/or equipment damage may result.
Fig. : Emergency Stop Button
iv
DANGER
• In the case of not using the programming pendant, be sure to
supply the emergency stop button on the equipment. Then before
operating the manipulator, check to be sure that the servo power is
turned OFF by pressing the emergency stop button.
Connect the external emergency stop button to the 4-14 pin and
5-15 pin of the Safety connector (Safety).
• Upon shipment of the YRC1000micro, this signal is connected by a
jumper cable in the dummy connector. To use the signal, make
sure to supply a new connector, and then input it.
If the signal is input with the jumper cable connected, it does not
function, which may result in personal injury or equipment damage.
WARNING
• Perform the following inspection procedures prior to conducting
manipulator teaching. If there is any problem, immediately take
necessary steps to solve it, such as maintenance and repair.
– Check for a problem in manipulator movement.
– Check for damage to insulation and sheathing of external wires.
• Return the programming pendant to a safe place after use.
If the programming pendant is left unattended on the manipulator, on a
fixture, or on the floor, etc., the Enable Switch may be activated due to
surface irregularities of where it is left, and the servo power may be
turned ON. In addition, in case the operation of the manipulator starts,
the manipulator or the tool may hit the programming pendant left
unattended, which may result in personal injury and/or equipment
damage.
v
Descriptions of the programming pendant keys, buttons, and displays are
shown as follows:
Equipment Manual Designation
Programming Character Keys The keys which have characters or symbols
Pendant /Symbol Keys printed on them are denoted with [ ].
e.g. [ENTER]
Axis Keys [Axis Key] and [Numeric Key] are generic
/Numeric Keys names for the keys for axis operation and
number input.
Keys pressed When two keys are to be pressed
simultaneously simultaneously, the keys are shown with a “+”
sign between them, e.g. [SHIFT]+[COORD].
Mode Switch Mode Switch can select three kinds of modes
that are denoted as follows: REMOTE, PLAY or
TEACH.
(The switch names are denoted as symbols)
Button The three buttons on the upper side of the
programming pendant are denoted as follows:
START, HOLD, or EMERGENCY STOP.
(The button names are denoted as symbols)
Displays The menu displayed in the programming
pendant is denoted with { }.
e.g. {JOB}
START HOLD
Mode switch*
P
EM
ER
O
T
GENCY S
REMOTE
Emergency stop button
PLAY
TEACH
Page key
Coordinate key
Axis keys
Shift key
Enter key
*The button/switch names
Numeric keys are denoted as symbols.
vi
Description of the Operation Procedure
In the explanation of the operation procedure, the expression “Select • • •”
means that the cursor is moved to the object item and [SELECT] is
pressed, or that the item is directly selected by touching the screen.
Registered Trademark
In this manual, names of companies, corporations, or products are
trademarks, registered trademarks, or brand names for each company or
corporation. The indications of (R) and TM are omitted.
vii
Contents
1.7.2 Register, Edit and Delete of the Structured Language ....................................... 1-21
1.7.4 Changes in the Format when Save the data to the External Device .................. 1-32
viii
Contents
ix
Contents
x
Contents
xi
1 Outline of INFORM
1.1 About INFORM
1 Outline of INFORM
1.1.1 INFORM
The robot programming language used with YRC1000micro is called
INFORM. INFORM is composed of the instruction and the additional item
(tag and numeric data).
MOVJ VJ=50.00
Tag Numeric data
nstruction
Additional item
Instruction
Type Content
Example
I/O Instruction It is the instruction used to control the I/O. DOUT, WAIT
Control It is the instruction used to control the processing and JUMP, TIMER
Instruction operation.
Operating It is the instruction by which the variables, etc. are used ADD, SET
Instruction and operated.
Move It is an instruction concerning the movement and the MOVJ, REFP
Instruction speed.
Shift Instruction It is an instruction used when a present teaching position SFTON,
is shifted. SFTOF
Instruction It is an instruction which adheres to the instruction. IF, UNTIL
which adheres
to instruction
Work It is an instruction concerning work. TOOLON
Instruction
Optional It is an instruction concerning optional functions. It can -
Instruction only be used when the function is available.
1-1
1 Outline of INFORM
1.1 About INFORM
1-2
1 Outline of INFORM
1.1 About INFORM
1-3
1 Outline of INFORM
1.1 About INFORM
1-4
1 Outline of INFORM
1.2 Registration of Instructions
1.2.1 Registration
To register instructions, press [INFORM LIST] while the job content
window is shown.
1. Select {JOB} under the main menu
2. Select {JOB}
– The job content window appears.
3. Press [INFORM LIST]
– The job instruction group list dialog box appears.
1-5
1 Outline of INFORM
1.2 Registration of Instructions
SUPPLE
For more details, refer to “Editing ” in YRC1000micro
-MENT OPERATOR’S MANUAL (RE-CSO-A058).
1-6
1 Outline of INFORM
1.3 Detail Edit Window
Instruction
Additional item
Instructions
Indicates the instruction.
Additional Item
Indicates the additional item.
The tag selection dialog box appears when the cursor is on the addi-
tional item and [SELECT] is pressed.
When “NOT USED” is selected, the tag is omitted (if it can be omitted).
1-7
1 Outline of INFORM
1.4 Registration of Expression
1.4.1 Expression
With INFORM, an expression can be registered to the SET instruction.
Operator
Starting parentheses
Ending parentheses
- (negative) Data
Starting parentheses
Move the cursor to the parentheses, and press [SELECT]. Each time
[SELECT] is pressed, three types of parentheses show up in the follow-
ing order.
- (negative)
Move the cursor to the desired position, and press [SELECT]. Each
time [SELECT] is pressed, the negative is alternately added and omitted
and vice versa.
1-8
1 Outline of INFORM
1.4 Registration of Expression
Data
The data type of the expression is indicated. The following types of data
can be registered.
• Constant (byte type, integer type, double-precision type, and real-
number type)
• Byte type variable (B, B[], LB, and LB[])
• Integer type variable (I, I[], LI, and LI[])
• Double-precision type variable (D, D[], LD, and LD[])
• Real-number type variable (R, R[], LR, and LR[])
Move the cursor to the desired position, and press [SELECT] to enter
the numeric value input status. Change the numeric value of the con-
stant data and the variable number.
Change the data type by using the Data type selection icon.
Data type selection icon
Change the data type in the following manner.
Move the cursor to the data type to be changed, and press [SELECT].
A dialog box with the selectable data types is displayed. Move the cur-
sor to the data type to be selected and press [SELECT].
Ending parentheses
Move the cursor to the parentheses and press [SELECT]. Each time
[SELECT] is pressed, three types of parentheses show up in the follow-
ing order.
Operator
Move the cursor to the operator to be changed and press [SELECT].
The operator selection dialog box is displayed. Move the cursor to the
operator to be selected and press [SELECT].
1-9
1 Outline of INFORM
1.4 Registration of Expression
1.4.2 Registration
1. Select {JOB} under the main menu
2. Select {JOB}
3. Press [INFORM LIST]
4. Select “ARITH”
5. Select “SET”
6. Press [SELECT]
– The DETAIL EDIT window for the SET instruction appears.
1-10
1 Outline of INFORM
1.4 Registration of Expression
8. Select “EXPRESS”
– The DETAIL EDIT window for expression appears.
1-11
1 Outline of INFORM
1.5 Registration of Conditional Statement
Conditional statement
Result strored destination Conditional statement Conditional statement
4 Logical operator
5 Ending parentheses
1 Starting parentheses
Move the cursor to this area. Every time [SELECT] is pressed,
the selected parenthesis is switched in the following order.
2 Conditional statement
Conditional statements are shown in this area. As for the contents
which can be registered as the conditional statement, refer to
RELEXPR inchapter 2.6 “Instruction Which Adheres to an Instruction”
3 Conditional statement edit icon
The DETAIL EDIT window of conditional statement is shown.
Move the cursor to this icon, press [SELECT] and the detail edit
window of the conditional statement (RELEXPR) is shown.
The conditional statement is edited in this window.
1-12
1 Outline of INFORM
1.5 Registration of Conditional Statement
4 Ending parentheses
Move the cursor to this area. Every time [SELECT] is pressed,
the selected parenthesis is switched in the following order.
5 Logical operator
The logical operator is shown in this area.
Move the cursor to this area, press [SELECT] and the selection dialog
box of the logical operator is shown. Move the cursor to the logical
operator to be changed and press [SELECT].
1-13
1 Outline of INFORM
1.5 Registration of Conditional Statement
1.5.2 Registration
In the following procedures, the registration of the conditional statement is
explained with a example which shows how to edit the LOGICEXP
instruction in SET instruction. In the same procedures, the registration of
the conditional statement is available for IFEXPRESS, FOREEXPRESS,
LOGICEXP, IFTHEN, ELSEIF, and WHILE instructions.
1. Select {JOB} under the main menu.
2. Select {JOB}.
3. Press [INFORM LIST].
4. Select “ARITH”.
5. Select “SET”.
6. Press [SELECT].
– The DETAIL EDIT window of SET instruction is shown.
1-14
1 Outline of INFORM
1.5 Registration of Conditional Statement
9. Move the cursor to the conditional edit icon and press [SELECT].
– The DETAIL EDIT window of the conditional statement (RELEXPR
instruction) is shown.
1-15
1 Outline of INFORM
1.5 Registration of Conditional Statement
1-16
1 Outline of INFORM
1.6 INFORM Syntax
P/LP/P[]
2 Variable No. A B
/LP[]
3 Variable No.
EX/LEX
4 /EX[] Variable No.
/LEX[]
A B
BP/LBP EX/LEX
7 /BP[] Variable No. 8 /EX[] Variable No.
/LBP[] /LEX[]
C D
D E
E END
14 NWAIT 15 UNTIL
1-17
1 Outline of INFORM
1.6 INFORM Syntax
MOVJ
VJ=
Indicates the numeric data. In this example, “Joint speed” is set with the unit %.
Joint Speed(%)
NWAIT
1-18
1 Outline of INFORM
1.6 INFORM Syntax
• NO.
Indicates the tag number. Corresponds to the number in the
INFORM syntax.
• Tag
Indicates the surface description of the tag.
• Explanation
Provides an explanation of the tag.
1-19
1 Outline of INFORM
1.7 The Structured Language
1-20
1 Outline of INFORM
1.7 The Structured Language
1-21
1 Outline of INFORM
1.7 The Structured Language
1-22
1 Outline of INFORM
1.7 The Structured Language
1-23
1 Outline of INFORM
1.7 The Structured Language
2. Press {SELECT}, while the cursor of the input buffer is in the selected
instruction.
– The DETAIL EDIT window of the conditional statement appears.
Operator
Starting parenthese
Ending parenthese
Conditional statement
Edit conditional statement
1-24
1 Outline of INFORM
1.7 The Structured Language
The following table shows the contents which are configurable in the
DETAIL EDIT window.
1-25
1 Outline of INFORM
1.7 The Structured Language
1-26
1 Outline of INFORM
1.7 The Structured Language
④ Operator
Add (OR connection, AND connection) or delete the conditional judgment
statement.
Select NON : Delete the all statement lines below the selected position.
1-27
1 Outline of INFORM
1.7 The Structured Language
Copy or cut
The structured language cannot be copied or cut without selecting the
another instruction which makes a pair with the selected structured
language.
Structured Language The motion when copy/cut the instruction
SWITCH Cannot be copied/cut if the ENDSWITCH instruction
which makes a pair with the selected SWITCH
instruction is not selected at the same time.
CASE This instruction is copied/cut by itself.
DEFAULT This instruction is copied/cut by itself.
ENDSWITCH Cannot be copied/cut if the SWITCH instruction which
makes a pair with the selected ENDSWITCH
instruction is not selected at the same time.
WHILE Cannot be copied /cut if the ENDWHILE instruction
which makes a pair with the selected WHILE
instruction is not selected at the same time.
ENDWHILE Cannot be copied/cut if the WHILE instruction which
makes a pair with the selected ENDWHILE instruction
is not selected at the same time.
FOR Cannot be copied/cut if the NEXT instruction which
makes a pair with the selected FOR instruction is not
selected at the same time.
NEXT Cannot be copied/cut if the FOR instruction which
makes a pair with the selected NEXT instruction is not
selected at the same time.
IFTHEN Cannot be copied/cut if the ENDIF instruction which
makes a pair with the selected IFTHEN instruction is
not selected at the same time.
1-28
1 Outline of INFORM
1.7 The Structured Language
Comment out
Some of the instructions cannot comment out the structured language
without selecting the another instruction making a pair. The edit lock has
no limitation.
Structured Language The motion when comment out the instruction
SWITCH Cannot be commented out if the ENDSWITCH
instruction which makes a pair with the selected
SWITCH instruction is not selected at the same time.
CASE Cannot be commented out if the all instructions
between SWITCH and ENDSWITCH including this
CASE instruction are not selected.
DEFAULT Cannot be commented out if the all instructions
between SWITCH and ENDSWITCH including this
DEFALT instruction are not selected.
ENDSWITCH Cannot be commented out if the SWITCH instruction
which makes a pair with the selected ENDSWITCH
instruction is not selected at the same time.
WHILE The ENDWHILE instruction which makes a pair with
the selected WHILE instruction is commented out at
the same time.
ENDWHILE The WHILE instruction which makes a pair with the
selected ENDWHILE instruction is commented out at
the same time.
FOR The NEXT instruction which makes a pair with the
selected FOR instruction is commented out at the
same time.
NEXT The FOR instruction which makes a pair with the
selected NEXT instruction is commented out at the
same time.
IFTHEN Cannot be commented out if the ENDIF instruction
which makes a pair with the selected IFTHEN
instruction is not selected at the same time.
ELSEIF Cannot be commented out if the all instructions
between IFTHEN and ENDIF including this ELSEIF
instruction are not selected.
ELSE Cannot be commented out if the all instructions
between IFTHEN and ENDIF including this ELSE
instruction are not selected.
ENDIF Cannot be commented out if the IFTHEN instruction
which makes a pair with the selected ENDIF
instruction is not selected at the same time.
1-29
1 Outline of INFORM
1.7 The Structured Language
NOP
SET B000 0
FOR I000=1 TO 10
FOR I001=1 TO 20
INC B000
NEXT I001
NEXT I000
END
The level of multiplexing for the structured language is set by the following
parameter.
Parameter Description Initial
value
S2C694 Structured language Multiplexing max value 0
1 to 20 : able to be multiplexing level 1 to 20
Except above : able to be multiplexing till level 10
The following error is shown if the multiplexing above the set level is
attempted.
Error2271: Nesting level limit over
Error sub-code: Multiplexing level max value +1
The added instruction is shown with the indent. Therefore, the difference
of the level can be confirmed. The indent length per 1 level is set by the
following parameter..
Parameter Description Initial value
S2C693 Structured language 0
Number of the indent character when process the
multiplexing of the structured language.
1 to 4 : the length of the indent 1 to 4 bytes
0 : the length of the indent 1 byte.
1-30
1 Outline of INFORM
1.7 The Structured Language
1-31
1 Outline of INFORM
1.7 The Structured Language
1.7.4 Changes in the Format when Save the data to the External Device
If the job with the structured language is saved in the external device,
there is the case that a format of instruction is different from the
expression in the job content window.
Format in the JOB CONTENT window Format when save into the external device
ELSE ELSE
ENDIF ENDIF
DOUT OT#(2) ON
ELSE
DOUT OT#(3) ON
ENDIF
DOUT OT#(1) ON
DOUT OT#(2) ON
ELSE
DOUT OT#(3) ON
ENDIF
1-32
1 Outline of INFORM
1.7 The Structured Language
Format in the JOB CONTENT window Format when save into the external device
WHILE ( IN#(1) =ON ) WHILEEXP IN#(1)=ON
1-33
2 INFORM Explanation
2.1 I/O Instructions : DOUT
2 INFORM Explanation
DOUT
SUBSET STANDARD EXPANDED
Function
Syntax
3 OGH# (
Output group )
No.
B/LB/
A 5 B[]/LB[] Variable No. B
6 ON/OFF
7 INVERT
B/LB/
C 8 B[]/LB[] Variable No. D
9
Byte type
constant
10 INVERT
D/LD/
E 11 D[]/LD[] Variable No. F
12 Double-precision
type constant
2-1
2 INFORM Explanation
2.1 I/O Instructions : DOUT
Explanation
Output signal
SUPPLE
-MENT Output signal OT#(xx) is 1 point, OGH#(xx) is 1 group 4 points, and OG#(xx) is 1 group 8
points.
The user group output OGU#(x) consists of the output signal which is set in the user group
output setting file. For details and the setting procedure, refer to “User Group Input and
Output” in YRC1000micro INSTRUCTIONS (RE-CTO-A222).
When OT# (output number) is selected from the table in part 1 of this
Explanation, one of the tags must be selected from the following table.
2-2
2 INFORM Explanation
2.1 I/O Instructions : DOUT
When OGU# (User group output number) is selected from the table in part
1 of this Explanation, one of the tags must be selected from the following
table.
Example
ON
2-3
2 INFORM Explanation
2.1 I/O Instructions : DOUT
2-4
2 INFORM Explanation
2.1 I/O Instructions : DIN
DIN
SUBSET STANDARD EXPANDED
Function
The signal status is read in the byte type/double precision type variable.
Syntax
B/LB/
DIN 1 Variable No. 3 IN# ( Input No. ) END
B[]/LB[]
Output group
6 OG# ( )
No.
7 Specific
SIN# ( )
input No.
Specific
8 SOUT# ( )
output No.
Output group
10 OGH# ( )
No.
User group
12 OGU# ( )
Output No.
2-5
2 INFORM Explanation
2.1 I/O Instructions : DIN
Explanation
2-6
2 INFORM Explanation
2.1 I/O Instructions : DIN
Input signal
SUPPLE
-MENT
Input signal IN#(xx) is 1 point, IGH#(xx) is 1 group 4 points, and IG#(xx) is 1group 8 points.
The user group input IGU#(x) consists of the input signal which is set in the user group
input setting file. For details and the setting procedure, refer to “User Group Input and Out-
put” in YRC1000micro INSTRUCTIONS (RE-CTO-A222).
When confirming information from multiple signals at the same time at a conditional branch
SUPPLE of a job in the system where I/O is externally controlled, retrieve signal status using DIN
-MENT
and perform conditional branching of the job using the values of the signal status that have
been retrieved.
Signal information will not be affected by external factors when information from multiple
signals is retrieved at one time using DIN.
If signal information is retrieved for each signal separately, external controls during inter-
vals between retrievals may change the information.
2-7
2 INFORM Explanation
2.1 I/O Instructions : DIN
Example
ON
2-8
2 INFORM Explanation
2.1 I/O Instructions : WAIT
WAIT
Function
Wait until the various statuses coincide with the specified status.
Syntax
B/LB/
WAIT 1 IN# ( Input No. ) 13 = 14 Variable No. A
B[]/LB[]
3 SIN# ( Specific )
input No.
Specific
4 SOUT# ( )
output no.
B/LB/
9 Variable No.
B[]/LB[]
11 User group 21
OGU# ( ) <> Double-precision
output No. 27
type constant
22 >
23 >=
24 <
25 <=
12 FOREXPRESS
A END
28 T= Time (sec)
2-9
2 INFORM Explanation
2.1 I/O Instructions : WAIT
Explanation
2-10
2 INFORM Explanation
2.1 I/O Instructions : WAIT
2. =
When an IN# (input number), OT# (output number), SIN# (specific input
number), or SOUT# (specific output number) is selected from the table in
part 1 of this Explanation, add the following tag.
When an IN# (input number), OT# (output number), SIN# (specific input
number), or
SOUT# (specific output number) is selected from the table in part 1 of this
Explanation, one of the tags must be selected from the following table
after the equal sign (=) is added from the table in part 2 of this
Explanation.
4. =/<>
When an IG# (input group number), OG# (output group number), IGH#
(input group number), OGH# (output group number), B variable number,
LB variable number, B [array number], or LB [array number] is selected
from the table in part 1 of this Explanation, one of the tags must be
selected from the following table.
2-11
2 INFORM Explanation
2.1 I/O Instructions : WAIT
When an IGU# (user group input number), or OGU# (user group output
number) is selected from the table in part 1 of this Explanation, one of the
tags is selected from the following table
When either OG# (output group number), or OGH# (output group number)
is selected from the table in part 1 of this Explanation, one of the tags is
selected from the following table after one of the signs (= / <> / > / >= / < /
<=) is added from the table in part 6 of this Explanation.
8. T=time
2-12
2 INFORM Explanation
2.1 I/O Instructions : WAIT
Example
ON
Waits until GP input signal nos.5 and 7 are turned off and GP input
signal nos. 6 and 8 are turned on.
(4) Operation example
2-13
2 INFORM Explanation
2.1 I/O Instructions : PULSE
PULSE
SUBSET STANDARD EXPANDED
Function
The pulse signal is output to the GP output signal only for the specified
time.
The PULSE instruction executes the next instruction without waiting for
the completion of pulse output (the specified output time).
However, in case the pulse output of the previous executed PULSE
instruction is not completed, this time PULSE instruction is executed after
the completion when the instruction is executed continuously for the same
signal.
Syntax
Output B/LB/
2 OG# ( group No. ) 5 Variable No.
B[]/LB[]
Output Byte type
3 OGH# ( group No. ) 6
constant
8 Double-precision
type constant
A END
2-14
2 INFORM Explanation
2.1 I/O Instructions : PULSE
Explanation
When OG# (output group number) or OGH# (output group number) in the
above table is selected from the table in part 1 of this Explanation, one of
the tags must be selected from the following table.
2-15
2 INFORM Explanation
2.1 I/O Instructions : PULSE
When OGU# (User group output number) is selected from the table in part
1 of this Explanation, one of the tags is selected from the following table.
4. T=Time
5. IFEXPRESS
2-16
2 INFORM Explanation
2.1 I/O Instructions : PULSE
Example
Pulse signal
0.3sec
ON
The pulse signal is output for 0.300 seconds to the GP output sig-
nal No. 20 and 21.
2-17
2 INFORM Explanation
2.1 I/O Instructions : ANTOUT
ANTOUT
The ANTOUT instruction can be used only with parameter S4C008.
Function
Carries out the anticipation output function to adjust the timing of the
signal output.
2-18
2 INFORM Explanation
2.1 I/O Instructions : ANTOUT
Syntax
Anticipation
ANTOUT 1 AT# (
output No.
) 3 ON/OFF A
Anticipation
B/LB/B[]/
2 AG# ( group output ) 4 LB[]
Variable No.
No.
Byte type
5 constant
A END
Anticipation
6 ANT=
time (s)
Explanation
2-19
2 INFORM Explanation
2.1 I/O Instructions : ANTOUT
Set the number of the output signal for the anticipation output in the ANTICIPATION OUT-
PUT display.
D
E
2. ON/OFF
2-20
2 INFORM Explanation
2.1 I/O Instructions : ANTOUT
4. ANT=Anticipation time
5. ANTDIS=Distance
2-21
2 INFORM Explanation
2.1 I/O Instructions : ANTOUT
Example
2-22
2 INFORM Explanation
2.2 Control Instruction : JUMP
JUMP
SUBSET STANDARD EXPANDED
Function
Syntax
Label character
JUMP 1 * string D E A
B/LB/
2 LABEL: 11 Variable No.
B[]/LB[]
S/LS/
13 Variable No.
S[]/LS[]
3 JOB:
User
17 UF# coordinate No.
B/LB/
4 Variable No.
B[]/LB[]
6 QUE 18 IF
I/LI/ 19 IFEXPRESS
7 Variable No.
I[]/LI[]
D/LD/
8 Variable No.
D[]/LD[]
B C
S/LS/
10 Variable No.
S[]/LS[]
Job registration
B 9 JET# 14 ENTRY Registration No. C
table No.
D E
2-23
2 INFORM Explanation
2.2 Control Instruction : JUMP
Explanation
2-24
2 INFORM Explanation
2.2 Control Instruction : JUMP
3. ENTRY=Registration number
When a *label character string “LABEL” is selected from the table in part 1
of this Explanation, add the following tag.
2-25
2 INFORM Explanation
2.2 Control Instruction : JUMP
5. LBLDF=Search direction
When a *label character string “LABEL” is selected from the table in part 1
of this Explanation, the following tag can be added.
7. IF / IFEXPRESS
Example
(1) JUMP *1
Jumps to *1.
2-26
2 INFORM Explanation
2.2 Control Instruction : CALL
CALL
SUBSET STANDARD EXPANDED
Function
Syntax
CALL 1 JOB: D
B/ LB/
2 Variable No.
B[]/ LB[]
4 QUE
E A
A END
D/ LD/
6 Variable No.
D[]/ LD[]
11 IF
B C
12 IFEXPRESS
S/LS/
7 Variable No.
S[]/LS[]
Job registration
B 8 JET# ( ) 9 ENTRY= Registration No. C
table No.
2-27
2 INFORM Explanation
2.2 Control Instruction : CALL
Integer type
10
constant
Double-precision
11
type constant
Real type
12
constant
Character type
13
constant
2-28
2 INFORM Explanation
2.2 Control Instruction : CALL
Explanation
2-29
2 INFORM Explanation
2.2 Control Instruction : CALL
2. ENTRY=Registration number
4. IF/IFEXPRESS
5. Argument
2-30
2 INFORM Explanation
2.2 Control Instruction : CALL
Example
The CALL can pass 8 arguments to the called job. Also, the RET
instruction can return the one return value to the calling job. This enables
the transfer of information without using the global variable to pass
information. Thus, it makes the management of information easier, the
number of lines of the calling job fewer, and the process simpler.
2-31
2 INFORM Explanation
2.2 Control Instruction : CALL
<Calling Job>
NOP
SET B000 1
SET B001 5
SET B002 7
CALL JOB: WAIT_INPUT
:
<Called Job>
Job name: WAIT_INPUT
NOP
WAIT IN#(B000) ON
WAIT IN#(B001) ON
WAIT IN#(B002) ON
RET
This makes the calling job program long, and the global variable will be
used only for this information transfer.
By using the CALL instruction with argument, the above can be described
as follows:
<Calling Job>
NOP
CALL JOB: WAIT_INPUT (1, 5, 7)
:
<Called Job>
Job name: WAIT_INPUT
NOP
GETARG LB000, IARG#(1)// INPUT NUMBER 1 (receiving the argument 1)
GETARG LB001, IARG#(2)// INPUT NUMBER 2 (receiving the argument 1)
GETARG LB002, IARG#(3)// INPUT NUMBER 3 (receiving the argument 1)
WAIT IN#(LB000) ON
WAIT IN#(LB001) ON
WAIT IN#(LB002) ON
RET
This makes the calling job program only one-line long. Also, the called job
can be made by using only the local variable.
2-32
2 INFORM Explanation
2.2 Control Instruction : CALL
<Calling Job>
NOP
SET B000 1
SET B001 2
CALL JOB: ADD_REG
GET I0100 I099 ; Returns the calculation result to I099
<Called Job>
Job name: ADD_REG
NOP
GETREG I000 MREG#(B000)
GETREG I099 MREG#(B001)
ADD I099 I000
RET
By using the CALL instruction with argument and the RET instruction with
return value, the above can be described as follows:
<Calling Job>
NOP
CALL JOB: ADD_REG (1, 2)
GETS I001 $RV ; Receives the addition result as the return value at $RV
<Called Job>
Job name: ADD_REG
NOP
GETARG LB000 IARG#(1)// Register 1
GETARG LB001 IARG#(2)// Register 2
GETREG LI000 MREG#(LB000)
GETREG LI001 MREG#(LB001)
ADD LI001 I000
2-33
2 INFORM Explanation
2.2 Control Instruction : CALL
Thus, the global variable to receive and pass the answer is no longer
necessary.
5. 2 Operating Procedure
3. Define arguments.
As shown below, select the pull-down menu {DISPLAY}, then
{ARGUMENT INFO}.
2-34
2 INFORM Explanation
2.2 Control Instruction : CALL
2-35
2 INFORM Explanation
2.2 Control Instruction : CALL
NOP
GETARG LB000 IARG#(1) //OUTPUT1
GETARG LB000 IARG#(2) //OUTPUT2
GETARG LB000 IARG#(3) //OUTPUT3
GETARG LB000 IARG#(4) //OUTPUT4
GETARG LB000 IARG#(5) //OUTPUT5
GETARG LB000 IARG#(6) //OUTPUT6
GETARG LB000 IARG#(7) //OUTPUT7
GETARG LB000 IARG#(8) //OUTPUT8
DOUT OT#(LB000) OFF
DOUT OT#(LB001) OFF
DOUT OT#(LB002) OFF
DOUT OT#(LB003) OFF
DOUT OT#(LB004) OFF
DOUT OT#(LB005) OFF
DOUT OT#(LB006) OFF
DOUT OT#(LB007) OFF
RET
(3) Describe the calling job.
As shown below, call “MULTI_OUTPUT_RESET” in the job.
In this case, if the called job has 8 arguments, 8 arguments must
be listed here. If the numbers are not the same, “Alarm 4608:
WRONG EXECUTION OF GETARG INST” occurs at execution.
2-36
2 INFORM Explanation
2.2 Control Instruction : CALL
3. Define arguments.
As shown below, define 2 arguments.
2-37
2 INFORM Explanation
2.2 Control Instruction : CALL
2-38
2 INFORM Explanation
2.2 Control Instruction : CALL
JOB Stack
When CALL instruction is executed, a specified job is called
up and the information of the calling job is stored in the JOB
stack. By executing END or RET instruction, the job execu-
tion goes back to the calling job, referring to the information
in the JOB stack.
NOTE
2-39
2 INFORM Explanation
2.2 Control Instruction : CALL
NOTE At this time, the control goes back without going through the
job which JUMP:JOB instruction is executed, so the manip-
ulator may make an unintentional motion. If there isn’t any
special reasons, use CLEAR STACK instruction before or
after the JUMP:JOB instruction to clear the JOB stack.
2-40
2 INFORM Explanation
2.2 Control Instruction : CALL
2-41
2 INFORM Explanation
2.2 Control Instruction : TIMER
TIMER
SUBSET STANDARD EXPANDED
Function
Syntax
Explanation
1. T=timer
Example
2-42
2 INFORM Explanation
2.2 Control Instruction : *(LABEL)
*(LABEL)
SUBSET STANDARD EXPANDED
Function
Syntax
Explanation
1. *Label strings
Example
(1) NOP
*1
JUMP JOB:1 IF IN#(1)=ON
JUMP JOB:2 IF IN#(2)=ON
Repeat
JUMP *1
END
IF GP input signal No.1 and No.2 are off, if loops infinitely between
“*1” and “JUMP *1”.
NOTE The label is effective only in the same job. It does not jump
to the same label in other jobs.
2-43
2 INFORM Explanation
2.2 Control Instruction : ’(COMMENT)
’(COMMENT)
SUBSET STANDARD EXPANDED
Function
Syntax
Explanation
1. 'Comment strings
Example
(1) NOP
'Waiting Position
MOVJ VJ=100.00
MOVJ VJ=100.00
MOVJ VJ=25.00
'Operation Start
TOOLON
MOVL V=138
'Operation end
TOOLOF
MOVJ VJ=25.00
'Waiting Position
MOVJ VJ=100.00
END
The comment clarifies the job content.
2-44
2 INFORM Explanation
2.2 Control Instruction : RET
RET
SUBSET STANDARD EXPANDED
Function
Syntax
Argument EN D
B/ LB/ 1 IF
3 Variable No.
B[] / L B[]
2 IFEXPRESS
I/ L I/ I[]
4 Variable No.
/ L I[]
D/ L D/
5 Variable No.
D[] / L D[]
R/ L R/
6 R[] / L R[] Variable No.
S/ LS/
7 Variable No.
S[] / L S[]
Integer type
9
constant
Double-precision
10
type constant
Real type
11
constant
Character type
12
constant
2-45
2 INFORM Explanation
2.2 Control Instruction : RET
Explanation
1. IF/IFEXPRESS
Example
NOP NOP
MOVJ VJ=100.00 DOUT OT#(1) ON
MOVJ VJ=100.00 WAIT IN#(1)=ON
CALL JOB:2 DOUT OT#(1) OFF
MOVJ VJ=100.00 RET IF IN#(12)=ON
END
END
2. Return Value
Arguments can be added to the CALL instruction, and the return value can
be returned with the RET instruction. Variables other than the position
type variables (P variable, BP variable, EX variable, and PX variable) and
constants can be returned as the return value.
At the call-origin job, the return value is received by the GETS instruction.
For details, refer to “5. Argument ” in the explanation of the CALL
instruction.
2-46
2 INFORM Explanation
2.2 Control Instruction : RET
Example
The following example is the case when the value returned from JOB:
SAMPLE is received by I000.
CALL JOB: SAMPLE
GETS I000 $RV
NOP
:
RET LI000
END
2-47
2 INFORM Explanation
2.2 Control Instruction : NOP
NOP
SUBSET STANDARD EXPANDED
Function
Syntax
NO P EN D
Example
(1) NOP
END
2-48
2 INFORM Explanation
2.2 Control Instruction : PAUSE
PAUSE
SUBSET STANDARD EXPANDED
Function
Syntax
PAU SE EN D
1 IF
2 IFEXPRESS
Explanation
1. IF/IFEXPRESS
Example
2-49
2 INFORM Explanation
2.2 Control Instruction : CWAIT
CWAIT
SUBSET STANDARD EXPANDED
Function
Syntax
C WA IT EN D
Example
2-50
2 INFORM Explanation
2.2 Control Instruction : MSG
MSG
SUBSET STANDARD EXPANDED
Function
Syntax
S/LS/
2 Variable No.
S[]/LS[]
Explanation
2-51
2 INFORM Explanation
2.2 Control Instruction : INPUT
INPUT
SUBSET STANDARD EXPANDED
Function
Displays the value input window accordance with the specified variable.
Syntax
Explanation
2-52
2 INFORM Explanation
2.2 Control Instruction : INPUT
Example
2-53
2 INFORM Explanation
2.2 Control Instruction : ADVINIT
ADVINIT
SUBSET STANDARD EXPANDED
Function
When the same variable is used for multiple systems in the optional
independent control function, ADVINIT controls the timing to change the
variable data among the systems.
ADVINIT is an instruction used to control YRC1000micro internal
processing, therefore, executing this instruction does not affect the job.
Syntax
A DV I N I T END
2-54
2 INFORM Explanation
2.2 Control Instruction : ADVSTOP
ADVSTOP
SUBSET STANDARD EXPANDED
Function
When the same variable is used for multiple systems in the optional
independent control function, ADVSTOP controls the access timing of the
variable data among the systems.
ADVSTOP is an instruction used to control YRC1000micro internal
processing, therefore, executing this instruction does not affect the job.
Syntax
A DV STO P EN D
2-55
2 INFORM Explanation
2.2 Control Instruction : PRINT
PRINT
SUBSET STANDARD EXPANDED
Function
Shows the specified character string and variable on the terminal display.
* Terminal display: Select {Main Menu}, {IN/OUT}, then {TERMINAL} to
show it.
If the independent control function is enabled, the page is different for
each task.
Syntax
PRINT END
I/ LI/ I[]
3 Variable No.
/ LI[]
D/ LD/
4 Variable No.
D[]/ LD[]
R/ LR/
5 Variable No.
R[]/ LR[]
S/ LS/
6 Variable No.
S[]/ LS[]
Explanation
2-56
2 INFORM Explanation
2.2 Control Instruction : PRINT
2-57
2 INFORM Explanation
2.2 Control Instruction : PRINT
Example
2-58
2 INFORM Explanation
2.2 Control Instruction : PRINT
2-59
2 INFORM Explanation
2.2 Control Instruction : CLS
CLS
SUBSET STANDARD EXPANDED
Function
Syntax
CLS EN D
Example
(1) CLS
Deletes the character string shown on the terminal display.
2-60
2 INFORM Explanation
2.2 Control Instruction : ABORT
ABORT
SUBSET STANDARD EXPANDED
Function
Syntax
ABORT EN D
1 IF
2 IFEXPRESS
Explanation
1. IF/EXPRESS
Example
(1) ABORT
Stops the playback of job, and displays the message “Robot is
stopped by execution ABORT command.”
(2) ABORT IF B000=1
Stops the playback of job when B000 is 1, and displays the mes-
sage “Robot is stopped by execution ABORT command.”
2-61
2 INFORM Explanation
2.2 Control Instruction : SETUALM
SETUALM
SUBSET STANDARD EXPANDED
Function
Generates an alarm with any given number, name and sub code.
Syntax
SETULAM 1 Constant A
Explanation
1. Alarm Code
2-62
2 INFORM Explanation
2.2 Control Instruction : SETUALM
2. Alarm Name
3. Subcode
Example
2-63
2 INFORM Explanation
2.2 Control Instruction : DIALOG
DIALOG
SUBSET STANDARD EXPANDED PARAMETER
Function
Syntax
B/
DIALOG 1 Variable number 2 DIALSB A
B[]
A END
3 DIALSB
4 DIALSB
5 DIALSB
6 DIALSB
Explanation
Select the first, second, third, fourth, and fifth button to store 1, 2, 3, 4, and
5 in the specified B variable respectively.
Make sure to add the following tag.
Make sure to add the following tag for the first DIALSB in the DIALOG
instruction.
2-64
2 INFORM Explanation
2.2 Control Instruction : DIALOG
2. DIALSB (First)
Example
2-65
2 INFORM Explanation
2.2 Control Instruction : DIALOG
(1) DIALOG B000 DIALSB B001 B002 S000 B003 B004 S001
Shows the message of S000 at coordinates (B001, B002), and
shows the button with the name of S001 at coordinates (B003,
B004).
When the button is clicked, the result is stored in B000.
(2) DIALOG B000 DIALSB B001 B002 S000 B003 B004 S001
DIALSB B005 B006 S002 B007 B008 S003
Shows the message of S000 at coordinates (B001, B002), and
shows the button with the name of S001 at coordinates (B003,
B004).
Shows the message of S002 at coordinates (B005, B006), and
shows the button with the name of S003 at coordinates (B007,
B008).
When the button is clicked, the result is stored in B000.
(With B1, 1 is stored. With B2, 2 is stored.)
2-66
2 INFORM Explanation
2.2 Control Instruction : DIALOG
(3) DIALOG B000 DIALSB B001 B002 S000 B003 B004 S001
DIALSB B005 B006 S002 B007 B008 S003
DIALSB B009 B010 S004 B011 B012 S005
DIALSB B013 B014 S006 B015 B016 S007
DIALSB B017 B018 S008 B019 B020 S009
Shows the message of S000 at coordinates (B001, B002), and
shows the button with the name of S001 at coordinates (B003,
B004).
Shows the message of S002 at coordinates (B005, B006), and
shows the button with the name of S003 at coordinates (B007,
B008).
Shows the message of S004 at coordinates (B009, B010), and
shows the button with the name of S005 at coordinates (B011,
B012).
Shows the message of S006 at coordinates (B013, B014), and
shows the button with the name of S007 at coordinates (B015,
B016).
Shows the message of S008 at coordinates (B017, B018), and
shows the button with the name of S009 at coordinates (B019,
B020).
When the button is clicked, the result is stored in B000.
(1, 2, 3, 4, and 5 is stored with B1, B2, B3, B4, and B5, respec-
tively.)
2-67
2 INFORM Explanation
2.2 Control Instruction : SWITCH
SWITCH
SUBSET STANDARD EXPANDED
Function
This instruction refers to the specified variable, and determines the next
instruction to perform.
Combining the CASE instruction or the DEFAULT instruction enables to
branch the more than three directions.
This instruction is a structured language.
Syntax
START
variable= No
expresstionlist?
Yes
statements
END
2-68
2 INFORM Explanation
2.2 Control Instruction : CASE
CASE
SUBSET STANDARD EXPANDED
Function
This instruction adds a branch of the next instruction for the SWITCH
instruction.
This instruction can be registered between SWITCH and ENDSWITCH.
The multiple CASE instructions can be registered within range.
This instruction is a structured language.
Syntax
2-69
2 INFORM Explanation
2.2 Control Instruction : CASE
START
variable= No
expresstionlist?
Yes variable= No
expresstionlist-n?
Yes
statements statements-n
END
2-70
2 INFORM Explanation
2.2 Control Instruction : DEFAULT
DEFAULT
SUBSET STANDARD EXPANDED
Function
Syntax
2-71
2 INFORM Explanation
2.2 Control Instruction : DEFAULT
START
variable= No
expresstionlist?
Yes variable= No
expresstionlist-n?
Yes
statements statements-n statements-default
END
2-72
2 INFORM Explanation
2.2 Control Instruction : WHILE
WHILE
SUBSET STANDARD EXPANDED
Function
Syntax
WHILE (condition)
[statements]
ENDWHILE
START
condition No
=TRUE?
Yes
statements
END
2-73
2 INFORM Explanation
2.2 Control Instruction : FOR
FOR
SUBSET STANDARD EXPANDED
Function
Syntax
START
counter = start
No
counter <= end?
Yes
statements
counter =
counter + stepcount END
2-74
2 INFORM Explanation
2.2 Control Instruction : IFTHEN
IFTHEN
SUBSET STANDARD EXPANDED
Function
Syntax
IF (condition)THEN
[statements]
ENDIF
START
condition No
= TRUE
Yes
statements
END
2-75
2 INFORM Explanation
2.2 Control Instruction : ELSEIF
ELSEIF
SUBSET STANDARD EXPANDED
Function
Syntax
IF (condition)THEN
[statements]
ELSEIF(condition-elseif)THEN
[statements-elseif]
ENDIF
2-76
2 INFORM Explanation
2.2 Control Instruction : ELSEIF
START
condition No
= TRUE?
Yes
condition-elseif No
= TRUE?
Yes
statements statements-elseif
END
2-77
2 INFORM Explanation
2.2 Control Instruction : ELSE
ELSE
SUBSET STANDARD EXPANDED
Function
Syntax
IF (condition)THEN
[statements]
ELSEIF(condition-elseif)THEN
[statements-elseif]
ELSE
[statements-else]
ENDIF
2-78
2 INFORM Explanation
2.2 Control Instruction : ELSE
START
condition No
= TRUE?
Yes
condition-elseif No
= TRUE?
Yes
statements statements-elseif statements-else
END
2-79
2 INFORM Explanation
2.2 Control Instruction : SETTM
SETTM
SUBSET STANDARD EXPANDED
Function
Syntax
3 TSTOP
4 TRESET
D/LD
5 D[]/LD[]
Constant
Variable
6 TM
Number
Explanation
1. TM variable number
Add the following tag.
1 TM variable number Specify the TM variable number for the measurement Number: 0 to 59
time writing.
2-80
2 INFORM Explanation
2.2 Control Instruction : SETTM
5 D Variable number / Specify the time measurement by the integer type Number: -2147483648
LD Variable number variable. to 2147483647
/
D [Arrangement
number]/
LD [Arrangement
number]/
[Constant]
Example
2-81
2 INFORM Explanation
2.3 Operating Instruction : CLEAR
CLEAR
SUBSET STANDARD EXPANDED
Function
In Data 1, the variable content from the specified number on, is cleared to
0 only by the amount specified in Data 2.
Syntax
14 ALL
I/LI/I[]
2 /LI[]
Variable No.
D/LD/D[]/
3 LD[]
Variable No.
R/LR/R[]/
4 LR[]
Variable No.
5 STACK
6 QUE
7 MPF
12 $ERRNO
2-82
2 INFORM Explanation
2.3 Operating Instruction : CLEAR
Explanation
2-83
2 INFORM Explanation
2.3 Operating Instruction : CLEAR
The stack has twelve stack levels in total (the stack level 12) and stores the called position.
Job call
Job A
Job call
Job B
Job call
Job C
Return
Job call
Job D
Return
Return
2-84
2 INFORM Explanation
2.3 Operating Instruction : CLEAR
Example
END
JUMP JOB:4
END
JOB:2
Cleared Cleared all
JOB:1 JOB:1 JOB:1
2-85
2 INFORM Explanation
2.3 Operating Instruction : INC
INC
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
INC 1 LB[]
Variable No. END
I/LI/
2 I[]/LI[]
Variable No.
D/LD/D[]/
3 LD[]
Variable No.
Explanation
2-86
2 INFORM Explanation
2.3 Operating Instruction : INC
Example
(1) NOP
SET B000 200
*1
MOVJ VJ=100.00 1 is repeatedly added to B000
MOVJ VJ=50.00 until it reaches 200.
2-87
2 INFORM Explanation
2.3 Operating Instruction : DEC
DEC
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
DEC 1 LB[]
Variable No. END
I/LI/I[]
2 /LI[]
Variable No.
D/LD/D[]/
3 LD[]
Variable No.
Explanation
2-88
2 INFORM Explanation
2.3 Operating Instruction : DEC
Example
(1) NOP
SET B000 200
*1
MOVJ VJ=100.00 1 is repeatedly subtracted
MOVJ VJ=50.00 from B000 until it reaches 0.
2-89
2 INFORM Explanation
2.3 Operating Instruction : SET
SET
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
SET 1 LB[]
Variable No. A B END
I/LI/
2 I[]/LI[]
Variable No. C D
D/LD/D[]/
3 LD[]
Variable No. E F
R/LR/R[]/
4 LR[]
Variable No. G H
S/LS/S[]/
5 LS[]
Variable No. I J
P/LP/P[]/ P/LP/P[]/
5
6 LP[]
Variable No. 39 LP[]
Variable No.
BP/LBP/ BP/LBP/
6
7 BP[]/ Variable No. 40 BP[]/ Variable No.
LBP[] LBP[]
EX/LEX/ EX/LEX/
7
8 EX[]/ Variable No. 41 EX[]/ Variable No.
LEX[] LEX[]
User group
10 OGU# ( output No.
)
12 FL Variable No.
2-90
2 INFORM Explanation
2.3 Operating Instruction : SET
B/LB/B[]/ B/LB/B[]/
14 LB[]
Variable No. 20 LB[]
Variable No.
I/LI/I[] I/LI/I[]
15 /LI[]
Variable No. 21 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
16 LD[]
Variable No. 22 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
17 LR[]
Variable No. 23 LR[]
Variable No.
18 Expression 24 Expression
Double-precision Real-number
E 25 type constant
F G 31 type constant
H
B/LB/B[]/ B/LB/B[]/
26 LB[]
Variable No. 32 LB[]
Variable No.
I/LI/I[] I/LI/I[]
27 /LI[]
Variable No. 33 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
28 LD[]
Variable No. 34 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
29 LR[]
Variable No. 35 LR[]
Variable No.
30 Expression 36 Expression
Character type
I 37 constant
J
S/LS/S[]/
38 LS[]
Variable No.
2-91
2 INFORM Explanation
2.3 Operating Instruction : SET
Explanation
2-92
2 INFORM Explanation
2.3 Operating Instruction : SET
14 B Variable number/ Specify the number of the byte type variable. < Data 2>
LB Variable number/
B [Array number]/
LB [Array number]
15 I Variable number/ Specify the number of the integer type variable. < Data 2>
LI Variable number/
I [Array number]/
LI [Array number]
16 D Variable number/ Specify the number of the double precision type < Data 2>
LD Variable number/ variable.
D [Array number]/
LD [Array number]
17 R Variable number/ Specify the number of the real type variable. < Data 2>
LR Variable number/
R [Array number]/
LR [Array number]
18 Expression Specify the expression. <Data 2>
For details of setting the
expression, refer to
chapter 1.4
“Registration of
Expression” .
2-93
2 INFORM Explanation
2.3 Operating Instruction : SET
20 B Variable number/ Specify the number of the byte type variable. < Data 2>
LB Variable number/
B [Array number]/
LB [Array number]
21 I Variable number/ Specify the number of the integer type variable. < Data 2>
LI Variable number/
I [Array number]/
LI [Array number]
22 D Variable number/ Specify the number of the double precision type < Data 2>
LD Variable number/ variable.
D [Array number]/
LD [Array number]
23 R Variable number/ Specify the number of the real type variable. < Data 2>
LR Variable number/
R [Array number]/
LR [Array number]
24 Expression Specify the expression. <Data 2>
For details of setting the
expression, refer to
chapter 1.4
“Registration of
Expression” .
2-94
2 INFORM Explanation
2.3 Operating Instruction : SET
2-95
2 INFORM Explanation
2.3 Operating Instruction : SET
32 B Variable number/ Specify the number of the byte type variable. < Data2>
LB Variable number/
B [Array number]/
LB [Array number]
33 I Variable number/ Specify the number of the integer type variable. < Data 2>
LI Variable numb er/
I [Array number]/
LI [Array number]
34 D Variable number/ Specify the number of the double precision type < Data 2>
LD Variable number/ variable.
D [Array number]/
LD [Array number]
35 R Variable number/ Specify the number of the real type variable. < Data 2>
LR Variable number/
R [Array number]/
LR [Array number]
36 Expression Specify the expression. <Data 2>
For details of setting the
expression, refer to
chapter 1.4
“Registration of
Expression” .
2-96
2 INFORM Explanation
2.3 Operating Instruction : SET
10. Expression
When OG# (output group number) or OGU# (user group output number)
is selected from the table in part 1 of this Explanation, the following tag
must be added.
2-97
2 INFORM Explanation
2.3 Operating Instruction : SET
11. LOGICEXP
Example
2-98
2 INFORM Explanation
2.3 Operating Instruction : ADD
ADD
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
ADD 1 LB[]
Variable No. A B END
I/LI/I[]
2 /LI[]
Variable No. C D
D/LD/D[]/
3 LD[]
Variable No. E F
R/LR/R[]/
4 LR[]
Variable No. G H
P/LP/P[]/ P/LP/P[]/
5 LP[]
Variable No. 28 LP[]
Variable No.
BP/LBP/ BP/LBP/
6 BP[]/ Variable No. 29 BP[]/ Variable No.
LBP[] LBP[]
EX/LEX/ EX/LEX/
7 EX[]/ Variable No. 30 EX[]/ Variable No.
LEX[] LEX[]
2-99
2 INFORM Explanation
2.3 Operating Instruction : ADD
B/LB/B[]/ B/LB/B[]/
9 LB[]
Variable No. 14 LB[]
Variable No.
I/LI/I[] I/LI/I[]
10 /LI[]
Variable No. 15 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
11 LD[]
Variable No. 16 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
12 LR[]
Variable No. 17 LR[]
Variable No.
Double-precision Real-number
E 18 type constant
F G 23 type constant
H
B/LB/B[]/ B/LB/B[]/
19 LB[]
Variable No. 24 LB[]
Variable No.
I/LI/I[] I/LI/I[]
20 /LI[]
Variable No. 25 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
21 LD[]
Variable No. 26 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
22 LR[]
Variable No. 27 LR[]
Variable No.
2-100
2 INFORM Explanation
2.3 Operating Instruction : ADD
Explanation
2-101
2 INFORM Explanation
2.3 Operating Instruction : ADD
2-102
2 INFORM Explanation
2.3 Operating Instruction : ADD
2-103
2 INFORM Explanation
2.3 Operating Instruction : ADD
2-104
2 INFORM Explanation
2.3 Operating Instruction : ADD
Example
2-105
2 INFORM Explanation
2.3 Operating Instruction : SUB
SUB
SUBSET STANDARD EXPANDED
Function
Subtracts Data 2 from Data 1, and stores the result in Data 1.
Syntax
B/LB/B[]/
SUB 1 LB[]
Variable No. A B END
I/LI/I[]
2 /LI[]
Variable No. C D
D/LD/D[]/
3 LD[]
Variable No. E F
R/LR/R[]/
4 LR[]
Variable No. G H
P/LP/P[]/ P/LP/P[]/
5 LP[]
Variable No. 28 LP[]
Variable No.
BP/LBP/ BP/LBP/
6 BP[]/ Variable No. 29 BP[]/ Variable No.
LBP[] LBP[]
EX/LEX/ EX/LEX/
7 EX[]/ Variable No. 30 EX[]/ Variable No.
LEX[] LEX[]
2-106
2 INFORM Explanation
2.3 Operating Instruction : SUB
B/LB/B[]/ B/LB/B[]/
9 LB[]
Variable No. 14 LB[]
Variable No.
I/LI/I[] I/LI/I[]
10 /LI[]
Variable No. 15 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
11 LD[]
Variable No. 16 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
12 LR[]
Variable No. 17 LR[]
Variable No.
Double-precision Real-number
E 18 type constant
F G 23 type constant
H
B/LB/B[]/ B/LB/B[]/
19 LB[]
Variable No. 24 LB[]
Variable No.
I/LI/I[] I/LI/I[]
20 /LI[]
Variable No. 25 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
21 LD[]
Variable No. 26 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
22 LR[]
Variable No. 27 LR[]
Variable No.
2-107
2 INFORM Explanation
2.3 Operating Instruction : SUB
Explanation
2-108
2 INFORM Explanation
2.3 Operating Instruction : SUB
2-109
2 INFORM Explanation
2.3 Operating Instruction : SUB
2-110
2 INFORM Explanation
2.3 Operating Instruction : SUB
2-111
2 INFORM Explanation
2.3 Operating Instruction : SUB
Example
2-112
2 INFORM Explanation
2.3 Operating Instruction : MUL
MUL
SUBSET STANDARD EXPANDED
Function
Multiplies Data 1 by Data 2, and stores the result in Data 1.
Syntax
B/LB/B[]/
MUL 1 LB[]
Variable No. A B END
I/LI/I[]
2 /LI[]
Variable No. C D
D/LD/D[]/
3 LD[]
Variable No. E F
R/LR/R[]/
4 LR[]
Variable No. G H
P/LP/P[]/
5 LP[]
Variable No. I J
BP/LBP/
6 BP[]/ Variable No.
LBP[]
EX/LEX/
7 EX[]/ Variable No.
LEX[]
2-113
2 INFORM Explanation
2.3 Operating Instruction : MUL
B/LB/B[]/ B/LB/B[]/
9 LB[]
Variable No. 14 LB[]
Variable No.
I/LI/I[] I/LI/I[]
10 /LI[]
Variable No. 15 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
11 LD[]
Variable No. 16 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
12 LR[]
Variable No. 17 LR[]
Variable No.
Double-precision Real-number
E 18 type constant
F G 23 type constant
H
B/LB/B[]/ B/LB/B[]/
19 LB[]
Variable No. 24 LB[]
Variable No.
I/LI/I[] I/LI/I[]
20 /LI[]
Variable No. 25 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
21 LD[]
Variable No. 26 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
22 LR[]
Variable No. 27 LR[]
Variable No.
D/LD/D[]/
I 29 LD[]
Variable No. J
28 ( Element No. )
Double-precision
30 type constant
2-114
2 INFORM Explanation
2.3 Operating Instruction : MUL
Explanation
2-115
2 INFORM Explanation
2.3 Operating Instruction : MUL
2-116
2 INFORM Explanation
2.3 Operating Instruction : MUL
2-117
2 INFORM Explanation
2.3 Operating Instruction : MUL
6. (Element number)
2-118
2 INFORM Explanation
2.3 Operating Instruction : MUL
Example
2-119
2 INFORM Explanation
2.3 Operating Instruction : DIV
DIV
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
DIV 1 LB[]
Variable No. A B END
I/LI/I[]
2 /LI[]
Variable No. C D
D/LD/D[]/
3 LD[]
Variable No. E F
R/LR/R[]/
4 LR[]
Variable No. G H
P/LP/P[]/
5 LP[]
Variable No. I J
BP/LBP/
6 BP[]/ Variable No.
LBP[]
EX/LEX/
7 EX[]/ Variable No.
LEX[]
2-120
2 INFORM Explanation
2.3 Operating Instruction : DIV
B/LB/B[]/ B/LB/B[]/
9 LB[]
Variable No. 14 LB[]
Variable No.
I/LI/I[] I/LI/I[]
10 /LI[]
Variable No. 15 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
11 LD[]
Variable No. 16 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
12 LR[]
Variable No. 17 LR[]
Variable No.
Double-precision Real-number
E 18 type constant
F G 23 type constant
H
B/LB/B[]/ B/LB/B[]/
19 LB[]
Variable No. 24 LB[]
Variable No.
I/LI/I[] I/LI/I[]
20 /LI[]
Variable No. 25 /LI[]
Variable No.
D/LD/D[]/ D/LD/D[]/
21 LD[]
Variable No. 26 LD[]
Variable No.
R/LR/R[]/ R/LR/R[]/
22 LR[]
Variable No. 27 LR[]
Variable No.
D/LD/D[]/
I 29 LD[]
Variable No. J
28 ( Element No. )
Double-precision
30 type constant
2-121
2 INFORM Explanation
2.3 Operating Instruction : DIV
Explanation
2-122
2 INFORM Explanation
2.3 Operating Instruction : DIV
2-123
2 INFORM Explanation
2.3 Operating Instruction : DIV
2-124
2 INFORM Explanation
2.3 Operating Instruction : DIV
6. (Element number)
2-125
2 INFORM Explanation
2.3 Operating Instruction : DIV
Example
2-126
2 INFORM Explanation
2.3 Operating Instruction : CNVRT
CNVRT
SUBSET STANDARD EXPANDED
Function
Converts the pulse type position type variable of Data 2 to the XYZ type
position type variable in the specified coordinate system, and stores the
result in Data 1.
Syntax
PX/PX[] PX/PX[]
CNVRT 1 /LPX Variable No. 2 /LPX Variable No. A
/LPX[] /LPX[]
A 3 BF END
5 TF
User
6 UF# ( )
coordinate No.
7 MTF
Explanation
2-127
2 INFORM Explanation
2.3 Operating Instruction : CNVRT
2-128
2 INFORM Explanation
2.3 Operating Instruction : CNVRT
Example
For the job R1, the pulse type position data of P001 is converted to
the XYZ type position data in the base coordinate system and
stores the converted data in P000.
2-129
2 INFORM Explanation
2.3 Operating Instruction : AND
AND
SUBSET STANDARD EXPANDED
Function
Carries out logical multiplication of Data 1 and Data 2, and stores the
result in Data 1.
Syntax
B/LB/B[]/ B/LB/B[]/
AND 1 LB[]
Variable No. 2 LB[]
Variable No. END
Byte type
3 constant
Explanation
2-130
2 INFORM Explanation
2.3 Operating Instruction : AND
Example
2-131
2 INFORM Explanation
2.3 Operating Instruction : OR
OR
SUBSET STANDARD EXPANDED
Function
Carries out the logical sum of Data 1 and Data 2, and stores the result in
Data 1.
Syntax
B/LB/B[]/ B/LB/B[]/
OR 1 LB[]
Variable No. 2 LB[]
Variable No. END
Byte type
3 constant
Explanation
2-132
2 INFORM Explanation
2.3 Operating Instruction : OR
Example
Carries out the logical sum of B000 (0000 0101) and B010 (0000
1010), and stores the result (0000 1111=15) in B000.
2-133
2 INFORM Explanation
2.3 Operating Instruction : NOT
NOT
SUBSET STANDARD EXPANDED
Function
Carries out the logical negation of Data 2, and stores the result in Data 1.
Syntax
B/LB/B[]/ B/LB/B[]/
NOT 1 LB[]
Variable No. 2 LB[]
Variable No. END
Byte type
3 constant
Explanation
2-134
2 INFORM Explanation
2.3 Operating Instruction : NOT
Example
(1) SET B000 0
SET B010 1
NOT B000 B010
Carries out the logical negation of B010 (0000 0001), and stores
the result (1111 1110=254) in B000.
2-135
2 INFORM Explanation
2.3 Operating Instruction : XOR
XOR
SUBSET STANDARD EXPANDED
Function
Carries out the logical exclusive OR of Data 1 and Data 2, and stores the
result in Data 1.
Syntax
B/LB/B[]/ B/LB/B[]/
XOR 1 LB[]
Variable No. 2 LB[]
Variable No. END
Byte type
3 constant
Explanation
2-136
2 INFORM Explanation
2.3 Operating Instruction : XOR
Example
Carries out the exclusive OR of B000 (0000 0001) and B010 (0000
0101), and stores the result (0000 0100=4) in B000.
2-137
2 INFORM Explanation
2.3 Operating Instruction : MFRAME
MFRAME
SUBSET STANDARD EXPANDED
Function
By using this instruction, the user coordinates are generated from the
position data in either of the following two methods.
• Method 1: Generating the user coordinates from three position data:
Data 1, Data 2 and Data 3.
• Data 1 shows the position data of the defined point ORG
• Data 2 shows the position data of the defined point XX
• Data 3 shows the position data of the defined point XY
• Method 2: Generating the user coordinates from Data 4 which is one
position data by directly specifying the position of the user
coordinates in Data 4 in either of the following two
methods.
• Specifying the position in the base coordinate system.
• Specifying the position in the user coordinates.
Syntax
User END
MFRAME 1 UF# ( ) A B
coordinate No.
C D
P/LP/
2 Variable No.
P[]/LP[]
P/LP/
C 6 Variable No. E
P[]/LP[]
BP/LBP
7 /BP[] Variable No.
/LBP[]
E 8 BF D
9 UUF# ( User
coordinate No. )
2-138
2 INFORM Explanation
2.3 Operating Instruction : MFRAME
Explanation
2-139
2 INFORM Explanation
2.3 Operating Instruction : MFRAME
2-140
2 INFORM Explanation
2.3 Operating Instruction : MFRAME
Example
For the job R1, the user coordinate number 1 is created according
to three types of position data; P000, P001, and P002 of the user
coordinate system.
2-141
2 INFORM Explanation
2.3 Operating Instruction : SETE
SETE
SUBSET STANDARD EXPANDED
Function
Syntax
2-142
2 INFORM Explanation
2.3 Operating Instruction : SETE
Explanation
2-143
2 INFORM Explanation
2.3 Operating Instruction : SETE
Example
2-144
2 INFORM Explanation
2.3 Operating Instruction : GETE
GETE
SUBSET STANDARD EXPANDED
Function
Syntax
D/LD/D[]/ P/LP/P[]/
GETE 1 LD[]
Variable No. 2 LP[]
Variable No. A
BP/LBP/
3 BP[]/ Variable No.
LBP[]
EX/LEX/
4 EX[]/ Variable No.
LEX[]
Explanation
2-145
2 INFORM Explanation
2.3 Operating Instruction : GETE
3. (Element number)
Example
2-146
2 INFORM Explanation
2.3 Operating Instruction : GETS
GETS
SUBSET STANDARD EXPANDED
Function
Syntax
8 $RV
10 $RV
12 $EERNO
13 $RV
15 $RV
PX/PX[]
5 /LPX Variable No. 16 $PX/$PX[] Variable No.
/LPX[]
S/LS/
6 Variable No. 17 $RV
S[]/LS[]
2-147
2 INFORM Explanation
2.3 Operating Instruction : GETS
Explanation
2-148
2 INFORM Explanation
2.3 Operating Instruction : GETS
System variable
SUPPLE
-MENT
The system variables are written by the controller system and can be referred only by a
GETS instruction. The following system variables are available.
System
Type No. Explanation
Variable
$B type
Byte type $B001 Execution series number (0 to 17)
variable
Detected /Not detected by the optional SRCH/
$B002 NSRCH instruction
0: Not detected, 1: Detected
Expanded
$PX type
position $PX000 Current value (pulse type)
variable
type
Continued
2-149
2 INFORM Explanation
2.3 Operating Instruction : GETS
Continued
SUPPLE
-MENT
System
Type No. Explanation
Variable
Expanded
$PX type Current position excluding the shift amount and
position $PX007
variable profiling amount (XYZ type)
type
$PX100
RIN#(1)’s detected position by the optional NSRCH
to
instruction (pulse type)
$PX149
$PX150
RIN#(1)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX199
$PX200
RIN#(2)’s detected position by the optional NSRCH
to
instruction (pulse type)
$PX249
$PX250
RIN#(2)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX299
$PX300
RIN#(3)’s detected position by the optional NSRCH
to
instruction (pulse type)
$PX349
$PX350
RIN#(3)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX399
Continued
2-150
2 INFORM Explanation
2.3 Operating Instruction : GETS
Continued
SUPPLE
-MENT
System
Type No. Explanation
Variable
Expanded $PX400
$PX type RIN#(4)’s detected position by the optional NSRCH
position to
variable instruction (pulse type)
type $PX449
$PX450
RIN#(4)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX499
$PX500
RIN#(5)’s detected position by the optional NSRCH
to
instruction (pulse type)
$PX549
$PX550
RIN#(5)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX599
$PX600
RIN#(6)’s detected position by the optional NSRCH
to
instruction (pulse type)
$PX649
$PX650
RIN#(6)’s detected position by the optional NSRCH
to
instruction (XYZ type)
$PX699
2-151
2 INFORM Explanation
2.3 Operating Instruction : GETS
2-152
2 INFORM Explanation
2.3 Operating Instruction : GETS
7. $RV
Example
For the job R1, the pulse type current value is stored in P000.
2-153
2 INFORM Explanation
2.3 Operating Instruction : SQRT
SQRT
SUBSET STANDARD EXPANDED
Function
Calculates the square root of Data 2, and stores the result in Data 1.
Syntax
R/LR/R[]/ R/LR/R[]/
SQRT 1 LR[]
Variable No. 2 LR[]
Variable No. END
Real-number
3 type constant
Explanation
2-154
2 INFORM Explanation
2.3 Operating Instruction : SQRT
Example
2-155
2 INFORM Explanation
2.3 Operating Instruction : SIN
SIN
SUBSET STANDARD EXPANDED
Function
Calculates the sine of Data 2(Units: deg), and stores the result in Data 1.
Syntax
R/LR/R[]/ R/LR/R[]/
SIN 1 LR[]
Variable No. 2 LR[]
Variable No. END
Real-number
3 type constant
Explanation
2-156
2 INFORM Explanation
2.3 Operating Instruction : SIN
Example
2-157
2 INFORM Explanation
2.3 Operating Instruction : COS
COS
SUBSET STANDARD EXPANDED
Function
Calculates the cosine of Data 2(Units: deg), and stores the result in Data
1.
Syntax
R/LR/R[]/ R/LR/R[]/
COS 1 LR[]
Variable No. 2 LR[]
Variable No. END
Real-number
3 type constant
Explanation
2-158
2 INFORM Explanation
2.3 Operating Instruction : COS
Example
2-159
2 INFORM Explanation
2.3 Operating Instruction : ATAN
ATAN
SUBSET STANDARD EXPANDED
Function
Calculates the arc tangent of Data 2(Units: deg), and stores the result in
Data 1.
Syntax
R/LR/R[]/ R/LR/R[]/
ATAN 1 LR[]
Variable No. 2 LR[]
Variable No. END
Real-number
3 type constant
Explanation
2-160
2 INFORM Explanation
2.3 Operating Instruction : ATAN
Example
2-161
2 INFORM Explanation
2.3 Operating Instruction : MULMAT
MULMAT
SUBSET STANDARD EXPANDED
Function
Calculates the matrix multiplication of Data 2 and Data 3, and stores the
result in Data 1.
Syntax
P/LP/P[]/ P/LP/P[]/
MULMAT 1 LP[]
Variable No. 2 LP[]
Variable No. A
P/LP/P[]/
A 3 LP[]
Variable No. END
Explanation
2-162
2 INFORM Explanation
2.3 Operating Instruction : MULMAT
Example
2-163
2 INFORM Explanation
2.3 Operating Instruction : INVMAT
INVMAT
SUBSET STANDARD EXPANDED
Function
Calculates the inverse matrix of Data 2, and stores the result in Data 1.
Syntax
P/LP/P[]/ P/LP/P[]/
INVMAT 1 LP[]
Variable No. 2 LP[]
Variable No. END
Explanation
Example
2-164
2 INFORM Explanation
2.3 Operating Instruction : GETPOS
GETPOS
SUBSET STANDARD EXPANDED
Function
Syntax
Explanation
Example
In case of R1 job, stores the teaching position data of the first step
in P000.
2-165
2 INFORM Explanation
2.3 Operating Instruction : VAL
VAL
SUBSET STANDARD EXPANDED
Function
Converts the numeric values of the character string (ASCII) in the data2
into the real value, and stores the result in data1.
Syntax
B/LB/ Character
VAL 1 B[]/LB[] Variable No. 5 A
string
S/LS/
6 Variable No.
S[]/LS[]
I/LI/
2 Variable No.
I[]/LI[]
D/LD/
3 Variable No.
D[]/LD[]
R/LR/
4 Variable No.
R[]/LR[]
A EN D
2-166
2 INFORM Explanation
2.3 Operating Instruction : VAL
Explanation
2-167
2 INFORM Explanation
2.3 Operating Instruction : VAL
3. RADIX=radix number
The following tag can be added or omitted
Example
7 is stored in B000.
2-168
2 INFORM Explanation
2.3 Operating Instruction : VAL2STR
VAL2STR
SUBSET STANDARD EXPANDED
Function
The data2 value, which is converted into the character, is stored in the
data1.
Syntax
B/B[]/
S/S[]/ B/B[]/
VAL2STR 1 Variable No. 2 Variable No. EN D
LB/LB[]
LS/LS[] LB/LB[]
I/I[]/
3 Variable No.
LI/LI[]
D/D[]/
4 Variable No.
LD/LD[]
R/R[]/
5 Variable No.
LR/LR[]
2-169
2 INFORM Explanation
2.3 Operating Instruction : VAL2STR
Explanation
Example
2-170
2 INFORM Explanation
2.3 Operating Instruction : ASC
ASC
SUBSET STANDARD EXPANDED
Function
Retrieves the first character code of the character string (ASCII) of the
data2, and stores it in Data 1.
Syntax
B/LB/
B/B[]/
ASC 1 Variable No. 2 Character string EN D
B[]/LB[]
LB/LB[]
S/S[]/
3 LS/LS[] Variable No.
Explanation
2-171
2 INFORM Explanation
2.3 Operating Instruction : ASC
Example
The first character code “A” from the character string “ABC” is
stored in B000.
2-172
2 INFORM Explanation
2.3 Operating Instruction : CHR$
CHR$
SUBSET STANDARD EXPANDED
Function
The character (ASCII), which contains the character code of the data2 is
retrieved, and it is stored in Data 1.
Syntax
B/B[]/
S/S[]/
CHR$ 1 Variable No. 2 Byte type constant EN D
LB/LB[]
LS/LS[]
B/LB/
3 Variable No.
B[]/LB[]
Explanation
2-173
2 INFORM Explanation
2.3 Operating Instruction : CHR$
Example
The letter “A” ,which is the character code 65, is stored in S000.
2-174
2 INFORM Explanation
2.3 Operating Instruction : MID$
MID$
SUBSET STANDARD EXPANDED
Function
Extracts the any length (data 3, 4) of the character string (ASCII) from the
character strings (ASCII) in the data2, and stores the result in Data 1.
Syntax
B/B[]/
S/S[]/
MID$ 1 Variable No. 2 Character string A
LB/LB[]
LS/LS[]
S/LS/
3 Variable No.
S[]/LS[]
B/LB/
5 Variable No.
B[]/LB[]
B/LB/
9 Variable No.
B[]/LB[]
I/LI/
6
I[]/LI[] Variable No.
I/LI/
10 Variable No.
I[]/LI[]
D/LD/
7 Variable No.
D[]/LD[]
D/LD/
11
D[]/LD[] Variable No.
2-175
2 INFORM Explanation
2.3 Operating Instruction : MID$
Explanation
2-176
2 INFORM Explanation
2.3 Operating Instruction : MID$
Example
The three letters “ABC” are extracted from the fourth letter of the
character string “123ABC456” and stored in S000.
2-177
2 INFORM Explanation
2.3 Operating Instruction : LEN
LEN
SUBSET STANDARD EXPANDED
Function
Retrieves the total number of the character string (ASCII) of the data2,
and stores the result in Data 1.
Syntax
B/LB/
B/B[]/
LEN 1 Variable No. 4 Character string EN D
B[]/LB[]
LB/LB[]
I/LI/ S/LS/
2 Variable No. 5 Variable No.
I[]/LI[] S[]/LS[]
D/LD/
3
D[]/LD[]
Variable No.
2-178
2 INFORM Explanation
2.3 Operating Instruction : LEN
Explanation
Example
2-179
2 INFORM Explanation
2.3 Operating Instruction : CAT$
CAT$
SUBSET STANDARD EXPANDED
Function
Combines the character strings (ASCII) from the data2 and the data3, and
stores the result in Data1.
Syntax
S/LS/
B/B[]/ Variable No.
CAT$ 1 A
S[]/LS[]
LB/LB[]
S/LS/ S/LS/
3 Variable No. 5 Variable No.
S[]/LS[] S[]/LS[]
Explanation
2-180
2 INFORM Explanation
2.3 Operating Instruction : CAT$
Example
2-181
2 INFORM Explanation
2.3 Operating Instruction : STRSTR
STRSTR
SUBSET STANDARD EXPANDED
Function
The first position where the same character string as the data2 appears in
the data3 is stored into the data1.
Syntax
B/B[]/ S/S[]/
B/B[]/
STRSTR 1 Variable No. 2 Variable No. A
LB/LB[] LS/LS[]
LB/LB[]
A 3 Character string EN D
S/S[]/ B/B[]/
4 Variable No. 5 Variable No.
LS/LS[] LB/LB[]
Explanation
2-182
2 INFORM Explanation
2.3 Operating Instruction : STRSTR
Example
2-183
2 INFORM Explanation
2.3 Operating Instruction : GETARG
GETARG
SUBSET STANDARD EXPANDED
Function
This is the instruction to receive arguments for the CALL instruction and
macro instruction. When the instruction is executed, the argument data
added to the CALL instruction or macro instruction is retrieved, then
stored in the local variable specified to be used in the CALL job or macro
job.
Syntax
LBP/
7 Variable No.
LBP[]
2-184
2 INFORM Explanation
2.3 Operating Instruction : GETARG
Explanation
Example
NOP NOP
MOVJ VJ=100 GETARG LI000 IARG#(1) Stores the first argument data "8"
WAIT IN#(1)=ON OUT OT#(10) ON in LI000
MOVJ VJ=50 MUL LI000 10
CALL JOB:SEALON (8) WAIT IN#(10)=ON
MOVL V=125 AOUT AO#(1) LI000 Outputs the analog voltage based
: END on the first argument data
2-185
2 INFORM Explanation
2.3 Operating Instruction : GETNAME
GETNAME
SUBSET STANDARD EXPANDED
Function
Syntax
S/S[]/
B/B[]/
GETNAME 1 LS/LS[] Variable No. 2 B/B[] Variable No. EN D
LB/LB[]
2-186
2 INFORM Explanation
2.3 Operating Instruction : GETNAME
Explanation
Example
2-187
2 INFORM Explanation
2.3 Operating Instruction : SETFILE
SETFILE
SUBSET STANDARD EXPANDED
Function
Changes the specified data of the specified condition file to the numeric
data of Data 1.
Specify the data of the condition file to be changed by its element number.
Syntax
Weaving condition
SETFILE 1 WEV# ( file No. ) 3 ( Element No. ) A
Double-precision
A 4 type constant
END
D/LD/D[]/
5 LD[]
Variable No.
Explanation
2-188
2 INFORM Explanation
2.3 Operating Instruction : SETFILE
2. (Element number)
2-189
2 INFORM Explanation
2.3 Operating Instruction : SETFILE
Example
2-190
2 INFORM Explanation
2.3 Operating Instruction : GETFILE
GETFILE
SUBSET STANDARD EXPANDED
Function
Stores the data of the specified condition file in Data 1.
Specify the data of the condition file to be obtained by its element number.
Syntax
Explanation
2-191
2 INFORM Explanation
2.3 Operating Instruction : GETFILE
3. (Element number)
Example
2-192
2 INFORM Explanation
2.3 Operating Instruction : SETREG
SETREG
SUBSET STANDARD EXPANDED
Function
Copies the specified integer type variable data into the register.
Syntax
2 LOW/HIGH
Integer type
4 constant
Explanation
2. LOW/HIGH
The following tag can be added or omitted.
2-193
2 INFORM Explanation
2.3 Operating Instruction : SETREG
2-194
2 INFORM Explanation
2.3 Operating Instruction : GETREG
GETREG
SUBSET STANDARD EXPANDED
Function
Copies the specified register data into the integer type variable.
Syntax
3 LOW/HIGH
Explanation
3. LOW/HIGH
The following tag can be added or omitted.
2-195
2 INFORM Explanation
2.3 Operating Instruction : GETPRM
GETPRM
SUBSET STANDARD EXPANDED
Function
Syntax
4 MAX
5 MIN
Specified control
6 GRPNO= group
Explanation
2-196
2 INFORM Explanation
2.3 Operating Instruction : GETPRM
2. KIND=Parameter type
The following tag must be added.
3. PRMNO=Parameter No.
The following tag must be added.
Example
Stores the soft limit values (+) of the Robot 1to D000.
2-197
2 INFORM Explanation
2.3 Operating Instruction : SETPRM
SETPRM
SUBSET STANDARD EXPANDED
Function
Syntax
Parameter Parameter
SETPRM 1 KIND= 2 PRMNO= A
type No.
D/LD Variable
A 4 END
D[ ]/LD[ ] No.
Specified control
3 GRPNO=
group
Explanation
1. KIND=Parameter type
The following tag must be added.
2-198
2 INFORM Explanation
2.3 Operating Instruction : SETPRM
2. PRMNO=Parameter No.
The following tag must be added.
Example
2-199
2 INFORM Explanation
2.4 Move Instruction : MOVJ
MOVJ
SUBSET STANDARD EXPANDED
Function
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
2 Variable No. C D
LP[]
11 CHK
Station teaching
3 E F
position file No.
EX/LEX
4 /EX[] Variable No.
/LEX[] 12 CHK
A B
Point Variable
7 T
No.
C D
BP/LBP EX/LEX
8 /BP[] Variable No. 9 /EX[] Variable No.
/LBP[] /LEX[]
E F
Point Variable
10 T
No.
2-200
2 INFORM Explanation
2.4 Move Instruction : MOVJ
G H
Positioning
13 VJ= Joint speed (%) 14 PL=
level
H I
Amount of
Amount of the station axis
16 MT=
T axis rotation
17 MTE=
rotation
I J
Acceleration
18 NWAIT 20 UNTIL 22 ACC= adjustment
ratio (%)
19 ENWAIT 21 NSRCH
J 25 +MOVJ END
Deceleration
23 DEC= adjustment 24 TRAP
ratio (%) 26 +MOVL
27 +MOVC
28 +MOVS
2-201
2 INFORM Explanation
2.4 Move Instruction : MOVJ
10 T × × × × × × Optional
11 CHK ×
12 CHK × × × × × ×
13 VJ=
14 PL=
15 SPDL= × Optional
16 MT= × × × Optional
17 MTE= × × × × Optional
18 NWAIT
19 ENWAIT Optional
20 UNTIL
21 NSRCH Optional
22 ACC=
23 DEC=
24 TRAP
25 +MOVJ × × × × × Optional
26 +MOVL × × × × × Optional
27 +MOVC × × × × × Optional
28 +MOVS × × × × × Optional
: Available
: Available only with optional function enabled
×: Not available
2-202
2 INFORM Explanation
2.4 Move Instruction : MOVJ
Explanation
Position Variables
SUPPLE
-MENT
2-203
2 INFORM Explanation
2.4 Move Instruction : MOVJ
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, the following tag can be added or omitted.
2-204
2 INFORM Explanation
2.4 Move Instruction : MOVJ
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, the following tag can be added or omitted.
8. CHK
When a P Variable number, LP Variable number, P [Array number], or LP
[Array number] is selected from the table in part 1 of this Explanation, the
following tag can be added.
9. CHK
When a EX Variable number, LEX Variable number, EX [Array number], or
LEX [Array number] is selected from the table in part 1 of this Explanation,
the following tag can be added.
SUPPLE
For details of the system variables, refer to GETS in
-MENT chapter 2.3 “Operating Instruction”
2-205
2 INFORM Explanation
2.4 Move Instruction : MOVJ
2-206
2 INFORM Explanation
2.4 Move Instruction : MOVJ
Position level
SUPPLE
-MENT
S1CxG33
S1CxG34
Positioning level 1
S1CxG35
Positioning level 2
Positioning level 3
Positioning level 8
S1CxG40
P1
2-207
2 INFORM Explanation
2.4 Move Instruction : MOVJ
14. NWAIT/ENWAIT
2-208
2 INFORM Explanation
2.4 Move Instruction : MOVJ
15. UNTIL/NSRCH
2-209
2 INFORM Explanation
2.4 Move Instruction : MOVJ
Speed Ordinaly
acceleration
ACC=70% Specified
DEC=50% ratio
Time
18. TRAP
2-210
2 INFORM Explanation
2.4 Move Instruction : MOVJ
19. +MOVJ/+MOVL/+MOVC/+MOVS
2-211
2 INFORM Explanation
2.4 Move Instruction : MOVJ
Example
Waiting position
Path
Step 1
2-212
2 INFORM Explanation
2.4 Move Instruction : MOVL
MOVL
SUBSET STANDARD EXPANDED
Function
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
2 Variable No. C D
LP[]
A B
Point variable
5 T
No.
C D
BP/LBP EX/LEX
6 /BP[] Variable No. 7 /EX[] Variable No.
/LBP[] /LEX[]
E F
2-213
2 INFORM Explanation
2.4 Move Instruction : MOVL
F G
Amount of
16 MTE= station axis 17 NWAIT
rotation
18 ENWAIT
G H
Acceleration
19 UNTIL 24 ACC= adjustment
ratio (%)
20 SRCH
21 ASRCH
22 HPSRCH
23 NSRCH
NSRCH
H 27 +MOVJ END
Deceleration
25 DEC= adjustment 26 TRAP
ratio (%) 28 +MOVL
29 +MOVC
30 +MOVS
2-214
2 INFORM Explanation
2.4 Move Instruction : MOVL
8 V=
9 VR=
10 VE= × × × ×
11 VMAX=
12 PL=
13 CR=
14 SPDL= Optional
15 PD=
16 MTE= × × × × Optional
17 NWAIT
18 ENWAIT Optional
19 UNTIL
20 SRCH Optional
21 ASRCH Optional
22 HPSRCH Optional
23 NSRCH Optional
24 ACC=
25 DEC=
26 TRAP
27 +MOVJ × × × × Optional
28 +MOVL × × × × Optional
29 +MOVC × × × × Optional
30 +MOVS × × × × Optional
: Available
: Available only with optional function enabled
×: Not available
2-215
2 INFORM Explanation
2.4 Move Instruction : MOVL
Explanation
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When the robot teaching position file number is selected from the table in
part 1 of this Explanation, the following can be added or omitted.
2-216
2 INFORM Explanation
2.4 Move Instruction : MOVL
2-217
2 INFORM Explanation
2.4 Move Instruction : MOVL
VMAX speed
By using this tag, the speed is specified as the rate with
respect to the maximum speed of each axes.
This tag can be added to MOVL (linear interpolation).
For example, if VMAX=100 is set, the linear interpolation
motion is performed at the TCP speed without exceeding the
maximum speed of each axes.
SUPPLE
-MENT If VMAX=50 is set, the motion is performed at the half speed
of TCP speed when VMAX=100 is set.
Since the speed of each axes is controlled not to exceed the
maximum speed, the TCP speed may not be stable.
Thus, VMAX speed must be used in the case where the
motion with the stable speed is not required for the opera-
tion. If the motion with stable speed is required, use the play
speed V.
2-218
2 INFORM Explanation
2.4 Move Instruction : MOVL
Corner radius
SUPPLE
-MENT The manipulator operates by circular interpolation in which
the corner radius is specified.
Corner radius
2-219
2 INFORM Explanation
2.4 Move Instruction : MOVL
Position distance
When the position distance is specified, the manipulator (at
the feedback position) starts inward turning operation from
the specified point.
Job example
Motion path NOP
(feedback position) :
MOVL
MOVL PD=***
MOVL
:
END
Operation-command path
Position
distance
SUPPLE
-MENT
The relation between the manipulator’s path and the teach-
ing position when the position distance is specified is shown
below.
P2 P3
Position distance
25 mm
Position distance
50 mm
Position distance
100 mm
P1
2-220
2 INFORM Explanation
2.4 Move Instruction : MOVL
10. NWAIT/ENWAIT
The following tag can be added or omitted.
11. UNTIL/SRCH/ASRCH/HPSRCH/NSRCH
One of the tags must be selected from the following table.
21 ASRCH Specify the ASRCH instruction. Available only with the optional
The ASRCH instruction detects input signal’s voltage. general-purpose sensor
function.
For details, refer to general-
purpose sensor function.
22 HPSRCH Specify the HPSRCH instruction.
The HPSRCH instruction detects the position of the
zero-point.
23 NSRCH Specify the NSRCH instruction. Available only with the optional
The NSRCH instruction detects a position without search-in-motion function.
stopping the motion. For details, refer to search-in-
motion function.
2-221
2 INFORM Explanation
2.4 Move Instruction : MOVL
14. TRAP
The following tag can be added or omitted.
15. +MOVJ/+MOVL/+MOVC/+MOVS
One of the tags must be selected from the following table.
2-222
2 INFORM Explanation
2.4 Move Instruction : MOVL
Example
(1) NOP
MOVJ VJ=50.00
MOVJ VJ=25.00
MOVJ VJ=12.50 Step 3
MOVL V=138 Step 4
Moves from Step 3 to Step 4 by the linear interpolation at a rate of
138cm/min.
Waiting position
Step 1
Step 2
Step 3
Step 4
2-223
2 INFORM Explanation
2.4 Move Instruction : MOVC
MOVC
SUBSET STANDARD EXPANDED
Function
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
2 Variable No. C D
LP[]
A B
Point variable
5 T
No.
C D
BP/LBP EX/LEX
6 /BP[] Variable No. 7 /EX[] Variable No.
/LBP[] /LEX[]
E F
Position angular
9 VR= speed (deg/s) 12 SPDL= Speed level
External axis
10 VE=
speed (%)
2-224
2 INFORM Explanation
2.4 Move Instruction : MOVC
F G
Amount of
13 MTE= station axis 14 N W AI T
rotation
15 EN W AI T
G H
Acceleration Deceleration
16 ACC= adjustment 17 DEC= adjustment
ratio (%) ratio (%)
H 21 +MOVJ END
22 +MOVL
23 +MOVC
24 +MOVS
2-225
2 INFORM Explanation
2.4 Move Instruction : MOVC
2-226
2 INFORM Explanation
2.4 Move Instruction : MOVC
Example
When a base teaching position file number is selected from the table in
part 1 of this Explanation, added the following tag.
When a base teaching position file number is selected from the table in
part 1 of this Explanation, added the following tag.
When the robot teaching position file number is selected from the table in
part 1 of this Explanation, the following tag can be added or omitted.
2-227
2 INFORM Explanation
2.4 Move Instruction : MOVC
2-228
2 INFORM Explanation
2.4 Move Instruction : MOVC
10. NWAIT/ENWAIT
2-229
2 INFORM Explanation
2.4 Move Instruction : MOVC
2-230
2 INFORM Explanation
2.4 Move Instruction : MOVC
Example
NOP
MOVL V=138
MOVC V=138 COORD=1 Step 2
MOVC V=138 COORD=1 Step 3
MOVC V=138 COORD=1 Step 4
MOVL V=138
MOVC V=138 COORD=0 Step 6
MOVC V=138 COORD=0 Step 7
MOVC V=138 COORD=0 Step 8
MOVL V=138
END
Step9
Step1
MOVL
MOVL
Step2
MOVC
Step5 Step8
MOVL MOVC Step7
MOVC
Step4
MOVC
Step6
MOVC
2-231
2 INFORM Explanation
2.4 Move Instruction : MOVC
Example
(1) NOP
MOVL V=138
MOVC V=138 Step 2
MOVC V=138 Step 3
MOVC V=138 Step 4
MOVC FPT V=138 Step 5
MOVC V=138 Step 6
MOVC V=138 Step 7
MOVL V=138
END
Step 3
MOVC Step 4
MOVC
Step 5 Step 7
Step 1 MOVC FPT MOVC
MOVL
Step 8
Step 2
MOVL
MOVC
Step 6
MOVC
2-232
2 INFORM Explanation
2.4 Move Instruction : MOVC
15. TRAP
16. +MOVJ/+MOVL/+MOVC/+MOVS
2-233
2 INFORM Explanation
2.4 Move Instruction : MOVS
MOVS
SUBSET STANDARD EXPANDED
Function
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
2 Variable No. C D
LP[]
A B
Point variable
5 T
No.
C D
BP/LBP EX/LEX
6 /BP[] Variable No. 7 /EX[] Variable No.
/LBP[] /LEX[]
E F
Position angular
9 VR= speed (deg/s) 12 SPDL= Speed level
External axis
10 VE=
speed (%)
2-234
2 INFORM Explanation
2.4 Move Instruction : MOVS
F G
Acceleration
13 NWAIT 15 ACC= adjustment
ratio (%)
14 ENWAIT
G 18 +MOVJ END
Deceleration
16 DEC= adjustment 17 TRAP
ratio (%) 19 +MOVL
20 +MOVC
21 +MOVS
2-235
2 INFORM Explanation
2.4 Move Instruction : MOVS
2-236
2 INFORM Explanation
2.4 Move Instruction : MOVS
Explanation
1. Robot teaching position file number /P Variable
number /LP Variable number /P [Array number] /LP
[Array number]
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When a robot teaching position file number is selected from the table in
part 1 of this Explanation, add the following tag.
When the robot teaching position file number is selected from the table in
part 1 of this Explanation, the following tag can be added or omitted.
2-237
2 INFORM Explanation
2.4 Move Instruction : MOVS
2-238
2 INFORM Explanation
2.4 Move Instruction : MOVS
9. NWAIT/ENWAIT
2-239
2 INFORM Explanation
2.4 Move Instruction : MOVS
12. TRAP
2-240
2 INFORM Explanation
2.4 Move Instruction : MOVS
13. +MOVJ/+MOVL/+MOVC/+MOVS
2-241
2 INFORM Explanation
2.4 Move Instruction : MOVS
Example
(1) NOP
MOVL V=138
MOVS V=138 Step 2
MOVS V=138 Step 3
MOVS V=138 Step 4
MOVS V=138 Step 5
MOVS V=138 Step 6
MOVL V=138
END
Step 3
MOVS
Step 4
MOVS Step 6 Step 6
Step 1 Step 2
MOVS MOVL
MOVL MOVS
Step 5
MOVS
2-242
2 INFORM Explanation
2.4 Move Instruction : IMOV
IMOV
SUBSET STANDARD EXPANDED
Function
Moves by linear interpolation from the current position for the specified
incremental value.
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
IMOV 1 Variable No. A
LP[]
BP/LBP
3 /BP[] Variable No.
/LBP[]
EX/LEX
2 /EX[] Variable No. D
/LEX[]
4 VJ= Joint speed (%)
A B
EX/LEX
TCP speed
5 /EX[] Variable No. 6 V= (mm/s)
/LEX[]
Position angular
7 VR= speed (deg/s)
External axis
8 VE=
speed (%)
B C
Positioning
9 PL=
level 10 NWAIT
2-243
2 INFORM Explanation
2.4 Move Instruction : IMOV
C E
11 BF 16 UNTIL
12 RF
17 SRCH
13 TF
User
14 UF# ( ) 18 NSRCH
coordinate No.
15 MTF
E F
Acceleration Deceleration
19 ACC= adjustment 20 DEC= adjustment
ratio (%) ratio (%)
F 22 +IMOV EN D
21 TRAP
2-244
2 INFORM Explanation
2.4 Move Instruction : IMOV
6 V= ×
7 VR= ×
8 VE= × × × × ×
9 PL= ×
10 NWAIT ×
11 BF ×
12 RF ×
13 TF ×
14 UF#() ×
15 MTF × × × × ×
16 UNTIL ×
17 SRCH × Optional
18 NSRCH × Optional
19 ACC=
20 DEC=
21 TRAP
22 +IMOV × × × × × Optional
: Available
: Available only with optional function enabled
×: Not available
2-245
2 INFORM Explanation
2.4 Move Instruction : IMOV
Explanation
3. VJ=Joint speed
2-246
2 INFORM Explanation
2.4 Move Instruction : IMOV
6. PL=Position level
2-247
2 INFORM Explanation
2.4 Move Instruction : IMOV
7. NWAIT
9. UNTIL/SRCH/NSRCH
One of the tags must be selected from the following table.
2-248
2 INFORM Explanation
2.4 Move Instruction : IMOV
12. TRAP
13. +IMOV
Example
2-249
2 INFORM Explanation
2.4 Move Instruction : SPEED
SPEED
SUBSET STANDARD EXPANDED
Function
Sets the playback speed. The manipulator operates at the speed specified
in the SPEED instruction when the speed is not specified in the move
instruction.
Syntax
The tag which can be used is limited by the type of the job.
SPEED A
Control point
1 VJ= Joint speed (%) 2 V=
speed (mm/s)
A END
2-250
2 INFORM Explanation
2.4 Move Instruction : SPEED
Explanation
1. VJ=Joint speed
2-251
2 INFORM Explanation
2.4 Move Instruction : SPEED
Example
(1) NOP
MOVJ VJ=100.00 Moves at the joint speed
MOVL V=138 100.00%.
Moves at the control point
SPEED VJ=50.00 V=276 VR=30.0 speed 138cm/min.
MOVJ Moves at the joint speed
MOVL 50.00%.
Moves at the control point
MOVL VR=60.0 speed 276 cm/min.
Moves at the position angular
END speed 60.0 degree/s.
2-252
2 INFORM Explanation
2.4 Move Instruction : REFP
REFP
SUBSET STANDARD EXPANDED
Function
Syntax
The tag which can be used is limited by the type of the job.
Reference
REFP 1 A B END
point No.
2 RBn
3 STn C D
Robot teaching
A 4 B
position file No.
Base teaching Station teaching
6 position file No. 7 position file No.
P/LP/P[]/
5 Variable No. E F
LP[]
BP/LBP
8 /BP[] Variable No.
/LBP[]
E F
EX/LEX
9 /EX[] Variable No.
/LEX[]
Station teaching
C 10 D
position file No.
EX/LEX
11 /EX[] Variable No.
/LEX[]
2-253
2 INFORM Explanation
2.4 Move Instruction : REFP
2-254
2 INFORM Explanation
2.4 Move Instruction : REFP
: Available
×: Not available
Explanation
2-255
2 INFORM Explanation
2.4 Move Instruction : REFP
REFP1
Wall
REFP1
Wall direction
REFP1 Advanced
direction
REFP2
Wall
REFP2
Wall direction
REFP2
Advanced
direction
Horizontal
direction
2-256
2 INFORM Explanation
2.4 Move Instruction : REFP
2. RBn/STn
When the robot teaching position file number is selected from the table in
part 3 of this Explanation, add the following tag.
When the robot teaching position file number is selected from the table in
part 3 of this Explanation, add the following tag.
2-257
2 INFORM Explanation
2.4 Move Instruction : REFP
2-258
2 INFORM Explanation
2.4 Move Instruction : REFP
Example
Register REFP1 when the wall direction and the Z direction of the robot
axis are different.
MOVL V=138
REFP1
TOOLON
REFP 1
MOVL V=138
(2) Register REFP2 when the approach point is on the other side of
the wall.
Wall
Approach point
REFP2
MOVJ VJ=25.00Approach point
MOVL V=138
TOOLON
REFP 2
MOVL V=138
2-259
2 INFORM Explanation
2.5 Shift Instruction : SFTON
SFTON
SUBSET STANDARD EXPANDED
Function
Begins the parallel shift operation. The amount of the parallel shift is set in
a positional variable by the increment value of X, Y, and Z in each
coordinate system.
Syntax
The tag which can be used is limited by the type of the job.
P/LP/P[]/
SFTON 2 Variable No. A B END
LP[]
1 RBn
BP/LBP
3 /BP[] Variable No.
/LBP[]
EX/LEX
4 /EX[] Variable No.
/LEX[]
A C
BP/LBP EX/LEX
5 /BP[] Variable No. 6 /EX[] Variable No.
/LBP[] /LEX[]
C B
7 BF
8 RF
9 TF
User
10 UF# ( )
coordinate No.
2-260
2 INFORM Explanation
2.5 Shift Instruction : SFTON
5 BP/LBP/BP[]/LBP[] × ● × ● × × ● × ●
6 EX/LEX/EX[]/LEX[]
× × ● ● × × × ● ●
7 BF ● ● ● ● × ● ● ● ●
8 RF ● ● ● ● × ● ● ● ●
9 TF ● ● ● ● × ● ● ● ●
10 UF#() ● ● ● ● × ● ● ● ●
: Available
×: Not available
Explanation
1. RBn
2-261
2 INFORM Explanation
2.5 Shift Instruction : SFTON
2-262
2 INFORM Explanation
2.5 Shift Instruction : SFTON
Example
(1) NOP
MOVJ VJ=50.0
MOVL V=138
Step 2 Step 4 Step 6
SFTON P000 UF#(1)
MOVL V=138 Step 1 Step 3 Step 5
Shifted section
MOVL V=138
MOVL V=138
SFTOF
MOVL V=138
The shift is performed between Step 3 and Step 5 in the user coordinate
system by the amount of the shift which is set in P000.
2-263
2 INFORM Explanation
2.5 Shift Instruction : SFTOF
SFTOF
SUBSET STANDARD EXPANDED
Function
Syntax
The tags to be added are decided according to the type of the job.
SFTOF END
1 RBn
2 ST
2-264
2 INFORM Explanation
2.5 Shift Instruction : SFTOF
Explanation
1. RBn/ST
Example
(1) NOP
MOVJ VJ=50.0
MOVL V=138 Step 2 Step 4 Step 6
SFTON P000 UF#(1)
Step 1 Step 3 Step 5
MOVL V=138
Shifted section
MOVL V=138
MOVL V=138
SFTOF
MOVL V=138
The shift is performed between Step 3 and Step 5 in the user coordinate
system by the amount of the shift which is set in P000.
2-265
2 INFORM Explanation
2.5 Shift Instruction : MSHIFT
MSHIFT
SUBSET STANDARD EXPANDED
Function
Syntax
MSHIFT <Data 1> Coordinate system designation <Data 2> <Data 3>
PX/PX[]
MSHIFT 1 /LPX Variable No. A
/LPX[]
A 2 BF B
3 RF
4 TF
User
5 UF# ( )
coordinate No.
6 MTF
PX/PX[] PX/PX[]
B 7 /LPX Variable No. 8 /LPX Variable No. END
/LPX[] /LPX[]
2-266
2 INFORM Explanation
2.5 Shift Instruction : MSHIFT
Explanation
2-267
2 INFORM Explanation
2.5 Shift Instruction : MSHIFT
Example
2-268
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
IF
SUBSET STANDARD EXPANDED
Function
IF <Comparison element 1> =, <>, <=, >=, <, > <Comparison element 2>
3 FL Variable No.
4 TF Variable No.
8 User group
OGU# ( )
output No.
B/LB/
9 Variable No. G H
B[]/LB[]
I/LI/
10 Variable No. I J
I[]/LI[]
D/LD/
11 Variable No. K L
D[]/LD[]
12 TM Variable No.
R/LR/
13 Variable No. M N
R[]/LR[]
S/LS/
14 Variable No. O P
S[]/LS[]
2-269
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
B/LB/
A 15 = 16 Variable No. B
B[]/LB[]
17 ON/OFF
B/LB/
C 18 = 20 Variable No. D
B[]/LB[]
19 <>
21 Byte type constant
D/LD/
E 22 = 28 Variable No. F
D[]/LD[]
23 <> Double-precision
29
type constant
24 >
25 >=
26 <
27 <=
Double-precision
G 30 = 36 H
type constant
B/LB/
31 <> 37 Variable No.
B[]/LB[]
32 > I/LI/
38 Variable No.
I[]/LI[]
33 >=
D/LD/
39 Variable No.
D[]/LD[]
34 <
R/LR/
40 Variable No.
35 <= R[]/LR[]
41 47 Integer type
I = J
constant
B/LB/
42 <> 48 Variable No.
B[]/LB[]
43 > I/LI/
49 Variable No.
I[]/LI[]
44 >=
D/LD/
50 Variable No.
D[]/LD[]
45 <
R/LR/
51 Variable No.
46 <= R[]/LR[]
2-270
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
Double-precision
K 52 = 58 L
type constant
B/LB/
53 <> 59 Variable No.
B[]/LB[]
54 > I/LI/
60 Variable No.
I[]/LI[]
55 >=
D/LD/
61 Variable No.
D[]/LD[]
56 <
R/LR/
62 Variable No.
57 <= R[]/LR[]
M 63 = 69 Real-type constant N
B/LB/
64 <> 70 Variable No.
B[]/LB[]
65 > I/LI/
71 Variable No.
I[]/LI[]
66 >=
D/LD/
72 Variable No.
D[]/LD[]
67 <
R/LR/
73 Variable No.
68 <= R[]/LR[]
Character-type
O 74 = 80 P
constant
S/LS/
75 <> 81 Variable No.
S[]/LS[]
76 >
77 >=
78 <
79 <=
2-271
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
Explanation
2-272
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
2. =
2-273
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
4. =/<>
2-274
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
6. =/<>/>/>=/</<=
When an IGU# (User group input number) or OGU# (User group output
number) is selected from the table in part 1 of this Explanation, choose
one of the tags from the following table.
When an IGU# (User group input number) or OGU# (User group output
number) is selected from the table in part 1 of this Explanation, one of the
tags in the following table is selected after “=”, ”<>”, “>”, “>=”, “<“or “<=”
which is added from the table in part 6 of this Explanation.
2-275
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
8. =/<>/>/>=/</<=
2-276
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
10. =/<>/>/>=/</<=
2-277
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
12. =/<>/>/>=/</<=
2-278
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
14. =/<>/>/>=/</<=
2-279
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IF
16. =/<>/>/>=/</<=
Example
2-280
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : UNTIL
UNTIL
SUBSET STANDARD EXPANDED
Function
Syntax
B/LB/B[]/
UNTIL 1 IN# ( Input No. ) 2 = 3 LB[]
Variable No. END
4 ON/OFF
Explanation
2. =
2-281
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : UNTIL
Choose one of the tags from the following table after “=” is selected from
the table in part 2 of this Explanation.
Example
The axis moves toward Step 2 until input signal No. 14 is turned
ON. When input signal No. 14 is turned ON, the axis moves
toward Step 3.
Step 3
Step 2
MOVJ VJ=50.00 UNTIL
IN#(14)=ON
2-282
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : ENWAIT
ENWAIT
SUBSET STANDARD EXPANDED Parameter
Function
Syntax
Explanation
1. T=Time/DIS= Distance
2-283
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : ENWAIT
Example
Step 2
MOVL V=136 ENWAIT T=3.000
3 seconds
DOUT OT#(1) ON
2-284
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : DIALSB
DIALSB
SUBSET STANDARD EXPANDED
Function
Specifies the structure of the dialog (the display position of the message
and button) shown by the DIALOG instruction.
* Can be selected only in the DIALOG instruction.
Syntax
B/ LB/ B/ LB/
DIALSB 1 Variable number 2 Variable number A
B[]/ LB[] B[]/ LB[]
S/ LS/
A 3 S[]/ LS[] Variable number B
4 B/ LB/
Variable number C
B[]/ LB[]
B END
Explanation
2-285
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : DIALSB
Make sure to add the following tag for the first DIALSB in the DIALOG
instruction.
For the second and after, the following tag can be added or omitted.
For the second and after, the following tag can be added or omitted.
2-286
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : DIALSB
Make sure to add the following tag for the first DIALSB in the DIALOG
instruction.
For the second and after, the following tag can be added or omitted.
2-287
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : IFEXPRESS
IFEXPRESS
SUBSET STANDARD EXPANDED
Function
Syntax
AND
OR
Explanation
1. Conditional statement
2. AND/OR
Example
2-288
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : FOREXPRESS
FOREXPRESS
SUBSET STANDARD EXPANDED
Function
Syntax
AND
OR
Explanation
1. Conditional statement
2. AND/OR
Example
2-289
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : LOGICEXP
LOGICEXP
SUBSET STANDARD EXPANDED
Function
Syntax
AND
OR
Explanation
1. Conditional statement
2. AND/OR
Example
2-290
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
RELEXPR
SUBSET STANDARD EXPANDED
Function
Syntax
3 FL Variable No.
4 TF Variable No.
7 User group
IGU# ( ) E F
input No.
8 User group
OGU# ( )
output No.
B/LB/
9 Variable No. G H
B[]/LB[]
I/LI/
10 Variable No. I J
I[]/LI[]
D/LD/
11 Variable No. K L
D[]/LD[]
12 TM Variable No.
R/LR/
13 Variable No. M N
R[]/LR[]
S/LS/
14 Variable No. O P
S[]/LS[]
2-291
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
B/LB/
A 15 = 16 Variable No. B
B[]/LB[]
17 ON/OFF
B/LB/
C 18 = 20 Variable No. D
B[]/LB[]
19 <>
21 Byte type constant
D/LD/
E 22 = 28 Variable No. F
D[]/LD[]
25 >=
26 <
27 <=
B/LB/
31 <> 37 Variable No.
B[]/LB[]
32 > I/LI/
38 Variable No.
I[]/LI[]
33 >=
D/LD/
39 Variable No.
D[]/LD[]
34 <
R/LR/
40 Variable No.
35 <= R[]/LR[]
B/LB/
42 <> 48 Variable No.
B[]/LB[]
43 > I/LI/
49 Variable No.
I[]/LI[]
44 >=
D/LD/
50 Variable No.
D[]/LD[]
45 <
R/LR/
51 Variable No.
46 <= R[]/LR[]
2-292
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
Double precison
K 52 = 58 type constant L
B/LB/
53 <> 59 Variable No.
B[]/LB[]
54 > I/LI/
60 Variable No.
I[]/LI[]
55 >=
D/LD/
61 Variable No.
D[]/LD[]
56 <
R/LR/
62 Variable No.
57 <= R[]/LR[]
B/LB/
64 <> 70 Variable No.
B[]/LB[]
65 > I/LI/
71 Variable No.
I[]/LI[]
66 >=
D/LD/
72 Variable No.
D[]/LD[]
67 <
R/LR/
73 Variable No.
68 <= R[]/LR[]
S/LS/
75 <> 81 Variable No.
S[]/LS[]
76 >
77 >=
78 <
79 <=
2-293
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
Explanation
2-294
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
2. =
2-295
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
4. =/<>
2-296
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
6. =/<>/>/>=/</<=
When an IGU# (User group input number) or OGU# (User group output
number) is selected from the table in part 1 of this Explanation, choose
one of the tags from the following table.
When an IGU# (User group input number) or OGU# (User group output
number) is selected from the table in part 1 of this Explanation, one of the
tags in the following table is selected after “=”, ”<>”, “>”, “>=”, “<“or “<=”
which is added from the table in part 6 of this Explanation.
2-297
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
8. =/<>/>/>=/</<=
2-298
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
10. =/<>/>/>=/</<=
2-299
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
12. =/<>/>/>=/</<=
2-300
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
14. =/<>/>/>=/</<=
2-301
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : RELEXPR
16. =/<>/>/>=/</<=
2-302
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : TRAP
TRAP
SUBSET STANDARD EXPANDED
Function
Syntax
Explanation
1. * Label string
Example
2-303
2 INFORM Explanation
2.6 Instruction Which Adheres to an Instruction : TRAP
SFTON P000
STEP1 STEP2
STEP3
2-304
2 INFORM Explanation
2.7 General-purpose Instruction : WVON
WVON
SUBSET STANDARD EXPANDED APPLICATIONS
Function
Syntax
The tags to be added differ depending on the control group in the job.
Weaving condition
WVON 2 WEV# ( ) C
file No.
Weaving single
1 RBn 3 AMP= amplitude (mm)
A B
Weaving
A 4 FREQ= B
frequency (Hz)
Weaving angle
5 ANGL=
(degree)
C END
Direction of
6 DIR=
oscillation
2-305
2 INFORM Explanation
2.7 General-purpose Instruction : WVON
Explanation
1. RBn
2-306
2 INFORM Explanation
2.7 General-purpose Instruction : WVON
3. FREQ=Weaving frequency
4. ANGL=Weaving angle
5. DIR=Direction of weaving
2-307
2 INFORM Explanation
2.7 General-purpose Instruction : WVON
• Weaving angle
Specify the angle of weaving motion.
Wall direction Wall direction
Angle: 0.0 to 180.0 Vertical/horizontal distance:
1.0 to 25.0mm
Angle
Vertical Vertical
distance
Horizontal Horizontal
distance
MODE: TRIANGLE, L-TYPE MODE: TRIANGLE, L-TYPE
Forward Backward
2 2
TRIA NGLE 3 1
1 Horizontal 3 Horizontal
direction direction
Forward Backward
3 2
L-TY PE 4 1
2 3
1 Horizontal 4 Horizontal
direction direction
Forward Reverse
③ ② ④ ⑤
E LLIP SE
① ①
Travel Travel
direction direction
④ ⑤ ③ ②
Horizontal Horizontal
direction direction
2-308
2 INFORM Explanation
2.7 General-purpose Instruction : WVON
SUPPLE
For details of the weaving condition file number, refer to the
-MENT YRC1000micro OPERATOR’S MANUAL(RE-CSO-A058).
Example
(2) NOP
MOVJ VJ=50.00 Step 1
MOVL V=220 Step 2
MOVL V=200 Step 3
WVON AMP=5.0 FREQ=3.0 ANGL40.0 Weaving starts
TOOLON Operation starts
MOVL V=138 Step 4
TOOLOF Operation ends
WVOF Weaving ends
MOVL V=200 Step 5
MOVJ VJ=50.00 Step 6
END
Waiting position
Step 6
Step 1
Step 5
Step 2
Step 3
Step 4
2-309
2 INFORM Explanation
2.7 General-purpose Instruction : WVOF
WVOF
SUBSET STANDARD EXPANDED APPLICATIONS
Function
Syntax
The tags to be added differ depending on the control group in the job.
WVOF END
1 RBn
2-310
2 INFORM Explanation
2.7 General-purpose Instruction : WVOF
Explanation
1. RBn
Example
(1) NOP
MOVJ VJ=50.00 Step 1
MOVL V=220 Step 2
MOVL V=200 Step 3
WVON WEV#(2) Weaving starts
TOOLON Operation starts
MOVL V=138 Step 4
TOOLOF Operation ends
WVOF Weaving ends
MOVL V=200 Step 5
MOVJ VJ=50.00 Step 6
END
Waiting position
Step 6
Step 1
Step 5
Step 2
Step 3
Step 4
2-311
2 INFORM Explanation
2.7 General-purpose Instruction : TOOLON
TOOLON
SUBSET STANDARD EXPANDED APPLICATIONS
Function
Syntax
TOOLON END
1 UNITn
Explanation
1. UNITn
Choose one of the units. These tags are valid for a system with multiple
applications in which two applications are used for material handling,
press tending, cutting, or other applications.
These tags are not shown when there is only one application.
Example
(1) TOOLON
2-312
2 INFORM Explanation
2.7 General-purpose Instruction : TOOLOF
TOOLOF
SUBSET STANDARD EXPANDED APPLICATIONS
Function
Syntax
TOOLOF END
1 UNITn
Explanation
1. UNITn
Choose one of the units. These tags are valid for a system with multiple
applications in which two applications are used for material handling,
press tending, cutting, and other applications.
These tags are not shown when there is only one application.
Example
(1) TOOLOF
2-313
YRC1000micro OPTIONS
INSTRUCTIONS
FOR INFORM LANGUAGE