Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: D.Nischal on December 22, 2016, 12:12:13 AM

Title: Control of 2 USB relays via Mach 3
Post by: D.Nischal on December 22, 2016, 12:12:13 AM
I have a sacra robot with 3 axis controlled by mach 3. The gripper of the robot is controlled by a  separate relay . Now i want to add two KMTronic USB relays to control two additional grippers to feed the sacra robot via mach 3 . Now the sequence is, once robot has reached the  location of my 1 gripper mach 3 should send a signal to activate  my 1 relay ( to open it). After picking the part , it needs to be activated again ( for  closing) . Again when robot has reached the  location of my 2 gripper mach 3 should send a signal to activate  my 2 relay after unloading  the part again it needs to be closed.
I can control 1 relay my M3 & M5. M1S macros. Now how to achieve  the second one? i read from the forum to use m666.m1s macros. yet it is unclear .
Please to help me to achieve this.
Thanks