View Single Post
Old January 16th, 2022, 04:14 PM   #11
drbitboy
Lifetime Supporting Member
United States

drbitboy is offline
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 5,414
Even though you did not supply the actual values, I am pretty sure that @LD nailed it on the values:
  • It appears the Modbus receive buffer and S7-1200 Reals are both MSB-first, so a swap is not necessary
  • A range of 35-65 is reasonable for pressures and temperatures in any system of units.
The image below shows a minimal implementation of Example 2 from the link that @Lare supplied, for the first five pairs of words from the OP; OP will of course have to provide their own size for the [store] array in the "COP" FC.

xxx.png
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good

Last edited by drbitboy; January 16th, 2022 at 04:18 PM.
  Reply With Quote