Template-Based Programming Examples for Industrial Robots
摘要
Template-based programming is a common technique for using general-purpose programming languages, including diagram-based graphical programming environments such as LabVIEW or Simulink. Roughly speaking, code templates provide standard and tested solutions for generic programming tasks (e.g., state machine realization, continuous serial communication), and they are easy to customize to meet the requirements at hand. A similar situation occurs in factories using robotic cells built around one or more robot arms. These robotic cells execute similar operations such as sorting, packaging, quality control, machine feeding, etc., which implies that programs for a robot in each type of robot cell usually only differ in the number of resources, timing, and geometry of the environment and that of the robot. This paper presents industrial robot program templates (using Mitsubishi’s MELFA Basic robot programming language) for some selected robot cell operations. The cell operation is modelled using state machines, which are the backbone of templates. Cell parameters (resource numbers, I/Os) are graphically displayed, and templates are automatically provided. The user is expected to teach only the robot configurations according to the cell geometry at hand.