Experimental Physics and
| |||||||||||||||
|
HI Tech-talk,I am trying to build an IOC to communicate with serial devices through the serial to Ethernet Device Server. The serial device supports the streams of hex format. The binary command format when using RS232 or RS485 is as follows: the checksum is calculated by adding up all bytes (including the module address byte) using //Set the “Command” array to the desired command I want to control the motor to rotate right through the serial device. Instruction: By writing streamDevice protocol file(out'\x01\x01\x00\x01\x00\x00\x01\x5e\x62';),motor can rotate. Using "EDM" or "caput" to input the variable,where do I do my processing (like calculating the Checksum and convert the velocity to four bytes long)? where write my own parsing code in C?having other approaches. Could you give any example? Thanks,
Yahto
| ||||||||||||||
ANJ, 15 Nov 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |