Studio 5000, How to send control characters?

asteroide

Member
Join Date
Jul 2010
Location
der
Posts
158
Hello Friends

I need to send some control characters to a printer, like:

STX
ETB
LF
CR

Accordig with the printer's user manual I should send in decimal:

2 for STX
23 for ETB
10 for LF
13 for CR

I have done the most of the program, but I do not know how to send this characters.

Could you help me?

Thanks in advance.
 
To manually place any nonprintable character in a Logix 5000 String, preface it with a dollar sign.

$02 inserts hex 0x02

$23 inserts hex 0x23, which is a printable ASCII character, the pound/hash sign (#).

Studio 5000 carries over some shortcuts from the old PLC/SLC days and also allows $L for Line Feed (0x0A), and $R for Carriage Return (0x0D) Or, you can explicitly add those as $0A and $0D.

Changing the Style of display for those elements of a string DATA[x] array makes it easier to understand them, for me.

Logix5000_String_Control_Characters.png
 

Similar Topics

Hello! Is there a possiblity to bring the PLC from run to stop with software code? In a special situation my machine should go to in stop mode...
Replies
7
Views
2,592
I'm trying to compare strings in Studio 5000 on an Allen Bradley 1769-L33ER and came across this weird incorrect string comparison. Neither of the...
Replies
10
Views
146
Hello everyone, I'm new here, I hope someone can help me. I've been trying to install EDS files to my Studio 5000 with the EDS tool installer but...
Replies
3
Views
133
Hi Everyone, I am facing an issue while installing the STUDIO 5000 in my windows 10 PC. During installation I am getting an error that " Error...
Replies
4
Views
201
I am connecting to a remote device. When attempting to upload I receive an error that states: Error: Auto_Functions: The Import was aborted due...
Replies
3
Views
199
Back
Top Bottom