Send integer-ascii to DL40 Textdisplay

mulderm

Member
Join Date
Jun 2003
Location
Netherlands
Posts
298
Hello,

I want to send a countervalue to a DL40 textdisplay.
This display receives a integer-word with is building as
an Ascii.
Example: If C5:0.acc=12 then I will send a Integer-word N7:0=12594
with MSD=1 and LSD=2 to the display.
The problem is: How can I make a RSLogix5 program for this?
I want to convert a countervalue to an integer-word with the
2 ascii-characters.
Who knows?

Greetings,

mulderm
 
Greetings mulderm,

see if this helps ...

[attachment]

check carefully to make sure that it will handle situations where the number in the counter's accumulator changes from two-digits to one-digit ... it works ok on the RSLogix screen but the DataLiner might display differently ... and also ... this only handles values between 0 and 99 ... you'll have to expand the same ideas to handle bigger numbers ...

finally ... I didn't have a PLC-5 handy ... I checked this out on an SLC-5/05 ... it should work the same ...

counttoascii.jpg
 
Thank you Ron, for your fast reaction.
It didn´t work because the AIC-instruction is only available
for the enhanced PLC5 processors and I have a classis PLC5
processor (PLC5/25).
Do you have another option, like working with a BTD-instruction?
Any help I appreciate.

Greetings,

mulderm
 
Since you don't have the AIC instruction, you'll just have to create it by hand.

[attachment]

I used a BTD because you mentioned it. You could just as easily have just multiplied N7:11 by 256 (to shift the bits 8 places), and then added N7:10 to the result stored in A9:0.

Good luck

plcs.net.jpg
 

Similar Topics

Hello, I am new to the Allen Bradley connected components workbench software. I am working with an AB panelview component Hmi and would like to...
Replies
0
Views
1,189
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
185
Hello Friends I have took the sample program from AB webpage and modified, but I can only send 127 chars...
Replies
1
Views
180
I have followed the videos & still having issues getting the email out. Does anyone have knowledge or has sent an email notification via gp pro ex?
Replies
0
Views
193
Back
Top Bottom