<ins id="bmhci"><small id="bmhci"></small></ins>
  • <wbr id="bmhci"><span id="bmhci"></span></wbr>
  • 油氣儲(chǔ)運(yùn)網(wǎng)

    標(biāo)題: SPS模擬順序輸送中intran文件的編寫(xiě) [打印本頁(yè)]

    作者: 流年堪佳    時(shí)間: 2016-5-31 14:56
    標(biāo)題: SPS模擬順序輸送中intran文件的編寫(xiě)
    在模擬中,intran文件為:
    DEFINE BATCH_CTRL = 0
    DEFINE.SEQUENCE L_GAS (_SIZE_)
    { OPEN B_GASOLINE
    POKE B_GASOLINE:CF = 0
    WAIT.UNTIL (B_GASOLINE:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 1
    CLOSE B_GASOLINE }
    DEFINE.SEQUENCE L_DIESEL (_SIZE_)
    { OPEN B_DIESEL
    POKE B_DIESEL:CF = 0
    WAIT.UNTIL (B_DIESEL:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 0
    CLOSE B_DIESEL }
    DEFINE.SEQUENCE L_WATER (_SIZE_)
    { OPEN B_WATER
    POKE B_WATER:CF = 0
    WAIT.UNTIL (B_WATER:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 2
    CLOSE B_WATER }
    DEF.SEQ LBA (_SIZE_)
    { WAIT.UNTIL(BATCH_CTRL = 0 )
    SUB.SEQ L_GAS (_SIZE_ )
    WAIT.UNTIL(BATCH_CTRL = 1 )
    SUB.SEQ L_WATER (_SIZE_ )
    WAIT.UNTIL(BATCH_CTRL = 2 )
    SUB.SEQ L_DIESEL (_SIZE_ ) }
    WHENEVER ((N3:NFLU = WATER & B1_WATER:ST = CLOSED ))
    {OPEN B1_WATER
    CLOSE B1_GASOLINE
    CLOSE B1_DIESEL }
    WHENEVER ((N3:NFLU = GASOLINE & B1_GASOLINE:ST = CLOSED ))
    {OPEN B1_GASOLINE
    CLOSE B1_WATER
    CLOSE B1_DIESEL }
    WHENEVER ((N3:NFLU = DIESEL & B1_DIESEL:ST = CLOSED ))
    {OPEN B1_DIESEL
    CLOSE B1_WATER
    CLOSE B1_GASOLINE }
    DEFINE BATCH_CTRL = 0
    DEFINE.SEQUENCE L_GAS (_SIZE_)
    { OPEN B_GASOLINE
    POKE B_GASOLINE:CF = 0
    WAIT.UNTIL (B_GASOLINE:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 1
    CLOSE B_GASOLINE }
    DEFINE.SEQUENCE L_DIESEL (_SIZE_)
    { OPEN B_DIESEL
    POKE B_DIESEL:CF = 0
    WAIT.UNTIL (B_DIESEL:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 0
    CLOSE B_DIESEL }
    DEFINE.SEQUENCE L_WATER (_SIZE_)
    { OPEN B_WATER
    POKE B_WATER:CF = 0
    WAIT.UNTIL (B_WATER:CF >= _SIZE_) /*累計(jì)流量
    SET BATCH_CTRL = 2
    CLOSE B_WATER }
    DEF.SEQ LBA (_SIZE_)
    { WAIT.UNTIL(BATCH_CTRL = 0 )
    SUB.SEQ L_GAS (_SIZE_ )
    WAIT.UNTIL(BATCH_CTRL = 1 )
    SUB.SEQ L_WATER (_SIZE_ )
    WAIT.UNTIL(BATCH_CTRL = 2 )
    SUB.SEQ L_DIESEL (_SIZE_ ) }
    WHENEVER ((N3:NFLU = WATER & B1_WATER:ST = CLOSED ))
    {OPEN B1_WATER
    CLOSE B1_GASOLINE
    CLOSE B1_DIESEL }
    WHENEVER ((N3:NFLU = GASOLINE & B1_GASOLINE:ST = CLOSED ))
    {OPEN B1_GASOLINE
    CLOSE B1_WATER
    CLOSE B1_DIESEL }
    WHENEVER ((N3:NFLU = DIESEL & B1_DIESEL:ST = CLOSED ))
    {OPEN B1_DIESEL
    CLOSE B1_WATER
    CLOSE B1_GASOLINE }
    運(yùn)行出來(lái)的結(jié)果為

    但教程給出的運(yùn)行結(jié)果為

    自己不知道是那塊設(shè)置有問(wèn)題,希望給予指導(dǎo)





    歡迎光臨 油氣儲(chǔ)運(yùn)網(wǎng) (http://black-hills-tours.com/) Powered by Discuz! X3.4