background image

Choosing Module Features

Chapter 3

315

Select the BCD delimiter from the following hex characters:: 0A-0F,
1A-1F, 2A-2F, 3A-3F, 4A-4F, 5A-5F, 6A-6F, or 7A-7F.
Do not use:

 Any character that otherwise would appear in the message
 The end-of-string delimiter that you will select later

ASCII characters and their codes are listed in tables in appendix C.

Record your selection by writing either the 7-bit binary code, or the
2-digit hex code for the BCD delimiter in IW4(10-16) using the form
(found at the end of this chapter) or the boxes below.

IW4

BCD Delimiter

17 16 15 14 13 12 11 10

0

NOTE:  The module defaults to the colon (:) as the BCD delimiter if you
do not use initialization word four (IW4).  However, if you use IW4, you
must enter a BCD delimiter.

Margin justification refers to the manner in which data is displayed by
your ASCII device or stored in the data table (Table 2.H).

Margin justification is particularly evident when the number of data
characters transferred is less than maximum.

Your choice of margin justification depends on the mode of module
operation (Table 2.I).

Justifying Margins, IW3(03)

StockCheck.com

Содержание 1771-DA

Страница 1: ...User Manual ASCII I O Module Cat No 1771 DA Allen Bradley S t o c k C h e c k c o m ...

Страница 2: ...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 Using the End of String Delimiter IW3 10 16 3 17 Setting String Length IW2 00 13 3 18 Determining Block Transfer Length 3 20 Removing the Fill Character Data Mode Only IW4 10 16 3 21 Removing Header and Trailing Characters IW4 00 03 04 07 3 23 Choosing...

Страница 3: ...ocessors 4 27 Adding Initialization Rungs 4 27 Setting Bits in Initialization Words 4 30 Expanding the Number of Initialization Words 4 32 Changing the Module s String Length Read Only 4 32 Justifying Data 4 34 Demonstrating End of String Delimiter 4 35 Removing the Fill Character 4 40 Removing Header and Trailing Characters 4 42 Selecting Report Generation Mode Data Conversion and BCD Delimiter 4...

Страница 4: ...ample Read Write Program A 19 Example Application Write Program A 22 For PLC 3 Family Processor A 26 Complete Getting Started Program PLC 3 A 26 Block Transfer Programming A 30 Example Read Only Program A 41 Example Write Only Program A 45 Example Read Write Program A 47 Example Application Read Write Program A 50 For PLC 3 Family Processor B 1 Complete Getting Started Program PLC 3 B 1 Block Tran...

Страница 5: ...rds 6 Troubleshooting Your ASCII Module Interpret status indicators and status codes and use a simple program to test your ASCII module Appendix Program block transfer communication and estimate the time required for read write handshaking We have included numerous example programs Index Locate concepts and definitions in the text We assume that you are familiar with operating and programming your...

Страница 6: ...xamples 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 us...

Страница 7: ... 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 Devices Type of Device Applications Bar code readers Input Part recognition sorting inventory control Keypads Input Enter values change data Dot matrix scrolling displays terminals or printers Output Display warnings or diag...

Страница 8: ...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 o...

Страница 9: ...e 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 Equipment Catalog Number ASCII I O module 1771 DA Industrial Terminal 1770 T3 PLC 2 Family Keytop Overlay ...

Страница 10: ...e 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...

Страница 11: ...rial Terminal rear view Channel A Channel B 11817 See WARNING in section titled How to Connect Your Equipment Using Channels A B 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 Con...

Страница 12: ...O Interconnect Cable 1772 TC Processor Interface Cable 1777 CP Termination Plug See WARNING in section titled How to Connect Your Equipment Using Channels A B 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...

Страница 13: ...ason 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 Conn...

Страница 14: ...nt 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 S t o c k C h e c k c o ...

Страница 15: ...07 START 200 07 020 02 TON 063 01 063 15 063 17 252 15 200 15 035 00 200 15 252 15 035 00 252 15 L 200 OFF 15 LADDER DIAGRAM DUMP PR 300 AC 000 035 00 252 15 U 200 OFF 15 063 000 251 100 020 00 020 020 01 020 01 L OFF 00 063 000 247 200 U 020 OFF 00 020 01 252 16 L 200 ON 16 020 01 252 16 U 200 ON 16 G G G S t o c k C h e c k c o m ...

Страница 16: ...our 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 inst...

Страница 17: ... of the block transfer read file You will use the following procedures In Procedure You Will P1 Set your industrial terminal to alphanumeric mode P2 Enter your data P3 Set your industrial terminal to PLC 2 mode P4 See how data is stored in the data table 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 yo...

Страница 18: ... 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 y...

Страница 19: ...aded 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 T...

Страница 20: ...acter 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 ...

Страница 21: ...Module Interface Port 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 Protective Ground Transmitted Data Received Data Ground 11819 In this demonstration you will load data characters into the write block transfer file and observe how they are displayed You will use the ind...

Страница 22: ...or 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 BLOC...

Страница 23: ...ay 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 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 modu...

Страница 24: ...y 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 m...

Страница 25: ...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 a...

Страница 26: ...s 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 1 1775 CAP 2 1775 CH 1775 XT 1 Supplied with the Industrial Terminal 2 Supplied with the PLC 3 Main Chassis 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 3...

Страница 27: ... Change Cables as required 11820 1770 CB IT DH Adapter Cable CENTRAL PROCESSING UNIT CPU PLC 3 Processor Chassis 1775 S4A Scanner 1775 P1 Power Supply 1775 CAP Chassis Power Cable 1775 CAT Industrial Terminal Cable 1770 CD Twinaxial Cable 10 000 ft Max total each I O Channel 1771 CH I O Power Cable 1771 AS Romote I O Adapter Module RAM M E M O R Y S C A N N E R O P T I O N A L O P T I O N A L L1 L...

Страница 28: ...r Cat No 1770 XT 150 ohm 0 5 W NOTE Absence of a terminator resistor can cause block transfer errors 11821 Terminals on field Wiring Arm of 1770 AS Adapter Module 1770 CD Twinaxial Cable Terminator Resistor Cat No 1770 XS or 1770 XT 150 ohm 0 5 W Line 1 Shield Line 2 Line 1 Shield Line 2 Channel No 4 Channel No 2 Line 1 Shield Line 2 Channel No 3 Blue Channel No 1 Shield Clear Terminals on I O Sca...

Страница 29: ...hen 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 Connections in the 1770 CB Cable 1 2 3 7 18 25 1 2 3 7 18 25 Prote...

Страница 30: ...rnal 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 ...

Страница 31: ... WO003 0000 15 WO002 0000 15 WO005 0000 02 WO003 0000 15 WO002 0000 15 WO005 0000 02 WO003 0000 15 RUNG NUMBER RM3 WO002 0000 15 L WO005 0000 02 WO003 0000 15 RUNG NUMBER RM4 WO002 0000 15 U I0001 02 RUNG NUMBER RM5 WO005 0000 03 U I0001 02 WO005 0000 03 WO005 0000 04 RUNG NUMBER RM6 WO005 0000 04 RUNG NUMBER RM7 WO005 0000 03 L WO005 0000 04 WO003 0000 16 RUNG NUMBER RM8 WO002 0000 16 L WO005 000...

Страница 32: ...000 0 FB004 0000 1 HIGH 1 Connect the 1775 CAT cable to channel B of the industrial terminal 2 Turn on power to the I O chassis and PLC 3 controller 3 Turn off the memory protect switch on the front panel of the PLC 3 controller 4 Select program load mode on the PLC 3 front panel Press SHIFT LIST 3 ENTER 5 Turn on the industrial terminal It should automatically display ladder diagram mode If not P...

Страница 33: ...signate data that you enter Example file addresses are O3 0 and O2 0 8 Assemble your program Press ASM Y ENTER The power bars now become solid lines 9 Check your program using the consecutive display mode starting with the first rung Press SHIFT DISPLAY ENTER SR ENTER Use RUNG and RUNG as needed to move from rung to rung Installing Your ASCII Module Be sure that power to the I O chassis is turned ...

Страница 34: ...odule illuminate momentarily Their functions are FAULT Normally off This red LED indicator illuminates when the module detects an internal fault 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 al...

Страница 35: ...ransfer You will use the following procedures In Procedure You Will P1 Connect the 1770 CB cable and set your industrial terminal to alphanumeric mode P2 Enter your data P3 Connect the 1775 CAT cable and set your industrial terminal to PLC 3 mode P4 See how data is stored in the data table Even if you are familiar with these procedures read them completely If you deviate from these procedures prop...

Страница 36: ...l is ready for your input Procedure P2 Enter Your Data 1 Check that the PLC 3 controller is operating in run monitor Use the PLC 3 front panel Press SHIFT LIST 2 ENTER 2 Enter data such as your first name followed by a couple of numbers Enter 11 characters counting the space between your name and numbers Select the characters from commonly used data characters Table 1 D Table 1 D Commonly Used Dat...

Страница 37: ...he 1775 CAT cable to channel B 2 Display your ladder diagram Press SHIFT MODE 1 Procedure P4 See How Data Is Stored in the Data Table 1 Display the block transfer read file Enter the address of that file O3 0 with the following key sequence Press DD O3 0 SHIFT A ENTER Results The name and numbers 11 characters or more that you entered are displayed For example if you had entered ASCII 7890123 the ...

Страница 38: ...53 43 49 49 20 37 38 39 30 000 Results Entering the eleventh character caused the module to transfer the data Status word one E011 and status word two 0000 indicate normal operation of the module These are shown in display words 0 and 1 respectively 4 Terminate this display and return to ladder diagram Press SHIFT MODE 1 Need Help If your display was all zeros 00H00H ASCII display the data did not...

Страница 39: ... and observe the transferred data The procedures that you will follow are described below In Procedure You Will P3 Connect the 1775 CAT cable and set your industrial terminal to PLC 3 mode P5 Load data into the file P1 Connect the 1770 CB cable and set your industrial terminal to alphanu meric mode P6 Enable the transfer of new data Procedure P3 Set Your Industrial Terminal to PLC 3 Mode NOTE Skip...

Страница 40: ...served for command words handshaking Press ENTER and after loading each word For example if you load the following BRADLEY 1234 Your file will appear as RADIX A START WA011 0248 WORD 0 1 2 3 4 5 6 7 00000 60H00H 00H00H B R A D L E Y 1 2 3 4 4 Change the display to hex and observe how the equivalent data is displayed Press SHIFT H ENTER Your file display will change to the following RADIX A START W...

Страница 41: ... LED turns on 4 Change the operation of your PC 3 controller to run monitor from the PLC 3 front panel Press SHIFT LIST 2 ENTER Procedures P6 Enable the Transfer of New Data 1 Set bit I001 02 to enable program logic the write block transfer handshaking using the PLC 3 front panel Press CLEAR SHIFT I0 SHIFT BIT 1 BIT 2 DISPLAY The front panel displays the bit address with an asterisk showing its st...

Страница 42: ...ng the following keystrokes on the industrial terminal keyboard Press SHIFT MODE 1 Summary Now that you have demonstrated how data is transferred from your ASCII device to the data table and vice versa you are ready to use these procedures further Next read Choosing Module Features Chapter 2 It will define key words and concepts Then in Chapter 3 ASCII Tutorial you will use these procedures to dem...

Страница 43: ...ring to initialization words and bits There are four initialization words to configure your module IW1 IW2 IW3 and IW4 Bits within an initialization word are shown in parentheses after the word For example bits 10 thru 17 in initialization word three would appear as IW3 10 17 The ASCII module responds to three modes of communication RS 232 C Current Loop 20mA A B Long Line RS 232 C Use this mode f...

Страница 44: ...CE Tells DTE that 1771 DA DCE is ready 7 Signal Ground AB Common ground for all signals thru interface port on 1771 DA 8 Receive Line Signal Detector CF 1771 DA DCE Tied to 12V dc 20 Data Terminal Ready CD DTE Tells 1771 DA DCE that DTE is ready Must be V dc to send or receive Current Loop Use the current loop for communicating up to approximately 500 cable feet between your ASCII device and ASCII...

