The text of a manual · part 67 of 68
Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: Index
Pages 604 to 609 of 613, from Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual
The original document is the PDF (3.8 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.
Filed in the catalog under the Omron C200H-SP001 and Omron C200HW-PA204
Page 604
Index A address tracing. See tracing, data tracing. addresses, in data area, 29 advanced I/O instructions 7-SEGMENT DISPLAY OUTPUT, 388 DIGITAL SWITCH INPUT, 377 functions, 376 HEXADECIMAL KEY INPUT, 383 MATRIX INPUT, 386 TEN-KEY INPUT, 380 Analog Timer Unit, programming examples, 137 application examples, 425 AR area, 52–60 arithmetic flags, 148 arithmetic operations, flags, 48 ASCII, converting data, 234, 235
B battery Low Battery Flag, 46 operating without a battery, 21 BCD calculations, 246, 253, 259, 263, 264–279 converting, 29 definition, 29 binary calculations, 244, 248, 257, 261, 280 definition, 29 signed binary, 31 unsigned binary, 30 bits controlling, 161 forced set/reset, 435 monitoring, 432–435 buzzer, 99
C C200H programs, transferring to C200HS, 9 C200HX/HG/HE–EZ, precautions, 10 calendar/clock, dedicated bits, 57 canceling, forced set/reset, 437 channel. See word checksum, calculating frame checksum, 346 clock, reading and setting, 452 clock pulse bits, 47 communications host link, 464 link, one-to-one, 472 one-to-one, 473 wiring, 461 Communications Board, settings, 71 constants, operands, 148 control bit definition, 28 Output OFF, 46 Control System, definition, 3 controlled system, definition, 3 counters bits in TC area, 74 changing SV, 448 conditions when reset, 178, 182 creating extended timers, 180 extended, 180 inputting SV, 113 Power OFF, 58 reversible counters, 181 CPU, 14 CPU Unit-mounting Device Mounted Flag, 59 operational flow, 400–401 CPU indicators, 15 CPU Rack, definition, 17 current EM bank, changing the current bank, 355 cycle, First Cycle Flag, 47 cycle monitor time, extending, 344 cycle time, 400–404 calculating, 404–406 controlling, 339 Cycle Time Indicators, 60 displaying on Programming Console, 117 error flag, 47 extending the cycle monitor time, 344 flag for SCAN(018), 59
D data comparison instructions, 205–219 converting, 30, 220–243 decrementing, 265 incrementing, 265 modifying, 444 modifying binary data, 447 modifying hex/BCD, 438 moving, 192–205 data area, definition, 25 data areas, structure, 28 Data Link table, transferring, 109 data memory, fixed, 61 data retention in AR area, 53 in HR area, 74 in IR area, 32 in LR area, 75 in SR area, 36 in TC area, 74 in TR area, 77 data tracing, 340–356 flags and control bits, 59 decimal converting display between 4-digit hex and decimal, 441 converting display between 8-digit hex and decimal, 442
603
Page 605
Index decrementing, 265 definers, definition, 147 delay time, in Remote I/O Systems, 420 differentiated instructions, 149 function codes, 147 digit, monitoring, 432 digit numbers, 29 DIP switch, 23 displays converting between 4-digit hex and decimal, 441 converting between 8-digit hex and decimal, 442 converting between hex and ASCII, 440 I/O Unit designations, 107 Programming Console, English/Japanese switch, 98 DM area allocating UM to expansion DM, 451 Using EM for indirect addressing, 354
E EM (Extended Data Memory) area, 77 EM area changing the current bank, 355 clearing selected EM banks, 102 Using EM for indirect addressing, 354 EM bank number, changing the current bank, 355 ER. See flag, Instruction Execution Error error codes, programming, 338 error history, dedicated bits, 56 error messages, programming, 341, 342 errors clearing messages, 104 fatal, 489 history area, 64 initialization, 487 Instruction Execution Error Flag, 48 message tables, 487–490 messages when inputting programs, 115 programming indications, 486 programming messages, 341, 342 reading and clearing messages, 486 resetting, 339 SR and AR area flags, 491 execution condition, definition, 83 execution time, instructions, 407–417 expansion DM, allocating UM to, 451 expansion DM area, allocation, 61 Expansion I/O Rack, definition, 17 expansion instructions, 150 assigning function codes, 134 changing function code assignments, 451 reading function code assignments, 451 expansion keyboard mapping, 453
F-G FAL area, 46, 338 fatal operating errors, 489
604 flag AR and SR area error flags, 491 arithmetic, 48 programming example, 207, 210, 214 CPU Unit-mounting Device Mounted, 59 CY clearing, 265 setting, 265 Cycle Time Error, 47 definition, 27 First Cycle, 47 FPD Trigger Bit, 59 I/O Verification Error, 47 Instruction Execution Error, 48 Link Units, 59 Low Battery, 46 Optical I/O Error, 55 Step, 48 flags arithmetic, 148 error and arithmetic, 569 signed binary arithmetic, 569 floating-point decimal, division, 275 forced set/reset, 435 canceling, 437–438 Forced Status Hold Bit, 45 Frame Check Sequence. See frames, FCS frame checksum, calculating with FCS(180), 346 frames dividing, precautions, 464 FCS, 465 function codes, 147 changing expansion instruction function codes, 451 reading expansion instruction function codes, 451 Group-2 High-density I/O Units, 4 Group-2 B7A Interface Units, word allocation, 35 Group-2 High-density I/O Units, word allocation, 35
H hexadecimal, definition, 29 High-density I/O Units. See Group-2 High-density I/O Units; Units host link communications See also host link commands procedures, 464 setting parameters, start and end codes, 468 host link commands 540 EX, 540 FK, 530 IC, 541 KC, 531 KR, 528 KS, 527 MF, 526 MI, 536 MM, 532 MS, 523 QQIR, 538 QQMR, 537
Page 606
Index R#, 515 R$, 516 R%, 518 RC, 503 RD, 505 RE, 506 RG, 504 RH, 502 RJ, 506 RL, 501 RP, 534 RR, 500 SC, 525 TS, 533 W#, 519 W$, 520 W%, 522 WC, 510 WD, 512 WE, 514 WG, 511 WH, 509 WJ, 513 WL, 508 WP, 535 WR, 507 XZ, 539 Host Link Systems, error bits and flags, 43 Host Link Units, PC cycle time, 405 HR area, 74
I I/O bit definition, 32 limits, 32 I/O numbers, 35 I/O points, refreshing, 344, 345 I/O response time, one-to-one link communications, 425 I/O response times, 418 I/O status, maintaining, 46 I/O table clearing, 108 reading, 106 registration, 103 verification, 104 Verification Error flag, 47 I/O Units. See Units I/O word allocation, 33 definition, 32 limits, 32 incrementing, 265 indirect addressing, 148 Using EM for indirect addressing, 354 input bit application, 32 definition, 3 input device, definition, 3 input point, definition, 3 input signal, definition, 3 instruction set, 559 7SEG(214), 387 ADB(050), 280 ADBL(480), 286 ADD(030), 266 ADDL(054), 267 AND, 85, 160 combining with OR, 86 AND LD, 88, 161 combining with OR LD, 90 use in logic blocks, 89 AND NOT, 85, 160 ANDW(034), 314 APR(069), 300 ASC(086), 234 ASFT(017), 191 ASL(025), 187 ASR(026), 187 AVG(195), 297 BCD(024), 221 BCDL(059), 222 BCMP(068), 210 BCNT(067), 346 BIN(023), 220 BINL(058), 221 BSET(071), 193 BXF2(––), 203 BXFR(125), 204 CLC(041), 265 CMCR(261), 393 CMP(020), 206 CMPL(060), 209 CNT, 178 CNTR(012), 181 COLL(81), 197 COLM(064), 241 COM(029), 313 CPS(114), 215 CPSL(115), 216 DBS(485), 292 DBSL(483), 293 DEC(039), 265 DIFD(014), 128, 162–163 using in interlocks, 168 using in jumps, 170 DIFU(013), 128, 162–163 using in interlocks, 168 using in jumps, 170 DIST(080), 196 DIV(033), 273 DIVL(057), 274 DMPX(077), 228 DSW(210), 376 DVB(053), 285 EMBC(281), 355 END(001), 87, 153, 170 execution times, 407–417 FAL(006), 338 FALS(007), 338 FCS(180), 346 FDIV(079), 275 FPD(269), 348 HEX(162), 235 HKY(212), 382 HMS(066), 224
605
Page 607
Index IEMS(––), 354 IL(002), 124, 167–169 ILC(003), 124, 167–169 INC(038), 265 input comparison, 217 INT(089), 325 IORD(222), 391 IORF(097), 344 IOWR(223), 392 JME(005), 169 JMP(004), 169 JMP(004) and JME(005), 126 KEEP(011), 165 in controlling bit status, 128 ladder instructions, 84 LD, 85, 160 LD NOT, 85, 160 LINE(063), 240 LMSG(047), 342 MAX(182), 294 MBS(484), 290 MBSL(482), 291 MCMP(019), 205 MCRO(099), 323 MIN(183), 295 MLB(052), 285 MLPX(076), 225 MOV(021), 192 MOVB(082), 200 MOVD(083), 200 MPRF(061), 345 MSG(046), 341 MTR(213), 385 MUL(032), 271 MULL(056), 272 MVN(022), 193 NEG(160), 242 NEGL(161), 243 NOP(000), 170 NOT, 83 operands, 81 OR, 86, 160 combining with AND, 86 OR LD, 89, 161 combining with AND LD, 90 use in logic blocks, 90 OR NOT, 86, 160 ORW(035), 315 OUT, 87, 161 OUT NOT, 87, 161 PID(190), 303 PMCR(260), 374 RECV(098), 362 RET(093), 322 ROL(027), 188 ROOT(072), 278 ROR(028), 188 RSET, 164 RXD(235), 368 SBB(051), 282 SBBL(481), 288 SBN(092), 322 SBS(091), 321 SCAN(018), 339
606
SCL(194), 238 SDEC(078), 231 SEC(065), 223 SEND(090), 356 SET, 164 SFT(010), 183 SFTR(084), 185 SLD(074), 189 SNXT(009), 329 SRCH(181), 352 SRD(075), 189 STC(040), 265 STEP(008), 329 STUP(237), 373 SUB(031), 268 SUBL(055), 270 SUM(184), 299 TCMP(085), 212 TERM(048), 95, 343 terminology, 81 TIM, 171 TIMH(015), 176 TKY(211), 380 TRSM(045), 340 TST(350), 166 TSTN(351), 166 TTIM(087), 177 TXD(236), 370 WDT(094), 344 WSFT(016), 190 XCHG(073), 195 XDMR(280), 353 XFER(070), 195 XFR2(––), 202 XFRB(062), 201 XNRW(037), 317 XORW(036), 316 ZCP(088), 213 ZCPL(116), 214 instructions advanced I/O, 375 designations when inputting, 113 instruction set lists, 154 IORF(097), 425 mnemonics list, ladder, 156 symbol math instructions, 244 interlocks, 167–169 using self-maintaining bits, 128 interrupts, 317 control, 325 IR area, 32–35
J-L jump numbers, 169 jumps, 169–170 keyboard mapping, 454 expansion keyboard mapping, 453 ladder diagram branching, 122 IL(002) and ILC(003), 124 using TR bits, 122 controlling bit status
Page 608
Index using DIFU(013) and DIFD(014), 128, 162–163 using KEEP(011), 165–166 using OUT and OUT NOT, 87 using SET and RSET, 164 converting to mnemonic code, 83–95 display via LSS, 82 instructions combining, AND LD and OR LD, 90 controlling bit status using KEEP(011), 128 using OUT and OUT NOT, 161 format, 147 notation, 147 structure, 82 using logic blocks, 88 ladder diagram instructions, 160–161 LEDs. See CPU indicators leftmost, definition, 29 Link System, flags and control bits, 43–45 Link Units See also Units flags, 59 logic block instructions, converting to mnemonic code, 88–94 logic blocks. See ladder diagram logic instructions, 313–317 LR area, 75
M mapping, expansion keyboard mapping, 453 mathematics BCD calculation instructions, 246, 253, 259, 263 binary calculation instructions, 244, 248, 257, 261 memory all clear, 100 memory areas clearing, 100 definition, 25 Memory Cassettes, 18 memory clear, 102 memory partial clear, 101 messages, programming, 341, 342 mnemonic code, converting, 83–95 models, C200HS, 543 modifying data, hex/binary, 438 monitoring binary, 445 differentiation monitoring, 443 monitoring 3 words, 444 mounting Units, location, 17
N nesting, subroutines, 321 non–fatal operating errors, 487 normally closed condition, definition, 83 NOT, definition, 83
O one-to-one link, wiring, 472 one-to-one link communications, I/O response timing, 425 operand bit, 83 operands, 147 allowable designations, 147 requirements, 147 operating modes, 98 operation, preparations, 98–110 Optical I/O Unit, Error flag, 55 output bit application, 33 controlling, via Output OFF bit, 46 controlling ON/OFF time, 162 controlling status, 127, 128 definition, 3 output device, definition, 3 output point, definition, 3 output signal, definition, 3
P password, entering on Programming Console, 99 PC configuration, 17 definition, 3 flowchart, 401 PC Link Systems error bits and flags, 44–45 LR area application, 75 PC Setup, 65 default, 66 PCMCIA CARD MACRO instruction, 393 peripheral devices, Programming Console, 95–98 peripheral port, communications receiving, 470 transmitting, 469 power supply, Power OFF Counter, 58 precautions C200HX/HG/HE–EZ, 10 general, xiii present value. See PV program execution, 133 Program Memory setting address and reading content, 111–112 structure, 83 programming checks for syntax, 115–117 entering and editing, 112 example, using shift register, 184 inputting, modifying and checking, 111–127 inserting and deleting instructions, 119–121 instructions, 559 jumps, 126 precautions, 131 preparing data in data areas, 193 searching, 118–119 setting and reading from memory address, 111 simplification with differentiated instructions, 163 writing, 81
607
Page 609
Index Programming Console, 95–98 See also peripheral devices Programming Device Flags, 59 Programming Devices, 5 Connecting through SYSMAC LINK, 59 Programming Console, 5 programs, transferring from C200H, 9 Protocol Macro function, 475 PROTOCOL MACRO instruction, 374 PV accessing via PC area, 75 CNTR(012), 182 timers and counters, 171
R Racks, types, 17 Remote I/O Master Units, PC cycle time, 405 Remote I/O Systems, error bits and flags, 43 response time calculations, PC Link Systems, 422 response times, I/O, 418–429 rightmost, definition, 29 RS-232C communications one-to-one link, 472 procedures, 468 receiving, 470 transmitting, 469 connecting Units, 472 RS-232C port, wiring example, 462
S self-maintaining bits, using KEEP(011), 165 set value. See SV settings communications, host link, 464 Communications Board, 71 PC Setup, 65 Special I/O Unit Area, 73 seven-segment displays, converting data, 231 shift registers, 183–192 controlling individual bits, 184 signed binary arithmetic flags, 569 signed binary data, 31 Special I/O Unit, programming examples, 133 Special I/O Unit Area, settings, 73 Special I/O Unit Default Area, 61 Special I/O Units. See Units SR area, 36–52 stack operation COLL(081), 197 DIST(080), 196 status indicators. See CPU indicators step execution, Step flag, 48 step instructions, 329–338 subroutine number, 322 subroutines, 317–328
608
Support Software, SYSMAC-CPT Support Software, 5 SV accessing via TC area, 75 changing, 448 CNTR(012), 182 timers and counters, 171 switches, DIP. See DIP switch SYSMAC-CPT Support Software, 5 SYSMAC LINK, loop status and completion codes, 41 SYSMAC LINK System Active Node Flags, 57 instructions, 356 service time, 57 Using Programming Devices, 59 SYSMAC NET, loop status and completion codes, 41 SYSMAC NET Link System Data Link Table transferring, 109 instructions, 356 service time, 57
T TC area, 74–75 TC numbers, 74, 171 TERMINAL mode, 95 Key Bits, 58 time, reading and setting the clock, 452 timers bits in TC area, 74 changing SV, 448 conditions when reset, 172, 176 TTIM(087), 177 example using CMP(020), 207 extended timers, 173 flicker bits, 175 inputting SV, 113 ON/OFF delays, 173 one-shot bits, 174 TR area, 77 TR bits, use in branching, 122 tracing See also See data tracing and address tracing. flags and control bits, 59
U-W UM Area, allocation to expansion DM, 451 UM area, 76 Units definition, 4 High-density I/O Units, definition, 4 I/O Units, definition, 4 Link Units, definition, 4 Special I/O Units, definition, 4 unsigned binary data, 30 watchdog timer, 403 extending, 344 word bit, definition, 27 work word, definition, 27