Service manual
MZ-lE02
Note
1)
Note 2)
In
actual operatio'n,
-I
ENTER
I
key
must be
pressed
at
the
enci.---or-~ach-
_pro-gram
step. (For'
m~ltiple
statement
:.en_try,
statements
must'
be separated
using a colon ( :
).}
,Enter
the
program with
th~
MZ-1E02 installed.
1.
GMODE'
Thi~!
com~and
,~ets
up
the
inp~t/output
channel modes .
.
',:,
,',
' .
2. GSET
This command specifies
the
logical polarity
of
Input/
_
output
~ata
signals and
input
control
signals.
This command
is
effective
only-for
channels and
ports
in
the
automatic
handsha"king
mode.
Fqrmat)
GS~T
[x.)
C,
D
X Channel number (0,
1)
-------'-~----'---"'-'~~~~=~~---"-~~-~~------'e
'i'ypi;-"fsig,",ls"'-~----'~=--~~----'~--
Th~
set'~p'
~~de~
include
the
automatic
:nandshaking
mo'de
or
manual
mode
for
input/output
ports, S-bit
or
7-bit
cOde
for
the
automatic
handshaking,
~ode,
and
'tne-
parity
check
mo'de.
F?rmat)
GMODE (X,)
C,
0
(,El
X:
Channel number (0,
1)
C : Port
1'1'
,L
...
;;
....
Inp~t
port
..
0
...........
Output
port
D ;
!Mode'
A
.....
',._
..
AutOinatic handshaking
mode
B
........
Manual
mode
E Data
format
S
.........
S-bit code
7E
.......
7-bit
code
with even
parity
bit
70
.......
7·bit code with odd parity bit
7
.........
7-bit
code
without
parity
bit
Numeric expressjon X selects
the
channel with
character
~tring
C selecting
which
port
and character string D .selecting
the
mode
(automatic
handshakin9.'
mode/manual
mode).
When
the
automatic
handshaking
mode
is
specified by
D,
data
format
can
be specified by
the
character
string
E.
If
(X,]
is
omitted,
channel 0
is
set
automatically.
If
E
is
omitted
in
the
specification
of
the
automatic
handshaking
mode,
8-bit
data
code
is
set
automatically.
After
power
has
been
switched
on,
the
input
and
output
ports
of
each chan-
nel are
set
to
the
automatic
handshaking
mode
with
8-bit
data
code.
Note) For data
1/0
in
the
7-bit ASCII code system,
the
~l
/ SO (shift-in/shift-out) state
is
automatically
set
to
SI
by
execution
of
this
command.
Example)
10
GMOOE
"O","A",'"7E"
This program specifies
the
automatic
handshaking
mode
for
7-bit
code
with even paritY' check for
the
output
port
of
channel
O.
Addendum) SIISO (shift-in/shift·out)
--"~;
;_,J~
••
'
,,"
.".",--"
.,
.. :..
._
...
__
~
__
;
The 7·bit
ASCII
cdde system has the SIISO state for handl-
ing as
much
data
as .an
8~bit
code system does.
The
SO
code
(CH
R$
&OE)
switches
the
SI
state
to
the
SO
state, and
the
SI
cdde
(CH
R$
&OF)
switches
the
SO
state
to
the
SI
state. Accordingly,
data
iri
the
7-bit
ASCII code
system includes
SI
codes
and SO codes. These codes
must
be
taken
into
considerati'on
in
programming
when
the
amount
of
data
is
significant.
The
SI
and SO
states
are
independent
for
the
input
and
output
ports
and
for
each
channel.
After
power
has been switches on,
the
SI
state
is
auto-
matically set.
4
ID
........
Input
data signals
OD
..
. . .
..
Output
data
signals
le
........
Input
contr'ol'signaj~
0:
Positive logic/Negative logic
I (SYNTAX)
L-_rr<ID-r-0-rl
_______
_
This
command
specifies
the
logical polarity
of
signals on
a channel, as indicated respectively
by
the
character strings
D
and
C,
ahd
the
expression
X.
The
logical
polar~ty
of
signals can
be
specified
in
two
ways:
i)
Specifi,cation
for
a
group
of
signals (8
data
bits
or
4
bits) as
designate~
by
string C:
Character
string
D:
Positive logic
...........
"1"
Negative logic
...........
"0"
ii) Specification
of
individual signals as designated
by
character string C:
Character string
D:
Example
for
input
control
signals:
"0101"
1]1'.
Positive logic for signal
19
Negative logic for signal 110
Positive logic for signal
111
Negative logic
for
signal
112
If
ex,)
is
omitted,
the
logical polarity for channel 0
is
set.
After
power
has been switched on, positive logic
is
set
for
all
input/output
data
signals and
input
control
signals
for
each channel.
Example)
10
GSET
"00",
"0"
This program specifies negative logic
for
all
output
data
signals (8 bits)
on
channel
O.
Addendum)
The
logical polarity
of
the
output
control
signals
is
set
by
the
DIP switch on
the
interface
PC
board. (This
command
can-
not
be used for
that
purpose.) For de-
tails,
see Appendix
4,
Setup
of
the
DIP
switch,
p.
A-5.
,