Denso RC5 Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Robotik Denso RC5 herunter. Denso RC5 Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
ROBOT
Vertical articulated
V*-D/-E SERIES
Horizontal articulated
H*-D/-E SERIES
Cartesian coordinate
XYC-4D SERIES
Vision device
µ
µµ
µVision-21 SERIES
PROGRAMMER’S MANUAL I
PROGRAM DESIGN AND COMMANDS
(Ver. 1.95)
Seitenansicht 0
1 2 3 4 5 6 ... 691 692

Inhaltsverzeichnis

Seite 1 - (Ver. 1.95)

ROBOTVertical articulatedV*-D/-E SERIESHorizontal articulatedH*-D/-E SERIESCartesian coordinateXYC-4D SERIESVision deviceµµµµVision-21 SERIESPROGRAMM

Seite 2

42.8 Setting-up the safetyfence or enclosureA safety fence or enclosure should be set up so that no one caneasily enter the robot's restricted sp

Seite 3 - Important

3-10Therefore, when X>S2, the pass motion never changes even if you change X.And when X>S2, the “Set path start displacement distance again” war

Seite 4

Chapter 3 Robot Motion3-113.2.10 Arch Motion Control [Version 1.9 or later, only for 4-Axis Robot]The arch motion control facilitates an effective

Seite 5 - How this book is organized

3-123.3 Interpolation ControlWhen the robot arm moves, there is not just one path. You can create variouspaths together with the operation of each a

Seite 6 - PART 2 COMMAND REFERENCE

Chapter 3 Robot Motion3-133.3.2 CP ControlCP control manages interpolation so that the path to reach the motiondestination position will be a straig

Seite 7

3-143.4 If Output Command Is Present afterMotion InstructionThe current position of the robot normally experiences delay in moving to theposition com

Seite 8 - 2. Installation Precautions

Chapter 3 Robot Motion3-153.5 Compliance Control Function3.5.1 OverviewThe compliance control function provides compliance for a robot by software.

Seite 9

3-16Though you can also use SetGravity and ResetGravity to enable/disablethe gravity offset, your robot may present a slight movement whileswitching b

Seite 10 - 2.9 Positioning of rope or

Chapter 3 Robot Motion3-173.5.3 Tip Compliance Control Function [V1.4 or later]This function sets compliance for the individual elements of the coor

Seite 11 - SAFETY PRECAUTIONS

3-183.5.3.2 How to Use Tip Compliance Control FunctionYou can use the library function and execute the compliance control libraries(SetCompControl, R

Seite 12 - 3. Precautions

Chapter 3 Robot Motion3-19(SetCompControl = SerGrvOffset + SetCompFControl)While your robot is stationary without contacts (interference) with extern

Seite 13

SAFETY PRECAUTIONS52.10 Setting the robot'smotion spaceThe area required for the robot to work is called the robot'soperating space.If the r

Seite 14

3-20(2) Current Limiting Setting under Compliance ControlUnder the compliance control condition, providing motors with torqueaccording to the positio

Seite 15 - 5. Management of

Chapter 3 Robot Motion3-213) Exceeded speed limiting reference under the compliance control (60FC)A high speed motion is not available under the comp

Seite 16

3-221) Decide an I type variable for teaching number. We assume I10 here.2) Prepare the following program.When you use P type variable for teaching:P

Seite 17 - CONTENTS

Chapter 4Speed, Accelerationand DecelerationDesignationThe maximum rates of speed, acceleration anddeceleration must be set.This chapter provides expl

Seite 19

Chapter 4 Speed, Acceleration and Deceleration Designation4-14.1 External Speed and Internal SpeedThere are external speed and internal speed for VS

Seite 20

4-24.4 Setting Acceleration and DecelerationThe product of external acceleration and internal acceleration determinesactual acceleration and decelera

Seite 21

Chapter 4 Speed, Acceleration and Deceleration Designation4-3The internal speed is set in the program in Fig. 4-2.If you execute a similar program at

Seite 22

4-4The program shown in Fig. 4-3 sets internal acceleration and deceleration.If you execute this program at 80% external speed, the following results

Seite 23

Chapter 4 Speed, Acceleration and Deceleration Designation4-54.6 Control Sets of Motion OptimizationThis function is to set proper speed and acceler

Seite 24

63. Precautionswhile robot isrunningWarningTouching the robot while it isin operation can lead toserious injury. Please ensurethe following conditions

Seite 25

4-6Fig. 4-5 1st- and 2nd-Axis Positioning Time in PTP Motion (VS-D)Fig. 4-6 3rd, 4th, and 5th-Axis Positioning Time in PTP Motion (VS-D)Positioning

Seite 26

Chapter 4 Speed, Acceleration and Deceleration Designation4-7Fig. 4-7 6th-Axis Positioning Time in PTP Motion (VS-D)Positioning time5 kg4 kgMotion r

Seite 27

4-84.6.2 Control Set 1Set the maximum speed and acceleration for the 1st, 2nd and 3rd axes in PTPmotion according to the load condition value of the

Seite 28

Chapter 4 Speed, Acceleration and Deceleration Designation4-94.6.3 Control Set 2Set the maximum speed and acceleration in CP motion according to the

Seite 29

4-104.6.3.2 Precautions for Using Control Set 2• In this control set, an overload error may occur during the robot motion.When you adjust the speed,

Seite 30

Chapter 4 Speed, Acceleration and Deceleration Designation4-114.6.6 Notes for SettingThere are external load condition values (mass of payload, cent

Seite 31

4-124.7 Setting the Master Control Parameters inUser Preferences4.7.1 Setting Master Control Parameters of the Mass of Payload,Center of Gravity, an

Seite 32

Chapter 4 Speed, Acceleration and Deceleration Designation4-13The entry range of "Control set of motion optimization" is from 0 to 3. If y

Seite 33

4-14nnnn Setting with WINCAPSIIThis section explains the methods used to set the external load conditionvalues (Mass of payload and center of gravity

Seite 34

Chapter 4 Speed, Acceleration and Deceleration Designation4-15After each parameter value is set, transmit the data to the robot controller.First, tur

Seite 35

SAFETY PRECAUTIONS74) Implementation of measures for noise prevention5) Signaling methods for workers of related equipment6) Types of malfunctions and

Seite 36

