COMM: Modbus/RTU 32bit values
The AList
automation at control.com
Wed Feb 25 12:28:53 EST 2009
==> Automation List post by Eli...
To view or reply to this thread: http://www.control.com/thread/1235542857
------------------------------------------------------------------------------------
COMM: Modbus/RTU 32bit values
------------------------------------------------------------------------------------
I am trying to read 32bit modbus registers with a Siemens S7-200 PLC and a Delta motion controller. I can do this just fine, except that I must read the 32bit register as two 16bit registers. The problem is that the two 16bit registers are read backwards. AKA if you look at the hex values...
Source:12345678
Read from Source:56781234
How do I read them in the correct order? The Siemens library only lets me read words or bits. I have thought of a couple ways to do this but I really don't want to have to write a communications buffer for every command I send and receive as there are about 15 separate 32bit values I must send and receive every cycle...
------------------------------------------------------------------------------------
==> A Note from the Sender of this Message...
You are receiving this message because a subscription was entered for your address
for the Control.com Automation List. To unsubscribe, send an email to us at
forum at control.com requesting your removal from the subscription list.
This email was sent by:
Control.com, Control Technology Corporation,
25 South Street, Hopkinton, MA, 01748, USA.
Copyright 2009 Control Technology Corporation. All rights reserved.
Privacy and Legal Notices may be viewed at:
http://www.control.com/about.php
More information about the Automation
mailing list