background image

72

Rockwell Automation Publication 1769-UM012B-EN-P - January 2014

Chapter 3

I/O Memory Mapping

Alternate Mode (one channel 
at a time) Output File

The alternate mode output file contains the real-time output data from the 
module. This table shows the generic module tag definitions on the left. On the 
right of the table is the 1769-ASCII module Add-On Profile configuration using 
RSLogix 5000 software version 16 and later.

It is assumed that 16 bit words are used. The structure on the left is used with 
varying data types; SINT, INT, BOOL and SINT array for data. The Add-On 
Profile structures the module output, configuration and input tags differently. 
With the Add-On Profile the configuration tags are rearranged as INTs. 

The table shows the maximum size of the value and shows the maximum array 
size for Alternate Mode. 

Table 5 - Alternate Mode (one channel at a time) Output File

W
O
R
D

Bit Position

Add-On-Profile Tag 
Name

Description

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Generic Module Tag Names

0

Reserved

(1)

Tx Transaction ID Ch0

Local:S:O.Ch0TxID

(2)

Transmit Transaction ID.

1

Reserved

Rx Transaction ID Request Ch0

Local:S:O.Ch0RxID

(3)

Receive Transaction ID Request. Used with 
Ch1RxID for handshake mode.

2

Reserved

Tx Transaction ID Ch1

Local:S:O.Ch1TxID

Transmit Transaction ID.

3

Reserved

Rx Transaction ID Request Ch1

Local:S:O.Ch1RxID

(4)

Receive Transaction ID Request. Used with 
Ch0RxID for handshake mode.

4

Reserved

CNI

Local:S:O.RxChNumber

Channel number of requested input data. 
This bit is set by the PLC controller or 
other user program to tell the 1769-ASCII 
module which data to produce.
This bit is set by the controller based on 
the user program; same for all the words 
in the Output data file

5

Reserved

CNO

Local:S:O.TxChNumber

Channel number of the output data being 
sent. This bit is set by the PLC controller or 
other user program to tell the module 
which port’s data is being sent to the 
1769-ASCII module.

6

Reserved

7

Length (Number of Bytes)

Local:S:O.TxDataLength

The amount of data being transmitted.

8

Character 1

Character 0

Local:S:O.TxData

This defines the transmit ASCII character 
for the tag.

9

Character 3

Character 2

Local:S:O.TxData

Character …

Character …

Local:S:O.TxData

106

Character 197

Character 196

Local:S:O.TxData

107

Character 199

Character 198

Local:S:O.TxData

(1) Reserved is expected in 1st instance word 0.

