UpdateScope
function UpdateScope(ToggleButtonControl: TcHmi.Controls.Beckhoff.TcHmiToggleButton, AxisPath: string): boolean
The function UpdateScope updates a TcHmiTrendLineChart control with the ID Scope_TrendLineChart and displays axis-specific values depending on the axis type. The axis type is determined via the AxisPath
property. The AxisPath
symbol is checked with the ::fbSpecific::fbNc::Valid
extension. If this value is true
, then this specifies that the axis is of type NC. The TcHmiStateImage control with the ID Scope_StateImage gets the ID of the TcHmiToggleButton control passed as parameter in this function for the State
property. This allows a suitable image to be stored in the TcHmiStateImage control for each axis to be displayed, which is then switched over appropriately.
Parameter
Name | Type | Description |
---|---|---|
ToggleButtonControl | The TcHmiToggleButton control, which is used for switching the axes. | |
AxisPath | The axis path of the axis to be displayed. |
Return value
Type | Description |
---|---|
Values:
|
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available from version 12.6.0
Usage: TC3 Plastic Application HMI projects