Страница 45: ... a detailed listing of current loop pin functions Table 2 B Current Loop Connector Pin Functions Passive Receive Passive Transmit Pin No Signal Name Source Function 11 Module Transmitter Circuit Peripheral or Power Supply Controls current loop allowing peripheral device to read data 12 Module Receiver Circuit Peripheral Device Completes current loop allowing transfer of data to 1771 DA 18 Module T...

Страница 46: ...device Table 2 E Table 2 E Mode of Communication If Distance is Less Than And Your ASCII Device is a Then Choose this Transmission Mode 50 feet Data Terminal Equipment DTE and conforms to RS 232 C without control lines with control lines Data Set modem and conforms to RS 232 C without control lines with control lines RS 232 C Figure 2 1 4 wire cable 8 wire cable RS 232 C Figure 2 2 4 wire cable 8 ...

Страница 47: ...Receive Transmit Drain Wire Shield To I O Chassis Ground 2 ASCII Module Data Set DCE Device Data Terminal 4 5 6 4 5 6 8 20 8 20 Request to Send CA Clear to Send CB Data Set Ready CC Received Line Signal Detector Data Terminal Ready 1 Belden 8723 or Equiv Belden 8778 or Equiv Control Lines 1 Tied to 12Vdc 2 Solder an external ground wire 14 ga to the drain wire at the cable connector Connect it to ...

Страница 48: ...nd 2 ASCII Module DCE Device Data Set DCE 4 5 6 4 5 6 8 20 8 20 Request to Send CA Clear to Send CB Data Set Ready CC Received Line Signal Detector Data Terminal Ready 1 Belden 8723 or Equiv Belden 8778 or Equiv Control Lines 1 Tied to 12Vdc 2 Solder an external ground wire 14 ga to the drain wire at the cable connector Connect it to the I O chassis ground lug Ground the shield at this end only 11...

Страница 49: ... 18 Figure 2 5 Figure 2 3 Current Loop Connections 500 ft Max Device is Active Transmit Passive Receive Refer to specifications in Appendix D 12 24 Transmitted Data Drain Wire Shield To I O Chassis Ground 1 ASCII Module Device Belden 8723 or Equiv 1 Solder an external ground wire 14 ga to the drain wire at the cable connector Connect it to the I O chassis ground lug Ground the shield at this end o...

Страница 50: ...ly 11824 Passive Transmit Passive Receive Power Supply 4 20mA mark state Figure 2 5 Current Loop Connections 500 ft max Device is Active Transmit Active Receive Refer to specifications in Appendix D 12 24 Transmitted Data Drain Wire Shield To I O Chassis Ground 1 ASCII Module Device Belden 8723 or Equiv 1 Return Passive Receive 11 18 Received Data Return Passive Transmit Solder an external ground ...

Страница 51: ...e 14 ga to the drain wire at the cable connector Connect it to the I O chassis ground lug Ground the shield at this end only 11826 Belden 8723 or Equiv Figure 2 7 RS 232 C Simplex Write Connections Refer to Specifications in Appendix D 7 7 Receive Transmit Drain Wire Shield To I O Chassis Ground 1 ASCII Module Device DTE 3 3 Signal Ground AB Received Data BB 11827 NOTE Jumper pin 2 to pin 18 at th...

Страница 52: ...s at the designated location 1 2 or 2 3 refers to the pins on which you insert the plug Pins 1 and 3 are labeled on the circuit board next to the pins OUT refers to removing the plug or inserting it on only one pin electrically floating You can store up to four plugs in the area labeled JUMPER STORAGE at the right hand side of the board SPECIAL CASE When operating an ASCII device in RS 232 C simpl...

Страница 53: ...16 1 2 Out In In In Out Out Out 1 2 Out In In In In Out 1 2 Out Out In In Out Out Out 1 2 Out In In In In Out 2 3 In In Out In In In 1 2 2 3 Out In Out Out Out In 1 2 Out In Out In Out In 1 2 2 3 In Out Out Out Out In 1 3 2 1 3 3 1 3 prong connector 1 2 place programming plug toward pin 1 as labeled on the circuit board 2 3 place programming plug toward pin 3 as labeled on the circuit board 2 See ...

Страница 54: ...with either of the initialization word forms at the end of this chapter Use one form for data mode operation of the module the other form for report generation mode of operation These modes of operation are described next in this chapter You can also record your selections in the space provided in the text that describes each module feature Then at the end of the chapter you will be asked to rewri...

Страница 55: ...aracters per word String length is from 1 to 62 characters You want to select right to left justified margins and or data Report Generation Mode You want to mix ASCII characters with BCD values In addition to the 2 ASCII characters per word that your module uses in report generation mode you must choose one of the following types of data conversion 3 BCD characters per word 4 BCD characters per wo...

Страница 56: ...in your text 3 BCD word 4 BCD word 001 010 Record your selection based on your choice of module operation by writing the code in IW2 14 16 using the form found at the end of this chapter or the boxes below IW2 Data Conversion 16 15 14 A BCD delimiter is a character that you place before and after BCD values It tells the ASCII module to interpret the values as BCD not as ASCII for conversion In rep...

Страница 57: ... 10 16 using the form found at the end of this chapter or the boxes below IW4 BCD Delimiter 17 16 15 14 13 12 11 10 0 NOTE The module defaults to the colon as the BCD delimiter if you do not use initialization word four IW4 However if you use IW4 you must enter a BCD delimiter Margin justification refers to the manner in which data is displayed by your ASCII device or stored in the data table Tabl...

Страница 58: ...hest word address Blanks or zeros fill the lower word addresses Example PLC 2 Family 0000 00AB CDEF Example PLC 3 Family 0 0 0 0 0 0 A B C D E F Table 2 I Margin Justification Mode of Operation When Module Mode of Operation Is Your Justification Is Data Mode Either left or right you select Report Generation Mode ASCII data is left justified BCD values contained in the string of ASCII data are righ...

Страница 59: ...t an initialization error and the module will not operate In most applications you will select an end of string delimiter If you do not select an end of string delimiter the module will default to the null CTRL 0 as the end of string delimiter Refer to tables in appendix C 5 for the complete list of ASCII characters and their codes Sending End of String Delimiter to Processor Report Generation Mod...

Страница 60: ...e The maximum number of characters that your ASCII module can handle as a string depends on the module s mode of operation In data mode the module can handle a string of up to 62 characters per block transfer In report generation mode the module can handle a string of up to 999 characters transferred over several block transfers The string of characters sent from the device to the module can be fi...

Страница 61: ...tring Refer to section titled Determining Block Transfer Length P 2 20 and to section titled Choosing Single or Multiple Transfers IW2 17 P 2 25 for additional information If the string length from the ASCII device exceeds the string length that you set for the module the next character beyond the set string length received in the module s input buffer causes the module to transfer the string That...

Страница 62: ...lize Data Word No 1 Initialize Data Word No 2 Initialize Data Word No 3 Initialize Data Word No 4 Initialization WRITE Block 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00 Command Word No 1 Command Word No 2 WRITE Block 64 Words max Data 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00 Status Word No 1 Status Word No 2 READ Block 64 Words max Data The longest data string read from the ASCII device...

Страница 63: ...ta string Overestimate your read block transfer block length Observe how the transferred data is stored then reduce the block length if possible Some ASCII devices add fill characters such as spaces nulls or some ASCII symbol when sending data to the module These devices have the capability to vary the number of data characters and to add fill characters so that the sum of data and fill characters...

Страница 64: ...The end of string delimiter that you chose in section titled Using the End of String Delimiter IW3 10 16 P 2 17 ASCII characters and their codes are listed in tables in appendix A Record your selection by writing the 7 bit ASCII code in binary or hex in IW4 10 16 for the fill character to be removed Use the form found at the end of this chapter or the boxes below IW4 Removed Fill Character 17 16 1...

Страница 65: ... of use to the PC processor If your ASCII device generates header and or trailing characters that are not used you can remove them You can remove up to 15 characters of either type Figure 2 10 If you do not want to remove any set the corresponding bits to zero Figure 2 10 Removing Header and Trailing Characters Header Characters Data Characters Data String Trailing Characters Remove up to 15 heade...

Страница 66: ...ut 50 Output 000 Can only generate input data to the ASCII module You want to maximize the number of characters that the module s input buffer can store before spilling data 100 Input 001 Is bidrectional but most data is read from the ASCII device Same as block above 75 Input 25 Output 010 Is bidirectional but most data is written to your ASCII device You want to maximize the number of characters ...

Страница 67: ...no data is displayed Half Duplex with Echo Half Duplex without Echo 100 101 Record the mode of transmission selection by writing the 3 digit code in IW1 05 07 Use the form found at the end of this chapter or the boxes below IW1 Mode Transmission 07 06 05 Choose single transfer when you want the module to send a single string to the processor in each block transfer or when the string is long enough...

Страница 68: ...elay outputting data while the mechanical carriage return is operating Your selections are Delay Time ms Code 0 00 50 01 100 10 200 11 Record your selection by writing the code in IW3 07 06 using the form found at the end of this chapter or the boxes below IW3 Delay for Carriage Return 07 06 Set the remaining bits in initialization word one according to the specifications of your ASCII device Sele...

Страница 69: ...600 baud 101 110 baud 110 Number of Data Bits Your ASCII device generates either seven or eight data bits per character Figure 2 11 The ASCII module neither stores nor outputs the eighth bit but must know if it is there Use the default value eight bit data if this information is not available Set bit IW1 113 accordingly Figure 2 11 Data Byte Storage in Module Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bi...

Страница 70: ...device generates either one or two stop bits Figure 2 12 Use the default value one stop bit if this information is not available Set bit IW1 16 accordingly ACK NAK Some ASCII devices require an ACK NAK response from the ASCII module An acknowledgment of no errors found in a string ACK or acknowledgment of an error found in the string NAK is required by some ASCII devices in order to complete its t...

Страница 71: ...equired for your ASCII device and application You select module features by setting bits in four initialization words Set the number of initialization words equal to the highest numbered initialization word used For example if you need a feature found in word four you must select all four initialization words Number of Words Code Word 1 00 Words l and 2 01 Words 1 2 and 3 10 Words 1 2 3 and 4 11 R...

Страница 72: ...n of your module form 5176 for report generation mode Copy these forms and use them to record your selections of module features You will use the information that you record on these forms in chapter 3 to set bits in initialization words and to demonstrate the features that you have selected Recording Bit Settings in Initialization Words S t o c k C h e c k c o m ...

Страница 73: ...1 Simplex Write 100 Half Duplex w Echo 101 Half Duplex w o Echo 00 Word 1 01 Words 1 2 10 Words 1 2 3 11 Words 1 2 3 4 0 0 0 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00 Rate Data Conversion Number of ASCII Characters Per String 0 Single 1 Multi 0 0 0 2 ASCII 0 0 1 3 BCD 0 1 0 4 BCD 0 1 1 1 ASCII 1 0 0 4 Hex Default 10 Maximum 62 BCD Digit 2 BCD Digit 1 BCD Digit 0 17 16 15 14 13 12 11 10 07 06...

Страница 74: ... Echo 010 Simplex Read 011 Simplex Write 100 Half Duplex w Echo 101 Half Duplex w o Echo 00 Word 1 01 Words 1 2 10 Words 1 2 3 11 Words 1 2 3 4 0 0 0 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00 Rate Data Conversion Number of ASCII Characters Per String 0 Single 1 Multi 0 0 1 3 BCD 0 1 0 4 BCD Default 124 Maximum 999 BCD Digit 2 BCD Digit 1 BCD Digit 0 17 16 15 14 13 12 11 10 07 06 05 04 03 02 ...

Страница 75: ...n words by reading data from or writing data to your ASCII device The procedures for reading and writing data were covered in chapter 1 The procedure for setting bits in your initialization words is covered after you have added initialization logic to your program As in chapter 1 this chapter is divided into two parts One is for PLC 2 family processors the other is for the PLC 3 processor Proceed ...

Страница 76: ...or on the output instruction in the previous rung Press INSERT RUNG then enter the instructions for one rung You must press INSERT RUNG before inserting each new rung Figure 3 1 Program With Initialization Rungs PLC 2 Family 327 000 020 02 PUT 200 000 252 07 200 07 OFF 10 G START 020 10 TON 062 0 1 PR 005 AC 000 062 15 U 020 OFF 10 020 02 TON 063 0 1 PR 300 AC 000 063 17 063 15 Add These Rungs 1 2...

