4MELFA-BASIC V
Detailed explanation of Robot Status Variable 4-343
[Supplement]
Table 4-24:<Numeric Variable>
Table 4-25:<Equation>
[Reference status variable]
M_In/M_Inb/M_In8/M_Inw/M_In16
[Related instructions]
Def IO (Define IO)
O: The available, X: unavailable
Bit width
Numeric variables types Other variables
Integer
Ex.)M1%
Long-preci-
sion inte-
ger number
Ex.)M1&
Single-pre-
cision real
number
Ex.)M1!
Double-pre-
cision real
number
Ex.)M1#
Position
Note1)
Ex.)P1.X
Note1) The unit is the radian if the value of variable is the angle. The 32-bit input signal is stored without converting as a
numerical value of the radian unit. (The elements of A, B and C of position variable, and all elements of joint vari-
able) The display of the monitor etc. is converted into the degree.
Example) If the input data is 5 (decimal number) in P1.A=M_In32(16), P1.A is displayed as "286.479" (deg).
Joint
Note1)
Ex.)J1.J1
Charac-
ter string
Ex.)C1$
M_In32 XOOOOOX
O: The available, X: unavailable
Bit width
constant types Numeric variables types Other variables
Numeric
value
Note1)
Ex.)12
Note1) The real value is rounded off.
Binary
number
Ex.)&B1100
Hexadeci-
mal number
Ex.)&HC
Integer
Ex.)M1%
Long-pre-
cision inte-
ger
number
Ex.)M1&
Single-pre-
cision real
number
Note1)
Ex.)M1!
Double-pre-
cision real
number
Note1)
Ex.)M1#
Position
Note1)
Note2)
Ex.)P1.X
Note2) If the value of the variable is the angle, the unit will be processed by the radian. (The elements of A, B and C of position variable, and all elements of joint
variable) Therefore, designation of the signal number is very difficult. The display of the monitor etc. is converted into the degree, and the same value as
the setting value displayed.
Example) It is processed by value "0", even if it sets "8" as the value of P1.A (The input in the key by T/B etc.) to specify the input signal No.8. The result
is "0" when 8 degree is converted to radian (0.14) and rounded off.Because the unit of the element X, Y, and Z of the position variable is "mm", there is
no such condition.
Joint
Note1)
Note2)
Ex.)J1.J1
Charac-
ter string
Ex.)C1$
M_In32 O O O O O O O O O X