plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AB 1400 - Connect to Serial Printer

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ALLEN-BRADLEY(Rockwell Automation)
View previous topic :: View next topic  
Author Message
dmotaghare
Junior
Junior


Joined: 02 Jan 2013
Posts: 2
Location: PUNE India

PostPosted: 02/01/2013 09:41    Post subject: AB 1400 - Connect to Serial Printer Reply with quote

Hi!
Happy New Year!
This is my first post. I need help to know following:
I hv AB 1400 model BXB - having serial port (CH2) - 9 pin set for 9600, 8, n, 1 std setting. I hv EPSON TM U220 POS printer having serial connectivity. I want to use ESC / POS commands ( recd from EPSON) to print my test data generated at PLC. I tried to use the ASCII commands by sending string ( AWA instruction), but found that printer consider all commands as text & just prints the commands along with text.
Can anyone tell me – or give sample rung to write the program.
Regards
Dhananjay
Back to top
View user's profile Send private message
dmotaghare
Junior
Junior


Joined: 02 Jan 2013
Posts: 2
Location: PUNE India

PostPosted: 03/01/2013 03:25    Post subject: Reply with quote

Dear Messer,
Good morning!
I hv all what u informed. I got EPOSN ESC/ Pos commands updated list as well. But issue is - when I send string in ASCII - e.g ESC J ( a command for Feed & print) - printer just print the same command & no action. I came to know that I need to convert the commands in Hex(?)
But still unable to know how exactly the string to be written.

Pl. guide.
Back to top
View user's profile Send private message
messer
Senior
Senior


Joined: 08 Mar 2012
Posts: 2059
Location: Europe

PostPosted: 05/01/2013 21:37    Post subject: Reply with quote

dmotaghare wrote:
Dear Messer,
Good morning!
I hv all what u informed. I got EPOSN ESC/ Pos commands updated list as well. But issue is - when I send string in ASCII - e.g ESC J ( a command for Feed & print) - printer just print the same command & no action. I came to know that I need to convert the commands in Hex(?)
But still unable to know how exactly the string to be written.

Pl. guide.


Well,
AB Knowledge Base gave what ASCII instructions are supported in the MicroLogix controllers:
Code:
ACL - Ascii clear buffer
AIC - Integer to string
AWA - Ascii write with append
AWT - Ascii write
ABL - Test buffer for line
ACB - Number of characters in the buffer
ACI - Convert a string to an integer value
ACN - String Concatenate (link two strings into one)
AEX - String Extract
AHL - Ascii handshake lines
ARD - Ascii read characters
ASC - Search a string
ASR - Compare two strings

For TM U220 all the drivers on EPSON site are for communication between OS and printer:
http://download.epson-biz.com/modules/pos/index.php?page=soft&scat=38
I suggest you to download EPSON OPOS ADK and the printer to be connected to the computer serial instead directly to AB400 serial and use drivers given by EPSON.
Manual for EPSON OPOS ADK :
http://ftp.perimatic.fr/documentations/Epson/OPOS/Manuel%20OPOS%202.65/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ALLEN-BRADLEY(Rockwell Automation) All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro