Motion analysis with the GDK scope

Getting Started

The purpose of this exercise is to plot a simple waveform with the GDK Scope. The following are the required components to perform this exercise.

  1. GDK supported Galil controller.
  2. A computer running the latest version of GDK software.
  3. A GDK Pro license.

Connect to the Controller

  1. To connect the Scope to the desired controller, first make sure that the correct address is aliased in the GDK Manager.
  2. Open the Scope by clicking the respective icon in the GDK Manager toolbar.
  3. The Scope should automatically connect to the controller selected in step 1.

Selecting Scope Channels

  1. Type RP in the Available Channels tab of the Scope to search for the Reference Position channel. Double click on _RPA.
  2. Type BG and double click on _BGA.
Selecting a channel from search.

Write a Simple Profile

As seen in the figure below, open an Editor and create the following program, then download and execute it by typing the hot key combination Ctrl + Shift + D. This program will loop continuously until the program is stopped by issuing the ST command from the Terminal or by clicking the Stop Program button in the Editor.

## Step-By-Step motion analysis with the GDK Scope
## Simple Profile
SHA  //Servo A-axis
#a  //Label
PR 5000  //Move 5000 counts
BG A  //Begin motion
AM A  //Wait for motion to complete
WT 1000  //Wait for 1 sec
PR -5000  //Move -5000 counts
BG A  //Begin motion
AM A  //Wait for motion to complete
WT 1000  //Wait for 1 sec
JP#a  //Jump to Label #a
EN  //End program
Download and run a simple profile. Note the Scope behind the Editor in the central stack.

Start the Scope

  1. Set the Trigger Mode to Scan. If plotting does not start automatically, start the scope by clicking the Run/Stopbutton in the trigger toolbar.
  2. Click the Zoom into waveform extents button.
The Scope has been started and the Trigger Mode is set to Scan.

Triggering

  1. Set the Triggering Channel to _BGA on the Rising Edge and set the Trigger Mode to Normal.
  2. Click the Set trigger level to data mean button.
  3. To display the waveforms shown below, edit the Horizontal Scale to be 300 ms/div.
Triggering on _BGA.

As seen above, _BGA is indicating when the profiler is and isn't active. When _BGA=1, the controller is profiling motion so _RPA is changing. Conversely, when _BGA=0 the controller is not profiling motion so _RPA is not changing.

Conclusion

In just a few quick steps, a variety of useful controller information can be graphically displayed to help in tuning, analysis, and troubleshooting for an application. From here, features can be leveraged such as different forms of triggering, adding more channels, changing channel scale, and measuring data output.