Rockwell Automation 1771-DA, D17716.5.13 User Manual

AllenBradley
ASCII I/O Module
(Cat.
No. 1771-DA)
User Manual

Table of Contents

To Our Customers 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Overview of This Manual 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Applications
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Getting Started With Y
PLC2 Family Processors 22. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Data to Y PLC3 Processors 218 What You Need T Reading Data from Your ASCII Device 228 Writing
Data to Y
our ASCII Device 214. . . . . . . . . . . . . . . . . . . . . . . .
o Get Started
our ASCII Device 232. . . . . . . . . . . . . . . . . . . . . . . .
our ASCII Module
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
21. . . . . . . . . . . . . .
218. . . . . . . . . . . . . . . . . . . . . . . . . .
Choosing Module Features 31. . . . . . . . . . . . . . . . . . . . . . . .
Chapter Choosing Choosing the Mode of Module Operation, IW1(0204) 313 Using BCD Delimiters (Report Generation Mode, Only), IW4(1016) 314
Justifying Margins, IW3(03) 315. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Objectives
the Mode of Communication
I/O Buf
fer Size, IW3(0002) 324. . . . . . . . . . . . . . . . . . . . .
Single or Multiple T
the Number of Initialization W
Bit Settings in Initialization W
ransfers, IW2(17) 325. . . . . . . . . . . . . . .
31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . .
. . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
ords, IW1(0001) 329. . . . . . . .
ords 330. . . . . . . . . . . . . . . . .
Table of Contentsii
ASCII
I/O Module T
utorial 41. . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter PLC2 Family Processors 42 Adding Setting Expanding Changing Justifying Demonstrating EndofString Delimiter 49 Removing the Fill Character 414 Removing Header and Trailing Characters 415 Demonstrating Data Conversion 417 Selecting Report Generation Mode, Data Conversion,
Objectives
Initialization Rungs Bits in Initialization W
the Number of Initialization W
the Module'
Data
and BCD Delimiter
Initialization Rungs Bits in Initialization W
the Number of Initialization W
the Module'
Data
and BCD Delimiter
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
s String Length (Read, Only) 45. . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
s String Length (Read, Only) 432. . . . . . . . . . . .
41. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ords 44. . . . . . . . . . . . . . . . . . . . . . . .
ords 45. . . . . . . . . . . . . . . .
47. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
419. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
427. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ords 430. . . . . . . . . . . . . . . . . . . . . . . .
ords 432. . . . . . . . . . . . . . . .
434. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
443. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .
Handshaking 51. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter Understanding Handshaking Fundamentals 51 Reading Status and/or Data from the Module 53
Objectives
51. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
Function of Control and Status Bits 61. . . . . . . . . . . . . . . . . .
Chapter Command Words 61 Initialization Words 63 Status Words 613
Objectives
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents iii
Troubleshooting 71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter Recognizing How You Interpret Status Indicators 72 How You Interpret Codes in Status Word One 74 Testing the ASCII Module and Cables 77
Objectives
Initialization Errors
71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
71. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
PLC2 Family Processors A1. . . . . . . . . . . . . . . . . . . . . . . . .
Complete Getting Started Program, PLC2 Family A1. . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
For PLC3 Family Processor B1. . . . . . . . . . . . . . . . . . . . . . .
Complete Getting Started Program, PLC3 B1. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
ASCII Conversion Tables C1. . . . . . . . . . . . . . . . . . . . . . . . . .
Specifications D1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
To Our Customers
Preface

Overview of This Manual

This manual tells you in a tutorial manner how to install and use your ASCII module.
In
Chapter
1
2
3
4 Handshaking
5
6 T
Appendix
Getting Started with Y
our ASCII Module
Choosing Module Features
ASCII Module T
Functions of Control and Status Bits
roubleshooting Y
Module
Entitled W
Read data from your ASCII module and write data to it using an industrial terminal
Choose module features so you can match your ASCII module with your ASCII device
utorial
our ASCII
Select and demonstrate module features, and format messages
Program the handshaking logic that controls communication between your ASCII module and your PC processor
Select desired features and read module status by describing the function of bits in command and status words
Interpret status indicators and status codes, and use a simple program to test your ASCII module.
Program block transfer communication and estimate the time required for read/write handshaking. W included numerous example programs
e W
ill Show Y
ou How T
o
e have

Intended Audience

Notational Conventions

