Controller.RecordButton Property

Reads and writes the latched Boolean value that indicates if the hardware MCP RECORD button has been pressed.

Controller.RecordButton = <boolean_value>
-or-
... Controller.RecordButton

Prerequisites

None

Parameters

None

Remarks

Whenever the RECORD key on the Precise Hardware Manual Control Pendant (MCP) is pressed, the value of this property is set to True.  This property value remains True until it is manually set to False. The RECORD key on the MCP and this property provide a convenient means for GPL projects to receive a command from the operator to record key data, typically taught robot locations. The value of this property can also be accessed via the Parameter Database as the "MCP Record button pressed" (DataID 632) value.

Examples

Dim taught_loc As New Location
If (Controller.RecordButton) Then
taught_loc.Here ' Save current robot location
Controller.RecordButton = False
End if

See Also

Controller Class