4MELFA-BASIC IV
Detailed explanation of Robot Status Variable
4-306
P_Tool/P_NTool
[Function]
Returns tool conversion data.
P_Tool: Returns the tool conversion data that is currently being set.
P_NTool: Returns the initial value (0,0,0,0,0,0,0,0)(0,0).
[Format]
[Terminology]
<Position Variables>
Specifies the position variable to assign.
<Mechanism Number>
Enter the mechanism number. 1 to 3, If the argument is omitted, 1 is set as the
default value.
[Reference Program]
1 P1=P_Tool
' P1 will contain the tool conversion data.
[Explanation]
(1) P_Tool returns the tool conversion data set by the Tool instruction or the MEXTL parameter.
(2) Use the Tool instruction when changing tool data.
(3) This variable only reads the data.
P_Zero
[Function]
Always returns (0,0,0,0,0,0,0,0)(0,0).
[Format]
[Terminology]
<Position Variables>
Specifies the position variable to assign.
[Reference Program]
1 P1=P_Zero
'(0,0,0,0,0,0,0,0)(0,0) is assigned to P1.
[Explanation]
(1) This can be used to initialize the P variable to zeros.
(2) This variable only reads the data.
Example)<Position Variables>=P_Tool [(<Mechanism Number>)]
Example)<Position Variables>=P_NTool
Example)<Position Variables>=P_Zero