×
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

Logix5000: Sending a UDT with MSG command

Logix5000: Sending a UDT with MSG command

Logix5000: Sending a UDT with MSG command

(OP)
I am able to get the MSG command complete when the UDT is a simple string type.  The calculation for the REQ_LEN is a simple one then:  the length of the string (automatically calculated for you and stored as LEN), plus the 4 bytes for the LEN parameter itself.

But if my UDT has more than a string, an array of REALs for instance, the MSG command always throws one of two errors:

16#0009, Parameter error in module configuration
16#0013, Configuration data size too short

It seems like I get the 0013 error when I overshoot for the data size.  But no matter what value I enter for REQ_LEN, I still get one of these errors.

If my UDT has an array of REALs, how do I find its corresponding length?  And is this even my problem?

RE: Logix5000: Sending a UDT with MSG command

(OP)
For clarification, I am writing a UDT to a PC app I've created.  The PC app receives the simple string UDT...

RE: Logix5000: Sending a UDT with MSG command

(OP)
Figured out how to do this.  Message me if you need help.

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