Hello Guest it is April 13, 2021, 12:16:37 PM

Author Topic: enable output  (Read 1087 times)

0 Members and 1 Guest are viewing this topic.

Re: enable output
« Reply #10 on: February 04, 2019, 02:44:41 AM »
Hi,
you said you put this code in the PLC script. Did you put it in before or after the declaration/initialization of
testcount?

Craig
My wife left with my best friend...
     and I miss him!
Re: enable output
« Reply #11 on: February 04, 2019, 06:31:57 AM »
Hi Graig,

Yes i did but no luck

BS jeffrey
Re: enable output
« Reply #12 on: February 04, 2019, 06:48:31 AM »
Hi Graig,

sorry i read it quickly i paste it after the testcount 

local inst = mc.mcGetInstance()
local rc = 0;
testcount = testcount + 1
machState, rc = mc.mcCntlGetState(inst);
local inCycle = mc.mcCntlIsInCycle(inst);
then i put the new code