beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 317

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-33

Program Example:

When X0 = On, Y1 will output the pulses as below. When X0 = Off, Y1 output will also be Off.

X0

PWM

K1000

K2000

Y1

Y1 output

t=1,000ms

T=2,000ms

Remarks:

1. Flags for ES/EX/SS/SA/SX/SC series MPU:

M1070: Y1 pulse output time unit switch. When Off: 1ms; when On: 100us

2. Flags and special registers for EH/EH2/SV series MPU:

M1010: (EH/EH2/SV) When On, CH0, CH1, CH2 and CH3 will output pulses when END instruction is

executed. Off when the output starts.

M1070: (EH/EH2/SV) The setting of time unit of CH0 has to work with D1371.

M1071: (EH/EH2/SV) The setting of time unit of CH1 has to work with D1372.

M1258: (EH/EH2/SV) CH0 pulse output signals reverse.

M1259: (EH/EH2/SV) CH1 pulse output signals reverse.

M1334: (EH/EH2/SV) CH0 pulse output pauses.

M1335: (EH/EH2/SV) CH1 pulse output pauses.

M1336: (EH/EH2/SV) CH0 pulse output has been sent.

M1337: (EH/EH2/SV) CH1 pulse output has been sent.

M1520: (EH2/SV) CH2 pulse output pauses.

M1521: (EH2/SV) CH3 pulse output pauses.

M1522: (EH2/SV) CH2 pulse output has been sent.

M1523: (EH2/SV) CH3 pulse output has been sent.

M1526: (EH2/SV) CH2 pulse output signals reverse.

M1527: (EH2/SV) CH3 pulse output signals reverse.

M1530: (EH2/SV) The setting of time unit of CH2 has to work with D1373.

M1531: (EH2/SV) The setting of time unit of CH3 has to work with D1374.

D1336: (EH/EH2/SV) Low word of the current number of output pulses from CH0.

D1337: (EH/EH2/SV) High word of the current number of output pulses from CH0.

D1338: (EH/EH2/SV) Low word of the current number of output pulses from CH1.

D1339: (EH/EH2/SV) High word of the current number of output pulses from CH1.

D1371: (EH/EH2/SV) Time unit of CH0 output pulses when M1070 = On.

D1372: (EH/EH2/SV) Time unit of CH1 output pulses when M1071 = On.