User guide
11/25/96
➆
6270 Programming Tips
95
Step
➃
To execute more than one command at a time, follow the !# sign with the number of
commands you want executed:
Command Description
!#3 Executes three commands
The response will be:
*PROGRAM=PROG1 COMMAND=AD1Ø.ØØØØ
*PROGRAM=PROG1 COMMAND=V5.ØØØØ
*PROGRAM=PROG1 COMMAND=L3
To complete the sequence, use the # sign until all the commands are completed (!#16 would
complete the example). To exit Single-Step mode, type:
Command Description
> STEPØ Disables Single Step Mode
Simulating Analog Input Channel Voltages
Without actually applying any voltage, you can test any command or function that references the
voltage on the analog channels (pins 1 through 3 on the JOYSTICK connector). For example,
ANVO1.2,1.6,1.8 overrides the hardware analog input channels—1.2V on channel 1, 1.6V
on channel 2, and 1.8V on channel 3. The ANVO values will be recognized only for those analog
input channels for which ANVOEN is set to 1 (e.g., Given ANVOENØ11, the ANVO values 1.6V
and 1.8V will be referenced for analog channels 2 and 3 only.).
Another application for the ANVO command may be to use it in an ERRORP program to override
the analog input voltage in response to a fault.
Simulating I/O Activation
If your application has inputs and outputs that integrate the 6250 with other components in
your system, you can simulate the activation of these inputs and outputs so that you can run
your programs without activating the rest of your system. Thus, you can debug your program
independent of the rest of your system.
The 6250 uses two commands that allow you to simulate the input and output states desired.
The INEN command controls the inputs and the OUTEN command controls the outputs.
NOTE
The INEN command has no effect on the trigger inputs (TRG-A & TRG-B) when they are
configured as
trigger interrupt
(position latch) inputs with the INFNCi-H command.
The OUTEN command has no effect on the auxiliary outputs (OUT-A & OUT-B) when they are
configured as
output-on-position
outputs with the OUTFNCi-aH command.
You will generally use the INEN command to cause a specific input pattern to occur so that a
program can be run or a input condition can become true. Use the OUTEN command to
simulate the output patterns that are needed, and to prevent an external portion of your system
from being initiated by an output transition. When you execute your program, the OUTEN
command overrides the outputs and holds them in a defined state.
Outputs
The following steps describe the use and function of the OUTEN command.
Step
➀
Display the state of the outputs with the TOUT command:
Command Description
> TOUT Displays the state of the outputs
The response will be:
*TOUTØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØