Command Descriptions
101
[ DREAD ]
Read RP240 Data
Type
Display (RP240) Interface
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[ DREADF ], DREADI, DVAR, DWRITE, [ SS ], TSS, VAR
Product Rev
GT6K 6.0
GV6K 6.0
The
DREAD
command allows you to store numeric data entered from the RP240's keypad into a variable. As
the user presses RP240 numeric keys, the data will be displayed on the RP240 starting at the location equal
to the current cursor lo 1 (for a sign bit):
VAR1=DREAD
Wait for RP240 numeric entry (terminated with the
ENTER
key), then set
VAR1
equal to that value
.
Additionally the
DREAD
command can be used as a variable assignment within another command that is
expecting numeric data (Rule of Thumb: If the command syntax shows that the command field requires a
real number (denoted by
<r>
) or an integer value (denoted by
<i>
), you can use the
DREAD
substitution.):
A(DREAD)
Wait for RP240 numeric entry (terminated with the
ENTER
key), then set
acceleration equal to that value.
The
DREAD
command cannot be used in an expression such as
VAR5=4+DREAD
or
IF(DREAD=1)
.
[ DREADF ]
Read RP240 Function Key
Type
Display (RP240) Interface
Syntax
See
below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
[ DREAD ], DREADI, DVAR, DWRITE, [ SS ], TSS, VAR, VARI
Product Rev
GT6K 6.0
GV6K 6.0
The
DREADF
command allows you to store numeric data entered from an RP240 function key into a variable.
Function key 1 (
F1
) = 1,
F2
= 2, etc., and
MENU RECALL
(
F0
) = 0.
Rule of Thumb for command value substitutions: If the command syntax shows that the command field
requires a real number (denoted by
<r>
) or an integer value (denoted by
<i>
), you can use the
DREADF
substitution (e.g.,
V(DREADF)
).
Example:
VAR1=DREADF
; Wait for RP240 function key entry, then set VAR1 equal to that value
IF(VAR1=5)
; If function key 5 was hit then ...
GO1
; Start motion
NIF
; End if statement
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...