Micro800 ASCII ABL error id:7 issue

Aloescher

Member
Join Date
May 2021
Location
Menomonee Falls
Posts
10
Hi all,

I'm completely new to ASCII and trying to figure out where I'm going wrong here.

Application: I need to send 2d barcode data to a KGK Jet model CCS3000L Inkjet printer. Only protocol possibility is ASCII. PLC I have is a Micro850, and the only port option for ASCII is the serial port. I modified one end of a 2707-NC11 cable to connect PLC TxD to printer RxD, PLC RxD to Printer TxD, and PLC SG to Printer SG. I jumpered CTS and RTS at the printer connector, and the 2707 cable I'm using doesn't have wires on the Micro850 CTS or RTS pins.

Printer company verified that I can just jumper RTS and CTS on their side and not connect their DTR and DSR pins (since I'm not using hardware handshaking). I don't really need any flow control for the application ( I don't think...again, ASCII noob here).

Do the CTS and RTS on the PLC side need to be jumpered? Does the DCD pin need to be jumpered or connected to something if I'm not using handshaking?

I downloaded the Micro800 ASCII read and write functions and function blocks from Rockwell library, and they seem to be working, except that I keep getting ABL error id "7". This error states, "Cannot complete ASCII send or receive because channel configuration has been shut down using the channel configuration dialog box." I have the serial port enabled and configured to ASCII, no handshaking, baud 9600 same as printer, no parity check, 1 stop bit, character length of 8.

Any help in pointing out what I'm doing wrong or things to try would be greatly appreciated!

Below is a link to the program:

https://ultratoolmfg-my.sharepoint.com/:u:/p/aloescher/EdnkwpTHFi5IvCjPeHDMgvkBmlwWmKPP8CSHhYtnGbIdxg?e=3DGTgs

Micro850 serial settings.jpg Program screenshot.jpg Write_1 FB.jpg
 

Attachments

  • PLC RS232 cable to printer RS232 connector pinout and wiring.pdf
    92.7 KB · Views: 8
Last edited:
I had "channel no" value in the canned "Write" UDFB set to 0 somehow. It's supposed to be "2" for the embedded serial port I guess.. I didn't see anywhere in documentation which channel no it should be. Anyway, the AWA command works now. I'm not reading anything though from the printer. A few questions about that now:

I'm not using continuous transmission, and the printer is supposed to send an ACK or NACK once it receives data. I'm seeing zero characters in the buffer after I transmit, and I'm getting ABL error id 11, "The requested length for the string is either invalid, a negative number, greater than 82, or 0. Applies to ARD and ARL function blocks. "

Is it safe to assume, then, that either I'm sending character combinations that the printer doesn't like, it's not properly receiving the data, or it's not sending the ACK/NACK in a proper way? Is the best way to troubleshoot this rigging up a cable from my laptop to the printer and using pUTTY or other hyperterminal to figure out if I'm sending the correct data in the correct format? (I'm new to that, so we'll see how that goes.)

Write UDFB.jpg Read UDFB error id11.jpg
 
Last edited:
Maybe insert a [> RxdChar 0] instruction after the ACB's .Q, so the ARD does not get triggered when there are no characters counted by the ACB?
 

Similar Topics

ASCII TCP Client I need to put a mark on devices with ASCII TCP communication to recognize that the command has been completed. The device I...
Replies
1
Views
976
My company built a small test machine using a Micro800 PLC and CCW software. We chose the Micro800 because the machine is very simple. We are...
Replies
2
Views
136
Hi, Is there a way to set the IP of a micro dynamically, based on a variable value.?
Replies
0
Views
155
Anyone use the newer 2080-L50E or L70E with 1734 Point IO yet? I have a customer asking for a setup and I have not found anyone that has done...
Replies
0
Views
367
Is there a way to download the program to a Rockwell Micro810 without using the Rockwell CCW application?
Replies
5
Views
718
Back
Top Bottom