Download  Print this page

Counter Modes; Mode A; Mode C; Mode D - Siemens 6ES5-424 Technical Reference Manual

Counter module.
Hide thumbs

Advertisement

Chapter
3
Register Details And Use
3.5 Counter Modes
The AM 9513 can implement numerous counting modes
through software commands. These modes can be selected
by using the proper codes in CM15
-
CM13 and CM7
-
CM5.
For more details on each of the modes including waveform
diagrams, the reader should refer to the AM 9513 data sheet.
Some of the modes do not exist or are not supported by the
6ES5 242 module. Modes that may not be used are: M, P, T, U, W.
The name of each of the modes available is listed below.
Mode
A
B
c
D
E
F
G
H
I
J
K
L
N
0
Q
R
S
v
X
Title
Software triggered with no hardware gating
Software triggered with level gating
Hardware triggered strobe
Rate generator with no hardware gating
Rate generating with level gating
Non-retriggerable one-shot
Software triggered delayed pulse One-shot
Software triggered delayed pulse one-shot with
hardware gating
Hardware triggered delayed pulse strobe
Variable duty cycle rate generator without hardware
.
.
gating
Variable duty cycle rate generator with hardware
gating
Hardware triggered delayed pulse one-shot
Software triggered strobe with level gating and
hardware retriggering
Software triggered strobe with edge gating and
hardware retriggering
Rate generating with Synchronization
Retriggerable one-shot
Selectable reloading source
Frequency shift keying
Hardware Save
3.5.1 Mode A
Counter Register Setup
CM1
5
CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
I
not enabled
Counting Type:
Count once
0
0
0
0
0
0
Reloading:
Load Register
This mode will allow the counter to start counting when an
ARM command is received. The counter will reload from the
Load register and count until TC occurs. Counting will resume
when the ARM command is received again.
3.5.2 Mode B
Counter Register Setup
CM1 5 CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
not enabled
Counting Type:
Count once
L E V E L
0
0
0
Reloading:
Load Register
This mode is the same as mode A with the exception that
i )
the counter will only be allowed to count when the gate input
is in its active state. This allows the user to shut the counting
process off by placing the gate input to an inactive state.
3.5.3 Mode C
Counter Register Setup
CM1 5 CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
not enabled
Counting Type:
Count once
E D G E
0
0
0
Reloading:
Load Register
This mode is again the same as mode A. The difference is
that this mode will only allow the counter to start counting
upon receiving the first active edge from the gate input after
the counter is armed. Once the counting process begins,
other gate input edges are ignored. The counterwill stop at TC.
3.5.4 Mode D
Counter Register Setup
CM1 5 CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
not enabled
Counting Type:
Count repetitivey
0
0
0
0
0
1
Reloading:
Load Register
This mode once started will continuous count to TC then
reload from the Load register and count to TC again. It is
not affected by gate control. It can be used to generate
waveforms whose period, between TCs, is determined by the
value in the Load register.
3.5.5 Mode E
Counter Register Setup
CM1 5 CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
not enabled
Counting Type:
Count once
L E V E L
,
0
0
1
Reloading:
Load Register
This mode is the same as mode D with the exception that
the output will only be enabled while the gate input is in an
active state. This allows you to stop and start the output
waveform by disabling/enabling the gate input.
.
3.5.6 Mode F
Counter Register Setup
CM1 5 CM1 4 CM1 3 CM7 CM6 CM5
Special Function:
not enabled
Counting Type:
Count once
E D G E
0
0
1
Reolading:
Load Register
The counter in this mode, after it is armed, will start counting
when the first gate edge is received. If another gate edge
occurs it will be ignored once the counter is started. The
counter will stop when TC occurs and reload from the
Load register. The counter will remain stopped until the next
gate edge occurs after the counter has stopped.

Advertisement

Table of Contents

Comments to this Manuals

Symbols: 0
Latest comments: