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

RSLinx - Ethernet Networks - Problems and Solutions

What are some of the issues regarding RSLinx connection to processors on an Ethernet Network?
The purpose of this technote is to compile a number of issues regarding RSLinx connection to processors on an Ethernet Network.

Problem:

  • RSLinx cannot browse devices using AB_ETHIP-1 (Ethernet/IP Driver).
  • However using AB_ETH-1 (Ethernet devices) Driver does work fine.
  • PING is successful to the desired IP Addresses. Windows Firewall has been disabled.
  • Driver AB_ETHIP-1 has been configured for '(x) Browse Local Subnet'.

Solution:

This problem can be caused by the computer having multiple network adapters.
Change Driver AB_ETHIP-1 configuration to '(x) Browse Remote Subnet'.
  • IP Address: <Enter the IP address on any device which is located on the remote subnet.>
  • Subnet Mask: <Enter the subnet mask of the remote subnet.>

Problems with Upload/Download - Communication Setup.

Download and edit problems usually have some basis in a bad communications/privilege setup.  Here are some basic settings to check to make sure that comms are set up correctly.
1.  Check the MEMORY PROTECT KEY. It should be OFF.
2.  Determine if you are communicating through the front port (channel 0) or a DH+ port (S5/SR5).
If you are connected to the front port, check the following:Cable connection - make sure it is tight and that you are using the correct cable.Use the LIST functions from the front panel of the PLC-3 (SHIFT, then LIST) or from the online menu (F1-Processor Functions, F2-LIST) to set the timeout and privilege 0.Select Module Status.Select the 1775-S5 or -SR5.Select CHAN 0.  Make sure the CHANNEL TIMEOUT is set to 0.  If not, change it to 0.Select PRIVILEGES.  Make sure privilege 0 (write to the system area) is in the list of enabled privileges.  If it is not in the list, press 0<Enter> to enable it.

Monday, February 20, 2012

Quick Start Remote IO (RIO) on SLC System

You can use this document as a Quick Start to set-up either of the following for a SLC Remote I/O System:
  • 1747-SN
  • 1747-ASB
When commissioning a RIO network with a SLC system, use the following steps to ensure minimal time is used commissioning RIO system.

Making the Physical Connection

  1. Make sure the RIO network consists of the following:

    • A Scanner, 1747-SN, located in main system with processor
    • At least 1 1747-ASBAdapter



  2. Connect the scanner Scanner to other RIO devices in a daisy chain (serial) configuration.

  3. Ensure the maximum distance of network is:

    • 10,000 feet at 57.6k baud, 5000 feet at 115.2k baud
    • 2500 feet 230.4k baud.

Saturday, February 18, 2012

RSLogix 5/500/5000 on Windows Vista and Windows 7

This technote is a quick reference for O/S support. For specific details on each software package, please refer to the individual product release notes

Official Support

Windows 7 (64-bit)

  • RSLogix 5000 v19.00 and greater
  • RSLogix 500 v8.40.00
  • RSLinx Classic v2.57or greater

Windows 7 (32-bit)

  • RSLogix 5000 v19.00 and greater
  • RSLogix 500 v8.30.01
  • RSLinx Classic v2.57or greater

Windows Vista (32-bit)

  • RSLogix 5000 v17.00 and greater
  • RSLogix 500 v8.00 or greater
  • RSLogix 5 v7.40
  • RSLinx Classic v2.54 or greater

Exceptions

RSLogix 5000

  • RSLogix 5000 software v13 through v18 are now known to operate correctly on Windows 7, if using suggested configuration settings. See the attached document <RSLogix 5000 Enterprise Software Windows 7 Statement.pdf> below for full details.
  • RSLogix 5000 software v10 through v12 are not available for installation on 64-bit operating systems.

RSLogix 5

  • RSLogix 5 v7.40 is known to operate correctly on Windows 7 (32-bit & 64-bit) using RSLinx Classic v2.57 or greater, and UAC disabled.

Installation Options

Friday, February 17, 2012

Serial DF1 communication setup for a PanelView Plus

