Showing posts with label RSLogix5000. Show all posts
Showing posts with label RSLogix5000. Show all posts

Sunday, February 26, 2012

Logix PIDE Function Block Information

Information on the PIDE function block and how it works.  Includes information on  using it in Cascade and Ratio Control applications.  This is a two part document which covers the majority of functions incorporated in the PIDE block.
Catalog Number: 1756 Generic
DocFullNum: G9057916
Revision:
Fixed in Revision:
Package:
Modual:
File Attachments
 Source : http://rockwellautomation.custhelp.com/app/answers/detail/a_id/21894/related/1

 

ControlLogix RMPS / PIDE Instruction Example.

How to use the Ramp/Soak (RMPS) Instruction with the PIDE block?
The RSLogix 5000 v13 sample file attached below contains a very basic application with a RMPS and PIDE. A process simulator Task is also included for simulation purposes.
  • While in Manual mode the user program directly controls the instruction's Out. The CurrentSegProg, SoakTimeProg and OutProg inputs are transferred to the CurrentSeg, SoakTimeLeft and Out outputs.
  • When instruction is placed in auto mode, the ramp/soak functions resumes with the values last input from the user program.
  • CurrentSegProg and SoakTimeProg are not transferred if they are invalid. This will explain a SoakTimeLeft at zero after a manual to auto transition and SoakTimeProg was zero.
More information can be found in RSLogix 5000 software Instruction Help file or in the Logix5000 Controllers Process Control and Drives Instructions  manual.
File Attachments
 Source :  http://rockwellautomation.custhelp.com/app/answers/detail/a_id/34961/comment/19995
 
 
 

 

Saturday, February 25, 2012

Obtaining Ethernet IP information from a 1756-ENET

  1. First create a USER DEFINED tag called IP, and configure it as shown below:



  2. Create a CIP message instruction like the one shown below.

    NOTE: Tag B3.0 is not required.




  3. Configure the CIP message as shown below.  Note that the destination tag ENET_IP_INFO
    is a tag of type IP (User Defined).





  4. Also note that the values that come back into IPx will be in reverse order.

Link Status from a Logix Ethernet module via CIP Generic Message in RSLogix 5000

Example below shows 1756-ENBT, but can be used with any Logix modules
Link Loss Status can be obtained from the 1756-ENBT by configuring a CIP Generic message to the module.If the Ethernet connection is broken the status can be monitored in the ControlLogix processor.
Procedure:
1)  Configure a MSG instruction as CIP Generic in RSLogix 5000 for the ControlLogix processor that is to monitor the 1756-ENBT status.

Image
2)  Create the Destination tag (LinkStatusWord in this example) with data type of DINT. The communications path will need to point to the ENBT that you want to get status from, with the Class, Instance and Attribute as shown below.
CIP Generic Message Setup Screen:
Image
3)  When the MSG instruction is executed the Link Status data will be written to the Destination word bit 0, in this example LinkStatusWord.0

Access IP information of 1756-ENBT/1788-ENBT modules with MSG instruction

The following steps describe how to access the IP Address for the 1756-ENBT via the user program. This also works with 1788-ENBT module.
The Source or Destination tag ipinfo is a SINT array of 22 elements, but may be longer if a Domain Name is included - see the Notes at the end.


To GET the module IP Address, configure a CIP generic message instruction, as shown below:



To SET the module IP Address, configure a CIP generic message instruction, as shown below:




Notes:
If a Domain Name is included in the SINT array, the source length may have to be up to 70 bytes long:
SINT[20..21] Word value containing number of characters in Domain Name
SINT[22..69] Domain Name - 48 ASCII characters

Read Array length should always be 70 bytes:
  • 20 for addresses
  • 2 for length
  • 48 for possible ASCII domain name

Write Array length should be 22 plus the length value in ipinfo[20], padded to an even number of bytes (pad not included in the length).

Friday, February 24, 2012

