4-15 Clock Pulses - Omron CP1L Operation Manual

Sysmac cp series
Hide thumbs Also See for CP1L:
Table of Contents

Advertisement

Clock Pulses
Saving and Loading Condition Flag Status

4-15 Clock Pulses

172
The CP1-H CPU Units support instructions to save and load the Condition
Flag status (CCS(282) and CCL(283)). These can be used to access the sta-
tus of the Condition Flags at other locations in a task or in a different task.
The following example shows how the Equals Flag is used at a different loca-
tion in the same task.
Task
The Clock Pulses are flags that are turned ON and OFF at regular intervals by
the system.
Name
0.02 s Clock Pulse P_0_02_s
0.1 s Clock Pulse
0.2 s Clock Pulse
1 s Clock Pulse
1 min Clock Pulse
The Clock Pulses are specified with symbols rather than addresses.
Note The CX-Programmer treats condition flags as global symbols beginning with
P_.
Stores result of comparison in the Condition Flags.
CMP
This will enable loading the results to use with
Instruction B.
Saves status of Condition Flags.
CCS
Instruction A
Loads the statuses of the Conditions Flags that
CCL
were stored.
The result of the comparison instruction in the
Instruction B
Equals Flag can be used by Instruction B without
interference from Instruction A.
Symbol
P_0_1s
P_0_2s
P_1s
P_1min
Operation
0.01 s
0.01 s
0.05 s
0.05 s
0.1 s
0.1 s
0.5 s
0.5 s
30 s
30 s
Section 4-15
ON for 0.01 s
OFF for 0.01 s
ON for 0.05 s
OFF for 0.05 s
ON for 0.1 s
OFF for 0.1 s
ON for 0.5 s
OFF for 0.5 s
ON for 30 s
OFF for 30 s

Advertisement

Table of Contents
loading

Table of Contents