第一個(gè)例子試圖建立–個(gè)能計(jì)算開關(guān)%10001閉合次數(shù)的計(jì)算回路,但不成功。運(yùn)行結(jié)果存儲(chǔ)在寄存器%R0002中。這個(gè)設(shè)計(jì)的目的是當(dāng)%10001閉合時(shí),ADD指令將%R0002中的數(shù)值加1,并將新的數(shù)值返回到%R0002。這個(gè)設(shè)計(jì)的問題是%10001閉合時(shí),ADD指令執(zhí)行一次時(shí)間為一個(gè)PLC掃描時(shí)間。所以,例如,%10001保持閉合狀態(tài)5次掃描時(shí)間,輸出就將增加5次,即使%10001在那個(gè)時(shí)期只閉合了–次。
XYCOM 9462-0163140015?003 USPP 946201631400150?0
CARRIER LA-01NA-030 NSFP LA01NA030
HEWLETT PACKARD TEST & MEASURE E1419A USPP E1419A
DOVER FLEXO 1201-00-010-1 USPP 1201000101
DOVER FLEXO SW2P-U-100 USPP SW2PU100
RELIANCE ELECTRIC 613440-5E NSFP 6134405E
YOKOGAWA 371122-B-O/D USPP 371122BOD
METTLER TOLEDO JTGA-1060-000 NSFP JTGA1060000
CUTLER HAMMER 6DSL-F5000 USPP 6DSLF5000
BEMIS MANUFACTURING CO 156606 NSFP 156606
ALLEN BRADLEY 2711P-K7C4D1 USPP 2711PK7C4D1
MITSUBISHI HC-SFS152BG2 USPP HCSFS152BG2
BASLER ELECTRIC BE1-25/79TR NSFP BE12579TR
GENERAL ELECTRIC 579628 USPP 579628
TECO Q4-0150-314 USPP Q40150314
ESS 560478.16 USPP 56047816
GENERAL ELECTRIC DS3800NHVN1A1A USPP DS3800NHVN1A1A