@@ -19,6 +19,16 @@ public static class FocasStatusMapper
|
||||
public const uint BadTimeout = 0x800A0000u;
|
||||
public const uint BadTypeMismatch = 0x80730000u;
|
||||
|
||||
/// <summary>
|
||||
/// OPC UA <c>BadUserAccessDenied</c>. Surfaced when the CNC reports
|
||||
/// <c>EW_PASSWD</c> (parameter-write switch off, MDI mode required, etc.) — the
|
||||
/// deployment must escalate the operator's session to satisfy the write gate.
|
||||
/// Plan PR F4-d will land the unlock workflow that lets operators flip the gate
|
||||
/// from the OPC UA side; F4-b just maps the status code so clients can branch
|
||||
/// on it. (Plan PR F4-b, issue #269.)
|
||||
/// </summary>
|
||||
public const uint BadUserAccessDenied = 0x801F0000u;
|
||||
|
||||
/// <summary>
|
||||
/// Map common FWLIB <c>EW_*</c> return codes. The values below match Fanuc's published
|
||||
/// numeric conventions (EW_OK=0, EW_FUNC=1, EW_NUMBER=3, EW_LENGTH=4, EW_ATTRIB=7,
|
||||
@@ -37,7 +47,7 @@ public static class FocasStatusMapper
|
||||
7 => BadTypeMismatch, // EW_ATTRIB
|
||||
8 => BadNodeIdUnknown, // EW_DATA — invalid data address
|
||||
9 => BadCommunicationError, // EW_PARITY
|
||||
11 => BadNotWritable, // EW_PASSWD
|
||||
11 => BadUserAccessDenied, // EW_PASSWD — parameter-write switch off / unlock required (F4-d)
|
||||
-1 => BadDeviceFailure, // EW_BUSY
|
||||
-8 => BadInternalError, // EW_HANDLE — CNC handle not available
|
||||
-9 => BadNotSupported, // EW_VERSION — FWLIB vs CNC version mismatch
|
||||
|
||||
Reference in New Issue
Block a user