FB_Monitoring
Implements a monitoring function for analog signals. The threshold values for monitoring can be set variably via the HMI object.
Syntax:
FUNCTION_BLOCK FB_Monitoring EXTENDS FB_Base
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_Monitoring | ||||
AttachableMdInterface | Get | <Local> | Interface to the machine data component | |
AutoClearAlarms | BOOL | Get, Set | FALSE | Triggered alarms are automatically cleared after the cause has been eliminated. |
EnableAlarms | BOOL | Get, Set | FALSE | Falling below/exceeding the limit triggers pre-implemented alarms. |
Input | Get, Set | NULL | Interface of the analog signal to be read | |
Value | LREAL | Get, Set | 0 | Returns the scaled analog value. Can be set if no input has been assigned. |
FB_Base | ||||
BaseState | Get | eNotHandled | Initialization state of the class instance. | |
Error | BOOL | Get | FALSE | Class is in an error state. |
ResultMessage | Get | - | Access to the class-internal EventLogger. | |
[ | STRING | Get | <SourceName> |
|
Methods
Name | Description |
---|---|
Reset() | Resets the error state of the class. |
FB_Base | |
SetHMI( | General assignment method for an FB_BaseHmi extending class. |
[ | Extracts the first part of the instance path as an object namespace. |
[ | Extracts the last part of the instance path as the object name. |
Possible events
ID | Description | Alarm/Message |
---|---|---|
300x | Exceeding/falling below the set tolerances | Alarm |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_Monitoring | Standard interface on FB_Monitoring |
I_AttachableMdInterface | Interface for containerless machine data components |
I_OneTaskInterface | Runtime interface for a PLC task |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.42 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.6.0) |