GE IS200STAIH2ACB
使PLC程序尽可能简单。简单的含义就是尽可能的使用标准化的程序框架,尽可能使用简单的指令。
要想程序简单,从大的方面讲,要优化程序结构,用流程控制指令简化程序,从小的方面讲还要用功能强的指令取代功能单一的指令,以及注意指令的安排顺序等
2. 可读性
要求所设计的程序可读性要好。这不仅便于程序设计者加深对程序的理解,便于调试,而且,还要便于别人读懂你的程序,便于使用者维护。必要时,也可使程序推广。
要使程序可读性好,所设计的程序就要尽可能清晰。要注意层次,实现模块化,以至于用面向对象的方法进行设计。要多用一些标准的设计。
如遇特殊情况下采用语言编程,多数情况下请使用梯形图编程,方便阅读。
再就是I/O分配要有规律性,便于记忆与理解。必要时,还要做一些注释工作。内部器件的使用也要讲规律性,不要随便地拿来就用。
可读性在程序设计开始时就要注意。这不易完全做到。因为在程序调试的过程中,指令的增减,内部器件的使用变化,可能使原较清晰的程序,变的有些乱。所以在设计时就对调试增减留有一定的余地,然后调试完毕后再做一下整理,这样所设计的程序具有更高的质量。
程序的注释,起码应该有以下几个方面:
A、系统注释:整套程序的版权公司和此套程序用途
B、程序块注释:此程序块的主要用途和作者
C、段注释:此段代码的用途
D、变量注释:重要性无需多言,包含I/O注释、中间变量注释
而至于保密性的考虑,我觉得应该在程序的加密算法或者块的加密上考虑,而不应该用减少注释这种小聪明来实现。
3. 正确性
PLC的程序一定要正确,并要经过实际工作验证,证明其能够正确工作。这是对PLC程序的最根本的要求,若这一点做不到,其它的再好也没有用。
要使程序正确,一定要准确的使用指令,正确的使用内部器件。准确的使用指令与准确理解指令相联系,为此对指令含义和使用条件一定要弄清楚。必要时,可编些小程序对一些不清楚的指令作些测试。
同一指令,由于PLC的出厂批次不同或是PLC的系列型号的不同,一些指令细节有可能不一样,应仔细查阅编程手册。
内部器件正确使用也是重要的。如有的PLC有掉电保护,有的PLC没有。一定要做到该掉电保护的一定要用掉电保护的器件,反之则不能用。
总之,要准确的使用指令,正确使用内部器件,使所编的程序能正确要作,这是对PLC程序最根本的要求。
举个简单的例子,西门子的上升沿和下降沿需要使用带存储功能的变量作为中间变量,比如M点或者DB点,如果使用FC的temp变量就会出问题的。
4. 可靠性
程序不仅要正确,还要可靠。可靠反映着PLC程序的稳定性,这也是对PLC程序的基本要求。
有的PLC程序,在正常的工作条件下或合法操作时能正确工作,而出现非正常工作条件(如临时停电,又很快再通电)或进行非法操作(如一些按钮不按顺序按,或同时按若干按钮)后,程序就不能正常工作了。这种程序,就不大可靠,或说不稳定,就是不好的程序。
好的PLC程序对非正常工作条件出现,能予以识别,并能使其与正常条件衔接,可使程序适应于多种情况。好的PLC程序对非法操作能予以拒绝,且不留下“痕迹”。只接受合法操作。
联锁是拒绝非法操作常用的手段,继电电路常用这个方法,PLC也可继承这个方法。
5. 易改性
要使程序易改,也就是要便于修改。
PLC的特点之一就是方便,可灵活地适用于各种情况。其办法就是靠修改或重新设计程序。
重新设计程序用于改变PLC工艺的用途要求的情况,不仅程序重编,而且I/O也要重新分配。多数情况下不需要重编程序,作一些修改就可以了。这就要求程序具有易性,便于修改。
易改也就是弹性,要求只要作很少的改动,即可达到改变参数或理改动作的目的。
6. 扩展性
许多程序可能在进现场之前都已经编好,但是到了现场,可能还需要添加另外的程序,为了避免打乱整套系统的结构,需要在每个功能区预留一定的空间作为备用。
硬件上留出足够的余量,软件在编写的时候把手动,自动,半自动考虑好,位置留出来。
J020
K0173CJ System Monitor SW Pkg (Ver 4.x)
K0173CK Integrator 30 For AB PLC SW Pkg (Ver 4.x)
K0173CL Allen-Bradley Station SW Pkg
K0173CM AB Data Highway Gateway SW Pkg (Ver 4.x)
K0173CN AB Data Hwy Gateway, Redundant SW Pkg (Ver 4.x)
K0173CP Control Processor 30 SW Pkg (Ver 4.x)
K0173CQ Communication Process 10 SW Pkg (Ver 4.x)
K0173CR Display Processor 10 SW Pkg (Ver 4.x)
K0173CS DI30 4.0/4/1 ASCII I/F
K0173CT DI15 4.0/4.1 ASCII Interface
K0173CU SPECTRUM Slave Gateway SW Pkg (V4.x)
K0173CV Tank Processor 10 SW Pkg (Ver 4.x)
K0173CW Instrument Gateway 10 SW Pkg (Ver 4.x)
K0173CX Information Network Interface 15 SW Pkg (Ver 4.x)
K0173CY INTERSPEC Integrator 30 SW Pkg (Ver 4.x)
K0173DA Modicon Gateway SW Pkg (Ver 4.x)
K0173DB Integrator 30 For MG PC SW Pkg (Ver 4.x)
K0173DC SPECTRUM Interface Processor SW Pkg (V4.x)
K0173DD SPECTRUM I/F Processor Redundant SW Pkg (V4.x)
K0173DE Control Processor 10 SW Pkg (Ver 4.x)
K0173DF Workstation Processor 30 SW Pkg (Ver 4.x)
K0173DR SDP Configurator For PC SW Pkg (V4.x)
K0173DS SDP Single Processor SW Pkg (V4.x)
K0173DT SDP Dual Processor SW Pkg (V4.x)
K0173DU Information Network Interface 10 SW Pkg (Ver 4.x)
K0173EA Sun DECnet For AP50/WP50 SW Pkg (Ver 4.x)
K0173EC System Configurator 50 SW Pkg (Ver 4.x)
K0173ED Sun FORTRAN For AP50 SW Pkg (Ver 4.x)
K0173EM C Math Library 50 SW Pkg (Ver 4.x)
K0173EQ Report Writer 50 SW Pkg (Ver 4.x)
K0173EU Statistical Process Control 50 SW Pkg (Ver 4.x)
K0173EV Spreadsheet 50 SW Pkg (V4.x)
K0173EZ Personal Workstation V4.0 SW Tape Media
K0173FA Application Processor 10 (AP10) SW Pkg
K0173FB Application Processor 20 (AP20) SW Pkg
K0173FC Workstation Processor 10 (WP10) SW Pkg
K0173FD Workstation Processor 20 (WP20) SW Pkg
K0173FE Control Processor 10 (CP10) SW Pkg (V3.x)
K0173FF Communication Processor 10 SW Pkg (V3.x)
K0173FG SPECTRUM Slave Gateway SW Pkg (V3.x)
K0173FH Carrierband LAN Interface SW Pkg
K0173FJ PW-FB Opsys SW Pkg
K0173FK PW Opsys SW Pkg
K0173FL Tank Processor 10 SW Pkg (V3.x)
K0173FM System Monitor SW Pkg (V3.x)
K0173FN System Manager Display Handler SW Pkg (V3.x)
K0173FP Integrated Control Configurator SW Pkg (V3.x)
K0173FQ RBATCH II (Solaris) SW Pkg
K0173FR INFORMIX ISQL SW Pkg
K0173FS INFORMIX ESQL/C SW Pkg
K0173FT Physical Properties Library SW Pkg (V3.x)
K0173FU PRELUDE Spreadsheet SW Pkg (V3.x)
K0173FV Math Library SW Pkg (V3.x)
K0173FW Historian 10 SW Pkg
K0173FX System Configurator SW Pkg (V3.x)
K0173FY Process Optimizer SW Pkg (V3.x)
K0173GA Production Model SW Pkg (V3.x)
K0173GB Data Validator SW Pkg (V3.x)
K0173GC Batch Plant MgmtSW Pkg (V3.x)
K0173GD Automatic Data Capture SW Pkg (V3.x)
K0173GE Allen-Bradley Data Highway Gateway SW Pkg (V3.x)
K0173GF CP Sizing Guidelines SW Pkg (Ver 4.x)
K0173GH IRIS II (Solaris) SW Pkg
K0173GL Statistical Process Control SW Pkg (V3.x)
K0173GM Information Network Interface 10 SW Pkg (V3.x)
K0173GN Panel Display Processor 10 SW Pkg (V3.x)
K0173GP Historian 20 SW Pkg (V3.x)
K0173GQ Modicon Gateway SW Pkg (V3.x)
K0173GR Compound Summary Access SW Pkg (V3.x)
K0173GS Production Model Editor SW Pkg (V3.x)
K0173GT Device Monitor SW Pkg (V3.x)
K0173GU FoxCAD SW Pkg (V3.x)
K0173GV Loadable Doc SW Pkg
K0173GY Dev Integrator 15 SW Pkg (V3.x) Basic ASCII 5.25"
K0173HA INTERSPEC Integrator SW Pkg (5.25 in)
K0173HB Integrator 30 Allen-Bradley PLC's SW Pkg (5.25 in)
K0173HC Integrator 30 For Modicon PLC's SW Pkg (5.25 in)
K0173HD INT30 SW Pkg (V3.x) - Basic ASCII (5.25 in)
K0173HF FORTRAN Math Library (Solaris) SW Pkg
K0173HM CP40 SW Pkg (2,000 Block V4.1)
K0173HN MODBUS Plus Integrator SW Pkg
K0173HV X-Terminal Hosting SW Package
K0173JA A-B Station SW Pkg
K0173JB Panel Display Processor 10 SW Pkg
K0173JC System Configurator SW Pkg
K0173JD System Configurator 50 SW Pkg
K0173JE System Configurator (Solaris) SW Pkg
K0173JF Tank Processor 10 SW Pkg
K0173JN Control Station Sizing Spreadsheet Disk (V4.2)
K0173KG Modbus/SCADA I/O Driver Lic For AW51
K0173KL Alarm And Message Interface SW Pkg
K0173KQ FoxAnalyst V1.2 (Windows/Solaris) Media Kit
K0173KR V4.X Model 50 Day0 Boot CDROM
K0173KS V4.x Model 51 Day0 Boot CDROM
K0173KT Model 51 Chinese Language Overlay CDROM
K0173KU Model 51 Taiwanese Language Overlay CDROM
K0173KV Model 51 Japanese Language Overlay CDROM
K0173KW Model 51 Korean Language Overlay CDROM
K0173KX Model 51 French Language Overlay CDROM
K0173KY Model 51 German Language Overlay CDROM
K0173KZ Model 51 Spanish Language Overlay CDROM
K0173LA Model 51 Russian Language Overlay CDROM
K0173LB Model 51 Italian Language Overlay CDROM
K0173MD AW70 SCADA (L&N) SW Media Distribution Kit (V6.x)
K0173ME AW70 SCADA (B B) SW Media Distribution Kit (V6.x)
K0173MF AW51 SCADA (L&N) SW Media Distribution Kit (V6.x)
K0173ML FoxDraw Standalone Pkg
K0173MX MICRO-I/A Type I Station SW Pkg (V4.2.1b)
K0173NA Instrument Gateway 10 SW Pkg (V3.x)
K0173NB Path MgmtSW Pkg (V3.x)
K0173ND PW-NB Opsys SW Pkg
K0173NF PW-HTG Opsys SW Pkg
K0173NK PW-SSI Opsys SW Pkg
K0173NM Operator Message Interface SW Pkg (V3.x)
K0173PB PW-C Opsys SW Pkg
K0173QA AW70 Integrator SW Lic For Max I/O Blocks
K0173QB AW70 Integrator SW Lic For 256 I/O Blocks
K0173QC AW70 Integrator SW Lic For 128 I/O Blocks
K0173QD AW70 Integrator SW Lic For 64 I/O Blocks
K0173QE AW70 Integrator SW Lic For Max Reg Ctrl Blks
K0173QF AW70 Integrator SW Lic For 256 Reg Ctrl Blks
K0173QG AW70 Integrator SW Lic For 128 Reg Ctrl Blks
K0173QH AW70 Integrator SW Lic For 64 Reg Ctrl Blks
K0173QJ AW70 Integrator SW Lic For Max Sequence Blks
K0173QK AW70 Integrator SW Lic For 256 Sequence Blks
K0173QL AW70 Integrator SW Lic For 128 Sequence Blks
K0173QM AW70 Integrator SW Lic For 64 Sequence Blks
K0173QN WP70 Display SW Lic - Unlimited Blocks
K0173QP WP70 Display SW Lic - 256 Blocks
K0173QQ WP70 Display SW Lic - 128 Blocks
K0173QR WP70 Display SW Lic - 64 Blocks
K0173QS WP70 DM SW Lic - 5 Graphic Displays
K0173QT I/A Fieldbus I/O Driver SW Lic For Windows NT
K0173QU A-B DH+ I/O Driver Media For Windows
K0173QV A-B Enet I/O Driver Media & SW Lic For Windows
K0173QW MODBUS/SCADA I/O Driver Lic For Windows
K0173QX FoxBatch Lite SW Lic For AW51 Integrator
K0173QY AW51 Integrator SW Lic For Max I/O Blocks
K0173QZ AW51 Integrator SW Lic For 256 I/O Blocks
K0173RA AW51 Integrator SW Lic For 128 I/O Blocks
K0173RB AW51 Integrator SW Lic For 64 I/O Blocks
K0173RC AW51 Integrator SW Lic For Max Reg Ctrl Blocks
K0173RD AW51 Integrator SW Lic For 256 Reg Ctrl Blocks
K0173RE AW51 Integrator SW Lic For 128 Reg Ctrl Blocks
K0173RF AW51 Integrator SW Lic For 64 Reg Ctrl Blocks
K0173RG AW51 Integrator SW Lic For Max Sequence Blocks
K0173RH AW51 Integrator SW Lic For 256 Sequence Blocks
K0173RJ AW51 Integrator SW Lic For 128 Sequence Blocks
K0173RK AW51 Integrator SW Lic For 64 Sequence Blocks
K0173RL A-B Ethernet I/O Driver Media For Solaris
K0173TQ I/A Series V6.x/7.x Document CD For Windows pdf
K0173VG Integrator 30B For A-B SW Pkg
K0173VK Integrator 30B For Modicon SW Pkg
K0173VN INTERSPEC Integrator 30B SW Pkg
K0173VW MICRO-I/A ProfiBUS Configurator Media & SW Lic
K0173VX MICRO-I/A Type 1 Station SW Pkg (V6.2)
K0173WE Kit - IFDC 2.3 For I/A Series 8.x (Windows)
K0173WH Media: Sequence Of Events For Windows XP
K0173WJ Media: Transient Data Record & Analysis - Win XP
K0173WT I/A Series V8.x Document CD For Windows pdf
K0173XC Media: MODBUS Driver For FDSI Version 1
K0173XD Media: OPC Client Driver For FDSI Modules
K0173XE Media: Contrologix Driver (via OPC) For FDSI
K0173YM SPECTRUM Interface Processor SW Pkg (V3.x)
K0173YN SDP Single Processor SW Pkg (V3.x)
K0173YP SDP Dual Processor SW Pkg (V3.x)
K0173YQ SDP Configurator For PC SW Pkg (V3.x)
K0173YT SPECTRUM I/F Processor Redundant SW Pkg (V3.x)
K0173YV Automation Equip Manager SW Pkg (V3.x)
K0173YX Information Network Interface 15 SW Pkg (V3.x)
K0173ZA 760 Series Configurator SW Pkg (V3.x)
K0173ZC VAX AIS-4 SW Lic
K0173ZD VAX AIS-8 SW Lic
K0173ZE VAX AIS-12 SW Lic
K0173ZF Control Processor 30 (CP30) SW Pkg (V3.x)
K0173ZH Workstation Processor 30 (WP30) SW Pkg (V3.x)
K0173ZU Mesh Configuration Tool & Switch/Network Documents
K0174DP Informix Dyn. Server 5 Concurrent Lic, I/A Series
K0174DQ Informix CSDK 2.90.UC4 software development kit for devloping Informix user applications
K0175AG Sun DECnet (Solaris) SW Pkg (V3.x)
K0175AH Display Utilities (Solaris) SW Pkg (V3.x)
K0175AJ System Configurator (Solaris) SW Pkg (V3.x)
K0175AK Sun FORTRAN (Solaris) SW Pkg (V3.x)
K0175AU Math Library (Solaris) SW Pkg
K0175AX Report Writer (Solaris) SW Pkg (V3.x)
K0175BA PW Kanji SW Pkg (Japanese Market)
K0175BB Statistical Process Control (Solaris) SW Pkg (V3.x)
K0175BC Spreadsheet (Solaris) SW Pkg (V3.x)
K0175BD C Compiler (Solaris) SW Pkg (V3.x)
K0175BL 51 Processor Boot Media
K0175BM SPECTRUM Slave Gateway 3.5 SW Pkg
K0175BQ Auto Equip Manager Display SW Pkg (V3.x)
K0175ER FORTRAN Compliler SW Pkg (V3.x)
K0175ES INFORMIX On Line Dev Environment SW Pkg
K0175ET Spreadsheet 50 SW Pkg (V3.x)
K0175EU C Math Library 50 SW Pkg (V3.x)
K0175EV INI10 Network Interface SW 50 Pkg
K0175EW INI15 Network Interface SW 50 Pkg
K0175EX DECnet Connectivity SW Pkg (V3.x)
K0175EZ Display Utilities 50 SW Pkg (V3.x)
K0175GH Allen Bradley DH Redundant SW 50 Pkg
K0175GJ Allen Bradley DH Gateway SW 50 Pkg
K0175GK Panel Display Processor 10 SW 50 Pkg (V3.x)
K0175GL Modicon Gateway SW 50 Pkg
K0175GM Tank Processor 10 SW 50 Pkg
K0175GN Dev Integrator 15 SW Pkg (V3.x) Basic ASCII 3.5"
K0175GP Instrument Gateway SW 50 Pkg (Ver 3.x)
K0175GQ SPECTRUM I/F Processor SW 50 Pkg
K0175HA INTERSPEC Integrator SW Pkg (3.5 in) (V3.x)
K0175HB Integrator 30 Allen-Bradley PLC's SW Pkg (3.5 in) (V3.x)
K0175HC Integrator 30 For Modicon PLC's SW Pkg (3.5 in) (V3.x)
K0175HD INT30 SW Pkg (V3.x) - Basic ASCII (3.5 in)
K0175HJ Statistical Process Control 50 SW Pkg (V3.x)
K0175HK System Configuration 50 3.5 SW Pkg (V3.x)
K0175HT SPECTRUM I/F Processor Redundant SW 50 Pkg
K0175HU Workstation Processor 20 (WP20) SW 50 Pkg
K0175HV Workstation Processor 30 (WP30) SW 50 Pkg
K0175HW Loadable Document 50 SW Pkg
K0175HX Report Writer 50 SW Pkg (V3.x)
K0175JA 50 Series Boot Tape
K0175JD Control Processor 10 SW Pkg (V6.x)
K0175JL Control Processor 30 SW Pkg (V6.x)
K0175JQ AB Data Highway Redundant SW Pkg (V6.x)
K0175JR AB Data Highway Gateway SW Pkg (V6.x)
K0175JU Modicon Gateway SW Pkg (V6.x)
K0175JZ Instrument Gateway 10 SW Pkg (V6.1)
K0175KB SPECTRUM Interface Processor SW Pkg (V6.x)
K0175KC SPECTRUM I/F Processor (Redundant) SW Pkg (V6.x)
K0175KE Info Network Interface 15 SW Pkg (V6.1)
K0175KF INTERSPEC Integrator 30 SW Pkg (V6.x)
K0175KG Integrator 30 For AB PLC SW Pkg (V6.x)
K0175KH Integrator 30 For MG PC SW Pkg (V6.x)
K0175LH Control Processor 40 SW Pkg (V6.x)
K0175LJ Modbus Plus Integrator SW Pkg (V6.2)
K0175LK Modbus+ Integrator (Redundant) SW Pkg (V6.x)
K0175MP Control Processor 10 SW Pkg (V4.3)
K0175MW Control Processor 30 SW Pkg (V4.3)
K0175NB AB Data Highway Gateway, Redundant SW Pkg (V4.3)
K0175NC AB Data Highway Gateway SW Pkg (V4.3)
K0175NE Modicon Gateway SW Pkg (V4.3)
K0175NK Instrument Gateway 10 SW Pkg (V4.3)
K0175NM SPECTRUM Interface Processor SW Pkg (V4.3)
K0175NN SPECTRUM I/F Processor Redundant SW Pkg (V4.3)
K0175NQ Information Network Interface 15 SW Pkg (V4.3)
K0175NR INTERSPEC Integrator 30 SW Pkg (V4.3)
K0175NS Integrator 30 For AB PLC SW Pkg (V4.3)
K0175NT Integrator 30 For MG PLC SW Pkg (V4.3)
K0175PT Control Processor 40 SW Pkg (V4.3)
K0175PU Modbus Plus Integrator SW Pkg (V4.3)
K0175PV Modbus Plus Integrator, Redundant SW Pkg (V4.3)
K0175RF SPECTRUM Slave Gateway SW Pkg (V4.3)
K0175RG Display Processor 10 SW Pkg (V4.3)
K0175RH Tank Processor 10 SW Pkg (V4.3)
K0175RJ SPECTRUM Slave Gateway SW Pkg (V6.1)
K0175RK Panel Display Processor 10 SW 50 Pkg (V6.1)
K0175RL Tank Processor 10 SW Pkg (V6.1)
K0175SP Control Processor 60 SW Pkg V6.2
K0175TC Micro I/A Station SW Pkg V6.2
K0175VQ FoxCAE V5.0 SW Media Kit
K0175ZC PACTware Field Device Tool 1.2
K0200AA AP10 V3.0 Upgrade Lic
K0200AB AP20 V3.0 Upgrade Lic
K0200AC AP10 V3.0 Day 0 Streaming Tape
K0200AD AP20 V3.0 Day 0 Streaming Tape
K0200AE AP10 Backup/Restore Diskette
K0200AY 761 Series Configurator SW Pkg (V3.x)