<< Click to Display Table of Contents > 

Scanner Card Interface > SCI Functions > Device

Device
Previous pageReturn to chapter overviewNext page

Return value

Function / Property name

Parameter

long

ScGetDeviceCaps()

ScComStandardDeviceCapsConstants CapsID, long *CapsValue

long

ScSCIGetDeviceCaps()

long CapsId, long *Caps

Table 24: GetDeviceCaps

This function can be used to query the device capabilities. The parameter CapsID controls which feature is queried. If the device supports the feature the return value will be scComDeviceCapsReturnSupport, otherwise scComDeviceCapsReturnNoSupport. The following constants are supported as CapsID parameter:

Constant

Comment

scComDeviceCapsWobble

The wobbling feature is available

scComDeviceCapsMOF

Hardware marking on the fly feature is available

scComDeviceCapsPixel

Hardware pixel mode is available

scComDeviceCapsXMinRange

Defines the minimal possible x co-ordinate, the typical resolution of the output device is 16 bit. Therefore this parameter is typically –32768

scComDeviceCapsYMinRange

typically –32768

scComDeviceCapsXMaxRange

typically 32767

scComDeviceCapsYMaxRange

typically 32767

scComDeviceCapsLaserModeYAG

The device supports YAG mode

scComDeviceCapsLaserModeCO2

The device supports CO2 mode

scComDeviceCapsLaserModeLEE

The device supports LEE mode

scComDeviceCaps3D

The third axis is available for z-focus movement

scComDeviceCapsZMinRange

typically –32768

scComDeviceCapsZMaxRange

typically 32767

scComControlCapsVersion

The version of the interface

scComDeviceCapsFlash

The device supports flash mode

scComControlCapsNumStyles

The number of available scanner style sets (pens)

Table 25: CapsID parameters


Return value

Function / Property name

Parameter

long

ScGetDeviceData()

long DataID,long DataLength,unsigned char *Data, long *Result

long

ScSCIGetDeviceData()

long DataId,long DataLength,unsigned char *Data

Table 26: GetDeviceData

Reads data from a device. DataID defines the source of the data; DataLength specifies the number of bytes to be stored into the memory pointed to by Data.

Return value

Function / Property name

Parameter

long

ScSetDeviceData()

long DataID,long DataLength,unsigned char *Data, long *Result

long

ScSCISetDeviceData()

long DataId,long DataLength,unsigned char *Data

Table 27: SetDeviceData

This function writes DataLength number of bytes from Data to the device specified by DataID.

The following DataID values are possible:

Constant

Description

ScComStandardDeviceDataIDRS232_0

Serial interface number 0

scComStandardDeviceDataIDRS232_1

Serial interface number 1

scComStandardDeviceDataIDFlash

Flash data

Table 28: DataID values


Return value

Function / Property name

Parameter

long

ScGetDeviceDelay()

ScComStandardDeviceDelayConstants DelayID, double *Value

long

ScSCIGetDeviceDelayD()

long DelayId,double *Value

Table 29: GetDeviceDelay

Returns the currently set delay value for the delay specified by the ID passed using the parameter DelayID.

Return value

Function / Property name

Parameter

long

ScSetDeviceDelay()

ScComStandardDeviceDelayConstants DelayID, double value

long

ScSCISetDeviceDelayD()

long DelayId, double Value

Table 30: SetDeviceDelay

Using this functions several delay values can be set for marking. The first parameter specifies the delay type, the second defines the value itself. The unit for the delay values is usec (microseconds).

DelayID can be one of the following values:

Constant

Comment

Range

scComStandardDeviceStyleIDMarkDelay

this delay is issued at the end of a line and describes how long the laser should stay there

10 to 10000000 (µs)

value is rounded to multiples of 10

scComStandardDeviceStyleIDJumpDelay

Jump delay, this delay is issued at the end of a jump when the laser is off

10 to 200000 (µs)

value is rounded to multiples of 10

scComStandardDeviceStyleIDPolyDelay

Poly Delay, this delay is issued inside a poly line when changing from one single line to  the next

10 to 200000 (µs)

value is rounded to multiples of 10

scComStandardDeviceStyleIDLaserOnDelay

Laser on delay, the time beginning from the output of the first micro step that the controller card waits before it switches On the laser

1 to 32768 (µs)

scComStandardDeviceStyleIDLaserOffDelay

Laser off delay, the time beginning from the output of the last micro step that the controller card waits before it switches Off the laser

1 to 32768 (µs)

