136
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
J1939_SPEC_REQ_MULTI
15033
= J1939 Specific Request Multiframe Message
Unit type = function block (FB)
Unit is contained in the library
ifm_J1939_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
15036
J1939_SPECIFIC_REQUEST requests and receives a specific multiframe message from another
controller.
>
Parameters of the inputs
15037
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
DA
BYTE
J1939 address of the requested device
>
Parameters of the outputs
15038
Parameter
Data type
Description
PRIO
BYTE
message priority (0…7)
LEN
WORD
number of data bytes to be transmitted
allowed = 1...1 785 = 0x0001...0x06F9
DATA
ARRAY [0..1784] OF BYTE
Received data (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