Crt Display Commands - Mitsubishi Melsec A User Manual

Table of Contents

Advertisement

6. AD51 PROGRAMMING NOTES
/MELSEC
,---{Example
j
KD51PR setting
.
.
. . .
.
.
.2K buffer ON, buffer full set
r B A S l C program-,
data and control coder (CR code.
LF code) are sent from AD51.
control code
03H
is sent from
130 GOT0 100
L-...
The KDSIPR starts printing after
it
receives the
03H code. The Z T l M E
instruction allawr a time delay before
:
,-Pri n t
r e s u l t - ,
the nest set of data is rent.
ABCDE
I n this case,
it
taker
8
seconds from
ABCDE
1-time print command t o print termi-
nation.
ABCDE
I
"ABCDE"
p r i n t
2 seconds
CR,
LF
(line feed)
2 seconds
"ABCDE"
p r i n t
2 seconds
CR,
LF
(line feed)
2 seconds
o
When the 2K buffer is set t o OFF in the KD51PR. any string
of characters sent which is more than one line long will lead
t o an overrun error when the LF code is given. (The receive
buffer
is
32 characters long). See below:
100 LRPlNT
"ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF"
1
3
2 characters
\
To overcome this, write a comma
(,)
after the PRINT state-
ment t o stop the LF code from being given as below:
100 LPRINT "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEF,"
6.3.3 CRT display commands
Any commands addressed t o a CRT on
a
given channel should come
from one task only. There is no management of display commands
between tasks.
[CRT display commands]
CLS, ZCON, ZCOFF, ZNOR, ZCRV, PRINT, LOCATE
Any program controlling the display on one CRT should be
written in one task only.
I

Advertisement

Table of Contents
loading

Table of Contents