The text of a manual · part 59 of 60
SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: Index
Pages 511 to 517 of 520, from SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual
The original document is the PDF (2.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron CQM1-CPU21
Page 511
Index A–B ACC(––), 22, 25, 26, 30 ADBL(––), 113 address tracing. See tracing, data tracing. advanced I/O instructions 7-SEGMENT DISPLAY OUTPUT, 125 DIGITAL SWITCH INPUT, 122 functions, 118 HEXADECIMAL KEY INPUT, 120 TEN-KEY INPUT, 118 using alternate I/O bits, 127 cycle time (CPM1/CPM1A) calculating, 401 effects on operations, 401 processes, 401 cycle time (CQM1) calculating, 383 effects on operations, 384 processes, 383 cycle time (minimum), PC Setup settings, 18 cycle time (SRM1) calculating, 412 effects on operations, 412 processes, 412 analog volume controls. See analog settings arithmetic flags, 113, 185 ASCII, converting data, 262, 263 bits, controlling, 197
D data decrementing, 312 incrementing, 311 data tracing, 315–340
C
DBS(––), 113 DBSL(––), 113 check levels, program checks, 425 decrementing. See data checksum, calculating frame checksum, 321 definers, definition, 184 clock, 469 communication errors, 428 communications CQM1 PC Setup, 88 host link, node number (CQM1), 89 host link (CPM1/CPM1A), 93 host link (CQM1), 91 host link (SRM1), 95 link NT Link (CPM1/CPM1A), 103 NT Link (SRM1), 106 one-to-one (CPM1/CPM1A), 101 one-to-one (CQM1), 100 one-to-one (SRM1), 104 one-to-one (CQM1), 89 RS-232C (CQM1/SRM1), 98 standard (CQM1). See settings types, 87, 88 wiring, 91
Differential Monitor, function, 129 differentiated instructions, 186 function codes, 184
E EEPROM ICs. See Memory Cassettes end code, host link response end codes, 432 end codes, host link response codes, 355 error codes, programming, 205 error log, PC Setup settings, 21 error log area, 426 error messages, programming, 317
CTBL(63), 22, 27 errors 1:1 links (CQM1), 101 communications, 428 fatal, 429 general, 424 non-fatal, 427 other, 430 programming, 425 Programming Console operations, 424 programming messages, 317 resetting, 205 types, 424 user-defined errors, 426 cycle monitor time, PC Setup settings, 21 execution condition, definition, 154 communications functions, 87 constants, operands, 185 counters conditions when reset, 210, 212 creating extended timers, 211 reversible counters, 211
499
Page 512
Index expansion instructions, 444 function codes, 116
F FAL area, 205 FAL(06), 426 FALS(07), 426 flag arithmetic, programming example, 243, 246 CY clearing, 278 setting, 278 flags, error and arithmetic, 447 flash memory, SRM1, 145 Frame Check Sequence. See frames, FCS frame checksum, calculating with FCS(––), 321 frames dividing See also host link precautions, 354 FCS, 354 function codes, 184 expansion instructions, 116, 117
H high-speed counter interrupts, CPM1/CPM1A, 76 high-speed timers, PC Setup settings, 20 hold bit status, PC Setup settings, 17 host link command and response formats, 352 communications See also host link commands methods, 350 PC transmission, 355 procedures, 350 procedures (CQM1), 92 data transfer, 351 dividing frames, 353 end codes, 355, 432 frame definition, 351 maximum size, 351 node number (CQM1), 89 setting parameters, start and end codes (CQM1), 90 setting parameters (CQM1). See RS–232C host link commands **, 378 FK, 373 IC, 379 KC, 374 KR, 372 KS, 371 MF, 370 MM, 375 MS, 369 QQ, 376 R#, 364 R$, 364 R%, 365 RC, 357 RD, 358 RG, 358 RH, 357 RJ, 359 RL, 356 RP, 376 RR, 356 SC, 370 TS, 375 W#, 366 W$, 367 W%, 368 WC, 361 WD, 362 WG, 362 WH, 360 WJ, 363 WL, 360 WP, 376 WR, 359 XZ, 378
I I/O bits CPM1/CPM1A, 140 CQM1, 135 SRM1, 144 I/O points, refreshing, 318 I/O refresh operations, types (CQM1), 383 I/O response time CPM1/CPM1A. See timing CQM1. See timing one-to-one link communications CPM1/CPM1A, 403 CQM1, 386 SRM1, 414 SRM1. See timing I/O terminals IR bit allocation, 141 IR bit allocation (CPM1/CPM1A), 141 I/O words, allocating (CQM1), 136 host link (CPM1/CPM1A), 93 incrementing, 311 host link (CQM1), 91 indirect addressing, 185 host link (SRM1), 95
INI(61), 25, 26, 37
500
Page 513
Index initialization processes, CPM1/CPM1A, 400 input interrupts, CPM1/CPM1A, 69 input time constants, PC Setup settings, 19 inputs, quick-response inputs (CPM1/CPM1A), 131 instruction set, 441 7SEG(88), 345 ACC(––), 22, 25, 26, 30, 334 ADB(50), 289 ADBL(––), 113 ADD(30), 278 ADDL(54), 283 AND, 156, 196 combining with OR, 157 AND LD, 159, 197 combining with OR LD, 162 use in logic blocks, 161 AND NOT, 156, 196 ANDW(34), 309 ASC(86), 262 ASFT(17), 230 ASL(25), 225 ASR(26), 226 AVG(––), 302 BCD(24), 253 BCDL(59), 254 BCMP(68), 244 BCNT(67), 320 BIN(23), 252 BINL(58), 254 BSET(71), 234 CLC(41), 278 CMP(20), 242 CMPL(60), 246 CNT, 210 CNTR(12), 211 COLL(81), 237 COM(29), 308 CPS(––), 248 CPSL(––), 249 CTBL(63), 22, 27, 215 CTW(––), 273 DBS(––), 113, 298 DBSL(––), 113, 299 DEC(39), 312 DIFD(14), 174, 200–209 using in interlocks, 202 using in jumps, 204 DIFU(13), 174, 200–209 using in interlocks, 202 using in jumps, 204 DIST(80), 235 DIV(33), 282 DIVL(57), 287 DMPX(77), 257 DSW(––), 21 DSW(87), 346 DVB(53), 292 END(01), 159, 201 FAL(06), 205 FALS(07), 205 FCS(––), 321 FPD(––), 322 HEX(––), 263
HKY(––), 347 HTS(65), 271 IL(02), 170, 201–203 ILC(03), 170, 201–203 INC(38), 311 INI(61), 26, 37, 220 INT(89), 44, 73, 326 IORF(97), 318 JME(05), 203 JMP(04), 203 JMP(04) and JME(05), 172 KEEP(11), 199 in controlling bit status, 174 ladder instructions, 155 LD, 156, 196 LD NOT, 156, 196 MAX(––), 300 MBS(––), 113, 296 MBSL(––), 113, 297 MCMP(19), 247 MCRO(99), 319 MIN(––), 301 MLB(52), 291 MLPX(76), 255 MOV(21), 232 MOVB(82), 239 MOVD(83), 240 MSG(46), 317 MUL(32), 281 MULL(56), 286 MVN(22), 232 NEG(––), 113 NEGL(––), 113 NOP(00), 201 NOT, 153 operands, 152 OR, 157, 196 combining with AND, 157 OR LD, 160, 197 combining with AND LD, 162 use in logic blocks, 161 OR NOT, 157, 196 ORW(35), 309 OUT, 158, 197 OUT NOT, 158, 197 PID(––), 338 PLS2(––), 22, 25, 26, 29, 332 PMW(––), 32 PRV(62), 34, 65, 221 PULS(65), 23, 26, 27, 36, 328 PWM(––), 336 RESET, 173 RET(93), 38, 315 ROL(27), 226 ROOT(72), 288 ROR(28), 227 RSET, 198–199 RXD(47), 110, 340 SBB(51), 290 SBBL(––), 113 SBN(92), 67, 315 SBS(91), 313 SCL(66), 266 SCL2(––), 268 SCL3(––), 269
501
Page 514
Index SDEC(78), 259 SET, 173, 198–199 SFT(10), 224 SFTR(84), 229 SLD(74), 228 SNXT(09), 206 SPED(64), 23, 25, 26, 27, 28, 36, 330 SRCH(––), 337 SRD(75), 228 STC(40), 278 STEP(08), 206 STH(––), 272 STIM(69), 45, 213 STUP(––), 344 SUB(31), 279 SUBL(55), 285 SUM(––), 303 TCMP(85), 243 terminology, 152 TIM, 209 TIMH(15), 212 TKY(18), 347 TRSM(45), 315 TXD(48), 110, 342 VCAL(––), 305 WSFT(16), 225 WTC(––), 274 XCHG(73), 235 XFER(70), 233 XFRB(––), 241 XNRW(37), 311 XORW(36), 310 ZCP(––), 250 ZCPL(––), 252 instruction sets ADBL(––), 293 NEG(––), 275 NEGL(––), 276 SBBL(––), 294 instructions advanced I/O, 118 execution times CPM1/CPM1A, 406 CQM1, 389 SRM1, 417 expansion, 116 instruction set lists, 190 mnemonics list, ladder, 193 right-hand instructions, coding multiple, 168 subroutines, 313 tables default, 117 user-set, 117 INT(89), 44, 73 interlocks, 201–203 using self-maintaining bits, 175 interrupt functions CPM1/CPM1A, 67 CQM1, 38 SRM1, 83
502 interrupt processing calculating response time CPM1/CPM1A, 405 CQM1, 389 masking CPM1/CPM1A, 405 CQM1, 388 SRM1, 416 timing (CPM1/CPM1A), 405 timing (CQM1), 388 timing (SRM1), 416 interrupts control, 326 high-speed counter, programming, 80 input, parameters (CQM1), 39 types (CQM1), 38 interrupts (CPM1/CPM1A) counter mode, 72 high-speed counter, 76 overflows and overflows, 77 input interrupt mode, 70 input interrupts, 69 interval timers, 74 masking, 73 setting modes, 70 types, 67 unmasking, 74 interrupts (CPM1CPM1A), interval timers, scheduled interrupt mode, 74 interrupts (CQM1) absolute high-speed counters CQM1-CPU44-E, 62 programming, 63 counter mode, 41 high-speed counter overflows and overflows, 54 programming, 50 high-speed counter 0, 47 overflows and overflows, 53 high-speed counters 1 and 2 CQM1-CPU43-E, 55 programming, 57 input interrupts, 39 interval timers, 44 scheduled interrupt mode, 45 masking, 44 setting modes, 40 unmasking, 44 interrupts (SRM1) interval timers, 83 scheduled interrupt mode, 84 types, 83 interval timer interrupts CPM1/CPM1A, 74 SRM1, 83
J–L jump numbers, 203 jumps, 203–204
Page 515
Index ladder diagram branching, 168 IL(02) and ILC(03), 170 using TR bits, 169 combining logic blocks, 163 controlling bit status using DIFU(13) and DIFD(14), 174, 200–209 using KEEP(11), 199–200 using OUT and OUT NOT, 158 using SET and RESET, 173 using SET and RSET, 198–199 converting to mnemonic code, 154–173 display via GPC, FIT, LSS, or SSS, 153 instructions combining, AND LD and OR LD, 162 controlling bit status using KEEP(11), 174 using OUT and OUT NOT, 197 format, 184 notation, 184 structure, 153 using logic blocks, 159 ladder diagram instructions, 196–197 lithium battery, backup time vs. temperature, xvi timer and counter bits (CPM1/CPM1A), 142 timer and counter bits (CQM1), 138 timer and counter bits (SRM1), 145 TR bits (CPM1/CPM1A), 142 TR bits (CQM1), 137 TR bits (SRM1), 144 user program memory (CQM1), 139 work bits (CPM1/CPM1A), 141 work bits (CQM1), 135 work bits (SRM1), 144 Memory Cassettes, 139 and program size, 147 automatic reading, 149 comparing contents, 149 contents, 147 reading data, 148 reading with peripherals, 149 required EEPROMs, 146 storing DM and UM data (CQM1 only), 146 types, 146 writing data, 148 messages, programming, 317 mnemonic code, converting, 154–173 MSG(46), 426 logic block instructions, converting to mnemonic code, 159–167 logic blocks. See ladder diagram
N NEG(––), 113
M
NEGL(––), 113 nesting, subroutines, 314 macro function, subroutines. See programming masking CPM1/CPM1A interrupt processes, 405 CQM1 interrupt processes, 388 SRM1 interrupt processes, 416 no protocol communications program example, 111 SRM1, 107 transmission data configuration, 110 transmission flags, 110
MBS(––), 113 normally open/closed condition, definition, 153
MBSL(––), 113
NOT, definition, 153 memory areas AR area bits (CPM1/CPM1A), 142, 462 AR area bits (CQM1), 138, 455 AR area bits (SRM1), 145, 466 DM area (CPM1/CPM1A), 142 DM area (CQM1), 139 DM area (SRM1), 145 flag bits (CPM1/CPM1A), 141, 460 flag bits (CQM1), 137, 452 flag bits (SRM1), 144, 465 HR area (CPM1/CPM1A), 142 HR area (CQM1), 137 HR area (SRM1), 145 IR area bits (CPM1/CPM1A), 140 IR area bits (CQM1), 135 IR area bits (SRM1), 144 link bits (CPM1/CPM1A), 142 link bits (CQM1), 138 link bits (SRM1), 145 structure (CPM1/CPM1A), 139, 459 structure (CQM1), 134, 451 structure (SRM1), 143, 464
NT Link (CPM1/CPM1A), 103 NT Link (SRM1), 106
O one-to-one link communications I/O response timing CPM1/CPM1A, 403 CQM1, 386 SRM1, 414 link errors (CQM1), 101 one-to-one link (CPM1/CPM1A), 101 one-to-one link (CQM1), 100 one-to-one link (SRM1), 104 operand bit, 154 operands, 184 allowable designations, 184 requirements, 184
503
Page 516
Index operations CPM1/CPM1A internal processing, flowchart, 400 CQM1 internal processing, flowchart, 382 effects on CPM1/CPM1A cycle time, 401 effects on CQM1 cycle time, 384 effects on SRM1 cycle time, 412 SRM1 internal processing, flowchart, 411
PV CNTR(12), 211 timers and counters, 209 output bit controlling ON/OFF time, 198 controlling status, 173, 175 quick-response inputs (CPM1/CPM1A), 131 output refresh method, PC Setup settings, 21 outputs, turning OFF, 428
P PC Setup. See settings PC Setup settings CPM1/CPM1A, 9 CQM1, 4 SRM1, 13 peripheral port, servicing time, 18
Q–R RET(93), 38 right-hand instructions, coding. See instructions RS-232C communications one-to-one link (CQM1), 100 procedures (CQM1/SRM1), 98 receiving (CQM1), 99 transmitting (SRM1), 98 connecting Units (CQM1), 100 control bits (CQM1), 99 selecting (CQM1). See host link RS-232C port, servicing time (CQM1/SRM1), 18 RS-232C port servicing time, PC Setup settings, 18 RXD(47), 110 peripheral port servicing time, PC Setup settings, 18 PLS2(––), 22, 25, 26, 29
S
PMW(––), 32
SBBL(––), 113 precautions, general, xiii
SBN(92), 67
Program Memory, structure, 154 programs checking, check levels, 425 executing, 179 settings basic operations error log, 21 high-speed timers, 20 hold bit status, 17 input digits number, 21 startup mode, 16 changing, 3 communications, 87, 88 conditions (CQM1), 90 CQM1 PC Setup, 88 host link (CPM1/CPM1A), 93 host link (CQM1), 91 host link (SRM1), 95 RS-232C (CQM1/SRM1), 98 defaults, 3 expansion instructions, 117 I/O operations, 16 port servicing scan time, 18 pulse output word, 23, 26, 32 interrupts, 38 external sources (CQM1), 39 parameters (CQM1), 40 pulse outputs (CQM1 only), 22
PRV(62), 34, 65 seven-segment displays, converting data, 259
PULS(65), 23, 26, 27, 36 signed binary data, 111 pulse outputs determining status of ports 1 and 2, 34 from an output point, 23 from ports 1 and 2, 25 variable-duty-ratio, 32
SPED(64), 23, 25, 26, 27, 28, 36 program write protection, PC Setup settings, 17 programming absolute high–speed counters (CQM1), 63 errors, 425 high–speed counter (CPM1/CPM1A), 80 high–speed counter (CQM1), 50 instructions, 441 interrupts, 80 interrupts (CQM1), 50, 63 jumps, 172 macro function, subroutines, 128 precautions, 177 preparing data in data areas, 234 special features, 116 writing, 152 programming (CQM1) high–speed counters 1 and 2, 57 interrupts, 57
504 startup mode, PC Setup settings, 16 STIM(69), 45 subroutine number, 315
Page 517
Index SV CNTR(12), 211 timers and counters, 209
TR bits, use in branching, 169 tracing. See See data tracing and address tracing. troubleshooting, 434
T–W TC numbers, 208 timers, conditions when reset, 209, 212 timing basic instructions CPM1/CPM1A, 406 CQM1, 390 SRM1, 417 CPM1/CPM1A cycle time, 401 CQM1 cycle time, 383 I/O response time (CPM1/CPM1A), 402 I/O response time (CQM1), 385 I/O response time (SRM1), 414 instruction execution CPM1/CPM1A. See instruction CQM1. See instruction SRM1. See instruction interrupt processing CPM1/CPM1A, 405 CQM1, 388 SRM1, 416 special instructions CPM1/CPM1A, 406 CQM1, 390 SRM1, 417, 421 SRM1 cycle time, 412
TXD(48), 110 write protecting the program, PC Setup settings, 17
505