圖5 FISHER ROSEMOUNT DH7010X1-A1表達(dá)式為一個(gè)變量名的動(dòng)畫編輯窗口
3.5 IF-THEN-ELSE 和Derived Tag
If-then-else語(yǔ)句是RSView32系統(tǒng)中常用的運(yùn)算語(yǔ)句,一般在動(dòng)畫、數(shù)值顯示字域等對(duì)象的表達(dá)式編輯中使用,運(yùn)算對(duì)象可以是開(kāi)關(guān)量,也可是模擬量。If-then-else編寫的程序關(guān)系清晰,易讀易懂,非常適合自動(dòng)化應(yīng)用人員。下面是一段根據(jù)連鑄過(guò)程送引錠桿模式還是澆鑄模式來(lái)選擇編碼器跟蹤值的 If-then-else 程序:FISHER ROSEMOUNT DH7010X1-A1
if plc2\start_dmb_insert then plc2\g10gz else
if plc2\start_cast then plc2\g3gz else
if plc2\start_tail then plc2\wpgz1 else
plc2\dmb_tracking
FISHER ROSEMOUNT DH7010X1-A1系統(tǒng)的運(yùn)算表達(dá)式里還有開(kāi)關(guān)量的與或非運(yùn)算、模擬量比較和常用數(shù)學(xué)函數(shù)和報(bào)警函數(shù)等功能。這些函數(shù)、指令和If-then-else一起構(gòu)成了RSView32系統(tǒng)實(shí)用的指令系統(tǒng),為用戶問(wèn)題提供解決方案。Derived Tag(引用標(biāo)簽),顧名思義,主要對(duì)內(nèi)部標(biāo)簽(中間變量)進(jìn)行二次或多次定義,是一種面向畫面顯示任務(wù)的程序結(jié)構(gòu)。
Siemens廈門興銳達(dá)公司網(wǎng)址:http://www.xmxrdauto.com
FISHER ROSEMOUNT DH7010X1-A1
FISHER ROSEMOUNT DH6220X1
FISHER ROSEMOUNT DH-6008
FISHER ROSEMOUNT DH-6002
FISHER ROSEMOUNT CS-6201
FISHER ROSEMOUNT CP6221X1-BB1
FISHER ROSEMOUNT Y690A-1
FISHER ROSEMOUNT T-O-D-60T12
FISHER ROSEMOUNT SCL-C-008-M2
NEW IN BOX FANUC SERVO MOTOR ALPHA 1/5000i WITH BRAKE
GE FANUC A02B-0198-B501
FANUC A16B-2200-0842/07F MAIN CPU BOARD
FANUC CONTROLLER CARD A20B-2100-0742/09B
Fanuc A20B-8101-0550 Power Supply Fanuc A20B-8101-0550/03A NEW
FANUC GMF A05B-2020-C141 TEACH PENDANT 2 FOR 1
FANUC A06B-0314-B005-R AC SERVO MOTOR REMANUFACTURED CONDITION
Fanuc Servo Motor A06B-0147-B675
Fanuc Power Supply A06B-6081-H101 A06B6081H101 NEW!
Fanuc Reducer A97L-0118-0941#250A-171 or XGMF-10812 NEW
FANUC A05B-2301-C301 A05B2301C301 TEACH PENDANT