about TYPE AND END_TYPE
CODESYS Forge
talk
(Thread)
about TYPE AND END_TYPE
Last updated: 2014-10-22
how to FUNCTION type VOID
CODESYS Forge
talk
(Thread)
how to FUNCTION type VOID
Last updated: 2013-10-18
BIT type in persistent memory
CODESYS Forge
talk
(Thread)
BIT type in persistent memory
Last updated: 2022-03-17
Mail Service IIoT : Choose TLS type?
CODESYS Forge
talk
(Thread)
Mail Service IIoT : Choose TLS type?
Last updated: 2020-07-29
How to reset timer type PULSE
CODESYS Forge
talk
(Thread)
How to reset timer type PULSE
Last updated: 2016-11-07
Struct FB Input, type coercion
CODESYS Forge
talk
(Thread)
Struct FB Input, type coercion
Last updated: 2021-10-23
Integer type to byte array
CODESYS Forge
talk
(Thread)
Integer type to byte array
Last updated: 2015-11-25
Type–length–value in Codesys
CODESYS Forge
talk
(Thread)
Type–length–value in Codesys
Last updated: 2022-01-02
missing siemens type functions
CODESYS Forge
talk
(Thread)
missing siemens type functions
Last updated: 2012-04-02
ERROR 3729 invalid type ?
CODESYS Forge
talk
(Thread)
ERROR 3729 invalid type ?
Last updated: 2010-03-18
Flexible variable type for functions: ANY_TO_xxx
CODESYS Forge
talk
(Thread)
Flexible variable type for functions: ANY_TO_xxx
Last updated: 2019-11-06
Get Type Of a Variable
CODESYS Forge
talk
(Thread)
Get Type Of a Variable
Last updated: 2018-02-21
About the data type conversion
CODESYS Forge
talk
(Thread)
About the data type conversion
Last updated: 2013-04-10
question on type conversions
CODESYS Forge
talk
(Thread)
question on type conversions
Last updated: 2012-10-02
Compare costum Data Type Error
CODESYS Forge
talk
(Thread)
Compare costum Data Type Error
Last updated: 2017-05-11
Write variable of type TIME
CODESYS Forge
talk
(Thread)
Write variable of type TIME
Last updated: 2018-04-27
Real Data Type Range limitation
CODESYS Forge
talk
(Thread)
Real Data Type Range limitation
Last updated: 2010-03-26
Error: Type mismatch at output...
CODESYS Forge
talk
(Thread)
Error: Type mismatch at output...
Last updated: 2015-11-17
ModbusTCP-type BIT or BOOL
CODESYS Forge
talk
(Thread)
ModbusTCP-type BIT or BOOL
Last updated: 2020-11-16
Compare operands of type STRUCT
CODESYS Forge
talk
(Thread)
Compare operands of type STRUCT
Last updated: 2015-09-22
Post by pernockham on Inheritence of struct,
CODESYS Forge
talk
(Post)
Easier that I thought, by ALIAS 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 TYPE LOG_DATA_BOOL : LOG_DATA_BASE := (val_type := log_item_val_type.BOOL_); END_TYPE TYPE LOG_DATA_INT : LOG_DATA_BASE := (val_type := log_item_val_type.INT_); END_TYPE TYPE LOG_DATA_REAL : LOG_DATA_BASE := (val_type := log_item_val_type.REAL_); END_TYPE TYPE LOG_DATA_STRING : LOG_DATA_BASE := (val_type := log_item_val_type.STRING_); END_TYPE
Last updated: 2025-03-05
Post by ph0010421 on How to manage variable types larger than 64 bits - Ethernet/IP
CODESYS Forge
talk
(Post)
So it's currently mapped to an array of BYTES? Can you create a UNION? TYPE sBytesString : UNION AsBytes: ARRAY[0..127] OF BYTE; AsString: STRING(128); END_UNION END_TYPE Map it to the bytes, read it in the STRING!
Last updated: 2024-09-23
Post by rjonker on codesys mqtt publish serialization
CODESYS Forge
talk
(Post)
pbPayload is a pointer, which it expects to point at a STRING. If you point it at an address holding a different data type, it will just assume those bytes are part of a string and likely trundle along memory until it finds a null byte (0x00) that would normally signify the end of a string PublishMessage := BOOL_TO_STRING(boolVariable);
Last updated: 2024-06-05
Post by rmaas on STRING conversions to DWORD
CODESYS Forge
talk
(Post)
Hi, The '' characters in Codesys are there only to indicate it is a STRING type. They are not actually added to the string, maybe you are adding them unintentionally in the concat function? You can send your data from Codesys to Hercules to verify... Another option is to send the data as an array of bytes instead of a string, with every byte representing 1 ASCII character. https://www.ascii-code.com/ This way you are 100% sure Codesys is not adding any unwanted characters.
Last updated: 2025-01-31
Conversion BYTE to ASCII String + SysLibFileStream.lib
CODESYS Forge
talk
(Thread)
Conversion BYTE to ASCII String + SysLibFileStream.lib
Last updated: 2008-10-31
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
.