Skip to Content
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 examplesConnection requirements
ABB robot controllers with Robot Web Services enabledThe controller must expose matching RWS endpoints, authentication and resource paths. Remote operations depend on controller mode and permissions.

Prepare RAPID data in RobotStudio

  1. 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.
  2. In an editable module, prepare a persistent scalar such as PERS num speed:=12.5;. For task T_ROB1 and module Main, create a Float gateway variable at rapid/T_ROB1/Main/speed. Match num, dnum, bool and string to the types listed below.
  3. Give the controller account the required RWS read permissions. Split the controller endpoint into host, port and HTTPS: https://192.168.10.20:443 means host 192.168.10.20, port 443, HTTPS enabled. Do not enter the complete URL in the host field.
  4. Select this plugin, read Core status, then enable the variable. A RobotStudio value of 12.5 should appear as numeric 12.5 in 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

ItemDescription
ChannelPlugin-managed HTTP/HTTPS connection.
Data typeBoolean, Float, Double, UInt32, or String, matching controller metadata. Status and log addresses use String.
WritesWritable 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

SettingDefaultRangeDescription
Robot host127.0.0.1Host name or IPEnter only the host, without scheme, port, or path.
Web API port801 to 65535ABB RWS listening port.
Use HTTPSNoYes / NoUses HTTPS for robot requests.
User name--Enter when the controller requires authentication.
Password--Password for the configured user.
Allow invalid server certificateNoYes / NoUse only for a trusted self-signed controller certificate.
Request timeout (ms)30001 to 600000Total budget for a query or complete scalar operation, including admission, metadata, assignment, and readback.
Maximum response bytes10485761 to 16777216Rejects 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 typeVariable typeAccess
rapid/T_ROB1/Main/ready: boolBooleanReadable; writable for VAR/PERS when metadata permits.
rapid/T_ROB1/Main/speed: numFloatPreserves single precision.
rapid/T_ROB1/Main/offset: dnumDoublePreserves double precision.
rapid/T_ROB1/Main/label: stringStringAt most 80 single-byte characters; RAPID escapes and HTTP form encoding are separate.
io/Local/Board/diReady / doReady: DI/DOBooleanDI is read only; ordinary DO can be assigned.
io/Local/Board/aiValue / aoValue: AI/AODoubleAI is read only; ordinary AO can be assigned.
io/Local/Board/giValue / goValue: GI/GOUInt32GI 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:

AddressReturned content
CtrlState, ErrorState, SpeedRatio, OperationModeController state, error state, speed ratio, and operation mode.
jointtarget, PhysicalJoints, robtargetJoint target, physical joints, and robot target.
ioin, ioout, io2in, io2out, ServoEnableLocal/extended IO and servo-enable signal.
log, logN, systemEvent logs and system information; N in logN is the log count.
RapidExecution, RapidTasksRAPID 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 valuePurposeArguments
GetRawAsyncRun a raw GETpath=source-relative path
PostRawAsyncRun a raw POSTpath,body,contentType
GetCtrlStateAsyncRead controller stateNone
GetErrorStateAsyncRead error stateNone
GetJointTargetAsyncRead a joint targetmechanicalUnit, default ROB_1
GetSpeedRatioAsyncRead speed ratioNone
GetOperationModeAsyncRead operation modeNone
GetIoInAsync / GetIoOutAsyncRead local input/outputNone
GetIo2InAsync / GetIo2OutAsyncRead extended input/outputNone
GetLogAsyncRead event logslogCount, default 10
GetSystemAsyncRead system informationNone
GetRobotTargetAsyncRead robot targetNone
GetServoEnableAsyncRead servo-enable signalNone
GetRapidExecutionAsyncRead RAPID execution stateNone
GetRapidTasksAsyncRead RAPID tasksNone
GetUserValueAsyncRead a user valuename=user symbol
GetIoSignalAsyncRead a selected IO signalnetwork,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.

FeaturePurpose
Core StatusShows controller status, authentication, and connection results.
IOQueries an IO signal by network, unit, and signal.
Dedicated QueryQueries joints, logs, and user symbols.
Raw RequestRuns 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.

ABB Web API: Core status

IO

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

ABB Web API: IO

Dedicated query

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

ABB Web API: Specialized queries

Raw request

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

ABB Web API: Raw request

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

  1. Refresh Core Status and confirm the current controller state is returned.
  2. Read the ROB_1 joint target or event logs under Dedicated Query.
  3. Configure a Float variable at an existing rapid/Task/Module/numSymbol address and verify collection. Use String to check the existing status addresses.
  4. 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

SymptomCheck
Unauthorized responseUser name, password, and controller RWS permissions.
HTTPS connection failsPort and certificate validity. Ignore certificate errors only for a trusted self-signed certificate.
Address has no dataCase-sensitive RAPID/I/O names, variable type, and metadata. Status addresses use String.
Assignment fails or has an uncertain outcomeQuery 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 largeIncrease Maximum response bytes or reduce the log/query scope.
Raw request failsThe path must be source-relative; POST also requires the correct body and media type.