
80
Details of the Data Exchange Methods
Section 6-3
PC GET
The ASCII Unit converts the allocated word IR/CIO n bits 0 to 15 from hexa-
decimal data to decimal data, and stores them in the first variable. It also con-
verts the word IR/CIO n + 1 bits 0 to 15 from hexadecimal to decimal data and
stores them in the second variable.
1,2,3...
1.
Data set during I/O refresh period.
2.
At the execution of the PC GET command, the ASCII Unit reads the spec-
ified data.
6-3-4
Data Exchange Method No. 4
The ASCII Unit and CPU Unit both asynchronously read/write to the ASCII
Unit’s shared memory.
PC EGET
Using the PC EGET command, the ASCII Unit reads the IOWR Area of its
shared memory area to a specified variable. Asynchronously, the CPU Unit
writes specified memory area data to the ASCII Unit’s shared memory areas
using the IOWR instruction.
1,2,3...
1.
Using the IOWR (#00
@@
) instruction, write data to the ASCII Unit’s shared
memory area.
2.
Using the PC EGET command, read data from the shared memory area.
The following example is for a C200HX/HG/HE PC.
1. I/O refresh
At PC GET
CPU Unit
ASCII Unit
None
2.
2.
15
15
0
0
15
15
0
0
A
B
n
n+1
PC GET A, B
n+1
n
CPU Unit
ASCII Unit
10500
n + 5
bit 00
ASCII
Busy Flag
DM 0300
0301
0302
0303
Offset from
the IOWR Area initial
address specified at
DM m+ 6.
Set DM 0300 as
the first word.
No. of write words (BCD)
Unit No.
90 words
max.
1. IOWR instruction
When
@@
is 00
Shared memory
(IOWR Area)
1'.
PC EGET command
(See note.)
Transfer at IOWR execution
DM Setup Area First word of the
IOWR Area
(At power ON or
restart)
90 words
max.
DM m + 6
m + 7
:
IOWR
#0000
DM0300
#0004
0004
PC EGET #0, 4, "1H4, 1H4, 2H4; A, B, C$
10
11
12
13
39
A
B
C$
0 0 1 0
0 0 4 0
(See note 2)
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...