Initial Counter Value - Omron CJ1W-CT021 Operation Manual

High-speed counter units
Hide thumbs Also See for CJ1W-CT021:
Table of Contents

Advertisement

Extra Functions
3-7-5

Initial Counter Value

CNT1:
CNT2:
m+37
m+82
m+38
m+83
92
Every Counter is equipped with the Initial Counter Value (double word) in DM. At
a transfer of the DM-settings from the CPU to the Unit (triggered by a Power Up or
Restart of the Unit) the Initial Counter Value is also transferred. The Initial Counter
Value overwrites the Counter Value and becomes the new Counter Value.
The Initial Counter Value is very useful in case the Power of the PLC-system fails.
If the Power of the PLC-system fails, the application that is controlled by the High-
speed Counter Unit will come to rest, and the Counter Values will be reset to zero.
After the system has been Powered Up again, the application has to be reset,
since it has lost the position data with the resetting of the Counter Values.
To overcome this trouble, the Power OFF Interrupt Task of the PLC can be used to
detect the failing system Power. You can use this Power OFF Interrupt Task to pro-
gram a transfer of the Counter Values of every Counter (in CIO) to the correspond-
ing Initial Counter Value of that Counter in DM. The data in DM is retained when
the Power is OFF. Therefore, Powering Up the system again, results in a transfer
of the DM-settings from the CPU to the Unit and the Counter Value is overwritten
by the Initial Counter Value, allowing your application to continue from where it
was at the moment of failing Power.
15 14 13 12 11 10 9
Note
1. The Power OFF Interrupt Task that takes care of saving the Counter Values to
the Initial Counter Values can also be used to detect a Power OFF that has
been done on purpose.
2. The Initial Counter Value can also be set, independent of a Power Failure, to
load the Counter Value with an Initial Value instead of zero.
3. The Present Value stored by the interrupt task must be used considering the
possibility of a power interrupt to the Encoder and interrupt processing execu-
tion timing.
8
7
6
5
4
3
2
1
Set between 00000000
Set between 80000000
By default the Initial Count Value is equal to 0.
0
Initial Count Value:
and FFFFFFFF
(Circular Counter)
H
H
and 7FFFFFFF
(Linear Counter)
H
H
Section 3-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents