ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
CAN in the PDM360
CAN-FBs on layer 2 (RAW-CAN)
199
Parameters of the inputs
7609
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
unit is executed
FALSE:
unit is not executed
> POU inputs and outputs are not active
CHANNEL
BYTE
CAN interface (1...n) depending on the device
ID
DWORD
number of the data object identifier:
normal frame:
0...2 047 (2
11
)
extended frame:
0...536 870 912 (2
29
)
Extended
(optional use of the parameter)
BOOL TRUE:
extended
frame
FALSE: normal
frame
(preset for ID < 2 048)
ID_Mask
(optional use of the parameter)
DWORD
filter mask for the identifier:
if ID_MASK bit = 0, CAN ID bit may be = 0 or 1
if ID_MASK bit = 1, CAN ID bit must be = ID bit
preset = 0
Parameters of the outputs
7613
Parameter
Data type
Description
MATCHED_ID
DWORD
number of the data object identifier:
normal frame:
0...2 047 (2
11
)
extended frame:
2 048...536 870 912 (2
29
)
DATALENGTHCOUNT
BYTE
number of the data bytes received (0...8)
DATA
ARRAY [0...7] OF BYTE
received data, (1...8 bytes)
RESULT
BYTE
feedback of the function block
(possible messages
following table)
Possibly values for RESULT:
Value
dec | hex
Description
000
00
function block is not active
001
01
function block execution completed without error
005
05
FB is being processed – still receiving
009
09
CAN is not active
242
F2
Error: setting is not possible