{
  "schema": "spec-platform/v1",
  "kind": "flowchart",
  "v": 1,
  "title": "비상정지 후의 처리와 복귀 (PLC 측)",
  "settings": {
    "yesNo": "YES/NO",
    "yesDir": "down",
    "stepNo": false,
    "stepStart": 10,
    "stepInc": 10
  },
  "nodes": [
    {
      "id": "s",
      "type": "start",
      "text": "안전 릴레이 모니터가 OFF",
      "x": 120,
      "y": 37
    },
    {
      "id": "cut",
      "type": "process",
      "text": "동작 출력을 OFF\n자기유지와 위치결정 지령을 해제",
      "x": 95,
      "y": 129
    },
    {
      "id": "alarm",
      "type": "process",
      "text": "눌린 버튼을 표시\n멈춘 공정을 기록",
      "x": 95,
      "y": 227
    },
    {
      "id": "d_rel",
      "type": "decision",
      "text": "비상정지 버튼이\n모두 복귀됨 ?",
      "x": 85,
      "y": 313
    },
    {
      "id": "d_rst",
      "type": "decision",
      "text": "리셋이 눌렸다가\n떼어짐 ?",
      "x": 85,
      "y": 423
    },
    {
      "id": "wpwr",
      "type": "process",
      "text": "동력 투입을 기다림\n(상한 3 초)",
      "x": 95,
      "y": 533
    },
    {
      "id": "d_pwr",
      "type": "decision",
      "text": "동력 투입됨 ?",
      "x": 85,
      "y": 615
    },
    {
      "id": "perr",
      "type": "process",
      "text": "\"동력이 들어오지 않음\"을 표시",
      "x": 365,
      "y": 700
    },
    {
      "id": "d_pos",
      "type": "decision",
      "text": "각 축·실린더의 위치를\n알고 있음 ?",
      "x": 85,
      "y": 780
    },
    {
      "id": "d_cont",
      "type": "decision",
      "text": "멈춘 공정부터\n이어가도 됨 ?",
      "x": 85,
      "y": 890
    },
    {
      "id": "d_hbtn",
      "type": "decision",
      "text": "원점 복귀 버튼이\n눌림 ?",
      "x": 355,
      "y": 970
    },
    {
      "id": "home",
      "type": "process",
      "text": "원점 복귀\n(시간 상한 있음)",
      "x": 365,
      "y": 1080
    },
    {
      "id": "d_home",
      "type": "decision",
      "text": "원점 복귀\n완료 ?",
      "x": 355,
      "y": 1170
    },
    {
      "id": "herr",
      "type": "process",
      "text": "\"원점 복귀 이상\"을 표시",
      "x": 635,
      "y": 1260
    },
    {
      "id": "d_start",
      "type": "decision",
      "text": "기동 버튼이\n눌림 ?",
      "x": 85,
      "y": 1340
    },
    {
      "id": "e",
      "type": "end",
      "text": "자동 운전으로",
      "x": 120,
      "y": 1450
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "s",
      "port": "out",
      "to": "cut"
    },
    {
      "id": "e2",
      "from": "cut",
      "port": "out",
      "to": "alarm"
    },
    {
      "id": "e3",
      "from": "alarm",
      "port": "out",
      "to": "d_rel"
    },
    {
      "id": "e4",
      "from": "d_rel",
      "port": "yes",
      "to": "d_rst"
    },
    {
      "id": "e5",
      "from": "d_rel",
      "port": "no",
      "to": "d_rel"
    },
    {
      "id": "e6",
      "from": "d_rst",
      "port": "yes",
      "to": "wpwr"
    },
    {
      "id": "e7",
      "from": "d_rst",
      "port": "no",
      "to": "d_rst"
    },
    {
      "id": "e8",
      "from": "wpwr",
      "port": "out",
      "to": "d_pwr"
    },
    {
      "id": "e9",
      "from": "d_pwr",
      "port": "yes",
      "to": "d_pos"
    },
    {
      "id": "e10",
      "from": "d_pwr",
      "port": "no",
      "to": "perr"
    },
    {
      "id": "e11",
      "from": "perr",
      "port": "out",
      "to": "d_rst"
    },
    {
      "id": "e12",
      "from": "d_pos",
      "port": "yes",
      "to": "d_cont"
    },
    {
      "id": "e13",
      "from": "d_pos",
      "port": "no",
      "to": "d_hbtn"
    },
    {
      "id": "e14",
      "from": "d_cont",
      "port": "yes",
      "to": "d_start"
    },
    {
      "id": "e15",
      "from": "d_cont",
      "port": "no",
      "to": "d_hbtn"
    },
    {
      "id": "e16",
      "from": "d_hbtn",
      "port": "yes",
      "to": "home"
    },
    {
      "id": "e17",
      "from": "d_hbtn",
      "port": "no",
      "to": "d_hbtn"
    },
    {
      "id": "e18",
      "from": "home",
      "port": "out",
      "to": "d_home"
    },
    {
      "id": "e19",
      "from": "d_home",
      "port": "yes",
      "to": "d_start"
    },
    {
      "id": "e20",
      "from": "d_home",
      "port": "no",
      "to": "herr"
    },
    {
      "id": "e21",
      "from": "herr",
      "port": "out",
      "to": "d_hbtn"
    },
    {
      "id": "e22",
      "from": "d_start",
      "port": "yes",
      "to": "e"
    },
    {
      "id": "e23",
      "from": "d_start",
      "port": "no",
      "to": "d_start"
    }
  ],
  "lanes": [],
  "links": []
}
