Omron SYSMAC C500-NC222-E Operation Manual page 71

Two-axis position control unit (nc221 mode)
Table of Contents

Advertisement

PC Programs
Status Reception Problems The RAM in the PCU that contains status data is accessed both by the PCU
PC
Writing status to RAM (PCU)
READ(88) (reading status from PC)
Status stored in PC
to write the status and by the PC to read status (READ(88)). Both of these
operation cannot take place at the same time.
READ(88) sent
É É É É É É
É É É É É É
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.
Approx. 10 ms
A
B
Scan time
A
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).
25313
(Always ON)
NC222-E
RAM
É É É É É É
Status
É É É É É É
Every 10 ms
C
D
Not executed
B
BPRG(96) 00
LOOP <09>
READ(88)
LEND <10>
BEND <01>
Section 4-2
EEPROM
E
F
E
#0017
001
(Equals Flag)
25506
G
F
61

Advertisement

Table of Contents
loading

Table of Contents