scComStandardDeviceStyleIDLongDelay

Delay to wait after switching power levels.

10 to 1000000000 (µs)

value is rounded to multiples of 10

scComStandardDeviceStreamIDLongDelay

Inserts a delay into the current stream of commands; this value defines how long the execution of all further commands in the stream is delayed.

10 to 1000000000 (µs)

value is rounded to multiples of 10

Table 31: DelayID parameters

warning

ScSCIGetDeviceDelayD / ScSCISetDeviceDelayD require at least version v_3_1_5_0148_20120724


Return value

Function / Property name

Parameter

long

ScGetDeviceEnableFlags()

long FlagsId, long *Flags

long

ScSCIGetDeviceEnableFlags()

long FlagsId, long *Flags

Table 32: GetDeviceEnableFlags

This function returns the currently set device enable flags. The parameter FlagsId specifies the type of flag.

Return value

Function / Property name

Parameter

long

ScSetDeviceEnableFlags()

long FlagsId, long Flags

long

ScSCISetDeviceEnableFlags()

long FlagsId, long Flags

Table 33: SetDeviceEnableFlags

The USC-1 specific enable flags allow to disable the software access for the corresponding I/O ports. This allows to individually enable the write and read access for different applications which are sharing one USC-1 device. These enable flags act on the lowest level interface to the device so that the access to the corresponding port is disabled or enabled for the complete application. The default value after start up is always set to all ports to be enabled. The application must set the enables flags before the device is initialized with the ScInitControl() command.

FalgsId can be one of the following:

Constant

Description

scComStandardDeviceEnableFlagGroupStyle

Sets style options in the current style. See below for possible flags.

scComStandardDeviceEnableFlagSpecialLaser

reserved

scComStandardDeviceEnableFlagGroupOptoOut

Sets the global opto coupler output enable flags - this masks further writes to the opto out port. Only the lower six bits are used. Bits set to 1 are enabled.

scComStandardDeviceEnableFlagGroupRS232

Sets the global RS232 enable flags. Only the lowest bit is used which enables or disables the read and write access to RS232 port 0. Access is archived when bit 0 is set. Can only be set between marking operations.

scComStandardDeviceEnableFlagGroupPowerRamp

Globally enables laserport ramp up/down. Possible flags:

scComStandardDeviceStyleFlagEnablePowerRampUp

scComStandardDeviceStyleFlagEnablePowerRampDown

scComStandardDeviceEnableFlagGroupOutputFlags

Sets general output options. See below for possible flags.

scComStandardDeviceEnableFlagGroupGlobal

Sets global enable flags, independent of the current style. Currently only scComStandardDeviceStyleFlagEnableLongDelay can be disabled globally.

Table 34: FlagsId parameters

Flags for scComStandardDeviceEnableFlagGroupStyle:

Constant

Comment

scComStandardDeviceStyleFlagEnableLongDelay

Enabling this flag inserts a long delay during laser port value changes

scComStandardDeviceStyleFlagEnableCO2List

Enables standby signal for CO2 laser mode

scComStandardDeviceStyleFlagEnableYAGStandBy

Enables standby signal for yag laser mode

scComStandardDeviceStyleFlagEnableWobble

Enables wobbling (see MiscValue)

scComStandardDeviceStyleFlagEnablePortLaser

Sets the global enable flag for the laser port

scComStandardDeviceStyleFlagEnablePort1

Enables global access to 16bit port

scComStandardDeviceStyleFlagEnablePort2

Enables global access to 8bit port

scComStandardDeviceStyleFlagEnableDA1

Enables global DAC 1 access

scComStandardDeviceStyleFlagEnableDA2

Enables global DAC 2 access

scComStandardDeviceStyleFlagEnablePolyDelayBreakAngle

Enables the break angle for poly delays (see MiscValue)

scComStandardDeviceStyleFlagEnablePixelOutput

Enables pixel output when doing object marking (unused when using the low level sci commands)

Table 35: scComStandardDeviceEnableFlagGroupStyle parameters

Flags for scComStandardDeviceEnableFlagGroupOutputFlags:

Constant

Description

scComStandardDeviceStyleFlagOutputFlagEnableExternalProgressCount

enable the use of an external progress counter

scComStandardDeviceStyleFlagOutputFlagEnableStreamFlush

forces a flush of commands to the card once a certain threshold is reached

scComStandardDeviceStyleFlagOutputFlagEnablePCCorrection

disables correction on the device, it is then the responsibility of the client program

