mos89
Jan 3 2008, 10:17 AM
Dear All
I just get the las Rslogix 500 version 7, i try to compile my program designed for a ML1200 processor, and now i have a compilation error with SCP function, now it can not be used with floating value??
edit:
my parameters are integer values, only scaled value is floating !
Alaric
Jan 3 2008, 11:24 AM
You must be using a series C processor, firmware version 6 or higher to use floating point SCP on the ML1200.
In the project tree (left hand side of your screen) click on controller properties. Select the General Tab. Under processor type you should see that you have a series C processor.
mos89
Jan 4 2008, 02:07 AM
Yes i am using A C serie processor, my problem is when i open my program in RSlogix 500 vers5.5 i do not have any compilation error, when i open it in RSlogix 500 vers 7, i have compilation error with SCP function !
Ken Moore
Jan 4 2008, 05:34 AM
Are you sure it's an error, and not a warning?
Alaric
Jan 4 2008, 10:43 AM
QUOTE(Ken Moore @ Jan 4 2008, 03:34 AM) [snapback]63361[/snapback]
Are you sure it's an error, and not a warning?
[attachmentid=5738]
mos89
Jan 7 2008, 03:50 AM
it is error
TWControls
Jan 7 2008, 07:08 AM
Can you post the actual program?
Alaric
Jan 7 2008, 11:19 AM
Hmmm.
That is strange. When I copy your logic it verified OK for me. I wonder if there is some anomoly with the French version of Logix 500? If you can post your program we can compare results.
I don't know French but I have worked with the Italian versions of RSLogix enough to sort of understand the error message. Although the entire error message is not visible in the post, it appears that the software is objecting to the floating point constants. Try making the Input Min, Output Min, Output Max an actual I file address instead of a constant. The constants are forced to floating point because the source is a floating point number.
If you can't get this to work then one work around would be to do the scaling using basic math instructions. Since this is a straight forward scaling with no offset you could use a simple MUL statement to do the scaling.
MUL F8:137 6.54 O:2.0
If the value of 5000 located at N7:103 changes then use two steps.
DIV 32700.0 N7:103 F8:XXX
MUL F8:137 F8:XXX O:2.0
EDIT:
I just noticed something. From your screen shot it looks like maybe the rung verified anyways. There are no leading 'e' characters in front of the rung. If you look at my earlier post (#4) you can see that if the rung does not verify then there are still 'e' characters to the left of the left hand rail, indicating that the rung is unverified. Since there are none of these in your screen shot then its possible that the warning about floating point numbers was mistranslated as ERREUR in your French version of RSLogix. I think that the warning message is something new. You may want to bring the issue to the attention of Rockwell tech support.
Mickey
Jan 7 2008, 11:32 AM
Has stated above your controller must be "Series C" see pic below.
Then post a snap shot of your controller properties.
Clay B.
Jan 8 2008, 09:05 PM
I get a warning here. It still lets me use the program. Mine says something about needing firmware 6 or higher. The ironic part is an older version of RS Logix 500 does not do that. Just this version 7.
FYI... I am runing my program in a PLC right now and the floating point in my scaling is having no ill effect.
Alaric
Jan 10 2008, 11:10 AM
MOS89
I came across
technote number 17698 in the
AB knowledgebase that may be gremane to your problem while looking for something else.
Technote 29309 also describes a problem that looks a lot like your problem.
(Note, you will need to login to the knowledgebase - you can easily create an account if you don't have one)
You can apparently get an error sometimes the program is recompiled a second time when integer constants are entered and the compiler changes them to floating points. According to the technote you can either re-enter the constants as integers everytime you re-compile the program or you can use integer addresses as I suggested earlier instead of integer constants.
Clay B.
Jan 10 2008, 01:26 PM
I attached a screen shot of my warning. Basically it just says you have to have a certain firmware and version cotroller to use a float in the SCP. Program still verfies, you just get the nussance warning.
[attachmentid=5757]
TWControls
Jan 10 2008, 07:39 PM
Clay, reread his post 6. It is not giving him a warning, it is giving him an error
Alaric
Jan 10 2008, 09:49 PM
I attached a PDFprint out of the Technote 29309 about this problem for anyone who doesn't have a KB account.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.