947
FANUC Robotics SYSTEM R-30iA Controller KAREL Reference Manual MARRCRLRF04071E REV B Applies to Version 7.30 © 2007 FANUC Robotics America, Inc.

R-30ia Karel Reference Manual [Ver.7.30][Marrcrlrf04071e Rev.b]

Embed Size (px)

Citation preview

FANUC Robotics SYSTEM R-30iA Controller KAREL Reference ManualMARRCRLRF04071E REV BApplies to Version 7.30 2007 FANUC Robotics America, Inc.

About This ManualThis manual can be used with controllers labeled R-30iA or R-J3iC. If you have a controller labeled R-J3iC, you should read R-30iA as R-J3iC throughout this manual.

Copyrights and TrademarksThis new publication contains proprietary information of FANUC Robotics America, Inc. furnished for customer use only. No other uses are authorized without the express written permission of FANUC Robotics America, Inc. FANUC Robotics America, Inc 3900 W. Hamlin Road Rochester Hills, Michigan 48309-3253 FANUC Robotics America, Inc. The descriptions and specifications contained in this manual were in effect at the time this manual was approved. FANUC Robotics America, Inc, hereinafter referred to as FANUC Robotics, reserves the right to discontinue models at any time or to change specifications or design without notice and without incurring obligations. FANUC Robotics manuals present descriptions, specifications, drawings, schematics, bills of material, parts, connections and/or procedures for installing, disassembling, connecting, operating and programming FANUC Robotics products and/or systems. Such systems consist of robots, extended axes, robot controllers, application software, the KAREL programming language, INSIGHT vision equipment, and special tools. FANUC Robotics recommends that only persons who have been trained in one or more approved FANUC Robotics Training Course(s) be permitted to install, operate, use, perform procedures on, repair, and/or maintain FANUC Robotics products and/or systems and their respective components. Approved training necessitates that the courses selected be relevant to the type of system installed and application performed at the customer site.

i

About This ManualWarning

MARRCRLRF04071E REV B

This equipment generates, uses, and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual, may cause interference to radio communications. As temporarily permitted by regulation, it has not been tested for compliance with the limits for Class A computing devices pursuant to subpart J of Part 15 of FCC Rules, which are designed to provide reasonable protection against such interference. Operation of the equipment in a residential area is likely to cause interference, in which case the user, at his own expense, will be required to take whatever measure may be required to correct the interference. FANUC Robotics conducts courses on its systems and products on a regularly scheduled basis at its headquarters in Rochester Hills, Michigan. For additional information contact FANUC Robotics America, Inc Training Department 3900 W. Hamlin Road Rochester Hills, Michigan48309-3253 www.fanucrobotics.com For customer assistance, including Technical Support, Service, Parts & Part Repair, and Marketing Requests, contact the Customer Resource Center, 24 hours a day, at 1-800-47-ROBOT (1-800-477-6268). International customers should call 011-1-248-377-7159. Send your comments and suggestions about this manual to: [email protected] The information illustrated or contained herein is not to be reproduced, copied, downloaded, translated into another language, distributed, or published in any physical or electronic format, including Internet, or transmitted in whole or in part in any way without the prior written consent of FANUC Robotics America, Inc. AccuStat, ArcTool, KAREL, PaintTool,PalletTool, SOCKETS, SpotTool, SpotWorks, and TorchMateare Registered Trademarks of FANUC Robotics. FANUC Robotics reserves all proprietary rights, including but not limited to trademark and trade name rights, in the following names: AccuAir, AccuCal, AccuChop, AccuFlow, AccuPath, AccuSeal, ARC Mate, ARC Mate Sr., ARC Mate System 1, ARC Mate System 2, ARC Mate System 3, ARC Mate System 4, ARC Mate System 5, ARCWorks Pro, AssistTool, AutoNormal, AutoTCP, BellTool, BODYWorks, Cal Mate, Cell Finder, Center Finder, Clean Wall, DualARM, LR Tool, MIG Eye, MotionParts, MultiARM, NoBots, Paint Stick,

ii

MARRCRLRF04071E REV B

About This Manual

PaintPro, PaintTool 100, PAINTWorks, PAINTWorks II, PAINTWorks III, PalletMate, PalletMate PC, PalletTool PC, PayloadID, RecipTool, RemovalTool, Robo Chop, Robo Spray, S-420i, S-430i, ShapeGen, SoftFloat, SOFT PARTS, SpotTool+, SR Mate, SR ShotTool, SureWeld, SYSTEM R-J2 Controller, SYSTEM R-J3 Controller, SYSTEM R-J3iB Controller, SYSTEM R-J3iC Controller, SYSTEM R-30iA Controller, TCP Mate, TorchMate, TripleARM, TurboMove, visLOC, visPRO-3D, visTRAC, WebServer, WebTP, and YagTool.

PatentsOne or more of the following U.S. patents might be related to the FANUC Robotics products described in this manual. FRA Patent List 4,630,567 4,639,878 4,707,647 4,708,175 4,708,580 4,942,539 4,984,745 5,238,029 5,239,739 5,272,805 5,293,107 5,293,911 5,331,264 5,367,944 5,373,221 5,421,218 5,434,489 5,644,898 5,670,202 5,696,687 5,737,218 5,823,389 5,853,027 5,887,800 5,941,679 5,959,425 5,987,726 6,059,092 6,064,168 6,070,109 6,086,294 6,122,062 6,147,323 6,204,620 6,243,621 6,253,799 6,285,920 6,313,595 6,325,302 6,345,818 6,356,807 6,360,143 6,378,190 6,385,508 6,425,177 6,477,913 6,490,369 6,518,980 6,540,104 6,541,757 6,560,513 6,569,258 6,612,449 6,703,079 6,705,361 6,726,773 6,768,078 6,845,295 6,945,483 7,149,606 FANUC LTD Patent List 4,571,694 4,626,756 4,700,118 4,706,001 4,728,872 4,732,526 4,742,207 4,835,362 4,894,596 4,899,095 4,920,248 4,931,617 4,934,504 4,956,594 4,967,125 4,969,109 4,970,370 4,970,448 4,979,127 5,004,968 5,006,035 5,008,834 5,063,281 5,066,847 5,066,902 5,093,552 5,107,716 5,111,019 5,130,515 5,136,223 5,151,608 5,170,109 5,189,351 5,267,483 5,274,360 5,292,066 5,300,868 5,304,906 5,313,563 5,319,443 5,325,467 5,327,057 5,329,469 5,333,242 5,337,148 5,371,452 5,375,480 5,418,441 5,432,316 5,440,213 5,442,155 5,444,612 5,449,875 5,451,850 5,461,478 5,463,297 5,467,003 5,471,312 5,479,078 5,485,389 5,485,552 5,486,679 5,489,758 5,493,192 5,504,766 5,511,007 5,520,062 5,528,013 5,532,924 5,548,194 5,552,687 5,558,196 5,561,742 5,570,187 5,570,190 5,572,103 5,581,167 5,582,750 5,587,635 5,600,759 5,608,299 5,608,618 5,624,588 5,630,955 5,637,969 5,639,204 5,641,415 5,650,078 5,658,121 5,668,628 5,687,295 5,691,615 5,698,121 5,708,342 5,715,375 5,719,479 5,727,132 5,742,138 5,742,144 5,748,854 5,749,058 5,760,560 5,773,950 5,783,922 5,799,135 5,812,408 5,841,257 5,845,053 5,872,894 5,887,122 5,911,892 5,912,540 5,920,678 5,937,143 5,980,082 5,983,744 5,987,591 5,988,850 6,023,044 6,032,086 6,040,554 6,059,169 6,088,628 6,097,169 6,114,824 6,124,693 6,140,788 6,141,863 6,157,155 6,160,324 6,163,124 6,177,650 6,180,898 6,181,096 6,188,194 6,208,105 6,212,444 6,219,583 6,226,181 6,236,011 6,236,896 6,250,174 6,278,902 6,279,413 6,285,921 6,298,283 6,321,139 6,324,443 6,328,523 6,330,493 6,340,875 6,356,671 6,377,869 6,382,012 6,384,371 6,396,030 6,414,711 6,424,883 6,431,018 6,434,448 6,445,979 6,459,958 6,463,358 6,484,067 6,486,629 6,507,165 6,654,666 6,665,588 6,680,461 6,696,810 6,728,417 6,763,284 6,772,493 6,845,296 6,853,881 6,888,089 6,898,486 6,928,337 6,917,837 6,965,091

