141
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
J1939_RX_MULTI
7736
= J1939 RX multiframe message
Unit type = function block (FB)
Unit is contained in the library
ifm_J1939_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7741
J1939_RX_MULTI enables receipt of multi-frame messages.
>
Parameters of the inputs
7743
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
PGN
DWORD
PGN = Parameter Group Number
permissible = 0...262 143 = 0x00000000...0x0003FFFF
The PGN = 0 is not used.
>
Parameters of the outputs
7744
Parameter
Data type
Description
SA
BYTE
Source address of the transmitter
PRIO
BYTE
message priority (0…7)
LEN
WORD
number of the bytes received
permissible values = 0...1 785 = 0x0000 0000...0x0000 06F9
DATA
ARRAY [0..1784] OF BYTE
data to be sent (1...1785 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
242
F2
Error: setting is not possible