Delta Electronics AH500 Manual page 480

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

Function block
10.2 High-speed Timers
The setting of high-speed counters is described below.
Number
Counter
Device
0
C200
K1SM200
1
C204
K1SM204
2
C208
K1SM208
3
C212
K1SM212
Example 1: Using C20s in general mode
1. Users have to select the general mode, and enable the timer, that is, they have to write K4 into
K1SM208.
2. C208 is enabled. The interval between the rising edge of a pulse received through X0.2 and the
falling edge of the pulse is measured. The interval is written into C209. (Unit: 0.01
microseconds)
X0.2
Ch ap te r 10 H igh -spe ed C oun ters a nd H igh -sp eed Ti me rs
Mode of measuring time
Setting value
Bit3
Bit2
Enabling
-
the timer
Bit 2: Enabling a timer
Bit 0: (1) 0: General mode (The
interval between the rising edge
of a pulse and the falling edge of
the pulse is measured.)
(2) 1: Cyclic mode (The interval
between the rising edge of a
pulse and the rising edge of the
next pulse is measured.)
t2
t1
C209
General mode
Unit: 0.01 μs
External
signal
X0.0
Bit1
Bit0
Selecting
-
a mode
X0.1
X0.2
X0.3
t
C209
Storage
device
C201
C205
C209
C213
1 0 - 5

Advertisement

Table of Contents
loading

Table of Contents