Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Set output data

Write I/O device output data

URL

/rw/iosystem/devices/{device}

Method

POST

URL Params

action=set-outputdata Required

Data Params

  • startbyte={indexnumber} Required
  • signaldata={inputdata} Required
  • datamask={datamask} Required

Success Response

NO_CONTENT(204)

see HTTP Status codes

Example Response

No Content

Error Response

BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)

See Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics -d "startbyte=0&signaldata=100&datamask=255" -X POST "http://localhost/rw/iosystem/devices/Local/DRV_1?action=set-outputdata"

Notes

Only supported in Virtual Controller.

If input data is 4 bytes long, start byte can have values ranging from 0 to 3. Datamask/signal data can have values ranging from 0 to 255 (since it is accessed as 1 byte long). If datamask/signal data is greater than 255 (1 byte long), only first 8 bits is used.

Not supported in bootserver mode.