User`s guide

IF PENDANT(45) THEN
TYPE $CHR(12) ;Cursor down (line feed)
END
UNTIL PENDANT(8)
Monitoring the MCP Speed Bar
The speed bar on the MCP returns a value from -128 to 127 depending on where it is being
pressed. An argument of -2 to the PENDANT() function returns the value of the speed bar.
The following code displays the state of the speed bar.
; Set the REC/DONE button to toggle
KEYMODE 8 = 1
; Display speed bar value until the REC/DONE is pressed
DO
WRITE(1) PENDANT(-2)
UNTIL PENDANT(8)
The Slow button is intended to alter the value returned by the speed bar. The following code
compresses the range of values returned by 50% whenever the Slow button is on.
; Set the REC/DONE button to toggle
KEYMODE 8 = 1
; Do until the REC/DONE button is pressed
DO
IF PENDANT(36) THEN
TYPE PENDANT(-2) * 0.5
ELSE
TYPE PENDANT(-2)
END
UNTIL PENDANT(8)
Using the STEP Button
When manual mode is selected, V+ programs cannot initiate motions unless you press the
STEP button and speed bar on the MCP. To continue the motion once it has started, you can
release the STEP button but must continue to press the speed bar. Failure to operate the
STEP button and the speed bar properly results in the following error message (with error
code -620):
*Speed pot or STEP not pressed*
Once a motion has started in this mode, releasing the speed bar also terminates any belt
tracking or motion defined by an ALTER program instruction.
Motions started in this mode have their maximum speeds limited to those defined for
manual control mode.
As an additional safeguard, when high power is enabled and manual mode is selected, the
MCP is set to OFF mode, not COMP or MANUAL mode.
Detecting User Input
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 271