Characters inside a string type.
CODESYS Forge
talk
(Thread)
Characters inside a string type.
Last updated: 2012-03-26
about TYPE AND END_TYPE
CODESYS Forge
talk
(Thread)
about TYPE AND END_TYPE
Last updated: 2014-10-22
BIT type in persistent memory
CODESYS Forge
talk
(Thread)
BIT type in persistent memory
Last updated: 2022-03-17
Cannot convert 'STRING' to type 'STRING'
CODESYS Forge
talk
(Thread)
Cannot convert 'STRING' to type 'STRING'
Last updated: 2014-03-31
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
question on type conversions
CODESYS Forge
talk
(Thread)
question on type conversions
Last updated: 2012-10-02
Write variable of type TIME
CODESYS Forge
talk
(Thread)
Write variable of type TIME
Last updated: 2018-04-27
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 simotion on Inheritance of axis
CODESYS Forge
talk
(Post)
I have developped a function block 'Axis' the inherits from 'AXIS_REF_SM3' -> FUNCTION_BLOCK Axis EXTENDS AXIS_REF_SM3 In my global variable list I define a variable MasterDrive of type Axis and assign Axis1. Axis1 is a virtual drive (AXIS_REF_VIRTUAL_SM3). This type should inherit from AXIS_REF_VIRTUAL. VAR_GLOBAL MasterDrive : Axis := Axis1; However I get the error 'Cannot convert type'. What is the way to obtain what I want : function block inheriting AXIS_REF_SM3 and initialising this function block with a Softmotion virtual or real axis?
Last updated: 2023-12-07
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
Saving UINT data collected as String data to MMC
CODESYS Forge
talk
(Thread)
Saving UINT data collected as String data to MMC
Last updated: 2007-08-17
Data Source Manager with CODESYS Symbolic data source
CODESYS Forge
talk
(Thread)
Data Source Manager with CODESYS Symbolic data source
Last updated: 2021-03-23
Passing an I/O Array to a Function or Function Block
CODESYS Forge
talk
(Thread)
Passing an I/O Array to a Function or Function Block
Last updated: 2015-05-07
how to execute a pointer to a function or a function block?
CODESYS Forge
talk
(Thread)
how to execute a pointer to a function or a function block?
Last updated: 2017-04-04
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
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
.