{
  "commands": [
    {
      "command": "loadProgram",
      "before": "unloaded",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "start",
      "before": "stopped",
      "after": "running",
      "result": "blocked",
      "diagnostics": [
        {
          "severity": "error",
          "code": "VC_STEP_LIMIT_EXCEEDED",
          "message": "Execution exceeded 1 steps"
        }
      ]
    },
    {
      "command": "stepInto",
      "before": "paused",
      "after": "paused",
      "result": "completed",
      "diagnostics": []
    },
    {
      "command": "hold",
      "before": "paused",
      "after": "hold",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "resume",
      "before": "hold",
      "after": "stopped",
      "result": "completed",
      "diagnostics": []
    },
    {
      "command": "stepMotion",
      "before": "stopped",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "stop",
      "before": "paused",
      "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": {}
        },
        {
          "id": "main",
          "variables": {}
        }
      ],
      "alarmQueue": [],
      "trace": [
        {
          "time": 0,
          "kind": "load",
          "procedure": "main",
          "pc": 0,
          "message": "Loaded W2PathEvents",
          "source": {
            "kind": "RUN_PATH",
            "id": "main:RUN_PATH:24:5",
            "sourceMap": {
              "line": 24,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "moduleName": "W2PathEvents"
          },
          "id": 1
        },
        {
          "time": 0,
          "kind": "motion",
          "procedure": "main",
          "pc": 0,
          "instructionKind": "RUN_PATH",
          "source": {
            "kind": "RUN_PATH",
            "id": "main:RUN_PATH:24:5",
            "sourceMap": {
              "line": 24,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "queued": true
          },
          "id": 2
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 1,
          "instructionKind": "RUN_PATH",
          "source": {
            "kind": "RUN_PATH",
            "id": "main:RUN_PATH:24:5",
            "sourceMap": {
              "line": 24,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 3
        },
        {
          "time": 0,
          "kind": "diagnostic",
          "procedure": "main",
          "pc": 1,
          "message": "Execution exceeded 1 steps",
          "diagnostic": {
            "severity": "error",
            "code": "VC_STEP_LIMIT_EXCEEDED",
            "message": "Execution exceeded 1 steps"
          },
          "id": 4
        }
      ],
      "completed": true
    },
    "motion": {
      "items": [
        {
          "id": "mq_1",
          "kind": "path",
          "source": {
            "kind": "path",
            "pathId": "generated_path",
            "instruction": {
              "kind": "RUN_PATH",
              "pathId": "generated_path",
              "sourceMap": {
                "line": 24,
                "column": 5
              }
            },
            "sourceMap": {
              "line": 24,
              "column": 5
            }
          },
          "request": {
            "pathId": "generated_path",
            "startJoints": [
              0,
              0,
              0,
              0,
              0,
              0
            ],
            "segments": [
              {
                "id": "p_home",
                "motion": "MOVEJ",
                "target": {
                  "joints": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                  ],
                  "id": "home"
                },
                "targetId": "home",
                "speed": {
                  "kind": "joint_percent",
                  "value": 0.35000000000000003
                },
                "zone": {
                  "kind": "fine"
                },
                "sourceMap": {
                  "line": 16,
                  "column": 18
                },
                "source": {
                  "type": "cad_curve",
                  "id": "edge_032",
                  "sample_distance": 0.005
                }
              },
              {
                "id": "p_pick",
                "motion": "MOVEJ",
                "target": {
                  "joints": [
                    0.20000000169966334,
                    -0.3500000029744108,
                    0.4500000038242425,
                    0.10000000084983167,
                    -0.20000000169966334,
                    0.300000002549495
                  ],
                  "id": "pick"
                },
                "targetId": "pick",
                "speed": {
                  "kind": "joint_percent",
                  "value": 0.35000000000000003
                },
                "zone": {
                  "kind": "distance",
                  "value": 0.01
                },
                "sourceMap": {
                  "line": 18,
                  "column": 18
                },
                "source": {
                  "type": "cad_curve",
                  "id": "edge_032",
                  "sample_distance": 0.005
                }
              },
              {
                "id": "p_place",
                "motion": "MOVEJ",
                "target": {
                  "joints": [
                    -0.3500000029744108,
                    -0.2500000021245792,
                    0.3500000029744108,
                    -0.2500000021245792,
                    0.1500000012747475,
                    -0.4000000033993267
                  ],
                  "id": "place"
                },
                "targetId": "place",
                "speed": {
                  "kind": "joint_percent",
                  "value": 0.35000000000000003
                },
                "zone": {
                  "kind": "distance",
                  "value": 0.01
                },
                "sourceMap": {
                  "line": 20,
                  "column": 19
                },
                "source": {
                  "type": "cad_curve",
                  "id": "edge_032",
                  "sample_distance": 0.005
                }
              }
            ],
            "events": [
              {
                "id": "event_0",
                "timing": "before",
                "pointId": "p_pick",
                "kind": "io",
                "sourceMap": {
                  "line": 17,
                  "column": 25
                },
                "data": {
                  "statement": "io . do [ 10 ] = true",
                  "tokens": [
                    {
                      "kind": "keyword",
                      "raw": "io",
                      "value": "io",
                      "range": {
                        "start": {
                          "offset": 703,
                          "line": 17,
                          "column": 25
                        },
                        "end": {
                          "offset": 705,
                          "line": 17,
                          "column": 27
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": ".",
                      "value": ".",
                      "range": {
                        "start": {
                          "offset": 705,
                          "line": 17,
                          "column": 27
                        },
                        "end": {
                          "offset": 706,
                          "line": 17,
                          "column": 28
                        }
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "do",
                      "value": "do",
                      "range": {
                        "start": {
                          "offset": 706,
                          "line": 17,
                          "column": 28
                        },
                        "end": {
                          "offset": 708,
                          "line": 17,
                          "column": 30
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "[",
                      "value": "[",
                      "range": {
                        "start": {
                          "offset": 708,
                          "line": 17,
                          "column": 30
                        },
                        "end": {
                          "offset": 709,
                          "line": 17,
                          "column": 31
                        }
                      }
                    },
                    {
                      "kind": "number",
                      "raw": "10",
                      "value": 10,
                      "range": {
                        "start": {
                          "offset": 709,
                          "line": 17,
                          "column": 31
                        },
                        "end": {
                          "offset": 711,
                          "line": 17,
                          "column": 33
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "]",
                      "value": "]",
                      "range": {
                        "start": {
                          "offset": 711,
                          "line": 17,
                          "column": 33
                        },
                        "end": {
                          "offset": 712,
                          "line": 17,
                          "column": 34
                        }
                      }
                    },
                    {
                      "kind": "operator",
                      "raw": "=",
                      "value": "=",
                      "range": {
                        "start": {
                          "offset": 713,
                          "line": 17,
                          "column": 35
                        },
                        "end": {
                          "offset": 714,
                          "line": 17,
                          "column": 36
                        }
                      }
                    },
                    {
                      "kind": "keyword",
                      "raw": "true",
                      "value": "true",
                      "range": {
                        "start": {
                          "offset": 715,
                          "line": 17,
                          "column": 37
                        },
                        "end": {
                          "offset": 719,
                          "line": 17,
                          "column": 41
                        }
                      }
                    }
                  ]
                }
              },
              {
                "id": "event_1",
                "timing": "after",
                "pointId": "p_pick",
                "kind": "wait",
                "sourceMap": {
                  "line": 19,
                  "column": 24
                },
                "data": {
                  "statement": "wait io . di [ 10 ] == true timeout 2 s on_timeout alarm \"pick sensor timeout\"",
                  "tokens": [
                    {
                      "kind": "keyword",
                      "raw": "wait",
                      "value": "wait",
                      "range": {
                        "start": {
                          "offset": 780,
                          "line": 19,
                          "column": 24
                        },
                        "end": {
                          "offset": 784,
                          "line": 19,
                          "column": 28
                        }
                      }
                    },
                    {
                      "kind": "keyword",
                      "raw": "io",
                      "value": "io",
                      "range": {
                        "start": {
                          "offset": 785,
                          "line": 19,
                          "column": 29
                        },
                        "end": {
                          "offset": 787,
                          "line": 19,
                          "column": 31
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": ".",
                      "value": ".",
                      "range": {
                        "start": {
                          "offset": 787,
                          "line": 19,
                          "column": 31
                        },
                        "end": {
                          "offset": 788,
                          "line": 19,
                          "column": 32
                        }
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "di",
                      "value": "di",
                      "range": {
                        "start": {
                          "offset": 788,
                          "line": 19,
                          "column": 32
                        },
                        "end": {
                          "offset": 790,
                          "line": 19,
                          "column": 34
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "[",
                      "value": "[",
                      "range": {
                        "start": {
                          "offset": 790,
                          "line": 19,
                          "column": 34
                        },
                        "end": {
                          "offset": 791,
                          "line": 19,
                          "column": 35
                        }
                      }
                    },
                    {
                      "kind": "number",
                      "raw": "10",
                      "value": 10,
                      "range": {
                        "start": {
                          "offset": 791,
                          "line": 19,
                          "column": 35
                        },
                        "end": {
                          "offset": 793,
                          "line": 19,
                          "column": 37
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "]",
                      "value": "]",
                      "range": {
                        "start": {
                          "offset": 793,
                          "line": 19,
                          "column": 37
                        },
                        "end": {
                          "offset": 794,
                          "line": 19,
                          "column": 38
                        }
                      }
                    },
                    {
                      "kind": "operator",
                      "raw": "==",
                      "value": "==",
                      "range": {
                        "start": {
                          "offset": 795,
                          "line": 19,
                          "column": 39
                        },
                        "end": {
                          "offset": 797,
                          "line": 19,
                          "column": 41
                        }
                      }
                    },
                    {
                      "kind": "keyword",
                      "raw": "true",
                      "value": "true",
                      "range": {
                        "start": {
                          "offset": 798,
                          "line": 19,
                          "column": 42
                        },
                        "end": {
                          "offset": 802,
                          "line": 19,
                          "column": 46
                        }
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "timeout",
                      "value": "timeout",
                      "range": {
                        "start": {
                          "offset": 803,
                          "line": 19,
                          "column": 47
                        },
                        "end": {
                          "offset": 810,
                          "line": 19,
                          "column": 54
                        }
                      }
                    },
                    {
                      "kind": "number",
                      "raw": "2 s",
                      "value": 2,
                      "range": {
                        "start": {
                          "offset": 811,
                          "line": 19,
                          "column": 55
                        },
                        "end": {
                          "offset": 814,
                          "line": 19,
                          "column": 58
                        }
                      },
                      "unit": {
                        "raw": "s",
                        "kind": "time",
                        "siUnit": "s",
                        "normalizedValue": 2
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "on_timeout",
                      "value": "on_timeout",
                      "range": {
                        "start": {
                          "offset": 815,
                          "line": 19,
                          "column": 59
                        },
                        "end": {
                          "offset": 825,
                          "line": 19,
                          "column": 69
                        }
                      }
                    },
                    {
                      "kind": "keyword",
                      "raw": "alarm",
                      "value": "alarm",
                      "range": {
                        "start": {
                          "offset": 826,
                          "line": 19,
                          "column": 70
                        },
                        "end": {
                          "offset": 831,
                          "line": 19,
                          "column": 75
                        }
                      }
                    },
                    {
                      "kind": "string",
                      "raw": "\"pick sensor timeout\"",
                      "value": "pick sensor timeout",
                      "range": {
                        "start": {
                          "offset": 832,
                          "line": 19,
                          "column": 76
                        },
                        "end": {
                          "offset": 853,
                          "line": 19,
                          "column": 97
                        }
                      }
                    }
                  ]
                }
              },
              {
                "id": "event_2",
                "timing": "at",
                "pointId": "p_place",
                "distance": 0.01,
                "kind": "pulse",
                "sourceMap": {
                  "line": 21,
                  "column": 37
                },
                "data": {
                  "statement": "pulse io . do [ 11 ] duration 100 ms",
                  "tokens": [
                    {
                      "kind": "keyword",
                      "raw": "pulse",
                      "value": "pulse",
                      "range": {
                        "start": {
                          "offset": 929,
                          "line": 21,
                          "column": 37
                        },
                        "end": {
                          "offset": 934,
                          "line": 21,
                          "column": 42
                        }
                      }
                    },
                    {
                      "kind": "keyword",
                      "raw": "io",
                      "value": "io",
                      "range": {
                        "start": {
                          "offset": 935,
                          "line": 21,
                          "column": 43
                        },
                        "end": {
                          "offset": 937,
                          "line": 21,
                          "column": 45
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": ".",
                      "value": ".",
                      "range": {
                        "start": {
                          "offset": 937,
                          "line": 21,
                          "column": 45
                        },
                        "end": {
                          "offset": 938,
                          "line": 21,
                          "column": 46
                        }
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "do",
                      "value": "do",
                      "range": {
                        "start": {
                          "offset": 938,
                          "line": 21,
                          "column": 46
                        },
                        "end": {
                          "offset": 940,
                          "line": 21,
                          "column": 48
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "[",
                      "value": "[",
                      "range": {
                        "start": {
                          "offset": 940,
                          "line": 21,
                          "column": 48
                        },
                        "end": {
                          "offset": 941,
                          "line": 21,
                          "column": 49
                        }
                      }
                    },
                    {
                      "kind": "number",
                      "raw": "11",
                      "value": 11,
                      "range": {
                        "start": {
                          "offset": 941,
                          "line": 21,
                          "column": 49
                        },
                        "end": {
                          "offset": 943,
                          "line": 21,
                          "column": 51
                        }
                      }
                    },
                    {
                      "kind": "punctuation",
                      "raw": "]",
                      "value": "]",
                      "range": {
                        "start": {
                          "offset": 943,
                          "line": 21,
                          "column": 51
                        },
                        "end": {
                          "offset": 944,
                          "line": 21,
                          "column": 52
                        }
                      }
                    },
                    {
                      "kind": "identifier",
                      "raw": "duration",
                      "value": "duration",
                      "range": {
                        "start": {
                          "offset": 945,
                          "line": 21,
                          "column": 53
                        },
                        "end": {
                          "offset": 953,
                          "line": 21,
                          "column": 61
                        }
                      }
                    },
                    {
                      "kind": "number",
                      "raw": "100 ms",
                      "value": 100,
                      "range": {
                        "start": {
                          "offset": 954,
                          "line": 21,
                          "column": 62
                        },
                        "end": {
                          "offset": 960,
                          "line": 21,
                          "column": 68
                        }
                      },
                      "unit": {
                        "raw": "ms",
                        "kind": "time",
                        "siUnit": "s",
                        "normalizedValue": 0.1
                      }
                    }
                  ]
                }
              }
            ],
            "sampleTime": 0.02,
            "source": {
              "type": "cad_curve",
              "id": "edge_032",
              "sample_distance": 0.005
            }
          },
          "status": "queued"
        }
      ],
      "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]": true,
        "io.di[6]": false,
        "io.di[7]": true,
        "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"
        },
        {
          "id": 10,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 5,
            "raw": "io.di[5]"
          },
          "previous": false,
          "value": true,
          "kind": "script"
        },
        {
          "id": 11,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 6,
            "raw": "io.di[6]"
          },
          "previous": true,
          "value": false,
          "kind": "script"
        },
        {
          "id": 12,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 7,
            "raw": "io.di[7]"
          },
          "previous": false,
          "value": true,
          "kind": "script"
        }
      ],
      "diagnostics": [],
      "scripts": [
        {
          "name": "W2_40_PathEvents-edge-script",
          "nextIndex": 3,
          "elapsed": 0.1,
          "steps": [
            {
              "delay": 0.02,
              "target": {
                "domain": "di",
                "index": 5,
                "raw": "io.di[5]"
              },
              "value": true
            },
            {
              "delay": 0.04,
              "target": {
                "domain": "di",
                "index": 6,
                "raw": "io.di[6]"
              },
              "value": false
            },
            {
              "delay": 0.06,
              "target": {
                "domain": "di",
                "index": 7,
                "raw": "io.di[7]"
              },
              "value": true
            }
          ],
          "done": true
        }
      ]
    },
    "bridge": {
      "pathIds": [
        "generated_path"
      ],
      "operationIds": [],
      "diagnostics": []
    }
  }
}
