Help RTA 435NBX

oscar131313

Member
Join Date
Jul 2016
Location
Matamoros
Posts
2
I am using a 435NBX module with a compact logix to send data to a Zebra printer. its around 12 strings that i need to send, but the code that i sent has a timer, if this value is less than 100 ms the code has missing information, if is more than 100 ms the code has a repeated strings.

PLC.jpg
 
It is hard to tell what you are doing from that screenshot, but have you tried using the CONCAT instruction to get all 12 strings into 1 UDT string type? I have 30 strings that I send to a Zebra Printer using a 435USB. Once all of my part details are entered into the required elements of my first string array, I concatenate everything into a string tag of length 2480. It's a big boy, but I am sending a lot of data; roughly 2400 characters.

Something like this (Ladder image below: Capture):
Code:
CONCAT(RTAStringToPrinter,RTAPrintString[0],RTAStringToPrinter)CONCAT(RTAStringToPrinter,RTAPrintString[1],RTAStringToPrinter)CONCAT(RTAStringToPrinter,RTAPrintString[2],RTAStringToPrinter)
I start with an empty "RTAStringToPrinter" and add each element of "RTAPrintString[*]" until I have all of my data in "RTAStringToPrinter". The 435USB sees this tag change and sends the data to the printer. I have an Inter-Message Delay of 500ms set on the 435USB so the PLC has time to concatenate the entire message, and then send all of the ASCII characters at the same time. Capture2 shows my PLC setup on the 435USB.

I hope this helps.

Capture.PNG Capture2.PNG
 
Mikey thank you for your support, we increase the length of the string and concatenate all of them in just one and change the length of the copy instruction to a constant number and works ok.
 

Similar Topics

this a program to send data to barcode printer I want to integrate a new printer in a new machine and i wanted to adapt the old prgram on it but I...
Replies
2
Views
76
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
50
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
24
Views
420
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
359
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
11
Views
237
Back
Top Bottom