# TCP Driver - Dusttrak device Telnet works, but I can't read in Ignition

**URL:** <https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 14, 2020, 5:43pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505 "2020-12-14T17:43:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mason.Younger](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mason.Younger](https://forum.inductiveautomation.com/u/Mason.Younger)\
**Post date:** [December 14, 2020, 5:43pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/1 "2020-12-14T17:43:44Z")

</div>

I’m trying to add a dust monitoring system to ignition, The device supports TCP over port 3602. I have the device added, with 1/1 Connected.

Using telnet I have to issue command ‘rmmeas’ this then returns a string ‘9581379,0.005,’ The value I want to capture is 0.005 for a tag in ignition.

I noticed there is a writable and message. I wrote rmmeas to the writeable and can read that back, but can not return the sensor value from the end device. I always receive ‘’ or null. I’ve tried setting up comma delimitation and set the return amount to 2, and then 3.

Any suggestions? How do I pool the command at a specific rate? How do I read the value back into Ignition?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/2/f24b2c0379333232b18f146f19e89fc4b5cea3b4.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/969b2c9ba5264aaae8478a6adca9ce24a687f80d.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/2/52d2172d9288a0a89ea4d6e33b591514e7b4e9ea.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7b6620d701c5b548a3ac4391abad698fea4f79f2.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d386b43ffc8c7ec07db05d5afddf23914d6b9d0d.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea685699531f4e9d129d2e3b32df938c01824a87.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [December 14, 2020, 5:59pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/2 "2020-12-14T17:59:57Z")

</div>

Can you get a message back at all? Get rid of the comma delimitation and return amount. Get the raw value back as you get over putty. Then use an expression tag to capture everything to the right of the comma.

Make a bool expression tag that executes at your desired rate that switches between true and false. Then use that to trigger your write.

That’s how I do it.

---

<div class="post-metadata">

**Author:** ![Mason.Younger](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mason.Younger](https://forum.inductiveautomation.com/u/Mason.Younger)\
**Post date:** [December 14, 2020, 7:14pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/3 "2020-12-14T19:14:34Z")

</div>

I have removed the extra settings: ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb49ef162bb4bb1855d85618269284ed0cfbf490.png)

How do I send ‘rmmeas’ and read back what is returned from the sensor?

So far I have not been able to read the sensor values in Ignition. I can write to the ‘writable’, but it just acts as a place holder.

If I try to write to the message I get a ‘Write failed: Bad’

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/9/f98a08a177a82abc7cc3f42f31b0f71a3dfff71d.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/591869ab0a46776074313d4401654ba18aa88e0a.png)

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [December 14, 2020, 7:33pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/4 "2020-12-14T19:33:24Z")

</div>

You need to make an OPC tag. The OPC path parameter should be those OPC items.

When you make a new tag. You can browse thru the OPC server and drill down and find those items. Or type them in.

Once you make a tag for the message and one for writeable.

Try sending your command by typing it in the value of the writeable tag. Through the designer and look for anything returned in the message tag.

You cannot write to the value of the message tag.

---

<div class="post-metadata">

**Author:** ![Mason.Younger](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mason.Younger](https://forum.inductiveautomation.com/u/Mason.Younger)\
**Post date:** [December 14, 2020, 7:48pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/5 "2020-12-14T19:48:23Z")

</div>

Thank you!

I had to add the terminating character, enable read/write, and it came through!

Do you have an example of how I can write on a timer based event? You mentioned an expression, but how do I cause the writeable to ‘post’ so to speak?

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

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [December 14, 2020, 8:57pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/6 "2020-12-14T20:57:48Z")

</div>

create a expression tag. Execution rate set to some rate. DateTime data type. make the expression now()

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

Then set a tag event script and write the value too it. This is a quick rough example.

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

---

<div class="post-metadata">

**Author:** ![Mason.Younger](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mason.Younger](https://forum.inductiveautomation.com/u/Mason.Younger)\
**Post date:** [December 15, 2020, 3:25pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/7 "2020-12-15T15:25:06Z")

</div>

Got it all setup, works like a charm. Thank you for your help.

---

<div class="post-metadata">

**Author:** ![wking](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wking/32/21823_2.png) [@wking](https://forum.inductiveautomation.com/u/wking)\
**Post date:** [December 15, 2020, 3:56pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-dusttrak-device-telnet-works-but-i-cant-read-in-ignition/41505/8 "2020-12-15T15:56:12Z")

</div>

Sweet dude. A heads head up. You should probably be using [system.tag.writeBlocking](https://docs.inductiveautomation.com/display/DOC80/system.tag.writeBlocking) to do your writes.
