Download Print this page

Siemens SIMOTION Function Manual page 146

Motion control, output cams and measuring inputs
Hide thumbs Also See for SIMOTION:

Advertisement

Measuring Input TO - Part III
5.2 Fundamentals of Measuring Input technology object
In this case, the measuring input can transfer up to 2 measured value per 1 ms to the TO (that
is, up to 4 in total). The TO can, however, provide the user program with only the first two
measured values via the system variables measuredValue1 and measuredValue2.
counterMeasuredValue1 and counterMeasuredValue2 are each incremented by "1."
In this case, the error condition is signaled synchronously via system variable error and TO
alarm 40009 is output.
Behavior of the count variables counterMeasuredValue1/2
Lost edges can result in the counters counterMeasuredValue1 and counterMeasuredValue2
diverging.
Example: Measurement of rising and falling edges
Processing cycle
clock measuring
input TO
N
N+1
N+2
N+3
N+4
N+5
N+6
N+7
N+8
N+9
N+10
N+11
*Italics: Edge is lost
Hardware-specific aspects
X142 / Lost Edge Counter
X142 has a counter for lost edges (Lost Edge Counter). Up to 7 lost edges are recorded in
one counter. The counter value is transmitted cyclically and can be symbolically interconnected
in the controller. (LEC). Because the LEC only counts lost edges, for example, only the not
measured "rising" edges are counted in measuring mode "only rising edges."
The LEC only counts the edges that are lost on the X142. Edges lost due to scaling of the
servo cycle clock down to TO processing cycle clock are not acquired by the LEC.
The edges lost on the measuring equipment are only signaled via the LEC. That is, they are
not signaled via system variable/TO alarm.
Via an I/O variable, it is possible to access LEC symbolically and evaluate it in the user program.
146
Edges
rising-falling
rising
falling
rising
rising-falling-
falling
rising-falling-
rising
falling
rising
rising-falling-
falling
counterMeasuredValue
1
:
6
6
7
8
8
9
9
10
10
11
11
Output Cams and Measuring Inputs
counterMeasuredValue
2
:
6
6
7
7
8
9
10
11
12
13
14
Function Manual, 04/2014

Hide quick links:

Advertisement

loading