Search talk: array to int

 
<< < 1 .. 42 43 44 45 46 .. 235 > >> (Page 44 of 235)

How to read string from CharBufferPtr? CODESYS Forge talk (Thread)
How to read string from CharBufferPtr?
Last updated: 2024-02-21

Import OPC UA model to Codesys CODESYS Forge talk (Thread)
Import OPC UA model to Codesys
Last updated: 2024-03-12

How to catch save button event CODESYS Forge talk (Thread)
How to catch save button event
Last updated: 2024-03-25

How to determine code size CODESYS Forge talk (Thread)
How to determine code size
Last updated: 2024-04-05

Remote connection to ifm PLC & HMI CODESYS Forge talk (Thread)
Remote connection to ifm PLC & HMI
Last updated: 2024-04-11

c2iec - translating C to ST CODESYS Forge talk (Thread)
c2iec - translating C to ST
Last updated: 2024-04-20

Upgrade from codesys 3.5.19 to 3.5.20 CODESYS Forge talk (Thread)
Upgrade from codesys 3.5.19 to 3.5.20
Last updated: 2024-04-20

Remote connection to ifm PLC & HMI CODESYS Forge talk (Thread)
Remote connection to ifm PLC & HMI
Last updated: 2024-04-23

Upgrade from codesys 3.5.19 to 3.5.20 CODESYS Forge talk (Thread)
Upgrade from codesys 3.5.19 to 3.5.20
Last updated: 2024-04-23

Codesys v3.5 Sint to byte CODESYS Forge talk (Thread)
Codesys v3.5 Sint to byte
Last updated: 2024-04-24

CANOpen SDO to write VISIBLE STRING CODESYS Forge talk (Thread)
CANOpen SDO to write VISIBLE STRING
Last updated: 2024-04-29

How to reset AzureMQTTClient after error? CODESYS Forge talk (Thread)
How to reset AzureMQTTClient after error?
Last updated: 2024-06-04

Is it possible to profile builds? CODESYS Forge talk (Thread)
Is it possible to profile builds?
Last updated: 2024-06-05

Is it possible to profile builds? CODESYS Forge talk (Thread)
Is it possible to profile builds?
Last updated: 2024-06-06

how to use UseDataExpanding() in datasource CODESYS Forge talk (Thread)
how to use UseDataExpanding() in datasource
Last updated: 2024-06-17

OPC UA Client failed to connect CODESYS Forge talk (Thread)
OPC UA Client failed to connect
Last updated: 2025-10-28

Can't get SMC_SmoothPath to work CODESYS Forge talk (Thread)
Can't get SMC_SmoothPath to work
Last updated: 2026-01-11

Access to the path *** is denied CODESYS Forge talk (Thread)
Access to the path *** is denied
Last updated: 2025-12-11

Library documentation up to date CODESYS Forge talk (Thread)
Library documentation up to date
Last updated: 2025-12-22

Deploying to raspberry pi 5 hangs CODESYS Forge talk (Thread)
Deploying to raspberry pi 5 hangs
Last updated: 2025-12-25

Best practice to reduce CPU load CODESYS Forge talk (Thread)
Best practice to reduce CPU load
Last updated: 2026-04-21

Connect to Azure IoT Hub CODESYS Forge talk (Thread)
Connect to Azure IoT Hub
Last updated: 2026-04-24

Unable to install previously installed version CODESYS Forge talk (Thread)
Unable to install previously installed version
Last updated: 2026-02-20

Connect to Azure IoT Hub CODESYS Forge talk (Thread)
Connect to Azure IoT Hub
Last updated: 2026-04-27

Post by jackbrady on Function Blocks and arrays of function blocks CODESYS Forge talk (Post)
Hello, I am new to Codesys and PLC programming in general (please go easy ha!) I'm not looking for code to be written for me just some help and pointing in the right direction. I am writing some code to send commands to a relay based on input values (to put it simply). Quite basic stuff. I have wrote a function block that takes a global variable (Open_command:BOOL) and outputs to another global variable (Opened : BOOL). The function block is simulating a device so I'll eventually get the globals from that. I now need to create multiple versions of this function block/ device (lets say 100) but I need each iteration of that function block to reference it's own relevant global variable. I think that the best way of doing this would be to use arrays, although I could be wrong. I am aware that for up to 100 instances I could very well manually assign everything but that seems rather time consuming and I want a fancier way of doing it. Here is a very basic example of what I am looking to do, please note I have not written this in proper code it's just to show what I mean. Global Variables V[0-100] int Open_command [0-100] Bool Opened [0-100] Bool Function Block var input x : BOOL Var output y : BOOL if x then y = TRUE ELSE y = FALSE The input to my function block will be Open_command, output will be Opened Example code. If V[x] > 10 then Open_command [x] = TRUE ELSE Open_command [x] = FALSE (So when V1 goes above 10 I need Open_command1 = TRUE therefore initiating FB1 output. V2 > 10, open_command2 = True > FB2 output V3 > 10, open_command3 = True > FB3 output ... ... ) What I can't seem to figure out is how to tie all this together, I have read through the codesys documentation and if anything it has confused me more! ha. Apologies for the poorly written post but hopefully you understand what I am trying to get at. Thanks, Jack
Last updated: 2024-02-14

<< < 1 .. 42 43 44 45 46 .. 235 > >> (Page 44 of 235)

Showing results of 5875

Sort by relevance or date