
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
9/32
DRAW.NO.
3.1.2 Writing a Custom Macro Variable (Low-speed Response)
[Description]
Using this function, you can write value to a common variable of custom
macro variables. You cannot write to local variables or system variables.
Common variables
Without custom macro common variable addition option
#100-#149, #500-#549
With custom macro common variable addition option
#100-#199, #500-#999
For details of the custom macro variables, refer to the following manual.
- "Common to Lathe System / Machining Center System USER'S
MANUAL (B-63944EN)"
[Input data structure]
Top Address +0 (Function code)
22
+2 (Completion code)
-
(Need not to be set)
+4 (Data length)
L=6
+6 (Data number)
N
N: Custom macro variable number
+8 (Data attribute)
M=0
Reserved
You should set 0 to this field.
+10 Mantissa
D1
(4 bytes)
Signed binary format in 4 bytes length
+14
+15
Number of decimal places
D2
(2 bytes)
Signed binary format in 2 bytes length
D2 = -1, 0 to 8
You should set values to D1 and D2 when the custom macro variable is
expressed by the following formula.
[Custom macro variable] = D1 × 10
–D2
There is a "null" state on custom macro variables that means the value is
not defined. When you set D1=0 and D2= -1, the custom macro variable
becomes "null" state.