6/8/2010 10:44 AM | |
Joined: 2/6/2009 Last visit: 1/7/2025 Posts: 939 Rating: (118) |
Dear All, Here I have attached the program backup (S7 library) contains the block to convert “Signed Integer to Real” The main idea of creating the block is, * In our S7 PLC all the 16 bit values are signed (integers), * Range of Signed integer value is -32767 to +32767. * But in communications such as Modbus, IEC and Profibus with third party devices the Data format used to be unsigned integer in some cases. * Range of unsigned integer value is 0 to 65536. * That means, if the value form the third Party devices is more than 32767 and in our PLC logic it Will be in minus. *For Example, If Input data = 40000 and in PLC logic it will be -25536. To avoid the above problems, I had created the “Signed Integer to Real”. By using the above block we can get same unsigned value as real out in the PLC logic. More details about the conversion is in thisthread. AttachmentConversion.zip (809 Downloads) |
Last edited by: Saravana kumar at: 6/8/2010 10:46 AM_______________________________________________________________ |
|
This contribution was helpful to3 thankful Users |
6/8/2010 11:45 AM | |
Posts: 8946 Rating: (999) |
????????????????? Did you ever heard something about the <D, >D ==D commands? |
Follow us on