While Loop Creation - Newport MM4006 Manual

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

Advertisement

MM4006
2.4.2.2
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
to be tested. Enter a number between 1 and 8 on the numeric keypad and
then press the
or low state of the bit and then the
return to the Line Entry menu.
Command generated
IE
— If I/O input is equal.
repeat a command line a number of times.
REPEAT
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
return to the Line Entry menu.
Command generated
RP — repeat command line.
Set a bit on the I/O output port.
OUTPUT
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
selection. Next, press the
formed on the bit: set high, set low or toggle. Press the
accept the entry and return to the Line Entry menu.
Commands generated
CB — Clear I/O output bit.
SB
— Set I/O output bit.
TG — Toggle I/O output bit.
When all entries have been made on a command line, use the
to find the screen in the Line Entry menu that has the
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
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
.
VAR.
Pressing the
has a specified state. First enter a bit number between 1 and 8 on the key-
pad, press
When done, press the
key, the display asks you to select an input bit
IFINP.
key. Next, press the
VALID
key to specify the operation to be per-
CHANGE
NOTE
key will start a loop that repeats while an I/O input bit
INPUT
and then using the
VALID
key to accept the entry.
VALID
2.45
Local Mode
key to specify the high
CHANGE
key to accept the entry and
VALID
to accept the entry and
VALID
to accept the
VALID
VALID
VALID
key. The next selection
WHILE
key select the bit state.
CHANGE
EDH0181En1020 — 03/03
key to
key
NEXT
function key
and
INPUT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents