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

I would like to ask about how to use the calculator in PRO2

2009-09-07View Original

Thread Content

It’s about the programming inside – are there any specific requirements or formatting rules? Thank you~
Reply #22009-09-07
First set the parameters, and then you can write some simple programs based on the relationships between them; the structure is similar to that of Fortran.
Reply #32009-09-08
I just don’t know how to write programs or what the specific format should be. I’ve seen a few examples, but the format in them doesn’t seem consistent, so I wanted to ask what things I need to keep in mind when programming.
Reply #42009-09-10
It is written in the programming format of the Fortran language. It’s important to make sure that all parentheses are properly closed; often people leave some parentheses unfinished, which results in the program not working, with no error identified.
Reply #52009-09-16
Calculator Settings: In the main data input window of the calculator, click the Edit/View Declarations button to open the View Area window. 􀂾 Click the Parameters button to retrieve the data from the flowchart and insert it into the calculator. These variables are accessed in the calculator program as elements of array P. Click the Calculator Parameter link text to open the Definition window, where you can select the logistics or plant process parameters that need to be extracted. The format of these windows used for definition is the same; it is described in the SPEC/VARY/DEFINE section of this chapter, where a table of parameters for the device and logistics is shown, and the contents of this table can be retrieved using DEFINE. 􀂾 Click the Constants… button and enter the constant values; these values are stored in the calculator program as elements of array C. Although constants can be entered directly in the program, this array provides a way to gather those constants that need to be modified occasionally in one common location. 􀂾 Click the Results… button and enter the name for the calculation result. These values are accessed in the calculator program as elements of array R, and these names will be used in the output report. 􀂾 Click the Stream sequence… button to define a sequence list for the process logistics. This table has two functions: first, it provides a necessary link for the flow of information between programs and process logistics ; Secondly, the program can perform iterative calculations for a series of logistics, using the positions of those logistics in the table to control the order of the iterations. 􀂾 Click the Array… button to determine the size of the storage array to be used by the calculator. These include the P, C, R arrays defined above, and the IS array used to store logistics variables. The IS array will be discussed in the calculator program. Here, two additional arrays appear. In earlier versions of the calculator, all local variables had to reside in these arrays; array V stored real-number variables, while array IX stored integer variables. Any valid FORTRAN variable name can be used now; these two variables are not often used. Nevertheless, they are still useful; some older programs can be used without having to be rewritten. Once it is set up, click the Hide Declaration button to close the View Area window.

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.