ST_BA_ShdObj

List entry of a shading object

TYPE ST_BA_ShdObj :
STRUCT
     lrP1x      : LREAL;
     lrP1y      : LREAL;
     lrP1z      : LREAL;
     lrP2x      : LREAL;
     lrP2y      : LREAL;
     lrP2z      : LREAL;
     lrP3x      : LREAL;
     lrP3y      : LREAL;
     lrP3z      : LREAL;
     lrP4x      : LREAL;
     lrP4y      : LREAL;
     lrP4z      : LREAL;
     lrMx       : LREAL;
     lrMy       : LREAL;
     lrMz       : LREAL;
     lrRads     : LREAL;
     usiBegMth  : USINT;
     usiEndMth  : USINT;
     eType      : E_BA_ShdObjType;
     bVld       : BOOL;
END_STRUCT
END_TYPE

lrP1x .. lrP4z: corner coordinates. Of importance only if the element is a rectangle.

lrMx .. lrMz: center coordinates. Of importance only if the element is a sphere.

lrRads: radius of the sphere. Of importance only if the element is a sphere.

usiBegMth: beginning of the shading period (month)

usiEndMth: 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 (of the following year).

Requirements

Development environment

Target system

required library

required supplement

TwinCAT 2.11 R3/x64

PC/CX

TcBA library from V1.0.0

TS8040 | TwinCAT Building Automation from V1.0.0