166242-1CD
Macro Command
2.2
2.2.1 GETARG Instruction
2
Preparation of Macro Commands
2.2 Teaching a Macro Job
Teaching a Macro Job
Teach a macro job which is prepared as a macro command in the same
manner as normal jobs.
A maximum of sixteen argument tags can be added to a macro command.
Since the data of the argument tag is stored in a local variable to be used,
the required number of local variables must be set in a "JOB HEADER"
before teaching the macro job.
For the setting procedure of the local variables, refer to
section 3.9.11 "Editing Local Variables" described in the
SUPPLE-
MENT
"DX200 OPERATOR'S MANUAL".
In a macro job, job execution instructions such as JUMP,
NOTE
CALL, and PSTART cannot be registered.
2.2.1.1 Function
The GETARG instruction is an instruction to receive an argument for
macro command. When a macro command is executed, the GETARG
instruction gets the data of the argument tag which is added to the macro
command, and stores it in a local variable to be used in the macro job.
2.2.1.2 Format
GETARG LB000 IARG#(1)
Designation of the local variable as the storage destination of the
argument data.
The following types of local variables can be used for storage
destination:
-Byte-type
-Integer-type
-Double-precision integer type
-Real-number type
-Character type
-Robot-axis-position type
-Base-axis-position type
-Station-axis-position type
Designation of argument data.
Specifies the number of the argument data to be taken.
2-3
Stores the data of the first argument
in the local variable LB000.
HW148204
11 of 21
Need help?
Do you have a question about the DX200 and is the answer not in the manual?