103
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
J1939_x_RECEIVE
9393
x = 1...n = number of the CAN interface (depending on the device,
→ Data sheet)
Unit type = function block (FB)
Unit is contained in the library
ifm_J1939_
x
_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
2288
J1939_x_RECEIVE serves for receiving one individual message or a block of messages.
To do so, the FB must be initialised for one cycle via the input CONFIG. During initialisation, the
parameters PG, PF, PS, RPT, LIFE and the memory address of the data array DST are assigned.
Once the following parameters have been configured they can no longer be modified in the
running application program: PG, PF, PS, RPT, LIFE, DST.
13790
NOTICE
Risk of inadmissible overwriting of data!
► Create a receiver array with a size of 1 785 bytes.
This is the maximum size of a J1939 message.
► Check the amount of received data:
the value must not exceed the size of the array created to receive data!
► To the destination address DST applies:
Determine the address by means of the operator ADR and assigne it to the FB!
Once RPT has been set it can no longer be modified!
► The receipt of data must be evaluated via the RESULT byte. If RESULT = 1 the data can be read
from the memory address assigned via DST and can be further processed.
>
When a new message is received, the data in the memory address DST is overwritten.
>
The number of received message bytes is indicated via the output LEN.
>
If RESULT = 3, no valid messages have been received in the indicated time window (LIFE • RPT).
This block must also be used if the messages are requested using the FBs J1939_..._REQUEST.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......