Ladder99 / fanuc-driver

Configurable Fanuc Focas data collector and post processor.
Apache License 2.0
74 stars 25 forks source link

Different data acquired from `fanuc/{machine}/sysinfo` than you provide in the docs #27

Closed tukusejssirs closed 2 years ago

tukusejssirs commented 3 years ago

I want to know if you can provide a list of possible data acquired from Fanuc in sysinfo.

In the docs, you acquired the following data:

{
  "observation": {
    "time": 1620485344410,
    "machine": "sim",
    "name": "sys_info",
    "marker": {}
  },
  "source": {
    "method": "cnc_sysinfo",
    "invocationMs": 25,
    "data": {}
  },
  "delta": {
    "time": "00:00:01.4453544",
    "data": {
      "max_axis": 32,
      "cnc_type": " 0",
      "mt_type": " M",
      "series": "D4F1",
      "version": "30.0",
      "axes": "03"
    }
  }
}

I get a different data object. Also note that the delta object is for some reason renamed to state.

{
  "observation": {
    "time": 1631263853718,
    "machine": "m9",
    "type": "source",
    "name": "sys_info",
    "marker": {
      "path_no": 1
    }
  },
  "source": {
    "method": "cnc_sysinfo",
    "invocationMs": 0,
    "data": {}
  },
  "state": {
    "time": "00:00:03.9278247",
    "data": {
      "loader_control": false,
      "i_series": true,
      "compound_machining": false,
      "transfer_line": false,
      "model": "MODEL F",
      "max_axis": 32,
      "cnc_type": "Series 0i",
      "mt_type": "Lathe",
      "series": "D6G1",
      "version": "61.0",
      "axes": 3
    }
  }
}

I have access to 22 Fanuc machines with FOCAS (in contrary with what I originally said in this comment:

On all of these machines I get the payload above. In order to be precise, here are all differences in values of the data object properties between these machines:


Another possibility is that the documentation was not updated yet.

MRIIOT commented 3 years ago

Regarding delta->state. I remember this was your suggestion, so the docs are not up to date.

Available data: https://docs.ladder99.com/focas-api/misc/cnc_sysinfo.xml

tukusejssirs commented 3 years ago

Regarding delta->state. I remember this was your suggestion, so the docs are not up to date.

Ah, yeah, now I remember that I suggested something like that and still like it better using state instead of delta.