beautypg.com

Set counter status, 4function description, 1 module features – Pilz PSSu E S INC User Manual

Page 26

background image

4.1

Module features

4

Function description

Pilz GmbH & Co. KG, Felix-Wankel-Straße 2, 73760 Ostfildern, Germany
Telephone: +49 711 3409-0, Telefax: +49 711 3409-133, E-Mail: [email protected]

4-10

4.1.5.4

Set counter status

Set counter status

4-

][Funktionsbeschreibung_Ein ST-INC BA Zhler setzen

The "Set counter status" function sets the counter to any value. The val-

ue is stated in the user program. The module transfers the value and

continues counting from this counter status.

Key:

PIO: Bit 2 of the function call in the process image of outputs or I/O

data OutputData.SetCounter

PII: Bit 2 of the status byte in the process image of inputs or I/O data

InputData.SetCounterDone

Key to timing diagram:

Section

Function

Procedure for PSSu in system envi-
ronment A

Procedure for PSSu in system envi-
ronment B

a

Enter counter status

In the user program, write the default
counter status in the process image of
outputs

In the user program, assign the default
counter status to OutputDa-
ta.NewCounterValue

b

Transfer counter status

In the user program, set Bit 2 of the
function call

In the user program, set OutputDa-
ta.SetCounter

c

Acknowledge transfer

The module sets Bit 2 of the status
byte; the underflow and overflow bits
are reset

The module sets InputData.SetCoun-
terDone; InputData.Underflow and In-
putData.Overflow are reset

d

Finish transfer

In the user program, reset Bit 2 of the
function call

In the user program, reset OutputDa-
ta.SetCounter

e

Ready for new function

The module resets Bit 2 of the status
byte

The module resets
InputData.SetCounterDone

b

PAA

PAE

c

d e

a

This manual is related to the following products: