# System.dnp3.directOperateBinary issue

**URL:** <https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555>\
**Category:** General Discussion\
**Created:** [April 9, 2024, 3:44am UTC](https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555 "2024-04-09T03:44:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denny\_jimenez](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@denny\_jimenez](https://forum.inductiveautomation.com/u/denny_jimenez)\
**Post date:** [April 9, 2024, 3:44am UTC](https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555/1 "2024-04-09T03:44:41Z")

</div>

I have version 8.1.36 of Ignition installed on a server, and while executing operations on control outputs through scripting, I encounter the following doubts:  
The control TAG is configured as g10v2i0, that is, group 10 variation 2 index 0. Through a button on a screen I am executing a control with the following script:  
"system.dnp3.directOperateBinary(deviceName="TEST", indexes=[0], tcCode=0, opType=1,count=1, onTime=5000, offTime=5000)"  
I perform the trace in wireshark and everything runs fine, but in wireshark I see that the object is 12 variation 1, which I cannot understand, since it is different from what was configured. Does anyone have any idea about this behavior?

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

On the other hand, I do not understand why for version 8.1.36 it is not available in the scripting system.dnp (not legacy driver), since it does not appear as an option to use it in the scripts, however it is available at the level of OPCUA.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 9, 2024, 12:37pm UTC](https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555/2 "2024-04-09T12:37:47Z")

</div>

> [@denny\_jimenez](#):
>
> but in wireshark I see that the object is 12 variation 1, which I cannot understand, since it is different from what was configured.

Group 10 is the Binary Output object, which is what you use when configuring the point to read in Ignition, but Group 12 is the actual _Binary Output Command_ object, which is what needs to be sent during a control operation. What you're seeing is expected.

> [@denny\_jimenez](#):
>
> On the other hand, I do not understand why for version 8.1.36 it is not available in the scripting system.dnp (not legacy driver), since it does not appear as an option to use it in the scripts, however it is available at the level of OPCUA.

The script functions are only available in Gateway (and Perspective) scope. The entry in the user manual for every scripting function should indicate the scope it's available in.

---

<div class="post-metadata">

**Author:** ![denny\_jimenez](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@denny\_jimenez](https://forum.inductiveautomation.com/u/denny_jimenez)\
**Post date:** [April 9, 2024, 9:13pm UTC](https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555/3 "2024-04-09T21:13:10Z")

</div>

Hi Kevin, thanks for the answer, my apologies for my late response. But I have the doubt, the only way to use the system.dnp (no legacy) function is at the level of the Scope gateway, that is, by implementing an Event script gateway?. Because the idea was to implement a vision-level script that when you press a button, you can perform a control action on a DNP equipment such as an RTU SEL RTAC.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 9, 2024, 11:52pm UTC](https://forum.inductiveautomation.com/t/system-dnp3-directoperatebinary-issue/88555/4 "2024-04-09T23:52:25Z")

</div>

You can use `system.util.sendMessage()` or `system.util.sendRequest()` to have Vision invoke code in the gateway.
