RcpAutoUpdate
function RcpAutoUpdate(symName: string, symNewValue: any, symRM: string, symDefValue: any)
The function RcpAutoUpdate will teach the active temporary recipe ActRcpData
. The function will verify if DataValidPlc
variable in FB_PlcStateToHmi
function block is TRUE to make sure only a valid state is stored in the recipe.
Parameter
Name | Type | Description |
---|---|---|
symName | string | Symbol name of the symbol to update in the recipe. Irrespective of the symbol name passed in this parameter, the complete |
symNewValue | any | The value passed in this parameter has no effect because the recipe will directly read the value from the PLC. |
symRM | string | This must be ‘R’ and no other types of recipes are supported. |
symDefValue | any | Default value if the symbol is added to the recipe type. This is only used in the engineering environment and is not possible after publishing the project. |
Return value
Type | Description |
---|---|
void | No return value. |