What's new
What's new

Yasnac 2000G Parallel DNC/Homemade BTR

mikespahn

Plastic
Joined
Apr 16, 2009
Location
PA USA
I have been looking at arduino and rasberry pi in relation to building controls for home made machines in my garage. This put the idea in mind for making a BTR type device to communicate through the puncher port on 2 old mori lathes with yasnac 2000G controls in my shop. The type with the single line display. I'm sure someone here knows my pain in programming one of those pains.
Does anyone here know how to setup parallel communication with anything like that? I have also been looking into chips and modules from FTDI for serial to parallel communication. I have several ftdi232r and ftdi435 modules.
I know this can be done with one of these methods, maybe both. I'm just not sure of all the parameters/settings. Just curious if anyone could short cut me any. A pinout or any part of setting up either arduino/rasberry pi or an ftdi chip to transfer parallel data to a control like this would be much appreciated.


Sent from my KFGIWI using Tapatalk
 
A shop near me wrote a program to use a PC parallel port to talk to Fanuc tape readers input in the very early 80s for their own use. IDK for sure, but believe it was written in BASIC. Long gone now, but a smart feller ought to be able to do something similar now. From what I recall it was just a program and a ribbon cable with DB25M on one end and a 2 row (? pins) Fanuc ribbon cable connector on the other. They mainly used it to "drip feed" big programs rather than punch huge tapes.
 
I haven't seen BASIC since high school. Wish i remembered more, it would come in handy. I'm trying to learn app development for Android and arduino/rasberry pi, but i'm just barely getting my feet wet at this point.

I would love to be able to drip feed or just load unload programs. Right now i have to program longhand. I use one with a CRT display and one with the old school single line, which is even more of a pain. I only use them for long run barfeed work and usually only really simple stuff that can be setup in a couple hours or less, so it isn't that big of a deal. Changeover is only every 2 to 5 weeks in each.

I used to use a laptop to program in the lathe dept, and a USB flash drive to RS232 box that is portable (fits in the palm of my hand) in the milling dept. Now i mostly use a serial terminal app on my tablet into an FTDI chip. I just need to do more digging into how to configure a similar chip or a shift register to go the extra step. That and figure out the pinout to connect it. The USB to RS232 portable unit i mentioned is actually what made me think it should be feasible to make a home made BTR. After all, the way it functions is nearly the same. USB memory into a buffer, then output from the buffer in a serial fashion. I need, USB into a buffer and out in parallel. I just know next to nothing about setting up parallel. I have an RS232 breakout box with DB25 connectors on each end. It has LED's to monitor activity on all 25 pins and jumpers to quickly alter the pin configuration from one side to the other. Is there any way i can use this to figure out anything on the 2000G or would this not be compatible? It will fit the 25 pin puncher port. I know BTR units normally connect to the 50 wire (i think) harness inside the cabinet. If i made a custom cable to attach to that, are there any steps to tell what wire does what? For that matter, is the 25 pin puncher port next to the tape reader output only or is it in and out?

There are a few functions i would like to incorporate into my tablet terminal app, like "wait for cnc/flow control/Xon/etc. which are in many if not most DNC programs for PC. I also have only managed to do this one way at a time (send or receive, but not drip feed). Drip feed would be useful, but not essential. I rarely need to do that, and only in milling, which is serial and easily accomplished already, just not by my tablet. I have the source code for what i am currently using in order to modify. It is also capable of changing the setup on the FTDI chip. I am hoping i can save a parallel configuration template of some kind, so that i only have to carry one cable and chip, load the template i need (serial or parallel with all parameters for either included) and interface with anything in the shop.

Also, I have Predator CNC editor and have seen somewhere it can do parallel as well. I have an old computer from the early 2000's that has a parallel port. I believe it is Windows XP. I only use it in my stock room for a usb thermal label printer to put company name, quantity, and lot numbers on bags of small parts. I can put another spare computer in there and move that in between the 2 Mori SL 1's with the 2000G's if Predator can indeed work that way or someone could point me in the direction of some custom software like was suggested. I haven't seen any option in mine to set this up. Am i missing something or do not all versions have this? I have had it for ten years maybe more, so i'm sure i don't get any free tech support. This isn't as ideal as getting the tablet to work w/the 2000G, or building a single board computer to do it which i would leave in the machine cabinet just like a BTR, but it would be usable as a temporary fix that i would be glad to have until i can get something better working.

Sorry to be so scattered and throwing out so many alternatives and possible projects I'd like to learn how to build. It is just that any of them would be a huge step up from what i have, so i am putting anything i see as plausible out there and hoping advice or helpful background knowledge will trickle in. There are plenty of people on this forum, far smarter than i when it comes to this type of thing. I can't stress that anything may be helpful and greatly accelerate my progress.
I know how to dnc my machines with RS232 in existing apps, and have a basic grasp of why it works (what each parameter does and how to change at the machine and at the DNC device), and wiring a cable, troubleshooting DNC setup for serial communication in a newly acquired machine. That is about the limit of my knowledge on the subject.

Sent from my KFGIWI using Tapatalk
 
I think the 25 pin connector is output only and for input you have to use the 50 pin ribbon connector. You may have some luck googling for the pinout info.

Commercial BTR boards are crazy expensive but the folks that make them need to make a buck too.

I spoke a bit with the guy that did the PC parallel port setup way back when. IIRC he said he looked at the Fanuc tape reader signals with an oscilloscope to see the timing of the data lines and the "strobe" then wrote his program to parse the text file and send the data with the Fanuc compatible format and timing. I'll bet the Fanuc and Yaskawa parallel readers use the same format.

More modern programming languages than BASIC have to have tools to control the parallel port at a hardware level. Folks have been using the parallel port to drive stepper motors in motion systems for quite a while so it can be controlled.
 








 
Back
Top