Bootstrak Skip to main content

15. Scope Tool

Streszczenie: Narzędzie Scope: generator funkcji i profil ruchu, zmienne śladu, wyzwalanie, czas i częstotliwość próbkowania, wyświetlanie (autoskalowanie, zoom), automatyczna konfiguracja, pomiary oraz zakładki parametrów pętli regulacji do strojenia.
EN: Scope tool: function generator and profiles, trace variables, triggering, display, measurements and loop-tuning tabs.

Dotyczy: program CME 2 do konfiguracji i strojenia serwonapędów oraz napędów krokowych Copley Controls (m.in. Xenus, Accelnet, Stepnet, Accelus, Junus)
Źródło: dokumentacja producenta (Copley Controls CME 2 User Guide); tabele przepisane z obrazów na tekst – opracowanie Multiprojekt

This chapter shows how to use the CME 2 Scope Tool to program and test motion sequences. Perform the steps outlined below to access the Scope Tool. Details follow in the chapter.

11. image.pngButton: Scope toolClick to open the Scope Tool:

image.pngScreenshot: Scope Tool – Click to open the Scope Tool

22. See this chapter for a Scope Tool Overview and details on:

  • Function Generator and Profile Tabs 
     
  • Trace Channel Variable Parameters
     
  • Trigger Setup 
     
  • Trace Time, Sample Rate and Single Trace
     
  • Scope Display Parameters
     
  • Auto Setup
     
  • Measurement Tab
     
  • Control Loop Parameters

15.1:1 Scope Tool Overview

The Scope Tool can be used to tune the amplifier, monitor performance, and perform diagnostics. Function Generator and Profile Generator can drive the motor without external control. Auto Set Up feature sets typical initial values for scope parameters. 

image.png

image.pngScreenshot: Scope Tool Overview

Scope tool – buttons

ButtonDescription
Save trace (Save to Disk icon)Save a trace. See Scope Trace Files.
RecordBegins recording a trace.
Stop TraceStops recording a trace.
ClearClears the trace from the screen and trace data from buffer.
CloseCloses the scope tool.

Run a move with the Function Generator or Profile Tool

1.
1 Click on the Function Generator or Profile tab.
2

2. Adjust Function Generator or Profile settings, scope tool settings, gains, limits, and parameters (as described later in this chapter).
3

3. Click Start to begin move and trace. Click Stop to stop the move

Monitor externally controlled motion

1.
1 As required, adjust scope tool settings.
2

2. Click Record to begin trace.
3

3. Begin move with external controller. Click Stop Trace to stop the trace recording. 

15.2:2 Function Generator and Profile Tabs

The Function and Profile generators can provide inputs to the different control loops for tuning and diagnostics purposes without using an external control source. 

image.pngScreenshot: Function Generator and Profile Tabs

The Start button starts the function or profile generator. The Stop button stops the generator and aborts any profiles in progress

15.2.1:1 Function Generator Tab

image.png

Scope tool – Function Generator parameters

ParameterDescription
Apply ToControl loop to which the Excitation will be applied: Current (available in all modes), Velocity (available in velocity or position mode), or Position (available in position mode only).
FunctionFunction that will be applied to the control loop selected in the Apply To list box. The choices vary with the control loop selected: Current – Sine Wave, Square Wave, Step Forward, Step Forward and Reverse, and Impulse; Velocity – Sine Wave, Square Wave, Step Forward, Step Forward and Reverse; Position – Sine Wave, Square Wave.
AmplitudeAmplitude of the command. Units vary depending on the value chosen in the Apply To field.
Frequency(Sine Wave and Square Wave only.) Frequency of input command cycle.
Period(Step Forward, Step Forward and Reverse, and Impulse only.) Duration of each input pulse.

15.2.2:2 Profile Tab

image.pngScreenshot: Profile Tab

15.3:3 Trace Channel Variable Parameters

Choose a trace variable for display in a Scope channel 


11. image.pngButton: Chan 1Click the channel button. 

image.pngScreenshot: Choose a trace variable for display in a Scope channel – Click the channel button

