Hello Guest it is March 29, 2024, 10:58:02 AM

Author Topic: enable output  (Read 2414 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
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
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