iii

About This Manual

MARRCRLRF04071E REV B

6,970,802 7,038,165 7,069,808 7,08,4900 7,092,791 7,131,848 7,133,747 7,143,100 7,149,602 7,161,321 7,171,041 7,174,234 7,173,213 7,177,722 7,177,439 7,181,294 7,181,313 VersaBell, ServoBell and SpeedDock Patents Pending.

ConventionsThis manual includes information essential to the safety of personnel, equipment, software, and data. This information is indicated by headings and boxes in the text. Warning Information appearing under WARNING concerns the protection of personnel. It is boxed and in bold type to set it apart from other text. Caution Information appearing under CAUTION concerns the protection of equipment, software, and data. It is boxed to set it apart from other text. Note Information appearing next to NOTE concerns related information or useful hints.

iv

Contents

About This Manual Safety

................................................................................................................................

i

..............................................................................................................................................1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3

xxvii 11 12 12 12 14 14 14 15 15 15 16 17 17 17 18 110 110 21 22 22 25 25 27 27 28 29 29 210 212 213 213 215 217 218 220

Chapter 1

................................................................................ .................................................................................................................... KAREL PROGRAMMING LANGUAGE ............................................................................. Overview ......................................................................................................................... Creating a Program ............................................................................................................ Translating a Program ........................................................................................................ Loading Program Logic and Data ......................................................................................... Executing a Program .......................................................................................................... Execution History ............................................................................................................. Program Structure ............................................................................................................. SYSTEM SOFTWARE ...................................................................................................... Software Components ........................................................................................................ Supported Robots .............................................................................................................. CONTROLLER ................................................................................................................ Memory .......................................................................................................................... Input/Output System ........................................................................................................ User Interface Devices .....................................................................................................KAREL LANGUAGE OVERVIEW OVERVIEW

Chapter 2 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.3 2.4 2.4.1 2.4.2 2.5 2.5.1 2.5.2 Chapter 3

............................................................................................ LANGUAGE COMPONENTS ............................................................................................ Character Set .................................................................................................................... Operators ......................................................................................................................... Reserved Words ................................................................................................................ User-Defined Identifiers ..................................................................................................... Labels ............................................................................................................................. Predefined Identifiers ......................................................................................................... System Variables ............................................................................................................... Comments ....................................................................................................................... TRANSLATOR DIRECTIVES ....................................................................................... DATA TYPES ................................................................................................................ USER-DEFINED DATA TYPES AND STRUCTURES ......................................................... User-Defined Data Types .................................................................................................. User-Defined Data Structures ............................................................................................ ARRAYS ....................................................................................................................... Multi-Dimensional Arrays ................................................................................................ Variable-Sized Arrays ......................................................................................................LANGUAGE ELEMENTS USE OF OPERATORS

................................................................................................ 31

v

Contents3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 3.2.4 Chapter 4 4.1 4.2 4.2.1 4.2.2 4.3 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 Chapter 5 5.1 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.2 Chapter 6 6.1 6.1.1 6.1.2 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.3 6.3.1 6.3.2 6.3.3 6.3.4 Chapter 7 7.1 7.2

MARRCRLRF04071E REV BEXPRESSIONS AND ASSIGNMENTS ................................................................................ Rule for Expressions and Assignments .................................................................................. Evaluation of Expressions and Assignments ........................................................................... Variables and Expressions ................................................................................................... OPERATIONS ................................................................................................................. Arithmetic Operations ........................................................................................................ Relational Operations ......................................................................................................... Boolean Operations ........................................................................................................... Special Operations ............................................................................................................. 32 32 32 34 34 35 36 37 38 41 42 42 44 44 45 45 46 46 46 47 51 52 52 55 57 58 59 513 515 61 63 63 66 68 69 69 610 613 614 616 616 617 618 619

......................................................................... OVERVIEW .................................................................................................................... MOTION CONTROL STATEMENTS .................................................................................. Extended Axis Motion ....................................................................................................... Group Motion ................................................................................................................... PROGRAM CONTROL STRUCTURES ............................................................................... Alternation Control Structures ............................................................................................. Looping Control Statements ................................................................................................ Unconditional Branch Statement .......................................................................................... Execution Control Statements .............................................................................................. Condition Handlers ............................................................................................................MOTION AND PROGRAM CONTROL

................................................................................................................. ROUTINE EXECUTION ................................................................................................... Declaring Routines ............................................................................................................ Invoking Routines ............................................................................................................. Returning from Routines .................................................................................................... Scope of Variables ............................................................................................................. Parameters and Arguments .................................................................................................. Stack Usage ................................................................................................................... BUILT- IN ROUTINES ....................................................................................................ROUTINES

............................................................................................ CONDITION HANDLER OPERATIONS ............................................................................. Global Condition Handlers .................................................................................................. Local Condition Handlers ................................................................................................... CONDITIONS ................................................................................................................. Port_Id Conditions ............................................................................................................ Relational Conditions ......................................................................................................... System and Program Event Conditions ................................................................................ Local Conditions ............................................................................................................. Synchronization of Local Condition Handlers ....................................................................... ACTIONS ..................................................................................................................... Assignment Actions ......................................................................................................... Motion Related Actions .................................................................................................... Routine Call Actions ........................................................................................................ Miscellaneous Actions .....................................................................................................CONDITION HANDLERS FILE INPUT/OUTPUT OPERATIONS

........................................................................... 71 OVERVIEW .................................................................................................................... 73 FILE VARIABLES ............................................................................................................ 73

