Availability:
     Level 2    , 'U'
     Level 3    , 'U'
     Level 8    , 'U'
     Level F    , 'U'

  Quick Help:
     Spin Up Drive, U[HoldState],[Hd],[Cyl]

  Description:
    The command spins up the drive.  Optionally, the spin up operation can be paused
    in several intermediate states.

  Input Parameters:

    0 - Spin Up Hold State.
    
        This parameter specifies the state in which the Spin Up operation is to be held.
    
            0 = Spin up and attempt to track follow on the default cylinder and head.
    
            1 = Advance to the next Spin Hold State.
    
            2 = Release the Spin Hold State.  If this option is selected the drive will
                spin up to completion and attempt to track follow on the specified cylinder
                and head.
    
            3 = Spin up and hold with the actuator latched.
    
            4 = Spin up, unlatch the actuator and hold prior to attempting to synchronize
                the demodulator to the data on the disk.
    
            5 = Spin up, unlatch the actuator, synchronize the demodulator to the data on
                the disk and hold prior to attempting to track follow.
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: 0
    
    1 - Logical Head Address.
    
        If the Spin Hold States are being used (Parameter 0 not equal to 0), this
        parameter specifies the address of the logical head on which the spin up
        operation will attempt to synchronize the demodulator and / or track follow.
        If the Spin Hold States are not being used (Parameter 0 not entered or equal
        to 0), this parameter specifies the address of the logical head to which a
        seek will be performed after the drive is spun up.
    
          Type:    Unsigned 8-bit value
    
          Range:   0 to 0xFF
    
          Default: First logical head
    
    2 - Physical Cylinder Address.
    
        If the Spin Hold States are being used (Parameter 0 not equal to 0), this
        parameter specifies the address of the physical cylinder on which the spin
        up operation will attempt to track follow.  If the Spin Hold States are not
        being used (Parameter 0 not entered or equal to 0), this parameter specifies
        the address of the physical cylinder to which a seek will be performed after
        the drive is spun up.
    
          Type:    Unsigned 32-bit value
    
          Range:   0 to 0xFFFFFFFF
    
          Default: First user area physical cylinder
    
  Output Data:


    If an error occurred, the following information will be displayed.
    
          "DiagError aaaaaaaa"
    
       where
    
          aaaaaaaa is the Diagnostic Error Code
    
    In addition, one of the following strings will be output to indicate the current Spin
    State.
    
          "Spin Down Complete"                      or
          "Spin Up held prior to Unlatch"           or
          "Spin Up held prior to Demod Sync"        or
          "Spin Up held prior to Track Follow"      or
          "Spin Up Complete"                        or
          "Spin Error"                              or
          "Invalid Spin State"
    
    The elapsed time for the spin operation will be displayed as follows.

    
       "Elapsed Time a mins b secs"  or
       "Elapsed Time b.c secs"       or
       "Elapsed Time c.d msecs"
    
    where
    
       a is minutes
       b is seconds
       c is milliseconds
       d is microseconds
    
    If a spin error occurred, the following additional information will be displayed.
    
          "R/W Status c R/W Error dddddddd"
    
       where
    
          c is the status returned by the R/W subsystem
    
                0 = R/W request completed successfully with error recovery
                1 = R/W request completed successfully (no error recovery performed)
                2 = R/W request failed
    
          dddddddd is the error code returned by the R/W subsystem
    
    If a spin error occurred and the Verbose Formatted ASCII Data Output Mode is selected,
    the Verbose Mode option bits will enable the following data to be output when set.
    
       Bit 0-6:    NA
       Bit 7:      Enable the Servo Event Log to be displayed
       Bits 31-8:  NA
    
    If Bit 7 is set, the contents of the Servo Event Log will be displayed as follows.
    

    The Servo Event Log Information will be displayed as follows.
    
          "Servo Event Log"
          "cccc cccc cccc ... cccc" (repeated until all entries have been displayed)
    
       where
    
          cccc is a 16-bit Servo Event Log entry
    
  Revision History:

    0001.0000   Initial revision.
    0011.0000   Combined the PSG Diagnostic Error Codes (PSGDEC) and the Diagnostic External
                Test Service Error Codes (DETSEC) into a single set of Diagnostic Error Codes
                (DiagError).