138
ifm Programming Manual BasicDisplay CR0452 v03.02 05 / 2018
ifm function elements ifm function elements for the device CR0452
J1939_RX
7724
Unit type = function block (FB)
Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7725
J1939_RX is the easiest method for receiving single frame messages. The message read last on the
CAN bus is returned.
>
Parameters of the inputs
7726
TRUE: execute this function element
FALSE: unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
CAN interface (1...n) depending on the device
PGN = Parameter Group Number
permissible = 0...262 143 = 0x00000000...0x0003FFFF
The PGN = 0 is not used.
>
Parameters of the outputs
7727
Source address of the transmitter
number of the bytes received (0...8)
received data, (1...8 bytes)
feedback of the function block
(possible messages → following table)
Possible results for RESULT:
function block execution completed without error
FB is active – no data received yet
Error: setting is not possible