The text of a manual · part 23 of 41
DL305 User Manual: Chapter 8: System Operation, pages 180 to 187
Pages 180 to 187 of 357, from DL305 User Manual
The original document is the PDF (3.4 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 PLC Direct D3-08TD1, PLC Direct D3-16NA, Koyo D3-08TD1 and Koyo D3-16NA
Page 180
System Operation
MSB 167
166
207 217 227 237 247 257 267 277*
206 216 226 236 246 256 266 276
DL330P Control Relay References 165 164 163 162 174 173 172 205 204 203 202 215 214 213 212 225 224 223 222 235 234 233 232 245 244 243 242 255 254 253 252 265 264 263 262 275 274 273 272
LSB 161 171 201 211 221 231 241 251 261 271
160 170 200* 210 220 230 240 250 260 270
8--31
Register Number R16 R17 R20 R21 R22 R23 R24 R25 R26 R27
* Control relays 200 -- 277 can be made retentive by setting a CPU dipswitch. See Chapter 3 for details on setting CPU dipswitches.
MSB 166 176 206 216 226 236 246 256 266 276 306 316 326 336 346 356 366
1007 1017 1027 1037 1047 1057 1067
1006 1016 1026 1036 1046 1056 1066
LSB 161 171 201 211 221 231 241 251 261 271 301 311 321 331 341 351 361 371 1001 1011 1021 1031 1041 1051 1061
160 170 200 210 220 230 240 250 260 270 300 310 320 330 340* 350 360 370 1000 1010 1020 1030 1040 1050 1060
Register Number R16 R17 R20 R21 R22 R23 R24 R25 R26 R27 R30 R31 R32 R33 R34 R35 R36 R37 R100 R101 R102 R103 R104 R105 R106
* Control relays 340 -- 373 can be made retentive by setting a CPU dipswitch. See Chapter 3 for details on setting CPU dipswitches.
DL305 User Manual, Rev. D
System Operation
167 177 207 217 227 237 247 257 267 277 307 317 327 337 347 357 367
DL340 Control Relay References 165 164 163 162 175 174 173 172 205 204 203 202 215 214 213 212 225 224 223 222 235 234 233 232 245 244 243 242 255 254 253 252 265 264 263 262 275 274 273 272 305 304 303 302 315 314 313 312 325 324 323 322 335 334 333 332 345 344 343 342 355 354 353 352 365 364 363 362 373* 372 1005 1004 1003 1002 1015 1014 1013 1012 1025 1024 1023 1022 1035 1034 1033 1032 1045 1044 1043 1042 1055 1054 1053 1052 1065 1064 1063 1062
Page 181
8--32
System Operation
Special Relays The following table shows the Special Relays used with the DL305 CPUs. Note, our DL105, DL205, and DL405 product families use the data type “SP” to designate Special Relays. Even though we refer to the following relays as special relays, DirectSOFT uses the letter “C” as a special relay prefix for the DL305 products. These letters aren’t used with the handheld programmer. CPUs
DL330P
System Operation
DL330 DL340
DL330 DL330P DL340
DL340
DL305 User Manual, Rev. D
Special Relay
Description of Contents
C175
100 ms clock, on for 50 ms and off for 50 ms.
C176
Disables all outputs except for those entered with the SET OUT instruction.
C177
Battery voltage is low.
C374
On for the first scan cycle after the CPU is switched to Run Mode.
C375
100 ms clock, on for 50 ms and off for 50 ms.
C376
Disables all outputs except for those entered with the SET OUT instruction.
C377
Battery voltage is low.
C770
Changes timers to 0.01 second intervals. Timers are normally 0.1 second time intervals.
C771
The external diagnostics FAULT instruction (F20) is in use.
C772
The data in the accumulator is greater than the comparison value.
C773
The data in the accumulator is equal to the comparison value.
C774
The data in the accumulator is less than the comparison value.
C775
An accumulator carry or borrow condition has occurred.
C776
The accumulator value is zero.
C777
The accumulator has an overflow condition.
C1072
Port 2 parity: on = odd, off = none
C1074
The RX or WX instruction is active.
C1075
An error occurred during communications with the RX or WX instructions.
C1076
Port 2 communications mode: on = ASCII mode, off = HEX mode. DirectNET supports both ASCII and HEX modes and Modbus® only supports HEX mode.
C1077
Port 1 communications mode: on = ASCII mode, off = HEX mode
Page 182
8--33
System Operation
Timer / Counter Registers and Contacts The following table shows the locations used for programming timer or counters. Since timers and counters share the same data area, you cannot have timers and counters with duplicate numbers. For example, if you have Timer 600, you cannot have a Counter 600. Each register contains the current value for the timer or counter. Each timer or counter also has a timer or counter contact with the same reference number. NOTE: Counter current values are retentive and retain their state after a power cycle. These registers are 16-bit registers.
606 616 626 636 646 656 666 676*
601 611 621 631 641 651 661 671
600 610 620 630 640 650 660 670
* Used with Timer / Counter Setpoint Unit and /or Thumbwheel Interface Module. External Timer/Counter Setpoint Unit
Registers 674--677 are used in programming for use with the Timer/Counter Setpoint Unit and the Thumbwheel Interface Module that are available in some compatible product families. The registers contain the current time or count. There is also a status bit for each register with the same reference number. For example, the current value for Timer 674 is stored in R674 and the status contact is T674. The presets for these modules are stored in R564 -- R573 as follows. S R564 -- R565, 1st T/C preset S R566 -- R567, 2nd T/C preset S R570 -- R571, 3rd T/C preset S R572 -- R573, 4th T/C preset The example shows how a 4-digit number would be represented in these registers.
R565 0 0 0 1 00 1 1 1
3
R564 0 1 0 0 0 1 0 1 4
DL305 User Manual, Rev. D
5
System Operation
607 617 627 637 647 657 667 677*
Timer/Counter References/Registers 605 604 603 602 615 614 613 612 625 624 623 622 635 634 633 632 645 644 643 642 655 654 653 652 665 664 663 662 675* 674* 673 672
Page 183
8--34
System Operation
Data Registers The following 8-bit data registers are primarily used with data instructions to store various types of application data. For example, you could use a register to hold a timer or counter preset value. Some data instructions call for two bytes, which will correspond to two consecutive 8-bit data registers such as R401 and R400. The LSB (Least Significant Bit) will be in register R400 as bit0 and the MSB (Most Significant Bit) will be in register R401 as bit17.
System Operation
NOTE: Data Registers are retentive.
407 417 427 437 447 457 467 477 507 517 527 537 547 557
DL305 User Manual, Rev. D
406 416 426 436 446 456 466 476 506 516 526 536 546 556
405 415 425 435 445 455 465 475 505 515 525 535 545 555
DL330 / DL330P 8-Bit Data Registers 404 403 414 413 424 423 434 433 444 443 454 453 464 463 474 473 504 503 514 513 524 523 534 533 544 543 554 553 563
402 412 422 432 442 452 462 472 502 512 522 532 542 552 562
401 411 421 431 441 451 461 471 501 511 521 531 541 551 561
400 410 420 430 440 450 460 470 500 510 520 530 540 550 560
Page 184
System Operation
406 416 426 436 446 456 466 476 506 516 526 536 546 556
405 415 425 435 445 455 465 475 505 515 525 535 545 555
707 717 727 737 747 757 767
706 716 726 736 746 756 766
705 715 725 735 745 755 765
402 412 422 432 442 452 462 472 502 512 522 532 542 552 562 702 712 722 732 742 752 762
401 411 421 431 441 451 461 471 501 511 521 531 541 551 561 701 711 721 731 741 751 761
DL305 User Manual, Rev. D
400 410 420 430 440 450 460 470 500 510 520 530 540 550 560 700 710 720 730 740 750 760
System Operation
407 417 427 437 447 457 467 477 507 517 527 537 547 557
DL340 8-Bit Data Registers 404 403 414 413 424 423 434 433 444 443 454 453 464 463 474 473 504 503 514 513 524 523 534 533 544 543 554 553 563 704 703 714 713 724 723 734 733 744 743 754 753 764 763
8--35
Page 185
8--36
System Operation
Stage Control / Status Bit Map This table provides a listing of the individual stages and stage control bits. These are only available with the DL330P CPU.
System Operation
MSB 007 017 027 037 047 057 067 077 107 117 127 137 147 157 167 177
Stage References 006 016 026 036 046 056 066 076 106 116 126 136 146 156 166 176
DL305 User Manual, Rev. D
005 015 025 035 045 055 065 075 105 115 125 135 145 155 165 175
004 014 024 034 044 054 064 074 104 114 124 134 144 154 164 174
003 013 023 033 043 053 063 073 103 113 123 133 143 153 163 173
LSB 002 012 022 032 042 052 062 072 102 112 122 132 142 152 162 172
001 011 021 031 041 051 061 071 101 111 121 131 141 151 161 171
000 010 020 030 040 050 060 070 100 110 120 130 140 150 160 170
Register Number R100 R101 R102 R103 R104 R105 R106 R107 R110 R111 R112 R113 R114 R115 R116 R117
Page 186
System Operation
8--37
Shift Register Bit Map The shift register bits listed below are used in the shift register instruction. These outputs are discrete bits and are not the same locations as the 8 Bit Data Registers. These bits are retentive meaning they retain their state after a power cycle. NOTE: The DL330P does not have Shift Register bits. Shift Register instructions in the DL330P use Control Relays memory references. MSB 406 416 426 436 446 456 466 476 506 516 526 536 546 556 566 576
LSB 401 411 421 431 441 451 461 471 501 511 521 531 541 551 561 571
400 410 420 430 440 450 460 470 500 510 520 530 540 550 560 570
Register Number R40 R41 R42 R43 R44 R45 R46 R47 R50 R51 R52 R53 R54 R55 R56 R57
With the DL340 CPU, these bits can also be used as control relays if they are not used with a Shift Register instruction.
DL305 User Manual, Rev. D
System Operation
407 417 427 437 447 457 467 477 507 517 527 537 547 557 567 577
DL330 / DL340 Shift Register References 405 404 403 402 415 414 413 412 425 424 423 422 435 434 433 432 445 444 443 442 455 454 453 452 465 464 463 462 475 474 473 472 505 504 503 502 515 514 513 512 525 524 523 522 535 534 533 532 545 544 543 542 555 554 553 552 565 564 563 562 575 574 573 572
Page 187
8--38
System Operation
Special Registers This table provides a listing of the special registers used with the DL305 CPUs. CPUs DL330 DL330P DL340
System Operation
DL340 Only
DL305 User Manual, Rev. D
Special Register
Description of Contents
R574 -- 575 Contains the error code used with the FAULT instruction. R576 -- 577 Auxiliary accumulator used with the MUL and DIV instructions. R771
Sets the upper byte of the station address assigned to the bottom communication port. Therefore, this will contain the 1st and 2nd digits of the address.
R772
Sets the lower byte of the station address assigned to the bottom communication port. This only contains one digit, which is the 3rd digit of the address.
R773
Sets the baud rate for the bottom communication port.
R774
Sets the leading communications delay time for the bottom communication port.
R775
Sets the trailing communications delay time for the bottom communication port.
R776
Sets the leading communications delay time for the top communication port.
R777
Sets the trailing communications delay time for the top communication port.