While Loop Creation - Newport MM4006 User Manual

8-axis high-performance motion controller/driver
Hide thumbs Also See for MM4006:
Table of Contents

Advertisement

MM4006
( k )
tIevvport.
2
L
o
on the line only if the specified I/O input bit has the requested state. If the
condition is not met at the time of evaluation, the rest of the command line
is ignored and the program execution continues with the next line.
After pressing the , IFINP. k e y, the display asks you to select an input bit
to be tested. Enter a number between 1 and 8 on the numeric keypad and
then press the VALID k e y. Next, press theE,HANGE key to specify the high
or low state of the bit and then the .:VA k e y to accept the entry and
return to the Line Entry menu.
Command generated
IE — I f I/O input is equal.
REPEA T , r e p e a t a command line a number of times.
Use this function only at the end of a command line to repeat its execution
a number of times. When selected, enter on the keypad the number of time
you want to repeat the line and then press VALID t o accept the entry and
return to the Line Entry menu.
Command generated
RP — r e p e a t command line.
Set a bit on the I/O output port.
OUT
This function will generate a command that sets an I/O output bit to a spec-
ified state. Use the numeric keypad to enter a number between 1 and 8 to
select a bit or enter 0 to set all bits and then press rifAllrJD t o accept the
selection. Next, press the
formed on the bit: set high, set low or toggle. Press the I t
accept the entry and return to the Line Entry menu.
Commands generated
CB — C l e a r I/O output bit.
SB — S e t I/O output bit.
TG — To g g l e I/O output bit.
When all entries have been made on a command line, use the A i r key
to find the screen in the Line Entry menu that has the v a s & function key
and press it to save the line in memory and advance to a new one.

WHILE Loop Creation

As mentioned earlier, the Program Creation menu offers the choice of cre-
ating simple while loops.
Programs created from the front panel can have only simple while loops.
Remote programs could have up to 100 nested loops.
From the Program Creation menu press the :-W1 1,1 1.E., key. The next selection
you have to make is the type of while loop. The controller can do a check
on an I/O input bit or a variable, thus the two choices are
Pressing the R I N ' key will start a loop that repeats while an I/O input bit
has a specified state. First enter a bit number between 1 and 8 on the key-
pad, press M A N and then using the :OHANcg k e y select the bit state.
When done, press the O N k e y to accept the entry.
.
4
5
c
a
k e y
to specify the operation to be per-
NOTE
l
Mode
k e y to
a n d
EDH0181En1020 — 03/03

Advertisement

Table of Contents
loading

Table of Contents