On this page
ABB Web API
This plugin uses ABB Web API (RWS) to read controller status, IO, joints, robot targets, RAPID tasks, and event logs, and to collect and assign typed RAPID/I/O scalars. It is named ABB Web API in the device selector.
See Collection Configuration for common device, variable, and interval settings. This page covers only the ABB RWS connection, addresses, methods, and debug tools.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| ABB robot controllers with Robot Web Services enabled | The controller must expose matching RWS endpoints, authentication and resource paths. Remote operations depend on controller mode and permissions. |
Prepare RAPID data in RobotStudio
- Connect RobotStudio to the target controller and inspect the actual RAPID task, module and symbol declaration. Record their names and declared type; a workstation or mechanical-unit name does not replace a RAPID task name.
- In an editable module, prepare a persistent scalar such as
PERS num speed:=12.5;. For taskT_ROB1and moduleMain, create aFloatgateway variable atrapid/T_ROB1/Main/speed. Matchnum,dnum,boolandstringto the types listed below. - Give the controller account the required RWS read permissions. Split the controller endpoint into host, port and HTTPS:
https://192.168.10.20:443means host192.168.10.20, port443, HTTPS enabled. Do not enter the complete URL in the host field. - Select this plugin, read Core status, then enable the variable. A RobotStudio value of
12.5should appear as numeric12.5in the gateway. For 404, check every name segment; for 401/403, resolve authentication and account permissions first.
I/O names and write access
Find the signal network, device and name in controller I/O configuration. Network Local, device Board and signal doReady produce address io/Local/Board/doReady, type Boolean. Replace Board with the actual configured device name.
Start with reads. Before assignment, enable variable write access and check controller privileges and operating mode. Constants, inputs and safety signals are not ordinary writable outputs. If RAPID immediately overwrites an assigned value, establish ownership in the robot program; increasing the write frequency does not resolve conflicting ownership.
Open the plugin
Open Development Configuration → Collection Configuration, create a device using ABB Web API, and configure its plugin properties. The plugin opens its own HTTP/HTTPS connection and does not use common TCP, UDP, or serial channel settings.
Supported scope
| Item | Description |
|---|---|
| Channel | Plugin-managed HTTP/HTTPS connection. |
| Data type | Boolean, Float, Double, UInt32, or String, matching controller metadata. Status and log addresses use String. |
| Writes | Writable RAPID scalars and ordinary I/O outputs support controlled assignment with 204 acceptance and independent readback. Status, logs, inputs, and safety signals reject ordinary writes. |
Plugin properties
| Setting | Default | Range | Description |
|---|---|---|---|
| Robot host | 127.0.0.1 | Host name or IP | Enter only the host, without scheme, port, or path. |
| Web API port | 80 | 1 to 65535 | ABB RWS listening port. |
| Use HTTPS | No | Yes / No | Uses HTTPS for robot requests. |
| User name | - | - | Enter when the controller requires authentication. |
| Password | - | - | Password for the configured user. |
| Allow invalid server certificate | No | Yes / No | Use only for a trusted self-signed controller certificate. |
| Request timeout (ms) | 3000 | 1 to 600000 | Total budget for a query or complete scalar operation, including admission, metadata, assignment, and readback. |
| Maximum response bytes | 1048576 | 1 to 16777216 | Rejects larger responses to limit memory use. |
Variable addresses
Choose RAPID scalar or I/O signal in the address editor and enter task/module/symbol or network/device/signal. Names are case sensitive and each occupies one path segment. Do not enter URLs, query parameters, or array subscripts. Typed addresses allow an array length of at most one.
| Address and controller type | Variable type | Access |
|---|---|---|
rapid/T_ROB1/Main/ready: bool | Boolean | Readable; writable for VAR/PERS when metadata permits. |
rapid/T_ROB1/Main/speed: num | Float | Preserves single precision. |
rapid/T_ROB1/Main/offset: dnum | Double | Preserves double precision. |
rapid/T_ROB1/Main/label: string | String | At most 80 single-byte characters; RAPID escapes and HTTP form encoding are separate. |
io/Local/Board/diReady / doReady: DI/DO | Boolean | DI is read only; ordinary DO can be assigned. |
io/Local/Board/aiValue / aoValue: AI/AO | Double | AI is read only; ordinary AO can be assigned. |
io/Local/Board/giValue / goValue: GI/GO | UInt32 | GI is read only; GO writes also validate the configured bit width. |
Arrays, records, custom types, read-only symbols, and constants do not accept scalar assignment. Missing metadata, invalid quality, and type mismatches fail explicitly. These status addresses continue to use String:
| Address | Returned content |
|---|---|
CtrlState, ErrorState, SpeedRatio, OperationMode | Controller state, error state, speed ratio, and operation mode. |
jointtarget, PhysicalJoints, robtarget | Joint target, physical joints, and robot target. |
ioin, ioout, io2in, io2out, ServoEnable | Local/extended IO and servo-enable signal. |
log, logN, system | Event logs and system information; N in logN is the log count. |
RapidExecution, RapidTasks | RAPID execution state and task list. |
Authentication and assignment results
The client answers controller Digest challenges and retains that device session’s ABBCX and -http-session- cookies. Sessions are not shared across devices and redirects are rejected. Startup reads controller state to verify connectivity and authentication. Each session permits at most two active requests and serializes complete assignments.
Gateway variable and method permissions apply alongside controller authorization, operating mode, and RAPID mastership/RMMP requirements. The RWS set endpoint requests mastership internally as documented by ABB. The plugin does not switch controller mode, obtain RMMP, or forcibly take existing mastership.
An assignment reads current metadata and value, sends one action=set form POST, then independently rereads metadata and value after a 204 response. Success requires matching type and value. A 403 retains the controller error code. Cancellation, disconnection, timeout, failed readback, or a type change after submission returns an uncertain outcome and never automatically repeats the POST. Query the actual controller value before deciding what to do next. Readback confirms the value at that instant; the robot program can change it afterwards.
The plugin merges identical canonical addresses within each collection interval. A RAPID scalar read uses two requests for metadata and value; an I/O read uses one. A normal RAPID assignment usually uses five requests; a GO assignment additionally reads its configured width.
Special methods
Choose the method under the variable’s Special Method field and enter the listed arguments in the variable address field.
| Selector value | Purpose | Arguments |
|---|---|---|
GetRawAsync | Run a raw GET | path=source-relative path |
PostRawAsync | Run a raw POST | path,body,contentType |
GetCtrlStateAsync | Read controller state | None |
GetErrorStateAsync | Read error state | None |
GetJointTargetAsync | Read a joint target | mechanicalUnit, default ROB_1 |
GetSpeedRatioAsync | Read speed ratio | None |
GetOperationModeAsync | Read operation mode | None |
GetIoInAsync / GetIoOutAsync | Read local input/output | None |
GetIo2InAsync / GetIo2OutAsync | Read extended input/output | None |
GetLogAsync | Read event logs | logCount, default 10 |
GetSystemAsync | Read system information | None |
GetRobotTargetAsync | Read robot target | None |
GetServoEnableAsync | Read servo-enable signal | None |
GetRapidExecutionAsync | Read RAPID execution state | None |
GetRapidTasksAsync | Read RAPID tasks | None |
GetUserValueAsync | Read a user value | name=user symbol |
GetIoSignalAsync | Read a selected IO signal | network,unit,signal, default Local,DRV_1,DRV1K1 |
Device debug
Open Development Configuration → Collection Configuration, select the ABB RWS device, then open Debug → Protocol Debug · ABB Web API.
| Feature | Purpose |
|---|---|
| Core Status | Shows controller status, authentication, and connection results. |
| IO | Queries an IO signal by network, unit, and signal. |
| Dedicated Query | Queries joints, logs, and user symbols. |
| Raw Request | Runs a GET or POST against an RWS-relative path. |
Core status
Refresh the controller core status first to verify authentication, network access, and the RWS service.

