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
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