The text of a manual · part 20 of 23
Bulletin 1771 Communication Controller Module (Cat. Nos. 1771-KE, -KF) User's Manual, pages 191 to 200
Pages 191 to 200 of 228
The original document is the PDF (9.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1771-KE
Page 191
Appendix
Switch Seitings
Switch Settings Here is a reference for switch settings for a 1771-KE/KF communication controller module. (Prior to revision H.)
Switch Assembly SW-1
Switch 1: Off - Full duplex On - Half duplex Switch 2: Off - Embedded response disabled On - Embedded response enabled Switch 3: Off - Duplicate message detection disabled On - Duplicate message detection enabled Switch 4: Off - RS-232-C handshaking disabled On - RS-232-C handshaking enabled Switch 5: Off - Remote diagnostics pass through On - Remote diagnostics enabled
Here is a reference for switch settings for a 1771-KE/KF communication controller module. {Revision H.)
with Sw-1 error with with If you want to check | parity | embedded select protcol as: as: as: responses: 1 2 3 4 5 full duplex BCG none no off | off | N/A] N/A] off full duplex BCC even no on | off off full duplex BCC none yes off | on off full duplex BCC even yes on] on off half duplex BCC none no off | off on half duplex BCC even no on | off on full duplex CRC none yes off | on on half duplex CRC none no on | on v vy jon If you want the module’s R§-232-C port to: set switch 3: Use handshaking signals on Ignore handshaking signals off
Page 192
Page A-2 Switch Settings
If you want your module to: set switch 4: detect and ignore duplicate messages on accept all messages regardless of duplication off
A. First Digit Station (SW-2, SW-3, SW-4)
Switch Digit 1 2 Off Off 0 Off On 1 On Off 2 On On 3 B. Second and Third Digits Switch Digit 1 2 3 Off Off Off 0 Off Off On 1 Off On Off 2 Off On On 3 On Off Off 4 On Off On 5 On On Off 6 On On On 7 Data Highway Baud Rate (SW-5) Switch Baud Rate 1 2 38,400 Off Off 57,600 On On 76,800 On Off 115,200 Off On
Recommended
Page 193
Page A-3 Switch Settings
Computer Link Baud Rate and Parity (SW-6)
Switch Baud Rate 1 2 3
110 Off Off Off 300 On Off Off 600 Off On Off 1200 On On Off 2400 Off Off On 4800 On Off On 9600 Off On On 19,200 On On On
If you have revisions A-G module:
Switch 4: On - Even parity Off - No
If you have revision H module:
Switch 4: On - Execute diagnostic command Off - Pass through diagnostic command
Page 194
Page A-4 Switch Settings
1771-KE, -KF Communication Controller Module
Switch Data Highway Computer Link Baud Assembly Station Baud Rate Rate and Diagnostic
Pass Through.
O08 Bt 47a EE 4a See
B parity prior to series A revision H.
Page 195
Appendix
Detailed Flow Charts
B.0 General
This appendix presents flow charts that give detailed views of an example of software logic for implementing full-duplex protocol. The flow charts in chapter 4 gave you a simplified view of this software logic.
We have not shown any error checking or recovery relating to interaction with the modem handshake driver, a third process. To do this would overly complicate the flow charts, and in many cases, such error checking and recovery are not needed.
Page 196
Figure B.1, Data Flow Diagram for Full-Duplex Protocol
11652
Data Link Layer IN
Row Output Bytes
Multiplexer
Physical Link Layer
UART
Row Input Bytes
SENDCTL SENDDATA SENDETX
Messages
Separator
GETCODE
DLE ENQ
Messages
XMIT
Messages Which Have Been Sent (Or Have Failed)
a
Messages to be sent, -
Empty
DLE ENQ
RCVE
Buffers
Received Messages
Network Layer
Detailed Flow Charts
Page B-2
Page 197
Page B-3
Detailed Flow Charts
Internal Storage: rr XMIT * NAK Counter
* Timeout Counter at.
Legend: Y « Default value used by the module GETMSG
Get Message from Network Layer
Reset NAK and Timeout Counters
I <a j SENDM
Send Message
_ y
WTAK TL SENDC Wait for ACK, NAK or Timeout Send N DLE ENQ °
3°
Received NAKs Received for this DLE NAK Message . 2?
3* Yes Timeouts for this Message ?
Received DLE ACK f
SIGFAIL SIGOK SIGFAIL Tell Network Tell Network Tell Network Layer of Layer Message Layer of Failure Was Sent Failure
11653
Figure B.2, Transmitter Routine for Full Duplex Protocol
Page 198
Page B-4 Detailed Flow Charts eT
4 WTAK »
STARTTIME
Start the ACK Timeout
_- - ----- - -- - ---------4
I SLEEP i Receive No 1 a Response Go to Sleep { at WTRESP { - Yes Indivisible Zone { y STOPTIME . Common: Cancel the ® WTRESP: A Sleep Location ACK Timer
Get the Response Code (if Any) From RESP
Y
C RETURN +)
® RESP: A Variable Used to Pass the Response Code From the Receiver to the Transmitter
11657
Figure B.3, WTAK Subroutine
Page 199
Page B-5 Detailed Flow Charts
SENDM Input: ® Message address e Size of message
Y
Internal: Reset BCC accumulator @ BCC accumulator ® Message pointer ® Message size counter SENDCTL Send DLE STX
BCC Link Data Done Include 9 Byte in BCC SENDETX Send SENDDATA DLE ETX BCC Send Link Data Byte
C RETURN )
11655
Figure B.4, SENDM Subroutine
Page 200
Page B-6 Detailed Flow Charts
STARTTIME
An ImplementationDependant Routine that Schedules TIMEOUT to Be Executed at the Expiration of an Interval of Time (Typically 12 Character Times)
\ RETURN
11658
Figure B.5, STARTTIME Subroutine
STOPTIME
An Implementation-Dependent Routine to Cancel TIMEOUT
\
RETURN
11689
Figure B.6, STOPTIME Subroutine