ST_BA_ShdObj
List entry for a shading object.
TYPE ST_BA_ShdObj :
STRUCT
rP1x : REAL;
rP1y : REAL;
rP1z : REAL;
rP2x : REAL;
rP2y : REAL;
rP2z : REAL;
rP3x : REAL;
rP3y : REAL;
rP3z : REAL;
rP4x : REAL;
rP4y : REAL;
rP4z : REAL;
rMx : REAL;
rMy : REAL;
rMz : REAL;
rRads : REAL;
diBegMth : USINT;
diEndMth : USINT;
eType : E_BA_ShdObjType;
bVld : BOOL;
END_STRUCT
END_TYPE
rP1x .. rP4z: Corner coordinates. Of importance only if the element is a square.
rMx .. rMz: Center coordinates. Of importance only if the element is a ball.
rRads: Radius of the ball. Of importance only if the element is a ball.
diBegMth: Beginning of the shading period (month).
diEndMth: End of the shading period (month).
eType: Object type, see E_BA_ShdObjType.
bVld: Plausibility of the data: bVld=TRUE: Data are plausible.
Remark about the shading period:
The entries for the months may not be 0 or greater than 12, otherwise all combinations are possible.
Examples:
Start=1, End=1: shading in January.
Start=1, End=5: shading from the beginning of January to the end of May.
Start=11, End=5: shading from the beginning of November to the end of May (the following year).
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.7 | Tc3_BA from v1.1.6.0 |