78
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
CANx_MASTER_SEND_EMERGENCY
13195
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_CR0301_CANopenMaster_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
2015
CANx_MASTER_SEND_EMERGENCY transmits application-specific error states. The FB is called if
the error status is to be transmitted to other devices in the network.
If application-specific error messages are to be stored in the object directory,
CANx_MASTER_EMCY_HANDLER
(
) must be called
after
(repeatedly) calling
CANx_MASTER_SEND_EMERGENCY.
>
Parameters of the inputs
2016
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
ERROR
BOOL
Using this input, the information whether the error associated to the
configured error code is currently present is transmitted.
FALSE
TRUE (edge):
sends the next error code
if input was not TRUE in the last second
TRUE
FALSE (edge)
AND the fault is no longer indicated:
after a delay of approx. 1 s:
> zero error message is sent
else:
this function is not executed
ERROR_CODE
WORD
The error code provides detailed information about the detected error.
The values should be entered according to the CANopen specification.
ERROR_REGISTER
BYTE
ERROR_REGISTER indicates the error type.
The value indicated here is linked by a bit-by-bit OR operation with all
the other error messages that are currently active. The resulting value
is written into the error register (index 1001
16
/00) and transmitted with
the EMCY message.
The values should be entered according to the CANopen specification.
MANUFACTURER_ERROR_FIELD
ARRAY [0..4] OF BYTE
Here, up to 5 bytes of application-specific error information can be
entered. The format can be freely selected.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......