Parker PDHX-E Series User Manual page 60

Table of Contents

Advertisement

Step 12
Issue the DTXT"PART1 PART2 PART3 PART4 PART5 PART6" command. This text serves
as an operator menu for the function keys.
Cursor Location
WH I CH PAR
PART 1
PART 2
Step 13
Issue the VAR2=FUN command.
The VARn=FUN command enables the function (F1 - F6), and the MENU RECALL keys.
When any of these keys are pressed, the number corresponding to the function key will be
transmitted from the RP240 to the Controller. Function keys 1 - 6 will return the values 1 - 6.
The MENU RECALL key will return a zero.
Step 14
Press F1
After the F1 key is pressed, the RP240 will transmit the value 1 to the Controller. This value
will be stored in variable 2.
Processing Information
Variables can be used in conditional statements like IF, WHILE and REPEAT or as data
values in D, V, A, L, or T commands. In step 7 above, the value 20 was entered and stored
in variable 1 to be used as the cycle count. The following is a command example:
In step 14 above, the operator pressed the F1 key. This value was stored in variable 2, and
was used to select PART1. The following is a command example:
REPEAT
IF(VAR2=1) XR11 NIF
IF(VAR2=2) XR12 NIF
IF(VAR2=3) XR13 NIF
IF(VAR2=4) XR14 NIF
IF(VAR2=5) XR15 NIF
IF(VAR2=6) XR16 NIF
UNTIL(VAR2=0)
For further information on the commands used in the example above, refer to the software
reference guide for the Controller.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
T
DO Y U WAN
O
T
PART 3
PART 4
Command
Description
D2400
Set distance to 2400 steps
V1
Set velocity to 1 rps
L(VAR1)
Loop the number of times as specified by variable 1
G
Initiate motion
T1
Wait one second
N
End the loop
Command
loop
Branch to sequence 11 if F1 is pressed
Branch to sequence 12 if F2 is pressed
Branch to sequence 13 if F3 is pressed
Branch to sequence 14 if F4 is pressed
Branch to sequence 15 if F5 is pressed
Branch to sequence 16 if F6 is pressed
End loop on menu recall pressed
TO
R N
U ?
PART 5
PART 6
Description

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pdhx15-ePdhx15e-d

Table of Contents