IFM Electronic CR0403 Programming Manual page 149

Hide thumbs Also See for CR0403:
Table of Contents

Advertisement

ifm
Programming Manual
ecomatmobile
ifm function elements
>
J1939_RX
Unit type = function block (FB)
Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
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
Parameter
ENABLE
CHANNEL
PGN
The PGN = 0 is not used.
>
Parameters of the outputs
Parameter
SA
PRIO
LEN
DATA
RESULT
Possible results for RESULT:
Value
Description
dec | hex
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
BasicController (CR0403) Runtime System V03.02
Data type
BOOL
BYTE
DWORD
Data type
BYTE
BYTE
WORD
ARRAY [0..7] OF BYTE
BYTE
149
ifm function elements for the device CR0403
Description
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
Description
Source address of the transmitter
message priority (0...7)
number of the bytes received (0...8)
received data, (1...8 bytes)
feedback of the function block
(possible messages → following table)
2015-04-01
7724
7725
7726
7727

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents