beautypg.com

2 transfer counter status via latch pulse, Transfer counter status via latch pulse – Pilz PSSu K F INC User Manual

Page 16

background image

Function description

Operating Manual PSSu K F INC
1001688­EN­06

16

Key to timing diagram:

Section

Function

Procedure for PSSu in system environ­
ment B

a

Start measurement

In the user program, set Out­
putData.LatchOrMeasure

b

Output measured value

Set status bit

Measured value is written in In­
putData.LatchOrPeriod

The module sets InputData.LatchOrMeas­
ureDone

c

Finish measurement

In the user program, reset Out­
putData.LatchOrMeasure

d

Ready for new measure­
ment

The module resets InputData.LatchOrMeas­
ureDone

The result of the last period length measurement remains in the process image of inputs
until the module signals a new measurement result by setting the status information. Before
the initial measurement the process image of inputs contains 0000 0000

H

 or FFFF FFFF

 H

.

The module issues the result of period length measurement in multiples of 200 ns.

Example:

}

The process image of inputs contains 32

H

/50

D

}

The period length is 200 ns x 50 = 10 μs

4.1.5.2

Transfer counter status via latch pulse

A signal output can be connected to input L on the module for a latch pulse. The latch pulse
may come from a PLC or position switch, for example. Using the latch function it is possible
to record and transmit the counter status at the time of this latch pulse.

Prerequisite: This function is configured in PAS4000.

a

b

PIO

L

PII

c

d e

Legend:

}

PIO: I/O datum OutputData.LatchOrMeasure

}

L: Input L for external latch

}

PII: I/O datum InputData.LatchOrMeasureDone