RM新时代投资官方网站|首入球时间

        1. <li id="bm585"><code id="bm585"></code></li>
          <strong id="bm585"></strong>
          <menu id="bm585"><source id="bm585"></source></menu>

          1. <dfn id="bm585"></dfn>
            <nav id="bm585"><dl id="bm585"><address id="bm585"></address></dl></nav>
              <ul id="bm585"></ul>
            <strong id="bm585"></strong>

            歡迎光臨昆侖通態(tài)觸摸屏系統(tǒng)集成商
            當(dāng)前位置
            首頁 > 新聞中心
            西門子STL程序中使用UC調(diào)用FB塊的地址寄存器2問題
            2020/11/11 21:16:36

            西門子STL程序中使用UC調(diào)用FB塊的地址寄存器2問題

            +AR2  P#168.0      UC    "TON"      +AR2  P#8024.0    這段程序中, +AR2  P#168.0在地址寄存器2為0的情況下,將指針地址指向了TON功能塊的多重背景數(shù)據(jù)塊的起始地址,那么+AR2  P#8024.0是將地址寄存器2中的數(shù)據(jù)清零嗎?在調(diào)用TON功能塊前后這兩個(gè)地址偏移之和是8192.0,我看其它調(diào)用的時(shí)候也說這樣,這樣做是如何實(shí)現(xiàn)地址寄存器2清零的?

            不會(huì)清零,
            LAR2 loads address register AR2 with the contents ACCU 1 (32-bit pointer).
            ACCU 1 and ACCU 2 remain unchanged. The instruction is executed without regard to, and without affecting, the status bits.
            Status word 

             BR CC 1 CC 0 OV OS OR STA RLO /FC 

            TAR2 transfers the contents of address register AR2 into ACCU 1 (32-bit pointer). The contents of ACCU 1 were previously saved into ACCU 2. The instruction is executed without regard to, and without affecting, the status bits.
            Status word 

             BR CC 1 CC 0 OV OS OR STA RLO /FC 

            +AR2 (add to AR2) adds an offset specified either in the instructionor in ACCU 1-L to the contents of AR. The integer (16 bit) is initially expanded to 2 bits with its correct sign and then added to the least significant 24 bits of AR2 (part of the relative address in AR2). The part of the area ID in AR2 (bits 24, 25, and 26) remains unchanged. The instruction is executed without regard to, and without affecting, the status bits.
            +AR2: The integer (16 bit) to be added to the contents of AR2 is specified by the value in ACCU 1-L. Values from -32768 to +32767 are permissible.
            +AR2 : The offset to be added is specified by the  address.
            Status word 

             BR CC 1 CC 0 OV OS OR STA RLO /FC 

            writes: - - - - - - - - - 


            Example 1 

            STL Explanation 

            L  +300 //Load the value in ACCU 1-L. 

            +AR1  //Add ACCU 1-L (integer, 16 bit) to AR2. 


            Example 2 

            STL Explanation 

            +AR1 P#300.0 //Add the offset 30.0 to AR2.

            聯(lián)系方式
            CONTACT US

            電話:13916183699

            郵箱:13916183699@139.com

            網(wǎng)址:http://szhongqiang.com

            地址:中國上海市青浦區(qū)北青公路7171號(hào)111-112室

            用手機(jī)掃描二維碼關(guān)閉
            RM新时代投资官方网站|首入球时间
                1. <li id="bm585"><code id="bm585"></code></li>
                  <strong id="bm585"></strong>
                  <menu id="bm585"><source id="bm585"></source></menu>

                  1. <dfn id="bm585"></dfn>
                    <nav id="bm585"><dl id="bm585"><address id="bm585"></address></dl></nav>
                      <ul id="bm585"></ul>
                    <strong id="bm585"></strong>

                        1. <li id="bm585"><code id="bm585"></code></li>
                          <strong id="bm585"></strong>
                          <menu id="bm585"><source id="bm585"></source></menu>

                          1. <dfn id="bm585"></dfn>
                            <nav id="bm585"><dl id="bm585"><address id="bm585"></address></dl></nav>
                              <ul id="bm585"></ul>
                            <strong id="bm585"></strong>

                            rm海淘网官网入口 新时代RM|国际平台 RM新时代还能玩多久 RM新时代新项目-百度知道 RM新时代APP官网