135
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
PERIOD
20606
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
373
PERIOD measures the frequency and the cycle period (cycle time) in [µs] at the indicated channel.
Maximum input frequency
→
data sheet.
This FB measures the frequency and the cycle time of the signal at the selected CHANNEL. To
calculate, all positive edges are evaluated and the average value is determined by means of the
number of indicated PERIODS.
In case of low frequencies there will be inaccuracies when using FREQUENCY. To avoid this,
PERIOD can be used. The cycle time is directly indicated in [µs].
The maximum measuring range is approx. 71 min.
NOTE
For PERIOD only the inputs CYL0...CYL3 can be used.
For PDM360smart: CR1071: all inputs.
Frequencies < 0.5 Hz are no longer clearly indicated!
>
Parameters of the inputs
17818
Parameter
Data type
Description
INIT
BOOL
FALSE
TRUE (edge):
unit is initialised
FALSE:
during further processing of the program
CHANNEL
BYTE
Number of the fast input channel
0...3 for the inputs IN08...IN11
PERIODS
BYTE
Number of periods to be compared
8406
The FB may provide wrong values before initialisation.
► Do not evaluate the output before the FB has been initialised.
We urgently recommend to program an own instance of this FB for each channel to be evaluated.
Otherwise, wrong values may be provided.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......