139
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
PHASE
20443
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
361
PHASE reads a pair of channels with fast inputs and compares the phase position of the signals.
Maximum input frequency
→
data sheet.
This FB compares a pair of channels with fast inputs so that the phase position of two signals towards
each other can be evaluated. An evaluation of the cycle period is possible even in the range of
seconds.
For frequencies lower than 15 Hz a cycle period or phase shift of 0 is indicated.
>
Parameters of the inputs
528
Parameter
Data type
Description
INIT
BOOL
FALSE
TRUE (edge):
unit is initialised
FALSE:
during further processing of the program
CHANNEL
BYTE
Number of the input channel pair
0 = channel pair 0 = inputs IN08 + IN09
1 = channel pair 1 = inputs IN10 + IN11
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.
>
Parameters of the outputs
363
Parameter
Data type
Description
C
DWORD
period duration of the first input's signal of the channel pair in [µs]
P
INT
angle of the phase shaft
valid measurement: 1...358 °
ET
TIME
Time elapsed since the last positive edge at the second pulse input of
the channel pair
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......