175
SECTION 5
Pulse and Counter Functions
This section describes the CP1L’s interrupt and high-speed counter functions.
5-1 High-speed Counters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5-1-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5-1-2 High-speed Counter Specifications . . . . . . . . . . . . . . . . . . . . . . . . . 177
5-1-3 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
5-1-4 PLC Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
5-1-5 High-speed Counter Terminal Allocation. . . . . . . . . . . . . . . . . . . . . 184
5-1-6 Pulse Input Connection Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5-1-7 Ladder Program Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5-1-8 Additional Capabilities and Restrictions . . . . . . . . . . . . . . . . . . . . . 193
5-2 Pulse Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
5-2-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
5-2-2 Pulse Output Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
5-2-3 Pulse Output Terminal Allocations. . . . . . . . . . . . . . . . . . . . . . . . . . 201
5-2-4 Pulse Output Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
5-2-5 Origin Search and Origin Return Functions . . . . . . . . . . . . . . . . . . . 220
5-2-6 Origin Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
5-2-7 Pulse Output Procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
5-2-8 Instructions Used for Pulse Outputs . . . . . . . . . . . . . . . . . . . . . . . . . 241
5-2-9 Variable Duty Factor Pulse Outputs (PWM(891) Outputs) . . . . . . . 250
5-2-10 Example Pulse Output Applications. . . . . . . . . . . . . . . . . . . . . . . . . 250
5-3 Inverter Positioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
5-3-1 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
5-3-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
5-3-3 Functional Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
5-3-4 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
5-3-5 Application Procedure for Inverter Positioning . . . . . . . . . . . . . . . . 288
5-3-6 Instruction Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
5-3-7 Determining the Internal Pulse Output Frequency . . . . . . . . . . . . . . 295
5-3-8 PLC Setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
5-3-9 Automatic Calculation of Inverter Frequency Command Value. . . . 302
5-3-10 Memory Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
5-3-11 Application Example with Serial Communications . . . . . . . . . . . . . 317
5-3-12 Application Example with an Analog Output . . . . . . . . . . . . . . . . . 327
5-3-13 Supplemental Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336