{
  "commands": [
    {
      "command": "loadProgram",
      "before": "unloaded",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "start",
      "before": "stopped",
      "after": "running",
      "result": "blocked",
      "diagnostics": []
    },
    {
      "command": "stepInto",
      "before": "paused",
      "after": "paused",
      "result": "blocked",
      "diagnostics": []
    },
    {
      "command": "hold",
      "before": "paused",
      "after": "hold",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "resume",
      "before": "hold",
      "after": "running",
      "result": "blocked",
      "diagnostics": []
    },
    {
      "command": "stepMotion",
      "before": "running",
      "after": "running",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "stop",
      "before": "running",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "resetFault",
      "before": "stopped",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    }
  ],
  "snapshot": {
    "state": {
      "state": "stopped",
      "diagnostics": []
    },
    "runtime": {
      "loaded": true,
      "procedure": "main",
      "pc": 1,
      "callStack": [
        {
          "procedure": "main",
          "pc": 1
        }
      ],
      "scopeStack": [
        {
          "id": "global",
          "variables": {
            "$wait:main:0": 0,
            "$wait:main:1": 0.1
          }
        },
        {
          "id": "main",
          "variables": {}
        }
      ],
      "alarmQueue": [
        {
          "id": "DI99 timeout",
          "message": "DI99 timeout",
          "severity": "warning",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "time": 0.1
        }
      ],
      "trace": [
        {
          "time": 0,
          "kind": "load",
          "procedure": "main",
          "pc": 0,
          "message": "Loaded W2RuntimeTimeout",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "moduleName": "W2RuntimeTimeout"
          },
          "id": 1
        },
        {
          "time": 0,
          "kind": "wait",
          "procedure": "main",
          "pc": 0,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "status": "waiting",
            "elapsed": 0
          },
          "id": 2
        },
        {
          "time": 0,
          "kind": "wait",
          "procedure": "main",
          "pc": 0,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "status": "waiting",
            "elapsed": 0
          },
          "id": 3
        },
        {
          "time": 0,
          "kind": "wait",
          "procedure": "main",
          "pc": 0,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "status": "waiting",
            "elapsed": 0
          },
          "id": 4
        },
        {
          "time": 0.1,
          "kind": "wait",
          "procedure": "main",
          "pc": 0,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "status": "timeout",
            "elapsed": 0.1
          },
          "id": 5
        },
        {
          "time": 0.1,
          "kind": "alarm",
          "procedure": "main",
          "pc": 0,
          "message": "DI99 timeout",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "alarmId": "DI99 timeout",
            "severity": "warning"
          },
          "id": 6
        },
        {
          "time": 0.1,
          "kind": "instruction",
          "procedure": "main",
          "pc": 1,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:10:5",
            "sourceMap": {
              "line": 10,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 7
        },
        {
          "time": 0.1,
          "kind": "wait",
          "procedure": "main",
          "pc": 1,
          "instructionKind": "WAIT",
          "source": {
            "kind": "WAIT",
            "id": "main:WAIT:11:5",
            "sourceMap": {
              "line": 11,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "status": "waiting",
            "elapsed": 0
          },
          "id": 8
        }
      ],
      "currentSource": {
        "kind": "WAIT",
        "id": "main:WAIT:11:5",
        "sourceMap": {
          "line": 11,
          "column": 5
        },
        "procedureId": "main"
      },
      "completed": false
    },
    "motion": {
      "items": [],
      "activeIndex": 0,
      "virtualTime": 0.1
    },
    "io": {
      "time": 0.1,
      "image": {
        "io.di[1]": true,
        "io.di[2]": false,
        "io.di[3]": true,
        "io.di[4]": false,
        "io.di[5]": false,
        "io.di[6]": true,
        "io.di[7]": false,
        "io.di[10]": true,
        "io.ai[2]": 0.75
      },
      "events": [
        {
          "id": 1,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 1,
            "raw": "io.di[1]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 2,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 2,
            "raw": "io.di[2]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 3,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 3,
            "raw": "io.di[3]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 4,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 4,
            "raw": "io.di[4]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 5,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 5,
            "raw": "io.di[5]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 6,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 6,
            "raw": "io.di[6]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 7,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 7,
            "raw": "io.di[7]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 8,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 10,
            "raw": "io.di[10]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 9,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "ai",
            "index": 2,
            "raw": "io.ai[2]"
          },
          "value": 0.75,
          "kind": "script"
        }
      ],
      "diagnostics": [
        {
          "severity": "warning",
          "code": "VC_WAIT_TIMEOUT",
          "message": "Wait timed out after 0.1s",
          "sourceMap": {
            "line": 10,
            "column": 5
          },
          "data": {
            "condition": "io . di [ 99 ] == true"
          }
        }
      ],
      "scripts": []
    },
    "bridge": {
      "pathIds": [],
      "operationIds": [],
      "diagnostics": []
    }
  }
}
