Scara Teach Manual Delta
Scara Teach Manual Delta
Pendant Manual
www.deltaww.com
Table of Content
Figure 2-4 Edit/run program for the robot - No project opened .....................................................................16
Figure 2-5 Edit/run program for the robot - Enter project name ....................................................................17
Figure 2-6 Edit/run program for the robot - Creation of new project completed ............................................18
Figure 2-7 Edit/run program for the robot - Opening a project .......................................................................18
Figure 2-8 Edit/run program for the robot - Project opening completed .........................................................19
Figure 2-9 Edit/run program for the robot - Select input position ...................................................................20
Figure 2-10 Edit/run program for robot - Select command type ....................................................................20
Figure 2-12 Edit/run program for robot - Enter command name and other information ................................21
Figure 2-16 Point information - Local point operation for the test project ......................................................24
Figure 2-18 Point information - Setting up original point of user coordinates ................................................27
Figure 2-19 Point information - Setting up X point for the user coordinates (+Xaxis direction) ......................27
Figure 2-20 Point information - Setting up XY or +Y point for the user coordinates (+Yaxis direction) .........28
Figure 2-24 Point Data – Tool Size Calibration (Points P1~P8) .....................................................................31
Figure2-29 IO monitoring................................................................................................................................36
1. Human machine
interface
1.1 Hardware interface
The hardware interface for the teach pendant is mainly divided into touch screen and
physical buttons, as shown in Figure 1-1 , Figure 1-2, and Figure 1-3.
● Touch-screen functions include: operating status of the robot, connecting status, robot
language editing, display/teaching of coordinates information, system-related parameter
settings, display of system information, etc.
● Functions of the physical buttons include: JOG operation, auto run, pause/resume, running
stop, page-switching button, select/adjustment button, emergency stop (e-stop), and pow-
er indicator light for teach pendant.
Physical Executable
Description
buttons page
Press and hold down this button and the stage two of the three-
RUN stage for operation button simultaneously for 2 seconds to Edit/Run
automatically run the opened project.
Press and hold down this button and the stage two of the three-
PAUSE stage operation button simultaneously to pause or resume the Edit/Run
RESUME
currently-running project.
Press and hold down this button and the stage two of the three-
STOP stage operation button simultaneously to stop the currently- Edit/Run
running project.
7
SCARA Teach Pendant Manual
Press and hold down this button and the stage two of the three-
Press and hold down this button and the stage two of the three-
– stage operation button simultaneously to shift the axis toward the
negative direction.
All pages
Press this button to return to the previous page. It is used on the Edit/Run,
points page, project directory page, and RL editing page. Points
Press this button to return to the next page. It is used on the Edit/Run,
points page, project directory page, and RL editing page. Points
● Three-stage operation button: Located on the back of the teach pendant (Figure 1-2), it is
a safety switch for operating the robot.
● SD Card slot: Located at the bottom of the teach pendant (Figure 1-3), it is used for
updating firmware on the teach pendant.
8
1. Human-machine interface
Emergency stop
button Select/
adjust knob
Power indicator
Physical buttons
Touch screen
Three-stage
operation button
9
SCARA Teach Pendant Manual
● Menu Bar:
Displays tab-switching buttons, including Edit/Run program for the robot, point information
(Points), Jog settings (Jog), IO monitoring (DI/O), information display (Info), and Setting
Appearance of
Description
UI buttons
Press this button to return to the main screen and return to the first page on the
Menu Bar. Once done successfully, the button will be highlighted in black.
Press this button to turn to the next page on the Menu Bar.
Press this button to return to the previous page on the Menu Bar.
Press this button to switch to the screen to Edit/Run program for the robot. Once
done successfully, the button will be highlighted in black.
Press this button to switch to the point information screen. Once done
successfully, the button will be highlighted in black.
Press this button to switch to the Jog setting screen. Once done successfully, the
button will be highlighted in black.
Press this button to switch to the IO monitoring screen. Once done successfully,
the button will be highlighted in black.
10
1. Human-machine interface
Press this button to switch to the information display screen. Once done
successfully, the button will be highlighted in black.
Press this button to switch to the system settings screen. Once done
successfully, the button will be highlighted in black.
Press this button to switch the screen to the Servo ON/OFF screen. Once Done
successfully, the button will be highlighted in black.
Appearance
Description
of UI buttons
Displays the current robot motor as Servo Off. Press this button to
switch the motor to Servo On.
Displays the current robot motor as Servo On. Press this button to
switch the motor to Servo Off.
■ Alarm State: Monitors the current Alarm status for the system.
Appearance
Description
of UI buttons
It shows that no alarm has occurred on the current system. Press this
button to switch to the Alarm Info page.
It shows that there is an alarm occurred on the system. This button will
flash in red. Press this button to switch to the Alarm Info page.
■ Authority login: Pressing this button allows logging in with permission password. Logout permis-
sion: Press the Logout button on the Main page to enable only monitoring functions on the teach
pendant.
Appearance
Description
of UI buttons
Press this button to logout the permission password and enable only
monitoring functions on the teach pendant.
■ Name/ID of the project opened: Displays the name and ID of the project opened.
■ Robot operating status: Displays status of the current program run by the robot.
11
SCARA Teach Pendant Manual
Appearance
Description
of UI buttons
Shows that the program operation of the current robot will pause after
single-line execution.
Appearance
Description
of UI buttons
Appearance
Description
of UI buttons
● Jog information bar: Shows current position of the robot, User Frame ID, Tool Frame ID,
Cart. Space, or Joint Space. Click the bar to switch between different Jog modes.
按鈕外觀 Description
Displays User Frame ID and Tool Frame ID. means that the current User
Frame ID is 0; means that the current Tool Frame ID is 0.
12
2.Tab operation and instructions
Displays the current Jog mode for the robot as Joint Space.
Displays the current Jog mode for the robot as Joint Space.
Displays the current Jog mode for the robot as User Space.
13
SCARA Teach Pendant Manual
Appearance
Description
of UI buttons
14
2.Tab operation and instructions
Click the login button ( ) and enter the authorization password (Figure 2-2) and
the operation screen for that authorization will appear. The Robot operation mode will
also be switched to T1( ) or T2( ) and TP operation mode will be switched to
Enable( ), as shown in Figure 2-3. The user can then operate on various functions.
15
SCARA Teach Pendant Manual
Once a project is opened or added, press and hold this button and stage
two of the three-stage operation button simultaneously for 2 seconds
to automatically run the opened project; once it is successfully run the Edit/Run
同 Press and hold this button and the stage two of the three-stage
operation button simultaneously to pause to resume the project currently
running. Once it has successfully paused, the Robot running status will Edit/Run
display as Once it has successfully resumed, the Robot running
status will display as
Press and hold this button and the stage two of the three-stage operation
button simultaneously to stop the project currently running. Once it has Edit/Run
successfully stopped, the Robot running status will display as
ress and hold this button and the stage two of the three-stage operation
button simultaneously will run a single line of machine process. Every
time it is pressed it will execute one line of machine process. Step can be Edit/Run
executed when paused or when the project is not running. When Step is
executed the Robot running status will display as
16
2.Tab operation and instructions
Figure 2-5 Edit/run program for the robot - Enter project name
17
SCARA Teach Pendant Manual
Figure 2-6 Edit/run program for the robot - Creation of new project completed
18
2.Tab operation and instructions
Figure 2-8 Edit/run program for the robot - Project opening completed
19
SCARA Teach Pendant Manual
Figure 2-9 Edit/run program for the robot - Select input position
20
2.Tab operation and instructions
Figure 2-12 Edit/run program for robot - Enter command name and other
information
21
SCARA Teach Pendant Manual
22
2.Tab operation and instructions
Appearance of UI
Instructions for operations
buttons
Switches information displayed for the point and displays information on the
hand (H), Tool Frame ID (TF), and User Frame ID (UF).
Physical button. Press this button to return to the previous page for the point
table.
Physical button. Press this button to return to the next page for the point table.
23
SCARA Teach Pendant Manual
Figure 2-16 Point information - Local point operation for the test project
24
2.Tab operation and instructions
Appearance of UI but-
Instructions for operations
tons
Press this button to save all the Local points for the current project to the MS
controller.
Press this button to add an entry for the Local point on the last row of the Local
point table.
Switches information displayed for the point and displays information on the
hand (H), Tool Frame ID (TF), and User Frame ID (UF).
Physical button. Press this button to return to the previous page for the point
table.
Physical button. Press this button to return to the next page for the point table.
25
SCARA Teach Pendant Manual
26
2.Tab operation and instructions
Figure 2-19 Point information - Setting up X point for the user coordinates
(+Xaxis direction)
27
SCARA Teach Pendant Manual
Figure 2-20 Point information - Setting up XY or +Y point for the user coordinates
(+Yaxis direction)
28
2.Tab operation and instructions
29
SCARA Teach Pendant Manual
30
2.Tab operation and instructions
31
SCARA Teach Pendant Manual
32
2.Tab operation and instructions
33
SCARA Teach Pendant Manual
34
2.Tab operation and instructions
Amp:
Switches the amplification of the HandWheel (x1 means the robot will move 1um or 1PUU when the
HandWheel is rotated by 1 grid)
Amplification that can be set for JointSpace is x1~x1000, and x1~x100 for Cart.Space
Jog Axis:
Switches the HandWheel Jog target axis (J1~J4 or X,Y,Z,RZ)
To perform Jog operation on the robot, press and hold down the physical Job
button ( or )and the stage two of the three-stage operation button (Figure 1-2)
to move the arm. Moving the robot through Jog is available on any page.
Performing HandWheel Jog operations to the robot means rotating the HandWheel
(Figure 1-1) and performing the stage two of the three-stage operation (Figure 1-2)
simultaneously to move the robot. When the status of HandWheel is Enable, it can
move the robot through Jog function on any page.
35
SCARA Teach Pendant Manual
Figure2-29 IO monitoring
the control system can be viewed on this page, as shown in Figure 2-30. Press
to switch to the information page for system alarm (Alarm Info); press to switch to
the information page for version of the control system (Controller Info).
36
2.Tab operation and instructions
37
SCARA Teach Pendant Manual
38
2.Tab operation and instructions
39
SCARA Teach Pendant Manual
40
2.Tab operation and instructions
B. Press to execute all-axes Servo Off. When Servo Off is successful it will change
to
B. Press to execute J1-axis Servo Off. When Servo Off is successful it will change
to
41
SCARA TEACH PENDANT MANUAL
3. Alarm
3.1 Definitions of alarms
There are 4 major categories of abnormal alarms, namely the control type, customized
type, group type, and axis type, the meanings of which are described as follows:
● Control type: alarms sent out by the controller.
● Customized type: alarms customized by the users through the PLC program written.
● Group type: alarms sent out by a group which is combined randomly from an axis group.
● Axis type: alar ms sent out by individual axis.
The 7-segment display shows the abnormal alarm code in the following way.
42
42
3. ALARM
Customized type (User) : U
1-2
Group type (Group) :
* “?” is used to represent numbers in the List of Abnormal Alarms.
1-6 axis: number 1-6.
7-12 axis: reserved.
Axial type (Axis) : 13-18 axis: English letter D-I
* “?” is used to represent numbers and English letters in the List of
Abnormal Alarms.
For example:
Abnormal alarm code E1.803 is the alarm of Group 1 in the group type.
Abnormal alarm code E1803 is the alarm of Axis 1 in the axial type.
Abnormal alarm code ED803 is the alarm of Axis 13 in the axial type.
Abnormal alarm code EI803 is the alarm of Axis 18 in the axial type.
43
SCARA TEACH PENDANT MANUAL
Abnormal Servo
Abnormal Alarm Type Status
Abnormal Alarm Name
Alarm Display
ALM WARN ON OFF
E?821 Arm gesture is inconsistent ○ ○
Target position for P2P motion command is out of Robot’s
E?822
operating range
○ ○
44
3. ALARM
45
SCARA TEACH PENDANT MANUAL
46
3. ALARM
Group type:
●●
E?801 Axis did not return to the origin
Cause Axis did not return to the origin
If the axis fails to return to the origin before the coordinates moved, please return
Check and Correction
the axis to the origin.
Solution Reset alarm
47
SCARA TEACH PENDANT MANUAL
E?822 Target position for P2P motion command is out of Robot’s operating range
48
3. ALARM
E?823 Target position of command for continuous path is out of Robot’s operating range
Whether the target position of the motion command for each axis is within the
Check and Correction
configured limits of software.
Check and Correction Return it to the dealer or original manufacturer for repairing.
49
SCARA TEACH PENDANT MANUAL
Check and Correction Return it to the dealer or original manufacturer for repairing.
50
3. ALARM
Whether the input conditions for forming an arc is correct, conditions like 3
points are collinear, the radius is 0, or the centre falls on the circumference
Check and Correction
cannot form a circle. Please reissue command positions according to conditions
that can form a circle.
Solution Reset alarm
E?851 Time out error in transmission of vision parameters followed by conveyor belt
1. Data transmission error
Cause
2. Vision system has not been triggered.
1. Ensure the vision system has been triggered before the robot starts.
Check and Correction
2. Check if the configuration and settings for the vision system are correct.
51
SCARA TEACH PENDANT MANUAL
Axis type:
●●
E?001 Overcurrent
1. Short circuit of the drive output
Cause 2. Abnormal motor wiring
3. Abnormal IGBT
1.Whether wiring between the motor and drive has short-circuited, and if
circuited, eliminate the short-circuit condition and prevent exposed wiring.
Check and Correction 2.Please refer to the wiring sequence in the instruction Manual and check
whether the wiring sequence from the motor to the drive is correct and rewire.
If the alarm continues, return it to the dealer or original manufacturer for
repairing.
E?002 Overvoltage
1. W
hether the input voltage of the main loop is within the rated voltage value;
if not, use the correct voltage components or tandem voltage stabilizer to
transform the voltage within the rated voltage value.
Check and Correction
2. W
hether the input voltage of the main loop is within the rated voltage value;
if this error continues, please return the drive back to the dealer or original
manufacturer for overhauling.
Solution Reset alarm
52
3. ALARM
Check and Correction Return it to the dealer or original manufacturer for repairing.
E?006 Overload
1. Continuously exceeding the rated load of the drive
Cause 2. Error in wiring for the motor and the encoder
3. Motor drive abnormal
1. Whether the wiring of U, V, W and the encoder is correct; if not, please rewire
Check and Correction correctly.
2. Return the motor to the dealer or original manufacturer for repairing.
Cause Improper setting for parameter P2-34 (warning conditions for over speed)
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Please use within the maximum Payload value or adjust the Payload value.
53
SCARA TEACH PENDANT MANUAL
1. Whether the wiring follows the suggested path in the Instruction Manual.
2. Whether the connection of MotorENC. in the drive and the encoder in the
Check and Correction
motor position is loose; if loose, reconnect MotorENC. of the drive with a
position detector.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
1. Check whether the load is too large, and use within the maximum Payload
Check and Correction value or adjust the Payload value.
2. Check the drive output wiring to ensure the wiring is correct.
54
3. ALARM
1. R
eference data write-in error or parameter error, which occurs at factory
reset for parameters due to error in setting of drive types.
2. Drive memory abnormal
Cause
3. R
OM data is damaged, if error occurs during power transmission, it is
usually due to damage on ROM data or no data available in the ROM.
Please return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Cause The drive has not received communication command for a long time.
55
SCARA TEACH PENDANT MANUAL
Check and Correction Return it to the dealer or original manufacturer for repairing.
56
3. ALARM
Check and Correction Return it to the dealer or original manufacturer for repairing.
Solution Reconnect power and clear alarm.
57
SCARA TEACH PENDANT MANUAL
Solution Auto-clear
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Whether the motor is of incremental motor or absolute encoder.
58
3. ALARM
1. Reset the coordinates for the absolute position after completing the
initialization on the coordinates for the absolute position and the zero return
Check and Correction
procedure.
2. Return it to the dealer or original manufacturer for repairing.
Related commands are not completed when the encoder conducts Barcode
Cause
write-in or relevant actions.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Solution Reconnect power and clear alarm.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Solution Reconnect power and clear alarm.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
59
SCARA TEACH PENDANT MANUAL
Check and Correction Return it to the dealer or original manufacturer for repairing.
Solution None.
Whether the position exceeds the value of P5‑09. Please set the limit according
Check and Correction to actual conditions; if the position doesn’t exceed the limit, please set the
maximum:2147483648.
Whether the position exceeds the value of P5-09. Please set the limit according
Check and Correction to actual conditions; if the position doesn’t exceed the limit, please set the
maximum:-2147483648.
Do not make any modification on the original machine if this alarm occurs;
Check and Correction
return it back to the original manufacturer directly.
Solution None.
60
3. ALARM
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
Check and Correction Return it to the dealer or original manufacturer for repairing.
61
SCARA TEACH PENDANT MANUAL
STO_B loses enabling signal or STO_A and STO_B have not been synchronized
Cause
for more than 1 second.
E?503 STO_error
Solution None.
Note: If abnormal alarm code that isn’t listed above, please notify the original manufacturer.
Control type:
●●
62
3. ALARM
Cause The library version in the PLC Image does not match with the system.
Check whether the controller parameter P1-01 is 1; if so, version mismatch is
Check and Correction
caused by firmware update. Please update to the same version of PLC Image.
63
SCARA TEACH PENDANT MANUAL
Solution None.
Solution None.
Check whether the logic of the PLC and RL program or Modbus operation has
errors that caused continuous write in. If it occurs repeatedly, it is recommended
Check and Correction
to remove all external devices and restore original PLC settings and debug step
by step.
DMCNET power on scan results does not match with the maintain power
Cause
parameter settings.
Please check the connection status of the DMCNET device and confirm whether
Check and Correction the controller parameter P3-31~P3-42 settings matches the current DMCNET
external device.
Alarm reset, to change settings please scan again and save the power maintain
Solution
parameter.
The Robot Type set in the parameter does not match the one loaded by the
Cause
current movement module.
64
4. ROBOT LANGUAGE
1. C
onfirm the firmware version; is it an updated firmware (downgraded or failed)
that caused parameters P1-00 and P0-03 to be inconsistent.
Check and Correction
2. R
eset parameter P1-00, confirm that the current firmware version supports
this type, disconnect the power and restart.
Operation mode not started, please confirm the reason or System DI4 and DI5
Cause
contact are not connected.
Please conform the System DI4 and DI5 contacts of the operation mode, and
Check and Correction
restart the controller.
4. Robot Language
4.1 Basic Instructions
4.1.1 Robot Language Index
Function Symbol Description
65
SCARA TEACH PENDANT MANUAL
+ Plus
- Minus
* Times
/ Divided
^ Power
AND Logical operation : conjunction operation
Operation OR Logical operation : or operation
Symbols XOR Logical operation : nonequivalence operation
> Greater than
>= Greater than or equal
< Less than
<= Less than or equal
= equal
~= Not equal
Function Symbol Description
ABS (x) Absolute value
ACOS (x) Arc cosine (in degree)
ASIN (x) Arc sine (in degree)
ATAN (x) Arc tangent (in degree)
ATAN2 (y, x) Arc tangent of y / x (in degree)
CEIL (x) Smallest integer larger than or equal to input value
COS (x) Consine (in degree)
COSH (x) Hyperbolic consine
DEG (x) Angle radians to degrees
EXP (x) Calculate the x‑th power based on e
FLOOR (x) Largest integer smaller than or equal to input value
Operation FMOD (x, y) Remainder of the division of x by y
Commands LOG10 (x) Logarithm of x in the base 10
LOG (x[,base]) Logarithm of x in the base, default base is natural
MAX (x, …) Maximum value among its arguments
MIN (x, …) Minimum value among its arguments
MODF (x) Return integer part of x and fractional part of x
POW (x, y) Return x^y
RAD (x) Angle degrees to radians
SIN (x) Sine (in degree)
SINH (x) Hyperbolic sine
SQRT (x) Square root
TAN (x) Tangent (in degree)
TANH (x) Hyperbolic tangent
66
4. ROBOT LANGUAGE
67
SCARA TEACH PENDANT MANUAL
Precautions Instructions
Robot language statements can be separated with either semicolon " ; " ,
Delimiter statement or blank, e.g.
a1=0 a2=1 a3=2 equivalent to a1, a2, a3 = 0, 1, 2
Number of variables > Make up nil based on the number of variables, e.g.
number of values a1, a2, a3 = 0, 1, then the value of a3 equals to nil
Example
68
4. ROBOT LANGUAGE
1.a=1
2.if a==1 then
3. Local b=2
4.end
5.if b==2 then -- the value of b here is nil
6. c=1
7.end
4.1.4 Reserved Keywords:
● The following keywords should not be used as variables naming declaration. Therefore,
special attention should be paid at time of variables naming.
● Robot Languages are case-sensitive, “and” and “AND” are different.
● Users should not use the following names for naming the variables in the form: and,
break, do, else, elseif, end, false, for, function, if, in, local, global, nil, not, or, repeat, re-
turn, then, true, until, while, P, p, table, boolean, number, string, thread, goto, in, pi, PI, Pi,
pI,ON,OFF,On,Off,oN,oFF,on,off.
Example
1.MovP ("FirstPoint") – the first indication method, inside the double quotation marks is the point name
2.MovP (1) –the second indication method, point number
Symbol Description
+ Plus
- Minus
* Times
/ Divided
^ Power
AND Logical operation : conjunction operation
OR Logical operation : or operation
XOR Logical operation : nonequivalence operation
69
SCARA TEACH PENDANT MANUAL
Command Description
70
4. ROBOT LANGUAGE
CopyPoint
71
SCARA TEACH PENDANT MANUAL
Instruction
Copy point information
Syntax
CopyPoint (a,b)
Parameter
This is the command for setting a point
Table VI-5: CopyPoint parameter form
Parameter Name Description
a Point copied The point, point number or point name being copied
b Point copying The point, point number or point name copying
Example
1. CopyPoint (1,2) – Take the point location of Point 1 as the temporary storage point location and copy
the point location information of Point 2 to the point location of Point 1
2. CopyPoint ("P1","P2") – Take the point named P1 as the temporary storage point location and copy
the point location information of the point named P2 to the point named P1.
ReadPoint
Instruction
Read point information
Syntax
ReadPoint (a,b)
Parameter
Table VI‑6: ReadPoint parameter form
Parameter Name Description
a Point read
"X" : X-directional coordinate (Unit:mm)
"Y" : Y-directional coordinate (Unit:mm)
b Item to be read "Z" : Z-directional coordinate (Unit:mm)
"RZ" : RZ-directional coordinate (Unit: 0.001 degree)
"H" : L / R hand information (0: right hand; 1: left hand)
Example
1. PostionX=ReadPoint (1001,"X") --Read the X coordinate of point Index 1001
2. PostionY=ReadPoint (1001,"Y") --Read the Y coordinate of point Index 1001
3. PostionZ=ReadPoint (1001,"Z") --Read the Z coordinate of point Index 1001
4. PostionRZ=ReadPoint (1001,"RZ") --Read the RZ coordinate of point Index 1001
5. PostionH=ReadPoint (1001,"H") --ead the L / R hand informaton of point Index 1001
6. PostionX1=ReadPoint ("P1","X") --Read the X coordinate of point P1
7. PostionY1=ReadPoint ("P1","Y") --Read the Y coordinate of point P1
8. PostionZ1=ReadPoint ("P1","Z") --Read the Z coordinate of point P1
9. PostionRZ1=ReadPoint ("P1","RZ") --Read the RZ coordinate of point P1
10. PostionH1=ReadPoint ("P1","H") --Read the L / R hand information of point P1
72
4. ROBOT LANGUAGE
WritePoint
Instruction
Write temporary storage value in the point data
Syntax
WritePoint (a,b,c)
Parameter
Table VI‑7: WritePoint parameter form
Parameter Name Description
a Point being written
"X" : X-directional coordinate (Unit: mm)
Parameters "Y" : Y-directional coordinate (Unit: mm)
b intended to be "Z" : Z-directional coordinate (Unit: mm)
written in "RZ" : RZ-directional coordinate (Unit:0.001 degree)
"H" : L / R hand information (0 or "R": right hand; 1 or "L": left hand)
"X" : X -directional coordinate (Unit: mm) ; floating-point number can
be entered, range 0.001 to 999
"Y" : Y-directional coordinate (Unit: mm) ; floating-point number can
be entered, range 0.001 to 999
c Input value "Z" : Z
-directional coordinate (Unit: mm) ; floating-point number can
be entered, range 0.001 to 999
"RZ" : R Z-directional coordinate (Unit:0.001 degree) ; floating-point
number can be entered, range 0.001 to 999
"H" : L / R hand information (0 or "R": right hand; 1 or "L": left hand)
Example
1. WritePoint (1001,"X",300) --Input 300mm for the X coordinate of point Index 1001
2. WritePoint (1001,"Y",50) --Input 50mm for the Y coordirnate of point Index 1001
3. WritePoint (1001,"Z",-50) --Input -50mm for the Z coordirnate of point Index 1001
4. WritePoint (1001,"RZ",30) --Input 30o for the RZ coordirnate of point Index 1001
5. WritePoint (1001,"H",0) --Input 0 for the L / R hand information of point Index 1001
6. WritePoint ("P1","X",250) --Input 250mm for the X coordirnate of point P1
7. WritePoint ("P1","Y",50) --Input 50mm for the Y coordirnate of point P1
8. WritePoint ("P1","Z",-100) --Input -100mm for the Z coordirnate of point P1
9. WritePoint ("P1","RZ",30) --Input 30o for the RZ coordirnate of point P1
10. WritePoint ("P1","H",1) --Input 1 for the L / R hand information of point P1
11. WritePoint (1002,"X",300.223) --Input 300.223mm for the X coordirnate of point Index 1002
73
SCARA TEACH PENDANT MANUAL
RobotX
Instruction
The X-directional coordinate of current Cartesian coordinate, unit: mm
Syntax
RobotX ()
Parameter
This is the command for reading the current position of X coorindate
Example
NowPosition_X=RobotX ()
RobotY
Instruction
The Y-directional coordinate of current Cartesian coordinate, unit: mm
Syntax
RobotY ()
Parameter
This is the command for reading the current position of Y coorindate
Example
NowPosition_Y=RobotY ()
RobotZ
Instruction
The Z-directional coordinate of current Cartesian coordinate, unit: mm
Syntax
RobotZ ()
Parameter
This is the command for reading the current position of Z coorindate
Example
NowPosition_Z=RobotZ ()
74
4. ROBOT LANGUAGE
RobotRZ
Instruction
RZ-direction coordinate value of the current cassette coordinate; when the tool coordinate or the RZ-direction
coordinate value of the user coordinate needs to be read, it must switch to the corresponding coordinate sta-
tus in order for the corresponding coordinate information to be read.
Syntax
RobotRZ ()
Parameter
This is the command for reading the current position of RZ coorindate
Example
NowPosition_RZ=RobotRZ ()
Robothand
Instruction
The L / R hand status of current robot; value 0 = right hand, value 1 = left hand
Syntax
Robothand ()
Parameter
This is the command for reading the L / R hand information of the current position
Example
NowPosition_hand=Robothand()
75
SCARA TEACH PENDANT MANUAL
DecJ
Instruction
Deceleration, affecting the motion command of MovP, MovJ
Syntax
AccJ (a)
Parameter
a: Percentage, range 1~100, cannot enter floating-point number
Example
DecJ (50)
SpdJ
Instruction
Maximum speed, affecting the motion command of MovP, MovJ
Syntax
SpdJ (a)
Parameter
a: Percentage, range 1~100, cannot enter floating-point number
Example
SpdJ (100)
AccL
Instruction
Acceleration, affecting the motion command of MovL, MArchL, Marc, MCircle
Syntax
AccL (a)
Parameter
a: Actual speed mm / sec2, range 1~25000, cannot enter floating-point number
Example
AccL (5)
DecL
Instruction
Deceleration, affecting the motion command of MovL, MArchL, Marc, MCircle
Syntax
DecL (a)
Parameter
a: Actual speed mm / sec2, range 1~25000, cannot enter floating-point number
Example
DecL (5)
76
4. ROBOT LANGUAGE
SpdL
Instruction
Maximum speed, affecting the motion command of MovL, MArchL, Marc, MCircle
Syntax
SpdL (a)
Parameter
a: Actual speed mm / sec, range 1~2000, cannot enter floating-point number
Example
SpdL (10) –Line speed is 10 mm / sec
Accur
Instruction
Accuracy of points passed through
Valid for the motion command without PASS Parameter set
Syntax
Accur (a)
Parameter
a: "STANDARD" (0.1mm)
"HIGH" (0.01mm)
Example
1. Accur ("HIGH")
2. MovL ("P1")
3. MovL ("P2")
4. Accur ("STANDARD")
5. MovL ("P3")
Instruction
Activate the robot’s servo motor
Syntax
RobotServoOn ()
Example
RobotServoOn ()
77
SCARA TEACH PENDANT MANUAL
RobotServoOff
Instruction
Stop the robot’s servo motor
Syntax
RobotServoOff ()
Example
RobotServoOff ()
MovJ
Instruction
Control motor axis to rotate to the target position
Syntax
MovJ (a,b)
MovJ (a,b,c)
MovJ (a,b,c,d,e)
Parameter
a: Motor shaft number, 1~4
b: In case of input for shaft 1, 2 or 4, this is the angle of absolute position, unit: degree
In case of input for shaft 3, this is the absolute position, unit: mm
In case of input for shaft 5 to 10 (external shafts) , this is the absolute position, unit: PUU (Plus User Unit)
c: Maximum speed % (optional) , input range 1~100
d: Acceleration % (optional) , input range 1~100
e: Deceleration % (optional) , input range 1~100
Example
1. MovJ (4,180)
2. MovJ (4,180,50) --shaft 4 moves to the 180-degree position with speed set as 50%
3. MovJ (4,-180,100,10,10) --shaft 4 moves to the minus 180-degree position with speed set as 100%
and acceleration / deceleration set as 10%
MovP
Instruction
Perform point to point motion via absolute coordinates
Syntax
MovP (a,b,c,d,e)
MovP (a,c,d,e)
MovP (a,c)
MovP (a,b)
MovP(a)
Parameter
a: End point, point variable
b: PASS (optional) , pass the end point
78
4. ROBOT LANGUAGE
No PASS PASS
When a PASS command is added, the robot will move
When no PASS command is added, the robot will only
towards P3 without reaching P2. This function can help
move towards P3 after fully reaching P2
the robot to skip over unimportant point locations
MovPR
Instruction
Perform point to point motion in relative term
Syntax
MovPR (a,b)
MovPR (a,b,c)
Parameter
a: Moving distance
Positive value: moving in positive direction
Negative value: moving in negative direction
When moving the direction of X, Y, Z coordinates, unit: mm
When moving the direction of C coordinate, unit: degree
b: Moving direction
"X": direction of X-coordinate
"Y": direction of Y-coordinate
"Z": direction of Z-coordinate
"C": direction of C-coordinate
c: moving speed % (optional) , input range 1~100
Example
79
SCARA TEACH PENDANT MANUAL
MovL
Instruction
Perform rectilinear motion via absolute coordinates
Syntax
MovL (a,b,c,d,e)
MovL (a,c,d,e)
MovL (a,c)
MovL (a,b)
MovL(a)
Parameter
a: End point, point variable
b: PASS (optional) , pass the end point
c: Maximum speed mm / sec (optional) , input range 1~2000
d: Acceleration mm / sec2 (optional) , input range 1~25000
e: Deceleration mm / sec2 (optional) , input range 1~25000
Example
1. MovL ("P1") ---move to the first point via Line movement
2. MovL (1, "PASS") ---move to the first point via Line continuous movement
3. M
ovL (1,1000,500,500) --- move to point 1 via Line movement, with speed set as 1000mm / s and
acceleration / deceleration set as 500mm / s 2
4. MovL ("P1", "PASS",1000,500,500) --- move to point 1 via Line continuous movement, with speed set
as 1000mm / s and acceleration / deceleration set as 500mm / s2
MovLR
Instruction
Perform rectilinear motion in relative term
Syntax
MovLR (a,b)
MovLR (a,b,c)
Parameter
a: Moving distance
Positive value: moving in positive direction
Negative value: moving in negative direction
When moving the direction of X, Y, Z coordinates, unit: mm
When moving the direction of C coordinate, unit: degree
b: Moving direction
80
4. ROBOT LANGUAGE
MArc
Instruction
Make arc motion via absolute coordinates
Syntax
MArc (a,b)
MArc (a,b,c)
MArc (a,b,c,d)
MArc (a,b,c,d,e,f)
Parameter
81
SCARA TEACH PENDANT MANUAL
MCircle
Instruction
Make circle motion via absolute coordinates, with 3 points forming a circle
Syntax
MCircle (a,b)
MCircle (a,b,c)
MCircle (a,b,c,d)
MCircle (a,b,c,d,e,f)
Parameter
82
4. ROBOT LANGUAGE
Lift
Instruction
Use the absolute coordinate to move to the location of the relative point of reference. The parameters
entered are the upper-body angle, ascending angle, ascending level and ascending direction.
Syntax
Lift (a,b,c,d)
Parameter
a: Location of the Reference point and point location variable
b: Ascending angle (unit: degree) (1~90)
c: Ascending level (unit: mm)
d: Ascending direction (unit: degree) (-360~360)
Example
Lift ("P0",45,10,90) – The P0 point is used as the reference point. A point is moved to the location
with 45-degree ascending angle referring to the specified reference point, 10 mm ascending level and
90-degree ascending direction.
Instruction
Set the user coordinate system
Syntax
SetUF (a,b,c,d)
Parameter
a: Index of the coordinate system; nine sets of user coordinate are provided for use, input range 1~9
b: The original point of the user coordinate system (Po in diagram)
c: Set the position point in the X-axis direction of the user coordinate system (Px in diagram)
d: Set the position point in the Y-axis direction of the user coordinate system (Py in diagram)
Example
1. SetUF (1,"P0","P1","P2") --Set P0 as the original point of the user coordinate system 1
--Set P1 as the position point in the X-axis direction of the user coordinate system 1
-- Set P2 as the position point in the Y-axis direction of the user coordinate system 1
83
SCARA TEACH PENDANT MANUAL
ChangeUF
Instruction
Switch the user coordinate system
Syntax
ChangeUF (a)
Parameter
a: Index of the coordinate system; five sets of user coordinate are provided for use, input range 1~5. 0
will switch back to the geodetic coordinate system.
Example
1. ChangeUF (1) --- Switch to user coordinate system 1
2. ChangeUF (0) --- Switch to geodetic coordinate system
SetTF
Instruction
Set the tool coordinate system
Syntax
SetTF (a,b,c,d)
Parameter
a: The coordinate system index provides 9 sets of the tool coordinate system. (1~9)
b: Set the width of the tool
c: Set the height of the tool
d: Set the angle of the tool
Example
SetTF (1,10,20,30) -- Set the width of the tool coordinate system 1 to 10 mm
-- Set the length of the tool coordinate system 1 to 20 mm
-- Set the height of the tool coordinate system 1 to 30 mm
ChangeTF
Instruction
Switch the tool coordinate system
Syntax
ChangeTF (a)
Parameter
a: Coordinate system number (1~9) provides 9 sets of the tool coordinate system. Enter 0 to return to
the world coordinate system.
Example
1. ChangeTF (1) --- Switch to the tool coordinate system 1
2. ChangeTF (0) --- Switch to the world coordinate system
84
4. ROBOT LANGUAGE
if…elseif…end
Instruction
if assertion: The program introduces different program code segments via different assumed situations.
Syntax
if a then
execute program 1
elseif b then
execute program 2
end
Parameter
a: Condition 1
b: Condition 2
Example
1. if DI (1) == "ON" then
2. MovP ("P1")
3. elseif DI(2) == “ON” then
4. MovL(“P2”)
5. end
while…do..end
Instruction
while loop: the program will continuously repeat an execution. To break the loop, use the "break" com-
mand.
85
SCARA TEACH PENDANT MANUAL
Syntax
while a do
loop executing program
end
Parameter
a: Execute if signal is "true"
Example
Calculate accumulation of i until 100, then exit the while loop
1.i = 1
2.while true do
3. i = i + 1
4. if i==100 then
5. break
6. end
7.end
for (type1)
Instruction
for loop: use the loop command to make the program continuously repeat an execution.
Syntax
for a=b,c do
loop executing program
end
Parameter
a: Loop variable
b: Set the initial value of loop variable
c: Set the final value of the loop variable.
The default updated value is 1.
Example
Calculate the sum of array a
1. a = {5, 4, 3, 2, 1}
2. i = 1
3. sum = 0
4. for i = 1, 5 do
5. sum = sum + a[i]
6. end
for (type2)
Instruction
for loop: use the loop command to make the program continuously repeat an execution.
Syntax
for a=b,c do
86
4. ROBOT LANGUAGE
repeat…until
Instruction
repeat loop: the program will continuously repeat an execution. Remember to add the predicates where
"until" appears.
Syntax
repeat
loop executing program
until a
Parameter
a: The condition
Example
Calculate the sum of array a
1. a = {5, 4, 3, 2, 1}
2. i = 1
3. sum = 0
4. repeat
5. sum = sum + a[i] -- sum = 15
6. i = i + 1
7. until i > #a -- #a: get size of array a
function…end
Instruction
User-defined sub-function. Before using the sub-function, the sub-function must be declared first.
Syntax
function a ()
execute program
87
SCARA TEACH PENDANT MANUAL
end
Parameter
a: Sub-function name; this must be in English alphabets or numbers, and must not be in word string or
other languages.
Example
1.function MyFunc1 ()
2. MovP (1)
3. MovP ("P2")
4. end
5. MovL (3)
6. MyFunc1 ()
DO
Instruction
Read or write in digital output
Syntax
DO (n,s)
DO (n,s,t)
Parameter
n: Digital output pin number, input range 1~12
s: ON / OFF
t: Delay time
Example
1. if DO (1) == "ON" then
2. DO (1,"OFF") --Let first DO Off
3. end
4. if DO (1) == "OFF" then
5. DO (1,"ON") --Let first DO On
88
4. ROBOT LANGUAGE
6. end
7. DO (1,"ON",1) --Let first DO On for one second
ReadModbus
Instruction
It is the command for external communication to read the value of the memory location. The readable
memory location is 0x1000 to 0x1FFF. A total of 4096 words can be used. When data is read in length
of double word, the memory location to be read must be even numbers for the reading action to be per-
formed.
Syntax
ReadModbus (a,b)
Parameter
a: Input the Modbus address to be read, input range 0x1000~0x1FFF
b: Input the length of data to be read, input value "W" or "DW"
Example
1. WriteModbus (0x1000,"W",1)
2. readModbus_0x1000=ReadModbus (0x1000,"W")
3. if readModbus_0x1000 == 1 then
4. WriteModbus (0x1F00,"DW",2)
5. DELAY (0.1)
6. end
7. readModbus_0x1F00=ReadModbus (0x1F00,"DW")
WriteModbus
Instruction
It is the command for external communication to write the value of the memory location. The writable
memory location is 0x1000 to 0x1FFF. A total of 4096 words can be used. When data is written in length
of double word, the memory location to be written in must be even numbers for the writing action to be
performed.
Syntax
WriteModbus (a,b,c)
Parameter
a: Input the Modbus address to be written in, range 0x1000~0x1FFF
b: Input the length of data to be written in, input value "W" or "DW"
c: Input the value of Modbus address to be written in
Example
1.WriteModbus (0x1000,"W",1)
2.readModbus_0x1000=ReadModbus (0x1000,"W")
3.if readModbus_0x1000 == 1 then
4. WriteModbus (0x1F00,"DW",2)
5. DELAY (0.1)
6.end
7.readModbus_0x1F00=WriteModbus (0x1F00,"DW")
89
SCARA TEACH PENDANT MANUAL
Instruction
Stop executing program
Syntax
QUIT ()
Parameter
None
Example
1.IOStatus=DI (1)
2.DELAY (1)
3.if IOStatus~=“ON” then
4. QUIT ()
5.end
PAUSE
Instruction
Suspend the current action. To continue with the execution, a start action must be externally trig-
gered (method for starting: write 2 in the memory location 0x0228 by an external program)
Syntax
PAUSE ()
Parameter
None
Example
1.IOStatus=DI (1)
2.DELAY (1)
3.if IOStatus~="ON" then
4. PAUSE ()
5.end
90
4. ROBOT LANGUAGE
Instruction
This function is used to pause functions
Syntax
SafetyMode(a)
Parameter
a: There are five modes ranging from 1~5; the default status is set as mode 1.
1: Action completed when grating touches; IO stays in current status;
2: Action completed when grating touches; IO returns to OFF status;
3: Disable default function and user manually edits the function at RL;
4: Action slows down and stops when grating touches; IO stays in current status and triggers reset sys-
tem DI (which is system DI 3),and it continues operating;
5: Action slows down and stops when grating touches; IO returns to OFF status and triggers reset sys-
tem DI (which is system DI 3),and it continues operating;
Example
1. SafetyMode (4) – Set grating mode as mode 4; action slows down and stops when grating touches; IO
stays in current status and triggers reset system DI (which is system DI 3), and it continues operating.
2. MovP (1)
3. SafetyMode (1) – Set grating mode as mode 1; action completed when grating touches; IO stays in
current status.
4. MovP (2)
SafetyStatus
Instruction
This is the status used to trigger the grating
Syntax
SafetyStatus()
Parameter
Status read includes 0, 2 and 3
0: Means the grating was not triggered, which is the normal operating status.
2: Means the grating was triggered when the program was not operating; during this time the motor servo
status if OFF.
3: Means the grating was triggered while the program was operating.
Example
1. if SafetyStatus()== 3 then
2. PAUSE()
3. end
91
Industrial Automation Headquarters
Delta Electronics, Inc.
Taoyuan Technology Center
No.18, Xinglong Rd., Taoyuan Dist.,
Taoyuan City 33068, Taiwan
TEL: 886-3-362-6301 / FAX: 886-3-371-6301
Asia
Delta Electronics (Jiangsu) Ltd.
Wujiang Plant 3
1688 Jiangxing East Road,
Wujiang Economic Development Zone
Wujiang City, Jiang Su Province,
People's Republic of China (Post code: 215200)
TEL: 86-512-6340-3008 / FAX: 86-769-6340-7290
Americas
Delta Products Corporation (USA)
Raleigh Office
P.O. Box 12173,5101 Davis Drive,
Research Triangle Park, NC 27709, U.S.A.
TEL: 1-919-767-3800 / FAX: 1-919-767-8080
Delta Greentech (Brasil) S.A
Sao Paulo Office
Rua Itapeva, 26 - 3° andar Edificio Itapeva One-Bela Vista
01332-000-São Paulo-SP-Brazil
TEL: +55 11 3568-3855 / FAX: +55 11 3568-3865
Europe
Delta Electronics (Netherlands) B.V.
Eindhoven Office
De Witbogt 20, 5652 AG Eindhoven, The Netherlands
TEL: +31 (0)40-8003800 / FAX: +31 (0)40-8003898
*We reserve the right to change the information in this catalogue without prior notice.