
Series 30i/31i/32i-MODEL A
PMC Supplemental Programming Manual
01 '05.12.26
H. Yonekura
New registration
B-63983EN/02-8
EDIT
DATE
DESIG.
DESCRIPTION
15/32
DRAW.NO.
You can define the type of P-CODE variables as a floating-point type or
an integer type by the setting of CNC parameter No. 9033#3 and 9033#4.
Floating-point type)
When P-CODE variables are floating-point type, there is a "null" state on
P-CODE variables that means the value is not defined. When you set
D1=0 and D2= -1, the P-CODE variable becomes "null" state.
D1 D2 Value of the
P-CODE variable
(Floating-point)
1234 0 1234
1234 1 123.4
1234 2 12.34
1234 3 1.234
1234 4 0.1234
0 Except -1 0
0 -1 Null
D1: Mantissa
D2: Number of decimal places
Integer type)
When P-CODE variables are integer type, there is no "null" state. We
recommend setting 0 to number of decimal places D2 for writing to an
integer type variable. When a negative value is set to D2, the D2 is
regarded as 0.
D1 D2 Value of the
P-CODE variable
(Integer)
1234 0 1234
1234 1 123
1234 2 12
1234 3 1
1234 4 0
0 Any 0
D1: Mantissa
D2: Number of decimal places
[Completion codes]
0: Completed successfully
2: The data length is invalid.
3: The data number is invalid.
6: No option for macro executor