Mitsubishi Q62DAN Specifications Page 295

  • Download
  • Add to my manuals
  • Print
  • Page
    / 350
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 294
App. - 27
Sequence program of example 1
The FOR-NEXT instruction is executed to divide each decimal place individually and
4 decimal places are displayed in K4Y40.
Project name QA-5
Program name MAIN
X0
M0
NEXT
0
22
24
4
5
Reads data
D0K4X30BINP
D1K4X20BINP
D2D0/P D1
K4Y50D2BCDP
Z0DMOVP
D10K0MOVP
M0PLS
K4FOR
D10K4*Z1
Z0H0C-D10
D3D3*K10
D2D3/D1
K1Y40Z0D2BCD
Z1INC
Division
BCD-outputs a quotient
Clears index register Z0
Clears D10
Repeats for 4 times
K0
Executing the INC Z1
instruction adds one to Z1.
Page view 294
1 2 ... 290 291 292 293 294 295 296 297 298 299 300 ... 349 350

Comments to this Manuals

No comments