RSLogix 5000: PIDE - Function Block Enhanced PID.

PIDE - Function Block Enhanced PID
This technote demonstrates the use of the PIDE function block instruction.
It uses two modes of automatic operation: program setpoint and operator setpoint.
To toggle between program setpoint and operator setpoint simply toggle the ProgOperReq bit in the PIDE instruction which is accomplished with the PROG_MODE_1 bit in the Main Routine.
When in program mode it gets the setpoint from the SPProg word in the PIDE instruction.
When in Operator mode it gets the setpoint from the SPOper word in the PIDE instruction
To toggle between automatic and manual mode simply set the ProgramManualReq bit and clear the ProgAutoReq bit in the PIDE instruction which is accomplished by toggling the AUTO_1 bit in the Main Routine.
The CVEU will track the value at CVProg when in manual mode
This Project has 3 tasks:
  1. Main Task:
    The Main Task allows the user to set bits and put the PIDE in Program mode, Operator mode , Manual mode and to use Independent or dependent gains.
  2. PID_Functions:
    The PID_FUNCTIONS task is a scheduled task that executes every 100 mS.   It contains the PIDE function block instruction and it has a task called Proc_lag which contains function block instructions that lag the PV from the CV to simulate a process variable.  
  3. SETPOINT_GENERATOR:
    The SETPOINT_GENERATOR scheduled task executes every 10 seconds.  It simply changes the program setpoint every 10 seconds with the FAL instruction.  The setpoints are contained in the tag ARRAY1 which are 10, 15, 20, 30, 40, 60,80, 70, 50, and 30. 
The .ACD file is Called PIDS_FUN_BLK_DEMO and is attached below

This .ACD file was created using RSLogix 5000 ver 8.02 and a 1756-L1 firmware ver. 8.20.   It requires no I/O modules.



File Attachments
Source : http://rockwellautomation.custhelp.com/app/answers/detail/a_id/20410
 

Thursday, February 23, 2012

ControlLogix Message to PLC-5 Over Ethernet

How do I configure a ControlLogix message to a PLC-5 processor over Ethernet?
For communications between the ControlLogix and PLC-5, it's easier to execute the message on the ControlLogix side. This is because there is no tag mapping required, and the RSLogix 5000 software has predefined choices for the type of PLC-5 message.
  • PLC5 Typed Read
  • PLC5 Typed Write
  • PLC5 Word Range Read
  • PLC5 Word Range Write
NOTE: The allowable data types for PLC5 type read/write from ControlLogix are:   B, F, N, S, ST
The following is an example focuses on setting up a single message. Knowledgebase AID 39998 - How to manage multiple un-cached messages in ControlLogix for details on how to sequence multiple messages in order to avoid filling up the ControlLogix unconnected buffer.
  1. First open a RSLogix 5000 project and add a MSG instruction. Right click the "?" (Question Mark), and create a new MESSAGE control tag for it. We named the control tag Message1 and inserted the normally closed XIO with the .EN bit to run this message continuously.

Image

  1. Now, click the ellipse to enter the message setup dialog. In this example we will use the PLC-5 Typed Read message.

Image

The MSG above is configured to read an integer value from the PLC-5. It's going to read the first element in data table register N7:0 and place the value into an integer tag named My_INT_Tag within the ControlLogix.
  1. Once the Configuration tab is completed, proceed to the Communication tab. The path describes the route the message takes to get to the destination. It uses either names from the I/O configuration, numbers you type, or both:
  • When building your message path, use the following as a guideline to simplify your task: All paths are of the following form: x  , y 
  • Where x is the port  or direction you want to transmit out of. (This could be the port to the Backplane, Ethernet, ControlNet, Serial Port, or DH+.)
  • And where y is the next address to send to depending upon the media. (This could be a slot number, IP address, ControlNet node, serial address, or DH+ node address.)
