Operation – MITSUBISHI ELECTRIC MR-J2S- CL User Manual

Page 91

Advertising
background image

4 - 8

4. OPERATION

Command

Name

Setting

Setting

range

Unit

Indirect

Addressing

Description

COUNT

(Note 1)

External

pulse counter

COUNT

(Set value)

-999999

to 999999

pulse

Executes the next step when the pulse counter value
becomes greater than the count value set to the
"COUNT" command.
COUNT (0) is clearing of the pulse counter.

FOR

NEXT

Step repeat

command

FOR

(SET value)

NEXT

0, 1 to
10000

Times

Repeats the steps located between the "FOR (set
value)" command and "NEXT" command by the
preset number of times.
Setting "0" selects endless repetition.

LPOS

(Note 1)

Position latch

LPOS

Latches the current position on the leading edge of
Input device current latch (LPS).
The latched current position data can be read by the
communication command.
There are some error values between the latched
data and the actual exact position, due to the
sampling time and motor speed.

TIM

Dwell

command

time

TIM

(Set value)

1 to 2000

10ms

Holds the next step until the preset time elapses.

ZRT

Zeroing

ZRT

Executes a manual home position return.

TIMES

Program

repeat

command

TIMES

(Set value)

0, 1 to
10000

Times

Place the "TIMS (setting value)" command at the
beginning of the program and set the number of
program execution times.
Setting "0" selects endless repetition.

STOP

Program end

STOP

Program stops signal, and it must be at end of the
program. (Required)
Always describe this command on the last line.

Note 1. "SYNC" "OUTON" "OUTOF" "TRIP" "TRIPI" "COUNT" "LPOS" and "ITP" commands are available to be validated during

command outputting.

2. The "SPN" command is valid when the "MOV", "MOVA", "MOVI" or "MOVIA" command is executed. The "STA", "STB", "STC"

and "STD" commands are valid when the "MOV" or "MOVI" command is executed.

3. When the ON time has been set in parameter No. 74 to No. 76, the next command is executed after the preset time has

elapsed.

4. The remaining moving distance by ITP command is lower than setting value, the command would be ignored and skip to the

next program command.

Advertising