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

CS3000のcalcuブロックの問題点

2015-07-01View Original

Thread Content

この投稿は最後にpe2によって2015年7月1日21時31分に編集されました。AとBという2つのPV値があり、A-Bが0.1以上の場合にCというアラームを発報したいのですが、CALCUブロック内では次のように書いています:ALIAS A A.PV ALIAS B B.PV CPV=A-B IF(CPV>=0.1)THEN C.PV=1 END IF しかし実際の結果では、A=1.1、B=1の場合、CPV=0.1となりCはトリガーされません。つまり整数部分が1の場合はダメなのですが、問題はどこにあるのでしょうか?ご教示ください
Reply #22015-07-01
システムには機能ヘルプが標準で備わっているはずです。整数計算と浮動小数点数計算が別々の機能ブロックかどうかを確認してみてください。また、IFがある場合はできればelseも加えた方が良く、そうしないとCの値が1になった後は元に戻れなくなります。

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.