I am just starting with RWS and RAPID programming. The goal is to read (first) and write (later) RAPID variables. In the controller I have …/RAPID/T_ROB1/Program Modules/Module1:
MODULE Module1
PERS num count := 13746;
PROC main()
…
From the command line, I try different versions of this query (this is a virtual controller):
curl -k -u “Default User”:robotics -H “accept: application/xhtml+xml;v=2.0” “h ttps://localhost/rw/rapid/symbol/data/RAPID/T_ROB1/Module1/count”
[REMOVE SPACE FROM H TTPS: otherwise the community engine complains about links being added]
This was inspired by
which results in
Resource not found
Some commands work, e.g. position query:
curl -k -u “Default User”:robotics -H “accept: application/xhtml+xml;v=2.0” “h ttps://localhost/rw/motionsystem/mechunits/ROB_1/robtarget”
[REMOVE SPACE FROM H TTPS: otherwise the community engine complains about links being added]
I am missing something very fundamental. Addressing RAPID variables is obviously beyond my current understanding. How to get “count” using RWS? What is the correct URL?
CLARIFICATION: RW8.x
UPDATE: Tested on a real controller (RW 7.x) and the same happens.