Timer Logic Commands
Overview
The custom logic editor uses the following timer commands:
-
TIMER_SEC -
TIMER_TENTHS -
TIMER_K_SEC -
TIMER_K_TENTHS
TIMER_SEC and TIMER_TENTHS. To enable the timer again, the custom logic file should be uploaded
again. It is recommend that this limitation is considered when designing
and testing the custom logic files when working with timers.TIMER_SEC
The TIMER_SEC command:
-
Counts time in seconds, up to the number of counts specified by a temporary register
-
Calculates the end time in a second temporary register
-
Is enabled by, and reports its counting status to, a third temporary register
|
Arguments |
Representation |
|---|---|
|
3 |
|
|
Input Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Timer preset value |
|
|
|
Bit0 |
|
|
Output Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Calculated end time |
|
|
|
Bit1 |
Timer done:
|
|
Bit2 |
Timer execution in progress Bit reset when timer reaches |
||
|
Bit3 |
|
||
|
Bit4 |
Reserved |
TIMER_TENTHS
The TIMER_TENTHS command:
-
Counts time in tenths of seconds, up to the number of counts specified by a temporary register
-
Calculates the end time in a second temporary register
-
Is enabled by, and reports its counting status to, a third temporary register
TIMER_TENTHS command is 10. For example, if the required value is 6 seconds,
the input value should be multiplied by a factor of 10, meaning the
input value provided should be 60 seconds.|
Arguments |
Representation |
|---|---|
|
3 |
|
|
Input Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Timer preset value |
|
|
|
Bit0 |
|
|
Output Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Calculated end time |
|
|
|
Bit1 |
Timer done:
|
|
Bit2 |
Timer execution in progress Bit reset when timer reaches |
||
|
Bit3 |
|
||
|
Bit4 |
Reserved |
TIMER_K_SEC
The TIMER_K_SEC command:
-
Counts time in seconds, up to the number of counts specified by a constant value
-
Calculates the end time in a temporary register
-
Is enabled by, and reports its counting status to, a second temporary register
|
Arguments |
Representation |
|---|---|
|
3 |
|
|
Input Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Timer preset value |
|
|
|
Bit0 |
|
|
Output Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Calculated end time |
|
|
|
Bit1 |
Timer done:
|
|
Bit2 |
Timer execution in progress Bit reset when timer reaches |
||
|
Bit3 |
|
||
|
Bit4 |
Reserved |
TIMER_K_TENTHS
The TIMER_K_TENTHS command:
-
Counts time in tenths of seconds, up to the number of counts specified by a constant value
-
Calculates the end time in a temporary register
-
Is enabled by, and reports its counting status to, a second temporary register
|
Arguments |
Representation |
|---|---|
|
3 |
|
|
Input Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Timer preset value |
|
|
|
Bit0 |
|
|
Output Argument |
Type |
Range/Bit |
Description |
|---|---|---|---|
|
|
|
0–65,535 |
Calculated end time |
|
|
|
Bit1 |
Timer done:
|
|
Bit2 |
Timer execution in progress Bit reset when timer reaches |
||
|
Bit3 |
|
||
|
Bit4 |
Reserved |