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時32分に編集されました。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文の使い方は間違っています。 IF(CPV>=0.1)THEN C.PV=1 ELSE C.PV=0 END IF
Reply #32015-07-01
こちらに書かれている通り、とりあえず0に戻すのは置いておいて、現在はA=1.1、B=1で、整数がどちらも1の場合はC=1はトリガーされない。(2.1, 2)、(1.0, 0.9)のような場合は大丈夫だ。
Reply #42015-07-01
実際は0.1の差ではなく、減速しやすくするために0.1と言っているだけで、今私のところの実際の値は0.012です。0.1や0.001、0.003に変更しても問題ありませんが、0.002や0.2、0.3、0.004はダメで、全く規則性が見つかりません。頭が混乱します
Reply #52015-07-01
ああ、今、差が0.012のときは整数部分が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.