Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Connector for FANUC Focas

cnc_diganoss

  • Last UpdatedFeb 23, 2023
  • 2 minute read

The cnc_diagnoss function has up to four configurable parameters, two of which are always required. The need to configure the remaining two parameters will be based on the values of the required parameters. The value of all parameters will be derived from the type of the data being collected from the datasource. The syntax for the cnc_diagnoss function is as follows:

cnc_diagnoss.0.<diagnostic number>:<axis number>.<data type>:<bit position>

In all cases, both <diagnostic number> and <data type> are required. The configuration of <axis number> will only apply to diagnosis numbers that contain data for multiple axes. In this case, specify which axis to collect data from by inputting the zero based index of the axis. The ordering of the axes will typically be X = 0, Y = 1, Z = 2, ...., up to the total number of axes on the system.

Configuration of the <bit position> parameter is only necessary when <data type> is set to "bit". In this case, <bit position> needs to be set to the zero-based index of the bit array that corresponds to the data to be collected. In most cases the right most bit in the bit array is the zero position.

In both of the cases outlined above, consult your specific device's user manual for confirmation of axes ordering and bit position mapping.

Valid <data types>

Description

Bit

Specifies the reading of a bit array.

Byte

Specifies the reading of a 1-byte integer type.

Word

Specifies the reading of a 2-byte integer.

Two_word

Specifies the reading of an 4-byte integer.

Real

Specifies the reading of a decimal value.

Example:

  • " cnc_diagnoss.0.311:1.bit:7" - would collect data for <diagnostic number> "311" on <axis number> "1". In this example, the data being collected is a single bit, thus "bit" is specified as the <data type>. Lastly, this particular diagnostic number is an array type, and the position of the data to collect in that array must be specified. In this example, our desired diagnostic data is in <array index> "7".

  • " cnc_diagnoss.0.301:1.real" - would collect "real" type data for <diagnostic number> "301" on <axis number> "1".

  • "cnc_diagnoss.0.1011.bit:6" - would collect the data in <bit position> "6" for <diagnostic number> "1011".

    Note: To determine what value to use when setting the <diagnostic number> parameter, consult your CNC device's documentation, as it will vary between devices.

TitleResults for “How to create a CRG?”Also Available in