EasyManua.ls Logo

IFM Electronic CR0403 - Page 134

IFM Electronic CR0403
233 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
134
ifm Programming Manual ecomatmobile BasicController (CR0403) Runtime System V03.02 2015-04-01
ifm function elements ifm function elements for the device CR0403
>
CANOPEN_GETERRORREGISTER
7915
= Get error register
Unit type = function block (FB)
Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
7917
CANOPEN_GETERRORREGISTER reads the error registers 0x1001 and 0x1003 from the controller.
>
Parameters of the inputs
7918
Parameter
Data type
Description
EXECUTE BOOL := FALSE FALSE TRUE (edge):
execute function element once
otherwise: function element is not active
A function element already started is processed.
CHANNEL BYTE CAN interface (1...n) depending on the device
Reset_1001
(optional use of the parameter)
BOOL := FALSE TRUE: Reset error register 0x1001
FALSE: function element is not executed
Reset_1003
(optional use of the parameter)
BOOL := FALSE TRUE: Reset error register 0x1003
Set number of entries to 0
FALSE: function element is not executed
The inputs remain unchanged.
>
Parameters of the outputs
7919
Parameter
Data type
Description
ER BYTE Content of the error register 0x1001
ERROR_FIELD ARRAY [0..MAXERR] OF
DWORD
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
RESULT BYTE feedback of the function block
(possible messages → following table)
Possible results for RESULT:
Value
dec | hex
Description
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

Table of Contents