{
  "schema": "spec-platform/v1",
  "kind": "flowchart",
  "v": 1,
  "title": "検査のハンドシェイク（タイミングチャートから作成）",
  "settings": {
    "yesNo": "YES/NO",
    "yesDir": "down",
    "stepNo": false,
    "stepStart": 10,
    "stepInc": 10
  },
  "nodes": [
    {
      "id": "n6",
      "type": "start",
      "text": "開始",
      "x": 140,
      "y": 43,
      "lane": "g4"
    },
    {
      "id": "n7",
      "type": "process",
      "text": "初期化\nbWorkSet ← OFF\nbInspReq ← OFF\nbCarryOut ← OFF",
      "x": 115,
      "y": 111,
      "tag": "S0",
      "lane": "g4"
    },
    {
      "id": "n9",
      "type": "process",
      "text": "bWorkSet ← ON（検査位置に停止）",
      "x": 80,
      "y": 230,
      "w": 240,
      "tag": "S1 (100ms)",
      "lane": "g4"
    },
    {
      "id": "nb",
      "type": "process",
      "text": "bInspReq ← ON（検査要求）",
      "x": 100,
      "y": 310,
      "w": 200,
      "tag": "S2 (200ms)",
      "lane": "g4"
    },
    {
      "id": "nd",
      "type": "process",
      "text": "bInspReq ← OFF（検査要求）",
      "x": 95,
      "y": 380,
      "w": 210,
      "tag": "S9 (900ms)",
      "lane": "g4"
    },
    {
      "id": "nf",
      "type": "process",
      "text": "bCarryOut ← ON（搬出開始）",
      "x": 95,
      "y": 460,
      "w": 210,
      "tag": "S12 (1200ms)",
      "lane": "g4"
    },
    {
      "id": "nh",
      "type": "process",
      "text": "bWorkSet ← OFF（検査位置に停止）",
      "x": 80,
      "y": 540,
      "w": 240,
      "tag": "S14 (1400ms)",
      "lane": "g4"
    },
    {
      "id": "nj",
      "type": "end",
      "text": "終了",
      "x": 140,
      "y": 623,
      "lane": "g4"
    },
    {
      "id": "nl",
      "type": "start",
      "text": "開始",
      "x": 590,
      "y": 43,
      "lane": "g5"
    },
    {
      "id": "nm",
      "type": "process",
      "text": "初期化\nbInspDone ← OFF\nbResultOK ← OFF\nbResultNG ← OFF",
      "x": 565,
      "y": 111,
      "tag": "S0",
      "lane": "g5"
    },
    {
      "id": "no",
      "type": "process",
      "text": "bResultOK ← ON（判定 OK（撮像と判定に 0.5 s））",
      "x": 485,
      "y": 310,
      "w": 330,
      "tag": "S7 (700ms)",
      "lane": "g5"
    },
    {
      "id": "nq",
      "type": "process",
      "text": "bInspDone ← ON（検査完了（3 s 来なければ異常））",
      "x": 480,
      "y": 380,
      "w": 340,
      "tag": "S8 (800ms)",
      "lane": "g5"
    },
    {
      "id": "ns",
      "type": "process",
      "text": "bInspDone ← OFF（検査完了（3 s 来なければ異常））",
      "x": 480,
      "y": 460,
      "w": 340,
      "tag": "S10 (1000ms)",
      "lane": "g5"
    },
    {
      "id": "nu",
      "type": "process",
      "text": "bResultOK ← OFF（判定 OK（撮像と判定に 0.5 s））",
      "x": 485,
      "y": 540,
      "w": 330,
      "tag": "S11 (1100ms)",
      "lane": "g5"
    },
    {
      "id": "nw",
      "type": "end",
      "text": "終了",
      "x": 590,
      "y": 623,
      "lane": "g5"
    }
  ],
  "edges": [
    {
      "id": "e8",
      "from": "n6",
      "port": "out",
      "to": "n7"
    },
    {
      "id": "ea",
      "from": "n7",
      "port": "out",
      "to": "n9"
    },
    {
      "id": "ec",
      "from": "n9",
      "port": "out",
      "to": "nb"
    },
    {
      "id": "ee",
      "from": "nb",
      "port": "out",
      "to": "nd"
    },
    {
      "id": "eg",
      "from": "nd",
      "port": "out",
      "to": "nf"
    },
    {
      "id": "ei",
      "from": "nf",
      "port": "out",
      "to": "nh"
    },
    {
      "id": "ek",
      "from": "nh",
      "port": "out",
      "to": "nj"
    },
    {
      "id": "en",
      "from": "nl",
      "port": "out",
      "to": "nm"
    },
    {
      "id": "ep",
      "from": "nm",
      "port": "out",
      "to": "no"
    },
    {
      "id": "er",
      "from": "no",
      "port": "out",
      "to": "nq"
    },
    {
      "id": "et",
      "from": "nq",
      "port": "out",
      "to": "ns"
    },
    {
      "id": "ev",
      "from": "ns",
      "port": "out",
      "to": "nu"
    },
    {
      "id": "ex",
      "from": "nu",
      "port": "out",
      "to": "nw"
    }
  ],
  "lanes": [
    {
      "id": "g4",
      "role": "M",
      "name": "PLC"
    },
    {
      "id": "g5",
      "role": "S",
      "name": "検査装置"
    }
  ],
  "links": [
    {
      "id": "ly",
      "from": "nb",
      "to": "no"
    },
    {
      "id": "lz",
      "from": "nq",
      "to": "nd"
    },
    {
      "id": "l10",
      "from": "nd",
      "to": "ns"
    },
    {
      "id": "l11",
      "from": "ns",
      "to": "nf"
    }
  ]
}
