45
Digital I/O command summary
The commands to control the digital I/O are summarized in
. A photocopy of this table serves as a handy reference to
program the digital I/O.
NOTE
For more information on digital input and output commands, see
(inputs). Details follow those tables.
Table 7
Summary of digital I/O commands
Command
Description
Configure I/O ports as input or output:
OUTPut:DIGital
Path to set digital I/O channels:
:STATe <b>, <clist>
Set channels as output or input ports; 1 (on) = output, 0 (off) = input.
:STATe? <clist>
Query port type of listed channels (1 = output port, 0 = input port).
Set digital output patterns:
OUTPut:DIGital
Path to set digital output patterns:
:BYTE <NDN or NRf>, <clist>
Set a byte output pattern (valid channels are 11, 12, 13, and 14):
:BYTE? <clist>
Query the byte bit pattern for the specified output channels.
:WORD <NDN or NRf>, <clist>
Set a word output pattern
(valid channels are 11 and 13):
:WORD? <clist>
Query digital word output pattern for channels 11 and/or 13.
:DWORd <NDN or NRf>, <clist>
Set a double-word output pattern
(valid channel is 11):
:DWORd? <clist>
Query digital double-word output pattern for channel 11.
:FORMat <name>, [<NRf>]
Select data format for reading digital outputs
*
:
<name>
= ASCii, BINary, HEXadecimal or OCTal
<NRf>
= 0 (no leading zeros), or 1 to 32 (# of digits to return)
:FORMat?
Query digital output data format.
Read digital input patterns:
SENSe:DIGital[:DATA]
Path to read digital input patterns:
:BYTE? <clist>
Read byte input patterns (valid channels are 11, 12, 13, and 14).
:WORD? <clist>
Read word input patterns
(valid channels are 11 and 13).
:DWORd? <clist>
Read double-word input pattern
(valid channel is 11).
:FORMat <name>, [<NRf>]
Select data format for reading digital outputs
*
:
<name>
= ASCii, BINary, HEXadecimal, or OCTal
<NRf>
= 0 (no leading zeros), or 1 to 32 (# of digits to return)
:FORMat?
Query digital output data format.
Add digital channel(s) to scan list:
ROUTe:SCAN <clist>
Specify channel list (analog and/or digital input channels).
ROUT:SCAN?
Query scan list.
Summary of Contents for 7707
Page 55: ...52 Specifications 7707 Multiplexer Digital I O Module...
Page 58: ......