Table 36: scComStandardDeviceEnableFlagGroupOutputFlags parameters


Return value

Function / Property name

Parameter

long

ScGetDeviceSpeed()

ScComStandardDeviceSpeedConstants SpeedID, double *Value

long

ScSCIGetDeviceSpeed()

long SpeedId,double *Value

Table 37: GetDeviceSpeed

Returns the currently configured speed value for the delay type specified by parameter SpeedID.

Return value

Function / Property name

Parameter

long

ScSetDeviceSpeed()

ScComStandardDeviceSpeedConstants SpeedId, double Value

long

ScSCISetDeviceSpeed()

long SpeedId, double Value

Table 38: SetDeviceSpeed

This function sets speed values in bits per second. Parameter SpeedId determines the speed type to be changed and parameter value contains the new timer value. The maximum theoretical value that can be set is 25500000 bits/second, although each specific hardware device may have a much smaller usable maximum.

Constant

Comment

scComStandardDeviceStyleIDMarkSpeed

The speed of the scanner in normal mode during marking (movement when the laser is turned on)

scComStandardDeviceStyleIDJumpSpeed

The speed of the scanner in normal mode during jumping (movement when the laser is turned off)

scComStandardDeviceStyleIDDrillJumpSpeed

The speed of the scanner in drill mode during jumping

scComStandardDeviceStyleIDMarkSpeedFU

same as scComStandardDeviceStyleIDMarkSpeed, but in field units instead of bits

scComStandardDeviceStyleIDJumpSpeedFU

same as scComStandardDeviceStyleIDJumpSpeed, but in field units instead of bits

scComStandardDeviceStyleIDDrillJumpSpeedFU

same as scComStandardDeviceStyleIDDrillJumpSpeed, but in field units instead of bits

Table 39: SpeedID parameters

warning

scComStandardDeviceStyleIDMarkSpeedFU requires at least version v3_1_5_0165_20120813


Return value

Function / Property name

Parameter

long

ScGetDeviceTimer()

ScComStandardDeviceTimerConstants TimerID, double *Value

long

ScSCIGetDeviceTimer()

long TimerId, double *Value

Table 40: GetDeviceTimer

Returns the timer value specified by the parameter TimerID. For possible values see below.

Return value

Function / Property name

Parameter

long

ScSetDeviceTimer()

ScComStandardDeviceTimerConstants TimerId, double Value

long

ScSCISetDeviceTimer()

long TimerId, double Value

Table 41: SetDeviceTimer

Sets new timer values in unit microseconds. TimerId specifies the type of timer value, the parameter value contains the new timer value.

TimerId can be one of the following constants, depending on the device operation mode set with ScSetDeviceOperationMode():

For non-CO2 systems (scComStandardDeviceOperationModeIdCO2 not set)

Constant

Description

scComStandardDeviceStyleIDQSwitchPeriod

Q-Switch period time

scComStandardDeviceStyleIDQSwitchLength

Q-Switch length

scComStandardDeviceStyleIDFirstPulseLength

Length of the first pulse killer signal

Table 42: TimerID (non CO2) parameters

For CO2 systems (scComStandardDeviceOperationModeIdCO2 set)

Constant

Description

scComStandardDeviceStyleIDHalfPeriodCO2

Half period length

scComStandardDeviceStyleIDLaser1Length

Pulse length of laser signal 1

scComStandardDeviceStyleIDLaser2Length

Pulse length of laser signal 2

Table 43: TimerID (CO2) parameters

General TimerID values that do not depend on the laser type settings:

Constant

Comment

scComStandardDeviceStyleIDWobblePeriod

Length of the wobble period

scComStandardDeviceStyleIDStandByPulse

Length of the stand by pulse

scComStandardDeviceStyleIDHalfPeriodStandBy

Half period length of standby pulse

Table 44: TimerID (general) parameters


Return value

Function / Property name

Parameter

long

ScGetDevicePath()

ScComStandardDevicePathConstants PathID, BSTR *Path

long

ScSCIGetDevicePath()

long PathId, char *Path

Table 45: GetDevicePath

Returns file or path information currently set. The type of returned value is determined by the path constant given in parameter PathID (see below).

Return value

Function / Property name

Parameter

long

ScSetDevicePath()

ScComStandardDevicePathConstants PathId, BSTR Path

long

ScSCISetDevicePath()

long path_id, const char *Path

Table 46: SetDevicePath

