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,582
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
90
I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
493
Hi Everyone. Not posted on here for a long time, but I am hoping someone can help me. I am doing a differential pressure calculation in a L27ERM...
Replies
16
Views
394
Back
Top Bottom