22. Choose a category and a trace variable. 

image.pngScope tool – trace variables by category

CategoryTrace Variable
Disabled<Channel disabled, no associated variable>
CurrentCommanded Current, Actual Current, Limited Current, I²T Amplifier Accumulator, I²T Motor Accumulator.
VelocityProfile Velocity, Commanded Velocity, Limited Velocity, Actual Motor Velocity, Actual Load Velocity, Unfiltered Motor Velocity, Velocity Error.
PositionCommanded Position, Limited Position, Actual Load Position, Actual Motor Position, Following Error, Passive Load Position.
AccelerationProfile Acceleration.
VoltageAnalog Command, Bus Voltage, Analog sin Input, Analog cos Input, Terminal Voltage Stepper, Terminal Voltage Servo.
Misc.Motor Phase Angle, Amplifier Temperature, Hall States.
Digital InputsDigital input line states.
Digital OutputsDigital output line states.
Event Status Faults (see Fault Configuration Parameters)Short Circuit, Amp Over Temperature, Over Voltage, Under Voltage, Motor Over Temperature, Feedback Error, Motor Phasing Error, Following Error, Command Input Fault, Amplifier Fault (a latched fault is active).
Event Status Warnings (see Custom Event Functions)Current Limited, Voltage Limited, Positive Limit Switch, Negative Limit Switch, Following Warning, Velocity Limited, Acceleration Limited, Positive Software Limit, Negative Software Limit, Pos Outside of Tracking Window, Vel Outside of Tracking Window.
Event Status Misc. (see Custom Event Functions)Amp Disabled by Hardware, Amp Disabled by Software, Attempting to Stop Motor, Motor Brake Active, PWM Outputs Disabled, Position Has Wrapped, Home Switch Active, In Motion, Phase Not Initialized.

33. Click OK.

15.4:4 Trigger Setup

Set up Scope trace trigger (manual setup)

1.
1 image.pngScreenshot: Set up Scope trace trigger (manual setup) – Click Trigger Setup to open the screenClick Trigger Setup to open the screen:

image.pngScreenshot: Set up Scope trace trigger (manual setup) – Click Trigger Setup to open the screen

22. Choose from the settings described below:

image.pngScope tool – Trigger settings

SettingDescription
Trigger

Type

Selects trigger type: Immediate Trigger – trace begins as soon as Record is pressed; Rising Edge – trace triggers when (after Record is pressed) the trigger signal rises though the trigger level setting; Falling Edge – trace triggers when (after Record is pressed) the trigger signal falls though the trigger level setting; Above Level – trace triggers when the trigger signal is greater than or equal to the trigger level setting; Below Level – trace triggers when the trigger signal is less than or equal to the trigger level setting; Function Generator – trace begins in synchronization with the Function Generator; Move Start (position mode only) – trace begins in synchronization with the trajectory generator; Event Status Rising Edge/Event Status Falling Edge – trigger on the rising or falling edge of changes to events chosen in the Event Status Bit setting (below); Input Level High/Input Level Low – trigger when specified input is high or low; Output Active/Inactive – trigger when specified output is active or inactive (note that outputs can be configured to be active when high or low). (Not available on Accelus or Junus.)
Trigger OnSelects which channel will be used as the trigger signal: 1, 2, 3, 4, 5, or 6.
PositionSelects placement of the trigger event on the screen. (Value is not configurable for Immediate or Function Generator trigger types.) Left – for optimal viewing of events following the trigger; Middle – for optimal viewing of events preceding and following the trigger; Right – for optimal viewing of events preceding the trigger.
LevelSets the trigger level, in units appropriate to the channel selected.
Event Status BitWith an event status trigger type selected, choose the event status word bit that will trigger the trace. For descriptions of the event status word bits, see Custom Event Functions.

15.5:5 Trace Time, Sample Rate and Single Trace

Trace Time sets the length of the recorded trace.

Sample Rate is the rate at which the signals are sampled. The rate depends on the trace time, the number of channels selected, and which variables are being traced.