Index
Locate concepts and definitions in the text
We assume that you are familiar with operating and programming your Allen-Bradley controller. Because of the functions that your module performs, your programming skills should include file manipulation and message formatting. Refer to the Programming and Operations Manual for your PLC-2 family controller or to the Programming Manual for your PLC-3 controller.
Some chapters in this manual contain examples of how you enter data or commands. When you read these chapters, remember the following notational conventions:
1
Preface
To Our Customers
A symbol or word in brackets represents a single key you would press.
These include keys such as [ENTER], [SHIFT], or [
].
Spaces would be entered as shown, except that the space preceding and
following the brackets is not an entered space. (We put a space before
the left bracket and after the right bracket to make it easier to read). Numbers and capital letters not in brackets would be entered as shown. Punctuation such as commas, and symbols such as / would be entered
as shown.
For example, typical data and a typical command that you would enter on the industrial terminal keyboard are as follows:
Enter: ALLEN 123/AB[ENTER] (data)
Enter: DD,O3:0,[SHIFT]%A[ENTER] (PLC-3 command)

Some Tips on Using This Manual

We have included numerous examples of CRT displays resulting from data or commands that you enter. All CRT displays are shown with a shaded background. Enter all commands on the industrial terminal keyboard. The only exception is for some PLC-3 entries where we tell you to use the PLC-3 front panel.
Read chapters 1 and 2 before proceeding to other chapters of this manual that pertain to your needs. For example, you may want to use only selected module features (chapter 3) and read only selected bit descriptions (chapter 5).
We have developed forms to assist you in selecting module features and in troubleshooting. Make a copy of each of the following and refer to them as needed.
Initialization Words for Data Mode Form 5175, chapter 2 Initialization Words for Report
Generation Mode Form 5176, chapter 2 Command and Status Words Figure 5.2-5.4 chapter 5 Fault Status Table 6.E, chapter 6
2
Preface
To Our Customers
You will use several procedures frequently in the tutorial chapters of this manual. You may want to memorize the steps or have a reference copy of the following procedures:
Reading Data From Your ASCII Device Writing Data To Your ASCII Device Setting Bits in Initialization Words

Typical Applications

You can use an ASCII I/O module to input data to the processor from a data source such as a bar code reader, output messages from the processor to a display device, or bidirectionally exchange messages and/or data between an intelligent data terminal and the processor. Typical examples are as follows:
Type
of
Devices
Bar code readers
Keypads Input
Dotmatrix scrolling displays, terminals, or printers
Intelligent data terminals
Computers Input/Output
Device Applications
Input
Output
Input/Output
Part recognition, sorting, inventory control
Enter values, change data
Display warnings or diagnostic messages, print production reports
Enter values, change data, monitor or troubleshoot a process
Exchange data files
3
Chapter
2
Getting Started With Your ASCII Module
ASCII is the acronym for American Standard Code for Information Interchange. The standard includes a 7-bit code for 128 data and control characters.
With your ASCII I/O module you can transfer data, by means of the I/O scan, from an ASCII device to the PC processor data table, and vice versa. The module has two modes of operation, data mode and report generation mode. In data mode, you can transfer ASCII, BCD, or hex characters. Generally, use this mode to transfer data to the processor data table. In report generation mode, you can include BCD values in the string of ASCII characters. Generally, use this mode when you want to transfer messages.
You can use your ASCII module with any Allen-Bradley programmable controller that has an expandable data table, block transfer capability, and uses the 1771 I/O structure. If you use a PLC-2/20 controller (cat. no. 1772-LP2), your programming will be lengthier because its processor does not have file move or block transfer instructions.
Getting Started with Your ASCII Module is a hands-on exercise. By going step by step through two easy examples, you will quickly learn operation of your module’s basic features.
This chapter is divided into two sections, one for PLC-2 family processors, the other for PLC-3 processors. Proceed to the section that pertains to your processor.
21
Chapter 2
Getting Started with Your ASCII Module
PLC2 Family Processors

What You Need to Get Started

