FB_Module
The module FBs contains all inputs and outputs of the configured modules from the Workbench Configurator. It is also possible to reconfigure the modules at runtime. You only have to change the parameter and then start the reconfigure process with a rising edge at the bReconfigure INPUT.
Syntax
Definition:
FUNCTION_BLOCK FB_N[n]_M[n]_[Module] 
VAR_INPUT
    [module inputs] 
END_VAR
VAR_OUTPUT
    bError: BOOL;
    ipTcResult: I_TcMessage;
    [module outputs]
END_VAR
 Inputs
 Inputs
| Name | Type | Description | 
|---|---|---|
| Module inputs | 
 | Inputs of the selected module | 
 Outputs
 Outputs
| Name | Type | Description | 
|---|---|---|
| bError | BOOL | Becomes TRUE as soon as an error situation occurs. | 
| ipTcResult | I_TcMessage | Message interface from the TwinCAT 3 EventLogger, which provides details on the return value. | 
| Module outputs | 
 | Outputs of the selected module | 
 Methods
 Methods
| Name | Definition location | Description | 
|---|---|---|
| Local | Method for background communication. The method must be called cyclically. | |
| Local | Reset the module | |
| Local | Optional: Sets the in- outputs to the global HMI structs | 
Requirements
| Development environment | Target platform | Plc libraries to include | 
|---|---|---|
| TwinCAT v3.1.4024.0 | PC or CX (x64, x86) | Tc3_Analytics |