Mitsubishi MELSEC-Q/L Programming Manual page 13

Table of Contents

Advertisement

6.7
I/O Refresh Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
6.7.1
6.8
Other Convenient Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
6.8.1
6.8.2
6.8.3
6.8.4
6.8.5
6.8.6
6.8.7
6.8.8
6.8.9
6.8.10
7.1
Logical operation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
7.1.1
DAND, DANDP
7.1.2
7.1.3
DOR, DORP
7.1.4
7.1.5
DXOR, DXORP
7.1.6
7.1.7
DXNR, DXNRP
7.1.8
7.2
Rotation instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
7.2.1
ROR, RORP, RCR, RCRPRight rotation of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . .330
7.2.2
ROL, ROLP, RCL, RCLP Left rotation of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . .333
7.2.3
DROR, DRORP, DRCR, Right rotation of 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . .335
DRCRP
7.2.4
DRCLP
7.3
Shift instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
7.3.1
SFL, SFLP
7.3.2
BSFL, BSFLP
7.3.3
SFTBL, SFTBLP
7.3.4
DSFL, DSFLP
7.3.5
SFTWL, SFTWLP
I/O refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285
Counter 1-phase input up or down . . . . . . . . . . . . . . . . . . . . . .287
Counter 2-phase input up or down . . . . . . . . . . . . . . . . . . . . . .289
Teaching timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .291
Special function timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292
Rotary table shortest direction control . . . . . . . . . . . . . . . . . . .294
Ramp signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .296
Pulse density measurement . . . . . . . . . . . . . . . . . . . . . . . . . . .298
Fixed cycle pulse output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .300
Pulse width modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301
Matrix input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302
Logical products with 16-bit data . . . . . . . . . . . . . . . . . . . . . . .306
Logical products with 32-bit data . . . . . . . . . . . . . . . . . . . . . . .306
Block logical products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310
Logical sums of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
Logical sums of 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
Block logical sum operations . . . . . . . . . . . . . . . . . . . . . . . . . .316
16-bit exclusive OR operations . . . . . . . . . . . . . . . . . . . . . . . . .318
32-bit exclusive OR operations . . . . . . . . . . . . . . . . . . . . . . . . .318
Block exclusive OR operations . . . . . . . . . . . . . . . . . . . . . . . . .322
16-bit data exclusive NOR operations . . . . . . . . . . . . . . . . . . .324
32-bit data exclusive NOR operations . . . . . . . . . . . . . . . . . . .324
Block exclusive NOR operations . . . . . . . . . . . . . . . . . . . . . . .328
Left rotation of 32-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . .337
n-bit shift to right of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . .339
n-bit shift to left of 16-bit data . . . . . . . . . . . . . . . . . . . . . . . . . .339
1-bit shift to right of n-bit data . . . . . . . . . . . . . . . . . . . . . . . . . .341
1-bit shift to left of n-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . .341
n-bit shift to right of n-bit data . . . . . . . . . . . . . . . . . . . . . . . . . .343
n-bit shift to left of n-bit data . . . . . . . . . . . . . . . . . . . . . . . . . . .343
1-word shift to right of n-word data . . . . . . . . . . . . . . . . . . . . . .345
1-word shift to left of n-word data . . . . . . . . . . . . . . . . . . . . . . .345
n-word shift to right of n-word data . . . . . . . . . . . . . . . . . . . . . .346
n-word shift to left of n-word data . . . . . . . . . . . . . . . . . . . . . . .346
305
11

Advertisement

Table of Contents
loading

Table of Contents