Sets file or path information for external data. Parameter Path specifies the complete file path to the data file, PathId controls the type of path to be set.

Constant

Comment

scComStandardDeviceIDCorrectionFilePath0

Defines the path for correction file 0. This is typically the main correction file. When a new correction file is set the function ScSCIInitOptic() has to be called again in order to apply its specific correction settings to the output device.

scComStandardDeviceIDFlashFilePath

Specifies the file to which flash jobs should be saved to

Table 47: PathID parameters


Return value

Function / Property name

Parameter

long

ScGetDeviceOperationMode()

ScComStandardDeviceOperationModeConstants *Mode

long

ScSCIGetDeviceOperationMode()

long *Value

Table 48: GetDeviceOperationMode

This function returns the current flags for the device operation mode.

Return value

Function / Property name

Parameter

long

ScSetDeviceOperationMode()

ScComStandardDeviceOperationModeConstants Mode

long

ScSCISetDeviceOperationMode()

long Value

Table 49: SetDeviceOperationMode

The device operation mode determines basic settings such as laser type, pixel modulation, laser port settings etc. It consists of a combination of the flags listed below. The recommended way to change the mode is to fetch the current flags and modify them by setting and/or clearing the desired mode prior to calling ScGetDeviceOperationMode(). Some of the modes can only be set if they are supported by the device (please refer to ScGetDeviceCaps()). Otherwise these settings are ignored.

The parameter Mode is of type long and consists of two sections:

Section

Size

Mode ID

1 byte

Mode Flags

3 bytes

Table 50: Mode sections

The value of the ID field defines the principle laser mode. Following constants are defined:

Constant

Comment

scComStandardDeviceOperationModeIdYAG

selects YAG laser mode

scComStandardDeviceOperationModeIdCO2

selects CO2 laser mode

scComStandardDeviceOperationModeIdLEE

selects LEE laser mode

Table 51: ModeID parameters

For the Flags field following constants are defined:

Constant

Comment

scComStandardDeviceOperationModeSimulation

selects simulation output; does not actually mark but simulate the operation

scComStandardDeviceOperationModeHideOutputWindow

hides the marking output window, if available

scComStandardDeviceOperationModeMOF

enables Marking on the Fly mode, if available

scComStandardDeviceOperationModeInvertLaserPort

cause the laser port to be inverted

scComStandardDeviceOperationModeOptimiseScannerDelay

optimizes the scanner jump and poly delays

scComStandardDeviceOperationModeDisableStopBeep

disable the stop beep which may occur with some devices on the end of the mark

scComStandardDeviceOperationModePixelAM

selects the pixel modulation with the DA2 channel of the USC1

scComStandardDeviceOperationModePixelPWM

selects the pixel modulation with Laser ON pulse length of the USC1

scComStandardDeviceOperationModePixelInvert

inverts the pixel image before output

scComStandardDeviceOperationModeDisableHomeJumpSequence

see comments below

scComStandardDeviceOperationModeDisableMarkInProgressFlag

Disables the USC1 mark in progress flag function. If this flag is not set then writing to the opto out port over the standard interface functions masks bit 0 to avoid conflicts with internal settings

scComStandardDeviceOperationModeDisableScannerLaserInit

disables the USC scanner and laser initialization

ScComStandardDeviceStyleFlagEnableWobble

enables wobbling for the marking process

scComStandardDeviceOperationModeEnableStandBy

enables the use of global standby settings, and enables standby pulses for all laser modes except CO2 (uses timing values set with scComStandardDeviceIDHalfPeriodStandBy and scComStandardDeviceIDStandByPulse)

Table 52: Mode Flag parameters

By setting the ScHomeJump property to 0 the scanner will not move to the home position at the end of a marking sequence. But the default behaviour still selects the home jump style 255 regardless how the ScHomeJump property is set. Different to that the scComStandardDeviceOperationModeDisableHomeJumpSequence flag in general disables all home jump activities including the selection of the home jump style. Setting this flag overwrites the ScHomeJump property. This functions has to be used during initialization.

note

Home Position & Home Jump


Return value

Function / Property name

Parameter

long

ScGetDevicePortValue()

ScComStandardDevicePortConstants PortId, long *Value

long

ScSCIGetDevicePortValue()

long PortId, long *Value

Table 53: GetDevicePortValue

This function can be used to retrieve the currently available value at a specific device port. The device itself is specified using the PortId (see below for a list of possible values).

Return value

Function / Property name

Parameter

long

ScSetDevicePortValue()