vi

MARRCRLRF04071E REV B7.3 7.3.1 7.3.2 7.3.3 7.4 7.5 7.6 7.7 7.8 7.8.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.9 7.9.1 7.9.2 7.9.3 7.9.4 7.9.5 7.9.6 7.9.7 7.9.8 7.9.9 7.10 7.10.1 7.10.2 Chapter 8 8.1 8.2 8.3 8.3.1 8.3.2 8.3.3 8.3.4 8.4 8.5 8.5.1 8.5.2 8.5.3 8.5.4 8.5.5 8.5.6 8.5.7 8.5.8 8.5.9 Chapter 9 9.1

Contents

OPEN FILE STATEMENT ................................................................................................. 74 Setting File and Port Attributes ............................................................................................ 75 File String ...................................................................................................................... 710 Usage String ................................................................................................................... 711

............................................................................................. READ STATEMENT ....................................................................................................... WRITE STATEMENT ..................................................................................................... INPUT/OUTPUT BUFFER ............................................................................................... FORMATTING TEXT (ASCII) INPUT/OUTPUT ................................................................. Formatting INTEGER Data Items ....................................................................................... Formatting REAL Data Items ............................................................................................ Formatting BOOLEAN Data Items ..................................................................................... Formatting STRING Data Items ......................................................................................... Formatting VECTOR Data Items ........................................................................................ Formatting Positional Data Items ....................................................................................... FORMATTING BINARY INPUT/OUTPUT ........................................................................ Formatting INTEGER Data Items ....................................................................................... Formatting REAL Data Items ............................................................................................ Formatting BOOLEAN Data Items ..................................................................................... Formatting STRING Data Items ......................................................................................... Formatting VECTOR Data Items ........................................................................................ Formatting POSITION Data Items ...................................................................................... Formatting XYZWPR Data Items ....................................................................................... Formatting XYZWPREXT Data Items ................................................................................ Formatting JOINTPOS Data Items ..................................................................................... USER INTERFACE TIPS ................................................................................................. USER Menu on the Teach Pendant ..................................................................................... USER Menu on the CRT/KB .............................................................................................CLOSE FILE STATEMENT

714 714 716 717 718 719 722 725 727 731 732 734 735 736 736 736 737 737 737 738 738 738 738 740 81 82 82 83 84 85 85 86 86 87 89 817 818 821 826 829 836 839 842

..................................................................................................................... OVERVIEW .................................................................................................................... POSITIONAL DATA ......................................................................................................... FRAMES OF REFERENCE ............................................................................................... World Frame .................................................................................................................... User Frame (UFRAME) ..................................................................................................... Tool Definition (UTOOL) ................................................................................................... Using Frames in the Teach Pendant Editor (TP) ...................................................................... JOG COORDINATE SYSTEMS .......................................................................................... MOTION CONTROL ........................................................................................................ Motion Trajectory ............................................................................................................. Motion Trajectories with Extended Axes .............................................................................. Acceleration and Deceleration ........................................................................................... Motion Speed ................................................................................................................. Motion Termination ......................................................................................................... Multiple Segment Motion ................................................................................................. Path Motion ................................................................................................................... Motion Times ................................................................................................................. Correspondence Between Teach Pendant Program Motion and KAREL Program Motion ..............MOTION FILE SYSTEM

............................................................................................................ 91 OVERVIEW .................................................................................................................... 92

vii

Contents9.2 9.2.1 9.2.2 9.2.3 9.3 9.3.1 9.3.2 9.3.3 9.3.4 9.4 9.5 9.5.1 9.5.2 9.5.3 9.5.4 9.5.5 9.6 Chapter 10 10.1 10.2 10.2.1 10.2.2 10.2.3 10.2.4 10.2.5 10.2.6 10.2.7 10.2.8 10.2.9 10.2.10 10.2.11 10.2.12 10.3 10.3.1 10.3.2 10.3.3 10.3.4 10.3.5 10.3.6 10.3.7 10.3.8 10.3.9 10.3.10 10.3.11 10.3.12 10.3.13 10.3.14 10.3.15 10.3.16 10.3.17 10.3.18

MARRCRLRF04071E REV BFILE SPECIFICATION ...................................................................................................... Device Name .................................................................................................................... File Name ........................................................................................................................ File Type ......................................................................................................................... 93 93 94 95

STORAGE DEVICE ACCESS ............................................................................................ 96 Overview ......................................................................................................................... 97 Memory File Devices ....................................................................................................... 913 Virtual Devices ............................................................................................................... 914 File Pipes ....................................................................................................................... 915

............................................................................................................... FORMATTING XML INPUT ........................................................................................... Overview ....................................................................................................................... Installation Sequence ....................................................................................................... Example XML File .......................................................................................................... Example KAREL Program Referencing an XML File ............................................................ Parse Errors ................................................................................................................... MEMORY DEVICE ........................................................................................................FILE ACCESS

920 920 920 921 921 922 924 925 101 103 103 103 104 105 105 106 108 1010 1010 1011 1011 1011 1012 1013 1014 1015 1016 1017 1018 1019 1025 1026 1026 1026 1028 1029 1030 1030 1031 1032 1032 1034

................................................................................... OVERVIEW ................................................................................................................... CREATING USER DICTIONARIES .................................................................................. Dictionary Syntax ........................................................................................................... Dictionary Element Number .............................................................................................. Dictionary Element Name ................................................................................................. Dictionary Cursor Positioning ............................................................................................ Dictionary Element Text ................................................................................................... Dictionary Reserved Word Commands ................................................................................ Character Codes ............................................................................................................. Nesting Dictionary Elements ............................................................................................ Dictionary Comment ....................................................................................................... Generating a KAREL Constant File ................................................................................... Compressing and Loading Dictionaries on the Controller ....................................................... Accessing Dictionary Elements from a KAREL Program ....................................................... CREATING USER FORMS ............................................................................................. Form Syntax .................................................................................................................. Form Attributes ............................................................................................................. Form Title and Menu Label .............................................................................................. Form Menu Text ............................................................................................................ Form Selectable Menu Item .............................................................................................. Edit Data Item ............................................................................................................... Non-Selectable Text ........................................................................................................ Display Only Data Items .................................................................................................. Cursor Position Attributes ................................................................................................ Form Reserved Words and Character Codes ........................................................................ Form Function Key Element Name or Number .................................................................... Form Function Key Using a Variable ................................................................................. Form Help Element Name or Number ................................................................................ Teach Pendant Form Screen ............................................................................................. CRT/KB Form Screen ..................................................................................................... Form File Naming Convention .......................................................................................... Compressing and Loading Forms on the Controller ............................................................... Displaying a Form ..........................................................................................................DICTIONARIES AND FORMS

viii

