High
-S
peed
Input
and
Pulse
O
utput
Features
3--47
High-Speed Input and Pulse Output Features
DL105 PLC User Manual, 3rd Edition
The following program selects Mode 40, then selects the timed interrupt option, with
an interrupt period of 100 mS.
Time
Timed
Interrupt
100 mS
Inputs X0, X1, X2, and X3 are all configured as filtered inputs with a 10 mS time
constant. Note that X0 uses the time constant from X1. The program is otherwise
generic, and may be adapted to your application.
SP0
LD
K40
Load constant K40 into the accumulator. This
selects Mode 40 as the HSIO mode.
OUT
V7633
Output this constant to V7633, the location of the
HSIO Mode select register.
Direct
SOFT
Mode 40
LD
K1006
Load the constant K1006 which is required to select
filtered inputs with a 10 mS filter time constant.
OUT
V7635
Output this constant to V7635, configuring X1 and X0.
Filtered Inputs
OUT
V7636
Output this constant to V7636, configuring X2.
OUT
V7637
Output this constant to V7637, configuring X3.
LD
K1004
Load the constant K1004 which is required to select
the timed interrrupt option, with a period of 100 mS.
OUT
V7634
Output this constant to V7634, configuring the timed
interrupt for 100 mS period.
Timed Interrupt
INT Enable
ENI
Enable Interrupts at the beginning of the program.
END
END coil marks the end of the main program..
INT O0
IRT
Return to the main ladder program.
The INT label marks the beginning of the interrupt
service routine program.
Main Program
Insert Main Program rungs here for your application.
Interrupt Routine
Insert interrupt service routine rungs here for your
application.
Timed Interrupt
Program Example
Summary of Contents for DL105
Page 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Page 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Page 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Page 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Page 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...