Click or drag to resize

DataSource Enumeration

For the SetDataSource command, the DataSource selector parameter occupies the lower 8 bits of the 16-bit command-parameter pair within the 20-bit transmission frame.


Namespace: RAYLASE.SPICE3.ScannerEnhancedProtocol
Assembly: RAYLASE.SPICE3 (in RAYLASE.SPICE3.dll) Version: 3.6.0
Syntax
C#
public enum DataSource
Members
Member nameDescription
StatusWordXY2-100-Enhanced status as 2 * 8 flag bits.

Response: 16-bit unsigned

See also: CompatibleStatusWord.

CurrentPositionCurrent position of galvo.

Response: see above.

TargetPositionLast commanded position for galvo.

Response: see above.

PositionError(TargetPosition - CurrentPosition).

Response: see above.

OutputCurrentOutput current to galvo in mA.

Response: 16-bit signed

RelativeOutputCurrentOutput current to galvo in ‰ (parts-per-thousand) relative to 10A.

Response: 16-bit signed

CurrentVelocityCurrent angular velocity of galvo in bit/ms.

Response: 16-bit signed

GalvoTemperatureTemperature of galvo in degC/10.

Response: 16-bit signed

ServoBoardTemperatureTemperature on servo board in degC/10.

Response: 16-bit signed

PDAGCVoltagePosition detector AGC voltage in V/100.

Response: 16-bit signed

DSPCoreVoltageDSP core voltage in V/100.

Response: 16-bit signed

DSPIOVoltageDSP IO voltage in V/100.

Response: 16-bit signed

AnalogSupplyVoltageAnalog section supply voltage in V/100.

Response: 16-bit signed

ADCSupplyVoltage (SS-III) ADC supply voltage in V/100.

Response: 16-bit signed

MainSupplyVoltage (SS-IV, SS-V) Main supply voltage in V/100.

Response: 16-bit signed

PDAGCCurrentPosition detector AGC current in mA.

Response: 16-bit signed

RelativeHeatingOutputHeating output of galvo in ‰ (parts-per-thousand).
SerialNumberLowSerial number, low word.

Response: 16-bit unsigned

SerialNumberHighSerial number, high word.

Response: 16-bit unsigned

ArticleNumberLowArticle number, low word.

Response: 16-bit unsigned

ArticleNumberHighArticle number, high word.

Response: 16-bit unsigned

FirmwareVersionFirmware version number.

Response: 16-bit unsigned

CalibrationFactorCalibration factor in bits/mrad.

Response: 16-bit unsigned

ApertureAperture size in mm.

Response: 16-bit unsigned

WavelengthWavelength in nm.

Response: 16-bit unsigned

TuningSelectorsCurrent and startup tuning selectors as 2 * 8-bit unsigned values.

Response: 16-bit unsigned

DataSourceSelectorsCurrent and startup data source selectors as 2 * 8-bit unsigned values.

Response: 16-bit unsigned

StateFlagsLowCurrent operational state flags, low word.

Response: 16-bit unsigned

StateFlagsHighCurrent operational state flags, high word.

Response: 16-bit unsigned

StopEventCodeStop event code flag bits.

Response: 16-bit unsigned

StopFlagsLowOperational flags at last stop event, low word.

Response: 16-bit unsigned

StopFlagsHighOperational flags at last stop event, high word.

Response: 16-bit unsigned

RunningTimeSecondsCumulative service time counter, seconds.

Response: 16-bit unsigned

RunningTimeMinutesCumulative service time counter, minutes.

Response: 16-bit unsigned

RunningTimeHoursCumulative service time counter, hours.

Response: 16-bit unsigned

RunningTimeDaysCumulative service time counter, days.

Response: 16-bit unsigned

PositionScaleCurrent position scale factor.

Response: 16-bit unsigned

PositionAcknowledgeLevelCurrent position acknowledge level.

Response: 16-bit unsigned

LoopControlTrackingErrorTracking error of the position loop controller in microseconds.

Response: 16-bit unsigned

SlewRateLimitMaximum velocity in position increments per millisecond.

Response: 16-bit unsigned

RMSCurrentMeasured root-mean-square galvo current of the last second in milliampere.

Response: 16-bit unsigned

TransferDelay XY2-, SL2- and RL3-protocol position transfer delay between the control card and the loop controller in microseconds.

Response: 16-bit unsigned

LoopTransferDelay XY2, SL2 and RL3 protocol delay that elapses between the moment when position command is sent to the loop controller and the moment when this position command is received by the controller card via feedback channel.

Response: 16-bit unsigned

CompatibleStatusWordXY2-100 compatible (legacy) status as 2 * 8 flag bits.

Response: 16-bit unsigned

See also: StatusWord.

InterpolationTimeConfiguration Current and startup interpolation times as 2 * 8-bit unsigned values.

Response: 16-bit unsigned

MirrorTiltAngle Current and startup mirror tilt angles as 2 * 8-bit unsigned values.

Response: 16-bit unsigned

AuxiliaryTemperatureSensor1 Temperature of the first auxiliary temperature sensor in 1/10 °C.

Response: 16-bit signed

AuxiliaryTemperatureSensor2 Temperature of the second auxiliary temperature sensor in 1/10 °C.

Response: 16-bit signed

AuxiliaryTemperatureSensor3 Temperature of the third auxiliary temperature sensor in 1/10 °C.

Response: 16-bit signed

Remarks
  • The response format for almost all DataSources is: 16-bits, signed or unsigned as appropriate, left-aligned in a 20-bit field.

    C#
    // NB: we assume the use of suitable commands here...
    uint[] responses = client.ScannerCommunication.TransceiveEnhanced(head, axes, commands, timeoutMs);
    
    short signedDataValue = (short)(responses[0] >> 4);
    
    ushort unsignedDatavalue = (ushort)(responses[1] >> 4);
  • A few DataSources return positions in their responses:

    • CurrentPosition
    • TargetPosition
    • PositionError

    These are all signed values, with 16 or 20 significant bits, left-aligned in a 20-bit field.

    C#
    // NB: we assume the use of suitable commands here...
    uint[] responses = client.ScannerCommunication.TransceiveEnhanced(head, axes, commands, timeoutMs);
    
    short position16bit = (short)(responses[0] >> 4);
    
    int position20bit = ((int)(responses[0] << 12)) >> 12; // sign-extension trick
    
    // 
    // NB: the sign-extension trick extracts the raw 20-bit signed position
    // from the surrounding unsigned 32-bit response frame,
    // and converts it into a signed 32-bit signed int value.
    
See Also