111
General Mach Discussion / Re: 16 atc via modbus
« on: October 23, 2009, 02:21:38 AM »
yes it is allready in auto toolchange
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.
then you are writing to "coils" in the PLC, you need to write to a "Holding register", or user memory. Then do a "Bit-of-word" operation on that register to grab the Tool requested, from there you can do compare statements that then activate your sensor for your Binary input patteren your looking for.ok scott finally i did my tool changer and it seems it is working well i only have one problem by now when the tool finish it has to activate input 4 of mach 3 i am receiving a bit on the discrete but the input 4 is not activated i have enable input 4 on port 0 pin 1 but not sure if i done it right
scott
How many encoder counts would that equate to? Seems to me that if its such a large amount then it must be a force of some sort acting on the axis and moving it when disabled. I use a SmoothStepper and have noticed by monitoring my drives software that pressing the reset can lose position but it is only by 1 or max 2 counts of my encoder which equates to 0.00125mm maximum. I have put that down to my drives being disabled and the belts relaxing slightly. I always rehome after I have reset but in reality it would be a lot of resets before I am out of position enough to worry about. If however I had a slantbed lathe then the chances are the axis would move further when the drive was disabled (due to reset being pressed) so at this time the only option would be to rehome after a reset.thanks hood
Hood
You have 2 options here.which one do you think i should use ?
1. Use an RS232 to RS485 converter and run the PLC and the ModIO off that.
2. Use the RS232 to RS485 on the ModIO and run the PLC off the ModIO's RS485 connectors.
Have a look at these 2 engineering notes;
http://www.homanndesigns.com/EN007-MC01R1.pdf
http://www.homanndesigns.com/EN007-MA02R1.pdf
Cheers,
Peter.
Hi,yes the plc has a rs485 port
No you can't use 2 com ports in Mach3 with Modbus.
What you can do is use RS485 to talk to the PLC and the ModIO through a single com port. This is how most talk to multiple modbus devices.
The ModIO can use RS232, RS485 two wire, or RS485 four wire.
You can also use the ModIO as a RS232 to RS485 converter as well.
Does your PLC haave a RS485 port?
The loop is closed to your drives but at this point Mach is not in the loop. Sorry I didnt see the first part regarding the reset before, how much is it loosing when you reset?i would say about .1 of a mm but it is not always .1mm
Hood