If you don't want to allow cookies, you can turn off this feature in your browser. Learn more in our privacy policy.

Want to learn more?

Call us

Email us

Request support

cab and the Smart Factory: Networked labeling with OPC UA

Requirements

In the industrial sectors, more and more productional and logistic environments are based on digital process control systems. Machines exchange information with human beings or with other machines, process manufacture-relevant data autonomously, feed data or forward it. Individualization, scalability, lean and traceable processes as well as reliable devices and components are key requirements.

Most of the applications or services on which the control systems are based are hosted on the Internet. Data from sensors, devices or software are transferred to the Cloud and can easily be exchanged between printers or labeling systems, robots and IT systems - provided that they all speak the same language and understand one other.

The protocol

Open Platform Communications Unified Architecture, abbr. OPC UA, creates the basis for interacting machines and components from different manufacturers in an industrial surrounding. In the OPC UA, various specifications have been united to a consistent data model, thus creating a new interface standard. OPC UA triggers networking in industrial manufacturing, as we know it from network and USB interfaces in offices.

OPC UA

Connected with cab devices

You put a production plant into operation? Or you plan to network your material warehouses according to Industry 4.0? If an IP-ready network is available, OPC UA can already be used as a consistent framework for machine-to-machine information access. In the matter of marking components, products or packaging within a plant, cab label printers of the current generation as well as IXOR labeling devices are already OPC UA-ready. They are able to cooperate with superior control units.

Industrie 4.0
 

Highlights at a glance

  • On demand production
  • Automated processes
  • Device configuration
  • Remote device control
  • Device monitoring
  • Interoperability
  • Prognostics and analysis
  • Traceability
  • Inventory resp. stock optimization
  • Shortening of distances
  • Transparency

Event-driven labeling

Asking a label printer at the press of a button how he is doing is outfashioned. Today, smart devices automatically indicate that they want to be maintained or that the material to be printed resp. the ribbon are running short and must be replaced. Labels can be loaded remotely, as well as label characteristics can be read and variable data can be exchanged for printing. Operating parameters such as the print head's running performance so far, its temperature or the number of labels still to be printed in the current job are displayed just in time. Information is transferred by the printer to the plant control system, which identifies and interpretes the information and directly initiates the appropriate measure.

OPC UA as a superior control system offers the advantage of bringing together production data, alarms, events and data history controlled by software under one roof. It integrates and unifies various address spaces and the interfaces to be accessed.



Video OPC UA

Networked labeling with OPC UA

Watch video


OPC UA with cab printers

OPC UA features that are at present supported by cab devices* are as followed:

  •  Communication Stack
         OPC UA binary protocol
  • Encryption
         none
         Basic128Rsa15
         Basic256Sha256
  • Authentication
         anonymous
         user name/password

While fully authenticated users may have full access to the provided data model, anonymous users may only access printer nodes read-only and are not granted to call any method, even if the method does not change the printer's configuration or state.

  • OPC UA Services
         SecureChannel Service Set
         Session Service Set
         Attribute Service Set: reading/writing of attributes, events, no historical data access
         Method Service Set
         MonitoredItem Service Set
         Subscription Service Set
         View Service Set

* cab label printers SQUIX, MACH 4S, EOS2, EOS5, labeling heads IXOR

Information model

cab printers implement the OPC UA Device Integration (DI) model. Two namespaces are provided:

http://cab.de/printer for print job monitoring and control
http://cab.de/printer/setup for device configuration

The functions displayed on the following pages correspond to the current status and are continuously further developed.

Industrie 4.0

Namespace http://cab.de/Printer

This namespace provides access to the current state of the printer, including the state of the I/Os, printer model information or any information about the current job status.

