HomeAutomation.CoDeSys3 icon indicating copy to clipboard operation
HomeAutomation.CoDeSys3 copied to clipboard

rs485_eastron_sdm220 RequestMaster method doesn't exist?

Open drled opened this issue 2 years ago • 6 comments

I'm trying to implement the FB "FB_RS485_EASTRON_SDM220" in Codesys but i get an error on the RequestMaster method: Seems like this one doesn't exist?:

[](url RequestMaster_Method )

Thanks!

drled avatar Aug 03 '22 17:08 drled

Hi!

Looks like you are using an old piece of code there. The whole RS485 functionality got a big refactor some time ago.

Please check the latest version of the project and adopt where necessary.

MichielVanwelsenaere avatar Aug 03 '22 18:08 MichielVanwelsenaere

Hi,

Thanks for your quick feedback! I'm still having the same issue after downloading the newest release and starting from scratch.

After installing the missing libraries, etc the "FB_RS485_EASTRON_SDM220_1.RequestMaster" error is left.

I've added an archive(Codesys V3.5 SP18) of my testproject testproject_20220804.zip .

drled avatar Aug 04 '22 17:08 drled

for some reason I can't see any content in the archive you've provided.

Yet, the refactor dropped the method 'RequestMaster' in any RS485 FB so your error makes sense. Are you sure you also updated your RS485 PRG? This is more or less how the RUN should look like: image

The init RS485 also requires some updates. With the refactor, all you need to do is register your RS485 FB against a buscontroller and everything else like acquiring the bus will be handled for you.

MichielVanwelsenaere avatar Aug 05 '22 15:08 MichielVanwelsenaere

Thanks for the feedback, yes I started completely from scratch so RS_485.PRG is also updated.

Seems like you are using the "ecockpit" version and i am using Codesys. In the codesys version the "RequestMaster" is still present. I will try to adjust the code a bit to get rid of the error.

drled avatar Aug 06 '22 16:08 drled

I had a doublecheck, is this the piece of code you're refering to? image

if so, you can remove it completely. Seems like I missed to remove this block.

I indeed use écockpit and it's hard to doublecheck everything new in Codesys as I don't have a device running it. Yet, every functionality is developped to work on both runtimes.

MichielVanwelsenaere avatar Aug 07 '22 15:08 MichielVanwelsenaere

Yes it's indeed that part of the code. I will try removing that part and let you know the result asap :)

drled avatar Aug 08 '22 15:08 drled

closing due to inactivity.

MichielVanwelsenaere avatar Sep 19 '22 14:09 MichielVanwelsenaere