MARRCRLRF04071E REV BChapter 11 11.1 11.1.1 11.2 Chapter 12 12.1 12.1.1 12.1.2 12.2 12.3 12.3.1 12.3.2 12.3.3 12.4 12.4.1 12.4.2 12.4.3 12.4.4 Chapter 13 13.1 13.1.1 13.1.2 13.1.3 13.1.4 13.2 13.2.1 13.2.2 13.2.3 13.3 13.3.1 Chapter 14 14.1 14.2 14.3 14.4 14.4.1 14.4.2 14.5 14.5.1 14.5.2 14.6 14.6.1 14.6.2 14.6.3 14.7 14.8 SYSTEM VARIABLES

Contents111 112 113 114 121 122 122 123 123 123 124 124 124 124 125 126 126 126 131 132 132 133 133 135

............................................................................................... ACCESS RIGHTS .......................................................................................................... System Variables Accessed by KAREL Programs .................................................................. STORAGE ..................................................................................................................... .................................................................... COMMAND FORMAT .................................................................................................... Default Program .............................................................................................................. Variables and Data Types .................................................................................................. MOTION CONTROL COMMANDS ................................................................................. ENTERING COMMANDS ............................................................................................... Abbreviations ................................................................................................................. Error Messages ............................................................................................................... Subdirectories ................................................................................................................. COMMAND PROCEDURES ............................................................................................ Command Procedure Format ............................................................................................. Creating Command Procedures .......................................................................................... Error Processing .............................................................................................................. Executing Command Procedures ........................................................................................KAREL COMMAND LANGUAGE (KCL) INPUT/OUTPUT SYSTEM

.........................................................................................

USER-DEFINED SIGNALS ............................................................................................. DIN and DOUT Signals .................................................................................................... GIN and GOUT Signals .................................................................................................... AIN and AOUT Signals .................................................................................................... Hand Signals ..................................................................................................................

SYSTEM-DEFINED SIGNALS ........................................................................................ 135 Robot Digital Input and Output Signals (RDI/RDO) ............................................................... 136 Operator Panel Input and Output Signals (OPIN/OPOUT) ....................................................... 136 Teach Pendant Input and Output Signals (TPIN/TPOUT) ....................................................... 1317 Serial Input/Output Serial Input/Output MULTI-TASKING

......................................................................................................... 1321 ......................................................................................................... 1321

....................................................................................................... 141 ................................................................................. 142 INTERPRETER ASSIGNMENT ....................................................................................... 143 MOTION CONTROL ...................................................................................................... 143 TASK SCHEDULING ..................................................................................................... 144 Priority Scheduling .......................................................................................................... 145 Time Slicing ................................................................................................................... 146 STARTING TASKS ......................................................................................................... 146 Running Programs from the User Operator Panel (UOP) PNS Signal ........................................ 147 Child Tasks .................................................................................................................... 147 TASK CONTROL AND MONITORING ............................................................................. 148 From TPP Programs ........................................................................................................ 148 From KAREL Programs ................................................................................................... 148 From KCL ..................................................................................................................... 149 USING SEMAPHORES AND TASK SYNCHRONIZATION ................................................. 149 USING QUEUES FOR TASK COMMUNICATIONS ........................................................... 1414MULTI-TASKING TERMINOLOGY

ix

ContentsAppendix A A.1 A.2 A.2.1 A.2.2 A.2.3 A.2.4 A.2.5 A.2.6 A.2.7 A.2.8 A.2.9 A.2.10 A.2.11 A.2.12 A.2.13 A.2.14 A.2.15 A.2.16 A.2.17 A.2.18 A.2.19 A.2.20 A.2.21 A.2.22 A.2.23 A.2.24 A.2.25 A.2.26 A.2.27 A.3 A.3.1 A.3.2 A.3.3 A.3.4 A.3.5 A.4 A.4.1 A.4.2 A.4.3 A.4.4 A.4.5 A.4.6 A.4.7 A.4.8 A.4.9 A.4.10 A.4.11 A.4.12 A.4.13 A.4.14 A.4.15 A.4.16 A.4.17 KAREL LANGUAGE ALPHABETICAL DESCRIPTION

MARRCRLRF04071E REV B ............................................... OVERVIEW ................................................................................................................... - A - KAREL LANGUAGE DESCRIPTION ........................................................................ ABORT Action ............................................................................................................... ABORT Condition ........................................................................................................... ABORT Statement ........................................................................................................... ABORT_TASK Built-In Procedure ..................................................................................... ABS Built-In Function ..................................................................................................... ACOS Built-In Function ................................................................................................... ACT_SCREEN Built-In Procedure ..................................................................................... ADD_BYNAMEPC Built-In Procedure ............................................................................... ADD_DICT Built-In Procedure ......................................................................................... ADD_INTPC Built-In Procedure ........................................................................................ ADD_REALPC Built-In Procedure .................................................................................... ADD_STRINGPC Built-In Procedure ................................................................................. %ALPHABETIZE Translator Directive ............................................................................... APPEND_NODE Built-In Procedure .................................................................................. APPEND_QUEUE Built-In Procedure ................................................................................ APPROACH Built-In Function .......................................................................................... ARRAY Data Type .......................................................................................................... ARRAY_LEN Built-In Function ........................................................................................ ASIN Built-In Function .................................................................................................... Assignment Action .......................................................................................................... Assignment Statement ...................................................................................................... AT NODE Condition ....................................................................................................... ATAN2 Built-In Function ................................................................................................. ATTACH Statement ......................................................................................................... ATT_WINDOW_D Built-In Procedure ................................................................................ ATT_WINDOW_S Built-In Procedure ................................................................................ AVL_POS_NUM Built-In Procedure .................................................................................. - B - KAREL LANGUAGE DESCRIPTION ........................................................................ BOOLEAN Data Type ..................................................................................................... BYNAME Built-In Function ............................................................................................. BYTE Data Type ............................................................................................................. BYTES_AHEAD Built-In Procedure .................................................................................. BYTES_LEFT Built-In Function ........................................................................................ - C - KAREL LANGUAGE DESCRIPTION ........................................................................ CALL_PROG Built-In Procedure ....................................................................................... CALL_PROGLIN Built-In Procedure ................................................................................. CANCEL Action ............................................................................................................. CANCEL Statement ........................................................................................................ CANCEL FILE Statement ................................................................................................ CHECK_DICT Built-In Procedure ..................................................................................... CHECK_EPOS Built-In Procedure ..................................................................................... CHECK_NAME Built-In Procedure ................................................................................... CHR Built-In Function ..................................................................................................... CLEAR Built-In Procedure ............................................................................................... CLEAR_SEMA Built-In Procedure .................................................................................... CLOSE FILE Statement ................................................................................................... CLOSE HAND Statement ................................................................................................. CLOSE_TPE Built-In Procedure ........................................................................................ CLR_IO_STAT Built-In Procedure ..................................................................................... CLR_PORT_SIM Built-In Procedure .................................................................................. CLR_POS_REG Built-In Procedure ...................................................................................A1 A9 A18 A18 A18 A19 A19 A20 A21 A22 A22 A24 A25 A26 A27 A29 A29 A30 A31 A31 A33 A33 A34 A35 A37 A37 A38 A39 A40 A41 A41 A41 A43 A43 A44 A46 A47 A47 A48 A48 A49 A51 A52 A52 A53 A54 A54 A55 A56 A56 A57 A58 A58 A59