You will demonstrate the operation of your ASCII module by reading data from the industrial terminal to the processor data table, and by writing data from the data table to the industrial terminal. You will use your industrial terminal as an ASCII device for entering data (read), and for displaying data (write).
You will need to set up a PC processor with an I/O chassis, power supply, industrial terminal, cables, and your ASCII module. You will need about an hour to complete the tutorial exercises in this chapter, and about two hours to complete those of chapter 3, once you have the equipment operating properly.
Equipment That You Need
You will need the following equipment (Table 1.A) using your existing system and/or spare equipment.
Table 1.A Equipment
(PLC2 Family)
22
Equipment
ASCII I/O module
Industrial T
PLC2 Family Keytop Overlay
Alphanumeric Keytop Overlay
Processor Interface Cable
IT/DH Adapter Cable
Processor PLC2/20, 2/30
I/O Interconnect Cable 1777CB, CA
Local Adapter Module
T
ermination Plug
erminal 1770T3
I/O Chassis
Power Cable
Catalog Number
1771DA
1770KCB
1771KAA optional
1772TC
1770CB (figure 1.4)
1771A1, A2, A4
1771CJ, CK
1771AL
1777CP
Chapter 2
Getting Started with Your ASCII Module
or
Processor
MiniPLC2/15
Power Supply
Power Cable
1771P1
1771CL
Note: You must use battery back-up.
The ASCII module draws 1.3A from the backplane. Be sure that the total current drain of all modules in the chassis does not exceed the maximum for the backplane and power supply.
If you use an existing system, consider disconnecting all other chassis except the one containing your ASCII module. Disconnect field wiring arms from output modules for safety purposes.
How to Connect Your Equipment
Connect your equipment with the appropriate cables (Figure 1.1 for Mini-PLC-2/15 controllers, Figure 1.2 for PLC-2/20 or-2/30 controllers). Be sure that the end of your IT/DH adapter cable labeled CHANNEL B is connected to channel B on the industrial terminal.
23
Chapter 2
Getting Started with Your ASCII Module
1771-P1 Power Supply
1771-CL Power Cable
Figure 1.1 Connections
Mini-PLC-2/15 Processor
for MiniPLC2/l5 Controller
Module Group 1, Slot 1
1771-DA ASCII I/O Module
1771-A1, -A2, -A4 I/O Chassis
1772-TC Processor Interface Cable
See WARNING in section titled How to Connect Your Equipment." Using Channels
A & B
Channel A
1770-T3 Industrial Terminal (rear view)
Channel B
1770-CB IT/DH Adapter Cable
11817
1. Connect the power cable between the power supply and the I/O
chassis. The cable connects to the backplane of the I/O chassis behind the processor/adapter slot.
2. Connect the processor interface cable between the PC processor and
channel A on the industrial terminal.
3. Connect the IT/DH adapter cable between the ASCII module and
channel B on the industrial terminal.
24
Chapter 2
Getting Started with Your ASCII Module
1771-CK,-CJ PowerCable
Figure 1.2 Connections
PLC-2/30
Processor
1771-ALLocal AdapterModule
for PLC2/20 or PLC2/30 Controller
1772-TCProcessor InterfaceCable
1771-CA,-CB I/OInterconnect Cable
ModuleGroup1, Slot1
ChannelA
1771-DAASCII I/OModule
See WARNING in section titled How to Connect Your Equipment." Using Channels
A & B
1770-T3 IndustrialTerminal (rearview)
ChannelB
1770-CBIT/DH AdapterCable
1771-A1,-A2,-A4 I/OChassis
1777-CP TerminationPlug
11818
4. (PLC-2/20, -2/30, only) Connect the I/O interconnect cable between
the PC processor and the I/O adapter module
If the IT/DH adapter cable is too short or not available, make your own. It should not exceed 50 feet (Figure 1.4).
Using Channels A and B
You may or may not be able to connect cables to channels A and B at the same time depending on the revision of your industrial terminal.
25
Chapter 2
Getting Started with Your ASCII Module
Industrial terminals manufactured before May 1982 allow cross talk between channels A and B. As a result, data table values could be altered. Therefore, you should alternate cables between channels for the tutorials of this manual when using these terminals. When using a series A industrial terminal, you must alternate cables.
Your industrial terminal has a date code stamped in white on the upper right corner of the rear label. If your industrial terminal (cat. no. 1770-T3/TA series B) is date coded T 8218 or earlier, or is not date coded, alternate cables and observe the following warning:
WARNING: When cables are connect to channels A and B at the same time, cross talk between these channels could cause the processor to misread inputs and/or misapply outputs, with possible damage to equipment and/or injury to personnel. For this reason, do not remove the slide bar that prevents you from connecting cables to channels A and B at the same time.
If your industrial terminal (cat. no. 1770-T3/TA series B) is date coded T 8219 or later, you can use channels A and B at the same time.
If alternating between channels A and B, connect the 1770-CB cable to channel B when using the industrial terminal in alphanumeric mode as a data terminal. Connect the 1772-TC cable to channel A when using the industrial terminal in PLC-2 (ladder diagram) mode.
As an alternative, use a second industrial terminal in alphanumeric mode on channel B, or use a Silent 700 data terminal. Connect either to the 1770-CB cable.
Checking ASCII Module Configuration
Your module is configured for RS-232-C operation when shipped from the factory. If you suspect that its internal configuration (settings of internal programing plugs) has been altered, you should check module configuration (refer to section titled Choosing the Mode of Communication in chapter 3). Do this as follows:
26
1. Remove covers from the module’s printed circuit board.
Chapter 2
Getting Started with Your ASCII Module
2. Locate the programming plugs and set them according to RS-232-C
without control lines (figure 2.8).
Entering the ““Getting Started Program””
You may want to record on tape the ladder diagram of your application program before proceeding because you will need to load ASCII logic into a cleared memory for chapters 1 and 3.
Using your industrial terminal, enter the ““Getting Started Program”” (Figure 1.3) into processor memory. At this point, you do not need to understand how the program works, but you should enter it exactly as shown.
27
Chapter 2
Getting Started with Your ASCII Module
Figure 1.3 Getting
LADDER DIAGRAM DUMP
020
02
252
07
020
02
063
15 252
15
252
327
G
000
063
17 200
15
200
Started Program" (PLC2 Family)
START
200
PUT
000
200
07
063
TON
.01
PR 300 AC 000
035
00
15
15
03500252
15
03500252
15
251
063
G
000
020
063
G
000 02001252
02001252
=
100
01
247
=
200
16
16
020
00
200
L
OFF 15
200
U
OFF 15
020
01
020
L
OFF 00
020 U
OFF 00
200
L
ON 16
200
U
ON 16
28
Chapter 2
Getting Started with Your ASCII Module
011
BLOCK XFER READ
DATA ADDR:
MODULE ADDR:
BLOCK LENGTH:
FILE:
BLOCK XFER WRITE
DATA ADDR:
MODULE ADDR:
BLOCK LENGTH:
FILE:
252 - 271
200 - 217
030
111
16
031
111
16
EN
17
111
DN
17
011
EN
16
111
DN
16
020
END 00460
NOTE: Configure the data table for two racks using [SEARCH][5][0] before entering this program.
Installing Your ASCII Module
Be sure that power to the I/O chassis is turned off when installing (or removing) your ASCII module as follows:
1. Remove power from the I/O chassis.
2. Insert the ASCII module in rack 1, module group 1, slot 1. The
program makes the processor communicate with the ASCII module at that specific location. (If you must use another rack location and are familiar with block transfer operation, change the rack, group, and slot number of the module address in the block transfer read and write instructions, accordingly.)
02
3. Turn on power to the I/O chassis. Three LED indicators on the
ASCII module illuminate momentarily. Their functions are:
FAULT: Normally off. This red LED indicator illuminates when the module detects an internal fault.
29
Chapter 2
Getting Started with Your ASCII Module
BUFFER FULL: Normally off. This yellow LED indicator illuminates when the input buffer becomes full.
CHANNEL ACTIVE: This green LED indicator illuminates when the industrial terminal is on, properly connected to the ASCII module’s interface port, and set for alphanumeric mode.
Reading Data from Your ASCII Device
In this demonstration, you will enter data and observe how it is stored in the processor data table. You will use the industrial terminal in alphanumeric mode as an ASCII data terminal when you enter data. Then you will change the industrial terminal to PLC-2 mode and observe the transferred data by displaying the contents of the block transfer read file.
You will use the following procedures:
In
Procedure
P1
P2
P3
P4
Set your industrial terminal to alphanumeric mode
Enter your data
Set your industrial terminal to PLC2 mode
See how data is stored in the data table
Y
ou W
ill
Later in this chapter and in chapter 3 you will combine these procedures with others. The order in which you will perform them may vary.
Even if you are familiar with these procedures, we suggest that you read them completely. If you deviate from them, proper operation may not occur.
210
If you have not already done so, load the “Getting Started Program” (Figure 1.3) into processor memory.
Procedure P1 Set Your Industrial Terminal to Alphanumeric Mode
1. Turn on the industrial terminal.
2. Insert the Alphanumeric Keytop Overlay (cat. no. 1770-KAA).
Chapter 2
Getting Started with Your ASCII Module
To avoid switching keytop overlays every time you change the industrial terminal operating mode, you can label numbers, letters, and [RETURN] on the corresponding keytops of the PLC-2 family overlay.
3. Select alphanumeric mode.
Press 12 on the keyboard
The ASCII module’s CHANNEL ACTIVE LED illuminates.
4. Set the communication rate to 300 baud.
Press 13 [RETURN]
The cursor in the upper left corner of a blank screen tells you the terminal is ready for your input.
5. Change the processor mode select switch to the RUN/PROG
position. (Failure to do this step now will prevent a transfer.)
Procedure P2 Enter Your Data
1. Be sure the processor mode select switch is in the RUN/PROG
position.
2. Enter data such as your first name followed by a couple of numbers.
Enter 11 characters including a space between your name and numbers (Table 1.B).
211
Chapter 2
Getting Started with Your ASCII Module
Table 1.B Commonly
ASCII Hex ASCII Hex ASCII Hex
space 20 0 30 1 31 2 32 3 33 4 34 5 35 6 36 7 37 8 38 9 39
Used Data Characters
A 41 B 42 C 43 D 44 E 45 F 46 G 47 H 48 I 49 J 4A K 4B L 4C M 4D
N 4E O 4F P 50 Q 51 R 52 S 53 T 54 U 55 V 56 W 57 X 58 Y 59 Z 5A
The industrial terminal displays the characters as you enter them. If characters are not displayed, check the program that you loaded into memory. If you find no errors, refer to Need Help? below.
3. Change the processor mode select switch to the PROG position.
(Failure to do this step now will prevent correct operation.)
Procedure P3 Set Your Industrial Terminal to PLC-2 Mode
1. Press [MODE SELECT]
2. Change the keytop overlay to PLC-2 family.
3. Select PLC-2 mode.
Press 11 on the keyboard
Procedure P4 See How Data Is Stored in the Data Table
1. Move the cursor to the rung containing the read block transfer
instruction (rung 14). The cursor will illuminate the instruction title BLOCK XFER READ.
2. Display the contents of the read block transfer file in hex.
212
Chapter 2
Getting Started with Your ASCII Module
Press [DISPLAY] 1
Results The industrial terminal displays the name and numbers (first 10 characters) that you entered in step 2. For example,
ALLEN 12345 would be displayed as:
POSITION FILE
001 E010
002 0000
003 414C
004 4C45
005 4E20 N
006 3132 1 2
007 3334 3 4
DA
TA
ASCII Equivalent
status word one
status word two
A L
L E
Entering the eleventh character caused the module to transfer the data. Note the space entered between ALLEN and 12345.
The display of status word one (E010) and status word two (0000) indicates normal status of the module.
3. Terminate this display by pressing [CANCEL COMMAND], and
return to ladder diagram.
Need Help?
If your display was all zeros, the data did not transfer. You may have altered the procedure.
Did you enter your program exactly as shown? Did the module’s CHANNEL ACTIVE LED go on? Did you perform Procedure P1 before P2? Did you perform Step 1 in Procedure P2? Did you perform Step 3 in Procedure P2?
213
Chapter 2
Getting Started with Your ASCII Module
If you are still having trouble, refer to “Testing the ASCII Module and Cables,” to verify communication between the ASCII module and the industrial terminal. If you suspect a cable problem, check the 1770-CB cable (Figure 1.4).
Then try again, starting at Procedure P1.
Figure 1.4 Minimum
Connections in the 1770CB Cable
1
2
3
7
18
25
ASCII Module Interface Port
* Protective Ground
Transmitted Data
Received Data
Ground
1
2
3
7
18
25
Industrial Terminal Channel B
Connectors: 25pin DShell Male Connector Cable Kit 1770XXP (each end)
Cable:
Belden 8723 or equivalent
* In cable but not required for ASCII module
11819
Writing Data to Your ASCII Device
214
In this demonstration, you will load data characters into the write block transfer file and observe how they are displayed. You will use the industrial terminal in PLC-2 mode to load data. Then you will change the industrial terminal to alphanumeric mode and observe the transferred data.
Chapter 2
Getting Started with Your ASCII Module
You will use the following procedures where Procedures P1 and P3 are repeated from the section titled Reading Data from Your ASCII Device.
In
Procedure
Y
ou W
ill
P3
P5
P1
Set your industrial terminal to PLC2 mode
Load data into the write block transfer file
Set your industrial terminal to alphanumeric mode (and observe the transferred data)
Procedure P3 Set Your Industrial Terminal to PLC-2 Mode
NOTE: Skip this procedure if your processor is already in PLC-2 mode.
1. Press [MODE SELECT]
2. Check that the PLC-2 family keytop overlay is in place.
3. Select PLC-2 mode.
Press 11 on the keyboard
The beginning of your ladder diagram program will be displayed.
Procedure P5 Load Data into an Instruction File
1. Check that the processor mode select switch is in the PROG position.
2. Move the cursor to the instruction whose file you want to load
(BLOCK XFER WRITE).
3. Display the file in hex.
Press [DISPLAY] 1
4. Load new data starting in position 003 for a write block transfer
instruction, position 001 for other file instructions. (Positions 001 and 002 are reserved for command words in a write block transfer instruction.)
215
Chapter 2
Getting Started with Your ASCII Module
For example, load the following hex codes that are equivalent to BRADLEY 12345 as follows: (Note the space between BRADLEY and
12345.)
POSITION FILE
003 4252 B R
004 4144 A D
005 4C45
006 5920 Y
007 3132 1 2
008 3334 3 4
009 3500 5
DA
TA
ASCII Equivalent
L E
Check your display of FILE DATA to be sure that you entered all data exactly as shown.
Don’t forget to press [INSERT][
] after entering data in each position.
Use the shift key to enter the hex character C.
Procedure P1 Set Your Industrial Terminal to Alphanumeric Mode
216
1. Insert the alphanumeric keytop overlay.
2. Select alphanumeric mode.
Press [MODE SELECT] 12
3. Set the communication rate to 300 baud.
Press 13 [RETURN]
The module’s CHANNEL ACTIVE LED turns on.
4. Change the processor mode select switch to the RUN/PROG
position.
Chapter 2
Getting Started with Your ASCII Module
Results The following display appears at the upper left corner of the industrial terminal:
BRADLEY 12345
5. Terminate the display and return to ladder diagram. Use the PLC-2
family keytop overlay.
Press [MODE SELECT] 11
Summary
Now that you have demonstrated the transfer of data from your ASCII device to the data table and vice versa, you are ready to use these procedures further. First, read the next chapter, “Choosing Module Features.” It defines key words and concepts. Then in chapter 3, “ASCII Tutorial”, you will use these procedures to demonstrate operating characteristics of your module.
217
Chapter 2
Getting Started with Your ASCII Module
PLC3 Processors

