135
ifm
Programming Manual BasicDisplay CR0452 v03.02
05 / 2018
ifm function elements
ifm function elements for the device CR0452
J1939_SPEC_REQ
15023
= J1939 Specific Request
Unit type = function block (FB)
Unit is contained in the library
ifm_J1939_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
15026
J1939_SPECIFIC_REQUEST requests and receives a specific message from another controller.
If a multiframe message is requested:
• the FB provides the first 8 bytes of the data
• RESULT indicates an error
>
Parameters of the inputs
15028
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
15029
Parameter
Data type
Description
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
FB execution completed without error
– data is valid
5
05
FB is active
– no data received yet
64
40
Error: receive multiframe
242
F2
Error: setting is not possible