Hello Guest it is April 28, 2024, 09:49:16 PM

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 - tgirard

Pages: « 1 2 3 4
31
So, some things that would make screen dev a lot more intuitive:
Mouse select of Objects
Ability to place objects in front or back of other objects
UNDO!!!!

I think the Biggest thing for me would be the ability to read and write the width and the height of the MACH screen so that I could place a series of size buttons on my screen and maintain aspect ratio.

32
DAZ!!!
Man, I have been watching your videos on Youtube.

Any chance I could bend you ear a little bit about communication between the Arduino and Mach?

33
Nice job Louie. I actually learned a lot about Lua control over UI elements. I didn't know about the Screen Load and PLC Scripts until I dug into your screens. IS there some documentation that you could point me to?

Thanks

34
Mach4 General Discussion / Re: Unlock Screen
« on: October 22, 2015, 05:53:55 PM »
PHEW... That worked

35
Mach4 General Discussion / Making a connection through rs232 in Mach4
« on: July 24, 2015, 05:42:29 PM »
I posted this in another thread but wanted to bring it to the top to see if anyone could help.
We have a need to have Mach make a serial connection and send and receive serial data.

I'm new to Lua but have done a little vb developmet. I've done only a couple of things that required serial com.

I searched through as much documentation as I could find in the forums with no luck (Special thanks to Scott “Poppa Bear” Shafer and Ya-Nvr-No)
McLua mc Scripting Reference SpacedOut
McLua Work Offsets and Parameters1
Pound Var List-revised1-2
Mach4 Scripting Manual
Mach4 ENUM list for mc1
Mach4 ENUM list for mc1

I installed the "Lua for windows" package which comes with the luars232.dll. I ran the example for the luars232.dll and was able to make a connection to my com ports on my machine.

I tried to do the same thing in mach4 by placing the dll in the Mach4Hobby folder (the root folder is in the PATH). I then created a new Lua script (tim.lua) and wrote the following:
rs232 = require("luars232")

 This was the result:

Compilation successful!
Output: "C:\Mach4Hobby\LuaExamples\Tims.mcc"
Waiting for client connection...
Client connected ok.
At Breakpoint line: 1 file: C:\Mach4Hobby\LuaExamples\Tims.lua
mcLua ERROR: Lua: Error while running chunk
error loading module 'luars232' from file 'C:\Mach4Hobby\luars232.dll':
   The specified module could not be found.

stack traceback:
   [C]: in ?
   [C]: in function 'require'
   [string "C:\Mach4Hobby\LuaExamples\Tims.lua"]:1: in main chunk


mcLua ERROR: Lua: Error while running chunk

Debug session finished.

It "Seems" to want to load but gets hung up somewhere. It could definitely be pilot error on my part as I do have some coding experience but far from an expert...

A simple, documented example would be the greatest help but I am more than happy to dive in to any doc that has the answer.
Thanks
-Tim

36
Mach4 General Discussion / Re: Mach4 Serial Port Support
« on: July 22, 2015, 08:47:18 PM »
By the way, I installed the "Lua for Windows" Package which comes with the luars232.dll. When I ran the example for Luars232, everything ran fine. I simply copied the dll file from Lua for Windows to the Mach4Hobby folder

37
Mach4 General Discussion / Re: Mach4 Serial Port Support
« on: July 22, 2015, 08:41:23 PM »
I tried to run a simple test and could not get the luars232.dll to load. I placed the dll in the Mach4Hobby folder. I then wrote
rs232 = require("luars232") to see if it would just load. This was the result:

Compilation successful!
Output: "C:\Mach4Hobby\LuaExamples\Tims.mcc"
Waiting for client connection...
Client connected ok.
At Breakpoint line: 1 file: C:\Mach4Hobby\LuaExamples\Tims.lua
mcLua ERROR: Lua: Error while running chunk
error loading module 'luars232' from file 'C:\Mach4Hobby\luars232.dll':
   The specified module could not be found.

stack traceback:
   [C]: in ?
   [C]: in function 'require'
   [string "C:\Mach4Hobby\LuaExamples\Tims.lua"]:1: in main chunk


mcLua ERROR: Lua: Error while running chunk

Debug session finished.

It "Seems" to want to load but gets hung up somewhere. It could definitely be pilot error on my part...
Does the Mach version of Lua use or require "require" ?

Pages: « 1 2 3 4