Why function IsActive(Input1) always return 0 (false) even if really Input1 is active and led of Input1 is ON in Diagnostic window?

Anyone know any another way how check value (true or false) of some pin number in Mach2?

I have tested Mach2, spent few days and can not resolve this problem. Please help me.