Страница 77: ...R SCAN 060 001 020 400 423 202 225 020 EN 060 17 DN 060 15 BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 030 111 16 252 271 EN 011 17 DN 111 17 BLOCK XFER WRITE DATAADDR MODULE ADDR BLOCK LENGTH FILE 031 111 16 200 217 EN 011 16 DN 111 16 020 10 FILE TO FILE MOVE COUNTER ADDR POSITION FILE LENGTH FILE A FILE R RATE PER SCAN 061 001 004 570 573 202 205 004 EN 061 17 DN 061 15 020 10 200 17...

Страница 78: ...ization data into each file word by pressing INSERT after you have entered data into the command buffer at the bottom of the screen Press to move to the next file word Enter data in binary or hex Binary is easier to understand because you set actual bits Hex is faster and more convenient when you can convert from binary to hex as follows Table 3 A Table 3 A Binary Hex Conversion Binary Hex Binary ...

Страница 79: ...led Setting Bits in Initialization Words P 3 4 Results Position 001 contains initialization word one IW1 This chapter will show both the binary and hex display File Data POSITION Hex Binary 001 0020 00000000 00000010 String length is a 3 digit BCD number You can set the string length in BCD or you can set the BCD digits in binary The binary equivalent of BCD and Hex is identical for 0 thru 9 1 Set...

Страница 80: ... 1 28 Enter ALLEN BRADLEY 12 enter spaces as shown Procedure P1 Set your industrial terminal to alphanumeric mode Procedure P2 Enter your data Procedure P3 Set your industrial terminal to PLC 2 mode Procedure P4 Observe how data is stored in the data table Results The read block transfer file displays the 15 data characters in positions 003 thru 010 Table 3 B Table 3 B String Length Display Positi...

Страница 81: ...d to the last file word In right justified data space or fill characters if needed are added to the first file word If the number of characters transferred is less than the string length that you set in IW2 00 13 the module completes the string by inserting fill characters or spaces Fill characters or spaces are stored ahead of the data lower addresses for right justified data or following the dat...

Страница 82: ... A D L E Y 1 The module placed the space 20 in position 010 because it left justified the data Displaying Right Justified Data In this demonstration assume that your margin justification bit IW3 03 had been reset for right justification in data mode only and that initialization words one and two are set as follows IW1 0002 and IW2 0015 1 Use file to file move instruction to store data you want wri...

Страница 83: ...n eight spaces from the left margin This example is equivalent to transferring seven right justified data characters when the set string length is 15 characters and the data conversion is 2 ASCII characters per word In this demonstration you will select an end of string delimiter and demonstrate its use Select the carriage return CR as the end of string delimiter and set IW3 10 16 accordingly The ...

Страница 84: ...13 1 Enter 12345 RETURN Refer to the procedures in section titled Reading Data from Your ASCII Device P 1 10 Procedure P1 Set your industrial terminal to alphanumeric mode Procedure P2 Enter your data Procedure P3 Set your industrial terminal to PLC 2 mode Procedure P4 Observe how data is stored in the data table Results The read block transfer file displays the five character string in positions ...

Страница 85: ...buffer Transfers the balance of data with new data when it receives enough new data to complete the string or when the new data contains an end of string delimiter In this demonstration you will enter a string of data greater than the set string length and observe its storage in the data table The set string length IW2 00 13 is 15 characters 1 Enter 12345678901234567890 Do not enter RETURN Refer t...

Страница 86: ...he input buffer 2 Enter 12345678901234567890ABCDEFG RETURN Refer to procedures in section title Reading Data from Your ASCII Device if necessary Procedure P1 Set your industrial terminal to alphanumeric mode Procedure P2 Enter your data Procedure P3 Set your industrial terminal to PLC 2 mode Procedure P4 Observe how data is stored in the data table Results Two transfers took place in step 2 Figure...

Страница 87: ...e value in SW2 is greater than zero new data flag move new read block transfer data to an alternate storage file Your program can process it before it is overwritten by the next transfer of new data Figure 3 3 Make the address of the source file of the file to file move instruction file A the same address as the read block transfer file Also examine the BTR done bit Figure 3 3 Example Programming ...

Страница 88: ...on words to four by setting appropriate bits Set IW1 0003 Use the procedure in section titled Setting Bits in Initialization Words P 3 4 2 Select the slash symbol as the fill character to be removed The ASCII is 2F in hex Set IW4 2F00 Display The file to file move instruction displays your settings as follows FILE DATA POSITION Hex Binary 001 002 003 004 0003 00000000 00000011 0015 00000000 000101...

Страница 89: ...as data in the string The module does not remove trailing characters until the data string exceeds the set string length The module counts the first characters of the string as header characters and removes them regardless of the number of characters in the string 1 Set the number of header characters three and trailing characters four to be removed by setting IW4 00 03 and IW4 04 07 to three and ...

Страница 90: ...plays 15 data characters Table 3 I Removed header and trailing characters are shown in Figure 3 4 Table 3 I Display After Removing Characters POSITION FILE DATA ASCII Equivalent 001 002 003 004 005 006 007 008 009 010 E011 0000 2034 3536 3738 3930 3132 3334 3536 3738 status word one status word two 4 5 6 7 8 9 0 set string length 1 2 15 data characters 3 4 5 6 7 8 Figure 3 4 Removed Header and Tra...

Страница 91: ... is limited to one of the following Conversion Type Data Characters 3 BCD characters per word 4 BCD characters per word 0 thru 9 The manner in which the module converts data depends on the type of data conversion that you select For example if you load a file with ASCII characters and transfer the file to the industrial terminal for display the module will interpret the data according to the data ...

Страница 92: ... in Table 3 J Use procedure P3 and P5 from Writing Data to Your ASCII Device P 1 14 Procedure P3 Set your industrial terminal to PLC 2 mode Procedure P5 Load data into the file to file move instruction 2 Set initialization word one to data mode and select three initialization words Set IW1 0002 Use the procedure in section titled Setting Bits in Initialization Words P 3 4 3 Change your data conver...

Страница 93: ...digits increase the number of initialization words to four in IW1 and select the BCD delimiter in IW4 In this demonstration you will select the following Four initialization words using IW1 00 01 Report generation mode using IW1 02 04 Data conversion of 3 BCD digits per word using IW2 14 16 Slash symbol as BCD delimiter using IW4 10 16 1 Set the bits in all four initialization words using the proc...

Страница 94: ...red in the data table Results The read block transfer file displays the 15 data characters in positions 003 thru 010 Table 3 L Table 3 L Storage of BCD and ASCII Characters POSITION FILE DATA ASCII Equivalent 001 002 003 004 005 006 007 008 009 010 E010 0000 4142 4344 002F 0001 0234 0567 2F41 3100 status word one status word two A B C D 1 2 3 4 5 6 7 A 1 Notice the following The data string is lef...

Страница 95: ...addresses When formatting a message you store the message text and you write program logic to insert variables into your message Consider the message PRODUCED quantity PARTS The message text is PRODUCED PARTS The variable that you want to communicate is the quantity The variable can be timer or counter accumulated values analog I O values or any other data table word byte or bit that changes value...

Страница 96: ...E D P A R T S Store the delimiter preceding the BCD value in the lower byte of the word preceding the BCD storage word Store the delimiter following the BCD value in the upper byte of the word following the BCD storage word Table 3 N If necessary add an extra space before the first delimiter to properly position it 2 Program the insertion of the variable using get put instructions In this example ...

Страница 97: ...bol as BCD delimiter using IW4 10 16 Set the bits in all four initialization words using the procedure in section titled Setting Bits in Initialization Words P 3 4 Display The file to file move instruction displays your settings as follows FILE DATA POSITI ON Hex Binary 001 002 003 004 0007 00000000 00000111 1015 00010000 00010101 0D00 00001101 00000000 2F00 00101111 00000000 4 Display your messag...

Страница 98: ... message file they will position the cursor at the column and line number that you specify For example suppose you want to display a column of 8 digit diagnostic codes that indicate the status of system operation The diagnostic codes are the variable that your program moves into your message file at the appropriate addresses In this example set initialization words Table 4 O as follows Table 3 O E...

Страница 99: ...ber A BCD delimiter Diagnostic code Diagnostic code BCD delimiter CTRL P Column number Line number A BCD delimiter Diagnostic code Diagnostic code BCD delimiter EOS delimiter Notice the following Home position of the cursor appears once position 001 before you specify line and column numbers Column numbers remain constant at 31 in this example Line numbers advance by one 31 32 33 in this example B...

Страница 100: ...splays the column of diagnostic codes in the upper left corner of the screen 12345678 ABCD4321 FACEBAC2 With a read write program you can enter the text of your message into processor memory by using the industrial terminal as an ASCII data terminal as compared with entering data with the data monitor mode of the industrial terminal described in the previous two examples When entering data from an...

Страница 101: ...WO001 0000 0000000000000000 0000000000000000 R WO002 0000 WO003 0000 07 RUNG NUMBER RM0 RUNG NUMBER RM1 I0001 02 WO003 0000 15 RUNG NUMBER RM2 WO002 0000 15 WO003 0000 15 WO002 0000 15 WO005 0000 02 WO002 0000 15 WO005 0000 02 RUNG NUMBER RM3 WO003 0000 15 L WO002 0000 15 WO005 0000 02 RUNG NUMBER RM4 WO003 0000 15 U WO005 0000 03 U RUNG NUMBER RM5 I0001 02 WO005 0000 03 RUNG NUMBER RM6 WO005 0000...

Страница 102: ... FO004 0000 CNTL 12 EN CNTL 15 DN CNTL 13 EN WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER WO005 0000 00 RUNG NUMBER RM11 WO003 0000 07 S0003 01 WO005 0000 01 L RUNG NUMBER RM12 WO005 0000 RUNG NUMBER RM13 TON TIMER ON 1 0 SECOND TP TA T0001 2 0 T0001 17 TE T0001 15 TD 01 WO005 0000 01 T0001 15 RUNG NUMBE...

Страница 103: ...02 COUNTER C0004 POS LEN 0 4 MODE ALL SCAN C0004 12 EN C0004 15 DN C0004 13 ER WO005 0000 RUNG NUMBER RM17 02 MVF FILES FROM A TO R A FO003 0002 R FO006 0002 COUNTER C0001 POS LEN 0 62 MODE ALL SCAN C0001 12 EN C0001 15 DN C0001 13 ER GRT A B A WO003 0001 0000000000000000 B WO001 0000 0000000000000000 S t o c k C h e c k c o m ...

Страница 104: ... the source file in rung 16 to 4 words word 0 thru 3 press CR O7 3 Y ENTER for rung 16 PLC 3 file display starts with word 0 Initialization words 1 2 3 and 4 are numbered in the display as words 2 3 4 and 5 because of the addresses assigned in the file move instruction To set the size of the result file in rung 17 to 64 words words 0 thru 100 octal press CR O6 100 Y ENTER for rung 17 3 Check the d...

Страница 105: ...ause you set actual bits Hex is faster and more convenient when you convert from binary to hex as follows Binary Hex Binary Hex Binary Hex Binary Hex 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 1000 8 1001 9 1010 A 1011 B 1100 C 1101 D 1110 E 1111 F 4 To terminate the file display and return to ladder diagram press CANCEL COMMAND Initialization data must be transferred to the module be...

Страница 106: ...ed Setting Bits in Initialization Words steps 1 thru 4 for loading the file in rung 16 Display The initialization word file is displayed in hex and binary respectively as follows RADIX H START WO007 0000 WORD 00000 0 0000 1 0000 2 0002 3 0000 4 0D00 5 0000 START WO007 0000 WORD 00000 0 000000000000000 1 0000000000000000 2 0000000000000010 String length is a 3 digit BCD number You can set the strin...

Страница 107: ...o the read block transfer file in the data table where you can display it Do the following example where you will read data from your ASCII device Refer to the procedures in section titled Reading Data From your ASCII Device chapter 2 if necessary Enter ALLEN BRADLEY 12 Note the space between the two words Procedure P1 Connect the 1770 CB cable and set your industrial terminal to alphanumeric mode...

