
FG'"%-,&*$'()*+
Section 3-7
,-
3-7-5
Initial Counter Value
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 CS1-PLC can be
used to detect the failing system Power. You can use this Power OFF Interrupt
Task to program a transfer of the Counter Values of every Counter (in CIO) to the
corresponding 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 con-
tinue from where it was at the moment of failing Power.
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.
CNT1:
CNT2:
CNT3:
CNT4:
m+37
m+82
m+127
m+172
m+38
m+83
m+128
m+173
Initial Count Value:
Set between 00000000
H
and FFFFFFFF
H
(Circular Counter)
Set between 80000000
H
and 7FFFFFFF
H
(Linear Counter)
By default the Initial Count Value is equal to 0.
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
W902-E2-03.book Seite 90 Donnerstag, 7. Oktober 2004 2:06 14
Содержание CS1W-CT021
Страница 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Страница 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Страница 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Страница 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Страница 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Страница 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Страница 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...