Members

MonitorResources

Enum for monitor resources

Methods

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");

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`);

unsubscribeAll()

Unsubscribes from the variable state

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