Node name Node class Description
Printer Object The primary entry point for accessing the printer's information model
FPGARevision, Manufacturer,
Model, SerialNumber,
SoftwareRevision,
HardwareRevision
Variable Supply hardware and software versioning information
Bitmap Method Returns the last printed label in .png format
Screen Method Returns a screenshot of the printer's display in .png format
I/O Object Provides software access to the printer's I/O; generates
IOStatusChangeEvent
ENDPOS Variable Applicator is in labeling position
ERROR Variable The printer is in error state
FEEDON Variable A feed is currently in progress, i.e. paper is moving
HOMEPOS Variable Applicator is in home position
JOBRDY Variable Print data is available
MEDERR Variable End of paper or ribbon
PEELPOS Variable Label is in peel position
READY Variable Printer is ready
Status Variable Combined I/O status (bit combination) with the following bits set:
RIBWARN 1   FEEDON  4   PEELPOS 16   ERROR 64
ENDPOS  2   HOMEPOS 8   JOBRDY  32   READY 128
TriggerInput Method Allowing to trigger an I/O input, one of
FSTLBL, REPRINT, START, LBLREM, JOBDEL, RSTERR oder STOP
Interpreter Object Job status information; generates
ErrorEvent, JobInfoEvent and JobFinishEvent
Current Label Object Available whenever a job is executed by the Interpreter
Current Id Variable Unique job Id of current job
Current Name Variable Job name; name of the current job in Interpreter as provided by JScript j command
Current Content Fields Object Root node of named label content fields. They may be replaced by setting the value of the content nodes.
abc Status Variable Current status of integrated abc basic interpreter:
one of Idle, Compiling, Running, RuntimeError oder SyntaxError
Active Variable Indicates printer is active, i.e. interpreting or printing
Available Space Variable Available print queue memory in %
ESCs Variable String containing the result of JScript's ESCs command
ESCz Variable String containing the result of JScript's ESCz command
Error Variable Provides detailed error information as in the ESCs command;
the numeric value may be interpreted as an ASCII char, e.g. 45 == '-' No error
Labels To Print Variable Labels to be printed within the current job
Last Job Variable Name of last job; see the corresponding direct JScript command j
Online Variable Printer is ONLINE, i.e. the graphical user interface shows the home screen
Paused Variable Printer is in PAUSE
CancelJob Method Allows the cancellation of the current print job
LoadLabel Method Allows to load a label from any printer storage
PrintData Method Allows to send JScript print data directly to the printer
TotalCancel Method Cancels all print jobs scheduled or currently printed by the printer
Ribbon Object  
Ribbon RibbonDiameter Variable Detected ribbon diameter in millimeters
Ribbon RibbonLow Variable Indicates whether the ribbon is considered to be low in reference to the corresponding printer setting
Statistics Object  
Statistics Labels Variable Number of labels printed
Statistics Operating Time Variable Uptime of printer in minutes
Statistics Thermal Direct Variable Printed thermal direct material in millimeters
Statistics Thermal Transfer Variable Printed thermal transfer material in millimeters
SubDevices Object  
Applicator* Object  
Barcode Verifier* Object  
Cutter* Object  
Cutter* Can Perforate Variable The attached cutter device may be used for perforation.
Cutter* Has Stacking Box Variable The attached cutter device has a stacking box.
Demand Sensor* Object  
     Sensor Status Variable Photo sensor status
Rewinder* Object  
Ribbon Saver* Object Detected ribbon diameter in millimeters
Ribbon Sync Variable Ribbon Saver is initialized and fully operational.
Ribbon Head State Variable Current state of the print head, one of Printing or Saving
Ribbon Synchronize Method Issues a ribbon saver synchronization command; only relevant for service tasks
Ribbon ToggleHead Method Toggles the head state up or down; only relevant for service tasks
TPH 1 Object Print head information
TPH 1 Model Variable Human readable description string of the installed print head
TPH 1 SoftwareRevision Variable  
TPH 1 Open Variable Open state
TPH 1 SerialNumber Variable Serial string of print head
TPH 1 Temperature Variable Current print head temperature in °C
TPH 1 Statistics Object Statistics correlated with the print head
Storage Object  
IFFS Object (I)nternal (F)lash (F)ile (S)ystem
IFFS IFFS Available Space Variable Space available on the file system in kB
IFFS Capacity Variable Capacity of the file system in kB
SD Card Object  
SD Card SD Card Attached Variable Indicates whether the file system is attached or not
USB Memory Object  

