SECCIÓN I – DISERTACIÓN 13
2. DESCRIPCIÓN DEL ESCENARIO EXPERIMENTAL
2.5. R EFERENCIAS
The Debug feature includes several sets of options available for use. Options on the Debug tool bar (above the Macro Manager and under the secondary tool bar) control the debugging process:
Button Keys Description
Ctrl F2 Toggle Bookmark—Toggles the bookmark feature to insert or remove bookmarks.
F2 Next Bookmark—Goes to the next temporary bookmark.
Shift F2 Previous Bookmark—Goes to the previous temporary bookmark.
— Clear All Bookmarks—Clears all bookmarks in the window.
Ctrl F Find—Searches for specified text.
F9 Insert/Remove Breakpoint—Inserts a breakpoint at the current location or removes the currently selected breakpoint.
To insert a breakpoint, position your cursor at the line where you want to insert a breakpoint. Click . A red marker appears to the left of the line. For example, a breakpoint is inserted here at line 31:
To delete a breakpoint, position your cursor at a line where a breakpoint exists (such as line 31 above) and click .
— Remove All Breakpoints—Removes all existing breakpoints.
F5 Go—Starts debugging or continues after a breakpoint. This instructs IMSpost to execute the program until a breakpoint is encountered.
F10 Step Over—Steps over the next macro instruction.
F11 Step In—Steps in and enters the macro that is being called by the current instruction.
— Step Out—Steps out of (exits) the macro that was called and returns to the next statement it was called from.
— Run to Cursor—Runs (executes) to a statement designated by the cursor line.
— Next Input—Steps to read the next instruction line.
— Stop—Stops the debugging execution.
— Examine—Examines the variable data to see what various machining conditions are active. The system examines macro variables, machine motion, and controller options.
Execute Menu and Options: Debug
Button Keys Description
— Quit—Quits and exits the debug environment.
In addition to the options on the Debug tool bar, you can use the buttons on the Macro Manager:
Button Description
New—Enables you to define a new macro.
Edit—Enables you to edit a macro after selecting it on the Macro Manager list.
Save—Saves the current macro status.
Save All—Saves all changes made to all macros.
Delete—Deletes a macro that is selected on the Macro Manager list.
NOTE: It is not a good idea to delete a macro unless you are absolutely sure the macro should not be supported within the postprocessor. The library files contain macros that are called up with other macros. It is not a good idea to delete a macro just because it does not look familiar.
Rather than deleting the macro, enter a BREAK statement as the first macro instruction. For example:
SPINDL/*
BREAK
Later, you can “comment out” the BREAK statement and the macro will be reactivated. For example:
SPINDL/*
*BREAK
Export—Opens a browser and enables you to export the selected macro(s) to another postprocessor.
Import—Opens a browser and enables you to import a macro(s) from another postprocessor.
Macro properties—Specifies the macro type.
Search—Searches for specific text throughout the Macro Manager list.
Additional options are available on the Edit menu. Note that some of the Edit options are duplicated on the tool bars described above and are not repeated here:
Option Button Keys Description
Undo — Alt
Backspace
Reverses the previous action.
Redo — Ctrl Y Restores the previous action that was reversed (undone).
Cut Shift
Delete
Cuts the current selection and places it on the Clipboard.
Copy Ctrl C Copies the current selection and places it on the Clipboard.
Execute Menu and Options: Debug
Option Button Keys Description
Paste Ctrl V Pastes the cut or copied selection from the Clipboard.
Select All — Ctrl A Selects all information, such as all lines of code in a macro.
Replace — Ctrl H Replaces currently selected text with the information on the Clipboard.
Line Numbers — — Displays line numbers, when this option is checked.
Go to line — Ctrl G Enables you to go to a line number that you specify:
Enter the line number, then click Go To.
New
Macros are executed by major words. When you click , the following dialog is displayed:
Enter a macro name and click OK. (Do not add the / code or any syntax.) For this example, IMSpost automatically creates the following macro display:
Execute Menu and Options: Debug
The macro name SWITCH represents the command name that activates the macro of the same name.
/* is a wildcard that signifies that IMSpost will trap all the SWITCH/ commands encountered in the part file. As a default, IMSpost always adds the /* to the command name that is entered.
Each macro must end with a RETURN statement to signify the end of the macro logic and instructs IMSpost to return and read the next CL/APT statement.
You could enter SWITCH/OFF for the macro name, but then your macro would only be called for SWITCH/OFF commands.
With the new macro dialog open, you can insert your macro commands. For example, click before the R in RETURN and press Enter to open a line between the macro command SWITCH/*
and RETURN statements.
You can close the view of the macro by clicking the X on the right of the macro name tab:
Edit
To edit an existing macro, select it from the Macro Manager list and then click . Or, double-click the macro name on the list. The macro is displayed. The following example shows the COOLNT macro.
Execute Menu and Options: Debug All macros start with the word that activates the macro (in this case, COOLNT/*).
Any statement that begins with an asterisk (*) represents a comment. Comments must start with an asterisk and cannot be combined with the instruction.
All macros must end with a RETURN command. This signifies the end of the macro and instructs IMSpost to return and read the next CL/APT statement.
Import
Click . An Import browser is displayed:
Field/Button Description
All Selects all macros in the list.
None Deselects all macros in the list.
View Views a selected macro.
Verify Reconfirms that the imported macro already exists in the open project.
The specific macro or macros you selected are copied out of the “import” project and into the current project.
If you import a macro from another postprocessor and there is currently a macro with the same name, IMSpost will indicate that you are about to overwrite an existing macro and provide the option to cancel the procedure.
Execute Menu and Options: Debug