mz-automation / lib60870.NET

Official repository for lib60870.NET an implementation of the IEC 60870-5-101/104 protocols in C#
https://www.mz-automation.de/communication-protocols/iec-60870-5-101-104-c-net-source-code-library/
GNU General Public License v3.0
122 stars 74 forks source link

[Ask] SBO command (bool select = true) #12

Open kemas88 opened 4 years ago

kemas88 commented 4 years ago

Hello,

As you know for command there is two type. First is direct and second is SBO (select then execute)

In the examples : con.SendControlCommand (CauseOfTransmission.ACTIVATION, 1, new DoubleCommand (5001, DoubleCommand.ON, false, 0));

The bool select state is set to "false". Do you have additional example if the bool select is set to "true"?

If I just set to True, it doesnt work. It will need confirmation first before execute command.

Regards,

mzillgith commented 4 years ago

Hello, You can do the following: 1) send select 2) check in the ASDU handler for the positive or negative confirmation for select (ACT CON) 3) send execute 4) (optional) check in the ASDU handler for the positive or negative confirmation for execute (ACT CON)