Table of Contents

Advertisement

Basic principles, overview and ordering information

2.20.9 Examples

General
When writing threshold values, configuration data or overwrite data, an operational
sequence should partially be maintained.
When used on a local PLC, new data can be sent to the counter in each PLC cycle.
When used in a field bus system, it is necessary to wait for at least one field bus
cycle to elapse when writing data to the module so that the data reaches the
module safely.
Example 1: Basic function
Configuration of 4 x 16 bit counters.
The counter content is read by the PLC. The PLC also resets the counter content.
Connection: signal on X1.0 (COUNT+) and +24 V on X1.4 (GATE)
PLC reads the input words 1-5 and evaluates them.
If counter 1 for example should be reset, PLC writes the counter to zero ! word 1
= 0; word 5 = 2000h
1 cycle later: PLC resets control word ! word 5 = 0
h:Hex format
Example 2: COUNT- terminal with reset function
Configuration of 4 x 16 bit counters.
The counter content is read by the PLC.
Counters 1 and 2 should be deleted with an external signal.
Maximum input frequency of the signals is 1 kHz
Connection:
Signal for counter 1 on X1.0 COUNT+, external deletion signal
on X1.2 and +24 V on X1.4
Signal for counter 2 on X1.1 COUNT+, external deletion signal on X1.3 and +24 V
on X1.5
PLC waits until the field bus supplies valid values or if the input word 5 does not
equal zero.
PLC writes configuration data for interference suppression of 2 kHz and terminal
assignment.
Delete ! word 1 = 0005h; word 2 = 0005h; word 5 = 0400h
PLC resets control word ! word 1 = 0; word 2 = 0; word 5 = 0
SPS reads the input words 1 - 5 and evaluates them.
h:Hex format
Example 3: Threshold comparison
Configuration of 4 x 16 bit counters.
Counter
channel
1
should
switch
on
the
output
X1.6
at
35000.
The disconnection of the output and restart of the counter is preset by the PLC.
Maximum input frequency of signals is 10 kHz
Connection: signal for counter 1 on X1.0 (COUNT+)
PLC waits until the field bus supplies valid values.
80
© 2002 Wieland Electric GmbH Version 2.4* (December 2002)
Part no. 05.591.3389.0
© 2002 Wieland Electric GmbH

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents