Hello
Guest
it is
May 08, 2025, 06:05:15 PM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
enable output
« previous
next »
Print
Pages:
«
1
2
Go Down
Author
Topic: enable output (Read 7978 times)
0 Members and 1 Guest are viewing this topic.
joeaverage
7,604
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
Logged
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
jeff1973
9
Re: enable output
«
Reply #11 on:
February 04, 2019, 06:31:57 AM »
Hi Graig,
Yes i did but no luck
BS jeffrey
Logged
jeff1973
9
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
Logged
Print
Pages:
«
1
2
Go Up
« previous
next »