API Reference v9.2.0

Warningsclass

Module: ZaberMotionAscii

Class used to check and reset warnings and faults on device or axis.

The following examples illustrate how you can obtain an instance of this type:

Example 1
Example 2
import ZaberMotionAscii

let connection = try await Connection.openSerialPort(portName: "COM3")
let device = try connection.getDevice(deviceAddress: 1)
let warnings = device.warnings
import ZaberMotionAscii

let connection = try await Connection.openSerialPort(portName: "COM3")
let device = try connection.getDevice(deviceAddress: 1)
let axis = try device.getAxis(axisNumber: 1)
let warnings = axis.warnings
Related Guides:

Methods

m

clearFlags()

asyncthrows
try await warnings.clearFlags()
Clears (acknowledges) current warnings and faults on axis or device and returns them.
Return Value
Set<String> Warnings and faults before clearing. Refer to WarningFlags to check a particular flag.
m

getFlags()

asyncthrows
try await warnings.getFlags()
Returns current warnings and faults on axis or device.
Return Value
Set<String> Retrieved warnings and faults. Refer to WarningFlags to check a particular flag.