NANO-C, V3.00 to V3.01
Version Update – March 2003
Jetter AG
5
2 Expansions
2.1 Display Instructions
If display instructions are to be used in order to output texts and register values via PRIM
interface or a JX2-SER1 expansion module, the cursor position must be considered. In
front of each display instruction, voids, dependent on the cursor position, will be output
now.
For using display instructions, the following issues must be considered:
·
The text that is to be output, must always begin at cursor position 1.
·
If the value of the cursor position is greater than 1, voids will be output as ASCII
code 20
hex
up to the start of the text.
·
For diverting the display instructions onto the Prim interface, device "9" must be
selected.
·
For diverting the display instructions onto the JX2-SER1 expansion module,
device "11" must be selected. The module number of the expansion module will
be output in register
2838
.
Beispiel 1: Output on a JX2-SER1 Expansion Module
On a JX2-SER1 module, texts and register contents are output in different ways.
// ASCII-sequence in HEX on a JX2-SER1
DISPLAY_TEXT (11, 1, "Hello") // 48 61 6C 6C 6F
DISPLAY_TEXT (11, 3, "Hello") // 20 20 48 61 6C 6C 6F
REG_LOAD (1400, 1234)
// Register for output
REG_LOAD (2810, 0)
// Quantity of post-comma-places
//
(default)
REG_LOAD (2812, 8)
// Field width (default)
REG_LOAD (2816, 0)
// Sign suppression (default)
// ASCII-sequence in HEX on a JX2-SER1
DISPLAY_REG (11, 1, 1400)
// 20 20 20 20 31 32 33 34
DISPLAY_REG (11, 3, 1400)
// 20 20 20 20 20 20 31 32 33 34