
INCLINATION SENSOR
CR2101
PAGE
36
■
Function:
CR2101
■
Library:
CR2101.lib
■
Purpose:
Sets parameters and reads
the configuration and measured
values of the 2-axis inclination sensor
CR2101
■
Parameter
Name
Data type
Description
Inputs
ENABLE
BOOL
TRUE:
function processing
INIT
BOOL
TRUE:
function initialisation
FALSE: cyclical function call
NODE_ID
BYTE
Node identifier
CFG_READ
BOOL
TRUE:
read the current configuration of the inclination sensor
CFG_WRITE
BOOL
TRUE:
write the current configuration of the inclination sensor
CFG_DATA
DWORD
Address of the configuration data (data structure)
RX_TYPE
BYTE
Receive transmission type (default = 0)
SYNC
BOOL
CANopen synchronisation cycle
(system variable COB_SYNC)
IO_DATA
DWORD
Address of the input/output data (data structure)
Outputs
CFG_RESULT
BYTE
1
=
configuration
read or written successfully
2
=
configuration
not yet read or written
3
=
configuration cannot be read or written
(missing or incorrect node ID or faulty device)
IO_RCV
BOOL
True:
for one cycle if new data were transmitted
CR2101
ENABLE
CFG_RESULT
INIT
IO_RCV
NODE_ID
CFG_READ
CFG_WRITE
CFG_DATA
RX_TYPE
SYNC
IO_DATA
If not described otherwise, a "FALSE" signal with boolean data types is always the negation of the
described "TRUE" signal.