NCT Group 99M Microscope & Magnifier User Manual


 
20 Custom Macro
173
– Referring to program number O, block number N or conditional block / by a variable is not
permissible. Address N will be regarded as a block number if it is preceded only by address
"/" in the block.
– The number of a variable may not be substituted for by a variable, i.e. ##120 is not permissible.
The correct specification is #[#120].
– If the variable is used behind an address, its value may not exceed the range of values permissible
for the particular address. If, e.g., #112=5630, reference M#112 will produce an error
message.
– If the variable is used behind an address, its value will be rounded to a significant digit
corresponding to the address. For example,
M#112 will be M1 for #112=1.23
M#112 will be M2 for #112=1.6
20.11.3 Vacant Variables
A variable that has not been referred to (undefined) is vacant. Variable #0 is used for a variable
that is always vacant:
#0=<vacant>
20.11.4 Numerical Format of Variables
Each variable is represented by 32 bits of mantissa and 8 bits of characteristic,
variable= M*2
C
Representation of a vacant variable,
M=0, C=0
Representation of a 0 - value variable,
M=0, C=–128
The nature of a vacant variable, compared in an address:
Reference to a vacant variable in an address:
If #1=<vacant> if #1=0
G90 X20 Y#1 G90 X20 Y#1
* *
G90 X20 G90 X20 Y0
Vacant variable in a definition instruction:
if #1=<vacant> if #1=0
#2=#1 #2=#1
* *
#2=<vacant> #2=0
#2=#1*3 #2=#1*3
* *
#2=0 #2=0
#2=#1+#1 #2=#1+#1
* *
#2=0 #2=0