Can I turn on a digital I/O using Robot Web Services directly?

Options
If not, would writing a rapid routine to turn on the output and posting http://localhost/rw/rapid/execution?action=start work?
Any other better methods to recommend?

Answers

  • You could send a POST request to /rw/iosystem/signals/{network}/{device}/{signal} to do this: 
    https://developercenter.robotstudio.com/api/rwsApi/ios_signal_value_page.html

    Would this work for your use case?
  • Kienan123
    Options
    I personally like using ajax libraries.

    function Set_Pneumatics(x) {

        var data = {
            "url": "/rw/iosystem/signals/EtherNetIP/IO_Balluff/doBlowOff?action=set",
            "method": "post",
            "queries": { "action": "set" },
            "data": { "lvalue": x }
            "auth": { "user": "Default User", "password": "robotics" }
        }

        $.ajax(data);

    }