PROGRAMMING EXAMPLES

6.8Running Frequency Setting Program Example

1)The following program changes the running frequency of station 2 inverter to 50.00Hz. Set frequency: K5000 (decimal)

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

 

M9036

 

 

 

 

 

 

 

 

H

H

K4

K

 

Reads the remote input (RX20 to RX3F)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26

 

 

 

 

 

 

 

 

 

 

 

FROM 0000

00E2

M200

2

 

 

 

 

 

 

 

 

 

 

 

 

 

data of buffer memory to M200-M231.

 

X0000 X000F X0001 X0020

 

 

 

 

 

 

 

 

 

 

 

 

36

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLS

M302

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M302

 

 

 

 

Write setting

 

 

 

 

 

 

43

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M303

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M303

 

 

 

 

 

 

 

 

 

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

45

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

5000

D100

 

Writes set frequency to RWw5.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TO

0000

01E5

D100

1

 

Switches on the frequency setting command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M113

 

 

 

M213

 

 

 

 

 

 

 

 

 

 

 

RAM (RY2D).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

 

K

 

Reads reply code (RWr6) to D2 when the frequency

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

66

 

 

 

 

 

 

 

 

 

 

 

FROM 0000

02E6

D2

1

 

 

 

 

 

 

 

 

 

 

 

 

 

setting completion (RX2D) switches on.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M113

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Switches off the frequency setting command (RY2D).

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M303

 

 

 

M9036

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H

H

K4

K

 

Writes M100-M131 data to the remote outputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

82

 

 

 

 

 

 

 

 

 

 

 

TO

0000

0162

M100

2

 

 

 

 

 

 

 

 

 

 

 

 

 

(RY20 to RY3F) of buffer memory.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

40