{
  "schema": "spec-platform/v1",
  "kind": "addressmap",
  "v": 2,
  "title": "検査のハンドシェイクの変数",
  "devices": [
    {
      "id": "d_plc",
      "name": "PLC",
      "blocks": [
        {
          "id": "b_cmd",
          "name": "検査装置への指令",
          "varIds": [
            "v_req",
            "v_no"
          ]
        },
        {
          "id": "b_sts",
          "name": "検査装置からの状態",
          "varIds": [
            "v_done",
            "v_ok",
            "v_ng"
          ]
        },
        {
          "id": "b_int",
          "name": "内部",
          "varIds": [
            "v_set",
            "v_out"
          ]
        }
      ]
    }
  ],
  "variables": [
    {
      "id": "v_req",
      "name": "bInspReq",
      "type": "BOOL",
      "role": "M",
      "address": "",
      "comment": "検査要求"
    },
    {
      "id": "v_no",
      "name": "nInspNo",
      "type": "INT",
      "role": "M",
      "address": "",
      "comment": "検査の品番（検査装置のプログラム番号）"
    },
    {
      "id": "v_done",
      "name": "bInspDone",
      "type": "BOOL",
      "role": "S",
      "address": "",
      "comment": "検査完了"
    },
    {
      "id": "v_ok",
      "name": "bResultOK",
      "type": "BOOL",
      "role": "S",
      "address": "",
      "comment": "判定 OK"
    },
    {
      "id": "v_ng",
      "name": "bResultNG",
      "type": "BOOL",
      "role": "S",
      "address": "",
      "comment": "判定 NG"
    },
    {
      "id": "v_set",
      "name": "bWorkSet",
      "type": "BOOL",
      "role": "I",
      "address": "",
      "comment": "検査位置に停止"
    },
    {
      "id": "v_out",
      "name": "bCarryOut",
      "type": "BOOL",
      "role": "I",
      "address": "",
      "comment": "搬出開始"
    }
  ]
}
