Hello Guest it is March 29, 2024, 10:29:31 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 - Peter Homann

491
General Mach Discussion / Re: MPG on ModBus (not ModIO)
« on: January 14, 2008, 10:24:28 PM »
Hi,

i just get a ModBus-device to work with Mach3.

I'm able to switch any Mach3-Button by the pendant and to light any LED on my pendant.
Pots for Speed- and Feedoverride work too, but:

how get running jogging by a MPG ?

I'm using a CubLoc because ModIO was to small by In and Outs.

Has anyone tried to get MPG working on ModBus without ModIO ?
Have i to setup the MPG in Ports&Pins ?

Regards
Frank (without any idea what to do ...)


Frank,

You should have used a ModIO. ;D (Only joking)

The problem is most likely to be that you are not providing Mach with a 16 bit counter value. The counter is used to determine the how fast you are turning the MPG. Set up a counter in the Cubloc that just counts up at about 2KHz or so. Then read this in with the MPG count. Have a look at the ModIOMPG brain in Mach.

Cheers,

Peter.

492
General Mach Discussion / Re: Lathe speed control
« on: January 14, 2008, 10:14:16 PM »
Hi Chris,

For hooking up a sensor, have a look at the Engineering notes I've written;
http://homanndesigns.com/store/index.php?main_page=page&id=3&chapter=0

Also for speed control, consider the DigiSpeed-XL. It helps with the wiring of the sensor as well as allows the spindle to be controlled via the PWM signal from Mach3.
http://homanndesigns.com/store/index.php?main_page=product_info&cPath=1&products_id=2

Cheers,

Peter.

493
Brains Development / Re: Available hardware for TCP Modbus?
« on: January 11, 2008, 12:51:42 AM »
Thanks Brett,
So it should be possible to use Homann MC-01 Mod I/O with the Brain instead of writing
macro pumps and if I don't need the plc functions in for example DL06?

Roger



Hi Roger,

The ModIO will work fine being driven via Brains. Should be no different than from MacroPumps, other than the different representation of the brains and the functionality they offer.

http://homanndesigns.com/store/index.php?main_page=product_info&cPath=2&products_id=4

Cheers,

Peter.

494
Brains Development / Re: Howto send DRO Axis information?
« on: January 11, 2008, 12:46:27 AM »
yes that is the modbus protocol you are seeing.

I am assuming PLC since you havent said what your sending to. ON the PLC side on your com port tick off Hex values not ascii.
In your PLC Drop the number into a register then if from that point you need to change its type do so there. I.e. Load it out, change it to Binary, real, The or whatever and then send that value to the display. If you display requires Ascii you may need to change the register value trough an Ascii filter, then to your display.

If your using Peters board, then ask Peter.

scott

Scott,


The line;
Quote
X-Axis DRO = 65535.0000 -> Modbus "02 06 00 00 FF FF 88 49"
is a dump of the Modbus data leaving the PC. The slave device has nothing to do with this yet.
The line is showing what is being sent out of the PC. It shows that the Brain is converting 65535.0000 to the integer 65536 (FFFF hex). and is writing it to address 0000. The problem is that this is not what is wanted.


The line
Quote
Mach3 X-Axis DRO shows +9.9750 and send "02 06 00 00 00 09 49 FF" over Modbus
.
Shows that reals are being converted to integers as the decimal part is being truncated.

The line,
Quote
X-Axis DRO = 65536.0000 -> Modbus "02 06 00 00 00 00 89 F9"
Shows that brains can only handle 16 bit integers as 65536 equates to 10000 hex and as such the leading 1 is lost. This is not such an issue as 16 bits is the standard integer size.


Either the brain needs to convert the value to a floating point number that the Modbus slave understands, or the brain needs to convert it to ascii characters that the slave can display. This is what the ModIO would require.

It really comes down to the functionality that Brains can provide. The macropump scripting had a function to convert a string and sent it out via Modbus. Very useful for displaying DRO etc.

I don't think that Brains has anything like this. At this stage the functionality of Brains is very primitive compared to what the MacroPump could do.

To do the ascii conversion in Brains would require a lot of runs just to conver a single DRO.


Cheers,

Peter.

Cheers,

Peter.






495
Modbus / Re: How to change output settings?
« on: December 16, 2007, 02:57:54 PM »
Hello all,

Since a few days i use a MODIO with Mach3 R2.61, everything works fine, but in the default settings, the outputs 1-4 are blinking and i want to disable this. I've checked the state of the register 103 with te modbus test monitor in Mach and can see, that the bits 1648 to 1651 are setted to 0. How can i change the settings to 1 ? It is not possible in the test monitor with a write instruction. Any idea to fix this, or is there another way to disable the blinking?


Greetings from the snow covered Austrian mountains,

Helmut


Hi Helmut,


You should be able to write to the config registers from the Modbus test page. Remember you can only write to 1 config register at a time

Also, you need to reset the ModIO after any change to the config registers in order for them to take effect.

Writing FF to register 103 should turn off the flashing to all outputs.

The Alternative way is to use the Modbus Config tab, acessed from the Modbus Config page.

Cheers,

Peter.

496
Modbus / Re: A/B-1762-L40BWA FRN 11 & MODBUS Help !!
« on: December 15, 2007, 05:35:30 PM »
Hi Chip,

The Modbus Master (Mach3) requests writes to and reads from registers in the PLC.

For this to work, You need to

set up the registers in the PLC
Write ladder logic to interact with the PLC registers
Set up Mach to read/write the registers set up.

Errors in any of the above steps will cause it not to work. Does the PLC come with a tutorial or quick start guide?

What you may want to do initially, is write some ladder logic that just takes the value in a a few coil registers and sets the output on the PLC, Then get Mach to set the coils. If you set the Mach outputs to these coils it should be a simple test.

BTW, I don't have a PLC myself.

Cheers,

Peter.

497
Modbus / Re: A/B-1762-L40BWA FRN 11 & MODBUS Help !!
« on: December 14, 2007, 04:18:34 PM »
Hi Chip,

I would expect that the PLC should be set to RTU  Slave mode. Mach3 is the Master.

Cheers,

Peter.

498
Modbus / Re: Wish me some luck!!!
« on: December 12, 2007, 11:15:25 PM »
Hi Scott,

Thanks for that. So, the 1st one has a Modbus TCP/IP to RS485 serial converter.

Makes Sense.

Cheers,

Peter.

499
Modbus / Re: Wish me some luck!!!
« on: December 12, 2007, 05:23:57 PM »
Hi Scott,

So, how to you use TCP Modbus on a serial 422 bus? Are you using SLIP?

Cheers,

Peter.

500
Hi,

Yes you can. If you set up the coms in Mach to suit your VFD, then write a macropump, it should work fine.

As I don't have a VFD, I haven't done it myself.

Cheers,

Peter.