Re: [Emc-users] Ladder Modbus Slave
Peter, I'm really glad you hardware guys are around developing newer, better, faster, stronger stuff for us. I did a minor in hardware when studying for my Comp Sci degree, and have fiddled with electronics on and off for a good many years, even being an avionics maintenance tech in the USAF before getting my commission and wings. I'm starting to get back into playing around with electronics (good lord there's so much I've either forgotten over the years due to disuse of the brain in that area, or so much new stuff has been developed in the mean time!). Keep up the good work. Same goes for our good friends at Mesa and Pico. We can never have too many hardware choices available! Mark On 02/29/2012 05:24 PM, Peter Homann wrote: Hi Mark, I currently have a prototype of ModIP, a TCP/IP modbus slave device that I'm developing. I think that Modbus over TCP provides an excellent robust interface for external I/O devices. The biggest hurdle I'm trying to overcome at the moment is the form factor. I've gone from a traditional PLC style to a miniature CPU core board that plugs into various I/O motherboards, to a Arduino form factor, to a daisy chain setup. Still working on it. :) Cheers, Peter. On 29/02/2012 10:24 PM, Mark Wendt wrote: Peter, No problem. You brought up another tid bit to add to the conversation. ;-) Mark On 02/29/2012 06:17 AM, Peter Homann wrote: Hi Mark, Oops, sorry I misunderstood the conversation. Cheers, Peter On 29/02/2012 10:15 PM, Mark Wendt wrote: Peter, I was referring to Kirk's not seeing port 1502 after he assigned it in the loadusr statement, and how the OS handles ports above 1024. Mark On 02/29/2012 06:07 AM, Peter Homann wrote: Hi, Port 502 is assigned to Modbus, so that's what slaves should use by default. Cheers, Peter. On 29/02/2012 9:40 PM, Mark Wendt wrote: On 02/28/2012 05:21 PM, Kirk Wallace wrote: ... snip I think I know a little more now. I was able to bring up loadusr classicladder --modslave (I didn't know the rt component had to be loaded too). My netstat returned the same result above with 0.0.0.0:9502. I then did a ifconfig to find my network computer's addresses with 192.168.1.10 (eth0) and 127.0.0.0 (localhost) being listed. I nmap both addresses and found port 9502 open on both, so it seems by default, --modslave will listen on all addresses (two in this case), with all or any addresses being called out as 0.0.0.0. http://en.wikipedia.org/wiki/0.0.0.0 If I use loadusr classicladder --modslave --modbus_port=1502 netstat sees port 1502 as listening, nmap doesn't see it whereas it did see 9502 previously. My guess is that as any ports above 1000 have lighter restrictions, maybe ports above a higher value are handled differently too, so 1502 doesn't show where 9502 does. I guess I have more work to do. I haven't tried connecting to the LinuxCNC slave with a master yet. Actually, ports 1024 and below are considered privileged ports. Any ports above that are considered non-privileged ports and are all treated the same. Do a 'netstat -a | grep 1502' and see if the 1502 port shows up. Mark -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Possible Retro Machines
Just in case someone might be interested. I was cruising eBay and these looked interesting. Search these item numbers, Mazak V5 140713003494 Bridgeport Interact 160749983639 Hitachi Seiki VK55 130653225274 Stuart? 220849926230 -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] question about using an inverter for both manual and computer usage
Kirk It looks like the motor driver is an SCR type speed controller like the KBIC controllers. http://www.wallacecompany.com/machine_shop/kbic/ Not exactly a KBIC board but very very similar. I looked at the manual online and all the inputs to board corresponded to my pcb. But unlike manual schematic there are no fuses placed next to board. Still it looks like the same controller. If the motor checks out okay, the speed controller may be the problem. I ran the motor from a variable voltage lab bench ps I have. It only puts out 20v dc at max, but that turned the motor ok but slowly and the speed varied with voltage. Also at this speed motor was drawing a very small current. So I am now assuming that the fault is not with the motor. Having said that I am still leaning towards the 3phase option. I quite like the idea of the control box not being on the mill head and would prefer to place controller on the wall near to the mill and then control it from a remote pendant. Thanks also for the info on vfd's. I have a cheap one controlling a machine I made. I need to buy a more expensive one to handle the serial / modbus connection. Having read the manual, I know that on the vfd I have I would have to keep manually changing input mode on the vfd to switch between pendant and serial input. I was hoping that I could do this via an external switch or something similar on a different model. Alan -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Program Stop Executes More Lines
It appears that if a gcode program is stopped in the middle, some offsets from further down the program are being applied. I ran the test program below and stopped it during execution of line 7 (the G1 line). After this, when doing MDI movement or restarting the program, the G54 offset from the G10 line and the tool offset from the next-to-the-last line are apparently being used by the machine, even though the program was stopped before that. Also, the DRO relative display doesn't include these offsets, so the DRO relative display doesn't agree with the machine. G54 and G92 offsets were all zero before running. Tool 1 has zero Z offset in the tool table but tool 7 has a -1.0575 offset. Am I doing something wrong here? Is this documented somewhere? Things can be reset by issuing a G43 in MDI mode and resetting the G54 offset. This is on version 2.5pre (~4 weeks old). It happens using both the Axis and Touchy interfaces. G54 G17 G90 G20 G98 T1 M6 G43 G0 X3.5 Y-0.75 M03 S1000 G0 Z-0.1 G1 X-1.5 F1 G80 M05 G10 L20 P1 Z0.0 T7 M6 G43 M02 Thanks for any advice. Karl -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] question about using an inverter for both manual and computer usage
On Thu, 2012-03-01 at 20:33 +, Alan wrote: Kirk It looks like the motor driver is an SCR type speed controller like the KBIC controllers. http://www.wallacecompany.com/machine_shop/kbic/ Not exactly a KBIC board but very very similar. I looked at the manual online and all the inputs to board corresponded to my pcb. But unlike manual schematic there are no fuses placed next to board. Still it looks like the same controller. If the motor checks out okay, the speed controller may be the problem. I ran the motor from a variable voltage lab bench ps I have. It only puts out 20v dc at max, but that turned the motor ok but slowly and the speed varied with voltage. Also at this speed motor was drawing a very small current. So I am now assuming that the fault is not with the motor. For the short term you may be able to use a light dimmer or power tool speed controller. http://www.homedepot.com/webapp/wcs/stores/servlet/ProductDisplay?productId=202803522 or replace the controller: http://www.ebay.com/itm/190646759537 Having said that I am still leaning towards the 3phase option. I quite like the idea of the control box not being on the mill head and would prefer to place controller on the wall near to the mill and then control it from a remote pendant. Just about any controller can be mounted away from the machine. The speed controller or VFD can be controlled with three parallel port pins (run/stop, direction, pwm/speed). Then any remote or pendant could be used to tell LinuxCNC how to control the speed controller. USB game pendants seem to be popular. http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_Remote_Pendant Thanks also for the info on vfd's. I have a cheap one controlling a machine I made. I need to buy a more expensive one to handle the serial / modbus connection. Having read the manual, I know that on the vfd I have I would have to keep manually changing input mode on the vfd to switch between pendant and serial input. I was hoping that I could do this via an external switch or something similar on a different model. The three parallel port pin setup can allow you to do normal spindle operations. Modbus just allows you to monitor voltage, current, alarms and such, which really are not required for making parts. Two of the eight VFD's I have, have Modbus, the others use the parallel port pins or pins from an FPGA signal generator (allows higher resolution for the PWM speed signal). It would be easy to have a three pole switch that switches between the parallel port pins and a panel with two switches and a potentiometer. Micheal put a feature in his Modbus VF-S11 Modbus driver that writes to a register as LinuxCNC exits, so before and after LinuxCNC comes up, the VFD is in manual mode. My MVX and SJ200 VFD's have this feature too, so my guess is that most any Modbus VFD will have this. I sense that you have the budget and desire for a more sophisticated system, but I'm thinking it could be inexpensive to get your CNC back in service, then explore the options and do the upgrade at your leisure. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] question about using an inverter for both manual and computer usage
On Thu, 2012-03-01 at 13:30 -0800, Kirk Wallace wrote: ... snip or replace the controller: http://www.ebay.com/itm/190646759537 ... snip Oops, wrong voltage. Maybe: http://www.ebay.com/itm/170766746676 http://www.ebay.com/itm/310383369901 http://www.ebay.com/itm/230690934975 -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Need 1/4 shaft to keyed 10mm bushing
Rather than inline the carriage drive screw, with will leave the motor hanging out quite a ways on the left end of this lathe, I could save about 3 if I mounted the motor to the bed on another piece of 1/4 alu plate, such that a gear on the motor shaft would engage a gear on the lead screw. I bought a set of steel change gears before I got the bug to put motors on this thing, so it looks as if I can drive a 65T on the lead screw with a 35T on the motor, an 8 wire 425 that says 5 amps on it, but I suspect that is a per coil, one at a time rating. I am only using about 2.40 amps on the Z axis for the mill and it certainly seems to be enough when the coils are wired in series. I can put 155 lbs on a bath scale with it, which is a heck of an improvement over that same motor driving the old, back of the post screw and tapping the motor out at 5 lbs showing on the same scale. Anyway, is there such a 'hub' I can buy, or am I doomed to try make it? Thanks guys. Cheers, Gene -- There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. -Ed Howdershelt (Author) My web page: http://coyoteden.dyndns-free.com:85/gene In those days he was wiser than he is now -- he used to frequently take my advice. -- Winston Churchill -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Program Stop Executes More Lines
Karl Cunningham wrote: It appears that if a gcode program is stopped in the middle, some offsets from further down the program are being applied. I ran the test program below and stopped it during execution of line 7 (the G1 line). After this, when doing MDI movement or restarting the program, the G54 offset from the G10 line and the tool offset from the next-to-the-last line are apparently being used by the machine, even though the program was stopped before that. Also, the DRO relative display doesn't include these offsets, so the DRO relative display doesn't agree with the machine. The on-screen display is ALWAY ahead of the actual program execution. The display of active modes and offsets comes from where the interpreter is NOW, which can often be the end of the program. There is a queue of motion events between the interpreter and the motion hardware. Jon -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Making my own custom gui or controlling software to command emc
Hi, I'm quite new to emc but not tot cnc in general. For a new machine we build I'd like to write my own frontend to control the machine. Is emcrsh the recommended way to do this? I see a lot of nice commands over telnet which could surely help me out. Or is there another preferred way for programmers to access emc2 ? How does axis interface for example? Kind regards, Bart -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users