FB_TempCtrlAdaptFm33xx_TcPfw()
The I/O data of FM3312 or FM3332 fieldbus modules are adapted to the I/O structures of the library.
This function block must be called in the application. It organizes internally the complete temperature control.
Syntax
VAR_INPUT
FM_Input : POINTER TO ST_TcPfw_FM3332_Input;
ZoneIdx : INT;
FirstFmIdx: INT;
LastFmIdx : INT;
END_VAR
VAR_OUTPUT
Error : BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
FM_Input | POINTER TO ST_TcPfw_FM3332_Input | The address of a single variable or an array of type ST_TcPfw_FM3332_Input. |
ZoneIdx | INT | The index of the zone to which the process image is to be assigned. |
FirstFmIdx | INT | The first index of the process image provided as FM_Input. |
LastFmIdx | INT | The last index of the process image provided as FM_Input. |
Outputs
Name | Type | Description |
---|---|---|
Error | BOOL | Any problems with call parameters or zone parameters are signaled here. |
Behavior of the function block:
If one of the call parameters is outside the permissible range, this is reported with Error. Furthermore, Error is reported if the call parameters are correct but the addressed zone has an invalid setting in aaaPfwTempMparamFromHmi[ZoneIdx].TermChannel in its parameters.
Two modes can be used here:
- If in FM_Input the address of the only ST_TcPfw_FM3332_Input process image of the application or within an array the address of the process image responsible for this zone is provided, the index (1..32) of the input in the process image must be specified as TermChannel.
- If in FM_Input the address of the first ST_TcPfw_FM3332_Input process image of an array is provided, the index of the input in the process image array is to be specified as TermChannel. This index is 1..32 for the inputs of the first module, 33..64 for the inputs of the second module and so on.
Notice | |
The same image is used for modules with less than 32 inputs. The channels not implemented in the module's hardware then remain unused, but are counted when determining the input index as described above. Otherwise the data of the ST_TcPfw_FM3332_Input process image is converted to the ST_TcPfw_TempCtrlInput process image of the zone:
|