Post by dtamm on How to read string from CharBufferPtr?
CODESYS Forge
talk
(Post)
I am trying to implement a mechanism to send alarm SMS. For this, I have created an Alarm Class with a Notification Action which calls a POU. This POU implements IAlarmNotifiable making it selectable in the Alarm Class configuration. IAlarmNotifiable has an Execute method which is called by the alarm class. Now, I want to extract the alarm message of the triggered alarm. The Execute method comes with a VAR_INPUT itfAlarm: AlarmManager.IAlarm which supplies a method called GetMessage. The help text says: Returns the message text, that has been configured for the alarm. The result is a pointer to the buffer, where the message text is stored The type of the result is CharBufferPtr, and at some place I read that it can be interpreted as a pointer to string. But I cannot manage to extract the alarm message, all I get are numbers. I have tried the following: psAlarmText := itfAlarm.GetMessage(__SYSTEM.TYPE_CLASS.TYPE_STRING)^; sAlarmText := TO_STRING( itfAlarm.GetMessage(__SYSTEM.TYPE_CLASS.TYPE_STRING)^ ); So how do I get access to the alarm message as clear text? (In this case, "Larm 1")
Last updated: 2024-02-21
EWON
CODESYS Forge
talk
(Thread)
EWON
Last updated: 2024-02-21
Post by dtamm on How to read string from CharBufferPtr?
CODESYS Forge
talk
(Post)
Solved it! The simple answer was to declare a variable as POINTER TO STRING and assign the GetMessage result to that variable. Then, the ^ operator can be used to extract the message as string.
Last updated: 2024-02-21
How to read string from CharBufferPtr?
CODESYS Forge
talk
(Thread)
How to read string from CharBufferPtr?
Last updated: 2024-02-21
Codesys HMI with a non codesys programmed controller
CODESYS Forge
talk
(Thread)
Codesys HMI with a non codesys programmed controller
Last updated: 2024-02-21
Post by landhen on Codesys HMI with a non codesys programmed controller
CODESYS Forge
talk
(Post)
Hello, I would like to know, if it is possible to use codesys for a visualization of parameters in a controller (not PLC) not programmed using Codesys. I intend to use codesys for the visualiztion, and do not know yet what I may require.
Last updated: 2024-02-21
Post by mariussandu on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
CODESYS Forge
talk
(Post)
Any update on 4.11? The release date was 20.02.
Last updated: 2024-02-21
Post by manuknecht on Creating softmotion axis dynamically
CODESYS Forge
talk
(Post)
Hi I was wondering the same thing. I managed to dynamically add an EtherCat Slave but I could not find out how to add a softmotion axis to it. Does anyone have an answer to this? Thanks in advance!
Last updated: 2024-02-21
Creating softmotion axis dynamically
CODESYS Forge
talk
(Thread)
Creating softmotion axis dynamically
Last updated: 2024-02-21
Post by johnny on EVL/EVC auf IFM CR711S
CODESYS Forge
talk
(Post)
Gab es hierzu schon eine Hilfestellung in der Zwischenzeit? Habe dasselbe Problem - ebenfalls auf CR711S.
Last updated: 2024-02-21
Post by mariussandu on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
CODESYS Forge
talk
(Post)
thank you for update!
Last updated: 2024-02-22
Post by eschwellinger on IDE Version
CODESYS Forge
talk
(Post)
where exactly does this happen?
Last updated: 2024-02-22
Post by eschwellinger on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
CODESYS Forge
talk
(Post)
this week for sure!
Last updated: 2024-02-22
Post by kumareasu on IDE Version
CODESYS Forge
talk
(Post)
Version 3.5.19.50 getting downloaded When downloading CoDeSys version 3.5.19.60.
Last updated: 2024-02-22
Post by reinier-geers on Compile error
CODESYS Forge
talk
(Post)
Ive got a project version 16p3 Running on Epis( 32) . Codesys cant see License stick on Epis and no one can tell me why. So Got me a Crist(64). Change version to version 18.4 But then i get dialog libry problems. Anyone knows why ?
Last updated: 2024-02-22
Post by haroonkh on Toolbox missing item
CODESYS Forge
talk
(Post)
Hi I am new to Codesys. My toolbar has missing alot of components. Can someone help with it?
Last updated: 2024-02-22
Toolbox missing item
CODESYS Forge
talk
(Thread)
Toolbox missing item
Last updated: 2024-02-22
Post by haroonkh on Toolbox missing item
CODESYS Forge
talk
(Post)
Hi I am new to Codesys. My toolbar has missing alot of components. Can someone help with it?
Last updated: 2024-02-22
DI4 USB - Transfer Data
CODESYS Forge
talk
(Thread)
DI4 USB - Transfer Data
Last updated: 2024-02-22
Post by hasangenc on DI4 USB - Transfer Data
CODESYS Forge
talk
(Post)
Well, Hi again. I solve the problem, if anyone having the same problem, I might help. You can reach me through this platform.
Last updated: 2024-02-22
Post by kumareasu on Hydraulic Axis Controller
CODESYS Forge
talk
(Post)
Hope I need to softmotion package ( https://store.codesys.com/en/codesys-softmotion-axes-4.html ) for this. Please confirm.
Last updated: 2024-02-23
Post by kumareasu on IDE Version
CODESYS Forge
talk
(Post)
When I download IDE for version 3.5.19.60.( https://store.codesys.com/en/codesys.html )
Last updated: 2024-02-23
IDE Version
CODESYS Forge
talk
(Thread)
IDE Version
Last updated: 2024-02-23
Post by kumareasu on IDE Version
CODESYS Forge
talk
(Post)
When I download IDE for version 3.5.19.60.( https://store.codesys.com/en/codesys.html )
Last updated: 2024-02-23
auf Feldbusvariablen ΓΌber Array zugreifen
CODESYS Forge
talk
(Thread)
auf Feldbusvariablen ΓΌber Array zugreifen
Last updated: 2024-02-23
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.