[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN126 PMBRDMATRIX BIT READFUN126 PMBRDReadout controlPointer incrementENINCLadder symbol126P.MBRDMs :L :Pr :OTBENDOutput bitRead to endMs : Starting register of matrixL : Matrix lengthPr : Pointer registerMs may combine with V, Z, P0~P9 to serveindirect address applicationPointer clearCLRERRPointer errorOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C199R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095Ms ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○L ○ ○* ○ ○Pr ○ ○ ○ ○ ○ ○ ○ ○* ○* ○2∣256V、ZP0~P9• When readout control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, the status of the bit Mspr pointed bypointer Pr within matrix Ms will be read out and appear at theoutput bit "OTB". Before the readout, this instruction will firstcheck the input -pointer clear "CLR". If "CLR" is 1, then the Prvalue will be cleared to 0 first before the readout action is carriedout. After the readout is completed, If the Pr value has alreadyreached 16L-1 (the final bit), then the read-to-end flag "END" willbe set to 1. If Pr is less than 16L-1, then the status of pointerincrement "INC" will be checked. If "INC" is 1, then Pr will beincreased by 1. Besides this, pointer clear "CLR" can executeindependently, and is not affected by other input.LMsMsprPrOTB• The effective range of the pointer is 0 to 16L-1. Beyond this range the pointer error flag "ERR" will be set to 1,and this instruction will not be carried out.X0ENINCCLR126P.MBRDMs : R 0L :Pr :5R 20OTBENDERR• In the program at left, INC = 1, so every time there isone readout the pointer will be increased by 1. With thisway each bit in Ms may be read out successively, asshown at left in the diagram below. When X0 goes 3times from 0→1, the results are shown at right in thediagram below .PrMs15Ms0↓Ms↓ R20 77R0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1R1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1OTBR2 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 0R3 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1R4 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0↑ ↑Ms79Ms77↑Ms64Before executionPr OTB END R20 78 1 0Pr OTB END R20 79 0 0Pr OTB END R20 79 1 1Execution result7-109
Advanced Function InstructionFUN127 PMBWRMATRIX BIT WRITEFUN127 PMBWRWrite controlWrite-in bitPointer incrementENINBINCLadder symbol127P.MBWRMd :L :Pr :ENDERRWrite to endPointer errorMd : Starting register of matrixL : Matrix lengthPr : Pointer registerMd may combine with V, Z, P0~P9 to serveindirect address applicationPointer clearCLROperandRangeWY WM WS TMR CTR HR OR SR ROR DR K XRWY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0 R3904 R3968 R5000∣ ∣ ∣ ∣R3839 R3967 R4167 R8071D0∣D4095Md ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○L ○ ○* ○ ○Pr ○ ○ ○ ○ ○ ○ ○ ○* ○* ○2∣256V、ZP0~P9• When write control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, the status of the write-in bit "INB" will bewritten into the bit Mdpr pointed by pointer Pr within matrix Md.Before the write-in takes place, the status of pointer clear "CLR"will be checked. If "CLR" is 1, then Pr will be cleared to 0 beforethe write-in action. After the write-in action has been completed,the Pr value will be checked again. If the Pr value has alreadyreached 16L-1 (last bit), then the write-to-end flag will be set to1. If the Pr value is less than 16L-1 and "INC" is 1, then thepointer will increased by 1. Besides this, pointer clear "CLR" canexecute independently, and is not affected by other input.LMsMsprPrOTB• The effective range of Pr is 0 to 16L-1. Beyond this range, the pointer error flag "ERR" will be set to 1, andthis instruction will not be carried out.X0X1ENINBINCCLR127P.MBWRMs : R 0L :Pr :5R 20ENDERR• In the program at left, pointer will be increased each timeexecution (because "INC" is 1). As shown in the diagrambelow, when X0 has a transition from 0→1, the status ofINB (X1) will be written into the Mdpr (Md 78) position, andpointer Pr will increased by 1 (changing to 79). In thiscase, although Pr is pointing to the end, it has not yetbeen written into Md 79, so "END" flag is still 0. Only thenext attempt to write to Md 79 will set “END” to 1.X1 Pr Pr EN1 R20 78 R20 79 0Md15Md0Md15Md0↓Md↓↓ Md↓R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X0= R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R2 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 R3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R4 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0↑↑↑↑Md79Md64Md79Md64Before executionAfter execution7-110
- 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 212 and 213: Advanced Function InstructionFUN122
- Page 214 and 215: Advanced Function InstructionFUN124
- 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
- Page 262 and 263: Example 3WinProladderFP-07M1924STP
- Page 264 and 265: WinProladderFP-07M1924STP S0X1X2X0S
Advanced Function <strong>Instruction</strong>FUN127 PMBWRMATRIX BIT WRITEFUN127 PMBWRWrite controlWrite-in bitPointer incrementENINBINCLadder symbol127P.MBWRMd :L :Pr :ENDERRWrite to endPointer errorMd : Starting register of matrixL : Matrix lengthPr : Pointer registerMd may combine with V, Z, P0~P9 to serveindirect address applicationPointer clearCLROperandRangeWY WM WS TMR CTR HR OR SR ROR DR K XRWY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0 R3904 R3968 R5000∣ ∣ ∣ ∣R3839 R3967 R4167 R8071D0∣D4095Md ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○L ○ ○* ○ ○Pr ○ ○ ○ ○ ○ ○ ○ ○* ○* ○2∣256V、ZP0~P9• When write control "EN" = 1 or "EN↑" ( P instruction) has atransition from 0 to 1, the status of the write-in bit "INB" will bewritten into the bit Mdpr pointed by pointer Pr within matrix Md.Before the write-in takes place, the status of pointer clear "CLR"will be checked. If "CLR" is 1, then Pr will be cleared to 0 beforethe write-in action. After the write-in action has been completed,the Pr value will be checked again. If the Pr value has alreadyreached 16L-1 (last bit), then the write-to-end flag will be set to1. If the Pr value is less than 16L-1 and "INC" is 1, then thepointer will increased by 1. Besides this, pointer clear "CLR" canexecute independently, and is not affected by other input.LMsMsprPrOTB• The effective range of Pr is 0 to 16L-1. Beyond this range, the pointer error flag "ERR" will be set to 1, andthis instruction will not be carried out.X0X1ENINBINCCLR127P.MBWRMs : R 0L :Pr :5R 20ENDERR• In the program at left, pointer will be increased each timeexecution (because "INC" is 1). As shown in the diagrambelow, when X0 has a transition from 0→1, the status ofINB (X1) will be written into the Mdpr (Md 78) position, andpointer Pr will increased by 1 (changing to 79). In thiscase, although Pr is pointing to the end, it has not yetbeen written into Md 79, so "END" flag is still 0. Only thenext attempt to write to Md 79 will set “END” to 1.X1 Pr Pr EN1 R20 78 R20 79 0Md15Md0Md15Md0↓Md↓↓ Md↓R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X0= R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R2 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 R3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0R4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 R4 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0↑↑↑↑Md79Md64Md79Md64Before executionAfter execution7-110