Hello Guest it is March 29, 2024, 02:39:26 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

61
Modbus / Re: modbus vs psm or which is what?
« on: March 22, 2015, 05:31:52 PM »
If your VFD has Modbus, use that as it will be more accurate than using PWM.

Cheers,

Peter

62
Mach4 General Discussion / Re: MACH4 - Modbus
« on: March 22, 2015, 05:28:39 PM »
There is no such thing as an analog register in Modbus, just holding registers, input registers, output coils and input discretes.

To read an analog value such as a potentiometer, your modbus device such as a ModIO will need an analog to digital converter, putting the value into an input register (or holding). Modbus then transfers this as a 16bit Register to Mach4. You can then take this 16 bit value and apply it to whatever you want such as spindle speed override, etc.

Cheers,

Peter

63
Modbus / Re: MODIO Keyboard Scanner
« on: January 04, 2015, 12:27:45 AM »
Hi Wayne,

How did you get on?

Cheers,

Peter

64
General Mach Discussion / Re: Estop w/ 2 Ports
« on: January 04, 2015, 12:20:05 AM »
Hi,

The switch on the enable line allows you to de-energise the stepper motors, allowing you to adjust the axis position by hand. I find it useful for setting the z-axis to the top of the work surface.

Output #6 is switching mains power to an outlet socket. You can use it to turn on a vacuum system or flood coolant pump, etc.  The active supply to this should really go via the EStop switch as well. I need to update that on the diagram.

There is nothing special about the IEC switch block, other than it has a switch, fuse holder and IEC lead socket in a neat package. What you are using is fine.
http://www.homanndesigns.com/store/index.php?main_page=product_info&cPath=29&products_id=86

Cheers,

Peter


65
General Mach Discussion / Re: Estop w/ 2 Ports
« on: January 03, 2015, 05:50:32 PM »
Your Estop switch should disconnect the A/C mains power from the 48V power supply. Do not switch the 48Vdc supply with the E-Stop as this may damage the G540.

An example G540 wiring diagram Engineering Note EN010 can be found on this page;
http://www.homanndesigns.com/store/index.php?main_page=page_2

Cheers,

Peter

66
Modbus / Re: MODIO Keyboard Scanner
« on: January 02, 2015, 05:17:36 PM »
The reason for that is that a blank EEPROM is set to 1s. So the config registers have a 1 to represent their default state. So the Keypad  Scanner by default is off. Therefore the bit is called" Keypad Scanner Off"

Clearing the bit will enable the scanner.

Cheers,

Peter

67
General Mach Discussion / Re: Chinese breakout boards (flipping signal?)
« on: January 01, 2015, 05:58:05 PM »
Hi Juha,

Unfortunately, the breakout board is probably not doing what you want. Many of the Chinese breakout boards use opto-isolators that are slow or not biased correctly.

What is happening is that the opto-isolator cannot turn on and off quick enough.  On some of these boards, the optos are biased with a resistor of a too high value limiting the current to the opto, so the diode in the opto never gets a chance to turn on before the pulse turns off (or visa-versa). This can sometimes be fixed by substituting the resistors with appropriate values. There are a number of threads on the CNCZone where people have done this.

The other problem is that the board may be using a slow opto that will not be capable of switching on-off or off-on fast enough. For that you would need to replace the optos with faster ones.

My suggestion is to buy a decent opto-isolated breakout board.PMDX at http://www.pmdx.com/ designs and sells quality breakout boards.

The fact that the board inverts the signals from the PC is quite normal. The parallel port of the PC sits at logic hi in it's rest state, so that having a logic hi as "off" in the breakout board is common.

Cheers,

Peter

68
Modbus / Re: MODIO Keyboard Scanner
« on: December 30, 2014, 06:33:31 PM »
Hi Wayne,

A couple of things. The address 106 is a decimal address.
Also unless you have been playing around with the config register I would have expected it to be FF hex.

0025 Hex means that you have;
Bit7-0 the DigiSpeed module - on,
Bit6-0 frequency counter module - on
Bit5-1 the  the Keyboard module-  off
Bit4-0 Not used
Bit3-0 High resolution Encoder 2 - off
Bit2-1 High resolution Encoder 1 - on
Bit1-1 Use Encoder 2 - off
Bit0-1 Use Encoder 1 - on


Setting it to 0015 Hex turns on bit 4 and turns off bit 5. Keep in mind that the bits start at bit 0, not bit 1.  The default value for register 106  is FF hex. You should be setting it to BF hex. That will turn of the Keypad scanner.

Also keep in mind that;
1. After changing a config register you need to reset or re-power the ModIO to make the config change take effect.
2. If you have the ModIO address hex switch on position '0' the ModIO uses default config settings and ignores the config register settings.  If you change it to position 6, the ModIO will have an address of 6, the same as the default position, and it will use the settings in the config registers.

The reason that position 0 uses default config values rather than the registers is that if you screw up the communication config registers, you can always put the address switch to position 0 and the ModIO will use a standard configuration so you can communicate with it and fix your screw up :)

Cheers,

Peter

69
Modbus / Re: MODIO Keyboard Scanner
« on: December 30, 2014, 04:21:19 PM »
Hi Wayne,

Have you enabled the keyboard scanner module by clearing bit 5 of Register 106 (CONFIG2)?

Once the keyboard scanner module is enabled, you can read the key presses from register 1158.

Cheers,

Peter

70
Modbus / Re: mod i/o and Vfd control on same port?
« on: December 15, 2014, 07:27:53 PM »
Hi terry,

Haven't seen anything so I'll check.

cheers,

Peter