HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Programming issues with Zhejiang University JX—300X

2010-06-11View Original

Thread Content

I used the Zhejiang University JX—300X to write a program for flow accumulation; the ‘INT_TO_SFLOAT’ module was employed to convert 3600 into a half-precision floating-point value. The input value was set to 3600, and the output was designated as TEMP1. However, an error related to the output pin was reported during compilation. Could someone explain this?
Reply #22010-06-11
For the half-precision floating-point numbers used by Zhejiang University’s Zhongkong system, the range is from negative several to positive several; I can’t remember the exact values, but it’s definitely no more than 5. Converting values on such a large scale will cause an overflow
Reply #32012-12-08
Using a mage for this is incorrect; one wants to convert 3600 into a half-precision floating-point number. First, the variable TEMP1 that you define must be a half-precision floating-point number: its range is 0 to 3600. Secondly, you need to convert INT to float first, then divide by the range of 3600, and finally convert the result to a half-precision floating-point number

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.