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)背景OB
OB100(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(空操作)用户不需要用户不需要修改调用空操作的程序。