Hello Guest it is April 25, 2024, 04:44: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 - madfly

Pages: 1
1
Hello, thank you for your help and the example that I've provided, I have compiled and now I understand better how Mach3 inside.
 As you rightly said you can not find a working example to see how Mach3 sends commands.
 Almost all USB Mach3 to do nothing but take the data in Modbus format and then regenerate the toolpath, my idea is instead to capture the pulse of step and direction, sending them to the usb it will not do more than repeat the impulses Mach3, which sends the parallel.
 I do not know if I was very clear but my English is at school, thanks again Daniele

2
Mach SDK plugin questions and answers. / Re: Write a plugin for USB
« on: February 25, 2011, 06:53:47 AM »
hello, i have try this code
Code: [Select]
while(Engine->TrajHead!=Engine->TrajIndex)
{
i= Engine->TrajIndex;
//lamiaform->textBox1->Text +=
if (MainPlanner->Movements[Engine->TrajIndex].sx!=0)
{
lamiaform->textBox1->Text += MainPlanner->Movements[Engine->TrajIndex].sx.ToString("F4") ;
}
/*
lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].sy.ToString("F4");
lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].sz.ToString("F4");
lamiaform->textBox1->Text += "\r\n";

lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].ex.ToString("F4");
lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].ey.ToString("F4");
lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].ez.ToString("F4");
lamiaform->textBox1->Text += "\r\n";

lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].Time.ToString("F4");
lamiaform->textBox1->Text += ";" + MainPlanner->Movements[Engine->TrajIndex].type.ToString("F4");
*/
lamiaform->textBox1->Text += "\r\n";




Engine->TrajIndex = (Engine->TrajIndex+1) & 0xfff;
}
but mach3 is blocked and not respond, why?


regards

3
Mach SDK plugin questions and answers. / Re: Write a plugin for USB
« on: February 24, 2011, 09:54:25 AM »
Hello this is my code:

Code: [Select]

void piUpdate()
{

    int axis;
    int iMax;
    char c;
if (MG::lamiaForm){
LaMiaForm^ lamiaform = MG::lamiaForm;

lamiaform->textBox1->Text ="";
for(int i=0;i<30;i++)
{

lamiaform->textBox1->Text +="\r\n" + i.ToString();
c = Engine->OutSigs[i].OutPin;
lamiaform->textBox1->Text += ";" + c.ToString();
c = Engine->OutSigs[i].OutPort;
lamiaform->textBox1->Text += ";" + c.ToString();
lamiaform->textBox1->Text += ";" + Engine->OutSigs[i].Negated.ToString();
lamiaform->textBox1->Text += ";" + Engine->OutSigs[i].Activated.ToString();
lamiaform->textBox1->Text += ";" + Engine->OutSigs[i].active.ToString(); 


}
}
}
I knew that you could see how Mach3Engine->OutSigs announced the step and direction to the parallel port, but so far I could not understand how it works.

regards

4
Mach SDK plugin questions and answers. / Re: Write a plugin for USB
« on: February 24, 2011, 07:32:06 AM »
Hello I would like to develop the plugin with Visual Studio 2008 and C + +, have already managed to make the first plugin, now the problem is figuring out how Mach3 sends commands to the parallel port to interpret them and send them to USB.

regards

5
Mach SDK plugin questions and answers. / Write a plugin for USB
« on: February 24, 2011, 03:25:43 AM »
Hello I want to write a plugin for Mach3 for use in PCs that do not have a parallel port, I had in mind to capture the signals that Mach3 send to the parallel port, how can I do?


regards

6
Hi, I wanted to start developing a plug-in for Mach3 that could communicate with USB.
I have seen several examples on the forum and was able to configure Visual Studio 2008 Express edition to develop code.
Now my problem is figuring out how to configure Mach3 to send the commands through the USB interface without having yet linked to a PC, I tried to recover the data sent with Engine-> OutSigs I can not receive anything because my laptop don't have a LPT port (I things!!!:( ) or with MainPlanner-> Movements [Engine-> TrajIndex]. DDA1 [axis] but I get the data but can not figure out how to use them, also slows the implementation of GCode.

Can you help?

greetings

7
Modbus / Developer a USB plugin without an interface.
« on: November 19, 2010, 03:02:53 AM »
Hi, I wanted to start developing a plug-in for Mach3 that could communicate with USB.
I have seen several examples on the forum and was able to configure Visual Studio 2008 Express edition to develop code.
Now my problem is figuring out how to configure Mach3 to send the commands through the USB interface without having yet linked to a PC, I tried to recover the data sent with Engine-> OutSigs I can not receive anything because my laptop don't have a LPT port (I things!!!:( ) or with MainPlanner-> Movements [Engine-> TrajIndex]. DDA1 [axis] but I get the data but can not figure out how to use them, also slows the implementation of GCode.

Can you help?

greetings

Pages: 1