Страница 108: ...s were not displayed when you entered them examine the BTR and BTW instructions for an error You clear an error by resetting control word FB004 0000 bits 03 and 13 Press DD B4 0 0 ENTER CANCEL COMMAND Initialization Error If characters were not displayed when you entered them but the display of transferred data contained only the code X4XX in status word one you have an initialization error Repeat...

Страница 109: ...ht justified data or following the data higher numbered storage words for left justified data In this demonstration you will select an end of string delimiter and demonstrate its use You will select the carriage return CR as the end of string delimiter and set IW3 10 16 accordingly The carriage return is the ENTER key on the industrial terminal keyboard The ASCII carriage return is 0D in hex 00011...

Страница 110: ...inal to PLC 3 mode Procedure P4 Observe how the data string is stored in data table file O6 0 Refer to the procedures in section titled Reading Data From Your ASCII Device P 1 10 RADIX A START WO006 0000 WORD 00000 0 00H00H 1 00H00H 2 3 4 5 6 7 00010 2 3 4 5 00H00H 00H00H 00H00H 00H00H 00H00H 00H00H RADIX H START WO006 0000 WORD 00000 0 0000 1 0000 2 2020 3 2020 4 2020 5 2020 6 2020 7 2031 00010 3...

Страница 111: ...000 START WO007 0000 WORD 00000 2 000000000000010 3 0000000000010101 4 0000110100001000 NOTE Binary words 0 1 and 5 were omitted for brevity 2 Enter 12345 ENTER Refer to the procedures in section titled Reading Data From Your ASCII Device if necessary Procedure P1 Connect the 1770 CB cable and set your industrial terminal to alphanumeric mode check parameters Initialize the module by changing PLC ...

Страница 112: ... data table The data was left justified The module added fill characters blanks in ASCII or 20 in hex in display words 4 lower byte 5 6 7 20 and 11 to complete the string String Length Greater Than Module s String Length When the module receives a string of data greater than the set string length it does the following Immediately transfers the number of characters equal to its set string length to...

Страница 113: ...ameters Initialize the module by changing PLC 3 operation mode 3 ENTER 2 ENTER Procedure P2 Enter your data Procedure P3 Connect the 1775 CAT cable and set your industrial terminal to PLC 3 mode Procedure P4 Observe how the data string is stored in data table file O6 0 Results Two transfers took place Figure 3 7 The first transfer occurred when the string length exceeded the set string length when...

Страница 114: ...read from the module If not data in your read block transfer file will be written over in the next read block transfer Your program does this by moving new data from the read block transfer file into storage file MVF O6 0 in rung RM17 Figure 3 6 The rung moves only new data when transferred from the module Whenever the module encounters the ASCII character that you defined in IW4 10 16 as the fill...

Страница 115: ...000 WORD 00000 2 000000000000010 3 0000000000010101 4 0000110100001000 5 0010111100000000 NOTE Binary words 0 and 1 were omitted for brevity 3 Enter AS 23 AS 4 ENTER Refer to procedures in section titled Reading Data From Your ASCII Device P 1 28 Procedure P1 Connect the 1770 CB cable and set your industrial terminal to alphanumeric mode check parameters Initialize the module by changing PLC 3 ope...

Страница 116: ... are counted by the module as header characters and can be removed regardless of the number of characters in the string 1 Set the number of header characters three and trailing characters four to be removed be setting IW4 00 03 and IW4 04 07 to 3 hex and 4 hex respectively Use the procedure in section titled Demonstrating End of String Delimiter P 3 9 Retain previous initialization data Display Th...

Страница 117: ...removed 15 character string 0 11837 RADIX A START WO006 0000 WORD 00000 0 00H00H 1 00H00H 2 3 3 4 5 4 6 7 5 8 9 6 0 1 7 2 3 00010 4 5 6 7 00H00H 00H00H 00H00H 00H00H 00H00H 00H00H RADIX H START WO006 0000 WORD 00000 0 0000 1 0000 2 2033 3 3435 4 3637 5 3839 6 3031 7 3233 00010 3435 3637 0000 0000 0000 0000 0000 0000 Notice the following Although you entered 22 characters the module removed the fir...

Страница 118: ...00 2 0007 3 2015 4 0D00 5 2F00 START WO007 0000 WORD 00000 2 0000000000000111 3 0010000000010101 4 0000110100000000 5 0010111100000000 NOTE Binary words 0 and 1 were omitted for brevity Next you will demonstrate the transfer of BCD digits to the data table and observe how BCD digits are stored with ASCII characters when the data string contains both 2 Enter ABCD 12324 56ABC ENTER Use procedures in...

Страница 119: ...rred is 15 The data is stored in seven words The ASCII display did not correctly present BCD digits see hex display The industrial terminal cannot correctly display BCD values in an ASCII display 3 For comparison of data storage enter the following The BCD delimiter segregates five digits instead of four Enter ABCD 12345 6ABC ENTER Results The file displays 15 data characters which include ASCII c...

Страница 120: ...ues analog I O values or any other data table word byte or bit that changes value You will use file MVF O6 0 to store your message The quantity in your message will be the BCD accumulated value of a free running timer You will move the accumulated value into your message storage file and store it in the storage word located between two BCD delimiters Format the message PRODUCED quantity PARTS as f...

Страница 121: ... 00H00H 1 00H00H 2 P R 3 O D 4 U C 5 E D 6 7 00H00H 00010 P A R T S 00H 00H00H 00H00H 00H00H 00H00H RADIX H START WO006 0000 WORD 00000 0 0000 1 0000 2 5052 3 4F44 4 5543 5 4544 6 202F 7 0000 00010 2F20 5041 5254 5300 0000 0000 0000 0000 Store the delimiter preceding the BCD value in the lower byte of the word preceding the BCD storage word Store the delimiter following the BCD value in the upper ...

Страница 122: ...O006 0002 R FO002 0002 COUNTER C0005 POS LEN 62 62 MODE ALL SCAN C0005 12 EN C0005 15 DN C0005 13 EN MOV MOVE FROM A TO R A WTACC 004 9 R WD006 0007 9 MOV MOVE FROM A TO R A WD006 0007 9 R WD006 0007 0000000000001001 I0001 04 MOV MOVE FROM A TO R A WTACC 0004 9 R WO009 0007 0000000000001001 RUNG NUMBER RM20 This rung entered for comparison only I0001 04 RUNG NUMBER RM21 EOP RUNG NUMBER RM22 S t o ...

Страница 123: ...lue XXX is the instantaneous accumulated value of the free running timer at the moment you enabled bit I001 04 When formatting a multi line or multi column message use the ASCII equivalent of the following control codes for positioning the message Control Codes Hex or ASCII Equivalent CTRL P Column number Line number A 10 38 fixed in this example 3B 36 37 38 41 When you enter the ASCII equivalent ...

Страница 124: ...678 00010 3A00 1038 3B37 413A ABCD 4321 3A00 1038 00020 3B36 413A FACE BAC2 3A0D 0000 0000 0000 Notice the following The home position of the cursor 1041 appears once before you specify line and column numbers The column numbers remained constant at 31 in this example The line numbers advanced by one 31 32 33 in this example The BCD delimiter 3A precedes and follows the variable The end of string ...

Страница 125: ...y words 6 and 7 14 and 15 22 and 23 Refer to procedures P3 and P5 from section titled Writing Data To Your ASCII Device chapter 1 Procedure P3 Connect the 1775 CAT cable and set the industrial terminal to PLC 3 mode Procedure P5 Load data into the file O6 0 3 Transfer your message for display on the industrial terminal Refer to the procedures in section titled Writing Data to Your ASCII Device cha...

Страница 126: ...or message characters You choose the data conversion for message variables BCD values placed between delimiters Your selection is limited to one of the following Conversion Type Data Characters 3 BCD characters per word 4 BCD characters per word 0 thru 9 How Binary and BCD Differ The PLC 3 manipulates message variables such as timer counter preset and accumulated values in signed binary sign in bi...

Страница 127: ...ut word R WO006 0007 rung RM19 shows BCD 2 Enable input bit I0001 04 and compare the binary and BCD values that are displayed just below output word R in the instruction Procedure P3 Connect the 1775 CAT cable and set the industrial terminal to PLC 3 mode Procedure P6 Enable bit I001 04 With the PLC 3 in run monitor enter the bit and enable it Results Binary and BCD representation of selected accu...

Страница 128: ...into the message storage file using the data monitor mode of the industrial terminal do the following 1 Identify the file word s that you reserved for the message variable Figure 3 9 RM19 WO006 0007 2 Separate the message variable from the rest of the message using BCD delimiters 3 Locate the first delimiter in the lower byte of the word before the second delimiter in the upper byte of the word af...

Страница 129: ...ata in the data monitor mode of the industrial terminal described in sections titled Formatting a Single Line Message and Formatting a Multi Line Message When entering data from an ASCII data terminal you can use the rubout or delete key Pressing this key deletes the previous character from the ASCII module s input buffer You can delete one or more characters up to the entire string bounded by the...

Страница 130: ... module New data is transferred only after correct handshaking is achieved Become familiar with the following operations Refer to the Complete Getting Started Program with rung descriptions for PLC 2 family or PLC 3 controllers in the appendix Write Data is transferred to the module in each write block transfer The module inhibits transmission of data to the ASCII device until one shot handshaking...

Страница 131: ...can transfer new read data Your program should detect that the module acknowledged receipt of the write block transfer module toggles handshake bit SW1 16 before your program enables another write block transfer Handshaking Words Handshaking is communicated by means of command word one and status word one Do not allow data files to overlap the addresses of command and status words The first two wo...

Страница 132: ...ives new data from the ASCII device and or detects a change in module status Sets the number of transferred words per string in SW2 when new data is transferred SW1 15 BTR 07 17 and SW2 0 for new data SW1 15 for change in status Detects that SW1 15 has been toggled Acts on the change in module status according to program logic When it also detects SW2 0 and BTR 07 17 it acts on new data according ...

Страница 133: ...aking A read write program requires both read and write handshaking Writing Data to the Module Handshaking in a write operation requires your program to toggle bit 16 in command word one CW1 16 When the toggled bit status is transferred with data to the ASCII module the module processes the data to the output buffer where it is transferred to the ASCII device Your program must contain a one shot t...

Страница 134: ...d when you enable the one shot NOTE The processor can write data to the module but the module will not process the data to its output buffer inhibits data to the ASCII device until the module detects that your program has toggled SW1 16 Table 5 B Logic Conditions for a Write If Then SW1 16 CW1 16 at processor Module has acknowledged processing the previous block of data Program sets CW1 16 SW1 16 ...

Страница 135: ... Refer to Complete Getting Started Program Appendix A for PLC 2 family and for PLC 3 controllers Handshaking bits in the ASCII module s command and status words used in these programs are defined as follows Word Bit Description PLC 2 Address PLC 3 Address Command Word 1 15 16 CW1 15 CW1 16 200 15 200 16 WD002 0000 15 WD002 0000 16 Status Word 1 15 16 SW1 15 SW1 16 252 15 252 16 WD003 0000 15 WD003...

Страница 136: ...d Word One CW1 Bit CW1 00 Function Reserved for Future Use Description Reset this bit to zero Bit CW1 01 Function Reserved for Future Use Description Reset this bit to zero Bit CW1 02 Function Reserved for Future Enhancements Description Reset it to 0 Bit CW1 03 Function Resets input buffer full bit Description Set this bit to reset status bit 03 input buffer full in status word one This turns off...

Страница 137: ... O communication thru the interface port on the ASCII module Otherwise reset this bit to zero Bit CW1 14 Function Incomplete String Description Set this bit to tell the module to transfer an incomplete string in the next bock transfer It allows you to examine the contents of the input buffer This command is intended for troubleshooting purposes Avoid using it during normal operation Reset this bit...

Страница 138: ...zation words IW1 IW2 IW3 and IW4 are described below You can operate the module in data mode without setting initialization bits and without sending initialization data to the module However then the module operates only with default features Select additional features by setting initialization bits To operate in report generation mode you must set initialization bits Initialization Word One IW1 B...

Страница 139: ...2 Mode of Operation 0 0 0 0 0 1 Data mode Report generation mode all other Invalid When the module detects an invalid setting of bits 02 04 or bits 05 07 it faults due to an initialization error The module disables its interface port and sets status bit SW1 12 Bit IW1 05 07 Function Mode of Transmission Description The modes of transmission that the module can handle are full or half duplex with o...