The example below is derived as follows:
  • 1 indicates the port of the Controller for direction to the Backplane.
  • 1 indicates the next address or slot number of the Ethernet module in the local chassis.
  • 2 indicates the port of the Ethernet module for direction out on the Network.
  • 192.168.1.2 is the next address on the network which is the IP address of the PLC-5.
Since the Ethernet channel is built directly into the PLC-5 this is as far as the path needs to go.
Image
  1. Keep the default Communication Method at CIP. This means the ControlLogix will encapsulate the data into CIP packets and send it that way. Because of the encapsulation, the PLC-5 firmware needs to be of a certain revision to decode the packets once received. If not, the message will error. Minimum revisions are below:
PLC-5
  • Series E, revision D.1 and higher
  • Series D, revision E.1 and higher
  • Series C, revision N.1 and higher
  • All Series F

1785-ENET (Sidecar)
  • Series B, any revision
  • Series A, revision D and higher
The Series is based on the circuit board design and will remain the same. The Revision can be updated by contacting your local Rockwell Automation distributor and ordering firmware updates. Firmware update kits typically consist of a software flash and new EPROM's to be installed.

Source: http://rockwellautomation.custhelp.com/app/answers/detail/a_id/66899

Messaging from PLC-5 via Ethernet to ControlLogix

How do I set up messaging from PLC-5 via Ethernet to ControlLogix?

Messaging from PLC-5 via Ethernet to ControlLogix

For successful communication:
  • Check that the PLC-5 in question is of the correct Series and Revision. Refer to Answer link 19325 to determine this.
  • Ensure both the PLC-5 and ControlLogix Ethernet modules are correctly configured on the Ethernet.

PLC-5 MSG Configuration Overview

The ladder below shows a simple MSG instruction. For Ethernet messages, the MSG instruction uses 2 consecutive MG elements. In the case below, these are MG9:0 and MG9:1.
NOTE:  If an integer file is used in place of the MG file, the message will be directed to the 1A port only Classis PLC5 issue. The Port Number will not be visible.  RGW.
Image

Configuring PLC-5 MSG

  1. Configure the message by clicking on the Setup Screen text in the instruction. The following dialog box is displayed.

    Image
  2. As fields in this dialog are filled in. the fields that are left change, depending on what has been selected. Work through the dialog from the top to the bottom in field order. When complete the dialog should match the one above.
  3. This message is configured to perform a PLC-5 Typed Read of 10 integers words and place them in N7:0 onwards. This will ultimately be from a ControlLogix processor. The port number is changed to specify the Ethernet port of the processor. In this case 3A is the 1785-ENET module, for an Ethernet processor this will be 2.
  4. In the Target Device section the data will be read from N7:0. For communications to a ControlLogix processor it is important that MultiHop is set to Yes. When this value is entered, the MultiHop tab will appear. Select the MultiHop tab.

    Image

    MultiHop allows you to configure where the message has to go once it reaches the ControlLogix Ethernet module. We want to read from the processor. The path from the Ethernet module to the processor is defined here.
  5. The first line of the configuration defines the IP address for the ControlLogix Ethernet module. To get a second line press the Insert key on the keyboard. The value that has to be entered in this second row is the slot in the ControlLogix chassis that the processor resides. In this case it's slot 0.

ControlLogix Configuration Overview

We have created an array of ten elements of type INT called "technote_data" in the controller scope of the ControlLogix project.  The PLC-5 will  read from this array.  Notice that the array has to be of type INT, otherwise the message instruction will fail and display an "illegal target file type" error message.

Configuring ControlLogix 

  1. From the main menu of RSLogix 5000 select Logic -> Map PLC/SLC messages.  In order to map all messages targeted to addresses in file 7 (as in N7:0) to our newly created array of INT's, as shown below.

     
This completes both of the required steps. For additional details on mapping see Technote 7355, titled Setting up PLC/SLC Mapping in Logix controllers.

