Aller au contenu principal

Recherche

Recherche

Set Printer Clock from BarTender

Commentaires

6 commentaires

  • Avatar
    pthane

    If you use a Seagull driver then you can append direct printer commands to a label in the location shown below if that helps

    0
  • Avatar
    Harald Rauch

    pthane Thanks Peter, I am aware of that option but if I wanted to send a SET CLOCK command at the beginning of every print job, how do I get the current date and time into that command box? It does not look like I can enter any system variables here. For instance, for a Markem-Imaje X60 the command would look like this:
    ~CS10:25:40 19/07/2023|

    How do I get the current date and time in the required format "hh:mm:ss dd/MM/yyyy" into the command box?

    0
  • Avatar
    pthane

    Not sure if you can do that automatically but there maybe another way but need to look into it

    Are there any other protocols/commands needed and are you using either Automation or Enterprise editions? Are the devices networked and have an IP address? 

    0
  • Avatar
    Harald Rauch

    We have Enterprise Edition and all printers are on an Ethernet wired network with IP addresses. Are you thinking socket connection from an Integration? That, or some fancy PowerShell script would be an alternative.

    0
  • Avatar
    pthane

    Yes that was what I was looking at. I cant actually test it here but in theory it would be set up something like this:

    • You could add to the label off to the side of the print area) the Printer Name (from Print Job Fields Data Sources) and the date and time field including the ~CS prefix and then add an action to output/write the date field string in text file that has the name of the printer (plus a file extension). 
    • An Integration could be created for each printer, waiting for a file to arrive that has the name of the printer and then that write the %Event Data% (ie the date command and string) to the IP address of that printer.  

     I am guessing the label files just sit on the device waiting for the operator to start the print job and so hopefully that would mean it would react to the set clock command first before the printing has begun. 

    0
  • Avatar
    Harald Rauch

    Thanks pthane I think I have enough to go on, the trigger for me was mentioning the Integration. We receive a web service call from the MES system to load the printers with the layouts and data and I can send the SET CLOCK commands directly from the Integration and not from the document.

    0

Vous devez vous connecter pour laisser un commentaire.