Members

MonitorResources

Enum for monitor resources

MonitorResources

Enum for monitor resources

Methods

disposeUasMonitoring() → {Promise.<void>}

Optional full cleanup helper.

Returns:
Type: 
Promise.<void>

getModuleText(moduleName, taskName) → {Promise.<string>}

Gets the RAPID module text.

Parameters:
NameTypeDescription
moduleNamestring

The module name.

taskNamestring

The task name.

Returns:

Returns the module text.

Type: 
Promise.<string>
Example
await API.RAPID.getModuleText("MainModule");

monitorUserGrant(key, callback) → {Promise.<function()>}

Monitor one specific grant.

Behavior:

  1. Ensure Store is initialized silently
  2. Register watcher
  3. Invoke ONLY this callback once with current cached value

It does NOT trigger other callbacks.

Parameters:
NameTypeDescription
keystring

Grant name

callbackfunction

Receives boolean

Returns:

disposer

Type: 
Promise.<function()>

setModuleText(moduleName, text, taskName)

Set RAPID module text

Parameters:
NameTypeDescription
moduleNamestring

The module name

textstring

The text to write

taskNamestring

The task name

Example
await API.RAPID.setModuleText("Module1",`MODULE Module1\r\nPROC proc1()\r\nTPWrite "123";\r\nENDPROC\r\nENDMODULE`);

subscribeRes() → {Promise.<void>}

Start UAS subscription only. Does not initialize Store by itself.

Returns:
Type: 
Promise.<void>

unmonitorUserGrant(key, callbackopt)

Remove one watcher callback for a grant.

Parameters:
NameTypeAttributesDescription
keystring
callbackfunction<optional>

unsubscribeAll()

Unsubscribes from the variable state

unsubscribeRes() → {Promise.<void>}

Stop UAS subscription.

Returns:
Type: 
Promise.<void>

Type Definitions

JointsSolutionProps

Properties
NameTypeAttributesDescription
mechUnitstring<optional>
robTargetAPI.MOTION.RobTarget
toolDataAPI.MOTION.ToolData<optional>

JontsFromCartesianProps

Properties
NameTypeAttributesDescription
mechUnitstring<optional>
robTargetAPI.MOTION.RobTarget
toolDataAPI.MOTION.ToolData<optional>
jointTargetAPI.MOTION.JointTarget