x

MARRCRLRF04071E REV BA.4.18 A.4.19 A.4.20 A.4.21 A.4.22 A.4.23 A.4.24 A.4.25 A.4.26 A.4.27 A.4.28 A.4.29 A.4.30 A.4.31 A.4.32 A.4.33 A.4.34 A.4.35 A.4.36 A.4.37 A.4.38 A.4.39 A.4.40 A.4.41 A.4.42 A.4.43 A.4.44 A.4.45 A.4.46 A.4.47 A.4.48 A.4.49 A.4.50 A.4.51 A.4.52 A.4.53 A.4.54 A.4.55 A.4.56 A.5 A.5.1 A.5.2 A.5.3 A.5.4 A.5.5 A.5.6 A.5.7 A.5.8 A.5.9 A.5.10 A.5.11 A.5.12 A.5.13 A.5.14 A.5.15

ContentsA59 A60 A60 A61 A62 A62 A63 A64 A64 A65 A66 A67 A67 A68 A69 A70 A71 A71 A72 A73 A73 A74 A75 A77 A77 A78 A79 A80 A81 A82 A84 A85 A85 A86 A87 A90 A90 A91 A92 A93 A93 A94 A96 A98 A99 A100 A102 A103 A103 A105 A105 A106 A107 A107 A108

%CMOSVARS Translator Directive ................................................................................... %CMOS2SHADOW Translator Directive ............................................................................ CNC_DYN_DISB Built-In Procedure ................................................................................. CNC_DYN_DISE Built-In Procedure ................................................................................. CNC_DYN_DISI Built-In Procedure .................................................................................. CNC_DYN_DISP Built-In Procedure ................................................................................. CNC_DYN_DISR Built-In Procedure ................................................................................. CNC_DYN_DISS Built-In Procedure ................................................................................. CNCL_STP_MTN Built-In Procedure ................................................................................. CNV_CONF_STR Built-In Procedure ................................................................................. CNV_INT_STR Built-In Procedure .................................................................................... CNV_JPOS_REL Built-In Procedure .................................................................................. CNV_REAL_STR Built-In Procedure ................................................................................. CNV_REL_JPOS Built-In Procedure .................................................................................. CNV_STR_CONF Built-In Procedure ................................................................................. CNV_STR_INT Built-In Procedure .................................................................................... CNV_STR_REAL Built-In Procedure ................................................................................. CNV_STR_TIME Built-In Procedure ................................................................................. CNV_TIME_STR Built-In Procedure ................................................................................. %COMMENT Translator Directive .................................................................................... COMMON_ASSOC Data Type ......................................................................................... CONDITION...ENDCONDITION Statement ....................................................................... CONFIG Data Type ......................................................................................................... CONNECT TIMER Statement ........................................................................................... CONTINUE Action ......................................................................................................... CONTINUE Condition ..................................................................................................... CONT_TASK Built-In Procedure ....................................................................................... COPY_FILE Built-In Procedure ......................................................................................... COPY_PATH Built-In Procedure ........................................................................................ COPY_QUEUE Built-In Procedure .................................................................................... COPY_TPE Built-In Procedure .......................................................................................... COS Built-In Function ..................................................................................................... CR Input/Output Item ...................................................................................................... CREATE_TPE Built-In Procedure ...................................................................................... CREATE_VAR Built-In Procedure ..................................................................................... %CRTDEVICE ............................................................................................................... CURJPOS Built-In Function ............................................................................................. CURPOS Built-In Function ............................................................................................... CURR_PROG Built-In Function ........................................................................................ - D - KAREL LANGUAGE DESCRIPTION ........................................................................ DAQ_CHECKP Built-In Procedure .................................................................................... DAQ_REGPIPE Built-In Procedure .................................................................................... DAQ_START Built-In Procedure ....................................................................................... DAQ_STOP Built-In Procedure ......................................................................................... DAQ_UNREG Built-In Procedure ...................................................................................... DAQ_WRITE Built-In Procedure ..................................................................................... %DEFGROUP Translator Directive .................................................................................. DEF_SCREEN Built-In Procedure ................................................................................... DEF_WINDOW Built-In Procedure .................................................................................. %DELAY Translator Directive ........................................................................................ DELAY Statement ......................................................................................................... DELETE_FILE Built-In Procedure ................................................................................... DELETE_NODE Built-In Procedure ................................................................................. DELETE_QUEUE Built-In Procedure ............................................................................... DEL_INST_TPE Built-In Procedure .................................................................................

xi

ContentsA.5.16 A.5.17 A.5.18 A.5.19 A.5.20 A.5.21 A.5.22 A.5.23 A.5.24 A.5.25 A.5.26 A.5.27 A.6 A.6.1 A.6.2 A.6.3 A.6.4 A.6.5 A.6.6 A.6.7 A.6.8 A.7 A.7.1 A.7.2 A.7.3 A.7.4 A.7.5 A.7.6 A.7.7 A.8 A.8.1 A.8.2 A.8.3 A.8.4 A.8.5 A.8.6 A.8.7 A.8.8 A.8.9 A.8.10 A.8.11 A.8.12 A.8.13 A.8.14 A.8.15 A.8.16 A.8.17 A.8.18 A.8.19 A.8.20 A.8.21 A.8.22 A.8.23 A.8.24

