Figure 2.9:32-Bit Counter Function Block; Table 2.10:Counter Clock Source Control Bit; Table 2.11:Counter Internal Clock Control Bit - Advantech UNO-2050G User Manual

Lx800 500mhz automation computer with 2 x lan, 2 x rs-232, 2 x isolated rs-232/422/485,16 x isolated di/o
Table of Contents

Advertisement

32-bit Counter Function Block (CTR32Set=1)
DI5
CTR1Gate
DI7
100KHz
10KHz
1KHz
100Hz
S1 S0
Counter Clock Source
There are two clock sources available for the user counters by setting
counter clock control bits - CTR0CLKSet and CTR1CLKSet.
Table 2.10: Counter Clock Source Control Bit
CTR0CLKSet
CTR1CLKSet
Counter Internal Clock
There are four frequency options to choose according to applications, and
it's set by internal clock control bits - S0 and S1.
Table 2.11: Counter Internal Clock Control Bit
S1
0
0
1
1
UNO-2050G User Manual
CTR1GateSet
CTR1GateSet=1
Gate
CTR1GateSet=0
CTR1CLKSet
CTR1CLKSet=1
CLK
CTR1CLKSet=0
Figure 2.9: 32-bit Counter Function Block
0
Internal clock (default)
1
External clock from digital input 6 (DI6) channel
0
Internal clock (default)
1
External clock from digital input 7 (DI7) channel
S0
0
1
0
1
Out
Cascaded
32-bit
Counter
Time Base
100 KHz (default)
10 KHz
1 KHz
100 Hz
18
CTR1OutSet
CTR1OutSet=1
DO7
Output to DO6
CTR1OutSet=0
Disable
CTR1OUT
CTR1IntSet
CTR1OutSet=0
Diable Interrupt
Interrupt Circuit
CTR1OutSet=1
Enable Interrupt
CTR1F

Advertisement

Table of Contents
loading

Table of Contents