⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pwm-twido.twd

📁 使用TWIDO ,PLC 开发PWM实例,PWM输出驱动LED 亮度,100级亮度等级.
💻 TWD
📖 第 1 页 / 共 2 页
字号:
        <ListInstruction>LD    [ %MW100 &lt; 200 ]</ListInstruction>
        <ListInstruction>R     %Q0.2.1</ListInstruction>
        <ListInstruction>R     %Q0.2.2</ListInstruction>
        <ListInstruction>R     %Q0.2.3</ListInstruction>
        <ListInstruction>RET</ListInstruction>
        <ListInstruction>SR5:</ListInstruction>
        <ListInstruction>LDR   %I0.0.0</ListInstruction>
        <ListInstruction>S     %M0</ListInstruction>
        <ListInstruction>S     %Q0.0.2</ListInstruction>
        <ListInstruction>R     %Q0.0.3</ListInstruction>
        <ListInstruction>LDR   %I0.0.1</ListInstruction>
        <ListInstruction>R     %M0</ListInstruction>
        <ListInstruction>R     %Q0.0.2</ListInstruction>
        <ListInstruction>S     %Q0.0.3</ListInstruction>
        <ListInstruction>RET</ListInstruction>
        <ListInstruction>SR6:</ListInstruction>
        <ListInstruction>LD    1</ListInstruction>
        <ListInstruction>[ %MW10 := 16#104 ]</ListInstruction>
        <ListInstruction>[ %MW11 := 16#0 ]</ListInstruction>
        <ListInstruction>LD    %M0</ListInstruction>
        <ListInstruction>JMPCN %L1</ListInstruction>
        <ListInstruction>[ %MW12 := 16#0101 ]</ListInstruction>
        <ListInstruction>JMP   %L2</ListInstruction>
        <ListInstruction>%L1:</ListInstruction>
        <ListInstruction>LD    1</ListInstruction>
        <ListInstruction>[ %MW12 := 16#0000 ]</ListInstruction>
        <ListInstruction>%L2:</ListInstruction>
        <ListInstruction>LD    1</ListInstruction>
        <ListInstruction>[ %MW13 := 16#0000 ]</ListInstruction>
        <ListInstruction>LD    1</ListInstruction>
        <ListInstruction>AND   %MSG2.D</ListInstruction>
        <ListInstruction>[ EXCH1 %MW10:8 ]</ListInstruction>
        <ListInstruction>RET</ListInstruction>
        <ListInstruction>$</ListInstruction>
        <ProgramValidated>TRUE</ProgramValidated>
        <ProgramForceValidation>FALSE</ProgramForceValidation>
    </Program>
    <Context>
        <LgthObjTableUsed>1</LgthObjTableUsed>
        <ConstantConfiguredTag>0</ConstantConfiguredTag>
        <CounterConfiguredTag>0</CounterConfiguredTag>
        <DrumConfiguredTag>0</DrumConfiguredTag>
        <FCounterConfiguredTag>0</FCounterConfiguredTag>
        <LifoFifoConfiguredTag>0</LifoFifoConfiguredTag>
        <WordConfiguredTag>0</WordConfiguredTag>
        <PlsConfiguredTag>0</PlsConfiguredTag>
        <ShiftBitRegConfiguredTag>0</ShiftBitRegConfiguredTag>
        <ScheduleBlockConfiguredTag>0</ScheduleBlockConfiguredTag>
        <StepCounterConfiguredTag>0</StepCounterConfiguredTag>
        <TimerConfiguredTag>0</TimerConfiguredTag>
        <VFastCounterConfiguredTag>0</VFastCounterConfiguredTag>
        <MainWindow>
            <MinimizedWindowPos>
                <X>-1</X>
                <Y>-1</Y>
            </MinimizedWindowPos>
            <NormalWindowPos>
                <X>88</X>
                <Y>116</Y>
                <L>960</L>
                <H>697</H>
            </NormalWindowPos>
            <MaximizedWindowPos>
                <X>-1</X>
                <Y>-1</Y>
            </MaximizedWindowPos>
            <DisplayType>MAXIMIZED</DisplayType>
        </MainWindow>
        <NavigatorWindow>
            <NormalWindowPos>
                <X>0</X>
                <Y>22585852</Y>
                <L>0</L>
                <H>516390404</H>
            </NormalWindowPos>
            <MaximizedWindowPos>
                <X>0</X>
                <L>240</L>
            </MaximizedWindowPos>
            <DisplayType>MAXIMIZED</DisplayType>
        </NavigatorWindow>
        <ListEditorWindow>
            <MinimizedWindowPos>
                <X>-1</X>
                <Y>-1</Y>
            </MinimizedWindowPos>
            <NormalWindowPos>
                <X>22</X>
                <Y>29</Y>
                <L>814</L>
                <H>580</H>
            </NormalWindowPos>
            <MaximizedWindowPos>
                <X>-4</X>
                <Y>-30</Y>
            </MaximizedWindowPos>
            <DisplayType>MAXIMIZED</DisplayType>
            <Order>1</Order>
        </ListEditorWindow>
        <ProgramErrorWindow>
            <MinimizedWindowPos>
                <X>-1</X>
                <Y>-1</Y>
            </MinimizedWindowPos>
            <NormalWindowPos>
                <X>0</X>
                <Y>0</Y>
                <L>702</L>
                <H>589</H>
            </NormalWindowPos>
            <MaximizedWindowPos>
                <X>-4</X>
                <Y>-30</Y>
            </MaximizedWindowPos>
            <DisplayType>MAXIMIZED</DisplayType>
            <Order>2</Order>
        </ProgramErrorWindow>
        <ZoomViewer>ADJUSTED</ZoomViewer>
        <ZoomEditor>ADJUSTED</ZoomEditor>
    </Context>
    <PrintSettings>
        <PrintConfig>TRUE</PrintConfig>
        <PrintContent>TRUE</PrintContent>
        <FolderName>$</FolderName>
        <Header>
            <Left>
                <InfoType>0</InfoType>
            </Left>
            <Center>
                <InfoType>1</InfoType>
            </Center>
            <Right>
                <InfoType>9</InfoType>
            </Right>
        </Header>
        <Footer>
            <Left>
                <InfoType>5</InfoType>
            </Left>
            <Center>
                <InfoType>5</InfoType>
            </Center>
            <Right>
                <InfoType>6</InfoType>
            </Right>
        </Footer>
        <FirstPage>
            <Print>TRUE</Print>
            <Author>$</Author>
            <Index>$</Index>
            <PrintDate>TRUE</PrintDate>
            <Service>$</Service>
            <Owner>$</Owner>
            <Comments>$</Comments>
        </FirstPage>
        <History>
            <Print>TRUE</Print>
            <Date>$</Date>
            <Author>$</Author>
            <Version>$</Version>
            <Comments>$</Comments>
            <CreateDate>2007-10-19</CreateDate>
            <ModifyDate>2007-10-19</ModifyDate>
        </History>
        <HardwareSettings>
            <Print>TRUE</Print>
            <Base>
                <Reference>TRUE</Reference>
                <Description>FALSE</Description>
                <Inputs>FALSE</Inputs>
                <Outputs>FALSE</Outputs>
                <OnlyUsed>FALSE</OnlyUsed>
            </Base>
            <Modules>
                <Reference>TRUE</Reference>
                <Description>FALSE</Description>
                <ModuleConfig>FALSE</ModuleConfig>
                <Inputs>FALSE</Inputs>
                <Outputs>FALSE</Outputs>
                <OnlyUsed>FALSE</OnlyUsed>
            </Modules>
            <PrintSerialPort>FALSE</PrintSerialPort>
            <PrintModem>FALSE</PrintModem>
            <PrintEthernet>FALSE</PrintEthernet>
            <PrintEtherPort>FALSE</PrintEtherPort>
            <PrintRTC>FALSE</PrintRTC>
            <PrintCartridge>FALSE</PrintCartridge>
        </HardwareSettings>
        <ObjectsSettings>
            <Print>TRUE</Print>
            <AllSimple>TRUE</AllSimple>
            <PrintConstantDouble>FALSE</PrintConstantDouble>
            <PrintConstantWord>FALSE</PrintConstantWord>
            <PrintConstantFloat>FALSE</PrintConstantFloat>
            <PrintMemoryDouble>FALSE</PrintMemoryDouble>
            <PrintMemoryWord>FALSE</PrintMemoryWord>
            <PrintMemoryFloat>FALSE</PrintMemoryFloat>
            <PrintMemoryBit>FALSE</PrintMemoryBit>
            <AllBlocks>TRUE</AllBlocks>
            <PrintTimers>FALSE</PrintTimers>
            <PrintCounters>FALSE</PrintCounters>
            <PrintFastCounter>FALSE</PrintFastCounter>
            <PrintVeryFastCounter>FALSE</PrintVeryFastCounter>
            <PrintSchedulerBlock>FALSE</PrintSchedulerBlock>
            <PrintDrums>FALSE</PrintDrums>
            <PrintPID>FALSE</PrintPID>
            <PrintPLSPWM>FALSE</PrintPLSPWM>
            <PrintLIFOFIFO>FALSE</PrintLIFOFIFO>
            <PrintObjectsOnlyUsed>TRUE</PrintObjectsOnlyUsed>
            <PrintObjectsIndicateMax>FALSE</PrintObjectsIndicateMax>
        </ObjectsSettings>
        <MemoryReportSettings>
            <Print>TRUE</Print>
            <PrintMemStat>TRUE</PrintMemStat>
            <PrintMemAlloc>TRUE</PrintMemAlloc>
        </MemoryReportSettings>
        <ApplicationSettings>
            <Print>TRUE</Print>
        </ApplicationSettings>
        <ProgramSettings>
            <Print>TRUE</Print>
            <PrintProgramLadder>
                <ProgramRange>0</ProgramRange>
                <ProgramStart>0</ProgramStart>
                <ProgramEnd>9999</ProgramEnd>
                <ProgramAddresses>FALSE</ProgramAddresses>
                <ProgramSymbols>FALSE</ProgramSymbols>
                <ProgramAddrSymb>TRUE</ProgramAddrSymb>
                <ProgramEntireAddress>TRUE</ProgramEntireAddress>
                <ProgramInfo>FALSE</ProgramInfo>
            </PrintProgramLadder>
            <PrintProgramList>
                <ProgramRange>0</ProgramRange>
                <ProgramStart>0</ProgramStart>
                <ProgramEnd>9999</ProgramEnd>
                <ProgramAddresses>TRUE</ProgramAddresses>
                <ProgramSymbols>FALSE</ProgramSymbols>
                <ProgramInfo>FALSE</ProgramInfo>
                <ProgramRealMacroCode>FALSE</ProgramRealMacroCode>
            </PrintProgramList>
        </ProgramSettings>
        <SymbolsSettings>
            <Print>TRUE</Print>
            <PrintSortOrder>1</PrintSortOrder>
        </SymbolsSettings>
        <CrossRef>
            <Print>TRUE</Print>
            <AllCrossRef>TRUE</AllCrossRef>
            <CrossRefElements>0</CrossRefElements>
            <CrossRefByRung>FALSE</CrossRefByRung>
            <CrossRefAllRange>TRUE</CrossRefAllRange>
            <CrossRefStart>0</CrossRefStart>
            <CrossRefEnd>9999</CrossRefEnd>
        </CrossRef>
    </PrintSettings>
</TwidoApplication>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -