![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]()
|
New Here? Please read this important info!!!
![]() |
#1 |
Member
|
RS232 ASCII String - How to put in a register?
I am receiving an ASCII string via RS232; is it possible to send that data to an N7 register directly? (i.e. ASCII String = N7:0,01)
Will a Micrologix 1500 know what to do with this or do I have to handle it another way? Thanks, Don
__________________
If God had wanted us to think... |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
No, usually you will have to read the string from the buffer(ARD,ARL), extract the number which will still be stored as a string(AEX), then convert it to an integer (ACI)
What is sending the string? |
![]() |
![]() |
#3 |
Member
|
It is coming from an SMAC test unit. They can send anything I want; So I can read it into the ST register and do a string compare as well. I was just curious if there was a way to code it to go directly into a register other than the ST register.
Thanks, Don
__________________
If God had wanted us to think... |
![]() |
![]() |
#4 |
Lifetime Supporting Member
|
Is ASCII over RS232 the only option they have?
|
![]() |
![]() |
#5 |
Member
|
Yes & No, They have I/O on the unit but we have used it all. So we are looking at other avenues of sending a ready signal. I think I will program a first pass to clear the ASCII string at startup and then clear it again at cycle start. That should get me what I need.
Thanks, Don
__________________
If God had wanted us to think... |
![]() |
![]() |
#6 |
Member
![]() ![]() Join Date: Feb 2006
Location: Wisconsin
Posts: 34
|
Don,
There is an ASCII to PLC Gateway from Real Time Automation that works great. It will take your string data and send it right to a string register in your Micrologix. The part is 435NBS. They have din rail or panel mounting. Very little logic is needed. http://www.rtaautomation.com/ethernetip/435nba/ They show the 435NBA for the Contrologix family. They only difference really is that the 435NBA sends data to a tag and the 435NBS will be sending to a register. Rick |
![]() |
![]() |
Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ASCII escape characters in string file? | JHarris | LIVE PLC Questions And Answers | 3 | February 21st, 2006 12:25 PM |
ASCII string validation with SLC 5/04 | firebrd10 | LIVE PLC Questions And Answers | 3 | January 19th, 2005 12:11 PM |
Experts! Help Me Convert decimal to ASCII string!! | wlemst88 | LIVE PLC Questions And Answers | 16 | November 6th, 2004 05:12 PM |
Ascii string over Ethernet in CLX | Contr_Conn | LIVE PLC Questions And Answers | 2 | June 17th, 2004 08:07 PM |
SLC500 ASCII strings | SteveC | LIVE PLC Questions And Answers | 6 | July 5th, 2003 01:49 PM |