Experimental Physics and
| ||||||||||||||||||||||||||||||||||||||||||
|
Hello everyone, I am using a device with Modbus-RTU protocol. The communication data is transmitted in hexadecimal words. I want to use the modbus module in epics to solve this problelm. When reading device data, the follwing sentence is used in the .cmd file: drvModbusAsynConfigure("V1","Power", 1,3,0,1,0,1000, "Power") and in the substitution file: file "../../db/ai.template" { pattern {P, R, PORT, OFFSET, BITS, EGUL, EGUF, PREC, SCAN} {power:, V_read, V1, 0, 16, 0., 655.35, 2, "I/O Intr"} } There is another command to open the device, which should write " \x01 \x05 \x00 \x00 \xFF \x00 \x8C \x3A" to the device.
After reading all the examples I still don't know how to send this command with modbus module correctly. I think I didn't understand them clearly. Would you like to give me some advice? Is it suitable to use modbus module? How to realize it? Thank you very much. with my best wishes, Kevin
| |||||||||||||||||||||||||||||||||||||||||
ANJ, 12 Jul 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |