Appendix B - Using PAD Commands
PAD recall allows you to escape from a data transfer state and issue PAD commands. These PAD commands allow you to perform the following tasks:
Set PAD parameters | |
Query the PAD for the current value of the PAD parameters | |
Clear virtual calls | |
Send an interrupt packet to the host | |
Reset the virtual call |
You can also set parameter values and query values for the remote PAD. To use PAD recall, you must first make sure that you set the PAD recall parameter to 1 when you configured your PAD connection.
If the PAD recall parameter was set to 1 when you configured your PAD connection, you can type the ASCII character DLE (CTRL-P) while the ATE program is in the data transfer state. Now you can issue any of the PAD commands listed and described in Table B-1.
The CLR command instructs the PAD to clear the virtual call.
CLR
None.
The INT command instructs the PAD to send an interrupt packet to the host.
INT
None.
The PAR? command requests the current values of parameters.
If you issue the PAR? command, but do not supply any arguments, PAR? requests the current values of all parameters.
You can also request the values of just one parameter, or of a list of parameters. If there are too many parameters to fit on one line, the list wraps around to the next line.
When you issue the PAR? command, the PAD responds with the prompt PAD - , followed by the list of parameters and their current values. In Example 2, the PAD might respond with this:
PAD - PAR 7:2 8:1 13:4
If you use an incorrect command format, the PAD responds with the string ERR in place of parameter reference/value pairs. For example, if you issued the following command line,
PAR? 7-8,13:4
the PAD would respond with the following:
PAD - PAR ERR
Note that the PAD stops at the first error and does not proceed from there.
The RESET command instructs the PAD to reset the virtual call.
RESET
None.
The RPAR? command requests the values of the parameters from the remote PAD. You may specify parameters for which you want these values, or you may request the values of all parameters. For the PAD to respond, you must first set parameter 6, Control of PAD Service Signals, to a value of 1.
RPAR? [<parameter number>[,<parameter number>...]]
You may use spaces instead of commas to separate parameters.
When you issue the RPAR? command, the PAD responds with the prompt PAD - RPAR, followed by the list of parameters and their current values. If you use an incorrect command format, the PAD responds with the string PAD - ERR in place of parameter reference/value pairs. Note that the PAD will stop at the first error and does not proceed from there.
The RSET? command designates values for parameters at the remote PAD and requests that the PAD send back the current values of these parameters. For the PAD to respond, you must first set parameter 6, Control of PAD Service Signals, to a value of 1.
RSET? <parameter number>:<value> [,<parameter number>:<value>...]
You may use spaces instead of commas to separate parameters.
When you issue the RSET? command, the PAD responds with the prompt PAR - RPAR, followed by the list of parameters and their current values. If you use an incorrect command format, the PAD responds with the string PAD - ERR in place of parameter reference/value pairs. Note that the PAD will stop at the first error and does not proceed from there.
The SET command designates values for parameters.
SET <parameter number>:<value> [,<parameter number>:<value>...]
You can specify one or more parameters, separating each parameter by either a space or a comma.
If you use an incorrect command format, the PAD responds with ERR.
If you use the correct format, but the value of a parameter is incorrect, the PAD responds with the string PAD followed by the parameter reference number, a colon (:), and the string INV. For example, if you issued the following command line:
SET 7:22 8:1 13:4
the PAD would respond with this:
PAD 7:INV
The PAD will continue reading the rest of the command line, setting the rest of the parameters.
The SET? command designates values for parameters and requests that the PAD send back the values of these parameters. It differs from the SET command in that SET? will respond with a message if all the parameters are correct. (SET responds only if the parameters are incorrect.) For the PAD to respond, however, you must first set parameter 6, Control of PAD Service Signals, to a value of 1.
SET? <parameter number>:<value> [,<parameter number>:<value>...]
You can specify one or more parameters, separating each parameter by either a space or a comma.
If you have entered the command line correctly, and the parameters are all valid, the PAD will respond with a message confirming the current values. For example, for the following command line,
SET? 7:2,8:1,13:4
the PAD would respond
PAD - PAR 7:2 8:1 13:4
If you use an incorrect command format, the PAD responds with the string ERR in place of parameter reference/value pairs, and stops at the error. For example, if you issued the following command line,
SET? 7:2,8;1,13:4
the PAD would respond with the following list:
PAD - PAR 7:2 ERR
Note that the PAD stopped at the error (the 8;1) and did not try to continue reading the parameter that came after the error.
If the format is correct, but the value of a parameter is incorrect, the PAD responds with the string PAD - PAR followed by the parameter reference number, a colon (:), and the string INV. For example, if the value for parameter 13 is incorrect, the PAD will respond with the following string:
PAD - PAR 13:INV
Note: If you just want to set parameters without requesting a response from the PAD, use the SET command. To request the current values of commands without setting new values, use PAR?.
The STAT command requests status information regarding the virtual call.
STAT
The PAD always responds with the string ENGAGED.