×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

building a text file in rs logix 5000

building a text file in rs logix 5000

building a text file in rs logix 5000

(OP)
I have an application where i need to create a text file to send to a servo drive. I am using a control logix plc to do this application and i am using rs logix 5000 program software as well. Is there a way of creating a text file inside of rs logix 5000. to give an example:

using ladder logic, to move data to this to text file i want to create and then be able to send this text file through my ascii port to the servo drive.

any help would be appreciated!!
thanks

RE: building a text file in rs logix 5000

I had an application where I had to create strings in the RLL.  I used Structured Text to create contants, my tag names were the letter preceeded by an underscore.

_A := 65;
_B := 66;
_C := 67;
etc

Some specials I needed were.
STX := 2;
ETX := 3;
CR  := 13;

I wrote an ST routine that would concatenete strings together.  

I also set up several strings that I needed specifically for the device, the example below requests status from the device <STX>S010<ETX>.

The tag structure for those would be like this;

sGetStatus.Data[0] := STX;
sGetStatus.Data[1] := _S;
sGetStatus.Data[2] := _0;
sGetStatus.Data[3] := _1;
sGetStatus.Data[4] := _0;
sGetStatus.Data[5] := ETX;
sGetStatus.LEN := 6;

Everything I did could have been done in ladder, but ST programming made it easier to read, and keeps the code protected from thos who shouldn't change it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources