I had made a post a while back about sending commands to Domino Inkjet Printers, and had a lot of questions answered and was able to successfully query the printers for status and levels:
I have next been trying to figure out how to use ignition to take the value from an HMI on a machine, and send it to the Printer. The value is the Production Order Number and consists of 12 digits: uppercase letters, numbers and a "-". I spent multiple hours for multiple days on the phone with Domino tech support trying to figure out how to send the label data to the printer using codenet, and we could not ever figure it out, so it was recommended we use the EDC TCP function. They sent me over a setup instruction:
EDC procedure.pdf (411.5 KB)
which I completed.
trying to use the code i had used when i was on port 7000 before changing from CodeNet protocol i have not been able to send the data over the writable bit in the tag manager.
def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):
#ESC='1B'.decode('hex') #Start xmissin :7000
#EOT='04'.decode('hex') #End xmissin :7000
ESC='<STX>'.decode('ASCII') #start xmissin :16000
EOT='<ETX>'.decode('ASCII') #end xmissin :16000
#pathToTagB="[.]7000/WritableBytes"
pathToTagB="[.]16000/Writable"
#msg=ESC+'0Y6'+EOT
#msg = ESC + '1C?' + EOT #current printer status
#msg = ESC + 'y?' + EOT #liquid levels
#msg = ESC + '1H?' + EOT
#msg = ESC + '0Y2' + EOT
#msg=ESC+'1P11P6789012'+EOT
#msg=<STX>+'123456789012'+<ETX>
msg='<STX>1pppp6789012<ETX>'
system.tag.writeBlocking(pathToTagB, [msg])
I have been able to update the label by using an external program (Hercules SETUP, recommended by Domino)
does anyone have suggestion on how to do this via Ignition?