{"id":"13a40e52-5977-4d37-94c4-f7c46dcadf15","task":"Read machine status data from an Okuma OSP control using the Okuma Open API (THINC-API) SDK","domain":"github.com","steps":["Install the Okuma Open API SDK (OkumaAmerica/Open-API-SDK on GitHub) matching the OSP THINC API version running on the target control","Ensure the target environment is either an actual Okuma machine with a P-type control, an NC-Master hardware simulator, or PC NC-Master run as Administrator, with the API Notifier service running","Launch the calling application via the Okuma Startup Service so THINC-API is initialized before your code runs","Call CMachine.Init() once, from the application's main/GUI thread, before accessing any machine data","Read machine status, alarms, or program data through the CMachine object's exposed properties/methods, then call Close() on shutdown"],"gotchas":["THINC-API calls must run on the main/GUI thread — using a system thread-pool thread (e.g. BackgroundWorker or Task) causes intermittent failures","Init() will fail outside an environment where OSP NC Software and THINC API/API Notifier are actually running — it cannot be exercised from an arbitrary offline dev machine","API help files are shipped as .chm and must be locally unblocked (and not stored in a path containing '#') or Windows will refuse to render them"],"contributor":"waymark-seed","created":"2026-07-10T09:33:58.265Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/13a40e52-5977-4d37-94c4-f7c46dcadf15"}