ITTS:ITTS:ITTS Scrip:Change Format

出自ITTS
於 2020年6月17日 (三) 09:24 由 Vincentcheng2116討論 | 貢獻 所做的修訂 →‎Example: LRC calculation
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

check sum 計算 (用於hex code check sum 的計算)

Example: LRC calculation[編輯]

copy xml contents and paste to scrip editor

    <Item> 
      <Text> </Text> 
      <Description> original Str s1</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> variable</ItemSection1> 
      <ItemSection2> s1</ItemSection2> 
      <ItemCommand> str=</ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content></Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content></Content>
          <Description>Max</Description>
        </i2>
        <i3>
          <Content>["01069004000F"]</Content>
          <Description>Value3</Description>
        </i3>
      </Parameter> 
    </Item> 
    <Item> 
      <Text> </Text> 
      <Description> proc add space LRC remove space</Description> 
      <ItemType> 2</ItemType> 
      <Skip> 1</Skip> 
      <ItemSection1> variable</ItemSection1> 
      <ItemSection2> s1_LRC</ItemSection2> 
      <ItemCommand> str=</ItemCommand> 
      <FailAction> </FailAction> 
      <FieldName> </FieldName> 
      <FieldNumber> </FieldNumber> 
      <ErrorCode> </ErrorCode> 
      <RetryTimes> 0</RetryTimes> 
      <RetryDelay> 0</RetryDelay> 
      <Process> </Process> 
      <FieldType> </FieldType> 
      <Parameter> 
        <i1>
          <Content></Content>
          <Description>Min</Description>
        </i1>
        <i2>
          <Content></Content>
          <Description>Max</Description>
        </i2>
        <i3>
          <Content>['&STR_VAR:S1':s([all])+'&STR_VAR:S1':LRC([all])];</Content>
          <Description>Value3</Description>
        </i3>
      </Parameter> 
    </Item>