Smart Media Manager OPC API
Smart Media Manager v6.1.0.2450, Copyright (c) 2023 Hybrid Software. All rights reserved.
Overview
The Smart Media Manager allows the user to create and modify Smart Media Definitions (SMDs).
When the Open Platform Communications (OPC) server in Smart Media Manager is enabled an OPC node tree is published. The nodes in this tree represent grouped areas of state and functionality.
Default address: opc.tcp://localhost:26755/smm
Certificates
Communication between OPC UA clients and servers require both parties to possess their own application certificate. To enable further communication each party must trust the opposing certificate. This trust can be established automatically, programmatically or manually depending on the application's configuration or implementation. The application certificate can be found in %programdata%\Hybrid Software\Smart Media Manager\App Certificates\certs should you need to copy it to the Trusted Peer Certificate folder. In this release it will be a Self Signed Certificate.
OPC Methods
Any methods listed in this documentation will include details about their required parameters (if any), and return value.
In the event of an error please see the application log file for more information.
OPC Methods
Many published OPC method nodes return a String value indicating their success or error state. In all such cases a check for Success indicates success, and any other value indicates an error.
|
Return Value |
Description |
|---|---|
|
|
The request completed successfully. |
|
|
The specified item was not found. |
|
|
The SMD failed to export. |
|
|
The SMD in SPC failed to update. |
|
|
There is no active project. |
|
|
The request requires SMM to be in end user mode. |
|
|
The request failed to execute. |
|
|
The request requires media to be loaded. |
Any methods returning data (for example JSON or comma-separated values) will be explicitly documented. Callers should validate returned data format to determine success (otherwise one of the above errors may be returned).
Any methods listed in this documentation include details about required parameters (if any) and return values.
In the event of an error, please see the Smart Media Manager log file for more information.
OPC Client Library
The following documentation provides guidance on using the Traeger Industry Components GmbH OPC client library for software developers working with Smart Media Manager.
Configuring Custom Message Sizes
The default maximum message sizes used by OPC clients to communicate to the server are sufficient for most use cases. However, to ensure transfer of larger data packets it may be necessary to configure the OPC client with custom values.
For example:
Client = new OpcClient();
Client.Transport.MaxArrayLength = 1024 * 1024 * 50;
Client.Transport.MaxBufferSize = 1024 * 1024 * 50;
Client.Transport.MaxMessageSize = 1024 * 1024 * 50;
Client.Transport.MaxStringLength = 1024 * 1024 * 50;
See here for more information.
Adjusting Communication Timeouts
OPC clients regularly verify the responsiveness of the connection to the OPC server. However, in certain circumstances where the system is under heavy load, maintaining a responsive connection might not always be possible. To mitigate potential issues under such conditions, it is recommended to increase the default communication timeouts.
The example below demonstrates how to adjust the default values:
var defaultTimeOut = (int)TimeSpan.FromMinutes(10).TotalMilliseconds;
Client = new OpcClient
{
// Don't auto-disconnect - Dispose the client to explicitly disconnect.
DisconnectTimeout = int.MaxValue,
KeepAlive = { Interval = defaultTimeOut },
SessionTimeout = defaultTimeOut,
OperationTimeout = defaultTimeOut,
ReconnectTimeout = defaultTimeOut
};
Please note that the provided examples serve as illustrations, and it's important to tailor the configuration to your specific requirements.
SmartMediaManagerSet
The top-level set containing all available OPC nodes.
Immediately underneath this root-level node are a categorized collection of sub-nodes, each encapsulating a different area of behavior.
|
Section Name |
Description |
|---|---|
|
App |
General Information about the app (E.g. Version number, Product name, etc.). |
|
DropLevelMixing |
Controls to handle drop level mixing in SMM |
|
InlineTargets |
Controls to handle inline targets in SMM |
|
Linearization |
Controls to handle linearization in SMM |
|
MediaSetup |
Controls to change the values in the media setup pane in SMM |
|
PrintFlat |
Controls to create PrintFlat calibrations. |
|
RIPSetup |
Controls to change the values in the RIP Setup pane in SMM |
|
SpotSetup |
Controls to change the values in the spot override pane in SMM |
|
TotalInkLimit |
Controls to handle total ink limit in SMM |
App
General Information about the app (E.g. Version number, Product name, etc.).
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
Gets the company name. |
|
|
|
No |
This setting is based on the application license.
|
|
|
|
Yes |
The name of the application's current media. |
|
|
|
No |
The list of media names that are available to load from the controller. |
|
|
|
No |
Indicates whether the currently loaded application media is fully loaded. |
|
|
|
No |
Gets the product name. |
|
|
|
Yes |
Whether to lock the minimized status of the application UI when running in server mode.
|
|
|
|
No |
Gets the application version number. |
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Connects the application to the controller at the specified OPC UA server URL. |
|
|
|
Disconnects the application from its current controller. |
|
|
|
Exit the application. |
|
|
|
Export the application media to a device configuration. |
|
|
|
Populates the list of media names from the controller. |
|
|
|
Import media from device configuration into the application. |
|
|
|
Load media from an SMD into the application. |
|
|
|
Load media from controller into the application. |
|
|
|
Allows an OPC client to write an error message into the application log. |
|
|
|
Allows an OPC client to write an information message into the application log. |
|
|
|
Allows an OPC client to write a warning message into the application log. |
|
|
|
Save an SMD based on the settings provided in SMM. |
|
|
|
Save the application media to the controller. |
Files
|
Name |
Description |
|---|---|
|
|
Allows read-only access to the application log file. |
NOTE OPC File nodes contain functions which allow access to file content:
-
Open(int fileAccess)- Open the file with the specifiedfileAccess(1:read,2:write), returning an integer file handle. -
Read(int fileHandle, int length)- Read data from an open file handle, returning an array of bytes. -
Write(int fileHandle, byte[] buffer)- Write/append data to an open file handle. -
Close(int fileHandle)- Close the file handle after use.
For more information see the OPC documentation.
Preferences
Application preferences
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
Yes |
List of all length units supported by SMM. |
|
|
|
No |
List of all scanners known to SMM. |
|
|
|
Yes |
Whether the target will be automatically pushed from the Waiting Queue to the Print Queue in SPC. |
|
|
|
Yes |
DeltaE tolerance for showing color as out of gamut. |
|
|
|
Yes |
The selected unit to be used in SMM graphics interface. |
|
|
|
Yes |
The selected scanner to use to scan targets. |
|
|
|
Yes |
Number of targets to print. Must be greater than 0. |
|
|
|
Yes |
Target height in mm. |
|
|
|
Yes |
Target width in mm. |
|
|
|
Yes |
Whether to running PrintFlat calibration process in test mode. |
|
|
|
Yes |
Whether to use Delta E76 or Delta E2000 measurement. |
|
|
|
Yes |
Whether to use solid line to draw cutting lines for PrintFlat targets. |
|
|
|
Yes |
The height of wake up bar drawn in PrintFlat target in mm. |
DropLevelMixing
Controls to handle drop level mixing in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
List of all drop level mixing inline targets. |
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Send standard drop level target or predefined inline target to SPC to print. |
|
|
|
Send standard ink limit target or imported inline target to SPC to print. |
|
|
|
Send standard pinning target to SPC to print. |
InlineTargets
Controls to handle inline targets in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
List of all inline targets. |
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Import a ColorAnt chart and convert to an inline target. |
|
|
|
Send the inline target to the waiting queue of SPC. |
|
|
|
Remove the inline target. |
Linearization
Controls to handle linearization in SMM
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Send standard pre-linearization target or imported inline target to SPC to print. |
MediaSetup
Controls to change the values in the media setup pane in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
Yes |
Whether to add white backing to the target. |
|
|
|
No |
List of all bits per pixels. |
|
|
|
No |
List of all resolutions. |
|
|
|
No |
List of all screens. |
|
|
|
Yes |
The backing color for the media.
|
|
|
|
No |
The available backing colors. |
|
|
|
Yes |
The description for the media. |
|
|
|
No |
The device name. |
|
|
|
No |
The device manufacturer. |
|
|
|
Yes |
The media group used to group similar media together.
|
|
|
|
No |
The available media groups. |
|
|
|
Yes |
The name of the media. |
|
|
|
Yes |
The media width in mm.
|
|
|
|
No |
The available media widths in mm. |
|
|
|
No |
The device model. |
|
|
|
Yes |
The selected process color space.
|
|
|
|
No |
The supported process color spaces for the current media. |
|
|
|
Yes |
The selected BitsPerPixel.
|
|
|
|
Yes |
The selected resolution.
|
|
|
|
Yes |
The selected screen.
|
SpotColors
Spot colors for the current media.
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
Yes |
Whether the spot color is active. |
|
|
|
Yes |
Whether the spot color is color managed. |
|
|
|
No |
The spot color name. |
PrintFlat
Controls to create PrintFlat calibrations.
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
List of all colorants known to SMM. |
|
|
|
No |
List of all image devices that can be used by PrintFlat. |
|
|
|
Yes |
List of calibration files to be imported.
|
|
|
|
Yes |
List of colorants to be calibrated.
|
|
|
|
Yes |
Number of targets to print. Must be greater than 0. |
|
|
|
Yes |
The selected image device (scanner or camera) to capture printed targets.
|
|
|
|
Yes |
The folder in which scans or camera images are saved for PrintFlat.
|
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Create calibration from the images in the |
|
|
|
Import calibrations from the |
RIPSetup
Controls to change the values in the RIP Setup pane in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
Yes |
The selected option for generating the CMYK device link profile. |
|
|
|
Yes |
This intent overrides all CMYK images. This setting will also apply to gray images when 'Color manage gray as CMYK' is checked.
|
|
|
|
Yes |
Whether to process gray with CMYK color management. |
|
|
|
No |
Name of the media's device emulation ICC profile. |
|
|
|
Yes |
Whether the device emulation ICC profile will be used. |
|
|
|
Yes |
The selected option for generating the Gray device link profile. |
|
|
|
No |
Name of the media's input CMYK ICC profile. |
|
|
|
No |
Name of the media's input Gray ICC profile. |
|
|
|
No |
Name of the media's input RGB ICC profile. |
|
|
|
Yes |
Whether to keep text black. |
|
|
|
Yes |
This is the default rendering intent. The rendering intents in the document will override it.
|
|
|
|
Yes |
Whether to optimize the fine paths. |
|
|
|
No |
Name of the media's output ICC profile. |
|
|
|
Yes |
Whether to override the color management specified in the PDF. |
|
|
|
Yes |
Whether to preserve 100% black. |
|
|
|
Yes |
The selected option for generating the RGB device link profile. |
|
|
|
Yes |
This intent overrides all RGB images.
|
|
|
|
Yes |
Whether to use 16 bit output. |
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Create CMYK device link profile.
|
|
|
|
Create Gray device link profile.
|
|
|
|
Create RGB device link profile.
|
|
|
|
Install an ICC profile into the media.
|
|
|
|
Install an ICC profile into the media.
|
|
|
|
Install an ICC profile into the media.
|
|
|
|
Install an ICC profile into the media.
|
|
|
|
Install an ICC profile into the media.
|
SpotSetup
Controls to change the values in the spot override pane in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
List of all the ignored spot colors currently loaded in the SMD. |
|
|
|
No |
List of active print bars. |
|
|
|
No |
List of all the aliased spot colors currently loaded in the SMD. Each entry is formatted as '='. |
|
|
|
Yes |
List of all the spot colors currently loaded in the SMD. |
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Add a spot color to the spot color list from CMYKOV values. |
|
|
|
Add a spot color to the spot color list from CMYK values. |
|
|
|
Add a spot color to the ignored spots list. |
|
|
|
Add a spot color to the spot color list from Lab values. |
|
|
|
Add a spot color to the aliased spots list. |
|
|
|
Remove all spot colors from the ignored spots list. |
|
|
|
Remove all spot colors from the aliased spots list. |
|
|
|
Remove all the spot colors ftom the spot color list. |
|
|
|
Export the list of spot colors as a tcb file. |
|
|
|
Import the list of spot colors from a tcb, tcbx or cxf file. |
|
|
|
Remove a spot color from the ignored spots list. |
|
|
|
Remove a spot color from the aliased spots list. |
|
|
|
Remove the spot color from the spot color list. |
TotalInkLimit
Controls to handle total ink limit in SMM
Properties
|
Name |
Type |
Writable |
Description |
|---|---|---|---|
|
|
|
No |
List of total ink limit profiles. |
|
|
|
Yes |
The selected total ink limit profile.
|
Methods
|
Name |
Returns |
Description |
|---|---|---|
|
|
|
Send standard total ink limit target to SPC to print. |