--- title: "system.dnp.directOperateBinary" description: "Performs a Direct Operate command on a binary point." --- # system.dnp.directOperateBinary > Performs a Direct Operate command on a binary point. :::note The following function uses [system.dnp](appendix\scripting-functions\system-dnp\system-dnp.md) and the [DNP3 driver](ignition-modules\opc-ua\opc-ua-drivers\dnp3\dnp3-driver\dnp3-driver.md). For [system.dnp3](appendix\scripting-functions\system-dnp3\system-dnp3.md) functions and the [Legacy DNP3 driver](ignition-modules\opc-ua\opc-ua-drivers\dnp3\legacy-dnp3-driver\legacy-dnp3-driver.md), see [DNP3](ignition-modules\opc-ua\opc-ua-drivers\dnp3\dnp3.md). ::: This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.dnp.directOperateBinary(deviceName, index, tcc, opType, count, onTime, offTime)` ### Parameters Type | Parameter | Description ------- | ------- | ----- String| `deviceName` | The name of the DNP3 device instance. Integer| `index` | The index of the binary point. Integer| `tcc` | Trip Close Code: 0=NUL, 1=CLOSE, 2=TRIP. Integer| `opType` | Operation Type: 0=NUL, 1=PULSE_ON, 2=PULSE_OFF, 3=LATCH_ON, 4=LATCH_OFF. Integer| `count` | The number of times the outstation shall execute the operation. Integer| `onTime` | Duration (in milliseconds) the output drive remains active. Integer| `offTime` | Duration (in milliseconds) the output drive remains non-active. ### Returns Nothing. ### Scope Gateway ## Code Examples ```python title="Code Snippet" system.dnp.directOperateBinary("DNP3", 3, 1, 3, 2, 5000, 5000) ```