Hallo bertl100,
PULSEIN var , PINX , PIN , STATE
STATE = 1 für positiven und
STATE = 0 für negativen Puls.
Gruß, Michael