jtwan
Electrical
- Nov 16, 2013
- 3
Im new at this whole programming thing, i am using a slc505 (ab) to send data to an ultra3000 servo indexing drive (on devicenet). I want to send the index count value from the plc to the servo drive via devicenet, but the drive has the value seperated into 4 bytes, high, high medium, low medium, low, how do i break up the interger value in the plc into these 4 bytes (thats my first question), my second question is how can i merge two bytes from the drive into 1 word in the plc or 4 bytes from the drive into 1 long interger in the plc!! please help, thanks!! jtwan