[focas] FOCAS — Modal codes + overrides #327
Reference in New Issue
Block a user
Delete Branch "auto/focas/F1-c"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two new fixed-tree subfolders per FOCAS device, mirroring the Status/ + Production/ pattern from f1a/f1b:
Modal/—MCode,SCode,TCode,BCode(Int16, ViewOnly) read viacnc_modal(type=100..103).Override/—Feed,Rapid,Spindle,Jog(Int16, ViewOnly) read viacnc_rdparamagainst per-device-configurable parameter numbers (FocasDeviceOptions.OverrideParameters, defaults 6010/6011/6014/6015 — MTB-specific). WhenOverrideParametersis null, the entire subfolder is omitted; when an individual field's parameter is null, just that field is omitted.FocasModalInfo/FocasOverrideInfo/FocasOverrideParametersrecords.IFocasClient.GetModalAsyncandGetOverrideAsync(default-null).FwlibFocasClientimplementation with newTryReadInt16Paramhelper.FwlibNative.cs— newcnc_modalP/Invoke +ODBMDLstruct.ReadAsyncdispatch follow the established f1a/f1b pattern.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.FOCAS— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests— 217 / 217 passed (6 new inFocasModalOverrideFixedTreeTests: discovery shape, Override-omission paths, cached reads, Bad before first refresh, disconnectedFwlibFocasClientshort-circuit)🤖 Auto-generated by the Mode-B execution loop. Closes #259.
Closes #259