Helpful hints for setting up a PanelView Plus to communicate Serial DF1:
  • By default, the PanelView Plus is set to communicate using BCC error checking; however, SLC and MicroLogix processors are set to CRC error checking by default. Even with Use Auto-Configuration checked, they will NOT communicate until this setting matches. CRC is recommended.
  • The first time an application is loaded and run on the PVP, it will take up to 5 minutes to establish communication. Be patient! If you are continuously getting tag errors, that is a good sign that the communications is not going to work; however, if you get very few errors that is a sign that communication will be established.
  • The station address of the PVP in Communication Setup MUST be 0. The station address of the Processor inCommunication setup MUST be 1. No other addresses will work.
  • The Station address of the serial port on the Processor does not matter.
  • You cannot always change the address on the PVP. If the address in the Communication Setup is not right, fix it in Factory Talk/RSView Studio ME, create the runtime and download.
source : http://rockwellautomation.custhelp.com/app/answers/detail/a_id/50488/related/1

Downloading Via DF1 to PanelView Plus or VersaView CE

Cable to use for PanelView Plus/VVCE:  2711NC-13, 2711NC-14, 2706-NC13
RAC6182 ONLY: 1747-CP3

Note: If you are trying to download to PanelView Plus 600 and 400 you would need v.3.1 of RSView Studio for Machine Edition since these PanelViews did not exist when v.3.0 was first introduced.
To download serially to replace an existing application, or just download a new application to a empty PanelView Plus or VersaView CE industrial computer, follow these steps:

Terminal Setup (Your physical PanelView Plus or VersaView CE device):

  1. Go to Terminal Settings-->Network and Communications-->RSLinx Enterprise Communications-->Serial-DF1.
  2. Click Edit Driver. If you do not see the DF1 driver choose Restore Default.
  3. Configure Driver Properties as shown below:

    Driver Properties

    Value

    Use AutoConfigurationNo
    DevicePLC_CH0
    Error CheckBCC
    Baud19200
    Stop BitsONESTOPBIT
    ACK/Poll Timeout (msec)3000
    Max Retries3
    Station Number0
    Comm Port1
  4. Verify Use AutoConfiguration is set to a value of No
  5. Verify Station Number is set to 0.
  6. Verify Comm Port is set to 1.
You should now be able to configure DF1 on your terminal.

How to download an application to a PanelView Plus via DH+?

To be able to download an application to the PanelView Plus via DH+, an application needs to be downloaded first via Serial or Ethernet to enable the DH+ connection, to do so please follow the following steps (If there is any existing DH+ configuration please delete the Drive from RSLinx Enterpsrise on the application (Design and Target) and reset to default RSLinx Enterprise configuration on the PanelView Plus):
  1. In FTView ME, go to RSLinx Enterprise and open Communication Setup.
    • In Design Tab, right click on RSLinx Enterprise --> Add Driver, then select DH+(1784-PKTX, 2711P-RN6,2711PRN8). On the DH+ properties interface, do not change anything, just press OK. Then Press the Button Copy from Derign to Runtime.
    • In the Runtime Tab, right click on the DH+ driver (DHPlus, DH+) then select Properties. Now change the Station Number (which should be "0") to "1" then press OK. 
  2. Press OK to close the Communication setup, then create a Runtime application and transfer it to the PanelView Plus using a serial or Ethernet connection. Make sur to enable Replace Communication on the Transfer Utility before downloading the application. 
  3. Once the PanelView Plus has rebooted, open again Transfer Utility and you should see your PanelView Plus Communication card showing up under the DH+ Driver, select it and download your application.   

This runtime application file was saved in an older format that does not support conversion to a development application

This message appears when using application manager to restore runtime application from a .MER file v4.00 with FactoryTalkView ME 5.00.
Versions prior to v5.00 CANNOT be converted from MER (runtime) format to a development format using Application Manager.
Runtime files prior to v5 can be restored by following the instructions
How do I Recover a Project from the MER File?
Series/Revision: 1.0; 1.5; 2.0; 2.10.00; 3.0; 3.1; 3.2; 4.0
NOTE: As of Revision 5.00 the ability was added to restore an MER file back to design time. If the Never allow conversion or Conversion protected by password options are selected when creating an MER file then the Graphic Display (GFX) files will unrecoverable even following the steps below. 

Details

When the development project files have been lost, some of the project information can be recovered from the MER (Machine Edition Runtime) file itself. However, the following cannot be recovered:
  • Parameter files
  • Alarm Setup
  • Datalog files
  • Macro files
  • RSLE shortcut information 
Under some circumstances, the Tag Database cannot be recovered either (described below under Tag Database Recovery).