Dynamic Changes - BACnet Client Device
Since IDE 2.5.0.x.
Block Name
BACnet_Client_Device
Description
Using this function block, we can dynamically change the parameters of BACnet Client Device. To write new parameter values, we must first enable the function block using the "Enable" input parameter, then enter a communication channel name(input "Channel") and device name (input "Device"). We can then dynamically change parameters such as the device address, device port, device instance, or device enabling.
For the subsequent commit of the changes we made at the input of the function block, it is necessary to set the "Commit" input parameter to "True" and then a PLC restart is required, which can be invoked using the "RestartRequest" input parameter. To select the PLC restart type, there is an input parameter "RestartFlag" with which we can choose between warm, cold and system restart.
For the current reading of the values at the output of the function block, it is necessary to perform the first write in the case of dynamic changes for image (alarm channels, communication channels and devices).
Inputs
Input | Type | Description |
---|---|---|
Enable | bool | Enable Function Block |
Channel | string | Channel Name |
Device | string | Device Name |
Port | dint | BACnet Port |
Host | string | BACnet Host |
DeviceInstance | uint | Device Instance |
DeviceEnable | bool | Device Enable |
Commit | bool | Used to write values (necessary restart) |
RestartFlag | RestartFlag | Selecting the type of restart (Warm, Cold, System) |
RestartRequest | bool | PLC restart request according to selected restart type |
Outputs
Output | Type | Description |
---|---|---|
PortOut | dint | Actual BACnet Port |
HostOut | string | Actual BACnet Host |
DeviceInstanceOut | dint | Actual Device Instance |
DeviceEnableOut | bool | Actual Device Enabling |
RestartResult | dint | Restart Result |