394
Interrupt Functions
Section 8-1
New PV Setting in NV and NV+1
Ladder Program
Examples
Example 1: High-speed
Counter (Linear Mode)
In this example, high-speed counter 0 operates in linear mode and starts
interrupt task 10 when the PV reaches 30,000 (0000 7530 hex).
1,2,3...
1.
Set high-speed counter 0 in the PLC Setup’s Built-in Input Tab.
2.
Set the target-value comparison table in words D10000 to D10003.
3.
Create the program for interrupt task 10. Always put an END(001) instruc-
tion at the program’s last address.
Operand
Settings
P
Port specifier
#0000, #0001
Pulse outputs 0 or 1
#0010
High-speed counter 0
#0011
High-speed counter 1
#0100 to #0105 Input interrupts 0 to 5 (in counter mode)
#1000 or #1001 PWM(891) output 0 or 1
C
Control data
#0000
Start comparison.
#0001
Stop comparison.
#0002
Change the PV.
#0003
Stop pulse output.
NV
First word of
new PV
NV and NV+1 contain the new PV when C is set to #0002
(change the PV).
New PV (rightmost 4 digits)
New PV (leftmost 4 digits)
Setting range for pulse outputs and high-speed counter inputs:
0000 0000 to FFFF FFFF hex
Setting range for input interrupts (counter mode):
0000 0000 to 0000 FFFF hex
Item
Setting
High-speed counter 0
Use counter
Counting mode
Linear mode
Circular Max. Count
---
Reset method
Software reset
Input Setting
Up/Down inputs
Word
Setting
Function
D10000
#0001
Number of target values = 1
D10001
#7530
Rightmost 4 digits of the target value 1 data Target value =
30,000
(0000 7530 hex)
D10002
#0000
Leftmost 4 digits of the target value 1 data
D10003
#000A
Bit 15: 0 (incrementing)
Bits 0 to 7: A hex (interrupt task number 10)
Содержание CP1L-EL20DR-D
Страница 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Страница 4: ...iv...
Страница 10: ...x...
Страница 22: ...xxii...
Страница 34: ...xxxiv Software Licenses and Copyrights 7...
Страница 178: ...144 Connecting the CX Programmer Section 5 1 Click the Connect button to connect and then connection online is completed...
Страница 192: ...158 Trial Operation and Debugging Section 5 3...
Страница 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Страница 666: ...632 Trouble Shooting Section 11 7...
Страница 696: ...662 Standard Models Appendix A...
Страница 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Страница 836: ...802 PLC Setup Appendix G...
Страница 838: ...804 TCP Status Transitions Appendix H...
Страница 840: ...806 Ethernet Network Parameters Appendix I...
Страница 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Страница 844: ...810 Ethernet Specifications Appendix K...
Страница 851: ...Index 817 work words 118 write protection 447...
Страница 852: ...818 Index...
Страница 854: ...820 Revision History...
Страница 855: ......