IFM Electronic CR0403 Programming Manual page 134

Hide thumbs Also See for CR0403:
Table of Contents

Advertisement

ifm
Programming Manual
ecomatmobile
ifm function elements
>
CANOPEN_GETERRORREGISTER
= Get error register
Unit type = function block (FB)
Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
CANOPEN_GETERRORREGISTER reads the error registers 0x1001 and 0x1003 from the controller.
>
Parameters of the inputs
Parameter
EXECUTE
CHANNEL
Reset_1001
(optional use of the parameter)
Reset_1003
(optional use of the parameter)
>
Parameters of the outputs
Parameter
ER
ERROR_FIELD
RESULT
Possible results for RESULT:
Value
Description
dec | hex
0
00
FB is inactive
1
01
function block execution completed without error
8
08
FB is active – not yet processed
242
F2
Error: setting is not possible
BasicController (CR0403) Runtime System V03.02
Data type
BOOL := FALSE
BYTE
BOOL := FALSE
BOOL := FALSE
Data type
BYTE
ARRAY [0..MAXERR] OF
DWORD
BYTE
134
ifm function elements for the device CR0403
Description
FALSE  TRUE (edge):
execute function element once
otherwise: function element is not active
A function element already started is processed.
CAN interface (1...n) depending on the device
TRUE:
Reset error register 0x1001
FALSE:
function element is not executed
TRUE:
Reset error register 0x1003
Set number of entries to 0
FALSE:
function element is not executed
The inputs remain unchanged.
Description
Content of the error register 0x1001
Content of the error register 0x1003
Index 0 = number of the stored errors
Index 1...MAXERR = stored errors
The most recent error is in index 1
Preset: MAXERR = 5
feedback of the function block
(possible messages → following table)
2015-04-01
7915
7917
7918
7919

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents