Delta Electronics DVP-F2FR instruction sheet M1002 MOV K1 D1034 SET M1019, From, Explanation

Models: DVP-F2FR

1 2
Download 2 pages 56.13 Kb
Page 2
Image 2
FROM

CR NO.

 

 

 

Latched

 

 

 

 

 

Attribute

Factory

 

 

Mode

Function explanation

HW

LW

setting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

V1.00 version.

 

 

#35~#49

 

 

 

 

Reserved

 

#50

R

K51

°

 

1,3

The index of F0 record value (record the number from CR51~130)

#51~#130

R

K0

°

 

1,3

F0 record value (each value occupy 2 group CR)

 

#131

R

K132

°

 

1,3

The index of F1 record value (record the number from CR132~211)

#132~#211

R

K0

°

 

1,3

F1 record value (each value occupy 2 group CR)

 

 

#222~#255

 

 

 

 

Reserved

The usage of CR varies based on operation mode. Please follow the table above to read or write CR. In column Attribute, ‘*” means writing is allowed when frequency measurement card is not working.

When the writing value is out of available range, the value of upper/lower bound shall prevail to write once the value is out of upper/lower bound.

The CR28 and CR29 are the time-out setting for F0 and F1. When setting them to a non-zero value in mode 1, it will monitor the signal input from F0 or F1 and start a time-out counting. If no signal detected in F0 and F1 with the time-out counter reaching the setting, it will clear the CR10~CR11 or CR12~CR13 and inform the PLC by I180 interrupt. Moreover, when CR28 and CR29 are set to zero, the time-out counter will not work anymore.

CR50~CR211 will record the value according to the operation mode. Explanation as follows:

 

Mode 1

Mode 2

Mode 3

CR51~CR130

To record F0 pulse interval (CR10,

N/A

N/A

CR11)

 

 

 

CR132~CR211

To record F1 pulse interval (CR12,

N/A

To record F1 pulse interval

CR13)

