Patent ID: 9733902
Date: 2017-08-15
CPC Classifications: G06F

Claim:
1. A non-transitory computer-readable medium including computer-executable instructions, which are configured to be loaded onto a computer to enable the computer to perform a method for copying and pasting a set of machine vision part program operations when editing a part program in a machine vision inspection system, the machine vision inspection system including: an imaging portion, a stage for holding one or more workpieces in a field of view of the imaging portion, a control portion, an editing portion, a display, a graphical user interface (GUI), and a learn mode configured such that it is operable to receive user input to control operations of the machine vision inspection system and record associated part program instructions corresponding to the controlled operations in order to create a part program, the method to be performed comprising: providing a copy command and a paste command associated with the editing portion; providing an editing interface portion of the GUI, the editing interface portion operable to display an editable part program representation of underlying part program instructions, the part program representation comprising instruction representations; displaying a part program representation of an underlying part program in the editing interface portion; displaying an editing context status indicator configured to indicate a status of operating context of the machine vision inspection system at a location in the displayed part program representation; selecting at least a first instruction representation at a copy location in the displayed part program representation to define a selected instruction representation copy set associated with an underlying selected instruction copy set, the editing context status indicator indicating that the selected representation copy set corresponds to a valid editing context status; operating the editing interface portion to define a paste location in the displayed part program representation where the selected instruction representation copy set is to be pasted, the paste location associated with an instruction paste location in the underlying part program; operating the editing portion such that it performs copy set modification operations directed to at least one of the selected instruction representation copy set or the selected instruction copy set, the copy set modification operations including forming a modified selected instruction representation copy set that is different than the selected instruction representation copy set by operations including at least one of: a) modifying elements and associations of the selected instruction representation copy set that are incompatible with the paste location operating context, b) adding elements and associations to the selected instruction representation copy set that are required for compatibility with the paste location operating context, or c) forming the modified selected instruction representation copy set based on a modified selected instruction copy set formed by operations comprising at least one of c1) modifying elements and associations of the selected instruction copy set that are incompatible with the instruction paste location operating context, or c2) adding elements and associations to the selected instruction copy set that are required for compatibility with the instruction paste location operating context; operating the editing portion such that it performs paste operations comprising pasting the modified selected instruction representation copy set that is different than the selected instruction representation copy set into the paste location in the displayed part program representation; and automatically operating the editing context status indicator, in response to pasting the modified selected instruction representation copy set, to indicate that the modified selected instruction representation copy set corresponds to at least one of a questionable or invalid editing context status.