* Optional node, only available with service key attached

Namespace http://cab.de/Printer/Setup

This namespace provides full access to the printer's configuration tree, which is modeled in the same way as the setting levels of the graphical user interface. The actual position of configuration parameters within the tree is subject to change, so it is not safe to look up a node via it's browse path. Instead, configuration nodes may be directly accessed by their unique string identifier.

Node name Node class Description
Setup Object This sub-node of the Printer node is the primary entry point for accessing the printer's setup; generates SetupValueChangeEvent and SetupVisibilityChangeEvent aus
Export Method Exports printer configuration in .xml format
Import Method Imports printer configuration in .xml format
ImportCertificateTLS Method Imports a custom TLS certificate
Reset Method Reset to factory defaults
ResetPasswords Method Reset passwords to factory defaults
<SetupFolder> Object Contains setup values
             <SetupValue> Object A setup value which can be edited
                    IsActive Variable This setup parameter is currently accessible in the printer's graphical user interface.

The following setup value types are available:

  • Boolean values
  • Enumerations
  • String values contain the fields
    MinLen
    MaxLen
    Regex, an optional regular expression which will be applied to a write operation on the attribute's value
  • Numeric values contain the fields
    Range
    Step
    ToggleInt (optional, for display purpose)
    Unit (optional, for display purpose)
  • Passwords contain minimum and maximum length attributes just like string values

In order to activate OPC UA functions on your cab device, please contact: support.de@cab.de

Events

Beyond OPC UA standard events, cab printers provide the following supplementary events.

Event name Type Description
ErrorEvent   Emitted whenever a printer error occurs; generated by node Interpreter
Message LocalizedText Error message
Detail1 LocalizedText More details about the supplied error
Detail2 LocalizedText Even more details about the supplied error
JobInfoEvent   Emitted whenever a label is printed; generated by node Interpreter
LabelNo Int32 Number of label within current job
JobSize Int32 Size of job
IsTestPrint Boolean Indices that currently printed label is a test print
JobFinishEvent   Emitted whenever a job is finished and the printer returns to Idle; generated by node Interpreter
no further fields    
SetupValueChangeEvent   Emitted whenever a setup value changes; generated by node Setup
SourceName String The name of the affected setup parameter
SetupVisibilityChangeEvent   Emitted whenever a setup value changes its visibility state, typically due to interdependencies; generated by node Setup
SourceName String The name of the affected setup parameter
IOStatusChangeEvent   Emitted whenever the I/O status of the device changes; generated by node I/O
Status UInt32 New printer status as described in Printer->IO->Status

Limitations: The OPC UA stack implementation currently does not support:

  • Different kinds of Monitored items - either Change notify or Event notify - within a single subscription though multiple Monitored items of the same kind in a subscription is allowed
  • Where clauses in Monitored items requests
  • Alarms and conditions

In order to activate OPC UA functions on your cab device, please contact: support.de@cab.de

 

Industrie 4.0 with cab devices

 


 

March 2019

cab Produkttechnik GmbH & Co. KG

Wilhelm-Schickard-Str. 14
76131 Karlsruhe
Germany

Call us
Email us
Request support

cab on:

Tweets by @cab_news


3 days ago

With the version 1.2.0.1 (or newer) of the cablabel S3 , manual text is possible: https://www.cablabel.com/blog/2019/05/06/text-tags/ …

Show tweet on Twitter


Follow us on Twitter

cab Newsletter

Our cab-newsletter will inform you regulary about the topic marking by email. Free of charge and not binding. To address you personally and individually, we require some more infomation of you.

subscribe now!
unsubscribe
Live Chat