Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Bugs in IMC object

Bugs in IMC object 5 years 7 months ago #8914

  • brunad
  • brunad's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 275
  • Karma: 0
Hello (Claes)

Thank you for give the new graphical interface to IMC object.
I noticed a bug or two in pwr_c_compimc.pwg:


cmps_2.jpg






File Attachment:

File Name: pwr_c_compimc.pwg.zip
File Size: 11 KB









Furthermore I have put protections against possible divisions by zero due to user configuration errors causing the code to crash and Replacing the Normalize macro by a function (Changes are made in this new rt_plc_bcomp.c file).


File Attachment:

File Name: rt_plc_bcomp.c
File Size: 29 KB



Best Regards B) B)

/Bruno
Last Edit: 5 years 7 months ago by brunad.
The administrator has disabled public write access.

Bugs in IMC object 5 years 7 months ago #8920

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3048
  • Thank you received: 454
  • Karma: 125
Thanks Bruno,

I'll add the modifications to the next release.

For what I can see the decimal positions where correctly connected but notice that there is a DecimalDecrement that is set to 2. This will decrease the number of decimals with 2 compared with the input or output value. You usually don't need that many decimals in the range specifiers.

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.537 seconds