PLUS+1 User Forum

PLUS+1 Tools => PLUS+1 GUIDE => Topic started by: Lukey on October 06, 2023, 09:53:30 AM

Title: EMD Speed Sensor Function Block compiling error
Post by: Lukey 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?
Title: Re: EMD Speed Sensor Function Block compiling error
Post by: Tor 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.
Title: Re: EMD Speed Sensor Function Block compiling error
Post by: G30RG3 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 ...
Title: Re: EMD Speed Sensor Function Block compiling error
Post by: Tor on October 13, 2023, 04:22:07 PM
Hi G3ORG3,

I agree!!
Title: Re: EMD Speed Sensor Function Block compiling error
Post by: Lukey 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.
Title: Re: EMD Speed Sensor Function Block compiling error
Post by: Tor on October 26, 2023, 07:49:24 AM
Thanks for sharing the information Lukey.

Have a nice day.