1、簡短性
使PLC程序盡可能簡短,也是應追求的目標。
簡短的程序可以節省用戶存儲區;多數情況下也可節省執行時間,提高對輸入的響應速度,還可提高程序的可讀性。
程序是否簡短,一般可用程序所用的指令條數衡量,用的條數少,程序自然就簡短。
要想程序簡短,從大的方面講,要優化程序結構,用流程控制指令簡化程序,從小的方面講還要用功能強的指令取代功能單一的指令,以及注意指令的安排順序等。
2、省時性
程序簡短可以節省程序運行時間,但簡短與省時并不完全是一回事。因為運行程序時間雖與程序所擁有指令條數有關,而且還與所使用的是什么指令有關。PLC指令不同,執行的時間也不同。而且,有的指令,在邏輯條件ON時執行與在OFF時執行其時間也不同。另外,由于使用了流程控制指令,在程序中,不是所有指令都要執行等。所以,運行程序的時間計算是較復雜的。但要求其平均時間少,大時間也不太長是必要的。這樣可提高PLC的響應速度。
省時的關鍵是用好流程控制指令。按情況確定一些必須執行的指令,作必備部分,其余的可依程序進行,有選擇地執行,或作些分時工作的設計,避免大時間太長等。
3、可讀性
要求所設計的程序可讀性要好。這不僅便于程序設計者加深對程序的理解,便地調試,而且,還要便于別人讀懂你的程序,便于使用者維護。必要時,也可使程序推廣。
要使程序可讀性好,所設計的程序就要盡可能清晰。要注意層次,實現模塊化,以至于用面向對象的方法進行設計。要多用一些標準的設計。
再就是I/O分配要有規律性,便于記憶與理解。必要時,還要做一些注釋工作。內部器件的使用也要講規律性,不要隨便地拿來就用。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
慧星產品中心 http://www.huixingplc.com/
E-mail:1905391339@qq.com
QQ :1905391339
熱線:0592-7190353 手機:15359261131
傳真:0592-7190350
慧星李工執著堅守,堅韌篤定,專注于工業自動化產品的銷售和推廣以及技術探討。 地址:廈門市同安區鳳山一里50號1915單元
慧星公司是一家性的貿易型企業,主要供應:A-B 1756 PLC \1747 PLC\1746 PLC \1771老PLC\1769小型PLC\1785\2711觸摸屏 等系列。
西門子:高壓斷路器,過載繼電器,熱繼電器,S7-200,S7-300,S7-500,6DD,6AV,6GK等系列
施耐德:PLC,昆騰140 PLC系列
GE: Genius I/OSeries 90-30Field ControlRx3i PacSystemRx7i PacSystemSeries OneSeries ThreeVersamaxSeries Six
很多常用型號都有庫存現貨,個別沒有現貨的可以訂貨,價格實惠,貨期短,提供售后質保。
美國Honeywell:TDC2000\3000、S9000系列板卡!FC-PSU-240516 FS-QPP-0001
FS-USI-0001 FS-SDI-1624
FS-SDO-0824 FS-TSDI-1624
FS-TSDO-0824 FC-SAI-1620m
FC-TSAI-1620m
30735863-002 30735863-502 Switching Card - 12-Relay
30735866-001 30735866-501 Decoder Card - RCD
30735869-001 30735869-501 RCD backplane
30735871-003 RCD File/Backplane
30735873-001 30735873-501 Loop Module Card
30735876-001 C-JDP00 JDP00 Junction Panel
30735892-001 30735892-501 Address Cable - RCD
30750218-003 30750218-503 12K ROM/1K RAM - RCD
30750218-011 30750218-511 ROM/RAM: ST/DC - RCD
30750338-005 30750338-505 Hiway 2 Board
30731808-001 30731808-501 Regulator Card
30731808-003 30731808-503 Regulator Card
30732386-001 30732386-501 GPCI Test Logic
30732393-001 30732393-501 GPCI Driver/Receiver
30732396-001 30732396-501 GPCI Hiway Logic
30731391-001 C-TAF00 C-TAF00 Terminal Panel
30731708-001 C-CAF00 Auxiliary Card File
30731719-001 C-ASD00 Signal Isolator Board
30731808-001 30731808-501 Regulator Card
30731808-003 30731808-503 Regulator Card
30731832-002 30731832-502 Processor - EC, ERCD, DHP
30731832-004 30731832-504 Processor - ERCD, DHP
30731832-006 30731832-506 Processor - DHP
30751044-005 30751044-505 DHP Controller I ROM
30751044-006 30751044-506 DHP Controller II ROM
30751044-008 30751044-508 DHP Controller II ROM
30751044-010 30751044-510 DHP Controller II ROM
30752551-001 DHP Backplane
30752588-001 CMOS RAM DHP 8K X 17 CMOS RAM
30752606-001 30752606-501 DHP Battery
30752766-001 30752766-501 DHP RS232C Transceiver
30752787-001 DHP Comm. Logic Board
30752787-002 30752787-502 DHP Comm. Logic Board
30752787-003 30752787-503 DHP Comm Logic board
30752946-001 30752946-501 DHP Battery Test Crd Assy
30752948-001 DHP Battery Assembly
30731720-001 C-AXD00 Multiplier/Divider
30731721-001 C-AML00 MV/I-2-100
30731721-002 C-AML01 MV/I-2-100 (IS FM & CSA)
30731721-003 C-AML02 MV/I-2-100 (IS BASEEFA)
30731721-004 C-AML03 MV/I-2-100 (IS PTB)
30731722-001 C-AEX00 Square Root Extractor
30731722-002 C-AEX01 Square Root Extractor
30731723-001 C-AMH00 10MV MV/I
30731724-001 C-ARB00 R/I Board
30731724-002 C-ARB01 R/I Board (IS FM & CSA)
30731724-003 C-ARB02 R/I board (IS BASEEFA)
30731814-005 30731814-505 HWY 2 - Analog Unit CA00X
30734772-001 C-AA101 Aux Alarm Card 3 single
30734772-002 C-AA201 Auxiliary Alarm 2 Dual
30732037-001 HTD/PAE Display Module
30733155-001 HTD, PAE Regulator Card
30735150-003 PAE Cardfile & Backplane
30735173-002 PAE Logic Board
30671513-001 C-TCB30 C-TCB30 Terminal Panel
30731808-002 Regulator for RCD, ERCD
30731808-004 Regulator for RCD, ERCD
30731814-004 30731814-504 Hiway 2 Board
30731817-004 30731817-504 Hiway 1 Board
30731817-005 30731817-505 Hiway 1 Board
30731817-006 30731817-506 Hiway 1 Board
30731832-001 30731832-501 Processor Board
30731832-003 30731832-503 Processor - PIU, RCD, OP
30735860-001 30735860-501 Transceiver - RCD
30735863-001 30735863-501 Switching Card - 16-Relay
30731808-001 30731808-501 Regulator Card
30731808-003 30731808-503 Regulator Card
30731832-001 30731832-501 Processor Board
30731832-003 30731832-503 Processor - PIU, RCD, OP
30731832-005 30731832-505 Processor - PIU, Op St
30732037-001 HTD/PAE Display Module
30733155-001 HTD, PAE Regulator Card
30733157-001 HTD Cable I/F
30733159-001 HTD Driver/Detector
30733159-002 HTD Driver/Detector
30733174-001 Hiway Traffic Dir Chassi
30733174-002 Highway Trafc Dir Chassi
51304283-100 HTD Logic (Round Robin)
30731832-001 30731832-501 Processor Board
30731832-003 30731832-503 Processor - PIU, RCD, OP
30731832-005 30731832-505 Processor - PIU, Op St
30731832-007 Processor - Op Stn Only
30732219-001 Cable Logic (TDC Board)
30732219-002 Cable Logic Assembly
30732219-003 Cable Logic Board
30732219-004 Cable Logic Assembly
30732233-001 Cable Driver & Detector
30732254-001 Display Generator DMA
30732266-001 Rel. 310 op. sta. Memory
30732269-001 Memory DMA (MOS)
30732269-002 Memory DMA (Op Station)
30732425-001 Recorder Interface
30732439-003 Display Generator Op St
30733262-001 Cassette Interface
30734492-001 G.C.K. Keyboard Interface
30734982-001 Cassette Bootstra
30735887-001 Printer Interface
30735974-003 Trend Memory - TDC 2000
30736220-001 Keyboard Interface
30750540-002 Op Station Power Supply
30750730-001 Diskette Interface
30750783-003 30750783-503 Diskette Bootstrap Board
30750990-001 Keyboard Interface Op St
30750990-002 Keyboard Interface
30751853-001 EDAC Error Detect & Correct Bd
30751856-001 128K MEM Op Station Mem Board 128K
4DP7APXDH111 4DP7APXDH11 Hiway Cable Interface
4DP7APXDH244 DHP Data Hiway DMA
4DP7APXAD911 4DP7APXAD91 A/D Converter
4DP7APXDH111 4DP7APXDH11 Hiway Cable Interface
4DP7APXDH222 4DP7APXDH22 Data Hiway DMA
4DP7APXDH233 4DP7APXDH23 Data Hiway DMA
4DP7APXMD111 4DP7APXMD11 LE Mux Driver
4DP7APXPM233 4DP7APXPM23 PROM/RAM PWB, LE PIU
51304207-100 PAE Logic (Round Robin)
51301239-100 LE Mux Board (TC)
51301256-100 LE Terminal Board (TC)
51301259-100 LE Logic Board (RTD)
51301262-100 LE Input Terminal Bd(RTD)
51301874-100 LE Mux Board (TC)
51301877-100 LE Mux Board (RTD)
51301880-100 LE Terminal Board (TC)
51301880-101 LE Terminal Board (WPC)
51301882-100 LE Teminal Board (RTD)
51302607-100 LE Mux Board (RTD)
51302608-100 LE Thermocouple Relay
51195095-100 5.25" Op Station Floppy
51304186-100 DC/DC Converter
51304797-100 Display Generator Op St
62795601-001 C-ASL00 Signal Limiter
62795604-001 C-AA100 Auxiliary Alarm 4 single
62795604-002 C-AA200 Auxiliary Alarm 3 Dual
62795607-003 C-AZL01 Integrator (Linear)
62795607-004 C-AZS01 Aux Integrator (Sq Rt)
62795610-001 C-APM00 Adder/Subtractor
62795613-001 C-ASC00 Signal Sel./Scale & Bias
80360300-001 512KW Memory Yamatake Bd
82114805-001 Dot Trend for 520 Op St
82114814-001 P3 Op. Sta. Printer IF
82114927-001 CRT A for rel 520 Op St
82114927-002 Yamatake CRT-A1 MOS Board
82114930-001 CRT B for rel 520 Op St
82114930-002 Yamatake MOS CRT-B1 board
82117038-001 30752117-002 Yamatake 1MW Memory Bd