70
6250 Servo Controller User Guide
The RP240 is used as the 6250's operator interface, not a program entry terminal. As an
operator interface, the RP240 offers the following features:
❏
Displays text and variables
❏
8 LEDs can be used as programmable status lights
❏
Operator data entry of variables: read data from RP240 into variables and command value
substitutions (see table in Appendix B of software guide)
Typically the user creates a program in the 6250 to control the RP240 display and RP240
LEDs. The program can read data and make variable assignments via the RP240's keypad and
function keys.
The 6000 Series software commands for the RP240 are listed below. Detailed descriptions are
provided in the 6000 Series Software Reference Guide and the Model RP240 User
Guide.
DCLEAR ........
Clear The RP240 Display
DJOG ..........
Enter RP240 Jog Mode
DLED ..........
Turn RP240 LEDs On/Off
DPASS .........
Change RP240 Password
DPCUR .........
Position The Cursor On The RP240 Display
[DREAD] .......
Read RP240 Data
[DREADF] ......
Read RP240 Function Key
DREADI ........
RP240 Data Read Immediate Mode
DVAR ..........
Display Variable On RP240
DWRITE"" ......
Display Text On The RP240 Display
The example below demonstrates the majority of the 6000 Series commands for the RP240.
Example
Command
Description
>
DEF panel1
Define program
panel1
-
REPEAT
Start of repeat loop
-
DCLEARØ
Clear display
-
DWRITE"SELECT A FUNCTION KEY"
Display text
"SELECT A FUNCTION KEY"
-
DPCUR2,2
Move cursor to line 2 column 2
-
DWRITE"DIST"
Display text
"DIST"
-
DPCUR2,9
Move cursor to line 2 column 9
-
DWRITE"GO"
Display text
"GO"
-
DPCUR2,35
Move cursor to line 2 column 35
-
DWRITE"EXIT"
Display text
"EXIT"
-
VAR1 = DREADF
Input a function key
-
IF (VAR1=1)
If function key #1 hit
-
GOSUB panel2
GOSUB program
panel2
-
ELSE
Else
-
IF (VAR1=2)
If function key #2 hit
-
DLED1
Turn on LED #1
-
GO1
Start motion on axis #1
-
DLEDØ
Turn off LED #1
-
NIF
End of
IF (VAR1=2)
-
NIF
End of
IF (VAR1=1)
-
UNTIL (VAR1=6)
Repeat until
VAR1=6
(function key 6)
-
DCLEARØ
Clear display
-
DWRITE"LAST FUNCTION KEY = F"
Display text
"LAST FUNCTION KEY = F"
-
DVAR1,1,Ø,Ø
Display variable 1
-
END
End of
panel1
>
>
DEF panel2
Define prog
panel2
-
DCLEARØ
Clear display
-
DWRITE"ENTER DISTANCE"
Display text
"ENTER DISTANCE"
-
D(DREAD)
Enter distance number from RP240
-
END
End of
panel2