Rockwell-automation 1775-KA PLC-3 Communication Adapter Module User Ma Manual de usuario Pagina 116

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 239
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 115
Full-Duplex Protocol
Chapter 10
1012
Table 10.A
T
ransmitter for Full-Duplex Protocol
TRANSMITTER is defined as
loop
Message=GET-MESSAGE-TO-SEND
Status=TRANSFER (Message)
SIGNAL-RESUL
TS (Status)
end
TRANSFER (Message) is defined as
initialize nak-limit and enq-limit
SEND (Message)
start timeout
loop
W
AIT for response on path 2 or timeout.
if received DLE ACK then return SUCCESS
else if received DLE NAK then
begin
if nak-limit is exceeded then return F
AILURE
else
begin
count NAK retries;
SEND-MESSAGE (message);
start timeout
end
end
else if timeout
begin
if enq-limit is exceeded then return F
AILURE
else
begin
count ENQ retries;
send DLE ENQ on path 1;
start timeout
end
end
end loop
SEND (Message) is defined as
begin
BCC = O
send DLE STX on path 1
for every byte in the message do
begin
add the byte to the BCC;
send the corresponding data code on path 1
end
send DLE ETX BCC on path 1
end
GET-MESSAGE-TO-SEND
This is an operating-system-dependent
interface routine that waits and allows the rest of the system to run until the message source
has supplied a message to be sent.
SIGNAL-RESULTS
This is an implementation-dependent routine that tells the message source of the results of the attempted message transfer
.
WAIT
This is an operating-system-dependent routine that waits for any of several events to occur while allowing other parts of the system
to run.
Vista de pagina 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 238 239

Comentarios a estos manuales

Sin comentarios