Class JobFileService
Represents a service for working with job files.
public class JobFileService
- Inheritance
-
JobFileService
- Inherited Members
Remarks
This requires an OPC connection.
Methods
Upload(Stream, int)
Uploads a .ma2 file from a stream to a job to the laser.
public void Upload(Stream stream, int job)
Parameters
stream
StreamStream containing ma2 file data.
job
intThe job index on the Keyence Laser. Ranges from 0...1999.
Remarks
Uploading a file can be very slow, if job
is equal to the actual job.
You can improve the performance, by selecting an other job before.
Exceptions
- ArgumentNullException
Thrown
stream
.- ArgumentOutOfRangeException
The permitted job index on the Keyence laser range from 0 to 1999.
- InvalidOperationException
Throw when the OPC connection is not enabled
-or- the OPC client is not connected (see UseOpc)
-or- the communication priority of the laser could not be obtained.- NotInitializedException
Thrown when the module is not initialized
-or- the OPC connection is not initialized.
Upload(string, int)
Uploads a .ma2 file to a job to the laser.
public void Upload(string filePath, int job)
Parameters
filePath
stringComplete path of the '.ma2' file on the PC, where the LisRT application is running.
job
intThe job index. Ranges from 0...1999.
Remarks
Uploading a file can be very slow, if job
is equal to the actual job.
You can improve the performance, by selecting an other job before.
Exceptions
- ArgumentException
Thrown
filePath
is null or empty
-or-filePath
does not with .ma2.- ArgumentOutOfRangeException
The permitted job numbers on the Keyence laser range from 0 to 1999.
- InvalidOperationException
Throw when the OPC connection is not enabled
-or- the OPC client is not connected (see UseOpc)
-or- the communication priority of the laser could not be obtained.- NotInitializedException
Thrown when the module is not initialized
-or- the OPC connection is not initialized.