Search talk: setting value of variable

 
<< < 1 .. 30 31 32 33 34 .. 134 > >> (Page 32 of 134)

an element of "Array of BOOL" in SFC Action name CODESYS Forge talk (Thread)
an element of "Array of BOOL" in SFC Action name
Last updated: 2008-05-05

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

Network variables not working in some of the downloads of the application CODESYS Forge talk (Thread)
Network variables not working in some of the downloads of the application
Last updated: 2020-03-19

Initialize an array of structures with a content of an array CODESYS Forge talk (Thread)
Initialize an array of structures with a content of an array
Last updated: 2020-05-18

What is the meaning of colored symbols leftside of each device ? CODESYS Forge talk (Thread)
What is the meaning of colored symbols leftside of each device ?
Last updated: 2020-03-31

call of a method of a function block in another program CODESYS Forge talk (Thread)
call of a method of a function block in another program
Last updated: 2024-06-03

call of a method of a function block in another program CODESYS Forge talk (Thread)
call of a method of a function block in another program
Last updated: 2024-06-03

Post by george32 on Readable IO names CODESYS Forge talk (Post)
Hello Folks, I have a quite basic understanding of how PLC programming works. However I keep getting stuck on 1 problem I could not get my head around. The problem is as follow: I have a PLC with 60 IO (20 inputs, 40 outputs). Each IO is defined as a function block. Furthermore I have an external IO card connected trough a CanBus connection. This IO card has 4 analog input channels (USINT), 4 digital inputs (Bool) and 4, digital outputs (Bool) Because I have 2 different components which both has data have I made 4 arrays to store the data off every component in one variable. PLC_Input: Array [1..20] of BOOL; PLC_Output: Array [1..40] of BOOL IOCard_Input: Array [1..8] of BOOL IOCard_Output: Array [1..4] of BOOL Because the control and reading of the different in and outputs is done by a TCP connection I want to use some kind of enumeration or struct to give each index a name so that my main would be a little bit more readable instead of all the magic numbers. Also this would make my program more dynamic for the furter in case I need to changes some in the IO nummers. For example: pump is placed on the fysical terminal strip number place 54, which is the 3th output of the IO card in the program: if I am sending a message with value 54 I would like to control IOCard_Output[3]. If there is a solution or methode to get this done, I can eventually do the following in my main program: IOCard_Output[Pump]. I have tried the following: IOCard_Output[Pump - 51] with an enumration but this keeps raising an error I hope some of you could help me further with this problem. In gross lines: I want to couple all the different IO to a more readable name and this readable name should control the right Array index Thanks in advance, George
Last updated: 2024-09-26

Post by stiller on OPC UA RPI 4.8.0.0 Status Code / "out of range" CODESYS Forge talk (Post)
Hello, I have an OPC-UA server with an information model. For many values, there is a defined range (e.g., 0 to 100). If a client enters a value outside this range (e.g., 120), the StatusCode should change to Bad. How can I accomplish this? Any help is appreciated! Thank you in advance. Best regards, Christian Stiller
Last updated: 2024-07-10

Post by mmpl on Array to String CODESYS Forge talk (Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18

Post by mmpl on Array to String CODESYS Forge talk (Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18

Post by kevinm on Programmatically change Tappet on a cam CODESYS Forge talk (Post)
I am considering using a SoftMotion cam and tappets to activate functions on a machine - for example, triggering a pneumatic valve. I need the ability to change the actuation point (tappet "X" location) from the HMI during machine commissioning. Is there a way to change the "X" value of a tappet programmatically?
Last updated: 2025-04-01

Post by rkohser on Python Script for Finding "Last saved with" Value CODESYS Forge talk (Post)
Hi jkilburn, I have the exact same issue and thought I would search a solution on this forum. I see you did not get any answer, did you find a solution on how to extract the last saved version of codesys from the project file ? Roland
Last updated: 2024-01-29

Post by koppit on SysComRead Timeout Parameter CODESYS Forge talk (Post)
Im using SysCom ver. 3.5.17.0 and seem to have the same issue on a Raspberry Pi. It's not waiting for the requested number of bytes, no matter if "ulTimeout := SYS_INFINITE" or any other value. The only solution I have found is to stall the program to allow the serial port to recieve the data.
Last updated: 2024-06-26

Sorting array of any-sized structure CODESYS Forge talk (Thread)
Sorting array of any-sized structure
Last updated: 2023-08-18

Get the numer of day CODESYS Forge talk (Thread)
Get the numer of day
Last updated: 2023-09-14

Get Version of Installed Package CODESYS Forge talk (Thread)
Get Version of Installed Package
Last updated: 2019-03-08

Issues of Large Ethernet IP project CODESYS Forge talk (Thread)
Issues of Large Ethernet IP project
Last updated: 2022-02-01

Use of the CPLCHandlerCallback CODESYS Forge talk (Thread)
Use of the CPLCHandlerCallback
Last updated: 2012-02-06

Maintenance of the forum CODESYS Forge talk (Thread)
Maintenance of the forum
Last updated: 2010-07-09

Convert Array Of DINT To STRING CODESYS Forge talk (Thread)
Convert Array Of DINT To STRING
Last updated: 2023-12-03

Ambiguous use of name - CO136 CODESYS Forge talk (Thread)
Ambiguous use of name - CO136
Last updated: 2024-07-06

What is the insights of IoDrvEtherCAT.DCInSyncWindow? CODESYS Forge talk (Thread)
What is the insights of IoDrvEtherCAT.DCInSyncWindow?
Last updated: 2024-07-09

First IO address of a CAADiagDeviceDefault. CODESYS Forge talk (Thread)
First IO address of a CAADiagDeviceDefault.
Last updated: 2024-08-22

First IO address of a CAADiagDeviceDefault. CODESYS Forge talk (Thread)
First IO address of a CAADiagDeviceDefault.
Last updated: 2024-08-22

<< < 1 .. 30 31 32 33 34 .. 134 > >> (Page 32 of 134)

Showing results of 3346

Sort by relevance or date