4-16Fig. 4-9 Payload Center of GravityFig. 4-10 Right-Hand Coordinate System4.7.2 Setting Internal Load Condition Values (Mass of Payloadand Center

Seite 37

Chapter 4 Speed, Acceleration and Deceleration Designation4-174.7.2.2 Setting Internal ModeSet this mode by executing the conventional language libr

Seite 38

4-18Note: Transmit the installation condition set using the teach pendant toWINCAPSII.For information on the transmission procedure, refer to Note (1)

Seite 39 - Disables the gravity offset

Chapter 4 Speed, Acceleration and Deceleration Designation4-19If the Set value box of [floor or gantry] on the [Using condition (parameternumber:) ]

Seite 40 - ST_ResetCompVMode

4-204.7.4 How to Set Optimal Load Capacity Initializing [V1.4 orlater]This section describes how to set the optimal load capacity initializing mode t

Seite 41

Chapter 4 Speed, Acceleration and Deceleration Designation4-21You can provide only 0 or 1 to set the optimal load capacity initializing,otherwise you

Seite 42

4-22nnnn Setting with WINCAPS IIThis section describes how to use the WINCAPS II, a PC-based teachingsystem, to set the optimal load capacity initiali

Seite 43

Chapter 4 Speed, Acceleration and Deceleration Designation4-234.8 Safety Features4.8.1 ndTc (Statement) [V1.2 or later]Function Sets the TC time le

Seite 45

Chapter 5Vision ControlThis chapter provides an explanation of visionrelated terms required for creating programs.

Seite 46

83.4 Inspections beforecommencing worksuch as teachingBefore starting work such as teaching, inspect the followingitems, carry out any repairs immedia

Seite 48 - VISREFCAL

Chapter 5 Vision Control5-15.1 Vision ControlThis section explains commands to use the µVision board, which is optionallybuilt in the robot controll

Seite 49 - PROGRAM DESIGN

5-25.1.1.4 Area, Center of Gravity and Major Axis Angle[ 1 ] AreaThe board binarizes image data taken from the camera and counts each pixelof white

Seite 50

Chapter 5 Vision Control5-3[ 3 ] Major Axis AngleImage data taken from the camera displays the object as a plane. When theobject on this plane is r

Seite 51 - Sample Program

5-45.1.1.5 Binarization[ 1 ] BinarizationImage data taken in the µVision board from the camera has 256 levels ofbrightness for each pixel. Binariza

Seite 52

Chapter 5 Vision Control5-5[ 3 ] Binarization Level Detection Mode MethodIf the histogram of an image forms a double-humped distri

Seite 53 - 1.1 Model Case Application

5-6 P Tile MethodThis method detects the binarization level where the object area coincides withSx, by the use of a histogram when t

Seite 54 - 1.2 Program Flow

Chapter 5 Vision Control5-75.1.1.6 Brightness Integral ValueThe total of all pixel brightness values in the range designated with the windowfor the

Seite 55 - 1.3 Program List

5-85.1.1.8 LabelingLabeling is a process to binarize the obtained image data from the camera andattach a sequence number to the link areas of white (

Seite 56

Chapter 5 Vision Control5-95.1.1.9 SearchSearch moves the standard image data (search model) previously stored in thesearching range (within the win

Seite 57 - Chapter 1 Sample Program

SAFETY PRECAUTIONS93.8 Precautions in repairs(1) Do not perform repairs outside of the designated range.(2) Under no circumstances should the interloc

Seite 59

PART 2COMMAND REFERENCE

Seite 61 - Program Flow

Chapter 6Guide to CommandReferenceThis chapter provides command descriptions anda command list for the PAC robot.Use the command list to quickly searc

Seite 63 - Chapter 2 Program Flow

Chapter 6 Guide to Command Reference6-16.1 Description Format of CommandExplanationsChapter 9 and the following chapters provide descriptions of eac

Seite 64 - 2.1.1 Calling a Subroutine

6-26.2 Command List6.2.1 Commands Listed in Alphabetical OrderRefer to Commands Listed in Alphabetical Order that follows the Contents.6.2.2 Comman

Seite 65 - 2.1.2 Calling a Program

Chapter 7PAC LanguageConfigurationElementsThis chapter provides an explanation of theelements that configure the PAC language.

Seite 67 - 2.2 Running a Program

Chapter 7 PAC Language Configuration Elements7-17.1 New Robot Language PACA programming language used to describe robot motion and work is called ar

Seite 69 - 2.3.2.2 I/O

7-27.2 Relation between PAC Robot Languageand Conventional LanguagesConventionally there are many problems with robot languages such asincompatibilit

Seite 70 - 2.4 Serial Communication

Chapter 7 PAC Language Configuration Elements7-37.3 Language ElementThe following elements are used to construct the PAC language.• Identifier ...

Seite 71 - 2.4.4 Sample Application

7-47.5 Identifier7.5.1 VariableA variable is used to temporarily store data used in a program. There areglobal variables, local variables and syste

Seite 72

Chapter 7 PAC Language Configuration Elements7-5[ 1 ] Global VariableA global variable name is expressed with an alphabet letter (I, F, D, S, V, P,

Seite 73

7-6 Global Variable Indirect ReferenceWhen a global variable is designated, the variable number is designated usingan expre

Seite 74

Chapter 7 PAC Language Configuration Elements7-7[ 2 ] Local VariableThe following variable types can be used for local variables in the samemanner a

Seite 75

7-8[ 3 ] System VariableA system variable is used to check the system status. Since the variable nameuses words reserved by the system, the variable

Seite 76 - 2.5 Library

Chapter 7 PAC Language Configuration Elements7-97.5.4 ProgramA program can be designated using the program name and calling otherprograms from the p

Seite 77 - 2.5.2 Palletizing Library

7-107.6 Data TypeThe following data types are handled in the PAC language; character string,numeric value, position, vector and I/O. These data type

Seite 78 - [ 1 ] Palletizing Parameter

Chapter 7 PAC Language Configuration Elements7-117.7 Data Type ConversionChanging the data type among different data types is also possible.7.7.1 N

Seite 79

CONTENTSPreface...

Seite 80

7-127.8 ConstantA constant is an expression with a fixed value.Constants in the PAC language are classified into the following.1 Numeric value data T

Seite 81

Chapter 7 PAC Language Configuration Elements7-13 Hexadecimal FormatThis is an integer type constant expressed using hexadecimal n

Seite 82 - Count Rule

7-147.8.2 Character String ConstantThe character string type constant is a constant used to express a charactersting.Express a character string by pu

Seite 83

Chapter 7 PAC Language Configuration Elements7-15[ 2 ] Joint Type ConstantA joint type constant is constructed of each axis value from the 1st to 6t

Seite 84 - 2.5.2.2 Palletizing Program

7-167.9 Expression and OperatorAn expression is used to return a value. There are expressions that have anindependent value and expressions that are

Seite 85

Chapter 7 PAC Language Configuration Elements7-17Note (3): An error occurs if a digit overflow occurs in addition ormultiplication of real or if an a

Seite 86

7-187.9.4 Logical OperatorThe logical operator executes bit operations.An operation is executed after values other than integer type are converted to

Seite 87

Chapter 7 PAC Language Configuration Elements7-197.9.6 Vector OperationIn a vector operation, use the operators shown in below Table .An operation i

Seite 88

7-207.9.8 Joint OperationThis is the operation executed for joint type data.Only “+” can be used for operations of parallel deviation.Example: Calcul

Seite 89 - Robot Motion

Chapter 7 PAC Language Configuration Elements7-21Example of operator precedence1. if IO128 = ON and IO129 = OFF then(1)(2)(3)2. if (IO128 = ON) and (

Seite 90

3.2 Confirming Reach Position ...

Seite 91 - 3.1.2 Relative Motion

7-227.10 Units for the PAC LanguageBelow Table shows the units of expression for each physical value in the PAClanguage. Units of Expression for Eac

Seite 92 - MOVEMENT2 motion

Chapter 8PAC LanguageSyntaxThis chapter provides an explanation of theregulations for writing a program using the PAClanguage.

Seite 94 - Servo deviation

Chapter 8 PAC Language Syntax8-18.1 Statement and LineA PAC language program is configured with multiple lines.One statement can be described on an

Seite 95

8-28.2 Program Name and DeclarationDeclare the items required for program execution such as the program nameand variables prior to execution.Especial

Seite 96

Chapter 8 PAC Language Syntax8-38.3 LabelA label can be used to indicate a branch destination and the position of astatement in a program.The follow

Seite 97

8-48.4 Character SetThe characters which can be used in the PAC language include alphabetletters, numerals, and symbols. For the alphabet letters, n

Seite 98 - Same pass motion path unde

Chapter 8 PAC Language Syntax8-58.5 Reserved WordA word which has fixed usage for PAC language processing such as commandnames or operators are call

Seite 99

8-68.6 Declaration StatementDeclare definitions in a declaration statement before using variables,constants, functions and so on that are required to

Seite 100

Chapter 8 PAC Language Syntax8-7[ 2 ] Type Declaration InstructionThe following type declaration commands can be used to declare the variabletype.

Seite 101 - Chapter 3 Robot Motion

Chapter 7 PAC Language Configuration Elements7.1 New Robot Language PAC...

Seite 102 - 3.3 Interpolation Control

8-8[ 3 ] Array DeclarationThis is a declaration statement for an array. An array can be created for alltypes except for an I/O variable by adding a

Seite 103 - 3.3.2 CP Control

Chapter 8 PAC Language Syntax8-98.6.2 Function/program DeclarationCommands used to declare a function or a program name are as follows. Function/Pr

Seite 104 - Motion Instruction

8-108.7 Assignment StatementAn assignment statement sets a value for a variable of each type.There are 4 assignment statements for numeric values; as

Seite 105

Chapter 8 PAC Language Syntax8-118.7.4 Pose Assignment StatementThere are 4 types of pose assignment statements: position assignmentstatement, join

Seite 106

8-12[ 3 ] Homogeneous Transformation Assignment StatementA homogeneous transformation assignment statement assigns a value to ahomogeneous transforma

Seite 107

Chapter 8 PAC Language Syntax8-138.8 Flow Control StatementUse a flow control statement to control the execution sequence of eachstatement in a prog

Seite 108

8-148.8.4 RepeatThis controls repetition according to a designated condition. There are 4commands for this.In FOR ~ NEXT statements, place a repetit

Seite 109

Chapter 8 PAC Language Syntax8-158.8.5 Calling Defined ProcessIf a part of a program that repeats a particular motion is separated, the part canbe c

Seite 110

8-16[ 2 ] ProgramIf a program is called, designate the program name in a CALL statement andexecute it. A recursive call can also be executed.For det

Seite 111

Chapter 8 PAC Language Syntax8-178.9 Robot Control StatementRobot control statements can be roughly classified into a motion controlstatement, a fig

Seite 112

Copyright © DENSO WAVE INCORPORATED, 2002All rights reserved. No part of this publication may be reproduced in any form or by any means withoutpermiss

Seite 113 - Designation

8.8 Flow Control Statement...

Seite 114

8-188.9.3 Speed Control StatementA speed control statement can be used to set the movement speed, as well asthe acceleration and deceleration of the

Seite 115 - Internal Deceleration

Chapter 8 PAC Language Syntax8-198.10 Input/output Control StatementThere are 3 types of input/output control statements; DI/DO statement,RS232C cont

Seite 116 - Acceleration

8-208.11 Multitasking Control StatementMultitasking control statements include a task control statement and asemaphore control statement.8.11.1 Task

Seite 117

Chapter 8 PAC Language Syntax8-218.12 Time and Date ControlTime and data control statements obtain the current time and date, the elapsedtime, and th

Seite 118

8-228.13 Error ControlAn error control statement controls interruption due to an error. Error Control CommandsType of motion CommandError interruptio

Seite 119 - 4.6.1 Control Set 0

Chapter 8 PAC Language Syntax8-238.14 System InformationSystem information can be obtained using the following commands. System Information Commands

Seite 120

8-248.15 PreprocessorA preprocessor statement controls character string replacement or file fetchwhen a program is converted (compiled) into execution

Seite 121 - Motion range (deg.)

Chapter 8 PAC Language Syntax8-258.16 Calling with a Value and with ReferenceIt may be desired to pass data to a program when another program is call

Seite 122 - 4.6.2 Control Set 1

8-268.16.2 Calling with ReferenceA local variable can be passed as an argument.To designate an entire array as an argument, put the array name inpare

Seite 123 - 4.6.3 Control Set 2

Chapter 8 PAC Language Syntax8-278.17 Vision Control8.17.1 Image Input/outputThe commands below control camera images and image data in memory. Ima

Seite 124 - 4.6.4 Control Set 3

Chapter 11 Flow Control Statements11.1 Program Stop...

Seite 125 - 4.6.6 Notes for Setting

8-288.17.3 DrawThe commands below are used to control the draw motion in storage memory(processing screen) and overlay memory (draw only screen) .

Seite 126 - User Preferences

Chapter 8 PAC Language Syntax8-298.17.5 Code RecognitionThe command below executes QR code reading. Code Recognition CommandType of motion CommandQ

Seite 127

8-308.17.8 Result ObtainingThe commands below are used to obtain information related to the contents ofresults after image processing. Result Obtain

Seite 128

Chapter 9DeclarationStatementsWhen variables or functions are used in aprogram they must be defined with a declarationstatement. The declaration state

Seite 130

Chapter 9 Declaration Statements9-19.1 Program NamePROGRAM (Statement)FunctionDeclares a program name.FormatPROGRAM <Program name> [(<Argum

Seite 131 - [F7 Config.]

9-29.2 Interference Area CoordinatesAREA (Statement )FunctionDeclares the area where an interference check is performed.FormatAREA <Area number>

Seite 132

Chapter 9 Declaration Statements9-3NotesThe center position of an area is always based on WORK0.Even if the user coordinate system is changed, the po

Seite 133

9-49.3 User FunctionDEF FN (Statement) [Conforms to SLIM]FunctionDeclares a user-defined function.FormatDEF FN <Function name>[<Postposition

Seite 134

Chapter 9 Declaration Statements9-59.4 Home CoordinatesHOME (Statement)[Conforms to SLIM]FunctionDeclares arbitrary coordinates as a home position.F

Seite 135

Chapter 17 Time/Date Control17.1 Time/Date ...

Seite 136

9-69.5 Tool CoordinatesTOOL (Statement)FunctionDeclares a tool coordinate system.FormatTOOL <Tool coordinate system number>, <Position type&

Seite 137 - 4.8 Safety Features

Chapter 9 Declaration Statements9-79.6 Work CoordinatesWORK (Statement)FunctionDeclares a user coordinate system.FormatWORK <User coordinate syst

Seite 138

9-89.7 Local VariableDEFINT (Statement)FunctionDeclares an integer type variable. The range of the integer is from−2147483648 to 2147483647.FormatDE

Seite 139 - Vision Control

Chapter 9 Declaration Statements9-9DEFSNG (Statement)FunctionDeclares a single precision real type variable. The range of single precisionreal varia

Seite 140

9-10DEFDBL (Statement)FunctionDeclares a double precision real type variable. The range of double precisionreal type variables is from -1.797693134862

Seite 141 - 5.1 Vision Control

Chapter 9 Declaration Statements9-11DEFSTR (Statement)FunctionDeclares a character string type variable. You can enter 247 characters or lessas a cha

Seite 142 - [ 2 ] Center of Gravity

9-12DEFVEC (Statement)FunctionDeclares a vector type variable.FormatDEFVEC <Variable name>[=<Vector type constant>][,<Variable name>

Seite 143 - Minor axis

Chapter 9 Declaration Statements9-13DEFPOS (Statement)FunctionDeclares a position type variable.FormatDEFPOS <Variable name>[=<Position type

Seite 144 - 5.1.1.5 Binarization

9-14DEFJNT (Statement)FunctionDeclares a joint type variable.FormatDEFJNT <Variable name>[=<Joint type constant>][,<Variable name>[=

Seite 145 - Number of pixels

Chapter 9 Declaration Statements9-15DEFTRN (Statement)FunctionDeclares a homogeneous transformation type variable.FormatDEFTRN <Variable name>[

Seite 146

Commands Listed in Alphabetical Order4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of

Seite 147 - 5.1.1.7 Edge

9-16DEFIO (Statement) [Conforms to SLIM]FunctionDeclares an I/O variable corresponding to the input/output port.FormatDEFIO <Variable name> = &l

Seite 148 - 5.1.1.8 Labeling

Chapter 9 Declaration Statements9-179.8 ArrayDIM (Statement) [Conforms to SLIM]FunctionDeclares an array.FormatDIM <Variable name>[<Postpos

Seite 149 - Image data

9-18ExampleDIM samp1(5) 'Declares samp1 as an array variable of a single precision'real type with size (5).DIM samp2(10, 10) 'Declares

Seite 150

Chapter 10AssignmentStatementsUse an assignment statement command whenassigning a value to variables. Use commandsproperly according to the type or c

Seite 152

Chapter 10 Assignment Statements10-110.1 VariablesLET (Statement) [Conforms to SLIM]FunctionAssigns a value to a variable.Format[LET] <Variable na

Seite 153 - Reference

10-210.2 VectorLETA (Statement)FunctionAssigns a value to an approach vector of the homogeneous transformationtype.FormatLETA <Homogeneous transfor

Seite 154

Chapter 10 Assignment Statements10-3LETO (Statement)FunctionAssigns a value to an orientation vector of the homogeneous transformationtype.FormatLETO

Seite 155 - Explanations

10-4LETP (Statement)FunctionAssigns a value to a position vector of the position type or homogenoustransformation type.FormatLETP {<Position type v

Seite 156 - 6.2 Command List

Chapter 10 Assignment Statements10-510.3 FigureLETF (Statement)FunctionAssigns a value to a figure component of the position type or homogenoustransf

Seite 157 - Elements

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 158

10-610.4 Link AngleLETJ (Statement)FunctionAssigns a value to a designated link angle of the joint type.FormatLETJ <Axis number>, <Joint type

Seite 159 - 7.1 New Robot Language PAC

Chapter 10 Assignment Statements10-710.5 PostureLETR (Statement)FunctionAssigns a value to three rotation components of the position type.FormatLETR

Seite 160

10-810.6 Rotation ComponentLETRX (Statement)FunctionAssigns a value to the X axis rotation component of the position type.FormatLETRX <Position typ

Seite 161 - 7.4 Name

Chapter 10 Assignment Statements10-9LETRY (Statement)FunctionAssigns a value to the Y axis rotation component of the position type.FormatLETRY <Po

Seite 162 - 7.5 Identifier

10-10LETRZ (Statement)FunctionAssigns a value to the Z axis rotation component of the position type.FormatLETRZ <Position type variable> = <Z

Seite 163 - [ 1 ] Global Variable

Chapter 10 Assignment Statements10-11LETT (Statement)FunctionAssigns a value to the T axis component of the position type.FormatLETT <Position typ

Seite 164

10-1210.7 Axis ComponentLETX (Statement) [Conforms to SLIM]FunctionAssigns a value to the X axis component of the Vector type/ Position type/Homogenou

Seite 165 - [ 2 ] Local Variable

Chapter 10 Assignment Statements10-13LETY (Statement) [Conforms to SLIM]FunctionAssigns a value to the Y axis component of the Vector type/ Position

Seite 166 - 7.5.3 Label

10-14LETZ (Statement)[Conforms to SLIM]FunctionAssigns a value to the Z axis component of the vector type/ position type/homogeneous transformation ty

Seite 167 - 7.5.4 Program

Chapter 11Flow ControlStatementsA flow control statement is used to change theprogram flow depending on the situation. Thereare many ways to have the

Seite 168 - 7.6 Data Type

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 170 - 7.8 Constant

Chapter 11 Flow Control Statements11-111.1 Program StopEND (Statement) [Conforms to SLIM]FunctionDeclares the motion end by a program.FormatENDExplan

Seite 171

11-2STOP (Statement) [Conforms to SLIM]FunctionEnds program execution.FormatSTOPExplanationDuring program execution, if the system executes a STOP sta

Seite 172 - 7.8.4 Pose Constant

Chapter 11 Flow Control Statements11-3STOPEND (Statement)FunctionThis statement stops a continuously executed program or stops a program witha cycle

Seite 173 - [ 2 ] Joint Type Constant

11-411.2 CallCALL (Statement)FunctionCalls a program and executes it.FormatCALL <Program name> [(<Argument>[,<Argument>…])]Explanati

Seite 174 - 7.9 Expression and Operator

Chapter 11 Flow Control Statements11-52. Calling with referenceIn calling with reference, a variable can be sent as an argument.When you wish to desi

Seite 175 - 7.9.3 Relational Operator

11-6GOSUB (Statement) [Conforms to SLIM]FunctionCalls a subroutine.FormatGOSUB <Label name>ExplanationCalls a subroutine specified by the design

Seite 176 - 7.9.4 Logical Operator

Chapter 11 Flow Control Statements11-7ON-GOSUB (Statement) [Conforms to SLIM]FunctionCalls a corresponding subroutine to the value of an expression.F

Seite 177 - 7.9.7 Position Operation

11-8RETURN (Statement) [Conforms to SLIM]FunctionReturns from a subroutine.FormatRETURNExplanationThis statement ends the execution of a subroutine to

Seite 178 - 7.9.8 Joint Operation

Chapter 11 Flow Control Statements11-911.3 RepeatDO-LOOP (Statement)FunctionExecutes a decision iteration (repetition).FormatDO [{WHILE|UNTIL}[<Co

Seite 179

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 180

11-10ExampleDEFINT li1, li2, li3, li4, li5, li6, li7, li8, li9DO WHILE li1 > li2 'Executes a head decision iteration.IF li1 = 4 THEN EXIT DO &

Seite 181 - Chapter 8

Chapter 11 Flow Control Statements11-11EXIT DO (Statement)FunctionForcibly exits from DO-LOOP.FormatEXIT DOExplanationThis statement forcibly exits f

Seite 182

11-12FOR-NEXT (Statement) [Conforms to SLIM]FunctionRepeatedly executes a series of instructions between FOR-NEXT sections.FormatFOR <Variable name

Seite 183 - 8.1 Statement and Line

Chapter 11 Flow Control Statements11-13ExampleDEFINT li1, li2, li3, li4, li5, li6, li7, li8, li9DO WHILE li1 > li2 'Executes a head decision

Seite 184

11-14EXIT FOR (Statement)FunctionForcibly exits from FOR-NEXT.FormatEXIT FORExplanationThis statement forcibly exits from FOR-NEXT and proceeds to the

Seite 185 - 8.3 Label

Chapter 11 Flow Control Statements11-15REPEAT-UNTIL (Statement)FunctionExecutes a tail decision iteration.FormatREPEAT :UNTIL [<Conditional expr

Seite 186 - 8.4 Character Set

11-16WHILE-WEND (Statement)FunctionExecutes a head decision iteration.FormatWHILE [<Conditional expression>] :WENDExplanationThis statement rep

Seite 187 - 8.5 Reserved Word

Chapter 11 Flow Control Statements11-1711.4 Conditional BranchIF-END IF (Statement)FunctionConditionally decides a conditional expression between IF-

Seite 188 - 8.6 Declaration Statement

11-18IF-THEN-ELSE (Statement)[Conforms to SLIM]FunctionExecutes a conditional decision of a logical expression.FormatIF <Conditional expression>

Seite 189 - 'postposition is used

Chapter 11 Flow Control Statements11-19SELECT CASE (Statement)FunctionExecutes a plural condition decision.FormatSELECT CASE <Expression> CAS

Seite 190 - [ 3 ] Array Declaration

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 191

11-20ExampleREM Executes a plural condition decision.SELECT CASE Index'The command is executed if the index value matches the CASE'statement

Seite 192 - 8.7 Assignment Statement

Chapter 11 Flow Control Statements11-2111.5 Unconditional BranchGOTO (Statement) [Conforms to SLIM]FunctionUnconditionally branches a program.Format{

Seite 193

11-22ON-GOTO (Statement) [Conforms to SLIM]FunctionExecutes an unconditional branch due to the value of an expression.FormatON <Expression> GOTO

Seite 194 - Command Example

Chapter 11 Flow Control Statements11-2311.6 CommentREM (Statement)[Conforms to SLIM]FunctionDescribes a comment.Format{REM|'}[<Comment>]Ex

Seite 196 - 8.8.4 Repeat

Chapter 12Robot ControlStatementsThis chapter provides an explanation of thecommands and robot control statements used forrobot motion control.

Seite 198 - [ 2 ] Program

Chapter 12 Robot Control Statements12-112.1 Motion ControlAPPROACH (Statement)FunctionExecutes the absolute movement designated in the tool coordinat

Seite 199 - 8.9 Robot Control Statement

12-2If <NEXT option> is added, the robot proceeds to the next no-movementinstruction without waiting for movement to finish. However, the follo

Seite 200 - 8.9.4 Time Control Statement

Chapter 12 Robot Control Statements12-34-axis APPROACH P, (100, 200, 300, 45, 1), 70'Moves to a position 70mm far form a point (100,200,'30

Seite 201

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 202

12-4DEPART (Statement)FunctionExecutes the relative motion in the tool coordinate system.FormatDEPART <Interpolation method>,[<Pass start dis

Seite 203 - 8.12 Time and Date Control

Chapter 12 Robot Control Statements12-5If <NEXT option> is added, the robot proceeds to the next no-movementinstruction without waiting for mov

Seite 204 - 8.13 Error Control

12-6Related TermsAPPROACH, SPEEDExampleDEFSNG lf1, lf26-axis DEPART P, 70 'The robot moves (PTP control) to a position 70 mm'away from the c

Seite 205 - 8.14 System Information

Chapter 12 Robot Control Statements12-7DRAW (Statement)FunctionExecutes the relative movement designated in the work coordinate system.FormatDRAW <

Seite 206 - 8.15 Preprocessor

12-8If <NEXT option> is added, the robot proceeds to the next no-movementinstruction without waiting for movement to finish. However, the follo

Seite 207 - 8.16.1 Calling with a Value

Chapter 12 Robot Control Statements12-9DRIVE (Statement) [Conforms to SLIM]FunctionExecutes the relative motion of each axis.FormatDRIVE[<Pass st

Seite 208

12-10If <NEXT option> is added, the robot proceeds to the next no-movementinstruction without waiting for movement to finish. However, the foll

Seite 209 - 8.17 Vision Control

Chapter 12 Robot Control Statements12-11DRIVEA (Statement)FunctionExecutes the absolute motion of each axis.FormatDRIVEA[<Pass start displacement&

Seite 210 - 8.17.4 Image Processing

12-12If <NEXT option> is added, the robot proceeds to the next no-movementinstruction without waiting for movement to finish. However, the foll

Seite 211 - 8.17.7 Search Function

Chapter 12 Robot Control Statements12-13GOHOME (Statement) [Conforms to SLIM]FunctionMoves to the position (home position) defined by the HOME statem

Seite 212 - 8.17.9 Vision Calibration

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 213 - Statements

12-14MOVE (Statement) [Conforms to SLIM]FunctionMoves the robot flange to the specified coordinates.If specified with an EX option (relative motion of

Seite 214

Chapter 12 Robot Control Statements12-15The value of <Path start displacement> is expressed using the radius of theglobe with the designated co

Seite 215 - 9.1 Program Name

12-16(The left expressions have higher priority in processing.)Therefore,(1) If these expressions are present between IOBLOCK ON and OFF, the nextnon-

Seite 216 - AREA (Statement )

Chapter 12 Robot Control Statements12-17Ex2PROGRAM PRO1TAKEARM 2 'Get Arm Group 2 involving both robot'joints and extended-joints.MOVE P, P

Seite 217 - Related Terms

12-18Notes(1) If a pose is designated in the position type and the homogeneoustransformation type, the designated pose goes beyond the robot motionspa

Seite 218 - 9.3 User Function

Chapter 12 Robot Control Statements12-19ROTATE (Statement) [Conforms to SLIM]FunctionExecutes a rotation movement around the designated axis.FormatRO

Seite 219 - 9.4 Home Coordinates

12-206-axis For <Rotation center point>, designate a work coordinate point if the rotationplane is of {XY|YZ|ZX} and(Vector type, Vector type, V

Seite 220 - 9.5 Tool Coordinates

Chapter 12 Robot Control Statements12-21Related TermsROTATEHExampleROTATE XY,45,V1 'The robot rotates by 45 degrees at a constantposture'ar

Seite 221 - 9.6 Work Coordinates

12-22ROTATEH (Statement)FunctionExecutes rotary motion by taking an approach vector as an axis.FormatROTATEH [@<Pass start displacement> ]<Re

Seite 222 - 9.7 Local Variable

Chapter 12 Robot Control Statements12-23For <Motion option> there are SPEED, ACCEL, and DECEL options.Motion option MeaningSPEED (or S) Designa

Seite 223 - DEFSNG (Statement)

iPrefaceThank you for purchasing this high-speed, high-accuracy assembly robot.Before operating your robot, read this manual carefully to safely get t

Seite 224 - DEFDBL (Statement)

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 225 - DEFSTR (Statement)

12-24CURJNT (System Variable)FunctionObtains the current angle of the robot using type J.Format{CURJNT | *}ExplanationThe Joint angles detected by eac

Seite 226 - DEFVEC (Statement)

Chapter 12 Robot Control Statements12-25CURPOS (System Variable)[Conforms to SLIM]FunctionObtains the current position in the tool coordinate system

Seite 227 - DEFPOS (Statement)

12-26CURTRN (System Variable) [Conforms to SLIM]FunctionObtains the current position in the tool coordinate system using type T.Format{CURTRN | *}Expl

Seite 228 - DEFJNT (Statement)

Chapter 12 Robot Control Statements12-27CUREXJ (Statement)FunctionGets the current angle of an extended-joint into a floating-point variable.FormatCU

Seite 229 - DEFTRN (Statement)

12-28DESTJNT (System Variable)FunctionObtains the current movement instruction destination position using type J.The current position (instruction val

Seite 230

Chapter 12 Robot Control Statements12-29DESTPOS (System Variable)FunctionObtains the current movement instruction destination position with type P.Wh

Seite 231 - 9.8 Array

12-30DESTTRN (System Variable)FunctionObtains the current movement instruction destination position with type T.When the robot stops, the current posi

Seite 232

Chapter 12 Robot Control Statements12-31DESTEXJ (Statement)FunctionGets the target position of an extended-joint invoked by the current motioncommand

Seite 233 - Assignment

12-32ARRIVE (Statement) [Ver.1.2 or later]FunctionDefines the motion ratio relative to the programmed full travel distance to thetarget point in order

Seite 234

Chapter 12 Robot Control Statements12-33NotesAn ARRIVE command defines the motion ratio for the immediately precedingmotion command in a TAKEARMed ta

Seite 235 - 10.1 Variables

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 236 - 10.2 Vector

12-34POSCLR (Statement)FunctionForcibly restores the current position of a joint to 0 mm or 0 degree.FormatPOSCLR<JntNumber>ExplanationPOSCLR fo

Seite 237 - LETO (Statement)

Chapter 12 Robot Control Statements12-3512.2 Figure ControlCURFIG (System variable)FunctionObtains the current value of the robot figure.FormatCURFIG

Seite 238 - LETP (Statement)

12-3622DOUBLE4SINGLE6NONFLIPBELOWRIGHTY23DOUBLE4SINGLE6NONFLIPBELOWLEFTY24DOUBLE4DOUBLE6FLIPABOVERIGHTY25DOUBLE4DOUBLE6FLIPABOVELEFTY2

Seite 239 - 10.3 Figure

Chapter 12 Robot Control Statements12-37FIGAPRL (Function)FunctionCalculates figures at an approach position and a standard position available tomove

Seite 240 - 10.4 Link Angle

12-38Related TermsFIGAPRP, APPROACHExample6-/4-axis I1=FIGAPRL(P1, 100.0)LETF P1, I1APPROACH P, P1, 100.0MOVE L, P16-axis I1=FIGAPRL(P1 + (100.200, 0,

Seite 241 - 10.5 Posture

Chapter 12 Robot Control Statements12-39FIGAPRP (Function)FunctionCalculates an approach position where the PTP motion is available, and areference p

Seite 242 - 10.6 Rotation Component

12-4012.3 Stop ControlHOLD (Statement) [Conforms to SLIM]FunctionHolds program processing for a time.FormatHOLD <Message>ExplanationThis stateme

Seite 243 - LETRY (Statement)

Chapter 12 Robot Control Statements12-41HALT (Statement) [Conforms to SLIM]FunctionStops executing a program.FormatHALT <Message>ExplanationThi

Seite 244 - LETRZ (Statement)

12-42INTERRUPT ON/OFF (Statement)FunctionInterrupts a robot motion.FormatINTERRUPT {ON|OFF}ExplanationINTERRUPT ON and INTERRUPT OFF are used as a p

Seite 245 - LETT (Statement)

Chapter 12 Robot Control Statements12-43Notes(1) If the controller executes any relative motion command immediatelyfollowing an interrupt skip, then

Seite 246 - 10.7 Axis Component

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 247 - DEFVEC lv1, lv2

12-4412.4 Speed ControlSPEED (Statement) [Conforms to SLIM]FunctionSpecifies the internal composite speed of joints included in a currently held armgr

Seite 248 - Explanation

Chapter 12 Robot Control Statements12-45ExampleEx1 DIM li1 As IntegerSPEED 100 'Sets the movement speed of the hand to 100.SPEED li1/100 'S

Seite 249 - Flow Control

12-46JSPEED (Statement)FunctionSpecifies the internal speed of individual joints included in a currently held armgroup.FormatJSPEED <Movement speed

Seite 250

Chapter 12 Robot Control Statements12-47ACCEL (Statement) [Conforms to SLIM]FunctionDesignates internal acceleration and internal deceleration.Format

Seite 251 - 11.1 Program Stop

12-48JACCEL (Statement) [Conforms to SLIM]FunctionSpecifies the internal acceleration and deceleration of individual joints includedin a currently hel

Seite 252

Chapter 12 Robot Control Statements12-49DECEL (Statement) [Conforms to SLIM]FunctionSpecifies the internal composite deceleration of joints involved

Seite 253 - STOPEND (Statement)

12-50JDECEL (Statement) [Conforms to SLIM]FunctionSpecifies the internal deceleration ratio of individual joints included in acurrently held arm group

Seite 254 - 11.2 Call

Chapter 12 Robot Control Statements12-51CURACC (System Variable)FunctionGets the current internal composite acceleration of joints included in a curr

Seite 255

12-52CURJACC (System Variable)FunctionGets the current internal acceleration of individual joints included in a currentlyheld arm group.FormatCURJACCE

Seite 256

Chapter 12 Robot Control Statements12-53CURDEC (System Variable)FunctionGets the current internal composite deceleration of joints included in acurre

Seite 257

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 258

12-54CURJDEC (System Variable)FunctionGets the current internal deceleration of individual joints included in a currentlyheld arm group.FormatCURJDECE

Seite 259 - 11.3 Repeat

Chapter 12 Robot Control Statements12-55CURJSPD (System Variable)FunctionGets the current internal speed of individual joints included in a currently

Seite 260

12-56CURSPD (System Variable)FunctionGets the current internal composite speed of joints included in a currently heldarm group.FormatCURSPDExplanation

Seite 261 - EXIT DO (Statement)

Chapter 12 Robot Control Statements12-57CUREXTACC (System Variable) [Ver.1.4 or later]FunctionObtains the current value of the external accelerationF

Seite 262

12-58CUREXTDEC (System Variable) [Ver.1.4 or later]FunctionObtains the current value of the external decelerationFormatCUREXTDECExplanationStores the

Seite 263

Chapter 12 Robot Control Statements12-59CUREXTSPD (System Variable) [Ver.1.4 or later]FunctionObtains the current value of the external speedFormatCU

Seite 264 - EXIT FOR (Statement)

12-6012.5 Time ControlDELAY (Statement) [Conforms to SLIM]FunctionSuspends program processing for a designated period time.FormatDELAY <Delay time&

Seite 265 - REPEAT-UNTIL (Statement)

Chapter 12 Robot Control Statements12-61WAIT (Statement) [Conforms to SLIM]FunctionStops program processing based on a condition.FormatWAIT <Condi

Seite 266 - WHILE-WEND (Statement)

12-6212.6 Coordinate TransformationCHANGETOOL (Statement)FunctionChanges the tool coordinate system.FormatCHANGETOOL <Tool coordinate system number

Seite 267 - 11.4 Conditional Branch

Chapter 12 Robot Control Statements12-63CHANGEWORK (Statement)FunctionChanges the user coordinate system.FormatCHANGEWORK <User coordinate system

Seite 268

Commands Listed According to Functions4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series o

Seite 269 - SELECT CASE (Statement)

12-64CURTOOL (System Variable) [Ver.1.4 or later]FunctionObtains the TOOL number currently set.FormatCURTOOLExplanationStores the TOOL number currentl

Seite 270

Chapter 12 Robot Control Statements12-65CURWORK (System Variable) [Ver.1.4 or later]FunctionObtains the WORK number currently set.FormatCURWORKExplan

Seite 271 - 11.5 Unconditional Branch

12-6612.7 Interference CheckSETAREA (Statement)FunctionSelects the area where an interference check is performed.FormatSETAREA <Interference check

Seite 272

Chapter 12 Robot Control Statements12-67RESETAREA (Statement)FunctionInitializes an interference check.FormatRESETAREA <Initializing area number&g

Seite 273 - 11.6 Comment

12-6812.8 Supervisor TaskINIT [Ver.1.7 or later]FunctionTurns on motors, carrier out CAL, and sets the speed according to the presetsupervisor task pa

Seite 274

Chapter 12 Robot Control Statements12-6912.9 Internal Servo DataGetSrvData (System Variable) [Ver.1.5 or later]FunctionGets the internal servo data o

Seite 275 - Robot Control

12-70GetJntData (System Variable) [Ver.1.5 or later]FunctionGets the internal servo data of a specified joint.Format<JntInternalServoData> = Get

Seite 276

Chapter 12 Robot Control Statements12-7112.10 Particular ControlThis section describes newly added commands (statements) that have been used asserv

Seite 277 - 12.1 Motion Control

12-72Notes(1) For the mass of payload, designate it with a numerical value of the specifiedrange for each robot type. If you designate a value out of

Seite 278

Chapter 12 Robot Control Statements12-73ST_SetGravity (Statement) [Ver.1.9 or later]FunctionCompensates for the static load (gravity torque) applied

Seite 279

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 280 - DEPART (Statement)

12-74ST_ResetGravity (Statement) [Ver.1.9 or later]FunctionDisables the balance setting between the limited motor torque and gravity torque,which is

Seite 281

Chapter 12 Robot Control Statements12-75ST_SetGrvOffset (Statement) [Ver.1.9 or later]FunctionCompensates the torque of each joint programmed with S

Seite 282

12-76ST_ResetGrvOffset (Statement) [Ver.1.9 or later]FunctionDisables the gravity offset function.FormatST_ResetGrvOffsetExplanationDisables the grav

Seite 283 - DRAW (Statement)

Chapter 12 Robot Control Statements12-77ST_SetCurLmt (Statement) [Ver.1.9 or later]FunctionSets the limit of motor current to be applied to the spec

Seite 284

12-786-axis (7) Set the mass of payload and the payload center of gravity accurately.Otherwise, the robot may move down due to gravity if you set a lo

Seite 285

Chapter 12 Robot Control Statements12-79ST_ResetCurLmt (Statement) [Ver.1.9 or later]FunctionResets the motor current limit of the specified axis.Fo

Seite 286

12-80ST_SetEralw (Statement) [Ver.1.9 or later]FunctionModifies the allowable deviation of the specified axis.FormatST_SetEralw <AxisNumber>, &

Seite 287 - DRIVEA (Statement)

Chapter 12 Robot Control Statements12-81ST_ResetEralw (Statement) [Ver.1.9 or later]FunctionResets the allowable deviation value of the specified ax

Seite 288 - for the specified

12-82ST_OnSrvLock (Statement) [Ver.1.9 or later]FunctionServo-locks a specified axis (exclusively designed for four-axis robots).FormatST_OnSrvLock &

Seite 289

Chapter 12 Robot Control Statements12-83ST_OffSrvLock (Statement) [Ver.1.9 or later]FunctionReleases servo lock for the specified axis. (Exclusively

Seite 290

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 291

12-84ST_SetCompControl (Statement) [Ver.1.9 or later]FunctionEnables the compliance function (exclusively designed for 6-axis robots)FormatST_SetComp

Seite 292

Chapter 12 Robot Control Statements12-85ExampleST_SetFrcCoord 1 'Set the compliance control coordinate system.ST_SetFrcLimit 100, 0, 100, 100, 1

Seite 293

12-86ST_SetCompFControl (Statement) [Ver.1.9 or later]FunctionEnables the compliance control function (exclusively designed for 6-axis robots).Format

Seite 294

Chapter 12 Robot Control Statements12-87ST_ResetCompControl (Statement) [Ver.1.9 or later]FunctionDisables the compliance control function (exclusiv

Seite 295

12-88ST_SetFrcCoord (Statement) [Ver.1.9 or later]FunctionSelects a force limiting coordinate system (exclusively designed for 6-axis robots).FormatS

Seite 296

Chapter 12 Robot Control Statements12-89ST_SetFrcLimit (Statement) [Ver.1.9 or later]FunctionSets the force limiting rates (exclusively designed for

Seite 297

12-90ST_ResetFrcLimit (Statement) [Ver.1.9 or later]FunctionInitializes the force limiting rates (exclusively designed for 6-axis robots).FormatST_Re

Seite 298 - ROTATEH (Statement)

Chapter 12 Robot Control Statements12-91ST_SetCompRate (Statement) [Ver.1.9 or later]FunctionSets the compliance rates under the compliance control

Seite 299

12-92ST_ResetCompRate (Statement) [Ver.1.9 or later]FunctionInitializes the compliance rates (exclusively designed for 6-axis robots).FormatST_ResetC

Seite 300 - CURJNT (System Variable)

Chapter 12 Robot Control Statements12-93ST_SetFrcAssist (Statement) [Ver.1.9 or later]FunctionSets the force assistance under the compliance control

Seite 301

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 302 - 'lp2

12-94ST_ResetFrcAssist (Statement) [Ver.1.9 or later]FunctionInitializes the force assistance (special compliance control function statement)(exclusi

Seite 303 - CUREXJ (Statement)

Chapter 12 Robot Control Statements12-95ST_SetCompJLimit (Statement) [Ver. 1.9 or later]FunctionSets the current limit under the compliance control

Seite 304 - DESTJNT (System Variable)

12-96ST_ResetCompJLimit (Statement) [Ver.1.9 or later]FunctionInitializes the current limit under the compliance control (special compliance controlf

Seite 305 - DESTPOS (System Variable)

Chapter 12 Robot Control Statements12-97ST_SetCompVMode (Statement) [Version 1.9 or later]FunctionSets the velocity control mode under the complianc

Seite 306 - DESTTRN (System Variable)

12-98ST_ResetCompVMode (Statement) [Ver.1.9 or later]FunctionDisables the velocity control mode under the compliance control (special compliancecontr

Seite 307 - DESTEXJ (Statement)

Chapter 12 Robot Control Statements12-99ST_SetCompEralw (Statement) [Ver.1.9 or later]FunctionSets the allowable deviation values of the position an

Seite 308

12-100ST_ResetCompEralw (Statement) [Ver.1.9 or later]FunctionInitializes the allowable deviation values of the position and the posture of the toole

Seite 309

Chapter 12 Robot Control Statements12-101ST_SetDampRate (Statement) [Ver.1.9 or later]FunctionSets the damping rates under the compliance control (e

Seite 310 - POSCLR (Statement)

12-102ST_ResetDampRate (Statement) [Ver.1.9 or later]FunctionInitializes the damping rates under the compliance control (exclusively designed for6-ax

Seite 311 - 12.2 Figure Control

Chapter 12 Robot Control Statements12-103ST_SetZBalance (Statement) [Ver.1.9 or later]FunctionSets the gravity compensation value of the Z and T axe

Seite 312

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 313 - FIGAPRL (Function)

12-104ST_ResetZBalance (Statement) [Ver.1.9 or later]FunctionDisables the gravity compensation function (exclusively designed for 4-axis robots).Forma

Seite 314

Chapter 13Input/OutputControl StatementsThis chapter provides an explanation of thecommands used to control various I/Os.

Seite 316 - 12.3 Stop Control

Chapter 13 Input/Output Control Statements13-113.1 I/O PortIN (Statement)[Conforms to SLIM]FunctionReads data from the I/O port designated by an I/O

Seite 317

13-2OUT (Statement) [Conforms to SLIM]FunctionOutputs data to the I/O port designated by an I/O variable.FormatOUT <I/O variable> = <Output d

Seite 318 - INTERRUPT ON/OFF (Statement)

Chapter 13 Input/Output Control Statements13-3IOBLOCK ON/OFF (Statement) [Conforms to SLIM]FunctionConcurrently executes a non-motion instruction suc

Seite 319

13-4Notes(1) Concurrent processing is not executed in the following cases.i) If a motion option is added to a motion instructionii) If you execute CHA

Seite 320 - 12.4 Speed Control

Chapter 13 Input/Output Control Statements13-5SET (Statement) [Conforms to SLIM]FunctionSets an I/O port to ON.FormatSET <I/O variable>[,<Ou

Seite 321

13-6Notes(1) If output time is designated, it may be extended due to factors such as thepresence of another program during movement, pendant operation

Seite 322 - JSPEED (Statement)

Chapter 13 Input/Output Control Statements13-7RESET (Statement) [Conforms to SLIM]FunctionSets an I/O port to OFF.FormatRESET <I/O variable>Exp

Seite 323 - JDECEL 25 (JSPEED*JSPEED÷100)

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 324

13-813.2 Command for RS232C and Ethernet(Server/Client) PortINPUT (Statement)[Conforms to SLIM]FunctionObtains data from the RS232C or Ethernet port.F

Seite 325

Chapter 13 Input/Output Control Statements13-9LINEINPUT (Statement)FunctionReads data to a delimiter through the RS232C or Ethernet port and assigns

Seite 326

13-10PRINT (Statement)[Conforms to SLIM]FunctionOutputs data from the RS232C or Ethernet port.FormatPRINT [#<Circuit number>,] <Message> [

Seite 327 - CURACC (System Variable)

Chapter 13 Input/Output Control Statements13-11WRITE (Statement)FunctionOutputs data from the RS232C or Ethernet port.FormatWRITE [#<Circuit numbe

Seite 328 - CURJACC (System Variable)

13-12FLUSH (Statement)FunctionClears the input buffer.FormatFLUSH [#<Circuit number>]ExplanationThis statement clears the input buffer of the RS

Seite 329 - CURDEC (System Variable)

Chapter 13 Input/Output Control Statements13-1313.3 Serial Binary Transmission Commands(RS232C and Ethernet ports)printb (Version 1.5 or later)Functi

Seite 330 - CURJDEC (System Variable)

13-14inputb (Version 1.5 or later)FunctionInputs a single byte of data from the RS-232C or Ethernet port.Formatinputb #<portnumber>,<integerv

Seite 331 - CURJSPD (System Variable)

Chapter 13 Input/Output Control Statements13-15lprintb (Version 1.5 or later)FunctionOutputs multiple bytes of data to the RS-232C or Ethernet port.F

Seite 332 - CURSPD (System Variable)

13-16linputb (Version 1.5 or later)FunctionInputs multiple bytes of data from the RS-232C or Ethernet port.Formatlinputb #<portnumber>,<array

Seite 333 - ACCEL, DECEL, CUREXTDEC

Chapter 13 Input/Output Control Statements13-17com_encom (Version 1.5 or later)FunctionEnables the RS-232C port only for binary transmission. (Occupi

Seite 334

iiHow the documentation set is organizedThe documentation set consists of the following books. If you are unfamiliar with this robot andoption(s), ple

Seite 335 - CUREXTSPD

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 336 - 12.5 Time Control

13-18com_discom (Version 1.5 or later)FunctionReleases the RS-232C port from binary transmission. (Releases the COM port.)If the Ethernet client port

Seite 337

Chapter 13 Input/Output Control Statements13-19com_state (Version 1.5 or later)FunctionGets the status of RS-232C or Ethernet port.Formatcom_state #&

Seite 338 - CHANGETOOL (Statement)

13-2013.4 PendantPRINTMSG (Statement)FunctionDisplays a message with a caption and icon on the color LCD of the teachpendant.FormatPRINTMSG <Messag

Seite 339 - CHANGEWORK (Statement)

Chapter 13 Input/Output Control Statements13-21PRINTDBG (Statement)FunctionOutputs data to the debug window.FormatPRINTDBG <Message>[<Separa

Seite 340

13-22BUZZER (Statement)FunctionSounds a buzzer.FormatBUZZER <Sound time>ExplanationThis statement sounds the buzzer on the pendant for the time

Seite 341 - WORK, CHANGEWORK, WORKPOS

Chapter 13 Input/Output Control Statements13-23PRINTLBL (Statement)FunctionSets a label (caption) for a user definition button.FormatPRINTLBL <Pan

Seite 342 - 12.7 Interference Check

13-2413.5 Customizing TP Operation ScreensMain software version 1.5 or later allows you to easily customize your own operationscreens on the teach pen

Seite 343 - RESETAREA (Statement)

Chapter 13 Input/Output Control Statements13-2513.5.1 Programming a TP operation screenProgram a TP operation screen as follows:(1) Setting button p

Seite 344 - 12.8 Supervisor Task

13-26(6) Displaying a programmed TP operation screenFrom the top screen of the teach pendant, choose [F9: Panel] to display a TPoperation screen you h

Seite 345 - 12.9 Internal Servo Data

Chapter 13 Input/Output Control Statements13-27set_button (Version 1.5 or later)FunctionSets button parameters.Formatset_button <ButtonNumber>,

Seite 346

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 347 - 12.10 Particular Control

13-28<ParameterType>Explanation<NewValue>8 Text color 0: Black1: Blue2: Green3: Cyan4: Red5: Magenta6: Brown7: Light gray8: Gray9: Light b

Seite 348 - External payload condition

Chapter 13 Input/Output Control Statements13-29Explanationset_button changes the current value of a parameter specified by<ParameterType> to &l

Seite 349

13-30set_page (Version 1.5 or later)FunctionSets page parameters.Formatset_page <PageNumber>,<ParameterType>,<NewValue><PageNumbe

Seite 350

Chapter 13 Input/Output Control Statements13-31Explanationset_page changes the current value of a parameter specified by<ParameterType> to <

Seite 351

13-32change_bCap (Version 1.5 or later)FunctionEdits a caption for a specified button.Formatchange_bCap <ButtonNumber>,<Caption><Button

Seite 352

Chapter 13 Input/Output Control Statements13-33change_pCap (Version 1.5 or later)FunctionEdits a caption for a specified page.Formatchange_pCap <P

Seite 353

13-34disp_page (Version 1.5 or later)FunctionDisplays a specified page of a TP operation screen.Formatdisp_page <PageNumber><PageNumber> N

Seite 354

Chapter 13 Input/Output Control Statements13-35Sample Program: Creating a TP Operation PanelShown below is a sample program for creating a TP operat

Seite 355

13-36'Button status#define ON 1 'ON#define OFF 0 'OFF#define I_VAL 1 'Integer'Button address#define IO_PB_ADRS 170 'I/O

Seite 356

Chapter 13 Input/Output Control Statements13-37'Label displayselect case loopcntcase 0set_button btn_no,B_KIND,LABEL 'Set button type.set_b

Seite 357

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 358

13-38'Display in the lower rowloopcnt = 0while loopcnt < 6 'Loop 6 times.btn_no = btn_adrs + 10 + loopcntminx = 10 + ((loopcnt mod 6)*100

Seite 359

Chapter 13 Input/Output Control Statements13-39case 4' set_button btn_no,B_KIND,3DBUTTON_V 'Set button type.set_button btn_no,B_KIND,3DBUTT

Seite 360

13-40TP Operation Panel Sample: Result of the above sample program

Seite 361

Chapter 14MultitaskingControl StatementsMultitasking control is one of the features of PAC.This chapter provides explanations of thecommands used for

Seite 363

Chapter 14 Multitasking Control Statements14-114.1 Task ControlRUN (Statement)FunctionConcurrently runs another program.FormatRUN <Program name>

Seite 364

14-2 Notes(1) When a task for which motion is being suspended is run again with aSUSPEND instruction, execute RUN after the motion completely stops.

Seite 365

Chapter 14 Multitasking Control Statements14-3SUSPEND (Statement)FunctionSuspends a task.FormatSUSPEND <Program name>ExplanationThis statement

Seite 366

14-4DEFEND (Statement)FunctionDefends a task.FormatDEFEND {ON|OFF}ExplanationA program task usually releases execution priority to another program tas

Seite 367

Chapter 14 Multitasking Control Statements14-5STATUS (Function)FunctionObtains the program status.FormatSTATUS (<Program name>)ExplanationThis

Seite 368

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 369

14-614.2 SemaphoreA semaphore can be used to communicate (connect a signal) among taskswhen multiple tasks are synchronized (synchronized control) or

Seite 370

Chapter 14 Multitasking Control Statements14-7CREATESEM (Function)FunctionCreates a semaphore.FormatCREATESEM (<Arithmetic expression>)Explanat

Seite 371

14-8ExampleDEFINT Li1Li2Li3=1Li1 = CREATESEM(Li3)'Creates a semaphore with the queuing system designated in Li3'and the semaphore ID obtai

Seite 372

Chapter 14 Multitasking Control Statements14-9PROGRAM PRO1i1 = CREATESEM(0)RUN PRO2RUN PRO3ENDPROGRAM PRO2TAKESEM i1...GIVESEM i1ENDPROGRAM PRO3TAKES

Seite 373

14-10DELETESEM (Statement)FunctionDeletes a semaphore.FormatDELETESEM <Semaphore ID>ExplanationThis statement deletes a semaphore with the semap

Seite 374

Chapter 14 Multitasking Control Statements14-11FLUSHSEM (Statement)FunctionReleases tasks from waiting for a semaphore.FormatFLUSHSEM <Semaphore I

Seite 375

14-12GIVESEM (Statement)FunctionReleases a task from waiting for a semaphore.FormatGIVESEM <Semaphore ID>ExplanationThis statement releases the

Seite 376

Chapter 14 Multitasking Control Statements14-13TAKESEM (Statement)FunctionObtains a semaphore with a designated semaphore ID.FormatTAKESEM <Semaph

Seite 377

14-1414.3 Arm SemaphoreTAKEARM (Statement)FunctionGets an arm group. Upon execution of this statement, the programmed speed,acceleration and decelerat

Seite 378

Chapter 14 Multitasking Control Statements14-15Note 1: Robot control priority is automatically released in thefollowing cases.•••• If an END command

Seite 379

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 380

14-16Related TermsGIVEARM, TAKEVIS, GIVEVISExampleExample 1:PROGRAM PRO1 'TAKEARM 'Executes TAKEARM on the first line of the program which&a

Seite 381 - Control Statements

Chapter 14 Multitasking Control Statements14-17Example 5:PROGRAM PRO6 'TAKEARM 'RUN PRO7 'MOVE P, P7 'END 'PROGRAM PRO7 &apo

Seite 382

14-18Notes(1) One program cannot hold more than one different arm group. However, itcan get the same arm group again in one program.Example: TAKEARM 0

Seite 383 - 13.1 I/O Port

Chapter 14 Multitasking Control Statements14-19GIVEARM (Statement)FunctionReleases robot control priority.FormatGIVEARMExplanationThis statement rele

Seite 384

14-20TAKEVIS (Statement)FunctionObtains visual process priority.FormatTAKEVISExplanationThis statement obtains visual process priority on the µVISION

Seite 385

Chapter 14 Multitasking Control Statements14-21GIVEVIS (Statement)FunctionReleases visual process priority.FormatGIVEVISExplanationThis statement rel

Seite 387

Chapter 15FunctionsThis chapter provides an explanation of variousfunctions prepared in PAC.

Seite 389 - SET, DEFIO

Chapter 15 Functions15-115.1 Arithmetic FunctionABS (Function) [Conforms to SLIM]FunctionObtains the absolute value of an expression value.FormatABS

Seite 390 - (Server/Client) Port

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 391 - LINEINPUT (Statement)

15-2EXP (Function) [Conforms to SLIM]FunctionObtains an exponential function with a natural logarithm taken as a base.FormatEXP (<Expression>)Ex

Seite 392

Chapter 15 Functions15-3INT (Function) [Conforms to SLIM]FunctionObtains the maximum integer value possible from a designated value.FormatINT (<Ex

Seite 393 - WRITE (Statement)

15-4LOG (Function) [Conforms to SLIM]FunctionObtains a natural logarithm.FormatLOG (<Expression>)ExplanationThis statement obtains the natural l

Seite 394 - FLUSH (Statement)

Chapter 15 Functions15-5LOG10 (Function) [Conforms to SLIM]FunctionObtains a common logarithm.FormatLOG10 (<Expression>)ExplanationThis stateme

Seite 395 - (RS232C and Ethernet ports)

15-6POW (Function) [Conforms to SLIM]FunctionObtains an exponent.FormatPOW (<Base>,<Exponent>)ExplanationThis statement obtains the expone

Seite 396 - (Version 1.5 or later)

Chapter 15 Functions15-7MAX (Function) [Conforms to SLIM]FunctionExtracts the maximum value.FormatMAX (<Expression>,<Expression>[,<Exp

Seite 397

15-8MIN (Function) [Conforms to SLIM]FunctionExtracts the minimum value.FormatMIN (<Expression>,<Expression>[,<Expression>…])Explana

Seite 398

Chapter 15 Functions15-9RND (Function)FunctionGenerates random numbers from 0 to 1.FormatRND (<Expression>)ExplanationAccording to the value in

Seite 399

15-10SGN (Function)FunctionChecks a sign.FormatSGN (<Expression>)ExplanationThis statement checks the sign of <Expression> and returns the

Seite 400

Chapter 15 Functions15-11SQR (Function) [Conforms to SLIM]FunctionObtains the square root.FormatSQR (<Expression>)ExplanationThis statement obt

Seite 401

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 402 - 13.4 Pendant

15-1215.2 Trigonometric FunctionACOS (Function) [Conforms to SLIM]FunctionObtains an arc cosine.FormatACOS (<Expression>)ExplanationThis stateme

Seite 403 - PRINTDBG (Statement)

Chapter 15 Functions15-13ASIN (Function) [Conforms to SLIM]FunctionObtains an arc sine.FormatASIN (<Expression>)ExplanationThis statement obtai

Seite 404 - BUZZER (Statement)

15-14ATN (Function) [Conforms to SLIM]FunctionObtains an arc tangent.FormatATN (<Expression>)ExplanationThis statement obtains the arc tangent o

Seite 405 - PRINTLBL (Statement)

Chapter 15 Functions15-15ATN2 (Function) [Conforms to SLIM]FunctionObtains the arc tangent of expression 1 divided by expression 2.FormatATN2 (<Ex

Seite 406

15-16COS (Function) [Conforms to SLIM]FunctionObtains a cosine.FormatCOS (<Expression>)ExplanationThis statement obtains the cosine value of the

Seite 407

Chapter 15 Functions15-17SIN (Function) [Conforms to SLIM]FunctionObtains a sine.FormatSIN (<Expression>)ExplanationObtains the sine value of t

Seite 408 - TP operation screen sample

15-18TAN (Function) [Conforms to SLIM]FunctionObtains a tangent.FormatTAN (<Expression>)ExplanationThis statement obtains the tangent value of t

Seite 409

Chapter 15 Functions15-1915.3 Angle ConversionDEGRAD (Function) [Conforms to SLIM]FunctionConverts the unit to a radian.FormatDEGRAD (<Expression&

Seite 410 - Type>

15-20RAD (Function)FunctionConverts a value set in radians to degrees.Format<Numeric value> RADExplanationThis statement converts a <Numeric

Seite 411

Chapter 15 Functions15-21RADDEG (Function) [Conforms to SLIM]FunctionConverts the unit to degrees.FormatRADDEG (<Expression>)ExplanationThis st

Seite 412

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 413

15-22 15.4 Speed Conversion MPS (Function) Function Converts an expression of speed. Format MPS (<Expression>) Explanation This statement c

Seite 414

Chapter 15 Functions15-2315.5 Time FunctionSEC (Function)FunctionConverts a value expressed in seconds to milliseconds.Format<Numeric value> SE

Seite 415 - Page caption example

15-2415.6 VectorAVEC (Function)FunctionExtracts an approach vector.FormatAVEC (<Homogeneous transformation type>)ExplanationThis statement extra

Seite 416

Chapter 15 Functions15-25OVEC (Function)FunctionExtracts an orient vector.FormatOVEC (<Homogeneous transformation type>)ExplanationThis stateme

Seite 417

15-26PVEC (Function)FunctionExtracts a position vector.FormatPVEC ({<Homogeneous transformation type>|<Position type>})ExplanationThis sta

Seite 418

Chapter 15 Functions15-27MAGNITUDE (Function)FunctionObtains the vector size.FormatMAGNITUDE (<Vector type>)ExplanationThis statement obtains t

Seite 419

15-2815.7 Pose Data Type TransformationJ2P (Function)FunctionTransforms joint type data to position type data.FormatJ2P (<Joint type>)Explanatio

Seite 420

Chapter 15 Functions15-29J2T (Function)FunctionTransforms joint type data to homogeneous transformation type data.FormatJ2T (<Joint type>)Expla

Seite 421

15-30P2J (Function)FunctionTransforms position type data to joint type data.FormatP2J (<Position type>)ExplanationThis statement transforms the

Seite 422

Chapter 15 Functions15-31P2T (Function)FunctionTransforms position type data to homogeneous transformation type data.FormatP2T (<Position type>

Seite 423 - Multitasking

4-axis 6-axisVisiondevice¤¤¤Available with all series of robots and vision device.¡¡¡Available with all series of robots. The commandspecifications d

Seite 424

15-32T2J (Function)FunctionTransforms homogeneous transformation type data to joint type data.FormatT2J (<homogeneous transformation type>)Expla

Seite 425 - 14.1 Task Control

Chapter 15 Functions15-33T2P (Function)FunctionTransforms homogeneous transformation type data to position type data.FormatT2P (<homogeneous trans

Seite 426 - KILL (Statement)

15-34TINV (Function)FunctionCalculates an inverse matrix of homogeneous transformation type data.FormatTINV (<homogeneous transformation type>)E

Seite 427 - SUSPEND (Statement)

Chapter 15 Functions15-3515.8 Distance ExtractionDIST (Function) [Conforms to SLIM]FunctionReturns the distance between two points.FormatDIST (<Po

Seite 428 - DEFEND (Statement)

15-3615.9 Figure ComponentFIG (Function)FunctionExtracts a figure.FormatFIG ({<Position type>|<homogeneous transformation type>})Explanati

Seite 429 - STATUS (Function)

Chapter 15 Functions15-3715.10 Angle ComponentJOINT (Function)FunctionExtracts an angle from joint type coordinates.FormatJOINT (<Axis number>,

Seite 430 - 14.2 Semaphore

15-3815.11 Axis ComponentPOSX (Function) [Conforms to SLIM]FunctionExtracts the X-component.FormatPOSX ({<Position type>|<Vector type>})Ex

Seite 431 - CREATESEM (Function)

Chapter 15 Functions15-39POSY (Function) [Conforms to SLIM]FunctionExtracts the Y-component.FormatPOSY ({<Position type>|<Vector type>})E

Seite 432

15-40POSZ (Function) [Conforms to SLIM]FunctionExtracts the Z-component.FormatPOSZ ({<Position type>|<Vector type>})ExplanationThis statem

Seite 433

Chapter 15 Functions15-4115.12 Rotation ComponentPOSRX (Function)FunctionExtracts the X-axis rotation component.FormatPOSRX (<Position type>)Ex

Seite 435 - FLUSHSEM (Statement)

15-42POSRY (Function)FunctionExtracts the Y-axis rotation component.FormatPOSRY (<Position type>)ExplanationThis component extracts the Y-axis r

Seite 436 - GIVESEM (Statement)

Chapter 15 Functions15-43POSRZ (Function)FunctionExtracts the Z-axis rotation component.FormatPOSRZ (<Position type>)ExplanationThis statement

Seite 437 - TAKESEM (Statement)

15-44POST (Function)FunctionExtracts the T-axis rotation component.FormatPOST (<Position type>)ExplanationThis statement extracts the T-axis rot

Seite 438 - 14.3 Arm Semaphore

Chapter 15 Functions15-4515.13 Figure ComponentRVEC (Function)FunctionExtracts a figure.FormatRVEC (<Position type>)ExplanationThis statement e

Seite 439 - (2) extended-joints

15-4615.14 Position FunctionAREAPOS (Function)FunctionReturns the center position and direction of a rectangular parallelepiped withthe position type

Seite 440

Chapter 15 Functions15-47AREASIZE (Function)FunctionReturns the size (each side length) of a rectangular parallelepiped whichdefines the interference

Seite 441

15-48TOOLPOS (Function)FunctionReturns a tool coordinate system as the position type.FormatTOOLPOS (<Tool coordinate system number>)ExplanationD

Seite 442

Chapter 15 Functions15-49WORKPOS (Function)FunctionReturns the user coordinate system as the position type.FormatWORKPOS (<user coordinate system

Seite 443 - GIVEARM (Statement)

15-5015.15 Character String FunctionASC (Function)FunctionConverts to a character code.FormatASC (<Character string >)ExplanationThis statement

Seite 444 - TAKEVIS (Statement)

Chapter 15 Functions15-51BIN$ (Function) [Conforms to SLIM]FunctionConverts the value of an expression to a binary character string.FormatBIN$ (<E

Seite 445 - GIVEVIS (Statement)

iiiHow this book is organizedThis book is just one part of the documentation set. This book consists of SAFETY PRECAUTIONSand chapters one through fi

Seite 447 - Functions

15-52CHR$ (Function) [Conforms to SLIM]FunctionConverts an ASCII code to a character.FormatCHR$ (<Expression>)ExplanationThis statement obtains

Seite 448

Chapter 15 Functions15-53SPRINTF$ (Function)FunctionConverts an expression to a designated format and returns it as a characterstring.FormatSPRINTF$

Seite 449 - 15.1 Arithmetic Function

15-54<space>: If <space> and a + flag at the head of the result are designated whenthe first character is not a sign in conversion with a

Seite 450

Chapter 15 Functions15-55f : Converts a real type argument to a character string of decimalsdisplayed in a “[-] ddd.ddd” format. The number of di

Seite 451 - Chapter 15 Functions

15-56HEX$ (Function) [Conforms to SLIM]FunctionObtains a value converted from a decimal to a hexadecimal number as acharacter string.FormatHEX$ (<E

Seite 452

Chapter 15 Functions15-57LEFT$ (Function) [Conforms to SLIM]FunctionExtracts the left part of a character string.FormatLEFT$ (<Character string &g

Seite 453 - DEFSNG lf1, lf2, lf3, lf4

15-58LEN (Function) [Conforms to SLIM]FunctionObtains the length of a character string in bytes.FormatLEN (<Character string >)ExplanationThis s

Seite 454 - DEFINT li1, li2

Chapter 15 Functions15-59MID$ (Function) [Conforms to SLIM]FunctionExtracts a character string for the designated number of characters from acharacte

Seite 455

15-60ORD (Function) [Conforms to SLIM]FunctionConverts to a character code.FormatORD (<Character string >)ExplanationThis statement converts the

Seite 456

Chapter 15 Functions15-61RIGHT$ (Function) [Conforms to SLIM]FunctionExtracts the right part of a character string.FormatRIGHT$ (<Character string

Seite 457 - RND (Function)

Chapter 1 Sample ProgramThis chapter utilizes a simple application exam-ple to provide usage of each command.

Seite 458 - SGN (Function)

15-62STRPOS (Function) [Conforms to SLIM]FunctionObtains the position of a character string.FormatSTRPOS (<Character string 1>, <Character st

Seite 459

Chapter 15 Functions15-63STR$ (Function) [Conforms to SLIM]FunctionConverts a value to a character string.FormatSTR$ (<Expression>)ExplanationT

Seite 460 - 15.2 Trigonometric Function

15-64VAL (Function) [Conforms to SLIM]FunctionConverts a character string to a numeric value.FormatVAL (<Character string >)ExplanationThis stat

Seite 461 - (Function) [Conforms to SLIM]

Chapter 16ConstantsThis chapter provides an explanation about PACprepared constants.

Seite 463

Chapter 16 Constants16-116.1 Built-in ConstantsOFF (Built-in Constant)FunctionSets an OFF (0) value.FormatOFFExplanationThis statement sets an OFF (0

Seite 464

16-2ON (Built-in constant)FunctionSets an ON (1) value.FormatONExplanationThis statement sets an ON (1) value in an expression.Related TermsOFFExample

Seite 465 - 'lf5 to lf3

Chapter 16 Constants16-3PI (Built-in constant)FunctionSets a π value.FormatPIExplanationThis statement returns a double-precision type value of π.Exa

Seite 466

16-4FALSE (Built-in constant)FunctionSets a value of false (0) to a Boolean value.FormatFALSEExplanationThis statement sets a value of false (0) to a

Seite 467 - 15.3 Angle Conversion

Chapter 16 Constants16-5TRUE (Built-in constant)FunctionSets a value of true (1) to a Boolean value.FormatTRUEExplanationThis statement sets a value

Seite 470 - 15.4 Speed Conversion

Chapter 17Time/Date ControlThis chapter provides an explanation ofcommands necessary to understand time, dateor elapsed time and other commands to con

Seite 472 - 15.6 Vector

Chapter 17 Time/Date Control17-117.1 Time/DateDATE$ (System Variable) [Conforms to SLIM]FunctionObtains the current date.FormatDATE$ExplanationThis s

Seite 473 - OVEC (Function)

17-2TIME$ (System Variable) [Conforms to SLIM]FunctionObtains the current time.FormatTIME$ExplanationThis statement stores the current time in the fol

Seite 474 - PVEC (Function)

Chapter 17 Time/Date Control17-3TIMER (System Variable) [Conforms to SLIM]FunctionObtains the elapsed time.FormatTIMERExplanationThis statement obtai

Seite 476 - J2P (Function)

Chapter 18Error ControlsWhen an error occurs, you can check thecontents of the error, or program a procedure torecover. This chapter provides an expl

Seite 478 - P2J (Function)

Chapter 18 Error Controls18-118.1 Error InformationERL (System Variable)FunctionObtains the line number where an error occurred.FormatERLExplanationT

Seite 479 - P2T (Function)

Chapter 1 Sample Program1-11.1 Model Case ApplicationThis section describes a sample program by using an application as a modelcase as shown in Fig.

Seite 480 - T2J (Function)

18-2ERR (System Variable)FunctionObtains an error number that occurred.FormatERRExplanationThis program stores an error number that occurred.The ERR d

Seite 481 - T2P (Function)

Chapter 18 Error Controls18-3ERRMSG$ (Function)FunctionSets an error message.FormatERRMSG$ (<Arithmetic expression>)ExplanationThis statement s

Seite 482 - TINV (Function)

18-418.2 Error InterruptionON ERROR GOTO (Statement)FunctionInterrupts when an error occurs.FormatON ERROR {GOTO|GO TO}<Label name>ExplanationTh

Seite 483 - 15.8 Distance Extraction

Chapter 18 Error Controls18-5RESUME (Statement)FunctionReturns from an interruption process routine.FormatRESUME [NEXT|<Label name>]Explanation

Seite 485 - 15.10 Angle Component

Chapter 19System InformationThis chapter provides an explanation ofcommands necessary to obtain robot systeminformation.

Seite 487

Chapter 19 System Information19-119.1 SystemGETENV (Function)FunctionObtains the environment setting values of the system.FormatGETENV (<Table num

Seite 488

19-2LETENV (Statement)FunctionSets the environment setting values of the system.FormatLETENV <Table number>, <Element number>, <Setting

Seite 489 - 15.12 Rotation Component

Chapter 19 System Information19-3VER$ (Function)FunctionObtains the version of each module.FormatVER$ (<Expression>)ExplanationThis statement s

Seite 490 - POSRY (Function)

1-21.2 Program FlowFig. 1-2 shows the program flow of the model case.Fig. 1-2 Model Case Program Flow****Macro Definition*****#define pHome 10 &apo

Seite 491 - POSRZ (Function)

19-419.2 LogNOTE: Control log is greatly enhanced in Ver. 1.20 or later. If you use Ver.1.20 or later, refer to “WINCAPSII Guide”, Section 10.7, &

Seite 492 - POST (Function)

Chapter 19 System Information19-5Related TermsCLEARLOG, STOPLOGExampleSTARTLOG 'Starts recording of the servo control log.CLEARLOG (Statement)NO

Seite 493 - 15.13 Figure Component

19-6STOPLOG (Statement)NOTE: Control log is greatly enhanced in Ver. 1.20 or later. If you use Ver.1.20 or later, refer to “WINCAPSII Guide”, Secti

Seite 494 - 15.14 Position Function

Chapter 20PreprocessorIf you create a program with the PAC manager,you can use the preprocessor commandsdescribed in this chapter.The PAC manager auto

Seite 496 - TOOLPOS (Function)

Chapter 20 Preprocessor20-120.1 Symbol Constants · Macro Definitions#define (Preprocessor Statement)FunctionReplaces a designated constant or macro n

Seite 497 - WORKPOS (Function)

20-2#undef (Preprocessor Statement)FunctionMakes a symbol constant defined with #define or macro definition invalid.Format#undef {<Symbol constant

Seite 498 - ASC (Function)

Chapter 20 Preprocessor20-3#error (Preprocessor Statement)FunctionForcibly generates a compiling error if the #error command is executed.Format#error

Seite 499 - DEFSTR ls1, ls2

20-420.2 File Fetch#include (Preprocessor Statement)FunctionFetches the preprocessor program.Format#include “[Path] file name”#include <[Path] file

Seite 500

Chapter 20 Preprocessor20-520.3 Optimization#pragma optimize (Preprocessor Statement)FunctionDesignates optimization to be executed for each program.

Seite 501 - SPRINTF$ (Function)

Chapter 1 Sample Program1-31.3 Program ListBelow is a program list for the model case.There are 4 programs: “PRO1,” “PRO2,” “dioSetAndWait,” and“dio

Seite 503

Chapter 21Vision Control(Option)This chapter lists all the commands available foruse with the µVision board and µVision-21.

Seite 505

Chapter 21 Vision Control (Option)21-121.1 Precautions for using vision commands.(1) To use vision commands, an optional µVision board is required.(2

Seite 506

21-2µVision-15 µVision board Description PageCROSSCRSALNVISCROSS Draws cross symbols. 14-36LOC VISLOCLocates character display positions.14-37VISDEFCH

Seite 507

Chapter 21 Vision Control (Option)21-321.3 Image Input and OutputCAMIN (Statement)FunctionStores an image from the camera in the image memory (proces

Seite 508

21-4CAMMODE (Statement)FunctionSets the function used to store a camera image.FormatCAMMODE <Camera number>, <Function>, <Storage metho

Seite 509

Chapter 21 Vision Control (Option)21-5Related TermsCAMIN, VISSTATUSExampleCAMMODE 1, 0, 0 'Sets the function of camera 1 to normal and sets the

Seite 510

21-6CAMLEVEL (Statement)FunctionSets the camera image input level.FormatCAMLEVEL <Camera number>, <Lower limit level>, <Upper limit lev

Seite 511

Chapter 21 Vision Control (Option)21-7VISCAMOUT (Statement)FunctionDisplays an image from the camera on the monitor.FormatVISCAMOUT <Camera number

Seite 512

1-4Program coding list “PRO1”(Continued)' ===== Chucking a part =====*ChuckItem: *Specifies a label with ¡¡:. Will be called later by CALL*ChuckI

Seite 513 - Constants

21-8VISPLNOUT (Statement)FunctionDisplays an image in the storage memory on the monitor.FormatVISPLNOUT <Storage memory number>[, <Table numb

Seite 514

Chapter 21 Vision Control (Option)21-9VISOVERLAY (Statement)FunctionDisplays draw screen information on the monitor.FormatVISOVERLAY <Number>Ex

Seite 515 - 16.1 Built-in Constants

21-10ExampleVISOVERLAY 3 'Sets the destination screen to draw.VISSCREEN 1, 0'VISCLS 0 'VISLOC 10, 10 'Sets the position to display

Seite 516 - ON (Built-in constant)

Chapter 21 Vision Control (Option)21-11VISDEFTABLE (Statement)FunctionReads images on the camera and sets the look-up table data for image output.For

Seite 517 - PI (Built-in constant)

21-12ExampleVISSCREEN 1, 0, 1'VISCLS 0 'VISCAMOUT 1, 1 'Converts an image (dynamic image) from camera 1 with table'1 (0~175, 75%

Seite 518 - FALSE (Built-in constant)

Chapter 21 Vision Control (Option)21-13VISREFTABLE (Function)FunctionRefers to data on the look-up table.FormatVISREFTABLE (<Table number>, <

Seite 519 - TRUE (Built-in constant)

21-1421.4 Window SettingWINDMAKE (Statement)FunctionDesignates an area for image processing.FormatWINDMAKE <Window shape>, <Window number>

Seite 520

Chapter 21 Vision Control (Option)21-15Line window (2 point designation)<Start point X coordinate> Designates the line start point X coordinat

Seite 521 - Time/Date Control

21-16Ellipse window:<Width> Designates the width of an ellipse (1 to 256).<Height> Designates the height of an ellipse (1 to 240).axisX

Seite 522

Chapter 21 Vision Control (Option)21-17Rectangle window:<Width> Designates the width of a rectangle (1 to 512).<Height> Designates the he

Seite 523 - 17.1 Time/Date

Chapter 1 Sample Program1-5Program coding list “PRO1”(Continued)' ===== Parts B and C processing =====*PlacePartsBC:Label name (declares a subro

Seite 524

21-18ExampleVISSCREEN 1, 0, 1'VISCLS 0 'VISCAMOUT 1 'CAMIN 1 'VISPLNOUT 0 'WINDMAKE P, 1, 50, 100, 100, 150 'Creates a l

Seite 525 - DEFINT li1, li2, li3

Chapter 21 Vision Control (Option)21-19WINDCLR (Statement)FunctionDeletes set window information.FormatWINDCLR <Window number>Explanation<Wi

Seite 526

21-20WINDCOPY (Statement)FunctionCopies window data.FormatWINDCOPY <Copy source window number>, <Copy destination windownumber>Explanation

Seite 527 - Error Controls

Chapter 21 Vision Control (Option)21-21ExampleVISSCREEN 1, 0, 1'VISCLS 0 'VISCAMOUT 1 'WINDCLR 2 'WINDMAKE R, 1, 50, 100, 0, 2&ap

Seite 528

21-22WINDREF (Function)FunctionObtains window information.FormatWINDREF (<window number>, <Item>)ExplanationThis statement designates the

Seite 529 - 18.1 Error Information

Chapter 21 Vision Control (Option)21-23WINDDISP (Statement)FunctionDraws a designated window.FormatWINDDISP <Window number>ExplanationThis stat

Seite 530 - ERR (System Variable)

21-2421.5 DrawVISSCREEN (Statement)FunctionDesignates a drawing screen.FormatVISSCREEN <Draw object>, <Screen number>[, <Draw mode>]

Seite 531 - ERRMSG$ (Function)

Chapter 21 Vision Control (Option)21-25ExampleVISSCREEN 1,0,1 'Instantaneously draws the drawing screen 0.VISCLS 0 'FORI1=100TO200STEP2 &ap

Seite 532 - 18.2 Error Interruption

21-26VISBRIGHT (Statement)FunctionDesignates a drawing brightness value.FormatVISBRIGHT <Brightness value>Explanation<Brightness value> D

Seite 533 - RESUME (Statement)

Chapter 21 Vision Control (Option)21-27VISCLS (Statement)FunctionFills (clears) a designated screen, set in a mode with a designated brightness.Forma

Seite 534

1-6Program coding list “PRO2”'!TITLE “Reading QR code”#INCLUDE “var_tab.h” 'Reads the variable macro definition file.'Store a parts num

Seite 535 - System Information

21-28ExampleVISSCREEN 1,0,1 'VISCLS 0 'VISSCREEN 1,1,1 'VISCLS 0 'VISPLNOUT 0 'Displays storage memory 0 (processing screen).

Seite 536

Chapter 21 Vision Control (Option)21-29VISPUTP (Statement)FunctionDraws a point on the screen.FormatVISPUTP <X coordinate >, <Y coordinate &

Seite 537 - 19.1 System

21-30VISLINE (Statement)FunctionDraws a line on the screen.FormatVISLINE<X coordinate >, <Y coordinate >, <Length> [, <Angle>]

Seite 538 - LETENV (Statement)

Chapter 21 Vision Control (Option)21-31VISPTP (Statement)FunctionDraws a line connecting two points on the screen.FormatVISPTP <Start point X coor

Seite 539 - VER$ (Function)

21-32VISRECT (Statement)FunctionDraws a rectangle on the screen.FormatVISRECT <X coordinate >, <Y coordinate >, <Width>, <Height&

Seite 540 - 19.2 Log

Chapter 21 Vision Control (Option)21-33VISCIRCLE (Statement)FunctionDraws a circle on the screen.FormatVISCIRCLE <X coordinate >, <Y coordin

Seite 541 - CLEARLOG (Statement)

21-34VISELLIPSE (Statement)FunctionDraws an ellipse on the screen.FormatVISELLIPSE <X coordinate >, <Y coordinate >, <Width>, <He

Seite 542 - STOPLOG (Statement)

Chapter 21 Vision Control (Option)21-35VISSECT (Statement)FunctionDraws a sector on the screen.FormatVISSECT <X coordinate>, <Y coordinate&g

Seite 543 - Preprocessor

21-36VISCROSS (Statement)FunctionDraws a cross symbol on the screen.FormatVISCROSS <X coordinate>, <Y coordinate>[, <Axis length 1>

Seite 544

Chapter 21 Vision Control (Option)21-37VISLOC (Statement)FunctionDesignates the display position of characters.FormatVISLOC <X position>, <Y

Seite 545 - (Preprocessor Statement)

Chapter 1 Sample Program1-7Program coding list "WAIT →→→→ SET" (Library)'!TITLE “WAIT  SET”PROGRAM dioWaitAndSet(waitIndex%, ackIndex

Seite 546 - (Preprocessor Statement)

21-38Related TermsVISPRINTExampleVISPLNOUT 0 'Displays storage memory 0 (processing screen).VISSCREEN 0,0,1 'Instantaneously draws on proces

Seite 547

Chapter 21 Vision Control (Option)21-39VISDEFCHAR (Statement)FunctionDesignates the size of characters and the display method.FormatVISDEFCHAR <La

Seite 548 - 20.2 File Fetch

21-40VISPRINT (Statement)FunctionDisplays characters and figures on the screen.FormatVISPRINT <Message>[<Separator><Message> …]Expla

Seite 549 - 20.3 Optimization

Chapter 21 Vision Control (Option)21-4121.6 Vision ProcessingVISWORKPLN (Statement)FunctionDesignates the storage memory (process screen) to process.

Seite 550

21-42VISGETP (Function)FunctionObtains designated coordinate brightness from the storage memory(processing screen).FormatVISGETP (<Coordinate X>

Seite 551 - (Option)

Chapter 21 Vision Control (Option)21-43VISHIST (Statement)FunctionObtains the histogram (brightness distribution) of the screen.FormatVISHIST <Win

Seite 552

21-44VISREFHIST (Function)FunctionReads histogram results.FormatVISREFHIST (<Brightness value >)Explanation<Brightness value> Designates t

Seite 553

Chapter 21 Vision Control (Option)21-45VISLEVEL (Function)FunctionObtains a binarization level based on the histogram result.FormatVISLEVEL (<Mode

Seite 554

21-46ExampleVISCLS 0 'WINDMAKE R,1,100,100,0,2 'Sets window 1 to rectangle.CAMIN 1 'Obtains a camera image from the storage memory.VISW

Seite 555 - 21.3 Image Input and Output

Chapter 21 Vision Control (Option)21-47VISBINA (Statement)FunctionBinarizes the screen.FormatVISBINA <Window number>, <Coordinate X>, <

Seite 556 - CAMMODE (Statement)

ivPART 2 COMMAND REFERENCEChapter 6 Guide to Command ReferenceThis chapter provides command descriptions and a command list for the PAC robot.Use th

Seite 558 - CAMLEVEL (Statement)

21-48ExampleVISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.WINDMAKE R,1,100,100,0,2 'Sets window 1 to rectangle.CAMIN 1 'Ob

Seite 559 - VISCAMOUT (Statement)

Chapter 21 Vision Control (Option)21-49VISBINAR (Statement)FunctionDisplays a binarized screen.FormatVISBINAR <Mode>[, <Binary lower limit&g

Seite 560 - VISPLNOUT (Statement)

21-50VISFILTER (Statement)FunctionExecutes filtering on the screen.FormatVISFILTER <Window number>, <Coordinate X>, <Coordinate Y>,

Seite 561 - VISOVERLAY (Statement)

Chapter 21 Vision Control (Option)21-51Note (1): If the process screen and the storage screen have the samenumber, an error will result.Note (2): Des

Seite 562

21-52VISMASK (Statement)FunctionExecutes calculations between images.FormatVISMASK <Window number>, <Coordinate X>, <Coordinate Y>,&

Seite 563 - VISDEFTABLE (Statement)

Chapter 21 Vision Control (Option)21-53Note (1): If the process screen and the storage screen have the samenumber, an error will result.Note (2): Des

Seite 564

21-54VISCOPY (Statement)FunctionCopies the screen.FormatVISCOPY <Copy source screen>, <Copy destination screen>Explanation<Copy source

Seite 565 - VISREFTABLE (Function)

Chapter 21 Vision Control (Option)21-55VISMEASURE (Statement)FunctionMeasures features in the window (area, center of gravity, main axis angle).Forma

Seite 566 - 21.4 Window Setting

21-56Note (1): Designate the process area with a window. (Only the sectorwindow cannot measure the main axis angle.)Note (2): If the designated window

Seite 567 - (End X coordinate

Chapter 21 Vision Control (Option)21-57ExampleVISSCREEN 0,0,1 'Instantaneously draws on storage memory 0.WINDMAKE R,1,512,480,0,2 'Sets win

Seite 568

Chapter 2Program FlowThis chapter provides an explanation of the flowregulation required for creating programs usingthe PAC language.

Seite 569

21-58VISPROJ (Statement)FunctionMeasures the projected data in the window.FormatVISPROJ <Window number>, <Coordinate X>, <Coordinate Y&

Seite 570

Chapter 21 Vision Control (Option)21-59Note (3): The following data can be obtained with the processingresult obtaining function.Note (4): When this

Seite 571 - WINDCLR (Statement)

21-60VISEDGE (Statement)FunctionMeasures the edge in a window.FormatVISEDGE<Window number>,<Coordinate X>,<Coordinate Y>, <Step&g

Seite 572 - WINDCOPY (Statement)

Chapter 21 Vision Control (Option)21-61<Level> Designates the level to detect the edge (0 to 512).<Mode> Designates the method for detect

Seite 573

21-62Note (1): Designate the processing range with a window.Note (2): If the specified window is larger than the screen, an error willresult.Note (3):

Seite 574 - WINDREF (Function)

Chapter 21 Vision Control (Option)21-63ExampleVISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.VISPLNOUT 0 'VISCLS 0 'WINDMA

Seite 575 - WINDDISP (Statement)

21-6421.7 Code RecognitionVISREADQR (Statement)FunctionReads the QR code.FormatVISREADQR <Window number>, <Coordinate X>, <Coordinate Y

Seite 576 - 21.5 Draw

Chapter 21 Vision Control (Option)21-65Note (1): Designate the process range with a window.Note (2): The only window shape that can be designeted is

Seite 577

21-66ExampleVISSCREEN 1,0,1 'VISCLS 'WINDMAKE R,1,512,480,0,2 'Sets window 1 to a rectangle.CAMIN 1 'Obtains a camera image from s

Seite 578 - VISBRIGHT (Statement)

Chapter 21 Vision Control (Option)21-6721.8 LabelingBLOB (Statement)FunctionExecutes labeling.FormatBLOB <Widow number>, <Coordinate X>,

Seite 580

21-68Note (1): Designate the process range with a window.Note (2): If the designated window position is out of screen, theexecution will result in an

Seite 581 - ( X coordinate, Y coordinate)

Chapter 21 Vision Control (Option)21-69ExampleVISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.VISCLS 0 'WINDMAKE R,1,512,480,0,2

Seite 582 - VISLINE (Statement)

21-70BLOBMEASURE (Statement)FunctionExecutes feature measurement of the object label number.FormatBLOBMEASURE <Label number>, <Feature>Exp

Seite 583 - VISPTP (Statement)

Chapter 21 Vision Control (Option)21-71Note (1): Before executing this function, you need to execute labelingwith BLOB.Note (2): When you obtain the

Seite 584 - VISRECT (Statement)

21-72BLOBLABEL (Function)FunctionObtains the label number for designated coordinates.FormatBLOBLABEL(<Coordinate X>, <Coordinate Y>)Explan

Seite 585 - (X coordinate, Y coordinate)

Chapter 21 Vision Control (Option)21-73ExampleVISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.WINDMAKE R,1,512,480,0,2 'Sets win

Seite 586 - VISELLIPSE (Statement)

21-74BLOBCOPY (Statement)FunctionCopies an object label number.FormatBLOBCOPY <Label number>, <Copy destination screen>, <Coordinate X&

Seite 587 - VISSECT (Statement)

Chapter 21 Vision Control (Option)21-75ExampleVISSCREEN 0,1, 'Instantaneously draws on storage memory 1.VISCLS 128 'Clears the screen.VISSC

Seite 588 - VISCROSS (Statement)

21-7621.9 Search FunctionSHDEFMODEL (Statement)FunctionRegisters the search model.FormatSHDEFMODEL <Model number>, <Coordinate X>, <Coo

Seite 589 - VISLOC (Statement)

Chapter 21 Vision Control (Option)21-77Note (1): If the model to be registered is not more than 16 pixels insidefrom the edge of the screen, it canno

Seite 590

Chapter 2 Program Flow2-12.1 Calling a Program and SubroutineA section of a program that repeats a specific motion can be put out of theprogram and

Seite 591 - VISDEFCHAR (Statement)

21-78SHREFMODEL (Statement)FunctionRefers to registered model data.FormatSHREFMODEL (<Model number>,<Item>)Explanation<Model number>

Seite 592 - VISPRINT (Statement)

Chapter 21 Vision Control (Option)21-79SHCOPYMODEL (Statement)FunctionCopies a registered model.FormatSHCOPYMODEL <Copy source model number>,&l

Seite 593 - 21.6 Vision Processing

21-80SHCLRMODEL (Statement)FunctionDeletes a registered model.FormatSHCLRMODEL <Model number>Explanation<Model number> Designates the mod

Seite 594 - Y coordinate)

Chapter 21 Vision Control (Option)21-81SHDISPMODEL (Statement)FunctionDisplays a registered model on the screen.FormatSHDISPMODEL <Model number>

Seite 595 - VISHIST (Statement)

21-82SHMODEL (Statement)FunctionSearches for a model.FormatSHMODEL <Window number>, <Coordinate X>, <Coordinate Y>, <Modelnumber&

Seite 596 - VISREFHIST (Function)

Chapter 21 Vision Control (Option)21-83Measures an angle of an object whose angle from the angular origin exists in an area ranging from[Start Angle]

Seite 597 - VISLEVEL (Function)

21-84Note (7): The shape of the window available to designate is a rectanglewith 0 degrees. If you designate any shape other than this, anerror occur

Seite 598

Chapter 21 Vision Control (Option)21-85Related TermsWINDMAKE, VISWORKPLN, VISGETNUM, VISSTATUS, SHDEFMODELExampleVISSCREEN 1,0,1 'Instantaneousl

Seite 599 - VISBINA (Statement)

21-86SHDEFCORNER (Statement)FunctionSets the conditions for a corner search.FormatSHDEFCORNER <Distance>, <Clearance>, <Width>, <

Seite 600

Chapter 21 Vision Control (Option)21-87SHCORNER (Statement)FunctionSearches for a corner.FormatSHCORNER <Window number>, <Coordinate X>,

Seite 601 - VISBINAR (Statement)

2-22.1.1 Calling a SubroutineTo use the same program at different positions in one program describe theprocess as a subroutine. The subroutine can b

Seite 602 - VISFILTER (Statement)

21-88Note (1): Designate the process range with a window.Note (2): If the designated window is not positioned on the screen, anexecution error will re

Seite 603

Chapter 21 Vision Control (Option)21-89SHDEFCIRCLE (Statement)FunctionSets the condition for searching a circle.FormatSHDEFCIRCLE <Clearance>,

Seite 604 - VISMASK (Statement)

21-90SHCIRCLE (Statement)FunctionSearches for a circle.FormatSHCIRCLE <Window number>, <Coordinate X>, <Coordinate Y>, <Radius&g

Seite 605

Chapter 21 Vision Control (Option)21-91Note (1): Designate the process range with the window.Note (2): If the position of the designated window is no

Seite 606 - VISCOPY (Statement)

21-92ExampleVISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.VISCLS 0 'WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.C

Seite 607 - VISMEASURE (Statement)

Chapter 21 Vision Control (Option)21-9321.10 Obtaining ResultsVISGETNUM (Function)FunctionObtains an image process result from the storage memory.Fo

Seite 608

21-94VISGETSTR (Function)FunctionObtains code recognition result.FormatVISGETSTR(<Leading character number>, <Number of characters>)Explan

Seite 609

Chapter 21 Vision Control (Option)21-95VISPOSX (Function)FunctionObtains an image process result (Coordinate X) from the storage memory.FormatVISPOSX

Seite 610 - VISPROJ (Statement)

21-96VISPOSY (Function)FunctionObtains an image process result (Coordinate Y) from the storage memory.FormatVISPOSY (<Parameter>)Explanation<

Seite 611

Chapter 21 Vision Control (Option)21-97VISSTATUS (Function)FunctionMonitors the process result of each instruction.FormatVISSTATUS (<Parameter>

Seite 612 - VISEDGE (Statement)

Chapter 2 Program Flow2-32.1.2 Calling a ProgramIf a program is created separately from the one that is mainly executed, theprogram can be used by c

Seite 613

21-98VISREFCAL (Function)FunctionObtains calibration data (Vision-robot coordinate transformation).FormatVISREFCAL (<Set number>, <Data numbe

Seite 614

Chapter 22Appendices

Seite 616 - 21.7 Code Recognition

Chapter 22 Appendices22-122.1 Character Code TableTable 1. Character Code Table+0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F001020 ! ” #$~& ’

Seite 617

22-222.2 Figures of the Shoulder, Elbow, and Wrist[ 1 ] Available 32 FiguresA 6-axis robot can take different figures for its shoulder, elbow, wrist,

Seite 618

Chapter 22 Appendices22-3(1) Shoulder figureA shoulder figure is defined by a set of the values of the 1st-, 2nd-, and 3rd-axiscomponents.The robot

Seite 619 - Filet dia. reference point

22-4(3) Wrist figureA wrist figure is defined by a set of the values of the 4th- and 5th-axis components.The robot can take two different shoulder fi

Seite 620

Chapter 22 Appendices22-5(5) 4th-axis figureThe 4th-axis figure is defined by a value of the 4th-axis component.The robot can take two different 4th

Seite 621

22-6Figure-1LEFTY, ABOVE, and NONFLIPFigure-2LEFTY, ABOVE, and FLIPFigure-3LEFTY, BELOW, and NONFLIPFigure-4LEFTY, BELOW, and FLIPFigure-5RIGHTY, ABOV

Seite 622 - Peripheral length

Chapter 22 Appendices22-7CAUTION: When carrying out a command with CP control, if the robot figures atthe start point differ from those saved in prog

Seite 623

2-42.1.3 Program Recursive CallWhen a program is called, the calling program itself can be designated as aprogram name using a CALL statement. This

Seite 624 - Label number 3

22-8[ 2 ] Boundaries of Robot FiguresThis section describes the boundary of each of the robot shoulder, elbow, wrist, and6th-axis figures.When judging

Seite 625

Chapter 22 Appendices22-9(1) LEFTY/RIGHTY (Shoulder figure)The rotary axis of the 1st axis is defined as the boundary between LEFTY andRIGHTY.When v

Seite 626 - Label number3

22-10(2) ABOVE/BELOW (Elbow figure)The centerline of the arm link (connecting the shoulder with elbow) is defined as theboundary between ABOVE and BE

Seite 627

Chapter 22 Appendices22-11(3) FLIP/NONFLIP (Wrist figure)The rotary axis of the 4th axis is defined as the boundary between FLIP andNONFLIP.If the n

Seite 628 - SHDEFMODEL (Statement)

22-12(4) SINGLE/DOUBLE (6th-axis figure)If the rotation angle (θ6) of the 6th axis is within the range of -180°<θ6≤180° aroundthe Z axis in mechan

Seite 629

Chapter 22 Appendices22-1322.3 Environment Setting ValuesTable number Macro name Description WINCAPSII1 cnfSYSSystem parameter table 2cnfARMPath cre

Seite 630 - SHREFMODEL (Statement)

22-1422.4 Configuration ListThe table below lists the items displayed in the User Preferences window of the teachpendant (Access: [F2 Arm]—[F6 Aux.]—[

Seite 631 - SHCOPYMODEL (Statement)

Chapter 22 Appendices22-15No. ItemsFactorydefaultPowering-ondefaultDescription Comments23 Control log samplingintervals8 Last value atpowering-offSam

Seite 632 - SHCLRMODEL (Statement)

22-16No. ItemsFactorydefaultPowering-ondefaultDescription Comments53to60Gain reduce rate(J1 to J8)Valueproperto eachrobotLast value atpowering-offGain

Seite 633 - SHDISPMODEL (Statement)

Chapter 22 Appendices22-17No. ItemsFactorydefaultPowering-ondefaultDescription Comments81 Damper setting rate(RX)(For 6-axis robot)10000 10000 Dampin

Seite 634 - SHMODEL (Statement)

Chapter 2 Program Flow2-52.2 Running a ProgramThe following 3 methods are available for running a program.• Start using teach pendant operation.• St

Seite 635

22-18No. ItemsFactorydefaultPowering-ondefaultDescription Comments92 Force limit rate (+RX)(For 6-axis robot)10000 10000 Force control rate around the

Seite 636

Chapter 22 Appendices22-19No. ItemsFactorydefaultPowering-ondefaultDescription Comments110 Compliance/positionalerror allowance (RX)(For 6-axis robot

Seite 637

22-20196J4 brake lock setting(For VM-6083D/VM-60B1D and VS-Eseries)00If the J4 overrides its software motionlimit when the brake is released:0: Will l

Seite 638 - Corner position

Chapter 22 Appendices22-2122.5 Reserved Word ListYou cannot use these reserved words as variable names or label names.AABOVE ABS ACCEL ACOS ADDCO

Seite 639 - SHCORNER (Statement)

22-22SS SEC SELECT SENDKEY SET SETAREA SETVALVE SGNSHADDGROUP SHCIRCLE SHCLRGROUP SHCLRMODELSHCOPYMODEL SHCORNER SHDEFCIRCLE SHDEFCORNERS

Seite 640

Chapter 22 Appendices22-2322.6 Conventional Language CommandCorrespondence Table (VS)nnnn Motion Command Correspondence TableConventional language co

Seite 641 - Pad width

22-24Conventional language command PAC COMMAND RemarkLABL n *labeln.LABL n *labeln.IPCLR n CALL pltResetAll (n)INTRPT INTERRUPT ONAfter the next comma

Seite 642 - SHCIRCLE (Statement)

Chapter 22 Appendices22-25nnnn Operation Command Correspondence TableConventional language command PAC COMMAND Remark+ + Addition- - Subtraction* * M

Seite 643

22-26Functions to move the coordinate systemAlthough the PAC language does not support coordinate system moving functions (TRANScommand) of convention

Seite 644

Chapter 22 Appendices22-27(Note) The TRANS command is a coordinate system movement command which uses the toolcoordinate system as the reference; how

Seite 645 - 21.10 Obtaining Results

2-62.3 MultitaskingA PAC language program can concurrently execute progress management ofmultiple programs. Each program forms its own motion proces

Seite 646 - VISGETSTR (Function)

22-2822.7 Version Correspondence TableExpression values used with the VER$ function and the corresponding modules are listedon the table below.For the

Seite 647 - VISPOSX (Function)

Chapter 22 Appendices22-2922.8 Setting Parameter Tablennnn Pac Manager - ProgramParameter name Macro name DescriptionNumber of Type I variables PC_NO

Seite 648 - VISPOSY (Function)

22-30nnnn Arm Manager - Path creationParameter name Macro name DescriptionPositive direction software motion limit (J1,deg*10^3) AM_JPRM_PLIM1 1st axi

Seite 649 - VISSTATUS (Function)

Chapter 22 Appendices22-31nnnn Vision Manager - General SettingParameter name Macro name DescriptionCamera 1 - shutter system CA_SHUT1 Camera 1 shutt

Seite 650 - VISREFCAL (Function)

22-32Parameter name Macro name DescriptionRS232C(2). Communication priority COM_RS2_ACCESSCommunication priority setting of RS232C channel 2 of thecon

Seite 653 - 22.1 Character Code Table

AAbsolute Motion ...3-1Acceleration Setting...4-2An

Seite 654 - [ 1 ] Available 32 Figures

HHexadecimal Format ...7-13Histogram(vision control) ...5-4Home Posi

Seite 655 - (2) Elbow figure

RRectangle window...21-17Relation between level and edge...21-61Relational Opera

Seite 656 - (4) 6th-axis figure

Chapter 2 Program Flow2-7The following two programs “MOTION1” and “TIMING” are examples ofsynchronization control that use semaphores.If the program

Seite 658

Vertical articulated V*-D/-E SERIESHorizontal articulated H*-D SERIESCartesian coordinate XYC-4D SERIESVision device µVision-21 SERIESPROGRAMMER’S

Seite 660 - Figure 7. Location of Pw

SAFETY PRECAUTIONS1SAFETY PRECAUTIONSBe sure to observe all of the following safety precautions.Strict observance of these warning and caution indicat

Seite 661

2-82.4 Serial Communication2.4.1 Circuit NumberThe table below lists the relationship between the circuit numbers and channelnumbers assigned in the

Seite 662

Chapter 2 Program Flow2-92.4.4 Sample ApplicationIn this section, a practical program sample is illustrated as a simple applicationthat uses serial

Seite 663

2-10'!TITLE ”Sending”PROGRAM PRO2DOPRINT #2,I1DELAY 2000LOOPENDFig. 2-8 Program “PRO2” “Sending” of the Robot Controller2.4.4.2 Personal Comput

Seite 664 - ≤180° around

Chapter 2 Program Flow2-11PDQComm1.PortOpen = TrueEnd Sub'' Closes the communication port.''Private Sub CommClose()'--------

Seite 665

2-12'----------------------------------------'Reading received data.'----------------------------------------If PDQComm1.InBufferCount

Seite 666 - 22.4 Configuration List

Chapter 2 Program Flow2-132.4.5 Serial Binary Transmission (Version 1.5 or later)In Version 1.4 or earlier, the robot controller can transmit only A

Seite 667

2-142.5 LibraryThe program library is used to collect all-purpose programs like parts and usethem accordingly. In the PAC language, since other prog

Seite 668

Chapter 2 Program Flow2-152.5.2 Palletizing LibraryThere is no special instruction for palletizing in the PAC language. Butpalletizing operation ca

Seite 669

2-16[ 1 ] Palletizing ParameterFigs. 2-13 to 2-15 and Table 2-3 show the required parameters for palletizing.The PAC language stores these parameters

Seite 670

Chapter 2 Program Flow2-17Table 2-3 Parameters Required for PalletizingSymbol Name Meaning UnitPalletizingnumberPalletizing index numberNone(Integer

Seite 671

21. IntroductionThis section provides safety precautions to be observed duringinstallation, teaching, inspection, adjustment, and maintenanceof the ro

Seite 672 - 199 Arc interpolation

2-18Note: H1 and H2 must satisfy the following conditions.H1 > {H3 ×××× (K-1)} + 5H2 > {H3×(K-1)} + 5If these conditions are not satisfied, an e

Seite 673 - 22.5 Reserved Word List

Chapter 2 Program Flow2-19[ 2 ] Parameter Value SettingSet the parameter values such as the numbers of side and lengthwisepartitions and the layers

Seite 674

2-20[ 3 ] Palletizing CounterIn palletizing the robot counts the number of partitions and stores the countvalues as variables.There are 4 types of co

Seite 675 - Correspondence Table (VS)

Chapter 2 Program Flow2-21 When N=3, m=5, and K=3,Point a is N=1, m=1, K=1Point b is N=2, m=2, K=2Point c is N=3, m=4, K=3Fig. 2-20 Relation between

Seite 676

2-222.5.2.2 Palletizing ProgramA practical palletizing program varies in special situations depending on theapplication. However, the standard proce

Seite 677

Chapter 2 Program Flow2-23[ 1 ] Palletizing Program CustomizationQ. How do you change a palletizing program to execute to 1?A. Change the value of “

Seite 678

2-24Q. How do you chAnge N1, M1 and K1?A. Add the program libraries “pltLetK1”, “pltLetM1”, “pltLetN1”.* call pltLetK1(Index, iValue)* call pltLetM1(I

Seite 679

Chapter 2 Program Flow2-25Q. How do you change the total counter?A. Add the program library “pltIncCnt.”* callpltLetCnt(Index, iValue)'Index...P

Seite 681 - 22.8 Setting Parameter Table

Chapter 3Robot MotionThere are various robot motions according toreference point settings or how to determinewhether the robot reaches the destination

Seite 682

SAFETY PRECAUTIONS32.3 Control devicesoutside the robot'srestricted spaceThe robot controller, teach pendant, and operating panel shouldbe instal

Seite 684

Chapter 3 Robot Motion3-13.1 Absolute Motion and Relative Motion3.1.1 Absolute MotionAn absolute motion is a motion to move a taught position.An ab

Seite 685 - Index

3-2MOVEMENT1 motionMOVEMENT2 motionFig. 3-3 Motion Examples of Two ProgramsIf you delete the first motion instruction “MOVE P, P1” from “MOVEMENT1”an

Seite 686

Chapter 3 Robot Motion3-33.2 Confirming Reach PositionThere are three methods of determining the first motion finish when the robotarm changes from

Seite 687

3-43.2.4 Motion Examples of Pass, End and Encoder Value CheckThese examples show three programs to move the robot from the currentposition P1 to poin

Seite 688

Chapter 3 Robot Motion3-53.2.5 Execution Time Difference among Pass Motion, EndMotion and Encoder Value Check MotionAmong the three motions, the pas

Seite 689

3-63.2.6 If Pass Motion Does Not ExecuteIn the following cases, even if a pass motion is designated, the robot moveswith end motion.3.2.6.1 If Pass

Seite 690

Chapter 3 Robot Motion3-73.2.7 If Pass Motion Effect Reduces3.2.7.1 If Non-Motion Command Is Present after Pass MotionIf a non-motion command is pr

Seite 691

3-83.2.8 If Acceleration Affects Pass Motion PathThe VS-D series robot automatically sets the square of speed divided by onehundred for acceleration

Seite 692

Chapter 3 Robot Motion3-93.2.9 Pass Start DisplacementIf you designate pass start displacement with “@P,” the next motion startstogether at the star

Kommentare zu diesen Handbüchern

Keine Kommentare