Mitsubishi Electronics MR-J2S- CL specifications Operation, General-purposeregister

Models: MR-J2S- CL

1 337
Download 337 pages 389 b
Page 107
Image 107
General-purpose register

4. OPERATION

(j) Indirect addressing using general-purpose registers (R1-R4, D1-D4)

The set values of the "SPN", "STA", "STB", "STC", "STD", "MOV", "MOVI", "MOVA", "MOVIA", "TIM" and "TIMES" commands can be addressed indirectly.

The values stored in the general-purpose registers (R1-R4, D1-D4) are used as the set values of the commands.

Change the values of the general-purpose registers using the communication command when the program is not being executed by the communication command. (Refer to Section 15.12.13)

The data of the general-purpose registers are erased at power-off of the servo amplifier. Note that the data of the general-purpose registers (R1-R4, D1-D4) can be saved in the EEP-ROM.

The setting ranges of the general-purpose registers are the setting ranges of the instructions with which the general-purpose registers are used.

The following explains the case where the general-purpose registers are set as indicated below before execution of the program.

 

General-purpose register

Setting

 

 

 

 

 

 

R1

 

1000

 

 

 

 

 

 

R2

 

2000

 

 

 

 

 

 

D1

 

200

 

 

 

 

 

 

D2

 

300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program

 

 

 

Description

 

 

 

SPN (1000)

Speed (Motor speed)

1000 [r/min]

 

a)

STA (D1)

Acceleration time constant

D1=200 [ms]

 

b)

STB (D2)

Deceleration time constant

D2=300 [ms]

 

c)

MOVI (R1)

Incremental move command

R1=1000 [

10STM

m]

d)

TIM (10)

Dwell command time

100 [ms]

 

 

e)

MOVI (R2)

Incremental move command

R2=2000 [

10STM

m]

f)

STOP

Program end

 

 

 

 

 

 

b) D1=200ms

c) D2=300ms b) D1=200ms

c) D2=300ms

a) 1000r/min

 

 

 

 

 

 

 

 

 

 

 

 

 

Forward

 

 

 

 

 

 

 

rotation

 

 

 

 

 

 

 

Servo motor 0r/min

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

speed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

d) R1=1000

10STM m e)

 

Dwell command f) R2=2000

10STM m

 

 

 

 

 

 

time (100ms)

 

4 - 24

Page 107
Image 107
Mitsubishi Electronics MR-J2S- CL specifications Operation, General-purposeregister