28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PL2 MNEMONICS<br />

Text mode<br />

\000 Internally used to signal end <strong>of</strong> image, this code can therefore not be<br />

presenting the image.<br />

These codes are required if you want to use the TREAD statement, or have<br />

printout using more than one IPRINT statement and they are not sent to the<br />

terminal. If you would like to send these codes, use the %C or %S format as<br />

described below.<br />

\\ Insert one backslash into the string.<br />

\” Insert one quote (”) into the string.<br />

%% Print one percent sign.<br />

%B Print argument as an 8-bit byte in hexadecimal.<br />

%W Print argument as a 16-bit word in hexadecimal.<br />

%L Print argument as a 32-bit long-word in hexadecimal.<br />

%C Print argument as a character.<br />

%S Print argument as a NUL terminated string, i.e. 0 to 4 chars, LSB being<br />

printed first.<br />

%D Print argument signed decimal with minimum number <strong>of</strong> spaces.<br />

%D:n Print argument signed decimal with minimum n positions.<br />

%D;n Print argument signed decimal with minimum n positions, and pad<br />

unused places ”0” i.e., 12 in format D: 5 is printed as ”00012”.<br />

Note: The number ”n” is a ONE digit HEX number.<br />

%D% If you want a ”:” to follow directly after the number, and not being<br />

interpreted as a format modifier.<br />

%D%; Same as %D%<br />

%T TAB to position in argument, this functions does not work if you are<br />

using direct cursor addressing, since the system has no knowledge <strong>of</strong><br />

these sequences.<br />

For convenience, a CR/LF sequence is automatically sent if the text mode is exited<br />

when the current image is completed, thus the first example will work without the<br />

CR/LF sequence.<br />

TEXT INPUT<br />

To input text/numbers you will use the TREAD statement, you also need to use the<br />

IMAGE and IPRINT to output the \002 and \003 codes to control the command<br />

monitor.<br />

TREAD has the following modifiers:<br />

TRead LINE 4<br />

TRead LINE CLR UCH 5<br />

TRead LINE CLR NUM 6<br />

TRead NUM 1<br />

TRead CH 2<br />

TRead UCH 3<br />

Operator code<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!