Personal Data

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

Skills

  • No skills entered.

User Activity

  • Posted a comment on discussion Visualization πŸ‡¬πŸ‡§ on CODESYS Forge

    The workaround I use is to have ALL button presses set a global variable. A timeout FB uses this value to reset a TON timer and then resets the flag for next scan. I sure would be convenient to have a built-in flag and the ability to execute the timer within the context of a client session. In other words have session/client events such as EveryScan, SessionInit, etc in which one could declare variables/FBs and execute code. Most, if no all, Iterate Client stuff would be unnecessary.

  • Modified a comment on discussion Visualization πŸ‡¬πŸ‡§ on CODESYS Forge

    When editing visu properties I find my self constantly switching between mouse and keyboard. Most of the time returning to the mouse is to open a field for editing. Is there a keyboard shortcut that opens the currently highlighted field for edit? I know you can simply type or paste data into a field, however, afterward the field is not open for edit. One must return to the mouse to open the field and then back to the keyboard for the edit. Being able to open a field for edit from the keyboard would...

  • Posted a comment on discussion Visualization πŸ‡¬πŸ‡§ on CODESYS Forge

    When editing visu properties I find my self constantly switching between mouse and keyboard. Most of the time returning to the mouse is to open a field for editing. Is there a keyboard shortcut that opens the currently highlighted field for edit? I know you can open a field for edit by simply typing or pasting data into the field, however, afterward the field is not open for edit. One must return to the mouse to open the field and then back to the keyboard for the edit. Being able to open a field...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    "In the other program you can nest structures in data block/other structures, and in Codesys you can't do it." Codesys does support nested STRUCTs as shown in the example below. Not sure where you went wrong but there is one quirk to be aware of. Codesys (sometimes or always?) doesn't compile and include entities in the build. Consequently, at least one variable defined in your GVL needs to be accessed in an executing program in order to view the GVL while Online. TYPE sSub : STRUCT Value : INT;...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    "In the other program you can nest structures in data block/other structures, and in Codesys you can't do it." Codesys does support nested STRUCTs as shown in the example below. Not sure where you went wrong but there is one quirk to be aware of. Codesys (sometimes or always?) doesn't compile and include entities in the build. Consequently, at least one variable defined in your GVL needs to be accessed in an executing program in order to view the GVL while Online. TYPE sSub : STRUCT Value : INT;...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    "In the other program you can nest structures in data block/other structures, and in Codesys you can't do it." Codesys does support nested STRUCTs as shown in the example below. Not sure where you went wrong but there is one quirk to be aware of. Codesys (sometimes or always?) doesn't compile and include entities in the build. Consequently, at least one variable defined in your GVL needs to be accessed in an executing program in order to view the GVL while Online. TYPE sSub : STRUCT Value : INT;...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    "In the other program you can nest structures in data block/other structures, and in Codesys you can't do it." Codesys does support nested STRUCTs as shown in the example below. Not sure where you went wrong but there is one quirk to be aware of. Codesys (sometimes or always?) doesn't compile and include entities in the build. Consequently, at least one variable defined in your GVL needs to be accessed in an executing program in order to view the GVL while Online. // Create sub STRUCT TYPE sSub :...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Create sub STRUCT TYPE sSub : STRUCT Value : INT; END_STRUCT END_TYPE Create main STRUCT TYPE sMain : STRUCT Value : INT; SubVal : sSub; END_STRUCT END_TYPE Declare and Initialize in GVL VAR_GLOBAL NestedStruct : sMain := (value:=1, SubVal:=(Value:=2)); END_VAR Access any variable declared in GVL from a program attached to a task, otherwise compiler doesn't bother to compile it. Main_PROG VAR Val : INT; END_VAR VAL := NestedStruct.SubVal.Value; END Compile and go Online to see GVL data

View All

Personal Tools

Projects

  • No projects to display.