
81
Details of the Data Exchange Methods
Section 6-3
Note
1.
The PC EGET/EPUT commands can synchronize with the PC as they are
executed by interrupts from the PC. PC interrupts are possible via IOWR
instruction (control code #CC00) and allocated IR/CIO area words (word
IR/CIO n bit 04 and word IR/CIO n + 2 bits 00 to 07).
2.
The IOWR instruction is structured as shown below for the CS1-series
PCs. The number of write words must be specified as a hexadecimal value.
PC EPUT
The ASCII Unit writes the contents of specified variables to its shared memory
IORD Area using the PC EPUT command. Asynchronously, the CPU Unit
reads data from the ASCII Unit’s shared memory and writes it to the specified
I/O memory area using the IORD instruction.
1,2,3...
1.
Write data to the shared memory area using the PC EPUT command.
2.
Read data from the ASCII Unit’s shared memory area when the IORD
(#00
@@
) instruction is executed in the ladder diagram.
The following example is for a C200HX/HG/HE PC.
Note
1.
The PC EGET/EPUT commands can synchronize with the PC as they are
executed by interrupts from the PC. PC interrupts are possible via IOWR
instruction (control code #CC00) and allocated IR/CIO area words (word
IR/CIO n bit 04 and word IR/CIO n + 2 bits 00 to 07).
IOWR (223)
#0000
D00300
#00040000
0004 0000
Unit No.
No. of write words
(Hex)
CPU Unit
ASCII Unit
10500
n + 5 bit 00
ASCII
Busy Flag
DM 0300
0301
0302
0303
Offset from
first word set in the IORD
Area as DM m + 7.
Set DM 0300 as
the first word.
No. of read words
(BCD)
Unit No.
90 words
max.
1'. IORD instruction
When
@@
is 00
Shared memory
(IORD Area)
1.
PC EPUT command
(See note 1.)
Transfer at IORD execution
DM Setup Area
First word of the
IORD Area
(At power ON or restart)
90 words
max.
DM m + 6
m + 7
:
IORD
#0004
0 0 1 0
0 0 5 0
DM0300
0004
PC EPUT #0, 4, "1H4, 1H4, 2H4; A, B, C$
50
51
52
99
53
A
B
C$
#0000
(See note 2)
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...