EasyManuals Logo

Automationdirect.com DL05 User Manual

Automationdirect.com DL05
480 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #133 background imageLoading...
Page #133 background image
High-Speed Input and
Pulse Output Features
3–47
High-Speed Input and Pulse Output Features
The following program selects Mode 40, then selects the external interrupt option.
Inputs X1 and X2 are configured as filtered inputs with a 10 mS time constant. 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.
DirectSOFT
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.
Filtered Inputs
OUT
V7636
Output this constant to V7636, configuring X2.
LD
K4
Load the constant K4 which is required to select the
external interrupt option. X0 is the interrupt input.
OUT
V7634
Output this constant to V7634, configuring the
external interrupt option for X0.
External 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.
Use the pulse catch input to set output Y0 on.
SP1
SETI
Y5
RST
Reset output Y0.
Y5
External Interrupt
Program Example

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DL05 and is the answer not in the manual?

Automationdirect.com DL05 Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDL05
CategoryController
LanguageEnglish

Related product manuals