Hello Guest it is April 27, 2024, 09:48:34 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 - FocusPaul

Pages: « 1 2 3 4 5 »
21
Mach4 General Discussion / Re: How to programing C# with Mach4
« on: March 01, 2016, 02:30:58 AM »
Those defines are part of the SDK. If you have access to SDK, the C-header files are located in subfolder "SKD/include".

22
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: October 28, 2015, 02:58:08 AM »
How about a link to the examples. I can't find it.



The examples are placed in Mach4 installation folder in folder LuaExamples.
The 2763 version contains those examples.

Problem is I'd like the sounds back as well (and a few other things). But not sure I want to learn a new language. Too bad it isn't a config setting. Oh well.
I'm sure I'll figure it out. It seems a lot of "nice to have" stuff as per Mach3 will now be up to the user to program. So I guess I'll get on board and learn Lua.

Lua is a very easy to learn "scripting language", that's why it's used programs nowadays. If you need some quickstart, read some of the examples mentioned above (e.g. MessageBox.mcs or ActivateOutput.mcs). There's also a lot of simple Lua code in the wxMach screen set, which can be edited easily with Mach4 screen editor.
After a while you'll find out Lua is a lot more powerful than the Mach3 configuration and its Visual Basic scripts :)

23
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: October 26, 2015, 02:55:17 AM »
3. ability to add .wav files and speech (like in mach3).

Sound, Sound, Sound... Mach 3 had the ability to use text to speech and wav files. It also would play a sound when selecting an axis and zeroing an axis.
Mach 4 seems to be mute.  :-X

See the Lua script "Play files.mcs" in LuaExamples folder about how to play a media file in Mach4.

24
Mach4 Toolbox / Parametrized M codes (e.g. M162 A12.0 P8.0)
« on: October 09, 2015, 07:29:16 AM »
Hello!

I've been looking for this feature for some time now, seems it had been impl'd in one of the more recent versions (test with v2716):

You can provide parameters to custom M code Lua scripts. Please refer to example LuaExamples/UseVarsFromMcodeLine/M162.mcs.

Code: [Select]
local pFlag = mc.mcCntlGetLocalVarFlag(inst, hParam, mc.SV_P)
... checks if parameter P is available ...
Code: [Select]
local pVal = mc.mcCntlGetLocalVar(inst, hParam, mc.SV_P)
... while this line retrieves the value as double

mc.SV_P may be replaced by any character between SV_A and SV_Z.

Small example M162 script attached, which writes values of all present parameters to log.

25
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: February 13, 2015, 01:39:43 AM »
daniellyal,

It's not a motion problem, it's an error in the displayed value of the acceleration expressed in G units.  When you enter a value for acceleration on the motor tuning page, the box to the right of that should display the acceleration in units of G.  If you enter 300 units/s/s and you are working in metric units (mm), the displayed value should be 300/9800=.0306.  Nothing to do with pulses, steps per unit, maximum velocity, just a translation from units/s/s to G.

In M3, you can enter either G units or units/s/s but, obviously not both as they are not independent values.

G values are nice in that they give one a quick feel for the forces acting on the table and any vices, work, jigs mounted on it.  An actual acceleration of .77 would require very high forces be applied by the motors.

Peter

Confirmed. Broken in (at least) the most recent version.

With an acceleration of 4000 mm/s the G force should be (4000 mm/s² / 1000) / (9.81 m / s²) = ~ 0,40 G.
It displays ~ 10 G.

26
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: February 12, 2015, 09:57:38 AM »
Sorry for dragging up an old problem but I'm still seeing wrong acceleration values in the motor setup page when setting up M4 for metric.  I'm using the latest M4 V2214 and Darwin 2209.  Selected metric for both machine setup units and units mode.

Peter

I remember seeing some feed rate problems using metric system in older versions (started around v1900), but with v2214 I am able to configure the axis in metric mode with correct speed / acceleration.
Tried max. velocity of 6000 units/min, and acc. of 25 units/sec² and got the correct movement when using a defined feed rate of 50 units / sec.

Can you please give an example of your problem?

27
Mach4 General Discussion / Re: so the ess and 4 work?
« on: January 06, 2015, 08:59:11 AM »
If this question is about whether ESS and Mach4 work well together: Yes, they do.

28
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: September 26, 2014, 05:00:49 AM »
Thank you Steve & Brian.  ;)

Tweakie.

I'd love to see this working on any axis, not only on axis A :)

29
So it means you can inline wxLua code into your G code script?

Something like that?

G1 X10 Y3.5
wx.wxMicroSleep(10);--10ms delay
mc.mcSignalSetState(mc.mcSignalGetHandle(0, mc.OSIG_OUTPUT0), 0);




30
Hello!

Can you please explain, what's the concept of "inlining" (compared to the usual MCode scripting)?

Thank you,
Paul

Pages: « 1 2 3 4 5 »