Activity for thecolonel26

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Delete ME

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    How would I initialize LevelControl : TrolleyWaterLevelControl(alarmManager) so that WashTankControlUnit.FB_Init is run before it, so that alarmManager is not null? FUNCTION_BLOCK WashTankControlUnit EXTENDS Core.HasUserModelPath VAR alarmManager : Core.IAlarmManager; VAR_INPUT LevelControl : TrolleyWaterLevelControl(alarmManager); // How whould I Initalize this after alarmManager is initialized? END_VAR //FB_Init is always available implicitly and it is used primarily for initialization. //The return...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    II have a constant error in my PLC logs that just keeps repeating endlessly but there doesn't seem to be anything wrong and all of my network devices are green and communicating properly. Does anyone know how I can find the cause of this and stop it? It is clogging up my logs and making them useless ffor troubleshooting.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I ran Static Analysis on a project. But ever since then it won't let me compile the project unless my license dongle is inserted. How can fix my project so that I can compile it with out the license again? I also get a build error saying the following. But there are no error listed in the Additional code checks catagory. If I insert my dongle and restart codesys. Then I can compile with no error ------ Build started: Application: Device.Sim.Device.Application_Test_ ------- Typify code... [ERROR]...

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    Question: Are you expecting a separate instance of the Function Block for each client that connect to the WebVisu server? If yes then it is a little more complicated if no... The best way, I have found to handle things, is to have a Function Block defined for each Visualization you have defined. this function Block serves as the "View Model" So like the Main Visualization has a viewModel and it is a reference to an instance in the process code. Because it is in the process code FB_init is called....

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    The impression I got from them was that everything on that list had been asked for by other users long ago (Except for function pointers/delegates). They said they were on their "back log" list. So I assume they will never happen.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thanks I knew I had seen it some where.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    If you indeed want 3 identical instances that is in my opinion the proper way to it. That is how I do it. If you think it is messy I would advise you work on splitting up your program structure in to organized units. A flat data model will always be messy.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I assume like my experience, Codesys threw and error during installation and didn't finish. Are you running the latest installer or are you trying to install with the original installer for that version? Try closing everything codesys related including the gateway and WinControl Target and do a repair install.

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Yeah I have had terrible luck with Codesys NA, they always seem like the just want me to go way and leave them alone. They give a lot of canned responses and make me feel like I am talking to a wall. Also the only "help" they will do for free is send you a link to the documentation page. Documentation pages which you have already read thoughtly, and are very vague and missing alot of context. If you want anything more than that you have to pay them by the hour. Even if you submit a ticket it can...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Yeah I have had terrible luck with Codesys NA, they always seem like the just want me to go way and leave them alone. They give a lot of canned responses and make me feel like I am talking to a wall. Also the only "help" all they will do for free is send you a link to the documentation page. Documentation pages where I have already read thoughtly read. If you want anything more than that you have to pay them by the hour. It took a year and a half for them to finally send my Bug Report to Germany....

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    It might be possible, Try asking on http://www.plctalk.net/ There are experienced engineers that deal with Rockwell and Codesys on there. If you do get a solution please post it back here for others.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Post a copy of your project that is a MRE That is probably the best way to get help

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    My question was mainly rhetorical. What if you want to Open Dialogs from the VisuTask and not make a mess trying dealing with an asynchronous FB call? You can't using the VisuUtils library. That was my point. The common behavior model doesn't always fit well with OOP design. It shouldn't be a one size fits all solution. I am trying to build a UI framework library and I need to call dialogs directly from the VisuTask. If they also provided a syncronous call API in VisuUtils that would be fine, but...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Dumb Question: but why do you want to received email on a PLC? I assume you want the PLC to act as an Email Client (Not a server)

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    To my knowledge you can't modify a text list at run time. (but I am not 100% sure) You might want to create an array instead for the combo box to you. If you need multi-Language support on your combo box there are ways to do that at run time, but it is going to get tricky. I haven't done that yet though. I have only read about it. Sorry I can't be more help.

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I just had this issue, and VISU_USEPROPERTYINFO was already defined. So I unchecked "property handling in visualization element" pushed apply, then rechecked "property handling in visualization element" and pushed apply. Then recompiled. That fixed the problem.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why is IDialogManager.OpenDialog Obsoleted? It says to use VisuUtils but VisuUtils is an incomplete interface as it is designed to be called continuously and not be called from the Visu_Task. Am I missing something or is Codesys intentionally removing capabilities?

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I want to get the name of the current task (As a string) that is executing a block of code? What is the easiest way of doing this? I have tried looking though the help documents but I am not finding what I am looking for.

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why is SYSTEM.TYPE_CLASS.TYPE_ANYINT never reached? If I pass it a LINT? And if it's not possible you use SYSTEM.TYPE_CLASS.TYPE_ANYINT for comparison this what is the point? VAR_INPUT Value : ANY; END_VAR // Body CASE Value.TypeClass OF __SYSTEM.TYPE_CLASS.TYPE_ANYINT: LogWrapper(LogClass.LOG_INFO,'Value is an int type'); // this is never reached __SYSTEM.TYPE_CLASS.TYPE_ANYREAL: LogWrapper(LogClass.LOG_INFO,'Value is a real type'); // this is never reached __SYSTEM.TYPE_CLASS.TYPE_BOOL: LogWrapper(LogClass.LOG_INFO,'Value...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why is SYSTEM.TYPE_CLASS.TYPE_ANYINT never reached? If I pass it a LINT? And if it's not possible you use SYSTEM.TYPE_CLASS.TYPE_ANYINT for comparison this what is the point? VAR_INPUT Value : ANY; END_VAR //** Body CASE Value.TypeClass OF __SYSTEM.TYPE_CLASS.TYPE_ANYINT: LogWrapper(LogClass.LOG_INFO,'Value is an int type'); //** this is never reached __SYSTEM.TYPE_CLASS.TYPE_ANYREAL: LogWrapper(LogClass.LOG_INFO,'Value is a real type'); //** this is never reached __SYSTEM.TYPE_CLASS.TYPE_BOOL: LogWrapper(LogClass.LOG_INFO,'Value...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Nobody?

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have 3.5.17, 3.5.18 and 3.5.19 installed on my machine. I did an update on 3.5.18 at some point there was an error and the update failed and I did a repair, but now whenever I double click on an .project or .library files in windows explorer it tries to open the installer for 3.5.18 Some of these files are SP 17 and some are SP 19 and it still try to open the SP 18 installer. I tried manually setting the default application for the file types to the codesys.exe file in the SP 19 install directory,...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have 3.5.17, 3.5.18 and 3.5.19 installed on my machine. I did an update on 3.5.18 at some point there was an error and the update failed and I did a repair, but now whenever I double click on an .project or .library files in windows explorer it trys to open the installer for 3.5.18 Some of these files are SP 17 and some are SP 19 and it still try to open the SP 18 installer. I tried manually setting the default application for the file types to the codesys.exe file in the SP 19 install directory,...

  • thecolonel26 thecolonel26 modified a comment on ticket #63

    Wait I found it. It seems it ignores the "C:\" I changed the path to just the file name 'coUnit_xunit_testresults.xml' and then I found it written to C:\ProgramData\CODESYS\CODESYSControlWinV3x64\B4A102F1\PlcLogic Is is rather confusing. Where is it writing to if I put C:\ on it? it says it is suceeding.

  • thecolonel26 thecolonel26 posted a comment on ticket #63

    Wait I found it. It seems it ignores the "C:\' and puts it in a temp folder in ProgramData C:\ProgramData\CODESYS\CODESYSControlWinV3x64\B4A102F1\PlcLogic Is is rather confusing.

  • thecolonel26 thecolonel26 modified a comment on ticket #63

    I am confused. As I said in my post 1. using the default directory which is set to 'C:\' in the library parameter list results in all log messages to the device log showing success. there are no error messages. 2. Changing the directory to C:\Temp\ has the same result all show sucess, and no error mesages. but the xml file is not there in either case. This is the export of the log entries runing the test using the default path <LoggerEntries xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">...

  • thecolonel26 thecolonel26 modified a comment on ticket #63

    I am confused. As I said in my post 1. using the default directory which is set to 'C:\' in the library parameter list results in all log messages to the device log showing success. there are no error messages. 2. Changing the directory to C:\Temp\ has the same result all show sucess, and no error mesages. but the xml file is not there in either case. This is the log entries with default path <LoggerEntries xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">...

  • thecolonel26 thecolonel26 posted a comment on ticket #63

    I am confused. As I said in my post 1. using the default directory which is set to 'C:\' in the library parameter list results in all log messages to the device log showing success. there are no error messages. 2. Changing the directory has the same result all show sucess, and no error mesages. but the xml file is not there in either case. This is the log entries with default path <LoggerEntries xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Logger...

  • thecolonel26 thecolonel26 created ticket #63

    xml Results file not being written to file system

  • thecolonel26 thecolonel26 modified a comment on ticket #62

    Ok it appears it will only execute once and then will require a reset and not just a start and stop. So I figured that out. Next problem This can be closed

  • thecolonel26 thecolonel26 posted a comment on ticket #62

    Ok it appears it will only execute once and then will require a reset and not just a start and stop. So I figured that out. Next problem

  • thecolonel26 thecolonel26 created ticket #62

    Test Suite is not being Executed

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I doubt you will get a response here. I recommend you report it to codesys using there contact form on there website.

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    "So needing to pass by value is so rare" => I disagree with this, many programmers use it for inputs of FB's methods and properties all the time, except when dealing with large chunks of memory in favor to optimize for speed, for which we pass by reference, in which case we can use a plethora of tricks to achieve that. Maybe we are having a babylonic speech difference here? No I think you misunderstood what I was saying. I am not saying all inputs should be passed by reference instead of passed by...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am so very confused. It seems there is Visualization Based User Management and Runtime Based User Management But there are 3 differnt APIs, one for Old API for Legacy User Management, New API for legacy User Managment, and an API for Runtime Based user Management. What interface is for what API? I have looked at the Example Project, but it to is rather confusing. There are Many interfaces IVisuUserMgmt IVisuUserMgmt2 IVisuUserMgmt3 IVisuUserManagement IVisuUserManagement2 IVisuUserManagement3 Also...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am so very confused. It seems there is Visualization Based User Management and Runtime Based User Management But there are 3 differnt APIs, one for Old API for Legacy User Management, New API for legacy User Managment, and an API for Runtime Based user Management. What interface is for what API? I have looked at the Example Project, but it to is rather confusing. There are Many interfaces IVisuUserMgmt IVisuUserMgmt2 IVisuUserMgmt3 IVisuUserManagement IVisuUserManagement2 IVisuUserManagement3 Also...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am so very confused. It seems there is Visualization Based User Managment and Runtime Based User Managment But there are 3 differnt APIs, one for Old API for Legacy User Managment, New API for legacy User Managment, and an API for Runtime Based user Managment. What interface is for what API? I have looked at the Example Project, but it to is rather confusing. There are Many interfaces IVisuUserMgmt IVisuUserMgmt2 IVisuUserMgmt3 IVisuUserManagment IVisuUserManagment2 IVisuUserManagment3 ALso why...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am so very confused. It seems there is Visualization Based User Managment and Runtime Based User Managment But there are 3 differnt APIs, one for Old API for Legacy User Managment, New API for legacy User Managment, and an API for Runtime Based user Managment. What which is which? There are Many interfaces IVisuUserMgmt IVisuUserMgmt2 IVisuUserMgmt3 IVisuUserManagment IVisuUserManagment2 IVisuUserManagment3 and why Is Visualisaton Based managment "Legacy" it seems tehre is no way to programmically...

  • thecolonel26 thecolonel26 modified a comment on discussion Forge πŸ‡¬πŸ‡§

    How does this differ from the Offical Library Example? https://forge.codesys.com/prj/codesys-example/vumdialogs/home/Home/ Is this just a reimplementation with different styling? Might want to add that info to the readme/description Talk Topic about project #codesys-example/webvisu-login

  • thecolonel26 thecolonel26 posted a comment on discussion Forge πŸ‡¬πŸ‡§

    Does does this differ from the Offical Library Example? https://forge.codesys.com/prj/codesys-example/vumdialogs/home/Home/ Is this just a reimplementation with different styling? Might want to add that info to the readme/description Talk Topic about project #codesys-example/webvisu-login

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    Question: Are you expecting a separate instance of the Function Block for each client that connect to the WebVisu server? If yes then it is a little more complicated if no... The best way, I have found to handle things, is to have a Function Block defined for each Visualization you have defined. this function Block serves as the "View Model" So like the Main Visualization has a viewModel and it is a reference to an instance in the process code. Because it is in the process code FB_init is called....

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Question: Are you expecting a separate instance of the Function Block for each client that connect to the WebVisu server? If yes then it is a little more complicated if no... The best way, I have found to handle things, is to have a Function Block defined for each Visualization you have defined. this function Block serves as the "View Model" So like the Main Visualization has a viewModel and it is a reference to an instance in the process code. Because it is in the process code FB_init is called....

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I did a link from my image sharing host in the OP, but here it is attached.

  • thecolonel26 thecolonel26 modified a comment on a blog post

    Can it be a GitHub Clone? (Asking for a Friend) It feels like the year 2002 in here.

  • thecolonel26 thecolonel26 posted a comment on a blog post

    Can it be a GitHub Clone? (Asking for a Friend)

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Can you change where in your project application composer files are generated. I want to deculter my application. See screen shot.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am writing my own log entries and Info level works fine, but if I switch my log entries to use Debug, they no longer show in the device log. the debug tab just shows zero messages.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Is there any way to extend Codesys Development System with C# or Python to add your own refactoring functions? I would very much like to automate FB properties to automatically add a backing VAR. It is vary tedious doing that by hand.

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have extended it, I have 2 derived types. But I want the to have the Reference point to either of the derived types. Since it is only a Reference it seems to me it should work. I can do this with interfaces, but that is a lot of boiler plate code to wrap everything is properties. On Sun, Aug 14, 2022, 3:12 PM h-hermsen no-reply@codesys.com wrote: please read up on ABSTRACT in the help and you will understand what you are doing is incorrect... as ABSTRACT means you must EXTEND the ABSTRACT FB before...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have extended it, I have 2 derived types. But I want the to have the Reference point to either of the derived types. Since it is only a Reference it seems to be it should work. I can do this with interfaces but thst is a lot of boiler plate code to wrap everything is properties. On Sun, Aug 14, 2022, 3:12 PM h-hermsen no-reply@codesys.com wrote: please read up on ABSTRACT in the help and you will understand what you are doing is incorrect... as ABSTRACT means you must EXTEND the ABSTRACT FB before...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    VAR_INPUT RefToFBs : REFERENCE TO ARRAY [0..49] OF AbstractFunctionBlock; END_VAR Error C0434: Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated That is not the actual instance it is just a reference declaration, so why am I getting that error? I want to pass references to derived types, this object only needs access to things that are in the base function block.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    VAR_INPUT RefToFB : REFERENCE TO ARRAY [0..49] OF AbstractFunctionBlock; END_VAR Error C0434: Function block AbstractFunctionBlock is ABSTRACT and cannot be instantiated That is not the actual instance it is just a reference delaration, so why am I getting that error? I want to pass references to Derived types, only this object only needs access to things that are in the base function block.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Why don't you ask IFM support? they would be the best resource for their hardware

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    3.5.18.2 Wago PFC 100 I just bought the Pro Edition, because I have some serious performance issues in my code and cycles are taking along time. like 75ms. So I added the profiler to my project, I selected Instrument whole application. I selected the main task, and I set the Condition to a Boolean tag. When I download and go on line I am greeted with a dialog message that just says "No records". I run the program. and enabled the boolean, but nothing shows in the profiler tab. What am I missing?...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    3.5.18.2 Wago PFC 100 I just bought the Pro Edition, because I have some serious performance issues in my code and cycles are taking along time. like 75ms. So I added the profiler to my project, I selected Instrument whole application. I selected the main task, and I set the Condition to a Boolean tag. When I download and go on line I am greeted with a dialog message that just says "No records". I run the program. and enabled the boolean, but nothing shows in the profiler tab. What am I missing?

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    /webvisu/webvisu.htm Try that, with the extra /webvisu/ that is the path I have to use for Wago PFC100 target.

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    /webvisu/webvisu.htm ???? that is the path I have to use for Wago PFC100 target

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    did you try toggling the "advanced" check box? did you try restarting? just curious

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I want to have a separate instance of my View model function block for each WebVisu client session. So I have a function block declared as as VAR. When I run my project it gets instantiate and I can view the logic, but the function block is never called. Is there any way to get it to execute along with the Visu_Task?

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    "So needing to pass by value is so rare" => I disagree with this, many programmers use it for inputs of FB's methods and properties all the time, except when dealing with large chunks of memory in favor to optimize for speed, for which we pass by reference, in which case we can use a plethora of tricks to achieve that. Maybe we are having a babylonic speech difference here? No I think you misunderstood what I was saying. I am not saying all inputs should be passed by reference instead of passed by...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    "So needing to pass by value is so rare" => I disagree with this, many programmers use it for inputs of FB's methods and properties all the time, except when dealing with large chunks of memory in favor to optimize for speed, for which we pass by reference, in which case we can use a plethora of tricks to achieve that. Maybe we are having a babylonic speech difference here? No I think you misunderstood what I was saying. I am not saying all inputs should be passed by reference instead of passed by...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    So if your FB implements say InterfaceA and you set your Input as type InterfaceA it will pass by reference? I hope this may shed light on your question. PS offcourse passing by reference is much wiser when using i.e. FB's structs, array's or strings. I honestly not really because as you point out, it IS usually wiser to pass them by reference. but I guess IEC saying so makes sense why codesys does it this way, but not why IEC 61131-3 says to do it this way. I would love to have a copy of IEC 61131-3...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    {attribute 'no_assign'} is a good tip I mean, needing to pass by value is so rare, you could just build you own Clone Method, where you pass, the instance and then copy it member my member to a different instance. this is the norm in C#

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    So if your FB implements say InterfaceA and you set your Input as type InterfaceA it will pass by reference? I hope this may shed light on your question. PS offcourse passing by reference is much wiser when using i.e. FB's structs, array's or strings. I honestly not really because as you point out, it IS usually wiser to pass them by reference. but I guess saying so makes sense why codesys does it this way, but not why IEC 61131-3 says to do it this way. I would love to have a copy of IEC 61131-3...

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Being pretty experience with C# I find this to be baffling. IN C# All Objects are passed by reference, but structures are not. In what cases would would want to pass a function block by value? I have never found myself wanting to do this. Now Structs sure I can see wanting to pass those by value, and that is also how they behave in C#. Can anyone shed some light on the rational for this behavior?

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Being pretty experience with C# I find this to be baffling. IN C# All Objects are passed by reference, but structures are not. In what cases would would want to pass a function block by value? I have never found myself wanting to do this. Now Structs sure I can see wanting to pass those by value, and that is also how they behave in C#. Can any shed some light on the rational for this behavior?

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I want to extend the Text Field, object and make a specialized numerical input box that can accept a REAL or and INT, but that also has a present on click behavior. basically I just want all of my text fields that I use for numerical inputs to be configured the same way, from the toolbox and would like it if I can update them at once later, which is the down side to copy paste. I tried making a new visualization with a Text Field inside of it, Using Interface IN_OUT I tried type ANY_NUM but I get...

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I want to extend the Text Field, object and make a specialized numerical input box that can accept a REAL or and INT, but that also has a present on click behavior. basically I just want all of my text fields that I use for numerical inputs to be configured the same way, from the toolbox and would like it if I can update them at once later, which is the down side to copy paste. I tried making a new visualization with a Text Field inside of it, Using Interface IN_OUT but since they need to be References...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Thank you very much. I think that is what I needed to know. I did not know that interfaces were passed by reference only. Knowing that now everything makes more sense.

  • thecolonel26 thecolonel26 posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I agree the Arm SL is way to expensive for its target hardware. There is no way I could ever justify that price on anything ARM based. People go to ARM for low costs, if the license cost as more or more than board you are using it's a NO GO.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Trying to connect to a EIP remote IO device and I am getting the following error messing on the status page of the device. I have tried googling it and I have found nothing. Diag string: 'Configure encapsulation Layer...' On the Scanner device page it says the bus is not running but I have it configured you using the ENIPScannerIOTask which seems to be correct. What is an "encapsulation Layer"? in this context?

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    Well what I am trying to do is to return a Reference to EngValueBase but using type IEngineeringValue so that the consumer doesn't care what the base class is. I plan to have different implementations of the EngValue later on which is why I want it to be behind an interface. I have tried using := instead of Ref= but I get a run time exception, of access violation.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I think you are incorrectly assuming what IEngneeringValue contains. Right now it has it's own Properties of Value and MeaUnitAsString. The intend is to have a mechanism in place so that different types of engineering values can be compared if they are of the same type, Like Temperature, could be compared if if one instance is of using Celsius and one instance using Fahrenheit etc. Further set points in the system will be stored in the same mechanism. So I have a very valid reason for want to but...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Trying to return a Reference to EngValueBase but using type IEngineeringValue so that the consumer doesn't care what the base class is. I plan to have different implementations of the EngValue later on which is why I want it to be behind an interface. I have tried using := instead of Ref= but I get a run time exception, of access violation.

  • thecolonel26 thecolonel26 modified a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have a property defined as PROPERTY PUBLIC LiveValue : REFERENCE TO IEngineeringValue I have a VAR _liveValue : EngValueBase; //(Which Implements IEngineeringValue) END_VAR I defined the Get for LiveValue as LiveValue REF= _liveValue; But I get the following build error C0032: Cannot convert type 'REFERENCE TO IEngineeringValue' to type'EngValueBase' Which seems like it is backwards and should say Cannot convert type 'EngValueBase' to type 'REFERENCE TO IEngineeringValue' but regardless what is...

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I have a property defined as PROPERTY PUBLIC LiveValue : REFERENCE TO IEngineeringValue I have a VAR _liveValue : EngValueBase (Which Implements IEngineeringValue) I defined the Get for LiveValue as LiveValue REF= _liveValue; But I get the following build error C0032: Cannot convert type 'REFERENCE TO IEngineeringValue' to type'EngValueBase' Which seems like it is backwards and should say Cannot convert type 'EngValueBase' to type 'REFERENCE TO IEngineeringValue' but regardless what is going wrong...

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have an exception that keeps crashing the Visualization but I do not know how to track down the cause. It happens whenever I click on a certain button on that Screen. but I have no idea what this error means, nor how to gain more information about it. The message is as follows "Exception happened while evaluating main visu 'SandBox', Exception Code: RTEXCPT_NOEXCEPTION" And that is all it gives me EIA: Turning on "Stop Execution on Handled Exception", got me a lot more info.

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    code

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    I have an exception that keeps crashing the Visualization but I do not know how to track down the cause. It happens whenever I click on a certain button on that Screen. but I have no idea what this error means, nor how to gain more information about it. The message is as follows "Exception happened while evaluating main visu 'SandBox', Exception Code: RTEXCPT_NOEXCEPTION" And that is all it gives me

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Per the warning C0410: COMPATIBILITY WARNING: A write access to a Property of type REFERENCE calls the SET-Accessor for versions < 3.1.4022.0 and writes the reference, but calls the GET-Accessor for versions >= 3.1.4022.0 and writes the value! Use the operator REF= if you want to assign the reference. Say the Get is defined as BlahBlahFB Ref= _blahblahFB; and the Set is defined as _blahblahFB := BlahBlahFB; What is the behavior of that vs below? Get is defined as BlahBlahFB := _blahblahFB; and Set...

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Just code size or also performance?

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Just an FYI, I just tried to do VAR_OUTPUT Blah : REFERENCE TO BlahType; END_VAR and I got the following error Outputs can't be of type REFERENCE TO VAR_INPUT Seems to work though

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Thank you I think that did the trick. Is there a reason it is not enabled by default?

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Is that the correct link? It seems to be a list of example projects for the Pi, but the links don't seem to work.

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Is there anyways to bind a FB Property to Visu Text Field > Text Variable? I have tried it and I get a 'variableName' is not allowed as operand for ADR.

  • thecolonel26 thecolonel26 modified a comment on discussion Visualization πŸ‡¬πŸ‡§

    And there is also no way to create a Visu component in JavaScript and import it?

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    And there is not way to create create a Visu component in JavaScript and import it?

  • thecolonel26 thecolonel26 posted a comment on discussion Visualization πŸ‡¬πŸ‡§

    Creating dynamic nested components is pretty trivial in Qt, WPF, and Blazor etc. Is there any way to do it in Codesys? Basically I want to have a changeable number of the blue objects on the screen and also have a changeable number of the red rows in that.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Ok so I switch my device from a PFC200 to my Control Win x64 and now I have resolved that issue. I have a new issue which I started a new thread about. https://forge.codesys.com/forge/talk/Engineering/thread/9008bd0c33/

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I am getting a connection error with my Wago 750-363 The log shows a Invalid O->T size. (16#127) I've never tried to connect to a Ethernet/IP Adapter from Codesys. So I am not really sure what the procedure usally is for setting these up. Here is my configured Assemblies in codesys And here is what the 750-363 Web Config says is on the Adapter/Coupler

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    oooooh, All that is available right now is my Control Win x64 runtime on my laptop. I don't have a PFC200 yet, I do have a 750-363. I was trying to configure my project and do some tinkering before I actually buy a PFC200. So do I need to have Codesys Engneering connected to a PFC200 to continue the configuration?

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I downloaded the PFC200 runtime target. I am trying to configure my EtherNet/IP Scanner to connect to a 750-363 fieldbus coupler. However whenever I try to select a network interface to use I get the following error "Gateway not configured properly". I've tried googling it but I can't find any information on this issue. See attached screen shot.

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering

    Bump

  • thecolonel26 thecolonel26 posted a comment on discussion Engineering

    In 3.5 SP16 Patch 1 is it possible to Online edit the logic in a Function Block without needing to go into program mode?

1