E658130

6.7.Program example for parameter reading

Example 7 shows a ladder logic to read parameter f311 of station 1 inverter to D2. f311: Reverse-run prohibition reading code number: 1311H (hexadecimal)

The reply code at the time of instruction code execution is set to D1.

X0 X0F X1 SW80.0

( M0)

M0 X20

[ PLS M300]

M300

[ SET M301]

M301 X100F

[ MOV H1311 W102]

[ SET Y100F]

[ RST M301]

[ SET M302]

M302 X100F

[ MOV W2 D1]

[ MOV W3 D2]

[ RST Y100F]

Check the ready of the station 1

Write f311 read code (1311H) to

Turn on the instruction code execution

Read reverse-run prohibition (RWr3) and reply code (RWr2) to D2 and D1 when the instruction code execution completion

Turn off the instruction code execution

[ RST M302]

[ END]

Example 7

Refer to 5.5.8 for detail.

- 43 -

Page 44
Image 44
Toshiba E6581830 instruction manual Program example for parameter reading