Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-47
Input / Output Commands
Example2:
The following code
PRINT #kpd,CHR(12);CHR(14);CHR(20);
PRINT #kpd,CURSOR(00);"<=|General Setup1|=>";
PRINT #kpd,CURSOR(20);"Cut Length : ";VR(50+cut_length)[0];
would produce the following display
:
CHR
Type:
Command
Description:
The
CHR(x)
command is used to send individual ASCII characters which are referred
to by number.
PRINT CHR(x); is equivalent to PUT(x) in some other version of
BASIC.
Example:
>>PRINT CHR(65);
A
DEFKEY
Type:
Command
Description:
Under most circumstances this command is not required and it is recommended
that the values of keys are input using a
GET#4
sequence. A
GET#4
sequence does
not use the
DEFKEY
table. In this example a number representing which key has
been pressed is put in the variable k:
GET#4,k
<=|General Setup1|=>
Cut Length:130
EXIT