GetVersion (FUN) ¶ FUNCTION GetVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetVersion VERSION
Aggregates ¶ Function blocks for building automation specific aggregates are collected in this folder. Examples ExampleFancoil3StageAggregate (FunctionBlock) Fancoil3Stage (FunctionBlock) Functionality Control of fan speed dependent on valve position or control deviation FancoilContinuous (FunctionBlock) Application example Device examples Why does CODESYS Building Automation library contain a fan coil unit control strategy, even if some fan coil units come with integrated controller? Functionality Characteristic curve of fan speed
ValveContinuous.Setpoint (PROP) ¶ PROPERTY Setpoint : REAL
ValveThermo.DateTimeProvider (PROP) ¶ PROPERTY DateTimeProvider : Util.IDateTimeProvider
ValveThermo.Enable (PROP) ¶ PROPERTY Enable : BOOL
DateTimeSplit (FB) ¶ FUNCTION_BLOCK DateTimeSplit DateTimeSplit splits a date/time information in ms since the epoch 1.1.1970 00:00:00.0 into the components of a point in time. This function block is intended to be used to visualize WarpClock date/time information during development / debugging. InOut: Scope Name Type Comment Input uliDateTime ULINT Start time in ms since the epoch 1.1.1970 00:00:00.0, default is the epoch Output uiYear Util.YEAR uiMonth Util.MONTH uiDay Util.DAY uiHour Util.HOUR uiMinute Util.MINUTE uiSecond Util.SECOND uiMilliseconds Util.MILLISECOND eWeekday Util.WEEKDAY
MQTT_Bridge (FB) ¶ FUNCTION_BLOCK MQTT_Bridge EXTENDS CBML.LConTo IMPLEMENTS IExponentialBackoff Function Block to connect to the Google Cloud Iot Core over the MQTT Bridge InOut: Scope Name Type Initial Comment Inherited from Input xEnable BOOL TRUE : Activates the defined operation FALSE : Aborts/resets the defined operation LConTo udiTimeOut UDINT Max. operating time for executing [µs], 0: No operating time limit LConTo Output xDone BOOL TRUE : Ready condition reached LConTo xBusy BOOL TRUE : Operation is running LConTo xError BOOL TRUE : Error condition reached LConTo Input sproject_id STRING(255) PROJECT_ID used by Google IoT CORE scloud_region STRING(255) REGION used by Google IoT CORE sregistry_id STRING(255) REGISTRY_ID used by Google IoT CORE sdevice_id STRING(255) DEVICE_ID used by Google IoT CORE sCommonNamePrivateKey STRING Common Nmae of privat key certificate sUseCaseNamePrivateKey STRING Use Case Name of certificats udiJWTExpirationTime UDINT 3600 Expiration Time of the JWT, in [s]. Default 3600 s smqtt_bridge_hostname STRING(255) ‘mqtt.googleapis.com’ Used MQTT Hostname. Default ‘mqtt.googleapis.com’ uimqtt_bridge_port UINT 8883 Used MQTT Bridge port. Default 8883 uiKeepAlive UINT 60 Keep alive Time in [s]. Default 60 s uimaximum_backoff_Time UINT 3200 Maximum Backoff time allowed in [ms]. Default is 3200 ms itfTLSContext NBS.ITLSContext 0 Encapsulates all the data neccecray to handle encrypted tcp connections Static initialization, as shown in the following code snippet. VAR commonName : STRING := 'MyRrasPi' ; ciCertInfo : NBS.CERT_INFO := ( psInfo := ADR ( commonName ), udiSize := LEN ( commonName )); myTLSContext : NBS.TLSContext := ( ePurpose := NBS.PURPOSE.CLIENT_SIDE , sUseCaseName := 'NBSTest' , sTLSVersion := '1.3' , ciCertInfo := ciCertInfo , udiVerificationMode := 2 ); END_VAR itfAsyncProperty NBS.IAsyncProperty 0 Runs the connect process in a own background task. Use this property if the connection setup takes longer than one task cycle (e.g. TLS connections) sSNTPServer REFERENCE TO STRING(255) The IP address or the name of a SNTP server to get the UTC time. If the input is not set, then the local system time will be used. Output eError Error Output Error eMQTTError MQTT.MQTT_ERROR Error from MQTT xConnected BOOL Connected to Cloud Broker Methods: CyclicAction Execute StartAction Structure: CyclicAction (Method) Execute (Method) StartAction (Method)
MQTT_Bridge.CyclicAction (METH) ¶ METHOD CyclicAction InOut: Scope Name Type Input itfTimingController CBML.ITimingController Output xComplete BOOL iErrorID INT
MQTT_Bridge.Execute (METH) ¶ METHOD Execute InOut: Scope Name Type Output xDone BOOL xBackoff BOOL
MQTT_Bridge.StartAction (METH) ¶ METHOD StartAction InOut: Scope Name Type Output xComplete BOOL iErrorID INT