Hello Guest it is March 28, 2024, 10:22:27 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 - soruud

Pages: « 1 2 3 »
11
Mach4 General Discussion / Jograte use mm/m in stead of %
« on: June 07, 2017, 03:57:42 PM »
Hi. I would like my Jog rate speed to be defined in mm/m and not % of my max rapid speed. The reason for this is that I got 1/4 speed on my Z axis compared to X and Y axis. So my Z axis is allways slow in compare.

Lets say I define 2000 mm/m as 100% Jog rate This is my Max Rapid on Z. The other axis can move 8000, but 2000 would be nice as top Jog speed.
How can this be done?

Please missunderstand me correct... Ofc. If I turn my Jograte to 100% now as it is, I will get my 2000mm/m on Z.. But then I got 8000 on the other axis, and that is too fast  ;)

I belive I have seen something like this before, maybe in this forum, but now I cant find it.  Help some1  ??? ??? ??? 


12
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 02, 2017, 12:30:54 AM »
That is true. It dont mather what type of I/O board we use.. The way to do it is the same.

Have a nice day at school. I my self are going for a weekend with Hardcore OffRoad ;)

Pic attached :)

13
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 01, 2017, 05:15:08 PM »
Hi. I was allso wondring about the RC word... What does it mean?
And how exactly do I make a external button to set an output without going back to previous state when using momentary buttons? I tought I knew, but still dont.
When a momentary button are pressed it changes state, but it does it again on release... This is probably a dumb question...
I tought I got control of my buttons until yesterday whan I found out that things dont work...

Things work just fine as screen buttons, but not as pokeys unput buttons...

Daz... Please. You know all about this, dont you ???

An tutorial video for dummies during setup of Pokeys buttons would be just awesome :))


14
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: May 31, 2017, 07:52:24 AM »
Ahh... Well lets try to do this with an normal momentary button then :)


Make an normal button.
Go to Clicked Script and enter this:

hsig, rc = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT0);
local state = false;
local VarIamTestingFor = SomeThingIamWatchingOrSettingOrValue;
if VarIamTestingFor == WhatSetsTheOutputToOn then
state = true;
else
state = false;
end
mc.mcSignalSetState(hsig, state);

Now the button will set Output 0 to Active until you somehow deactivates it.
So if you want to deactivate it with an other button you wil do the same just enter the same script and invert the "true" to "false" and the "false" to "true"
As this:

hsig, rc = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT0);
local state = true;
local VarIamTestingFor = SomeThingIamWatchingOrSettingOrValue;
if VarIamTestingFor == WhatSetsTheOutputToOn then
state = false;
else
state = true;
end
mc.mcSignalSetState(hsig, state);


This script is an example taken from a PDF made By Scott “Poppa Bear”
The PDF is easy to find on web. Google for Poppa Bear LUA.

1 step closer now ?

Sor

15
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: May 31, 2017, 04:01:09 AM »
Hi again.. This is to be short.. Need to study for my exam...   I made an post 1 or 2 days ago about buttons and switches... take a look here:
http://www.machsupport.com/forum/index.php/topic,35013.msg240578.html#msg240578

About your button question how to activate an output... I just made an short video for you on my Youtube channel.. Just an short tutorial..

https://www.youtube.com/watch?v=3XY0o0gXz2A

I hope this will help :)

SOR.. 8)

16
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: May 31, 2017, 01:58:12 AM »
Hi Craig. The screen file are looking the same on my screen I think. Main tab window down to the right are allmost folded up. Its because I only use this screen for testing,
and I needed the space. If youn are watching at 2.35min into the video you will see that I use an digital joystick for jogging. That is all I got, but an digital joystick
works exactly the same way as an momentary pushbutton, only 4 of them :) And it only works in continious mode. >:( This is a problem because I want it to work in INC mode as well. I really dont know how to do that... But some1 here in the formy may know? I am afraid we need to have dedicated buttons for INC jog, but it SHOUD be able to change the mapping of a button ?
I actually posted a tread about this problen in this forum, but there is no replays.  ???

17
Finally!
My control panel buttons has arrived  ;D Directly from CNTD's factory in China.
I must recomend them if you need buttons or sensors, end switches for projects. They got exelent service, and very fast shipping.
They sendt me 270 buttons on Friday, and I got it home with UPS today. 3 days. Price wasnt bad either. 256$ shipping included :)
All buttons where nicely packed separately in plastic and boxes of 20 pcs. It looks pretty professional. Quality allso looks to be good.

See attached picture

http://cntd.com/main.html
Downloadable Product Sheet PDF: https://drive.google.com/open?id=0BxBCBb731KryS0g2NHpTQlFEdUE

18
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: May 29, 2017, 08:26:12 AM »
Hi Craig. Well I got hotkeys for many things in SolidWorks. M for mirror, L for line, K for center line, C for circle, N for normal to and many more.. I draw way faster that way combining mouse and keyboard.
SolidWorks is mainly what I am doing at work when prototyping and product designing things. So when drawing skills are taken care of it is a lot easyer to have cnc as hobby :)
I allso use SolidCam for programming. Maybe some1 here in forum got a good post prosessor for me? SolidCam to Mach4.
Did you look at the screen file ? Tell me what you think? I can see the file has been downloaded a few times already, so maybe some1 else got some tips for me? Did I do anything wrong?

Sor.

19
I got an DMM AC servotor 1.8Kw with brake on my Z-axis. I let the drive control the brake, and it works fine. If the drive loses power or goes in error
Mach3 or Mach4 wont notice at all.. If you dont have a alarm signal from drive to Mach. Its bether to make sure the brake are active unless drive are live. I actually got an Reset button on my machine that trigger a relay powering all my drives. If I get an ServoDrive error I can just kill them all for a sec and move on. Mach doesnt care at all.

20
Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: May 28, 2017, 10:58:01 AM »
Hi again. So nice that you found my solution useful. It takes some effort to get things as I want them in Mach4, and most because of LUA. But things are getting bether evry day.
I am waiting for my panel buttons to arrive from a fabric in China, so I am just testing some things, and playing with the Screen editor. I allso made an screen background in SolidWorks just to
see if I could use it, and that worked out great. Now I just *********ed upp a lot of other things ;D

Take a look at the attached screen file. You may find a few features there you may like. The screen are just a mess, it works, but misses a lot.
I wrecked the MDI input, so it wont work, so I got a unique chanse to learn how to fix it. haha.

Allso take a look at this video from my Youtube channel. Thats my machine and control panel with 22" Touchscreen  8)

https://www.youtube.com/watch?v=hke3yk6u3_o

Pages: « 1 2 3 »