The text of a manual · part 4 of 15
Communication Adapter Module (cat. no. 1771-KA2) User's Manual, pages 31 to 40
Pages 31 to 40 of 144
The original document is the PDF (2.0 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-KA2
Page 31
Chapter 3 Module Installation
The module is shipped with these switches set for 57.6K baud. Both switches are set ON for this communication rate. This baud rate is the intended Data Highway communication rate.
CAUTION: Do not set these switches for any other baud rate. Incorrect setting of these switches may cause faulted data transmission on the Data Highway communication link. This may disable Data Highway operation until the switch setting is corrected.
After rechecking all switch settings, replace the cover plate on the module. Keying
The I/O slot designated for the 1771–KA2 communication adapter module should be keyed to admit only that module. Plastic keying bands, shipped with the I/O chassis, accomplish this purpose. These keying bands provide for only one type of module in a slot. On the rear edge of the communication adapter module are 2 slots. Position the keying bands on the backplane connector to align with these slots. For the communication adapter module, position keying bands on the upper backplane connector between these numbers printed on the backplane: 4 and 6 22 and 24 Refer to Figure 3.5. Use needle–nose pliers to insert or remove keying bands.
3-7
Page 32
Chapter 3 Module Installation
Figure 3.5 Keying Band Position
ÉÉ ÉÉ Keying Bands
Installation In The I/O Slot
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36
ÉÉ ÉÉ ÉÉ ÉÉ
Follow these procedures to install the module: 1.
Turn I/O chassis power off. (This refers to the power supply that connects to the I/O chassis at its backplane.
CAUTION: To avoid module damage, always be certain that power to the I/O chassis is off before insertion or removal of the KA2.
3-8
2.
Insert the keying bands, as described in section titled “Keying.”
3.
Insert the module into its designated slot. Plastic tracks on the top and bottom of the slot guide the module into position. Do not force the module into its backplane connectors. Rather, apply a firm, even pressure to seat the module in its slot.
4.
Snap the plastic chassis latch over the module. This secures the module firmly in the I/O chassis.
Page 33
Chapter 3 Module Installation
Cable Connections
The following cable connections are made to a communication adapter module: Data Highway cable Program panel interconnect cable (cat. no. 1772–TC) Data Highway/Processor cable (cat. no. 1771–CR, –CO,–CN) At set up, all cable connections to the module can be made with power on. After the program is up and running, however, it is safer to make connections with power off because of the possibility of noise that connecting will make. Also, again after the program is running, a module should only be connected to a Data Highway with power off. A powered–up module that is disconnected from the Data Highway will be in the polling state and cause a highway fault if it is re–connected. This is the same as connecting two active highway segments (which also should not be done). Data Highway Connection The module connects to the Data Highway communication link by means of a user–assembled dropline. This dropline connects to the trunkline of the Data Highway at a 1770–SC station connector (Figure 3.6), or a 1770–XG tee connector.
3-9
Page 34
Chapter 3 Module Installation
Figure 3.6 Data Highway Cable Connection Trunkline
1770–SC Station Connector
Dropline (100 feet maximum)
Communication Adapter Module (cat. no. 1771–KA2)
Program Panel Interconnect Cable Connection The center connector of the communication adapter module is labeled PROGRAM INTERFACE. When the module is installed and connected to the processor, this socket connects an industrial terminal system (cat. no. 1770–T1, –T3). To connect with any of these terminals, use the program panel interconnect cable (cat. no. 1772–TC). Figure 3.7 shows the programming terminal connections to the communication adapter module. When an industrial terminal is connected this way, you can perform all terminal functions except cassette loads, or dumps. You must disconnect the KA2 perform these functions.
3-10
Page 35
Chapter 3 Module Installation
Figure 3.7 Industrial Terminal Connection
ÄÄ ÄÄ ÄÄ Channel A
Program Panel Interconnect Cable (cat. no. 1772-TC) 10219a-I
Data Highway/Processor Cable Connector The bottom connector of a 1771–KA2 module is labeled PROCESSOR. The communication module communicates with the station processor through this connector. The Data Highway/Processor cable (cat. no. 1771–CN, –CO, –CR) connects from this socket to a socket on the fact of the station processor. On a PLC–2/20 or PLC–2/30 this is the connector labeled PROGRAM PANEL; on a Mini–PLC–2 or Mini–PLC–2/15, the connector is labeled INTERFACE. (Refer to Figure 3.8) and on a Mini–PLC–2/05 the socket is labeled INTFC.
3-11
Page 36
Chapter 3 Module Installation
Figure 3.8 Data Highway/Processor Cable Connection PLC-2/20 Processor
Communication Adapter Module (cat.no. 1771-KA2)
PLC 2/20 Connector Labeled “Program Panel” AC FUSE
Processor Connector Data Highway Processor Cable (cat.no. 1771-CR) a. Connection to PLC-2/20 or PLC-2/30 Processor Mini-PLC-2/15 Module
Connector Labeled “Interface”
Communication Adapter Module (cat.no. 1771-KA2)
Data Highway Processor Cable (cat.no. 1771-CN, -CO)
Processor Connector b. Connection to Mini-PLC-2, Mini-PLC-2/05, and Mini-PLC-2/15
10865-I
A Second Link To provide a second communication link at a data highway station, you can connect a KA2 module to another KA2 or to an A–B 1771–KG (series B) interface module to provide an RS–232–C link and a Data Highway link. These links enable communication with, say, a PLC–2 family processor on the highway, and a stand–alone computer. In such a scheme, the 1771–KG module can be connected directly to the PLC–2 family processor, and the KA2 connected to the PROGRAM INTERFACE connector of the 1771–KG, or vice versa. 3-12
Page 37
Chapter
4
Commands
General
The primary function of a KA2 module is to transfer data to and from its station processor. The module is instructed to transfer specific units of data by user-programmed commands. The communication adapter module transmits and receives the following set of non-privileged commands: Protected write Protected bit write Unprotected write Unprotected bit write Read These commands are of three general types: write, bit write, and read. (Refer to Figure 4.1). The write and read commands transfer word data between the data table of the local station processor and the data table of a remote station processor. The bit write command controls ON/OFF status of one or more memory bits at a remote station processor.
Figure 4.1 Module Command Summary
Data Table at Local Station Processor
Data Table at Remote Station Processor Write
16-Bit Words Bit Write Individual Bit
Read 16-Bit Words
Communication Adapter Module
4-1
Page 38
Chapter 4 Commands
Privileged Commands This chapter describes functions of these commands and their access to data table locations at station processors. A KA2 module can also receive privileged commands from a computer or another intelligent RS-232-C device through a 1771-KE/KF communication controller module. These privileged commands and their functions (briefly) include: Diagnostic counters reset - resets to zero all diagnostic timers & counters in the station interface module. Diagnostic loop - use to check integrity of transmission over communication link. Diagnostic read - reads up to 244 bytes of data from PROM or RAM of station interface module. Diagnostic status - reads a block of station information from station interface module; reply includes station information in module’s data field. Enter download mode - puts PLC-2 family processor into download mode. Use before sending physical write commands to station. Enter upload mode (new on KA2 module) - puts PLC-2 family processor into upload mode. Use before sending physical reads to station. Exit download/upload mode - takes PLC-2 family processor out of upload/download mode. Use to restart processor after uploading or downloading. Physical read - reads bytes of data from PC data table or program memory. Use the upload contents of PLC-2 family processor memory to computer. Physical write - writes bytes of data into PC data table or program memory. Use to download computer contents to PLC-2 family processor memory. Set data table size* - sets data table size for PLC-2 family processor. Use before physical writes on PLC-2 family processor. All PLC-2 family data tables are configurable, but some have wider ranges than others. Check the appropriate manual for the processor in your application. Later chapters cover the following: Command programming (chapter 5) Command status bits (chapter 6) Command initiation and execution monitoring (chapter 7)
4-2
Page 39
Chapter 4 Commands
Terminology: Remote/Local Station In this and later chapters, we use the terms “remote station” or “local station.” The local station is the point of reference. When describing the commands, for instance, the local station is the one sending the command. A remote station is any station that receives a command from the local station. Figure 4.1 illustrates this terminology. Protected/Unprotected
Each 1771-KA2 module command has a prefix, either “protected” or “unprotected.” This prefix denotes memory access of the command. The distinction between these command types is: Protected commands can access (write into) only specified data table areas. The program in the receiving station processor controls these areas. In that program, a memory access rung determines which data table areas will accept protected write or protected bit write commands. (Rungs are described in chapter 5.) The receiving station ignores protected commands that are not defined by the memory access rung. Unprotected commands require no memory access rung, and they can read or write into any addressable data table word in the receiving station processor. The primary distinction between these commands is program restriction of memory access. Switch selections can also be made on the module for write protection, to enable/disable execution of many of these commands. (Chapter 3 gives switch selections.) Figure 4.2 summarizes the distinction between protected and unprotected commands.
4-3
Page 40
Chapter 4 Commands
Figure 4.2 Protected/Unprotected Command Distinction
Memory Word Address
021 022 023
>
An unprotected command can access any area of data table memeory at a receiving station processor
End of Data Table
ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ ÉÉÉÉÉÉÉÉÉ a. Access Definition
>
A protected command can access only specified areas (determined by memory access rung in receiving station) of memory
Branch Start Instruction 010 G
021 G
023 G b. Memory Access Branch (typical)
10866-I
NOTE: For most write and bit write operations between station processors, protected commands should be used. Because memory access must be allowed by the program at the receiving station processor, protected commands allow programmed write protection, which gives the programmer an added degree of control over command execution. Unprotected commands provide the same functions in transferring data, but without this write protection at the receiving station. Write Commands
A write command transfers word data from the local station processor to a remote station. A single write command can send from 1 to 121 consecutive data table words. There are 2 types of write commands that can be sent from a station communication adapter module: Protected write Unprotected write The distinction between these types of commands is their memory access. Protected write commands are not executed by the receiving station unless a memory access rung is programmed at that station and switch 1 on write options is set. Because this allows added control over data transfer, use of protected commands is recommended.
4-4