Table of Contents
EPSON RC+ 6.0 (Ver.6.2) User's Guide Rev.5 xi
6 The SPEL
+
Language 147
6.1 Overview ........................................................................................... 148
6.2 Program Structure ............................................................................ 148
6.2.1 What is a SPEL
+
program? ....................................................... 148
6.2.2 Calling functions ....................................................................... 148
6.3 Commands and Statements ............................................................. 149
6.4 Function and Variable Names .......................................................... 149
6.5 Data Types ....................................................................................... 150
6.6 Operators ......................................................................................... 150
6.7 Working with Variables .................................................................... 151
6.7.1 Variable scopes ....................................................................... 151
6.7.2 Local variables ......................................................................... 151
6.7.3 Module variables ..................................................................... 151
6.7.4 Global variables ....................................................................... 152
6.7.5 Global Preserve variables ....................................................... 152
6.7.6 Arrays ...................................................................................... 153
6.7.7 Initial values ............................................................................. 153
6.7.8 Clearing variables .................................................................... 153
6.8 Working with Strings ........................................................................ 154
6.9 Working with Files ............................................................................ 155
6.10 Multi-statements ............................................................................... 156
6.11 Labels .............................................................................................. 156
6.12 Comments ........................................................................................ 157
6.13 Error Handling .................................................................................. 157
6.14 Multi-tasking ..................................................................................... 159
6.15 Using Multiple Robots ...................................................................... 160
6.16 Robot Coordinate Systems .............................................................. 161
6.16.1 Overview ................................................................................... 161
6.16.2 Robot Coordinate System ........................................................ 161
6.16.3 Local Coordinate Systems ........................................................ 165
6.16.4 Tool Coordinate Systems .......................................................... 165
6.16.5 ECP Coordinate Systems (Option) ...........................................
166
6.17 Robot Arm Orientations .................................................................... 167
6.17.1 SCARA robot arm orientations ................................................. 167
6.17.2 6-sxis robot arm orientations .................................................... 168
6.17.3 RS series arm orientations ....................................................... 172
6.18 Robot Motion Commands ................................................................. 174
6.18.1 Homing the robot ...................................................................... 174
6.18.2 Point to point motion ................................................................. 174
6.18.3 Linear motion ............................................................................ 174