Ignore, was duplicate post. Can't find a way to delete it.
This is a consequence of how computers store floating point numbers. 0.1 cannot be exactly represented in a computer. This is not a CoDeSys thing. Here is a link to a converter to show you the exact value that is represented when you use a REAL data type (which is a 32 bit float). https://baseconvert.com/ieee-754-floating-point If you really need to keep track of 0.1 increments. use INT OR DINT and then add 1 each time and assume that there is one decimal place.
This is a consequence of how computers store floating point numbers. 0.1 cannot be exactly represented in a computer. This is not a CoDeSys thing. Here is a link to a converter to show you the exact value that is represented when you use a REAL data type (which is a 32 bit float). https://baseconvert.com/ieee-754-floating-point If you really need to keep track of 0.1 increments. use INT OR DINT and then add 1 each time and assume that there is one decimal place.
I have no answer but we are trying to integrate a Curtis 1229 and neither Curtis nor their distributor is very interested in helping us beyond answer the most basic quesions. When we do get in touch with someone it seems like we are annoying them. We did get someone to tell us that, at least for the 1229 that it doesn't really support CanOPEN but they sent us an eds file. They said that other people have made it work by modifying the eds file themselves. Of course, they didn't know how the other...
I think it is a requirement of CANopen to have either node guarding or heartbeat implemented. However, I know you can mark a node as optional. This way, when it goes offline the entire bus soes not drop out.
You say that you turned the OPC/UA server off. I would think that you have to have the OPC/UA server on to be able to reach it from the client....
You say that you turned the OPC/UA server off. I would thank that you have to have the OPC/UA server on to be able to reach it from the client....
Yes there is. You would create a Function Block. It is pretty much equivalent to an AOI. Here is a video I made showing the use of function blocks in CoDeSys. https://youtu.be/aYwH2O_QOQo
I see how this would work for the Structured Text and IL languages but I don't see a way that VS Code could support Ladder, FB and CFC.?
I went back to 3.5.12 and it works. There may be a bug in 3.5.16 BF1 or it may be specific to the target I am using?
Hello, When compiling a project I get errors with the following message relating to my symbol configuration. I originally had some structures in the symbol file and thought it was related to them but I have made a smaller test project that only has one BOOL, one INT and one REAL in the symbol file and I still get this error. The Target is an Eaton XV100 HMI/PLC Using Eaton XSOFT-CoDeSys V3.5.16 Bugfix 1 [ERROR] E12175_JSW_COREPULL: Symbol Configuration Device: PLC Logic: Application: C0140: Reference...
Here's what I came up with: FUNCTION_BLOCK MyCounter VAR_INPUT xIn: BOOL; // Count on rising edge of Input diDelayMS: DINT; // Delay before reset in miliseconds xReset: BOOL; // Reset the counter to zero on input END_VAR VAR_OUTPUT diCount: DINT; // Internal Counter END_VAR VAR tDelay: TON; // Timer MyTrig: R_TRIG; // Trigger for input END_VAR ============================================= // Rising Edge in the Input MyTrig(CLK:= xIn); IF MyTrig.Q THEN IF tDelay.Q THEN // If count is already 0 then...
Does a non-licensed version of the CoDeSys have the OPC Server in it? I'm trying to do some testing and I'm seeing the message OPC UA Server (not available) when I go to the security. I was hoping it would be available with the 2 hour limit for the DEMO License. Running CODESYS Control Win V3 Version 3.5.14.20
I have always used this one: https://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html