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

TOPIC: Bugs in IMC object

Bugs in IMC object 6 years 11 months ago #8914

  • brunad
  • brunad's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 247
  • Thank you received: 48
  • Karma: 11
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: 6 years 11 months ago by brunad.
The administrator has disabled public write access.

Bugs in IMC object 6 years 11 months ago #8920

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
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: 7.841 seconds