def pportInError():
 if (port.DlPortReadPortUchar(statusRegAdrs) & 8):
  return 1
 else:
  return 0

def pportInError ( ) : if ( port . DlPortReadPortUchar ( statusRegAdrs ) & 8 ) : return 1 else : return 0
input from error pin .