[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN122 PMXORMATRIX EXCLUSIVE OR(XOR)FUN122 PMXOROperation controlENLadder symbol122P.MXORMa :Mb :Md :L :Ma : Starting register of source matrix aMb : Starting register of source matrix bMd : Starting register of destination matrixL : Length of matrix (Ma, Mb and Md)Ma, Mb, Md may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095Ma ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Mb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Md ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○L ○ ○* ○ ○2∣256V、ZP0~P9Ma Mb Md• When operation control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, this instruction will performs a logic XOR (ifthe 2 bits are different, then the result will be 1, otherwise it will be0)between 2 source matrixes with a length of L, Ma and Mb. Theresult will then be stored back into the destination matrix Md, whichalso has a length of L. For example the XOR operation is done bybits with the same bit numbers - for example, if Ma 0 = 0, Mb 0 = 1,then Md 0 = 1; if Ma 1 = 1, Mb 1 = 1, then Md 1 = 0; etc, right up untilXOR reaches Ma 16L-1 and Mb 16L-1.LXORX0122P.MXOREN Ma : R 0Mb : R 10Md : R 20L : 5• In the program at left, when X0 goes from 0→1, willperform a XOR operation between matrix Ma, comprisedby R0 to R4, and matrix Mb, comprised by R10 to R14.The results will then be stored in destination matrix Md,comprised by R20 to R24. The results are shown at rightin the diagram below.Ma15Ma0 Mb15Mb0 Md15Md0↓Ma↓↓Mb↓↓Md↓R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 R11 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R21 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R2 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R12 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R22 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R23 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R14 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0↑↑↑↑↑↑Ma79Ma64Mb79Mb64Md79Md64Before executionAfter execution7-105
Advanced Function InstructionFUN123 PMXNRMATRIX EXCLUSIVE NOR(XNR)FUN123 PMXNRMa : Starting register of source matrix aMb : Starting register of source matrix bMd : Starting register of destination matrixL : Length of matrix (Ma, Mb and Md)Ma, Mb, Md may combine with V, Z,P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0 WY0 WM0 WS0 T0 C0 R0 R3840 R3904 R3968 R5000 D0 2 V、Z∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣WX240 WY240 WM1896 WS984 T255 C255 R3839 R3903 R3967 R4167 R8071 D4095 256 P0~P9Ma ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Mb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Md ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○L ○ ○* ○ ○• When operation control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, will perform a logic XNR operation (if the 2bits are the same, then the result will be 1, otherwise it will be0)between 2 source matrixes with a length of L, Ma and Mb. Theresults will then be stored into the destination matrix Md, whichalso has the same length (the XNR operation is done by bits withthe same bit numbers). For example, if Ma 0 = 0, Mb 0 = 1, then Md 0= 0; Ma 1 = 0, Mb 1 = 0, then Md 1 = 1; etc, right up until XNRreaches Ma 16L-1 and Mb 16L-1.LMa Mb MdXNRX0123P.MXNREN Ma : R 0Mb : R 10Md : R 10L : 5• When operation control "EN" = 1 or "EN↑" ( P instruction)goes from 0 to 1, will perform a XNR operation between Mamatrix comprised by R0~R9 and Mb matrix comprised byR10~R19. The results will then be stored into thedestination matrix Md comprised by R10~R19. The resultsare shown at right in the diagram below.Ma15Ma0 Mb15Mb0 Md15Md0↓Ma↓↓Mb↓↓Md↓R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 R11 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R2 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R12 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R23 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R14 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R24 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1↑↑↑↑↑↑Ma79Ma64Mb79Mb64Md79Md64Before executionAfter execution7-106
- Page 162 and 163: Advanced Function InstructionFUN 74
- Page 164 and 165: Advanced Function InstructionFUN 76
- Page 166 and 167: Advanced Function InstructionFUN 78
- Page 168 and 169: Advanced Function InstructionFUN 79
- Page 170 and 171: Advanced Function InstructionFUN 81
- Page 172 and 173: Advanced Function InstructionFUN 82
- Page 174 and 175: Advanced Function InstructionFUN 84
- Page 176 and 177: Advanced Function InstructionFUN 86
- Page 178 and 179: Advanced Function InstructionFUN 86
- Page 180 and 181: Advanced Function InstructionFUN89/
- Page 182 and 183: Advanced Function InstructionFUN 90
- Page 184 and 185: Advanced Function InstructionFUN 92
- Page 186 and 187: Advanced Function InstructionFUN 94
- Page 188 and 189: Advanced Function InstructionFUN 95
- Page 190 and 191: Advanced Function InstructionTable
- Page 192 and 193: Advanced Function InstructionFUN101
- Page 194 and 195: Advanced Function InstructionFUN103
- Page 196 and 197: Advanced Function InstructionFUN105
- Page 198 and 199: Advanced Function InstructionFUN107
- Page 200 and 201: Advanced Function InstructionFUN109
- Page 202 and 203: Advanced Function InstructionFUN110
- Page 204 and 205: Advanced Function InstructionFUN111
- Page 206 and 207: Advanced Function InstructionFUN112
- Page 208 and 209: Advanced Function InstructionFUN114
- Page 210 and 211: Advanced Function InstructionFUN120
- Page 214 and 215: Advanced Function InstructionFUN124
- Page 216 and 217: Advanced Function InstructionFUN126
- Page 218 and 219: Advanced Function InstructionFUN128
- Page 220 and 221: Advanced Function InstructionFUN130
- Page 222 and 223: Advanced Function InstructionFUN 13
- Page 224 and 225: Advanced Function InstructionFUN141
- Page 226 and 227: Advanced Function InstructionFUN143
- Page 228 and 229: Advanced Function InstructionFUN146
- Page 230 and 231: Advanced Function InstructionFUN 15
- Page 232 and 233: Advanced Function InstructionFUN160
- Page 234 and 235: Advanced Function InstructionFUN201
- Page 236 and 237: Advanced Function InstructionFUN 20
- Page 238 and 239: Advanced Function InstructionFUN 20
- Page 240 and 241: Advanced Function InstructionFUN 20
- Page 242 and 243: Advance Function InstructionFUN 208
- Page 244 and 245: Advanced Function InstructionFUN 21
- Page 246 and 247: Advanced Function InstructionFUN 21
- Page 248 and 249: MEMO
- Page 250 and 251: 8.2 Basic Formation of Step Ladder
- Page 252 and 253: . Single CycleM1924X0• When step
- Page 254 and 255: ●STP Sxxx : S20≦Sxxx≦S999(Dis
- Page 256 and 257: 【Description】: 1. When ON, the
- Page 258 and 259: ●STPEND :(Displayed in WinProladd
- Page 260 and 261: Example 1WinProladderFP-07M1924STP
Advanced Function <strong>Instruction</strong>FUN123 PMXNRMATRIX EXCLUSIVE NOR(XNR)FUN123 PMXNRMa : Starting register of source matrix aMb : Starting register of source matrix bMd : Starting register of destination matrixL : Length of matrix (Ma, Mb and Md)Ma, Mb, Md may combine with V, Z,P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0 WY0 WM0 WS0 T0 C0 R0 R3840 R3904 R3968 R5000 D0 2 V、Z∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣WX240 WY240 WM1896 WS984 T255 C255 R3839 R3903 R3967 R4167 R8071 D4095 256 P0~P9Ma ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Mb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Md ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○L ○ ○* ○ ○• When operation control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, will perform a logic XNR operation (if the 2bits are the same, then the result will be 1, otherwise it will be0)between 2 source matrixes with a length of L, Ma and Mb. Theresults will then be stored into the destination matrix Md, whichalso has the same length (the XNR operation is done by bits withthe same bit numbers). For example, if Ma 0 = 0, Mb 0 = 1, then Md 0= 0; Ma 1 = 0, Mb 1 = 0, then Md 1 = 1; etc, right up until XNRreaches Ma 16L-1 and Mb 16L-1.LMa Mb MdXNRX0123P.MXNREN Ma : R 0Mb : R 10Md : R 10L : 5• When operation control "EN" = 1 or "EN↑" ( P instruction)goes from 0 to 1, will perform a XNR operation between Mamatrix comprised by R0~R9 and Mb matrix comprised byR10~R19. The results will then be stored into thedestination matrix Md comprised by R10~R19. The resultsare shown at right in the diagram below.Ma15Ma0 Mb15Mb0 Md15Md0↓Ma↓↓Mb↓↓Md↓R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 R11 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R2 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R12 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 R22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R23 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1R4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R14 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 R24 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1↑↑↑↑↑↑Ma79Ma64Mb79Mb64Md79Md64Before executionAfter execution7-106