problems with floating point files and math operations rslogix 500

iarriagadap

Member
Join Date
Oct 2008
Location
Santiago
Posts
6
Hello everybody
I'm new to plc programming and i'm trying to program some simple math operations to convert some measurments for a project. The problem is that when i try to use floating point variables in the intstructions (particularly, in the SUB instruction), after compiling, i get this message

rung 4 ins 0: ERROR: Program could not be compiled!Instruction not valid for processor.

Im currently using a SLC 5/03 1747-L532B with OS301, and the Instruction set guide states that floating point (F) is a valid file type with the sub and add (and mos of the others) instructions.

anyone has had the same problem?
 
Post the exact logic (instruction) you are trying.

Some instructions do not work with Floating point, though virtually all math instructions should.

Is the floating point file big enough to cover the address you are trying to reach? It defaults to one element after all.
 
the exact instruction is


-SUB---------------
Substract
Source A F8:0
0.0

Source B 1.6
1.6

Dest F8:1
Source A 0.0
-------------------

it's the only instruction in that line. And that's the line with the problem
 
Last edited:
Very strange.... try to delete this instruction, recompile, save and then add again your SUB.

Which version of software are you using?

- [font=comic sans ms,sans-serif]fuzzy logic[/font]
 
That "SOURCE A" at the end of the instruction is suspect (though it may be just a typo). My RSLogix500 compiled that instruction ok for the PLC type and OS you specified.
 
Can you post the actual .rss file (zip then post) for the processor in question. A resent upload. Are you sure its a OS301 and not a OS300?
 
yes, it's OS301.
But i solved the problem!
I just created a new project, copied everything from the original, and it compiled!, no errors. I really don't understand what could have happened with the original file of the project.
Thanks everybody
 

Similar Topics

Ok, i'll start with what I can do: ADD K1 D500 D500 That line adds 1 to register d500 and stores it back in register d500 Its a 16bit machine and...
Replies
3
Views
1,955
Hi, having some issues with scalings (SCP commands) with some Vegapuls 65 guided wave radar level transmitters. I've set the min/max in the...
Replies
5
Views
184
Anyone have problems/solutions with Rehosting Studio 5000 to a new computer. Our IT department successfully Rehosted 2 laptops, but the other 2...
Replies
1
Views
145
Hello. I appreciate the insights here and the willingness to share. I've got a lot of Rockwell experience, but my Siemens experience is...
Replies
6
Views
196
Back
Top Bottom