Oib printercontrol
Printer Control
Communication Parameters
| Name | Type | Possible Values | Default Value | Description |
| enableMode | Enum | None
OnePerEnterprise
OnePerSite
OnePerLine | None | How should activate Printer Control instance:
None - No instance will be used OnePerEnterprise - One Instance for all Lines (Enterprise level) OnePerSite - One Instance for all Lines (Site level)
OnePerLine - One Instance per Line |
| callbackPort | Integer | | 0 | What port to use to receive events from Printer Control. Use 0 to use a free port at callbackBasePort + 800 |
| replyTimeout | Integer | | 60000 | Number of milliseconds to wait for a Printer Control Request reply |
Events
PrinterControl.Event.VerifyPrinterMaterialRequest
Called in case a material is verified by the operator on the printer. The MES has to decide if the material can be used by the printer. In case it should not be used, MES will set the verification status to Error (=2) and thereby prevent usage of the material. The error message is displayed on the printer. In case of status warning is returned, the warning message is displayed on the printer but the material can be used
| Property Id | Data Type | Possible Values | Description |
| PrinterControl.Property.PrinterMaterial.Barcode | String | | |
| PrinterControl.Property.PrinterMaterial.Name | String | | |
| PrinterControl.Property.PrinterMaterial.Machine | Object | | |
| PrinterControl.Property.PrinterMaterial.ProductInfo | Object | | |
| PrinterControl.Property.PrinterMaterial.SetupPath | String | | |
| PrinterControl.Property.PrinterMaterial.VerificationItemId | String | | |
| PrinterControl.Property.PrinterMaterial.Machine.MachineId | String | | |
| Property Id | Data Type | Possible Values | Description |
| PrinterControl.Property.PrinterMaterial.Barcode | String | | |
| PrinterControl.Property.PrinterMaterial.Name | String | | |
| PrinterControl.Property.PrinterMaterial.Machine | Object | | |
| PrinterControl.Property.PrinterMaterial.ProductInfo | Object | | |
| PrinterControl.Property.PrinterMaterial.SetupPath | String | | |
| PrinterControl.Property.PrinterMaterial.VerificationItemId | String | | |
Commands
PrinterControl.Command.VerifyPrinterMaterialRequestReply
This command is used to send a reply to the PrinterControl.Event.VerifyPrinterMaterialRequest event, and is expecting the following parameters:
| Command Parameter Name | Type | Mandatory | Possible Values | Default Value | Description |
| Internal.ReplyId | String | Yes | | | Id of the request that this command is supposed to reply |
| PrinterValidationStatus | Integer | Yes | | | |
| VerificationItemId | String | Yes | | | |
| Message | String | Yes | | | |
This command is used to send a reply to the PrinterControl.Event.VerifyPrinterToolRequest event, and is expecting the following parameters:
| Command Parameter Name | Type | Mandatory | Possible Values | Default Value | Description |
| Internal.ReplyId | String | Yes | | | Id of the request that this command is supposed to reply |
| PrinterValidationStatus | Integer | Yes | | | |
| VerificationItemId | String | Yes | | | |
| Message | String | Yes | | | |