Hello Guest it is March 28, 2024, 06:26:03 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 - AUKURAS

Pages: 1
1
*****VIDEOS***** / Re: Ultimate MACH3 pendant
« on: October 01, 2021, 02:49:15 PM »
Thank you!

On the Arduino side, you could check my code, there are some comments, it might be helpful:
https://www.dropbox.com/s/x76rtm1rwg0mv7w/AND.CUSTOM_PENDANT-FINAL.zip?dl=0

I'm not sure how does mach4 works with modbus, but in mach3 you have to play with Brains, out there you can read incoming registers from Arduino and address it to any action, and other way around, read information of what machine is doing and change registers, that Arduino can read.

Registers are like a storage, you can think of online cloud. You can send information to the cloud, and you can access that information from many different computers/devices.

2
*****VIDEOS***** / Ultimate MACH3 pendant
« on: February 16, 2021, 07:26:11 PM »
Finally finished and fully functioning hand controller.
Arduino USB -> ModBus -> Mach3

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

3
General Mach Discussion / Re: OEM codes for buttons, DRO's and LED's
« on: March 01, 2019, 06:50:18 AM »
Yes, that's how I did. I can create a rung 836, but the output is always 0.0000 while tool length is set as 7.250 (or any other value).
I tried as well "OEM 180 Machine Z coord - Z Work Offset - Tool length" with the same result.

In the end, I managed to get Tool Length by using OEM 42 (Tool Z Offset). It works like a charm!
And I got stock size by calculating values from other DROs.

I already used some other DROs that are not in pull/down list, and they work fine i.e 124, 126.

4
General Mach Discussion / Re: OEM codes for buttons, DRO's and LED's
« on: February 28, 2019, 02:40:46 PM »
Thank you for the reply,

I tried, with no success. "old codes" and "new codes". Tried to set it in the pull-down field and "Use DRO Number" field. Still can't pull out Tool length DRO...

5
General Mach Discussion / Re: OEM codes for buttons, DRO's and LED's
« on: February 28, 2019, 11:53:12 AM »
Hey guys.

Does anyone know why my MACH3 brain does not have some of the DROs?

I looked into the list posted by Hood and another one by Brett and a few other lists that I could find online. All of them includes these:

For example:
75 - Stock Size DRO
836 - Current Tool length DRO

I know there was a couple more that are missing, but I can't remember them.

I use MACH3 R3.043.066

Did later versions of MACH removed some of the DRO's ?

6
Modbus / Re: ModBus configuration allows only 27 registers. Why?
« on: February 25, 2019, 07:53:42 AM »
I found a reason!

The problem lies within my slave, and not MACH3.

You gave me right direction, Peter! It is about message length.

Serial buffer size of my slave is only 64 bytes by default.

Function 16 (write multiple registers) itself uses 9 bytes (for ID, Function, Address,  Number of registers, Number of bytes, and two Bytes CRC)

So I am left with 55 bytes which can hold max 27 registers.

I had to change buffer size to 256 on my slave..

Oh...

7
Modbus / Re: ModBus configuration allows only 27 registers. Why?
« on: February 25, 2019, 07:18:13 AM »
Hi Peter,

Thank you for the reply!

According to Modbus documentation MAX message size is 256 Bytes.
Holding registers are 16 bites = 2bytes.
256 / 2 = 128 registers

Or I am wrong?

8
Modbus / ModBus configuration allows only 27 registers. Why?
« on: February 24, 2019, 08:52:32 PM »
I get strange behavior when configuring ModBus plugin in Mach3.

Everything is fine and working perfectly if there is no more than 27 Registers declared in ModBus Configuration in Mach3.
I use Input-Holding and Output-Holding to communicate with a slave.
115200 Baud Rate, 8-1-N
It's no matter if I assign Input-Holding or Output-Holding, it does not allow me to declare more than 27 registers.

If I add for example 30 registers, my slave gets random serial data, ModBus Configuration screen starts to lag and becomes kinda slow.

The best part is, that when I'm testing ModBus communication in "Test ModBus" screen - everything is fine, I can receive and send all 127 registers from/to slave, no errors.

I tried hundreds of different configurations, but it would not work. I also deleted ModBus file, so MACH3 could create new file for configuration. Did not help..

I am creating controller pendant, and 27 registers is not enough...

Any ideas?

Pages: 1