(2) Tag name format is `Local:S:O’ where 'S' represents slot number.

(3) Used for handshaking mode.

(4) Used for handshaking mode.

Summary of Contents for Allen-Bradley 1769-ASCII

Page 1: ...Compact I O ASCII Module Catalog Numbers 1769 ASCII User Manual ...

Page 2: ...n of Rockwell Automation Inc is prohibited Throughout this manual when necessary we use notes to make you aware of safety considerations Labels may also be on or inside the equipment to provide specific precautions Allen Bradley Rockwell Software Rockwell Automation Compact I O CompactLogix Logix5000 MicroLogix RSLogix Studio 5000 Logix Designer and Studio 5000 are trademarks of Rockwell Automatio...

Page 3: ...e Rearranged content and updated warnings and attentions Throughout Updated configuration to include the CompactLogix 5370 L3 controller provided link to the Knowledgebase Technote 64203 7 Added information about the Studio 5000 environment 7 Updated Additional Resources 8 Updated configuration examples 21 Updated I O Memory Mapping to include the new tag structures 71 Added the Generic Module app...

Page 4: ...4 Rockwell Automation Publication 1769 UM012B EN P January 2014 Summary of Changes Notes ...

Page 5: ...ontroller scoped Tags 32 Data Types 32 Connect to Channel 0 of the Module in Alternating Mode 34 Ladder Logic Example 35 Configure the Module Properties 38 Connect to Both Channels of the Module in Alternating Mode 41 Ladder Logic Example 42 Connect to Both Channels of the 1769 ASCII Module in Simultaneous Mode 49 Ladder Logic Example 50 Configure the Module for Use with a MicroLogix Controller 59...

Page 6: ...II Serial Data 83 Receive Timeout 84 How to Send Data from the 1769 ASCII Module 84 How to Receive Serial Data from the 1769 ASCII Module 85 Master Slave Handshake 85 AppendixA Configure the 1769 ASCII Module as a Generic Module 87 AppendixB Status Indicators 95 AppendixC Error Codes Configuration Errors 97 Logix Designer Example Report 100 RSLogix 500 Error Report Example 102 AppendixD ASCII Conv...

Page 7: ...nel s 9 pin D sub connector The actual media selected is transparent to the 1769 ASCII module Studio 5000 Environment The Studio 5000 Engineering and Design Environment combines engineering and design elements into a common environment The first element in the Studio 5000 environment is the Logix Designer application The Logix Designer application is the rebranding of RSLogix 5000 software and wil...

Page 8: ...anual publication 1756 PM013 Provides details on how to manipulate ASCII strings in Logix5000 controllers Compact I O DeviceNet Scanner Module User Manual publication 1769 UM009 Provides details regarding the installation configuration and operation of DeviceNet scanners 1768 CompactLogix L4x Controllers User Manual publication 1768 UM001 Provides details regarding the installation configuration a...

Page 9: ...age About the Module 9 Environment and Enclosure 10 North American Hazardous Location Approval 11 European Hazardous Location Approval 12 Install the Module 13 Assemble the System 14 Ground the Module 17 Connect the D sub Connector Pins 18 Item Description 1a Upper DIN rail latch 1b Lower DIN rail latch 2a Upper tongue and groove slots 2b Lower tongue and groove slots 3a Channel 0 isolated ASCII c...

Page 10: ...ned for those specific environmental conditions that will be present and appropriately designed to prevent personal injury resulting from accessibility to live parts The enclosure must have suitable flame retardant properties to prevent or minimize the spread of flame complying with a flame spread rating of 5VA V2 V1 V0 or equivalent if non metallic The interior of the enclosure must be accessible...

Page 11: ... le plus défavorable code de température le plus faible peut être utilisé pour déterminer le code de température global du système Les combinaisons d équipements dans le système sont sujettes à inspection par les autorités locales qualifiées au moment de l installation WARNING Explosion Hazard Do not disconnect equipment unless power has been removed or the area is known to be nonhazardous Do not ...

Page 12: ...Health and Safety Requirements has been assured by compliance with EN 60079 15 and EN 60079 0 WARNING This equipment must be installed in an enclosure providing at least IP54 protection when applied in Zone 2 environments This equipment shall be used within its specified ratings defined by Allen Bradley Provisions shall be made to prevent the rated voltage from being exceeded by transient disturba...

Page 13: ...ION Preventing Electrostatic Discharge This equipment is sensitive to electrostatic discharge which can cause internal damage and affect normal operation Follow these guidelines when you handle this equipment Touch a grounded object to discharge potential static Wear an approved grounding wriststrap Do not touch connectors or pins on component boards Do not touch circuit components inside the equi...

Page 14: ...slightly to clear the positioning tab 3 6 Move the bus lever fully to the left 4 until it clicks to enable communication between the controller and module 7 Verify that it is locked firmly in place 8 Attach an end cap terminator 5 to the last module in the system by using the tongue and groove slots as before ATTENTION Removepowerbeforeremovingorinsertingthismodule When youremoveorinsertamodulewit...

Page 15: ...9 ECR or 1769 ECL right or left end cap to terminate the end of the serial communication bus ATTENTION During panel or DIN rail mounting of all devices be sure that all debris forexample metalchipsandwirestrands iskeptfromfallingintothe module Debris that falls into the module could cause damage on powerup Controller Compact I O Compact I O Compact I O Compact I O Compact I O End Cap Top Bottom Si...

Page 16: ...8 screw 5 Place the modules back on the panel and check for proper hole alignment 6 Use the mounting screws to attach the modules to the panel If mounting more modules mount the last one of this group only and put the others aside This reduces remounting time during drilling and tapping of the next group 7 Repeat steps 1 6 for any remaining modules DIN Rail Mount The module can be mounted on these...

Page 17: ...adjacent module are unlocked fully right position 7 Slide the replacement module into the open slot 8 Connect the modules together by locking fully left the bus levers on the replacement module and the right side adjacent module 9 Replace the mounting screws or snap the module onto the DIN rail Ground the Module This product is intended to be mounted to a well grounded mounting surface such as a m...

Page 18: ...do not use cables 1747 CP3 and 1756 CP3 Pin RS 232 RS 422 RS 485 1 Do Not Connect Transmit Data Transmit Receive Data 2 Receive Data Do Not Connect Do Not Connect 3 Transmit Data Do Not Connect Do Not Connect 4 Do Not Connect Receive Data Do Not Connect 5 Common Common Common 6 Do Not Connect Receive Data Do Not Connect 7 Request To Send Request To Send Request To Send 8 Clear To Send Clear To Sen...

Page 19: ...printer adapter cable Figure 3 RS 422 Wiring Diagram Figure 4 RS 485 Wiring Diagram NC NC NC 1 RXD 2 TXD 3 4 COM 5 6 RTS 7 CTS 8 N C 9 CD TXD RXD DSR COM DTR CTS RTS RI 8 2 3 6 7 20 5 4 22 1 3 2 6 5 4 8 7 9 GND 1 ASCII DTE DTE 9 pin 25 pin ASCII TXD NC NC 1 2 3 4 COM 5 RXD RTS CTS 6 7 8 TXD 9 RXD TXD COM TXD RXD RXD TRXD NC NC NC NC 1 2 3 4 COM RTS CTS 5 6 7 8 TRXD 9 TRXD COM TRXD ASCII ...

Page 20: ...20 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 1 Compact I O ASCII Module Notes ...

Page 21: ...saves you time by making the configuration of the module easier for example not having to input a lot of data Connect to Channel 0 of the Module in Alternating Mode on page 34 Connect to Both Channels of the Module in Alternating Mode on page 41 Connect to Both Channels of the 1769 ASCII Module in Simultaneous Mode on page 49 To access these Logix Designer programs see the Knowledgebase Technote 6...

Page 22: ...box The module appears in the configuration tree 5 Right click on the module and choose Properties TIP If you are using RSLogix5000 software version 16 and later and do not see the 1769 ASCII module as an option you must download the module s Add On Profile The Add On Profile can be downloaded and installed from https download rockwellautomation com esd download aspx downloadid addonprofiles RSLog...

Page 23: ...ype a description if needed 9 Assign a slot number to the module 10 Review the Module Definition area and make sure the information is correct 11 Click Change on the General tab to modify the module definition parameters The Module Definition box appears TIP The examples used later in this chapter has electronic keying disabled but compatible keying is suggested For mor information seeElectronic K...

Page 24: ...meters Descriptions Parameter Description Series Module s hardware series Revision Major and minor firmware revision levels used on the module Electronic Keying When you configure a module you specify the slot number for the module However it is possibletopurposelyoraccidentallyplaceadifferentmodule inthatslot Electronickeyinglets you protect your system against the accidental placement of the wro...

Page 25: ...t exceed 200 bytes The module s RPI can be configured through Connection tab RPI can be configured in multiples of 0 5 The RPI can be configured for 1 0 750 0 in multiples of 0 5ms Values entered are rounded down to nearest multiple of 0 5ms for example 2 1ms is rounded down to 2 0ms ASCII protocol configuration can be done under Configuration tab Channels 0 and 1 can have different configuration ...

Page 26: ...e module and the controller Use this tab to define controller to module behavior Select a requested packet interval RPI Choose to inhibit or uninhibit the module Configure the controller so that a loss of connection to this module causes a major fault View module faults TIP Online edits are not possible when the controller is in RUN mode Online edits must be made only when the controller is in Rem...

Page 27: ...connection to the module to be broken and may result in lost data If the module is inhibited the module in the controller organizer displays the attention icon If you inhibit the module while you are online and connected to the module the connection to the module is nicely closed Themodule s outputs will go to the last configured Program mode state If you inhibit the module while online but a conn...

Page 28: ...rties Dialog Box Configuration Tab Parameter Descriptions Parameter Description Channel Choose the channel 0 or 1 for which parameters are configured Baud Rate Enter the baud rate for the channel Valid values are as follows 1200 2400 4800 9600 default 19 200 38 400 57 600 115 200 Baud Rate appears dimmed when controller is in Run mode Online edits can only be done when the mode or key switch is in...

Page 29: ... Carriage Return 0D T Tab 09 Start Delimiter appears dimmed Termination Mode Configure the channel s termination mode These are the valid values Ignore Delimiter Exclude Delimiter Include Delimiter default Termination Mode appears dimmed in Run mode Termination Delimiter Configure the channel s termination delimiter Valid values are any ASCII character 7 bit 0 127 8 bit 0 255 The following special...

Page 30: ... Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module 1769 ASCIIModuleAdvancedConfigurationDialogBox Use this dialog box to configure advanced parameters such as receiving and transmitting data ...

Page 31: ...values Master Slave Immediate default Handshake Mode appears dimmed in Run mode Message Timeout Valid values are in the range of 0 65 535 The default value is 0 Message Timeout appears dimmed in Run mode Pad Setthepadcharacterforreceivedata ValidvaluesareanyASCIIcharacter 7bit 0 127 8 bit 0 255 These are the special characters supported Character Description Dollar Sign 24 Single Quote 27 L Line F...

Page 32: ... This is an example of a Controller Scoped configuration tags Data Types These are the Module Defined data types that are used in the following exercises The 1769 ASCII Add On Profile displays the data types with a descriptive name These dialog boxes differ slightly depending on whether you select Alternating or Simultaneous mode ...

Page 33: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 33 Configure the 1769 ASCII Module Chapter 2 This is an example of Module Defined data types ...

Page 34: ...nformation about the Alternate and Simultaneous modes see I O Memory Mapping on page 71 To access the Logix Designer programs see the Knowledgebase Technote 64203 at https rockwellautomation custhelp com app answers detail a_id 64203 TIP See Connect the D sub Connector Pins on page 18 for detailed information on howtobuildtheappropriatecablefortheRS 232connectionbetweenPCwith a serial port and the...

Page 35: ...Example This example illustrates connecting the cable from your computer to channel 0 of the 1769 ASCII module in alternating mode This is the ladder logic in the Logix Designer program L35ERM_QuickStart_002_V16 ACD MainRoutine The Main Routine resets the values of input and output lengths This zeroes the data in and out ...

Page 36: ...irst scan to the OldRx This identifies the initial RxID number Moves to see if the current RxID has changed that tells when the Data is in the buffer ready to be moved Receives data and then the data is copied A Latched bit is set that identifies when the data has been copied to complete action on the new data Then the new RxID number is moved as the old to set up for new data on the received ...

Page 37: ...ation 1769 UM012B EN P January 2014 37 Configure the 1769 ASCII Module Chapter 2 OutputLadder The Output ladder moves the data in the tag OutData moves it to the output buffer then changes the transaction ID to send the data out ...

Page 38: ...pter 2 Configure the 1769 ASCII Module Configure the Module Properties Use the Module Properties dialog box to configure parameters for the module The following screens illustrate example module settings 1769 ASCII Module General Dialog Box Module Definition Dialog Box ...

Page 39: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 39 Configure the 1769 ASCII Module Chapter 2 1769 ASCII Module Connection Dialog Box 1769 ASCII Module Configuration Dialog Box ...

Page 40: ...40 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module 1769 ASCII Module Advanced Configuration Dialog Box ...

Page 41: ...ed information about the Alternate and Simultaneous modes see I O Memory Mapping on page 71 To access the Logix Designer programs see the Knowledgebase Technote 64203 at https rockwellautomation custhelp com app answers detail a_id 64203 TIP See Connect the D sub Connector Pins on page 18 for detailed information on howtobuildtheappropriatecablefortheRS 232connectionbetweenPCwith a serial port and...

Page 42: ... ASCII Module Ladder Logic Example This ladder logic example illustrates how to connect to both channels of the module in alternating mode This is the ladder logic in the Logix Designer program L35ERM_QuickStart_003_V16 ACD MainRoutine The Main Routine Zeros out the InData OutData array lengths ...

Page 43: ...M012B EN P January 2014 43 Configure the 1769 ASCII Module Chapter 2 InputChannel0 The Input Channel0 does the following tasks On first scan stores current value of Rx0 Transaction ID channel 0 as most recent Monitors the Rx0 Transaction ID ...

Page 44: ...ing tasks On first scan store current value of Rx1 Transaction ID channel 1 as most recent When the Rx Transaction ID changes it indicates there is new data Copies data from the module s Input Tags to a STRING tag InData1 if CNI 1 Indicates to the MainRoutine that new data has arrived Saves this value of Rx Transaction ID so you can detect the next change ...

Page 45: ...utput Channel0 does the following tasks Sets the length in the module s output tag to the number of characters to be sent Copies the data from the STRING OutData0 to the module s output tag If CN0 0 manually triggers the Tx Transaction ID in the 1769 ASCII Module s output tag This tells it that you have some data for it to send ...

Page 46: ...l1 The Output Channel1 does the following tasks Sets the length in the module s output tag to the number of characters to be sent Copies data from the STRING OutData1 to the module s output tag If CN0 1 manually triggers the Tx Transaction ID in the module s output tag This tells it that you have some data for it to send ...

Page 47: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 47 Configure the 1769 ASCII Module Chapter 2 1769 ASCII Module General Dialog Box 1769 ASCII Module Connection Dialog Box ...

Page 48: ...48 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module 1769 ASCII Module Configuration Dialog Box 1769 ASCII Module Advanced Configuration Dialog Box ...

Page 49: ...nformation about the Alternate and Simultaneous modes see I O Memory Mapping on page 71 To access the Logix Designer programs see the Knowledgebase Technote 64203 at https rockwellautomation custhelp com app answers detail a_id 64203 TIP See Connect the D sub Connector Pins on page 18 for detailed information on howtobuildtheappropriatecablefortheRS 232connectionbetweenPCwith a serial port and the...

Page 50: ...SCII Module Ladder Logic Example This is the ladder logic in the Logix Designer project L35ERM_QuickStart_004_V16 ACD This example program illustrates connecting the cable from your computer to both channels of the 1769 ASCII module MainRoutine The Main Routine zeros out the InData OutData arrays ...

Page 51: ...ary 2014 51 Configure the 1769 ASCII Module Chapter 2 InputChannel0 The Input Channel0 does the following tasks Stores the current value on the first scan as the current value of Rx0 Transaction ID channel 0 as most recent Monitors the Rx0 Transaction ID ...

Page 52: ...rent value on first scan of Rx Transaction ID channel 1 as most recent Monitors the lower 8 bits of Rx Transaction ID upper 8 bit are Tx Indicates new data when the Rx Transaction ID changes Copies the data from the module s Input Tags to a STRING tag InData1 Indicates to the MainRoutine that new data has arrived Saves the value of Rx Transaction ID so you can detect next change ...

Page 53: ...2 Output Channel0 The Output Channel0 does the following tasks Copies the data from the STRING OutData0 to the module s output tag Copies the Length of the number of bytes of the OutputData0 array Triggers the Tx Transaction ID in the module s output tag This tells it that you have some data for it to send ...

Page 54: ...ule Output Channel1 The Output Channel1 does the following tasks Copies data from the STRING OutData1 to the module s output tag Copies the Length of the number of bytes of the OutputData1 array Triggers the Tx Transaction ID in the module s output tag This tells it that you have some data for it to send ...

Page 55: ...e the 1769 ASCII Module Chapter 2 When the I O module properties appear enter the following information a name the appropriate slot number specify a Comm Format of Data_INT and enter the following values Data Type AB 1769_ASCII C 0 Data Type AB 1769_ASCII_80Bytes_80Bytes I 0 ...

Page 56: ...56 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module DataType AB 1769_ASCII_80Bytes_80Bytes O 0 1769 ASCII Module General Dialog Box ...

Page 57: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 57 Configure the 1769 ASCII Module Chapter 2 1769 ASCII Module Connection Dialog Box 1769 ASCII Module Configuration Dialog Box ...

Page 58: ...58 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module 1769 ASCII Module Advanced Configuration Dialog Box ...

Page 59: ...nstructions to prepare the 1769 ASCII module 1 Open your project 2 Right click the 1769 ASCII module and choose Properties Make sure Series and Revision match with the hardware 3 Review and make sure you have the correct module 4 Type a name 5 Type a Description 6 Review the Module Definition area and make sure the information is correct 7 Click Change on the General tab to modify the module defin...

Page 60: ...figure channel parameters under the channel tab Each channel can be configured for 4 200 characters For Simultaneous Mode the sum of Channel 1 and Channel 2 for Receive and Transmit characters cannot exceed 200 bytes 9 Module s RPI can be configured through Connection tab RPI can be configured in multiples of 0 5 ...

Page 61: ...ule Chapter 2 10 ASCII protocol configuration can be done under Configuration tab Channels 0 and 1 can have different configuration Advanced ASCII protocol configuration like Byte Swap Mode can be done under Advanced Configuration tab Channels 0 and 1 can have different advanced configurations ...

Page 62: ...module is functioning properly follow these instructions 1 Open the RSLogix 500 software 2 Create a project In this example the name of the project is Micro1500_Quickstart_001 3 In the project space double click I O Configuration 4 Select the slot number In this example the 1769 ASCII module is in slot 1 5 From the list select Other Requires I O Card Type ID 6 When the I O module properties appear...

Page 63: ...69 UM012B EN P January 2014 63 Configure the 1769 ASCII Module Chapter 2 9 From the Generic Extra Data Config tab enter your application data by referring to the Configuration File 10 Click OK 11 Create your program by using these tags ...

Page 64: ... RSLogix 500 software has data files in the project space to create different tags In this example the following tags were used Input Name Type File Ref Value InData String ST11 0 Empty OutData String ST11 1 Enter your string NewInput Bool B3 0 0 NewRx Int N7 1 0 OldRx Int N7 0 0 Intermediate Storage Int N7 2 0 ...

Page 65: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 65 Configure the 1769 ASCII Module Chapter 2 ...

Page 66: ...66 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module Output ...

Page 67: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 67 Configure the 1769 ASCII Module Chapter 2 ...

Page 68: ... Place the controller in Run mode 14 Connect the computer to the 1769 ASCII module Connect channel 0 of the 1769 ASCII module to a COM port of your computer with a cable constructed per the specifications on page 21 15 Run the HyperTerminal application 16 Configure HyperTerminal so that the configuration matches the ASCII device for communication rate and framing 17 Turn off flow control 18 In the...

Page 69: ...ntered into Outdata tag back to your screen This is not an echo program Input is received and stored in a string file Indata ST11 0 New data triggers the output from another file Outdata ST11 1 The data back on the terminal is not the same as the data sent from the terminal You must put in a data string in Outdata ST11 1 before running the program ...

Page 70: ...70 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 2 Configure the 1769 ASCII Module Notes ...

Page 71: ...ta once the Tx Transaction ID changes after the controller transitions into Run mode The 1769 ASCII module delivers data received on the serial ports to the controller even when it is not in Run mode When not in Run mode the module acts as if Master Handshaking is not enabled Therefore new data is placed in the input tag and the Rx Transaction ID increments When it receives new serial data after t...

Page 72: ...al S O Ch0RxID 3 ReceiveTransactionIDRequest Usedwith Ch1RxID for handshake mode 2 Reserved Tx Transaction ID Ch1 Local S O Ch1TxID Transmit Transaction ID 3 Reserved Rx Transaction ID Request Ch1 Local S O Ch1RxID 4 ReceiveTransactionIDRequest Usedwith Ch0RxID for handshake mode 4 Reserved CNI Local S O RxChNumber Channelnumber of requested input data This bit is set by the PLC controller or othe...

Page 73: ...ck Local S I Ch0RxID Receive Transaction ID Request Used with Ch1RxID for handshake mode 3 15 14 13 12 11 10 TG1 TS1 ND1 HE1 NR1 RF1 TF1 PA1 RO1 TO1 Local S I Ch1Status Ch1 Status See Status Descriptions on page 76 4 Reserved CNI Local S I RxChNumber Channel number of the input data This bit is set by the 1769 ASCII module to tell the user program from which port the data was received 5 Reserved C...

Page 74: ...Length The amount of data being transmitted 4 Character 1 Character 0 Local S I Ch0RxData This defines the receive ASCII character for the tag 5 Character 3 Character 2 Local S I Ch0RxData Character Character Local S I Ch0RxData x 2 Last Character Character Local S I Ch0RxData Channel 1 Data x 1 Tx ID Acknowledged Rx Transaction ID Local S I Ch1TxAck Local S I Ch1RxID This is a feedback status of ...

Page 75: ...Character 1 Character 0 Local S O Ch0TxData This defines the transmit ASCII character for the tag 5 Character 3 Character 2 Local S O Ch0TxData Character Character Local S O Ch0TxData x 3 Last Character Character Local S O Ch0TxData Channel 1 Data x 1 Reserved Tx Transaction ID Local S O Ch1TxId Transmit Transaction ID x 2 Reserved Rx Transaction ID Request Local S O Ch1RxId 4 Receive Transaction ...

Page 76: ... has occurred on the line and degraded the signal This bit is set when the receive FIFO contains a message that parity error occurred in on of the incoming bytes This bit is reset when the receive FIFO is emptied or when a new message is received with no parity error ChxRxFIFOEmpty RF Data in the receive FIFO The FIFO is not empty The input FIFO has not sent all of its data to the CompactBus inter...

Page 77: ...RxStartDelimiter 5 Receive Start Delimiter 1 0 127 255 0 0x7f 0 127 for 7 bit data 0 0xff 0 255 for 8 bit data Ch0RxEndMode 6 Receive Record End Mode 0 2 0 ignore 1 exclude 2 include end delimiter Ch0RxEndDelimiter 7 Receive End Delimiter 1 0 127 255 0 0x7f 0 127 for 7 bit data 0 0xff 0 255 for 8 bit data Module Production Data Ch0RxPadChar 8 Pad Character 1 0 127 255 0 0x7f 0 127 for 7 bit data 0...

Page 78: ... 0 255 for 8 bit data Module Production Data Ch1RxPadChar 23 Pad Character 1 0 127 255 0 0x7f 0 127 for 7 bit data 0 0xff 0 255 for 8 bit data Ch1RxByteSwapMode 24 Receive Swap Mode 0 2 0 disabled 1 16 bit 2 32 bit Ch1RxByteHandshakeMode 25 Master Handshake Mode 0 1 0 master slave handshake 1 produce immediate CH1RxMessageTimeout 26 Message Time Out 0 65535 0 none 1 to 65535 ms Serial Port Transmi...

Page 79: ...e following Number of data bits per character 7 or 8 Parity odd even or none Number of stop bits 1 or 2 The 1769 ASCII module provides several options to match the choices available with your ASCII device because they must match exactly Frame format can be handled also in the Add On Profile on the Configuration tab Although the Add On Profile lets you select only six options You can populate these...

Page 80: ...de The module also makes the new string available to the CompactBus Master in the Produce buffer The receive delimiters can be set to any valid ASCII character that can be received over the link Be sure to avoid setting the delimiter to a value outside of the valid range for your data bits For example a data bit size setting of 7 gives you a delimiter range of 0 127 decimal 00 7F hexadecimal If yo...

Page 81: ...y on detection of an overflow condition Set Up the Receive Character Buffer Length The Receive Character Buffer Length parameter is the number of characters that the 1769 ASCII module can receive from the ASCII device into the Input File buffer When this value is exceeded the 1769 ASCII module generates an overflow which forces the data into the 1769 ASCII module transmit buffer The Produce buffer...

Page 82: ...proceeded by its associated 4 byte header The combined length of both channels data cannot exceed the module s 200 byte ASCII buffer limit Valid settings for the Transmit Character Buffer Length parameter are 0 200 If 0 is selected the serial port for data is deactivated Any information in the output file is ignored If the total size of the two channels is greater than 200 characters the Alternate...

Page 83: ...and including the defined delimiter are sent to the ASCII device If no delimiter is contained within the string then the 1769 ASCII module sends data received from the CompactBus Master to the ASCII device IfTX_String_Length 0 The 1769 ASCII module receives data sent from the CompactBus Master ignoring any embedded terminator It sends the number of characters defined in the Max Number of Transmit ...

Page 84: ...he channel s associated ASCII data CNI or CNO are tags names from Generic module the Add On Profile term for indicating which channel to transmit data is Local S O TxChNumber Bit 0 indicates channel 0 and Bit 1 indicates channel 1 If the module is configured to accept both channels data the Consume buffer sends two ASCII buffers each preceded by its associated header Under this configuration the c...

Page 85: ...s data cannot exceed the module s 200 byte ASCII buffer limit The ASCII data is updated when the delimiter is received the buffer completely fills or when a time out event occurs Every time the buffer is updated for example the Transaction ID is increments when the delimiter receives an overflow condition The data is valid only up to the received delimiter in your memory map The status byte repres...

Page 86: ...86 Rockwell Automation Publication 1769 UM012B EN P January 2014 Chapter 3 I O Memory Mapping Notes ...

Page 87: ...or Use with a MicroLogix Controller on page 57 Use the following quick start to make sure your ASCII module is functioning properly 1 Open Logix Designer software 2 Create a new project In this example the name of the project is L35 CR_Quickstart_001 3 Create a 1769 MODULE generic in the I O configuration 4 When the I O module properties appear enter the following information a name the appropriat...

Page 88: ...n parameters in the Local slot C tag data members All other parameters are 0 This is a controller scoped configuration tag Data Word Value Decimal Meaning 0 0 Alternating mode 1 3 Framing is 8N1 2 0 9600 baud 3 80 Max Rx Characters 6 1 Use an Rx End delimiter but exclude it from the input buffer 7 13 Use a Carriage Return as the Rx End delimiter 10 1 Produce data when available 12 80 Max Tx Charac...

Page 89: ... Name Type Value Controller scoped Tags InData STRING Empty Len 0 OutData STRING Empty Len 0 NewInput BOOL 0 Program scoped Tags CrLf STRING A two character string of R L NewRx INT 0 NumInts INT 0 OldRx INT 0 LenIn Alias to ASCII module s I Data 7 LenOut Alias to ASCII module s O Data 7 TxOut0 Alias to ASCII module s O Data 0 TxRxIn0 Alias to ASCII module s I Data 0 ...

Page 90: ... Automation Publication 1769 UM012B EN P January 2014 Appendix A Configure the 1769 ASCII Module as a Generic Module 8 Create two ladder routines in the MainProgram named Input and Output This is the main routine ...

Page 91: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 91 Configure the 1769 ASCII Module as a Generic Module Appendix A 9 Enter rungs into the three routines as follows input ...

Page 92: ...92 Rockwell Automation Publication 1769 UM012B EN P January 2014 Appendix A Configure the 1769 ASCII Module as a Generic Module output ...

Page 93: ...er 13 Run HyperTerminal 14 Configure HyperTerminal so that the configuration matches the ASCII device for baud rate and framing 15 Turn off flow control 16 In HyperTerminal type in a value Type some text into HyperTerminal When you press enter the ASCII module returns the same line of text back to your screen TIP For a detailed example see the 1769 ASCII module example in RSLogix 5000 software ver...

Page 94: ...94 Rockwell Automation Publication 1769 UM012B EN P January 2014 Appendix A Configure the 1769 ASCII Module as a Generic Module Notes ...

Page 95: ... is not configured or no bus master Solid green In run mode The status indicator blinks red once during powerup Blinking green Bus master is detected configuration is accepted and in program mode Blinking red Module configuration from the bus master was not valid Tx0 Tx1 Blinking green Transmitting data on that serial port Rx0 Rx1 Blinking green Receiving data on that serial port OK TX0 TX1 RX0 RX...

Page 96: ...96 Rockwell Automation Publication 1769 UM012B EN P January 2014 Appendix B Status Indicators Notes ...

Page 97: ... error Table 11 Global Module Configuration Errors Value Hex Meaning Description 0 No error The 1769 ASCII module has no module specific errors 401 Max output array size exceeded The maximum output array size is too large In alternating mode channel 0 and channel 1 must have less than 496 transmit bytes In simultaneous mode channel 0 and channel 1 must have less than 496 transmit bytes collectivel...

Page 98: ...ord end mode The receive record end mode specified is invalid 446 Invalid receive record end delimiter The receive record end delimiter specified is invalid 447 Invalid pad character The pad character specified is invalid 448 Invalid receive swap mode The receive swap mode specified is invalid 449 Invalid master handshake mode The master handshake mode specified is invalid 44A Invalid message time...

Page 99: ...start delimiter specified is invalid 485 Invalid receive record end mode The receive record end mode specified is invalid 486 Invalid receive record end delimiter The receive record end delimiter specified is invalid 487 Invalid pad character The padcharacterspecified is invalid 488 Invalid receive swap mode The receive swap mode specified is invalid 489 Invalid master handshake mode The master ha...

Page 100: ...nuary 2014 Appendix C Error Codes Logix Designer Example Report To generate a report in Logix Designer follow these instructions 1 From the File menu choose Generate Report 2 Select what you want to see in the report 3 Print to a PDF file or another format ...

Page 101: ...Rockwell Automation Publication 1769 UM012B EN P January 2014 101 Error Codes Appendix C ...

Page 102: ...status window with error code 179h 4 In the project space choose Controller Function Files IOS tab This IOS tab corresponds with the module number in the rack and returns the error number The RSLogix 500 software explains the error IMPORTANT If a 1769 I O module fault occurs you must cycle power to the controller after clearing the major fault I O communication is not restored until after the powe...

Page 103: ... Rings bell 32 40 20 0100000 Space SP 8 10 08 0001000 ControlH Backspaceonsome terminals 33 41 21 0100001 9 11 09 0001001 Control I Horizontal tab on some terminals 34 42 22 0100010 10 12 0A 0001010 Control J Line feed 35 43 23 0100011 11 13 0B 0001011 Control K VT 36 44 24 0100100 12 14 0C 0001000 Control L Form feed on some terminals 37 45 25 0100101 13 15 0D 0001101 Control M Carraige return 38...

Page 104: ...150 68 1101000 h 70 106 46 1000110 F 105 151 69 1101001 i 71 107 47 1000111 G 106 152 6A 1101010 j 72 110 48 1001000 H 107 153 6B 11010111 k 73 111 49 1001001 I 108 154 6C 1101100 l 74 112 4A 1001010 J 109 155 6D 1101101 m 75 113 4B 1001011 K 110 156 6E 1101110 n 76 114 4C 1001100 L 111 157 6F 1101111 o 77 115 4D 1001101 M 112 160 70 1110000 p 78 116 4E 1001110 N 113 161 71 1110001 q 79 117 4F 100...

Page 105: ... each product revision When a Logix5000 controller begins communicating with a module this set of keying attributes is considered Topic Page Electronic Keying 105 Exact Match 106 Compatible Keying 107 Disabled Keying 109 Table 15 Keying Attributes Attribute Description Vendor The manufacturer of the module for example Rockwell Automation Allen Bradley Product Type The general type of the module fo...

Page 106: ...the software to match precisely to establish communication If any attribute does not match precisely I O communication is not permitted with the module or with modules connected through it as in the case of a communication module Use Exact Match keying when you need the system to verify that the module revisions in use are exactly as specified in the project such as for use in highly regulated ind...

Page 107: ...e of a certain Major Revision with one of the same catalog number and the same or later that is higher Major Revision In some cases the selection makes it possible to use a replacement that is a different catalog number than the original For example you can replace a EXAMPLE In the following scenario Exact Match keying prevents I O communication The module configuration is for a 1756 IB16D module ...

Page 108: ...the system By doing this you can avoid the case of a physical module rejecting the keying request because it is an earlier revision than the one configured in the software EXAMPLE In the following scenario Compatible Keying prevents I O communication The module configuration is for a 1756 IB16D module with module revision 3 3 The physical module is a 1756 IB16D module with module revision 3 2 In t...

Page 109: ...ule with module revision 2 1 The physical module is a 1756 IB16D module with module revision 3 2 In this case communication is allowed because the major revision of the physical module is higher than expected and the module determines that it is compatible with the prior major revision IMPORTANT Changing electronic keying selections online may cause the I O communicationconnectiontothemoduletobedi...

Page 110: ...he module configuration is for a 1756 IA16 digital input module The physical module is a 1756 IF16 analog input module In this case communication is prevented because the analog module rejects the data formats that the digital module configuration requests Module Configuration Vendor Allen Bradley Product Type Digital Input Module Catalog Number 1756 IA16 Major Revision 3 Minor Revision 1 Physical...

Page 111: ...cation is allowed because the two digital modules share common data formats IMPORTANT Changing electronic keying selections online may cause the I O communicationconnectiontothemoduletobedisruptedandmayresultin a loss of data Module Configuration Vendor Allen Bradley Product Type Digital Input Module Catalog Number 1756 IA16 Major Revision 2 Minor Revision 1 Physical Module Vendor Allen Bradley Pr...

Page 112: ...112 Rockwell Automation Publication 1769 UM012B EN P January 2014 Appendix E Using Electronic Keying Notes ...

Page 113: ...12B EN P September 2013 Added 1769 ASCII module AOP tag definitions Updated the configuration examples and example file names Rearranged content and updated warnings and attentions Updated configuration to include the CompactLogix 5370 L3 controller and provided a link to the Knowledgebase Technote 64203 Added information about Studio 5000 software Updated I O Memory Mapping to include the AOP tag...

Page 114: ...114 Rockwell Automation Publication 1769 UM012B EN P January 2014 Appendix F History of Changes Notes ...

Page 115: ... mode 21 connector 9 Compact I O description 13 Compact I O ASCII Module 9 CompactLogix 21 87 compatible keying 107 configuration file 77 parameter operation 79 connection 24 connector pins 18 controller scoped 32 D data bits 28 buffer 79 buffer mode 79 format 24 format type 24 frame format 79 padding 82 types 32 DIN rail 9 16 mount 14 replace module 17 disabled keying 109 D sub connector 18 DTE 1...

Page 116: ...er length 81 data 29 31 data padding 82 delimiter mode 79 delimiters 80 timeout 84 reports 100 example 102 resources 8 revision 24 RPI 25 26 27 RS 232 7 9 wiring diagram 18 19 RS 422 7 9 RS 485 7 9 S serial 7 34 49 cable 13 18 41 communication 15 data 28 data formats 28 port 34 serial output data writing 85 series 24 simultaneous mode 25 input file 74 output file 75 spacing minimal 15 stationary b...

Page 117: ......

Page 118: ... manual You can contact Customer Support for initial help in getting your product up and running New Product Satisfaction Return Rockwell Automation tests all of its products to help ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures Documentation Feedback Your comments will...

Reviews: