Omron SYSMAC C200H-CP114 Operation Manual page 56

Hide thumbs Also See for SYSMAC C200H-CP114:
Table of Contents

Advertisement

Program Examples
Program Example
25315
First Scan Flag
25315
d
Download
First Scan Flag
completed
c
Change data incam
data storage words
a
10801
RUN Mode Flag
Copying
(n + 8 bit 01)
completed
10005
Memory Download Bit
(n bit 05)
Memory Load Com-
10804
pleted Flag (n + 8 bit 04)
b
25313
Always ON Flag
25506
Equals Flag
42
MOV(21)
RSET
XFER(70)
a
10806
10804
10005
Memory Load
Memory Load
Enabled Flag
Completed Flag
(n + 8 bit 06)
(n + 8 bit 04)
DIFU(13)
CLC(41)
ADD(30)
c
CMP(20)
d
END(01)
#3000 stored in DM 5000 at startup. DM 5000 is
the pointer to the storage area.
#3000
Storage
DM 5000
pointer
Memory Load Completed Flag (IR 10804) reset at
Memory Load
startup or when c is ON and d is OFF.
10804
Completed Flag
(n + 8 bit 04)
Also, contents of 120 words of data starting at the
#0120
No. of words
address in DM 5000 (initially DM 3000) are copied
Storage
#DM 5000
to DM 0000 to DM 0119.
pointer
DM 0000
First word
for cam data
storage
If the data to be downloaded has been copied to
DM 0000 to DM 0119, the Cam Positioner Unit is
in RUN mode, downloading is enabled, and the
current download has not been completed, the
Memory Download Bit is turned ON to download
the data in DM 0000 to DM 0119 to the Cam
Positioner Unit.
When the download has been completed, the
b
Memory Load Completed Flag (IR 10804) turns
ON and b is turned ON for one scan.
When b turns ON, #0200 is added to the pointer
value in DM 5000 to change the first word for
transfer to DM 0000 to DM 0119.
#0200
DM 5000
Storage
pointer
Change data incam
c turns ON when the pointer value has been
data storage words
changed.
Contents of pointer value in DM 5000 compared to
Storage
DM 5000
#4200 to see if all the data has been downloaded.
pointer
#4200
Download
If DM 5000 contains #4200, d is turned ON and
completed
the download processing is stopped.
Section 4-3

Advertisement

Table of Contents
loading

Table of Contents