Hello Guest it is April 29, 2024, 02:29:59 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jbraddock

Pages: « 1 2 3 4 5 6 7 8 9 »
11
you can use your keyboard num pad, I tried it a few years ago and it worked
What do you mean, im tryn to figure out how to activate by keyboard instead of by input button,... in other words how do i make say enable work when i hit a keyboard input like spacebar or another keystroke

12
Hi,
or buy another BoB, or even two, for $23.00 each and have as many inputs as you could shake a stick at!

Craig
Which bob is $23.00 that your talking abought

13
What do you mean? Im still tryn to figure out how to set button functions to keyboard keys

14
Hi,
did you check that <Enable> is a function? If it is, have you called the function using the correct
syntax:

MachEnable().......note Lua is case sensitive and the parenthesies indicate to Lua that its a function
thus

MachEnable
machenable()
and
MachEnable()  are all different.

Craig


yeah i found some scripts an got it working THANKS!, problem now is im outa inputs an bob im using is full of outputs an not inputs,...so idk,...im looking into the Pokeys 57cnc with membrane buttons,... may go that route,... so hopefully all the scripts will work the same for that card

15
i tried just changing CyleStart to MachEnable an no go

16
Hi,
just noticed that other examples:

if (state==1) then

ie it might be necessary to put the parenthesies around the conditional. As someone pointed out that
Lua has syntax 'that only a mother could love'.

Craig

finally got it it was that code you gave me was wrong, i got one off another post an its working FINALLY!!!! THANK GOD!!!

NOW TO DO ENABLE  can i do it the same way?

17
its not easy for me apparently,.... ive tried numerous ways an it keeps
 Saying...

 LUA  SYNTAX ERROR DURING PRE COMPILATION UNEXPECTED SYMBOL NEAR =

18
Hi,
I am at work and so can't show you at the moment.

Open the screenload script and near the very top you'll see:

SigLib{

which is the start of the signal library table. You just need to put another entry in it.
It tell Mach 'this is the signal I'm interested in....and this is what I want you to do...'

Craig

ok

19
Open the Screen Load script in the screen editor and find the line:

    SigLib = {

This is the beginning of the signal table. Now try inserting the following between 2 existing entries:

Code: [Select]
--AW: Set cycle start if user presses key assigned to Input0
[mc.ISIG_INPUT0] = function (state)
    if (state == 1) then
        CycleStart()
    end
end,

--AW: Set feed hold or stop if user presses key assigned to Input1
[mc.ISIG_INPUT1] = function (state)
    if (state == 1) then
        local hSig = mc.mcSignalGetHandle(inst, mc.OSIG_RUNNING_GCODE)
        local codeRunning = mc.mcSignalGetState(hSig)
        if (codeRunning  == 1) then
            mc.mcCntlFeedHold(inst)
            --CycleStop()
        end
    end
end,


Use your own inputs instead of inputs 0 and 1. That's all there is to it.

Allan

thank you,..ive been in the wrong place all day,

20
Hi,

Quote
thought thats where you said an circled it to show where it gos?

No, thats how the screen button works.....your input just needs to call the CycleStart() function



OK where do i need to put it...,  DO I ADD TO CODE IN IT OR ERASE THAT CODE AN REPLACE WITH NEW CODE?

Pages: « 1 2 3 4 5 6 7 8 9 »