Members
MonitorResources
Enum for monitor resources
- Source
Methods
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");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`);unsubscribeAll()
Unsubscribes from the variable state
- Source
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