Rockwell-automation 1775-KA PLC-3 Communication Adapter Module User Ma Instrukcja Użytkownika Strona 116

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 239
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 238 239

Komentarze do niniejszej Instrukcji

Brak uwag