FB_CheckDemoMode

A FB of this type can be instantiated and used by the PLC application to scan the fieldbus configuration. It reports on fieldbuses with special features such as real-time performance or USB support.
Syntax:
FUNCTION_BLOCK FB_CheckDemoMode
Properties
Name | Type | Description |
---|---|---|
DemoMode | BOOL | A TRUE after scanning the fieldbus configuration has one of the following causes: There is no fieldbus configured with real-time performance. ForceDemoMode=TRUE and ForceNonDemoMode=FALSE. |
EtC_detected | BOOL | A TRUE after scanning the fieldbus configuration signals that the configuration provides for an EtherCAT fieldbus. |
ForceDemoMode | BOOL | With a TRUE the DemoMode can be forced. |
ForceNonDemoMode | BOOL | With a TRUE the NonDemoMode can be forced. |
NonDemoMode | BOOL | A TRUE after scanning the fieldbus configuration has one of the following causes: At least one fieldbus with real-time performance is configured. ForceDemoMode=FALSE and ForceNonDemoMode=TRUE. |
ReScan | BOOL | A TRUE on this property triggers a rescan of the fieldbus configuration. |
RtBus_detected | BOOL | A TRUE after scanning the fieldbus configuration signals that the configuration provides for a fieldbus with real-time performance. |
USB_detected | BOOL | A TRUE after scanning the fieldbus configuration signals that the configuration provides for a USB connection. This typically indicates a control panel. |
Methods
Name | Description |
---|---|
Cyclic | This method is to be called cyclically by the application. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.35 | PC or CX (x64, x86) | Tc3_PlasticFunctions v3.12.4.26 or higher |