Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

comreq. help for devicenet

Status
Not open for further replies.

jcraft

Electrical
Mar 24, 2005
27
Hi all,

Bear with me here because I am new to all this programming stuff. I have a GE Versamax plc with a devicenet network comm. module installed on the backplane. I am trying to set up the comreq. for the module but am a little confused. I am looking at the literature that shows how to setup the command block and data block up. it shows the values that must be put into the %R registers for each word. My question is about moving these values in. I am going to use a move function but unsure how to do it. For example %R00001 will get the value 13 which I can move in okay however, some of the words get two byes of info for one word. For instance one register gets the node address and the baud rate of the network. In the literature it says the value is 0x200. I am not sure how to input this value into one register. Obviously the first byte is for the adress and the second byte is for the baud rate. Any thoughts on how to move these in. Thanks
 
Replies continue below

Recommended for you

One way is to put each value into a different Register via an HMI and use a an Array_Move_Byte Function Block to copy the MSB of each holding/edit Register into the proper MSB and LSB of the COMM_REQ's l;ocation.
Another way is to convert them to two Hex values and type them in as #16(HEX Value).
I believe that the COMM_REQ_Wizard can help with this too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor