Search talk: array to int

 
<< < 1 .. 20 21 22 23 24 .. 240 > >> (Page 22 of 240)

Post by e13740e on Parameterized Property syntax for array element processing CODESYS Forge talk (Post)
Hello. I'm trying to create a Parameterized Property(CDS V3.5 SP21) to avoid copy-pasting code for processing array elements. I can't seem to get any result. Perhaps I am making a mistake with the syntax. None of the declaration options below are accepted by the compiler. If you know and use them (Parameterized Properties) in your work, please let me know. Thank you in advance. Option 1: PROPERTY <property_name> : <data_type> VAR_INPUT <index_name> : <index_type>; // One or more index parameters are declared here END_VAR</index_type></index_name></data_type></property_name> GET Code that uses <index_name> to return a value END_GET</index_name> SET Code that uses <index_name> and the implicit variable <property_name> to write a value END_SET</property_name></index_name> END_PROPERTY Option 2: PROPERTY <property_name> (<index_name> : <index_type>) : <data_type></data_type></index_type></index_name></property_name> GET Code that uses <index_name> to return a value END_GET</index_name> SET Code that uses <index_name> and the implicit variable <property_name> to write a value END_SET</property_name></index_name> END_PROPERTY
Last updated: 2025-10-09

Post by e13740e on Parameterized Property syntax for array element processing CODESYS Forge talk (Post)
Hello. I'm trying to create a Parameterized Property(CDS V3.5 SP21) to avoid copy-pasting code for processing array elements. I can't seem to get any result. Perhaps I am making a mistake with the syntax. None of the declaration options below are accepted by the compiler. If you know and use them (Parameterized Properties) in your work, please let me know. Thank you in advance. Option 1: PROPERTY <property_name> : <data_type> VAR_INPUT // One or more index parameters are declared here <index_name> : <index_type>; END_VAR</index_type></index_name></data_type></property_name> // Accessor for reading GET // Code that uses <Index_Name> to return a value END_GET // Accessor for writing SET // Code that uses <Index_Name> and // the implicit variable <Property_Name> to write a value END_SET END_PROPERTY Option 2: PROPERTY <property_name> (<index_name> : <index_type>) : <data_type></data_type></index_type></index_name></property_name> // Accessor for reading GET // Code that uses <Index_Name> to return a value END_GET // Accessor for writing SET // Code that uses <Index_Name> and // the implicit variable <Property_Name> to write a value END_SET END_PROPERTY
Last updated: 2025-10-09

Post by ruobian on Analog Input Delay Timer CODESYS Forge talk (Post)
Hello there, I am new here and in programming. I need help with the basics. I am trying to do what I mentioned in the title. I have an analog input. So I have a real or integer data type value. I want to delay it. TON and TOF only work with bool. I think there is a function block that has two inputs, 1 for real or int and 1 for bool. And if bool is true, it will give the output as real or int. I don't know but I need something like this. Actually, it is not exactly like that. In other words, it will not show the real value at the input at the output after a certain period of time. I want it to show the real value from 2 seconds ago continuously. The purpose of doing this is to compare the real value I received with the value from 2 seconds ago and find out whether it went up or down. I am using only FBD. Please help me with this. Thanks in advance.
Last updated: 2024-08-20

Connection to device closed CODESYS Forge talk (Thread)
Connection to device closed
Last updated: 2023-08-25

Sysmac Studio to Codesys CODESYS Forge talk (Thread)
Sysmac Studio to Codesys
Last updated: 2023-09-20

OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server CODESYS Forge talk (Thread)
OPC UA Client unable to connect to CeDeSys OPC UA Server but able to connect to other OPC UA Server
Last updated: 2018-10-30

Pointer To CODESYS Forge talk (Thread)
Pointer To
Last updated: 2009-01-23

Sysfile copy to server CODESYS Forge talk (Thread)
Sysfile copy to server
Last updated: 2012-01-13

Pointer to Softmotion axis CODESYS Forge talk (Thread)
Pointer to Softmotion axis
Last updated: 2023-11-23

GVL to SHMem CODESYS Forge talk (Thread)
GVL to SHMem
Last updated: 2024-07-09

Send data to USB CODESYS Forge talk (Thread)
Send data to USB
Last updated: 2024-08-05

Password to POU CODESYS Forge talk (Thread)
Password to POU
Last updated: 2024-08-14

STRING conversions to DWORD CODESYS Forge talk (Thread)
STRING conversions to DWORD
Last updated: 2025-02-02

Which database to use? CODESYS Forge talk (Thread)
Which database to use?
Last updated: 2025-03-04

how to add TextList CODESYS Forge talk (Thread)
how to add TextList
Last updated: 2025-05-20

Login to Visu optional CODESYS Forge talk (Thread)
Login to Visu optional
Last updated: 2025-07-16

What happened to Python? CODESYS Forge talk (Thread)
What happened to Python?
Last updated: 2025-10-01

CoDeSys to access CODESYS Forge talk (Thread)
CoDeSys to access
Last updated: 2007-01-15

How to remove user ? CODESYS Forge talk (Thread)
How to remove user ?
Last updated: 2018-07-03

string to time CODESYS Forge talk (Thread)
string to time
Last updated: 2010-03-08

Button to close browser CODESYS Forge talk (Thread)
Button to close browser
Last updated: 2022-09-22

Connect to MCP 3008 CODESYS Forge talk (Thread)
Connect to MCP 3008
Last updated: 2018-09-16

How to implement IVisuStreamReader CODESYS Forge talk (Thread)
How to implement IVisuStreamReader
Last updated: 2023-03-02

REAL to BOOL CODESYS Forge talk (Thread)
REAL to BOOL
Last updated: 2007-06-11

Convertion Dint to Word CODESYS Forge talk (Thread)
Convertion Dint to Word
Last updated: 2023-08-07

<< < 1 .. 20 21 22 23 24 .. 240 > >> (Page 22 of 240)

Showing results of 5994

Sort by relevance or date