5
« on: January 29, 2016, 05:43:41 PM »
Hello everybody!
This is my first post on the forum.
My friend has a lathe with a 12 position toolchanger. The machine is quite old and has a an outdated control computer. He asked me if we could upgrade it.
For the past few weeks i have been writing VB scripts and brain logic and changed the screen. everything was working perfectly when bench testing.
Now i got a Smoothstepper and when i configured it i get alot of errors.
The thing is im using OEMTriggers as internal variables to send bits from VB scripts to Brains. i don't use them as inputs to the outside world. But smoothstepper's plugin does not like that.
If i dong configure the OEMTriggers i get errors from the smoothstepper plugin.
My question is how can i send bits from VBscpripts to Brains and vice versa without using OEMTriggers?
This is a section from my M6start.m1s
DeActivateSignal(OUTPUT3) 'tool found
While Not IsActive(OEMTRIG2)
Message ("Waiting for confirmation - tool lock ")
Sleep(100)
Wend
Message ("Tool ready")
End If
The OEMTRIG2 is set high by the Brain and the Brain gets the signal from modbus.
What can i use instead of OEMTRIG or INPUT or OUTPUT. so i can link Brains to VB scripts?
Thank you.