Service manual

MZ·IE02
Example) 10
GOUT
0,
"ABC"
:\
This
program
outputs
literal
s1:i-iri~j'
(lifer'aT
constanW"
ASC"
data followed
by
a
CR
code and LF code forchanriel
O.
Note)
For
output
data
in
.rieQCitive
logic as specified
by
the
GSET
comman~.~:·
·'~oinpl~~entarY.
:d~tCl.:
(having
inverted
poia'rity) will be
outP~l"t.·
(This r'ule also
applies
to
Format
2.)
Format3)
GOUT X,
E,
Y
X
Channel
number (0, 1)
E Type
of
signals
o
...
'
..
~
..
Data signals
C".
'.':
...
:'
...
Control
signals
:,
A}:
NUmeric.
data ·to
be
OUtput
Format2)·G
..
OUT
"
.,
USING
ri'l·
S
I'(Y)
I
A$
I IMAGE I (SYNTAX) . . . - - I
GOUT~
.Ch.n~
•..
'."m.o,.;."
.....
. - - - T C
{Z
I
CLC-:.-J-JJ-
____
~--I
~-'----r'
I _ I _
'--.c'
',---.'~.
__
---l.
X.,h"Gha~reL"~mb~\(q,J).
-,
,..
,,'
.J
':'-'f;i.;
.,;,
L,if)~
mJwb~rva~ye_.of
IMAGE
st~~ern,en~
;-~
Format
3
of
the
GOUT
command
is
used
in
:tpe
m~nua!
~-,;~.;.~
',"
:')
Lj~e
!a.bel.-~~ITI~
eJ
,lMA~.E
5~,a~e.m~t1t
. J
-j
- mode.
,);'";(
J.:
,L,in
e
,
,~1:ll}lb~;r
,(numer,ic
expressio~)
of
IMAGE The GOUT
comm~nd
Qutputs numeric data
designated
by
_~at,eITIIi!n1;
;
"ji
_.
..,'
. the numeric expression Y in binary
format
with'
the
logical
:
.~A$,,:
, Character
,-
'variable_ - for. -specified.
format
(!~~_ge
-polaritY-oaf
"the
signafs-'designated_b-v
the--charactei' string
~
Cl;
r'_:
,~Y_!l1b'pl);
',",
;:.
,
-~-
-
-',
-~
-:
-~
:-
- ---,
~
-
--
-----
to
a channel designated
by
the
numeric expression
~.
.:".
Character
cQnstan~
indicating
im.age
symbol
this
command
outputs
an
ON
state. (high level)
for.
a-O
Z
:
~J"
~~meri'c.~at~;,~~
~~
9utPU.~'
, -
~
. bit; irrespective
of
the'
iogiccH
"Polaiity'
~pecified
by
the
!:i':'~i:
::;;Gh~.~~~tf1r
dat~:.~,?.b.elp.lJ~'pyt
GSET
command.
The
logical polarity
of
output
'cbntrol
sig'nals'
is
determined
by
the
DI
P switch
o.n
the
inierf~de
PC
Format
2
'of
the
GOUT command
is
used
in
the
automatic
hJ~"d~ha.king..
. ,
'.
Th"Et
GOUT
command outputs,;numeric data designated by
the
numeric expression Z 'or literal data designated by
the
character
string C in a format designated by
the
IMAGE
statement.
This
syntax
conforms
to
Function 2
of
the
PR
I
NT
state·
ment.described in the MZ-3500 BASIC LANGUAGE
..
MA,NY/',!I,'.rc<"lso
!~'er.
t?
the IMAGE .statement.
It
a
s.~micolon
is
attached
.to
the
end
of
the
last numeric
~xpr~ssiori'or
'Iiter~I'
string, no CR
code
(CHR$
&00)
nor
LF code (CHR$
&OA)
is
output
following
the,output
of
data.
Conversely, if a semicolon
is
omitted, an
LF
code
is
output
automatically
at
end
of
the.
dat;;!
(,No
CR
code
is
output).
If
{Z
I C f
e;)
is
omitted, neither
CR
code nor LF
code
is
output.
The
eR
code
and
LF
code
C(in
be
set
using
the
IMAGE
statement.
Example
1)
10
GOUT
1,USING
500,X$,Y$
ThJs
pr.Qgr~1l]
outputs
character"strings X$
..
and Y$
in
the
format
specified by
the
I
MI:\G.E
.sta,t~!11~nt
.for channel 1 .
. : :.
;.
i: : , .
::,
:;,
~
: .. ;
j':
.•
, i
:,:
, .
,';
. )
:.
.
,;
j ; . ,
Example
2)
10
H$="TRANSISTORS":K=1320
.
"')
,...
':,.'
i:.~~g,.:~~~T;i-O~·~~~NP)
lPR!.~.~~~~!
,'1!"
I.';
,).i,
,:,1 .
°ioo:
IMA·GE.,,~'llA
5X":·,"PRI.CE'" 4X
$#.,###
.
'Th!~'
p~9~r~~
9':u1r,~:s.,
c,la~~
.i:n.
the
.follo~ing
.format,
~lJY~ere
Sp,CR,
and LF signify a
space
code,
CR
code and LF
code,
respectively..
......
..
.-. .
!
'.'
;:
',')
,.
;;;.
. . j,: .
"TR''';;'N<sr
STOR
s'Sp
SpSp
Sp Sp
P R
IC
E
'.1
'.
""
.,
',,'
.'"
I
SpSpSpSp$
1 , 3 2 0 CRLF
, board
{See·p.
A-5
0
}
'Wh'en'the character string E iS'set
to
data . signals, tile' niagn'itude
of
the
riu"n1eric
expreSsion Y
must
b~
within' the'
ra~ge
from 0
to
1.5 If this range
is
exceeded, ERROR
127
occurs.
NoCR
cdde
(CHR$&OD)
;,or LF code (CHR$ &OA)
is
output
a't
th~
'end
bf
the
'output
data.
Note}
Use
this
command
for data.
in.
the
a-bit
code system.
Addendum) The
NULL
code
can
be
output.
Example) 10
GOUT
0,
"0",0%
This program
outputs
a NULL
code
for channel.
O.
5. GBIT
This
command
verifies and sets
the
logical
level·
of
signals.
This command
is
effective for
ports
in
both automatic
handshaking and manual ·modes. .
The.
commahd has no
relation
to
the
logical polarity specified by
the
GSET
command.
The
logical polarity
of
the·
output
control
signals
is
determined
by
the
DIP switch
on
the
interface
PC
~oard.
See.
Appendix 4, Setup
of
the DIP switch,
.p.
A-;.
Formatr)
GBIT .
eX,
)
c,
Y,
A
X
Channel
number (0, 1)
C : Txpe ofsi9n81s .
ID
........
Input
dClta
s.ignals
le
........
Input
contro'l signals
Y
Pin number
0
.........
1),19
1
.........
12,
110
2 ;
..
:
';i
. " .
.13,
III
3..
.......
'1(112
4
.........
15
5
.........
:
16
6
.........
17
7
.........
18
,f!\:
.~umeril?
variabl~.~9r
inputting data