105
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
J1939_x_RESPONSE
9399
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
2299
J1939_x_RESPONSE handles the automatic response to a request message.
This FB is responsible for the automatic sending of messages to "Global Requests" and "Specific
Requests". To do so, the FB must be initialised for one cycle via the input CONFIG.
The parameters PG, PF, PS, RPT and the address of the data array SRC are assigned to the FB.
► To the source address SRC applies:
Determine the address by means of the operator ADR and assigne it to the FB!
► In addition, the number of data bytes to be transmitted is assigned.
>
Parameters of the inputs
451
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> Function block inputs are not active
> Function block outputs are not specified
CONFIG
BOOL
TRUE (in the 1st cycle):
configure data object
FALSE:
during further processing of the program
PG
BYTE
Data page
Value of defined PGN (Parameter Group Number)
allowed = 0...1 (normally = 0)
PF
BYTE
PDU format byte
Value of defined PGN (Parameter Group Number)
PDU1 (specific)
= 0...239
PDU2 (global)
= 240...255
PS
BYTE
PDU specific byte
Value of defined PGN (Parameter Group Number)
If PF = PDU1
PS = DA (Destination Address)
(DA = J1939 address of external device)
If PF = PDU2
PS = GE (Group Extension)
SRC
DWORD
start address in source memory
Determine the address by means of the operator ADR and
assigne it to the FB!
LEN
WORD
number (> 1) of the data bytes to be transmitted
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......