Source: http://rockwellautomation.custhelp.com/app/answers/detail/a_id/41947

Tuesday, February 21, 2012

Basic Simulation of PID and PIDE

Question

What does a working PID or PIDE look like?

Answer

Please see Basic Setup Help for Logix PID It references several technotes and manuals which are needed to understand PID/PIDE.
Attached is a basic simple simulation with a working PID and PIDE control. Download the attachment, open it and compare the behavior of a PID and PIDE.
In 'out of the box' condition both PID and PIDE are running the same simulation. Each has its own and different solution; even though they are running with the same frequency (and therefore in the same time domain).
It can also be used to explore the use of SCALING and changes to the TIME DOMAIN in a controlled environment.
Note the use of a function block as the main program.
The main variables are bough Controller tags. Those controlling the PID, start PID_; those controlling the PIDE, start PIDE_.
Thus,

Basic Setup Help for Logix PID

Question :

How can I setup a basic working ControlLogix PID?

Environment :

RSLogix5000 programming and PID tuning

Caution

A ControlLogix PID is a fairly complex instruction which should not be used with any real world equipment unless:
  • The programmer understands how to setup the PID.
  • At the very least, the equipment is in a safe state.

Answer

To get a basic start on PID, the following steps can generally be used:
  1. Add a PID instruction by entering the following:
    1. The PID control tag.
    2. The tag to be used as the PID input into the PV field.
    3. A tag for TIEBACK (used in operator manual control) into the TIEBACK field.
    4. A tag to use for the output into the CV field.
  2. The PID can be used in a Periodic Task.
    • In this case, the rung should be unconditional 
    • The period of the task should be matched with the loop update time of the PID.
    • The period used is typically at least 10 times faster than the Loop Process time
  3. If using a Continuous Task, the PID should be regulated with a Timer bit.
    • Match the timer preset with the loop update time of the PID. 
      NOTE:
      If this is not done, then the calclulations of the PID will not be consistent. The contribution to the output due to integratal and derivative parts of the equation will be proportionately effected in relation to the scan time. This will cause inconsistent behavour from the PID if it is not regulated.
  4. Enter the PID Configuration screen, then enter appropriate information for:
    • Gains
    • Loop update time
    • Control action
    • Scaling ranges on the Scaling Tab

Wednesday, January 26, 2011

Creating an IP Address On Control Logix



This is the basic standart knowledge, but i want to share it because i ever get little confusing to create one.
Fisrt you must get serial connection to controller before you setup and IP address to the ethernet modulle.Follow this procedure to create DF1 Communication.
  • Connect your laptop computer to the ControlLogix controller through the serial port, under t he front cover of its main panel.
Serial Port on the ControlLogix Controller
  • Start RSLinx Classic program from Start/Programs/Rockwell Software/ RSLinx/RSLinx Classic.
  • Click RSWho and If there is no serial connection with a file name including DF1, select Communications/Configure Drivers.
  • In the pull down menu labeled Available Driver Types, select RS- 232 DF1 devices and click Add New. Also use this screen to configure other devices, such as Ethernet.

Saturday, January 22, 2011

Adding I/O to ControlLogix Online

Installing I/O to a running controller reduces downtime and expands functionality.

Manufacturers need to update their equipment to increase efficiency, adapt to changing product or process needs, and keep up with regulations. However, many continuous process control applications must run for years without scheduled downtime because shutting down a line leads to significant product loss and lengthy start-up procedures.

To help applications deal with high availability requirements, the newest release of RSLogix 5000 software (v15) from Rockwell Automation allows users to add ControlLogix I/O (Bulletin 1756) to a running Allen-Bradley ControlLogix controller. The new I/O can be added to the same chassis as the ControlLogix Central Processing Unit (CPU), or in a remote chassis connected via ControlNet or EtherNet/IP.