What You Need To Get Started

You will demonstrate the operation of your ASCII module by reading data from the industrial terminal to the processor data table, and by writing data from the data table to the industrial terminal. You will use your industrial terminal as an ASCII device for entering data (read), and for displaying data (write).
You will set up a test I/O chassis with a PC processor, power supply, industrial terminal, cables, and your ASCII module. You will need about an hour to complete the procedures in this chapter and about two hours to complete the procedures in chapter 3.
You may want to record your application ladder diagram program before proceeding because you will need to load ASCII logic into a cleared memory for tutorial chapters 1 and 3 in this manual.
Equipment That You Need
You will need the following equipment (Table 1.C) using your existing system and/or spare equipment.
218
Chapter 2
Getting Started with Your ASCII Module
Table 1.C Equipment
PLC3 Main Chassis Main Processor Module I/O ScannerProgrammer Interface Module Memory Module Power Supply
Industrial T PLC3 Keytop Overlay
I/O Chassis Remote I/O Adapter Module ASCII i/O Module
T
winaxial I/O Interface Cable IT/DH Adapter Cable PLC3 Industrial T Chassis Power Cable I/O Power Cable Terminators
[1] [2]
(PLC3)
Equipment
erminal
erminal Cable
Supplied with the Industrial T Supplied with the PLC3 Main Chassis
erminal
Catalog Number
1775A1
1775L1,L2
1775S4A
1775MR
1775P1
1770T4
1770KDA
1771Al,A2,A4
1771AS
1771DA
1770CD
1770CB 1775CAT 1775CAP
1775CH
1775XT
[1]
[2]
If you use an existing system, place the ASCII module in a chassis on a separate channel. Use a spare scanner module (cat. no. 1775-S4A,-S4B) if necessary.
The ASCII module draws 1.3A from the backplane. If you place the module in a chassis containing other modules, be sure that the total current drain of all modules in the chassis does not exceed the maximum for the backplane and power supply.
219
Chapter 2
Getting Started with Your ASCII Module
How to Connect Your Equipment
Connect your equipment using the appropriate cables (Figure 1.5).
120V AC
L2
L1
1775-P1 Power Supply
1775-CAP Chassis Power Cable
Figure 1.5 Connections
UNIT
(CPU)
RAM
G
CENTRAL
PROCESSIN
for PLC3 Controller
1775-CAT Industrial Terminal Cable
O
I/O S
M
C
E
A
M
N
O
N
R
E
Y
R
O
P
P
T
T
I
I
O
O
N
N
A
A
L
L
1775-S4A Scanner
PLC-3 Processor Chassis
1771-DA ASCII I/O Module
1771-T4 Industrial Terminal (rear view)
Channel B Change Cables as required
220
1771-CH I/O Power Cable
1770-CD Twinaxial Cable, 10,000 ft. Max. total each I/O Channel
1771-AS Romote I/O Adapter Module
1771-A1, -A2, -A4 I/O Chassis
1772-TC Processor Interface Cable
1770-CB IT/DH Adapter Cable
1. Connect the chassis power cable between the power supply and the
processor chassis.
11820
Chapter 2
Getting Started with Your ASCII Module
2. Connect the I/O power cable between the power supply and the I/O
chassis.
3. Connect the twin axial cable between the I/O scanner in the
processor chassis and the remote I/O adapter module in the I/O chassis (Figure 1.6).
Figure 1.6 Twinaxial
Cable T
erminations
Terminals on I/O Scanner Module
Channel No. 3
Channel No. 1
Line 1
Shield
Line 2
Blue
Shield
Clear
Line 2
Terminator Resistor (Cat. No. 1770-XS or 1770-XT) 150 ohm 0.5 W
1770CD Twinaxial Cable
Terminals on field Wiring Arm of 1770-AS Adapter Module
Blue Shield Clear
Line 1
Shield
Line 2
Line 1
Shield
Line 2
Terminator Resistor (Cat. No. 1770-XT) 150 ohm 0.5 W
Channel No. 4
Channel No. 2
Absence of a terminator resistor can cause block
NOTE:
transfer errors
4. Connect the industrial terminal cable between channel B of the
industrial terminal and the processor chassis.
11821
221
Chapter 2
Getting Started with Your ASCII Module
5. Connect the IT/DH adapter cable between the ASCII module and
Channel B
Periodically you will have to switch the cables that connect to channel B of the industrial terminal.
channel B of the industrial terminal.
You will use the industrial terminal cable (cat. no. 1775-CAT) when
using the industrial terminal in PLC-3 mode and entering or displaying data in the PLC-3 data table.
You will use the IT/DH adapter cable (cat. no. 1770-CB) when using
the industrial terminal in alphanumeric mode as an ASCII device connected to your ASCII module.
Be sure to observe the labels on the cable connectors and connect each
to its designated port.
Also, if the IT/DH adapter cable is too short or not available, make your own. It should not exceed 50 feet (Figure 1.7).
Figure 1.7 Minimum
18
25
ASCII Module Interface Port
Connections in the 1770CB Cable
1
2
3
7
* Protective Ground
Transmitted Data
Received Data
Ground
1
2
3
7
18
25
Industrial Terminal Channel B
Connectors: 25pin DShell Male Connector Cable Kit 1770XXP (each end)
Cable:
Belden 8723 or equivalent
* In cable but not required for ASCII module
222
11819
Chapter 2
Getting Started with Your ASCII Module
Refer to your PLC-3 Programmable Controller Installation and Operation Manual (publication 1775-800) for additional installation information such as switch settings for the adapter module and I/O chassis, and for grounding information.
Checking ASCII Module Configuration
Your module is configured for RS-232-C operation when shipped from the factory. If you suspect that its internal configuration (settings of internal programming plugs) has been altered, you should check module configuration (refer to section titled ”Choosing the Mode of Communication,” in chapter 2). Do this as follows:
1. Remove the covers from the module’s printed circuit board.
2. Locate the programming plugs, and set them according to RS-232-C
without control lines (Figure 2.8).
Entering the Getting Started Program"
Using your industrial terminal, enter the “Getting Started Program” (Figure 1.8) into processor memory. At this point, you do not need to understand how the program works, but you should enter it exactly as shown.
223
Loading...
+ 232 hidden pages