High-Speed Input and
Pulse Output Features
3–54
High-speed Input and Pulse Output Features
The following program selects Mode 60, then programs the filter delay time
constants for inputs X0, X1, and X2. Each filter time constant is different, for
illustration purposes. The program is otherwise generic, and may be adapted to your
application.
SP0
LD
K60
Load constant K60 into the accumulator. This
selects Mode 60 as the HSIO mode.
OUT
V7633
Output the constant to V7633, the location of the
HSIO Mode select register.
DirectSOFT
Mode 60
LD
K2006
Load the constant K2006 which is required to select
filtered inputs with a 20 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
K1006
Load the constant K1006 which is required to configure
filtered inputs with a time constant of 10 mS.
OUT
V7634
Output this constant to V7634, configuring X0.
END
END coil marks the end of the main program..
Main Program
Insert Main Program rungs here for your application.
LD
K5006
Load the constant K5006 which is required to select
filtered inputs with a 50 mS filter time constant.
Filtered Inputs
Program Example