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)
197
Parameters of the inputs
7595
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_START
DWORD
start number of the data object identifier range:
normal frame:
0...2 047 (2
11
)
extended frame:
0...536 870 912 (2
29
)
ID_STOP
DWORD
end number of the data object identifier range:
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)
Parameters of the outputs
7604
Parameter
Data type
Description
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)
MORE_DATA_AVAILABLE BOOL
TRUE:
further
received data available in the FiFo
FALSE:
no further data available in the FiFo
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
250
FA
Error: FiFo is full – data was lost