Re: [Emc-users] Additional I/O Modbus card.
Hi Chris, I am using the cd download for my system. I have not downloaded EMC with CVS. I will try the side by side test and see what happens Dave - Original Message - From: "Chris Morley" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Tuesday, January 15, 2008 4:49 AM Subject: Re: [Emc-users] Additional I/O Modbus card. > > > >> From: [EMAIL PROTECTED] >> To: emc-users@lists.sourceforge.net >> Date: Mon, 14 Jan 2008 10:15:50 -0500 >> Subject: Re: [Emc-users] Additional I/O Modbus card. >> >> Chris, >> >>I will see if I can get it working on classic ladder again and >> send you my config file. >> > > Thanks Dave all sounds good. I'm having some problems loading ladder > programs properly so there are some problems yet. > One thing to note is that the MODBUS in CL. would not be realtime so > latency may be a problem when u have a realtime program running. You maybe > able to replicate this by running EMC and the original Classicladder side > by side and watch the response time. Have u down loaded EMC with CVS or > are u using the standard method (cd or binary download)? Thank you for the > info. I appreciate the encouragement -I'll try my best. > > Cheers Chris Morley > > _ > > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
> From: [EMAIL PROTECTED] > To: emc-users@lists.sourceforge.net > Date: Mon, 14 Jan 2008 10:15:50 -0500 > Subject: Re: [Emc-users] Additional I/O Modbus card. > > Chris, > >I will see if I can get it working on classic ladder again and > send you my config file. > Thanks Dave all sounds good. I'm having some problems loading ladder programs properly so there are some problems yet. One thing to note is that the MODBUS in CL. would not be realtime so latency may be a problem when u have a realtime program running. You maybe able to replicate this by running EMC and the original Classicladder side by side and watch the response time. Have u down loaded EMC with CVS or are u using the standard method (cd or binary download)? Thank you for the info. I appreciate the encouragement -I'll try my best. Cheers Chris Morley _ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Chris, I will see if I can get it working on classic ladder again and send you my config file. Dave - Original Message - From: "Dave Keeton" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Monday, January 14, 2008 9:41 AM Subject: Re: [Emc-users] Additional I/O Modbus card. > Hi Chris, > > I used the default port 9502, which is the serial port. > Please see the classic ladder readme file I have attached. The hardware is > a > Comfile technologies Cubloc CB290. The CB290 has built in modbus > capabilities. It has been a while since I have done this but classic > ladder > uses %B and %W bits and words tied directly to modbus registers. I do > remember following the classic ladder documentation and getting it working > with little effort. I don't remember specifying the port on the command > line > but I remember setting it in the config screen for classic ladder once it > was running. I don't believe that the config screen in the EMC port is > working right. When I close it all of the classic ladder windows close > when > EMC2.2 is running. I think the classic ladder docs say you can do it on > the command line though. I would be happy to test this on my hardware if > you > would like. I greatly appreciate your efforts in this. On the cubloc all I > did was enable the modbus and enable the outputs to turn on (Outputs are > not > allowed on the CB290 till you do this). Baud rate I believe was 115200 > with > 8N1 parity and stop bits. I saw no latency issues with classic ladder. > Through-put seem to be instant. The cubloc follows standard modbus > protocol. > >Thanks, > Dave > > - Original Message - > From: "Chris Morley" <[EMAIL PROTECTED]> > To: "Enhanced Machine Controller (EMC)" > Sent: Friday, January 11, 2008 10:32 PM > Subject: Re: [Emc-users] Additional I/O Modbus card. > > >> >> Hi Dave. Could you tell me how u configured Classicladder to use the >> MODBUS interface? Did you need to specify the port on the comandline? The >> first leg of adaption is going well (meaning classicladder V7.123 starts >> and works with HAL pins) but I dont have any MODBUS equipment right now, >> so I need to know what u used to make it work. Did you use a serial port? >> As soon as i feel the program is functioning properly I will see about >> putting it in CVS though I need to talk to the other developers about >> whether making a new branch for this version is the way to go. >> >> Cheers Chris Morley >> >> >>> From: [EMAIL PROTECTED] >>> To: emc-users@lists.sourceforge.net >>> Date: Sun, 30 Dec 2007 11:00:58 -0500 >>> Subject: Re: [Emc-users] Additional I/O Modbus card. >>> >>> Thank youusing modbus through classic ladder is all I want to >>> do..I have the hardware and all I need is a way to patch it through >>> classic ladder. My plan is to use the Motenc Lite I/O points for timing >>> critical functions such as home switches, E-Stop and Overtravel Switches >>> and >>> the like and use modbus I/O points through classic ladder for operator >>> push >>> buttons for mode and jog functions. Weather EMC actually looks at the >>> modbus >>> points is not an issue as I can use classic ladder outputs to feed >>> signals >>> to EMC. I plan to use only digital I/O through modbus so if anyone can >>> get >>> classic ladder to read modbus I/O the rest would be easy...This >>> would >>> give us almost infinite (relatively speaking) I/O. The device I have >>> worked >>> well in Mach3 so it should'nt be an issue. It also works with the stand >>> alone version of Classic Ladder. It is a Cubloc CB290 from Comfile >>> Technology. Look it up, It is pretty slick. >>> >>> Dave >>> >>> - Original Message - >>> From: "Kirk Wallace" >>> To: "Enhanced Machine Controller (EMC)" >>> Sent: Saturday, December 29, 2007 4:42 PM >>> Subject: Re: [Emc-users] Additional I/O Modbus card. >>> >>> >>>> On Sat, 2007-12-29 at 21:16 +, Chris Morley wrote: >>>>> Modbus is not available in EMC's adaption of Classicladder. >>>>> I am currently trying to adapt the newest version of >>>>> Classicladder 7.123 and include modbus suppo
Re: [Emc-users] Additional I/O Modbus card.
Hi Chris, I used the default port 9502, which is the serial port. Please see the classic ladder readme file I have attached. The hardware is a Comfile technologies Cubloc CB290. The CB290 has built in modbus capabilities. It has been a while since I have done this but classic ladder uses %B and %W bits and words tied directly to modbus registers. I do remember following the classic ladder documentation and getting it working with little effort. I don't remember specifying the port on the command line but I remember setting it in the config screen for classic ladder once it was running. I don't believe that the config screen in the EMC port is working right. When I close it all of the classic ladder windows close when EMC2.2 is running. I think the classic ladder docs say you can do it on the command line though. I would be happy to test this on my hardware if you would like. I greatly appreciate your efforts in this. On the cubloc all I did was enable the modbus and enable the outputs to turn on (Outputs are not allowed on the CB290 till you do this). Baud rate I believe was 115200 with 8N1 parity and stop bits. I saw no latency issues with classic ladder. Through-put seem to be instant. The cubloc follows standard modbus protocol. Thanks, Dave - Original Message - From: "Chris Morley" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Friday, January 11, 2008 10:32 PM Subject: Re: [Emc-users] Additional I/O Modbus card. Hi Dave. Could you tell me how u configured Classicladder to use the MODBUS interface? Did you need to specify the port on the comandline? The first leg of adaption is going well (meaning classicladder V7.123 starts and works with HAL pins) but I dont have any MODBUS equipment right now, so I need to know what u used to make it work. Did you use a serial port? As soon as i feel the program is functioning properly I will see about putting it in CVS though I need to talk to the other developers about whether making a new branch for this version is the way to go. Cheers Chris Morley From: [EMAIL PROTECTED] To: emc-users@lists.sourceforge.net Date: Sun, 30 Dec 2007 11:00:58 -0500 Subject: Re: [Emc-users] Additional I/O Modbus card. Thank youusing modbus through classic ladder is all I want to do..I have the hardware and all I need is a way to patch it through classic ladder. My plan is to use the Motenc Lite I/O points for timing critical functions such as home switches, E-Stop and Overtravel Switches and the like and use modbus I/O points through classic ladder for operator push buttons for mode and jog functions. Weather EMC actually looks at the modbus points is not an issue as I can use classic ladder outputs to feed signals to EMC. I plan to use only digital I/O through modbus so if anyone can get classic ladder to read modbus I/O the rest would be easy...This would give us almost infinite (relatively speaking) I/O. The device I have worked well in Mach3 so it should'nt be an issue. It also works with the stand alone version of Classic Ladder. It is a Cubloc CB290 from Comfile Technology. Look it up, It is pretty slick. Dave - Original Message - From: "Kirk Wallace" To: "Enhanced Machine Controller (EMC)" Sent: Saturday, December 29, 2007 4:42 PM Subject: Re: [Emc-users] Additional I/O Modbus card. On Sat, 2007-12-29 at 21:16 +, Chris Morley wrote: Modbus is not available in EMC's adaption of Classicladder. I am currently trying to adapt the newest version of Classicladder 7.123 and include modbus support. Thanks Chris and Jeff, for clarifying this. I did learn some things in trying to figure it out. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users _ Exercise your brain! Try Flexicon! ht
Re: [Emc-users] Additional I/O Modbus card.
Hi Dave. Could you tell me how u configured Classicladder to use the MODBUS interface? Did you need to specify the port on the comandline? The first leg of adaption is going well (meaning classicladder V7.123 starts and works with HAL pins) but I dont have any MODBUS equipment right now, so I need to know what u used to make it work. Did you use a serial port? As soon as i feel the program is functioning properly I will see about putting it in CVS though I need to talk to the other developers about whether making a new branch for this version is the way to go. Cheers Chris Morley > From: [EMAIL PROTECTED] > To: emc-users@lists.sourceforge.net > Date: Sun, 30 Dec 2007 11:00:58 -0500 > Subject: Re: [Emc-users] Additional I/O Modbus card. > > Thank youusing modbus through classic ladder is all I want to > do..I have the hardware and all I need is a way to patch it through > classic ladder. My plan is to use the Motenc Lite I/O points for timing > critical functions such as home switches, E-Stop and Overtravel Switches and > the like and use modbus I/O points through classic ladder for operator push > buttons for mode and jog functions. Weather EMC actually looks at the modbus > points is not an issue as I can use classic ladder outputs to feed signals > to EMC. I plan to use only digital I/O through modbus so if anyone can get > classic ladder to read modbus I/O the rest would be easy...This would > give us almost infinite (relatively speaking) I/O. The device I have worked > well in Mach3 so it should'nt be an issue. It also works with the stand > alone version of Classic Ladder. It is a Cubloc CB290 from Comfile > Technology. Look it up, It is pretty slick. > > Dave > > - Original Message - > From: "Kirk Wallace" > To: "Enhanced Machine Controller (EMC)" > Sent: Saturday, December 29, 2007 4:42 PM > Subject: Re: [Emc-users] Additional I/O Modbus card. > > >> On Sat, 2007-12-29 at 21:16 +, Chris Morley wrote: >>> Modbus is not available in EMC's adaption of Classicladder. >>> I am currently trying to adapt the newest version of >>> Classicladder 7.123 and include modbus support. >> >> Thanks Chris and Jeff, for clarifying this. I did learn some things in >> trying to figure it out. >> >> -- >> Kirk Wallace (California, USA >> http://www.wallacecompany.com/machine_shop/ >> Hardinge HNC lathe, >> Bridgeport mill conversion, doing XY now, >> Zubal lathe conversion pending) >> >> >> - >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ >> ___ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users >> > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _ Exercise your brain! Try Flexicon! http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Tuesday 01 January 2008, Colin F. MacKenzie wrote: >Yes, they support clock-stretching, this is pretty normal. They also >support multi-master (I am 99% sure). Really, tho, it's the adapter >driver that determines the clock-stretching support (ability to read >status of clk line). My custom adapter using a CPLD supported it. > >What is really nice about the linux i2c support is that it is well laid >out and simple to extend. For example, you can (in a sense) sub-class an >existing driver if the parent provides the bulk of the functionality. >For example, the parallel port i2c driver references the bit-banging >driver and only needs code to toggle the clk/dta lines on or off; so 4 1 >line functions + 1 register + 1 unregister function (short too). The par >port sets the clock line using an output pin, and reads the status of >the clk line on a separate par port input pin. > >Each client (i2c device) has a simple driver. The linux i2c base >implementation does a bus scan, then queries every client driver for >every found device to have the client driver return yes or no if it >recoqnizes the device. There is a lot of functionality already done so >all we have to do is handle the most basic hardware details. > >I have sample i2c linux code for both an adapter and client device. The >client device in this case was a digital hobby servo as seen on my >website. >http://www.colinmackenzie.net/ > >If you want it let me know, I will send as attachment to anyone. > >C Just a heads up on the i2c stuffs, it has a very definite brick wall distance it can run at. We once had an effects controller at the tv station that used i2c between the control panel and the unit, which had to be in the racks near the controlled point. The supplied cable was 30 feet. Worked fine but we needed another 3 to 5 feet to really put the controller where it was handy to the tech directors. I spliced another 5 feet of near identical cable into it and it died. Stuff looked like std 4 wire flat phone cable. I got 50 feet of the identical cable from the gear maker and made 35 feet of that up, no go. I called the gear maker and they flatly informed me that the cable they supplied was as far as the protocol could go, no if's, and's, or but's. We wound up trying to have 2 people co-ordinated enough to use it, and it got pretty obvious at times on the air in the middle of a newscast. >-Original Message- >From: Stephen Wille Padnos [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 01, 2008 9:14 PM >To: Enhanced Machine Controller (EMC) >Subject: Re: [Emc-users] Additional I/O Modbus card. > >Colin F. MacKenzie wrote: >>Linux has great i2c bus support, I have made i2c adapter and client > >(i2c > >>device drivers), they are only a page or so of code. This is a two wire >>protocol. They are great for non-realtime sensors or controls. > >Do the Linux drivers deal with slaves that do clock-pulse stretching? > >Technically, the clock line can be driven (low) by the slaves if they >are slower than the master. So theoretically, you'd need bidirectional >control of both the SDA and SCL lines. > >Of course, if it works, then "practically" trumps both "technically" and > >"theoretically" :) > >- Steve > > > >- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ >___ >Emc-users mailing list >Emc-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/emc-users > > > >- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ >___ >Emc-users mailing list >Emc-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/emc-users -- 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) Noncombatant: A dead Quaker. -- Ambrose Bierce - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Yes, they support clock-stretching, this is pretty normal. They also support multi-master (I am 99% sure). Really, tho, it's the adapter driver that determines the clock-stretching support (ability to read status of clk line). My custom adapter using a CPLD supported it. What is really nice about the linux i2c support is that it is well laid out and simple to extend. For example, you can (in a sense) sub-class an existing driver if the parent provides the bulk of the functionality. For example, the parallel port i2c driver references the bit-banging driver and only needs code to toggle the clk/dta lines on or off; so 4 1 line functions + 1 register + 1 unregister function (short too). The par port sets the clock line using an output pin, and reads the status of the clk line on a separate par port input pin. Each client (i2c device) has a simple driver. The linux i2c base implementation does a bus scan, then queries every client driver for every found device to have the client driver return yes or no if it recoqnizes the device. There is a lot of functionality already done so all we have to do is handle the most basic hardware details. I have sample i2c linux code for both an adapter and client device. The client device in this case was a digital hobby servo as seen on my website. http://www.colinmackenzie.net/ If you want it let me know, I will send as attachment to anyone. C -Original Message- From: Stephen Wille Padnos [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 01, 2008 9:14 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Additional I/O Modbus card. Colin F. MacKenzie wrote: >Linux has great i2c bus support, I have made i2c adapter and client (i2c >device drivers), they are only a page or so of code. This is a two wire >protocol. They are great for non-realtime sensors or controls. > > Do the Linux drivers deal with slaves that do clock-pulse stretching? Technically, the clock line can be driven (low) by the slaves if they are slower than the master. So theoretically, you'd need bidirectional control of both the SDA and SCL lines. Of course, if it works, then "practically" trumps both "technically" and "theoretically" :) - Steve - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Colin F. MacKenzie wrote: >Linux has great i2c bus support, I have made i2c adapter and client (i2c >device drivers), they are only a page or so of code. This is a two wire >protocol. They are great for non-realtime sensors or controls. > > Do the Linux drivers deal with slaves that do clock-pulse stretching? Technically, the clock line can be driven (low) by the slaves if they are slower than the master. So theoretically, you'd need bidirectional control of both the SDA and SCL lines. Of course, if it works, then "practically" trumps both "technically" and "theoretically" :) - Steve - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Linux has great i2c bus support, I have made i2c adapter and client (i2c device drivers), they are only a page or so of code. This is a two wire protocol. They are great for non-realtime sensors or controls. -Original Message- From: Stephen Wille Padnos [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 01, 2008 12:10 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Additional I/O Modbus card. Kirk Wallace wrote: >On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: > > >>How did you get it to work with EMC2.2.2? >> >> >I may be wrong, and you should wait for Peter to get back from >walk-about, for a reply, but I suspect he hasn't. I think that he is >offering options to people seeking Modbus hardware. Using Modbus with >EMC is another issue. > >There have been rumors that Modbus is available with EMC, but for me, >finding any information on it, is like finding hen's teeth. > I have written a user-space modbus-based driver that exports HAL pins. I haven't checked it in because (1) it's written to talk to a PLC with proprietary register mapping and (2) is constructed such that you would need a separate driver for each device you wanted to communicate with (and they couldn't share a serial port ...). If we can come up with a good way of implementing a reasonably generic modbus driver, then I can change mine or rewrite it to conform to whatever scheme we come up with. The trouble I've had is that modbus is quite generic. There are (at least) two classes of data - registers and coils. You can read and write either, and you can read or write groups of either type with a single command. You can't read and write with the same command, and you can't read coils and registers with the same command either. So a relatively simple I/O device with a couple of AD, DA, and relays and digital inputs, would require 4 serial commands for a full read/write update. Each command is a minimum of 9 or 11 bytes (I don't recall which), and the responses are the same minimum size. As you can see, this gets outside the realm of realtime pretty quickly. Additionally, it's non-trivial to (a) describe the register mapping of a device and (b) combine reads and writes to make communications efficient. The other option (vs. a generic driver) is to use the paradigm I've already used, and make a separate driver for each modbus-connected device. Ideally, these would all use the same modbus library (which I already borrowed for the task, though it needs a little bit of work). - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Kirk Wallace wrote: >On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: > > >>How did you get it to work with EMC2.2.2? >> >> >I may be wrong, and you should wait for Peter to get back from >walk-about, for a reply, but I suspect he hasn't. I think that he is >offering options to people seeking Modbus hardware. Using Modbus with >EMC is another issue. > >There have been rumors that Modbus is available with EMC, but for me, >finding any information on it, is like finding hen's teeth. > I have written a user-space modbus-based driver that exports HAL pins. I haven't checked it in because (1) it's written to talk to a PLC with proprietary register mapping and (2) is constructed such that you would need a separate driver for each device you wanted to communicate with (and they couldn't share a serial port ...). If we can come up with a good way of implementing a reasonably generic modbus driver, then I can change mine or rewrite it to conform to whatever scheme we come up with. The trouble I've had is that modbus is quite generic. There are (at least) two classes of data - registers and coils. You can read and write either, and you can read or write groups of either type with a single command. You can't read and write with the same command, and you can't read coils and registers with the same command either. So a relatively simple I/O device with a couple of AD, DA, and relays and digital inputs, would require 4 serial commands for a full read/write update. Each command is a minimum of 9 or 11 bytes (I don't recall which), and the responses are the same minimum size. As you can see, this gets outside the realm of realtime pretty quickly. Additionally, it's non-trivial to (a) describe the register mapping of a device and (b) combine reads and writes to make communications efficient. The other option (vs. a generic driver) is to use the paradigm I've already used, and make a separate driver for each modbus-connected device. Ideally, these would all use the same modbus library (which I already borrowed for the task, though it needs a little bit of work). - Steve - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Thank youusing modbus through classic ladder is all I want to do..I have the hardware and all I need is a way to patch it through classic ladder. My plan is to use the Motenc Lite I/O points for timing critical functions such as home switches, E-Stop and Overtravel Switches and the like and use modbus I/O points through classic ladder for operator push buttons for mode and jog functions. Weather EMC actually looks at the modbus points is not an issue as I can use classic ladder outputs to feed signals to EMC. I plan to use only digital I/O through modbus so if anyone can get classic ladder to read modbus I/O the rest would be easy...This would give us almost infinite (relatively speaking) I/O. The device I have worked well in Mach3 so it should'nt be an issue. It also works with the stand alone version of Classic Ladder. It is a Cubloc CB290 from Comfile Technology. Look it up, It is pretty slick. Dave - Original Message - From: "Kirk Wallace" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Saturday, December 29, 2007 4:42 PM Subject: Re: [Emc-users] Additional I/O Modbus card. > On Sat, 2007-12-29 at 21:16 +, Chris Morley wrote: >> Modbus is not available in EMC's adaption of Classicladder. >> I am currently trying to adapt the newest version of >> Classicladder 7.123 and include modbus support. > > Thanks Chris and Jeff, for clarifying this. I did learn some things in > trying to figure it out. > > -- > Kirk Wallace (California, USA > http://www.wallacecompany.com/machine_shop/ > Hardinge HNC lathe, > Bridgeport mill conversion, doing XY now, > Zubal lathe conversion pending) > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Sat, 2007-12-29 at 21:16 +, Chris Morley wrote: > Modbus is not available in EMC's adaption of Classicladder. > I am currently trying to adapt the newest version of > Classicladder 7.123 and include modbus support. Thanks Chris and Jeff, for clarifying this. I did learn some things in trying to figure it out. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Sat, Dec 29, 2007 at 09:16:56PM +, Chris Morley wrote: > > Modbus is not available in EMC's adaption of Classicladder. I am > currently trying to adapt the newest version of Classicladder 7.123 > and include modbus support. I don't believe this should be done. modbus is a hardware interface. in emc, all hardware interfaces are made through HAL, so that the signals that drive them / they drive can be any other HAL component. It is simply a mistake to wed together a hardware interface and a bunch of unrelated PLC code. Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
the classicladder in emc2 does not have any modbus support. emc2 doesn't ship with any modbus drivers. jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
Modbus is not available in EMC's adaption of Classicladder. I am currently trying to adapt the newest version of Classicladder 7.123 and include modbus support. > From: [EMAIL PROTECTED] > To: emc-users@lists.sourceforge.net > Date: Sat, 29 Dec 2007 10:04:05 -0800 > Subject: Re: [Emc-users] Additional I/O Modbus card. > > On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: >> How did you get it to work with EMC2.2.2? > > I may be wrong, and you should wait for Peter to get back from > walk-about, for a reply, but I suspect he hasn't. I think that he is > offering options to people seeking Modbus hardware. Using Modbus with > EMC is another issue. > > There have been rumors that Modbus is available with EMC, but for me, > finding any information on it, is like finding hen's teeth. It appears > that EMC provides Modbus support via Classic Ladder, this means that it > is restricted to non-real-time, which shouldn't be a big deal(?). On the > Classic Ladder site: > > http://membres.lycos.fr/mavati/classicladder/ > > I found in a README file: > > http://membres.lycos.fr/mavati/classicladder/README.txt > > ... snip > HARDWARE (DISTRIBUTED INPUTS/OUTPUTS)... > > ClassicLadder can use distributed inputs/outputs on modules using the modbus > protocol ("master": pooling slaves). > The slaves and theirs I/O can be configured in the config window. > 2 exclusive modes are available : ethernet using Modbus/TCP and serial using > Modbus/RTU. > For the serial one, the serial port and the speed must be correctly set in > the config file > (manually with a text editor), and then you must pass this file to > classicladder with -c > argument. No parity is used. > If no port name for serial is set, IP mode will be used... > The slave address is the slave address (Modbus/RTU) or the IP address. > The IP address can be followed per the port number to use (xx.xx.xx.xx:) > else > the port 502 will be used per default. > The modbus address element 1 is the first one (0 in the frame). > 2 products have been used for tests: a Modbus/TCP one (Adam-6051, > http://www.advantech.com) > and a serial Modbus/RTU one (http://www.ipac.ws) > See examples: adam-6051 and modbus_rtu_serial. > Web links: http://www.modbus.org and this interesting one: > http://www.iatips.com/modbus.html > ... snip > > For getting Peter's ModIO board to talk to EMC, the above README > excerpt leads me to believe that you would first need to get Classic > Ladder to talk to EMC: > > http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder > > Then research the Modbus/RTU mentioned in the README above to see if > the ModIO's serial port can talk to EMC/Classic Ladder serially. > > Another issue, is that it appears that the ModIO is configured with a > Windows program, although, for some of you that may not be an issue. > > -- > Kirk Wallace (California, USA > http://www.wallacecompany.com/machine_shop/ > Hardinge HNC lathe, > Bridgeport mill conversion, doing XY now, > Zubal lathe conversion pending) > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users _ Discover new ways to stay in touch with Windows Live! Visit the City @ Live today! http://getyourliveid.ca/?icid=LIVEIDENCA006 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Sat, 2007-12-29 at 10:04 -0800, Kirk Wallace wrote: > On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: > > How did you get it to work with EMC2.2.2? > > I may be wrong, and you should wait for Peter to get back from > walk-about, for a reply, but I suspect he hasn't. I think that he is > offering options to people seeking Modbus hardware. Using Modbus with > EMC is another issue. > > There have been rumors that Modbus is available with EMC, but for me, > finding any information on it, is like finding hen's teeth. It appears > that EMC provides Modbus support via Classic Ladder, this means that it > is restricted to non-real-time, which shouldn't be a big deal(?). On the > Classic Ladder site: > > http://membres.lycos.fr/mavati/classicladder/ > ... snip I downloaded and started playing with ClassicLadder. In the EMC documentation: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder it indicates that the Config button is not available. I assume that is because connecting ClassicLadder to the physical world is being done by HAL instead of the Config button? The Config button is also where Modbus is configured. In classicladder.c it seems the Modbus server entries that are in the generic ClassicLadder are missing in the EMC version. If this is true, then there currently is no Modbus support in EMC? -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Sat, 2007-12-29 at 10:04 -0800, Kirk Wallace wrote: > On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: > > How did you get it to work with EMC2.2.2? > > I may be wrong, and you should wait for Peter to get back from > walk-about, for a reply, but I suspect he hasn't. I think that he is ... snip > Another issue, is that it appears that the ModIO is configured with a > Windows program, although, for some of you that may not be an issue. I am most likely wrong here. Sorry. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
On Fri, 2007-12-28 at 18:33 -0500, Dave Keeton wrote: > How did you get it to work with EMC2.2.2? I may be wrong, and you should wait for Peter to get back from walk-about, for a reply, but I suspect he hasn't. I think that he is offering options to people seeking Modbus hardware. Using Modbus with EMC is another issue. There have been rumors that Modbus is available with EMC, but for me, finding any information on it, is like finding hen's teeth. It appears that EMC provides Modbus support via Classic Ladder, this means that it is restricted to non-real-time, which shouldn't be a big deal(?). On the Classic Ladder site: http://membres.lycos.fr/mavati/classicladder/ I found in a README file: http://membres.lycos.fr/mavati/classicladder/README.txt ... snip HARDWARE (DISTRIBUTED INPUTS/OUTPUTS)... ClassicLadder can use distributed inputs/outputs on modules using the modbus protocol ("master": pooling slaves). The slaves and theirs I/O can be configured in the config window. 2 exclusive modes are available : ethernet using Modbus/TCP and serial using Modbus/RTU. For the serial one, the serial port and the speed must be correctly set in the config file (manually with a text editor), and then you must pass this file to classicladder with -c argument. No parity is used. If no port name for serial is set, IP mode will be used... The slave address is the slave address (Modbus/RTU) or the IP address. The IP address can be followed per the port number to use (xx.xx.xx.xx:) else the port 502 will be used per default. The modbus address element 1 is the first one (0 in the frame). 2 products have been used for tests: a Modbus/TCP one (Adam-6051, http://www.advantech.com) and a serial Modbus/RTU one (http://www.ipac.ws) See examples: adam-6051 and modbus_rtu_serial. Web links: http://www.modbus.org and this interesting one: http://www.iatips.com/modbus.html ... snip For getting Peter's ModIO board to talk to EMC, the above README excerpt leads me to believe that you would first need to get Classic Ladder to talk to EMC: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder Then research the Modbus/RTU mentioned in the README above to see if the ModIO's serial port can talk to EMC/Classic Ladder serially. Another issue, is that it appears that the ModIO is configured with a Windows program, although, for some of you that may not be an issue. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Additional I/O Modbus card.
How did you get it to work with EMC2.2.2? Dave - Original Message - From: "Peter Homann" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" Sent: Tuesday, December 25, 2007 7:32 PM Subject: [Emc-users] Additional I/O Modbus card. > Hi, > > Just a quick not before I head bush for the Christmas camping trip. > > For additional I/O via Modbus have a look at the ModIO. It has discrete > inputs > and outputs, analog inputs, a 20x4 character LCD interface, plus a few > other > interfaces. > > http://homanndesigns.com/store/index.php?main_page=product_info&cPath=2&products_id=4 > > Currently I have been adding toolchanger modules including one for the > EMCO > toolchanger and one for a Hardinge toolchanger. > > Cheers, > > Peter. > > -- > -- > Web: www.homanndesigns.com > email: [EMAIL PROTECTED] > Phone: +61 421 601 665 > www.homanndesigns.com/ModIO.html - Modbus Interface Unit > www.homanndesigns.com/DigiSpeedDeal.html - DC Spindle control > www.homanndesigns.com/TurboTaig.html - Taig Mill Upgrade board > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Additional I/O Modbus card.
Hi, Just a quick not before I head bush for the Christmas camping trip. For additional I/O via Modbus have a look at the ModIO. It has discrete inputs and outputs, analog inputs, a 20x4 character LCD interface, plus a few other interfaces. http://homanndesigns.com/store/index.php?main_page=product_info&cPath=2&products_id=4 Currently I have been adding toolchanger modules including one for the EMCO toolchanger and one for a Hardinge toolchanger. Cheers, Peter. -- -- Web: www.homanndesigns.com email: [EMAIL PROTECTED] Phone: +61 421 601 665 www.homanndesigns.com/ModIO.html - Modbus Interface Unit www.homanndesigns.com/DigiSpeedDeal.html - DC Spindle control www.homanndesigns.com/TurboTaig.html - Taig Mill Upgrade board - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users