Members
MonitorResources
Enum for monitor resources
MonitorResources
Enum for monitor resources
- Source
Methods
disposeUasMonitoring() → {Promise.<void>}
Optional full cleanup helper.
- Source
Returns:
- Type:
- Promise.<void>
getModuleText(moduleName, taskName) → {Promise.<string>}
Gets the RAPID module text.
Parameters:
| Name | Type | Description |
|---|---|---|
moduleName | string | The module name. |
taskName | string | The task name. |
- Source
Returns:
Returns the module text.
- Type:
- Promise.<string>
Example
await API.RAPID.getModuleText("MainModule");monitorUserGrant(key, callback) → {Promise.<function()>}
Monitor one specific grant.
Behavior:
- Ensure Store is initialized silently
- Register watcher
- Invoke ONLY this callback once with current cached value
It does NOT trigger other callbacks.
Parameters:
| Name | Type | Description |
|---|---|---|
key | string | Grant name |
callback | function | Receives boolean |
- Source
Returns:
disposer
- Type:
- Promise.<function()>
setModuleText(moduleName, text, taskName)
Set RAPID module text
Parameters:
| Name | Type | Description |
|---|---|---|
moduleName | string | The module name |
text | string | The text to write |
taskName | string | The task name |
- Source
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.
- Source
Returns:
- Type:
- Promise.<void>
unmonitorUserGrant(key, callbackopt)
Remove one watcher callback for a grant.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
key | string | ||
callback | function | <optional> |
- Source
unsubscribeAll()
Unsubscribes from the variable state
- Source
unsubscribeRes() → {Promise.<void>}
Stop UAS subscription.
- Source
Returns:
- Type:
- Promise.<void>
Type Definitions
JointsSolutionProps
Properties| Name | Type | Attributes | Description |
|---|---|---|---|
mechUnit | string | <optional> | |
robTarget | API. | ||
toolData | API. | <optional> |
- Source
JontsFromCartesianProps
Properties| Name | Type | Attributes | Description |
|---|---|---|---|
mechUnit | string | <optional> | |
robTarget | API. | ||
toolData | API. | <optional> | |
jointTarget | API. |
- Source