# Sending command to TCP device?

**URL:** <https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749>\
**Category:** General Discussion\
**Created:** [February 26, 2015, 4:04pm UTC](https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749 "2015-02-26T16:04:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tristan](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tristan](https://forum.inductiveautomation.com/u/tristan)\
**Post date:** [February 26, 2015, 4:04pm UTC](https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749/1 "2015-02-26T16:04:51Z")

</div>

Hi,

Apologies if this should be posted somewhere else or is answered in the manual, I couldn’t find it anywhere.

I am trying to connect to a PilotOne Huber Chiller controller. It’s manual says that I should be able to communicate with it on TCP port 8101. The general protocol involves sending a command to the unit and receiving a response. (ie ‘what is your temperature?’ -\> ‘This is my temperature’)

Looking at the ignition documentation for connecting to TCP devices, I see how to set up a devices that is continually sending data, but I don’t see how to send a command or initiate a query to a TCP device.

Is this possible?

Thanks,  
Tristan

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 26, 2015, 4:20pm UTC](https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749/2 "2015-02-26T16:20:49Z")

</div>

Hi, tristan. Welcome to the forums!

Once you set up the TCP driver, there is an OPC tag available called “Writable”. That’s where you can send data to the device.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 26, 2015, 4:26pm UTC](https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749/3 "2015-02-26T16:26:28Z")

</div>

Sorry for the crappy screenshot. I’m not in front of my usual development machine… 🙂

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d3672782452da836c90dbfd3d781720bc83def32.PNG)

---

<div class="post-metadata">

**Author:** ![tristan](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tristan](https://forum.inductiveautomation.com/u/tristan)\
**Post date:** [March 2, 2015, 4:24pm UTC](https://forum.inductiveautomation.com/t/sending-command-to-tcp-device/9749/4 "2015-03-02T16:24:16Z")

</div>

Thanks! That worked perfectly