Страница 140: ...er to 100 output in IW3 00 02 Select echo when you want your ASCII data terminal to display the characters it sends to the module Do not select echo when your ASCII device cannot display the characters it sends to the module Bits IW1 10 12 Function Communication Rate Description The communication rates that the module can handle are listed below Select the rate that you chose for your ASCII device...

Страница 141: ...e the transmission Set it when an acknowledgment of no error per character string ACK or error found in the string NAK is required by the ASCII device to complete the transmission The ASCII module does not require an ACK NAK to complete its transmission Initialization Word Two IW2 Bit IW2 00 13 Function Number of ASCII Characters Per String read only Description In data mode enter a 3 digit BCD nu...

Страница 142: ...0 0 1 0 1 0 2 ASCII characters word 3 BCD characters word 4 BCD characters word 1 ASCII character word 4 HEX characters word all other Invalid The type of data conversion refers to the manner in which data is converted by the module and stored in the processor data table You can change from one type of data conversion to another only by re initializing the module When operating in report generatio...

Страница 143: ...r status or command words The module will not divide a string between two or more block transfers when set for multiple string transfer If the rate of transfer between ASCII module and processor cannot keep up with the communication rate from the ASCII device data will be lost when the ASCII module s input buffer becomes full You can program the examination of the input buffer 75 full bit SW1 02 t...

Страница 144: ...ends End of String Delimiter to PC Description Set this bit when you want to send the end of string delimiter to the processor for storage in the data table Otherwise reset this bit to zero When generating single line messages select the carriage return as the end of string delimiter set this bit and set IW3 05 Output Line Feed if Carriage Return Use this bit only in report generation mode If the ...

Страница 145: ...nsfers your data string immediately after its input buffer receives the next characters beyond your selected string length The next characters remain in the buffer as the beginning of the next string and the cycle repeats In report generation mode select any ASCII character as the end of string delimiter If a series of BCD numbers in a string is divided by a block transfer either one of two result...

Страница 146: ...ers up to 15 preceding the data string that you want the module to remove when it sends data to the PC processor data table If no bits are set the module defaults to zero no header characters are removed Set bit 00 03 to the binary code for the number of header characters that you want the module to remove Bits IW4 04 07 Function Removes Trailing Characters Description Select the number of trailin...

Страница 147: ...g delimiter that you entered in IW3 10 16 or an initialization error will occur This applies to both functions of IW4 10 16 BCD Delimiter and removing the fill character Description Removes Fill Character Data Mode When operating in data mode use these bits to select the fill character generated by the ASCII device that the module removes Some ASCII devices vary the number of data characters per s...

Страница 148: ...ord One SW1 Bit SW1 00 Function Input Buffer Empty Description The module sets this bit to 1 when it detects that the buffer is empty The module resets this bit when data enters the input buffer Bit SW1 01 Function Input Buffer 50 Full Description The module sets this bit when it detects that the buffer is 50 full The module resets this bit when the input buffer is less than 50 full Bit SW1 02 Fun...

Страница 149: ...on Buffers have been cleared and communication thru the module s interface port has been turned off This bit must be reset by program logic in order to complete the power up initialization routine This bit is reset by setting bit 07 of command word one CW1 07 When CW1 07 is set bits 07 15 and 16 of status word one are reset Then you can operate the module in default mode or initialize the module t...

Страница 150: ...for a complete list of settings that cause an initialization error Bit SW1 13 Function ASCII Device or Link Error Description The module sets this bit when it detects a parity framing or overrun error in the string of characters from the ASCII device When multiple strings are transferred in one read block transfer program logic can detect the error but cannot detect which string s contained the er...

Страница 151: ...ve Description The module sets this bit to tell the processor that the ASCII device is enabled It is reset when the ASCII device is turned off or disconnected Status Word Two SW2 Bit SW2 00 07 Function Number of Words Per String Read Only Description This 2 digit BCD number shows the number of words used by the module to transfer the data string that you selected in IW2 00 13 The number of words w...

Страница 152: ...or more block transfers The module will split one long string between block transfers when you have selected single string transfer IW2 17 0 Command word one status word one and status word two are summarized in Figure 5 2 Figure 5 3 and Figure 5 4 respectively Command initialization and status words are summarized in the tables on the following pages Copy the figures and tables so that you can re...

Страница 153: ...mum ASCII De vice Link Error Ini tiali zation Error 0 Data Com plete Power Up Ini tiali zation 0 Output Buffer Input Buffer 1 Full 1 Empty 1 Full 1 75 Full 1 50 Full 1 Empty Figure 5 4 Status Word Two SW2 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00 Number of Strings per Block Transfer 00 62 Number of Data Words per String 00 62 BCD Digit 1 BCD Digit 0 BCD Digit 1 BCD Digit 0 S t o c k C h e c ...

Страница 154: ...n debugging not for normal operation 13 Port Disable 0 Reset 1 Disables communication thru the interface port 12 Self Diagnostics 0 Reset 1 Enables self diagnostics You must re initialize the module 11 10 Not used Set them to zero 07 Resets Power up and Handshaking 0 Reset 1 Resets SW1 07 Initialization bit SW1 15 Read data available bit and SW1 16 Write data acknowledge bit 06 05 04 Not used Set ...

Страница 155: ... 7 bit data 12 11 10 Communication Rate 000 300 baud 001 600 baud 010 1200 baud 011 2400 baud 100 4800 baud 101 9600 baud 110 110 baud 111 110 baud 07 06 05 Mode of Transmission 000 Full duplex with echo 001 Full duplex without echo 010 Simplex read 011 Simplex write 100 Half duplex with echo 101 Half duplex without echo all other codes are invalid 04 03 02 Mode of Operation 000 Data mode 001 Repo...

Страница 156: ...italization word Must select either one in RG mode Initialization Word Three Bit Function Status 17 Enables End of string EOS Delimiter 0 Module transfers data when it detects EOS delimiter 1 Module ignores EOS delimiter 16 10 End of string Delimiter Bits 10 13 First ASCII character Bits 14 16 Second character The module defaults to null CTRL 0 if IW3 is not used 07 06 Delay for Carriage Return RG...

Страница 157: ...sed Set it to zero 16 10 Removes Fill Character Data mode BCD Delimiter RG mode Bits 10 13 First ASCII character Bits14 16 Second character Module defaults to colon if IW4 is not used 07 04 Removes Trailing Characters Bits 04 05 First Hex digit Bits 06 07 Second Hex digit Module removes 15 characters max Zero characters for default 03 00 Removes Header Characters Bits 00 01 First Hex digit Bits 02...

Страница 158: ... sets it to zero 10 Data Complete 0 Reset 1 Module detects delimiter at end of string that is distributed over one or more block transfers 07 Power up Initialization 0 Reset by CW1 07 1 Power up initialization is complete 06 Not used Module sets it to zero 05 Output Buffer Full 0 Reset when less than full 1 Output buffer full 04 Output Buffer Empty 0 Reset when data enters buffer 1 Output buffer e...

Страница 159: ...strings per Block Transfer when transferring multiple strings IW2 17 1 Bits 10 13 BCD digit 0 Bits 14 17 BCD digit 1 07 00 Number of Words per String Bits 00 03 BCD digit 0 Bits 04 07 BCD digit 1 The module sets these bits unless toggled when it detects the subject condition S t o c k C h e c k c o m ...

Страница 160: ...ds are listed in Table 6 A Table 6 A Initialization Errors Feature Word Bit Invalid Setting or Range Mode of module operation IW1 02 04 Above 001 binary Mode of transmission IW1 05 07 Above 101 binary String length IW2 00 13 Data mode above 62 characters Either mode non BCD digits using A F hex Data conversion IW2 14 16 Data mode above 100 binary Report generation mode 000 1 ASCII word 011 2 ASCII...

Страница 161: ... when the module detects an internal hardware fault It is normally off BUFFER FULL This yellow indicator illuminates when the input buffer is full It must be reset by program logic using CW1 03 CHANNEL ACTIVE This green indicator illuminates when an ASCII device is turned on and is properly connected to the INTERFACE port The module examines only the received data line for channel active indicatio...

Страница 162: ...es and the ASCII device continues to send data when the input buffer is full the data spills over and is lost Typical examples of fault conditions displayed by status indicators and corrective action that you can take are shown in the troubleshooting chart Table 6 B If the FAULT indicator should remain on return the module to Allen Bradley for service S t o c k C h e c k c o m ...

Страница 163: ...e block transfer rate by transferring multiple strings in each transfer Set IW2 17 1 and modify your program 4 Decrease communication rate from ASCII device FAULT BUFFER FULL CHANNEL ACTIVE ASCII characters are transferred but all LEDS are OFF 1 Check programming plugs for correct placement See section titled Setting the Module s Programming Plugs P 2 11 2 If a multiple port ASCII device is being ...

Страница 164: ...buffer empty Read data available Channel active Input buffer contains data A010 E0001 1010000 00010000 E010 11100000 00010000 Output buffer empty Read data available Write data acknowledge Input buffer contains data Channel active C011 1100000 00010001 Output buffer empty Write data acknowledge Channel active Output buffer empty 11100000 00000001 Input buffer empty Output buffer conatins data Read...

Страница 165: ...tatus Codes Hex Binary Description 2491 0001 00000000 00000001 ASCII device neither connected nor turned on Channel active light not on 0010 00000000 00010000 Lost cable to ASCII device Channel active light not on 2010 00100000 00010000 ASCII device lost power or turned off Loss of channel active was read to the processor 00100100 10010001 Initializating Error Input buffer empty Output buffer empt...

Страница 166: ...quence using the alphanumeric keytop overlay Press MODE SELECT 1213 RETURN The cursor appears at the upper left corner of a blank screen The module s CHANNEL ACTIVE LED illuminates when the industrial terminal is in alphanumeric mode and the module has power 4 Place the processor in run program mode PLC 2 family controller or in run monitor PLC 3 controllers 5 Enter characters on the keyboard Resu...

Страница 167: ...000 200 07 EN 011 17 DN 111 17 BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 030 111 16 252 271 EN 011 16 DN 111 16 BLOCK XFER WRITE DATAADDR MODULE ADDR BLOCK LENGTH FILE 031 111 16 200 217 Module location rack 1 module group 1 slot 1 020 02 TEMPORARY END 1 2 3 4 5 S t o c k C h e c k c o m ...

Страница 168: ...O005 0000 00 07 WO002 0000 WB004 0000 15 WB004 0000 05 EN CNTL 12 DN CNTL 15 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO003 0000 0 FB004 0000 EN CNTL 13 EN CNTL 02 DN CNTL 05 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 ER CNTL 03 WB004 0000 17 WO005 0000 00 0001 S t o c k C h e c k c o m ...

Страница 169: ...nitialization using processor mode select switch 020 10 062 0 1 Energizes initialization timer at power up TON PR 005 AC 000 062 15 020 OFF 10 U Resets timer after transfer of initialization words 020 02 063 01 TON PR 300 AC 000 063 17 063 15 One shot energizes timer for write handshaking 200 15 252 15 035 00 252 15 200 15 Read handshaking CW1 SW1 Module toggles SW1 15 when it sends new status or ...

Страница 170: ...ION FILE LENGTH FILE A FILE R 001 016 400 417 200 221 DN Stores data for write BT to module FILE TO FILE MOVE RATE PER SCAN 016 060 060 17 060 EN BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 030 111 16 252 271 DN 011 17 111 17 EN BLOCK XFER WRITE DATAADDR MODULE ADDR BLOCK LENGTH FILE 031 111 16 200 217 DN 011 16 111 16 020 10 EN COUNTER ADDR POSITION FILE LENGTH FILE A FILE R 001 004 57...

Страница 171: ... the Mini PLC 2 15 or PLC 2 30 for a detailed description of block transfer These are publications 1772 804 and 1772 806 respectively The remainder of this section describes block transfer concepts for programming the ASCII module using the block instructions of the Mini PLC 2 15 and PLC 2 30 programmable controllers Bidirectional Block Transfer Bidirectional block transfer is the performance of a...

Страница 172: ...lue or for 64 words File Enable Bit EN Automatically entered from the module address Set on when rung containing the instruction Done Bit DN Automatically entered from the module address Remains on for 1 scan following successful is true transfer 11121 Address of first word in the file Storage is 1008 above the data address Data and Module Addresses The data address is the block transfer instructi...

