Search talk: Type String

 
<< < 1 .. 9 10 11 12 13 .. 24 > >> (Page 11 of 24)

Post by pernockham on Inheritence of struct, CODESYS Forge talk (Post)
Im looking for a way to define predefined version of the same structures through "extends"/inheritance. What I want to do is best shown with an example: TYPE log_item_val_type : ( BOOL_ := 0, INT_, REAL_, STRING_ ); END_TYPE TYPE LOG_DATA_BASE STRUCT val_type : log_item_val_type; (* value, name etc *) ENDSTRUCT ENDTYPE (* this/below is not possible as I understand from the compiler?? *) TYPE LOG_DATA_BOOL extends LOG_DATA_BASE : STRUCT val_type : log_item_val_type := log_item_val_type.BOOL_; END_STRUCT END_TYPE TYPE LOG_DATA_INT extends LOG_DATA_BASE : STRUCT val_type : log_item_val_type := log_item_val_type.INT_; END_STRUCT END_TYPE etc. for LOG_DATA_REAL and ..STRING. The system will not allow me to "re-define" "val_type" however. Instead I must do the work-around of defining four different types with all fields individually defined. The benefit if I could extend the base item would be that Im (more) sure the structures are identical. In usage I can call in a specific type rather use the base type and assign which type. Usage by pointer/ref to log_data_base would also be easier.. (* Usage: *) log_data : log_data_int := (name, value etc.) (* Instead of: *) log_data : log_data_base := (name, value, val_type).. Is this possible to achieve in some way that I have missed?
Last updated: 2025-03-05

Recipe definition, how to have the Name string in current language? CODESYS Forge talk (Thread)
Recipe definition, how to have the Name string in current language?
Last updated: 2024-10-04

Post by bertcom on STRING conversions to DWORD CODESYS Forge talk (Post)
@trusty-suire, The problem is not encoding. The problem is that codesys ands ' ' to the string. And the printer can't handle these character.
Last updated: 2025-01-30

Post by bertcom on STRING conversions to DWORD CODESYS Forge talk (Post)
@trusty-suire, The problem is not encoding. The problem is that codesys ands ' ' to the string. And the printer can't handle these character.
Last updated: 2025-01-30

Post by davidbo on VisuElems.cmpDynamictext.DynamicTextGetTextW returns pointer to empty string CODESYS Forge talk (Post)
I know it is old and I am using 3.5 18, but I cannot extract a txt string as seen:
Last updated: 2025-02-07

Post by damian177 on url String notation CODESYS Forge talk (Post)
Hi, How to initialize following url: https://mydomain.pl/api/rce-lte?$filter=doba eq '2025-03-18' in sURL : STRING variable ? regards
Last updated: 2025-04-04

Post by damian177 on url String notation CODESYS Forge talk (Post)
Probably I solved using below notation: sURL : STRING := 'https://mydomain.pl/api/rce-lte?$$filter=doba eq $'2025-03-18$'';
Last updated: 2025-04-04

Assign a value to a variable that is defined in a string CODESYS Forge talk (Thread)
Assign a value to a variable that is defined in a string
Last updated: 2023-02-13

Convert and String to an expression read by the runtime CODESYS Forge talk (Thread)
Convert and String to an expression read by the runtime
Last updated: 2012-01-09

Convert Json to String using Machine Expert base on Codesys plateform CODESYS Forge talk (Thread)
Convert Json to String using Machine Expert base on Codesys plateform
Last updated: 2021-09-28

Is it possible to convert a string of 32-bit of binary to a float32? CODESYS Forge talk (Thread)
Is it possible to convert a string of 32-bit of binary to a float32?
Last updated: 2023-03-23

Einzelnes Hochkomma in String, Lösungsvorschlag aus Codesys Online Hilfe funktioniert nicht CODESYS Forge talk (Thread)
Einzelnes Hochkomma in String, Lösungsvorschlag aus Codesys Online Hilfe funktioniert nicht
Last updated: 2018-01-28

Convert from string containing HEX values to the corresponding chars (E.G. '414141' to 'AAA') CODESYS Forge talk (Thread)
Convert from string containing HEX values to the corresponding chars (E.G. '414141' to 'AAA')
Last updated: 2023-07-19

I want to convert a WORD to a hex string like 15.432 to '3C48' CODESYS Forge talk (Thread)
I want to convert a WORD to a hex string like 15.432 to '3C48'
Last updated: 2024-04-19

Post by thn-power on How to change OPC NodeId IdentifierType CODESYS Forge talk (Post)
Hi Yet another OPC UA question. When setting up a OPC server using "Communcation manager" (Symbol set and information model) in Codesys the NodeId is always given as "opaque" type. At least when browsing using UAExpert. Other standard OPC objects use numeric (or string) identifier, but for some reason my variables seems to get opaque/binary type. See attached photo. How can I change this? I can't see that this is a parameter in the CodesysControl.cfg. Can this be specified in the information model nodeset? And is it possible to specify the exact numeric or string NodeId for each instance? And on a related topic, is there a way to export the OPC server nodeId's with variable name so that it can be imported in a OPC Client? The .xml files in the project folder does not seem to contain the NodeId.
Last updated: 2024-09-20

Post by sangram on Convert Array Of DINT To STRING CODESYS Forge talk (Post)
Last updated: 2023-12-03

Post by timvh on Array to String CODESYS Forge talk (Post)
The new (UTF8) string library is faster and can handle large strings. https://content.helpme-codesys.com/en/CODESYS%20String%20Libraries/_strlib_start_page.html PS, in CODESYS, the maximum string length is not 255 characters. The String functions of the standard library are limited to strings of 255 characters. But you can use other (memory) functions to handle strings larger than 255 characters.
Last updated: 2024-07-22

Post by timvh on Array to String CODESYS Forge talk (Post)
The string_Util_Intern is not the library I referred to. With a CONCAT function (also with the string util library) a search is done for the NULL character. If you concatenate 20000 characters to one string, then the longer the string, the longer it takes to find this NULL character.
Last updated: 2024-07-24

Post by andreag0 on How to access to variable value through symbolic string name CODESYS Forge talk (Post)
Hello, anyone know how to get valiable value using a symbolic string name? For example: - send string to runtime using TCP/IP contains "GVL.TestINT" and get back the value. I need function that will translate the string to symbolic variable. Thank you. Andrea
Last updated: 2024-06-13

Data Sources Manager causing exception due to float or double type in OPC server CODESYS Forge talk (Thread)
Data Sources Manager causing exception due to float or double type in OPC server
Last updated: 2024-07-01

Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW CODESYS Forge talk (Thread)
Problem of assigning physical addresses to variables of type ARRAY OF ARRAY as MW and QW
Last updated: 2025-03-31

How do I fix ";Internal Error (x86-64): Invalid type size" error? CODESYS Forge talk (Thread)
How do I fix ";Internal Error (x86-64): Invalid type size" error?
Last updated: 2025-04-16

Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys CODESYS Forge talk (Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08

<identifier>: POINTER TO <data type | function block | program | method | function>; CODESYS Forge talk (Thread)
<identifier>: POINTER TO <data type="" |="" function="" block="" program="" method="">;</data></identifier>
Last updated: 2022-03-23

Why is no more possible use REFERECE OF in return method type? CODESYS Forge talk (Thread)
Why is no more possible use REFERECE OF in return method type?
Last updated: 2021-12-10

<< < 1 .. 9 10 11 12 13 .. 24 > >> (Page 11 of 24)

Showing results of 599

Sort by relevance or date