Clock Pulses - Omron CP1H CPU Operation Manual

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Clock Pulses

Saving and Loading Condition Flag Status

4-19 Clock Pulses

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
CMP
CCS
Instruction A
CCL
Instruction B
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.
This will enable loading the results to use with
Instruction B.
Saves status of Condition Flags.
Loads the statuses of the Conditions Flags that
were stored.
The result of the comparison instruction in the
Equals Flag can be used by Instruction B without
interference from Instruction A.
Symbol
0.01 s
0.01 s
P_0_1s
0.05 s
0.05 s
P_0_2s
0.1 s
P_1s
0.5 s
P_1min
Section 4-19
Operation
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
0.1 s
ON for 0.5 s
OFF for 0.5 s
0.5 s
ON for 30 s
30 s
OFF for 30 s
30 s
181

Advertisement

Table of Contents
loading

Table of Contents