35
34
Advanced Input/Output
Appendix B
Input commands:
U6 Send "W" to the host and wait for a "G" to continue. The VXM sends the
single character "W" to the host when this command is executed. The VXM will
wait until a "G" is received from the host before proceeding in the program.
Memory usage = 2 bytes.
U13 Wait for a Jog button to be pressed. This command allows user interaction, by
initiating a jump to a specific program, or allowing the current program to
proceed.
The Jog 1- button will cause a jump to program #1.
The Jog 1+ button will cause a jump to program #2.
The “Run” button will cause the current program to continue to the next command
Memory usage = 2 bytes.
U23 Wait for a Jog button to be pressed. This command allows user interaction, by
initiating a jump-and-come-back-for-more to a specific program, or allowing the
current program to proceed.
The Jog 1- button will cause a jump to program #1 and return.
The Jog 1+ button will cause a jump to program #2 and return.
The “Run” button will cause the current program to continue to the next command
Memory usage = 2 bytes.
U30 Wait for a low to high transition on the user input 1. A "high" is a voltage
between +1.5VDC and +5VDC applied to I/O,5. A simple pushbutton or toggle
switch can be used between 0V (I/O,1) and input 1 (I/O,5) to satisfy this input.
The input level must be low (less than 0.8V) for at least 1 ms, and go 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.
U31 Wait for a low to high transition on the user input 1 holding user output 1 "high"
(+5V) while waiting. A "high" is a voltage between +1.5VDC and +5VDC applied
to I/O,5. User output 1 (I/O,14) will go to +5V for the duration of the wait. A
simple pushbutton or toggle switch can be used between 0V (I/O,1) and input 1
(I/O,5) to satisfy this input. The input level must be low (less than 0.8V) for at
least 1 ms, and go 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 "U51”
command for push-button switch input.
Memory usage = 2 bytes.
U32 Wait for the Jog 1- button to be pressed and debounced.
Memory usage = 2 bytes.
U33 Wait for the Jog 1+ button to be pressed and debounced.
Memory usage = 2 bytes.
U50 Wait for a low to high transition on the user input 1with debouncing for a
mechanical push-button switch. A "high" is a voltage between +1.5VDC and
+5VDC applied to I/O,5. A simple pushbutton or toggle switch can be used
between 0V (I/O,1) and input 1 (I/O,5) to satisfy this input.
When a push-button switch is pressed, the switch's electrical contacts will
bounce off each other a few times before settling into their final position. This
bouncing will produce a series of highs and lows, which could result in several
consecutive wait commands to see these electrical bounces as valid inputs from
just one push-button press. When using the "U50" command, the VXM will filter
out the electrical bounces associated with mechanical switches.
Memory usage = 2 bytes.
U51 Wait for a low to high transition on the user input 1 with debouncing for a
mechanical push-button switch, holding user output 1 "high" (+5V) while waiting.
A "high" is a voltage between +1.5VDC and +5VDC applied to I/O,5. User
output 1 (I/O,14) will go to +5V for the duration of the wait. A simple pushbutton
or toggle switch can be used between 0V (I/O,1) and input 1 (I/O,5) to satisfy
this input.
When a push-button switch is pressed, the switch's electrical contacts will
bounce off each other a few times before settling into their final position. This
bouncing will produce a series of highs and lows, which could result in several
consecutive wait commands to see these electrical bounces as valid inputs from
just one push-button press. When using the "U51” command, the VXM will filter
out the electrical bounces associated with mechanical switches.
Memory usage = 2 bytes.
U90 Wait for a low to high transition on the Run input/button with debouncing for a
mechanical push-button switch. Pressing the front panel Run button or a
connection between I/O,4 and I/O,1 (0V) will activate this input.
Memory usage = 2 bytes.
CAUTION: The Run input also starts the current program when the VXM is
in an idle state either On-Line or in Local Jog/slew mode.
See Also
U0, U1