Hello Guest it is December 04, 2021, 03:35:04 PM

Author Topic: I/o question  (Read 659 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?

Steve
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);
end

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

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 *********.


thanks


steve