App-29
IM 04L51B01-01EN
Appendix
App
Appendix 7 ComputationExamplesUsingPulse
Input
Example1:PulseSumValue
Sum the pulses applied to channel 0001.
Number of pulses
per scan interval
Pulse sum value
or
Pulse input
Scan interval
Time
(Sum)
0001
TLOG.SUM
TLOG.PSUM
Expression
Assign the computation channel and set the expression. Set the span lower/upper limit and
unit according to the application.
Channel Expression Description
A001 TLOG.SUM(0001) Sum of the number of pulses per scan interval
TLOG.PSUM(0001) Sum of the number of pulses per scan interval
(Only the input channels of GX90XP pulse input modules)
Example2:NumberofPulsesperMinute
With the scan interval set to 1 s,
1
count the pulse signal applied to 0001, and calculate and
display the number of pulses per minute.
1 This computation example is not possible for scan intervals faster than 1 s.
Number of pulses
per scan interval (1 s)
Number of pulses
per minute
Pulse input
Scan interval (1 s)
Time
(Moving average over a minute)
A001
A002
(60x)
Expression
Assign the computation channel and set the expression. Set the span lower/upper limit and
unit according to the application.
Channel Expression Description
A001 0001 Number of pulses input to 0001
A002 A001*K001 Number of pulses per minute
Constant Value Description
K001 60 Coefficient for converting the number of pulses per second
to the number of pulses per minute
Channel Rolling average Description
A001 Sampling interval: 1s
Number of samples: 60
Moving average over a minute
Channel
The computation is performed in order from the channel with the smallest channel number in
one scan interval.
Use a channel of a channel number larger than that of the channel counting the number of
pulses per second for the computation channel that is to calculate the number of pulses per
minute.