You are watching the "What's New with MotionWorksIEC 3" video series.
Today's topic is going to show what changes were made...
...when Cross Referencing variables in MotionWorksIEC ver 3.1.
Hi, I am Micah Stuedemann
Here's a Quick Preview
To find a where variable is used,...
...just right-click on the variable...
...and select find all references.
Functionality for tracing variable chains is now easier with the navigate backward and forward buttons.
Variables can be globally renamed by going to the global variables list.
...refactor...
...rename.
Let's look at this in more detail.
First let me refresh your memory with a quick review of the Cross Reference function.
The cross-reference function in MotionWorksIEC 3...
...allows the user to find where variables are used throughout the entire project.
This is useful when debugging variable problems that exist in code...
...and becoming familiar with someone else's project.
To use the cross-reference...
...first open it from the view menu,...
...then populate the listing using the build menu.
Let's look at the improvements that were made to the cross-reference functionality.
One improvement is that a single variable can be cross-referenced...
...without creating an exhaustive variable cross reference list.
The normal way would be to build a cross reference list...
...and the apply a filter...
...to see where the single variable is used.
This way is slower because depending on the size of the project...
...the cross-reference list could take some time to compile.
The new way is to right-click on the variable..
...and find all references.
This opens up the cross-reference window showing where the selected variable is being used.
This new functionality speeds up the process...
...because it is compiling a smaller cross reference list...
...that contains only the selected variables.
The trace re-trace feature allows the user to backtrack through variables they have looked at previously.
This is useful for checking and verifying variable issues.
For instance,
I have traced through the code to find where T_GroupStatus status is set,...
...but now I want to return to what I was looking at previously.
I can use the navigate back word key to trace where I have been.
From here...
...I can use the navigate forward key...
...to retrace the path I took to find where T group status was set
This feature is always available...
...and can be added to the toolbars...
...by selecting extras, options, toolbars,...
...and then making sure it's checked here.
The last improvement makes it really easy to rename global variables throughout the code.
To change T_GroupStatus...
...to G_GroupStatus.
Go to the global variables list.
If you just rename it here...
...a compile error will occur because the name was not updated in the worksheets...
...or the POUs.
To rename without searching and replacing...
...right-click on the T_GroupStatus,...
...go to refactor...
...then rename.
From here the name can be changed to G_GroupStatus...
...and applied to the entire project.
Thanks for watching this video...
...and go to Yaskawa.com/iecsw...
...so you can download the latest version of MotionWorksIEC 3...
...and try out these features yourself with the 30-day demo.