'The object GUID 'xxxx' is not valid' message when trying to commit a project to SVN
CODESYS Forge
talk
(Thread)
'The object GUID 'xxxx' is not valid' message when trying to commit a project to SVN
Last updated: 2022-09-14
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
Convert from string containing HEX values to the corresponding chars (E.G. '414141' to 'AAA')
CODESYS Forge
talk
(Thread)
Convert from string containing HEX values to the corresponding chars (E.G. '414141' to 'AAA')
Last updated: 2023-07-19
Need to know about the possibility of sending reset signal to codesys over Ethernet
CODESYS Forge
talk
(Thread)
Need to know about the possibility of sending reset signal to codesys over Ethernet
Last updated: 2020-06-29
How to functionally copy a BUTTON from one page to another
CODESYS Forge
talk
(Thread)
How to functionally copy a BUTTON from one page to another
Last updated: 2023-07-10
How to initialize arrays of function blocks that need FB_Init to work
CODESYS Forge
talk
(Thread)
How to initialize arrays of function blocks that need FB_Init to work
Last updated: 2020-08-21
Impossible to enter en FB from a CFC to debug it: "nProjectHandle: 'xxx' is invalid." error
CODESYS Forge
talk
(Thread)
Impossible to enter en FB from a CFC to debug it: "nProjectHandle: 'xxx' is invalid." error
Last updated: 2023-02-23
How to create an alias or other parallel definition to a structure
CODESYS Forge
talk
(Thread)
How to create an alias or other parallel definition to a structure
Last updated: 2022-10-27
How to use __VARINFO within a function block to obtain the origin variable name?
CODESYS Forge
talk
(Thread)
How to use __VARINFO within a function block to obtain the origin variable name?
Last updated: 2022-03-15
How to Map Arrary of Bool to fixed IEC Address?
CODESYS Forge
talk
(Thread)
How to Map Arrary of Bool to fixed IEC Address?
Last updated: 2023-06-30
How to modify the time zone information to set with Adelaide, AU in DTutil library?
CODESYS Forge
talk
(Thread)
How to modify the time zone information to set with Adelaide, AU in DTutil library?
Last updated: 2017-11-04
Post by ph0010421 on How to transfer data from DINT to Union(16 Bools) which I need to use in Few FBs
CODESYS Forge
talk
(Post)
In the Struct, change the 'BOOL' to 'BIT'
Last updated: 2023-12-14
Open dialog from ST , how to set parameters (vars) to dialog
CODESYS Forge
talk
(Thread)
Open dialog from ST , how to set parameters (vars) to dialog
Last updated: 2024-06-05
Which Lib to use, connect to a socket with URL instead of IP address
CODESYS Forge
talk
(Thread)
Which Lib to use, connect to a socket with URL instead of IP address
Last updated: 2024-06-17
is it possible to connect to a newer runtime from HMI runtime 3.5.16
CODESYS Forge
talk
(Thread)
is it possible to connect to a newer runtime from HMI runtime 3.5.16
Last updated: 2024-07-02
The Ultimate Guide to Taxi Services in the UK: From Airports to City Travels
CODESYS Forge
talk
(Thread)
The Ultimate Guide to Taxi Services in the UK: From Airports to City Travels
Last updated: 2024-08-08
Navigating the UK with Ease: Your Guide to Taxi Services from Major Cities to Key Destinations
CODESYS Forge
talk
(Thread)
Navigating the UK with Ease: Your Guide to Taxi Services from Major Cities to Key Destinations
Last updated: 2024-08-08
how to extract the name of an FB to a variable
CODESYS Forge
talk
(Thread)
how to extract the name of an FB to a variable
Last updated: 2024-10-01
Post by alimans on Hex string
CODESYS Forge
talk
(Post)
Hi kdkwhite, for Word you still can use suggested code by using a union structure and crack down your Word to two byte as bellow: TYPE CrackWordToByte : UNION InWord : WORD; OutBytes : ARRAY [0..1] OF BYTE; END_UNION END_TYPE then define your variable as this type: udInput : CrackWordToByte; now assign your Word variable input to InWord and send OutBytes[x] to the mentioned method: udInput.InWord := WordVariableInput; Input := udInput.OutBytes[x]; Regarding your question about the code: actually 48 is ascii code of "0" and while 65 is the ascii code of "A" so in above code 55 + 10 would be 65.
Last updated: 2023-09-20
Post by sumit on Not able to see input data coming from eip adapter on codesys
CODESYS Forge
talk
(Post)
dhumphries, I changed the datatype this time from BYTE to USINT (because that's what my adapter is sending: array of uint8_t). The text "New Help String" you saw in previous screenshots is just the description of the input/s (it can be anything). I also looked into the logs (see attached) for that ! sign next to the device, I found that connection is being timeout. I tried some suggestions from online such as increase the RPI but still got connection timeout issue, also by changing the datatype, I still don't see incoming data from the adapter, although its visible on wireshark. thanks,
Last updated: 2024-03-07
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
Import RsLogix 5000 project to Codesys
CODESYS Forge
talk
(Thread)
Import RsLogix 5000 project to Codesys
Last updated: 2023-09-07
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
CODESYS Forge
talk
(Thread)
IMAGE DISPLAY ACCORDING TO INPUT VARIABLE
Last updated: 2023-09-12
Retain memory change to ZERO
CODESYS Forge
talk
(Thread)
Retain memory change to ZERO
Last updated: 2023-09-19
Fail to download missing libraries
CODESYS Forge
talk
(Thread)
Fail to download missing libraries
Last updated: 2021-11-12
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
.