Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile code in 64 bit mode (SysFile23 and SysSocket23 not compatible) #165

Open
Kyosuk3 opened this issue Dec 21, 2024 · 3 comments

Comments

@Kyosuk3
Copy link

Kyosuk3 commented Dec 21, 2024

Hello,

First of all, thank you for the great work and effort you’ve put into this repository. It’s a fantastic resource for smart building applications.

I am attempting to use this repository’s code on a WAGO PFC300 PLC. However, when compiling in 64-bit mode with CODESYS v3.5 SP19, I run into a compatibility problem with two system libraries: SysFile23 and SysSocket23. These libraries appear not to support 64-bit compilation.

I have noticed that these libraries are dependencies of the Network library from OSCAT, which further complicates the issue.

Would it be possible to update or replace these libraries to allow 64-bit support? Any guidance or workarounds would be greatly appreciated.

Thank you in advance for your help!

@Kyosuk3 Kyosuk3 changed the title Unable to Compile Code in 64-Bit Mode (SysFile23 and SysSocket23 Not Compatible) Unable to compile code in 64 bit mode (SysFile23 and SysSocket23 not compatible) Dec 21, 2024
@MichielVanwelsenaere
Copy link
Owner

Hi,

Thanks!

Interesting, could you have a look at using this port of the libary instead of what I provided?
https://github.com/stefandreyer/OSCAT-NETWORK

Let me know how it goes, if this does the trick I'll gladly merge it back into this project.

@Kyosuk3
Copy link
Author

Kyosuk3 commented Dec 24, 2024

Thank you for your response,
It seems to be the same version. I also encountered a compilation error due to it being 32-bit.
Given the age of the library, it doesn’t appear to have been designed for compilation with 64-bit instructions.

However, I noticed that there are no direct calls to this library in the program, and it doesn’t seem to have any dependencies with the other libraries either. If I remove it, the program compiles correctly (though I haven’t tested it on the PLC yet).
What is the role of this library in your project?

I had to re-import several libraries and manage some missing dependencies. It’s possible that Wago handles part of the networking differently, which could explain the absence of errors.

Here’s an overview of the libraries used (WagoTypesSocket (1.6.0.0) is missing):
image

@MichielVanwelsenaere
Copy link
Owner

interesting! honestly, I don't recall. It's possible that it was a dependency for the MQTT library a -long- time ago but that it's no longer required. Let me know if you manage to get things to run on your device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants