CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 88
Текст из файла (страница 88)
Until the processing is completed, any interrupts will remain masked for the indicated times.Generation and clearing of non-fatal errors:When a non-fatal error is generated and the error contents are registered atthe SRM1(-V2), or when an error is being cleared, interrupts will be maskedfor a maximum of 100 µs until the processing has been completed.514SectionSRM1(-V2) Cycle Time and I/O Response Time8-3Online editing:Interrupts will be masked for a maximum of 600 ms (i.e.: editing DM 6144 toDM 6655) when online editing is executed during operation.
In addition, thesystem processing may have to wait for a maximum of 170 µs during thisprocessing.8-3-6 SRM1(-V2) Instruction Execution TimesThe following table lists the execution times for SRM1(-V2) instructions.Basic InstructionsCodeMnemonicON executiontime (µs)OFF execution time (µs)Conditions (Top: min.; bottom: max.)---------------------------LDLD NOTANDAND NOTOROR NOTAND LDOR LDOUTOUT NOTSETRSETTIM0.970.970.77AnyRSET---0.78Any---0.39Any---2.72.85.7Constant for SV---CNT6.6DM for SVConstant for SV9.317.48.016.3ILJMP2.2DM for SV9.117.23.63.63.53.53.83.8Special Instructions and Expansion InstructionsCodeMnemonic0001020304050607080910NOPENDILILCJMPJMEFALFALSSTEPSNXTSFTON executiontime (µs)0.204.82.51.92.22.518.43.610.75.914.511KEEP21.049.13.012CNTR14.8DIFU23.26.7Conditions (Top: min.; bottom: max.)AnyWith 1-word shift registerWith 10-word shift registerWith 100-word shift registerAnyConstant for SV13OFF execution time (µs)DM for SVAny1.41.91.32.52.92.99.04.1Reset11.014.930.8Reset3.4Reset9.1IL1.41.41.4IL1.6IL6.6JMP1.41.41.4JMP1.7JMP6.5Shift5.8IL5.2JMP1.3515SectionSRM1(-V2) Cycle Time and I/O Response TimeCodeMnemonic14DIFDON executiontime (µs)6.415TIMH10.310.910.310.9Conditions (Top: min.; bottom: max.)AnyRegular execution, constant for SVInterrupt execution, constant for SVRegular execution, DM for SVInterrupt execution, DM for SV16WSFT16.223.0712.3With 1-word shift registerWith 10-word shift register17ASFT*18.625.9865.7Shifting a wordShifting 10 words9.19.925.6When comparing a constant to a wordWhen comparing two words21MOV9.19.524.9When transferring a constant to a wordWhen transferring from one word to another22MVN9.39.825.1When transferring a constant to a wordWhen transferring from one word to another17.232.0When converting a word to a word15.830.6When converting a word to a word9.917.3When shifting a word9.717.2When shifting a word8.516.1When rotating a word242526BINBCDASLASRIL5.7JMP1.3Reset14.115.622.823.9IL13.915.422.123.6JMP7.08.57.08.52.93.03.0When comparing two DM3.0When transferring DM to DM3.0When transferring DM to DM3.0When converting DM to DM3.0When converting DM to DM2.9When shifting DM3.0When shifting DM27ROL28ROR8.516.1When rotating a word29COM10.517.7When inverting a word30ADD15.916.439.5Constant + word → wordWord + word → word2.9When rotating DM2.9When rotating DM3.0When inverting DM3.1DM + DM → DM31SUB15.616.338.6Constant – word → wordWord – word → word32MUL29.728.551.6Constant word → wordWord word → word33DIV27.228.553.1Word ÷ constant → wordword ÷ word → word516Shift5.8Shifting 1,023 words via DMCMP23OFF execution time (µs)With 1,024-word shift register using DM203.0DM – DM → DM3.0DM DM → DMDM ÷ DM → DM8-32.9SectionSRM1(-V2) Cycle Time and I/O Response TimeCodeMnemonic34ANDW35ORW36XORWON executiontime (µs)14.315.237.3Conditions (Top: min.; bottom: max.)Constant Ɠ word → wordWord Ɠ word → wordOFF execution time (µs)2.9DM Ɠ DM → DM14.315.237.3Constant V word → wordWord V word → word14.315.237.3Constant V word → wordWord V word → word2.9DM V DM → DM2.9DM V DM → DM37XNRW14.315.237.3Constant V word → wordWord V word → word38INC9.917.3When incrementing a word39DEC10.217.4When decrementing a word4041STCCLC3.53.0Any2.92.946MSG11.319.4With message in words2.947RXD*39.1116.8Word specification, 1 byte input48TXD*31.3266.526.734.0Word specification, 1 byte input (RS-232C)With message in DMDM specification, 256 bytes input (Host Link)SBB17.017.840.2Constant – word → wordWord – word → word52MLB19.120.143.5Constant word → wordWord word → word19.520.443.7Word ÷ constant → wordWord ÷ word → word26.749.9Word + word → word26.849.9Word – word → word81.4106.2Word word → word76.9101.8Word ÷ word → word16.932.9Comparing words565760SUBLMULLDIVLCMPL2.9DM specification, 256 bytes input (RS-232C)Word specification, 1 byte input (Host Link)51552.9DM specification, 256 bytes inputConstant + word → wordWord + word → wordADDL2.9When decrementing DM16.817.639.9542.9When incrementing DMADBDVB2.9DM V DM → DM50538-33.0DM + DM → DM3.0DM – DM → DM3.0DM DM → DM3.0DM ÷ DM → DM3.0DM + DM → DM3.0DM – DM → DM3.0DM DM → DM3.0DM ÷ DM → DM2.9Comparing DM517SectionSRM1(-V2) Cycle Time and I/O Response TimeCodeMnemonic66SCL*67BCNT*6869BCMP*STIM*70XFER71BSET73XCHG74SLD75SRD76MLPX77DMPX7880518SDECDISTON executiontime (µs)69.591.526.92.29 ms41.441.964.534.749.535.350.033.949.511.422.924.0902.015.215.7565.216.231.513.626.71.54 ms13.626.61.54 ms25.548.935.158.126.849.921.321.945.734.335.359.3Conditions (Top: min.; bottom: max.)OFF execution time (µs)Word specification3.0DM specificationCounting a word3.0Counting 6,656 words via DMComparing constant, results to wordComparing word, results to wordComparing DM, results to DMWord specification, one-shot timer start3.03.0DM specification, one-shot timer startWord specification, scheduled interrupt startDM specification, scheduled interrupt startWords specification, timer readDM specification timer readWord specification, timer stopWhen transferring a constant to a wordWhen transferring a word to a wordWhen transferring 1,024 words using DMWhen setting a constant to 1 wordWhen setting word constant to 10 wordsWhen setting DM to 1,024 wordsWord → word3.03.03.1DM → DMShifting 1 wordShifting 10 word3.0Shifting 1024 words using DMShifting 1 wordShifting 10 word3.0Shifting 1,024 words using DMWhen decoding word to word3.0When decoding DM to DMWhen encoding word to word3.0When encoding DM to DMWhen decoding word to word2.9When decoding DM to DMWhen setting a constant to a word + a wordWhen setting a word to a word + a wordWhen setting DM to DM +DMWhen setting a constant to a stackWhen setting a word to a stackWhen setting DM to a stack via DM8-33.0SectionSRM1(-V2) Cycle Time and I/O Response TimeCodeMnemonic81COLL82MOVB83MOVD84SFTR85TCMP86ASC91929399SBSSBNRETMCROON executiontime (µs)21.421.844.934.033.9892.0Conditions (Top: min.; bottom: max.)When setting a constant + a word to a wordWhen setting a word + a word to a word8-3OFF execution time (µs)3.0When setting DM + DM to DMWhen setting a word + constant to FIFO stackWhen setting a word + word to FIFO stackWhen setting a DM + DM toFIFO stack via DM35.436.160.5When setting a word + constant to LIFO stackWhen setting a word + word to LIFO stack18.219.042.116.317.639.921.026.9718.530.030.753.130.053.713.2--7.826.843.5When transferring a constant to a wordWhen transferring one word to anotherWhen setting a DM + DM toLIFO stack via DM3.0When transferring DM to DMWhen transferring a constant to a wordWhen transferring one word to another2.9When transferring DM to DMShifting 1 wordShifting 10 word3.0Shifting 1,024 words using DMComparing constant to word-set tableComparing word to word-set table3.0Comparing DM to DM-set tableWord → wordDM → DMAnyWith word-set I/O operands3.03.01.31.33.0With DM-set I/O operandsNote Those instructions marked with an asterisk are expansion instructions.Expansion Instructions without Default Function CodesCodeMnemonic---FCS---HEX---NEG---PID---STUPON executiontime (µs)23.4Conditions (Top: min.; bottom: max.)Adding one word and outputting to word643.7Adding 999 words and outputting to DM43.6DM → DM73.5DM → DM46.048.065.5420.0452.063.084.551.2Converting constant to wordConverting word to word58.2Transferring word to wordConverting DM to DMInitializing word to wordOFF execution time (µs)3.03.03.03.0Initializing DM to DMSampling word to wordSampling DM to DMTransferring constant to word3.0519SectionSRM1(-V2) Cycle Time and I/O Response TimeCodeMnemonic---ZCP520ON executiontime (µs)45.046.569.0Conditions (Top: min.; bottom: max.)Comparing a word to a constant rangeComparing a word to a word rangeComparing DM to DM8-3OFF execution time (µs)3.0SECTION 9TroubleshootingThis section describes how to diagnose and correct the hardware and software errors that can occur during PC operation.9-19-29-39-49-59-69-79-8Introduction .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Programming Console Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Programming Errors . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .User-defined Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Operating Errors . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-5-1 Non-fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-5-2 Fatal Errors . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-5-3 Other Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Error Log . . . . . . . . . . . . . . . . . . . . . . . .