beautypg.com

Profinet communication – Lenze I/O system 1000 System Manual User Manual

Page 677

background image

PROFINET communication

Parameterising the counter

One counter 32 bits, 5 V DC − EPM−S602

12

l

677

EDSIO1000 EN 7.0

Read data: 8 bytes

Input area

Addr.

Access

Assignment

+0

Double word

Count value

+4

Word

Status word (see the following table)

+6

Word

Ticker value

Count value: Current counter content

Ticker value: After mains connection a timer (

ms ticker) is started, which after 65535 ms

starts with 0 again. With every change of the count value the time value of the timer is
stored as 16−bit

ms value together with the count value in the input area.

EPM−S602 status word

Bit

Designation

Function

0

STS_SYNC

Reset was active

1

STS_CTRL_COMP

Is set if the comparison bit is enabled

2

STS_SW−GATE

Software gate status (set if SW gate active)

3

STS_RST

Status of reset input

4

Reserved

5

STS_GATE

Status of internal gate (set if internal gate active)

6

STS_COMP

Status of comparison bit

7

STS_C_DN

Status set for counter direction backwards

8

STS_C_UP

Status set for counter direction forwards

9

STS_CMP*

Comparator status is set if the comparison condition is met.
If the comparison is deactivated (counter mode byte 1 = 000

b

), the bit has

no function.

10

STS_END*

Status set if final value was reached

11

STS_OFLW*

Status set in the case of overflow

12

STS_UFLW*

Status set in the case of underflow

13

STS_ZP*

Status set in the case of zero crossing

14

Reserved

15

Reserved

*

The bits are set until reset with RES_SET (bit 6 control word)

Write data: 10 bytes

Output area

Addr.

Access

Assignment

+0

Double word

Comparison value

+4

Double word

Set value

+8

Word

Control word (see the following table)

Comparison value: Here you can select a value which, by comparison with the current
counter content, can impact the counter output or trigger a process alarm. The response
of the output or the process alarm can be parameterised.

Set value:With an edge change 0−1 of COUNTERVAL_SET in the control word, the set value
is accepted in the counter.