Hello Guest it is November 06, 2025, 06:53:17 AM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
21
Modbus / Re: Need some help with the inital setup
« Last post by martin2day on October 26, 2025, 04:54:31 AM »
image2
22
Modbus / Re: Need some help with the inital setup
« Last post by martin2day on October 26, 2025, 04:50:51 AM »
Image
23
Modbus / Need some help with the inital setup
« Last post by martin2day on October 26, 2025, 04:46:05 AM »
Hello,

i have some trouble with the inital setup of my modus setup.
I want to connect an Arduino Uno to my mach3 via modbus to instal some external periphery.
- the mist sprayer and the pump
- feed override and start/stop

In my fist setup I only want to switch the LED (PIN13) on the UNO on and off using M7 and M9.
I write the Arduino code:
Code: [Select]
#include <ModbusRtu.h>

#define LED1_PIN 13    // Ausgang 1 (z. B. Luft)
#define LED2_PIN 12    // Ausgang 2 (z. B. Flüssigkeit)

Modbus slave(1, Serial, 0);   // Slave-ID 1
uint16_t au16data[2];         // Zwei Register: 0 und 1

void setup() {
  pinMode(LED1_PIN, OUTPUT);
  pinMode(LED2_PIN, OUTPUT);
  digitalWrite(LED1_PIN, LOW);
  digitalWrite(LED2_PIN, LOW);

  Serial.begin(115200);
  slave.begin(115200);
}

void loop() {
  slave.poll(au16data, 2);   // 2 Register abfragen

  // LED 1 steuern
  digitalWrite(LED1_PIN, au16data[0] ? HIGH : LOW);
  // LED 2 steuern
  digitalWrite(LED2_PIN, au16data[1] ? HIGH : LOW);
}
I can test this with the Test Modbus.
If I read the holding register I get back an 0000. If I write 0001 to it, the LED goes on, if I write 0000 to the holding register the LED goes off.
The the UNO and the modbus is correct.

But now I can do what I want, I can not switch the LED on by M7.
I think there es some error, but I did not find it. Please help my.

My M7
Code: [Select]
SetModOutput(0, 1)
And the ModBusConfigration Screen
24
CS-Lab / mach 3 on windows7 platform
« Last post by safezone on October 25, 2025, 09:11:18 AM »
hi to you all,
i hope you guys help me on the problem i am having with my CNC router
here is the problem , when i am machining sharp outer corners machine rounds of the corners related to feed speed , what i mean by that is ,faster i cut bigger the radius is, if i go slow than it cuts as it should, i tried to tune the Servo motors on tune page under config tab but no hope. if i give to much acceleration on either side of the profile machine gets too jumpy
problem some what rectifies though, on the other hand if i set more smooth acceleration problem gets worse.
help will be greatly appreciated   
25
General Mach Discussion / mach 3 on windows7 platform
« Last post by safezone on October 25, 2025, 08:52:58 AM »
hi to you all,
i hope you guys help me on the problem i am having with my CNC router
here is the problem , when i am machining sharp outer corners machine rounds of the corners related to feed speed , what i mean by that is ,faster i cut bigger the radius is, if i go slow than it cuts as it should, i tried to tune the Servo motors on tune page under config tab but no hope. if i give to much acceleration on either side of the profile machine gets too jumpy
problem some what rectifies though, on the other hand if i set more smooth acceleration problem gets worse.
help will be greatly appreciated   
26
Check out this wiring diagram for upgrading a Richauto to an Ethernet Smooth Stepper with a C25XP:https://www.cnc4pc.com/blog/post-4/upgrade-richauto-to-a-c25xp-66
27
General Mach Discussion / Re: Mach3 mist sprayer (stepper) external controller
« Last post by martin2day on October 24, 2025, 04:48:18 AM »
Hello,

thank you, this sounds very good.

Question: the Arduino is connect to the PC with USB but is shown as COM5.
Can I setup an Skript like this:
M7.m1s
Code: [Select]
Dim Arduino
Set Arduino = CreateObject("Scripting.FileSystemObject")
Set Port = Arduino.CreateTextFile("COM5:", True)

Port.WriteLine "ON"
Port.Close

And send information to the Arduino without using the Modbus?

Have a nice day
Martin
28
Mach4 General Discussion / Re: Read and Write to Registers
« Last post by cncmagic on October 23, 2025, 10:46:50 PM »
I'm not sure what version I'm using but I'm not having any problems writing/reading to any of the registers. I'll check tomorrow and we can compare notes as it were... Bob ::)
29
Mach4 General Discussion / Re: Mach 4 default min spindle speed change?
« Last post by Steve Stallings on October 23, 2025, 07:24:18 PM »
Yes, those numbers are about what you would expect from the VFD.
30
Mach4 General Discussion / Re: Mach 4 default min spindle speed change?
« Last post by jamescnc on October 23, 2025, 06:03:51 PM »
I haven't had a chance to test the voltage but at 8000rpm the vfd runs at 127.9 hertz, that's the proper amount for that rpm correct? I just cant get mach 4 to run below that. but the vfd can go below that no problem.
Pages: « 1 2 3 4 5 6 7 8 9 10 »