150
ifm
System Manual
ecomat
mobile
SmartController (CR2500, CR2502) V05
CAN in the ecomatmobile controller
Use of the CAN interfaces to SAE J1939
8.9.2
Function J1939_x_RECEIVE
x = number 1...n of the CAN interface (depending on the device,
→
data sheet)
Contained in the library:
ifm_J1939_x_Vxxyyzz.LIB
Available for:
•
CabinetController:
CR0303
•
ClassicController: CR0020, CR0505
•
ExtendedController:
CR0200
•
SafetyController: CR7020, CR7021, CR7200, CR7201, CR7505, CR7506
•
SmartController: CR2500, CR2502
•
PDM360 smart: CR1070, CR1071
Function symbol:
J1939_x_RECEIVE
ENABLE
RESULT
CONFIG
DEVICE
PG
LEN
PF
PS
DST
RPT
LIFE
Description
J1939_x_RECEIVE serves for receiving one individual message or a block of messages.
To do so, the function 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. The
address must be determined via the function ADR.
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 function output LEN.
If RESULT = 3, no valid messages have been received in the indicated time window (LIFE * RPT).
NOTE
This block must also be used if the messages are requested using the functions J1939_..._REQUEST.
Содержание Ecomat 100 ecomatmobile SmartController CR2500
Страница 1: ...System Manual SmartController CR2500 CR2502 CoDeSys V2 3 Target V05 7390667 00 03 2009 ...
Страница 6: ......
Страница 282: ......