×
Siemens Industry Online Support
Siemens AG
  • Content
  • Search
  • Index
  • Basic Functions
    • S1: Spindles
      • Brief Description
      • Reference / synchronize
      • Additional adaptations to the spindle functionality that can be configured
      • Selectable spindles
      • Spindle monitoring
        • Permissible speed ranges
        • Axis/spindle stationary
        • Spindle in setpoint range
        • Minimum / maximum speed of the gear stage
        • Diagnosis of spindle speed limitation
        • Maximum spindle speed
        • Maximum encoder limit frequency
        • End point monitoring
        • M40: Automatic gear stage selection for speeds outside the configured switching thresholds
    (0)
    Rate

    Entry type: Manual, Entry ID: 64932982, Entry date: 10/12/2012

    SINUMERIK 840D sl / 828D Basic Functions

    Document: SINUMERIK 840D sl / 828D Basic Functions (07/2012, English)
    Type of topic: Fact

    Diagnosis of spindle speed limitation

    Function

    The limit or increase of the spindle speed is signaled by the output of the following NC/PLC interface signals:

    • DB31, ... DBX83.1 (setpoint speed limited)
    • DB31, ... DBX83.2 (setpoint speed increased)

    To diagnose the effective/limiting spindle parameters, one can have read access to the most important parameters of spindle motion via system variables. The system variables are indexed with the spindle number and they return only values that are relevant to the speed control and spindle position modes.

    The following system variables are available in the spindle mode:

    System variable

    Meaning

    $AC_SMAXVELO[<n>]

    Maximum possible spindle speed [rpm] resulting from the active limiting data.

    $AC_SMAXVELO_INFO[<n>]

    Specification of the speed limiting data as numerical value. *)

    $AC_SMINVELO[<n>]

    Minimum possible spindle speed [rpm], corresponds to the minimum speed in the speed control mode.

    $AC_SMINVELO_INFO[<n>]

    Specification of the speed increasing data as numerical value. *)

    $AC_SMAXACC[<n>]

    Acceleration value of spindle [r/s2].

    $AC_SMAXACC_INFO[<n>]

    Acceleration limiting cause in the form of a numerical value. *)

    $AC_SPIND_STATE[<n>]

    Status bits of the spindle.

    <n>: Spindle no. (n= 0: the variables are related to the current master spindle)

    *) The text of the numerical value should be taken from from the description of the system variables.

    Evaluation of diagnosis data:
    The system variables for each spindle can be read via synchronized actions and in the part program, giving due consideration to the preprocessing stop in the NCK .

    Boundary conditions

    The values delivered by the system variables depend on the spindle mode:

    • Speed control mode:

      All system variables deliver current values.

    • Positioning mode:

      The system variables $AC_SMAXVELO, $AC_SMAXACC and $AC_SPIND_STATE deliver valid values. The system variables $AC_SMINVELO and $AC_SMINVELO_INFO deliver the data that becomes effective on changing to the speed control mode.

    • Axis mode (e.g. if the spindle is used by a transformation TRANSMIT, TRACYL,... or follows a path motion as a special axis):

      The system variable $AC_SPIND_STATE can also be used in the axis mode. Separate system variables are available in the axis mode for dynamic data:

      $AA_VMAXM, $AA_VMAXB and $AA_VLFCT.

    The following control response is obtained for a type SERUPRO block search:

    • The system variable $AC_SMAXVELO / $AC_SMAXACC delivers the maximum representable speed / acceleration.
    • $AC_SMAXVELO_INFO and $AC_SMAXACC_INFO deliver the VALUE "0" (no limitation is active).
    • $AC_SMINVELO and $AC_SMINVELO_INFO deliver data as in case of normal part program processing.
    • $AC_SPIND_STATE returns the states as they are set for SERUPRO.

    Example

    Example of the visualization of the content of the system variables for Spindle 1. The variables are written to the R parameters cyclically. These can be displayed on HMI in the R Parameters area.

    Program code
    N05 IDS=1 WHENEVER TRUE DO $R10=$AC_SMAXVELO[1]
    N10 IDS=2 WHENEVER TRUE DO $R11=$AC_SMAXVELO_INFO[1]
    N15 IDS=3 WHENEVER TRUE DO $R12=$AC_SMINVELO[1]
    N20 IDS=4 WHENEVER TRUE DO $R13=$AC_SMINVELO_INFO[1]
    N25 IDS=5 WHENEVER TRUE DO $R14=$AC_SPIND_STATE[1]

    See also

    internal link Spindle in setpoint range



     

    Support to the statistics
    With this function the IDs found are listed according to number (format .txt).

    Generate list
    Copy URL
    Display page in new design
    mySupport Cockpit