Hello Guest it is February 23, 2024, 08:00:17 AM

Author Topic: I/o question  (Read 1815 times)

0 Members and 1 Guest are viewing this topic.

I/o question
« 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?

Re: I/o question
« Reply #1 on: April 23, 2020, 02:01:45 PM »
Here is an example.
Code: [Select]
function M8()
    local inst = mc.mcGetInstance()
    local pierceOutput = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1);
    mc.mcSignalSetState(pierceOutput, 0);

if (mc.mcInEditor() == 1) then

Scripting Manual is available in your mach installation folder under Docs.
Re: I/o question
« Reply #2 on: April 23, 2020, 11:58:38 PM »
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 *********.