system.dnp.directOperateBinary
note
The following function uses system.dnp and the DNP3 driver. For system.dnp3 functions and the Legacy DNP3 driver, see DNP3.
This function is used in Python Scripting.
Description​
Performs a Direct Operate command on a binary point.
Client Permission Restrictions​
This scripting function has no Client Permission 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​
Code Snippet
system.dnp.directOperateBinary("DNP3", 3, 1, 3, 2, onTime=5000, offTime=5000)