A-7
6.8.6 Ramp signal............................................................................................................................... 6 - 166
6.8.7 Pulse density measurement ...................................................................................................... 6 - 169
6.8.8 Fixed cycle pulse output ............................................................................................................ 6 - 171
6.8.9 Pulse width modulation.............................................................................................................. 6 - 173
6.8.10 Matrix input ................................................................................................................................ 6 - 175
7.1 Logical Operation Instructions
7.1.1 Logical AND operation on 16-/32-bit data...................................................................................... 7 - 3
7.1.2 Logical AND operation on block data ............................................................................................ 7 - 6
7.1.3 Logical OR operation on 16-/32-bit data........................................................................................ 7 - 9
7.1.4 Logical OR operation on block data............................................................................................. 7 - 12
7.1.5 Exclusive OR operation on 16-/32-bit data .................................................................................. 7 - 15
7.1.6 Exclusive OR operation on block data......................................................................................... 7 - 18
7.1.7 Exclusive NOR operation on 16-/32-bit data ............................................................................... 7 - 21
7.1.8 Exclusive NOR operation on block data ...................................................................................... 7 - 24
7.2.1 Right rotation of 16-bit data ......................................................................................................... 7 - 27
7.2.2 Left rotation of 16-bit data............................................................................................................ 7 - 31
7.2.3 Right rotation of 32-bit data ......................................................................................................... 7 - 35
7.2.4 Left rotation of 32-bit data............................................................................................................ 7 - 38
7.3.1 n-bit right/left shift of 16-bit data .................................................................................................. 7 - 41
7.3.2 1-bit right/left shift of n-bit data .................................................................................................... 7 - 44
7.3.3 1-word right/left shift of n-word data ............................................................................................ 7 - 47
7.4 Bit Processing Instructions
7.4.1 Bit set and reset of word devices................................................................................................. 7 - 50
7.4.2 Bit test ......................................................................................................................................... 7 - 53
7.4.3 Batch reset of bit devices............................................................................................................. 7 - 56
7.5 Data Processing Instructions
7.5.1 16-/32-bit data search.................................................................................................................. 7 - 58
7.5.2 16-/32-bit data bit check .............................................................................................................. 7 - 62
7.5.3 Decoding from 8 to 256 bits......................................................................................................... 7 - 65
7.5.4 Encoding from 256 to 8 bits ......................................................................................................... 7 - 67
7.5.5 7-segment decode ....................................................................................................................... 7 - 69
7.5.6 4-bit separation of 16-bit data ...................................................................................................... 7 - 72
7.5.7 4-bit connection of 16-bit data ..................................................................................................... 7 - 74
7.5.8 Separation and connection of random data................................................................................. 7 - 76
7.5.9 Separation and connection of data in units of bytes .................................................................... 7 - 81
7.5.10 Maximum value search of 16-/32-bit data.................................................................................... 7 - 85
7.5.11 Minimum value search of 16-/32-bit data..................................................................................... 7 - 88
7.5.12 Sorting 16-/32-bit data ................................................................................................................. 7 - 91
7.5.13 Total calculation of 16-bit data..................................................................................................... 7 - 96
7.5.14 Total calculation of 32-bit data..................................................................................................... 7 - 98
7.6.1 FOR to NEXT instruction loop ................................................................................................... 7 - 100
7.6.2 Forced termination of FOR to NEXT instruction loop ................................................................ 7 - 103
7.6.3 Subroutine program call............................................................................................................. 7 - 106
7.6.4 Return from subroutine program................................................................................................ 7 - 108
7.6.5 Refresh instruction..................................................................................................................... 7 - 110
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......