Single Trace puts the scope in a single trace mode of operation. In this mode, the trigger is not re-armed after a trace until the user presses the Record button. Single Trace is automatically set by the generators in certain cases.

15.6:6 Scope Display Parameters

The user can set the line style and other scope screen preferences. Right-click on the scope screen to display the menus, as shown below. 

image.pngScreenshot: Scope Display Parameters

The Scope display parameters are described below

image.pngScope tool – display menus

MenuParameterDescription
Line

Style

lineA line connects the plotted data points.
Line StyleplusThe Scope plots data points as plus signs, with no connecting line.
Line Styleconnected plusData points are plotted as plus signs and are connected with a line.
Preferencesanti-aliasingWhen anti-aliasing is selected, the Scope smoothes out any screen-related jaggedness in the displayed trace. Use of this feature may slow down the refreshing of traces on slow computers.
PreferencesgridWhen selected a grid is displayed on the scope screen.

15.6.1:1 Auto Scale and Auto Scale Lock

The Scope automatically scales the display axes to optimally display all channels. With Auto Scale Lock selected, the y-axis locks its scale for all subsequent traces.

15.6.2:2 Zoom

Zoom in on a Trace Segment

1.
1 Hold the left mouse button down while dragging a box around the area of interest

image.pngScreenshot: Zoom in on a Trace Segment

22. Release the button to let the display zoom in on the selected area. 

image.pngScreenshot: Zoom in on a Trace Segment

33. To restore the normal zoom level immediately, left-click anywhere on the trace. (Normal zoom level is also restored when the next trigger event occurs.)

15.7:7 Auto Setup 


With Auto Set Up selected, if the function generator tab is active, CME 2 automatically sets the scope settings and the function generator's amplitude and frequency/period to best suit the function generator's Apply To and Excitation mode settings. If the Profile tab is active, CME 2 automatically sets the scope settings and sets a standard move into the profile generator. Changing any of the preset settings de-selects the Auto Set Up feature. 

15.8:8 Measurement Tab

The Measurement tab allows you to measure and analyze data from up to three parameters during an interval defined by adjustable cursors. The Cursor Data area displays a parameter’s values at the left and right cursor locations, and the difference between the two values. The Analysis area displays the minimum, maximum, average, and root mean square of the parameters during the cursor period. 

image.pngScreenshot: Measurement Tab

When Show Cursors is not set, the Cursor Data fields are inactive and the Analysis fields show calculations based on data from the entire trace cycle. 

Basic Measurement Operations

1.
1 image.pngCheckbox: Show CursorsTo display cursors and activate the Cursor Data fields, set Show Cursors.
2

2. To move a cursor, click on the cursor and hold the left button while dragging the cursor to the desired location. Release the left button to place the cursor in the new location.
3

3. To select a parameter to measure and analyze within the cursors, choose a channel in one of the three channel lists on the Measurement tab: 

image.pngScreenshot: Basic Measurement Operations

15.9:9 Control Loop Parameters

The Scope tool provides convenient access to all of the control loop parameters that might be used in tuning and diagnosing an amplifier. The user can adjust these parameters and see the results immediately on the scope. Control loop parameters are accessed through a set of tabs, shown below. 

image.pngScreenshot: Control Loop Parameters

Note that the parameters represented on these tabs can also be accessed through the screens used to configure the control loops and the digital position input. Changing a value in the Scope tool automatically updates the value on the other screens where it appears, and vice versa.

Control loop parameter tab descriptions follow

15.9.1:1 Gains Tab

The Gains tab provides access to all of the gains appropriate to the operating mode, as described below.

image.pngScope tool – gains available for tuning

ModesGainsDescriptionFor

More Information

Position mode onlyPpPosition loop proportional gain.Trajectory Limits
Position mode onlyAffAcceleration feed forward.Trajectory Limits
Position mode onlyVffVelocity feed forward.Trajectory Limits
Position or velocity mode onlyVpVelocity loop proportional gain.Velocity Loop Gains
Position or velocity mode onlyViVelocity loop integral gain.Velocity Loop Gains
Position or velocity mode onlyOutput Filter FcVelocity Loop Output Filter cut-off frequency.Low-Pass and Bi-Quad Filters
All modesCpCurrent loop proportional gain.Current Loop Gains
All modesCiCurrent loop integral gain.Current Loop Gains
All modesECpEncoder Correction Gain.Encoder Correction

