Mitsubishi Electronics FR-E5NC Marine Battery User Manual


 
PROGRAMMING EXAMPLES
34
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
H
(hexadecimal)
CC-Link operation set data: 0000
H
(hexadecimal) (Refer to page 29.)
The reply code at the time of instruction code execution is set to D2. (Refer to page 32.)
SET M303
M9036
FROM 0000
H
00E2
H
M200 2
K
PLS M302
M303
FROM 0000
H
02E6
H
D2 1
K
MOV 00FB
H
D100
TO 0000
H
01E6
H
D100 2
K
2
6
4
6
X0000 X000F X0001 X0020
M302
K4
SET M115
M215
6
7
RST M115
RST M303
TO 0000
H
0162
H
M100
K4
2
K
M9036
8
8
3
6
4
4
M202
MOV 0000
H
D101
Write setting
Inverter running
Switches on the instruction code execution
request (RY2F).
Switches off the instruction code execution
request (RY2F).
Reads the remote input (RX20 to RX3F)
data of buffer memory to M200-M231.
Writes operation mode writing code (FB
H
)
to RWw
6
and set data (0000
H
) to RWw
7
.
Reads reply code (RWr
6
) to D2 when the instruction
code execution completion (RX2F) switches on.
Writes M100-M131 data to the remote outputs
(RY20 to RY3F) of buffer memory.