Beckhoff EP3751-0160 Documentation page 36

3-axis accelerometer
Table of Contents

Advertisement

Commissioning and configuration
Example: Inclination around the y-axis, "Pitch"
Y
+
-
g
Formula:
Implementation in TwinCAT:
IF NOT ((ay = 0) AND (az = 0)) THEN
    pitch := ATAN(ax / (SQRT(ay * ay + az * az))) * 360/(2*3.14);
END_IF
(Note: the IF statement prevents division by zero)
36
Version: 1.0
EP3751-0160

Advertisement

Table of Contents
loading

Table of Contents