Cycle

Function

Puts out a digital value (0 or 1) on a cyclic basis.


CAUTION

A value 0 for the on time, is a legal value but should not be used because it disables the timer and does not accept on-line changes.


Cycle Operation

P1 On time is the duration of the high level (true) while P2 Off time is the duration of the low level (false). The statement sends the cycle sequence to the output “Out” as long as the input signal “In” is greater than or equal to 1. See the next pictures:


Fig. 212.   Cycle operation


Output Variations

The output cycles only while the input is 1.


Fig. 213.   Cycle operation when In = 1 and P1 and P2 <> 0


If the Off time is set to 0, a single positive pulse will be generated.


Fig. 214.   Cycle operation when In = 1; P1 <> 0 and P2 = 0


If the On time is set to 0, a single negative pulse will be generated.


Fig. 215.   Cycle operation when In = 1; P1 = 0 and P2 <> 0

If the input is set to zero in the middle of a cycle, the output continues to complete that cycle.


Fig. 216.   Wire-sheet Icon

Fig. 217.   Property Sheet

Fig. 218.   Slot Sheet

Inputs and Outputs

Table 134.   Inputs

Inputs

Type

Functional description

In

boolean

Binary input

In Enabled

boolean

If the input “In Enabled” is set to false disabled in the slot sheet, the output “Out” will be disabled and is set to the value “0”.


Table 135.   Outputs

Outputs

Type

Functional description

Out

numeric

One output “Out” = cycle value


Table 136.   Parameter List

Description

Value Range

Default Value

Unit

P1 On time

This value defines the duration of the high impulse level (impulse width)

0...

10

s

P2 Off time

This value defines the duration of the low impulse level (impulse pause).

0...

10

s