High
-S
peed
Input
and
Pulse
O
utput
Features
3--31
High-Speed Input and Pulse Output Features
DL105 PLC User Manual, 3rd Edition
The trapezoidal profile we want to perform is drawn and labeled in the following
figure. It consists of a non-zero starting velocity, and moderate target velocity.
Trapezoidal Profile
Time
Accel = 2 sec
Decel = 4 sec
Velocity
Start position
Target position = 5000
Target Velocity = 1 kHz
Starting
Velocity = 40
The following program will realize the profile drawn above, when executed. The
beginning of the program contains all the necessary setup parameters for Pulse
Output Mode 30. We only have to do this once in the program, so we use first-scan
contact SP0 to trigger the setup.
SP0
LD
K30
Load constant K30 into the accumulator. This selects
Mode 30 as the HSIO mode.
OUT
V7633
Output the constant to V7633, the location of the HSIO
Mode select register.
LDA
O2320
Load the octal address of the beginning of the Profile
Parameter Table. The LDA instruction converts this to a
hex number in the accumulator.
OUT
V7630
Output this address to V7630, the location of the pointer
to the Profile Parameter Table.
Direct
SOFT
Mode 30
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.
OUT
V7637
Output this constant to V7637, configuring X3.
LD
K103
Load the constant K103 which is required to select
pulse and direction for physical Y0 and Y1 functions,
respectively (use K3 if your application needs CCW
and CW).
OUT
V7634
Output this constant to V7634, configuring the pulse
output type.
Select Pulse /
Direction
Locate Parameter
Table
(optional)
Trapezoidal Profile
Program Example
Содержание DL105
Страница 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Страница 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Страница 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Страница 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Страница 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...
Страница 329: ...1F European Union Directives CE In This Appendix European Union EU Directives Basic EMC Installation Guidelines...