Skip to content
Fourohtwo

detect.halowerk.com/v1/F-A-NIGHT-OS-PLC-TIMERS/iec61131-boolean-timer-scan-state

Returns exact sampled Q/ET output and persistent timer states after interrupted on/off delays and nonretriggerable pulses, without interacting with any controller or device, for an offline PLC timer-fixture author.

BaseAnswering
POSThttps://detect.halowerk.com/v1/F-A-NIGHT-OS-PLC-TIMERS/iec61131-boolean-timer-scan-state

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/F-A-NIGHT-OS-PLC-TIMERS/iec61131-boolean-timer-scan-state", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"plc_timers":{"blocks":[{"kind":1,"preset_ms":10}],"claim":1,"scans":[{"inputs":[false],"time_ms":0},{"inputs":[true],"time_ms":5},{"inputs":[true],"time_ms":10},{"inputs":[true],"time_ms":15},{"inputs":[false],"time_ms":16}]}}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "plc_timers": {
      "blocks": [
        {
          "kind": 1,
          "preset_ms": 10
        }
      ],
      "claim": 1,
      "scans": [
        {
          "inputs": [
            false
          ],
          "time_ms": 0
        },
        {
          "inputs": [
            true
          ],
          "time_ms": 5
        },
        {
          "inputs": [
            true
          ],
          "time_ms": 10
        },
        {
          "inputs": [
            true
          ],
          "time_ms": 15
        },
        {
          "inputs": [
            false
          ],
          "time_ms": 16
        }
      ]
    }
  }
}