    

 ## On this page

  

 

 # Square

 Last update: 09.03.2026 

The flow is 0 the first half of the interval and 1 the second half for every number of cycles.

The figure shows the output flow for a square waveform with the following inputs:

- cycles: 10
- amplitude: 2
- offset: -1

![](/sites/default/files/git_ansys/scade_one_standard_libraries_2026_r1_1/n__square_00.svg)

## Interface

NameKindTypeCommentcyclesIunsignedNumber of cycles for a period  
Range: &gt; 1amplitudeIfloatGain to be applied to the output flow (default 1)offsetIfloatOffset to be added to the output flow (default 0)flowOfloatOutput flow**Parent topic:**[Sources::N](./sources_n.md)