Страница 173: ... address in the instruction after you enter the instruction The files themselves can be located elsewhere in the data table Enable and Done Bits The read enable bit is bit 07 or 17 of the module s output image table byte depending on whether the block transfer module is in a lower or upper slot respectively The write enable bit is bit 06 or 16 of this byte These bits are entered automatically in t...

Страница 174: ... block transfer instructions during any program scan is equal to the number of block transfer modules in the system Also assume that the ASCII module is transferring 64 words in a write or read operation and 2 words in the alternate operation The module will toggle when done from one operation to the other in the next program scan The method for calculating the worst case time between block transf...

Страница 175: ... EN BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 040 130 00 300 347 DN 013 07 113 07 113 1 W 1 3 0 1 R W 1 1 R 1 W 041 3 0 0 140 4 0 0 141 Storage locations of file addresses 300 347 400 447 Read Block Transfer File Write Block Transfer File Read block transfer file length set to 00 which allows a 64 word transfer Write block transfer file length set to 00 which allows a 64 word transfer...

Страница 176: ...at are determined by the system configuration Program Scan PS 5ms 1K words x number of program words Processor I O Scan PIO 0 5ms rack number x declared rack numbers Remote Distribution I O Scan RIO 7ms chassis x number of chasses Number of Words Transferred W 64 words for one operation 2 words for the other 2 Calculate the block transfer time TW for the write operation and TR for a read operation...

Страница 177: ...re transferred in each write operation and that the ladder diagram program contains 4K words K 1024 There are no other block transfer modules in the system Figure A 4 Remote System Example PLC 2 30 1772 SD 1771 AS 1771 DA Rack No 1 1771 AS 1771 DA Rack No 2 1771 AS 1771 DA Rack No 3 1771 AS 1771 DA Rack No 4 10 000 System 11840 What is the worst case time between two consecutive read block transfe...

Страница 178: ...assis x 4 chassis 28ms Number of Words Transferred 64 read or 2 write 2 Calculate the block transfer times TW for a write and TR for a read operation TW PS IO 2 RIO 0 5W 13 TW 20 2 2 28 0 5 2 13 TW 92ms write TR PS PIO 2 RIO 0 5W 4 TR 20 2 2 28 0 5 64 4 TR 114ms read 3 Calculate the worst case system time ST between 2 consecutive read block transfers ST 4TW 4TR 4 92 4 114 368 456 824ms This is the...

Страница 179: ...O 1ms rack number x number of declared rack numbers Number of words transferred W 64 read or a write 2 Calculate the block transfer time T for the read or write operation T 0 1ms 0 075ms word x number of words transferred The same equation is used for either read or write transfer times 3 Calculate the worst case system time ST between transfers ST PS PIO T 1 read T 2 read T 3 read PS PIO T 1 writ...

Страница 180: ... 4 11841 PLC 2 30 Solution The facts of the problem are Program length 4K words Number of chassis 4 rack numbers Number of block transfer words W 64 read or 2 write 1 Calculate the system values Processor Scan Time PS 5ms 1K words x 4K words 20ms Processor I O Scan Time PIO 0 5ms rack number x 4 rack numbers 2ms Number of Words Transferred W 64 read or 2 write S t o c k C h e c k c o m ...

Страница 181: ... 2 4 4 9 4 0 15 40 4 19 6 0 6 64 2ms This is the worst case time between two consecutive read block transfers in the 4 chassis local configuration described in example problem 2 enabled ASCII module in each chassis Mini PLC 2 15 Controller The program scan and I O scan are consecutive and are considered as a single processor scan The Mini PLC 2 15 scan time varies typically from 18 to 24ms for a 1...

Страница 182: ...ng with one ASCII module in its I O chassis The ladder diagram program contains 2K words Otherwise this example problem is identical to example problem 1 Solution The facts of the problem are Program length 2K words Processor Scan Time PS 24ms 1K words x 2K words 48ms Number of words transferred W 64 read 2 write 1 Calculate the block transfer time T for the read and write operation T 0 1ms 0 16ms...

Страница 183: ...t case time between two consecutive read block transfers for the Mini PLC 2 15 controller as described in example problem 3 A read only program for transferring data from your ASCII device into the data table of your processor is presented with rung descriptions Figure A 6 Example Read Only Program S t o c k C h e c k c o m ...

Страница 184: ...5 SW1 SW1 Power up initialization bit reset Energize on power up to load initialization power up initialization bit CW1 words into write BT file Energize timer on power up De energize after time out Initialization words sent Status word one SW1 Command Word one CW1 SW1 CW1 Read Handshake read data available EN BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 050 371 14 252 267 DN 037 17 137 ...

Страница 185: ...LE LENGTH FILE A FILE R 001 004 570 573 202 205 DN FILE TO FILE MOVE RATE PER SCAN 004 061 061 17 061 15 020 10 Test for new valid data Moves new valid data from BTR file to storage file Load initialization words via switch or on power up 112 17 020 10 200 17 CW1 initialization bit module to expect initialization words via switch or on power up 020 02 Initialization Turns off rung 1 except for fir...

Страница 186: ...n LADDER DIAGRAM DUMP 020 02 252 07 200 07 252 07 200 OFF 10 020 10 062 1 0 TON PR 002 AC 000 062 15 020 OFF 10 U SW1 SW1 Power up initialization bit reset Energize on power up to laod initialization power up initialization bit CW1 words into write BT file Energize timer on power up De energize after time out Initialization words sent 112 16 020 00 020 01 020 01 020 00 L 112 16 020 00 U One shot f...

Страница 187: ...H FILE A FILE R 001 004 570 573 202 205 DN FILE TO FILE MOVE RATE PER SCAN 004 061 061 17 061 15 020 10 Load initialization words via switch or on power up 112 17 020 10 200 17 CW1 initialization bit module to expect initialization words via switch or on power up 020 02 Initialization Turns off rung 1 except for first scan at power up or via switch END A read write program that you can use to tran...

Страница 188: ...n bit reset Energize on power up to load initialization power up initialization bit CW1 words into write BT file Energize timer on power up De energize after time out Initialization words sent 200 15 252 15 035 00 252 200 Status word one SW1 Command word one CW1 read data available 020 01 252 16 200 ON 16 L 020 252 200 ON 16 U 01 16 112 16 020 00 020 01 020 01 020 00 L 112 16 020 00 U One shot for...

Страница 189: ...LE A FILE R 001 014 254 267 600 613 DN FILE TO FILE MOVE RATE PER SCAN 014 063 063 17 063 15 112 17 EN COUNTER ADDR POSITION FILE LENGTH FILE A FILE R 001 004 570 573 202 205 DN FILE TO FILE MOVE RATE PER SCAN 004 061 061 17 061 15 020 10 Test for new valid data Moves new valid data from BTR file to storage file Load initialization words via switch or on power up 112 17 020 10 200 17 CW1 initializ...

Страница 190: ...frequency at which write block transfers update the display If you want to demonstrate the use of this program to display messages load data into storage file 400 Table A A In this example the message contains an 8 digit position number for each of three axes Enter ASCII characters of your message message positioning codes and example 8 digit position numbers for each axis Load initialization data...

Страница 191: ...2 L 020 10 TON 032 PR 010 AC 000 032 15 020 OFF 10 U 300 16 200 OFF 16 L 300 16 200 OFF 16 U 020 10 200 17 G 500 000 PUT 411 004 G 501 000 PUT 413 999 G 502 000 PUT 426 000 Scan counter Initialization Same rung description as previous examples Write handshake rungs Moves current value data from the read block transfer file into write data storage area 1 2 3 4 5 6 7 8 9 10 11 12 13 0 1 S t o c k C ...

Страница 192: ...FILE TO FILE MOVE RATE PER SCAN 004 037 037 17 037 15 10 EN BLOCK XFER READ DATAADDR MODULE ADDR BLOCK LENGTH FILE 030 411 41 300 350 DN 041 17 141 17 EN BLOCK XFER WRITE DATAADDR MODULE ADDR BLOCK LENGTH FILE 031 411 41 200 250 DN 041 16 141 16 020 10 035 10 020 02 17 18 19 20 21 Moves updated current value data into write block transfer area once ever 100 program scans Loads initialization words...

Страница 193: ... be 303B 3037 3741 4100 instead of 4 words as shown 4185 4953 AXIS 1 2031 203D 203A 1234 1234 5678 3A3A 5678 3A00 1033 303B COLUMN 30 ROW 10 3130 4100 4185 4953 AXIS 2 2032 203D 203A ABCD ABCD 4321 3A3A 4321 3A00 1033 303B COLUMN 30 ROW 13 3133 4100 4158 4953 2033 AXIS 3 203D 203A FACE FACE BAC2 3A3A BAC2 3A0D Message variable Table A B Example Initialization Words File 200 for Industrial Terminal...

Страница 194: ...ROM A TO R A WO0001 0000 0000000000000000 R WO0002 0000 0000000000000000 RUNG NUMBER RM0 Load zeros into command word 1 with selector switch or on first scan RUNG NUMBER RM1 WO003 0000 07 WO002 0000 07 Power up reset power up initialization bit WO003 0000 15 WO002 0000 15 WO003 0000 15 WO002 0000 15 WO005 0000 02 RUNG NUMBER RM2 Status word 1 Command word 1 read data available Complete Getting Sta...

Страница 195: ... 16 U RUNG NUMBER RM10 WB004 0000 15 WB004 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO003 0000 0 FB004 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status words 1 2 and data Write command words 1 2 initialization data and messa...

Страница 196: ...MBER RM17 02 MVF FILES FROM A TO R A FO003 0002 R FO006 0002 COUNTER C0001 POS LEN 0 62 MODE ALL SCAN C0001 12 EN C0001 15 DN C0001 13 ER GRT A B A WO003 0001 0000000000000000 B WO001 0000 0000000000000000 Initialization Turn off rung 1 except for 1st scan at power up Energize at power up to load initialization words Also energized on on 1st scan after processor selection of run monitor mode Energ...

Страница 197: ...R A WTACC 0004 9 R WD006 0007 0000000000001001 Moves free running timer accumulated value into message file between delimiters I0001 04 MOV MOV FROM A TO R A WTACC 0004 9 R WO009 0007 0000000000001001 For comparison only I0001 04 MVF FILES FROM A TO R A FO006 0002 R FO002 0002 COUNTER C0005 POS LEN 62 62 MODE ALL SCAN C0005 12 EN C0005 15 DN C0005 13 ER Moves message file into BTW file for transfe...

Страница 198: ...ock transfer instructions use two files when transferring data and commands between the block transfer module and the PLC 3 processor a data file that contains data to be transferred and a control file that contains control bits module location data table address and length of the data file Figure A 11 Communication between module and processor is directed by the 1775 S4A scanner Once the instruct...

Страница 199: ...r module the address of the data file Data from the block transfer I O module is transferred to the block transfer data file in the processor data table Upon completion of the block transfer the appropriate status bits are set reset NOTE The direction of data flow is reversed for a write block transfer operation Rack 12 Module Group 7 Upper Slot Word File You must create the data file large enough...

Страница 200: ...he channel if the I O chassis containing a block transfer module appears more than once in the I O chassis rack list count the module once each time the chassis appears in the rack list Typical time required to complete a read or write block transfer depends on the program scan and the scanner scan as follows Time read or write Program scan 2 Scanner scan Program Scan The program scan is approxima...

Страница 201: ...nominal write block transfer times by approximately 10ms In this example consider them the same 4 Count the number of block transfer modules on the channel If a chassis containing block transfer modules is repeated in the rack list count chassis and modules as often as listed 5 Count the number of I O chassis entries in the rack list for the channel 6 Calculate the block transfer time for the scan...

Страница 202: ...xample in four steps Each of the following steps is explained by an accompanying figure 1 Diagram the I O channels of your PC system Figure B 3 showing the number of block transfer modules in each I O chassis block transfer I O channels I O chassis entries in the rack list for each block transfer I O channel active I O channels per scanner A block transfer I O channel is a channel that contains on...

