Send ASCII String over Ethernet

poj101

Member
Join Date
Apr 2011
Location
Donegal
Posts
30
Hi All,

I am currently developing an application using a L18ER PLC and a JET 3 printer. The printer prints a 2D UV bar code onto bottles passing underneath the print head on a conveyor.
For each batch run the data matrix code is changed / edited, so I can run the same job on the printer and only have to change the information for the data matrix. The printer can be set up for this by using external text function and sending an ASCII string from the PLC to the printer with some simple commands and the new data: ^0=ET XXXXXX CR. My question is what is the best method to send out the data from the PLC?
Should I configure a MSG instruction and create a socket?
Should I use TCP or UDP?
 
If you have serial ports on both plc/printer you can use serial commands to transfer data. Serial commands only work with plcs with serial ports.

I prefer if your printer has Ethernet port than transfer data over Ethernet communications using MSG instruction.
 
Right click on your ENBT and add a generic ethernet module, you must know your assembly instances and sizes

Then use a MSG instruction to pass the string to the printer
 

Similar Topics

Hi folks, I am using Vijeo Designer V6.0 to send ASCII string commands to printer. The printer is an inkjet printer that prints on boxes. I have...
Replies
0
Views
4,186
Hi all Can someone please point me in the right direction in how to do this problem with a ControlLogix? I have a TPS transmitter that reads...
Replies
8
Views
11,195
I am working on a project, inside an AB CLX, I implemented the Modbus TCP Client AOI published on AB website, to interreact with a Modbus ASCII...
Replies
7
Views
3,554
Hi All, I am new to this site and I am looking for some help, I am trying to send ASCII characters to a unit that performs a task via a...
Replies
43
Views
16,992
So I have a project where I need to send a bunch of ASCii data over serial to a printer. In the past with an ML1400 I would just use an AWA...
Replies
0
Views
1,701
Back
Top Bottom