Since there are many variables and requirements associated with any particular installation, Allen-Bradley does not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication.
Page 3
Programmable Controllers, Part 2 - Equipment Requirements and Tests. For specific information required by EN 61131-2, see the appropriate sections in this publication, as well as the Allen-Bradley publication Industrial Automation Wiring and Grounding Guidelines For Noise Immunity, publication 1770-4.1.
Page 4
Notes: Publication 1789-UM002A-EN-P - October 2000...
Page 5
• when you are ready to integrate your application with the I/0 devices, controllers, and networks in your system. • after you perform these actions: – develop the basic code for your application – perform isolated tests of your application Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 6
Preface How to Use this Manual This manual is divided into the basic tasks that you perform while programming a SoftLogix controller. Each chapter covers a main task, such as communicating over a specific network. For each main task, the chapter: •...
Determining total connection requirements ..2-12 Selecting a System Overhead Percentage ....2-13 Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 8
Table of Contents Chapter 3 Controlling Motion Devices Using This Chapter ......3-1 Configuring Your System for a Motion Card .
Page 9
Configuring user mode......6-13 Programming ASCII instructions ....6-13 Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 10
Table of Contents Appendix A Windows NT Considerations Using This Appendix......A-1 Windows NT Objects .
The SoftLogix controller is another platform in the Logix environment. The SoftLogix controller offers: • high-speed logic execution • seamless integration of control, motion, and information structures • compatibility with a range of Allen-Bradley, Rockwell Software, and Microsoft-compatible products Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Getting Started Creating and Configuring The following diagram illustrates the steps you follow to create and configure a SoftLogix controller. Use the SoftLogix chassis monitor to the Controller perform these steps. System setup for this quick start: • SoftLogix5800 controller in slot 1 of the Launch the virtual chassis chassis monitor...
The chassis monitor is your window to monitoring IMPORTANT the SoftLogix system. If you close the chassis monitor, the controller and it’s modules are still running. To stop a controller or associated module, remove it from the virtual chassis. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Getting Started Creating the controller Create a new module. Create the controller Select Slot → Create Module or right click the appropriate slot and select Create. Select the controller. Specify the chassis slot number. Click OK Configure the controller. Specify configuration settings for the controller: •...
• enter the label name for the card (this is the name you wrote on the label of the card to help you identify the card from others in the same computer) Click Finish. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Getting Started Creating and Downloading The following diagram illustrates the steps you follow to create and download a project. Use RSLogix 5000 programming software to a Project perform these steps. System setup for this quick start: • SoftLogix5800 controller in slot 1 of the virtual chassis Create a project •...
The software uses the project name you enter with an .ACD extension to store your project. Select a controller type. Name the project. Describe the project (optional). Select where to store the project (typically use the default directory). Click OK. The software displays: controller organizer Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Getting Started Changing project properties View properties for Controller quick_start. Create a project Place the cursor over the Controller quick_start folder. Click the right mouse button and select Properties. View the General tab. The screen defaults to the General tab. Verify that the controller settings are correct.
Create a new module. Configure I/O modules Place the cursor over the I/O Configuration folder. Click the right mouse button and select New Module. Select the 1784-PCICS card. Select 1784-PCICS. Click OK. continued Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 20
1-10 Getting Started Adding a 1784-PCICS communication card to the project ( continued ) Identify the communication card. Configure I/O modules You should enter a name. Verify the slot number. Describe the device (optional). Specify electronic keying. Click Next. Use default values for this example. If you do not want to go through Use the Create wizard to configure the communication card.
Create a new module. Configure I/O modules Place the cursor over the local 1784-PCICS card. Click the right mouse button and select New Module. Select an I/O adapter. Select the 1794-ACN15 FLEX adapter. Click OK. continued Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 22
1-12 Getting Started Adding an I/O adapter to the project ( continued ) Identify the I/O adapter. Configure I/O modules You should enter a name. Verify node number and chassis size. Describe the device (optional). Select the communication format. Specify electronic keying. Click Next.
Place the cursor over the remote 1794-ACN15 adapter. Click the right mouse button and select New Module. Select an I/O module to add. Select a catalog number. For this quick start example, select 1794-IA16. Click OK. continued Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 24
1-14 Getting Started Adding an I/O module to the project ( continued ) These screens are specific to the 1794-IA16 input module. Identify the I/O module. Configure I/O modules You should enter a name. Verify the slot number. Describe the device (optional). Select the communication format.
View the General tab. The screen defaults to the General tab. Verify that the module settings are correct. Make changes if necessary. Click OK. The tabs that appear depend on the type of module. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
1-16 Getting Started Viewing I/O tags View the tags for the controller. Configure I/O modules Place the cursor on the Controller Tags folder and double-click. The software displays the module-defined tags for the I/O modules you created. The 1794-IA16 input module is in slot 0 of the remote rail.
Select the data type. Select TIMER. Click OK. The software displays the tag. Click + to display the members of the TIMER structure. You might have to resize the column to see the tag extensions. continued Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
1-18 Getting Started Documenting I/O with alias tags Create an alias tag input_1 for flex_adapter:0:I.Data.1. Create tags Enter the name of the tag. Tab here or click in the box. Click here to select tag to reference. Select an input data word. Click here to display a grid of bits.
MainTask, MainProgram, and MainRoutine. Use these defaults for this example. Double-click MainRoutine. The software displays an empty routine. 2. Enter an XIO instruction. Drag and drop the XIO instruction on an empty rung. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 30
1-20 Getting Started Entering logic ( continued ) Assign a tag to the XIO instruction. Enter logic Double-click the tag area of the instruction. Use the drop-down menu to select input_1 . The software displays an incomplete rung. Enter this logic. To save the project, from the File menu, select Save.
Download the project from the Communications menu. In RSLogix5000 software, select Communication → “Who Active”. Select the SoftLogix controller in slot 1 of the virtual backplane. Click Download. Confirm the download when prompted. Apply the path to the project. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
1-22 Getting Started Viewing program scan time View properties for the MainProgram. View status Place the cursor over the MainProgram folder. Click the right mouse button and select Properties. Select the Configuration tab. The Configuration tab displays the maximum and last scan times for the program. Publication 1789-UM002A-EN-P - October 2000...
Once your controller is created and operating, you can use RSLogix5000 programming software to develop and test your control application. Use the remaining chapters in this manual as reference material for how the SoftLogix controller operates in the Logix environment. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 34
1-24 Getting Started Notes: Publication 1789-UM002A-EN-P - October 2000...
Make a ControlNet connection through 1784-PCICS card. Make a DeviceNet connection through 1784-PCIDS card. For information about: See page using the chassis monitor developing programs how the SoftLogix system uses connections Allen-Bradley PLCs selecting a system overhead percentage 2-13 Publication 1789-UM002A-EN-P - October 2000...
What Is SoftLogix? Using the Chassis Monitor The SoftLogix chassis monitor is your window into the SoftLogix system so you can monitor the system components. The chassis monitor models a chassis. You install virtual devices in the virtual chassis to represent the controller and cards in your system. The chassis monitor is your interface to the SoftLogix controller.
Page 37
CPU to use for this controller. The default is CPU 0. Channel 0 Serial Port Select which COM port to use for serial communications. Select COM1, COM2, COM3, or COM4. The default is none. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
What Is SoftLogix? Determining a memory size The memory size you specify is the amount of RAM IMPORTANT in your computer that you want to allocate to the SoftLogix controller. This allocated RAM is not available to Windows NT or any other application. The following equations provide an estimate of the memory needed for a controller.
32 task 1 configuration status watchdog program 32 program 1 program (local) main routine tags fault routine other routines controller (global) tags I/O data system-shared data Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
What Is SoftLogix? Defining tasks A task provides scheduling and priority information for a set of one or more programs. You can configure tasks as either continuous or periodic. The SoftLogix controller supports as many as 32 tasks, only one of which can be continuous. A task can have as many as 32 separate programs, each with its own executable routines and program-scoped tags.
Page 41
E. When the dwell time completes, the continuous tasks restarts, unless a higher priority task is running. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
What Is SoftLogix? Defining programs Each program contains program tags, a main executable routine, other routines, and an optional fault routine. Each task can schedule as many as 32 programs. The scheduled programs within a task execute to completion from first to last.
DIN rail. The limit of scheduled connections for I/O depends on the IMPORTANT communication device the controller uses to control the I/O. Each 1784-PCICS communication card supports 127 connections. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
2-10 What Is SoftLogix? To conserve the number of connections that are available, place digital I/O modules together in the same location and use a rack-optimized connection. To select a rack-optimized connection, select a “rack-optimized” option for the communication format when you add the communication device and I/O modules to the controller project in RSLogix 5000 programming software.
As you increase the number of controllers that can consume a produced tag, you also reduce the number of connections the controller has available for other operations, like communications and I/O. consumed Each consumed tag requires one connection for the controller that is consuming the tag. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
2-12 What Is SoftLogix? Determining total connection requirements Each SoftLogix controller supports 250 connections. Use the following table to tally connection requirements for a controller: Connection Type: Device Connections Total Quantity: per Device: Connections: I/O device (direct connection over a ControlNet link) 1784-PM02AE motion card (4 devices maximum per computer) local 1784-PCIC, -PCICS communication card remote ControlNet communication device (such as a...
This function lets the controller take care of communication requests that occur from other controllers or from queued requests from within the controller’s application program. If communications are not completing fast enough, increase the system overhead percentage. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 48
2-14 What Is SoftLogix? Notes: Publication 1789-UM002A-EN-P - October 2000...
You make all field terminations to the 1784-PM02AE card using the 1784-PM02AE-TP01 or 1784-PM02AE-TP03 termination panel and associated cable. • RSLogix5000 programming software to configure the motion card and its associated axes (2 per card) Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Controlling Motion Devices Step 1: Install the hardware Make sure the 1784-PM02AE motion card is properly installed in a 32-bit, primary PCI slot in the computer. card identification switch connect 1784-PM02AE card to termination panel make field connections to termination panel •...
• enter the label name for the card (this is the name you wrote on the label of the card to help you identify the card from others in the same computer) You can specify any slot number greater than 0 for the motion card. RSLinx software resides in slot 0. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 52
Controlling Motion Devices The chassis monitor shows the 1784-PM02AE card as a virtual module in the SoftLogix chassis. The LEDs on the virtual monitor emulate a 1756-MO2AE motion module. This chassis monitor has a 1784-PM02AE card installed in slot 3. Publication 1789-UM002A-EN-P - October 2000...
2 Right-click to select New Module and add a 1784-PM02AE motion card. 3. Specify the appropriate communication card settings. This must be the same slot number you specified on the SoftLogix chassis monitor. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Controlling Motion Devices Creating an Axis To create an axis, click New Axis in the module properties window. Make sure you enter a name. Specify this information: In this field: Type: Name The name of the axis. Description A description of the axis (optional). Publication 1789-UM002A-EN-P - October 2000...
(You assign a motion card and channel to the axis later.) In this field: Select the: Type Type of axis you want Positioning Mode Type of axis positioning you want to use 3. Click OK. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 56
Controlling Motion Devices 4. On the Group tab, assign a motion group. Then: create a new motion group Click New Group. use an existing motion group Go to Step 7. During configuration, you must name and configure IMPORTANT a motion group, which results in a MOTION_GROUP tag.
Page 57
General Fault Type Fault type for your axis 8. Click OK. 9. On the Units tab, define the position units in which you want to program (e.g., meters, yards, feet, degrees). 10. Click OK. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 58
3-10 Controlling Motion Devices 11. To continue configuring your axis, complete the entries on the other tabs. When finished with the entries on a tab, click OK. The diagnostic testing and auto tuning options are IMPORTANT available only when the controller is online. Before going online, complete the configuration of all the motion cards and download your application program.
5. Select the Tune Servo tab and run auto tuning. 6. When diagnostic testing and auto tuning are complete, click OK. For more information about hookup diagnostics, see the SoftLogix Servo Card Setup and Configuration User Manual, publication 1784-UM003. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
3-12 Controlling Motion Devices Developing Logic for To write a motion application program, you can insert motion instructions directly into your ladder logic program. Motion Control The motion instructions operate on one or more axes. You must identify and configure axes before you can use them. For more information on individual motion instructions, see the Logix5000 Controllers Motion Instruction Set Reference Manual, publication 1756-RM007.
For example, a loss of encoder feedback or an actual position exceeding an overcareful limit will cause faults. The motion faults are considered type 2 faults with error codes from 1 to 32. See Logix5000 Controllers Common Procedures Programming Manual, publication 1756-PM001. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 62
3-14 Controlling Motion Devices The following figure shows several rungs of a motion control application program. Rung 0: Enables the Feed and Cut axes when you press the servo_on button. Rung 1: Jogs the Feed axis in the positive direction when you press the jog_plus button.
1, “Getting Started.” • RSLogix 5000 programming software to configure the communication card as part of the SoftLogix system • RSNetWorx for ControlNet software to schedule the SoftLogix Allen-Bradley PLCs system on the network Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a ControlNet Link Step 1: Install the hardware Make sure the 1784-PCICS communication card is properly installed in the computer. You need to: • Install the card in any available PCI slot within the computer. It does not matter which PCI slot you use for the communication card.
By creating the card in the virtual chassis, you install the communication driver information needed by the SoftLogix controller. Do not use RSLinx to install the communication driver for either the 1784-PCICS or 1784-PCIC communication card. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 66
Communicating with Devices on a ControlNet Link The chassis monitor shows the 1784-PCICS card as a virtual module in the SoftLogix chassis. The LEDs on the virtual monitor emulate a 1756-CNB communication module. This chassis monitor has a 1784-PCICS card installed in slot 2. Publication 1789-UM002A-EN-P - October 2000...
4. This must be the same slot number you specified on the SoftLogix chassis monitor. The virtual backplane driver must be installed via RSLinx software before you can download a project to the SoftLogix controller. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 68
Communicating with Devices on a ControlNet Link Complete your system configuration by adding the remote communication devices and appropriate I/O modules. 5. In the Controller Organizer, select the local 1784-PCICS communication you just added. Add and configure the remote communication device (1794-ACN15 in this example) 6.
Every device on the network must be in Program or Remote Program mode for the software to re-write all its connections. If a device is not in the correct mode, the software prompts you to let it change the device’s mode. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a ControlNet Link Placing ControlNet I/O The SoftLogix controller supports as many communication cards as you have PCI slots in the computer. Each Logix-based communication module supports a limited number of scheduled and unscheduled connections. Take these limits into account when designing your system: Device: Description:...
Working with a rack-optimized connection The rack-optimized connection creates a DINT element for each possible I/O module connected to the device “remote_flex.” The array remote_flex:I.Data contains the possible input elements; the remote_flex:O.Data contains the possible output elements. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-10 Communicating with Devices on a ControlNet Link The tags for the individual, digital I/O modules are actually aliases back into the rack-optimized array tag. For example “remote_flex:0:I” is an alias to “remote_flex:I.Data[0]. These digital I/O modules were configured with a rack-optimized communication format to take advantage of the rack-optimized array tag created for the communication device.
Using this communication Uses a Which you method: connection: can cache: CIP data table read or write PLC-2, PLC-3, PLC-5, or SLC (all types) CIP with Source ID CIP generic block-transfer read or write Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-12 Communicating with Devices on a ControlNet Link Communicating with another Logix-based controller All Logix-based controllers can use MSG instructions to communicate with each other. The following examples show how to use tags in MSG instructions between Logix-based controllers. Type of MSG Instruction: Example Source and Destination: Logix-based controller writes to source tag...
Example destination tag: array_1 SoftLogix reads Use the PLC-2 compatibility file. In the SoftLogix controller, select one of these data types: from PLC-2 SINT, INT, DINT, or REAL Example source element: 010 Example destination tag: array_1 Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 76
4-14 Communicating with Devices on a ControlNet Link The SoftLogix controller can send typed or word-range commands to PLC-5 controllers. These commands read and write data differently. The following diagrams show how the typed and word-range commands differ. Typed read command Word-range read command 32-bit words in 32-bit words in...
Type the tag name to be the PLC-2 compatibility file. You can map as many tags as you want to a PLC-3, PLC-5, or SLC controller. You can map only one tag to a PLC-2 controller. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 78
4-16 Communicating with Devices on a ControlNet Link The following table shows example source and destination tags and elements for different controller combinations. Type of MSG Instruction: Example Source and Destination: N7:10 PLC-5 writes to SoftLogix source element destination tag “array_1”...
Each produced tag uses one connection for the tag and the first configured consumer of the tag. Each consumer thereafter uses an additional connection. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-18 Communicating with Devices on a ControlNet Link Size limit of a produced or consumed tag A produced or consumed tag can be as large as 488 bytes, but it must also fit within the bandwidth of the ControlNet network: •...
Produced tags require connections. The number of connections depend on the amount of data and how many controllers are producing and consuming tags. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-20 Communicating with Devices on a ControlNet Link Consuming a tag A consumed tag represents data that is produced (broadcast) by one controller and received and stored by the consuming controller. To create a consumed tag: 1. You must be programming offline. 2.
Amount: SoftLogix controller to 1784-PCICS card SoftLogix controller to remote 1794-ACNR15 (communication format is “none”) SoftLogix controller to 4 I/O modules (through 1794-ACNR15) all modules configured as direct connection total connections used: 4 Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-22 Communicating with Devices on a ControlNet Link If you configure the 1794-ACNR15 as rack-optimized and the I/O modules as rack-optimized, you only use one connection to the 1794-ACN15 module, reducing the above example by 3 connections. The following table calculates the connections for this rack-optimized configuration.
1 is the SoftLogix backplane of Soft2 5 is the controller slot of Soft2 Communication Path (each SoftLogix controller resides where: in the same computer) 1 is the SoftLogix backplane of Soft1 Allen-Bradley PLCs 5 is the controller slot of Soft2 Publication 1789-UM002A-EN-P - October 2000...
4-24 Communicating with Devices on a ControlNet Link Example 2: Producing and consuming tags You can produce a base, alias, or consumed tag. Produced data can be: • tag of DINT or REAL data type. • array of DINT or REAL elements. •...
Page 87
In this controller: The tags look like: Soft1 Soft2 Each produced tags requires one connection for the producing controller and an additional connection for each consuming controller. Each consumed tag requires one connection. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-26 Communicating with Devices on a ControlNet Link Example 2: Total connections required by Soft1 controller The following table calculates the connections used in this example. Connection: Amount: Soft1 controller to 1784-PCICS card Soft1 controller to remote 1784-PCICS card connected, cached MSG from Soft1 to Soft2 produced TagA produced from Soft1 to Soft2 other consumer (2 are configured)
You can produce and consume tags with any Logix controller the same as you do with a SoftLogix controller. All Logix controllers follow the same requirements for producing and consuming tags. See Example 2 above. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 90
4-28 Communicating with Devices on a ControlNet Link Producing and consuming tags with a ControlNet PLC-5 controller depends on the type of data. ControlLogix controller (Control1) ControlNet FlexLogix controller ControlNet PLC-5 controller (Flex1) Soft1 (PLC5C1) TagA DINT TagB REAL Producing a tag to a ControlNet PLC-5 controller To produce a tag that a ControlNet PLC-5 controller can consume: 1.
Page 91
Consuming a tag from a ControlNet PLC-5 controller To consume a tag from a ControlNet PLC-5 controller,: 1. In RSNetWorx software, open the ControlNet configuration of the ControlNet PLC-5 controller, insert a Send Scheduled Message. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 92
4-30 Communicating with Devices on a ControlNet Link 2. In RSLogix 5000 software, add the ControlNet PLC-5 controller to the Controller Organizer. 3. Create a user-defined data type that contains these members: Data type: Description: DINT Status INT[x], where “x” is the output size of the Data produced by a ControlNet PLC-5 data from the ControlNet PLC-5 controller.
The remote 1756-CNB and 1788-CNC card are configured as “none” for the communication format, so the SoftLogix controller would require a direct connection for any I/O modules connected to these devices that you want in the configuration for the SoftLogix controller. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
4-32 Communicating with Devices on a ControlNet Link Example 4: Using SoftLogix The SoftLogix controller supports bridging over a ControlNet network. as a Gateway Any SoftLogix MSG instruction that bridges one network has multiple pairs of numbers in its communication path. To construct a communication path: 1.
The SoftLogix chassis monitor has a 1784-PCICS card for the ControlNet link The ControlLogix chassis has a 1756-CNB module for the ControlNet link and a 1756-DHRIO module for the DH+ link. 1785 PLC-5 controller ControlNet link DH+ link Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 96
4-34 Communicating with Devices on a ControlNet Link Notes: Publication 1789-UM002A-EN-P - October 2000...
SoftLogix system • RSNetWorx for DeviceNet software to configure the devices on the network • IOLinx software must be installed for the SoftLogix controller to be able to read and write I/O data Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a DeviceNet Link Step 1: Install the hardware Make sure the 1784-PCIDS communication card is properly installed in the computer. You need to: • Install the card in any PCI slot within the computer. It does not matter which PCI slot you use for the communication card.
• enter the label name for the card (this is the name you wrote on the label of the card to help you identify the card from others in the same computer) You can specify any slot number greater than 0 for the communication card. RSLinx software resides in slot 0. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 100
Communicating with Devices on a DeviceNet Link The chassis monitor shows the 1784-PCIDS card as a virtual module in the SoftLogix chassis. The LEDs on the virtual monitor emulate a 1756-DNB communication module. This chassis monitor has a 1784-PCIDS card installed in slot 5. Publication 1789-UM002A-EN-P - October 2000...
You only have to install the DeviceNet communication driver on the computer that you use to run RSNetWorx for DeviceNet. This example assumes that you are running the SoftLogix controller and RSNetWorx on the same computer. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a DeviceNet Link Step 4: Configure the communication card as part of the project Use RSLogix 5000 programming software to map the 1784-PCIDS communication card as part of the SoftLogix project. In the Controller Organizer, add the communication card to the I/O Configuration folder.
Every device on the network must be in Program or Remote Program mode for the software to re-write all of its connections. If a device is not in the correct mode, the software prompts you to let it change the device’s mode. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 104
Communicating with Devices on a DeviceNet Link 3. Use the ScanList tab to define the scanning order of the DeviceNet devices. 4. Click Edit I/O Parameters to define how many inputs (Rx) and Outputs (Tx) you expect from each DeviceNet device. Publication 1789-UM002A-EN-P - October 2000...
Page 105
32-bit words used in RSLogix 5000 programming software. RSNetWorx for DeviceNet lets you word-align the device data. While this might simplify the organization of the data, it might also limit the data you have available. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
5-10 Communicating with Devices on a DeviceNet Link Accessing DeviceNet I/O I/O information is presented as a structure of multiple fields, which depend on the specific features of the I/O module. The name of the structure is based on the location of the I/O module in the system. Each I/O tag is automatically created when you configure the I/O module through the programming software.
Page 107
RSNetWorx for DeviceNet. Depending on the device, there can be several words mapped to on device. You can create aliases to the elements you actually use to more identify the data you need. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
5-12 Communicating with Devices on a DeviceNet Link Placing the Communication To place the 1784-PCIDS card in Run mode, your program logic needs to set the CommandRegister.Run bit in the output word for the card. Card in Run Mode Set this bit For example: Using the CommandRegister bits The following table describes how the 1784-PCIDS card uses the...
A 0 in this bit means that all the slaves have correct data sizes. A 1 means the card has at least one device on its scan list with an incorrect data size. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
5-14 Communicating with Devices on a DeviceNet Link StatusRegister Bit: Description: StatusRegister.CommFailure This bit identifies whether a channel wide communication fault is happening with the card. For example if the card detects severe communication problems on the network it will go into a Bus Off condition. This also cause the StatusRegister.CommFailure bit to turn A 0 in this bit means that the card is communicating correctly.
Page 111
This data area is an array of 4 bytes. There is one byte associated with each of the 4 characters of the alphanumeric display on the SoftLogix chassis monitor. Reading these 4 bytes as ASCII characters to determine the exact message being displayed on the SoftLogix chassis monitor. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
5-16 Communicating with Devices on a DeviceNet Link Example: SoftLogix In the following example, one SoftLogix controller controls I/O through a 1784-PCIDS communication card. Controller and I/O SoftLogix controller DeviceNet device 2 device 3 device 4 device 1 This example has a SoftLogix controller controlling four DeviceNet devices.
Page 113
5 of the local chassis. When the push button is on, start is on. module in slot 5 of the local chassis. When motor turns on, the starter contactor turns on. stop start motor <Local:5:I.Data[0].0> <Local:5:I.Data[0].1> <Local:5:O.Data[0].0> motor <Local:5:O.Data[0].0> Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 114
5-18 Communicating with Devices on a DeviceNet Link Notes: Publication 1789-UM002A-EN-P - October 2000...
The computer with the SoftLogix controller does not need the serial driver to connect to other devices over a serial link. • RSLogix5000 programming software to configure the serial port of the controller Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a Serial Link Step 1: Configure the serial port Use the SoftLogix chassis monitor to select which COM port to use for serial communications. The controller supports only one COM port for DF1 communications. 1. From the SoftLogix chassis monitor, select Slot → Create Module or right click the appropriate slot and select Create. Select the controller. Specify the backplane slot number.
Page 117
2. In the same slot, re-add the controller. The chassis monitor prompts whether to use the same configuration that was previously installed. Click Next 3. Follow the steps on the previous page to select a COM port for serial communications. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a Serial Link Step 2: Configure the serial port of the controller 1. In RSLogix 5000 software, select Edit → Controller Properties. 2. On the Serial Port tab, specify the appropriate serial communication settings. 3. On the System Protocol tab, select the appropriate DF1 communication mode for point-to-point or master/slave communications.
Page 119
User mode communicating with ASCII devices 6-12 This requires your program logic to use the ASCII instructions to read and write data from and to an ASCII device. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a Serial Link Monitoring the The SoftLogix controller has an RS-232 LED that follows this behavior: Controller LEDs This state: Means: You selected “None” for the COM port selection of the controller. green The COM port you selected was successfully assigned to channel 0 of the controller.
SoftLogix controller over a serial link. A modem is connected to the Remotely Connected to a controller to provide remote access. SoftLogix Controller workstation with RSLogix 5000 programming software and Logix5550 serial port driver modem SoftLogix controller modem Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Communicating with Devices on a Serial Link If you use a modem to remotely connect the controller to one workstation, use RSLogix 5000 programming software to configure the serial port of the controller for the DF1 point-to-point (full-duplex) protocol, as in the previous example. If the controller is part of a master/slave serial network, configure the serial port of the controller for either the DF1 master or DF1 slave protocol (both half-duplex).
• Standard (multiple message transfer per node scan) • Standard (single message transfer per node scan) Master transmit Standard polling modes only Select when the master station sends messages: • between station polls (default) • in polling sequence Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 124
6-10 Communicating with Devices on a Serial Link This field: Description: Normal poll node tag Standard polling modes only An integer tag array that contains the station addresses of the slave stations. Create a single-dimension array of data type INT that is large enough to hold all the normal station addresses.
A bar code reader is an ASCII device, so you configure Controller to a Bar Code the serial port differently than in the previous examples. Configure the Reader serial port for user mode, rather than a DF1 mode. SoftLogix controller bar code reader Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
6-12 Communicating with Devices on a Serial Link Connect the ASCII device to the controller To connect the ASCII device to the serial port of the controller: 1. For the serial port of the ASCII device, determine which pins send signals and which pins receive signals. 2.
The controller supports ASCII instructions to communicate with ASCII devices. Your RSLogix5000 programming software CDROM includes programming examples using ASCII instructions. For information about using these examples, see the Logix5000 Controllers Common Procedures Programming Manual, publication 1756-PM001. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 128
6-14 Communicating with Devices on a Serial Link Notes: Publication 1789-UM002A-EN-P - October 2000...
Threads that are spawned from a real-time process, like the SoftLogix controller, execute to the point of blocking, yielding, or Allen-Bradley PLCs completing. The dwell component of the SoftLogix controller allows the continuous task of the controller to give time to other lower priority threads that need to execute.
Windows NT Considerations The following diagram shows the relationship between these objects and shows how one object has to stop running if another with higher priority wants to execute. The SoftLogix controller executes as a real-time priority process, and thus waits for all ISRs and DPCs to complete before executing.
Because SoftLogix runs at a real-time level, it is guaranteed to get as many CPU cycles as it needs before allowing the CPU to execute other application programs. Only DPCs and ISRs run before a SoftLogix controller. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Windows NT Considerations Selecting a dwell time setting Every SoftLogix controller has a main task that can be configured to run continuously or periodically. If set for continuous, the main task would use all of the Windows NT CPU cycles, if it were able, running as a real-time priority process.
Be careful not to execute too many periodic tasks with short intervals as you can start to use all the bandwidth of the computer without leaving CPU cycles to operate the mouse and keyboard. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 134
Windows NT Considerations A periodic task pauses if an ISR or DPC routine needs to be executed by Windows NT, and then the periodic task continues when the interrupt is complete. The periodic task executes again in real time at the next preset interval.
Page 135
Controller A Continuous Dwell = 2ms Controller B Periodic 3ms Priority 1 Controller B Continuous Dwell = 3ms task task dwell time running waiting two tasks of equal priority prescan sharing CPU cycles Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Windows NT Considerations Selecting the system overhead time slice All Logix-based controllers have a configuration setting for the system overhead time slice. This function lets the controller take care of communication requests that occur from other controllers or from queued requests from within the controller’s application program. The time slice switches the priority level of the continuous task with that of the background communication task, which is always running at a lower level than the continuous task.
SoftLogix controller using discrete inputs so that the controller can detect a power outage and prepare for an orderly shutdown after a designated amount of time. Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 138
A-10 Windows NT Considerations Notes: Publication 1789-UM002A-EN-P - October 2000...
Page 139
SoftLogix controller to SoftLogix controller DeviceNet hardware 4-15 mapping address 4-15 mapping address serial 4-13 message to other controller 4-13 with other controllers 4-12 message to other Logix-based controller 4-12 with other Logix-based controller overview Allen-Bradley PLCs Publication 1789-UM002A-EN-P - October 2000...
Page 140
Index placing I/O 4-17 produced/consumed tag 1-19 entering logic 4-19 producing a tag example schedule network 4-33 ControlLogix controller as a gateway 4-11 sending messages 4-21 SoftLogix controller and I/O over ControlNet creating 5-16 SoftLogix controller and I/O over DeviceNet 1-5, 4-3 1784-PCICS card 4-32...
Page 142
Index SoftLogix chassis monitor configuration memory size overview running on Windows NT 5-14 Status data 5-13 StatusRegister bits system overhead 4-20 consuming 1-17 creating 4-17 produced/consumed overview 4-19 producing 1-18 sample alias 1-16 viewing task defining periodic priority TestTime utility viewing 1-23 controller memory usage...
Page 143
What is not in the right order? Other Comments Use back for more comments. Your Name Location/Phone Return to: Marketing Communications, Allen-Bradley., 1 Allen-Bradley Drive, Mayfield Hts., OH 44124-6118 Phone:(440) 646-3176 FAX:(440) 646-4320 Allen-Bradley PLCs Publication ICCG-5.21- August 1995 PN 955107-82...
Page 144
PLEASE FASTEN HERE (DO NOT STAPLE) Other Comments PLEASE FOLD HERE NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE 1 ALLEN-BRADLEY DR MAYFIELD HEIGHTS OH 44124-9705...
Need help?
Do you have a question about the SoftLogix5800 System and is the answer not in the manual?
Questions and answers