Author Topic: EMD Speed Sensor Function Block compiling error  (Read 7469 times)

Offline Lukey

  • PLUS+1 Expert
  • ****
  • Posts: 67
  • Karma: +6/-0
EMD Speed Sensor Function Block compiling error
« on: October 06, 2023, 09:53:30 AM »
Hello,

I am having issues compiling a program with EMD Speed Digital Direction Function Block.
Library EMD Speed Sensor ver: 11115595v102 is the version I have, I have tried blocks EMD_SPD_DIR and EMD_SPD_DIR_D_A_ with no success, I receive the same compile error, viewing logical net tells me it's related to code inside the block as I receive message unable to view disabled page, directing the error to a page I cannot see therefor I think maybe these function blocks are broken?

Anyone else experience this?

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 296
  • Karma: +28/-1
Re: EMD Speed Sensor Function Block compiling error
« Reply #1 on: October 09, 2023, 07:55:16 AM »
Hello,

What does the compile error say?
Are all the input signals the correct type?
If you use constants, make sure you use typed constants, not auto-typed. A very common issue.
Best regards,
Tor
PLUS+1® SW PAE Team

Offline G30RG3

  • PLUS+1 Expert
  • ****
  • Posts: 74
  • Karma: +3/-0
Re: EMD Speed Sensor Function Block compiling error
« Reply #2 on: October 13, 2023, 02:00:07 PM »
Maybe the time to send the autotype-constants in retirement is overdue: the benefits are close to non existant, the issues caused by data type errors ...

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 296
  • Karma: +28/-1
Re: EMD Speed Sensor Function Block compiling error
« Reply #3 on: October 13, 2023, 04:22:07 PM »
Hi G3ORG3,

I agree!!
Best regards,
Tor
PLUS+1® SW PAE Team

Offline Lukey

  • PLUS+1 Expert
  • ****
  • Posts: 67
  • Karma: +6/-0
Re: EMD Speed Sensor Function Block compiling error
« Reply #4 on: October 26, 2023, 02:44:11 AM »
I did not try constants instead of autotypes, as I found out with the assistance of Ryan from Help Desk that I was addressing input from an expansion module which do not have the HW "Per." capabilities for the FB to work correctly.

Tip for young players, read/plan carefully the pin requirements of the hardware FB prior to selecting the hardware.

Offline Tor

  • Administrator
  • PLUS+1 Guru
  • *
  • Posts: 296
  • Karma: +28/-1
Re: EMD Speed Sensor Function Block compiling error
« Reply #5 on: October 26, 2023, 07:49:24 AM »
Thanks for sharing the information Lukey.

Have a nice day.
Best regards,
Tor
PLUS+1® SW PAE Team