Instructions: Fs100 Options
Instructions: Fs100 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
FS100 INSTRUCTIONS
FS100 OPERATOR’S MANUAL
FS100 MAINTENANCE MANUAL
MANUAL NO.
HW1480732 1/40
HW1480732
FS100
MANDATORY
• This manual explains the structured program language for INFORM
extension function of the FS100 system. Read this manual carefully
and be sure to understand its contents before handling the FS100.
• General items related to safety are listed in Chapter 1: Safety of the
FS100 Instructions. To ensure correct and safe operation, carefully
read the FS100 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
HW1480732 2/40
HW1480732
FS100
iii
HW1480732 3/40
HW1480732
FS100
WARNING
• Confirm that no person is present in the manipulator’s operating
range and that you are in a safe location before:
– Turning ON the FS100 power.
– Moving the manipulator with the programming pendant.
– Running the system in the check mode.
– Performing automatic operations.
Injury may result if anyone enters the manipulator’s operating range
during operation. Always press the emergency stop button
immediately if there is a problem. The emergency stop button is
located on the right of the programming pendant.
• Observe the following precautions when performing teaching
operations within the manipulator’s operating range:
– View the manipulator from the front whenever possible.
– Always follow the predetermined operating procedure.
– Keep in mind the emergency response measures against the
manipulator’s unexpected motion toward you.
– Ensure that you have a safe place to retreat in case of
emergency.
Improper or unintended manipulator operation may result in injury.
• Before operating the manipulator, check that servo power is turned
OFF when the emergency stop button on the programming pendant
is pressed.
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 button does not function.
Fig. : Emergency Stop Button
iv
HW1480732 4/40
HW1480732
FS100
WARNING
• 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
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 FS100 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
FS100 Instructions before operating the manipulator:
HW1480732 5/40
HW1480732
FS100
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
HW1480732 6/40
HW1480732
FS100 Contents
vii
HW1480732 7/40
HW1480732
1. Branch
IF ~ THEN ~ ELSEIF ~ ELSE ~ ENDIF
2. Selection
SWITCH ~ CASE ~ DEFAULT ~ ENDSWITCH
3. Repeat
FOR ~ NEXT
WHILE ~ ENDWHILE
1-1
HW1480732 8/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 9/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 10/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 11/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 12/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 13/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 14/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 15/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 16/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 17/40
HW1480732
2 Instructions Detail
FS100 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
HW1480732 18/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 3.1 Insert into JOB
DOUT OT#(17) ON IF
ENDIF Automatic
DOUT OT#(17) ON
ENDIF ELSE
ENDIF
ENDIF
3-1
HW1480732 19/40
HW1480732
ENDIF ELSEIF
ENDIF
ENDIF
IF I000 = 1 THEN
ENDIF
3-2
HW1480732 20/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 3.1 Insert into JOB
DOUT OT#(17) ON
ENDSWITCH CASE
ENDSWITCH
ENDSWITCH DEFAULT
ENDSWITCH
DOUT OT#(17) ON
ENDSWITCH
3-3
HW1480732 21/40
HW1480732
NEXT Automatic
DOUT OT#(17) ON
ENDWHILE Automatic
DOUT OT#(17) ON
3-4
HW1480732 22/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 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
HW1480732 23/40
HW1480732
CASE 1 CASE 1
CASE 2 DEFAULT
ENDSWITCH ENDSWITCH
DOUT OT#(16) ON
DOUT OT#(18) ON
ENDSWITCH
3-6
HW1480732 24/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 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
HW1480732 25/40
HW1480732
DOUT OT#(16) ON
CASE 1
DOUT OT#(18) ON
ENDSWITCH
ENDSWITCH
CASE 1 CASE 1
ENDSWITCH
3-8
HW1480732 26/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 3.3 Delete Structured Instruction from JOB
3-9
HW1480732 27/40
HW1480732
ELSE ELSE
ENDIF ENDIF
IF I000 = 1 THEN
DOUT OT#(16) ON
DOUT OT#(18) ON
ENDIF
SET I001 1
3-10
HW1480732 28/40
HW1480732
3 Editing (Insertion into JOB and Modification)
FS100 3.4 Copy or 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
HW1480732 29/40
HW1480732
ENDWHILE ENDWHILE
WHILE IN#(16) = ON
DOUT OT#(19) ON
3-12
HW1480732 30/40
HW1480732
4 Format Conversion at External Output
FS100
4-1
HW1480732 31/40
HW1480732
4-2
HW1480732 32/40
HW1480732
4 Format Conversion at External Output
FS100 4.1 IF ~ ENDIF Statements
4-3
HW1480732 33/40
HW1480732
4-4
HW1480732 34/40
HW1480732
4 Format Conversion at External Output
FS100 4.2 SWITCH ~ ENDSWITCH Statements
4-5
HW1480732 35/40
HW1480732
4-6
HW1480732 36/40
HW1480732
4 Format Conversion at External Output
FS100 4.4 WHILE ~ ENDWHILE Statements
ENDWHILE ENDWHILE
Input
4-7
HW1480732 37/40
HW1480732
ENDWHILE ENDWHILE
Input
4-8
HW1480732 38/40
HW1480732
5 Related Parameter
FS100
5 Related Parameter
S2C693: Indent level for structured language nesting
Unit: [Number of characters]
5-1
HW1480732 39/40
FS100 OPTIONS
INSTRUCTIONS
INFORM EXTENSION FUNCTION
STRUCTURED PROGRAM LANGUAGE
MANUAL NO.
HW1480732 40/40