Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: smnv on January 16, 2012, 09:25:17 AM

Title: IsActive(Input1) issue. Mach2.
Post by: smnv on January 16, 2012, 09:25:17 AM
I have tested Mach2, spent few days and can not resolve one problem.

Why function IsActive(Input1) always return 0 (false) even if really 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?
Title: Re: IsActive(Input1) issue. Mach2.
Post by: Tony Bullard on February 19, 2012, 10:27:38 AM

One way is to use the VB script editor. Maybe you already are.

Code

a = IsActive(input1)
print a

 My machine returns the correct state.
 
Title: Re: IsActive(Input1) issue. Mach2.
Post by: smnv on February 19, 2012, 12:24:33 PM
delete Mach2, install Mach3, there are no problem.
Title: Re: IsActive(Input1) issue. Mach2.
Post by: athein on January 06, 2015, 10:31:20 PM
Hi, I am having the same issue ... IsActive(Input1) always return 0 (false) even if really is active and led of Input1 is ON. I am using Mach3 and the breakout board is Mach3 USB Motion Card AKZ250 from http://leafboy77.com/.  Any opinion or suggestion will be really great.