AWSIoTUpdateDeviceShadow (FB) ¶ FUNCTION_BLOCK AWSIoTUpdateDeviceShadow EXTENDS CBML.ETrigTo Function block to update the device shadow of the connected device. InOut: Scope Name Type Initial Comment Inherited from Input xExecute BOOL Rising edge: Starts defined operation FALSE : Resets the defined operation after ready condition was reached ETrigTo udiTimeOut UDINT Max. operating time for executing [µs], 0: No operating time limit ETrigTo Output xDone BOOL Ready condition reached ETrigTo xBusy BOOL Operation is running ETrigTo xError BOOL Error condition reached ETrigTo Input pbPayload POINTER TO BYTE Pointer to the device shadow udiPayloadSize UDINT Size of the device shadow pbResponseState POINTER TO BYTE Pointer to the response state udiMaxResposeStateSize UDINT Maximum size of the response state eQoS QOS Quality of service level (QoS) sClientId REFERENCE TO STRING(255) 0 The name of another thing. The input sClientId can be used to access device shadows of other things. if 0, then the clientId from AWSIoTClient will be used. Inout awsIoTClient AWSIoTClient Reference to AWSIoTClient Output eError MQTT.MQTT_ERROR Error code
ExampleVariantsRoomControlFCUSimple (FB) ¶ FUNCTION_BLOCK ExampleVariantsRoomControlFCUSimple Example how to deal with aggregate / plant variants using “external composition” This example function block implements a simple room control strategy using a fan coil unit. There are three variant aspects in ExampleVariantsRoomControlFCUSimple: the heat valve (type) the cool valve (type) the condensate pump (type) Despite the fact there are external elements for those three variant aspects ExampleVariantsRoomControlFCUSimple provides the related output values to help to get a better understanding of functionality during simulation / testing. Of course this example falls a bit short on complexity, but thats on purpose to focus on aggregate / plant variants using “external composition”. Real world FCU room controller need to have inputs / configuration for: energy level setpoints (see EnergyLevelSetpoint) sequence controller settings and manual control (see SequenceControl) fan coil settings and manual control (see FancoilContinuous) InOut: Scope Name Type Initial Comment Input eLevel EnergyLevel Energy level rRoomTemp REAL 22.0 Room temperature itfValveHeat IValveContinuous Heat valve - plugin your specific continuous valve here. itfValveCool IValveContinuous Cool valve - plugin your specific continuous valve here. itfCondensatePump IActuatorOnOff condensate pump - plugin your specific pump on/off here. xReset BOOL FALSE Reset itfDateTimeProvider Util.IDateTimeProvider Globals.g_dtpDateTimeProvider Source for the current date and time information in milliseconds since 1.1.1970 00:00:00.000 Output eModeOut HeatCoolOperationMode HeatCoolOperationMode.INACTIVE Operation mode. rHeatOut REAL Heat valve signal (0..100%). rCoolOut REAL Cool valve signal (0..100%). rFanSpeedOut REAL 0.0 Fan speed (0..100%). xCpumpOut BOOL FALSE Condensate pump. xError BOOL Error indication eErrorID Error Error ID
Visualization ¶ ETrigToTemplate (FunctionBlock) GlobalTextList (GlobalTextList) TextListForCombobox_MQTT_QOS (TextList) TextListForCombobox_QOS (TextList)
ETrigToTemplate (FB) ¶ FUNCTION_BLOCK ETrigToTemplate Template for the FBVisuGenerator. Don’t use this FB in your code. InOut: Scope Name Type Input xExecute BOOL udiTimeOut UDINT Output xDone BOOL xBusy BOOL xError BOOL
Examples_ImagePool (Image Pool) ¶ ID File name Image Link type ExampleAirConditioning1 ExampleAirConditioning1.svg Embedded ExampleAirConditioning2 ExampleAirConditioning2.svg Embedded ExampleRoomAutomation ExampleRoomAutomation.svg Embedded ExampleHeating ExampleHeating.svg Embedded ExampleHotWater ExampleHotWater.png Embedded
GlobalTextList (Text List) ¶
RealLessEqual (FUN) ¶ FUNCTION RealLessEqual : BOOL Checks if r1 <= r2 given an epsilon of 1.0E-37. InOut: Scope Name Type Return RealLessEqual BOOL Input r1 REAL r2 REAL
RealInRange (FUN) ¶ FUNCTION RealInRange : BOOL Checks if a REAL value is in an given range. InOut: Scope Name Type Comment Return RealInRange BOOL Input rIn REAL Value to check rBegin REAL Range begin rEnd REAL Range end
ServiceIndicationValue (FUN) ¶ FUNCTION ServiceIndicationValue : ServiceIndication Build a ServiceIndication InOut: Scope Name Type Return ServiceIndicationValue ServiceIndication Input svciIn BOOL svciUsed BOOL
Time related ¶ Time related functions are collected in this folder. DateTimeToString (Function)