337
SECTION 6
Advanced Functions
This section describes all of the advanced functions of the CP1L that can be used to achieve specific application needs.
6-1 Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
6-1-1 Overview of CP1L Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . 338
6-1-2 Input Interrupts (Direct Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
6-1-3 Input Interrupts (Counter Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
6-1-4 Scheduled Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
6-1-5 High-speed Counter Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
6-2 Quick-response Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
6-3 Serial Communications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
6-3-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
6-3-2 No-protocol Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
6-3-3 Modbus-RTU Easy Master Function . . . . . . . . . . . . . . . . . . . . . . . . 371
6-3-4 Communications: Smart Active Parts and Function Blocks. . . . . . . 374
6-3-5 Serial PLC Links. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
6-3-6 1:1 Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
6-3-7 1:N NT Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
6-3-8 1:1 NT Links. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
6-3-9 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
6-4 Analog Adjuster and External Analog Setting Input . . . . . . . . . . . . . . . . . . . 393
6-4-1 Analog Adjuster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
6-4-2 External Analog Setting Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
6-5 Battery-free Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
6-5-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
6-5-2 Using Battery-free Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
6-6 Memory Cassette Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
6-6-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
6-6-2 Mounting and Removing a Memory Cassette . . . . . . . . . . . . . . . . . 397
6-6-3 Operation Using the CX-Programmer . . . . . . . . . . . . . . . . . . . . . . . 399
6-6-4 Memory Cassette Data Transfer Function . . . . . . . . . . . . . . . . . . . . 400
6-6-5 Procedures for Automatic Transfer from the Memory Cassette
at Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
6-7 Program Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
6-7-1 Read Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
6-7-2 Write Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410
6-7-3 Protecting Program Execution Using the Lot Number. . . . . . . . . . . 412
6-8 Failure Diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
6-8-1 Failure Alarm Instructions: FAL(006) and FALS(007) . . . . . . . . . . 413
6-8-2 Failure Point Detection: FPD(269). . . . . . . . . . . . . . . . . . . . . . . . . . 414
6-8-3 Simulating System Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
6-8-4 Output OFF Bit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
6-9 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417