OperateWtcWithHardware
function OperateWtcWithHardware(FB_CP22xx_1025Hmi: Symbol, CurveEditor: TcHmi.Controls.Plastic.CurveEditorControl, CurrentMode: Symbol): voidThe function OperateWtcWithHardware allows you to set the fix points of the CurveEditor control using a rotary encoder. The function changes the setting mode by pressing the rotary encoder. If the rotary encoder is held down a little longer, the ShiftMode attribute is switched by the CurveEditor control.
Mode | Behavior when turning the rotary encoder |
|---|---|
Index | Selection of the fix points already created. |
Value | Changes the value of the selected fix point. |
Base | Changes the base value of the selected fix point. |
Parameters
Name | Type | Description |
|---|---|---|
FB_CP22xx_1025Hmi | The symbol of data type FB_CP22xx_1025Hmi. | |
CurveEditor | The CurveEditor control that is to be edited using the rotary encoder. | |
CurrentMode [ Optional ] | The symbol for saving the current mode as a number (1 = Index, 2 = Value, 3 = Base). This value can be adjusted during the runtime of the function to change the mode without pressing the rotary encoder. Only required as an option. |
Return value
Type | Description |
|---|---|
void | No return value. |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available: from version 12.12.0
Usage: TC3 Plastic Application HMI projects