102
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
>
Parameters of the inputs
14945
Parameter
Data type
Description
EXECUTE
BOOL := FALSE
FALSE
TRUE (edge):
execute function element once
otherwise: function element is not active
A function element already started is processed.
CHANNEL
BYTE
CAN interface (1...n) depending on the device
NODE
BYTE
(Node ID) ID of the node
allowed = 1...127 = 0x01...0x7F
The COB ID of the SDO is calculated from the node ID + 0x600
IDX
WORD
index in object directory
SUBIDX
BYTE
sub-index referred to the index in the object directory
DATA
DWORD
Address of the data zone for storage of the received data
Input is without function for devices with file system (Linux).
FILE
STRING(80)
Path and file name for storage of the received data in binary format
Input without function for device without file system
(BasicSystem).
MAX_LEN
DWORD
Maximum permitted number of bytes which may be received
SegmentedTransfer
(optional use of the parameter)
BOOL := FALSE
TRUE:
Segmented SDO transfer
FALSE:
SDO block transfer
Timeout
(optional use of the parameter)
TIME := T#10ms
waiting time of the FB for the response
when the time has elapsed, the FB stops waiting.
value = 0: use value from the configuration
>
Parameters of the outputs
14951
Parameter
Data type
Description
LEN
DWORD
number of received data bytes
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
5
05
FB is active
– no data received yet
16
10
Transmission is active as a segmented download
17
11
Transmission is active as a block download
32
20
SDO transmission aborted by client or server
(SDO abort code 0x80)
33
21
TIMEOUT elapsed
64
40
Error: Write pointer outside admissible data range
65
41
Error: File could not be opened
66
42
Error when writing to file
242
F2
Error: setting is not possible