Programming Example For Parameter Reading; Programming Example For Parameter Writing - Mitsubishi Electric FR-E720-0.1KNC Instruction Manual

Table of Contents

Advertisement

4.7.5

Programming example for parameter reading

The following program reads Pr. 7 Acceleration time of
⋅ Pr. 7 Acceleration time reading code number: H07 (hexadecimal)
⋅ Refer to the parameter list on page 84 to find out the code number of each parameter.
⋅ The reply code at the time of instruction code execution is set to D2. (Refer to page 63)
X0
X0F
X1 SW80.0
0
M0
X20
7
M300
11
M301
X100F
13
M302
X100F
20
28
REMARKS
• For parameters having numbers 100 and later, change their link parameter extended settings (set them to other than H0000).
Refer to the parameter list on page
4.7.6

Programming example for parameter writing

The following program changes the setting of Pr.7 Acceleration time of
⋅ Acceleration time writing code number: H87 (hexadecimal)
⋅ Acceleration time set data: K30 (decimal)
Refer to the parameter list on page
The reply code at the time of instruction code execution is set to D2. (Refer to page 63)
X0
X0F
X1 SW80.0
0
M0
X20
7
M300
11
M301
X100F
13
M302
X100F
22
28
REMARKS
• For parameters having numbers 100 and later, change their link parameter extended settings (set them to other than H0000).
Refer to the parameter list on page
• For other functions, refer to the instruction codes (page 64).
station 1
M0
Check the data link status of the station 1
PLS M300
SET M301
Write Pr. 7 read code (H07) to RWw2.
MOV H7
W102
Turn ON the instruction code execution request (RY0F)
SET Y100F
RST M301
SET M302
MOV W3
D1
MOV W2
D2
RST Y100F
Turn OFF the instruction code execution request (RY0F)
RST M302
END
84
for the setting values.
to find out the code number of each parameter.
84
Check the data link status of the station 1
M0
PLS M300
SET M301
MOV H87 W102
Write Pr. 7 write (H87) to RWw2 and
acceleration time setting data (K30) to RWw3.
MOV K30 W103
SET Y100F
Turn ON the instruction code execution request (RY0F)
RST M301
SET M302
Read reply code (RWr2) to D2 when the instruction
MOV W2
D2
code execution completion (RX0F) turns ON.
Turn OFF the instruction code execution request (RY0F)
RST Y100F
RST M302
END
84
for the setting values.
Programming examples
inverter to D1.
Read acceleration time (RWr3) and reply code
(RWr2) to D1 and D2 when the instruction code
execution completion (RX0F) turns ON.
station 1
inverter to 3.0s.
4
71

Advertisement

Table of Contents
loading

Table of Contents