(CR25, CR26

 

 

The index number of each record is plus 2 for CR50 and CR131 after both registers record on next. Once the index number reaches to the maximum, it will back to the 1st index number.

It takes about 125us for instruction FROM/TO to read or write a CR of the frequency measurement card. One more read/write item of CR, 30us more for register.

5

 

 

 

 

 

 

 

 

 

 

 

INSTRUCTION EXPLANATION

 

5.1 Instruction Explanation for Frequency Measurement Card

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

API

 

 

 

 

FROM

 

 

 

 

Read Special Module CR Data

78

 

 

 

 

D

 

 

 

P

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

 

 

 

 

 

 

 

Explanation

 

: Number of special module (m1=0~7). Number of frequency measurement card, m1=200.

Explanation: Number of CR of special module that will be read.

M1002: Location to save reading data.

Manual background: Data number of reading one time.

API

 

 

 

 

 

TO

 

 

 

Special Module CR Data Write In

79

 

 

 

D

 

 

 

P

 

 

 

 

 

 

 

 

 

 

Instruction

 

 

 

 

 

 

Explanation

 

: Number of special module (m1=0~7). Number of frequency measurement card, m1=200.

Manual background: Number of CR of special module that will be read.

Manual background: Location to save writing data.

Manual background: Data number of reading one time

5.2 Explanation of special D, M and Interrupt:

Device

Explanation

Range

 

 

 

D1034

Mode setting of frequency measurement card

D1034 = K1~K3 (Mode 1~Mode 3)

 

 

 

M1019

Flag of mode setting

 

I180

Frequency measurement card trigger

 

interrupt

 

 

 

After PLC run at the first scan time, PLC will detect flag M1019 is ON or OFF. If M1019 is ON, PLC will modify the frequency measurement card’s operation mode based on D1034 setting. Program example as follow is operation mode 1:

M1002

MOV K1 D1034

SET M1019

PLC can use M1019 (flag of operation mode setting for frequency measurement card) and D1034 (flag of operation mode setting for frequency measurement card) to set operation mode 1 (measurement of pulse interval) and operation mode 2 (measurement of pulse number) to support Interrupt function I180.

6

 

APPLICATION EXAMPLE

6.1 Pulse Interval Length Measurement

Following the program example of setting operation mode 1 (D1034, M1019) for frequency measurement card. For F0 and F1, set the time unit of sampling rate is 100ns (D7, D8) and the sampling record number as 20 (D3, D4). Moreover, I180 will be triggered when F0 or F1 detects a rising or falling edge. PLC can read CR9 via instruction FROM to decide which channel to detect the signal.

 

 

 

EI

 

 

 

 

M1002

 

 

MOV

K1

D1034

 

 

 

 

 

 

 

 

 

 

SET

M1019

 

 

 

 

 

 

MOV

K20

D3

 

 

 

 

 

MOV

K20

D4

 

 

 

 

 

MOV

K2

D7

 

 

 

 

 

MOV

K2

D8

 

 

 

 

 

TO

K200

K3

D3

K6

M1013

 

 

 

K200

K50

D50

 

 

 

 

FROM

K41

 

 

 

FROM

K200

K131

D131

K41

 

 

 

FEND

 

 

 

 

M1000

 

 

 

 

 

 

 

I 180

 

 

FROM

K200

K9

D9

K11

&

D9

K1

DMOV

D10

D300

 

 

&

D9

K2

DMOV

D12

D300

 

 

 

 

 

IRET

 

 

 

 

 

 

 

END

 

 

 

 

6.2 High-speed Counter

The setting for the following program example:

1.Operation mode: Mode 1.

2.Counting method: Pulse/Direction.

3.Set M0=ON to start counting.

M1002

K2

D1034

 

 

MOV

 

 

SET

M1019

 

 

 

MOV

K0

D22

 

 

TO

K200

K22

D22

K1

M1013

 

 

 

 

FROM

K200

K20

D20

K3

M0

 

 

 

 

TO

K200

K24

K1

K1

END

 

 

 

 

6.3 Pulse Number Capture

The following program example is Mode 3 for frequency measurement card. Whenever frequency measurement card detects the rising-edge in F1, it will trigger the Interrupt I180 of PLC. When PLC execute Interrupt I180, it will read the content of CR25, 26 of frequency measurement card via instruction FROM.

 

EI

 

 

 

 

 

M1002

K3

D1034

 

 

 

MOV

 

 

 

SET

M1019

 

 

 

 

MOV

K20

D4

 

 

 

TO

K200

K4

D4

K1

 

M1013

 

K131

D131

K40

 

FROM

K200

 

FEND

 

 

 

 

 

M1000

K200

K25

D25

K2

I 180

FROM

 

IRET

 

 

 

 

 

END

 

 

 

 

6.4Differential Input Interface (please refer to the following wiring method)

 

+24VDC

 

 

 

 

4.7K

 

 

A+

 

 

 

A-

4.7K

F0

 

 

 

Differential

470

 

 

output

NPN Tansistor

 

 

 

ON MMBT4401LT1G

 

 

+24VDC

 

 

 

 

4.7K

 

 

B+

 

 

 

B-

4.7K

F1

 

 

 

Differential

470

 

 

output

NPN Transistor

 

 

ON MMBT4401LT1G

 

 

 

Suggestion: if it is necessary to measure the input signal of frequency measurement card, please connect one clip of the oscillograph probe to either terminal A- or B- and the other clip of the oscillograph probe to the ground .

7

 

INSTALLATION AND MAINTENANCE

Wiring Method for Frequency Measurement Card

 

 

+24VDC

 

 

 

 

Isolating cable

 

 

 

 

4.7K

 

 

A+

 

 

Open collector

A-

4.7K

F0

 

 

output

 

 

 

+24VDC

 

 

 

 

Isolating cable

 

 

 

 

4.7K

 

 

B+

 

 

Open collector

B-

4.7K

F1

 

 

output

 

 

 

There is a SDSP1 indication LED in the front end of the DVP-F2FR frequency measurement card. When power on the PLC MPU, the LED will light up (green). If the LED doesn’t light up with power on, it means that there is error with the card. Please power off the PLC and re-install the card again.

Before power on the system, please check A/B phase loop and make sure they connect to the input terminal with correct electrical level.

Page 2
Image 2
Delta Electronics DVP-F2FR instruction sheet M1002 MOV K1 D1034 SET M1019, From, Explanation