SubscribeMQTTMessage (FB) ¶ FUNCTION_BLOCK SubscribeMQTTMessage Function block to read C2D messages from Azure IoT Hub via MQTT. InOut: Scope Name Type Initial Comment Input xEnable BOOL TRUE: Subscribes C2D messages pbPayload POINTER TO BYTE Pointer to the receive buffer udiMaxPayloadSize UDINT Maximum size of the receive buffer Inout azureMQTTClient AzureMQTTClient Reference to AzureMQTTClient Output xError BOOL TRUE, if an error occurred xBusy BOOL TRUE, while the topic is subscribed eError MQTT.MQTT_ERROR Error code xReceived BOOL TRUE, if a message has been received (see |pbPayload| ). udiPayloadSize UDINT Length of the received message xSubscribeActive BOOL FALSE FALSE: When there is no active subscription, TRUE: Subscriber is listening
LinTransf (FUN) ¶ FUNCTION LinTransf : REAL Performs a linear transformation The transformation is performed by using the minimum and maximum values of the inputs for a linear approximation of the output value. Hint: there is similiar funtionality with Util.LIN_TRAFO (function block). LinTransf / Util.LIN_TRAFO doenst have any states, so there is no real need to implement this functionality as a function block - function would be sufficient. Util.LIN_TRAFO has been implemented as a function block in the past for historic reason (number of output arguments of functions limited to 1). Implementing LinTransf as a function is simply about bargaining application memory foodprint against application stack usage. InOut: Scope Name Type Comment Return LinTransf REAL Input rIn REAL Input value rInMin REAL Minimum input value rInMax REAL Maximum input value rOutMin REAL Corresponding minimum output value rOutMax REAL Corresponding maximum output value Output xError BOOL Inconsistent inputs
LinTransfClip (FUN) ¶ FUNCTION LinTransfClip : REAL Performs a linear transformation, similiar to LinTransf but avoids error situations by limiting the input rIn to the given input range (rInMin .. rInMax). InOut: Scope Name Type Comment Return LinTransfClip REAL Input rIn REAL Input value rInMin REAL Minimum input value rInMax REAL Maximum input value rOutMin REAL Corresponding minimum output value rOutMax REAL Corresponding maximum output value
LinTransfNormalized (FUN) ¶ FUNCTION LinTransfNormalized : REAL Performs a linear transformation of normalized input (0 .. 100%). See LinTransf InOut: Scope Name Type Comment Return LinTransfNormalized REAL Input rIn REAL Input value rOutMin REAL Corresponding minimum output value rOutMax REAL Corresponding maximum output value Output xError BOOL Inconsistent inputs
Log ¶ Logging related functions are collected in this folder.
RealEquals (FUN) ¶ FUNCTION RealEquals : BOOL Checks if two REAL values do have the same value given an epsilon of 1.0E-37. InOut: Scope Name Type Return RealEquals BOOL Input r1 REAL r2 REAL
RealGreaterEqual (FUN) ¶ FUNCTION RealGreaterEqual : BOOL Checks if r1 >= r2 given an epsilon of 1.0E-37. InOut: Scope Name Type Return RealGreaterEqual BOOL Input r1 REAL r2 REAL
TextListForCombobox_SequenceControlSequences (Text List) ¶
TextListForCombobox_WEEKDAY (Text List) ¶
TextListForCombobox_ValveThermoWarmupState (Text List) ¶