Post by uluking on CodeSys2.3 Modbus 64-Bit Double Read Problem
CODESYS Forge
talk
(Post)
Hi everyone, I would appreciate your help with a problem I've been working on for a few days but haven't been able to resolve. I am reading data from a Siemens PAC3220 energy analyzer using Modbus with Wago-8202. However, the device's energy indices are given as doubles. Since a double variable is 64-bit, it is not possible to read it directly. I have been struggling for days, I have written many conversion functions but I have not been able to get results. I would appreciate your help. I read 4 word variables and processed them. I am converting them according to IEEE-754, but I can't seem to read the correct data. I would appreciate your help.
Last updated: 2025-10-27
Post by uluking on CodeSys2.3 Modbus 64-Bit Double Read Problem
CODESYS Forge
talk
(Post)
Hi everyone, I would appreciate your help with a problem I've been working on for a few days but haven't been able to resolve. I am reading data from a Siemens PAC3220 energy analyzer using Modbus with Wago-8202. However, the device's energy indices are given as doubles. Since a double variable is 64-bit, it is not possible to read it directly. I have been struggling for days, I have written many conversion functions but I have not been able to get results. I would appreciate your help. I read 4 word variables and processed them. I am converting them according to IEEE-754, but I can't seem to read the correct data. I would appreciate your help.
Last updated: 2025-10-27
Home (version 1) discussion
yevgeniy
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-27
wiki Discussion
cristianrugeles
wiki
(Discussion)
Forum for wiki comments
Last updated: 2025-10-27
blog Discussion
cristianrugeles
blog
(Discussion)
Forum for blog comments
Last updated: 2025-10-27
Home
cristianrugeles
wiki
(WikiPage)
Project Members: cristianrugeles (admin)
Last updated: 2025-10-27
(no subject)
cristianrugeles
wiki
(Thread)
Last updated: 2025-10-27
wiki Discussion
js217
wiki
(Discussion)
Forum for wiki comments
Last updated: 2025-10-28
blog Discussion
js217
blog
(Discussion)
Forum for blog comments
Last updated: 2025-10-28
Home (version 1) discussion
dangusting
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-28
Home (version 1) discussion
denizerm
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-28
Home (version 1) discussion
mirco
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-28
(no subject)
js217
wiki
(Thread)
Last updated: 2025-10-28
Home
js217
wiki
(WikiPage)
Project Members: js217 (admin)
Last updated: 2025-10-28
OPC UA Client failed to connect
CODESYS Forge
talk
(Thread)
OPC UA Client failed to connect
Last updated: 2025-10-28
General Discussion
james
discussion
(Discussion)
Forum about anything you want to talk about.
Last updated: 2025-10-28
Handle 0 is invalid
james
discussion
(Thread)
Handle 0 is invalid
Last updated: 2025-10-28
Post by james on Handle 0 is invalid
james
discussion
(Post)
Hello, I am rather new to Codesys, final year engineering apprentice. I am trying to get good grip of Codesys to implent it in my company. Here is what i am using: Windows 11 Codesys V3.5 Patch 1 Raspberry Pi 5 with visualization. Problem: Nothing happens when i try to switch to Codesys perspective, the view stays in HMI project. This is an issue because me and my colleagues all use the Codesys perspective and is more intuitive to us and we are still learning to use use the application. I have tried looking on the blogs but i can't find any that have solved this issue. There is also a message that started to appear at the same time as this problem (The project handle 0 is invalid). Error appears when want to switch to a different project or when i try to close it. When I close the message, i can no longer close my current project so i have to close Codesys to open a new project. Any thoughts??
Last updated: 2025-10-28
Home
james
wiki
(WikiPage)
Project Members: james (admin)
Last updated: 2025-10-28
Post by msegon on OPC UA Client failed to connect
CODESYS Forge
talk
(Post)
Hi everyone, I would appreciate your help with a problem I've been working on for a few days but haven't been able to resolve. I'm trying to read data from Tridium Niagara 4.15 OPC UA Server, but I get the error BadCertificateInvalid. As far as I understand, you need to add a CA certificate somewhere to establish a secure connection, but I don't know where. 2025-10-27T09:06:43.247Z, 0x0000008d, 4, 0, 0, * ERROR: OpcUa_Channel_BeginConnect: Cannot create secure channel without certificates! 2025-10-27T09:06:43.247Z, 0x00001090, 4, 0, 0, * ERROR: Datasource: Error Failed (268468242) in state Connecting I tried communicating without encryption, but it doesn't find the point. Has anyone managed to establish encrypted OPC UA communication?
Last updated: 2025-10-28
Home (version 1) discussion
shaun
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-28
wiki Discussion
msegon
wiki
(Discussion)
Forum for wiki comments
Last updated: 2025-10-28
blog Discussion
msegon
blog
(Discussion)
Forum for blog comments
Last updated: 2025-10-28
(no subject)
msegon
wiki
(Thread)
Last updated: 2025-10-28
Home (version 1) discussion
jorg
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-28