PROGRAMMING EXAMPLES

6.6Parameter Reading Program Example

1)The following program reads Pr. 7 "the acceleration time" of station 2 inverter to D1. Pr. 7 "Acceleration time" reading code number: 07H (hexadecimal)

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

 

 

 

 

Read setting

 

 

 

 

43

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M303

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M303

 

 

 

 

 

 

 

 

 

 

H

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

 

45

 

 

 

 

 

 

 

 

 

 

 

 

 

0007

D100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

 

 

 

 

 

 

 

 

 

 

 

TO

0000

01E6

D100

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M215

 

 

 

 

 

 

 

 

 

 

SET

M115

 

 

 

 

 

 

 

 

 

 

H

H

 

 

 

 

 

 

 

 

 

 

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

61

 

 

 

 

 

 

 

 

 

 

 

FROM 0000

02E7

D1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

 

 

 

 

 

 

 

 

 

 

 

FROM 0000

02E6

D2

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M115

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M303

 

M9036

 

 

 

 

 

 

 

 

H

H

 

 

 

 

 

 

 

 

 

K4

K

 

 

 

 

 

 

 

 

 

 

 

 

 

82

 

 

 

 

 

 

 

 

 

 

 

TO

0000

0162

M100

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Writes Pr. 7 reading code (07H) to RWw6.

Switches on the instruction code execution request (RY2F).

M215: "Reads acceleration time (RWr7) and reply code (RWr6) to D1 and 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 RY2F) of buffer memory.

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

38