plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Get the book!

If you're really looking to learn about PLCs, you NEED our book...

"Your Personal PLC Tutor - A Guide to Understanding PLCs"

Easy to read and uses 'plain' language!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old May 8th, 2006, 04:31 AM   #1
yfcarer
Member
China

yfcarer is offline
 
yfcarer's Avatar
 
Join Date: Apr 2006
Location: Tianjin
Posts: 67
Lightbulb analog scale with Rslogix 5000

Hello, everyone.

It's me again.
I am now write a program under RSLOGIX 5000. When I try to scale an analog input from IO cards, I cannot find a command like "SCP" in RSLOGIX 500. This give some trouble to my program because I have a lot of analog signals.

Can anyone give me some idea to make the scaling simply?
Thanks in advance!
  Reply With Quote
Old May 8th, 2006, 06:28 AM   #2
andybutcher
Member
Australia

andybutcher is offline
 
Join Date: May 2004
Location: Brisbane
Posts: 25
Hi There,

There is a scaling function in RSLOGIX5000. To use it you have to create an FBD or Structured Text subroutine and use the function there. The function is called SCL.

Hope this helps.

Andrew
  Reply With Quote
Old May 8th, 2006, 06:36 AM   #3
SNK
Member
Canada

SNK is offline
 
SNK's Avatar
 
Join Date: May 2004
Location: Toronto, Ontario
Posts: 875
In logix 5K, you scale all of the signals in the I/O configuration. You really don't need to use SCP anymore, unless you are using indirect addressing for this function.
Believe me, it is REALLY easy.
Just right click on the module in the software, click properties, then the configuration tab.
  Reply With Quote
Old May 8th, 2006, 09:02 AM   #4
yfcarer
Member
China

yfcarer is offline
 
yfcarer's Avatar
 
Join Date: Apr 2006
Location: Tianjin
Posts: 67
Unhappy

Thanks a lot for your reply.

But unfortunately, my RSLogix5000 is a mini edition, which is not supporting FBD.
And I have looked carefully in the IO module (My AI module is 1769-IF8) configuration tab, but did not find the place where I can input engineering H/L value and other parameters for scaling. I think it maybe different from module to module, since when I tried to add another type of analog iput module(1769-IF4), and find it support the scaling.
  Reply With Quote
Old May 8th, 2006, 09:39 AM   #5
dash
Member
United States

dash is offline
 
dash's Avatar
 
Join Date: Jun 2003
Location: Birmingham, AL
Posts: 512
The scaling at the input module level only applies to 1756 I/O. The 1769 you will need to scale in a compute calculation (CPT) or use the FBD, which you stated you do not have access to.

Darren
  Reply With Quote
Old May 8th, 2006, 10:05 AM   #6
mgvol
Member
United States

mgvol is offline
 
mgvol's Avatar
 
Join Date: Dec 2004
Location: Knoxville, TN
Posts: 746
Since there is only a "thin profile" for this mpodule, you will need to use this technote to assist in configuring/enabling the channels of your module.

http://domino.automation.rockwell.co...9?OpenDocument
  Reply With Quote
Old May 8th, 2006, 01:12 PM   #7
Alaric
Member
United States

Alaric is offline
 
Alaric's Avatar
 
Join Date: Apr 2005
Posts: 3,979
Our distinguished colleague and PLC guru Ron Beaufort has posted an excellent thread on scaling.
http://www.plctalk.net/qanda/showthread.php?t=15069
While this thread is geared towards the SLC family of PLCs it contains all of the basic information needed to use the CPT instruction in a compact logix to perform the scaling.

In addition, since you have many analog points to scale I suggest you create a UDT that contains the following elements:
RAW DINT Raw analog value
SCALED REAL Scaled analog value or Y term of scaling
M REAL Slope of line for scaling
B REAL Offese of line for scaling.

Create only one user subroutine that can accept a tag of tne UDT type passed to it and perform the scaling and then pass the tag back out. You will use this subroutine over and over for each point rather than creating new code for each point.

Create a tag for each analog point of the new UDT type.
Copy the analog raw value from the IO module to the .RAW Dint. Then call the scaling subroutine and pass it it the new UDT tag.

Repeat for each analog point.
  Reply With Quote
Old May 9th, 2006, 01:14 AM   #8
RSL
Member
United States

RSL is offline
 
RSL's Avatar
 
Join Date: Nov 2004
Location: Missouri, USA
Posts: 259
I do it just like Alaric suggested. I roll my own scale function in ladder. I use UDT's to handle all my data. I map the raw values into my UDT's and call the subroutine with a For next Loop. All you do is enter the raw minimum, raw maximum, scaled minimum, and scaled maximimum for each analog you want to scale.

Start by writing the formula you want to use for scaling in a compute instruction.

Then create a UDT that has all the variables needed to fill in your formula.

Then create a tag array of your UDT big enough to handle all your analogs plus room for growth.

Then edit your compute formula to use indirect references where your array element equals the current index value of your For Next Loop.

Once you figure this out the first time you will remember it.

It really is simpler than it sounds.

RSL
  Reply With Quote
Old May 9th, 2006, 03:03 AM   #9
yfcarer
Member
China

yfcarer is offline
 
yfcarer's Avatar
 
Join Date: Apr 2006
Location: Tianjin
Posts: 67
Thanks for all your help.
I will try your method.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Custom Data Monitor in RSLogix 5000 Oakley LIVE PLC Questions And Answers 3 May 28th, 2007 02:53 AM
RSLogix 5000 V15 Features Samneggs LIVE PLC Questions And Answers 18 April 20th, 2006 05:45 PM
Newbie RSLogix 5000 Paully's5.0 LIVE PLC Questions And Answers 6 January 12th, 2006 05:02 PM
RSlogix 5000 professional huynt LIVE PLC Questions And Answers 4 August 2nd, 2005 01:45 AM
RSLogix 5000 eastkodakguy LIVE PLC Questions And Answers 2 July 3rd, 2002 11:28 AM


All times are GMT -5. The time now is 12:08 AM.


.