Pausing and Input/Output Commands
Reference Manual on the CDROM)
Reference Manual on the CDROM)
Px Pause x tenths of a second ( x=0 to 65,535 ).
Memory usage = 3 bytes.
Examples:
This example pauses for 1 second: P10<cr>
This example pauses for 15 seconds:P150<cr>
This example pauses for 1 hour: P36000<cr
P-x Pause x tenths of a millisecond ( x=1 to 65,535 ).
Memory usage = 3 bytes.
Example:
This example pauses for 50 milliseconds (0.050 seconds): P-500<cr>
PAx Pause x tenths of a second Altering the state of output 1 ( x=0 to 65,535, 10 µsec
pause when x=0 ). The user output 1 (I/O,14) will go to +5V for the duration of the
pause.
Memory usage = 3 bytes.
Example:
This example pauses for 15 seconds holding output 1 high: PA150<cr>
PA-x Pause x tenths of a millisecond Altering the state of output 1 ( x=1 to 65,535 ). The
user output 1 (I/O,14) will go to +5V for the duration of the pause. Memory usage =
3 bytes.
Example:
This example pauses for 15 milliseconds (0.015 seconds) holding output 1 high:
PA-150<cr>
U0 Wait for a "low" on the user input 1. A "low" is a voltage less than 0.8 VDC (not
to be less than 0V) applied to I/O,5. A simple push-button or toggle switch can
be used between Gnd (I/O,1) and input 1 (I/O,5) to satisfy this input. The input
level must be high for at least 1 ms to be a valid input. This command is best
used when interfacing to other solid-state logic devices, refer to the "U50"
command ( for push-button switch input.
Memory usage = 2 bytes.
U1 Wait for a "low" on the user input1holding user output 1 "high" (+5V) while
waiting. A "low" is a voltage less than 0.8 VDC (not to be less than 0V) applied
to I/O,5. User output 1 (I/O,14) will go to +5V for the duration of the wait. A
simple push-button or toggle switch can be used between Gnd (I/O,1) and input
1 (I/O,5) to satisfy this input. The input level must be high for at least 1 ms to be
a valid input. This command is best used when interfacing to other solid-state
logic devices, refer to the "U50" command (
for push-button switch input.
Memory usage = 2 bytes.
23
22
U4 User output 1 "low". The user output 1 (I/O,14) will go to 0V. This is the state of
the user output 1 on power-up. This command is used in conjunction with the
"U5" command.
Memory usage = 2 bytes.
U5 User output 1 high. The user output 1 (I/O,14) will go to +5V. This
command is used in conjunction with the "U4" command.
Memory usage = 2 bytes.
These commands are immediate (not stored), they do not use the VXM's program
memory, and do not need an ending carriage return or comma.
Q Quit On-Line mode (return to Local Jog/slew mode.) The "Q" command is used
to get back to the power-up state, where the VXM is in the Local Jog/slew mode
(On-Line light is off.)
R Run currently selected program. The "R" command will start execution of
commands stored (of current program) in the VXM's memory. At the end of the
"run" the single character "^" (no carriage return or line feed follows the "^"
unless put unless the VXM was put On-Line with the “G” command) will be
transmitted to the host. Additional "R" commands received by the VXM will
repeat the same program. Refer to the "C" and "PMx" command to clear a
program from memory. The Run input (I/O,4) and the front panel Run button
function the same as this "R" command.
N Null (zero) motors 1,2,3,4 Absolute Position Registers. This command can be
used in the Local Jog/slew or the On-Line mode. The "N" command zeros the
position registers that have been counting steps from indexing and/or jog/slewing
the motor(s).
K Kill operation in progress. This command will immediately interrupt any running
program. The user outputs will be reset, all looping and hold flags will be reset,
and if a motor is moving it will be stopped immediately. If the motor speed is
above 1000 steps/sec. when the interrupt occurs, the motor may loose position
due to mechanical overshoot (see the "D" command for a less abrupt method to
interrupt indexes). The VXM will transmit the "^" to the host after receiving the
"K" command.
C Clear all commands from the currently selected program. All setup values, motor
position values, and the state of user outputs will not be altered.
D Decelerate to a stop (interrupts current index in progress, default function of Stop
button too). When the VXM receives the single character "D" while it is indexing
a motor, that motor will be decelerated to a stop at the set deceleration. The
motor position prior to decelerating is saved, refer to the "*" command to request
this position. The VXM will then proceed to the next command in the program.
The "D" command has a different function when in the Local Jog/slew mode,
refer to the section on "Digitizing With a Host" on the CDROM for more
information.
Operation Commands