beautypg.com

Port select pn – Measurement Computing Serial488/4 User Manual

Page 56

background image

Section 3

Command Descriptions

3.17

Port Select

Pn

The Port Select command determines which port is selected for execution of

serial setup commands and for data input/output w

hen using the Dual Primary

addressing mode. The factory default setting as set by the Save Configuration
command (S0) is P1, port 1 selected.

P1

Port 1 is selected

P2

Port 2 is selected

P3

Port 3 is selected

P4

Port 4 is selected

P?

Return present port selection

Example 1: Select port 1, then send a message using dual primary addressing mode.

PRINT#1,"OUTPUT08;P1X"

select port 1 as the current port

PRINT#1,"OUTPUT08;a0b5c1d1X"

select 1 stop bit, 2400 baud, odd parity
8 data bits

PRINT#1,"OUTPUT08;g1n0t13X"

select Xon/Xoff, automatic

handshaking, terminator CR

PRINT#1,"OUTPUT09;Startup

send a startup message out port 1

message"

Example 2: Select port 1, then send a message using secondary addressing mode.

PRINT#1,"OUTPUT0800;P1X"

select port 1 as the current port

PRINT#1,"OUTPUT0800;a0b5c1d1X"

select 1 stop bit, 2400 baud, odd parity,
8 data bits

PRINT#1,"OUTPUT0800;g1n0t13X"

select Xon/Xoff, automatic
handshaking, terminator CR

PRINT#1,"OUTPUT0801;Startup

send a startup message out port 1

message"

This manual is related to the following products: