IAI America XSEL-KE User Manual
Page 240

225
Part 4 Commands
z PARG (Get palletizing angle)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
PARG
Palletizing
number
Axis
number
CP
Obtain the palletizing angle.
Calculate the palletizing angle (degrees) from the physical axis specified in operand 2 for the palletizing
number specified in operand 1, and store the result in variable 199.
This command need not be executed, if not necessary.
If this command is executed after PAPS (set 3 palletizing points for teaching) is executed, the angle
formed by the preferential axis and the specified physical axis will be calculated automatically. If this
command is executed before PAPS is executed, or after both PAPS and PASE are executed in this
order, an error will generate.
The axes to be used can be specified with a GRP command before PAPS is executed (refer to the
detailed explanation of PAPS). If the valid axis pattern of the 3-point teaching data does not match, an
HUURU³&%0LVPDWFKHGYDOLGD[HVDQGSDOOHWL]LQJSRLQWWHDFKLQJGDWD´ZLOOJHQHUDWH
If the number of valid point-data axes (the number of valid axes excluding the PZ-axis, if a palletizing Z-
axis (PZ-axis) has already been declar
HGLVOHVVWKDQWZRDQHUURU³&$(,QVXIILFLHQWYDOLGD[HVIRU
SDOOHWL]LQJSRLQWWHDFKLQJGDWD´ZLOOJHQHUDWH,IWKHnumber of valid point-data axes is more than two,
DQHUURU³&%3;3
3=D[LVDQHUURU³&%$5HIHUHQFHD[LVDQG3;3
If the reference point among the three teaching points
LVWKHVDPHDVWKHSRLQWGDWDDWWKH3;D[LVHQG
SRLQWRWKHUWKDQWKH3=D[LVFRPSRQHQWDQHUURU³5HIHUHQFHSRLQWDQG3;D[LVHQGSRLQWLGHQWLFDOZKHQ
REWDLQLQJSDOOHWL]LQJDQJOH´ZLOOJHQHUDWHDQGDQJOHFDOFXODWLRQZLOOEHGLVDEOHG
The actual operating direction may have been reversed depending on the mechanism of the rotating axis
DQGWKHVHWWLQJRID[LVVSHFLILFSDUDPHWHU1R³2SHUDWLQJGLUHFWLRQUHYHUVLQJVHOHFWLRQ´7RXVHWKH
value obtained by this command, be sure to confirm the actual operating direction.
If the output field is specified, the output will turn ON after this command is executed.
z PAPG (Get palletizing calculation data)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional
PAPG
Palletizing
number
Position
number
CP
Store the position coordinate data of the palletizing points for the palletizing number specified in operand
1, in the position number specified in operand 2.
If the output field is specified, the output will turn ON after this command is executed.