Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kemas88 opened this issue Nov 7, 2019 · 1 comment
Open

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

kemas88 opened this issue Nov 7, 2019 · 1 comment
Labels

Comments

@kemas88
Copy link

kemas88 commented Nov 7, 2019

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
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants