Class LaserModule
Represents a Keyence marking laser.
public class LaserModule : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView, IHasDeviceLabel
  - Inheritance
 - 
      
      PropertyChangedBaseLaserModule
 
- Implements
 - 
      
      
      
      INotifyPropertyChangedEx
 
- Inherited Members
 - 
    
    
    
    
    
    
    
    
    
    PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
 
Remarks
Performance Improvement
To speed up modifying a job, open a job using the CreateJob(int, int) method and close it after modification using the EndJob(int) method. This means that the job only has to be verified once, and not with every change.Constructors
LaserModule(string, ICommunication)
Initializes a new instance of the LaserModule class.
public LaserModule(string name, ICommunication communication)
  Parameters
namestringModule Name.
communicationICommunicationInstance of communication module.
Remarks
The communication argument is normally a TCP client, the default port is 50002.
The encoding should be UTF8 to use UTF-8 encoded content.
The encoding must also be configured on the laser (Settings→Controller→Communication Settings→CharCode).
The start delimiter is empty and the end delimiter is CR ("\r") by default.
Properties
DefaultTimeout
Gets or sets default timeout in milliseconds.
[Configuration(1000)]
public int DefaultTimeout { get; set; }
  Property Value
- int
 The default value is 1000 ms.
DeviceLabel
Gets or sets the label for the device.
[Configuration("Keyence")]
public string DeviceLabel { get; set; }
  Property Value
DeviceState
Gets the device state.
public DeviceState DeviceState { get; }
  Property Value
DisableErrorMessage
Gets or sets a value indicating whether the state message, which is shown when the marking laser has an error, should be hidden.
public bool DisableErrorMessage { get; set; }
  Property Value
DisableWarmUpMessage
Gets or sets a value indicating whether the warm up message should be hidden.
public bool DisableWarmUpMessage { get; set; }
  Property Value
Errors
Gets the current errors.
public IEnumerable<string> Errors { get; }
  Property Value
InstanceID
Gets or sets the ID for this instance.
[Configuration(0)]
public int InstanceID { get; set; }
  Property Value
IsMarking
Gets a value indicating whether the laser is actually marking.
public bool IsMarking { get; }
  Property Value
JobFiles
Gets the job files.
public JobFileService JobFiles { get; }
  Property Value
Remarks
The job files service uses a OPC connection. See UseOpc and OpcEndpoint.
LastReceivedResponse
Gets last received response from laser.
public string LastReceivedResponse { get; }
  Property Value
LastSentCommand
Gets last sent command.
public string LastSentCommand { get; }
  Property Value
LogoFiles
Gets the logo and photo files.
public LogoFileService LogoFiles { get; }
  Property Value
Remarks
The logo files service uses a OPC connection. See UseOpc and OpcEndpoint.
MarkingBuilderVersion
Gets or sets current Marking Builder Version.
[Configuration(MarkingBuilderVersion.MB3)]
public MarkingBuilderVersion MarkingBuilderVersion { get; set; }
  Property Value
OpcEndpoint
Gets or sets the OPC endpoint URL.
[Configuration("opc.tcp://192.168.101.39:4840", Description = "Endpoint Url for the OPC connection.")]
public string OpcEndpoint { get; set; }
  Property Value
- See Also
 
UseOpc
Gets or sets a value indicating whether a OPC UA communication is established with the device.
[Configuration(false)]
public bool UseOpc { get; set; }
  Property Value
- See Also
 
Methods
CanGetCommunicationPriority()
Gets a value indicating whether the communication priority can be obtained.
public bool CanGetCommunicationPriority()
  Returns
- bool
 A value indicating whether the communication priority can be obtained.
Remarks
This function requires a OPC connection. See UseOpc and OpcEndpoint.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- InvalidOperationException
 Thrown when the OPC connection is disabled.
ClearError()
Clears error memory on laser and updates error state collection afterwards.
public void ClearError()
  Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
