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_rdaxisdata

  • Last UpdatedFeb 23, 2023
  • 2 minute read

The connector reads axis data with cnc_rdaxisdata function and the parameters defined as the following format:

<Class>.<Type>.<Number of axis>

For example, 2.0.4 refers to an axis with:

  • Class = 2 (a servo)

  • Type = 0 (a servo load meter)

  • Number of axis = 4 (collect data from axis 1 to 4)

Class: The following table lists all classes of data supported by the connector. The function parameter must start with one of the class codes in the table in order to be valid:

Class code

Description

1

Position value

2

Servo

3

Spindle

4

Selected spindle

5

Speed

Type: Each Class of data is followed by one of its corresponding types of data. The following table lists the valid types of data for each supported Class:

Class code

Supported data types and type descriptions

1

0: Absolute position

1: Machine position

2: Relative position

3: Distance to go

4: Handle interruption(Input unit)

5: Handle interruption(Output unit)

6: Start point of program restart

7: Distance to go of program restart

8: Start point of block restart

9: Distance to go of block restart

2

0: Servo load meter

1: Load current (% unit)

2: Load current (Ampere unit)

3 & 4

0: Spindle load meter

1: Spindle motor speed

2: Spindle speed (according to parameter 3799#2)

3: Spindle speed (gotten from Spindle motor speed)

4: Spindle load meter (average of each 250ms)

5: Spindle load meter(maximum value)

6: Spindle load meter(maximum value)(average of each 250ms)

7: Time that spindle can continue processing

5

0: Feed rate(F)(Feed per minute)

1: Spindle speed(S)

2: Jog speed/Dry run speed

3: Tool tip speed

4: Rotation speed of servo motor

5: Feed rate(F/S) Note

Number of axis: For the third parameter for the function cnc_rdaxisdata you need to specify the number of axis to collect data. The FANUC Focas standard specifies that the Number of axis must be an integer value between 1 and 32.

Note: Although the connector can send any valid combination of class, type and number of axis to the machine, it may not be able to get data back if that specific machine does not support the cnc_rdaxisdata function or some of the parameter combinations. Refer to the FANUC Focas documentation for this function to check the support on the function for different machine types.

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