Logix 5000 ABS, LES and GRT

caseymx

Member
Join Date
Jul 2017
Location
La
Posts
5
I have been searching and cannot find a reason for why this is happening. This programming was factory installed by a machine vendor and I have duplicated it on my test station in both function block and ladder format with the same results.
When using the ABS instruction preceding a LES or GRT instruction, it seems that the non absolute value is still being used. My past understanding is that the ABS strips the sign from the negative value making it a positive value. So why doesn't the LES and GRT instructions use the result accordingly?

_vW7XrRdTuO8TidNv7vYZ-FrkLhjnWMXGrNtiRtFK9ABVSpPlpiYZgHWJGR4tkTd3xsFTuQ_zG5lsQNu0-xzaLffi9PQoafJK2XyhnT6lNVSECplSWJgJNceeSwjyEANGOK3lju2-PoHZZx3wZdxUIdVI7qncT9ktI75QtDqAFwerwwKzmvFCEeZz1yI1v45rpB6_5cg8pTBaYRb48tOvN1wivz-Lx7C-Vkjbzh4fMXWl7PjKyagiz0vU2yrOncvnm0p40_31OJ2k59rMJb1ho7T6tBUQDiyDBJFjdLgkDEdHfFIWz6LFkdqur0IEuG1bj_JZ-DBn2h0k90dH_aQ4SkSdNk0056HUIB5_eehw1T8wdDH194lhamcjqKFsOhdsfFI0drCWnWSO8t8E0hksZo7_eELUPltIAxSWG1UCQnEVpMviFAq0Fhpt9QeEgol9V3lpytD2TFh86TBVxMXWxQmJD1XsZsDPpE6V4bDc5XqSwkZNqoROXHVC-JY4JnW5a79KEVDQ0lzWege6MdS3YpB4mdullqtGJczd26n0OFmSQTFvC4xeMfg0Wj8yaPNdeaj_B4LquQH06_Eg8lcZo6V_-MsMcSh8mI9KHV4zbWdvB2T3mHDSo5JmFelHiMbzM0BJ6jRhkTdcYpZxVf-FJwfXUkyguuH7t_8Yh6oMyxNUHzcxWdbDC_SJmXluiK4GDs1WXsvySsoV8QHma2mTtyGgrmWeQen1z9v9Oeq3lW-XZjK2oUdqpfrzCcTnQcugz6X4aDDV6xY7B-y1quF8847K6OdEaRWIxvEjQwE5ap14rcKZO9vukwqOvTU1VMMC3rK9A2yJf4tJ8GysQEsPr8iNS39-iSxvhcsNX5YgtsM7sb7FjQcowYHqgcOrGjd3oZKJ2MUWwJARnbeGbv13K-sUfiftyR-DLcLLm-FXxwy=w968-h725-s-no
 
Well I guess I didn't do my math like I should have. So why does the result show 1.43289 instead?
 
I agree with @Steve Bailey: that code is doing exactly what it has been told to do: when the difference between _741_GHZ_1271.Thr_pos_Select and meas, as calculated and output by block SUB_01_01, is between -0.1 and +0.1, exclusive (i.e. when the absolute value of the difference is less than 0.1), then the discrete output of block SETD_07, _741_GHZ_1271.Thr_pos, will be 1 because its Set input pin is 1, and it will stay that way until that difference is outside the range -0.2 to +0.2 (i.e. the absolute value of the difference is greater than 0.2).

How do you want it to behave, and is that any different from how it has been told to behave?

Note also that that the Ladder Logic shown is not equivalent to the FBD logic.
 
Thanks. This is the answer I was looking for. Been a while since I've had to deal with exponents. My mind skips a little after 50 years.
Much thanks guys.
 

Similar Topics

This is s stupid thing but it drives me crazy. 5000 seems to open new lad windows to the far left every time. I tend to like to have my Tags...
Replies
3
Views
1,183
I don't think I'm going crazy.. Lately when I have multiple routines open in the ladder editor and I open another one my tabs at the bottom only...
Replies
7
Views
2,454
Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
581
Back
Top Bottom