Program Example For Setting The Operation Mode - Mitsubishi Electric FR-E5NC Instruction Manual

Transistorized inverter
Table of Contents

Advertisement

6.3 Program Example for Setting the Operation Mode

Write programs as explained below to write various data to the inverters:
1) The following program changes the operation mode of station 2 inverter to CC-Link operation.
Operation mode writing code number: FB
CC-Link operation set data: 0000
The reply code at the time of instruction code execution is set to D2. (Refer to page 32.)
M9036
26
X0000 X000F X0001 X0020
36
Write setting
M302
44
M303
46
M215
67
M9036
88
(hexadecimal)
H
(hexadecimal) (Refer to page 29.)
H
H
H
FROM 0000
00E2
M202
Inverter running
MOV 00FB
MOV 0000
H
H
TO
0000
01E6
H
H
FROM 0000
02E6
H
H
TO
0000
0162
34
PROGRAMMING EXAMPLES
K4
K
Reads the remote input (RX20 to RX3F)
M200 2
data of buffer memory to M200-M231.
PLS
M302
SET
M303
H
D100
H
Writes operation mode writing code (FB
D101
to RWw
and set data (0000
6
K
D100 2
Switches on the instruction code execution
SET
M115
request (RY2F).
K
Reads reply code (RWr
D2
1
code execution completion (RX2F) switches on.
Switches off the instruction code execution
RST
M115
request (RY2F).
RST
M303
K4
K
Writes M100-M131 data to the remote outputs
M100
2
(RY20 to RY3F) of buffer memory.
)
H
) to RWw
.
H
7
) to D2 when the instruction
6

Advertisement

Table of Contents
loading

Table of Contents