15.9.2:2 Trajectory Limits Tab

In position mode, the Trajectory Limits tab can be used to set trajectory limits. 

image.pngScreenshot: Trajectory Limits Tab

For more information on the velocity and acceleration limits, see Trajectory Limits. For more information on the Maximum Jerk setting, see Test S-Curve Profile

15.9.3:3 Position Loop Parameters

In position mode, the Position Params tab can be used to set position loop parameters

image.pngScreenshot: Position Loop Parameters

Set Zero Position sets the amplifier’s actual position count to zero. For more information on the other settings, see Position and Velocity Error Notes

15.9.4:4 Velocity Loop Parameters

In position and velocity modes, the Velocity Params tab can be used to set velocity loop parameters.

image.pngScreenshot: Velocity Loop Parameters

For information on the Velocity Tracking parameters, see Position and Velocity Error Notes. For information on the limits, see Velocity Loop Limits.

15.10:10 Scope Files

The Scope Tool allows you to save both scope settings and scope trace data. Saving the scope settings is useful for saving custom settings used for tests that are run frequently. Saving the trace data is useful for archiving the performance of a system so that it can be used as a reference at a later date for comparison.

15.10.1:1 Scope Settings Files

The Scope Tool FileSaveFile → Save Settings command allows you to save scope settings (settings on the Function Generator, Profile, and Settings tabs in a .sco file. The FileRestoreFile → Restore Settings command restores them for quick setup.

Save scope settings:settings

1.
1 On the Function Generator, Profile, and Settings tabs, choose the scope settings you wish to save.
2

2. Choose FileSaveFile → Save Settings.
3

3. When prompted, enter a File Name. If needed, navigate from the default ScopeData folder to another folder where you wish to store the file.
4

4. Click Save to save the .css file and close the screen.

Restore scope settings:settings

1.
1 In the Scope Tool, choose FileRestoreFile → Restore Settings.
2

2. If needed, navigate from the default ScopeData folder to the folder containing the .css file.
3

3. Highlight the filename and click Open

15.10.2:2 Scope Trace Files

The Scope Tool can save trace data in Copley Controls scope files (.sco files) that can be opened later with the CME 2 Trace Viewer. Simultaneously, a version of the same trace is stored in a comma-separated text file (.csv) and a tab delimited file (.txt), either of which can be opened with a spreadsheet application such as Microsoft Excel (or other programs) for mathematical analysis. The format of the .csv and the .txt file is the same:

  • Column 1: time
  • Column 2: Trace Channel 1
  • Column 3: Trace Channel 2 (if used)
  • Column n: Trace Channel n (if used)

NOTE: By default, scope files are saved in the ScopeData folder in the CME 2 installation folder. For instance, c:\Program Files\Copley Motion\CME 2\ScopeData. Use these procedures to save and view trace files: 

Save trace data:data

1.
1 Generate the trace you wish to save.
2

2. image.pngButton: Save to DiskIn the Oscilloscope window, click the Save to Disk icon.
3

3. When prompted, enter a File Name. If needed, navigate from the default ScopeData folder to another folder where you wish to store the file.
4

4. Click Save to save the .sco, .txt, and .csv files in the same folder and close the screen.

View a trace file:file

1.
1 On the Main screen, choose ToolsViewTools → View Scope Files to open the window.
2

2. Click Open File. When prompted, select the name of the file you wish to open. Then, click Open to display the file in the Trace Viewer window. 

image.pngScreenshot: View a trace file

The Measurement tab allows you to measure and analyze data from up to three parameters during an interval defined by adjustable cursors. See Measurement Tab.

Słowa kluczowe

Scope, oscyloskop, generator funkcji, profil, trace, wyzwalanie, trigger, próbkowanie, autoskalowanie, zoom, pomiary, strojenie, wzmocnienia