Increment
Version 1.8
function Increment(symbol: Symbol | undefined | null, maxValue?: number | null): void
Version 1.10
function Increment(ctx: TcHmi.SelectableRequired<TcHmi.Context, 'success' | 'error'>, symbol: TcHmi.Symbol<number> | null, maxValue?: number | null, stepWidth?: number | null): void
The Increment function counts a numerical value in a binding upward in steps of a specified step size.
Parameter
Name | Type | Description |
---|---|---|
ctx Available from version 1.10 | Context object Does not need to be specified by the user when used in a trigger or function expression. In this case the transfer and the evaluation is done by the corresponding parser. Is used by the caller to indicate success or failure to the framework during execution. If the function is used directly in JavaScript/TypeScript, the context object must be passed in the call and evaluated if necessary. | |
symbol | The value to be incremented. The value must be specified as a binding to a symbol. | |
maxValue | A maximum value that may not be exceeded. | |
stepWidth | The step size with which the value is to be incremented. |
Return value
Type | Description |
---|---|
void | No return value. |
NuGet package: Beckhoff.TwinCAT.HMI.Functions
NuGet packages are available from version 1.12. |
Available from 1.8 |