Specifications

Preset Data Starting Location
V7630 is the pointer to the V-memory location which contains the beginning of the Preset
Data Tables. The default starting location for the Preset Data Tables is V3630 (default after
initializing scratchpad). However, you may change this by programming a different value in
V7630. Use the LDA and OUT instructions as shown:
Using Fewer than 24 Presets
When all 24 available presets are used, the CPU
knows automatically when it reaches the end of the
preset table. When using fewer than 24 presets,
however, it is necessary to signal the CPU that it has
reached the last preset. The way to signal the end of
the block of presets is to insert one of the following
table-end codes into the next available register pair:
As shown in the table above, each of the table-end signals has a different meaning. Use the
LDD Kffff instruction to insert the table-end code into the next register pair beyond the
preset table. In the example, four presets are used. The 0000 FFFF in V3641-V3640 indicates
the previous preset was the last preset.
In incremental mode, you can choose not to reset the counter or the cumulative total, or you
can choose to reset only the counter, or you can choose to reset the counter and the
cumulative total when the table-end code is read. In the example, FFFF has been placed in
V3640 since the last preset was in V3636, and we are using fewer than 24 presets.
NOTE: In absolute mode each successive preset must be greater than the previous preset value. If a
preset value is less than a lower-numbered preset value, the CPU cannot compare to that value, since
the counter can only count upwards.
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–11
Appendix E: High-speed Input and Pulse Output Features
1
2
3
4
E
6
7
8
9
10
11
12
13
14
A
B
C
D
LDA
O2000
Load the octal address,
convert to hex, leave
result in accumulator
.
OUT
V7630
Output this address to
V7630, the location of the
pointer to the Preset data.
V2000
0000
V2002
0000
V2004
0000
V2006 0000
1000
2000
2500
3175
V2076 0000
0000
V7630 2000
Preset Table Pointer
Preset Table
V2001
V2003
V2005
V2007
V2077
LDD
Kffff
Load 0000 FFFF
into accumulator.
OUTD
V3640
Output this value to
V3640/V3641, the registers
beyond the Preset Table.
V3630 0000
V3632
0000
V3634
0000
V3636
0000
1000
2000
2500
3175
V3640 0000 FFFF
Default Preset Table Example
V3631
V3633
V3635
V3637
V3641
Table-end Code Applicable Mode Meaning
0000 FFFF Absolute and Incremental Signals end of presets
0000 00FF Incremental
Signals end of presets and restarts presets. Does not
reset accumulated pulse counts of CT174 or CT176.
0000 FF00 Incremental
Signals end of presets, restarts presets and resets
accumulated pulse counts of CT174 or CT176.