Converting Variable Symbol name in a STRING
CODESYS Forge
talk
(Thread)
Converting Variable Symbol name in a STRING
Last updated: 2008-12-09
Mathematische Formel aus einem String heraus berechnen
CODESYS Forge
talk
(Thread)
Mathematische Formel aus einem String heraus berechnen
Last updated: 2006-10-07
STRING functions for more than 255 charater
CODESYS Forge
talk
(Thread)
STRING functions for more than 255 charater
Last updated: 2015-01-22
Get a instance name as string variable?
CODESYS Forge
talk
(Thread)
Get a instance name as string variable?
Last updated: 2010-02-27
Create a string by extracting value from a file
CODESYS Forge
talk
(Thread)
Create a string by extracting value from a file
Last updated: 2022-06-26
Get symbol address and length from string of symbol name
CODESYS Forge
talk
(Thread)
Get symbol address and length from string of symbol name
Last updated: 2022-06-21
Convert combo box selected items into a string
CODESYS Forge
talk
(Thread)
Convert combo box selected items into a string
Last updated: 2020-04-20
String Constants CoDeSys => Tera Term Pro
CODESYS Forge
talk
(Thread)
String Constants CoDeSys => Tera Term Pro
Last updated: 2006-11-07
STRING-Arrays as data-points in a graph
CODESYS Forge
talk
(Thread)
STRING-Arrays as data-points in a graph
Last updated: 2021-03-16
SVN - Revision-String von Bibliothek und Projekt
CODESYS Forge
talk
(Thread)
SVN - Revision-String von Bibliothek und Projekt
Last updated: 2018-05-15
problem with unicode string input into text field
CODESYS Forge
talk
(Thread)
problem with unicode string input into text field
Last updated: 2018-11-26
List of string pointed by value in visualization
CODESYS Forge
talk
(Thread)
List of string pointed by value in visualization
Last updated: 2018-01-31
read string from a web site (https)
CODESYS Forge
talk
(Thread)
read string from a web site (https)
Last updated: 2019-08-08
Einen String Wert in einer csv. Datei speichern
CODESYS Forge
talk
(Thread)
Einen String Wert in einer csv. Datei speichern
Last updated: 2011-05-25
reading string from file issue (more than 255 bytes)
CODESYS Forge
talk
(Thread)
reading string from file issue (more than 255 bytes)
Last updated: 2023-08-02
EtherNet/IP Device - Status "Diag string: 'Configure encapsulation Layer'"
CODESYS Forge
talk
(Thread)
EtherNet/IP Device - Status "Diag string: 'Configure encapsulation Layer'"
Last updated: 2022-01-02
NBS.IPv4Address.SetInitialValue input should not be STRING(15)
CODESYS Forge
talk
(Thread)
NBS.IPv4Address.SetInitialValue input should not be STRING(15)
Last updated: 2022-12-12
Is there a string compare function in ST ?
CODESYS Forge
talk
(Thread)
Is there a string compare function in ST ?
Last updated: 2017-11-08
XML-String an SOAP-Server mit HttpClient
CODESYS Forge
talk
(Thread)
XML-String an SOAP-Server mit HttpClient
Last updated: 2018-11-23
Extract a memory adress from a string value
CODESYS Forge
talk
(Thread)
Extract a memory adress from a string value
Last updated: 2016-12-06
Return value from a tag given a string literal
CODESYS Forge
talk
(Thread)
Return value from a tag given a string literal
Last updated: 2024-08-13
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
Post by kevinl on RevPi Connect RS485
CODESYS Forge
talk
(Post)
I figured this out on my own with this logic: usually the Serial port on a Raspberry pi is on /dev/ttyUSB0 then you need to set linux.DeviceFile=/dev/ttyUSB in codesys you then must set com port to 1 so i assumed codesys subtracts 1 from the number and adds this to the filename... (in code it would look like this: var comPort : byte := '1'; linuxDevice : string := '/dev/ttyUSB'; filename : string; end_var filename := concat(linuxDevice, (to_string(comPort-1)); filaname then is /dev/ttyUSB0 RevPi uses ttyRS485 as Serial port so you must remove the last number from the name and set the com port to this number +1 i hope this is understandable ;-)
Last updated: 2023-12-11
Post by alez on CANOpen SDO to write VISIBLE STRING
CODESYS Forge
talk
(Post)
Hello, I am experiencing difficulties in configuring a CANopen device by sending SDOs. In particular I am attempting to write an Object Dictionary that has VISIBLE STRING as the Data Type. When I try to configure the sending of an SDO from Codesys to configure this parameter I am not allowed to enter a string value. In my particular case I am trying to change the Manufacturer Device Name ( Index 0x1008 ). Could it be that Codesys doesn't manage these types of variables?
Last updated: 2024-04-29
Post by bjarne-pagaard on Codesys v3.5 Sint to byte
CODESYS Forge
talk
(Post)
Hi A SINT is a short (signed) integer. It is already only 1 byte - so you should have no problem casting it to a byte like so: bMyByte := TO_BYTE(sintMyShortInt); If you have a regular INT you want to put in 2 bytes - there are a lot of ways you can do this. A Union is certainly one of them. You could have a union with 2 memebers: An array of 2 bytes as one member, and an integer value as another member. Another way would be to look at MEMCPY to put the value into your CAN-message. .. or create a function to take your input value as input, and giving you 2 individual bytes as output. This could be handy if you need to change the byte-order. Integer data types: https://help.codesys.com/webapp/_cds_datatype_integer;product=codesys;version=3.5.17.0 -Bjarne
Last updated: 2024-04-24
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
.