17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

128. If ON duration of X0 is T sec, the relation between D0, D1 and n are shown as the table below.<br />

n D0 (unit: sec) D1 (unit: 100 ms)<br />

K0 T (sec) ×1 D1 = D0×10<br />

K1 T (sec) ×10 D1 = D0<br />

K2 T (sec) ×100 D1 = D0/10<br />

Program Example 2:<br />

129. Use TMR instruction to write in 10 groups of set time.<br />

130. Write the set values into D100 ~ D109 in advance<br />

131. The timer resolution is 0.1 sec for timers T0 ~ T9 and 1 sec for the teaching timer.<br />

132. Connect the 1-bit DIP switch to X0 ~ X3 and use BIN instruction to convert the set value of the<br />

switch into a bin value and store it in E.<br />

133. The ON duration (in sec) of X20 is stored in D200.<br />

134. M0 is a pulse for one scan cycle generated when the teaching timer button X20 is released.<br />

135. Use the set number of the DIP switch as the index pointer and send the content in D200 to<br />

D100E (D100 ~ D109).<br />

M10<br />

M11<br />

TMR T0 D100<br />

TMR T1 D101<br />

M19<br />

M1000<br />

X20<br />

X20<br />

M0<br />

TMR T9 D109<br />

BIN K1X0 E<br />

TTMR D200 K0<br />

PLF M0<br />

MOV D100 D200E<br />

Note:<br />

The TTMR instruction can only be used 8 times in a program. If TTMR is used in a CALL subroutine<br />

or interrupt subroutine, it only can be use once.<br />

3-166

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!