Porter commands – Rose Electronics Porter User Manual
Page 24

20
PORTER INSTALLATION AND OPERATIONS MANUAL
Porter Commands
The command codes shown below control various functions of the Porter. All codes
begin with a user defined prefix that is 1-6 characters long. Zero (null, not ASCII “O”) may
not be used as part of the prefix. The prefix can be stored in non-volatile memory to
become a semi-permanent part of the control codes. The prefix should be chosen so as
not to interfere with other control codes used in you equipment. The purpose of the
prefix is to uniquely separate the code from the data you are transmitting. The factory set
prefix is 27,64 (the two characters ESC,@).Following the prefix is a one character
command and optional operands. The 8
th
(high) bit is ignored when setting a new prefix
or checking for an incoming prefix on port 0.
The + signs under “Code” are for illustrative purposes only. Do not use them in the
command string. All command letters are case sensitive – use upper case letters only.
Porter command set
Code
Description
Prefix + 1
Connect port 1 to port 0
Prefix + 2
Connect port 2 to port 0
Prefix + 3
Connect port 3 to port 0
Prefix + 4
Connect port 4 to port 0
Prefix + 5
Connect port 5 to port 0
Prefix + 6
Connect port 6 to port 0
Prefix + 7
Connect port 7 to port 0
Prefix + 8
Connect port 8 to port 0
Prefix + 9
Set null destination (connect to nothing)
Prefix + A
Any data available
Prefix + B
Set Broadcast mode
Prefix + Cnxx
Copy buffer n xx times
xx is decimal, leading zero required is xx < 10
Prefix + Dn
Set initial power-up destination
n = 1-8 for ports, 9 for null, B for broadcast
Prefix + Fnxxxx
Set serial format and baud rate / xxxx in hexadecimal
Prefix + Gn
Go, resume flow of data on port n
Prefix In
Initialize printer on port n; valid on parallel units only
Prefix K
Keep current setup in non-volatile memory
Prefix Lx
Enable/Disable front panel switches
x = 0 unlocks, x = 1 locks
Prefix Mxxx
Set broadcast Mask (which port to broadcast to)
xx = two hexadecimal digits
Prefix + Pxxxxxx = null
Set new Prefix from 1 to 6 characters
must be terminated with null to delimit string
Prefix + Rn
Report state of Ready (DSR) on port n
Prefix + S
Start setup (configuration menu)
Prefix + Tnnn
Set prefix purge Timeout of nnn/20 seconds
with 38400 baud option, nnn/ 40 seconds
Prefix + Wn
Wait, suspend flow of data on port n
Prefix + Zn
Zero (clear) buffer n