Machsupport Forum
Third party software and hardware support forums. => HiCON Motion Controller => Topic started by: scrambled on April 19, 2020, 10:38:02 PM
-
Hi all-
I have my hicon integra connected to my clear path servos. I have everything working so far.
I also have the pnp version of the I/O card.
I have my solenoid valves connected to output #1,#2, and #3. When I go to the HiCON diagnostic screen, I can turn the outputs on and off.
How do I turn output #1 to M code *********. Can some one point me in the right direction?
Steve
-
Here is an example.
function M8()
local inst = mc.mcGetInstance()
local pierceOutput = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1);
mc.mcSignalSetState(pierceOutput, 0);
end
if (mc.mcInEditor() == 1) then
M8()
end
Scripting Manual is available in your mach installation folder under Docs.
-
Vital System Support-
Thanks for the help-
I am not trying to get a plasma to fire, but I am trying to get a solenoid to turn on for a flame table.
I am needing M100 to turn on output #0 (which is plug12, pin 0 ).
If I can figure out how to do it once, I can repeat it for the other 3 solenoids and just change the Mxx and the output *********.
thanks
steve