×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help with Quick Panel displaying negative values

Help with Quick Panel displaying negative values

Help with Quick Panel displaying negative values

(OP)
I have a quick Panel that I am programing in proficy. I have a modbus register coming in that is a negative value. the quick panel shows this as a value of 0. how can I get it to show the negative value?

RE: Help with Quick Panel displaying negative values

I know nothing about your system. But most systems have variables or records than can be declared or typecast to handle negative values. Like Integer instead of Absolute.

Is it as easy as that?

If not, you will have to write a function that detects negative values, converts it to absulute value, displays it and adds the sign in the display. I cannot imagine that you shall have to do that in a modern system, though.

Gunnar Englund
www.gke.org
--------------------------------------
Half full - Half empty? I don't mind. It's what in it that counts.

RE: Help with Quick Panel displaying negative values

(OP)
it is just a raw value. I can read it with a modbus scanner as a value of -14 but the display shows it as 0. if the value would change to a positive then the display reads it correctly. I have tried to change it to a DINT or a REAL and that did not work. There has to be something simple I am missing but everything I have tried has not been successful. I will try to get a hold of GE tomorrow and maybe they can point me in the right direction.

Thank you for your response.

RE: Help with Quick Panel displaying negative values

Some times there is a scale associated with a displayed value.

There are systems where if the scale is 0 to something positive and your value is negative, the scaling function will truncate the value at scale minimum, 0.

RE: Help with Quick Panel displaying negative values

(OP)
I found the spot where I can give it a min/max value and it made no difference.

RE: Help with Quick Panel displaying negative values

There's the one offset in Modbus register addressing, the difference between starting a count at zero or at one.

You could be reading an address that starts at zero in the Modbus scanner but the panel starts at one (or vice versa)

Try reading the modbus address one plus or one minus of the target register address and see if something other than zero appears.

RE: Help with Quick Panel displaying negative values

Check what danw2 suggests. Also verify that you do not need to swap bytes as some Modbus devices use motorola vs. intel byte (Big endian vs. Little endian) order.
This is a parameter of the driver but it's location is depending on which driver you are using in the QuickPanel either Native or OPC and Serial or Ethernet. You will be able to find it in the driver's help.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources