DNP3 Fail to Write via Script

Hello,

We have created a script to use the LatchOn command for a DNP3 BinaryOutput0 in Ignition Designer. The manual write command from Ignition tag browser to the DNP3 Slave works and you can trace the packets in the WireShark, which I have attached. However, our system.dnp.directOperateBinary script when pushing the button does not work. Here’s the script:

def runAction(self, event):

	system.dnp.directOperateBinary(
		deviceName="RTAC",
		index=0,
		tcc=0,
		opType=3,
		count=1,
		onTime=5000,
		offTime=5000
	)

The script is written in onActionPerformed event of the push button. When it is pressed, the value of the DNP3 Slave is not changed and no packets pop up at the WireShark.

Let me know if you require more information about the setup/project and thanks in advance.

Andrei

DNP3_test_manual.pcapng (61.1 KB)

@andrei.veremeenko Can you try this without keyword arguments. This function does not accept keyword arguments.

1 Like