![background image](http://html1.mh-extra.com/html/ifm/basiccontroller-cr0431/basiccontroller-cr0431_programming-manual_3915933168.webp)
168
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
>
Parameters of the inputs
8137
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
CHANNEL
BYTE
number of the input channel pair:
0 = channel pair 0 = inputs I00 + I01
2 = channel pair 1 = inputs I02 + I03
PRESET_VALUE
DINT
counter start value
PRESET
BOOL
FALSE
TRUE (edge):
PRESET_VALUE is loaded to COUNTER
TRUE:
Counter ignores the input pulses
FALSE:
Counter counts the input pulses
RESOLUTION
BYTE
evaluation of the encoder resolution:
01 = counts for every fourth edge (= resolution of the encoder)
02 = counts for every second edge
04 = counts for every rising and falling edge
All other values count as "01".
>
Parameters of the outputs
8138
Parameter
Data type
Description
VALUE
DINT
if RESOLUTION = 1:
VALUE = –536 870 912...536 870 911
(= ¼ area of DINT)
if RESOLUTION = 2:
VALUE = –1 073 741 824...1 073 741 823
(= ½ area of DINT)
if RESOLUTION = 4:
VALUE = –2 147 483 648…2 147 483 647
(= area of DINT)
UP
BOOL
TRUE:
counter counts upwards in the last cycle
FALSE:
counter counts not upwards in the last cycle
DOWN
BOOL
TRUE:
counter counts downwards in the last cycle
FALSE:
counter counts not downwards in the last cycle
RESULT
BYTE
feedback of the function block
(possible messages → following table)
Possible results for RESULT:
Value
dec | hex
Description
0
00
FB is inactive
1
01
FB execution completed without error
– data is valid
2
02
function block is active (action not yet completed)
3
03
function block is active
– valid values not yet available
130
82
channel setting is invalid
138
8A
resolution setting is invalid
Summary of Contents for BasicController CR0431
Page 228: ...228 10 Notizen Notes Notes...