MARRCRLRF04071E REV BDET_WINDOW Built-In Procedure ................................................................................. DISABLE CONDITION Action ....................................................................................... DISABLE CONDITION Statement .................................................................................. DISCONNECT TIMER Statement ................................................................................... DISCTRL_ALPH Built_In Procedure ............................................................................... DISCTRL_FORM Built_In Procedure ............................................................................... DISCTRL_LIST Built-In Procedure .................................................................................. DISCTRL_PLMN Built-In Procedure ............................................................................... DISCTRL_SBMN Built-In Procedure ............................................................................... DISCTRL_TBL Built-In Procedure .................................................................................. DISMOUNT_DEV Built-In Procedure .............................................................................. DISP_DAT_T Data Type ................................................................................................ - E - KAREL LANGUAGE DESCRIPTION ...................................................................... ENABLE CONDITION Action ....................................................................................... ENABLE CONDITION Statement ................................................................................... %ENVIRONMENT Translator Directive ........................................................................... ERR_DATA Built-In Procedure ....................................................................................... ERROR Condition ......................................................................................................... EVAL Clause ............................................................................................................... EVENT Condition ......................................................................................................... EXP Built-In Function ................................................................................................... - F - KAREL LANGUAGE DESCRIPTION ...................................................................... FILE Data Type ............................................................................................................ FILE_LIST Built-In Procedure ........................................................................................ FOR...ENDFOR Statement ............................................................................................. FORCE_SPMENU Built-In Procedure .............................................................................. FORMAT_DEV Built-In Procedure .................................................................................. FRAME Built-In Function .............................................................................................. FROM Clause .............................................................................................................. - G - KAREL LANGUAGE DESCRIPTION ...................................................................... GET_ATTR_PRG Built-In Procedure ............................................................................... GET_FILE_POS Built-In Function ................................................................................... GET_JPOS_REG Built-In Function .................................................................................. GET_JPOS_TPE Built-In Function ................................................................................... GET_PORT_ASG Built-in Procedure ............................................................................... GET_PORT_ATR Built-In Function ................................................................................. GET_PORT_CMT Built-In Procedure ............................................................................... GET_PORT_MOD Built-In Procedure .............................................................................. GET_PORT_SIM Built-In Procedure ................................................................................ GET_PORT_VAL Built-In Procedure ................................................................................ GET_POS_FRM Built-In Procedure ................................................................................. GET_POS_REG Built-In Function ................................................................................... GET_POS_TPE Built-In Function .................................................................................... GET_POS_TYP Built-In Procedure .................................................................................. GET_PREG_CMT Built-In-Procedure .............................................................................. GET_QUEUE Built-In Procedure ..................................................................................... GET_REG Built-In Procedure ......................................................................................... GET_REG_CMT .......................................................................................................... GET_TIME Built-In Procedure ........................................................................................ GET_TPE_CMT Built-in Procedure ................................................................................. GET_TPE_PRM Built-in Procedure ................................................................................. GET_TSK_INFO Built-In Procedure ................................................................................ GET_USEC_SUB Built-In Procedure ............................................................................... GET_USEC_TIM Built-In Function ................................................................................. A109 A109 A110 A111 A112 A114 A116 A117 A119 A122 A125 A125 A127 A127 A127 A128 A130 A131 A132 A132 A133 A133 A133 A134 A135 A137 A140 A140 A142 A143 A143 A145 A146 A147 A148 A149 A152 A152 A154 A155 A155 A156 A157 A158 A159 A159 A161 A161 A162 A163 A163 A166 A168 A168

xii

MARRCRLRF04071E REV BA.8.25 A.8.26 A.8.27 A.9 A.9.1 A.9.2 A.10 A.10.1 A.10.2 A.10.3 A.10.4 A.10.5 A.10.6 A.10.7 A.10.8 A.10.9 A.10.10 A.10.11 A.10.12 A.10.13 A.10.14 A.10.15 A.10.16 A.10.17 A.10.18 A.10.19 A.11 A.11.1 A.11.2 A.11.3 A.12 A.12.1 A.12.2 A.12.3 A.13 A.13.1 A.13.2 A.13.3 A.13.4 A.13.5 A.14 A.14.1 A.14.2 A.14.3 A.14.4 A.14.5 A.14.6 A.14.7 A.14.8 A.14.9 A.14.10 A.14.11 A.14.12

ContentsA169 A173 A174 A175 A175 A176 A177 A177 A178 A179 A180 A180 A182 A183 A185 A186 A187 A188 A189 A200 A201 A202 A203 A204 A205 A206 A207 A207 A208 A209 A210 A210 A211 A212 A212 A212 A213 A214 A215 A216 A217 A217 A219 A220 A221 A222 A223 A225 A226 A228 A229 A230 A231

GET_VAR Built-In Procedure ......................................................................................... GO TO Statement .......................................................................................................... GROUP_ASSOC Data Type ............................................................................................ - H - KAREL LANGUAGE DESCRIPTION ...................................................................... HOLD Action ............................................................................................................... HOLD Statement .......................................................................................................... - I - KAREL LANGUAGE DESCRIPTION ....................................................................... IF ... ENDIF Statement .................................................................................................. IN Clause .................................................................................................................... %INCLUDE Translator Directive ..................................................................................... INDEX Built-In Function ............................................................................................... INI_DYN_DISB Built-In Procedure ................................................................................. INI_DYN_DISE Built-In Procedure .................................................................................. INI_DYN_DISI Built-In Procedure .................................................................................. INI_DYN_DISP Built-In Procedure .................................................................................. INI_DYN_DISR Built-In Procedure ................................................................................. INI_DYN_DISS Built-In Procedure .................................................................................. INIT_QUEUE Built-In Procedure .................................................................................... INIT_TBL Built-In Procedure ......................................................................................... IN_RANGE Built-In Function ......................................................................................... INSERT_NODE Built-In Procedure .................................................................................. INSERT_QUEUE Built-In Procedure ................................................................................ INTEGER Data Type ..................................................................................................... INV Built-In Function .................................................................................................... IO_MOD_TYPE Built-In Procedure ................................................................................. IO_STATUS Built-In Function ......................................................................................... - J - KAREL LANGUAGE DESCRIPTION ....................................................................... J_IN_RANGE Built-In Function ...................................................................................... JOINTPOS Data Type .................................................................................................... JOINT2POS Built-In Function ......................................................................................... - K - KAREL LANGUAGE DESCRIPTION ...................................................................... KCL Built-In Procedure ................................................................................................. KCL_NO_WAIT Built-In Procedure ................................................................................. KCL_STATUS Built-In Procedure .................................................................................... - L - KAREL LANGUAGE DESCRIPTION ...................................................................... LN Built-In Function ..................................................................................................... LOAD Built-In Procedure ............................................................................................... LOAD_STATUS Built-In Procedure ................................................................................. LOCK_GROUP Built-In Procedure .................................................................................. %LOCKGROUP Translator Directive ............................................................................... - M - KAREL LANGUAGE DESCRIPTION ..................................................................... MIRROR Built-In Function ............................................................................................. MODIFY_QUEUE Built-In Procedure .............................................................................. MOTION_CTL Built-In Function .................................................................................... MOUNT_DEV Built-In Procedure ................................................................................... MOVE ABOUT Statement .............................................................................................. MOVE ALONG Statement ............................................................................................. MOVE AWAY Statement ................................................................................................ MOVE AXIS Statement ................................................................................................. MOVE_FILE Built-In Procedure ...................................................................................... MOVE NEAR Statement ................................................................................................ MOVE RELATIVE Statement ......................................................................................... MOVE TO Statement .....................................................................................................

xiii

ContentsA.14.13 A.14.14 A.14.15 A.15 A.15.1 A.15.2 A.15.3 A.15.4 A.15.5 A.15.6 A.15.7 A.15.8 A.15.9 A.15.10 A.16 A.16.1 A.16.2 A.16.3 A.16.4 A.16.5 A.17 A.17.1 A.17.2 A.17.3 A.17.4 A.17.5 A.17.6 A.17.7 A.17.8 A.17.9 A.17.10 A.17.11 A.17.12 A.17.13 A.17.14 A.17.15 A.17.16 A.17.17 A.17.18 A.17.19 A.17.20 A.17.21 A.17.22 A.17.23 A.17.24 A.17.25 A.17.26 A.17.27 A.17.28 A.17.29 A.18 A.18.1 A.19 A.19.1

