EasyManua.ls Logo

Newport ESP300 Series - Page 166

Newport ESP300 Series
314 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SB set / get DIO port A, B bit status
IMM PGM MIP
USAGE
SYNTAX SBnn or SB?
PARAMETERS
Description
nn [ int ] - hardware limit configuration
Range
nn - 0 to 0FFFFFFH (hexadecimal with leading zero(0) )
or ? to read current setting
Units
nn - None
Defaults nn missing: error 38, COMMAND PARAMETER MISSING
out of range: error 7, PARAMETER OUT OF RANGE
DESCRIPTION This command is used to either set all digital I/O (DIO) port A, B, and C logic
level or read its present status. Bits 0-7 correspond to port A, bits 8-15 to port B,
and bits 16-23 to port C. Each 8-bit port can be set as either input or output with
the BO command.
A DIO within a port configured as an input can only report its present HIGH or
LOW logic level. Whereas a DIO bit within a port configured as an output can
set(1) or clear(0) the corresponding DIO hardware to HIGH or LOW logic level.
Reading the status of a port configured as output returns its present output status.
Note:
All direction bits are automatically zeroed, or cleared, after a system reset.
Therefore all DIO ports default to input by default.
Note:
Each DIO bit has a pulled-up resistor to +5V. Therefore, all bits will be at HIGH
logic level if not connected to external circuit and configured as input.
BIT# VALUE DEFINITION
0 0 port A bit-0 at logic level 0 (LOW)
*0 1 port A bit-0 at logic level 1 (HIGH)
1 0 port A bit-1 at logic level 0 (LOW)
*1 1 port A bit-1 at logic level 1 (HIGH)
2 0 port A bit-2 at logic level 0 (LOW)
*2 1 port A bit-2 at logic level 1 (HIGH)
3 0 port A bit-3 at logic level 0 (LOW)
*3 1 port A bit-3 at logic level 1 (HIGH)
4 0 port A bit-4 at logic level 0 (LOW)
continued
*4 1 port A bit-4 at logic level 1 (HIGH)
3-126 Section 3 Remote Mode

Table of Contents

Related product manuals