Aktivierung eines Pulsausgabekanals prüfen
Verwenden Sie diesen Befehl für die bedingte Kompilierung im ST-Editor. Der Befehl gibt TRUE zurück, wenn der durch INT_iPulseChannel festgelegte Pulsausgabekanal aktiviert ist; andernfalls wird FALSE zurückgegeben.
#IF IsPulseChannelEnabled(0) <> 0 #THEN
(*condition TRUE if channel 0 is enabled: first part is compiled and executed*)
#ELSE
(*condition FALSE: second part is compiled and executed*)
#END_IF;
Available pulse output channels:
FPS: 0, 2
FP-X R: 0, 1
FP-X 16K C14T: 0, 1, 2
FP-X 32K C30T, C60T: 0, 1, 2, 3
FP0R: 0, 1, 2, 3
FP0, FP-e: 0, 1