You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old April 3rd, 2009, 07:39 AM   #1
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
serial to parallel converter

I'm having an issue trying to connect a 5/05 serial port to a parallel printer. I am currently connected to a serial printer using 2-3,3-2 and 5-5 from plc DB9 to printer DB9. With this configuration, everything works great. So I know the code is correct.
I have the same printer with a parallel port that I need to use in place of the serial printer. I purchased a Serial to Parallel converter from B & B Electronics Model 232SPS2. The converter is set for 9600 baud,Xon/Xoff, 8 data bits, No parity, serial to parallel conversion. The converter is a 25DB connector on the serial side so I wired the PLC to conveter as 2-3, 3-2, 5-7. When I sent the ASCII string the data light blinks on the printer but nothing happens.
Any ideas?
  Reply With Quote
Old April 3rd, 2009, 07:57 AM   #2
Archie
Member
United States

Archie is offline
 
Join Date: May 2002
Location: Orangeburg, SC
Posts: 1,916
Are you sure you need the XON/XOFF flow control?
  Reply With Quote
Old April 3rd, 2009, 08:25 AM   #3
theDave2
Member
United States

theDave2 is offline
 
Join Date: Aug 2004
Location: Rochester, NY
Posts: 467
Most likely your serial printer printed each line as it received a <CR> <LF>.

Your parallel printer most likely has a page buffer and will not print until either the page buffer is full or it receives a <FF> (form feed) or Eject character.

Is your parallel printer an inkjet or laser jet or what? Was the serial printer a dot matrix one ?
  Reply With Quote
Old April 3rd, 2009, 08:28 AM   #4
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
Quote:
Originally Posted by Archie View Post
Are you sure you need the XON/XOFF flow control?

The converter has only two options XON/XOFF and DTR.
  Reply With Quote
Old April 3rd, 2009, 08:31 AM   #5
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
Quote:
Originally Posted by theDave2 View Post
Most likely your serial printer printed each line as it received a <CR> <LF>.

Your parallel printer most likely has a page buffer and will not print until either the page buffer is full or it receives a <FF> (form feed) or Eject character.

Is your parallel printer an inkjet or laser jet or what? Was the serial printer a dot matrix one ?

The printer is a Zebra label maker. The serial printer is a 105SL and the paralle printer is a 105SE.

I dont have XON/XOFF enabled in the PLC could it be this? Do I need to wire the converter and different if I use Xon/Xoff?
  Reply With Quote
Old April 3rd, 2009, 08:38 AM   #6
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,340
The signals at pins 2 and 3 on the 25 pin serial connector are opposite those on the 9 pin serial connector. Try swapping.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old April 3rd, 2009, 08:45 AM   #7
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
Quote:
Originally Posted by bernie_carlton View Post
The signals at pins 2 and 3 on the 25 pin serial connector are opposite those on the 9 pin serial connector. Try swapping.
So I shouldn't wire it 2-3, 3-2 and 5-7. They need to be wired 2-2, 3-3 and 5-7. Is this correct?
  Reply With Quote
Old April 3rd, 2009, 09:01 AM   #8
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,340
I would recommend it.

Edit - on second thought just get out both manuals and read. With DCE/DTE type configurations in the 25 pin port you will probably get farther by just reading first. - Edit
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com

Last edited by bernie_carlton; April 3rd, 2009 at 09:31 AM.
  Reply With Quote
Old April 3rd, 2009, 12:40 PM   #9
danw
Member
United States

danw is offline
 
danw's Avatar
 
Join Date: Oct 2004
Location: midwest, USA
Posts: 3,081
Yeah Bernie ! Attaboy!

Why guess all day when the manuals show the pinouts?

Dan
  Reply With Quote
Old April 3rd, 2009, 01:56 PM   #10
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
The manual is unclear!

The PLC is DCE and the Parallee converter is DCE. What are the required pinouts for a 9DB DCE to a 25DB DCE?
  Reply With Quote
Old April 3rd, 2009, 02:56 PM   #11
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,340
Strange - my manual (1747-UM011E-EN-P) says that the serial port on a SLC 5/05 is DTE. Thus table B-2 on page B3 of the manual for your serial to parallel convertor should apply.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old April 4th, 2009, 10:46 AM   #12
shooter
Member
Netherlands

shooter is offline
 
shooter's Avatar
 
Join Date: Sep 2002
Location: duketown
Posts: 2,711
you are correct about the swap of the 9 and 25 pins.
i had same problems on different machine.
for the connections do you have a check box
if not check the voltage on 2 and 3 they should be both present.
if paper out the converter will not send anything so flow control is not present anymore. it is only a serial to parallel convereter and any signal back is not converted. only way is serial printer.
__________________
shooter@home.nl
skype shooter paul.deelen
Computer Shooter
Paul Deelen
J. Wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
+31653300739
  Reply With Quote
Old April 6th, 2009, 12:35 PM   #13
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
I followed the pinouts in the manual and the printer's Data light flashes when I send it a command but nothing happens. I know its not the command I'm sending because if I connect the PLC to a serial printer it works fine. Anyone have experience with a parallel Zebra printer?
  Reply With Quote
Old April 7th, 2009, 12:21 PM   #14
johnfarrugi
Member
Canada

johnfarrugi is offline
 
Join Date: Mar 2008
Location: London
Posts: 99
Ok, I've tried to figure this out a little more and I've determined that the cables I'm using are correct and working fine. If I create an application in labview to send the following string out of my laptop serial port:

^XA^CF0,40^FO35,50^FD9L14-2450AD^FS^CF0,50^FO35,150^FD33108B^FS^XZ

Using the following port configuration:
COM1
9600 buad
8 data bits
none parity
1 stop bit
no flow control

It works fine. Now if I take the same cables connect it to the same printer and send the same string out of the PLC serial port, I get nothing.
Is the PLC converting the string into a different format? I've check the port setting in the PLC and they are the same as above.

Any one have any suggestion as to what I might be doing wrong?
  Reply With Quote
Old April 7th, 2009, 12:51 PM   #15
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 10,542
How do you have your channel 0 user set up in the SLC 5/05?

I would expect that it would be:
Driver: ASCII
Baud: 9600
Parity: None
Stop Bits: 1
Data Bits: 8

No Handshaking
Delete Mode: Ignore

Also, what command are you using to send the string to the serial port?

And, what do the characters look like in your string file?

Paul
__________________
You can choose a ready guide in some celestial voice. If you choose not to decide you still have made a choice.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Serial or USB MPI converter allscott LIVE PLC Questions And Answers 6 February 2nd, 2012 04:46 AM
ge fanuc plc- serial to parallel conversion vishak LIVE PLC Questions And Answers 2 August 20th, 2007 10:22 AM
PowerFlex Serial Converter rbkief LIVE PLC Questions And Answers 0 May 10th, 2007 05:00 AM
USB to Serial converter ade LIVE PLC Questions And Answers 21 July 12th, 2005 05:57 PM
USB to SERIAL (COM1) Converter problem sherman4 LIVE PLC Questions And Answers 4 August 4th, 2004 07:05 PM


All times are GMT -4. The time now is 05:11 PM.


.