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

A problem with the calculu block of CS3000

2015-07-01View Original

Thread Content

This post was last edited by pe2 on 2015-7-1 21:31. If there are PV values A and B, an alarm C should be triggered when A-B is greater than or equal to 0.1. I wrote it in the CALCU block as follows: ALIAS A A.PV ALIAS B B.PV CPV=A-B IF(CPV>=0.1)THEN C.PV=1 END IF. However, with actual values of A=1.1 and B=1, CPV=0.1, and thus alarm C is not triggered; that is, it doesn’t work when the integer part is 1. I’d like to know where the problem lies
Reply #22015-07-01
The system should come with built-in function help; you can check whether integer calculations and floating-point calculations are separate functional blocks. Furthermore, if there is an IF statement, it’s better to add an else as well; otherwise, once the value of C becomes 1, it’s no longer possible to go back.

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.