@bibimann: was für ein 24V-Rechteck hast Du da im Sinn? Symmetrisch zu 0V oder Impulse von 24V Amplitude?