beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 499

background image

9 Application Instructions API 150-199

DVP-PLC Application Manual

9-27

c) Many DRVI instructions can be compiled synchronously in the program, but only one instruction can be

activated whenever the PLC executes the program. For example, if Y10 output has already been activated by

an instruction, other instructions that are also used to activate Y10 output will not be excecuted. Therefore,

the principle of the instruction activation sequence is “first activated, first executed”.

d) When Y10 is activated by DDRVI instruction, the output function of Y10 will be disabled until DDRVI is OFF.

The same rule applies to Y11.

e) Once the instruction is activated, all other parameters cannot be modified until the instruction is disabled.

f) When the instruction is disabled but the output has not yet completed:

M1334 = On indicates that Y10 will stop output immediately.

M1334 = Off indicates that Y10 will decelerate according to the deceleration time till it reaches end frequency

and stop the pulse output.

M1335 corresponds to Y11 output and applies the same rule.

3.

Flags for SC series MPU:

M1102:

M1102 = On after Y10 pulse output is completed.

M1103:

M1103 = On after Y11 pulse outout is completed.

M1334:

Y10 pulse output stops immediately without deceleration when the pulse output instruction is

disabled.

M1335:

Y11 pulse output stops immediately without deceleration when the pulse output instruction is

disabled.

4.

Special registers for SC series MPU:

D1348:

Low word of the current number of Y10 output pulses.

D1349:

High word of the current number of Y10 output pulses.

D1350:

Low word of the current number of Y11 output pulses.

D1351:

High word of the current number of Y11 output pulses..

D1340:

Settings of the first start frequency and the last end frequency of Y10 output pulses.

D1352:

Settings of the first start frequency and the last end frequency of Y11 output pulses.

D1343:

Settings of the acceleration/deceleration time of Y10 output pulses.

D1353:

Settings of the acceleration/deceleration time of Y11 output pulses.

5.

Flags for EH/EH2/SV series MPU:

M1010:

For EH/EH2/SV, when M1010 = On, CH0, CH1, CH2 and CH3 will output pulses when END

instruction is being executed. M1010 will be Off automatically when the output starts.

M1029:

For EH/EH2/SV, M1029 = On after CH0 pulse output is completed.

M1030:

For EH/EH2/SV, M1030 = On after CH1 pulse output is completed.

M1036:

For EH2/SV, M1036 = On after CH2 pulse output is completed.

M1037:

For EH2/SV, M1037 = On after CH3 pulse output is completed.

M1305:

For EH/EH2/SV, direction signal of CH0.

M1306:

For EH/EH2/SV, direction signal of CH1.

M1334:

For EH, CH0 pulse output pauses.

For EH2/SV, CH0 pulse output stops.