Omron CS1G/H-CPUxx-EV1 Programming Manual page 308

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxx-EV1:
Table of Contents

Advertisement

Cycle Time/High-speed Processing
Programming Example 2
272
Communications
Execution
Port Enabled Flag
condition
a
A20200
Communications
Execution
Port Enabled Flag
condition
b
A20200
A20200
c
This examples show background execution when index register output is
specified, as is possible for MAX(182), MIN(183), and SRCH(181).
Traditional Programming without Background Execution
As shown below, the actual memory map address of the word containing the
maximum value is output to an index register.
Execution condition
a
Programming with Background Execution
With background execution, the actual memory map address of the word con-
taining the maximum value is output to A595 and A596. MOVL(498) is then
used the actual memory map address to the index register.
MAX
MAX(182) execution is started if execution
D00000
condition "a" is ON and the Communications
D00100
Port Enabled Flag is ON.
D00200
Execution condition "b" is turned ON to
SET
enable the next background instructions
b
(here, SUM(184)).
"a" is turned OFF so that MAX(182) will not
RSET
be executed the next cycle.
a
SUM(184) execution is started if
SUM
execution condition "b" is ON and the
D00002
Communications Port Enabled Flag is ON
D00100
(i.e., when MAX(182) execution has been
D00201
completed).
"b" is turned OFF so that SUM(184) will not
RSET
be executed the next cycle.
b
Execution of SUM(184) has been completed
SET
when "c" is ON and the Communications
c
Port Enabled Flag is ON.
"c" is turned ON to enable confirming the
Confirmation of
completion of
completion of SUM(184).
background
execution
MAX(182) is executed completely as
MAX
soon as the execution condition "a"
D00000
turns ON, and the actual memory map
D00100
address of the word containing the
D00200
maximum value is output to IR0
The contents of the I/O memory word
MOV
indicated by the memory map
,IR0
address in IR0 is copied to D00300.
D00300
Section 6-1

Advertisement

Table of Contents
loading

Table of Contents