IO
Enter the IO network, unit, and signal, then run the dedicated query.

Dedicated query
Read a joint target by mechanical unit, event logs by count, or a user symbol by name.

Raw request
Enter a device-relative path beginning with /. GET performs a query; POST also requires a request body and media type.

A raw POST can change robot state. Verify the path, body, controller mode, and site safety before using the high-risk action permission to confirm it.
Verify the configuration
- Refresh Core Status and confirm the current controller state is returned.
- Read the
ROB_1joint target or event logs under Dedicated Query. - Configure a
Floatvariable at an existingrapid/Task/Module/numSymboladdress and verify collection. UseStringto check the existing status addresses. - Assign a controller variable approved for testing and verify 204 acceptance, independent readback, and actual value. Check that read-only variables and unauthorized users are rejected.
Troubleshooting
| Symptom | Check |
|---|---|
| Unauthorized response | User name, password, and controller RWS permissions. |
| HTTPS connection fails | Port and certificate validity. Ignore certificate errors only for a trusted self-signed certificate. |
| Address has no data | Case-sensitive RAPID/I/O names, variable type, and metadata. Status addresses use String. |
| Assignment fails or has an uncertain outcome | Query the actual value and check user rights, operating mode, and controller error codes before deciding what to do next. Do not immediately repeat a control request. |
| Response is too large | Increase Maximum response bytes or reduce the log/query scope. |
| Raw request fails | The path must be source-relative; POST also requires the correct body and media type. |
Related links
- Collection Configuration: Common devices, variables, and intervals.
- Plugin Manual Index: Other collection and data-forwarding plugins.