9.5.1 Using API to Retrieve Faults
Faults can also be retrieved in API using the getFault_*() (regular) or getStickyFault_*()
(sticky) methods on the device object. This can be useful for diagnostics or error handling.
Java
var
faulted
=
m_cancoder.getFault_BadMagnet().getValue();
if
(faulted) {
// do action when bad magnet fault is set
}
9.5. Device Faults
Phoenix Pro
67
Need help?
Do you have a question about the Phoenix Pro and is the answer not in the manual?