Instructions: Dx100 Options
Instructions: Dx100 Options
Instructions: Dx100 Options
INSTRUCTIONS
INFORM EXTENTION FUNCTION
STRUCTURED PROGRAM LANGUAGE
Upon receipt of the product and prior to initial operation, read these instructions thoroughly, and retain
for future reference.
MOTOMAN INSTRUCTIONS
MOTOMAN-
INSTRUCTIONS
DX100 INSTRUCTIONS
DX100 OPERATOR’S MANUAL
DX100 MAINTENANCE MANUAL
The DX100 operator’s manual above corresponds to specific usage.
Be sure to use the appropriate manual.
MANUAL NO.
HW1480235 1 1/40
HW1480235
DX100
MANDATORY
• This manual explains the structured program language for INFORM
extension function of the DX100 system. Read this manual
carefully and be sure to understand its contents before handling the
DX100.
• General items related to safety are listed in Chapter 1: Safety of the
DX100 Instructions. To ensure correct and safe operation, carefully
read the DX100 Instructions before reading this manual.
CAUTION
• Some drawings in this manual are shown with the protective covers
or shields removed for clarity. Be sure all covers and shields are
replaced before operating this product.
• 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.
• YASKAWA is not responsible for incidents arising from unauthorized
modification of its products. Unauthorized modification voids your
product's warranty.
ii
HW1480235 2/40
HW1480235
DX100
iii
HW1480235 3/40
HW1480235
DX100
WARNING
• Before operating the manipulator, check that servo power is turned
OFF pressing the emergency stop buttons on the front door of the
DX100 and the programming pendant.
When the servo power is turned OFF, the SERVO ON LED on the
programming pendant is turned OFF.
Injury or damage to machinery may result if the emergency stop circuit
cannot stop the manipulator during an emergency. The manipulator
should not be used if the emergency stop buttons do not function.
Fig. : Emergency Stop Button
• Once the emergency stop button is released, clear the cell of all
items which could interfere with the operation of the manipulator.
Then turn the servo power ON.
Injury may result from unintentional or unexpected manipulator motion.
Fig. : Release of Emergency Stop
TURN
iv
HW1480235 4/40
HW1480235
DX100
CAUTION
• Perform the following inspection procedures prior to conducting
manipulator teaching. If problems are found, repair them
immediately, and be sure that all other necessary processing has
been performed.
– Check for problems in manipulator movement.
– Check for damage to insulation and sheathing of external wires.
• Always return the programming pendant to the hook on the cabinet
of the DX100 after use.
The programming pendant can be damaged if it is left in the
manipulator's work area, on the floor, or near fixtures.
• Read and understand the Explanation of Warning Labels in the
DX100 Instructions before operating the manipulator:
HW1480235 5/40
HW1480235
DX100
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.
vi
HW1480235 6/40
HW1480235
DX100 Contents
vii
HW1480235 7/40
HW1480235
1. Branch
IF ~ THEN ~ ELSEIF ~ ELSE ~ ENDIF
2. Selection
SWITCH ~ CASE ~ DEFAULT ~ ENDSWITCH
3. Repeat
FOR ~ NEXT
WHILE ~ ENDWHILE
1-1
HW1480235 8/40
HW1480235
2 Instructions Detail
DX100 2.1 Branch
2 Instructions Detail
2.1 Branch
• IF ~ THEN ~ ELSEIF ~ ELSE ~ ENDIF
Function
It is flow control statement to control branch execution based on
condition of equation result.
Syntax
IF condition THEN
[statements]
[ELSEIF condition-n THEN]
[elseifstatements]] . . .
[ELSE]
[elsestatements]]
ENDIF
Designated Contents
Item
condition Condition equation for checking (True) or (False)
Up to 3 individual conditions can be used by connecting “AND”
or “OR” condition.
statements If condition is (True), then this statement is executed.
condition-n Same as above described condition.
elseifstatements If condition-n is (True), then this statement is executed.
elsestatements If All defined conditions before Else are false, then this is
executed.
2-1
HW1480235 9/40
HW1480235
2 Instructions Detail
DX100 2.1 Branch
IF I000 = 1 THEN
DOUT OT#(16) ON
ENDIF
START
No
I000 = 1?
Yes
DOUT OT#(16) ON
END
Example 2 • AND
(1) IF I000= '1' and I001 = '2', then OT#(16) is ON.
DOUT OT#(16) ON
ENDIF
START
No
I000 = 1?
Yes
No
I000 = 2?
Yes
DOUT OT#(16) ON
END
2-2
HW1480235 10/40
HW1480235
2 Instructions Detail
DX100 2.1 Branch
Example 3 • OR
(1) If I000 = '1' or I001 = '2', then OT#(16) is ON.
DOUT OT#(16) ON
ENDIF
START
Yes
I000 = 1?
No
Yes
I000 = 2?
No
DOUT OT#(16) ON
END
Example 4 • ELSE
(1) IF I000 = '1' then OT#(16) is ON.
(2) Otherwise OT#(17) is ON.
IF I000 = 1 THEN
DOUT OT#(16) ON
ELSE
DOUT OT#(17) ON
ENDIF
START
No
I000 = 1?
Yes
END
2-3
HW1480235 11/40
HW1480235
2 Instructions Detail
DX100 2.1 Branch
Example 5 • ELSEIF
(1) If I000 = '1' then OT#(16) is ON.
(2) Else if I001 = '1', then OT#(17) is ON.
IF I000 = 1 THEN
DOUT OT#(16) ON
DOUT OT#(17) ON
ENDIF
START
No
I000 = 1?
Yes
No
I000 = 1?
Yes
END
2-4
HW1480235 12/40
HW1480235
2 Instructions Detail
DX100 2.1 Branch
DOUT OT#(16) ON
DOUT OT#(17) ON
ELSE
DOUT OT#(18) ON
ENDIF
START
No
I000 = 1?
Yes
No
I000 < 10?
Yes No
I001 = 1?
Yes
No
I001 = 2?
Yes
END
2-5
HW1480235 13/40
HW1480235
2 Instructions Detail
DX100 2.2 Selection
2.2 Selection
• SWITCH ~ CASE ~ DEFAULT ~ ENDSWITCH
Function
Selection one of the statement based on condition result.
Syntax
SWITCH (testexpression) CASE expressionlist
[statements]
[CASE expressionlist-n]
[statements-n]] . . .
[DEFAULT]
[elsestatements-n]]
ENDSWITCH
Designated Contents
Item
condition Specify an arbitrary expression.
expressionlist Must be set.
statements If testexpression corresponds expressionlist, then this is
executed.
expressionlist-n If needed CASE must be set.
statements-n If testexpression corresponds one of the expressionlist-n, then
corresponded statements-n is executed.
elsestatements If testexpression doesn’t correspond any CASE, then this
elsestatements is executed.
Explanation
If Argument testexpression corresponds any of the CASE
expressionlist, then corresponded statement described before next
CASE or ENDSWITCH is executed. After that flow is going to next
line of ENDSWITCH line. DEFAULT statement is executed if no
condition is corresponded.
2-6
HW1480235 14/40
HW1480235
2 Instructions Detail
DX100 2.2 Selection
Example
(1) IF I000 = '0', OT#(16) is ON.
(2) IF I000 = '1', OT#(17) is ON.
(3) IF I000 is other than '0' or '1', OT#(18) is ON.
DOUT OT#(16) ON
CASE 1
DOUT OT#(17) ON
DEFAULT
DOUT OT#(18) ON
ENDSWITCH
START
No
I000 = 0?
Yes
No
I000 = 1?
Yes
END
2-7
HW1480235 15/40
HW1480235
2 Instructions Detail
DX100 2.3 Repeat
2.3 Repeat
• FOR ~ NEXT
Function
Repeating one set of the statement by designated number of loop.
Syntax
FOR counter = start TO end [STEP stepcount]
[statements]
NEXT counter
Designated Contents
Item
counter Loop counter variable
start Start value of the counter
end End value of the Counter
statements One set of the statement of executed repeatedly
stepcount Count up vale by each loop
FOR (I000) = 1 TO 10
Explanation
The one set of the statement is executed repeatedly until the counter
value is over the end value.
The counter is set start value as initial value in the beginning.
If without [STEP stepcount] parameter, step value = 1.
If [STEP stepcount] exists, the counter is added the stepcount at
every loop times.
2-8
HW1480235 16/40
HW1480235
2 Instructions Detail
DX100 2.3 Repeat
Example
(1) I000 is used for loop counter, and statements of OT#(16) setting
ON are executed 10 times. (As a result, OT#(16) is turned ON 10
times.)
FOR I000 = 1 TO 10
DOUT OT#(16) ON
NEXT I000
START
I000 = 1
No
I000 <= 10?
Yes
DOUT OT#(16) ON
I000 = I000 + 1
END
2-9
HW1480235 17/40
HW1480235
2 Instructions Detail
DX100 2.3 Repeat
• WHILE ~ ENDWHILE
Function
While designated condition is (True), one set of the statements are
executed repeatedly.
Syntax
WHILE condition
[statements]
ENDWHILE
Designated Contents
Item
condition Condition for checking (True) or (False).
Using AND or OR enables you to specify three conditions in a
conditional expression.
statements Executed statements while the condition is (True).
Explanation
While condition is (True), all of the statement before ENDWHILE are
executed. When execution reaches ENDWHILE, control returns to
WHILE again, and the argument named “condition” is checked. This
processing is repeated while this argument is true. If the argument is
not true, control moves to the line after ENDWHILE.
Example
(1) While IN#(16) is ON, OT#(17) is ON repeatedly. As a result,
OT#(17) is repeatedly turned ON until IN#(16) is turned OFF.
WHILE IN#(16) = ON
DOUT OT#(17) ON
ENDWHILE
START
No
IN#(16) = ON?
Yes
DOUT OT#(17) ON
END
2-10
HW1480235 18/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.1 Insert into JOB
DOUT OT#(17) ON IF
ENDIF Automatic
DOUT OT#(17) ON
ENDIF ELSE
ENDIF
ENDIF
3-1
HW1480235 19/40
HW1480235
ENDIF ELSEIF
ENDIF
ENDIF
IF I000 = 1 THEN
ENDIF
3-2
HW1480235 20/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.1 Insert into JOB
DOUT OT#(17) ON
ENDSWITCH CASE
ENDSWITCH
ENDSWITCH DEFAULT
ENDSWITCH
DOUT OT#(17) ON
ENDSWITCH
3-3
HW1480235 21/40
HW1480235
NEXT Automatic
DOUT OT#(17) ON
ENDWHILE Automatic
DOUT OT#(17) ON
3-4
HW1480235 22/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.2 Modify Structured Instruction in JOB
∗ Modify IF ~ THEN
ENDIF ENDIF
IF I000 = 1 THEN
DOUT OT#(16) ON
DOUT OT#(18) ON
ENDIF
3-5
HW1480235 23/40
HW1480235
CASE 1 CASE 1
CASE 2 DEFAULT
ENDSWITCH ENDSWITCH
DOUT OT#(16) ON
DOUT OT#(18) ON
ENDSWITCH
3-6
HW1480235 24/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.3 Delete Structured Instruction from JOB
∗ Delete IF ~ ENDIF
IF I000 = 1 THEN
DOUT OT#(16) ON
ELSE
DOUT OT#(18) ON
ENDIF
ENDIF
ENDIF
3-7
HW1480235 25/40
HW1480235
DOUT OT#(16) ON
CASE 1
DOUT OT#(18) ON
ENDSWITCH
ENDSWITCH
CASE 1 CASE 1
ENDSWITCH
3-8
HW1480235 26/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.3 Delete Structured Instruction from JOB
3-9
HW1480235 27/40
HW1480235
∗ Copy/cut IF ~ ENDIF
ELSE ELSE
ENDIF ENDIF
IF I000 = 1 THEN
DOUT OT#(16) ON
DOUT OT#(18) ON
ENDIF
SET I001 1
3-10
HW1480235 28/40
HW1480235
3 Editing (Insertion into JOB and Modification)
DX100 3.4 Copy/Cut and Paste Structured Instruction
CASE 1 CASE 1
DEFAULT DEFAULT
ENDSWITCH ENDSWITCH
DOUT OT#(16) ON
CASE 1
DOUT OT#(18) ON
ENDSWITCH
SET I001 1
FOR I000 = 1 TO 10
DOUT OT#(17) ON
3-11
HW1480235 29/40
HW1480235
ENDWHILE ENDWHILE
WHILE IN#(16) = ON
DOUT OT#(19) ON
3-12
HW1480235 30/40
HW1480235
4 Format Conversion at External Output
DX100
4-1
HW1480235 31/40
HW1480235
4-2
HW1480235 32/40
HW1480235
4 Format Conversion at External Output
DX100 4.1 IF ~ ENDIF Statements
4-3
HW1480235 33/40
HW1480235
4-4
HW1480235 34/40
HW1480235
4 Format Conversion at External Output
DX100 4.2 SWITCH ~ ENDSWITCH Statements
4-5
HW1480235 35/40
HW1480235
4-6
HW1480235 36/40
HW1480235
4 Format Conversion at External Output
DX100 4.4 WHILE ~ ENDWHILE Statements
ENDWHILE ENDWHILE
Input
4-7
HW1480235 37/40
HW1480235
ENDWHILE ENDWHILE
Input
4-8
HW1480235 38/40
HW1480235
5 Related Parameter
DX100
5 Related Parameter
S2C693: Indent level for structured language nesting unit
[Number of character]
5-1
HW1480235 39/40
DX100 OPTIONS INSTRUCTIONS
INFORM EXTENSION FUNCTION
STRUCTURED PROGRAM LANGUAGE
HEAD OFFICE
2-1 Kurosakishiroishi, Yahatanishi-ku, Kitakyushu 806-0004 Japan
Phone +81-93-645-7745 Fax +81-93-645-7746
YASKAWA Nordic AB
Franska vagen 10, Box 4004, 390 04 Kalmar, Sweden
Phone +46-480-417800 Fax +46-480-417999
MANUAL NO.
HW1480235 1 40/40