![SCS PTC-IIIusb Скачать руководство пользователя страница 96](http://html1.mh-extra.com/html/scs/ptc-iiiusb/ptc-iiiusb_user-manual_1219876096.webp)
6 Commands
83
The PTC's status reply always begins with an echo of the RS character (ASCII decimal
30) to facilitate unique identification of the status information following. The actual status
byte follows this
header
.
This modular status level concept facilitates an expansion of the status information in the
future, i.e., in a higher status level, even several bytes containing status information can
be implemented. The status bytes (incl. header) are sent in direct sequence.
During the transmission of status information new status requests are ignored.
In status mode 2, the PTC-IIIusb has an automatic status output. This means that the
status no longer needs to be regularly polled by the terminal program. Instead, every
status change causes the status information automatically to be given. The status output is
in the usual format: 30, S (S = status-byte). In status mode 2, the status byte can still be
polled via the terminal as before, for instance directly after the start of the terminal
program.
Hints for programmers: Through the PACTOR software the status reply may be delayed
by 150 ms. After a system boot (power on,
RESTart
, or
RESEt
), the status polling is
ready after the first
cmd:-
prompt. Construction of the status byte (status-level 1):
Bit
7
6
5
4
3
2
1
0
Meaning 1 MODE D STATUS
Bit 7
always 1 to avoid control codes (XON/XOFF, etc).
Bit 3
(DIRECTION bit) reflects the state of the
CON
-LED. This bit is 1 when the PTC
is the packet sender.
The fields mode and status have the following meaning:
Bit
2
1
0
STATUS-Bits
Remark
0 0 0
ERROR
0 0 1
REQUEST
0 1 0
TRAFFIC
0 1
1
IDLE
Idle byte in packet, does not exclude traffic bytes in
the packet!
1 0
0
OVER
The system is busy with a CHANGEOVER. ERROR,
REQUEST, TRAFFIC, and IDLE are ignored.
1 0 1
PHASE
AMTOR
only.
1 1
0
SYNCH
Active immediately after first half of a selcall or the
first 4 decoded PACTOR address bytes.
1 1
1
IGNORE
Status currently not defined (e.g. STBY).
Table 6.3: PTC status information, Bit 0-2
Bit
6
5
4
MODE-Bits
Remark
0 0 0
STANDBY
0 0 1 AMTOR-ARQ
0 1
0
PACTOR-ARQ Active no more than 20 ms after the end of the SYNC