CR2101
INCLINATION SENSOR
Programming
General
The inclination sensor must be initialised as CANopen slave with the CANopen
start functions "COP_MSTR_BOOTUP" and "COP_MSTR_MAIN" by the R360
master and set to the state "OPERATIONAL" (LED flashes green, 2 Hz).
Programming function
If the function "CR2101" is integrated into the program, this automatically ensu-
res a continuous updating of the X/Y measured data in the controller. The func-
tion "CR2101" is in the library "CR2101.lib" of the ifm programming software
CODESYS.
If no configuration data are transferred to the inclination sensor, the device ope-
rates with the default values set at the factory.
Before commissioning change the node ID of the inclination sensor set at the fac-
tory, if necessary. Check whether the baud rate of the master and that of the
sensor are identical or set accordingly.
Default values: node ID = 0x20 (= 32)
baud rate = 0x03 (= 125 Kbits/s)
Screen shot detail of the programming platform
Data structures
The CR2101 configuration and measured data are transferred via data structures.
The structure as well as other variable types must be declared in the declaration
part. For configuration data the declaration part can already contain an assign-
ment of values.
34
PAGE