beautypg.com

3 teaching using discrete inputs, Teaching using discrete inputs – Delta CS24D User Manual

Page 15

background image

15

sensing area.

5.3 Teaching using Discrete Inputs

The CS24D discrete inputs can be exercised via PLC outputs or mechanical switches. They are
compatible with 12-24V DC signals and are accessed via the 8-pin connector. See Interface and
Wiring
section for details.

To Teach the CS24D using discrete inputs, set up the sensor in its normal operating position and
conditions, and follow this procedure for each sample color:

1. Select Teach mode by activating the Mode input. The CS24D blue Run LED will flash

indicating Teach mode.

2. Select the output that you wish to use by pulsing the Select input. (One pulse selects output 1,

two pulses selects output 2, etc.). The Output indicator LED(s) for that output will begin to
flash.

3. Place the sample in the sensing area.

4. Complete Teach by pulsing the Teach input eight (8) times. (At the first Teach pulse, the blue

Run light will go off. After 8 pulses, teaching is complete, and the Output LED(s) will stay on
until sample is removed. The Run light goes back to blinking until Mode input is turned off or
another Teach sequence is initiated).

The first Teach pulse after selecting a Sort output inserts the current data into the first location in the
temporary Teach memory. Subsequent Teach pulses continue to fill the memory until all 8 readings
have been obtained. During this time the Select input is ignored (a different Sort output cannot be
trained until the current one is complete) and deactivating the Mode input will exit Teach mode without
saving the readings for the selected output. As soon as the 8

th

Teach pulse is received, the sensor saves

the mean and standard deviations of the 8 readings to its non-volatile FLASH memory. If the Teach
input is pulsed more than 8 times (without pulsing the Select input) those after the 8

th

time will be

ignored.

The 8

th

Teach pulse for any output resets the select counter, so the same number of pulses is used to

select a given Sort output regardless of which output was previous trained. Removing and reapplying
the Mode Input also resets the select counter, so that the first pulse received via the Select input will
always select Sort Output 1. Since the new data is not saved until the 8

th

Teach pulse, changing only

the Mode and Select Inputs will not affect stored Teach data.

The eight Teach readings allow the CS24D to be taught with several samples or with several
presentations to improve sorting performance. After teaching, the CS24D’s parameters can be
optimized for the set of Teach date using the ColorSense program. See Optimizing section.

Mode

Select

Teach

15ms pulse length and spacing

(Select and Teach)

200ms to

save Teach data

200ms to

normal run

1

1

2

8

8

Figure 8: Teach Mode Timing