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 > Fagor Automation


Fagor Automation Discuss Fagor Automation products here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-03-2009, 08:10 PM
 
Join Date: Feb 2009
Location: Canada
Posts: 10
midnightrambler is on a distinguished road
8025 GP,M,MS serial communication

Hello - I am new to this CNC communications, so bear with me if I sound not all that bright lol.

I have an old Billco CNC1000 XY glass cutting table (mfg 1989). It is being driven by an even older peice of software made by PMC software (1987). It was retrofitted a few years back (2002) with Fagor 8025 controller. The original programming was not updated. It is still running on a DOS platform. It communicates via RS-232 serial port to the cutting table. I have newer software that I am attempting to make run with this table as is. The problem is in making a driver to allow our newer software to talk to the cutting table. Have found manuals to help with generation of Gcode, and used a serial port analyzer to detail exactly how the transmission is sent to the controller. Can reproduce everything except one byte per line. I am told this is a CRC byte.

How does one go about creating the CRC byte for the purposes of transmission? My understanding is that if this byte is not ocrrect, than all lines will be rejected. RS-232 parameters are; Baud 4800, 8 bits, No parity, and 1 stop bit. The transmission that I have trapped looks like this:

Request: 1/26/2009 12:48:35 PM.97764 (+1.9728 seconds)
01 53 4E 53 02 25 36 35 33 30 31 17 4F --------------> .SNS.%65301.O
Answer: 1/26/2009 12:48:35 PM.13764 (+0.1402 seconds)
10 31 -----------------------------------------------> .1
Request: 1/26/2009 12:48:35 PM.13764 (+0.0000 seconds)
02 0A 4E 30 28 33 2E 30 30 43 4C 2B 2B 33 2E 30 -----> ..N0(3.00CL++3.0
30 43 4C 29 0A 17 68 --------------------------------> 0CL)..h
Answer: 1/26/2009 12:48:35 PM.23764 (+0.0501 seconds)
10 30 -----------------------------------------------> .0
Request: 1/26/2009 12:48:35 PM.23764 (+0.0000 seconds)
02 4E 31 50 31 3D 4B 30 0A 17 45 --------------------> .N1P1=K0..E
Answer: 1/26/2009 12:48:36 PM.30764 (+0.0501 seconds)
10 31 -----------------------------------------------> .1
Request: 1/26/2009 12:48:36 PM.30764 (+0.0000 seconds)
02 4E 32 47 32 35 4E 39 39 34 39 0A 17 62 -----------> .N2G25N9949..b
Answer: 1/26/2009 12:48:36 PM.38764 (+0.0501 seconds)
10 30 -----------------------------------------------> .0
Request: 1/26/2009 12:48:36 PM.44764 (+0.0601 seconds)
02 4E 31 30 30 28 4C 41 59 20 31 20 43 55 54 20 -----> .N100(LAY 1 CUT
31 20 20 20 31 20 4F 46 20 20 37 32 78 31 32 30 -----> 1 1 OF 72x120
20 33 2E 30 30 43 4C 2B 2B 33 2E 29 0A 17 0C --------> 3.00CL++3.)...
Answer: 1/26/2009 12:48:36 PM.59864 (+0.0501 seconds)
10 31 -----------------------------------------------> .1

The second last character in each request line is the ETB code (x17), and it is followed by this one extra byte of data, which my programmer tells me is a CRC code (I am also a programmer, just not familiar with CNC, PLC, or serial communications). How do I go about determining the correct CRC value to include in our new software's transmission?

I have spent hours looking for on-line documentation that may point me in the right direction to no avail, and cannot get my hands on a DNC 25/30 Protocol Manual, which I think would have the answer for me (discontinued from FAGOR).

In addition, I would like to know about the answer line shown in the above sample, is shows the DLE code (x10) followed by a rotating 1 or 0. I am assuming that this is a simple confirmation of the previously sent request, and the 0 and 1 are just alternated states... indicating transmission OK. Am I correct on this?

Hopefully I can complete this software change over with the answers to these questions.... Any help is greatly appreciated.
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-03-2009, 09:38 PM
 
Join Date: Mar 2008
Location: Argentina
Posts: 117
kcho is on a distinguished road

Hi you have for free windnc, the Fagor communication software. This CNC it´s online with the software. If you want to pass the programs with no dnc fagor protocol. You have to go to the pheripherical mode. Wath do you want to do? You need to run an infinite program or only pass to the CNC?

Carlos
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-08-2009, 07:25 PM
 
Join Date: Feb 2009
Location: Canada
Posts: 10
midnightrambler is on a distinguished road
Thanks

Thank-you Carlos... very helpful, saved me a ton of time.

Have tested this out and it does everything I want it to as is, however, it is possible to call this program on a command level from within another program or will it only work as a third party program. I can work with it as a third party peice of software but it would be cleaner if I could embed the appropriate commands within my own application thereby making it a single step process for the machine operator.

thanks again
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-08-2009, 07:57 PM
 
Join Date: Mar 2008
Location: Argentina
Posts: 117
kcho is on a distinguished road

Ok, you have to be patient with me I am Argentine and I don´t understand all the expresions. So if I right you want create the protocol for your software. I found a pdf where explains the DNC protocol I m going to attached the document.
Let me know what´s happend with your software and I like to have a copy of it always you want to. I´m Fagor Oem and maybe it could be usefull for me.
Sorry is in Spanish but you have the diagrams I´m sure you will understand it although you can ask to me, I don´t have any trouble to help you.

Carlos
Attached Files
File Type: pdf DNC30.pdf‎ (201.0 KB, 1898 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 04-23-2009, 01:10 AM
 
Join Date: Feb 2005
Location: USA
Posts: 9
accellodyne is on a distinguished road

I have a Fagor 8020 communications protocol book. I could copy it for my costs at Staples for anyone who would be interested. I have two machines w/8020's and use Fagor DNC 3.02 software to feed them both "infinite" (drip fed) programs with one PC simultaneously. I use OS/2 v3.0 on a 20 mhz Zenith 8-bit computer. I also use fiber optic RS232 links to connect the machines to the PC to isolate the TIG welding in our shop.
Tweet this Post!Share on Facebook
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
Newbie- FANUC 0-M serial communication standard telefunken Fanuc 4 11-14-2008 03:20 PM
Maho 700 serial communication breazr Deckel, Maho, Aciera, Abene Mills 4 09-08-2008 01:59 PM
Newbie- Space Gear 48 serial Communication Problem stanley66 Mazak, Mitsubishi, Mazatrol 0 04-28-2008 08:38 AM
serial port communication for a V2XT k.mccue Bridgeport and Hardinge Mills 2 01-25-2006 01:24 AM
Serial vs. parallel communication OCNC General Electronics Discussion 15 10-20-2004 06:53 PM




All times are GMT -5. The time now is 02:50 PM.





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