144
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
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
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
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
7727
Parameter
Data type
Description
SA
BYTE
Source address of the transmitter
PRIO
BYTE
message priority (0…7)
LEN
WORD
number of the 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)
Possible results for RESULT:
Value
dec | hex
Description
0
00
FB is inactive
1
01
function block execution completed without error
5
05
FB is active
– no data received yet
9
09
CAN is not active
242
F2
Error: setting is not possible
Summary of Contents for BasicController CR0431
Page 228: ...228 10 Notizen Notes Notes...