ScComStandardDevicePortConstants PortId, long Value

long

ScSCISetDevicePortValue()

long PortId, long Value

Table 54: SetDevicePortValue

Sets a value on a specific hardware port of the device. PortId defines the port to which value is written. It can be one of the following:

Possible PortIds (note that not all are available for both reading and writing):

Constant

Description

scComStandardDeviceStyleIDPortLaser

Sets/Gets the value of the currently enabled laser port in the current style (accepts 8bit values and converts them appropriately)

scComStandardDeviceControlIDPortLaser

Sets/Gets the value of the currently enabled laser port (accepts 8bit values and converts them appropriately) immediately

scComStandardDeviceStreamIDPortLaser

Sets the value of the currently enabled laser port (accepts 8bit values and converts them appropriately) within the current stream context

scComStandardDeviceIDPort2Init

Sets/Gets the initial value of Port2 (8-bit port)

scComStandardDeviceIDPortDA1Init

Sets/Gets the initial value of DA1

scComStandardDeviceIDPortDA2Init

Sets/Gets the initial value of DA2

scComStandardDeviceIDOptoOutInit

Sets/Gets the initialize value of the optocoupler outputs.

scComStandardDeviceStyleIDPort1

Sets/Gets the value of port 1 in the current style

scComStandardDeviceControlIDPort1

Sets/Gets the value of port 1 immediately

scComStandardDeviceStreamIDPort1

Sets the value of port 1 within the current stream context

scComStandardDeviceStyleIDPort2

Sets/Gets the value of port 2 in the current style

scComStandardDeviceControlIDPort2

Sets/Gets the value of port 2 immediately

scComStandardDeviceStreamIDPort2

Sets the value of port 2 within the current stream context

scComStandardDeviceStyleIDPortDA1

Sets/Gets the value of DA1 in the current style

scComStandardDeviceControlIDPortDA1

Sets/Gets the value of DA1 immediately

scComStandardDeviceStreamIDPortDA1

Sets the value of DA1 within the current stream context

scComStandardDeviceStyleIDPortDA2

Sets/Gets the value of DA2 in the current style

scComStandardDeviceControlIDPortDA2

Sets/Gets the value of DA2 immediately

scComStandardDeviceStreamIDPortDA2

Sets the value of DA2 within the current stream context

scComStandardDeviceStyleIDPortOptoOut

Sets the value of the optocoupler outputs in the current style

scComStandardDeviceControlIDPortOptoOut

Sets the output values of the optocoupler outputs (opto IOs) immediately; the value passed as parameter Value consists of two parts: the lower 16 bits of that variable contain the bit pattern of the output, the higher 16 bits of Value contain the bit mask that specifies with bits set to 0 which of the lower bits are set. For example a Value of 0xFFFE0011 will set the lowest output bit 0 to 1 while a value of 0xFFEE0010 will set the bit/output number 0 to 0 and the bit number 4 to 1.

How many bits can be set depends on the card. USC-1 can set 6 opto outs, USC-2 can set 6 opto outs and 10 digi outs.

scComStandardDeviceStreamIDPortOptoOut

Sets the output value of the optocoupler output within the current stream context

scComStandardDeviceIDPortOptoIn

Gets the value of the optocoupler input

How many bits can be read depends on the card. USC-1 can read 6 opto ins, USC-2 can read 6 opto ins and10 digi ins.

scComStandardDeviceIDPortEnableLaser

Generally enables or disables the laser

scComStandardDeviceIDPortRS232_0_Mode

Sets/Gets the data transmission mode for the serial interface 0, possible Values are scComStandardDeviceRS232Mode_1_8_0_1 (one start bit one stop bit), scComStandardDeviceRS232Mode_1_8_1_1 (one start bit two stop bits), scComStandardDeviceRS232Mode_1_8_EP_1 (even parity), scComStandardDeviceRS232Mode_1_8_NP_1 (no parity), scComStandardDeviceRS232Mode_1_8_OP_1 (odd parity)

scComStandardDeviceIDPortRS232_0_BaudRate

Sets/Gets the baud rate for the serial interface 0

scComStandardDeviceIDPortFlashStatus

Gets the current flash status

scComStandardDeviceIDPortProgressCounter

Gets the current value of the progress counter. Setting this PortID with value -1 causes a flush operation.

scComStandardDeviceIDPortUSCConnectCount

Gets the number of times this USC device has been connected since the USC Server start

scComStandardDeviceIDPortUSCServerStatus

