CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software) > Machines running Mach Software


Machines running Mach Software Discuss your set-up and experiences running your machine using Mach software here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-20-2008, 10:53 PM
gadman58's Avatar  
Join Date: Dec 2007
Location: USA
Posts: 36
gadman58 is on a distinguished road
Modbus and DL05 PLC in Mach 3

Hi all
Did several searches and did not come up with anything that showed how to specifically setup a DL05 with the modbus. Although there were good videos on the Mach site that got me going in the right direction.

Found on the automation directs web site a excel spread sheet for the calculation to decimal address, here is the link.
http://support.automationdirect.com/...conversion.xls , you use the last four digits for the address in Mach3.

Here are some pictures of the setup I used, at this time I only have it setup for the discrete inputs and coil outputs. A $75 BOB for now. I plan to set-up a e-stop ladder logic and have it act as a charge-pump in some regards, by not turning on the power to the drives until Mach gives the PLC a signal.

Thanks
Glenn
Attached Thumbnails
Click image for larger version

Name:	PortsandPins.JPG‎
Views:	315
Size:	57.0 KB
ID:	59987   Click image for larger version

Name:	ModBusStatusControl.JPG‎
Views:	266
Size:	65.7 KB
ID:	59988  
Reply With Quote

  #2   Ban this user!
Old 05-20-2008, 11:47 PM
phomann's Avatar  
Join Date: Aug 2005
Location: Australia
Posts: 450
phomann is on a distinguished road

Hi Glenn,

The videos on the Mach support site should answer any questions you have.


http://www.machsupport.com/videos/

What questions do you want answered?


Cheers,

Peter.
__________________
-------------------------------------------------
Homann Designs - http://www.homanndesigns.com
Reply With Quote

  #3   Ban this user!
Old 05-21-2008, 10:09 AM
gadman58's Avatar  
Join Date: Dec 2007
Location: USA
Posts: 36
gadman58 is on a distinguished road

Peter
Thanks for the link, I had used the first section on Introduction to ModBus to help me do the set-up, and never made it all the way down to the one on Serial Plugin ModBus.

I don't have any questions at this time, I am still gathering all of my parts to start my build so other than playing around making sure everything is talking I have not got very far into it.
Thanks again.
Glenn
Reply With Quote

  #4   Ban this user!
Old 08-19-2008, 07:33 PM
 
Join Date: Jun 2003
Location: Monterrey, Mexico
Posts: 85
fer_mayrl is on a distinguished road

Glen,

I have tried to setup my Dl05 to work with mach3 with only a little success.

mach sees the inputs alright but it does not turn on the outputs on the plc.

I have everything set up as your screenshots, only difference is the 8-1-N I have it as an 8-1-O. And instead of ticking the option to use pins 0-63 i have pins 64-127 on the inputs

I have set my input 1, input 2, input 3, and input 4 as pins 64, 65, 66, and 67 respectively,
I can get my input leds to light up in the mach diagnostics page.

I cant get my outputs to work, what pin numbers are you using for your outputs in the ports and pins config page on mach 3?

Did you add any line of programming on the plc programing software? or just set it up for slave modbus?

Regards
Fernando
Reply With Quote

  #5   Ban this user!
Old 08-20-2008, 09:35 AM
gadman58's Avatar  
Join Date: Dec 2007
Location: USA
Posts: 36
gadman58 is on a distinguished road
Run the testing

Fernando

Go to the Testing page and see if you can get an output come on there first.

I did not end up using the setup as shown after Peter's reply. I looked at the videos again and set it up that way using Serail Modbus plugin . I have been meaning to get new screen shots to replace those but have not gotten around to it.

I will try and get that done when I get off work tonight.

I have setup a simple brain in Mach.

The plc I think has 4 lines of logic. A timer that is reset by the charge pump pulse making sure the PC hasn't hung up. Inputs from an E-stop and my limit switches that turn off and on a output to a relay that controls the power supply for the drives.
I also have a relay for turning off and on the router motor.

If you can please watch the videos as Peter suggests. That will get you most of the way there. The ones about Brains and Serial Plugin Modbus will be the most helpful in this case.

Glenn

Last edited by gadman58; 08-20-2008 at 10:09 AM.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-20-2008, 10:41 PM
gadman58's Avatar  
Join Date: Dec 2007
Location: USA
Posts: 36
gadman58 is on a distinguished road
Pictures of setup

Fernando
Right or wrong this is what I did. Seems to work.
Hope it might help
Glenn
Attached Thumbnails
Click image for larger version

Name:	PLC.jpg‎
Views:	254
Size:	60.4 KB
ID:	65273   Click image for larger version

Name:	brain.JPG‎
Views:	280
Size:	75.3 KB
ID:	65274  
Reply With Quote

  #7   Ban this user!
Old 08-21-2008, 02:26 PM
 
Join Date: Jun 2003
Location: Monterrey, Mexico
Posts: 85
fer_mayrl is on a distinguished road

Thanks Glen,

I turned out that i ahd to add an END rung on the plc program for it to work. i got it working now!

Thanks a lot!
Regards
Fernando
Reply With Quote

  #8   Ban this user!
Old 08-21-2008, 02:27 PM
 
Join Date: Sep 2005
Location: usa
Posts: 140
aminear is on a distinguished road

Fernando,

You do have to setup a program in the plc, I think it can be just a simple one line NOP and then an end of program line. Then the PLC has to be in the run mode.

Arnie
Reply With Quote

  #9   Ban this user!
Old 08-21-2008, 02:28 PM
 
Join Date: Sep 2005
Location: usa
Posts: 140
aminear is on a distinguished road

oops,

looks like I was about 30 seconds late with the answer.

Arnie
Reply With Quote

  #10   Ban this user!
Old 08-21-2008, 04:00 PM
 
Join Date: Jun 2003
Location: Monterrey, Mexico
Posts: 85
fer_mayrl is on a distinguished road

Thanks Arnie,

Quick question, anyone knows how to send dro values from mach3 to the plc?

Im trying to set dro's for timer values, to be used as parameter to timers inside the plc.

Regards
Fernando
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modbus to run GS-2 drive? mecheng10 Mach Mill 13 05-13-2009 08:59 PM
Mach3 with Hitachi VFD using Modbus swinn Mach Software (ArtSoft software) 2 11-28-2008 12:44 PM
reading modbus inputs howling60 Mach Software (ArtSoft software) 1 04-17-2007 07:41 AM
EMC2/Modbus......HELP! pauldkeeton LinuxCNC (formerly EMC2) 5 02-18-2007 04:47 PM
modbus device Drew Machines running Mach Software 14 02-11-2007 01:59 PM




All times are GMT -5. The time now is 07:33 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361