Personal Data

Username:
rickj
Joined:
2018-11-06 17:55:06+00:00
Location:
Pittsburgh / United States / EDT
Gender:
Male

Projects

  • No projects to display.

Skills

  • No skills entered.

Personal Tools

User Activity

  • Posted a comment on discussion Engineering 🇬🇧 on CODESYS Forge

    Every so often questions popup about using enums in visualizations or about how to cast to an enumerated type. Here are a couple of tips that some here may find useful. First of all, as far as I know, there is no codesys conversion or cast to enumerated types. The workaround is to remove the 'strict' attribute from the enum declaration and then use the underlying integer implementation (usually UDINT by default?). The other thing that is very convenient is to use the 'to_string' attribute in the...

  • Posted a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    I appologize for showing my frustration in the previous post. My client is currently in the field comissioning the project and this is an inconvenient time to find out this issue. I would like to learn more about this so I can evaluate how deeply the current project is affected. My concerns are as follows: Coding ability within the context of a screen is very limited. How would the Frame element check CURRENTCLIENTID against the array's upper boundary? Where in the Frame element to put this code...

  • Modified a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    "The correct way is to declare an ARRAY OF INT and use the CURRENTCLIENTID to write to a clientspecific index" If I understand correctly, it's entirely up to us to provide and manage the context for each each session. It would be necessary for all frame interface variables (i.e. VAR_IN_OUT) to also be arrays. Upgrading screens for the current and future projects would be a non-trival task requiring significant effort. Can you confirm this is the case or otherwise opine on the subject? It's difficult...

  • Posted a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    "The correct way is to declare an ARRAY OF INT and use the CURRENTCLIENTID to write to a clientspecific index" If I understand correctly, it's entirely up to us to provide and manage the context for each each session. It would be necessary for all frame interface variables (i.e. VAR_IN_OUT) to also be arrays. Upgrading screens for the current and future projects would be a non-trival requiring significant effort. Can you confirm this is the case or otherwise opine on the subject? It's difficult to...

  • Posted a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    I have a navigation system where the main menu uses the "Change Shown Visualization" mechanism to switch screens. Each of these screens have a sub-menu that uses the Frame switching mechanism to switch sub-screen content. This used so that function block and other references can be passed to the selected screen. The frame switching variable is declared as part of the main screen (i.e. the one displayed via "Change Shown Visualization") and is called Frame (for obvious reason). Navigation buttons...

  • Posted a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    Hi Marcel, VAR_INPUT Path : STRING; END_VARcode SysFile.SysFileGetPath('$$PlcLogic$$/$$visu$$',Path,80); // Returns Path ='%ProgramData%/CODESYS/Simulation/PlcLogic/visu/' Placing "file://%ProgramData%/CODESYS/Simulation/PlcLogic/visu/" into codesys embedded browser URL field displays the following: Codesys Embeded Browser: Can’t reach this page •Make sure the web address is correct •Search for this site on Bing •Refresh the page Placing "file://C:/ProgramData/CODESYS/Simulation/PlcLogic/visu/" into...

  • Posted a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    Hi Marcel, VAR_INPUT Path : STRING; END_VARcode SysFile.SysFileGetPath('$$PlcLogic$$/$$visu$$',Path,80); // Returns Path ='%ProgramData%/CODESYS/Simulation/PlcLogic/visu/' Placing "file://%ProgramData%/CODESYS/Simulation/PlcLogic/visu/" into codesys embedded browser URL field displays the following: Codesys Embeded Browser: Can’t reach this page •Make sure the web address is correct •Search for this site on Bing •Refresh the page Placing "file://C:/ProgramData/CODESYS/Simulation/PlcLogic/visu/" into...

  • Modified a comment on discussion Visualization 🇬🇧 on CODESYS Forge

    Thanks Marcel. I still haven't figured out how to use the placeholder $PlcLogic$/$visu$ but you have given a very helpful about SysFile. If I embed an external file I can use SysFileGetPath('/App/Filename',Path,80) to get the path where it's stored. I can then compose a string containing the full path+filename for tyher browser. For anyone else interested a code snippet below: VAR // Path will contain full path minus file name Path : STRING; // Application - name of application in object tree //...

View All