NCT Group 99M Microscope & Magnifier User Manual


 
20 Custom Macro
193
– The characters are output in ISO or ASCII code. The characters to be output are
alphabetic characters (A, B, ..., Z)
numerical characters (1, 2, ..., 0)
special characters (*, /, +, –)
The control will output the ISO code of a space character (A0h) instead of *.
The values of variables will be output by the control in 4 bytes (i.e. in 32 bits), beginning with the
most significant byte. The number of variables must be followed by the number of digits behind
the decimal point in square brackets [ ]. Now the control will convert the floating-point value
of the variable into a fixed-point one, in which the number of significant decimal digits are equal
to the value put in [ ] square brackets. The possible values of c are 1, 2, ..., 8.
If, e.g., #120 = 258.647673 and [3] S)))Q 258648=0003F258h will be output.
– A vacant variable will be output with binary code 00000000h.
– At the end of a data output, the control will automatically output a LineFeed character.
For example,
Characters to be output are
Decimal data output - DPRNT[...]
All characters and digits will be output in ISO or ASCII code, depending on the parameter setting.
7 6 5 4 3 2 1 0
1 1 0 0 0 0 1 1 --- C
1 0 1 0 0 0 0 0 --- Space
1 0 1 0 1 1 1 1 --- /
1 1 0 1 1 0 0 0 --- X
0 0 0 0 0 0 0 0 --- 00
0 0 0 0 0 1 0 0 --- 04
1 1 0 1 1 1 0 0 --- DC
0 0 0 1 1 1 1 0 --- 1E
0 1 0 1 1 0 0 1 --- Y
0 0 0 0 0 0 0 0 --- 00
0 0 0 0 0 0 0 0 --- 00
0 0 0 0 0 0 1 0 --- 02
1 1 0 1 0 0 1 1 --- D3
0 1 0 0 1 1 0 1 --- M
0 0 0 0 0 0 0 0 --- 00
0 0 0 0 0 0 0 0 --- 00
0 0 0 0 0 0 0 0 --- 00
0 0 0 1 1 0 0 0 --- 18
0 0 0 0 1 0 1 0 --- Line Feed
BPRNT [ C*/ X#110 [3] Y#120 [3] M#112 [0] ]
#110=318.49362 318494=0004DC1Eh
#120=0.723415 723=000002D3h
#112=23.9 24=00000018h
DPRNT[ a #b [ c d ] ... ]
Number of digits behind the decimal point
Number of digits before the decimal point
Variable
Character