beautypg.com

2 functions of devices in dvp-plc – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 116

background image

2 Functions of Devices in DVP-PLC

DVP-PLC Application Manual

2-88

Index

Function

+ 0

Y10, Y11 2-axis synchronous control; output frequency of 1st section = low 16 bits of 32 bits

+ 1

Y10, Y11 2-axis synchronous control; output frequency of 1st section = high 16 bits of 32 bits

+ 2

Y10, Y11 2-axis synchronous control; output pulse number of 1st section = low 16 bits of 32 bits

+ 3

Y10, Y11 2-axis synchronous control; output pulse number of 1st section = high 16 bits of 32

bits

3. The

functions:

a)

Definition of the 2 axes:

X axis: Y0 (direction output) and Y10 (pulse output)

Y axis: Y1 (direction output) and Y11 (pulse output)

b)

Define the format of output table:

Assume D1133 = K100 and D1134 = K3 and the output table has to be set as:

Section No. Device D

Output

frequency

Device D

Number of

Output pulses

Description

1 D101,D100

K10,000

D103,D102

K1,000

Section 1 outputs 1,000 pulses in 10KHz

2 D105,D104

K15,000

D107,D106

K2,000

Section 2 outputs 2,000 pulses in 15KHz

3 D109,D108

K5,000

D111,D110

K3,000

Section 3 outputs 3,000 pulses in 5KHz

Note: The frequency and number of output pulses are all in 32-bit. Thus, the 3 sections will continuously

occupy 12 D devices (3 Ч 2 Ч 2 = 12).

4. Note:

a)

Make sure that the output frequency and the number of pulses have been set before using this function.

The output frequency and the number of pulses cannot be modified during the execution of the function.

b)

When PLC program scans to END instruction, it will auto-check whether this function needs to be enabled.

c)

When M1133 and M1135 are set in the same scan period, the two axes will output pulses synchronously.

d)

When the output frequency < 100Hz, the output will be executed in 100Hz. When the output frequency >

100KHz, the output will be executed by 100KHz.

e)

Only device D (D0 ~ D999 and D2000 ~ D4999) can be used for this function. DO NOT use other devices

or exceed the range of device D.

f)

The maximum number of segments for this function is 50. When the number of segments < 1 or > 50, this

function will be disabled.

g)

After this function is enabled, M1102 = “On” indicates Y10 output is completed and M1103 = “On” indicates

Y11 output is completed.

5. Examples:

a)

Draw oblique lines in 2 axes

Destination: Draw 2 oblique lines (as figure 1)

Program explanation: Y0 and Y10 belong to X axis, and Y1 and Y11 belong to Y axis (as figure 2)

Output frequency and number of pulses: see table 1