Operating program writing
system (10) that writes an operating program of a
system (1) consisting of a
peripheral device and a
robot (2), wherein the operating program writing
system comprises: a block memory section (11) configured to store a plurality of blocks, each of which is a unit of work constituting the operating program, a selection section (12) which is configured to select by it any number of blocks to be combined to form the operating program from the multitude of blocks stored in the block memory section, a display section (13) configured to display a
path diagram in which any number of blocks selected by the selection section are arranged according to a user-defined order such that they form the operating program, a selection and input section (14) which is configured to accept the selection of at least one block from among any number of blocks displayed on the display section and through which arguments of the selected at least one block can be entered, a sequence section (15) which is set up to arrange sequence buttons (A) for any number of blocks on the display section and to allow, through the selection and input section, only those blocks that correspond to the sequence buttons and whose sequence buttons have been pressed, a write section (16) configured to use i) any number of blocks selected by the selection section, and ii) the input argument of the at least one block selected by the selection and input section as the basis for writing the operating program, and a setting section (17) which is set up to parse an existing operating program and to set a variety of blocks and arguments contained in the blocks from the existing operating program, wherein: - the blocks include a variety of position blocks (P1, P2, P3, P4) that teach which positions the
robot moves to, and a variety of logic blocks (L1, L2, L3, L4, L5, L6) that teach which types of operations are to be performed, - the multitude of blocks selected by the selection section includes at least one positional block and at least one logical block, - the operating program consists of a multitude of lines, with the set section set up to evaluate the attribute of each line as either a logic attribute, a
control signal attribute, or a position attribute, and - the set section is further set up to i) write a line of a position attribute and a line of a logic attribute as independent blocks and ii) assign lines of a
control signal attribute that follow a line of a logic attribute to the same block as the related line of the logic attribute, in order to set the logic blocks and the position blocks and to set the arguments contained in the blocks.