西门子OB块的作用OB1(FreeCycle)顺序扫描OB10~OB17(Time-Of-DayInterrupt)时间-日期中断OB20~OB23(Time-DelayInterrupt)时间延迟中断OB30~OB38(CyclicInterrupt)周期性中断OB40~OB47(HardwareInterrupt)硬件中断OB55(StatusInterrupt)状态中断OB56(UpdateInterrupt)升级中断OB57(ManufacturerInterrupt)厂商专用中断OB61~OB64(SynchronousCycleInterrupt)异步周期中断OB70(I/ORedundancyError)I/O冗余错误OB72(CPURedundancyError)CPU冗余错误OB73(CommunicationError)通信错误OB80(TimeError)时间错误OB81(PowerSupplyError)电源错误OB82(DiagnosticInterrupt)诊断中断OB83(Insert/RemoveInterrupt)插/拔中断OB84(CPUHardwareFault)CPU硬件错误OB85(PriorityClassError)优先级错误OB86(RackFailure)机架错误OB87(CommunicationError)通信错误OB88(ProcessingInterrupt)过程错误OB90(BackgroundOB)背景OBOB100(WarmRestart)暖启动OB101(HotRestart)热启动OB102(ColdRestart冷启动OB121(ProgrammingError)编程错误OB122(I/OAccessError)I/O存储错误注:OB55,OB56,OB57,OB61,OB62,OB63,OB64,OB81,OB84,OB87,OB88,OB90是NOP(空操作)用户不需要用户不需要修改调用空操作的程序。