Returns the server status, a combination of the following flags: scComStandardDeviceUSCServerStatusDeviceConnected, scComStandardDeviceUSCServerStatusDeviceOK, scComStandardDeviceUSCServerStatusDeviceMissing, scComStandardDeviceUSCServerStatusDeviceUSC1, scComStandardDeviceUSCServerStatusDeviceUSC2

scComStandardDeviceStreamIDPortCustomValue

Only possible on USC-2 and via SetPortValue. Inserts a custom value into the stream that will be available via GetUSCInfoLong once the card has reached the point in the stream.

scComStandardDeviceIDOptoOutDevice

Only possible on USC cards. Gets the current value of the optocoupler outputs

Table 55: PortID parameters

Port commands with StreamID in their name can be used in the same way as those with ControlID, but the output is not set immediately. Instead these instructions are embedded into the current stream of commands and are executed at the time the scanner card reaches that position inside the stream. The stream commands allow values to be set marking-dependent. StyleID functions change the current style immediately, but the effect will only be apparent the next time a command uses style information.

warning

scComStandardDeviceStreamIDPortCustomValue require at least version v_3_1_5_0198_20120919


Return value

Function / Property name

Parameter

long

ScSetDeviceMapLaserPort()

ScComStandardDeviceLaserPortMapConstants MapId

long

ScSCISetDeviceMapLaserPort()

long Port

Table 56: SetCeviceMapLaserPort

Selects the laser output port. See below for possible values.

Return value

Function / Property name

Parameter

long

ScGetDeviceMapLaserPort()

ScComStandardDeviceLaserPortMapConstants *MapId

long

ScSCIGetDeviceMapLaserPort()

long *Port

Table 57: GetCeviceMapLaserPort

Returns the currently selected laser port.

Constant

Comment

scComStandardDeviceMapLaserToPort2

maps the laser to parallel port

scComStandardDeviceMapLaserToDA1

maps the laser to DAC 1

scComStandardDeviceMapLaserToDA2

maps the laser to DAC 2

Table 58: MapID parameters

warning

ScSCIGetDeviceMapLaserPort / ScSCISetDeviceMapLaserPort require at least version v_3_1_5_0148_20120724


Return value

Function / Property name

Parameter

long

ScGetIdentString()

BSTR *IdentString

long

ScSCIGetIdentString()

char *Ident

Table 59: GetIdentString

Returns the current card ident string. Possible values are currently "SCAPS USC-1" and "SCAPS USC-2".

warning

ScSCIGetIdentString requires at least version v_3_1_5_0148_20120724.

ScGetIdentString requires v_3_1_5_0165_20120813.


Return value

Function / Property name

Parameter

long

ScGetUSCInfoLong()

long ScComStandardDeviceUSCInfoConstants, long *value

long

ScSCIGetUSCInfoLong()

long ScComStandardDeviceUSCInfoConstants, long *value

Table 60: GetUSCInfoLong

Returns information from the USC-2 shared memory area. Has to be activated with scComStandardDeviceMiscExecServerCommand. Possible constants are:

Constant

Comment

scComStandardDeviceUSCInfoExecutionListCount

execution list count: the number of entries in the cards execution list

scComStandardDeviceUSCInfoOptoIn

current status of OptoIn

scComStandardDeviceUSCInfoHeadStatus0

current XY2-100 status of Head0

scComStandardDeviceUSCInfoHeadStatus1

current XY2-100 status of Head1

scComStandardDeviceUSCInfoCustomValue

custom value: the current custom value that has been reached in the stream (scComStandardDeviceStreamIDPortCustomValue)

scComStandardDeviceUSCInfoStepperX

base byte offset of current position of the X, Y & Z axis of stepper controller

each value is a long, so we have to add 4 or 8 to the constant to get the next value

Example:

the position of the Y axis can be queried by adding 4, i.e. ScGetUSCInfoLong((scComStandardDeviceUSCInfoStepperX + 4),*value) will return the position of the Y axis

scComStandardDeviceUSCInfoStepperA

base byte offset of current position of the A, B, & C axis of stepper controller

each value is a long, so we have to add 4 or 8 to the constant to get the next value

Example:

the position of the C axis can be queried by adding 8, i.e. ScGetUSCInfoLong((scComStandardDeviceUSCInfoStepperA + 8),*value) will return the position of the B axis

Table 61: offset parameters

warning

ScGetUSCInfoLong / ScSCIGetUSCInfoLong requires at least version v_3_1_5_0198_20120919