Skip to Content
On this page

KUKA Variable Proxy

KUKA Variable Proxy reads or writes one KUKA KRC4 controller variable by name through the KRC4 variable proxy. This plugin does not provide program start, stop, or reset methods.

Compatible devices and models

Device series / model examplesConnection requirements
KUKA KRC4 (with a compatible Variable Proxy installed)Install and enable a variable proxy service matching this plugin’s request format. Configure its TCP port and permitted variables. The KRC4 Ethernet interface alone does not provide this proxy service.

Prepare Variable Proxy on KRC4

  1. Install and start a Variable Proxy service matching this entry’s packet format. Record its listening port and allow network access. Setting an IP in the controller or WorkVisual project does not install the proxy.
  2. Find a readable variable such as $OV_PRO in smartHMI and record its actual name and value. Create a TCP client channel to the proxy endpoint and select KUKA Variable Proxy.
  3. Read $OV_PRO in Protocol debugging and compare the text. For periodic reading, use a String address such as $OV_PRO;len=8;encoding=UTF-8; length must contain the returned text.
  4. $POS_ACT returns structured position text. Allow enough len for the complete text, not just one numeric component.

Single-variable requests and text assignment

Proxy packets contain a transaction ID and length, unlike Controller TCP’s unframed blocks. Each variable uses a separate request; comma-separated names do not form one variable address. Set polling according to the combined response time.

Names and values use UTF-8, each limited to 4096 encoded bytes. String len controls periodic conversion and does not expand packet limits. WriteVariableTextAsync takes one name and value matching the KUKA declaration and access permissions. Use a reserved writable variable and read it back after assignment.

Open the plugin

Open Development Configuration → Collection Configuration, create a device, and select KUKA Variable Proxy under Device Plugin.

Supported channel and data types

Channel typeCheck before configuration
TCP clientConfirm the controller IP, port, and network reachability from the gateway.

Optional data types: Byte and String.

Address rules

  • The address is the controller variable name, for example $POS_ACT. Names and values use UTF-8.
  • Periodic collection supports Byte and String. A String variable must specify len, for example $PRO_NAME[];len=32;encoding=UTF-8.
  • Each variable is requested independently; variables are not packed into one request.

Special methods

MethodPurposeParameters
ReadVariableTextAsyncRead one KUKA variable.address=variable name
WriteVariableTextAsyncWrite one KUKA variable.address=variable name, value=variable value

A write changes controller memory. Confirm that the equipment is in an operable state and prepare stop or rollback measures before execution.

Device debug

Open Development Configuration → Collection Configuration, select the KUKA Variable Proxy device, then open Protocol Debug at the top of the workspace.

KUKA Variable Proxy: Operations

Read one variable first. A write requires a second confirmation because it changes controller memory.

Functions

FunctionPurpose
Read variableRead one KUKA variable without changing controller state.
Write variableWrite a text value to a named variable; this changes controller memory.
Debug resultShow the returned value or the result and error of the write operation.

Verify the configuration

  1. Read a read-only variable such as $POS_ACT and compare the returned value with the teach pendant.
  2. For periodic string reads, set len and encoding=UTF-8 in the address and confirm that the complete text is returned.
  3. Create several variables only after one variable works; check response time and controller load one by one.
  4. Verify writes only on an approved test variable. Read the same variable again after writing.

Troubleshooting

SymptomCheck
Variable read has no responseCheck TCP address, port, KRC4 variable-proxy service, and variable name casing.
String is truncatedIncrease len to hold the complete value and keep encoding=UTF-8.
Write failsConfirm that the variable is externally writable, the value format matches the controller type, and inspect the proxy error.
Program control is not availableThis plugin provides only single-variable read and write. Use a KUKA plugin that supports program operations.