Страница 203: ...ake interactive thru processor LIST Scanner I O Chassis Description Number Active I O channels Block Transfer I O channels Block Transfer modules on each I O block transfer channel I O chassis on each block transfer I O channel I O chassis in rack list Ch 1 Ch 2 Ch 3 Ch 4 3 2 3 4 0 0 1 2 0 0 12828 n number of block transfer modules in chassis 2 Using information from the diagram of I O channels Fi...

Страница 204: ...nnels 3 Compute the approximate transfer time for each block transfer I O channel Use values from your channel diagram Figure A 12 a value from the table Figure A 13 and the formula from step 6 above We make these calculations for you in Figure A 14 Figure A 14 Computing Channel Times Nominal Time x BT modules on BT channel I O chassis on BT channel 1 X 9 Step 3 Compute the scanner time for each b...

Страница 205: ...nel 3 Program Scan 2 Scanner Scan 50ms 2 77ms 50ms 154ms 204ms Reducing Scan Time Due to the asychronous scan relationship between program and scanner and the serial operation of each channel in the scanner we suggest that you optimize the overall scan time Although recommendations are application dependent we make the following recommendations as general guidelines Whenever possible control the m...

Страница 206: ...group Within each group condition the next rung using the done bit of the previous block transfer instruction Consider an additional I O scanner module cat no 1775 S4A if you cannot otherwise reduce the block transfer times to meet your timing requirements During a write handshake the processor also can transfer write data to the ASCII module and during a read handshake the processor also can tran...

Страница 207: ...Transfer Errors Once enabled a block transfer instruction in a PLC 3 ladder program will set either a done bit or an error bit The instruction indicates an error when it illuminates the ER symbol Typical block transfer errors occur when You do not correctly enter the instruction The rack group and module numbers do not match the location of the installed module You entered a file length greater th...

Страница 208: ...Block transfer error detection and resulting processor shutdown are safety features of Allen Bradley programmable controllers We recommend that you adapt such safety features to your application However you may want your program to reset block transfer instructions whenever an error is detected Block transfer errors can occur intermittently due to electrical noise in the environment and may not be...

Страница 209: ...nd quarter chassis and so forth Adapter Re try Status file 3 S3 0 This file counts the number of transmissions attempted between the scanner and each I O chassis in the system The file records the re tries occurring in each quarter rack Frequent re tries indicate I O communication problems The file length is application dependent four words per assigned rack number The display format is Bit Number...

Страница 210: ...00 15 WO005 0000 02 RUNG NUMBER RM2 Status word 1 Command word 1 read data available WO002 0000 15 WO005 0000 02 RUNG NUMBER RM3 WO003 0000 15 L WO002 0000 15 WO005 0000 02 RUNG NUMBER RM4 WO003 0000 15 U Status word 1 Command word 1 read handshake Status word 1 Command word 1 Read handshake WO003 0000 07 S0003 01 WO005 0000 01 L RUNG NUMBER RM5 WO005 0000 RUNG NUMBER RM6 TON TIMER ON 1 0 SECOND T...

Страница 211: ... C0004 13 ER WO005 0000 RUNG NUMBER RM10 02 GRT A B A WO003 0001 0000000000000000 B WO001 0000 0000000000000000 Command word 1 initialization bit Module expects Load initialization words with selector switch or at power up up to 4 initialization words WB004 0000 15 WO005 0000 05 Test for new valid data RUNG NUMBER RM11 WO005 0000 05 MVF FILES FROM A TO R A FO003 0002 R FO006 0002 COUNTER C0001 POS...

Страница 212: ...TL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FO004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status word 1 2 and data Write command words 1 2 initialization data and message data RUNG NUMBER RM12 WD005 0000 00 RUNG NUMBER RM13 RUNG NUMBER RM14 EOP Initialization Turns off rung 1 except for 1st scan at power up S t o c k C h e c k c o m ...

Страница 213: ...03 0000 07 WO002 0000 07 Power up reset power up initialization bit WO003 0000 07 S0003 01 WO005 0000 01 L RUNG NUMBER RM2 WO005 0000 RUNG NUMBER RM3 TON TIMER ON 1 0 SECOND TP TA T0001 2 0 T0001 17 TE T0001 15 TD 01 Energize at power up to load initialization words Also energized on on 1st scan after processor selection of run monitor mode Energize timer on power up WO005 0000 01 T0001 15 RUNG NU...

Страница 214: ... WO005 0000 04 RUNG NUMBER RM10 WO003 0000 16 L WO002 0000 16 WO005 0000 04 RUNG NUMBER RM11 WO003 0000 16 U Command word 1 Status word 1 write handshake One shot to enable write block transfer of new data of module RUNG NUMBER RM12 WB004 0000 15 WB004 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO003 0000 0 FB004 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB004 0000 17 ...

Страница 215: ...5 0000 00 MOV MOVE FROM A TO R A WO0001 0000 0000000000000000 R WO0002 0000 0000000000000000 RUNG NUMBER RM0 Load zeros into command word 1 with selector switch or on first scan RUNG NUMBER RM1 WO003 0000 07 WO002 0000 07 Power up reset power up initialization bit WO003 0000 15 WO002 0000 15 WO003 0000 15 WO002 0000 15 WO005 0000 02 Status word 1 Command word 1 read data available RUNG NUMBER RM2 ...

Страница 216: ...L 12 EN CNTL 15 DN CNTL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status word 1 2 and data Write command words 1 2 initialization data and message data Command word 1 Status word 1 write handshake One shot to enable write block transfer of new data of module Status word 1 Command word 1 rea...

Страница 217: ...mer on power up De energize timer after transferring initialization words Command word 1 initialization bit Module expects Load initialization words with selector switch or at power up Moves new data from BTR file to storage file when data is set to PC up to 4 initialization words MODE ALL SCAN 13 ER WO005 0000 05 RUNG NUMBER RM18 RUNG NUMBER RM19 EOP WO005 0000 02 GRT A B A WO003 0001 00000000000...

Страница 218: ...transmitted to the ASCII module s input buffer the module sets the new data flag SW2 0 and transfers data and the new data flag to the processor data table Figure A 21 Example Application Program O0252 07 B0020 02 MOV MOVE FROM A TO R A WB000 0327 0000000000000000 R WO000 0200 0000000000000000 RUNG NUMBER RM0 Zero out CW1 on power up U RUNG NUMBER RM1 Power up initialization rung O0200 07 RUNG NUM...

Страница 219: ...00 O0252 15 O0200 15 U RUNG NUMBER RM7 Read handshake rungs B0020 16 B0020 00 B0020 01 U RUNG NUMBER RM8 B0020 01 B0020 00 L RUNG NUMBER RM9 B0020 16 B0020 00 U B0020 01 O0252 16 O0200 16 L RUNG NUMBER RM10 RUNG NUMBER RM11 B0020 01 O0252 16 O0200 16 U RUNG NUMBER RM12 Write handshake rungs When B20 16 is high data is written to the module S t o c k C h e c k c o m ...

Страница 220: ...R RM13 WB001 0000 15 WB001 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO000 0252 16 FB001 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB001 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO000 0200 16 FB001 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Write command words 1 2 initialization data and message data B0020 10 O0200 17 RUNG NUMBER RM15 B0...

Страница 221: ...0 R FO000 0202 COUNTER C0004 POS LEN 0 14 C0004 12 EN C0004 15 DN C0004 RUNG NUMBER RM20 RUNG NUMBER RM21 RUNG NUMBER RM22 B0020 16 Keyboard entry GO and valid data test start the write block transfer routine to display message files 1 and 2 Moves first message file into write block transfer file when timer accumulated value is 1 second routine EQU A B A WTACC 0002 0 B WN000 0002 2 EQU A B A WTACC...

Страница 222: ...nds U RUNG NUMBER RM25 EOP RUNG NUMBER RM26 Converts message variable to correct format and moves it to second message file Addresses Used in Example Application Program The following addresses are used in NO TAG for files the message variable and timers Initialization data is also shown Message file 1 Message file 2 Message variable Write block transfer file Read block transfer file Initializatio...

Страница 223: ...0000000000000000 R WO002 0000 0000000000000000 RUNG NUMBER RM0 Load zeros into command word 1 with selector switch or on first scan RUNG NUMBER RM1 WO003 0000 07 WO002 0000 07 Power up reset power up initialization bit WO003 0000 15 WO002 0000 15 WO003 0000 15 WO002 0000 15 WO005 0000 02 RUNG NUMBER RM2 Status word 1 Command word 1 read data available I 0001 Complete Getting Started Program PLC 3 ...

Страница 224: ...ER RM10 WB004 0000 15 WB004 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO003 0000 0 FB004 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status words 1 2 and data Write command words 1 2 initialization data and message data Command...

Страница 225: ...VF FILES FROM A TO R A FO003 0002 R FO006 0002 COUNTER C0001 POS LEN 0 62 MODE ALL SCAN C0001 12 EN C0001 15 DN C0001 13 ER GRT A B A WO003 0001 0000000000000000 B WO001 0000 0000000000000000 Initialization Turn off rung 1 except for 1st scan at power up Energize at power up to load initialization words Also energized on 1st scan after processor selection of run monitor mode Energize timer on powe...

Страница 226: ...0007 9 R WD006 0007 0000000000001001 Moves free running timer accumulated value into message file between delimiters 04 MOV MOV FROM A TO R A WTACC 0004 9 R WO009 0007 0000000000001001 For comparison only 04 MVF FILES FROM A TO R A FO006 0002 R FO002 0002 COUNTER C0005 POS LEN 62 62 MODE ALL SCAN C0005 12 EN C0005 15 DN C0005 13 ER Moves message file into BTW file for transfer to module EOP RUNG N...

Страница 227: ... transfer instructions use two files when transferring data and commands between the block transfer module and the PLC 3 processor a data file that contains data to be transferred and a control file that contains control bits module location data table address and length of the data file Figure A 11 Communication between module and processor is directed by the 1775 S4A scanner Once the instruction...

Страница 228: ...odule the address of the data file Data from the block transfer I O module is transferred to the block transfer data file in the processor data table Upon completion of the block transfer the appropriate status bits are set reset NOTE The direction of data flow is reversed for a write block transfer operation Rack 12 Module Group 7 Upper Slot Word File You must create the data file large enough to...

Страница 229: ...channel if the I O chassis containing a block transfer module appears more than once in the I O chassis rack list count the module once each time the chassis appears in the rack list Typical time required to complete a read or write block transfer depends on the program scan and the scanner scan as follows Time read or write Program scan 2 Scanner scan Program Scan The program scan is approximatel...

Страница 230: ...minal write block transfer times by approximately 10ms In this example consider them the same 4 Count the number of block transfer modules on the channel If a chassis containing block transfer modules is repeated in the rack list count chassis and modules as often as listed 5 Count the number of I O chassis entries in the rack list for the channel 6 Calculate the block transfer time for the scanne...

Страница 231: ...ple in four steps Each of the following steps is explained by an accompanying figure 1 Diagram the I O channels of your PC system Figure B 3 showing the number of block transfer modules in each I O chassis block transfer I O channels I O chassis entries in the rack list for each block transfer I O channel active I O channels per scanner A block transfer I O channel is a channel that contains one o...

Страница 232: ...e interactive thru processor LIST Scanner I O Chassis Description Number Active I O channels Block Transfer I O channels Block Transfer modules on each I O block transfer channel I O chassis on each block transfer I O channel I O chassis in rack list Ch 1 Ch 2 Ch 3 Ch 4 3 2 3 4 0 0 1 2 0 0 12828 n number of block transfer modules in chassis 2 Using information from the diagram of I O channels Figu...

Страница 233: ...els 3 Compute the approximate transfer time for each block transfer I O channel Use values from your channel diagram Figure A 12 a value from the table Figure A 13 and the formula from step 6 above We make these calculations for you in Figure A 14 Figure B 5 Computing Channel Times Nominal Time x BT modules on BT channel I O chassis on BT channel 1 x 9 Step 3 Compute the scanner time for each bloc...

Страница 234: ... 3 Program Scan 2 Scanner Scan 50ms 2 77ms 50ms 154ms 204ms Reducing Scan Time Due to the asychronous scan relationship between program and scanner and the serial operation of each channel in the scanner we suggest that you optimize the overall scan time Although recommendations are application dependent we make the following recommendations as general guidelines Whenever possible control the mann...