MARRCRLRF04071E REV BMSG_CONNECT Built-In Procedure ............................................................................... MSG_DISCO Built-In Procedure ..................................................................................... MSG_PING ................................................................................................................. - N - KAREL LANGUAGE DESCRIPTION ...................................................................... NOABORT Action ........................................................................................................ %NOABORT Translator Directive ................................................................................... %NOBUSYLAMP Translator Directive ............................................................................ NODE_SIZE Built-In Function ........................................................................................ %NOLOCKGROUP Translator Directive .......................................................................... NOMESSAGE Action .................................................................................................... NOPAUSE Action ......................................................................................................... %NOPAUSE Translator Directive .................................................................................... %NOPAUSESHFT Translator Directive ............................................................................ NOWAIT Clause ........................................................................................................... - O - KAREL LANGUAGE DESCRIPTION ...................................................................... OPEN FILE Statement ................................................................................................... OPEN HAND Statement ................................................................................................. OPEN_TPE Built-In Procedure ........................................................................................ ORD Built-In Function ................................................................................................... ORIENT Built-In Function .............................................................................................. - P - KAREL LANGUAGE DESCRIPTION ...................................................................... PATH Data Type ........................................................................................................... PATH_LEN Built-In Function .......................................................................................... PAUSE Action .............................................................................................................. PAUSE Condition ......................................................................................................... PAUSE Statement ......................................................................................................... PAUSE_TASK Built-In Procedure .................................................................................... PEND_SEMA Built-In Procedure .................................................................................... PIPE_CONFIG Built-In Procedure ................................................................................... POP_KEY_RD Built-In Procedure ................................................................................... Port_Id Action .............................................................................................................. Port_Id Condition .......................................................................................................... POS Built-In Function .................................................................................................... POS2JOINT Built-In Function ......................................................................................... POS_REG_TYPE Built-In Procedure ................................................................................ POSITION Data Type .................................................................................................... POST_ERR Built-In Procedure ........................................................................................ POST_SEMA Built-In Procedure ..................................................................................... PRINT_FILE Built-In Procedure ...................................................................................... %PRIORITY Translator Directive .................................................................................... PROG_BACKUP Built-In Procedure ................................................................................ PROG_CLEAR Built-In Procedure ................................................................................... PROG_RESTORE Built-In Procedure ............................................................................... PROG_LIST Built-In Procedure ....................................................................................... PROGRAM Statement ................................................................................................... PULSE Action .............................................................................................................. PULSE Statement ......................................................................................................... PURGE CONDITION Statement ..................................................................................... PURGE_DEV Built-In Procedure ..................................................................................... PUSH_KEY_RD Built-In Procedure ................................................................................. - Q - KAREL LANGUAGE DESCRIPTION ...................................................................... QUEUE_TYPE Data Type .............................................................................................. - R - KAREL LANGUAGE DESCRIPTION ...................................................................... READ Statement ........................................................................................................... A232 A234 A235 A235 A235 A236 A236 A237 A238 A240 A240 A241 A241 A242 A242 A242 A243 A244 A245 A246 A247 A247 A249 A250 A250 A251 A252 A253 A254 A255 A255 A256 A257 A258 A259 A261 A262 A263 A263 A264 A266 A269 A271 A273 A274 A275 A276 A277 A278 A279 A280 A280 A280 A280

xiv

MARRCRLRF04071E REV BA.19.2 A.19.3 A.19.4 A.19.5 A.19.6 A.19.7 A.19.8 A.19.9 A.19.10 A.19.11 A.19.12 A.19.13 A.19.14 A.19.15 A.19.16 A.19.17 A.19.18 A.19.19 A.19.20 A.20 A.20.1 A.20.2 A.20.3 A.20.4 A.20.5 A.20.6 A.20.7 A.20.8 A.20.9 A.20.10 A.20.11 A.20.12 A.20.13 A.20.14 A.20.15 A.20.16 A.20.17 A.20.18 A.20.19 A.20.20 A.20.21 A.20.22 A.20.23 A.20.24 A.20.25 A.20.26 A.20.27 A.20.28 A.20.29 A.20.30 A.20.31 A.20.32 A.20.33 A.20.34 A.20.35

ContentsA282 A283 A284 A289 A290 A291 A292 A292 A293 A294 A295 A295 A296 A297 A298 A299 A299 A300 A301 A303 A303 A304 A305 A306 A307 A307 A308 A309 A310 A311 A312 A313 A314 A315 A316 A316 A317 A318 A319 A320 A321 A323 A324 A325 A326 A327 A328 A329 A329 A330 A330 A332 A332 A333 A334

READ_DICT Built-In Procedure ...................................................................................... READ_DICT_V Built-In-Procedure ................................................................................. READ_KB Built-In Procedure ......................................................................................... REAL Data Type ........................................................................................................... Relational Condition ...................................................................................................... RELAX HAND Statement .............................................................................................. RELEASE Statement ..................................................................................................... REMOVE_DICT Built-In Procedure ................................................................................. RENAME_FILE Built-In Procedure ................................................................................. RENAME_VAR Built-In Procedure .................................................................................. RENAME_VARS Built-In Procedure ................................................................................ REPEAT ... UNTIL Statement ......................................................................................... RESET Built-In Procedure .............................................................................................. RESUME Action .......................................................................................................... RESUME Statement ...................................................................................................... RETURN Statement ...................................................................................................... ROUND Built-In Function .............................................................................................. ROUTINE Statement ..................................................................................................... RUN_TASK Built-In Procedure ....................................................................................... - S - KAREL LANGUAGE DESCRIPTION ...................................................................... SAVE Built-In Procedure ................................................................................................ SAVE_DRAM Built-In Procedure .................................................................................... SELECT ... ENDSELECT Statement ................................................................................ SELECT_TPE Built-In Procedure .................................................................................... SEMA_COUNT Built-In Function ................................................................................... SEMAPHORE Condition ............................................................................................... SEND_DATAPC Built-In Procedure ................................................................................. SEND_EVENTPC Built-In Procedure ............................................................................... SET_ATTR_PRG Built-In Procedure ................................................................................ SET_CURSOR Built-In Procedure ................................................................................... SET_EPOS_REG Built-In Procedure ................................................................................ SET_EPOS_TPE Built-In Procedure ................................................................................. SET_FILE_ATR Built-In Procedure ................................................................................. SET_FILE_POS Built-In Procedure .................................................................................. SET_INT_REG Built-In Procedure ................................................................................... SET_JPOS_REG Built-In Procedure ................................................................................. SET_JPOS_TPE Built-In Procedure ................................................................................. SET_LANG Built-In Procedure ....................................................................................... SET_PERCH Built-In Procedure ...................................................................................... SET_PORT_ASG Built-In Procedure ................................................................................ SET_PORT_ATR Built-In Function .................................................................................. SET_PORT_CMT Built-In Procedure ............................................................................... SET_PORT_MOD Built-In Procedure ............................................................................... SET_PORT_SIM Built-In Procedure ................................................................................. SET_PORT_VAL Built-In Procedure ................................................................................ SET_POS_REG Built-In Procedure .................................................................................. SET_POS_TPE Built-In Procedure ................................................................................... SET_PREG_CMT Built-In-Procedure ............................................................................... SET_REAL_REG Built-In Procedure ............................................................................... SET_REG_CMT Built-In-Procedure ................................................................................. SET_TIME Built-In Procedure ........................................................................................ SET_TPE_CMT Built-In Procedure .................................................................................. SET_TRNS_TPE Built-In Procedure ................................................................................ SET_TSK_ATTR Built-In Procedure ................................................................................ SET_TSK_NAME Built-In Procedure ...............................................................................

