PROGRAMMING EXAMPLES

6.7Parameter Writing Program Example

1)Program example which changes the Pr. 7 "acceleration time" setting of station 2 inverter to 3.0 seconds Acceleration time writing code number: 87H (hexadecimal)

Acceleration time set data: K30 (decimal)

For the parameter code numbers, refer to the inverter manual.

The reply code at the time of instruction code execution is set to D2. (Refer to page 32)

 

M9036

 

 

 

 

 

 

 

 

H

H

K4

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26

 

 

 

 

 

 

 

 

 

 

 

 

FROM 0000

00E2

M200 2

 

 

 

 

 

 

 

 

 

 

 

 

 

X0000 X000F X0001 X0020

 

 

 

 

 

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLS

M302

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M302

 

 

 

 

Write setting

 

 

 

 

 

43

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M303

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M303

 

 

 

 

 

 

 

 

 

 

 

H

 

45

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

0087

D100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

0030

D101

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

TO

0000

 

01E6

D100

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M115

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

 

M215

 

 

 

 

 

 

 

FROM 0000

02E6

D2

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M115

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M303

 

M9036

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

K4

K

87

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TO

0000

 

0162

M100 2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reads the remote input (RX20 to RX3F) data of buffer memory to M200-M231.

Writes Pr. 7 write (87H) to RWw6 and acceleration time setting data (K30) to RWw7.

Switches on the instruction code execution request (RY2F).

Reads reply code (RWr6) to D2 when the instruction code execution completion (RX2F) switches on.

Switches off the instruction code execution request (RY2F).

Writes M100-M131 data to the remote outputs (RY20 to RY3F) of buffer memory.

Note: 1. For parameters having numbers 100 and later, change their link parameter extension settings (set them to other than 0000H).

2. For other functions, refer to the instruction codes (page 29).

39