Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 23
Controlling Forms Movement
To change the VFC table, send an escape sequence to the printer in the following
form:
This escape sequence moves the binary data provided in vfc-data into the VFC
table. The first word of vfc-data corresponds to row 0, channels 1 through 16; the
second word corresponds to row 1, channels 1 through 16, and so on. byte-count
indicates the number of bytes in vfc-data.
The following example sets up channel 13 to cause the paper to be positioned at the
next eighth line (instead of seventh). All other channels remain unchanged.
STRUCT VF^DATA;
BEGIN
STRING CONTROL^CHARS[0:5];
INT TABLE^DATA[0:16];
END;
.
.
VF^DATA.CONTROL^CHARS ':=' [%33,"&L9W"] -> @S^PTR;
VF^DATA.TABLE^DATA ':=' [
%B1011111100011111, !line 0
%B0010000000000000, !line 1
%B0011000000000000, !line 2
%B0010100000000000, !line 3
%B0011001000000001, !line 4
%B0010000000000010, !line 5
%B0011100000000100, !line 6
%B0010000000000000, !line 7, channel 13 off
%B0011011000001001, !line 8, channel 13 on
%B0010100000000000, !line 9
%B0011000100000010, !line 10
%B0010000000000000, !line 11
%B0011101000000101, !line 12
%B0010000001000000, !line 13
%B0111000010000000, !line 14, channel 13 off
%B0000000000000000, !line 15
%B0000000000001000, !line 16, channel 13 on
];
CALL WRITEX(PRINTER^NUM,VFC^DATA,$LEN(VF^DATA));
IF <> THEN ...
Escape sequence for programming the VFC table:
esc&lbyte-countWvfc-data