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

Page 430

Advertising
background image

PROFIBUS communication

Parameterising the counter
One counter 32 bits, 24 V DC − EPM−S600

9

l

430

EDSIO1000 EN 7.0

Read data: 12 bytes

Input area

Addr.

Access

Assignment

+0

Double word

Count value

+4

Double word

Latch value

+8

Word

Status word (see the following table)

+10

Word

Ticker value

Count value: Current counter content

Latch value: If there is a positive edge at the latch input, the count value is stored here.

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−S600 status word

Bit

Designation

Function

0

STS_SYNC

Reset was active

1

STS_CTRL_DO

Is set if the digital output is enabled

2

STS_SW−GATE

Software gate status (set if SW gate active)

3

STS_RST

Status of reset input

4

STS_STRT

Hardware gate status (set if HW gate active)

5

STS_GATE

Status of internal gate (set if internal gate active)

6

STS_DO

Status of digital counter output (DO)

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

STS_LTCH

Status of latch input

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.

Advertising