{
  "schema": "spec-platform/v1",
  "kind": "flowchart",
  "v": 1,
  "title": "コンベアの定位置停止と送り出し",
  "nodes": [
    {
      "id": "s",
      "type": "start",
      "text": "開始"
    },
    {
      "id": "run",
      "type": "process",
      "text": "運転 ON（高速）"
    },
    {
      "id": "d_slow",
      "type": "decision",
      "text": "減速センサ ON ?"
    },
    {
      "id": "slow",
      "type": "process",
      "text": "低速 ON\n（自己保持）"
    },
    {
      "id": "d_pos",
      "type": "decision",
      "text": "定位置センサ ON ?"
    },
    {
      "id": "stop",
      "type": "process",
      "text": "運転 OFF"
    },
    {
      "id": "w",
      "type": "wait",
      "text": "0.5 秒待つ"
    },
    {
      "id": "d_hold",
      "type": "decision",
      "text": "定位置センサ\nON のまま ?"
    },
    {
      "id": "err",
      "type": "process",
      "text": "異常：行き過ぎ\nコンベア停止"
    },
    {
      "id": "work",
      "type": "process",
      "text": "作業開始"
    },
    {
      "id": "d_done",
      "type": "decision",
      "text": "作業完了 ?"
    },
    {
      "id": "out",
      "type": "process",
      "text": "運転 ON・低速 OFF\n（送り出し）"
    },
    {
      "id": "d_left",
      "type": "decision",
      "text": "定位置センサ OFF ?"
    },
    {
      "id": "clr",
      "type": "process",
      "text": "作業完了を消す"
    },
    {
      "id": "e",
      "type": "end",
      "text": "次のワークへ"
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "s",
      "port": "out",
      "to": "run"
    },
    {
      "id": "e2",
      "from": "run",
      "port": "out",
      "to": "d_slow"
    },
    {
      "id": "e3",
      "from": "d_slow",
      "port": "yes",
      "to": "slow"
    },
    {
      "id": "e4",
      "from": "d_slow",
      "port": "no",
      "to": "d_slow"
    },
    {
      "id": "e5",
      "from": "slow",
      "port": "out",
      "to": "d_pos"
    },
    {
      "id": "e6",
      "from": "d_pos",
      "port": "yes",
      "to": "stop"
    },
    {
      "id": "e7",
      "from": "d_pos",
      "port": "no",
      "to": "d_pos"
    },
    {
      "id": "e8",
      "from": "stop",
      "port": "out",
      "to": "w"
    },
    {
      "id": "e9",
      "from": "w",
      "port": "out",
      "to": "d_hold"
    },
    {
      "id": "e10",
      "from": "d_hold",
      "port": "yes",
      "to": "work"
    },
    {
      "id": "e11",
      "from": "d_hold",
      "port": "no",
      "to": "err"
    },
    {
      "id": "e12",
      "from": "work",
      "port": "out",
      "to": "d_done"
    },
    {
      "id": "e13",
      "from": "d_done",
      "port": "yes",
      "to": "out"
    },
    {
      "id": "e14",
      "from": "d_done",
      "port": "no",
      "to": "d_done"
    },
    {
      "id": "e15",
      "from": "out",
      "port": "out",
      "to": "d_left"
    },
    {
      "id": "e16",
      "from": "d_left",
      "port": "yes",
      "to": "clr"
    },
    {
      "id": "e17",
      "from": "d_left",
      "port": "no",
      "to": "d_left"
    },
    {
      "id": "e18",
      "from": "clr",
      "port": "out",
      "to": "e"
    }
  ]
}
