# Using Ignition to communicate and control an AX350i Domino inkjet printer

**URL:** <https://forum.inductiveautomation.com/t/using-ignition-to-communicate-and-control-an-ax350i-domino-inkjet-printer/88780>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 13, 2024, 3:42pm UTC](https://forum.inductiveautomation.com/t/using-ignition-to-communicate-and-control-an-ax350i-domino-inkjet-printer/88780 "2024-04-13T15:42:32Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![cdrizzy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cdrizzy/32/59051_2.png) [@cdrizzy](https://forum.inductiveautomation.com/u/cdrizzy)\
**Post date:** [April 19, 2024, 6:00pm UTC](https://forum.inductiveautomation.com/t/using-ignition-to-communicate-and-control-an-ax350i-domino-inkjet-printer/88780/22 "2024-04-19T18:00:51Z")

</div>

It's been a couple of days but I wanted to let you know that I have been able to confirm this method works as well, however I do not seem to have the same luck as you with combining multiple commands. I used a modification of my script as well as yours to get:

```python
def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):

	ESC='1B'.decode('hex') #ESC
	EOT='04'.decode('hex') #Endo of Transmission
	#pathToTagA="[.]RequestCommandtoByteArray"
	#pathToTagB="[.]7000/WritableBytes"
	pathToTagB="[.]7000/Writable"
	#tagAValue=system.tag.readBlocking(pathToTagA)
	#tageAValue=ESC+'31433F'+EOT
	#system.tag.writeBlocking(pathToTagB, tagAValue)
	
	msg = ESC + '1C?' + ESC + 'y?' + EOT
	system.tag.writeBlocking(pathToTagB, [msg])

```

which returns:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3a43c2db00cd224748341c40722271fabc69b0f1.png)

1C? and y? both work independently but combining them doesn't seem to work. I also tried:

```python
def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):

	ESC='1B'.decode('hex') #ESC
	EOT='04'.decode('hex') #Endo of Transmission

	pathToTagA="[.]7000/Message"
	pathToTagB="[.]7000/Writable"
	pathToTagC="[.]Msg1"
	pathToTagD="[.]Msg2"

	tagAValue=system.tag.readBlocking(pathToTagA)
	
	ret1 = ESC + '1C?' + EOT
	system.tag.writeBlocking(pathToTagB, [ret1])
	sytem.tag.writeBlocking(pathToTagC,tagAValue)
	
	ret2=ESC + 'y?' + EOT
	system.tag.writeBlocking(pathToTagB, [ret2])
	sytem.tag.writeBlocking(pathToTagD,tagAValue)

```

Which returned:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/7/37b7ef422bbad92195be7bf959f6396907c6b93a.png)

Right now I am not sure which of the methods I will use, but thank you for helping me understand alternative methods.

---

_[View the full topic](https://forum.inductiveautomation.com/t/using-ignition-to-communicate-and-control-an-ax350i-domino-inkjet-printer/88780)._
