×
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

How to poll register in ABB TotalFlow protocol

How to poll register in ABB TotalFlow protocol

How to poll register in ABB TotalFlow protocol

(OP)
thread791-183706: ABB Totalflow EFM Communications Information

We are working on TotalFlow protocol. The difficult thing is, as one of the posters (robertjo24) said, there is very little documentation about the protocol.

Specifically, they tell you to call these two lib functions to poll register data:

// the last 4 arguments are app, array, register, numitems
//
BuildRegisterRequest((unsigned char *)&ComReqRec, 2, 3, 12, 2);
AddRegisterRequest((unsigned char *)&ComReqRec, 2, 3, 12, 2);

But, when you call this lib  function, it returns 0 (bytes copied):

short nBytesCopied = GetRegisterValue(parchive, 2, 3,
12, 2,(char *)nArray);  // short nArray[20];

Question:
How to call the lib functions for a range of registers:

-- Call BuildRegisterRequest() once for the first register, and then call AddRegisterRequest() for each of the other regosters. Is this correct?

-- In this call: BuildRegisterRequest((unsigned char *)&ComReqRec, 2, 3, 12, 2);  The last parameter (=2) is numitems, does that mean a register can hold multiple items? or it means a range of 2 registers, so we are polling registers 12 and 13.

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