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 DO Y U WAN
TO
T
O
T
R N
U ?
PART 1 PART 2 PART 3 PART 4 PART 5 PART 6
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:
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
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:
Command
Description
REPEAT
loop
IF(VAR2=1) XR11 NIF
Branch to sequence 11 if F1 is pressed
IF(VAR2=2) XR12 NIF
Branch to sequence 12 if F2 is pressed
IF(VAR2=3) XR13 NIF
Branch to sequence 13 if F3 is pressed
IF(VAR2=4) XR14 NIF
Branch to sequence 14 if F4 is pressed
IF(VAR2=5) XR15 NIF
Branch to sequence 15 if F5 is pressed
IF(VAR2=6) XR16 NIF
Branch to sequence 16 if F6 is pressed
UNTIL(VAR2=0)
End loop on menu recall pressed
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
Summary of Contents for PDHX-E Series
Page 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 15: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 68: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 92: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 98: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 101: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...