![](/images/new-backgrounds/1256769/256769385x1.webp)
20 Custom Macro
–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
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,
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 |
|
|
|
|
|
Characters to be output are
7 6 5 4 3 2 1 0
1 1 0 0 0 0 1 1 | |
1 0 1 0 0 0 0 0 | |
1 0 1 0 1 1 1 1 | |
1 1 0 1 1 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 1 0 0 | |
1 1 0 1 1 1 0 0 | |
0 0 0 1 1 1 1 0 | |
0 1 0 1 1 0 0 1 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 1 0 | |
1 1 0 1 0 0 1 1 | |
0 1 0 0 1 1 0 1 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 | |
0 0 0 1 1 0 0 0 | |
0 0 0 0 1 0 1 0 |
Decimal data output - DPRNT[...]
DPRNT[ a #b [ c d ] ... ]
Number of digits behind the decimal point
Number of digits before the decimal point
Variable
Character
All characters and digits will be output in ISO or ASCII code, depending on the parameter setting.
193