Help - Search - Members - Calendar
Full Version: SLC 504 Ascii Out Put to Thermal Transfer Printer
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
maff1
Could anyone assit me with the following:

I am currently trying to transfer a message from an SLC 504 CPU Ch 0 configured for ASCII to a thermal transfer printer which accepts strings to print labels with values sent via RS 232. The command I want to send to the printer is shown below:

JDA|PBC1=1|PBC2=2|PBC3=3|LBC1=4|LBC2=5|LBC3=6|<Character Return>


JDA = Command to tell the printer to update the named fields (i.e. PBC1 - LBC3) with numbers contained in the string
PBC1 - LBC 3 = Named Fieds within the printer label to be updated by the PLC


The number values for the named fileds must be dynamic and will be stored in integer files within the PLC so I also need to be able to convert the values held in the integers for use with in the string that I am sending to the printer. I imagine I will have to convert the integer to a string and combien all the converted strings into 1 overall string to send to the printer. Any assitance on this would be greatly appreciated.
BobLfoot
QUOTE (maff1 @ Sep 9 2009, 05:11 AM) *
Could anyone assit me with the following:

I am currently trying to transfer a message from an SLC 504 CPU Ch 0 configured for ASCII to a thermal transfer printer which accepts strings to print labels with values sent via RS 232. The command I want to send to the printer is shown below:

JDA|PBC1=1|PBC2=2|PBC3=3|LBC1=4|LBC2=5|LBC3=6|<Character Return>


JDA = Command to tell the printer to update the named fields (i.e. PBC1 - LBC3) with numbers contained in the string
PBC1 - LBC 3 = Named Fieds within the printer label to be updated by the PLC


The number values for the named fileds must be dynamic and will be stored in integer files within the PLC so I also need to be able to convert the values held in the integers for use with in the string that I am sending to the printer. I imagine I will have to convert the integer to a string and combien all the converted strings into 1 overall string to send to the printer. Any assitance on this would be greatly appreciated.


Did you search the forums for help: I found the following which might help:

http://forums.mrplc.com/index.php?showtopi...=serial+printer

http://forums.mrplc.com/index.php?showtopi...=serial+printer

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.