Prior to v15, to expand the system, I/O spares had to be pre-installed into a ControlLogix system or production had to be stopped. If the new I/O were in a remote chassis connected via ControlNet, users would then need to reschedule the network. In addition, if multiple controllers were using the same ControlNet network as the I/O, users also would need to place these other controllers into program mode to complete the network scheduling changes. This meant that trying to expand a single process could result in having to shut down a whole line or even the whole plant.

Wednesday, January 19, 2011

Configuring a ControlLogix in RSView Studio via Ethernet

How to configure an application to a ControlLogix Processor on Ethernet in RSView Studio.

This Tech Tip is intended to be used as a guide only. An existing ControlLogix ACD file is recommended. General Ethernet knowledge including knowledge of IP addresses and subnet masks is required for successful Ethernet network configuration. Generic IP addresses have been used. Actual Ethernet configuration will vary.

1. Create a New Application.

Open RSView Studio, click on the New tab.
Assign an Application Name and click Create.
2. Create an RSLinx Enterprise configuration.

In the Application Explorer window click on the [+] next to RSLinx Enterprise to expand the menu. Double click on Communications Setup. Choose Create a new configuration.
The following screen has two tabs:

The Target tab refers to the path of processor that the RUNTIME application will be talking to. This could be running on another Windows 2000/XP machine, a VersaView CE or a PanelView Plus. This setup must be exactly representative of the network this application will be run on, but needs to include only the processor and path to the processor the application will be communicating with.

The Local tab refers to the path of the processor as seen by the DEVELOPMENT computer. This is required when wanting to browse tags in an online Processor.

The Offline Tag File allows the user to browse tags located in an ACD file. This is helpful when a processor is not available online, or the desired application is not in the online processor. Using Offline Tag File requires that a LOCAL path be created even if the processor does not exist or does not contain the same ACD file. Omitting a LOCAL path will result in not being able to browse for tags.
 If the development PC is connected to the processor via Ethernet:
  • Click on the LOCAL tab.
  • Right Click on Ethernet, Ethernet.
    • If Ethernet, Ethernet is not an option, right click on RSLinx Enterprise, (Computer Name), click Add Driver, Click Ethernet, then OK.
  • Click Start Browsing.
  • This will find all compatible devices, including ENET, ENBT, PV+. VersaView CE, and RSLinx Enterprise devices.
  • Click the [+] next to Ethernet, Ethernet
  • Find the IP Address of the ENET/ENBT module and then expand the tree until the processor is visible.
  • Under the Device Shortcuts window, click Add.
  • Change the name of the Shortcut (if desired).
  • Click on the processor.
  • Click Apply.

Tuesday, January 18, 2011

A Quick Tutorial on RSLogix Emulator 5000

RSLogix Emulator 5000 is a software simulator for the Allen Bradley line of Logix 5000 controllers (ControlLogix®, CompactLogix®, FlexLogix®, SoftLogix5800® and DriveLogix®). The goal is to mimic the function of a PLC without the actual hardware and thus do advanced debugging. More information can be found in the AB publication LGEM5K-GR015A-EN-P.
As a quick introduction we’ll go through a simple example of setting up a simulation. This involves three major steps.
 1. Setting up the chassis monitor.
 2.Creating a connection in RSLinx.
3. Creating a project with associated emulation hardware.

Setting up the Chassis Monitor
To start the Chassis Monitor, click Start > Programs > Rockwell Software > RSLogixEmulate 5000 > RSLogix Emulate 5000 Chassis Monitor.
RS Emulator Open
 When the emulator opens up you’re confronted with what looks like an empty chassis.  In slot 0 is an RSLinx module which has to be there for the emulator communications to work.  Your slot 1 might have another irremovable RSLinx module depending if you are running RSLogix Enterprise.

Wednesday, January 12, 2011

RSLogix 5000 Tips and Tricks

Everybody enjoys nifty little tips and tricks to get their work done faster. This listing is for Allen Bradley’s RSLogix 5000 software. Feel free to add your own tips and tricks using the ‘add comment’ link.
General
  • To access Release Notes for this version of software, choose Release Notes from the Help menu.
  • The Quick View Pane, located below the Controller Organizer, provides “thumbnail” information for the selected component.
  • The Watch Pane, located below the language editor window, provides monitoring for all tags referenced in the active routine window.
  • The Controller Organizer is dockable. That is, you can drag it to the left or right side of the screen, or float it somewhere in between.
  • Hide/show the Controller Organizer via a toolbar button to make more display area for editors.
  • RSLogix 5000 supports Cut/Copy/Paste/Drag/Drop of components within the Controller Organizer as well as to other instances of RSLogix 5000.
  • Double-clicking on error messages displayed in the Error Window will navigate you to where the error was encountered.F4 and Shift-F4 can be used to move between errors.
  • You can reorder the columns in the tag editor by clicking on the title and dragging it to a new position.
  • To simultaneously display logic in multiple routines, select Window -> New Window and then arrange the windows manually. Or select Window -> Tile Horizontal.
  • To remove a yellow triangle warning symbol on a device, first check the connection status. If the status is “Connection is not scheduled”, re-open the RSNetWorx software. Return to RSLogix 5000 software and the yellow triangle should be gone.
  • On one computer, you can install and simultaneously launch (run) multiple translated versions of RSLogix 5000 software.
  • Once you do a partial import of rungs, add-on instructions, or user-defined data types, you can’t undo the import. If the import didn’t work as expected, close the project without saving.
  • When you select a partial import, make sure to select the correct rung or trend file. Both files have L5X extensions and the software doesn’t prevent you from selecting the wrong file. If you try to import a rung where a trend is expected, or vice versa, the software does display an error that the import failed.
  • Partial import of rungs works in all ladder routines, including Add-On Instructions.
  • In version 15, the Tag Editor added support for New Window.
  • To simultaneously display logic in multiple routines, select Window -> New Window and then arrange the windows manually. Or select Window -> Tile Horizontal.

Tuesday, January 11, 2011

Establishing a DDE Link to Microsoft


Once a DDE topic is configured, you are ready to establish a DDE Hot Link to Microsoft Excel. There are two ways to establish a DDE Hot Link to Excel, the hard way and the easy way. The hard way is to type it by hand with all the proper syntax marks in place, but we will try it the easy way using the Windows clipboard. The clipboard will copy only hot links.

This exercise will establish a Hot Link to Excel to read a block of five timer accumulators from a Control Logix  and create an active graph of the data in Excel. We will use Timer1 through Timer4 - it is essential that these timers exist in the data table section of the ControlLogix. Excel 97 is used for this exercise, other versions of Excel would be similar with slightly different keystrokes or mouse clicks.

  1. If RSLinx is not already running, start it now.
  2. Select Edit/Copy DDE Link to Clipboard ( or use the icon in the toolbar that looks similar to the typical windows Paste icon.)

Sunday, January 9, 2011

Dynamic Data Exchange (DDE) and How it works

Dynamic Data Exchange (DDE) is an interprocess communications specification that is built into the Microsoft Windows operating system. It allows Windows programs that support DDE to exchange data between themselves. All communications occur within the Windows environment, essentially transparent to the users, using very simple communication instructions.

Note:

AdvanceDDE protocol is the only version supported by RSLinx-OEM. DDE is
not available with RSLinx Lite.
RSLinx

The easiest way to visualize Dynamic Data Exchange is to think of a conversation between people in a room. These people represent the different Microsoft Windows applications (software programs) running on your computer.

Note:

Not all applications that run under Microsoft Windows support DDE Check with an application’s manufacturer before purchasing an application for use with RSLinx.
DDE Ilustration

Some of the people in the room ask questions (clients), others provide answers (servers), and some both ask questions and provide answers (client/servers).
  • In other words, the client initiates or requests a data transfer and the servers respond to the request by providing or accepting data.