3.5.3 Contents of the command block
The contents of the command block within the PLC are shown in the following
figures.
For a sample program that uses the dial on demand facility see section 10 at the end of
this manual.
MSB
D(x)
E
S
N
R
Y
R
R
N
S
D(x+1)
Tel. No.#1
D(x+2)
Message
#1
D(x+3)
D(x+4)
D(x+5)
D(x+6)
Where
D(x) = Head address of the Control Block as specified by the AT%ADR command.
3.5.4 Control and Status Register
The first resister of the command block read back from the PLC is dealt with on a bit
by bit basis, the break down of which is detailed below.
D(x)
Error Flag
Syntax Error b13
No Response b12
PLC comms error code b11-8
COMMAND BLOCK
PLC
N
N
Comms
A
D
Error code
N
T
Tel. No. #2
Tel. No. #3
Message
Message
#2
#3
[D]0~1999
[D]0~1999
[D]0~1999
[D]0~1999
17
LSB
N
B
T
P
S
R
Status register
C
S
C
F
T
Q
D
Y
P
Tel. No. #4 Telephone Number
register
Message
Message register
#4
Directory A Telephone
No. head address
Directory B Telephone
No. head address
Directory C Telephone
No. head address
Directory D Telephone
No. head address
b0 Dial Request
b1 Stopped Polling
b2 Polling Flag
b3 Transmission Complete
b4 Line Busy
b5 No Carrier
b6 No Dial Tone
b7 No Answer