Slc 500 5/04 processor

Adam303

Lifetime Supporting Member
Join Date
Aug 2009
Location
Chicago
Posts
587

Setpoint (SP)
Input
Parameter
Descriptions
Address Data
Format
Range Type User Program
Access
SP - Setpoint Word 2 word (INT) 0 to


16383
(1)
(1)


The range listed in the table is for when scaling is not enabled.

With scaling, the range is from minimum scaled
(SMIN) to maximum scaled (SMAX
control read/write
***I have an issue how to write to the Sp input of the PID instruction.
Listed above (1) The range listed in the table is for when scaling is not enabled.

1 So how can I enable the scaling???

(1) The range listed in the table is for when scaling is not enabled.

2 For say if my set point ranges from -328 to 1562. Do I have to Use the SCP SCALE WITH PARAMETERS intruction, and scale the sepoint than write the output of SCP to the
SP - Setpoint Word 2 word (INT) 0 to 16383 ?

3 With scaling, the range is from minimum scaled
(SMIN) to maximum scaled (SMAX)
So if my (SMIN) is -328 and (SMAX) is 1562.
Do i just move actual set point (lets say -150)to The PID control Block Word 2??


Thanks for all your help??

 
There is a lot of useless information in your post. Please ask specific questions, and we will do our best to help you. What are your input and output devices, specific cards, what you are trying to achieve. The best thing would be to post your sample code (zip it first, or change the extenstion to zip). Don't worry if it isn't complete or polished, but it should have all the pieces in place relevant to your question.

To answer what I can understand your question is in general, the PID Input Process Variable must be scaled from 0 to 16383 and your PID Output Control Variable will range from 0 to 16383. These must be scaled from the Raw Input Data before being used in the PID Instruction, and the Control Variable scaled to your final Output device. The actual scaling details will depend on what they are, and we don't have that information.

I generally don't scale the Setpoint, because the PID Instruction can do it for you. Enter your minimum and maximum Setpoint in the Setup Screen. You can enter negative numbers for the minimum Setpoint, but make sure it matches you actual Raw Data Input, and it still has to be scaled to 0 to 16383.

Check out Chapter 9 of the Instruction Reference.
http://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1747-rm001_-en-p.pdf

The more information you give us, the more we can help you.

Stu.....
 
1746-NIO4I I/O MODULE
1746-NR4 INPUT MODULE RTD
What I'm trying to do is enter the sp Set point value Via HMI
The set point will range from -328 to 1562

The rtd module input is Set for "scale for Pid"
 
1746-NIO4I I/O MODULE
1746-NR4 INPUT MODULE RTD
What I'm trying to do is enter the sp Set point value Via HMI
The set point will range from -328 to 1562

The rtd module input is Set for "scale for Pid"

Ok, having the RTD Module set up for PID Scaling, you don't have to add a separate Scaling Instruction. That won't always be the case, as not all I/O Cards have that feature. You will need one for the Analog out in this case.

Attached is a short example, the cards may not be in the correct slots, so you might have to change the addresses to suite. I also put in the S5 Unlatch from your other thread. Change the extension from zip to rss, and you should be able to open it in RSLogix 500. I also included a pdf, but it will not be as useful for the nitty gritty details.

Read throught the PID Chapter of the Instruction Manual I gave the link to in my previous post, and it will explain what all the PID Control Block Words and Bits are for. Also, don't forget the RSLogix 500 Instruction Help, under the Help Menu.

Stu......
 
I had to reboot while I was writing the last post, so a couple of additional details. The second word of the PID Control Block is the Setpoint, so in the example, it would be N10:2. Write to the proper address from your HMI. You should do limit checking for out of range values at the HMI or the PLC, or better yet, both. So that the Operator can't input incorrect data. Screwing up a PID can fault your Processor on AB PLCs.

Stu.....
 

Similar Topics

Hello all, I have an SLC 5/05 series C (pic attached) but when I try to download a program it say it is a different series with a different FRN...
Replies
8
Views
3,854
Good Evening , I would like to test some message instructions , and other modifications in a SLC 500 5/05 Processor in the office without 2...
Replies
4
Views
1,960
Good Afternoon, I plan on replacing some SLC 500 PLC's with CompactLogix. Could you tell me what the equivalent processor is in the...
Replies
4
Views
2,280
Good Morning , I cannot believe I forgot how to do this. It seems like I have been spoiled with everything being Ethernet. I have a SLC 500...
Replies
4
Views
2,750
Hello. I am learning Allen-Bradley PLC programming using the RSLogix 500 emulator. So I need some help pls. I am using the RSLogix Microstarter...
Replies
8
Views
4,259
Back
Top Bottom