MM4006
WH W h i l e I/O input is equal
c v
Usage
L i IMM
■
PGM
[
J MIP
Syntax x x W H n n
Parameters
Description x x
[ i n t ]
I
/
O
input bit number.
nn
[ i n t ]
—
I / O input bit or byte state.
Range x x
—
0 to 8.
nn
—
0 to 1 or 0 to 255.
Units x x
—
None.
nn
N
o
n
e
.
Defaults x x
M i s s i n g : E r r o r E.
Out of range: E r r o r E.
Floating point: E r r o r A.
nn
M i s s i n g : 0 .
Out of range: 1 for a bit, error C for a byte.
Description
T h i s command starts a WHILE loop based on the state of an I/O input bit or
byte. While the state of the selected I/O input bit xx is equal to
nn,
all fol-
lowing commands up to the corresponding WE are executed. The loop is
repeated until the test becomes false. At that point, the program executed
continues with the line immediately following the WE command.
If xx is set to 0 or missing, the test is performed on the entire I/O input byte
and then
nn
could have a value from 0 to 255, representing the byte value
to compare it with.
NOTE
If the command is set to look for a bit by specifying xx between 1 and 8,
a non-zero value for the nn parameter will be considered as a I and the
while loop will execute until the I/O bit becomes Low.
Returns N o n e .
Errors
A U n k n o w n message code.
C — Parameter out of limits.
E — I n c o r r e c t I/O channel number.
J — C o m m a n d authorized only in Programing mode.
L — C o m m a n d not at the beginning of a line.
Rel. Commands
WE —
WG —
WL —
WY —
End While loop.
While variable greater than value.
While variable is less.
While variable is different.
Example 5 W H I I
W h i l e I/O input bit #5 is high, repeat next commands.
3PR1.2, WS I M o v e axis #3 incremental 1.2 units and wait for stop.
WE I E n d while loop.
N e w p o r t .
3
.
1
7
1
E
D
1
1
0
1
8
1
E
n
1
0
2
0
— 03/03
Summary of Contents for MM4006
Page 9: ...F D110181En1020 03 03 b J e w p o r t...
Page 11: ...MM4006 8 Axis Motion Controller Driver evvport...
Page 41: ...MM4006 Introduction FPI 111181Eli11120 0 1 03 1 3O tNevvport...
Page 42: ...Section 2 Local Mode C Newport...
Page 43: ...MM4006 8 Axis Motion Controller Driver C N e w p o r t...
Page 96: ...Section 3 Remote Mode C klevvport...
Page 97: ...Newport...
Page 310: ...Section 4 Motion Control Tutorial Ilevvport...
Page 311: ...MM4006 8 Axis Motion Controller Driver C EDI10181En 1020 03 03 2 N e V V p O r t...
Page 313: ...MM4006 8 Axis Motion Controller Driver cv ED110181E01020 03 03 4 2 M e v v p o r t...
Page 334: ...Section 5 Trajectory Functions Tutorial Newport...
Page 335: ...MM4006 8 Axis Motion Controller Driver C Newport...
Page 337: ...MM4006 8 Axis Motion Controller Driver EDH0181En1020 03 03 5 2 N e w p o r t...
Page 346: ...Section 6 Feature Descriptions Tutorial Newport...
Page 347: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 349: ...MM4006 8 Axis Motion Controller Driver ED11018lEn I 020 03 03 6 2 N e v v p O r t...
Page 359: ...MM4006 F e a t u r e Descriptions Tutorial cv EDI10181En1020 03 03 6 12 N e w p o r t...
Page 360: ...Section 7 Servo Tuning rano at 1 2 2 p EOF 110 1 0 0 0 0 0 ill fpL4 cv Newport...
Page 361: ...MM4006 8 Axis Motion Controller Driver C Nevvport...
Page 363: ...MM4006 8 Axis Motion Controller Driver EDH0181En 1020 03 03 7 2...
Page 368: ...Section 8 Appendices INevvport...
Page 369: ...MM4006 8 Axis Motion Controller Driver CkJ Newport...
Page 371: ...MM4006 8 Axis Motion Controller Driver EDI10181EnI020 03 03 8 2 N e v v p o r t...
Page 410: ...A7 h7s z c 7...