SLC 500 LEQ floating point

DerekB707

Member
Join Date
Dec 2011
Location
The not so evergreen state
Posts
9
Hi,

Have a quick question on a slc500. Tying to create an alarm setpoint using a LEQ; It will not allow me to assemble the rung using a floating point in both the source A & B. Can a float point be used like this? I am trying to get decimal point resolution.

Thanks,
Derek

leq.jpg
 
You will find that the 'F' file is floating point and the 'N' file is an integer these are different data types and cannot be compared(AFAIK)in this way, they need to be same data types as you have found.

Steve
 
You will find that the 'F' file is floating point and the 'N' file is an integer these are different data types and cannot be compared(AFAIK)in this way, they need to be same data types as you have found.

Steve

Incorrect, all math instructions accept mixed data-types for their operands. The processor will convert all of them to the highest-order data-type for processing. If it is a math "do" instruction, it will then convert and/or round the result to store in the destination.
 
Incorrect, all math instructions accept mixed data-types for their operands. The processor will convert all of them to the highest-order data-type for processing. If it is a math "do" instruction, it will then convert and/or round the result to store in the destination.

Yes, I was allowed to assemble a integer compared to a float point, was just having difficulty assembling the edit with a '0' in the register of the float point for some reason, once I placed a real value in the register, I was able to assemble.
 

Similar Topics

I have a program that I've used 100 times. SQO settings: File N7:0, Mask 0FFFFh, Dest B3:1, Control R6:0, Length 8, Pos 2. Length & Position...
Replies
48
Views
950
Everyone, i am in the process of purchasing the Slc 500 version of software to support what we have and i have a question. Several of our...
Replies
9
Views
759
In a slc 500 plc I am trying to move data with out using a lot of moves. I want to move data from n7:1 to n7:2 and data that was in n7:2 to n7:3...
Replies
16
Views
1,354
Customer has a circa 2004 SLC-500 PLC. Fieldbus is a 1747-SDN DeviceNet scanner. Customer has SLC-500 file (.rss) with no comments. Has no *.dnt...
Replies
7
Views
551
After I tried wiring, I used computer program communication to read the PLC N value, but received a NAK signal. And the DL3500 CHA light keeps...
Replies
0
Views
423
Back
Top Bottom