EasyManua.ls Logo

DCT Syrus - Timer and Counter Examples; Continuous Counter Example; Periodic Counter Example

DCT Syrus
53 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
rev1 – Dec 2013 www.digitalcomtech.com 32
Examples:
Continuous counter:
Set counter 03 on Timer mode. When the counter's value reaches 5 minutes the C03 signal
should transition to true. The counter shall not recycle its value when reaching the 5
minutes or else we will end up with a periodic C03 signal:
To do this we define a timer with threshold value set to 300 seconds with no delta value:
>SGC03TC00300<
Notice the Recycle Flag set to C so the counter does not resets when reaching the threshold.
Now 5 minutes after entering this command we will have the C03 signal transitioning from
false to true.
Periodic counter:
Use a timer to generate a periodic counter signal having a period of 27 minutes. To do this
we define a timer that recycles whenever the count value reaches the threshold. To show
the use of the delta parameter we are not going to count seconds but minutes:
>SGC07TR0002700060<
Now C07 signal transitions to true every 27 minutes. After all events are evaluated the
signal will transition back to false.

Table of Contents