{
  "schema": "spec-platform/v1",
  "kind": "flowchart",
  "v": 1,
  "title": "Gestione e ripristino dopo un arresto di emergenza (lato PLC)",
  "settings": {
    "yesNo": "YES/NO",
    "yesDir": "down",
    "stepNo": false,
    "stepStart": 10,
    "stepInc": 10
  },
  "nodes": [
    {
      "id": "s",
      "type": "start",
      "text": "Monitor relè sicurezza OFF",
      "x": 120,
      "y": 37
    },
    {
      "id": "cut",
      "type": "process",
      "text": "Uscite movimento OFF\nCancella ritenute e comandi pos.",
      "x": 95,
      "y": 129
    },
    {
      "id": "alarm",
      "type": "process",
      "text": "Mostra il pulsante premuto\nRegistra la fase interrotta",
      "x": 95,
      "y": 227
    },
    {
      "id": "d_rel",
      "type": "decision",
      "text": "Tutti i pulsanti emerg.\nsbloccati?",
      "x": 85,
      "y": 313
    },
    {
      "id": "d_rst",
      "type": "decision",
      "text": "Reset premuto\ne rilasciato?",
      "x": 85,
      "y": 423
    },
    {
      "id": "wpwr",
      "type": "process",
      "text": "Attendi la potenza\n(max 3 s)",
      "x": 95,
      "y": 533
    },
    {
      "id": "d_pwr",
      "type": "decision",
      "text": "Potenza inserita?",
      "x": 85,
      "y": 615
    },
    {
      "id": "perr",
      "type": "process",
      "text": "Mostra «Potenza assente»",
      "x": 365,
      "y": 700
    },
    {
      "id": "d_pos",
      "type": "decision",
      "text": "Posizioni di assi\ne cilindri note?",
      "x": 85,
      "y": 780
    },
    {
      "id": "d_cont",
      "type": "decision",
      "text": "Si può riprendere\nla fase interrotta?",
      "x": 85,
      "y": 890
    },
    {
      "id": "d_hbtn",
      "type": "decision",
      "text": "Pulsante ricerca zero\npremuto?",
      "x": 355,
      "y": 970
    },
    {
      "id": "home",
      "type": "process",
      "text": "Ricerca di zero\n(con limite di tempo)",
      "x": 365,
      "y": 1080
    },
    {
      "id": "d_home",
      "type": "decision",
      "text": "Ricerca zero\ncompletata?",
      "x": 355,
      "y": 1170
    },
    {
      "id": "herr",
      "type": "process",
      "text": "Mostra «Anomalia zero»",
      "x": 635,
      "y": 1260
    },
    {
      "id": "d_start",
      "type": "decision",
      "text": "Pulsante avvio\npremuto?",
      "x": 85,
      "y": 1340
    },
    {
      "id": "e",
      "type": "end",
      "text": "Al funzionamento automatico",
      "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": []
}
