61
Status Reception Problems
The RAM in the PCU that contains status data is accessed both by the PCU
to write the status and by the PC to read status (READ(88)). Both of these
operation cannot take place at the same time.
ÉÉÉÉÉÉ
ÉÉÉÉÉÉ
EEPROM
PC
NC222-E
Every 10 ms
ÉÉÉÉÉÉ
ÉÉÉÉÉÉ
RAM
ÉÉÉÉÉÉ
READ(88) sent
Status
Status
READ(88) response
If a READ(88) is attempted while the PCU is writing status, READ(88) will be
ignored. The status write operation is performed approximately every 10 ms
and requires approximately 1 ms to complete, i.e., there is up to about a 1 in
10 chance that READ(88) will not be executed as programmed. This situation
is illustrated below.
Writing status to RAM (PCU)
Approx. 10 ms
READ(88) (reading status from PC)
Scan time
Not executed
A
B
C
D
E
F
G
A
B
E
F
Status stored in PC
If it is necessary to ensure that status is read during each program scan,
block programming can be used. One example of how to do this is shown
below. This example reads out 17 status words to IR 100 to IR 116 for a PCU
allocated IR 000 and IR 001. The loop in the block program will be taken until
the Equals Flag (=) turns ON (i.e., until IR 1200 turns ON).
BPRG(96) 00
25313
(Always ON)
LOOP <09>
READ(88)
#0017
001
LEND <10>
25506
BEND <01>
(Equals Flag)
PC Programs
Section 4-2
Содержание SYSMAC C500-NC222-E
Страница 1: ...OPERATION MANUAL Two axis Position Control Unit NC221 Mode SYSMAC C500 NC222 E Cat No W138 E1 03...
Страница 2: ...C500 NC222 E Two axis Position Control Unit NC221 Mode Operation Manual Revised June 2003...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 163: ...Cat No W138 E1 03 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...
Страница 164: ...Cat No W138 E1 03 SYSMAC C500 NC222 E Two axis Position Control Unit NC221 Mode OPERATION MANUAL...