CreateJob(int, int)
Opens the specified job for creation or modification.
public void CreateJob(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
DeleteJob(int, int)
Deletes a job.
public void DeleteJob(int job, int timeoutInMs = -1)
  Parameters
jobintThe index of the job to delete. 9999 deletes all job.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
DisableGuideLaser()
Disables the guide laser.
public void DisableGuideLaser()
  Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
DisableMarking(int, int, int)
Disables marking for a specific block.
public void DisableMarking(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
DisableMarkingForAllBlocks(int, int)
Disables marking for all blocks in a job.
public void DisableMarkingForAllBlocks(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
DisableMarkingForAllMatrixCells(int, int)
Disables marking for all matrix cells.
public void DisableMarkingForAllMatrixCells(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EditJob(int, Action<LaserModule, int>, int)
Creates or modifies a job within a CreateJob(int, int) and EndJob(int) block.
public void EditJob(int job, Action<LaserModule, int> jobEdit, int timeoutInMs = -1)
  Parameters
jobintThe job index.
jobEditAction<LaserModule, int>The action for job creation. First argument is the laser, the second the job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Examples
This example sets the content of block 1 and 2 in a CreateJob-EndJob block.
Laser.EditJob(
    job: 10
    jobEdit: (laser, jobNo) =>
    {
        laser.WriteCharacterString(jobNo, 1, "Test");
        laser.WriteCharacterString(jobNo, 2, "Test");
    });
def edit_job(laser, job_no):
    laser.WriteCharacterString(job_no, 1, "Test");
    laser.WriteCharacterString(job_no, 2, "Test");
Laser.EditJob(job=10, jobEdit=edit_job)
  Remarks
If an error occurs while EndJob, the jobEdit method will be executed outside the CreateJob, EndJob block again.
This has the advantage that an exception is thrown with a meaningful message.
Exceptions
- ArgumentNullException
 Throw when
jobEditis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EnableGuideLaser(GuideLaserType)
Enables the guide laser.
public void EnableGuideLaser(GuideLaserType type = GuideLaserType.Continuous)
  Parameters
typeGuideLaserTypeType of the guide laser.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EnableMarking(int, int, int)
Enables marking for a specific block.
public void EnableMarking(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EnableMarkingForAllBlocks(int, int)
Enables marking for all blocks in a job.
public void EnableMarkingForAllBlocks(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EnableMarkingForAllMatrixCells(int, int)
Enables marking for all matrix cells.
public void EnableMarkingForAllMatrixCells(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EnableMarkingForSpecifiedMatrixCells(int, int, IEnumerable<bool>, int)
Enables marking for all matrix cells.
public void EnableMarkingForSpecifiedMatrixCells(int job, int startCell, IEnumerable<bool> markingEnabled, int timeoutInMs = -1)
  Parameters
jobintThe job index.
startCellintThe start cell, of the
markingEnabledcells.markingEnabledIEnumerable<bool>The marking enabled values of the matrix cells.
Example: new bool[] { false, true, false}; Cell 1 and cell 3 are disabled, cell2 is enabled.timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
EndJob(int)
Ends the creation or modification of a job.
public void EndJob(int timeoutInMs = -1)
  Parameters
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ExecuteJob(int)
Starts the loaded job and waits until the job is completely finished.
public void ExecuteJob(int timeoutInMs)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when the device did not finish marking.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ExecuteJob(int, CancellationToken)
Starts the loaded job and waits until the job is completely finished.
public void ExecuteJob(int timeoutInMs, CancellationToken cancellationToken = default)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when the device did not finish marking.
-1 uses the DefaultTimeout.cancellationTokenCancellationTokenCancellation token to cancel marking.
Remarks
This function requires a OPC connection.
See UseOpc and OpcEndpoint.
If you don't use the OPC connection, use the ExecuteJob(int) method.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- InvalidOperationException
 Thrown when the OPC connection is disabled.
- LaserException
 Thrown when the marking laser returns an error.
- OperationCanceledException
 Thrown when the operation is canceled.
Exit()
De-initializes the module and all of its sub modules.
public override void Exit()
  Initialize()
Initializes laser module.
public override void Initialize()
  LoadJob(int, int)
Loads the selected jobNumber and waits until the operation is finished.
public void LoadJob(int jobNumber, int timeout = -1)
  Parameters
jobNumberintNew job number.
timeoutintTimeout in milliseconds.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- TimeoutException
 Thrown when the job loading didn't finish in the expected timeout.
- LaserException
 Thrown when the marking laser returns an error.
Mark(int)
Starts the loaded job and waits until marking is finished.
public void Mark(int timeoutInMs)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
Remarks
This function returns when the marking process is finished. If a value is also read back (e.g. the code quality) in the loaded job, use the WaitUntilOperationIsFinished(int, CancellationToken) function to wait until the job is completely finished.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
Mark(int, CancellationToken)
Starts the loaded job and waits until marking is finished.
public void Mark(int timeoutInMs, CancellationToken cancellationToken)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
cancellationTokenCancellationTokenCancellation token to cancel marking.
Remarks
This function requires an OPC connection.
See UseOpc and OpcEndpoint.
If you don't use the OPC connection, use the Mark(int) method.
This function returns when the marking process is finished.
If a value is also read back (e.g. the code quality) in the loaded job, use the ExecuteJob(int, CancellationToken) function to wait until the job is completely finished.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- InvalidOperationException
 Thrown when the OPC connection is disabled.
- LaserException
 Thrown when the marking laser returns an error.
- OperationCanceledException
 Thrown when marking is canceled.
Read2DCode(Read2DCodeParameters, int)
Reads a 2D code.
public Read2DCodeResult Read2DCode(Read2DCodeParameters writeValues, int timeoutInMs = -1)
  Parameters
writeValuesRead2DCodeParametersCode read settings.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- Read2DCodeResult
 return values of scan operation depending on marking builder version.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadApproach(int, int, int)
Reads the approach setting for a specific block.
public double ReadApproach(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- double
 The approach value in millimeters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadArcCharacter(int, int, int)
Reads the settings of characters written on an arc of a specific block.
public ArcCharacter ReadArcCharacter(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- ArcCharacter
 Parameter for arc character.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadBarcodeSize(int, int, int)
Reads the barcode size of a specific block.
public BarcodeSize ReadBarcodeSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- BarcodeSize
 Barcode size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadBlockLayout(int, int, int)
Reads the layout of a specific block.
public BlockLayout ReadBlockLayout(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- BlockLayout
 The layout of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadBlockMarkingParameters(int, int, int)
Reads the marking parameters for a specific block.
public BlockMarkingParameters ReadBlockMarkingParameters(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- BlockMarkingParameters
 Marking parameters for target block read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadBlockPosition(int, int, int)
Reads the position of a specific block.
public BlockPosition ReadBlockPosition(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- BlockPosition
 The position of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadBlockType(int, int, int)
Reads the type of the specified block.
public BlockType ReadBlockType(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- BlockType
 The type of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCameraImageFilePath(RequestImageType, int)
Reads the file path to last stored image from the laser.
public CameraImageFilePathResponse ReadCameraImageFilePath(RequestImageType imageType, int tracking)
  Parameters
imageTypeRequestImageTypeImage type.
trackingintTracking index.
Returns
- CameraImageFilePathResponse
 Results read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCameraImageSetting(int, TargetFunction)
Reads the camera image settings from the laser.
public CameraImageSettings ReadCameraImageSetting(int job, TargetFunction function)
  Parameters
jobintThe job index.
functionTargetFunctionThe camera function.
Returns
- CameraImageSettings
 Settings read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCameraTargetSetting(int, TargetFunction)
Reads the camera target settings from the laser.
public CameraTargetSettings ReadCameraTargetSetting(int job, TargetFunction function)
  Parameters
jobintJob index.
functionTargetFunctionCamera function.
Returns
- CameraTargetSettings
 Settings read from laser.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCellReferencePoint(int, int)
Reads the matrix cell reference point of a job.
public ReferencePoint ReadCellReferencePoint(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- ReferencePoint
 Matrix cell reference point.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCharacterFont(int, int, int)
Reads the character font of the specified block.
public CharacterFont ReadCharacterFont(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CharacterFont
 The character font of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCharacterProportional(int, int, int)
Reads character proportional settings of a specific block.
public CharacterProportional ReadCharacterProportional(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CharacterProportional
 The character proportional settings of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCharacterRatio(int, int, int)
Reads the character ratio of a specific block.
public CharacterRatio ReadCharacterRatio(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CharacterRatio
 Parameter for character ratio.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCharacterSize(int, int, int)
Reads the character size of the specified block.
public CharacterSize ReadCharacterSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CharacterSize
 The character size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCharacterString(int, int, int)
Reads the character string of the specified block.
public string ReadCharacterString(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- string
 The character string of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodeFillParameter(int, int, int)
Reads code fill parameters for a specific block.
public CodeFillParameter ReadCodeFillParameter(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CodeFillParameter
 The code fill parameters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodePattern(int, int, int)
Reads the code pattern settings for a specific block.
public CodePattern ReadCodePattern(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CodePattern
 Code pattern settings read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodeReaderLightSetting(int)
Reads the code reader lighting settings.
public CodeReaderLightSettings ReadCodeReaderLightSetting(int job)
  Parameters
jobintThe job index.
Returns
- CodeReaderLightSettings
 Parameters read from laser.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodeReaderSetting(int)
Reads code reader settings from the laser.
public CodeReaderSettings ReadCodeReaderSetting(int job)
  Parameters
jobintJob index.
Returns
- CodeReaderSettings
 parameters read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodeSetting(int, int, int)
Reads the code settings of a specific block.
public CodeSettings ReadCodeSetting(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CodeSettings
 The code settings of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCodeType(int, int, int)
Reads the code type of the specified block.
public CodeType ReadCodeType(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CodeType
 The code type of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCommonMarkingParameters(int, int)
Reads common marking parameters of the specified job.
public CommonMarkingParameters ReadCommonMarkingParameters(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- CommonMarkingParameters
 Common marking parameters read from laser.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCounter(int, string)
Read laser counter parameters from Laser.
public CounterValues ReadCounter(int job, string counter)
  Parameters
Returns
- CounterValues
 parameters read from laser.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadCurveCorrection(int, int, int)
Reads the curve correction setting for a specific block.
public bool ReadCurveCorrection(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- bool
 True if curve correction is active; otherwise, false.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadDataMatrixSize(int, int, int)
Reads data matrix size of a specific block.
public DataMatrixSize ReadDataMatrixSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintJob index.
blockintBlock index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- DataMatrixSize
 The data matrix size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadFillMarkingParameters(int, int, int)
Reads the fill marking parameters for a specific block.
public FillMarkingParameters ReadFillMarkingParameters(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- FillMarkingParameters
 The fill marking parameters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadGS1DataBarSize(int, int, int)
Reads the GS1 data bar size of a specific block.
public GS1DataBarSize ReadGS1DataBarSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- GS1DataBarSize
 The GS1 data bar size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadGroupOffset(int, int)
Reads the offset of a specific group.
public GroupOffset ReadGroupOffset(int job, int group)
  Parameters
Returns
- GroupOffset
 The offset of a group.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadHatchParameters(int, int, int)
Reads hatch parameters for a specific block.
public HatchParameters ReadHatchParameters(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- HatchParameters
 The hatch parameters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadHatchPattern(int, int, int)
Reads hatch pattern settings for a specific block.
public HatchPattern ReadHatchPattern(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- HatchPattern
 The hatch pattern settings read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadHeightCorrection(int, int)
Reads the height correction of the specified job.
public HeightCorrection ReadHeightCorrection(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- HeightCorrection
 The height correction.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadJobNumber()
Reads the loaded job number from the laser.
public int ReadJobNumber()
  Returns
- int
 parameters read from laser.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadJobPosition(int, int)
Reads the position of the specified job.
public JobPosition ReadJobPosition(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- JobPosition
 The position of the specified job.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadJobTitle(int, int)
Reads the title of the specified job.
public string ReadJobTitle(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- string
 Title of the specified job.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadJumpSpeed(int, int, int)
Reads the jump speed for a specific block.
public JumpSpeed ReadJumpSpeed(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- JumpSpeed
 The jump speed setting read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadLastCodeResult(int)
Reads 2D-Code from Laser with marking builder version MBPLUS.
public Read2DCodeResult ReadLastCodeResult(int timeoutInMs = -1)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- Read2DCodeResult
 results of last scan operation.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadLastWindowCheckAfterMarkingResult(int)
Reads the last window check after marking result.
public WindowCheckResult ReadLastWindowCheckAfterMarkingResult(int timeoutInMs = -1)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- WindowCheckResult
 results of last window check.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadLastWindowCheckBeforeMarkingResult(int)
Reads the last window check before marking result.
public WindowCheckResult ReadLastWindowCheckBeforeMarkingResult(int timeoutInMs = -1)
  Parameters
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- WindowCheckResult
 results of last window check.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadLogoSize(int, int, int)
Reads the logo size of a specific block.
public LogoSize ReadLogoSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- LogoSize
 Logo size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMarkingConfirmationResult()
Reads the last marking confirmation result.
public MarkingConfirmationResult ReadMarkingConfirmationResult()
  Returns
- MarkingConfirmationResult
 The result of the last marking confirmation.
ReadMarkingConfirmationSetting(int)
Reads marking confirmation settings from the laser.
public MarkingConfirmationSettings ReadMarkingConfirmationSetting(int job)
  Parameters
jobintJob index.
Returns
- MarkingConfirmationSettings
 marking confirmation settings read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMarkingEnergyCheck(int, int)
Reads the marking energy check parameters of the specified job.
public MarkingEnergyCheckParameters ReadMarkingEnergyCheck(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- MarkingEnergyCheckParameters
 parameters for marking energy supervision.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMarkingEnergyResult()
Reads the last marking energy result.
public MarkingEnergyResult ReadMarkingEnergyResult()
  Returns
- MarkingEnergyResult
 The result of the last marking energy.
ReadMarkingQuality(int, int, int)
Reads the marking quality for a specific block.
public MarkingQuality ReadMarkingQuality(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- MarkingQuality
 The marking quality read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMarkingResult()
Reads the marking result from the laser.
public MarkingResult ReadMarkingResult()
  Returns
- MarkingResult
 Results read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMatrixCell(int, int, int)
Reads a matrix cell settings of a specific matrix cell.
public MatrixCell ReadMatrixCell(int job, int cell, int timeoutInMs = -1)
  Parameters
jobintThe job index.
cellintThe cell of the matrix.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- MatrixCell
 Matrix cell.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMatrixCellsMarkingCount()
Reads the numbers of marked matrix cells.
public MatrixCellMarkingCount ReadMatrixCellsMarkingCount()
  Returns
- MatrixCellMarkingCount
 The number of matrix marked cells.
ReadMatrixInactiveCellCount(int, int)
Reads a value indicating whether inactive cells are counted.
public bool ReadMatrixInactiveCellCount(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- bool
 inactive cell count read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMatrixPosition(int, int)
Reads the matrix position of a job.
public MatrixPosition ReadMatrixPosition(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- MatrixPosition
 Matrix position.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMatrixSettings(int, int)
Reads the matrix settings of a job.
public MatrixSettings ReadMatrixSettings(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- MatrixSettings
 matrix settings read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMatrixSize(int, int)
Reads the matrix size of a job.
public MatrixSize ReadMatrixSize(int job, int timeoutInMs = -1)
  Parameters
jobintThe job index.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- MatrixSize
 Size of the matrix.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadMultiPassMarkingParameters(int, int, int, int)
Reads marking parameters for target block.
public MultiPassMarkingParameters ReadMultiPassMarkingParameters(int job, int block, int overprinting, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
overprintingintThe overprinting index.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Returns
- MultiPassMarkingParameters
 Marking parameters for target block read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadOnTheFlyParameters(int)
Reads the OnTheFly settings of a specific job.
public OnTheFlySettings ReadOnTheFlyParameters(int job)
  Parameters
jobintThe job index.
Returns
- OnTheFlySettings
 Parameters read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadPhotoSettings(int, int, int)
Reads photo settings for a specific block.
public PhotoSettings ReadPhotoSettings(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- PhotoSettings
 The photo settings read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadQRCodeSize(int, int, int)
Reads the QR code size of a specific block.
public QRCodeSize ReadQRCodeSize(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- QRCodeSize
 The QR code size of the block.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadSpaceApproach(int, int, int)
Reads the space approach setting for a specific block.
public double ReadSpaceApproach(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- double
 The space approach value in millimeters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadTrueTypeFontParameters(int, int, int)
Reads TrueType font parameters for a specific block.
public TrueTypeFontParameters ReadTrueTypeFontParameters(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- TrueTypeFontParameters
 The TrueType font parameters read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadTrueTypeFontPattern(int, int, int)
Reads TrueType font pattern settings for a specific block.
public TrueTypeFontPattern ReadTrueTypeFontPattern(int job, int block, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Returns
- TrueTypeFontPattern
 The TrueType font pattern settings read from the laser.
Exceptions
- NotSupportedException
 Thrown when MarkingBuilderVersion is MB3.
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckAfterMarkingAlarmThreshold(int)
Reads the alarm threshold value for window check.
public int ReadWindowCheckAfterMarkingAlarmThreshold(int job)
  Parameters
jobintJob index.
Returns
- int
 Alarm threshold in percent.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckAfterMarkingEnable(int)
Reads the enabled state for window check after marking.
public bool ReadWindowCheckAfterMarkingEnable(int job)
  Parameters
jobintJob index.
Returns
- bool
 window check is enabled.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckAfterMarkingSensitivity(int)
Reads the sensitivity for window check after marking.
public WindowCheckSensitivity ReadWindowCheckAfterMarkingSensitivity(int job)
  Parameters
jobintJob index.
Returns
- WindowCheckSensitivity
 sensitivity of window check.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckBeforeMarkingAlarmThreshold(int)
Reads the alarm threshold value for window check.
public int ReadWindowCheckBeforeMarkingAlarmThreshold(int job)
  Parameters
jobintJob index.
Returns
- int
 Alarm threshold in percent.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckBeforeMarkingEnable(int)
Reads the enabled state for window check before marking.
public bool ReadWindowCheckBeforeMarkingEnable(int job)
  Parameters
jobintJob index.
Returns
- bool
 window check is enabled.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWindowCheckBeforeMarkingSensitivity(int)
Reads the sensitivity for window check before marking.
public WindowCheckSensitivity ReadWindowCheckBeforeMarkingSensitivity(int job)
  Parameters
jobintJob index.
Returns
- WindowCheckSensitivity
 sensitivity of window check.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadWorkFlowResultDetail()
Reads the detailed work flow results from the laser.
public WorkFlowResultDetail ReadWorkFlowResultDetail()
  Returns
- WorkFlowResultDetail
 Results read from laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadXYTrackingCorrectionThreshold(int, int)
Reads XY-tracking correction threshold from the laser.
public int ReadXYTrackingCorrectionThreshold(int job, int tracking)
  Parameters
Returns
- int
 XY-tracking correction threshold.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadXYTrackingEnable(int, int)
Reads enabled of XY-tracking from the laser.
public bool ReadXYTrackingEnable(int job, int tracking)
  Parameters
Returns
- bool
 XY-Tracking is enabled.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadZTrackingCalibration(int)
Reads calibration of Z-tracking from the laser.
public ZTrackingCalibration ReadZTrackingCalibration(int job)
  Parameters
jobintJob index.
Returns
- ZTrackingCalibration
 calibration of Z-tracking.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ReadZTrackingEnable(int, int)
Reads enabled of Z-tracking from the laser.
public bool ReadZTrackingEnable(int job, int tracking)
  Parameters
Returns
- bool
 Z-tracking is enabled.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
ShowServiceView()
Shows the service window.
public void ShowServiceView()
  UpdateDeviceState()
Updates device state Properties and error state collection afterwards.
public void UpdateDeviceState()
  Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
UpdateErrorState()
Updates the Errors.
public void UpdateErrorState()
  Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
UploadJob(Job, int, bool, int)
Uploads a Job to the laser.
public void UploadJob(Job job, int jobIndex, bool clearExistingJob = true, int timeoutInMs = -1)
  Parameters
jobJobThe job to upload.
jobIndexintThe job index.
clearExistingJobboolA a value indicating whether a existing job should be cleared. Must be true if text blocks with TrueType font are used.
timeoutInMsintTimeout in in milliseconds for a single communication operation.
Exceptions
- ArgumentNullException
 Thrown when
jobis null.- ArgumentException
 Thrown when the
jobcontains a TextBlock using a TrueType font andclearExistingJobis false.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WaitUntilOperationIsFinished(int, CancellationToken)
Waits until the laser is busy.
public void WaitUntilOperationIsFinished(int timeout, CancellationToken cancellationToken = default)
  Parameters
timeoutintTimeout in milliseconds.
cancellationTokenCancellationTokenCancellation token to cancel the operation.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- OperationCanceledException
 Throw when the operation is canceled.
WriteApproach(int, int, double, int)
Writes the approach setting for a specific block.
public void WriteApproach(int job, int block, double approach, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
approachdoubleThe approach value in millimeters.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteApproachScanSpeed(int, int, int)
Writes the approach scan speed for the specified job.
public void WriteApproachScanSpeed(int job, int approachScanSpeed, int timeoutInMs = -1)
  Parameters
jobintThe job index.
approachScanSpeedintThe approach scan speed in mm/s.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Remarks
Only applied to blocks where quality level is set to custom.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteArcCharacter(int, int, ArcCharacter, int)
Sets the settings of characters written on an arc for a specific block.
public void WriteArcCharacter(int job, int block, ArcCharacter arcCharacter, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
arcCharacterArcCharacterArc character settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
arcCharacteris null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteBarcodeSize(int, int, BarcodeSize, int)
Sets the barcode size for a specific block.
public void WriteBarcodeSize(int job, int block, BarcodeSize barcodeSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
barcodeSizeBarcodeSizeBarcode size.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
barcodeSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteBlockLayout(int, int, BlockLayout, int)
Sets the layout for a specific block.
public void WriteBlockLayout(int job, int block, BlockLayout blockLayout, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
blockLayoutBlockLayoutThe block layout.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
blockLayoutis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteBlockMarkingParameter(int, int, BlockMarkingParameters, int)
Sets the marking parameters for a specific block.
public void WriteBlockMarkingParameter(int job, int block, BlockMarkingParameters blockMarkingParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
blockMarkingParametersBlockMarkingParametersThe marking parameters.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteBlockPosition(int, int, BlockPosition, int)
Sets the position for a specific block.
public void WriteBlockPosition(int job, int block, BlockPosition blockPosition, int timeoutInMs = -1)
  Parameters
jobintJob index.
blockintBlock index.
blockPositionBlockPositionBlock position.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
blockPositionis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteBlockType(int, int, BlockType, int)
Sets the type of the specified block.
public void WriteBlockType(int job, int block, BlockType blockType, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
blockTypeBlockTypeThe type to set for the block.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCameraImageSetting(int, TargetFunction, CameraImageSettings)
Writes camera image settings to the laser.
public void WriteCameraImageSetting(int job, TargetFunction function, CameraImageSettings cameraImageSettings)
  Parameters
jobintJob index.
functionTargetFunctionThe camera function.
cameraImageSettingsCameraImageSettingssettings to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when
cameraImageSettingsis null.- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCameraTargetSetting(int, TargetFunction, CameraTargetSettings)
Writes camera target settings to the laser.
public void WriteCameraTargetSetting(int job, TargetFunction function, CameraTargetSettings cameraTargetSettings)
  Parameters
jobintJob index.
functionTargetFunctionCamera function.
cameraTargetSettingsCameraTargetSettingssettings to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCellReferencePoint(int, ReferencePoint, int)
Sets the reference point of the matrix cells of a job.
public void WriteCellReferencePoint(int job, ReferencePoint referencePoint, int timeoutInMs = -1)
  Parameters
jobintThe job index.
referencePointReferencePointReference point of the matrix cells.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCharacterFont(int, int, CharacterFont, int)
Sets the character font for the specified block.
public void WriteCharacterFont(int job, int block, CharacterFont characterFont, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
characterFontCharacterFontThe character font to set.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
characterFontis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCharacterProportional(int, int, CharacterProportional, int)
Sets the character proportional settings for a specific block.
public void WriteCharacterProportional(int job, int block, CharacterProportional characterProportional, int timeoutInMs = -1)
  Parameters
jobintJob index.
blockintBlock index.
characterProportionalCharacterProportionalCharacter proportional settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
characterProportionalis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCharacterRatio(int, int, CharacterRatio, int)
Sets the character ratio for a specific block.
public void WriteCharacterRatio(int job, int block, CharacterRatio characterRatio, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
characterRatioCharacterRatioCharacter ratio settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
characterRatiois null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCharacterSize(int, int, CharacterSize, int)
Sets the character size for the specified block.
public void WriteCharacterSize(int job, int block, CharacterSize characterSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
characterSizeCharacterSizeThe character size to set.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
characterSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCharacterString(int, int, string, int)
Sets the marking character string for the specified block.
public void WriteCharacterString(int job, int block, string content, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
contentstringThe marking characters to set.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Remarks
This command can be sent to blocks of type: HatchLogo, Photo, WorkpieceImageLogo, Logo, HorizontalText, VerticalText, ArcTextClockwise, ArcTextCounterClockwise, and Code1D2D.
Exceptions
- ArgumentNullException
 Thrown when
contentis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCodeFillParameter(int, int, CodeFillParameter, int)
Writes code fill parameters for a specific block.
public void WriteCodeFillParameter(int job, int block, CodeFillParameter codeFillParameter, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
codeFillParameterCodeFillParameterThe code fill parameters to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
codeFillParameteris null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCodePattern(int, int, CodePattern, int)
Writes the code pattern settings for a specific block.
public void WriteCodePattern(int job, int block, CodePattern codePattern, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
codePatternCodePatternThe code.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCodeReaderSetting(int, CodeReaderSettings)
Writes code reader settings to the laser.
public void WriteCodeReaderSetting(int job, CodeReaderSettings settings)
  Parameters
jobintJob index.
settingsCodeReaderSettingsparameters to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- ArgumentException
 Thrown when all properties of
settingsarenull.- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCodeSetting(int, int, CodeSettings, int)
Sets the code settings for a specific block.
public void WriteCodeSetting(int job, int block, CodeSettings codeSettings, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
codeSettingsCodeSettingsCode settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
codeSettingsis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCodeType(int, int, CodeType, int)
Sets the code type for the specified block.
public void WriteCodeType(int job, int block, CodeType codeType, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
codeTypeCodeTypeThe code type to set.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCommonMarkingParameter(int, CommonMarkingParameters, int)
Sets the common marking parameters for the specified job.
public void WriteCommonMarkingParameter(int job, CommonMarkingParameters commonMarkingParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
commonMarkingParametersCommonMarkingParametersThe common marking parameters.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Throw if
commonMarkingParametersis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCounter(int, string, CounterValues)
Write counter settings to laser.
public void WriteCounter(int job, string counter, CounterValues writeValues)
  Parameters
jobintJob index.
counterstringCounter name.
writeValuesCounterValuesparameters to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteCurveCorrection(int, int, bool, int)
Writes the curve correction setting for a specific block.
public void WriteCurveCorrection(int job, int block, bool curveCorrectionIsActive, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
curveCorrectionIsActiveboolTrue to enable curve correction; otherwise, false.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteDataMatrixSize(int, int, DataMatrixSize, int)
Sets data matrix size for a specific block.
public void WriteDataMatrixSize(int job, int block, DataMatrixSize dataMatrixSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
dataMatrixSizeDataMatrixSizeThe data matrix size.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
dataMatrixSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteFillMarkingParameters(int, int, FillMarkingParameters, int)
Writes the fill marking parameters for a specific block.
public void WriteFillMarkingParameters(int job, int block, FillMarkingParameters fillMarkingParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
fillMarkingParametersFillMarkingParametersThe fill marking parameters to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
fillMarkingParametersis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteGS1DataBarSize(int, int, GS1DataBarSize, int)
Sets the GS1 data bar size for a specific block.
public void WriteGS1DataBarSize(int job, int block, GS1DataBarSize gs1DataBarSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
gs1DataBarSizeGS1DataBarSizeGS1 data bar size.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
gs1DataBarSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteGroupOffset(int, int, GroupOffset)
Sets the offset for a specific group.
public void WriteGroupOffset(int job, int group, GroupOffset groupOffset)
  Parameters
jobintThe job index.
groupintThe group index.
groupOffsetGroupOffsetOffset to set.
Exceptions
- ArgumentNullException
 Thrown when
groupOffsetis null.- ArgumentException
 Thrown when all properties of
groupOffsetarenull.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteHatchParameters(int, int, HatchParameters, int)
Writes hatch parameters for a specific block.
public void WriteHatchParameters(int job, int block, HatchParameters hatchParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
hatchParametersHatchParametersThe hatch parameters to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
hatchParametersis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteHatchPattern(int, int, HatchPattern, int)
Writes hatch pattern settings for a specific block.
public void WriteHatchPattern(int job, int block, HatchPattern hatchPattern, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintTh block index.
hatchPatternHatchPatternThe hatch pattern settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteHeadOrientation(int, HeadOrientation, int)
Sets the head orientation for a specific job.
public void WriteHeadOrientation(int job, HeadOrientation headOrientation, int timeoutInMs = -1)
  Parameters
jobintThe job index.
headOrientationHeadOrientationThe head orientation.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteHeightCorrection(int, HeightCorrection, int)
Writes the height correction of the specified job.
public void WriteHeightCorrection(int job, HeightCorrection heightCorrection, int timeoutInMs = -1)
  Parameters
jobintThe job index.
heightCorrectionHeightCorrectionThe height correction.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
heightCorrectionis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteJobNumber(int)
Loads the selected job.
public void WriteJobNumber(int job)
  Parameters
jobintNew job number.
Remarks
After loading a new job, wait until operation is finished.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteJobPosition(int, JobPosition, int)
Sets the position of the specified job.
public void WriteJobPosition(int job, JobPosition position, int timeoutInMs = -1)
  Parameters
jobintThe job index.
positionJobPositionThe position.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
positionis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteJobTitle(int, string, int)
Writes the job title.
public void WriteJobTitle(int job, string title, int timeoutInMs = -1)
  Parameters
jobintThe job index.
titlestringThe title.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when the
titleis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteJumpSpeed(int, int, JumpSpeed, int)
Writes the jump speed for a specific block.
public void WriteJumpSpeed(int job, int block, JumpSpeed jumpSpeedSetting, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
jumpSpeedSettingJumpSpeedThe jump speed setting to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteLogoSize(int, int, LogoSize, int)
Sets the logo size for a specific block.
public void WriteLogoSize(int job, int block, LogoSize logoSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
logoSizeLogoSizeLogo size.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
logoSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMarkingConfirmationSetting(int, MarkingConfirmationSettings)
Writes marking confirmation settings to the laser.
public void WriteMarkingConfirmationSetting(int job, MarkingConfirmationSettings settings)
  Parameters
jobintJob index.
settingsMarkingConfirmationSettingsparameters to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- ArgumentException
 Thrown when all properties of
settingsarenull.- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMarkingEnergyCheck(int, MarkingEnergyCheckParameters, int)
Sets parameters the marking energy check parameters for the specified job.
public void WriteMarkingEnergyCheck(int job, MarkingEnergyCheckParameters markingEnergyParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
markingEnergyParametersMarkingEnergyCheckParametersThe marking energy settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
markingEnergyParametersis null.- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMarkingQuality(int, int, MarkingQuality, int)
Writes the marking quality for a specific block.
public void WriteMarkingQuality(int job, int block, MarkingQuality markingQuality, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
markingQualityMarkingQualityThe marking quality to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
markingQualityis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMatrixCell(int, int, MatrixCell, int)
Sets a matrix cell settings of a specific matrix cell.
public void WriteMatrixCell(int job, int cell, MatrixCell matrixCell, int timeoutInMs = -1)
  Parameters
jobintThe job index.
cellintThe cell index of the matrix.
matrixCellMatrixCellThe cell settings.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMatrixInactiveCellCount(int, bool, int)
Writes value indicating whether inactive matrix cells are counted.
public void WriteMatrixInactiveCellCount(int job, bool countInactiveCells, int timeoutInMs = -1)
  Parameters
jobintThe job index.
countInactiveCellsboolA value indicating whether inactive cells should be counted.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMatrixPosition(int, MatrixPosition, int)
Sets the matrix position of a job.
public void WriteMatrixPosition(int job, MatrixPosition matrixPosition, int timeoutInMs = -1)
  Parameters
jobintThe job index.
matrixPositionMatrixPositionMatrix position.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMatrixSettings(int, MatrixSettings, int)
Sets matrix settings of a job.
public void WriteMatrixSettings(int job, MatrixSettings matrixSettings, int timeoutInMs = -1)
  Parameters
jobintThe job index.
matrixSettingsMatrixSettingsMatrix settings.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMatrixSize(int, MatrixSize, int)
Sets the matrix size of a job.
public void WriteMatrixSize(int job, MatrixSize matrixSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
matrixSizeMatrixSizesettings sent to laser.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteMultiPassMarkingParameter(int, int, int, MultiPassMarkingParameters, int)
Sets common marking parameters.
public void WriteMultiPassMarkingParameter(int job, int block, int overprinting, MultiPassMarkingParameters blockMarkingParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
overprintingintThe overprinting index.
blockMarkingParametersMultiPassMarkingParametersMulti pass marking parameters for target block.
timeoutInMsintTimespan in milliseconds after which an exception is thrown when device does not return an answer.
-1 uses the DefaultTimeout.
Exceptions
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteOnTheFlyParameters(int, OnTheFlySettings)
Writes the OnTheFly settings for a specific block.
public void WriteOnTheFlyParameters(int job, OnTheFlySettings writeValues)
  Parameters
jobintThe job index.
writeValuesOnTheFlySettingsOnTheFly parameters to be written to laser.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WritePhotoSettings(int, int, PhotoSettings, int)
Writes photo settings for a specific block.
public void WritePhotoSettings(int job, int block, PhotoSettings ttfParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
ttfParametersPhotoSettingsThe photo settings to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
ttfParametersis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteQRCodeSize(int, int, QRCodeSize, int)
Sets QR code size for a specific block.
public void WriteQRCodeSize(int job, int block, QRCodeSize qrCodeSize, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
qrCodeSizeQRCodeSizeQR code size.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
qrCodeSizeis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteSpaceApproach(int, int, double, int)
Writes the space approach setting for a specific block.
public void WriteSpaceApproach(int job, int block, double spaceApproach, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
spaceApproachdoubleThe space approach value in millimeters.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteTrueTypeFontParameters(int, int, TrueTypeFontParameters, int)
Writes TrueType font parameters for a specific block.
public void WriteTrueTypeFontParameters(int job, int block, TrueTypeFontParameters trueTypeFontParameters, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
trueTypeFontParametersTrueTypeFontParametersThe TrueType font parameters to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
trueTypeFontParametersis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteTrueTypeFontPattern(int, int, TrueTypeFontPattern, int)
Writes TrueType font pattern settings for a specific block.
public void WriteTrueTypeFontPattern(int job, int block, TrueTypeFontPattern trueTypeFontPattern, int timeoutInMs = -1)
  Parameters
jobintThe job index.
blockintThe block index.
trueTypeFontPatternTrueTypeFontPatternThe TrueType font pattern settings to write.
timeoutInMsintTimeout in milliseconds after which an exception is thrown if the device does not respond.
Specify -1 to use DefaultTimeout.
Exceptions
- ArgumentNullException
 Thrown when
trueTypeFontPatternis null.- NotInitializedException
 Thrown when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckAfterMarkingAlarmThreshold(int, int)
Writes alarm threshold value for window check to the laser.
public void WriteWindowCheckAfterMarkingAlarmThreshold(int job, int alarmThreshold)
  Parameters
Exceptions
- ArgumentOutOfRangeException
 Throw when
alarmThresholdis less than 0 or greater than 100.- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckAfterMarkingEnable(int, bool)
Writes whether window check after marking is enabled to the laser.
public void WriteWindowCheckAfterMarkingEnable(int job, bool writeValue)
  Parameters
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckAfterMarkingSensitivity(int, WindowCheckSensitivity)
Writes sensitivity for window check after marking to the laser.
public void WriteWindowCheckAfterMarkingSensitivity(int job, WindowCheckSensitivity writeValue)
  Parameters
jobintJob index.
writeValueWindowCheckSensitivitywindow check sensitivity.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckBeforeMarkingAlarmThreshold(int, int)
Writes alarm threshold value for window check to the laser.
public void WriteWindowCheckBeforeMarkingAlarmThreshold(int job, int alarmThreshold)
  Parameters
Exceptions
- ArgumentOutOfRangeException
 Throw when
alarmThresholdis less than 0 or greater than 100.- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckBeforeMarkingEnable(int, bool)
Writes whether window check before marking is enabled to the laser.
public void WriteWindowCheckBeforeMarkingEnable(int job, bool writeValue)
  Parameters
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteWindowCheckBeforeMarkingSensitivity(int, WindowCheckSensitivity)
Writes sensitivity for window check before marking to the laser.
public void WriteWindowCheckBeforeMarkingSensitivity(int job, WindowCheckSensitivity writeValue)
  Parameters
jobintJob index.
writeValueWindowCheckSensitivitywindow check sensitivity.
Exceptions
- NotSupportedException
 Thrown when the MarkingBuilderVersion is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteXYTrackingCorrectionThreshold(int, int, int)
Writes XY-tracking correction threshold to the laser.
public void WriteXYTrackingCorrectionThreshold(int job, int tracking, int writeValue)
  Parameters
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteXYTrackingEnable(int, int, bool)
Writes enable of XY-tracking to the laser.
public void WriteXYTrackingEnable(int job, int tracking, bool trackingIsEnabled)
  Parameters
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteZTrackingCalibration(int, ZTrackingCalibration)
Writes Z-tracking calibration to the laser.
public void WriteZTrackingCalibration(int job, ZTrackingCalibration writeValues)
  Parameters
jobintJob index.
writeValuesZTrackingCalibrationcalibration of Z-tracking.
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.
WriteZTrackingEnable(int, int, bool)
Writes enable of Z-tracking to the laser.
public void WriteZTrackingEnable(int job, int tracking, bool trackingIsEnabled)
  Parameters
Exceptions
- ArgumentNullException
 Thrown when any argument is null.
- NotSupportedException
 Thrown when the MarkingBuilderVersion property is MB3.
- NotInitializedException
 Throw when the module is not initialized.
- LaserException
 Thrown when the marking laser returns an error.