xv

ContentsA.20.36 A.20.37 A.20.38 A.20.39 A.20.40 A.20.41 A.20.42 A.20.43 A.20.44 A.20.45 A.20.46 A.20.47 A.20.48 A.20.49 A.20.50 A.20.51 A.21 A.21.1 A.21.2 A.21.3 A.21.4 A.21.5 A.21.6 A.22 A.22.1 A.22.2 A.22.3 A.22.4 A.22.5 A.22.6 A.22.7 A.22.8 A.22.9 A.23 A.23.1 A.23.2 A.23.3 A.23.4 A.23.5 A.23.6 A.23.7 A.23.8 A.23.9 A.23.10 A.24 A.24.1 A.24.2 A.24.3 A.24.4 A.24.5 A.24.6 A.24.7 A.25 A.25.1

MARRCRLRF04071E REV BSET_VAR Built-In Procedure .......................................................................................... %SHADOWVARS Translator Directive ............................................................................ SHORT Data Type ......................................................................................................... SIGNAL EVENT Action ................................................................................................ SIGNAL EVENT Statement ............................................................................................ SIGNAL SEMAPHORE Action ....................................................................................... SIN Built-In Function .................................................................................................... SQRT Built-In Function ................................................................................................. %STACKSIZE Translator Directive .................................................................................. STD_PTH_NODE Data Type .......................................................................................... STOP Action ................................................................................................................ STOP Statement ............................................................................................................ STRING Data Type ....................................................................................................... STR_LEN Built-In Function ........................................................................................... STRUCTURE Data Type ................................................................................................ SUB_STR Built-In Function ........................................................................................... - T - KAREL LANGUAGE DESCRIPTION ...................................................................... TAN Built-In Function ................................................................................................... TIME Condition ............................................................................................................ %TIMESLICE Translator Directive .................................................................................. %TPMOTION Translator Directive .................................................................................. TRANSLATE Built-In Procedure ..................................................................................... TRUNC Built-In Function .............................................................................................. - U - KAREL LANGUAGE DESCRIPTION ...................................................................... UNHOLD Action .......................................................................................................... UNHOLD Statement ...................................................................................................... UNINIT Built-In Function .............................................................................................. %UNINITVARS Translator Directive ............................................................................... UNLOCK_GROUP Built-In Procedure ............................................................................. UNPAUSE Action ......................................................................................................... UNPOS Built-In Procedure ............................................................................................. UNTIL Clause .............................................................................................................. USING ... ENDUSING Statement .................................................................................... - V - KAREL LANGUAGE DESCRIPTION ...................................................................... V_CAM_CALIB iRVision Built-In Procedure .................................................................... V_GET_OFFSET iRVision Built-In Procedure ................................................................... V_GET_PASSFL iRVision Built-In Procedure .................................................................... V_RUN_FIND iRVision Built-In Procedure ....................................................................... V_SET_REF iRVision Built-In Procedure .......................................................................... VAR_INFO Built-In Procedure ........................................................................................ VAR_LIST Built-In Procedure ......................................................................................... VECTOR Data Type ...................................................................................................... VIA Clause .................................................................................................................. VOL_SPACE Built-In Procedure ...................................................................................... - W - KAREL LANGUAGE DESCRIPTION ..................................................................... WAIT FOR Statement .................................................................................................... WHEN Clause .............................................................................................................. WHILE...ENDWHILE Statement ..................................................................................... WITH Clause ............................................................................................................... WRITE Statement ......................................................................................................... WRITE_DICT Built-In Procedure .................................................................................... WRITE_DICT_V Built-In Procedure ................................................................................ - X - KAREL LANGUAGE DESCRIPTION ...................................................................... XML_ADDTAG Built-In Procedure ................................................................................. A335 A338 A338 A339 A339 A340 A340 A341 A341 A341 A342 A343 A344 A345 A346 A346 A347 A347 A348 A349 A349 A350 A351 A352 A352 A353 A353 A354 A354 A356 A357 A357 A358 A359 A359 A360 A362 A364 A366 A367 A369 A372 A373 A373 A375 A375 A376 A376 A377 A378 A379 A380 A381 A381

xvi

MARRCRLRF04071E REV BA.25.2 A.25.3 A.25.4 A.25.5 A.25.6 A.25.7 A.26 A.27 Appendix B B.1 B.2 B.3 B.4 B.5 B.6 B.7 B.8 B.9 B.10 B.11 B.12 B.12.1 B.13 B.13.1 B.14 Appendix C C.1 C.2 C.3 C.4 C.5 C.6 C.7 C.8 C.9 C.10 C.11 C.12 C.13 C.14 C.15 C.16

ContentsA382 A383 A383 A385 A386 A387

XML_GETDATA Built-In Procedure ................................................................................ XML_REMTAG Built-In Procedure ................................................................................. XML_SCAN Built-In Procedure ...................................................................................... XML_SETVAR Built-In Procedure .................................................................................. XYZWPR Data Type ..................................................................................................... XYZWPREXT Data Type ............................................................................................... - Y - KAREL LANGUAGE DESCRIPTION - Z - KAREL LANGUAGE DESCRIPTION KAREL EXAMPLE PROGRAMS

...................................................................... A387 ...................................................................... A387B1 B7 B18 B28 B31 B33 B38 B44 B49 B53 B57 B67 B70 B79 B80 B84 B85 C1 C5 C6 C6 C7 C7 C8 C8 C8 C9 C9 C10 C10 C10 C11 C12 C12

................................................................................ SETTING UP DIGITAL OUTPUT PORTS FOR PROCESS MONITORING .............................. COPYING PATH VARIABLES ......................................................................................... SAVING DATA TO THE DEFAULT DEVICE ..................................................................... STANDARD ROUTINES ................................................................................................. USING REGISTER BUILT-INS ........................................................................................ PATH VARIABLES AND CONDITION HANDLERS PROGRAM ......................................... LISTING FILES AND PROGRAMS AND MANIPULATING STRINGS ................................. GENERATING AND MOVING ALONG A HEXAGON PATH .............................................. USING THE FILE AND DEVICE BUILT-INS ..................................................................... USING DYNAMIC DISPLAY BUILT-INS .......................................................................... MANIPULATING VALUES OF DYNAMICALLY DISPLAYED VARIABLES ......................... DISPLAYING A LIST FROM A DICTIONARY FILE ...........