Страница 235: ...up Within each group condition the next rung using the done bit of the previous block transfer instruction Consider an additional I O scanner module cat no 1775 S4A if you cannot otherwise reduce the block transfer times to meet your timing requirements During a write handshake the processor also can transfer write data to the ASCII module and during a read handshake the processor also can transfe...

Страница 236: ...ction We suggest that you add an additional scanner if necessary Block Transfer Errors Once enabled a block transfer instruction in a PLC 3 ladder program will set either a done bit or an error bit The instruction indicates an error when it illuminates the ER symbol Typical block transfer errors occur when You do not correctly enter the instruction The rack group and module numbers do not match th...

Страница 237: ...ORD 0000000000000000 R CTRL WORD 0000000000000000 13 Detecting Faults Block transfer error detection and resulting processor shutdown are safety features of Allen Bradley programmable controllers We recommend that you adapt such safety features to your application However you may want your program to reset block transfer instructions whenever an error is detected Block transfer errors can occur in...

Страница 238: ... quarter chassis and so forth Adapter Re try Status file 3 S3 0 This file counts the number of transmissions attempted between the scanner and each I O chassis in the system The file records the re tries occurring in each quarter rack Frequent re tries indicate I O communication problems The file length is application dependent four words per assigned rack number The display format is Bit Number W...

Страница 239: ...5 0000 02 RUNG NUMBER RM2 Status word 1 Command word 1 read data available WO002 0000 15 WO005 0000 02 RUNG NUMBER RM3 WO003 0000 15 L WO002 0000 15 WO005 0000 02 RUNG NUMBER RM4 WO003 0000 15 U Status word 1 Command word 1 read handshake Status word 1 Command word 1 read handshake WO003 0000 07 S0003 01 WO005 0000 01 L RUNG NUMBER RM5 WO005 0000 RUNG NUMBER RM6 TON TIMER ON 1 0 SECOND TP TA T0001...

Страница 240: ...05 0000 RUNG NUMBER RM10 02 GRT A B A WO003 0001 0000000000000000 B WO001 0000 0000000000000000 Command word 1 initialization bit Module expects Load initialization words with selector switch or at power up up to 4 initialization words WB004 0000 15 WO005 0000 05 Test for new valid data RUNG NUMBER RM11 WO005 0000 05 MVF FILES FROM A TO R A FO003 0002 R FO006 0002 COUNTER C0001 POS LEN 0 62 MODE A...

Страница 241: ... 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FO004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status word 1 2 and data Write command words 1 2 initialization data and message data RUNG NUMBER RM12 WO005 0000 00 RUNG NUMBER RM13 RUNG NUMBER RM14 EOP Initialization Turns off rung 1 except for 1st scan at power up S t o c k C h e c k c o m ...

Страница 242: ...7 WO002 0000 07 Power up reset power up initialization bit WO003 0000 07 S0003 01 WO005 0000 01 L RUNG NUMBER RM2 WO005 0000 RUNG NUMBER RM3 TON TIMER ON 1 0 SECOND TP TA T0001 2 0 T0001 17 TE T0001 15 TD 01 Energize at power up to load initialization words Also energized on on 1st scan after processor selection of run monitor mode Energize timer on power up WO005 0000 01 T0001 15 RUNG NUMBER RM4 ...

Страница 243: ...UMBER RM10 WO003 0000 16 L WO002 0000 16 WO005 0000 04 RUNG NUMBER RM11 WO003 0000 16 U Command word 1 Status word 1 write handshake One shot to enable write block transfer of new data to module RUNG NUMBER RM12 WB004 0000 15 WB004 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO003 0000 0 FB004 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE ...

Страница 244: ...00 00 MOV MOVE FROM A TO R A WO001 0000 0000000000000000 R WO002 0000 0000000000000000 RUNG NUMBER RM0 Load zeros into command word 1 with selector switch or on first scan RUNG NUMBER RM1 WO003 0000 07 WO002 0000 07 Power up reset power up initialization bit WO003 0000 15 WO002 0000 15 WO003 0000 15 WO002 0000 15 WO005 0000 02 Status word 1 Command word 1 read data available RUNG NUMBER RM2 WO002 ...

Страница 245: ... DN CNTL 13 ER WB004 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO002 0000 0 FB004 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Read status word 1 2 and data Write command words 1 2 initialization data and message data Command word 1 Status word 1 write handshake One shot to enable write block transfer of new data of module Status word 1 Command word 1 read handshake WO0...

Страница 246: ...p De energize timer after transferring initialization words Command word 1 initialization bit Module expects Load initialization words with selector switch or at power up Moves new data from BTR file to storage file when nes is sent to PC up to 4 initialization words MODE ALL SCAN 13 ER WO005 0000 05 RUNG NUMBER RM18 RUNG NUMBER RM19 EOP WO005 0000 02 GRT A B A WO003 0001 0000000000000000 B WO001 ...

Страница 247: ...nsmitted to the ASCII module s input buffer the module sets the new data flag SW2 0 and transfers data and the new data flag to the processor data table Figure B 12 Example Application Program O0252 07 B0020 02 MOV MOVE FROM A TO R A WB000 0327 0000000000000000 R WO000 0200 0000000000000000 RUNG NUMBER RM0 Zero out CW1 on power up U RUNG NUMBER RM1 Power up initialization rung O0200 07 RUNG NUMBER...

Страница 248: ...0 O0252 15 O0200 15 U RUNG NUMBER RM7 Read handshake rungs B0020 16 B0020 00 B0020 01 RUNG NUMBER RM8 B0020 01 B0020 00 L RUNG NUMBER RM9 B0020 16 B0020 00 U B0020 01 O0252 16 O0200 16 L RUNG NUMBER RM10 RUNG NUMBER RM11 B0020 01 O0252 16 O0200 16 U RUNG NUMBER RM12 Write handshake rungs When B20 16 is high data is written to the module S t o c k C h e c k c o m ...

Страница 249: ...RM13 WB001 0000 15 WB001 0000 05 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO000 0252 16 FB001 0000 CNTL 12 EN CNTL 15 DN CNTL 13 ER WB001 0000 17 BTW BLOCK XFER WRITE RACK GROUP MODULE DATA LENGTH CNTL 001 1 1 HIGH FO000 0200 16 FB001 0000 CNTL 02 EN CNTL 05 DN CNTL 03 ER Write command words 1 2 initialization data and message data B0020 10 O0200 17 RUNG NUMBER RM15 B002...

Страница 250: ...R FO000 0202 COUNTER C0004 POS LEN 0 14 C0004 12 EN C0004 15 DN C0004 RUNG NUMBER RM20 RUNG NUMBER RM21 RUNG NUMBER RM22 B0020 16 Keyboard entry GO and valid data test start the write block transfer routine to display message files 1 and 2 Moves first message file into write block transfer file when timer accumulated value is 1 second routine EQU A B A WTACC 0002 0 B WN000 0002 2 EQU A B A WTACC 0...

Страница 251: ... U RUNG NUMBER RM25 EOP RUNG NUMBER RM26 Converts message variable to correct for mat and moves it to second message file Addresses Used in Example Application Program The following addresses are used in NO TAG for files the message variable and timers Initialization data is also shown Message file 1 Message file 2 Message variable Write block transfer file Read block transfer file Initialization ...

Страница 252: ...4A 4B 4C 4D 4E 4F 50 51 52 53 54 0101010 0101011 0101100 0101101 0101110 0101111 0110000 0110001 0110010 0110011 0110100 0110101 0110110 0110111 0111000 0111001 0111010 0111011 0111100 0111101 0111110 0111111 1000000 1000001 1000010 1000011 1000100 1000101 1000110 1000111 1001000 1001001 1001010 1001011 1001100 1001101 1001110 1001111 1010000 1010001 1010010 1010011 1010100 0 1 2 3 4 5 6 7 8 9 A B...

Страница 253: ... D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 CONTROL SHIFT P NULL CONTROL A CONTROL B CONTROL C CONTROL D CONTROL E CONTROL F CONTROL G RINGS BELL CONTROL H BACKSPACE ON SOME TERMINALS CONTROL I HORIZONTAL TAB ON SOME TERMINALS CONTROL J LINE FEED CONTROL K CONTROL L FORM FEED ON SOME TERMINALS CONTROL M CARRIAGE RETURN CONTROL ...

Страница 254: ...0 64 65 66 67 70 71 72 73 74 75 76 77 100 101 102 103 104 105 106 107 110 111 112 113 114 115 116 117 120 121 122 123 124 125 126 127 130 131 132 133 134 135 136 137 140 141 142 143 144 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 67 68 69 5A 5B 5C 5D 5E 5F 60 61 62 63 64 4 5 6 7 8 9 A B C D E F G H I H J K M N O P Q R S T U V W X Y Z _ a...

Страница 255: ...1 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 145 146 147 150 151 152 153 154 155 156 157 160 161 162 163 164 165 166 167 170 171 172 173 174 175 176 177 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F e f g h i j k l m n o p q r s t u v w x y z DEL S t o c k C h e c k c o m ...

Страница 256: ...K BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US DEL NULL START OF HEADER START OF TEXT END OF TEXT END OF TRANSMISSION ENQUIRE ACKNOWLEDGE BELL BACKSPACE HORIZONTAL TAB LINE FEED VERTICAL TAB FORM FEED CARRIAGE RETURN SHIFT OUT SHIFT IN DATA LINK ESCAPE DEVICE CONTROL 1 DEVICE CONTROL 2 DEVICE CONTROL 3 DEVICE CONTROL 4 NEGATIVE ACKNOWLEDGE SYNCHRONOUS IDLE...

Страница 257: ... Long Line Communication Rates User selectable 110 300 600 1200 2400 4800 9600 baud Buffer Memory 1 5K words 3K bytes Module Location 1771 I O Chassis Backplane Current Requirement 1 3A Environmental Conditions Operational Temperature 32o to 140o F 0o to 60oC Storage Temperature 40o to 185o F 40o to 85o C Relative Humidity 5 to 95 without condensation Keying Between 8 and 10 Between 30 and 32 Curr...

Страница 258: ... 12 and 24 No reverse voltage protection Active Transmitter Circuit pins 13 and 11 Isolation 500Vdc between customer and PC system circuitry Input Current Range 23 0mA max for mark state load must exceed 300 ohms 0mA for space state Passive Transmitter Circuit pins 11 and 18 Isolation 500Vdc between customer and PC system circuitry Device and power supply must float referenced to module ground Inp...

Страница 259: ...ance 3k to 7k ohms for 3 to 25Vdc and 3 to 25Vdc Receiver Circuit Data pins 2 and 7 Isolation 500Vdc between customer and PC system circuitry Typical Input Voltage Range 3 to 25Vdc for space state 3 to 25Vdc for mark state Typical Input Impedance 3k to 7k ohms for 3 to 25Vdc and 3 to 25Vdc Transmitter Circuit pins 3 5 6 and 7 Isolation 500Vdc between customer and PC system circuitry Output Voltage...

Страница 260: ...ta bits number of 3 27 data byte storage 3 27 data conversion 3 13 demonstration 4 17 data mode 3 13 delimiter demonstration 4 9 PC processor 3 23 demonstratinos header character removal trailing character removal 4 15 demonstrations data conversion 4 17 end of string 4 9 fill characters removal 4 14 greater than module s 4 11 justified data 4 8 margin justification 4 7 multiple line 4 24 report g...

Страница 261: ...data is stored in the data table 2 12 P5 Load data into an instruction file 2 15 parity 3 28 programming plugs 3 10 programs example application plugs A 22 read only A 15 read write A 19 write only A 18 R reading data from your ASCII device 2 10 RS 232 C 3 1 S serial data 3 28 Set bits in initialization words 4 4 simlex write special case 3 10 slide bar 2 6 special consideration A 39 B 14 specific...

Страница 262: ...Czech Republic Denmark Ecuador Egypt El Salvador Finland France Germany Greece Guatemala Honduras Hong Kong Hungary Iceland India Indonesia Ireland Israel Italy Jamaica Japan Jordan Korea Kuwait Lebanon Malaysia Mexico Netherlands New Zealand Norway Pakistan Peru Philippines Poland Portugal Puerto Rico Qatar Romania Russia CIS Saudi Arabia Singapore Slovakia Slovenia South Africa Republic Spain Sw...

Отзывы: