EN
Mitsubishi Electronics logo
Official user manual

Mitsubishi Electronics QCPU

1204 pages·38.8 MB·Welding System·PDF·ENDEFRITNLJA
Mitsubishi Electronics QCPU
Table of Contents 417 sections QCPU Programming Manual (Common Instruction) 1/2 · SAFETY PRECAUTIONS · REVISIONS · INTRODUCTION · … ShowHide
QCPU Programming Manual (Common Instruction) 1/2p.1SAFETY PRECAUTIONSp.3REVISIONSp.4INTRODUCTIONp.5CONTENTSp.6MANUALSp.161 GENERAL DESCRIPTIONp.191.1 Related Programming Manualsp.201.2 Abbreviations and Generic Namesp.232 INSTRUCTION TABLESp.272.1 Types of Instructionsp.282.2 How to Read Instruction Tablesp.302.3 Sequence Instructionsp.322.3.1 Contact instructionsp.322.3.2 Association instructionsp.332.3.3 Output instructionsp.342.3.4 Shift instructionsp.342.3.5 Master control instructionsp.352.3.6 Termination instructionsp.352.3.7 Other instructionsp.352.4 Basic instructionsp.362.4.1 Comparison operation instructionsp.362.4.2 Arithmetic operation instructionsp.422.4.3 Data conversion instructionsp.482.4.4 Data transfer instructionsp.502.4.5 Program branch instructionsp.532.4.6 Program execution control instructionsp.532.4.7 I/O refresh instructionsp.532.4.8 Other convenient instructionsp.542.5 Application Instructionsp.552.5.1 Logical operation instructionsp.552.5.2 Rotation instructionsp.582.5.3 Shift instructionsp.592.5.4 Bit processing instructionsp.602.5.5 Data processing instructionsp.612.5.6 Structure creation instructionsp.642.5.7 Data table operation instructionsp.662.5.8 Buffer memory access instructionsp.672.5.9 Display instructionsp.672.5.10 Debugging and failure diagnosis instructionsp.682.5.11 Character string processing instructionsp.692.5.12 Special function instructionsp.722.5.13 Data control instructionsp.752.5.14 Switching instructionsp.772.5.15 Clock instructionsp.782.5.16 Expansion clock instructionp.812.5.17 Program control instructionsp.822.5.18 Other instructionsp.832.5.19 Instructions for Data Linkp.852.5.20 Multiple CPU dedicated instructionp.862.5.21 Multiple CPU high-speed transmission dedicated instructionp.862.5.22 Redundant system instructions (For Redundant CPU)p.873 CONFIGURATION OF INSTRUCTIONSp.893.1 Configuration of Instructionsp.903.2 Designating Datap.913.2.1 Using bit datap.913.2.2 Using word (16 bits) datap.923.2.3 Using double word data (32 bits)p.943.2.4 Using real number datap.963.2.5 Using character string datap.993.3 Indexingp.1003.4 Indirect Specificationp.1113.5 Reducing Instruction Processing Timep.1133.5.1 Subset Processingp.1133.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU)p.1143.6 Cautions on Programming (Operation Errors)p.1153.7 Conditions for Execution of Instructionsp.1213.8 Counting Step Numberp.1223.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Devicep.1273.10 Precautions for Use of File Registersp.1324 HOW TO READ INSTRUCTIONSp.1375 SEQUENCE INSTRUCTIONSp.1415.1 Contact Instructionsp.1425.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)p.1425.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)p.1455.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)p.1475.2 Association Instructionsp.1505.2.1 Ladder block series connection and parallel connection (ANB,ORB)p.1505.2.2 Operation results push,read,pop (MPS,MRD,MPP)p.1525.2.3 Operation results inversion (INV)p.1555.2.4 Operation result conversions (MEP,MEF)p.1575.2.5 Pulse conversions of edge relay operation results (EGP,EGF)p.1585.3 Output Instructionsp.1605.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)p.1605.3.2 Timers (OUT T,OUTH T)p.1625.3.3 Counter (OUT C)p.1665.3.4 Annunciator output (OUT F)p.1685.3.5 Setting devices (except for annunciators) (SET)p.1705.3.6 Resetting devices (except for annunciators) (RST)p.1725.3.7 Setting and resetting the annunciators (SET F,RST F)p.1755.3.8 Leading edge and trailing edge outputs (PLS,PLF)p.1775.3.9 Bit device output reverse (FF)p.1805.3.10 Pulse conversions of direct outputs (DELTA(P))p.1825.4 Shift Instructionsp.1845.4.1 Bit device shifts (SFT(P))p.1845.5 Master Control Instructionsp.1875.5.1 Setting and resetting the master control (MC,MCR)p.1875.6 Termination Instructionsp.1915.6.1 End main routine program (FEND)p.1915.6.2 End sequence program (END)p.1935.7 Other instructionsp.1955.7.1 Sequence program stop (STOP)p.1955.7.2 No operations (NOP,NOPLF,PAGE n)p.1976 BASIC INSTRUCTIONSp.2016.1 Comparison Operation Instructionsp.2026.1.1 BIN 16-bit data comparisons (=,<>,>,<=,<,>=)p.2026.1.2 BIN 32-bit data comparisons (D=,D<>,D>,D<=,D<,D>=)p.2046.1.3 Floating decimal point data comparisons (Single precision) (E=,E<>,E>,E<=,E<,E>=)p.2066.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED<>,ED>,ED<=,ED<,ED>=)p.2086.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)p.2116.1.6 BIN block data comparisons (BKCMP □ ,BKCMP □ P)p.2156.1.7 BIN 32-bit block data comparisons (DBKCMP □ ,DBKCMP □ P)p.2186.2 Arithmetic Operation Instructionsp.2226.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))p.2226.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))p.2266.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))p.2306.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))p.2326.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))p.2346.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))p.2386.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))p.2426.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))p.2446.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))p.2466.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))p.2506.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))p.2546.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))p.2566.2.13 Block addition and subtraction (BK+(P),BK-(P))p.2596.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))p.2626.2.15 Linking character strings ($+(P))p.2656.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))p.2696.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))p.2716.3 Data conversion instructionsp.2736.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))p.2736.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))p.2756.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))p.2786.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))p.2816.3.5 Conversion from floating decimal point data to BIN16and 32-bit data (Single precision) (INT(P),DINT(P))p.2836.3.6 Conversion from floating decimal point data to BIN16and 32-bit data (Double precision) (INTD(P),DINTD(P))p.2866.3.7 Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))p.2886.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))p.2896.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))p.2906.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))p.2926.3.11 Complement of 2 of BIN 16and 32-bit data (sign reversal) (NEG(P),DNEG(P))p.2946.3.12 Floating-point sign invertion (Single precision) (ENEG(P))p.2966.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))p.2976.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))p.2986.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))p.3006.3.16 Single precision to Double precision conversion (ECON(P))p.3026.3.17 Double precision to Single precision conversion (EDCON(P))p.3046.4 Data Transfer Instructionsp.3066.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))p.3066.4.2 Floating-point data transfer (Single precision) (EMOV(P))p.3086.4.3 Floating-point data transfer (Double precision) (EDMOV(P))p.3106.4.4 Character string transfers ($MOV(P))p.3126.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))p.3146.4.6 Block 16-bit data transfers (BMOV(P))p.3176.4.7 Identical 16-bit data block transfers (FMOV(P))p.3206.4.8 Identical 32-bit data block transfers (DFMOV(P))p.3226.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))p.3246.4.10 Block 16-bit data exchanges (BXCH(P))p.3266.4.11 Upper and lower byte exchanges (SWAP(P))p.3286.5 Program Branch Instructionsp.3296.5.1 Pointer branch instructions (CJ,SCJ,JMP)p.3296.5.2 Jump to END (GOEND)p.3326.6 Program Execution Control Instructionsp.3336.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)p.3336.6.2 Recovery from interrupt programs (IRET)p.3396.7 I/O Refresh Instructionsp.3416.7.1 I/O refresh (RFS(P))p.3416.8 Other Convenient Instructionsp.3436.8.1 Counter 1-phase input up or down (UDCNT1)p.3436.8.2 Counter 2-phase input up or down (UDCNT2)p.3466.8.3 Teaching timer (TTMR)p.3496.8.4 Special function timer (STMR)p.3516.8.5 Rotary table shortest direction control (ROTC)p.3546.8.6 Ramp signal (RAMP)p.3576.8.7 Pulse density measurement (SPD)p.3606.8.8 Fixed cycle pulse output (PLSY)p.3626.8.9 Pulse width modulation (PWM)p.3646.8.10 Matrix input (MTR)p.3667 APPLICATION INSTRUCTIONSp.3697.1 Logical operation instructionsp.3707.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))p.3717.1.2 Block logical products (BKAND(P))p.3777.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))p.3797.1.4 Block logical sum operations (BKOR(P))p.3857.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))p.3877.1.6 Block exclusive OR operations (BKXOR(P))p.3937.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))p.3957.1.8 Block exclusive NOR operations (BKXNR(P))p.4017.2 Rotation instructionp.4037.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))p.4037.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))p.4067.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))p.4097.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))p.4127.3 Shift instructionp.4147.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))p.4147.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))p.4177.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))p.4197.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))p.4227.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))p.4247.4 Bit processing instructionsp.4277.4.1 Bit set and reset for word devices (BSET(P),BRST(P))p.4277.4.2 Bit tests (TEST(P),DTEST(P))p.4297.4.3 Batch reset of bit devices (BKRST(P))p.4327.5 Data processing instructionsp.4347.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))p.4347.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))p.4377.5.3 Decoding from 8 to 256 bits (DECO(P))p.4397.5.4 Encoding from 256 to 8 bits (ENCO(P))p.4417.5.5 7-segment decode (SEG(P))p.4437.5.6 4-bit dissociation of 16-bit data (DIS(P))p.4457.5.7 4-bit linking of 16-bit data (UNI(P))p.4477.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))p.4497.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))p.4537.5.10 Maximum value search for 16and 32-bit data (MAX(P),DMAX(P))p.4577.5.11 Minimum value search for 16and 32-bit data (MIN(P),DMIN(P))p.4607.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)p.4637.5.13 Calculation of totals for 16-bit data (WSUM(P))p.4677.5.14 Calculation of totals for 32-bit data (DWSUM(P))p.4697.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))p.4717.6 Structure creation instructionsp.4737.6.1 FOR to NEXT instruction loop (FOR,NEXT)p.4737.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))p.4767.6.3 Subroutine program calls (CALL(P))p.4787.6.4 Return from subroutine programs (RET)p.4837.6.5 Subroutine program output OFF calls (FCALL(P))p.4847.6.6 Subroutine calls between program files (ECALL(P))p.4887.6.7 Subroutine output OFF calls between program files (EFCALL(P))p.4937.6.8 Subroutine program call (XCALL)p.4977.6.9 Refresh instruction (COM)p.5027.6.10 Select Refresh Instruction (COM)p.5057.6.11 Select Refresh Instruction (CCOM)p.5097.6.12 Index modification of entire ladder (IX,IXEND)p.5127.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)p.5167.7 Data Table Operation Instructionsp.5197.7.1 Writing data to the data table (FIFW(P))p.5197.7.2 Reading oldest data from tables (FIFR(P))p.5217.7.3 Reading newest data from data tables (FPOP(P))p.5237.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))p.5257.8 Buffer memory access instructionp.5287.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))p.5287.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))p.5317.9 Display instructionsp.5347.9.1 Print ASCII code instruction (PR)p.5347.9.2 Print comment instruction (PRC)p.5377.9.3 Error display and annunciator reset instruction (LEDR)p.5407.10 Debugging and failure diagnosis instructionsp.5437.10.1 Special format failure checks (CHKST,CHK)p.5437.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)p.5477.11 Character string processing instructionsp.5517.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))p.5517.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))p.5547.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))p.5577.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))p.5607.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))p.5637.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))p.5667.11.7 Reading device comment data (COMRD(P))p.5697.11.8 Character string length detection (LEN(P))p.5727.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))p.5747.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))p.5807.11.11 Conversion from floating decimal point to character string data (ESTR(P))p.5857.11.12 Conversion from character string to floating decimal point data (EVAL(P))p.5927.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))p.5967.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))p.5987.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))p.6007.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))p.6037.11.17 Character string search (INSTR(P))p.6077.11.18 Insertion of character string (STRINS(P))p.6097.11.19 Deletion of character string (STRDEL(P))p.6117.11.20 Floating decimal point to BCD (EMOD(P))p.6137.11.21 From BCD format data to floating decimal point (EREXP(P))p.6167.12 Special function instructionsp.6187.12.1 SIN operation on floating-point data (Single precision) (SIN(P))p.6187.12.2 SIN operation on floating-point data (Double precision) (SIND(P))p.6207.12.3 COS operation on floating-point data (Single precision) (COS(P))p.6227.12.4 COS operation on floating-point data (Double precision) (COSD(P))p.6247.12.5 TAN operation on floating-point data (Single precision) (TAN(P))p.6267.12.6 TAN operation on floating-point data (Double precision) (TAND(P))p.6287.12.7 SIN-1 operation on floating point data (Single precision) (ASIN(P))p.6307.12.8 SIN-1 operation on floating-point data (Double precision) (ASIND(P))p.6337.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))p.6357.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))p.6377.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))p.6397.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))p.6417.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))p.6437.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))p.6457.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))p.6477.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))p.6497.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))p.6517.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))p.6537.12.19 Square root operation for floating-point data (Single precision) (SQR(P))p.6557.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))p.6577.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))p.6597.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))p.6627.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))p.6647.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))p.6667.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))p.6687.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))p.6707.12.27 Random number generation and series updates (RND(P),SRND(P))p.6727.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))p.6747.12.29 BCD type SIN operation (BSIN(P))p.6777.12.30 BCD type COS operations (BCOS(P))p.6797.12.31 BCD type TAN operation (BTAN(P))p.6817.12.32 BCD type SIN -1 operations (BASIN(P))p.6837.12.33 BCD type COS -1 operation (BACOS(P))p.6857.12.34 BCD type TAN -1 operations (BATAN(P))p.6877.13 Data Control Instructionsp.6897.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))p.6897.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))p.6927.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))p.6957.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))p.6987.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))p.7027.14 File register switching instructionsp.7057.14.1 Switching file register numbers (RSET(P))p.7057.14.2 Setting files for file register use (QDRSET(P))p.7077.14.3 File setting for comments (QCDSET(P))p.7107.15 Clock instructionsp.7127.15.1 Reading clock data (DATERD(P))p.7127.15.2 Writing clock data (DATEWR(P))p.7147.15.3 Clock data addition operation (DATE+(P))p.7167.15.4 Clock data subtraction operation (DATE-(P))p.7187.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))p.7207.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))p.7227.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)p.7247.15.8 Clock comparison (TM=,TM<>,TM>,TM<=,TM<,TM>=)p.7297.16 Expansion Clock Instructionsp.7347.16.1 Reading expansion clock data (S(P).DATERD)p.7347.16.2 Expansion clock data addition operation (S(P).DATE+)p.7377.16.3 Expansion clock data subtraction operation (S(P).DATE-)p.7407.17 Program control instructionsp.7437.17.1 Program standby instruction (PSTOP(P))p.7457.17.2 Program output OFF standby instruction (POFF(P))p.7467.17.3 Program scan execution registration instruction (PSCAN(P))p.7487.17.4 Program low speed execution registration instruction (PLOW(P))p.7507.17.5 Program execution status check instruction (PCHK)p.7527.18 Other instructionsp.7547.18.1 Resetting watchdog timer (WDT(P))p.7547.18.2 Timing pulse generation (DUTY)p.7567.18.3 Time check instruction (TIMCHK)p.7587.18.4 Direct 1-byte read from file register (ZRRDB(P))p.7597.18.5 File register direct 1-byte write (ZRWRB(P))p.7617.18.6 Indirect address read operations (ADRSET(P))p.7637.18.7 Numerical key input from keyboard (KEY)p.7647.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))p.7687.18.9 Reading Module Information (UNIRD(P))p.7707.18.10 Reading module model name(TYPERD(P))p.7747.18.11 Trace Set/Reset (TRACE,TRACER)p.7797.18.12 Writing Data to Designated File (SP.FWRITE)p.7817.18.13 Reading Data from Designated File (SP.FREAD)p.7927.18.14 Writing Data to Standard ROM (SP.DEVST)p.8047.18.15 Read Data from Standard ROM (S(P).DEVLD)p.8067.18.16 Load Program from Memory Card (PLOADP)p.8087.18.17 Unload Program from Program Memory (PUNLOADP)p.8117.18.18 Load + Unload (PSWAPP)p.8137.18.19 High-speed Block Transfer of File Register (RBMOV(P))p.816INDEXp.821WARRANTYp.833QCPU Programming Manual (Common Instruction) 2/2p.837SAFETY PRECAUTIONSp.839REVISIONSp.840INTRODUCTIONp.841CONTENTSp.842MANUALSp.8528 INSTRUCTIONS FOR DATA LINKp.8558.1 Network refresh instructionsp.8568.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)p.8568.2 Reading/Writing Routing Informationp.8608.2.1 Reading routing information (S(P)/Z(P).RTREAD)p.8608.2.2 Registering routing information (S(P)/Z(P).RTWRITE)p.8629 Multiple CPU dedicated instructionp.8659.1 Writing to the CPU Shared Memory of Host CPUp.8669.1.1 Write to Host CPU Shared Memory (S(P).TO)p.8689.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))p.8719.2 Reading from the CPU Shared Memory of another CPUp.8759.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))p.87610 QCPU INSTRUCTIONSp.88310.1 Overviewp.88410.2 Writing Devices to Another CPU (D(P).DDWR)p.89510.3 Reading Devices from Another CPU (D(P).DDRD)p.89911 QCPU INSTRUCTIONSp.90311.1 System Switching Instruction (SP.CONTSW)p.90412 ERROR CODESp.90712.1 Error Code Listp.90812.1.1 Error codesp.90912.1.2 Reading an error codep.90912.1.3 Error code list (1000 to 1999)p.91012.1.4 Error code list (2000 to 2999)p.92212.1.5 Error code list (3000 to 3999)p.94012.1.6 Error code list (4000 to 4999)p.95712.1.7 Error code list (5000 to 5999)p.97212.1.8 Error code list (6000 to 6999)p.97412.1.9 Error code list (7000 to 10000)p.98412.2 Canceling of Errorsp.989APPENDICESp.991Appendix 1 OPERATION PROCESSING TIMEp.992Appendix 1.1 Definitionp.992Appendix 1.2 Operation Processing Time of Basic Model QCPUp.993Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPUp.1011Appendix 1.4 Operation Processing Time of Universal Model QCPUp.1040Appendix 1.4.1 Subset instruction processing timep.1040Appendix 1.4.2 Processing time of instructions other than subset instructionp.1056Appendix 2 CPU PERFORMANCE COMPARISONp.1104Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPUp.1104Appendix 2.1.1 Usable devicesp.1104Appendix 2.1.2 I/O control modep.1105Appendix 2.1.3 Data that can be used by instructionsp.1105Appendix 2.1.4 Timer comparisonp.1106Appendix 2.1.5 Comparison of countersp.1107Appendix 2.1.6 Comparison of display instructionsp.1107Appendix 2.1.7 Instructions whose designation format has been changed (Except dedicated instructions for AnACPU and AnUCPU)p.1108Appendix 2.1.8 AnACPU and AnUCPU dedicated instructionsp.1109Appendix 3 SPECIAL RELAY LISTp.1110Appendix 4 SPECIAL REGISTER LISTp.1136Appendix 5 APPLICATION PROGRAM EXAMPLESp.1188Appendix 5.1 Concept of Programs which Perform Operations of Xn, n√Xp.1188INDEXp.1189WARRANTYp.1201
Page 1 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 1/2
Page 1 · click to enlarge
Page 1
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 1 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 2 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 3 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 4 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 5 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 6 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 7 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 8 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 9 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 10 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 11 · QCPU Programming Manual (Common Instruction) 1/2
Mitsubishi Electronics QCPU — QCPU Programming Manual (Common Instruction) 1/2 diagram (page 1)
Fig. 12 · QCPU Programming Manual (Common Instruction) 1/2
Page 2 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 1/2
Page 2 · click to enlarge
Page 2
Page 2 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 1/2
Page 3 of the Mitsubishi Electronics QCPU user manual — A-1
Page 3 · click to enlarge
Page 3

SAFETY PRECAUTIONS

(Always read these cautions before using the product)

Before using this product, please read this manual and the related manuals introduced in this manual, and pay full attention to safety to handle the product correctly.

Please store this manual in a safe place and make it accessible when required. Always forward a copy of the manual to the end user.

A-1

Page 4 of the Mitsubishi Electronics QCPU user manual — © 2008 MITSUBISHI ELECTRIC CORPORATION
Page 4 · click to enlarge
Page 4

REVISIONS

*The manual number is given on the bottom left of the back cover.

Print Date*Manual NumberRevision Dec., 2008SH (NA)-080809ENG-AFirst edition Mar., 2009SH (NA)-080809ENG-BPartial corrections Section 3.3, 3.8, 5.1.3, 6.1.7, 6.2.14, 7.3.3, 7.11.18, 7.11.19, 7.12.1.5,12.7, 7.12.11, 7.12.25, 7.12.26, 7.13.4, 7.13.5, 7.15.7, 7.15.8 Jul., 2009SH (NA)-080809ENG-CRevision because of function support by the Universal model QCPU having a serial number "11043" or later Partial corrections Section 2.1, 2.5.6, 2.5.18, 2.5.20, 7.6.9, 7.12.7, 7.12.11, 12.1.3, 12.1.4, APPENDIX 1.2, 1.3, 1.4.2, 3, 5.1 Additions Section 2.5.16, 7.16, 7.18.10 Modification Section 2.5.21 2.5.22, Section 2.5.22 2.5.21, Section 9.13 7.6.10, Section 9.14 7.6.1, Section 9.15 7.16, Section 9.15.1 7.16.1, Section 9.15.2 7.16.2, Section 9.15.3 7.16.3, Section 9.1 7.18.9, Section 9.2 7.18.11, Section 9.3 7.18.12, Section 9.4 7.18.13, Section 9.5 7.18.14, Section 9.6 7.18.15, Section 9.7 7.18.16, Section 9.8 7.18.17, Section 9.9 7.18.18, Section 9.10 7.18.19, Section 9.11 9.1, Section 9.11.1 9.1.1, Section 9.11.2 9.1.2, Section 9.12 9.2, Section 9.12.1 9.2.1, Chapter 10 11, Chapter 11 10

Japanese Manual Version SH-080804-B

This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.

© 2008 MITSUBISHI ELECTRIC CORPORATION

A-2

Page 5 of the Mitsubishi Electronics QCPU user manual — Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,
Page 5 · click to enlarge
Page 5

INTRODUCTION

This manual explains the common instructions required for programming of the QCPU.

  • The common instructions refer to all instructions except those dedicated to special function

modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC

instructions and ST instructions.

Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.

  • Relevant CPU module

Basic model QCPU Q00JCPU, Q00CPU, Q01CPU

High Perfomance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU

Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU

Redundant CPU Q12PRHCPU, Q25PRHCPU

Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,

Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU,

Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU,

Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,

Q20UDEHCPU

A-3

CPU module Model · Universal model QCPU

Page 6 of the Mitsubishi Electronics QCPU user manual — Table of Contents
Page 6 · Contents
Contents

Contents

QCPU Programming Manual (Common Instruction) 1/2p.1SAFETY PRECAUTIONSp.3REVISIONSp.4INTRODUCTIONp.5CONTENTSp.6MANUALSp.161 GENERAL DESCRIPTIONp.191.1 Related Programming Manualsp.201.2 Abbreviations and Generic Namesp.232 INSTRUCTION TABLESp.272.1 Types of Instructionsp.282.2 How to Read Instruction Tablesp.302.3 Sequence Instructionsp.322.3.1 Contact instructionsp.322.3.2 Association instructionsp.332.3.3 Output instructionsp.342.3.4 Shift instructionsp.342.3.5 Master control instructionsp.352.3.6 Termination instructionsp.352.3.7 Other instructionsp.352.4 Basic instructionsp.362.4.1 Comparison operation instructionsp.362.4.2 Arithmetic operation instructionsp.422.4.3 Data conversion instructionsp.482.4.4 Data transfer instructionsp.502.4.5 Program branch instructionsp.532.4.6 Program execution control instructionsp.532.4.7 I/O refresh instructionsp.532.4.8 Other convenient instructionsp.542.5 Application Instructionsp.552.5.1 Logical operation instructionsp.552.5.2 Rotation instructionsp.582.5.3 Shift instructionsp.592.5.4 Bit processing instructionsp.602.5.5 Data processing instructionsp.612.5.6 Structure creation instructionsp.642.5.7 Data table operation instructionsp.662.5.8 Buffer memory access instructionsp.672.5.9 Display instructionsp.672.5.10 Debugging and failure diagnosis instructionsp.682.5.11 Character string processing instructionsp.692.5.12 Special function instructionsp.722.5.13 Data control instructionsp.752.5.14 Switching instructionsp.772.5.15 Clock instructionsp.782.5.16 Expansion clock instructionp.812.5.17 Program control instructionsp.822.5.18 Other instructionsp.832.5.19 Instructions for Data Linkp.852.5.20 Multiple CPU dedicated instructionp.862.5.21 Multiple CPU high-speed transmission dedicated instructionp.862.5.22 Redundant system instructions (For Redundant CPU)p.873 CONFIGURATION OF INSTRUCTIONSp.893.1 Configuration of Instructionsp.903.2 Designating Datap.913.2.1 Using bit datap.913.2.2 Using word (16 bits) datap.923.2.3 Using double word data (32 bits)p.943.2.4 Using real number datap.963.2.5 Using character string datap.993.3 Indexingp.1003.4 Indirect Specificationp.1113.5 Reducing Instruction Processing Timep.1133.5.1 Subset Processingp.1133.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU)p.1143.6 Cautions on Programming (Operation Errors)p.1153.7 Conditions for Execution of Instructionsp.1213.8 Counting Step Numberp.1223.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Devicep.1273.10 Precautions for Use of File Registersp.1324 HOW TO READ INSTRUCTIONSp.1375 SEQUENCE INSTRUCTIONSp.1415.1 Contact Instructionsp.1425.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)p.1425.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)p.1455.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)p.1475.2 Association Instructionsp.1505.2.1 Ladder block series connection and parallel connection (ANB,ORB)p.1505.2.2 Operation results push,read,pop (MPS,MRD,MPP)p.1525.2.3 Operation results inversion (INV)p.1555.2.4 Operation result conversions (MEP,MEF)p.1575.2.5 Pulse conversions of edge relay operation results (EGP,EGF)p.1585.3 Output Instructionsp.1605.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)p.1605.3.2 Timers (OUT T,OUTH T)p.1625.3.3 Counter (OUT C)p.1665.3.4 Annunciator output (OUT F)p.1685.3.5 Setting devices (except for annunciators) (SET)p.1705.3.6 Resetting devices (except for annunciators) (RST)p.1725.3.7 Setting and resetting the annunciators (SET F,RST F)p.1755.3.8 Leading edge and trailing edge outputs (PLS,PLF)p.1775.3.9 Bit device output reverse (FF)p.1805.3.10 Pulse conversions of direct outputs (DELTA(P))p.1825.4 Shift Instructionsp.1845.4.1 Bit device shifts (SFT(P))p.1845.5 Master Control Instructionsp.1875.5.1 Setting and resetting the master control (MC,MCR)p.1875.6 Termination Instructionsp.1915.6.1 End main routine program (FEND)p.1915.6.2 End sequence program (END)p.1935.7 Other instructionsp.1955.7.1 Sequence program stop (STOP)p.1955.7.2 No operations (NOP,NOPLF,PAGE n)p.1976 BASIC INSTRUCTIONSp.2016.1 Comparison Operation Instructionsp.2026.1.1 BIN 16-bit data comparisons (=,<>,>,<=,<,>=)p.2026.1.2 BIN 32-bit data comparisons (D=,D<>,D>,D<=,D<,D>=)p.2046.1.3 Floating decimal point data comparisons (Single precision) (E=,E<>,E>,E<=,E<,E>=)p.2066.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED<>,ED>,ED<=,ED<,ED>=)p.2086.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)p.2116.1.6 BIN block data comparisons (BKCMP □ ,BKCMP □ P)p.2156.1.7 BIN 32-bit block data comparisons (DBKCMP □ ,DBKCMP □ P)p.2186.2 Arithmetic Operation Instructionsp.2226.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))p.2226.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))p.2266.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))p.2306.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))p.2326.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))p.2346.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))p.2386.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))p.2426.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))p.2446.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))p.2466.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))p.2506.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))p.2546.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))p.2566.2.13 Block addition and subtraction (BK+(P),BK-(P))p.2596.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))p.2626.2.15 Linking character strings ($+(P))p.2656.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))p.2696.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))p.2716.3 Data conversion instructionsp.2736.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))p.2736.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))p.2756.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))p.2786.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))p.2816.3.5 Conversion from floating decimal point data to BIN16and 32-bit data (Single precision) (INT(P),DINT(P))p.2836.3.6 Conversion from floating decimal point data to BIN16and 32-bit data (Double precision) (INTD(P),DINTD(P))p.2866.3.7 Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))p.2886.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))p.2896.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))p.2906.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))p.2926.3.11 Complement of 2 of BIN 16and 32-bit data (sign reversal) (NEG(P),DNEG(P))p.2946.3.12 Floating-point sign invertion (Single precision) (ENEG(P))p.2966.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))p.2976.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))p.2986.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))p.3006.3.16 Single precision to Double precision conversion (ECON(P))p.3026.3.17 Double precision to Single precision conversion (EDCON(P))p.3046.4 Data Transfer Instructionsp.3066.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))p.3066.4.2 Floating-point data transfer (Single precision) (EMOV(P))p.3086.4.3 Floating-point data transfer (Double precision) (EDMOV(P))p.3106.4.4 Character string transfers ($MOV(P))p.3126.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))p.3146.4.6 Block 16-bit data transfers (BMOV(P))p.3176.4.7 Identical 16-bit data block transfers (FMOV(P))p.3206.4.8 Identical 32-bit data block transfers (DFMOV(P))p.3226.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))p.3246.4.10 Block 16-bit data exchanges (BXCH(P))p.3266.4.11 Upper and lower byte exchanges (SWAP(P))p.3286.5 Program Branch Instructionsp.3296.5.1 Pointer branch instructions (CJ,SCJ,JMP)p.3296.5.2 Jump to END (GOEND)p.3326.6 Program Execution Control Instructionsp.3336.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)p.3336.6.2 Recovery from interrupt programs (IRET)p.3396.7 I/O Refresh Instructionsp.3416.7.1 I/O refresh (RFS(P))p.3416.8 Other Convenient Instructionsp.3436.8.1 Counter 1-phase input up or down (UDCNT1)p.3436.8.2 Counter 2-phase input up or down (UDCNT2)p.3466.8.3 Teaching timer (TTMR)p.3496.8.4 Special function timer (STMR)p.3516.8.5 Rotary table shortest direction control (ROTC)p.3546.8.6 Ramp signal (RAMP)p.3576.8.7 Pulse density measurement (SPD)p.3606.8.8 Fixed cycle pulse output (PLSY)p.3626.8.9 Pulse width modulation (PWM)p.3646.8.10 Matrix input (MTR)p.3667 APPLICATION INSTRUCTIONSp.3697.1 Logical operation instructionsp.3707.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))p.3717.1.2 Block logical products (BKAND(P))p.3777.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))p.3797.1.4 Block logical sum operations (BKOR(P))p.3857.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))p.3877.1.6 Block exclusive OR operations (BKXOR(P))p.3937.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))p.3957.1.8 Block exclusive NOR operations (BKXNR(P))p.4017.2 Rotation instructionp.4037.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))p.4037.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))p.4067.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))p.4097.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))p.4127.3 Shift instructionp.4147.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))p.4147.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))p.4177.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))p.4197.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))p.4227.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))p.4247.4 Bit processing instructionsp.4277.4.1 Bit set and reset for word devices (BSET(P),BRST(P))p.4277.4.2 Bit tests (TEST(P),DTEST(P))p.4297.4.3 Batch reset of bit devices (BKRST(P))p.4327.5 Data processing instructionsp.4347.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))p.4347.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))p.4377.5.3 Decoding from 8 to 256 bits (DECO(P))p.4397.5.4 Encoding from 256 to 8 bits (ENCO(P))p.4417.5.5 7-segment decode (SEG(P))p.4437.5.6 4-bit dissociation of 16-bit data (DIS(P))p.4457.5.7 4-bit linking of 16-bit data (UNI(P))p.4477.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))p.4497.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))p.4537.5.10 Maximum value search for 16and 32-bit data (MAX(P),DMAX(P))p.4577.5.11 Minimum value search for 16and 32-bit data (MIN(P),DMIN(P))p.4607.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)p.4637.5.13 Calculation of totals for 16-bit data (WSUM(P))p.4677.5.14 Calculation of totals for 32-bit data (DWSUM(P))p.4697.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))p.4717.6 Structure creation instructionsp.4737.6.1 FOR to NEXT instruction loop (FOR,NEXT)p.4737.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))p.4767.6.3 Subroutine program calls (CALL(P))p.4787.6.4 Return from subroutine programs (RET)p.4837.6.5 Subroutine program output OFF calls (FCALL(P))p.4847.6.6 Subroutine calls between program files (ECALL(P))p.4887.6.7 Subroutine output OFF calls between program files (EFCALL(P))p.4937.6.8 Subroutine program call (XCALL)p.4977.6.9 Refresh instruction (COM)p.5027.6.10 Select Refresh Instruction (COM)p.5057.6.11 Select Refresh Instruction (CCOM)p.5097.6.12 Index modification of entire ladder (IX,IXEND)p.5127.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)p.5167.7 Data Table Operation Instructionsp.5197.7.1 Writing data to the data table (FIFW(P))p.5197.7.2 Reading oldest data from tables (FIFR(P))p.5217.7.3 Reading newest data from data tables (FPOP(P))p.5237.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))p.5257.8 Buffer memory access instructionp.5287.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))p.5287.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))p.5317.9 Display instructionsp.5347.9.1 Print ASCII code instruction (PR)p.5347.9.2 Print comment instruction (PRC)p.5377.9.3 Error display and annunciator reset instruction (LEDR)p.5407.10 Debugging and failure diagnosis instructionsp.5437.10.1 Special format failure checks (CHKST,CHK)p.5437.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)p.5477.11 Character string processing instructionsp.5517.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))p.5517.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))p.5547.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))p.5577.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))p.5607.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))p.5637.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))p.5667.11.7 Reading device comment data (COMRD(P))p.5697.11.8 Character string length detection (LEN(P))p.5727.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))p.5747.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))p.5807.11.11 Conversion from floating decimal point to character string data (ESTR(P))p.5857.11.12 Conversion from character string to floating decimal point data (EVAL(P))p.5927.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))p.5967.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))p.5987.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))p.6007.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))p.6037.11.17 Character string search (INSTR(P))p.6077.11.18 Insertion of character string (STRINS(P))p.6097.11.19 Deletion of character string (STRDEL(P))p.6117.11.20 Floating decimal point to BCD (EMOD(P))p.6137.11.21 From BCD format data to floating decimal point (EREXP(P))p.6167.12 Special function instructionsp.6187.12.1 SIN operation on floating-point data (Single precision) (SIN(P))p.6187.12.2 SIN operation on floating-point data (Double precision) (SIND(P))p.6207.12.3 COS operation on floating-point data (Single precision) (COS(P))p.6227.12.4 COS operation on floating-point data (Double precision) (COSD(P))p.6247.12.5 TAN operation on floating-point data (Single precision) (TAN(P))p.6267.12.6 TAN operation on floating-point data (Double precision) (TAND(P))p.6287.12.7 SIN-1 operation on floating point data (Single precision) (ASIN(P))p.6307.12.8 SIN-1 operation on floating-point data (Double precision) (ASIND(P))p.6337.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))p.6357.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))p.6377.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))p.6397.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))p.6417.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))p.6437.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))p.6457.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))p.6477.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))p.6497.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))p.6517.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))p.6537.12.19 Square root operation for floating-point data (Single precision) (SQR(P))p.6557.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))p.6577.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))p.6597.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))p.6627.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))p.6647.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))p.6667.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))p.6687.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))p.6707.12.27 Random number generation and series updates (RND(P),SRND(P))p.6727.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))p.6747.12.29 BCD type SIN operation (BSIN(P))p.6777.12.30 BCD type COS operations (BCOS(P))p.6797.12.31 BCD type TAN operation (BTAN(P))p.6817.12.32 BCD type SIN -1 operations (BASIN(P))p.6837.12.33 BCD type COS -1 operation (BACOS(P))p.6857.12.34 BCD type TAN -1 operations (BATAN(P))p.6877.13 Data Control Instructionsp.6897.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))p.6897.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))p.6927.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))p.6957.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))p.6987.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))p.7027.14 File register switching instructionsp.7057.14.1 Switching file register numbers (RSET(P))p.7057.14.2 Setting files for file register use (QDRSET(P))p.7077.14.3 File setting for comments (QCDSET(P))p.7107.15 Clock instructionsp.7127.15.1 Reading clock data (DATERD(P))p.7127.15.2 Writing clock data (DATEWR(P))p.7147.15.3 Clock data addition operation (DATE+(P))p.7167.15.4 Clock data subtraction operation (DATE-(P))p.7187.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))p.7207.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))p.7227.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)p.7247.15.8 Clock comparison (TM=,TM<>,TM>,TM<=,TM<,TM>=)p.7297.16 Expansion Clock Instructionsp.7347.16.1 Reading expansion clock data (S(P).DATERD)p.7347.16.2 Expansion clock data addition operation (S(P).DATE+)p.7377.16.3 Expansion clock data subtraction operation (S(P).DATE-)p.7407.17 Program control instructionsp.7437.17.1 Program standby instruction (PSTOP(P))p.7457.17.2 Program output OFF standby instruction (POFF(P))p.7467.17.3 Program scan execution registration instruction (PSCAN(P))p.7487.17.4 Program low speed execution registration instruction (PLOW(P))p.7507.17.5 Program execution status check instruction (PCHK)p.7527.18 Other instructionsp.7547.18.1 Resetting watchdog timer (WDT(P))p.7547.18.2 Timing pulse generation (DUTY)p.7567.18.3 Time check instruction (TIMCHK)p.7587.18.4 Direct 1-byte read from file register (ZRRDB(P))p.7597.18.5 File register direct 1-byte write (ZRWRB(P))p.7617.18.6 Indirect address read operations (ADRSET(P))p.7637.18.7 Numerical key input from keyboard (KEY)p.7647.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))p.7687.18.9 Reading Module Information (UNIRD(P))p.7707.18.10 Reading module model name(TYPERD(P))p.7747.18.11 Trace Set/Reset (TRACE,TRACER)p.7797.18.12 Writing Data to Designated File (SP.FWRITE)p.7817.18.13 Reading Data from Designated File (SP.FREAD)p.7927.18.14 Writing Data to Standard ROM (SP.DEVST)p.8047.18.15 Read Data from Standard ROM (S(P).DEVLD)p.8067.18.16 Load Program from Memory Card (PLOADP)p.8087.18.17 Unload Program from Program Memory (PUNLOADP)p.8117.18.18 Load + Unload (PSWAPP)p.8137.18.19 High-speed Block Transfer of File Register (RBMOV(P))p.816INDEXp.821WARRANTYp.833QCPU Programming Manual (Common Instruction) 2/2p.837SAFETY PRECAUTIONSp.839REVISIONSp.840INTRODUCTIONp.841CONTENTSp.842MANUALSp.8528 INSTRUCTIONS FOR DATA LINKp.8558.1 Network refresh instructionsp.8568.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)p.8568.2 Reading/Writing Routing Informationp.8608.2.1 Reading routing information (S(P)/Z(P).RTREAD)p.8608.2.2 Registering routing information (S(P)/Z(P).RTWRITE)p.8629 Multiple CPU dedicated instructionp.8659.1 Writing to the CPU Shared Memory of Host CPUp.8669.1.1 Write to Host CPU Shared Memory (S(P).TO)p.8689.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))p.8719.2 Reading from the CPU Shared Memory of another CPUp.8759.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))p.87610 QCPU INSTRUCTIONSp.88310.1 Overviewp.88410.2 Writing Devices to Another CPU (D(P).DDWR)p.89510.3 Reading Devices from Another CPU (D(P).DDRD)p.89911 QCPU INSTRUCTIONSp.90311.1 System Switching Instruction (SP.CONTSW)p.90412 ERROR CODESp.90712.1 Error Code Listp.90812.1.1 Error codesp.90912.1.2 Reading an error codep.90912.1.3 Error code list (1000 to 1999)p.91012.1.4 Error code list (2000 to 2999)p.92212.1.5 Error code list (3000 to 3999)p.94012.1.6 Error code list (4000 to 4999)p.95712.1.7 Error code list (5000 to 5999)p.97212.1.8 Error code list (6000 to 6999)p.97412.1.9 Error code list (7000 to 10000)p.98412.2 Canceling of Errorsp.989APPENDICESp.991Appendix 1 OPERATION PROCESSING TIMEp.992Appendix 1.1 Definitionp.992Appendix 1.2 Operation Processing Time of Basic Model QCPUp.993Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPUp.1011Appendix 1.4 Operation Processing Time of Universal Model QCPUp.1040Appendix 1.4.1 Subset instruction processing timep.1040Appendix 1.4.2 Processing time of instructions other than subset instructionp.1056Appendix 2 CPU PERFORMANCE COMPARISONp.1104Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPUp.1104Appendix 2.1.1 Usable devicesp.1104Appendix 2.1.2 I/O control modep.1105Appendix 2.1.3 Data that can be used by instructionsp.1105Appendix 2.1.4 Timer comparisonp.1106Appendix 2.1.5 Comparison of countersp.1107Appendix 2.1.6 Comparison of display instructionsp.1107Appendix 2.1.7 Instructions whose designation format has been changed (Except dedicated instructions for AnACPU and AnUCPU)p.1108Appendix 2.1.8 AnACPU and AnUCPU dedicated instructionsp.1109Appendix 3 SPECIAL RELAY LISTp.1110Appendix 4 SPECIAL REGISTER LISTp.1136Appendix 5 APPLICATION PROGRAM EXAMPLESp.1188Appendix 5.1 Concept of Programs which Perform Operations of Xn, n√Xp.1188INDEXp.1189WARRANTYp.1201
Page 16 of the Mitsubishi Electronics QCPU user manual — A-14
Page 16 · click to enlarge
Page 16

MANUALS

To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals.

Read other manuals as well when using a different type of CPU module and its functions.

Order each manual as needed, referring to the following list.

The numbers in the "CPU module" and the respective modules are as follows.

Mitsubishi Electronics QCPU — MANUALS diagram (page 16)
Fig. 13

A-14

Page 17 of the Mitsubishi Electronics QCPU user manual — A-15
Page 17 · click to enlarge
Page 17

< Manual number (model code) > Description

CC-Link IE Controller Network Reference Manual

Specifications, procedures and settings before system operation, parameter

< SH-080668ENG (13JV16) >

setting, programming, and troubleshooting of the CC-Link IE controller network module

Q Corresponding MELSECNET/H Network System Reference

Explains the specifications for a MELSECNET/H network system for PLC to PLC

Manual (PLC to PLC network)

network. It explains the procedures and settings up to operation, setting the parame-

< SH-080049 (13JF92) >

ters, programming and troubleshooting.

Q Corresponding MELSECNET/H Network System Refer-

Explains the specifications for a MELSECNET/H network system for remote I/O

ence Manual (Remote I/O network)

network. It explains the procedures and settings up to operation, setting the

< SH-080124 (13JF96) >

parameters, programming and troubleshooting.

Type MELSECNET, MELSECNET/B Data Link System

Describes the general concept, specifications, and part names and settings for

MELSECNET (II) and MELSECNET/B.

< IB-66530 (13JF70) >

Describes various functions of the Ethernet module: e-mail function, PLC CPU

Q Corresponding Ethernet Interface Module

status monitoring, communication via MELSECNET/H or MELSECNET/10 net-

work system, communication using data link instructions, file transfer (using FTP)

< SH-080010 (13JF70) >

and other functions.

A-15

Show 4 more labels / short text on this page
Related Manuals · Manual name · Reference Manual · User's Manual (Application)
Page 18 of the Mitsubishi Electronics QCPU user manual — A-16
Page 18 · click to enlarge
Page 18

MEMO

A-16

Page 19 of the Mitsubishi Electronics QCPU user manual — GENERAL DESCRIPTION
Page 19 · click to enlarge
Page 19

GENERAL DESCRIPTION

Page 20 of the Mitsubishi Electronics QCPU user manual — 1.1 Related Programming Manuals
Page 20 · click to enlarge
Page 20

This manual explains the common instructions required for programming of the QCPU.

The common instructions refer to all instructions except those dedicated to special function modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC instructions and ST instructions.

1.1 Related Programming Manuals

Before reading this manual, check the functions, programming methods, devices and others that are necessary to create programs with the CPU in the manuals below:

  • QnUCPU User's Manual (Function Explanation, Program Fundamentals)
  • Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals)

(1) High Performance model QCPU

Mitsubishi Electronics QCPU — 1.1 Related Programming Manuals diagram (page 20)
Fig. 14 · 1.1 Related Programming Manuals

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.

Describes the instructions other than those described in the manuals on the right.

Page 21 of the Mitsubishi Electronics QCPU user manual — 1.1 Related Programming Manuals
Page 21 · click to enlarge
Page 21

(2) Basic model QCPU

Mitsubishi Electronics QCPU — 1.1 Related Programming Manuals diagram (page 21)
Fig. 15 · 1.1 Related Programming Manuals

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.

Describes the instructions other than those described in the manuals on the right.

(3) Process CPU and Redundant CPU

Mitsubishi Electronics QCPU — 1.1 Related Programming Manuals diagram (page 21)
Fig. 16 · 1.1 Related Programming Manuals

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.

1.1 Related Programming Manuals

Describes the instructions other than those described in the manuals on the right.

Page 22 of the Mitsubishi Electronics QCPU user manual — 1.1 Related Programming Manuals
Page 22 · click to enlarge
Page 22

(4) Universal model QCPU

Mitsubishi Electronics QCPU — 1.1 Related Programming Manuals diagram (page 22)
Fig. 17 · 1.1 Related Programming Manuals

Explains the functions, programming methods, devices and others that are necessary to create programs with the CPU.

Describes the instructions other than those described in the manuals on the right.

Page 23 of the Mitsubishi Electronics QCPU user manual — Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU,
Page 23 · click to enlarge
Page 23

1.2 Abbreviations and Generic Names

This manual uses the generic names and abbreviations shown below to refer to Q series CPU modules, unless otherwise specified.

* indicates a part of the model or version.

Generic term/Abbreviation Description of Generic Name/Abbreviation

  • Series

Q series Abbreviation for Mitsubishi MELSEC-Q series programmable controller

  • CPU module type

CPU module Generic term for Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU and Universal model QCPU

Basic model QCPU Generic term for Q00JCPU, Q00CPU and Q01CPU

High Performance model QCPU

Generic term for Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU and Q25HCPU

Process CPU Generic term for Q02PHCPU, Q06PHCPU, Q12PHCPU and Q25PHCPU

Redundant CPU Generic term for Q12PRHCPU and Q25PRHCPU

Generic term for Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,

Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU,

Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,

  • CPU module model

QnCPU Generic term for Q00JCPU, Q00CPU, Q01CPU and Q02CPU

1.2 Abbreviations and Generic Names

QnHCPU Generic term for Q02HCPU, Q06HCPU, Q12HCPU and Q25HCPU

QnPHCPU Generic term for Q02PHCPU, Q06PHCPU, Q12PHCPU and Q25PHCPU

QnPRHCPU Generic term for Q12PRHCPU and Q25PRHCPU

Generic temr for Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,

Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU,

Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,

QnU(D)(H)CPU Generic temr for Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU,

Q13UDHCPU, Q20UDHCPU and Q26UDHCPU

QnUD(H)CPU Generic name for Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU,

Q13UDHCPU, Q20UDHCPU and Q26UDHCPU

QnUDE(H)CPU Generic name for Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU,

Show 5 more labels / short text on this page
Universal model QCPU · Q20UDEHCPU and Q26UDEHCPU · QnUCPU · Q20UDEHCPU and Q26UDEHCPU · Q13UDEHCPU,Q20UDEHCPU and Q26UDEHCPU
Page 24 of the Mitsubishi Electronics QCPU user manual — A6 B
Page 24 · click to enlarge
Page 24

Generic Name/Abbreviation Description of Generic Name/Abbreviation

  • Base unit model

Generic term for Q33B, Q35B, Q38B and Q312B main base units on which CPU module (except Q00JCPU), Q series power supply module, Q series I/O module, and intelligent function module can be mounted.

Q3 B

Generic term for Q32SB, Q33SB and Q35SB slim type main base units on which Basic model QCPU (except Q00JCPU), High Performance model QCPU, slim type power supply module, Q series I/O module, and intelligent function module can be mounted.

Q3 SB

Other name for Q38RB redundant power supply main base unit on which CPU module (except Q00JCPU), redundant power supply module, Q series I/O module, and intelligent function module can be mounted.

Q3 RB

Generic term for the Q38DB and Q312DB type Multiple CPU high speed main base unit on which CPU module (except the Q00JCPU), Q series power supply module, Q series I/O module, and intelligent function module can be mounted.

Q3 DB

Generic term for Q52B and Q55B extension base unit on which the Q Series I/O and intelligent function module can be mounted.

Q5 B

Generic term for Q63B, Q65B, Q68B and Q612B extension base unit on which Q Series power supply module, I/O module, intelligent function module can be mounted.

Q6 B

Other name for Q68RB redundant power supply extension base unit on whichredundant power supply module, Q series I/O module, and intelligent function module can be mounted.

Q6 RB

Other name for Q65WRB extension base unit for redundant system on which redundant power supply module, Q series I/O module, and intelligent function module can be mounted.

Q6 WRB

Generic term for QA1S65B and QA1S68B extension base units on which AnS Series power supply module, I/O module, special function module can be mounted.

QA1S6 B

Generic term for QA65B and QA68B extension base units on which the A series power supply module, A series I/O modules and special function modules can be mounted.

QA6 B

Generic term for A52B, A55B, and A58B extension base units on which A series I/O module and special function module can be mounted without power supply.

A5 B

Generic term for A62B, A65B, and A68B extension base units on which A series I/O module and special function module can be mounted.

A6 B

QA6ADP Abbreviation for QA6ADP QA conversion adapter module.

QA6ADP+A5 B/A6 B Abbreviation for A large type extension base unit on which QA6ADP is mounted.

  • Network

MELSECNET/H Abbreviation for MELSECNET/H network system

MELSECNET/10 Abbreviation for MELSECNET/10 network system

MELSECNET(II/,B) Abbreviation for MELSECNET and MELSECNET/B data link system

Ethernet Abbreviation for Ethernet network system

CC-Link Abbreviation for Control & Communication Link

(Continued)

Page 25 of the Mitsubishi Electronics QCPU user manual — 1.2 Abbreviations and Generic Names
Page 25 · click to enlarge
Page 25

Generic Name/Abbreviation Description of Generic Name/Abbreviation

  • Others

Product name of Q series Corresponding SW D5C-GPPW-type GPP function software

: Version of the software

Check the GX Developer versions that can be used for each CPU module in "System Configuration," QCPU User's Manual (Hardware Design, Maintenance and Inspection).

Intelligent function module Generic name for intelligent function modules and special function modules

Generic name for intelligent function module devices and special function module devices

1.2 Abbreviations and Generic Names

Show 5 more labels / short text on this page
(Continued) · package · GX Developer · Intelligent function module · device
Page 26 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 26 · click to enlarge
Page 26

MEMO

Page 27 of the Mitsubishi Electronics QCPU user manual — INSTRUCTION TABLES
Page 27 · click to enlarge
Page 27

INSTRUCTION TABLES

Page 28 of the Mitsubishi Electronics QCPU user manual — 2.1 Types of Instructions
Page 28 · click to enlarge
Page 28

2.1 Types of Instructions

The major types of CPU module instructions consist of sequence instructions, basic instructions, application instructions, data link instructions, QCPU instructions and redundant system instructions. These types of instructions are listed in Table 2.1 below.

Table 2.1 Types of Instructions

Types of Instruction Meaning Reference

Contact instruction Operation start, series connection, parallel connection

Association instruction Ladder block connection, store/read operation results, creation of pulses from operation results

Output instruction Bit device output, pulse output, output reversal

Shift instruction Bit device shift

Master control instruction Master control

Termination instruction Program termination

Other instruction Program stop, instructions such as no operation which do not fit in the above categories

Comparison operation instruction Comparisons such as , ,

Arithmetic operation instruction Addition, subtraction, multiplication or division of BIN or BCD

BCD BIN conversion instruction

Conversion from BCD to BIN and from BIN to BCD

Data transfer instruction Transmits designated data

Program branch instruction Program jumps

Program run control instruction Enables or inhibits interrupt programs

I/O refresh Executes partial refresh

Other convenient instruction Instructions for: Counter increment/decrement, teaching timer, special function timer, rotary table shortest direction control, etc.

Logical operation instruction Logical operations such as logical sum, logical product, etc.

Rotation instruction Rotation of designated data

Shift instruction Shift of designated data

Bit processing instruction Bit set and reset, bit test, batch reset of bit devices

Data processing instruction 16-bit data searches, data processing such as decoding and encoding

Structure creation instruction Repeated operation, subroutine program calls, indexing in ladder units

Table operation instruction Data table read/write

Buffer memory access instruction Data read/write from/to an intelligent function module

Display instruction Print ASCII code, LED character display, etc.

Debugging and failure diagnosis instruction Check, status latch, sampling trace, program trace

Conversion between BIN/BCD and ASCII;conversion between BIN and character string; conversion between floating decimal point data and character strings, character string processing, etc.

Character string processing instruction

Special function instruction Trigonometric functions, conversion between angles and radians, exponential operations, automatic logarithms, square roots

Data control instruction Upper and lower limit controls, dead band controls, zone controls

Switching instruction File register block No. switches, designation of file registers and comment files

Reading/writing of the values of year, month, day, hour, minute, second, and day of the week; addition/subtraction of the values of hour, minute, and second; conversion of the values of hour, minute, and second into second; comparison between the values of year, month, and day; and comparison between the values of hour, minute, and second

Reading of the values of year, month, day, hour, minute, second, millisecond, and day of the week; addition/subtraction of the values of hour, minute, second, and millisecond

Peripheral device instruction I/O to peripheral devices

Program control instruction Instructions to switch program execution conditions

Other instruction Instructions that do not fit in the above categories, such as watchdog timer reset instructions and timing clock instructions

Show 6 more labels / short text on this page
Chapter · Sequence instruction · Basic instruction · Application instruction · Clock instruction · Expansion clock instruction
Page 29 of the Mitsubishi Electronics QCPU user manual — CPU
Page 29 · click to enlarge
Page 29

Table 2.1 Types of Instructions (Continued)

Types of Instruction Meaning Reference

Link refresh instruction Designated network refresh

8 Routing information read/write

Reads, writes, and registers routing information

CPU

Writing to host CPU shared memory, Reading from other CPU shared memory 9

Multiple CPU device write/read

Writes/reads devices to/from another CPU. 10

Instruction for Redundant CPU System switching 11

2.1 Types of Instructions

Show 18 more labels / short text on this page
Chapter · Instruction · for Data Link · instruction · Multiple · Multiple CPU dedicated · dedicated · instruction · instruction · Multiple CPU · high-speed · transmission · instruction · dedicated · instruction · Redundant · system · instruction
Page 30 of the Mitsubishi Electronics QCPU user manual — Description
Page 30 · click to enlarge
Page 30

2.2 How to Read Instruction Tables

The instruction tables found from Section 2.3 to 2.5 have been made according to the following format:

Table 2.2 How to Read Instruction Tables

Mitsubishi Electronics QCPU — 2.2 How to Read Instruction Tables diagram (page 30)
Fig. 18 · 2.2 How to Read Instruction Tables

Description

1. Classifies instructions according to their application.
2. Indicates the instruction symbol added to the instruction in a program. Instruction code is built around the 16-bit instruction. The following notations are used to mark 32-bit instructions, instructions executed only at the leading edge of OFF to ON, real number instructions, and character string instructions:
  • 32-bit instruction..... The letter "D" is added to the first line of the instruction.

16-bit instruction 32-bit instruction

  • Instructions executed only at the leading edge of OFF to ON ............................... The letter "P" is added to the end of the instruction.

Instruction executed when ON

Instruction executed only at the leading edge of OFF to ON

  • Real number instructions ............................... The letter "E" is added to the first line of the instruction.
  • Character string instructions ............................... A dollar sign $ is added to the first line of the instruction.
Show 6 more labels / short text on this page
Example + D+ · Example + +P · Example + E+ · Real number instructions · Example + $+ · Character string instructions
Page 31 of the Mitsubishi Electronics QCPU user manual — 2.2 How to Read Instruction Tables
Page 31 · click to enlarge
Page 31
3. Shows symbol diagram on the ladder.
Mitsubishi Electronics QCPU — 2.2 How to Read Instruction Tables diagram (page 31)
Fig. 19 · 2.2 How to Read Instruction Tables

Fig. 2.1 Symbol Diagram on the Ladder

Destination Indicates where data will be sent after operation.

Source Stores data prior to operation.

4. Indicates the type of processing that is performed by individual instructions.
Mitsubishi Electronics QCPU — 2.2 How to Read Instruction Tables diagram (page 31)
Fig. 20 · 2.2 How to Read Instruction Tables

Fig. 2.2 Type of Processing Performed by Individual Instructions

5. The details of conditions for the execution of individual instructions are as follows:

Instruction executed under normal circumstances, with no regard to the ON/OFF status of conditions prior to

the instruction.

If the precondition is OFF, the instruction will conduct OFF processing.

Executed during ON; instruction is executed only while the precondition is ON. If the preconditions is OFF,

the instruction is not executed, and no processing is conducted.

2.2 How to Read Instruction Tables

Executed once at ON; instruction executed only at leading edge when precondition goes from OFF to ON.

Following execution, instruction will not be executed and no processing conducted even if condition remains

ON.

Executed during OFF; instruction is executed only while the precondition is OFF. If the precondition is ON,

the instruction is not executed, and no processing is conducted.

Executed once at OFF; instruction executed only at trailing edge when precondition goes from ON to OFF.

Following execution, instruction will not be executed and no processing conducted even if condition remains

OFF.

6. Indicates the basic number of steps for individual instructions.

See Section 3.8 for a description of the number of steps.

7. The mark indicates instructions for which subset processing is possible.

See Section 3.5 for details on subset processing.

8. Indicates the page numbers where the individual instructions are explained.

Symbol Execution Condition · No symbol · recorded

Page 32 of the Mitsubishi Electronics QCPU user manual — 2.3 Sequence Instructions
Page 32 · click to enlarge
Page 32

2.3 Sequence Instructions

2.3.1 Contact instructions

Table 2.3 Contact Instructions

Mitsubishi Electronics QCPU — 2.3 Sequence Instructions diagram (page 32)
Fig. 21 · 2.3 Sequence Instructions

LDPI • Starts leading edge pulse NOT operation 3

LDFI • Starts trailing edge pulse NOT operation 3

ANDPI • Leading edge pulse NOT series connection 4

ANDFI • Trailing edge pulse NOT series connection 4

ORPI • Leading edge pulse NOT parallel connection 4

ORFI • Trailing edge pulse NOT parallel connection 4

*1: The number of steps may vary depending on the device being used.

Mitsubishi Electronics QCPU — 2.3 Sequence Instructions diagram (page 32)
Fig. 22 · 2.3 Sequence Instructions
Page 33 of the Mitsubishi Electronics QCPU user manual — 2.3.2 Association instructions
Page 33 · click to enlarge
Page 33

*2: The number of steps may vary depending on the device and type of CPU module being used.

Mitsubishi Electronics QCPU — 2.3.2 Association instructions diagram (page 33)
Fig. 23 · 2.3.2 Association instructions

2.3.2 Association instructions

Table 2.4 Association Instructions

Mitsubishi Electronics QCPU — 2.3.2 Association instructions diagram (page 33)
Fig. 24 · 2.3.2 Association instructions

ANB • AND between logical blocks (Series connection between logical blocks)

ORB • OR between logical blocks (Series connection between logical blocks)

1. 5-12 MRD • Read of operation results stored with MPS instruction

MPP • Read and reset of operation results stored with MPS instruction

INV • Inversion of operation result 1 - 5-15

2.3 Sequence Instructions 2.3.2 Association instructions

MEP • Conversion of operation result to leading edge pulse

MEF • Conversion of operation result to trailing edge pulse

  • Conversion of operation result to leading edge pulse (Stored at Vn)
  • Conversion of operation result to trailing edge pulse (Stored at Vn)

*1: The number of steps may vary depending on the device and type of CPU module being used.

Page 34 of the Mitsubishi Electronics QCPU user manual — 2.3.3 Output instructions
Page 34 · click to enlarge
Page 34

2.3.3 Output instructions

Table 2.5 Output Instructions

Mitsubishi Electronics QCPU — 2.3.3 Output instructions diagram (page 34)
Fig. 25 · 2.3.3 Output instructions

PLS • Generates 1 cycle program pulse at leading edge of input signal.

PLF • Generates 1 cycle program pulse at trailing edge of input signal.

FF • Reversal of device output 2 - 5-40

  • Pulse conversion of direct output 2 - 5-42 DELTAP

*1: The number of steps may vary depending on the device being used. See description pages of individual instructions for number of steps.

*2: The execution condition applies only when an annunciator (F) is in use. 2.3.4 Shift instructions

Table 2.6 Shift Instructions

Mitsubishi Electronics QCPU — 2.3.3 Output instructions diagram (page 34)
Fig. 26 · 2.3.3 Output instructions
  • 1-bit shift of device 2 - 5-44 SFTP
Page 35 of the Mitsubishi Electronics QCPU user manual — 2.3.6 Termination instructions
Page 35 · click to enlarge
Page 35

2.3.5 Master control instructions

Table 2.7 Master Control Instructions

Mitsubishi Electronics QCPU — 2.3.5 Master control instructions diagram (page 35)
Fig. 27 · 2.3.5 Master control instructions
  • MC
  • Starts master control 2 - 5-47 MCR
  • Resets master control 1

2.3.6 Termination instructions

Table 2.8 Termination Instructions

Mitsubishi Electronics QCPU — 2.3.6 Termination instructions diagram (page 35)
Fig. 28 · 2.3.6 Termination instructions

2.3 Sequence Instructions 2.3.5 Master control instructions

  • Terminates sequence operation after input condition has been met.
  • Sequence program is executed by placing the RUN/STOP key switch back in the RUN position.

NOP • Ignored (For program deletion or space)

1. 5-57 NOPLF • Ignored (To change pages during printouts)

PAGE • Ignored (Subsequent programs will be controlled from step 0 of page n)

Page 36 of the Mitsubishi Electronics QCPU user manual — 2.4 Basic instructions
Page 36 · click to enlarge
Page 36

2.4 Basic instructions

2.4.1 Comparison operation instructions

Table 2.10 Comparison Operation Instructions

Mitsubishi Electronics QCPU — 2.4 Basic instructions diagram (page 36)
Fig. 29 · 2.4 Basic instructions
  • Conductive status when (S1) (S2)
  • Non-conductive status when
  • Conductive status when (S1) (S2)
  • Non-conductive status when
  • Conductive status when (S1) (S2)
  • Non-conductive status when
  • Conductive status when (S1) (S2)
  • Non-conductive status when
  • Conductive status when (S1) (S2)
  • Non-conductive status when
  • Conductive status when (S1) (S2)
  • Non-conductive status when
Page 37 of the Mitsubishi Electronics QCPU user manual — 2.4 Basic instructions
Page 37 · click to enlarge
Page 37

Table 2.10 Comparison Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4 Basic instructions diagram (page 37)
Fig. 30 · 2.4 Basic instructions

2.4 Basic instructions 2.4.1 Comparison operation instructions

*1: The number of steps may vary depending on the device and type of CPU module being used.

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no Indexing.
  • Constant: No limitations

All devices that can be used 3 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

Page 38 of the Mitsubishi Electronics QCPU user manual — 2.4 Basic instructions
Page 38 · click to enlarge
Page 38

Table 2.10 Comparison Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4 Basic instructions diagram (page 38)
Fig. 31 · 2.4 Basic instructions
Page 39 of the Mitsubishi Electronics QCPU user manual — 2.4 Basic instructions
Page 39 · click to enlarge
Page 39

Table 2.10 Comparison Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4 Basic instructions diagram (page 39)
Fig. 32 · 2.4 Basic instructions

2.4 Basic instructions 2.4.1 Comparison operation instructions

Page 40 of the Mitsubishi Electronics QCPU user manual — OR$>=
Page 40 · click to enlarge
Page 40

Table 2.10 Comparison Operation Instructions (Continued)

Number of Basic Steps

Symbol Processing Details Execution

  • LD$=
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character

$ S1 S2

AND$=

$ S1 S2

string S1) (character string S2) • Non-Conductive status when

OR$=

$ S1 S2

(character string S1) (character string S2)

  • LD$<>
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character string S1) (character string S2)

$ S1 S2

AND$<>

$ S1 S2

  • Non-Conductive status when (character string S1) (character string S2)

OR$<>

$ S1 S2

  • LD$>
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character string S1) (character string S2)

$ S1 S2

AND$>

$ S1 S2

OR$>

  • Non-Conductive status when (character string S1) (character string S2)

$ S1 S2

  • LD$<=
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character string S1) (character string S2)
  • Non-Conductive status when (character string S1) (character string S2)

$ S1 S2

AND$<=

$ S1 S2

OR$<=

$ S1 S2

  • LD$<
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character string S1) (character string S2)

$ S1 S2

AND$<

$ S1 S2

  • Non-Conductive status when (character string S1) (character string S2)

OR$<

$ S1 S2

  • LD$>=
  • Compares character string S1 and character string S2 one character at a time. *2
  • Conductive status when (character

$ S1 S2

AND$>=

S1 S2 $

string S1) (character string S2)

  • Non-Conductive status when

OR$>=

$ S1 S2

(character string S1) (character string S2)

  • *2: The conditions under which character string comparisons can be made are as shown below:
  • Match: All characters in the strings must match
  • Larger string: If character strings are different, determines the string with the largest number of character codes. If the lengths of the character strings are different, determines the longest character string.
  • Smaller string: If the character strings are different, determines the string with the smallest number of character codes. If the lengths of the character strings are different, determines the shortest character string.
Show 8 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · Character · string data · comparisons
Page 41 of the Mitsubishi Electronics QCPU user manual — 2.4 Basic instructions
Page 41 · click to enlarge
Page 41

Table 2.10 Comparison Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4 Basic instructions diagram (page 41)
Fig. 33 · 2.4 Basic instructions
  • This instruction compares BIN 16-bit data stored in n-point devices starting from the device specified by S1 with BIN 16-bit data stored in n-point devices starting from the device specified by S2, and then stores the result into the nth device specified by (D) and up.

2.4 Basic instructions 2.4.1 Comparison operation instructions

Page 42 of the Mitsubishi Electronics QCPU user manual — 2.4.2 Arithmetic operation instructions
Page 42 · click to enlarge
Page 42

2.4.2 Arithmetic operation instructions

Table 2.11 Arithmetic Operation Instructions

Mitsubishi Electronics QCPU — 2.4.2 Arithmetic operation instructions diagram (page 42)
Fig. 34 · 2.4.2 Arithmetic operation instructions
  • (D+1, D)+(S+1, S) (D+1, D) *1 6-26 D+P
  • (S1+1, S1)+(S2+1, S2) (D+1, D) *2 6-28 D+P
  • (D+1, D) (S+1, S) (D+1, D) *1 6-26 D-P
  • (S1+1, S1) (S2+1, S2) (D+1, D) *2 6-28 D-P
Page 43 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 43 · click to enlarge
Page 43

*1: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no indexing.
  • Constant: No limitations

High Performance model QCPU

Devices other than above 3 Note 2)

All devices that can be used 3 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

*2: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no indexing.
  • Constant: No limitations

High Performance model QCPU

Devices other than above 4 Note 2)

All devices that can be used

Universal model QCPU 3 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

*3: The number of steps may vary depending on the device and type of CPU module being used.

2.4 Basic instructions 2.4.2 Arithmetic operation instructions

Component Device Number of Steps

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no indexing.
  • Constant: No limitations

QCPU

Devices other than above 4 Note 1)

Show 12 more labels / short text on this page
Steps · 5 Note 1) · Process CPU · Redundant CPU · Basic model QCPU · Universal model QCPU · Steps · 6 Note 1) · Process CPU · Redundant CPU · Basic model QCPU · 4 Note 2)
Page 44 of the Mitsubishi Electronics QCPU user manual — 2.4.2 Arithmetic operation instructions
Page 44 · click to enlarge
Page 44

Table 2.11 Arithmetic Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4.2 Arithmetic operation instructions diagram (page 44)
Fig. 35 · 2.4.2 Arithmetic operation instructions
  • (D+1, D)+(S+1, S) (D+1, D) 3 - 6-38 DB+P
  • (S1+1, S1)+(S2+1, S2) (D+1, D) 4 - 6-40 DB+P
  • (D+1, D) (S+1, S) (D+1, D) 3 - 6-38 DB-P
  • (S1+1, S1) (S2+1, S2) (D+1, D) 4 - 6-40 DB-P
Page 45 of the Mitsubishi Electronics QCPU user manual — 2.4.2 Arithmetic operation instructions
Page 45 · click to enlarge
Page 45

Table 2.11 Arithmetic Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4.2 Arithmetic operation instructions diagram (page 45)
Fig. 36 · 2.4.2 Arithmetic operation instructions
  • (D+1, D)+(S+1, S) (D+1, D) 3 *6 6-46 E+P
  • (D+1, D) (S+1, S) (D+1, D) 3 *6 6-46 E-P

ED+ • (D+3, D+2, D+1, D)+(S+3, S+2, S+1, S)

ED- • (D+3, D+2, D+1, D) (S+3, S+2, S+1, S)

2.4 Basic instructions 2.4.2 Arithmetic operation instructions

*5: The number of basic steps is three for the Universal model QCPU only. *6: The subset is effective only with Universal model QCPU.

Page 46 of the Mitsubishi Electronics QCPU user manual — DDECP D
Page 46 · click to enlarge
Page 46

Table 2.11 Arithmetic Operation Instructions (Continued)

Number of Basic Steps

Symbol Processing Details Execution

BK+ • This instruction adds BIN 16-bit data stored in n-point devices starting from the device specified by (S1) to the n-point data stored in the devices starting from the device specified by (S2) in batch.

BK+ S1 S2 n D

BK+P

BK+P S1 S2 n D

BK- • This instruction substracts BIN 16-bit data stored in the n-point devices starting from the devices specified by (S2) from BIN 16- bit data stored in n-point devices starting from the device specified by (S1) in batch.

BK S1 S2 n D

5 - BK-P

BK S1 S2 n D P

  • Adds BIN 32-bit data stored in the n-

DBK+

DBK+ S1 S2 n D

point devices starting from the device

specified by (S1) and a constant to BIN

32-bit data stored in the n-point devices

starting from the device specified by

DBK+P

DBK+P S1 S2 n D

(S2) and stores the result into the nth

device specified by (D) and up.

  • Subtracts BIN 32-bit data stored in the

DBK-

DBK S1 S2 n D

n-point devices starting from the device

specified by (S2) or a constant from BIN

32-bit data stored in n-point devices

starting from the device specified by

DBK-P

DBK S1 S2 n D P

(S1) and stores the operation result into

the nth device specified by (D) and up.

$+ • Links character string designated with (S) to character string designated with (D), and stores the result from (D) onward.

$+ S D

3 - 6-65 $+P

$+P S D

$+ • Links character string designated with (S2) to character string designated with (S1), and stores the result from (D) onward.

$+ S1 S2 D

4 - 6-67 $+P

$+P S1 S2 D

INC

INC D

  • (D)+1 (D) 2 6-69 INCP

INCP D

DINC

DINC D

  • (D+1, D)+1 (D+1, D) *7 6-71 DINCP

DINCP D

DEC

DEC D

  • (D) 1 (D) 2 6-69 DECP

DECP D

DDEC

DDEC D

  • (D+1, D) 1 (D+1, D) *7 6-71 DDECP

DDECP D

Show 22 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · BIN 16-bit · data block · addition · and · subtraction · operations · BIN 32-bit · data block · addition · and · subtraction · operations · Character · string data · Connection · BIN data · increment
Page 47 of the Mitsubishi Electronics QCPU user manual — 2.4.2 Arithmetic operation instructions
Page 47 · click to enlarge
Page 47

*7: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no indexing.
  • Constant: No limitations

High Performance model QCPU

Devices other than above 2 Note 2)

All devices that can be used 2 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

2.4 Basic instructions 2.4.2 Arithmetic operation instructions

Show 6 more labels / short text on this page
Steps · 3 Note 1) · Process CPU · Redundant CPU · Basic model QCPU · Universal model QCPU
Page 48 of the Mitsubishi Electronics QCPU user manual — 2.4.3 Data conversion instructions
Page 48 · click to enlarge
Page 48

2.4.3 Data conversion instructions

Table 2.12 Data Conversion Instructions

Mitsubishi Electronics QCPU — 2.4.3 Data conversion instructions diagram (page 48)
Fig. 37 · 2.4.3 Data conversion instructions

(D+1, D) BIN( 32768 to 32767) FLTP S D

( D+3, D+2, D+1, D) BIN( 32768 to 32767) FLTDP S D

(S+1, S) (D+3, D+2, D+1, D) BIN( 2147483648 to 2147483647)

(D) Real number ( 32768 to 32767) INTDP S D

(D+1, D) Real number ( 2147483648 to 2147483647) DINTDP S D

*1: The number of basic steps is two for the Universal model QCPU only. *2: The subset is effective only with Universal model QCPU.

Page 49 of the Mitsubishi Electronics QCPU user manual — 2.4.3 Data conversion instructions
Page 49 · click to enlarge
Page 49

Table 2.12 Data Conversion Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4.3 Data conversion instructions diagram (page 49)
Fig. 38 · 2.4.3 Data conversion instructions

(D+1, D) BIN (-32768 to 32767) DBLP S D

2.4 Basic instructions 2.4.3 Data conversion instructions

DNEG D (D+1, D) (D+1, D) BIN data DNEGP D

EDNEG D (D+3, D+2, D+1, D) (D+3, D+2, D+1, D)

BKBCD • Batch converts BIN data n points from (S) to BCD data and stores the result from (D) onward.

BKBIN • Batch converts BCD data n points from (S) to BIN data and stores the result from (D) onward.

(D+3, D+2, D+1, D) 32-bit floating-point real number ECONP S D

(D+1, D) 64-bit floating-point real number EDCONP S D

Page 50 of the Mitsubishi Electronics QCPU user manual — 2.4.4 Data transfer instructions
Page 50 · click to enlarge
Page 50

2.4.4 Data transfer instructions

Table 2.13 Data Transfer Instructions

Mitsubishi Electronics QCPU — 2.4.4 Data transfer instructions diagram (page 50)
Fig. 39 · 2.4.4 Data transfer instructions

$MOV • Transfers character string designated by (S) to device designated by (D) onward. 3 - 6-112 $MOVP

Page 51 of the Mitsubishi Electronics QCPU user manual — 2.4.4 Data transfer instructions
Page 51 · click to enlarge
Page 51

Table 2.13 Data Transfer Instructions (Continued)

Mitsubishi Electronics QCPU — 2.4.4 Data transfer instructions diagram (page 51)
Fig. 40 · 2.4.4 Data transfer instructions

*1: The number of steps may vary depending on the device and type of CPU module being used.

Mitsubishi Electronics QCPU — 2.4.4 Data transfer instructions diagram (page 51)
Fig. 41 · 2.4.4 Data transfer instructions
  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K4, and which use no indexing.
  • Constant: No limitations

*2: The number of steps may vary depending on the device and type of CPU module being used.

Mitsubishi Electronics QCPU — 2.4.4 Data transfer instructions diagram (page 51)
Fig. 42 · 2.4.4 Data transfer instructions

2.4 Basic instructions 2.4.4 Data transfer instructions

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose

digit designation is K8, and which use no indexing.

  • Word device: Int ernal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K8, and which use no indexing.
  • Constant: No limitations (The number of steps is 3 when the above device + constant are used.)

Universal model QCPU All devices that can be used 2 Note 1)

Page 52 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 52 · click to enlarge
Page 52

*3: The subset is effective only with QCPU. *4: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit designation is K4, and which use no indexing.
  • Constant: No limitations

QCPU

Devices other than above 3 Note 1)

Steps

Page 53 of the Mitsubishi Electronics QCPU user manual — 2.4.6 Program execution control instructions
Page 53 · click to enlarge
Page 53

2.4.5 Program branch instructions

Table 2.14 Program Branch Instructions

Mitsubishi Electronics QCPU — 2.4.5 Program branch instructions diagram (page 53)
Fig. 43 · 2.4.5 Program branch instructions

CJ • Jumps to Pn when input conditions are

6-129 SCJ • Jumps to Pn from the scan after the

2.4.6 Program execution control instructions

Table 2.15 Program Execution Control Instructions

Mitsubishi Electronics QCPU — 2.4.6 Program execution control instructions diagram (page 53)
Fig. 44 · 2.4.6 Program execution control instructions

2.4 Basic instructions 2.4.5 Program branch instructions

Return IRET • Returns to sequence program from an

Page 54 of the Mitsubishi Electronics QCPU user manual — 2.4.8 Other convenient instructions
Page 54 · click to enlarge
Page 54

2.4.8 Other convenient instructions

Table 2.17 Other convenient instructions

Mitsubishi Electronics QCPU — 2.4.8 Other convenient instructions diagram (page 54)
Fig. 45 · 2.4.8 Other convenient instructions

1 2 3 4 6 7 6 5 3 2 1 0 -1 -2 -3 -2 -1 0 0 4 5

1 2 4 5 4 3 1 0 -1 0 3 2

from n1 to n2 in n3 scans. 6 - 6-157

PLSY n1 n2 D (n1)Hz (D) Output n2 times

  • Reads data of 16 points n rows from
Page 55 of the Mitsubishi Electronics QCPU user manual — 2.5 Application Instructions
Page 55 · click to enlarge
Page 55

2.5 Application Instructions

2.5.1 Logical operation instructions

Table 2.18 Logical Operation Instructions

Mitsubishi Electronics QCPU — 2.5 Application Instructions diagram (page 55)
Fig. 46 · 2.5 Application Instructions

2.5 Application Instructions 2.5.1 Logical operation instructions

Page 56 of the Mitsubishi Electronics QCPU user manual — 2.5 Application Instructions
Page 56 · click to enlarge
Page 56

Table 2.18 Logical Operation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5 Application Instructions diagram (page 56)
Fig. 47 · 2.5 Application Instructions
Page 57 of the Mitsubishi Electronics QCPU user manual — 2.5 Application Instructions
Page 57 · click to enlarge
Page 57

*1: The number of basic steps is three for the Universal model QCPU only. *2: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)

High Performance model QCPU

  • Bit device: Devices whose device Nos. are multiples of 16, whose digit

designation is K8, and which use no indexing.

  • Constant: No limitations

Devices other than above 3 Note 2)

All devices that can be used 3 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

*3: The number of steps may vary depending on the device and type of CPU module being used.

Component Device Number of

  • Word device: Internal device (except for file register ZR)
  • Bit device: Devices whose device Nos. are multiples of 16, whose digit

High Performance model QCPU

designation is K8, and which use no indexing.

  • Constant: No limitations

Devices other than above 4 Note 2)

All devices that can be used

Universal model QCPU 3 Note 2)

the number of steps increases but the processing speed becomes faster. Note 2) The number of steps may increase due to the conditions described in Section 3.8.

2.5 Application Instructions 2.5.1 Logical operation instructions

Show 12 more labels / short text on this page
Steps · 5 Note 1) · Process CPU · Redundant CPU · Basic model QCPU · Universal model QCPU · Steps · 6 Note 1) · Process CPU · Redundant CPU · Basic model QCPU · 4 Note 2)
Page 58 of the Mitsubishi Electronics QCPU user manual — 2.5.2 Rotation instructions
Page 58 · click to enlarge
Page 58

2.5.2 Rotation instructions

Table 2.19 Rotation Instructions

Mitsubishi Electronics QCPU — 2.5.2 Rotation instructions diagram (page 58)
Fig. 48 · 2.5.2 Rotation instructions

DROR n D b0 b31 SM700 b16 to b15 to (D+1) (D)

Right rotation by n bits Carry flag DRORP n D

DRCR n D b0 b31 SM700 b16 to b15 to (D+1) (D)

Right rotation by n bits Carry flag DRCRP n D

DROL n D b0 b31 SM700 b16 to b15 to (D+1) (D)

Left rotation by n bits Carry flag DROLP n D

Left rotation by n bits Carry flag DRCLP n D

Page 59 of the Mitsubishi Electronics QCPU user manual — 2.5.3 Shift instructions
Page 59 · click to enlarge
Page 59

2.5.3 Shift instructions

Table 2.20 Shift Instructions

Mitsubishi Electronics QCPU — 2.5.3 Shift instructions diagram (page 59)
Fig. 49 · 2.5.3 Shift instructions

0 to 0 b15 SM700 b0 Carry flag SFLP n D

2.5 Application Instructions 2.5.3 Shift instructions

Page 60 of the Mitsubishi Electronics QCPU user manual — 2.5.4 Bit processing instructions
Page 60 · click to enlarge
Page 60

2.5.4 Bit processing instructions

Table 2.21 Bit Processing Instructions

Mitsubishi Electronics QCPU — 2.5.4 Bit processing instructions diagram (page 60)
Fig. 50 · 2.5.4 Bit processing instructions
Page 61 of the Mitsubishi Electronics QCPU user manual — 2.5.5 Data processing instructions
Page 61 · click to enlarge
Page 61

2.5.5 Data processing instructions

Table 2.22 Data Processing Instructions

Mitsubishi Electronics QCPU — 2.5.5 Data processing instructions diagram (page 61)
Fig. 51 · 2.5.5 Data processing instructions
(D)Match No. (D + 1): Number of matches
(D)Match No. (D + 1): Number of matches

2.5 Application Instructions 2.5.5 Data processing instructions

Page 62 of the Mitsubishi Electronics QCPU user manual — DMINP
Page 62 · click to enlarge
Page 62

Table 2.22 Data Processing Instructions (Continued)

Number of Basic Steps

Symbol Processing Details Execution

DIS • Separates 16-bit data designated by (S) into 4-bit units, and stores at the lower 4

DIS n S D

4 - 7-77 DISP

DISP n S D

bits of n points from (D). (n 4)

UNI • Links the lower 4 bits of n points from the device designated by (S) and stores at the

UNI n S D

4 - 7-79 UNIP

device designated by (D). (n 4)

UNIP n S D

  • Separates the data in the devices starting from the one specified by (S1) into bits specified by the devices from (S2), and stores them to the devices starting from the one specified by (D).

NDIS

NDIS S1 S2 D

NDISP

NDISP S1 S2 D

4. 7-81
  • Links the data in the devices starting from the one specified by (S1) with bits specified by the devices from (S2), and stores them to the devices starting from the one specified by (D). NUNIP

NUNI

NUNI S1 S2 D

NUNIP S1 S2 D

WTOB • Breaks n points of 16-bit data from the device designated by (S) into 8-bit units, and stores in sequence at the device designated by (D).

WTOB n S D

WTOBP

WTOBP n S D

4. 7-85

BTOW • Links the lower 8 bits of 16-bit data of n points from the device designated by (S) into 16-bit units, and stores in sequence at the device designated by (D). BTOWP

BTOW n S D

BTOWP n S D

MAX • Searches the data of n points from the device designated by (S) in 16-bit units, and stores the maximum value at the device designated by (D).

MAX n S D

MAXP

MAXP n S D

MIN • Searches the data of n points from the device designated by (S) in 16-bit units, and stores the minimum value at the device designated by (D).

MIN n S D

MINP

MINP n S D

DMAX • Searches the data of 2n points from the device designated by (S) in 32-bit units, and stores the maximum value at the device designated by (D).

DMAX n S D

DMAXP

DMAXP n S D

DMIN • Searches the data of 2n points from the device designated by (S) in 32-bit units, and stores the minimum value at the device designated by (D).

DMIN n S D

DMINP

DMINP n S D

Show 8 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · Separating · and linking · Search
Page 63 of the Mitsubishi Electronics QCPU user manual — 2.5.5 Data processing instructions
Page 63 · click to enlarge
Page 63

Table 2.22 Data Processing Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.5 Data processing instructions diagram (page 63)
Fig. 52 · 2.5.5 Data processing instructions

SORT S2 D1 S1 n D2 · S2: Number of comparisons to be made during a single run · D1: Device to be turned ON at the completion of sort · D2: For system use

· S2: Number of comparisons to be made during a single run · D1: Device to be turned ON at the completion of sort · D2: For system use

WSUM • Adds 16 bit BIN data of n points from the

DWSUM • Adds 32 bit BIN data of n points from the

2.5 Application Instructions 2.5.5 Data processing instructions

Page 64 of the Mitsubishi Electronics QCPU user manual — 2.5.6 Structure creation instructions
Page 64 · click to enlarge
Page 64

2.5.6 Structure creation instructions

Table 2.23 Structure Creation Instructions

Mitsubishi Electronics QCPU — 2.5.6 Structure creation instructions diagram (page 64)
Fig. 53 · 2.5.6 Structure creation instructions

RET • Returns from subroutine program 1 - 7-115

*1: n indicates number of arguments for subroutine program. *2: n indicates the total of the number of arguments used in the subroutine program and the number of program name steps. The number of program name steps is calculated as "number of characters in the program/2" (decimal fraction is rounded up). *3: The subset is effective only with the Universal model QCPU.

Page 65 of the Mitsubishi Electronics QCPU user manual — 2.5.6 Structure creation instructions
Page 65 · click to enlarge
Page 65

Table 2.23 Structure Creation Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.6 Structure creation instructions diagram (page 65)
Fig. 54 · 2.5.6 Structure creation instructions

2.5 Application Instructions 2.5.6 Structure creation instructions

*1: n indicates number of arguments for subroutine program. *2: n indicates the total of the number of arguments used in the subroutine program and the number of program name steps. The number of program name steps is calculated as "number of characters in the program/2" (decimal fraction is rounded up).

Page 66 of the Mitsubishi Electronics QCPU user manual — 2.5.7 Data table operation instructions
Page 66 · click to enlarge
Page 66

2.5.7 Data table operation instructions

Table 2.24 Data table Operation Instructions

Mitsubishi Electronics QCPU — 2.5.7 Data table operation instructions diagram (page 66)
Fig. 55 · 2.5.7 Data table operation instructions

FIFW S D (S) Pointer (D) Pointer + 1

FPOP S D (S) Pointer (D) Pointer - 1

FDEL n S D (S) Pointer (D) Pointer - 1

Page 67 of the Mitsubishi Electronics QCPU user manual — 2.5.9 Display instructions
Page 67 · click to enlarge
Page 67

2.5.8 Buffer memory access instructions

Table 2.25 Buffer Memory Access Instructions

Mitsubishi Electronics QCPU — 2.5.8 Buffer memory access instructions diagram (page 67)
Fig. 56 · 2.5.8 Buffer memory access instructions

FROM • Reads data in 16-bit units from an

DFRO • Reads data in 32-bit units from an

TO • Writes data in 16-bit units to an

DTO • Writes data in 32-bit units to an

2.5.9 Display instructions

Table 2.26 Display Instructions

Mitsubishi Electronics QCPU — 2.5.9 Display instructions diagram (page 67)
Fig. 57 · 2.5.9 Display instructions

2.5 Application Instructions 2.5.8 Buffer memory access instructions

Page 68 of the Mitsubishi Electronics QCPU user manual — CHKEND
Page 68 · click to enlarge
Page 68

2.5.10 Debugging and failure diagnosis instructions

Table 2.27 Debugging and Failure Diagnosis Instructions

Number of Basic Steps

Symbol Processing Details Execution

  • The CHK instruction is executed when

CHKST is executable.

CHKST

CHKST

  • Jumps to the step following the CHK

instruction when CHKST is in a

non-executable status. 1 - 7-175

  • During normal conditions SM80 : OFF,

SD80 : 0

CHK

CHK

  • During abnormal conditions SM80 : ON,

SD80 : Failure No.

CHKCIR • Starts update in ladder pattern being

CHKCIR

checked by the CHK instruction.

1. 7-179

CHKEND • Ends update in ladder pattern being

CHKEND

checked by the CHK instruction.

Show 7 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · Checks · Check condition
Page 69 of the Mitsubishi Electronics QCPU user manual — 2.5.11 Character string processing instructions
Page 69 · click to enlarge
Page 69

2.5.11 Character string processing instructions

Table 2.28 Character String Processing Instructions

Mitsubishi Electronics QCPU — 2.5.11 Character string processing instructions diagram (page 69)
Fig. 58 · 2.5.11 Character string processing instructions

2.5 Application Instructions 2.5.11 Character string processing instructions

Page 70 of the Mitsubishi Electronics QCPU user manual — EVALP
Page 70 · click to enlarge
Page 70

Table 2.28 Character String Processing Instructions (Continued)

Number of Basic Steps

Symbol Processing Details Execution

DABCD • Converts a 4-digit, decimal ASCII value designated by (S) to a 1-word BCD value, and stores it at a word device number designated by (D).

DABCD S D

DABCDP

DABCDP S D

ASCII

DDABCD • Converts a 8-digit decimal ASCII value designated by (S) to a 2-word BCD value, and stores it at the word device number designated by (D).

DDABCD S D

BCD

DDABCDP

DDABCDP S D

COMRD

COMRD S D

  • Stores comment from device designated by (S) at a device designated by (D). 3 - 7-201

COMRDP

COMRDP S D

LEN • Stores data length (number of characters) in character string designated by (S) at a device designated by (D).

LEN S D

3. 7-204

LENP

LENP S D

  • Converts a 1-word BIN value designated by (S2) to a decimal character string with the total number of digits and the number of decimal fraction digits designated by (S1) and stores them at a device designated by (D).

STR

STR S1 S2 D

BIN

STRP

STRP S1 S2 D

  • Converts a 2-word BIN value designated by (S2) to a decimal character string with the total number of digits and the number of decimal fraction digits designated by (S1) and stores them at a device designated by (D).

DSTR

DSTR S1 S2 D

DSTRP

DSTRP S1 S2 D

  • Converts a character string including decimal point designated by (S) to a 1-word BIN value and the number of decimal fraction digits, and stores them into devices designated by (D1) and (D2).

VAL

VAL D1 D2 S

VALP

VALP D1 D2 S

  • Converts a character string including decimal point designated by (S) to a 2-word BIN value and the number of decimal fraction digits, and stores them into devices designated by (D1) and (D2).

DVAL

DVAL D1 D2 S

BIN

DVALP

DVALP D1 D2 S

ESTR • Converts the 32-bit floating decimal point data designated by (S) to a character string, and stores it in devices designated by (D).

ESTR S1 S2 D

4. 7-217

ESTRP

ESTRP S1 S2 D

EVAL • Converts the character string designated by (S) to a 32-bit floating decimal point data, and stores it in devices designated by (D).

EVAL S D

3. 7-224

EVALP

EVALP S D

Show 27 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · Decimal · Device · comment · read · operation · Character · string length · detection · Decimal · character · string · Decimal · character · string · Floating · decimal point · Character · string · Character · string · Floating · decimal point
Page 71 of the Mitsubishi Electronics QCPU user manual — 2.5.11 Character string processing instructions
Page 71 · click to enlarge
Page 71

Table 2.28 Character String Processing Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.11 Character string processing instructions diagram (page 71)
Fig. 59 · 2.5.11 Character string processing instructions
  • Converts the 1-word BIN value at the device numbers designated by (S) to hexadecimal ASCII, and stores n characters of them at the device numbers designated by (D) and after.

HEX • Converts n hexadecimal ASCII characters of the device numbers designated by (S) and after to BIN values, and stores them at the device numbers designated by (D).

RIGHT • Stores n characters from the end of a

MIDW • Stores the character string of (S1) in the

2.5 Application Instructions 2.5.11 Character string processing instructions

of (D) at the position specified by (S2). MIDWP

Page 72 of the Mitsubishi Electronics QCPU user manual — 2.5.12 Special function instructions
Page 72 · click to enlarge
Page 72

2.5.12 Special function instructions

Table 2.29 Special Function Instructions

Mitsubishi Electronics QCPU — 2.5.12 Special function instructions diagram (page 72)
Fig. 60 · 2.5.12 Special function instructions
Page 73 of the Mitsubishi Electronics QCPU user manual — 2.5.12 Special function instructions
Page 73 · click to enlarge
Page 73

Table 2.29 Special Function Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.12 Special function instructions diagram (page 73)
Fig. 61 · 2.5.12 Special function instructions

RAD S D (S+1, S) (D+1, D) Conversion from angles to radians RADP S D

RADD S D (S+3, S+2, S+1, S) (D+3, D+2, D+1, D) Conversion from angle to radian RADDP S D

DEGD S D (S+3, S+2, S+1, S) (D+3, D+2, D+1, D) Conversion from radian to angle DEGDP S D

(D+3, D+2, D+1, D) (S+3, S+2, S+1, S) SQRDP S D

2.5 Application Instructions 2.5.12 Special function instructions

e(S+3, S+2, S+1, S) (D+3, D+2, D+1, D) EXPDP S D

Loge(S+3, S+2, S+1, S) (D+3, D+2, D+1, D) LOGDP S D

Page 74 of the Mitsubishi Electronics QCPU user manual — 2.5.12 Special function instructions
Page 74 · click to enlarge
Page 74

Table 2.29 Special Function Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.12 Special function instructions diagram (page 74)
Fig. 62 · 2.5.12 Special function instructions

RND • Generates a random number (from 0 to

Page 75 of the Mitsubishi Electronics QCPU user manual — 2.5.13 Data control instructions
Page 75 · click to enlarge
Page 75

2.5.13 Data control instructions

Table 2.30 Data Control Instructions

Mitsubishi Electronics QCPU — 2.5.13 Data control instructions diagram (page 75)
Fig. 63 · 2.5.13 Data control instructions
  • When (S3) (S1) .........Stores value of (S1) at (D)
  • When (S1) (S3) (S2) .........Stores value of (S3) at (D)
  • When (S2) (S3) .........Stores value of (S2) at (D)
  • When ((S3)+1, (S3)) ((S1)+1, S1) .. Stores value of ((S1)+1, (S1)) at ((D)+1, (D))

.. Stores value of ((S3)+1, (S3)) at ((D)+1, (D))

  • When ((S2), (S2)+1) ((S3), (S3)+1) .. Stores value of ((S2)+1, (S2)) at ((D)+1, (D))

2.5 Application Instructions 2.5.13 Data control instructions

Page 76 of the Mitsubishi Electronics QCPU user manual — 2.5.13 Data control instructions
Page 76 · click to enlarge
Page 76

Table 2.30 Special Function Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.13 Data control instructions diagram (page 76)
Fig. 64 · 2.5.13 Data control instructions
Page 77 of the Mitsubishi Electronics QCPU user manual — 2.5.14 Switching instructions
Page 77 · click to enlarge
Page 77

2.5.14 Switching instructions

Table 2.31 Switching Instructions

Mitsubishi Electronics QCPU — 2.5.14 Switching instructions diagram (page 77)
Fig. 65 · 2.5.14 Switching instructions

number to number designated by (S). 2 - 7-337

*1: n ([number of file name characters] / 2) indicates a step. (Decimal fractions are rounded up.)

Mitsubishi Electronics QCPU — 2.5.14 Switching instructions diagram (page 77)
Fig. 66 · 2.5.14 Switching instructions

2.5 Application Instructions 2.5.14 Switching instructions

Page 78 of the Mitsubishi Electronics QCPU user manual — 2.5.15 Clock instructions
Page 78 · click to enlarge
Page 78

2.5.15 Clock instructions

Table 2.32 Clock Instructions

Mitsubishi Electronics QCPU — 2.5.15 Clock instructions diagram (page 78)
Fig. 67 · 2.5.15 Clock instructions

Sec. + Mitnute Mitnute Mitnute DATE+P S1 S2 D

Mitnute Sec. (Lower 16 bits) Sec. (Upper 16 bits) HOURP S D

Page 79 of the Mitsubishi Electronics QCPU user manual — 2.5.15 Clock instructions
Page 79 · click to enlarge
Page 79

Table 2.32 Character String Processing Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.15 Clock instructions diagram (page 79)
Fig. 68 · 2.5.15 Clock instructions

2.5 Application Instructions 2.5.15 Clock instructions

Page 80 of the Mitsubishi Electronics QCPU user manual — 2.5.15 Clock instructions
Page 80 · click to enlarge
Page 80

Table 2.32 Character String Processing Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.15 Clock instructions diagram (page 80)
Fig. 69 · 2.5.15 Clock instructions
Page 81 of the Mitsubishi Electronics QCPU user manual — 2.5.16 Expansion clock instruction
Page 81 · click to enlarge
Page 81

2.5.16 Expansion clock instruction

Table 2.33 Expansion clock instruction

Mitsubishi Electronics QCPU — 2.5.16 Expansion clock instruction diagram (page 81)
Fig. 70 · 2.5.16 Expansion clock instruction
Mitsubishi Electronics QCPU — 2.5.16 Expansion clock instruction diagram (page 81)
Fig. 71 · 2.5.16 Expansion clock instruction

2.5 Application Instructions 2.5.16 Expansion clock instruction

Page 82 of the Mitsubishi Electronics QCPU user manual — 2.5.17 Program control instructions
Page 82 · click to enlarge
Page 82

2.5.17 Program control instructions

Table 2.34 Program Control Instructions

Mitsubishi Electronics QCPU — 2.5.17 Program control instructions diagram (page 82)
Fig. 72 · 2.5.17 Program control instructions

*1: n ([number of file name characters] / 2) indicates a step. (Decimal fractions are rounded up.)

Page 83 of the Mitsubishi Electronics QCPU user manual — 2.5.18 Other instructions
Page 83 · click to enlarge
Page 83

2.5.18 Other instructions

Table 2.35 Other Instructions

Mitsubishi Electronics QCPU — 2.5.18 Other instructions diagram (page 83)
Fig. 73 · 2.5.18 Other instructions

Upper 8 bits Lower 8 bits Upper 8 bits

Upper 8 bits Lower 8 bits Upper 8 bits

2.5 Application Instructions 2.5.18 Other instructions

ADRSET D S (S) (D) Indirect address of designated device

  • Takes in ASCII data for 8 points of input

ZPUSH • Saves the contents of index registers to a

ZPOP • Reads the data stored in the location

  • Writes a batch of data to E 2 PROM file

by n2, and stores it in the area starting

Page 84 of the Mitsubishi Electronics QCPU user manual — 2.5.18 Other instructions
Page 84 · click to enlarge
Page 84

Table 2.35 Other Instructions (Continued)

Mitsubishi Electronics QCPU — 2.5.18 Other instructions diagram (page 84)
Fig. 74 · 2.5.18 Other instructions

TYPERD • This instruction reads the module information stored in the area starting from the I/O number specified by "n", and stores it in the area starting from the device specified by (D).

Trace rset TRACER • Resets the data set the TRACE

SP.FWRITE • Writes data to the designated file. 11 -

SP.FREAD • Reads data from the designated file. 11 -

S.DEVST • Writes data to the device data storage file in the standard ROM. 9 -

S.DEVLD • Reads data from the device data storage file in the standard ROM. 8 - SP.DEVLD

than drive 0) to drive 0 and places the

RBMOV • Transfers n points of 16-bit data from the

Page 85 of the Mitsubishi Electronics QCPU user manual — 2.5.19 Instructions for Data Link
Page 85 · click to enlarge
Page 85

2.5.19 Instructions for Data Link

Table 2.36 Instructions for Data Link

Mitsubishi Electronics QCPU — 2.5.19 Instructions for Data Link diagram (page 85)
Fig. 75 · 2.5.19 Instructions for Data Link

Reads data set at routing parameters. 7 - 8-6 SP.RTREAD

2.5 Application Instructions 2.5.19 Instructions for Data Link

Page 86 of the Mitsubishi Electronics QCPU user manual — 2.5.21 Multiple CPU high-speed transmission dedicated instruction
Page 86 · click to enlarge
Page 86

2.5.20 Multiple CPU dedicated instruction

Table 2.37 Multipe CPU dedicated instruction

Mitsubishi Electronics QCPU — 2.5.20 Multiple CPU dedicated instruction diagram (page 86)
Fig. 76 · 2.5.20 Multiple CPU dedicated instruction

S. TO • Writes device data of the host station to

the host CPU shared memory. 5 - 9-4 SP. TO

TO • Writes device data of the host station to

DTO • Writes device data of the host station to

FROM • Reads device data from the other CPU

DFRO • Reads device data from the other CPU

2.5.21 Multiple CPU high-speed transmission dedicated instruction

Table 2.40 Multiple CPU high-speed transmission dedicated instruction

Mitsubishi Electronics QCPU — 2.5.21 Multiple CPU high-speed transmission dedicated instruction diagram (page 86)
Fig. 77 · 2.5.21 Multiple CPU high-speed transmission dedicate…

D.DDWR In multiple CPU system, data stored in a

device specified by host CPU ( ) or later is

by ( +1) into a device specified by another

D.DDRD In multiple CPU system, data stored in a

device specified by another CPU (n) ( ) or

lrater is stored by the number of read points

specified by ( +1) into a device specified by

Page 87 of the Mitsubishi Electronics QCPU user manual — SP.CONTSW
Page 87 · click to enlarge
Page 87

2.5.22 Redundant system instructions (For Redundant CPU)

Table 2.39 Redundant System Instructions (For Redundant CPU)

Number of Basic Steps

Symbol Processing Details Execution

Switches between the control system and

standby system at the END processing of the

SP.CONTSW

8 - 11-2 SP.CONTSW S D

scan executed with the SP.CONTSW

instruction.

2.5 Application Instructions 2.5.22 Redundant system instructions (For Redundant CPU)

Show 7 more labels / short text on this page
Instruction Symbol · See for Description · Subset · Category · Condition · System · switching
Page 88 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 88 · click to enlarge
Page 88

MEMO

Page 89 of the Mitsubishi Electronics QCPU user manual — CONFIGURATION OF INSTRUCTIONS
Page 89 · click to enlarge
Page 89

CONFIGURATION OF INSTRUCTIONS

Page 90 of the Mitsubishi Electronics QCPU user manual — Example
Page 90 · click to enlarge
Page 90

3.1 Configuration of Instructions

Most CPU module instructions consist of an instruction part and a device part.

Each part is used for the following purpose:

  • Instruction part ......indicates the function of the instruction.
  • Device part............indicates the data that is to be used with the instruction.

The device part is classified into source data, destination data, and number of devices.

(a) Source is the data used for operations.

(b) The following source types are available, depending on the designated device:

  • Constant ...............................................Designates a numeric value to be used in the

operation. This is set when the program is created, and cannot be changed during the execution of the program. Constants should be indexed when used as variable data.

  • Bit devices and word devices ...............Designates the device that stores the data to

be used in the operation. Data must be stored in the designated device until the operation is executed. By changing the data stored in a designated device during program execution, the data to be used in the instruction can be changed.

(a) The destination stores the data after the operation has been conducted. However,

some instructions require storing the data to be used in an operation at the destination prior to the operation execution.

Example

An addition instruction involving BIN 16-bit data

D S2 S1 + D S +

Stores only the operation results. Stores the data needed for operation before the actual operation.

(b) A device for the data storage must always be set to the destination.

(3) Number of devices and number of transfers (n)

(a) The number of devices and number of transfers designate the numbers of devices and

transfers used by instructions involving multiple devices.

Example

n D S BMOV

Designates the number of transfers used by a BMOV instruction

(b) The number of devices or number of transfers can be set between 0 and 32767.

However, if the number is 0, the instruction will be a no-operation instruction.

(1) Source (S) · (2) Destination (D) · Block transfer instruction

Page 91 of the Mitsubishi Electronics QCPU user manual — SET Y10
Page 91 · click to enlarge
Page 91

3.2 Designating Data

The following six types of data can be used with CPU module instructions.

Mitsubishi Electronics QCPU — 3.2 Designating Data diagram (page 91)
Fig. 78 · 3.2 Designating Data

Section 3.2.2

Section 3.2.3

Real number (floating point) data Single-precision floating point data

Section 3.2.4 (1)

Section 3.2.4 (2)

3.2.1 Using bit data

Bit data is data used in one-bit units, such as for contacts or coils.

"Bit devices" and "Bit designated word devices" can be used as bit data.

(1) When using bit devices

Bit devices are designated in one-point units.

Designation of 1 point of bit device M0

M0

SET Y10

Designation of 1 point of bit device Y10

3.2 Designating Data 3.2.1 Using bit data

(2) Using word devices

(a) Word devices enable the use of a designated bit number 1/0 as bit data by the

designation of that bit number.

1/0

Each bit of a word device can be used (1=ON, 0=OFF)

(b) Word device bit designation is done by designating " . ". (Designation of bit numbers is done in hexadecimal.) For example, bit 5 (b5) of D0 is designated as D0.5, and bit 10 (b10) of D0 is designated as D0.A. However, there can be no bit designation for timers (T), retentive timers (ST), counters (C) or index register (Z). (Example Z0.0 is not available).

Word device Bit No.

Bit designated for word device (Bit 5 (b5) of D0 is turned ON if X0 is ON.)

SET D0.5

Bit designated for word device (Turns ON Y10 if bit 5 (b5) of D0 is ON (1).)

SET Y10

to Word device · b15 b0

Page 92 of the Mitsubishi Electronics QCPU user manual — XF
Page 92 · click to enlarge
Page 92

3.2.2 Using word (16 bits) data

Word data is 16-bit numeric data used by basic instructions and application instructions.

The following two types of word data can be used with CPU module:

  • Decimal constants................. K-32768 to K32767
  • Hexadecimal constants ......... H0000 to HFFFF

Word devices and bit devices designated by digit can be used as word data.

For direct access input (DX) and direct access output (DY), word data cannot be designated by digit. (For details of direct access input and direct access output, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

(1) When Using Bit Devices

(a) Bit devices can deal with word data when digits are designated.

Digit designation of bit devices is done by designating

" ". Digit designation of bit devices can be done in 4-point (4-bit) units, and designation can be made for K1 to K4. (For link direct devices,

Number of digits Head number of bit device

designation is done by "J \

Network No. Number of digits

". When X100 to X10F are designated for Network No.2, it is done by J2\K4X100).For example, if X0 is designated for digit designation, the following points would be designated:

Head number of bit device

  • K1X0......... The 4 points X0 to X3 are designated.
  • K2X0......... The 8 points X0 to X7 are designated.
  • K3X0......... The 12 points X0 to XB are designated.
  • K4X0......... The 16 points X0 to XF are designated.

XF

XC XB X8 X7 X4 X3 X0 to

Fig 3.1 Digit Designation Setting Range for 16-Bit Instruction

(b) In cases where digit designation has been made at the source (S), the numeric values

shown in Table 3.1 are those which can be dealt with as source data.

Table 3.1 List of Numeric Values that Can Be Dealt with as Digit Designation

Number of Digits Designated With 16-Bit Instruction

K1 (4 points) 0 to 15

K2 (8 points) 0 to 255

K3 (12 points) 0 to 4095

K4 (16 points) -32768 to 32767

Show 8 more labels / short text on this page
K1 designation range · (4 points) · K2 designation range · (8 points) · K3 designation range · (12 points) · K4 designation range · (16 points)
Page 93 of the Mitsubishi Electronics QCPU user manual — 3.2.2 Using word (16 bits) data
Page 93 · click to enlarge
Page 93

(c) When destination (D) data is a word device The word device for the destination becomes 0 following the bit designated by digit designation at the source.

Mitsubishi Electronics QCPU — 3.2.2 Using word (16 bits) data diagram (page 93)
Fig. 79 · 3.2.2 Using word (16 bits) data

b1 b2 b3 0 X2 X1 X0

Fig 3.2 Ladder Example and Processing Conducted

(d) In cases where digit designation is made at the destination (D), the number of points

designated are used as the destination. Bit devices below the number of points designated as digits do not change.

Mitsubishi Electronics QCPU — 3.2.2 Using word (16 bits) data diagram (page 93)
Fig. 80 · 3.2.2 Using word (16 bits) data

0 0 1 1 0 1 0 0 H1234 0 0 1 0 0 1 0 0

3.2 Designating Data 3.2.2 Using word (16 bits) data

Word devices are designated in 1-point (16 bits) units.

Designation of 1 point of word device D0 (16 bits)

1. When digit designation processing is conducted, a random value can be used for the bit device initial device number. 2. Digit designation cannot be made for the direct access I/O (DX, DY).
Page 94 of the Mitsubishi Electronics QCPU user manual — 3.2.3 Using double word data (32 bits)
Page 94 · click to enlarge
Page 94

3.2.3 Using double word data (32 bits)

Double word data is 32-bit numerical data used by basic instructions and application instructions.

  • The two types of double word data that can be dealt with by CPU module are as follows:
  • Decimal constants................. K-2147483648 to K2147483647
  • Hexadecimal constants ......... H00000000 to HFFFFFFFF

Word devices and bit devices designated by digit designation can be used as double word data.

For direct access input (DX) and direct access output (DY), designation of double word data is not possible by digit designation.

(1) When Using Bit Devices

(a) Digit designation can be used to enable a bit device to deal with double word data.

Digit designation of bit devices is done by designating

" ". For link direct devices, designation is done by

Number of digits Head number of bit device

Network No. Number of digits Head number of bit device

"J \ ". When X100 to X11F are designated for Network No.2, it is done by J2\K8X100. Digit designation of bit devices can be done in 4-point (4-bit) units, and designation can be made for K1 to K8. For example, if X0 is designated for digit designation, the following points would be designated:

  • K1X0......The 4 points X0 to X3 are
  • K5X0...... The 20 points X0 to X13 are

designated. • K2X0 The 8 points X0 to X7 are

designated.

  • K6X0...... The 24 points X0 to X17 are

designated. • K3X0 The 12 points X0 to XB are

designated.

  • K7X0...... The 28 points X0 to X1B are

designated. • K4X0 The 16 points X0 to XF are

designated.

  • K8X0...... The 32 points X0 to X1F are

designated.

designated.

Mitsubishi Electronics QCPU — 3.2.3 Using double word data (32 bits) diagram (page 94)
Fig. 81 · 3.2.3 Using double word data (32 bits)

X1F X1C X1B X18 X17 X14 X13 X10 XF XC XB X8 X7 X4 X3 X0

Fig 3.4 Digit Designation Setting Range for 32-Bit Instructions

(b) In cases where digit designation has been made at the source (S) , the numeric values

shown in Table 3.2 are those which can be dealt with as source data.

Table 3.2 List of Numeric Values that Can Be Dealt with as Digit Designation

Mitsubishi Electronics QCPU — 3.2.3 Using double word data (32 bits) diagram (page 94)
Fig. 82 · 3.2.3 Using double word data (32 bits)

K1 (4 points) 0 to 15 K5 (20 points) 0 to 1048575

K2 (8 points) 0 to 255 K6 (24 points) 0 to 16777215

K3 (12 points) 0 to 4095 K7 (28 points) 0 to 268435455

K4 (16 points) 0 to 65535 K8 (32 points) 2147483648 to 2147483647

Page 95 of the Mitsubishi Electronics QCPU user manual — 3.2.3 Using double word data (32 bits)
Page 95 · click to enlarge
Page 95

(c) When destination (D) data is a word device

The word device for the destination becomes 0 following the bit designated by digit designation at the source.

Mitsubishi Electronics QCPU — 3.2.3 Using double word data (32 bits) diagram (page 95)
Fig. 83 · 3.2.3 Using double word data (32 bits)

b1 b2 b3 0 X2 X1 X0

Fig 3.5 Ladder Example and Processing Conducted

(d) In cases where digit designation is made at the destination (D), the number of points

designated are used as the destination. Bit devices below the number of points designated as digits do not change.

Mitsubishi Electronics QCPU — 3.2.3 Using double word data (32 bits) diagram (page 95)
Fig. 84 · 3.2.3 Using double word data (32 bits)

1 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0

3.2 Designating Data 3.2.3 Using double word data (32 bits)

1 0 0 1 1 1 0 1 b7 b0 D0 1 0 0 1 1 1 0 0

0 b7 0 1 1 0 1 1 1 b0 D1

1 0 0 1 1 1 0 1 M17 M10

1. When digit designation processing is conducted, a random value can be used for the bit device initial device number. 2. Digit designation cannot be made for the direct access I/O (DX, DY).
Page 96 of the Mitsubishi Electronics QCPU user manual — 3.2.4 Using real number data
Page 96 · click to enlarge
Page 96

(2) Using word devices

A word device designates devices used by the lower 16 bits of data. A 32-bit instruction uses (designation device number) and (designation device number + 1).

Mitsubishi Electronics QCPU — 3.2.4 Using real number data diagram (page 96)
Fig. 85 · 3.2.4 Using real number data

Designation of 2 points of word devices D0 and D1 (32 bits) 32-bit data transfer instruction

3.2.4 Using real number data

Real number data is floating decimal point data used with basic instructions and application instructions.

Only word devices are capable of storing real number data.

(1) Single-precision floating-point data

Instructions which deal with single-precision floating-point data designate devices which are used for the lower 16 bits of data. Single-precision floating-point data are stored in the 32 bits which make up (designated device number) and (designated device number + 1).

Mitsubishi Electronics QCPU — 3.2.4 Using real number data diagram (page 96)
Fig. 86 · 3.2.4 Using real number data

Designation of 2 points of word devices D0 and D1 (32 bits)

Designation of 2 points of R100 and R101 (32 bits)

In sequence programs, floating decimal point data are designated by E .

Single-precision floating-point data uses two word devices and is expressed in the following manner:

[Sign] 1. [Mantissa part] 2 [Exponent part] The bit configuration and meaning of the internal representation of single- precision floating-point data is as follows:

Mitsubishi Electronics QCPU — 3.2.4 Using real number data diagram (page 96)
Fig. 87 · 3.2.4 Using real number data

b31 b30 to b23 b22 b16 to b15 b0 to

  • Sign The sign is represented at b31. 0: Positive 1: Negative
  • Exponent part The n of 2n is represented from b23 to b30. Depending on the BIN value of b23 to b30, the value of n is as follows:

b23 to b30 FFH FEH FDH 81 80 7FH 7EH 02 01 00

n Not used 127 126 2 1 0 -1 -125 -126 Not used

Page 97 of the Mitsubishi Electronics QCPU user manual — 3.2.4 Using real number data
Page 97 · click to enlarge
Page 97
  • Variable part The 23 bits from b0 to b22, represents the XXXXXX... at binary 1.XXXXXX....

(2) Double-precision floating-point data

Instructions which deal with double-precision floating-point datadesignate devices which are used for the lower 16 bits of data. Double-precision floating-point data are stored in the 64 bits which make up (designated device number) to (designated device number + 3).

Mitsubishi Electronics QCPU — 3.2.4 Using real number data diagram (page 97)
Fig. 88 · 3.2.4 Using real number data

Designation of 4 points of word devices D0, D1, D2 and D3 (64 bits)

Designation of 4 points of R100, R101, R102 and R103 (64 bits)

In sequence programs, floating decimal point data are designated by E .

Double-precision floating-point data uses four word devices and is expressed in the following manner:

[Sign] 1. [Mantissa part] 2 [Exponent part] The bit configuration and meaning of the internal representation of double- precision floating-point data is as follows:

Mitsubishi Electronics QCPU — 3.2.4 Using real number data diagram (page 97)
Fig. 89 · 3.2.4 Using real number data

b63 b62 to b52 b51 b16 to b15 b0 to

3.2 Designating Data 3.2.4 Using real number data

  • Sign The sign is represented at b63. 0: Positive 1: Negative
  • Exponent part The n of 2n is represented from b52 to b62. Depending on the BIN value of b52 to b62, the value of n is as follows:

b52 to b62 7FFH 7FEH 7FDH 400H 3FFH 3FEH 3FCH 02H 01H 00H

  • Variable part The 52 bits from b0 to b51, represents the XXXXXX... at binary 1.XXXXXX....
Page 98 of the Mitsubishi Electronics QCPU user manual — 3.2.4 Using real number data
Page 98 · click to enlarge
Page 98
1. The CPU module floating decimal point data can be monitored using the monitoring function of a peripheral device. 2. When floating-point data is used to express 0, all data in the following range are turned to 0.
(a) Single-precision floating-point datab0 to b31 (b) Double-precision floating-point data: b0 to b63
3. The setting range of floating decimal point data is as follows. * 1

(a) Single-precision floating-point data

2128 < Device data 2-126, 0, 2-126 Device data < 2128

(b) Double-precision floating-point data

21024 < Device data 2-1022,0,2-1022 Device data < 21024

4. Do not specify 0 in floating-point data (when only the most significant bit of the floating-point real number is 1). (An operation error will occur if

floating-point operation is performed with 0.) The CPU module that performs the internal operation of floating-point operation with double precision does not result in operation error since it performs floating-point operation after

converting 0 into 0 in the CPU module when 0 is specified. The CPU module that performs the internal operation of floating-point operation with single precision results in operation error since it gives priority to the processing

speed and uses 0 in floating-point operation without conversion when 0 is specified.

(a) The following CPU modules will not result in operation error when 0 is specified. • High Performance model QCPU where internal operation is set to

double precision *2

(The internal operation of floating-point operation defaults to double precision.) (b) The following CPU modules will result in operation error when -0 is

specified.

  • Basic model QCPU * 3
  • High Performance model QCPU where internal operation is set to single
  • Process CPU
  • Redundant CPU
  • Universal model QCPU

*1: For operations when a real number is out of range and operations when an invalid value is input, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals). *2: Switch between single precision and double precision of the internal operation of floating-point operation in the PLC system of the PLC parameter dialog box. For the single precision and double precision of floating- point operation, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals). *3: The Basic model QCPU can perform floating-point operation if its first five digits of serial No. are "04122 or later".

precision *2

Page 99 of the Mitsubishi Electronics QCPU user manual — M0
Page 99 · click to enlarge
Page 99

3.2.5 Using character string data

Character string data is character data used by basic instructions and application instructions.

The target ranges from the designated character to the NULL code (00H) that indicates the end of the character string.

(1) When designated character is the NULL code

One word is used to store the NULL code.

M0

$MOV " " D0

D0 NULL

Designation of NULL code (00H)

Character string data transfer instruction

(2) When character string is even

Uses (number of characters/2 + 1) words, and stores character string and NULL code. For example, if "ABCD" is transferred to D0, the character string ABCD is stored at D0 and D1, and the NULL code is stored at D2. (The NULL code is stored as the last one word.)

M0

$MOV "ABCD" D0

42 H

41 H

44 H

43 H

NULL

3.2 Designating Data 3.2.5 Using character string data

Designation of a character string composed of even numbers

Character string data transfer instruction

(3) When number of characters is odd

Uses (number of characters/2) words (rounds up decimal fractions) and stores the character string and NULL code. For example, if "ABCDE" is transferred to devices starting from D0, the character string (ABCDE) and the NULL code are stored from D0 to D2. (The NULL code is stored into the upper 8 bits of the last one word.)

M0

$MOV "ABCDE" D0

42 H

41 H

44 H

43 H

D2 45 H

NULL

Designation of a character string composed of odd numbers

Character string data transfer instruction

Page 100 of the Mitsubishi Electronics QCPU user manual — MOV D10Z0 D0
Page 100 · click to enlarge
Page 100

3.3 Indexing

(1) Overview of indexing

(a) Indexing is an indirect setting made by using an index register.

When an Indexing is used in a sequence program, the device to be used will become the device number specified directly plus the contents of the index register. For example, if D2Z2 has been specified, the specified device is calculated as follows: D(2+3) = D5 and the content of Z2 is 3 become the specified device.

(b) Indexing with 16-bit index registers and indexing with 32-bit index registers are possible

only for Universal model QCPU.

(2) Indexing with 16-bit index registers

(a) Example of indexing

Each index register can be set between 32768 and 32767. Indexing is performed in the way shown below:

MOV K Z0

Stores -1 at Z0.

Stores the data of D10Z0= D{10+(-1)} = D9 at D0.

MOV D10Z0 D0

(b) Devices to which indexing can be used

With the exception of the restrictions noted below, Indexing can be used with devices used with contacts, coils, basic instructions, and application instructions.

1. Devices to which indexing can not be used

K, H 32-bit constant

E Floating decimal point data

$ Character string data

. Bit designated for word device

FX, FY, FD Function devices

P Pointers used as labels

I Interrupt pointers used as labels

TR SFC transfer devices*1

BL SFC block devices*1

*1: SFC transfer devices and SFC block devices are devices for SFC use. Refer to the manual below for how to use these devices. • QCPU (Q mode)/QnACPU Programming Manual (SFC)

Show 4 more labels / short text on this page
Indexing · Device Meaning · Z Index register · S Step relay
Page 101 of the Mitsubishi Electronics QCPU user manual — 3.3 Indexing
Page 101 · click to enlarge
Page 101
2. Devices with limits for use with index registers
Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 101)
Fig. 90 · 3.3 Indexing

T • Only Z0 and Z1 can be used for timer contacts and coils.

C • Only Z0 and Z1 can be used for counter contacts and coils.

For timer and counter present values, there are no limits on index register numbers used.

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 101)
Fig. 91 · 3.3 Indexing

(c) A case where Indexing has been performed, and the actual process device, would be as follows:

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 101)
Fig. 92 · 3.3 Indexing

3.3 Indexing

D (0 + 20) = D20 K3Y(12F - 5) = K3Y12A

A method of specifing index registers in indexing with 32-bit can be selected from the following two methods. • Specifing the index registers’ range used for indexing with 32-bit.

Page 102 of the Mitsubishi Electronics QCPU user manual — MOV ZR10Z0 D0
Page 102 · click to enlarge
Page 102
  • Specifing the 32-bit indexing using “ZZ” specification.

The 32-bit indexing with “ZZ” specification is available only for the following CPU modules that the version of GX Developer is 8.68W or later.

  • The first five digits of the serial No. for QnU(D)(H)CPU is “10042” or higher.
  • QnUDE(H)CPU

(a) Example of specifing the range of index registers for use of 32-bit indexing.

1. Each index register can be set between -2147483648 and 2147483647.

An example of indexing is shown below.

DMOV X0

K40000 Z0 Stores 40000 at Z0.

Stores the data of ZR10Z0= ZR{10+40000}=ZR40010 at D0.

MOV ZR10Z0 D0

2. Specification method For indexing with a 32-bit index register, specify the head number of an index register to be used on the Device tab of the Q parameter setting screen on GX Developer.
Mitsubishi Electronics QCPU — MOV ZR10Z0 D0 diagram (page 102)
Fig. 93

GX Developer 8.68R or earlier GX Deveioper 8.68W or later

Fig. 3.8 Setting windows for ZR device indexing setting parameter

When the head number of the index register used is changed on the Device tab of the Q parameter setting screen, do not change the parameters only or do not write only the parameters into the programmable controller. Be sure to write the param- eter into the programmable controller with the program. When the parameter is forced to be written into the programmable controller, an error of CAN'T EXE. PRG. occurs. (Error code: 2500)

Indexing

Page 103 of the Mitsubishi Electronics QCPU user manual — DMOV K100000 Z0
Page 103 · click to enlarge
Page 103
3. Device that indexing can be used

Indexing can be used only for the device shown below.

ZR Serial number access format file register

D Extended data register (D)

W Extended link register (W)

4. Usable range of index registers

The following table shows the usable range of index registers for indexing with 32-bit index registers. For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the specified register (Zn+1) are used. Be sure not to

overlap index registers to be used.

Setting Value Index Registers to be Used Setting Value Index Registers to be Used

Z0 Z0, Z1 Z10 Z10, Z11

Z1 Z1, Z2 Z11 Z11, Z12

Z2 Z2, Z3 Z12 Z12, Z13

Z3 Z3, Z4 Z13 Z13, Z14

Z4 Z4, Z5 Z14 Z14, Z15

Z5 Z5, Z6 Z15 Z15, Z16

Z6 Z6, Z7 Z16 Z16, Z17

Z7 Z7, Z8 Z17 Z17, Z18

Z8 Z8, Z9 Z18 Z18, Z19

Z9 Z9, Z10 Z19 Cannot be specified

5. An example of indexing and the actual process device are as follows.

(When Z0 (32-bit) 100000 and Z2 (16-bit) 20)

Ladder Example Actual Process Device

3.3 Indexing

DMOV K100000 Z0

MOV

ZR101000 D10

MOV K-20 Z2

ZR1000Z0 ZR(1000+100000)=ZR101000 D30Z2 D(30-20)=D10

MOV ZR1000Z0 D30Z2

Fig. 3.9 Ladder Example and Actual Process Device

Device Meaning · Description

Page 104 of the Mitsubishi Electronics QCPU user manual — 3.3 Indexing
Page 104 · click to enlarge
Page 104

(b) Example of specifing 32-bit indexing with “ZZ” specification.

1. One index register can specify 32-bit indexing by using “ZZ” specification such as “ZR0ZZ4”.

The 32-bit indexing with “ZZ” specification is as follows.

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 104)
Fig. 94 · 3.3 Indexing

Indexing ZR device with 32-bit index registers (Z4 and Z5) ZR (0+100000) =ZR100000

2. Specification method

To perform 32-bit indexing by using “ZZ” specification, select “Use of ZZ” in “Indexing Setting for ZR Device” in PC parameter for GX Developer.

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 104)
Fig. 95 · 3.3 Indexing

Fig. 3.10 Setting window for indexing setting parameter for ZR device

3. Device that indexing can be used

The following device is available for indexing.

ZR Serial number access format file register

D Extended data register (D)

W Extended link register (W)

4. Usable range of index registers

The following table shows the usable range of index registers in 32-bit indexing used “ZZ” specification. The 32-bit indexing with “ZZ” specification is specified as the format ZRmZZn. Specifying ZRmZZn enables Zn and Zn+1 of 32-bit values to index the device

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 104)
Fig. 96 · 3.3 Indexing

*1: refers to device name (ZR) for indexing target.

Device Meaning · number, ZRm,

Page 105 of the Mitsubishi Electronics QCPU user manual — MOV ZR101000 D10
Page 105 · click to enlarge
Page 105
5. The 32-bit indexing used “ZZ” specification and the acutual processing device are as follows.

(Z0 (32-bit) 100000.Z2 (16-bit) 20)

Ladder Example Actual Process Device

MOV ZR101000 D10

DMOV

K100000 Z0

END

MOV

K-20

Z2

MOV ZR1000ZZ0 D30Z2

ZR1000ZZ0 ZR(1000+100000)=ZR101000

D30Z2 D(30-20)=D10

Fig.3.10 Ladder Example and Actual Process Device

6. Available functions for “ZZ” specification

The 32-bit indexing specification with “ZZ” specification applies in the following functions in GX Developer.

No. Function Name and Description

1 Specifing devices in program instruction

2 Monitoing device registrations

3 Testing devices execution type

4 Testing devices with conditions

5 Setting monitor conditions

3.3 Indexing

Single ZZn cannot be used as a device like “DMOV K100000 ZZ0”. When setting values of index registers to specify 32-bit indexing with “ZZ” specification, set the value of Zn (Z0~Z19). Single ZZAn cannot be input to each function in GX Develoiper.

Show 4 more labels / short text on this page
Description · Tracing sampling · (Trace point(specifing devices), · Trace taget device)
Page 106 of the Mitsubishi Electronics QCPU user manual — Z0=0
Page 106 · click to enlarge
Page 106

(4) Index modification using extended data register (D) and extended link register (W)

(Universal model QCPU(except Q00UJCPU))

Like index modification using data register (D) and link register (W) of internal user device, a device can be specified by index modification within the range of the extended data register (D) and extended link register (W).

Index modification in internal user device

Image of D device

Z0=0

MOV K1234

Z0=1000

Z1=0

MOV K1234

Z1=2000

Index modification in extended data register

1. Index modification where the device number crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W)

The specification of index modification where the device number crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W) cannot be made. If doing so, an error occurs when the device range check is enabled at index modification (error code: 4101).

Index modification in internal user device

Image of D device

Z0=0

MOV K1234

Z0=20000

Index modification where the device number

crosses over the boundary between theinternal user device and the extended data

register is not possible.

Show 6 more labels / short text on this page
User Program · Internal user device · Extended data register · User Program · Internal user device · Extended data register
Page 107 of the Mitsubishi Electronics QCPU user manual — Z1=10000
Page 107 · click to enlarge
Page 107
2. Index modification where the device number crosses over the boundary among the file register (ZR), extended data register (D), and extended link register (W)

Index modification where the device number crosses over the boundary among the file register (ZR), extended data register (D), and extended link register (W) will not cause an error. However, an error occurs if the index modification result of file register (ZR), extended data register (D), and extended link register exceeds the file register range (error code: 4101).

Index modification where the device number crosses over the boundary among the file register (ZR), extended data register (D) will not cause an error.

ZR100

Z0=0

MOV K1234

Z0=10000

Extended data register (D) (8k) D12288~

Z1=0

MOV K1234 Z20000Z1

Extended link register (W) (8k) W2000~

Z1=4000

W2DC0

Index modification where the device number crosses over the boundary among the extended data register (D), and extended link register (W) will not cause an error.

Extended link register exceeds

3.3 Indexing

the file register range.

Z1=10000

File register files · User Program · File register (8k)

Page 108 of the Mitsubishi Electronics QCPU user manual — MOV U3E0Z1 \ G0Z2 D0
Page 108 · click to enlarge
Page 108

(5) Other index modifications

Device numbers can be index modified when performing digit designation. However, Indexing is not possible by digit designation.

BIN K4X0Z2 D0 Setting is possible since this indicates Indexing for device number. If Z2=3, then (X0+3)=X3

BIN K4Z3X0 D0

Setting is not possible since this indicates Indexing by digit designation.

(b) Both I/O numbers and buffer memory number can be performed indexing with

intelligent function module devices*1.

MOV U10Z1\G0Z2 D0

If Z1=2 and Z2=8, then U(10+2)\G(0+8)=U12\G8

(c) Both network numbers and device numbers can be performed indexing with link direct

devices*1.

MOV J1Z1\K4X0Z2 D0

If Z1=2 and Z2=8, then J(1+2)\K4X(0+8)=J3\K4X8

*1: For the intellingent function module device, link direct devices, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)

(d) When indexing is used for multiple CPU shared devices*2, indexing for the head I/O

numbers of CPU modules and indexing for the CPU shared memory address are automatically executed.

MOV U3E0Z1 \ G0Z2 D0

If Z1=2 and Z2=8, then U3E(0+2)\G(0+8)=U3E2\G8

*2: For the multiple CPU shared device, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)

(a) Bit data

Page 109 of the Mitsubishi Electronics QCPU user manual — 3.3 Indexing
Page 109 · click to enlarge
Page 109

(e) Index modification using extended data register (D) and extended link register (W) by

32 bits (Universal model QCPU(except Q00UJCPU)) Like index modification using file register (ZR), index modification using extended data register (D) and extended link register (W) by 32 bits can be performed by the following two methods.

  • Specifing the index registers’ range used for indexing with 32-bit.
  • Specifing the 32-bit indexing using “ZZ” specification.

The 32-bit indexing with “ZZ” specification is available only for the following CPU modules that the version of GX Developer is 8.68W or later.

  • The first five digits of the serial No. for QnU(D)(H)CPU is “10042” or higher.

(except Q00UJCPU) • QnUDE(H)CPU

(a) Performing indexing between the FOR and NEXT instructions

Pulses can be output between the FOR and NEXT instructions by use of the edge relay

(V). However, pulse output using the PLS/PLF/pulse ( P) instruction is not allowed.

[When edge relay is used] [When edge relay is not used]

(M0Z1 provides normal pulse output.) (M0Z1 does not provide normal pulse output.)

Mitsubishi Electronics QCPU — 3.3 Indexing diagram (page 109)
Fig. 97 · 3.3 Indexing

3.3 Indexing

The ON/OFF data of X0Z1 is stored by the edge relay V0Z1. For example, the ON/OFF data of X0 is stored by V0, and that of X1 by V1.

(6) Cautions

Page 110 of the Mitsubishi Electronics QCPU user manual — SM400 Z1 K0 MOV
Page 110 · click to enlarge
Page 110

(b) Performing indexing with the CALL instruction

Pulses can be output with the CALL instruction by use of the edge relay (V). However,

pulse output using the PLS/PLF/pulse ( P) instruction is not allowed.

[When edge relay is used] [When edge relay is not used]

(M0Z1 provides normal pulse output.) (M0Z1 does not provide normal pulse output.)

SM400 Z1 K0 MOV

SM400 Z1 K0 MOV

P0 CALL

P0 CALL

SM400 Z1 K1 MOV

SM400 Z1 K1 MOV

P0 CALL

P0 CALL

FEND

FEND

X0Z1 M0Z1 V0Z1

X0Z1

P0

P0 M0Z1 PLS

RET

RET

(c) Device range check during indexing

1. CPUs other than Universal model QCPU

Device range checks are not conducted during indexing. Therefore, when the data after index modification exceed the user specified device range, the data is written to another device without causing an error.(Note, however, that when the data after index modification is written to the device for system use exceeding the user specified device range, an error occurs. (Error code: 1103)) Take extra precaution when using indexing in programming.

2. Universal model QCPU

The device range is checked for indexing. With changing the settings of the PLC parameter on GX Developer, the device range is not checked.

(d) Changing indexing with 16-bit index register for indexing with 32-bit index register

For changing indexing with 16-bit index register for indexing with 32-bit index register, check if the program has enough spaces for indexing. For indexing with 32-bit index registers, the specified index register (Zn) and the next index register of the specified register (Zn+1) are used. Be sure not to overlap index registers to be used.

Page 111 of the Mitsubishi Electronics QCPU user manual — 3.4 Indirect Specification
Page 111 · click to enlarge
Page 111

3.4 Indirect Specification

(a) Indirect specification is a method that specifies address of the device to be used in a

sequence program using two word devices (two points of word device). Use indirect specification as index modification when the index register is insufficient.

Mitsubishi Electronics QCPU — 3.4 Indirect Specification diagram (page 111)
Fig. 98 · 3.4 Indirect Specification

D100 ADRSET D0 Stores the address of D100 to D0.

(Address of D100) + 50 = (Address of D150) Specification of D (100 + 50) = D150

[When index resister is used] [When indirect specification is used]

(b) Specify the device to be used for specifying the address as "@ + (word device

number)". For example, when @D100 is specified, the device address will be the contents of D101 and D100.

(c) The address of the device specified indirectly can be confirmed with the ADRSET instruction. For the ADRSET instruction, refer to Section 7.18.6.

(2) Indirect specification available devices

Table 3.3 shows that the CPU module devices can be specified indirectly.

Table 3.3 List of Indirect Specification Available Devices

Mitsubishi Electronics QCPU — 3.4 Indirect Specification diagram (page 111)
Fig. 99 · 3.4 Indirect Specification

3.4 Indirect Specification

  • Word device *1 Available
  • @D100
  • @D100Z2 *2
  • Word device *1 Available *3
  • @J1\W10
  • @J1Z1\W10Z2 *2
  • Intelligent function module device Available *3
  • @U10\G0
  • @U10Z1\G0Z2 *2
  • File register Available
  • @R0, @ZR20000
  • @R0Z1,@ZR20000Z1 *2
  • Extended data register (D) Available
  • @D1000
  • @W1000 Extended link register (W)

*1: For the device names, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals) *2: Indicates when index modification by an index register is performed. *3: Indirect specification is possible, but the address can not be written with the ADRSET instruction.

(1) Indirect Specification

Page 112 of the Mitsubishi Electronics QCPU user manual — D+ K1000 D100 D102
Page 112 · click to enlarge
Page 112

(a) The address for indirect specification uses two words.Therefore, to substitute indirect

specification for index modification, the addition/subtraction of 32-bit data is required. The following is the ladder used for the address addition/subtraction of the device stored in D1 and D0 for indirect specification.

[To add "1" to the address of the device for indirect specification]

DINCP D0

Device used for indirect specification

[To subtract "1" from the address of the device for indirect specification]

DDECP D0

Device used for indirect specification

(b) Indirect specification of extended data register (D) and extended link register (W)

Indirect specification with indirect address can be performed in the extended data register (D) and extended link register (W). Note that when indirect specification is performed to the extended data register (D) and data register (D) in internal device or to the extended link register (W) and link register (W) in internal device, the areas of the internal user device and extended data register (D) or extended link register (W) are not treated as a sequence.

ADRSET D12000 D100 Setting an address "D12000 h to D100 and D101

D12000 D12287

Setting the address that is an addition of 1000 to the address of D12000 to D102 and D103

D+ K1000 D100 D102

MOV K1234 @D102

D13000 Since the areas of the data register and extended data register are not sequence, D13000 is inaccessible.

Extended link register (W)

Show 8 more labels / short text on this page
(3) Precautions · 32-bit instruction · 32-bit instruction · Internal user device · Data register · File register files · File register · Extended data register(D)
Page 113 of the Mitsubishi Electronics QCPU user manual — 3.5 Reducing Instruction Processing Time
Page 113 · click to enlarge
Page 113

3.5 Reducing Instruction Processing Time

3.5.1 Subset Processing

Subset processing is used to place limits on bit devices used by basic instructions and application instructions in order to increase processing speed.

However, the instruction symbol does not change.

To shorten scans, run instructions under the conditions indicated below.

(1) Conditions which each device must meet for subset processing

(a) When using word data

  • Designates a bit device number in a factor of 16.
  • Only K4 can be designated for digit designation.
  • Does not perform indexing.
  • Internal user device.
  • File register (R, ZR * 1 )
  • Multiple CPU shared device * 1 , * 2
  • Index register (Z) / Standard device register (Z) * 1

Constants • No limitations

(b) When using double word data

  • Designates a bit device number in a factor of 16.
  • Only K8 can be designated for digit designation.
  • Does not perform indexing.
  • Internal user device.

3.5 Reducing Instruction Processing Time 3.5.1 Subset Processing

  • File register (R, ZR * 1 )
  • Multiple CPU shared device * 1 , * 2
  • Index register (Z) / Standard device register (Z) * 1

Constants • No limitations

(c) When using bit data

Bit device • Internal user device (indexing possible)

  • Bit specification of internal user device
  • Bit specification of file register (R, ZR * 1 )
  • Bit specification of multiple CPU shared device * 1 , * 2

*1: Only for Universal model QCPU *2: Valid only for the multiple CPU high speed transmission area (from U3En\G10000) (Excluding the case that indexing is executed for the head I/O number of the CPU module (U3En\G10000))

Show 8 more labels / short text on this page
Device Condition · Bit device · Word device · Device Condition · Bit device · Word device · Device Condition · Word device
Page 114 of the Mitsubishi Electronics QCPU user manual — 3.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU)
Page 114 · click to enlarge
Page 114

(2) Instructions for which subset processing can be used

Mitsubishi Electronics QCPU — 3.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU) diagram (page 114)
Fig. 100 · 3.5.2 Operation processing with standard device regi…

Comparison operation instruction • ,D ,D

Data conversion instructions • BCD, BIN, DBCD, DBIN, FLT, DFLT, INT, DINT

  • Data transfer instruction
  • MOV, DMOV, CML, DCML, XCH, DXCH
  • FMOV, BMOV, EMOV

Logic operations • WAND, DAND, WOR, DOR, WXOR, DXOR, WXNR, DXNR

Rotation instruction • RCL, DRCL, RCR, DRCR, ROL, DROL, ROR, DROR

3.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU)

Operation processing time can be reduced with standard device registers (Z).

The following shows an example program with standard device registers.

Mitsubishi Electronics QCPU — 3.5.2 Operation processing with standard device registers (Z) (only Universal model QCPU) diagram (page 114)
Fig. 101 · 3.5.2 Operation processing with standard device regi…

Using data registers takes three steps and the operation processing time of 28.5 ns. (With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)

Using standard device registers instead of data registers takes one step and the operation processing time of 9.5 ns. (With Q4/Q06/Q10/Q13/Q20/Q26UD(E)HCPU)

Operation processing time is reduced with the instructions that the subset processing is possible.

For the number of steps, refer to Section 3.8.

For the operation time for each instruction, refer to Appendix 1.

Because standard device registers are the same devices as index registers, do not use device numbers of the standard device registers for the index registers.

Page 115 of the Mitsubishi Electronics QCPU user manual — DMOV K100 D12287
Page 115 · click to enlarge
Page 115

3.6 Cautions on Programming (Operation Errors)

Operation errors are returned in the following cases when executing basic instructions and application instructions with CPU module:

  • An error listed on the explanatory page for the individual instruction occurred.
  • When an intelligent function module device is used, no intelligent function module is installed at the specified I/O number position.
  • When an intelligent function module device is used, the specified buffer memory address does not exist.
  • The relevant network does not exist when using a link device.
  • When a link device is used, no network module is installed at the specified I/O number position.
  • When a multiple CPU shared device is used, a CPU module is not installed at the head I/O number position of the specified CPU module.
  • When a multiple CPU shared device is used, the specified shared memory address does not exist.
  • The setting of the device number crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). (Universal model QCPU only)

When file register is set but a memory card is not installed or when file register is not set, writing/reading to/from file register is as follows: (1) For the High Performance model QCPU, Process CPU, and Redundant CPU

An error does not occur even when writing/reading to/from file register is performed. However, “0H” is stored when reading from file register is performed. (2) For the Universal model QCPU

The OPERATION ERROR (error code:4101) occurs when writing/reading to/ from file register is performed.

(1) Device range check

3.6 Cautions on Programming (Operation Errors)

Device range checks for the devices used by basic instructions and application instructions in CPU module are as indicated below:

(a) Instructions for specified each device, including MOV and DMOV

1. CPUs other than Universal model QCPU The device range is not checked. In cases where the corresponding device range is exceeded, data is written to other devices. * 1

For example, in a case where the data register has been allocated 12k points, there will be no error even if it exceeds D12287.

DMOV K100 D12287

This designates D12287 and D12288 as the target devices for executing the DMOV instruction. However, since D12288 does not exist, data in another device is corrupted.

Device range checks are not conducted also in cases where indexing is being performed. In cases where the corresponding device range is exceeded as the result of performing indexing, data is written to other devices.*1

*1: For the assignment order of internal user devices, refer to this Section (c) Character string data.

Page 116 of the Mitsubishi Electronics QCPU user manual — D0 D12287Z1 K2 BMOV
Page 116 · click to enlarge
Page 116
2. Universal model QCPU

The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.

DMOV K100 D12287

When D12287 is specified with the DMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.

The device range is checked even though indexing is executed. With changing the settings of the PLC parameter on GX Developer, the device

range is not checked.*2

*2: For changing the settings of the PLC parameter on GX Developer, refer to the following manual.

  • QCPU User's Manual (Function Explanation, Program Fundamentals)

(b) Instructions for a block of devices, including BMOV and FMOV

1. CPUs other than Universal model QCPU

The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when 12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.

D0 D12287 K2 BMOV

This designates D12287 and D12288 as the target devices for executing the BMOV instruction. However, since D12288 does not exist, an operation error occurs.

Device range checks are also conducted when indexing is performed. However, if indexing has been conducted, there will be no error returned if the initial device number exceeds the relevant device range.

K2 Z1 MOV

D0 D12285Z1 K2 BMOV

When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.

D0 D12287Z1 K2 BMOV

An operation error occurs since head device number is D12289 that exceeds the device range.

Page 117 of the Mitsubishi Electronics QCPU user manual — $MOV "ABC" D12287
Page 117 · click to enlarge
Page 117
2. Universal model QCPU

The device range is checked. When the device number is outside the device range, an operation error occurs. For example, when12 k points are assigned to a data register, an error occurs if the device number of the data register exceeds D12287.

BMOV D0 K2 D12287

When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.

The device range is checked even though indexing is executed. An error occurs when the head device number of the devices with indexing exceeds the device range.

K2 Z1 MOV

D0 D12285Z1 K2 BMOV

When D12287 is specified with the BMOV instruction, the target devices are D12287 and D12288. However, an operation error occurs because D12288 does not exist.

D0 D12287Z1 K2 BMOV

An operation error occurs since head device number is D12289 that exceeds the device range.

With changing the settings of the PLC parameter on GX Developer, the device

range is not checked.*2

*2: For changing the settings of the PLC parameter on GX Developer, refer to the following manual.

  • QCPU User's Manual (Function Explanation, Program Fundamentals)

3.6 Cautions on Programming (Operation Errors)

(c) Character string data Because all character string data is of variable length, device range checks are performed. In cases where the corresponding device range has been exceeded, an operation error will be returned. For example, in a case where the data register has been allocated 12k points, there will be an error if it exceeds D12287.

$MOV "ABC" D12287

This designates D12287 and D12288 as the target devices for executing the $MOV instruction. However, since D12288 does not exist, an operation error occurs.

However, with CPUs other than Universal model QCPU, when indexing is executed and the head device number is outside the device range, no error occurs and the other devices are accessed.

Page 118 of the Mitsubishi Electronics QCPU user manual — W
Page 118 · click to enlarge
Page 118

When performing the following access in Universal model QCPU, an error (error code: 4101) occurs.

1. Access crossing the boundary of devices caused by indexing

(range of A area) The allocation order of individual devices is shown below:

SM

SD

Y

M

B

F

SB

Contact and coil of T

Contact and coil of ST

Contact and coil of C

Present value of T

Present value of ST

Present value of C

W

SW

File register (32K points)

2. Access crossing the boundary of file registers caused by indexing
3. Access to file registers (R, ZR) without setting file register files
4. Access to file registers (R, ZR) exceeded the range of file register files

Presetting PC parameter not to check indexing device range enables the Universal model QCPU not to detect an error in the above accesses from 1) to 4). Detecting an error in the above accesses from 1) to 4) , however, depends on the serial

No. of Universal model QCPU.*2

First 5 digits of serial No. for Universal model QCPU

Setting device range in indexing

Serial No.”10021” or lower Serial No.”10022” or higer

Set Detected errors in accesses 1) to 4)

Not set Detected errors in accesses 2) to 4) Not detected

*2: For changing the settings of the PLC parameter on GX Developer, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

When indexing is executed only with Universal model QCPU, devices between internal user devices (SW) and file registers (R) cannot be skipped. (Error code: 4101).

Area A · Empty area · Boundary B

Page 119 of the Mitsubishi Electronics QCPU user manual — Remark
Page 119 · click to enlarge
Page 119

Remark

For the how to change the internal user device allocation, referto User’s Manual (Functions Explanation, Program Fundamentals) for the CPU module used.

(d) Device range checks are conducted when indexing is performed by direct access

output (DY).

(e) Set the following items so that the specification does not cross over theboundary

between the internal user device and the extended data register (D) or extended link register (W).

  • Index modification
  • Indirect specification
  • Specification for the instructions which target data block *1
Mitsubishi Electronics QCPU — Remark diagram (page 119)
Fig. 102 · Remark

Data biock where the device number crosses over the boundary between the internal user device and the extended data register (D) is not possible.

3.6 Cautions on Programming (Operation Errors)

  • *1 Data block indicates the following data.
  • Data used in the instructions, such as FMOV, BMOV, BK+, which multiple words are targeted for operation
  • Control data, composed of two or more words, specified in the instructions, such as SP.FWRITE, SP.FREAD
  • Data whose data type is 32-bit or more (BIN 32-bit, real number, indirect address of the device)
Page 120 of the Mitsubishi Electronics QCPU user manual — 3.6 Cautions on Programming (Operation Errors)
Page 120 · click to enlarge
Page 120

(2) Device data check

Device data checks for the devices used by basic instructions and application instructions in CPU module are as indicated below:

(a) When using BIN data

No error is returned even if the operation results in overflow or underflow. The carry flag does not go on at such times, either.

(b) When using BCD data

1. Each digit is check for BCD value (0 to 9). An operation error is returned if individual digits are outside the 0 to 9 (A to F) range. 2) No error is returned even if the operation results in overflow or underflow. The carry flag does not go on at such times, either.

(c) When using floating-point data 1) An operation error occurs when the following operation results are returned with the single-precision floating-point operation instruction.

When the absolute value of the floating decimal point data is 1.0 2-127 or lower

When absolute value of floating decimal point data is 1.0 2128 or higher 2) An operation error occurs when the following operation results are returned with the double-precision floating-point operation instruction.

When the absolute value of the floating decimal point data is 1.0 2-1023 or lower

When absolute value of floating decimal point data is 1.0 21024 or higher

(d) Using character string data

No data check is conducted.

(3) Buffer memory access

For accessing buffer memories, using instructions with intelligent function module devices (from Un\G0) is recommended.

(4) Multiple CPU shared memory access

For accessing multiple CPU shared memories, using instructions with multiple CPU shared devices (from U3En\G10000) is recommended.

Page 121 of the Mitsubishi Electronics QCPU user manual — MOV K4X0 D0
Page 121 · click to enlarge
Page 121

3.7 Conditions for Execution of Instructions

The following four types of execution conditions exist for the execution of CPU module sequence instructions, basic instructions, and application instructions:

  • Non-conditional execution...... Instructions executed without regard to the ON/OFF status of the device

Example

LD X0, OUT Y10 • Executed at ON Instructions executed while input condition is ON

  • MOV instruction, FROM instruction
  • Executed at leading edge ...... Instructions executed only at the leading edge of the input condition (when it goes from OFF to ON) Example PLS instruction, MOVP instruction.
  • Executed at trailing edge ....... Instructions executed only at the trailing edge of the input condition (when it goes from ON to OFF) Example PLF instruction.

Example

For coil or equivalent basic instructions or application instructions, where the same instruction can be designated for either execution at ON or leading edge execution, a "P" is added after the instruction name to specify the condition for execution.

  • Instruction to be executed at ON
  • Instruction to be executed at leading edge + P

Execution at ON and execution at leading edge for the MOV instruction are designated as follows:

3.7 Conditions for Execution of Instructions

MOV K4X0 D0

MOVP K4X0 D0

Execution at leading edge

Instruction name · Instruction name · Execution during ON

Page 122 of the Mitsubishi Electronics QCPU user manual — $MOV "123" D0
Page 122 · click to enlarge
Page 122

3.8 Counting Step Number

The number of steps in CPU module sequence instructions, basic instructions, and application instructions differs depending on whether indirect setting of the device used is possible or not.

(1) Counting the number of basic steps

The basic number of steps for basic instructions and application instructions is calculated by adding the device number and 1. For example, the "+ instruction" would be calculated as follows:

+ D0 D10

(1) (2) Number of devices 2 Number of basic steps: 3

D0 + D10 D20

(1) (2) (3) Number of devices 3 Number of basic steps: 4

(2) Conditions for increasing the number of steps

The number of steps is increased over the number of basic steps in cases where a device is used that is designated indirectly or for which the number of steps is increased.

(a) When device is designated indirectly

In cases where indirect designation is done by @ , the number of steps is increased 1 step over the number of basic steps. For example, when a 3-step MOV instruction is designated indirectly (example: MOV K4X0 @D0), one step is added and the instruction becomes 4 steps.

(b) Devices with additional steps (Except Universal model QCPU)

Devices with Additional Steps Added Steps Example

Intelligent function module device

MOV U4\G10 D0

Multiple CPU shared device MOV U3E1\G0 D0

Link direct device MOV J3\B20 D0

Index register MOV Z0 D0

Serial number access format file register MOV ZR123 D0

32-bit constant DMOV K123 D0

Real constant EMOV E0.1 D0

For even numbers(number of characters) / 2

For odd numbers:

$MOV "123" D0

(number of characters + 1) / 2

Character string constant

Page 123 of the Mitsubishi Electronics QCPU user manual — S1 D
Page 123 · click to enlarge
Page 123

(c) Devices with additional steps (Universal model QCPU(except Q00UJCPU))

1. Instructions applicable to subset processing

The following table shows steps depending on the devices.

Instruction Symbols Devices with Additional Steps

Serial number access format file register,

Extended data register (D),

LD,LDI,AND,ANI,OR,ORI,

Extended link register (W) 1(2) 1

LDP,LDF,ANDP,ANDF,ORP,ORF

Multiple CPU shared device

Serial number access format file register,

Extended data register (D),

LDPI,LDFI

Extended link register (W) 1(4) 3

Multiple CPU shared device

Serial number access format file register,

Extended data register (D),

ANDPI,ANDFI,ORPI,ORFI

Extended link register (W) 1(5) 4

Multiple CPU shared device

Serial number access format file register

Extended data register (D),

SET

Extended link register (W) 1(2) 1

Multiple CPU shared device

Serial number access format file register

Extended data register (D),

OUT

Extended link register (W) 1(2)

Multiple CPU shared device

Serial number access format file register

Extended data register (D),

Extended link register (W) 1(2) 1

3.8 Counting Step Number

Multiple CPU shared device

2 Serial number access format file register

Extended data register (D),

Extended link register (W)

Multiple CPU shared device 1(3)

Standard device register *2 -1

LD=,LD<>,LD<,LD<=,LD>,LD>=,

3 Serial number access format file register

AND=,AND<>,AND<,AND<=,AND>,AND>=,

Extended data register (D),

OR=,OR<>,OR<.OR<=,OR>,OR>=

Extended link register (W) 1

Multiple CPU shared device

Standard device register *2 -1

Serial number access format file register

LDD=,LDD<>,LDD<,LDD<=,LDD>,LDD>=,

Extended data register (D),

ANDD=,ANDD<>,ANDD<,ANDD<=,ANDD>,

Extended link register (W)

AND>=,ORD=,ORD<>,ORD<.ORD<=,

1 Multiple CPU shared device

ORD>,ORD>=

Standard device register * 2-1

+,-,+P,-P,WAND,WOR,WXOR,WXNR,

3 Serial number access format file register

WANDP,WORP,WXORP,WXNRP

Extended data register (D),

Extended link register (W)1 , : 3

S1 D

Multiple CPU shared device

Show 14 more labels / short text on this page
Added Steps · Basic Number of · (Number of · Steps · Instruction Steps) · Timer/Counter 3(4) · RST (bit device) · Timer/Counter · (Bit/word device) 2(4) · RST (word device) · 1(3) · Decimal constant, hexadecimal · constant, real constant · (2 devices)
Page 124 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 124 · click to enlarge
Page 124

Instruction Symbols Devices with Additional Steps

Standard device register * 2-1

Serial number access format file register

D+,D-,D+P,D-P,DAND,DOR,DXOR,DXNR,

Extended data register (D),

Extended link register (W)1 , : 3

S1 D

DANDP,DORP,DXORP,DXNRP

Multiple CPU shared device

constant, real constant1

Serial number access format file register

+,-,+P,-P,WAND,WOR,WXOR,WXNR,

Extended data register (D),

WANDP,WORP,WXORP,WXNRP

Extended link register (W) ,1, : 2 3

S1 S2 D

Multiple CPU shared device

Serial number access format file register

Extended data register (D),

D+,D-,D+P,D-P,DAND,DOR,DXOR,DXNR,

Extended link register (W) ,1, : 2

S1 S2 D

DANDP,DORP,DXORP,DXNRP

3 Multiple CPU shared device

constant, real constant ,1

S1 S2

Serial number access format file register

Extended data register (D),

*, *P, /, /P

Extended link register (W) ,1, : 2 3

S1 S2 D

Multiple CPU shared device

Serial number access format file register

Extended data register (D),

Extended link register (W) ,1, : 2

S1 S2 D

3 Multiple CPU shared device

D*, D*P, D/, D/P, E*, E*P

constant, real constant ,1

S1 S2

Show 11 more labels / short text on this page
Added Steps · Basic Number of · (Number of · Steps · Instruction Steps) · (2 devices) · Decimal constant, hexadecimal · (3 devices)*1 · (3 devices)*1 · Decimal constant, hexadecimal · Decimal constant, hexadecimal
Page 125 of the Mitsubishi Electronics QCPU user manual — 3.8 Counting Step Number
Page 125 · click to enlarge
Page 125
Mitsubishi Electronics QCPU — 3.8 Counting Step Number diagram (page 125)
Fig. 103 · 3.8 Counting Step Number

Extended link register (W) 1 2 Multiple CPU shared device Decimal constant, hexadecimal

Extended link register (W)1 , : 2 2
Extended link register (W)1 , : 2

*1: If the same device is used for and , the number of basic steps increases by one. *2: The number of steps decreases with a standard device register.

When multiple standard device registers are used in an instruction applicable to subset processing, the number of steps decreases. The following table shows the number of steps for each instruction.

Mitsubishi Electronics QCPU — 3.8 Counting Step Number diagram (page 125)
Fig. 104 · 3.8 Counting Step Number

3.8 Counting Step Number

*1: If the same device is used for and , the number of basic steps increases by one.

Page 126 of the Mitsubishi Electronics QCPU user manual — 3.8 Counting Step Number
Page 126 · click to enlarge
Page 126
Mitsubishi Electronics QCPU — 3.8 Counting Step Number diagram (page 126)
Fig. 105 · 3.8 Counting Step Number

*, *P, /, /P , , and -2(1)

2. Except Instructions applicable to subset processing

The following table shows steps depending on the devices.

Mitsubishi Electronics QCPU — 3.8 Counting Step Number diagram (page 126)
Fig. 106 · 3.8 Counting Step Number

Index register / standard device register MOV Z0 D0

Serial number access format file register MOV ZR123 D0

For odd numbers(number of characters + 1) / 2 $MOV "123" D0

(d) In cases where the conditions described in (a) to (c) above overlap, the number of steps

becomes a culmination of the two.

Mitsubishi Electronics QCPU — 3.8 Counting Step Number diagram (page 126)
Fig. 107 · 3.8 Counting Step Number

MOV If U1\G10 ZR123 has been designated, a total of 2 steps are added.

Page 127 of the Mitsubishi Electronics QCPU user manual — M0
Page 127 · click to enlarge
Page 127

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

The following describes the operation for executing multiple instructions of the OUT, SET/RST, or PLS/PLF that use the same device in one scan.

(1) OUT instructions using the same device

Do not program more than one OUT instruction using the same device in one scan. If the OUT instructions using the same device are programmed in one scan, the specified device will turn ON or OFF every time the OUT instruction is executed, depending on the operation result of the program up to the relevant OUT instruction. Since turning ON or OFF of the device is determined when each OUT instruction is executed, the device may turn ON and OFF repeatedly during one scan. The following diagram shows an example of a ladder that turns the same internal relay (M0) with inputs X0 and X1 ON and OFF.

M0

M0

Mitsubishi Electronics QCPU — M0 diagram (page 127)
Fig. 108

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

With the refresh type CPU module, when the output (Y) is specified by the OUT instruction, the ON/OFF status of the last OUT instruction of the scan will be output.

[Ladder] · [Timing Chart]

Page 128 of the Mitsubishi Electronics QCPU user manual — SET
Page 128 · click to enlarge
Page 128

(2) SET/RST instructions using the same device

(a) The SET instruction turns ON the specified device when the execution command is ON

and performs nothing when the execution command is OFF. For this reason, when the SET instructions using the same device are executed two or more times in one scan, the specified device will be ON if any one of the execution commands is ON.

(b) The RST instruction turns OFF the specified device when the execution command is

ON and performs nothing when the execution command is OFF. For this reason, when the RST instructions using the same device are executed two or more times in one scan, the specified device will be OFF if any one of the execution commands is ON.

(c) When the SET instruction and RST instruction using the same device are programmed in one scan, the SET instruction turns ON the specified device when the SET execution command is ON and the RST instruction turns OFF the specified device when the RST execution command is ON. When both the SET and RST execution commands are OFF, the ON/OFF status of the specified device will not be changed.

SET

M0

M0 RST

Mitsubishi Electronics QCPU — SET diagram (page 128)
Fig. 109

RST M0 is not executed because X0 is OFF. (M0 remains ON.)

SET M0 is not executed because X0 is OFF. (M0 remains ON.)

When using a refresh type CPU module and specifying output (Y) in the SET/RST instruction, the ON/OFF status of the device at the execution of the last instruction in the scan is returned as the output (Y).

[Ladder] · [Timing Chart]

Page 129 of the Mitsubishi Electronics QCPU user manual — PLS
Page 129 · click to enlarge
Page 129

(3) PLS instructions using the same device

The PLS instruction turns ON the specified device when the execution command is turned ON from OFF. It turns OFF the device at any other time (OFF to OFF, ON to ON, or ON to OFF). If two or more PLS instructions using the same device are executed in one scan, each instruction turns ON the device when the corresponding execution command is turned ON from OFF and turns OFF the device in other cases. For this reason, if multiple PLS instructions using the same device are executed in a single scan, a device that has been turned ON by the PLS instruction may not be turned ON during one scan.

PLS

M0

M0 PLS

  • The ON/OFF timing of the X0 and X1 is different. (The specified device does not turn ON

throughout the scan.)

Mitsubishi Electronics QCPU — PLS diagram (page 129)
Fig. 110

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

M0 turns OFF because X1 status is other than OFF ON.

M0 turns ON because X1 goes ON (OFF ON). M0 turns OFF because X0 status is other than OFF ON. (M0 remains OFF.)

M0 turns ON because X0 goes ON (OFF ON).

[Ladder] · [Timing Chart]

Page 130 of the Mitsubishi Electronics QCPU user manual — PLF
Page 130 · click to enlarge
Page 130
  • The X0 and X1 turn ON from OFF at the same time.
Mitsubishi Electronics QCPU — 3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device diagram (page 130)
Fig. 111 · 3.9 Operation when the OUT, SET/RST, or PLS/PLF Inst…

M0 turns ON because X1 goes ON (OFF ON). (M0 remains ON.)

M0 turns OFF because X1 status is other than OFF ON. (M0 remains OFF.)

M0 turns ON because X0 goes ON (OFF ON).

M0 turns OFF because X0 status is other than OFF ON.

When using a refresh type CPU module and specifying output (Y) in the PLS instructions, the ON/OFF status of the device at the execution of the last PLS instruction in the scan is returned as the output (Y).

(4) PLF instructions using the same device

The PLF instruction turns ON the specified device when the execution command is turned OFF from ON. It turns OFF the device at any other time (OFF to OFF, OFF to ON, or ON to ON). If two or more PLF instructions using the same device are executed in one scan, each instruction turns ON the device when the corresponding execution command is turned OFF from ON and turns OFF the device in other cases. For this reason, if multiple PLF instructions using the same device are executed in a single scan, a device that has been turned ON by the PLF instruction may not be turn ON during one scan.

PLF

M0

M0 PLF

[Ladder]

Page 131 of the Mitsubishi Electronics QCPU user manual — 3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device
Page 131 · click to enlarge
Page 131
  • The ON/OFF timing of the X0 and X1 is different. (The specified device does not turn ON

throughout the scan.)

Mitsubishi Electronics QCPU — 3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device diagram (page 131)
Fig. 112 · 3.9 Operation when the OUT, SET/RST, or PLS/PLF Inst…

M0 turns OFF because X1 status is other than ON OFF.

M0 turns OFF because X1 status is other than ON OFF. (M0 remains OFF.)

M0 turns ON because X0 goes OFF (ON OFF).

M0 turns OFF because X0 status is other than ON OFF (M0 remains OFF.)

  • The X0 and X1 turn OFF from ON at the same time.
Mitsubishi Electronics QCPU — 3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device diagram (page 131)
Fig. 113 · 3.9 Operation when the OUT, SET/RST, or PLS/PLF Inst…

3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device

M0 turns OFF because X1 status is other than ON OFF. (M0 remains OFF.)

M0 turns ON because X1 goes OFF (ON OFF). (M0 remains ON.)

M0 turns ON because X0 goes OFF (ON OFF).

M0 turns OFF because X1 status is other than ON OFF.

When using a refresh type CPU module and specifying output (Y) in the PLF instructions, the ON/OFF status of the device at the execution of the last PLF instruction in the scan is returned as the output (Y).

[Timing Chart]

Page 132 of the Mitsubishi Electronics QCPU user manual — 3.10 Precautions for Use of File Registers
Page 132 · click to enlarge
Page 132

3.10 Precautions for Use of File Registers

This section explains the precautions for use of the file registers in the QCPU.

(1) CPU modules that cannot use file registers

The Q00JCPU and Q00UJCPU cannot use the file registers. When using the file registers, use the CPU module of other than the Q00JCPU and Q00UJCPU.

(2) Setting of file registers to be used

When using the file registers, the file registers to be used must be set with the PLC parameter or QDRSET instruction. (The PLC parameters of the Q00CPU and Q01CPU need not be set since they are preset to "Use file register".) If the file registers to be used have not been set, normal operation cannot be performed with the instructions that use the file registers.

Even when file registers to be used are not set in the PLC parameter, a program that uses file registers can be created. For the CPU module other than the Universal model QCPU, an error does not occur when that program is written to the CPU module. However, note that the correct data cannot be written/read to/from the file register. For the Universal model QCPU, an error occurs if the program where file registers are used is executed.

(3) Securing of file register area

(a) High Performance model QCPU, Process CPU, Redundant CPU, Universal model

QCPU When using file registers, register the file registers to the standard RAM/memory card to secure the file register area.

(b) Basic Model QCPU (except Q00JCPU)

The file register area has been secured in the standard RAM beforehand. The user need not secure the file register area.

The following table indicates the memories that can use the file registers in each CPU module.

High Performance model QCPU

Memory card *1 *2 *3

: Can be registered, : Cannot be registered. *1: When the flash memory is used, only read from the file registers can be performed. (Write to the flash ROM cannot be performed.)

*2: When the E2PROM is used, write to the E2PROM can be performed with the PROMWR instruction. *3: Unusable for the Q00UCPU and Q01UCPU.

Show 7 more labels / short text on this page
Process CPU · Basic Model QCPU · Memory · Redundant CPU · (except Q00JCPU) · Universal model QCPU · Standard RAM
Page 133 of the Mitsubishi Electronics QCPU user manual — Remark
Page 133 · click to enlarge
Page 133

Remark

For the file register setting method and file register area securing method, refer to User’s Manual (Functions Explanation, Program Fundamentals) for the CPU module used.

(4) Designation of file register number in excess of the registered number of points

(a) CPUs other than Universal model QCPU

An error will not occur if data are written or read to or from the file registers that have numbers greater than the registered number of points. However, note that the read/write of correct data to/from the file registers cannot be performed.

(b) Universal model QCPU

When data are written to or read from the file registers that are not registered, an error occurs. (Error code: 4101)

(5) File register specifying method

There are the block switching method and serial number access method to specify the file registers.

(a) Block switching method

In the block switching method, specify the number of used file register points in units of 32k points (one block). For file registers of 32k points or more, specify the file registers by switching the block No. to be used with the RSET instruction. Specify each block as R0 to R32767.

Mitsubishi Electronics QCPU — Remark diagram (page 133)
Fig. 114 · Remark

3.10 Precautions for Use of File Registers

Page 134 of the Mitsubishi Electronics QCPU user manual — MOV D0 ZR32768
Page 134 · click to enlarge
Page 134

(b) Serial number access method

In the serial number access method, specify the file registers beyond 32k points with consecutive device numbers. The file registers of multiple blocks can be used as consecutive file registers. Use "ZR" as the device name.

MOV D0 ZR32768

ZR0

ZR32767 ZR32768

MOV D0 ZR65536

ZR65535 ZR65536

(6) Settings and restrictions when refreshing file registers

The settings of refresh devices are as follows.

  • Refresh settings for CC-Link IE controller network
  • Refresh settings for MELSECNET/H
  • Refresh settings for CC-Link
  • Auto refresh settings for the intelligent function module
  • Auto refresh settings for the multiple CPU system

The restrictions when specifying file registers to refresh devices are as follows.

1. Refresh cannot be performed correctly if the use of file register which has the same name as the program is specified by the PLC parameter.

When the file register which has the same name as the program is used, refresh is performed to the data of the file register having the same name as the program that is set at the last number in the [Program] tab page of PLC parameter. To read/write the refresh data, specify the file register to the refresh device after switching the file register to the corresponding one with the QDRSET instruction.

2. Refresh cannot be performed correctly if the file name of file register or the drive number is changed by the QDRSET instruction.

If the file name of file register or the drive number is changed by the QDRSET instruction, link refresh is performed to the data of the setting file at the time of the END instruction execution. To read/write the refresh data, specify the file register of the setting file at the time of the END instruction execution. If the drive number is changed by the QDRSET instruction when "ZR" is specified for the device in the CPU modules other than the Universal model QCPU, an error (LINK PARA ERROR (3101)) occurs. (Note that an error does not occur when "R" is specified for the device.)

Show 9 more labels / short text on this page
Standard RAM/Memory card · to · (Block 0) · to · (Block 1) · to · (Block 2) · (a) Settings · (b) Restrictions
Page 135 of the Mitsubishi Electronics QCPU user manual — 3.10 Precautions for Use of File Registers
Page 135 · click to enlarge
Page 135
3. When a block number is switched by the RSET instruction, refresh is performed to the data of the file register (R) in the switched block number.

When a block number is switched by the RSET instruction, refresh is performed to the data of the file register (R) in the block number at the time of the END instruction execution. To read/write the refresh data, specify the file register of the block number at the time of the END instruction execution.

(7) Precautions when file registers in the flash memory are used

This section explains the precautions for use of the flash memory.

(a) The following flash memory can be used.

  • Flash card

(b) File registers in the flash memory can be only read in a sequence program.

(Write to the flash memory cannot be performed in a sequence program.)

Mitsubishi Electronics QCPU — 3.10 Precautions for Use of File Registers diagram (page 135)
Fig. 115 · 3.10 Precautions for Use of File Registers

When using the flash memory for the file registers, write data in advance.

Using GX Developer, write data to the flash card.

Mitsubishi Electronics QCPU — 3.10 Precautions for Use of File Registers diagram (page 135)
Fig. 116 · 3.10 Precautions for Use of File Registers

3.10 Precautions for Use of File Registers

Page 136 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 136 · click to enlarge
Page 136

MEMO

Page 137 of the Mitsubishi Electronics QCPU user manual — HOW TO READ INSTRUCTIONS
Page 137 · click to enlarge
Page 137

HOW TO READ INSTRUCTIONS

Page 138 of the Mitsubishi Electronics QCPU user manual — Ver. Ver. Basic
Page 138 · click to enlarge
Page 138

The description of instructions that are contained in the following chapters are presented in the following format.

Mitsubishi Electronics QCPU — 4 HOW TO READ INSTRUCTIONS diagram (page 138)
Fig. 117
1. Code used to write instruction (instruction symbol).
2. Section number and general category of instructions described.
3. Shows if instructions are enabled or disabled for each CPU module type.

QCPU

QCPU

model QCPU Process CPU Redundant CPU

A normal icon means the

Universal Basic High performance Process Redundant

corresponding instruction can be

used.

The icon with Ver. means the

Ver. Ver. Basic

Ver. High performance

Ver. Process

Ver.

instruction can be used with

some restrictions (e.g., function

version, software version).

The icon with (cross) means

Universal Basic High performance Process Redundant

cannot be used.

Show 15 more labels / short text on this page
1) · 2) · 3) · 4) · 5) · 6) · 7) · 8) · Icon · Meaning Universal model · Basic model · High Performance · Universal · Redundant · the corresponding instruction
Page 139 of the Mitsubishi Electronics QCPU user manual — 4 HOW TO READ INSTRUCTIONS
Page 139 · click to enlarge
Page 139
Mitsubishi Electronics QCPU — 4 HOW TO READ INSTRUCTIONS diagram (page 139)
Fig. 118
4. Indicates ladder mode expressions and execution conditions for instructions.

Execution Executed while ON Executed One Time

at ON Executed while OFF Executed One

5. Indicates the data set for each instruction and the data type.

Bit Bit data or head number in bit data

BIN 16 bits BIN 16-bit data or head number in word device

BIN 32 bits BIN 32-bit data or head number in double word device

BCD 4-digit 4-digit BCD data

BCD 8-digit 8-digit BCD data

Real number Floating decimal point data

character string Character string data

Device name Device name data

Show 8 more labels / short text on this page
9) · Execution Condition Non-conditional · Time at OFF · Code recorded on · No symbol · description page · recorded · Data Type Meaning
Page 140 of the Mitsubishi Electronics QCPU user manual — 4 HOW TO READ INSTRUCTIONS
Page 140 · click to enlarge
Page 140
6. Devices which can be used by the instruction in question are indicated with circle. The types of devices that can be used are as indicated below:
Mitsubishi Electronics QCPU — 4 HOW TO READ INSTRUCTIONS diagram (page 140)
Fig. 119

P, I, J, U, DX, DY, N, BL, TR, BL \ S,V

*1: For the description for the individual devices, refer to the QnUCPU User’s Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall (Function Explanation, Program Fundamentals)

*2: FX and FY can be used only for bit data, and FD only for word data. *3: When T, ST and C are used for other than the instructions below, only word data can be used. (Bit data cannot be used.) [Instructions that can be used with bit data] LD, LDI, AND, ANI, OR, ORI, LDP, LDF, ANDP, ANDF, ORP, ORF,LDPI, LDFI, ANDPI, ANDFI, ORPI, ORFI, OUT, RST *4: Usable with the CC-Link IE controller network, MELSECNET/H, and MELSECNET/10.

*5: Devices which can be set are recorded in the "Constant" and the "Other" columns.

7. Indicates the function of the instruction.
8. Indicates conditions under which error is returned, and error number. See Section 3.6 for errors not included here.
9. Indicates both ladder and list for simple program example. Also indicates the types of individual devices used when the program is executed.
Page 141 of the Mitsubishi Electronics QCPU user manual — SEQUENCE INSTRUCTIONS
Page 141 · click to enlarge
Page 141

SEQUENCE INSTRUCTIONS

Category Processing Details Reference

Contact instruction Operation start, series connection, parallel connection Section 5.1

Ladder block connection, creation of pulses from operation

results, store/read operation results Section 5.2

Output instruction Bit device output, pulse output, output reversal Section 5.3

Shift instruction Bit device shift Section 5.4

Master control instruction Master control Section 5.5

Termination instruction Program termination Section 5.6

Program stop, instructions such as no operation which do not

fit in the above categories Section 5.7

Section · Association instruction · Other instruction

Page 142 of the Mitsubishi Electronics QCPU user manual — LD, LDI
Page 142 · click to enlarge
Page 142

LD,LDI,AND,ANI,OR,ORI

5.1 Contact Instructions

5.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)

LD,LDI,AND,ANI,OR,ORI

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — LD,LDI,AND,ANI,OR,ORI diagram (page 142)
Fig. 120

Bit device number / Word device bit designation ( )

U \G Zn Constants Other DX, BL Bit Word Bit Word

LD, LDI

(1) LD is the A contact operation start instruction, and LDI is the B contact operation start

instruction. They read ON/OFF information from the designated device*1, and use that as an operation result.

*1: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.

Page 143 of the Mitsubishi Electronics QCPU user manual — OR, ORI
Page 143 · click to enlarge
Page 143

LD,LDI,AND,ANI,OR,ORI

AND, ANI

(1) AND is the A contact series connection instruction, and ANI is the B contact series

connection instruction. They read the ON/OFF data of the designated bit device*2, perform an AND operation on that data and the operation result to that point, and take this value as the operation result.

*2: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.

(2) There are no restrictions on the use of AND or ANI, but the following applies with a

peripheral device used in the ladder mode:

(a) Write When AND and ANI are connected in series, a ladder with up to 24 stages

can be displayed. (b) Read When AND and ANI are connected in series, a ladder with up to 24 stages

can be displayed. If the number exceeds 24 stages, up to 24 will be displayed.

OR, ORI

(1) OR is the A contact single parallel connection instruction, and ORI is the B contact single

parallel connection instruction. They read ON/OFF information from the designated device*3, and perform an OR operation with the operation results to that point, and use the resulting value as the operation result.

*3: When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.

(2) There are no limits on the use of OR or ORI, but the following applies with a peripheral

device used in the ladder mode.

(a) Write OR and ORI can be used to create connections of up to 23 ladders. (b) Read OR and ORI can be used to create connections of up to 23 ladders.

The 24th or subsequent ladders cannot be displayed properly.

Mitsubishi Electronics QCPU — OR, ORI diagram (page 143)
Fig. 121

5.1 Contact Instructions 5.1.1 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI)

Word device bit designations are made in hexadecimal. Bit b11 of D0 would be D0.0B. See 3.2.1 for more information on word device bit designation.

Page 144 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 144 · click to enlarge
Page 144

LD,LDI,AND,ANI,OR,ORI

Operation Error

(1) There are no operation errors with LD, LDI, AND, ANI, OR, or ORI instruction.

Program Example

(1) A program using the LD, AND, OR, and ORI instructions.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 144)
Fig. 122 · Program Example

(2) A program linking contacts using the ANB and ORB instructions.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 144)
Fig. 123 · Program Example

(3) A parallel program with the OUT instruction.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 144)
Fig. 124 · Program Example

Step Instruction Device

Page 145 of the Mitsubishi Electronics QCPU user manual — LDP,LDF,ANDP,ANDF,ORP,ORF
Page 145 · click to enlarge
Page 145

LDP,LDF,ANDP,ANDF,ORP,ORF

5.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)

LDP,LDF,ANDP,ANDF,ORP,ORF

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — LDP,LDF,ANDP,ANDF,ORP,ORF diagram (page 145)
Fig. 125

Bit device number / Word device bit designation ( )

5.1 Contact Instructions 5.1.2 Pulse operation start, pulse series connection, pulse parallel connection (LDP,LDF,ANDP,ANDF,ORP,ORF)

(1) LDP is the leading edge pulse operation start instruction, and is ON only at the leading edge

of the designated bit device (when it goes from OFF to ON). If a word device has been designated, it is ON only when the designated bit changes from 0 to 1.

In cases where there is only an LDP instruction, it acts identically to instructions for the

creation of a pulse that are executed during ON( P).

Page 146 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 146 · click to enlarge
Page 146

LDP,LDF,ANDP,ANDF,ORP,ORF

(2) LDF is the trailing edge pulse operation start instruction, and is ON only at the trailing edge

of the designated bit device (when it goes from ON to OFF).

If a word device has been designated, it is ON only when the designated bit changes from 1 to 0.

ANDP, ANDF

(1) ANDP is a leading edge pulse series connection instruction, and ANDF is a trailing edge

pulse series connection instruction. They perform an AND operation with the operation result to that point, and take the resulting value as the operation result.

The ON/OFF data used by ANDP and ANDF are indicated in the table below:

Mitsubishi Electronics QCPU — ANDP, ANDF diagram (page 146)
Fig. 126

ANDP State ANDF State Bit Device Bit Designated for

ORP, ORF

(2) ORP is a leading edge pulse parallel connection instruction, and ORF is a trailing edge pulse

serial connection instruction. They perform an OR operation with the operation result to that point, and take the resulting value as the operation result.

The ON/OFF data used by ORP and ORF are indicated in the table below:

Mitsubishi Electronics QCPU — ORP, ORF diagram (page 146)
Fig. 127

ORP State ORF State Bit Device Bit Designated for

(1) There are no operation errors with LDP, LDF, ANDP, ANDF, ORP, or ORF instruction.

Program Example

(1) The following program executes the MOV instruction at input X0, or at the leading edge of

b10 (bit 11) of data register D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 146)
Fig. 128 · Program Example

*1: Word device bit designation is performed in hexadecimal. Bit b10 of D0 will be D0.A.

Page 147 of the Mitsubishi Electronics QCPU user manual — LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI
Page 147 · click to enlarge
Page 147

LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI

5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)

LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI

Ver.

Basic Process High performance Redundant

  • QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
  • QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
Mitsubishi Electronics QCPU — LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI diagram (page 147)
Fig. 129

Bit device number / Word device bit designation ( ) S

Bit device number / Word device bit designation ( ) S

5.1 Contact Instructions 5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)

(1) LDPI is the leading edge pulse NOT operation start instruction that is on only at the leading

edge of the specified bit device (when the bit device goes from on to off) or when the bit device is on or off. If a word device has been specified, LDPI is on only when the specified bit is 0, 1, or changes from 1 to 0.

Universal

Page 148 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 148 · click to enlarge
Page 148

LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI

(2) LDFI is the trailing edge pulse NOT operation start instruction that is on only at the trailing

edge of the specified bit device (when the bit device goes from off to on) or when the bit device is on or off. If a word device has been specified, LDFI is on only when the specified bit is 0, 1, or changes from 0 to 1.

Device Specified in LDPI or LDFI

LDPI State LDFI State Bit Device Bit Designated for

OFF to ON 0 to 1 OFF ON

OFF 0 ON ON

ON 1 ON ON

ON to OFF 1 to 0 ON OFF

ANDPI, ANDFI

(1) ANDPI is a leading edge pulse NOT series connection, and ANDFI is a trailing pulse NOT

series connection. ANDPI and ANDFI execute an AND operation with the previous operation result, and take the resulting value as the operation result. The on or off data used by ANDPI and ANDFI are indicated in the table below.

Device Specified in ANDPI or ANDFI

LDPI State LDFI State Bit Device Bit Designated for

OFF to ON 0 to 1 OFF ON

OFF 0 ON ON

ON 1 ON ON

ON to OFF 1 to 0 ON OFF

ORPI, ORFI

(1) ORPI is a leading edge pulse NOT parallel connection, and ORFI is a trailing pulse NOT

parallel connection. ORPI and ORFI execute an OR operation with the previous operation result, and take the resulting value as the operation result. The on or off data used by ORPI and ORFI are indicated in the table below.

Device Specified in ORPI or ORFI

ORPI State ORFI State Bit Device Bit Designated for

OFF to ON 0 to 1 OFF ON

OFF 0 ON ON

ON 1 ON ON

ON to OFF 1 to 0 ON OFF

Operation Error

(1) There are no operation errors with LDPI, LDFI, ANDPI, ANDFI, ORPI, or ORFI instruction.

Word Device · Word Device · Word Device

Page 149 of the Mitsubishi Electronics QCPU user manual — LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI
Page 149 · click to enlarge
Page 149

LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI

Program Example

(1) The following program stores 0 into D0 when X0 is on, off, or turns from on to off, or M0 is

on, off, or turns from off to on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI diagram (page 149)
Fig. 130

(2) The following program stores 0 into D0 when X0 is on and b10 (bit 11) of D0 is on, off, or

turns from on to off.

Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI diagram (page 149)
Fig. 131

5.1 Contact Instructions 5.1.3 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection (LDPI,LDFI,ANDPI,ANDFI,ORPI,ORFI)

Step Instruction Device · Step Instruction Device

Page 150 of the Mitsubishi Electronics QCPU user manual — consecutively. ORB
Page 150 · click to enlarge
Page 150

ANB,ORB

5.2 Association Instructions

5.2.1 Ladder block series connection and parallel connection (ANB,ORB)

ANB,ORB

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ANB,ORB diagram (page 150)
Fig. 132

For parallel connection of 1 contact, OR or ORI is used.

U \G Zn Constants Other Bit Word Bit Word

ANB

(1) Performs an AND operation on block A and block B, and takes the resulting value as the

operation result. (2) The symbol for ANB is not the contact symbol, but rather is the connection symbol. (3) When programming in the list mode, up to 15 ANB instructions (16 blocks) can be written

consecutively. ORB

(1) Conducts an OR operation on Block A and Block B, and takes the resulting value as the

operation result. (2) ORB is used to perform parallel connections for ladder blocks with two or more contacts.

For ladder blocks with only one contact, use OR or ORI; there is no need for ORB in such cases.

Mitsubishi Electronics QCPU — consecutively. ORB diagram (page 150)
Fig. 133 · consecutively. ORB

1 AND X1 2 LD X2 3 AND X3 4 ORB 5 OR X4 6 OUT Y10

(3) The ORB symbol is not the contact symbol, but rather is the connection symbol.

(4) When programming in the list mode, it is possible to use up to 15 ORB instructions

successively (16 blocks).

Page 151 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 151 · click to enlarge
Page 151

ANB,ORB

Operation Error

(1) There are no operation errors associated with ANB or ORB instruction.

Program Example

(1) A program using the ANB and ORB instructions.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 151)
Fig. 134 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 151)
Fig. 135 · Program Example

5.2 Association Instructions 5.2.1 Ladder block series connection and parallel connection (ANB,ORB)

Page 152 of the Mitsubishi Electronics QCPU user manual — MPP
Page 152 · click to enlarge
Page 152

MPS,MRD,MPP

5.2.2 Operation results push,read,pop (MPS,MRD,MPP)

MPS,MRD,MPP

Basic Process High performance Redundant Universal

In the ladder display, MPS, MRD and MPP are not displayed.

MPS

MRD

MPP

U \G Zn Constants Other Bit Word Bit Word

R, ZR J \

Function

MPS

(1) Stores the memory of the operation result (ON or OFF) immediately prior to the MPS

instruction.

(2) Up to 16 MPS instructions can be used successively.

If the MPP instruction is used during this process, the number of uses calculated for the MPS instruction will be decremented by one.

MRD

(1) Reads the operation result stored for the MPS instruction, and uses that result to perform the

operation in the next step.

MPP

(1) Reads the operation result stored for the MPS instruction, and uses that result to perform the

operation in the next step.

(2) Clears the operation results stored by the MPS instruction.

(3) Subtracts 1 from the number of MPS instruction times of use.

Show 6 more labels / short text on this page
Command Command · Command · Command · Setting · Internal Devices · Data
Page 153 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 153 · click to enlarge
Page 153

MPS,MRD,MPP

1. The following shows ladders both using and not using the MPS, MRD, and MPP instructions.
Mitsubishi Electronics QCPU — MPS,MRD,MPP diagram (page 153)
Fig. 136

Ladder Using the MPS, MRD and MPP Instruction Ladder not Using MPS, MRD, and MPP Instructions

2. The MPS and MPP instructions must be used the same number of times. Failure to observe this will not correctly display the ladder in the ladder mode of the peripheral device.

Operation Error

(1) There are no errors associated with the MPS, MRD, or MPP instruction.

Program Example

(1) A program using the MPS, MRD, and MPP instructions.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 153)
Fig. 137 · Program Example

5.2 Association Instructions 5.2.2 Operation results push,read,pop (MPS,MRD,MPP)

Page 154 of the Mitsubishi Electronics QCPU user manual — MPS,MRD,MPP
Page 154 · click to enlarge
Page 154

MPS,MRD,MPP

(2) A program using the MPS and MPP instructions successively.

Mitsubishi Electronics QCPU — MPS,MRD,MPP diagram (page 154)
Fig. 138
Mitsubishi Electronics QCPU — MPS,MRD,MPP diagram (page 154)
Fig. 139

[Ladder Mode] · [List Mode]

Page 155 of the Mitsubishi Electronics QCPU user manual — INV
Page 155 · click to enlarge
Page 155

INV

5.2.3 Operation results inversion (INV)

INV

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — INV diagram (page 155)
Fig. 140

U \G Zn Constants Other Bit Word Bit Word

Inverts the operation result immediately prior to the INV instruction.

Mitsubishi Electronics QCPU — INV diagram (page 155)
Fig. 141
Mitsubishi Electronics QCPU — INV diagram (page 155)
Fig. 142

5.2 Association Instructions 5.2.3 Operation results inversion (INV)

(1) There are no operation errors associated with the INV instruction.

(1) A program which inverts the X0 ON/OFF data, and outputs from Y10.

Page 156 of the Mitsubishi Electronics QCPU user manual — M1 M2
Page 156 · click to enlarge
Page 156

INV

1. The INV instruction operates based on the results of calculation made until the INV instruction is given. Accordingly, use it in the same position as that of the AND instruction. The INV instruction cannot be used at the LD and OR positions. 2. When a ladder block is used, the operation result is inverted within the range of the ladder block. To operate a ladder using the INV instruction in combination with the ANB instruction, pay attention to the range that will be inverted.

Range inverted M0 0

M1 M2

Y10

M10

M20

ANB

END

For details of the ANB instruction, refer to Section 5.2.1

Page 157 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 157 · click to enlarge
Page 157

MEP,MEF

5.2.4 Operation result conversions (MEP,MEF)

MEP,MEF

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — MEP,MEF diagram (page 157)
Fig. 143

U \G Zn Constants Other Bit Word Bit Word

MEP (1) If operation results up to the MEP instruction are leading edge (from OFF to ON), goes ON

(continuity status). If operation results up to the MEP instruction are anything other than leading edge, goes OFF (non-continuity status).

(2) Use of the MEP instruction simplifies pulse conversion processing when multiple contacts are connected in series. MEF

(1) If operation results up to the MEF instruction are trailing edge (from ON to OFF), goes ON

(continuity status). If operation results up to the MEF instruction are anything other than trailing edge, goes OFF (non-continuity status).

5.2 Association Instructions 5.2.4 Operation result conversions (MEP,MEF)

(2) Use of the MEF instruction simplifies pulse conversion processing when multiple contacts are connected in series.

Operation Error

(1) There are no operation errors associated with the MEP or MEF instruction.

Program Example

(1) A program which performs pulse conversion to the operation results of X0 and X1

[Ladder Mode] [List Mode]

1. The MEP and MEF instructions will occasionally not function properly when pulse conversion is conducted for a contact that has been indexed by a subroutine program or by the FOR to NEXT instructions. If pulse conversion is to be conducted for a contact that has been indexed by a subroutine program or by the FOR to NEXT instructions, use the EGP/EGF instructions. 2. Because the MEP and MEF instructions operate with the operation results immediately prior to the MEP and MEF instructions, the AND instruction should be used at the same position. The MEP and MEF instructions cannot be used at the LD or OR position.

Step Instruction Device

Page 158 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 158 · click to enlarge
Page 158

EGP,EGF

5.2.5 Pulse conversions of edge relay operation results (EGP,EGF)

EGP,EGF

Basic Process High performance Redundant Universal

EGP

EGF

: Edge relay number where operation results are stored (bits)

R, ZR J \

U \G Zn Constants Other

V Bit Word Bit Word

Function

EGP

(1) Operation results up to the EGP instruction are stored in memory by the edge relay (V).

(2) Goes ON (continuity status) at the leading edge (OFF to ON) of the operation result up to the

EGP instruction.

If the operation result up to the EGP instruction is other than a leading edge (i.e., from ON to ON, ON to OFF, or OFF to OFF), it goes OFF (non-continuity status).

(3) The EGP instruction is used for subroutine programs, and for conducting pulse operations

for programs designated by indexing between the FOR and NEXT instructions.

(4) The EGP instruction can be used like an AND instruction.

EGF

(1) Operation results up to the EGF instruction are stored in memory by the edge relay (V).

(2) Goes ON at the trailing edge (from ON to OFF) of the operation result up to the EGF

instruction.

If the operation result up to the EGF instruction is other than a trailing edge (i.e., from OFF to ON, ON to ON, or OFF to OFF), it goes OFF (non-continuity status).

(3) The EGF instruction is used for subroutine programs, and for conducting pulse operations

for programs designated by indexing between the FOR and NEXT instructions.

(4) The EGF instruction can be used like an AND instruction.

Operation Error

(1) There are no operation errors associated with the EGP or EGF instruction.

Show 5 more labels / short text on this page
Command · Command · Internal Devices · Setting · Data
Page 159 of the Mitsubishi Electronics QCPU user manual — EGP,EGF
Page 159 · click to enlarge
Page 159

EGP,EGF

Program Example

(1) A program using the EGP instruction in the subroutine program using the EGD instruction

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — EGP,EGF diagram (page 159)
Fig. 144
Mitsubishi Electronics QCPU — EGP,EGF diagram (page 159)
Fig. 145

5.2 Association Instructions 5.2.5 Pulse conversions of edge relay operation results (EGP,EGF)

1. Since the EGP and EGF instructions are executed according to the operation results performed immediately before the EGP/EGF instructions, these instructions must be used at the same position as the AND instruction. (Refer to Section 5.1.1.) The EGP and EGF instruction cannot be used at the position of the LD or OR instruction. 2. EGP and EGF instructions cannot be used at the ladder block positions shown below.

[Operation]

Page 160 of the Mitsubishi Electronics QCPU user manual — OFF 0
Page 160 · click to enlarge
Page 160

OUT

5.3 Output Instructions

5.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)

OUT

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — OUT diagram (page 160)
Fig. 146

: Number of the device to be turned ON and OFF (bits)

(1) Operation results up to the OUT instruction are output to the designated device.

(a) When Using Bit Devices

OFF OFF

ON ON

(b) When Bit Designation has been Made for Word Device

Operation Results Bit Designated

OFF 0

ON 1

Operation Error

(1) There are no operation errors associated with the OUT instruction.

Operation Results Coil

Page 161 of the Mitsubishi Electronics QCPU user manual — OUT
Page 161 · click to enlarge
Page 161

OUT

Program Example

(1) When using bit devices

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — OUT diagram (page 161)
Fig. 147

(2) When bit designation has been made for word device

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — OUT diagram (page 161)
Fig. 148
Mitsubishi Electronics QCPU — OUT diagram (page 161)
Fig. 149

5.3 Output Instructions 5.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)

The number of basic steps for the OUT instructions is as follows:

  • When using internal device or file register (R) : 1
  • When using direct access output (DY) : 2
  • When using serial number access format file register

(Only for Universal model QCPU) : 2 (Other than Universal model QCPU) : 3 • Devices other than above : 3

Page 162 of the Mitsubishi Electronics QCPU user manual — Function
Page 162 · click to enlarge
Page 162

OUT T,OUTH T

5.3.2 Timers (OUT T,OUTH T)

OUT T,OUTH T

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 162)
Fig. 150

Setting in the range from 1 to 32767 is valid.

Data register value in the range from 1 to 32767 is valid.

Setting in the range from 1 to 32767 is valid.

Data register value in the range from 1 to 32767 is valid.

Setting in the range from 1 to 32767 is valid.

Data register value in the range from 1 to 32767 is valid.

Setting in the range from 1 to 32767 is valid.

Data register value in the range from 1 to 32767 is valid.

: Timer number (bit) Set value : Value set for timer (BIN 16 bits *1)

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 162)
Fig. 151

(Only T) ––

*1: The value setting for the timer cannot be designated indirectly.

@D0 T0

Indirect designation is not permitted.

See Section 3.4 for further information on indirect designation. *2: Timer values can be set only as a decimal constant (K). Hexadecimal constants (H) and real numbers cannot be used for timer settings.

Function

(1) When the operation results up to the OUT instruction are ON, the timer coil goes ON and the

timer counts up to the value that has been set; when the time up status (total numeric value is equal to or greater than the setting value), the contact responds as follows:

A Contact Continuity · B Contact Non-continuity

Page 163 of the Mitsubishi Electronics QCPU user manual — OUT T,OUTH T
Page 163 · click to enlarge
Page 163

OUT T,OUTH T

(2) The contact responds as follows when the operation result up to the OUT instruction is a

change from ON to OFF:

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 163)
Fig. 152

OFF 0 Non-continuity Continuity Non-continuity Continuity High speed timer

(3) To clear the present value of a retentive timer and turn the contact OFF after time up, use the

RST instruction.

(4) A negative number ( 32768 to 1) cannot be set as the setting value for the timer.*3

If the setting value is 0, the timer will time out when the time the OUT instruction is executed.

*3: When specifying a setting value for the timer using a word device (D, W, R, ZR, J \ or U \ ), whether the value is in the setting range is not checked. Check the value in the user program so that a negative number is not set.

(5) The following processing is conducted when the OUT instruction is executed:

  • OUT T coil turned ON or OFF
  • OUT T contact turned ON or OFF
  • OUT T present value updated In cases where a JMP instruction or the like is used to jump to an OUT T instruction while the OUT T instruction is ON, no present value update or contact ON/OFF operation is conducted. Also, if the same OUT T instruction is conducted two or more times during the same scan, the present value of the number of repetitions executed will be updated.

(6) Indexing for timer coils or contacts can be conducted only by Z0 or Z1.

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 163)
Fig. 153

5.3 Output Instructions 5.3.2 Timers (OUT T,OUTH T)

1. Timer's time limit Time limit of the timer is set in the PLC system of the PLC parameter dialog box.
2. For information on timer counting methods, User's Manual (Functions Explanation, Program Fundamentals) for the CPU module used.
3. The number of basic steps of the OUT C instruction is 4.

(1) There are no operation errors associated with the OUT T instruction.

Page 164 of the Mitsubishi Electronics QCPU user manual — K1 T1
Page 164 · click to enlarge
Page 164

OUT T,OUTH T

Caution

(1) When creating a program in which the operation the timer contact triggers the operation of

other timer, create the program for the timer that operates later first.

In the following cases, all timers go ON at the same scan if the program is created in the order the timers operate.

  • If the set value is smaller than a scan time.
  • If "1" is set

Example

  • For timers T0 to T2, the program is created in the order the timer operates later.

K1 T1

T2 timer starts measurement from the next scan after turning ON of the contact of T1 timer. T2

T1 K1 T0

T1 timer starts measurement from the next scan after turning ON of the contact of T0 timer.

K1 X0

T0

T0 timer starts measurement when X0 is turned ON.

  • For timers T0 to T2, the program is created in the order of timer operation.

K1 X0

T0

T0 timer starts measurement when X0 is turned ON.

T1 K1 T0

Contacts of T1 and T2 timers are turned ON when the contact of T0 timer is turned ON.

K1 T1

T2

Page 165 of the Mitsubishi Electronics QCPU user manual — OUT T,OUTH T
Page 165 · click to enlarge
Page 165

OUT T,OUTH T

Program Example

(1) The following program turns Y10 and Y14 ON 10 seconds after X0 has gone ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 165)
Fig. 154

3 * Step Instruction Device

*3: The setting value of the low-speed timer indicates its default time limit (100 ms).

(2) The following program uses the BCD data at X10 to X1F as the timer's set value.

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 165)
Fig. 155

Converts the BCD data at X10 to X1F to BIN and stores the converted value at D10. When X2 is turned ON, T2 starts measurement using the data stored in D10 as the set value.

Mitsubishi Electronics QCPU — OUT T,OUTH T diagram (page 165)
Fig. 156

5.3 Output Instructions 5.3.2 Timers (OUT T,OUTH T)

(3) The following program turns Y10 ON 250 ms after X0 goes ON.

*4: The setting value of the high-speed timer indicates its default time limit (10 ms).

[Ladder Mode] · [List Mode]

Page 166 of the Mitsubishi Electronics QCPU user manual — Remark
Page 166 · click to enlarge
Page 166

OUT C

5.3.3 Counter (OUT C)

OUT C

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — OUT C diagram (page 166)
Fig. 157

Setting in the range from 1 to 32767 is valid.

Data register value in the range from 1 to 32767 is valid.

Set valueCounter setting value (BIN 16 bits *1 )
Mitsubishi Electronics QCPU — OUT C diagram (page 166)
Fig. 158

(Only C) ––

*1: Counter value cannot be set by indirect designation.

Indirect designation is not permitted.

See Section 3.4 for further information on indirect designation. *2: Counter value can be set only with a decimal constant (K). A hexadecimal constant (H) or a real number cannot be used for the counter value setting.

Function

(1) When the operation results up to the OUT instruction change from OFF to ON, 1 is added to

the present value (count value) and the count up status (present value set value), and the contacts respond as follows:

(2) No count is conducted with the operation results at ON. (There is no need to perform pulse

conversion on count input.)

(3) After the count up status is reached, there is no change in the count value or the contacts

until the RST instruction is executed.

(4) A negative number ( 32768 to 1) cannot be set as the setting value for the timer.

If the set value is 0, the processing is identical to that which takes place for 1.

(5) Indexing for the counter coil and contact can use only Z0 and Z1.

Counter setting value has no limitation for indexing.

Remark

1. For counter counting methods, refer to the User's Manual (Functions Explanation, Program Fundamentals) for the CPU module used.
2. The number of basic steps of the OUT C instruction is 4.

A Contact Continuity · B Contact Non-continuity

Page 167 of the Mitsubishi Electronics QCPU user manual — OUT C
Page 167 · click to enlarge
Page 167

OUT C

Mitsubishi Electronics QCPU — OUT C diagram (page 167)
Fig. 159

(1) There are no operation errors associated with the OUT C instruction.

(1) The following program turns Y30 ON after X0 has gone ON 10 times, and resets the counter

when X1 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — OUT C diagram (page 167)
Fig. 160

(2) The following program sets the value for C10 at 10 when X0 goes ON, and at 20 when X1

goes ON.

Mitsubishi Electronics QCPU — OUT C diagram (page 167)
Fig. 161

C10 executes counting using the data stored in D0 as the set value.

5.3 Output Instructions 5.3.3 Counter (OUT C)

[Ladder Mode]

Page 168 of the Mitsubishi Electronics QCPU user manual — OUT F
Page 168 · click to enlarge
Page 168

OUT F

5.3.4 Annunciator output (OUT F)

OUT F

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — OUT F diagram (page 168)
Fig. 162

: Number of the annunciator to be turned ON (bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Operation results up to the OUT instruction are output to the designated annunciator.

(2) The following responses occur when an annunciator (F) is turned ON.

  • The "USER"/"ERR." LED goes ON.
  • The annunciator numbers which are ON (F numbers) are stored in special registers

(SD64 to SD79).

  • The value of SD63 is incremented by 1.

(3) If the value of SD63 is 16 (which happens when 16 annunciators are already ON), even if a

new annunciator is turned ON, its number will not be stored at SD64 to SD79.

(4) The following responses occur when the annunciator is turned OFF by the OUT instruction.

The coil goes OFF, but there are no changes in the status of the "USER" / "ERR." LED and the contents of the values stored in SD63 to SD79.

Use the RST F instruction to make the "USER"/"ERR." LED go OFF as well as to delete

the annunciator which was turned OFF by the OUT F instruction from SD63 to SD79.

Page 169 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 169 · click to enlarge
Page 169

OUT F

Mitsubishi Electronics QCPU — OUT F diagram (page 169)
Fig. 163

(1) There are no operation errors associated with the OUT F instruction.

1. For details of annunciators, refer to the User's Manual (Functions Explanation, Program Fundamentals) for the CPU module used.
2. The number of basic steps for the OUT module F instruction is 2. 3. The table below shows which CPU module features either the LED display device on front of the CPU module or "USER" LED.
Mitsubishi Electronics QCPU — OUT F diagram (page 169)
Fig. 164

Program Example

(1) The following program turns F7 ON when X0 goes ON, and stores the value 7 from SD64 to

SD79.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 169)
Fig. 165 · Program Example

5.3 Output Instructions 5.3.4 Annunciator output (OUT F)

Page 170 of the Mitsubishi Electronics QCPU user manual — SET
Page 170 · click to enlarge
Page 170

SET

5.3.5 Setting devices (except for annunciators) (SET)

SET

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SET diagram (page 170)
Fig. 166

: Bit device number to be set (ON)/Word device bit designation (bits)

U \G Zn Constants Other BL, DY Bit Word Bit Word

(1) When the execution command is turned ON, the status of the designated devices becomes

as shown below:

Bit device Coils and contacts turned ON

When Bit Designation has been Made for Word Device Designation bit set at 1

(2) Devices turned ON by the instruction remain ON when the same command is turned OFF.

Devices turned ON by the SET instruction can be turned OFF by the RST instruction.

Mitsubishi Electronics QCPU — SET diagram (page 170)
Fig. 167

(3) When the execution command is OFF, the status of devices does not change.

Device Device Status

Page 171 of the Mitsubishi Electronics QCPU user manual — B0 D0
Page 171 · click to enlarge
Page 171

SET

Operation Error

(1) There are no operation errors associated with the SET instruction.

Program Example

(1) The following program sets Y8B (ON) when X8 goes ON, and resets Y8B (OFF) when X9

goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 171)
Fig. 168 · Program Example

(2) The following program sets the value of D0 bit 5 (b5) to 1 when X8 goes ON, and set the bit

value to 0 when X9 goes ON.

[Ladder Mode] [List Mode]

Sets b5 of D0 at 1.

Sets b5 of D0 at 0.

5.3 Output Instructions 5.3.5 Setting devices (except for annunciators) (SET)

B0 D0

B5

Remark

1. The number of basic steps for the SET instruction is as follows:
  • When internal device or file register (R0 to R32767) are in use : 1
  • When direct access output (DY) or SFC program device (BL) are in use

: 2

  • When using serial number access format file register
(Only for Universal model QCPU)2 (Other than Universal model QCPU) : 3
  • When some other device is in use : 3 2. When using X as a device, use the device numbers that are not used for the actual input. If the same number is used for the actual input device and input X, the data of the actual input will be written over the input X specified in the SET instruction.

Step Instruction Device

Page 172 of the Mitsubishi Electronics QCPU user manual — RST
Page 172 · click to enlarge
Page 172

RST

5.3.6 Resetting devices (except for annunciators) (RST)

RST

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — RST diagram (page 172)
Fig. 169

: Bit device number to be reset/ Word device bit designation (bits)

Word device number to be reset (BIN 16 bits)

Mitsubishi Electronics QCPU — RST diagram (page 172)
Fig. 170

(1) When the execution command is turned ON, the status of the designated devices becomes

as shown below:

Mitsubishi Electronics QCPU — RST diagram (page 172)
Fig. 171

Timers and counters Sets the present value to 0, and turns coils and contacts OFF

When Bit Designation has been Made for Word Device Sets value of designated bit to 0

Word devices other than timers and counters Sets contact to 0

(2) When the execution command is OFF, the status of devices does not change.

(3) The functions of the word devices designated by the RST instruction are identical to the

following ladder:

Mitsubishi Electronics QCPU — RST diagram (page 172)
Fig. 172
Page 173 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 173 · click to enlarge
Page 173

RST

Operation Error

(1) There are no operation errors associated with the RST instruction.

Remark

The basic number of steps of the RST instruction is as follows.

a) For bit processing

  • Internal device (bit to be specified by bit device or word device) : 1
  • Direct access output : 2
  • Timer, counter : 4
  • When using serial number access format file register

(Only for Universal model QCPU) : 2 (Other than Universal model QCPU) : 3 • Other than above : 3 b) For word processing

  • Internal device : 2
  • Index resister : 2
  • When using serial number access format file register
(Only for Universal model QCPU)2 (Other than Universal model QCPU) : 3 • Other than above : 3

Program Example

Mitsubishi Electronics QCPU — Program Example diagram (page 173)
Fig. 173 · Program Example

(1) The following program sets the value of the data register to 0.

5.3 Output Instructions 5.3.6 Resetting devices (except for annunciators) (RST)

Stores the contents at X10 to X1F in D8 when X0 is turned ON.

Resets D8 to 0 when X5 is turned ON.

Page 174 of the Mitsubishi Electronics QCPU user manual — RST
Page 174 · click to enlarge
Page 174

RST

(2) The following program resets the 100 ms retentive timer and counter.

Mitsubishi Electronics QCPU — RST diagram (page 174)
Fig. 174

When ST225 is set as retentive timer, it is turned ON when X4 ON time reaches 30 min.

Counts the number of times ST225 was turned ON. Resets the coil, contact and present value of ST225 when the contact of ST225 is turned ON.

Resets C23 to 0 when X5 is turned ON.

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 175 of the Mitsubishi Electronics QCPU user manual — Remark
Page 175 · click to enlarge
Page 175

SET F,RST F

5.3.7 Setting and resetting the annunciators (SET F,RST F)

SET F,RST F

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SET F,RST F diagram (page 175)
Fig. 175
SETNumber of the annunciator to be set (F number) (bits)
RSTNumber of the annunciator to be reset (F number) (bits)

U \G Zn Constants Other Bit Word Bit Word

SET

(1) The annunciator designated by is turned ON when the execution command is turned ON. (2) The following responses occur when an annunciator (F) is turned ON.

  • The "USER" LED goes ON. *1
  • The annunciator numbers which are ON (F numbers) are stored in special registers

5.3 Output Instructions 5.3.7 Setting and resetting the annunciators (SET F,RST F)

(SD64 to SD79). • The value of SD63 is incremented by 1.

*1: When using the Basic model QCPU, the "ERR."LED goes ON.

(3) If the value of SD63 is 16 (which happens when 16 annunciators are already ON), even if a

new annunciator is turned ON, its number will not be stored at SD64 to SD79.

RST

(1) The annunciator designated by is turned OFF when the execution command is turned ON. (2) The annunciator numbers (F numbers) of annunciators that have gone OFF are deleted

from the special registers (SD64 to SD79), and the value of SD63 is decremented by 1.

Remark

1. For details of annunciators,refer to the User's Manual (Functions Explanatio Program Fundamentals) for the CPU module used. 2. The number of basic steps for the SET F and RST F instructions is 2.
Page 176 of the Mitsubishi Electronics QCPU user manual — [Operations which take place when SD63 is 16]
Page 176 · click to enlarge
Page 176

SET F,RST F

(3) When the value of SD63 is "16", the annunciator numbers are deleted from SD64 to SD79

by the use of the RST instruction. If the annunciators whose numbers are not registered in SD64 to SD79 are ON, these numbers will be registered.

If all annunciator numbers from SD64 to SD79 are turned OFF, the LED display device on

the front of the CPU module, or the "USER" LED, will be turned OFF.*2

*2: When using the Basic model QCPU, the "ERR." LED goes OFF.

[Operations which take place when SD63 is 16]

Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)
Fig. 176 · [Operations which take place when SD63 is 16]

Contents of SD63 and those of SD64 to SD79 are not changed.

(1) There are no operation errors associated with the SET F or RST F instruction.

(1) The following program turns annunciator F11 ON when X1 goes ON, and stores the value 11

at the special register (SD64 to SD79). Further, the program resets annunciator F11 if X2 goes ON, and deletes the value 11 from the special registers (SD64 to SD79).

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)
Fig. 177 · [Operations which take place when SD63 is 16]
Mitsubishi Electronics QCPU — [Operations which take place when SD63 is 16] diagram (page 176)
Fig. 178 · [Operations which take place when SD63 is 16]

[Operation]

Page 177 of the Mitsubishi Electronics QCPU user manual — PLS
Page 177 · click to enlarge
Page 177

PLS,PLF

5.3.8 Leading edge and trailing edge outputs (PLS,PLF)

PLS,PLF

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — PLS,PLF diagram (page 177)
Fig. 179

PLS

(1) Turns ON the designated device when the execution command is turned OFF ON, and turns OFF the device in any other case the execution command is turned OFF ON (i.e., at ON ON, ON OFF or OFF OFF of the execution command).

Mitsubishi Electronics QCPU — PLS diagram (page 177)
Fig. 180

When there is one PLS instruction for the device designated by during one scan, the specified device turns ON one scan. See Section 3.9 for the operation to be performed when the PLS instruction for the same device is executed more than once during one scan.

5.3 Output Instructions 5.3.8 Leading edge and trailing edge outputs (PLS,PLF)

(2) If the RUN/STOP key switch is changed from RUN to STOP after the execution of the PLS

instruction, the PLS instruction will not be executed again even if the switch is set back to RUN.

Operating the RUN/STOP key switch of CPU module "STOP RUN".

Operating the RUN/STOP key switch of CPU module "STOP RUN".

Operating the RUN/STOP key switch of CPU module "RUN STOP".

Operating the RUN/STOP key switch of CPU module "RUN STOP".

Page 178 of the Mitsubishi Electronics QCPU user manual — ON
Page 178 · click to enlarge
Page 178

PLS,PLF

(3) When designating a latch relay (L) for the execution command and turning the power supply

OFF to ON with the latch relay ON, the execution command turns OFF to ON at the first scan, executing the PLS instruction and turning ON the designated device.

The device turned ON at the first scan after power-ON turns OFF at the next PLS instruction.

PLF

(1) Turns ON the designated device when the execution command is turned ON OFF, and turns OFF the device in any other case the execution command is turned ON OFF (i.e., at OFF OFF, OFF ON or ON ON of the execution command).

When there is one PLF instruction for the device designated by during one scan, the specified device turns ON one scan. See Section 3.9 for the operation to be performed when the PLF instruction for the same device is executed more than once during one scan.

Mitsubishi Electronics QCPU — PLF diagram (page 178)
Fig. 181

(2) If the RUN/STOP key switch is changed from RUN to STOP after the execution of the PLF

instruction, the PLF instruction will not be executed again even if the switch is set back to RUN.

Operation Error

(1) There are no operation errors associated with the PLS or PLF instruction.

Program Example

(1) The following program executes the PLS instruction when X9 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 178)
Fig. 182 · Program Example

ON

X9 OFF

ON

M9 OFF

[Timing Chart] · 1 scan

Page 179 of the Mitsubishi Electronics QCPU user manual — ON
Page 179 · click to enlarge
Page 179

PLS,PLF

(2) The following program executes the PLF instruction when X9 goes OFF.

[Ladder Mode] [List Mode]

ON

X9 OFF

ON

M9 OFF

5.3 Output Instructions 5.3.8 Leading edge and trailing edge outputs (PLS,PLF)

Step Instruction Device · [Timing Chart] · 1 scan

Page 180 of the Mitsubishi Electronics QCPU user manual — ON
Page 180 · click to enlarge
Page 180

FF

5.3.9 Bit device output reverse (FF)

FF

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FF diagram (page 180)
Fig. 183

: Device number of the device to be reversed (bits)

(1) Reverses the output status of the device designated by when the execution command is turned OFF ON.

Mitsubishi Electronics QCPU — FF diagram (page 180)
Fig. 184

Operation Error

(1) There are no operation errors associated with the FF instruction.

Program Example

(1) The following program reverses the output of Y10 when X9 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 180)
Fig. 185 · Program Example

ON

OFF

ON

Y10

OFF

[Timing Chart]

Page 181 of the Mitsubishi Electronics QCPU user manual — ON
Page 181 · click to enlarge
Page 181

FF

(2) The following program reverses b10 (bit 10) of D10 when X0 goes ON.

[Ladder Mode] [List Mode]

ON

OFF

5.3 Output Instructions 5.3.9 Bit device output reverse (FF)

Step Instruction Device · [Timing Chart] · D10 of b10

Page 182 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 182 · click to enlarge
Page 182

DELTA(P)

5.3.10 Pulse conversions of direct outputs (DELTA(P))

DELTA(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DELTA(P) diagram (page 182)
Fig. 186

: Bit for which pulse conversion is to be conducted (bits)

(1) Conducts pulse output of direct access output (DY) designated by .

If DELTA DY0 has been designated, the resulting operation will be identical to the ladder shown below, which uses the SET/RST instructions.

[Ladder using the DELTA instruction] [Ladder using the SET/RST instructions]

Mitsubishi Electronics QCPU — DELTA(P) diagram (page 182)
Fig. 187
Mitsubishi Electronics QCPU — DELTA(P) diagram (page 182)
Fig. 188

(2) The DELTA (P) instruction is used by commands for leading edge execution for an intelligent

function module.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • A direct access output number designated by has exceeded the CPU module output range. (Error code: 4101)

[Operation]

Page 183 of the Mitsubishi Electronics QCPU user manual — DELTA(P)
Page 183 · click to enlarge
Page 183

DELTA(P)

Program Example

(1) The following program presets CH1 of the AD61 mounted at slot 0 of the main base unit,

when X20 goes ON.

Mitsubishi Electronics QCPU — DELTA(P) diagram (page 183)
Fig. 189

Stores preset value (0) at addresses 1 and 2 of the AD61 buffer memory.

Mitsubishi Electronics QCPU — DELTA(P) diagram (page 183)
Fig. 190

5.3 Output Instructions 5.3.10 Pulse conversions of direct outputs (DELTA(P))

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 184 of the Mitsubishi Electronics QCPU user manual — SFT(P)
Page 184 · click to enlarge
Page 184

SFT(P)

5.4 Shift Instructions

5.4.1 Bit device shifts (SFT(P))

SFT(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SFT(P) diagram (page 184)
Fig. 191

(1) When bit device is used

(a) Shifts to a device designated by the ON/OFF status of the device immediately prior

to the one designated by , and turns the prior device OFF. For example, if M11 has been designated by the SFT instruction, when the SFT instruction is executed, it will shift the ON/OFF status of M10 to M11, and turn M10 OFF.

(b) Turn the first device to be shifted ON with the SET instruction.

(c) When the SFT and SFTP are to be used consecutively, the program starts from the device with the larger number.

Mitsubishi Electronics QCPU — SFT(P) diagram (page 184)
Fig. 192

(2) 0 1 0 1 0

(3) 0 0 0 1 0 0 1 0

(4) 0 0 0 1 0 1 1 0

(5) 0 0 1 0 1 0 1 0

(6) 1 0 0 1 0 0 1 0

M10 SET (7) 0 0 1 0 0 0 1 0

* At M8 to M15, "1" indicates ON and "0" indicates OFF.

Page 185 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 185 · click to enlarge
Page 185

SFT(P)

(2) When word device bit designation is used

(a) Shifts to a bit in the device designated by the 1/0 status of the bit immediately prior to

the one designated by , and turns the prior bit to 0. For example, if D0.5 (bit 5 [b5] of D0) has been designated by the SFT instruction, when the SFT instruction is executed, it will shift the 1/0 status of b4 of D0 to b5, and turn b4 to 0.

1 Before the execution of shift 0 0 0 1 0 0 0 1 1 0 1 0 0 0 1 to b0 b4 to b15 b5

1 After the execution of shift 0 0 0 1 0 0 0 1 1 1 0 1

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

5.4 Shift Instructions 5.4.1 Bit device shifts (SFT(P))

Page 186 of the Mitsubishi Electronics QCPU user manual — SFT(P)
Page 186 · click to enlarge
Page 186

SFT(P)

Program Example

(1) The following program shifts Y57 to Y5B when X8 goes ON.

Mitsubishi Electronics QCPU — SFT(P) diagram (page 186)
Fig. 193

Executes shift for Y57 to Y5B when X8 goes ON.

Start programming from the device having a large number.

[Timing Chart] [List Mode]

Mitsubishi Electronics QCPU — SFT(P) diagram (page 186)
Fig. 194

[Ladder Mode]

Page 187 of the Mitsubishi Electronics QCPU user manual — MC,MCR
Page 187 · click to enlarge
Page 187

MC,MCR

5.5 Master Control Instructions

5.5.1 Setting and resetting the master control (MC,MCR)

MC,MCR

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — MC,MCR diagram (page 187)
Fig. 195
nNesting (N0 to N14) (Nesting)
Mitsubishi Electronics QCPU — MC,MCR diagram (page 187)
Fig. 196

5.5 Master Control Instructions 5.5.1 Setting and resetting the master control (MC,MCR)

The master control instruction is used to enable the creation of highly efficient ladder switching sequence programs, through the opening and closing of a common bus for ladders.

A ladder using the master control is as follows:

Inputting of contacts on the vertical bus is not necessary when programming in the write mode of a peripheral device. These will be automatically displayed when the "conversion" operation is conducted after the creation of the ladder and then "read" mode is set.

Page 188 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 188 · click to enlarge
Page 188

MC,MCR

MC

(1) If the execution command of the MC instruction is ON when master control is started, the

result of the operation from the MC instruction to the MCR instruction will be exactly as the instruction (ladder) shows.

If the execution command of the MC instruction is OFF, the result of the operation from the MC instruction to the MCR instruction will be as shown below:

Count value goes to 0, coils and contacts all go OFF.

High speed retentive timer

Coils go OFF, but counter values and contacts all maintain

Low speed retentive timer

current status.

Devices in OUT instruction All turned OFF

SET, RST

SFT

Devices in the following instructionsMaintain current status

(2) Even when the MC instruction is OFF, instructions from the MC instruction to the MCR

instruction will be executed, so scan time will not be shortened.

When a ladder with master control contains instructions that do not require any contact instruction (such as FOR to NEXT, EI, DI instructions), the CPU module executes these instructions regardless of the ON/OFF status of the MC instruction execution command.

(3) By changing the device designated by , the MC instruction can use the same nesting (N) number as often as desired.

(4) Coils from devices designated by are turned ON when the MC instruction is ON.

Further, using these same devices with the OUT instruction or other instructions will cause

them to become double coils, so devices designated by should not be used within other instructions.

MCR

(1) This is the instruction for recovery from the master control, and indicates the end of the

master control range of operation.

(2) Do not place contact instructions before the MCR instruction.

(3) Use the MC instruction and MCR instruction of the same nesting number as a set.

However, when the MCR instructions are nested in one place, all master controls can be terminated with the lowest nesting (N) number. (Refer to the "Precautions for nesting" in the program example.)

Operation Error

(1) There are no operation errors associated with the MC or MCR instruction.

Show 6 more labels / short text on this page
Device Device Status · High speed timer · Low speed timer · Counter · Basic, · Application
Page 189 of the Mitsubishi Electronics QCPU user manual — MC,MCR
Page 189 · click to enlarge
Page 189

MC,MCR

Program Example

The master control instruction can be used in nesting. The different master control regions are distinguished by nesting (N). Nesting can be performed from N0 to N14.

The use of nesting enables the creation of ladders which successively limit the execution condition of the program.

A ladder using nesting would appear as shown below:

[Ladder as displayed in the GPP ladder mode] [Ladder as it actually operates]

Mitsubishi Electronics QCPU — MC,MCR diagram (page 189)
Fig. 197

5.5 Master Control Instructions 5.5.1 Setting and resetting the master control (MC,MCR)

Not related to the status of A, B or C.

Page 190 of the Mitsubishi Electronics QCPU user manual — MC,MCR
Page 190 · click to enlarge
Page 190

MC,MCR

Cautions when Using Nesting Architecture

(1) Nesting can be used up to 15 times (N0 to N14)

When using nesting, nests should be inserted from the lower to higher nesting number (N) with the MC instruction, and from the higher to the lower order with the MCR instruction. If this order is reversed, there will be no nesting architecture, and the CPU module will not be capable of performing correct operations. For example, if nesting is designated in the order N1 to N0 by the MC instruction, and also designated in the N1 to N0 order by the MCR instruction, the vertical bus will intersect and a correct master control ladder will not be produced.

[Ladder as displayed in the GPP ladder mode] [Ladder as it actually operates]

Mitsubishi Electronics QCPU — MC,MCR diagram (page 190)
Fig. 198

(2) If the nesting architecture results in MCR instructions concentrated in one location, all

master controls can be terminated by use of just the lowest nesting number (N).

Mitsubishi Electronics QCPU — MC,MCR diagram (page 190)
Fig. 199
Page 191 of the Mitsubishi Electronics QCPU user manual — FEND
Page 191 · click to enlarge
Page 191

FEND

5.6 Termination Instructions

5.6.1 End main routine program (FEND)

FEND

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FEND diagram (page 191)
Fig. 200

U \G Zn Constants Other Bit Word Bit Word

(1) The FEND instruction is used in cases where the CJ instruction or other instructions are

used to cause a branch in the sequence program operations, and in cases where the main routine program is to be split from a subroutine program or an interrupt program.

(2) Execution of the FEND instruction will cause the CPU module to terminate the program it

was executing.

Mitsubishi Electronics QCPU — FEND diagram (page 191)
Fig. 201

(3) Even sequence programs following the FEND instruction can be displayed in ladder display

5.6 Termination Instructions 5.6.1 End main routine program (FEND)

(Peripheral devices continue to display ladders until encountering the END instruction.)

P Operation performed when the CJ instruction is not executed

Page 192 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 192 · click to enlarge
Page 192

FEND

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The FEND instruction is executed after the execution of the CALL, FCALL, ECALL, or

EFCALL instruction, and before the execution of the RET instruction.

(Error code4211)
  • The FEND instruction is executed after the execution of the FOR instruction, and before

the execution of the NEXT instruction. (Error code: 4200)

  • The FEND instruction is executed during an interrupt program, and before the execution

of the IRET instruction. (Error code: 4221)

  • The FEND instruction is executed between the CHKCIR and CHKEND instructions.
(Error code4230)
  • The FEND instruction is executed between the IX and IXEND instructions.
(Error code4231)

Program Example

(1) The following program uses the CJ instruction.

Mitsubishi Electronics QCPU — Program Example diagram (page 192)
Fig. 202 · Program Example

When XB is ON, the program jumps to label P23 and the steps that follow P23 are executed.

Indicates the termination of the sequence program to be executed when XB is OFF.

Mitsubishi Electronics QCPU — Program Example diagram (page 192)
Fig. 203 · Program Example

[Ladder Mode] · [List Mode]

Page 193 of the Mitsubishi Electronics QCPU user manual — END
Page 193 · click to enlarge
Page 193

END

5.6.2 End sequence program (END)

END

Basic Process High performance Redundant Universal

END END

U \G Zn Constants Other Bit Word Bit Word

R, ZR J \

Function

(1) Indicates termination of programs, including main routine program, subroutine program, and

interrupt programs.

Execution of the END instruction will cause the CPU module to terminate the program that was being executed.

5.6 Termination Instructions 5.6.2 End sequence program (END)

END

(2) The END instruction cannot be used during the execution of the main sequence program.

If it is necessary to perform END processing during the execution of a program, use the FEND instruction.

(3) When programming in the ladder mode of a peripheral device, it is not necessary to input the

END instruction.

Show 4 more labels / short text on this page
Internal Devices · Setting · Data · Sequence program
Page 194 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 194 · click to enlarge
Page 194

END

(4) The use of the END and FEND instructions is broken down as follows for main routine

programs, subroutine programs, and interrupt programs:

FEND

(FEND instruction is necessary.)

Main sequence program area Subroutine program

END

(END instruction is necessary.)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The END instruction was executed before the execution of the RET instruction and after

the execution of the CALL, FCALL, ECALL, or EFCALL instruction.

(Error code4211)
  • The END instruction was executed before the execution of the NEXT instruction and after

the execution of the FOR instruction.

(Error code4200)
  • The END instruction was executed during an interrupt program prior to the execution of

the IRET instruction.

(Error code4221)
  • The END instruction was executed within the CHKCIR to CHKEND instruction loop.
(Error code4230)
  • The END instruction was executed within the IX to IXEND instruction loop.
(Error code4231)

Main routine program · Interrupt program

Page 195 of the Mitsubishi Electronics QCPU user manual — STOP
Page 195 · click to enlarge
Page 195

STOP

5.7 Other instructions

5.7.1 Sequence program stop (STOP)

STOP

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — STOP diagram (page 195)
Fig. 204

U \G Zn Constants Other Bit Word Bit Word

(1) Resets the output (Y) and stops the CPU module operation when the execution command is

turned ON.

(The same result will take place if the RUN/STOP (key) switch is turned to the STOP setting.)

(2) Execution of the STOP instruction will cause the value of b4 to b7 of the special register

Mitsubishi Electronics QCPU — STOP diagram (page 195)
Fig. 205

5.7 Other instructions 5.7.1 Sequence program stop (STOP)

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

(3) In order to restart CPU module operations after the execution of the STOP instruction, return

the RUN/STOP key switch, which has been changed from RUN to STOP, back to the RUN position.

Page 196 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 196 · click to enlarge
Page 196

STOP

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The STOP instruction was executed before the execution of the RET instruction and after

the execution of the CALL/FCALL/ECALL/EFCALL/XCALL instruction.

(Error code4211)
  • The STOP instruction was executed before the execution of the NEXT instruction and

after the execution of the FOR instruction. (Error code: 4200)

  • The STOP instruction was executed during an interrupt program prior to the execution of
the IRET instruction. (Error code4221)
  • The STOP instruction was executed within the CHKCIR to CHKEND instruction loop.
(Error code4230)
  • The STOP instruction was executed within the IX to IXEND instruction loop.
(Error code4231)
  • The STOP instruction was executed during the fixed scan execution type program.

(For the Universal model QCPU only) (Error code: 4223)

Program Example

(1) The following program stops the CPU module when X8 goes ON.

Mitsubishi Electronics QCPU — Program Example diagram (page 196)
Fig. 206 · Program Example

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 197 of the Mitsubishi Electronics QCPU user manual — NOPLF
Page 197 · click to enlarge
Page 197

5.7.2 No operations (NOP,NOPLF,PAGE n)

Basic Process High performance Redundant Universal

In the ladder display, NOP is not displayed. Command NOP

NOP

NOPLF

NOPLF

PAGE n

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

NOP

(1) This is a no operation instruction that has no impact on any operations up to that point.

(2) The NOP instruction is used in the following cases:

5.7 Other instructions 5.7.2 No operations (NOP,NOPLF,PAGE n)

(a) To insert space for sequence program debugging.

(b) To delete an instruction without having to change the number of steps. (Replace the

instruction with NOP.)

(c) To temporarily delete an instruction.

NOPLF

(1) This is a no operation instruction that has no impact on any operations up to that point.

(2) The NOPLF instruction is used when printing from a peripheral device to force a page

change at any desired location.

(a) When printing ladders

  • A page break will be inserted between ladder blocks with the presence of the NOPLF

instruction.

  • The ladder cannot be displayed correctly if an NOPLF instruction is inserted in the

midst of a ladder block. Do not insert an NOPLF instruction in the midst of a ladder block.

(b) When printing instruction lists

  • The page will be changed after the printing of the NOPLF instruction.

(3) Refer to the Operating Manual for the peripheral device in use for details of printouts from

peripheral devices.

Show 6 more labels / short text on this page
NOP,NOPLF,PAGE n · NOP,NOPLF,PAGE n · PAGE n · Setting · Internal Devices · Data
Page 198 of the Mitsubishi Electronics QCPU user manual — NOP
Page 198 · click to enlarge
Page 198

PAGE n

(1) This is a no operation instruction that has no impact on any operations up to that point.

(2) No processing is performed at peripheral devices with this instruction.

Operation Error

(1) There are no errors associated with the NOP, NOPLF, or PAGE instruction.

Program Example

NOP

(1) Contact closed Deletes the AND or ANI instruction.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — NOP diagram (page 198)
Fig. 207

(2) Contact closed LD, LDI changed to NOP. (Note carefully that changing the LD and LDI

instructions to NOP completely changes the nature of the ladder.)

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — NOP diagram (page 198)
Fig. 208

NOP,NOPLF,PAGE n

Page 199 of the Mitsubishi Electronics QCPU user manual — NOPLF
Page 199 · click to enlarge
Page 199

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — 5.7.2 No operations (NOP,NOPLF,PAGE n) diagram (page 199)
Fig. 209 · 5.7.2 No operations (NOP,NOPLF,PAGE n)

NOPLF

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — NOPLF diagram (page 199)
Fig. 210

5.7 Other instructions 5.7.2 No operations (NOP,NOPLF,PAGE n)

NOP,NOPLF,PAGE n

Page 200 of the Mitsubishi Electronics QCPU user manual — PAGE n
Page 200 · click to enlarge
Page 200
  • Printing the ladder will result in the following:
Mitsubishi Electronics QCPU — 5.7.2 No operations (NOP,NOPLF,PAGE n) diagram (page 200)
Fig. 211 · 5.7.2 No operations (NOP,NOPLF,PAGE n)

NOPLF 5 NOPLF instruction, inserted as a delimiter of ladder blocks, causes print out page to be changed forcibly.

  • Printing an instruction list with the NOPLF instruction will result in the following:
Mitsubishi Electronics QCPU — 5.7.2 No operations (NOP,NOPLF,PAGE n) diagram (page 200)
Fig. 212 · 5.7.2 No operations (NOP,NOPLF,PAGE n)

PAGE n

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — PAGE n diagram (page 200)
Fig. 213 · PAGE n

NOP,NOPLF,PAGE n

Page 201 of the Mitsubishi Electronics QCPU user manual — BASIC INSTRUCTIONS
Page 201 · click to enlarge
Page 201

BASIC INSTRUCTIONS

Category Processing Details Reference

Compares data to data. Section 6.1

Adds, subtracts, multiplies, divides, increments, or

decrements data with other data. Section 6.2

Data conversion instructions Converts data types. Section 6.3

Data transfer instruction Transmits designated data. Section 6.4

Program branch instruction Program jumps. Section 6.5

Program run control instruction Enables and disables program interrupts. Section 6.6

I/O refresh instruction Refreshes bit devices. Section 6.7

Up/down counters, teaching timers, special function timers,

rotary table shortest direction controls, etc. Section 6.8

Show 5 more labels / short text on this page
Section · Comparison operation · instruction · Arithmetic operation instruction · Other convenient instructions
Page 202 of the Mitsubishi Electronics QCPU user manual — 6.1 Comparison Operation Instructions
Page 202 · click to enlarge
Page 202

6.1 Comparison Operation Instructions

6.1.1 BIN 16-bit data comparisons (=,<>,>,<=,<,>=)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — 6.1 Comparison Operation Instructions diagram (page 202)
Fig. 214 · 6.1 Comparison Operation Instructions

indicates an instruction symbol of . /

, : Data for comparison or head number of the devices where the data for comparison is stored (BIN 16 bits)

(1) Treats BIN 16-bit data from device designated by and BIN 16-bit data from device

designated by as an a normally-open contact, and performs comparison operation.

(2) The results of the comparison operations for the individual instructions are as follows:

Mitsubishi Electronics QCPU — 6.1 Comparison Operation Instructions diagram (page 202)
Fig. 215 · 6.1 Comparison Operation Instructions

(3) When and are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit (b15) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.

=,,>,,

Page 203 of the Mitsubishi Electronics QCPU user manual — 6.1 Comparison Operation Instructions
Page 203 · click to enlarge
Page 203
Mitsubishi Electronics QCPU — 6.1 Comparison Operation Instructions diagram (page 203)
Fig. 216 · 6.1 Comparison Operation Instructions

(1) There are no operation errors associated with the , or instruction.

(1) The following program compares the data at X0 to XF with the data at D3, and turns Y33 ON

if the data is identical.

[Ladder Mode] [List Mode]

(2) The following program compares BIN value K100 to the data at D3, and establishes

continuity if the data in D3 is something other than 100.

[Ladder Mode] [List Mode]

(3) The following program compares the BIN value 100 with the data at D3, and establishes

continuity if the D3 data is less than 100.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — 6.1 Comparison Operation Instructions diagram (page 203)
Fig. 217 · 6.1 Comparison Operation Instructions

6.1 Comparison Operation Instructions 6.1.1 BIN 16-bit data comparisons (=,,>,

(4) The following program compares the data in D0 and D3, and if the data in D0 is equal to or

=,,>,

Page 204 of the Mitsubishi Electronics QCPU user manual — D=,D<>,D>,D<=,D<,D>=
Page 204 · click to enlarge
Page 204

D=,D<>,D>,D<=,D<,D>=

6.1.2 BIN 32-bit data comparisons (D=,D<>,D>,D<=,D<,D>=)

D=,D<>,D>,D<=,D<,D>=

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — D=,D<>,D>,D<=,D<,D>= diagram (page 204)
Fig. 218

indicates an instruction symbol of . D /

, : Data for comparison or head number of the devices where the data for comparison is stored (BIN 32 bits)

(1) Treats BIN 32-bit data from device designated by and BIN 32-bit data from device

designated by as an a normally-open contact, and performs comparison operation.

(2) The results of the comparison operations for the individual instructions are as follows:

Mitsubishi Electronics QCPU — D=,D<>,D>,D<=,D<,D>= diagram (page 204)
Fig. 219

(3) When and are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit (b31) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.

(4) Data used for comparison should be designated by a 32-bit instruction (DMOV instruction,

etc.).

If designation is made with a 16-bit instruction (MOV instruction, etc.), comparisons of large and small values cannot be performed correctly.

Page 205 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 205 · click to enlarge
Page 205

D=,D<>,D>,D<=,D<,D>=

Operation Error

(1) There are no operation errors associated with the D , D , D , D , D or D instruction.

Program Example

(1) The following program compares the data at X0 to X1F with the data at D3 and D4, and

turns Y33 ON, if the data at X0 to X1F and the data at D3 and D4 match.

[Ladder Mode] [List Mode]

(2) The following program compares BIN value K38000 to the data at D3, and D4, and

establishes continuity if the data in D3 and D4 is something other than 38000.

[Ladder Mode] [List Mode]

(3) The following program compares BIN value K 80000 to the data at D3 and D4, and establishes continuity if the data in D3 and D4 is less than 80000.

Mitsubishi Electronics QCPU — Program Example diagram (page 205)
Fig. 220 · Program Example

6.1 Comparison Operation Instructions 6.1.2 BIN 32-bit data comparisons (D=,D,D>,D

(4) The following program compares the data in D0 and D1 with the data in D3 and D4, and

establishes continuity if the data in D0 and D1 is equal to or less than the data in D3 and D4.

Step Instruction Device · Step Instruction Device

Page 206 of the Mitsubishi Electronics QCPU user manual — E=,E<>,E>,E<=,E<,E>=
Page 206 · click to enlarge
Page 206

E=,E<>,E>,E<=,E<,E>=

6.1.3 Floating decimal point data comparisons (Single precision) (E=,E<>,E>,E<=,E<,E>=)

E=,E<>,E>,E<=,E<,E>=

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — E=,E<>,E>,E<=,E<,E>= diagram (page 206)
Fig. 221

E /

, : Data for comparison or head number of the devices where the data for comparison is stored

Mitsubishi Electronics QCPU — E=,E<>,E>,E<=,E<,E>= diagram (page 206)
Fig. 222

*1:Available only in multiple Universal model QCPU

(1) The 32-bit floating decimal point data from device designated by and 32-bit floating decimal point data from device designated by as A normally-open contact, and performs comparison operation.

(2) The results of the comparison operations for the individual instructions are as follows:

Mitsubishi Electronics QCPU — E=,E<>,E>,E<=,E<,E>= diagram (page 206)
Fig. 223
Mitsubishi Electronics QCPU — E=,E<>,E>,E<=,E<,E>= diagram (page 206)
Fig. 224

(real number)

Page 207 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 207 · click to enlarge
Page 207

E=,E<>,E>,E<=,E<,E>=

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is 0. *1

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*1: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to Section 3.2.4.

  • The value of the specified device is outside the following range. (For the Universal model

QCPU)

0, 2 -126 | value of specified device | < 2128 (Error code: 4140)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program compares 32-bit floating decimal point real number data at D0 and

D1 to 32-bit floating decimal point real number data at D3 and D4.

[Ladder Mode] [List Mode]

(2) The following program compares the floating decimal point real number 1.23 to the 32-bit

floating decimal point real number data at D3 and D4.

Mitsubishi Electronics QCPU — Program Example diagram (page 207)
Fig. 225 · Program Example

6.1 Comparison Operation Instructions 6.1.3 Floating decimal point data comparisons (Single precision) (E=,E,E>,E

(3) The following program compares 32-bit floating decimal point real number data at D0 and

D1 to 32-bit floating decimal point real number data at D3 and D4.

(4) The following program compares the 32-bit floating decimal point data at D0 and D1 to the

Step Instruction Device

Page 208 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 208 · click to enlarge
Page 208

ED=,ED<>,ED>,ED<=,ED<,ED>=

6.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED<>,ED>,ED<=,ED<,ED>=)

ED=,ED<>,ED>,ED<=,ED<,ED>=

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ED=,ED<>,ED>,ED<=,ED<,ED>= diagram (page 208)
Fig. 226

/ED /ED /E /E /E indicates an instruction symbol of ED

S1 S2

, : Data for comparison or head number of the devices where the data for comparison is stored

Mitsubishi Electronics QCPU — S1 S2 diagram (page 208)
Fig. 227

(1) The 64-bit floating decimal point real number from device designated by and 64-bit floating

decimal point real number from device designated by as A normally-open contact, and performs comparison operation.

(2) The results of the comparison operations for the individual instructions are as follows:

Mitsubishi Electronics QCPU — S1 S2 diagram (page 208)
Fig. 228

(real number)

Page 209 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 209 · click to enlarge
Page 209

ED=,ED<>,ED>,ED<=,ED<,ED>=

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2 -1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)

Program Example

(1) The following program compares 64-bit floating decimal point real number data at D0 to D3

with 64-bit floating decimal point real number data at D4 to D7.

[Ladder Mode] [List Mode]

(2) The following program compares the floating decimal point real number 1.23 with the 64-bit

floating decimal point real number data at D4 to D7.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 209)
Fig. 229 · Program Example

6.1 Comparison Operation Instructions 6.1.4 Floating decimal point data comparisons (Double precision) (ED=,ED,ED>,ED

(3) The following program compares 64-bit floating decimal point real number data at D0 to D3

with 64-bit floating decimal point real number data at D4 to D7.

(4) The following program compares the 64-bit floating decimal point data at D0 to D3 with the

Step Instruction Device · Step Instruction Device

Page 210 of the Mitsubishi Electronics QCPU user manual — Example
Page 210 · click to enlarge
Page 210

ED=,ED<>,ED>,ED<=,ED<,ED>=

Caution

(1) Since the number of digits of the real number that can be input by GX Developer is up to 15

digits, the comparison with the real number whose number of significant digits is 16 or more cannot be made by the instruction shown in this section.

When judging match/mismatch with the real number whose significant digits is 16 or more by the instruction in this section, compare it with the approximate values of the real number to be compared and judge by the sizes.

Example

When judging the match of E1.234567890123456+10 (Number of significant

digits is 16) and the double-precision floating-point data.

Mitsubishi Electronics QCPU — Example diagram (page 210)
Fig. 230 · Example

Whether D0 to D3 is within this range is checked.(Values on boundaries are excluded.)

Example

When judging the mismatch of E1.234567890123456+10 (Number of significant

digits is 16) and the double-precision floating-point data.

Mitsubishi Electronics QCPU — Example diagram (page 210)
Fig. 231 · Example

Whether D0 to D3 is within this range is checked.(Values on boundaries are included.)

Page 211 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 211 · click to enlarge
Page 211

6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=) diagram (page 211)
Fig. 232 · 6.1.5 Character string data comparisons ($=,$<>,$>,$…

$ /

, : Data for comparison or head number of the devices where the data for comparison is stored

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 211)
Fig. 233

6.1 Comparison Operation Instructions 6.1.5 Character string data comparisons ($=,$,$>,$

(1) Compares the character string data designated by with the character string data

(2) A comparison operation involves the character-by-character comparison of the ASCII code

(3) The character string data of and for comparison refers to the data stored at the range from the designated device number to the device number where "00H" code is stored.

(a) If all character strings match, the comparison result will be matched.

$=,$,$>,$,$

Page 212 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 212 · click to enlarge
Page 212

(b) If the character strings are different, the character string with the larger character code

will be the larger.

Mitsubishi Electronics QCPU — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=) diagram (page 212)
Fig. 234 · 6.1.5 Character string data comparisons ($=,$<>,$>,$…

(c) If the character strings are different, the first different sized character code will determine whether the character string is larger or smaller.

Mitsubishi Electronics QCPU — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=) diagram (page 212)
Fig. 235 · 6.1.5 Character string data comparisons ($=,$<>,$>,$…

(4) If the character strings designated by and are of different lengths, the data with the longer character string will be larger.

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 212)
Fig. 236

32H (2) 31H (1) 33H (3) 34H (4)

$=,$,$>,$

Page 213 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 213 · click to enlarge
Page 213

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The code "00 H " does not exist within the range of the relevant device, starting from the
Mitsubishi Electronics QCPU — Operation Error diagram (page 213)
Fig. 237 · Operation Error

device number designated by and . (Error code: 4101)

  • The character string of and exceeds 16383 characters. (Error code: 4101)

The character string data comparison instruction checks the device range while comparing the designated character string data. For this reason, if the "00H" code does not exist in the relevant device range, the instruction outputs the comparison result instead of returning an operation error when no match of characters is detected.

Mitsubishi Electronics QCPU — Operation Error diagram (page 213)
Fig. 238 · Operation Error

C 00H Z A D11 C 00H W0

If and data are as shown above, the second character of does not

match with that of , and the comparison result is expressed as (the operation result is "non-conductive"). Though the "00H" code is not included

within the device range, no operation error is returned, because the no-match is detected at D12287, which is within the device range.

Mitsubishi Electronics QCPU — Operation Error diagram (page 213)
Fig. 239 · Operation Error

6.1 Comparison Operation Instructions 6.1.5 Character string data comparisons ($=,$,$>,$

(1) The following program compares character strings stored following D0 and characters

(2) The following program compares the character string "ABCDEF" with the character string

$=,$,$>,$

Page 214 of the Mitsubishi Electronics QCPU user manual — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)
Page 214 · click to enlarge
Page 214

(3) The following program compares the character string stored following D10 with the character

string stored following D100.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=) diagram (page 214)
Fig. 240 · 6.1.5 Character string data comparisons ($=,$<>,$>,$…

(4) The following program compares the character string stored following D200 with the

character string "12345".

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — 6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=) diagram (page 214)
Fig. 241 · 6.1.5 Character string data comparisons ($=,$<>,$>,$…

$=,$,$>,$

Page 215 of the Mitsubishi Electronics QCPU user manual — BKCMP ,BKCMP P
Page 215 · click to enlarge
Page 215

BKCMP ,BKCMP P

6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)

BKCMP ,BKCMP P

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 215)
Fig. 242

/ indicates an instruction symbol of .

: Data to be compared or head number of the devices where the data to be compared is stored (BIN 16 bits)

: Head number of the devices where the comparison data is stored (BIN 16 bits)

: Head number of the devices where the comparison operation result will be stored (bits)

nNumber of comparison data blocks (BIN 16 bits)
Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 215)
Fig. 243

6.1 Comparison Operation Instructions 6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)

(1) Compares BIN 16-bit data the nth point from the device number designated by with BIN

16-bit data the nth point from the device number designated by , and stores the result

(a) If the comparison condition has been met, the device designated by will be turned ON.

(b) If the comparison condition has not been met, the device designated by will be turned OFF.

(2) The comparison operation is conducted in 16-bit units.

(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

Page 216 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 216 · click to enlarge
Page 216

BKCMP ,BKCMP P

(4) The results of the comparison operations for the individual instructions are as follows:

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 216)
Fig. 244

(5) If all comparison results stored n points from are ON (1), SM704 (block comparison signal) goes ON.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range of the device n points from a device designated by , or exceeds the relevant device. (Error code: 4101)

S1 S2 D

  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by .

(Error code4101)
  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by .

(Error code4101)

Program Example

(1) The following program compares, when X20 is turned ON, the data stored at D100 to D103

with the data stored at R0 to R3 and stores the operation result into the area starting from M10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 216)
Fig. 245 · Program Example

Step Instruction Device · [Operation]

Page 217 of the Mitsubishi Electronics QCPU user manual — BKCMP ,BKCMP P
Page 217 · click to enlarge
Page 217

BKCMP ,BKCMP P

(2) The following program compares, when X1C is turned ON, the constant K1000 with the data

stored at D10 to D13, and stores the operation result at b4 to b7 in D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 217)
Fig. 246

b15 b4 0 1 0 1 0 0 0 1 0 b7 b0 D0 before operation

b15 b4 0 1 0 1 0 1 0 0 1 0 b7 b0 D0 after operation

(3) The following program compares, when X20 is turned ON, the data at D10 to D12 with the

data at D30 to D32, and stores the operation result into the area starting from M100.

The following program transfers the character string "ALL ON" to D100 onward when all devices from M100 onward have reached the 1 "ON" state.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 217)
Fig. 247

6.1 Comparison Operation Instructions 6.1.6 BIN block data comparisons (BKCMP ,BKCMP P)

D102 4FH (O) 20H ( ) D100 $MOV

Step Instruction Device · [Operation]

Page 218 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 218 · click to enlarge
Page 218

BKCMP ,BKCMP P

6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 218)
Fig. 248

/ indicates an instruction symbol of .

: Data to be compared or head number of the devices where the data to be compared are stored (BIN 32 bits)

: Head number of the devices where the comparison data are stored (BIN 32 bits)

: Head number of the devices where the comparison operation result will be stored (bits) n : Number of comparison data blocks (BIN 16 bits)

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 218)
Fig. 249

(1) This instruction compares BIN 32-bit data stored in n-point devices starting from the device

specified by with BIN 32-bit data stored in n-point devices starting from the device

specified by a constant and and then stores the result into the nth device specified by and up.

S2 D

(a) If the comparison condition has been met, the corresponding devices specified by will be turned on.

(b) If the comparison condition has not been met, the corresponding devices specified by will be turned off.

Mitsubishi Electronics QCPU — S2 D diagram (page 218)
Fig. 250

n +2 +4 +3, +5,

+n 1 +n 2 +n 2

Universal

Page 219 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 219 · click to enlarge
Page 219

BKCMP ,BKCMP P

(2) The comparison operation is executed in 32-bit units.

(3) The constant in the device specified by can be between 2147483648 and 2147483647 (BIN 32-bit data).

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 219)
Fig. 251

(4) specifies out of the device range of n-point devices starting from the device specified by

S1 S2

and .

(5) The following table shows the results of the comparison operations for each individual

instruction.

Mitsubishi Electronics QCPU — S1 S2 diagram (page 219)
Fig. 252

(6) If all comparison results stored into the devices starting from the device specified by to nth device are on(1), or one of the results is off(2), the special relays will be on or off in accordance with the conditions as follows.

Mitsubishi Electronics QCPU — S1 S2 diagram (page 219)
Fig. 253

6.1 Comparison Operation Instructions 6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)

When all results of comparison operations are on(1) When results of comparison operations have a result of

In a standby program, a special relay depending on the caller program turns on or off.

(7) If the value specified by n is 0, the instruction will be not processed.

Page 220 of the Mitsubishi Electronics QCPU user manual — R1,R0
Page 220 · click to enlarge
Page 220

BKCMP ,BKCMP P

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • A negative value is specified for n. (Error code: 4100)
  • The range of the n-point devices starting from the device specified by , . or exceeds the specified device range. (Error code: 4101)

S1 S2 D

  • The range of the n-point devices starting from the device specified by overlaps with the

range of the n-point devices starting from the device specified by . (Error code: 4101)

  • The range of the n-point devices starting from the device specified by overlaps with the

range of the n-point devices starting from the device specified by . (Error code: 4101)

Program Example

(1) The following program compares the value data stored at R0 to R5 with the value data

stored at D20 to D25, and then stores the operation result into Y0 to Y2, when M0 is turned on,

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 220)
Fig. 254 · Program Example

R1,R0

D21,D20

(1) ON Y1 Y0

(0) OFF

0 2147483000 R3,R2 R5,R4

D23,D22 D25,D24

Y2

(1) ON

(2) The following program compares the constant with the value data stored at D0 to D9, and

then stores the operation result into D10.5 to D10.9, when M0 is turned on,

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — R1,R0 diagram (page 220)
Fig. 255
Mitsubishi Electronics QCPU — R1,R0 diagram (page 220)
Fig. 256
Show 7 more labels / short text on this page
Step Instruction Device · [Operation] · b31 b0 -2147483000 · b31 b0 -2147483000 · 1 2147482999 · Step Instruction Device · [Operation]
Page 221 of the Mitsubishi Electronics QCPU user manual — BKCMP ,BKCMP P
Page 221 · click to enlarge
Page 221

BKCMP ,BKCMP P

When certain bits are specified in a word device, bits other than the certain bits that store the operation result do not change.

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 221)
Fig. 257

0 Before execution 0 1 0 1 0 0 1 1 0 0 0 D10.0

0 0 1 0 1 1 0 1 1 1 0 0 0 D10.0 After execution

(3) The following program compares the value data stored at D0 to D5 with the value data

stored at D10 to D15, and then stores the operation result into M20 to M22, when M0 is turned on. Also, the program transfers the character string "ALL ON" to D100 and up when all devices from M20 to M22 have reached the on status.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 221)
Fig. 258
Mitsubishi Electronics QCPU — BKCMP ,BKCMP P diagram (page 221)
Fig. 259

6.1 Comparison Operation Instructions 6.1.7 BIN 32-bit block data comparisons (DBKCMP ,DBKCMP P)

When all operation results are on(1), the special relays corresponding to each program turn on(1). (Since this program examples refer to scan programs, SM704 and SM716 turn on(1), SM7171 and SM718 do not change in the scan program)

[Operation]

Page 222 of the Mitsubishi Electronics QCPU user manual — (FFFE H ) (8000 H )
Page 222 · click to enlarge
Page 222

+(P),-(P)

6.2 Arithmetic Operation Instructions

6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))

+(P),-(P)

Basic Process High performance Redundant Universal

When two data are set ( + , - )

D S D D S D

Mitsubishi Electronics QCPU — D S D D S D diagram (page 222)
Fig. 260

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

Mitsubishi Electronics QCPU — D S D D S D diagram (page 222)
Fig. 261

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)

+

(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the

D S

result of the addition at the device designated by .

D S D

b0 5678 (BIN) b15 b0 6912 (BIN) b15 b0 1234 (BIN) b15

(2) Values for and can be designated between 32768 and 32767 (BIN, 16 bits).

S D

(3) The judgment of whether data is positive or negative is made by the most significant bit

(b15).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

Since bit 15 value is "1", result of operation takes a negative value. K32767 +K2 (7FFFH)

K 32767

(0002 H )

(8001 H )

K 32768 +K 2

K32766 (7FFE H )

Since bit 15 value is "0", result of operation takes a positive value.

(FFFE H ) (8000 H )

(BIN 16 bits)

Page 223 of the Mitsubishi Electronics QCPU user manual — K 32767 K 2
Page 223 · click to enlarge
Page 223

+(P),-(P)

(1) Subtracts 16-bit BIN data designated by from 16-bit BIN data designated by and

D S

stores the result of the subtraction at the device designated by .

D S D

b0 5678 (BIN) b15 b0 4444 (BIN) b15 b0 1234 (BIN) b15

(2) Values for and can be designated between 32768 and 32767 (BIN, 16 bits).

S D

(3) The judgment of whether data is positive or negative is made by the most significant bit

(b15).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

K32766 (7FFE H )

Since bit 15 value is "0", result of operation takes a positive value.

(8000 H ) (0002 H ) K 32768

K2

Since bit 15 value is "1", result of operation takes a negative value. K32767

K 32767 K 2

(7FFF H )

(8001 H ) (FFFE H )

Operation Error

(1) There are no operation errors associated with the +(P) or -(P) instruction.

6.2 Arithmetic Operation Instructions 6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))

Page 224 of the Mitsubishi Electronics QCPU user manual — (8000 H ) (FFFE H )
Page 224 · click to enlarge
Page 224

+(P),-(P)

When three data are set ( + , - )

S1 S2 D S1 S2 D

Mitsubishi Electronics QCPU — S1 S2 D S1 S2 D diagram (page 224)
Fig. 262

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (BIN 16 bits)

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

: Head number of the devices where the addition/subtraction operation result will be stored (BIN 16 bits)

Mitsubishi Electronics QCPU — S1 S2 D S1 S2 D diagram (page 224)
Fig. 263

+

(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the

S1 S2

result of the addition at the device designated by .

S1 S2 D

b0 5678 (BIN) b15 b0 6912 (BIN) b15 b0 1234 (BIN) b15

(2) Values for , andcan be designated between 32768 and 32767 (BIN, 16 bits).

S1 S2 D D

(3) The judgment of whether data is positive or negative is made by the most significant bit

(b15).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

K 32767 (7FFFH) (0002H) (8001H)

Since bit 15 value is "1", result of operation takes a negative value. K32767 +K2

K 32768 +K 2

K32766 (7FFE H )

Since bit 15 value is "0", result of operation takes a positive value.

(8000 H ) (FFFE H )

(BIN 16 bits)

Page 225 of the Mitsubishi Electronics QCPU user manual — S1 S2 D D
Page 225 · click to enlarge
Page 225

+(P),-(P)

(1) Subtracts 16-bit BIN data designated by from 16-bit BIN data designated by and

S1 S2

stores the result of the subtraction at the device designated by .

S1 S2 D

b0 5678 (BIN) b15 b0 4444 (BIN) b15 b0 1234 (BIN) b15

(2) Values for , and can be designated between 32768 and 32767 (BIN, 16 bits).

S1 S2 D D

(3) The judgment of whether data is positive or negative is made by the most significant bit

(b15).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — S1 S2 D D diagram (page 225)
Fig. 264

Since bit 15 value is "0", result of operation takes a positive value.

Since bit 15 value is "1", result of operation takes a negative value. K32767

(1) There are no operation errors associated with the +(P) or -(P) instruction.

Mitsubishi Electronics QCPU — S1 S2 D D diagram (page 225)
Fig. 265

(1) The following program adds, when X5 is turned ON, the data at D3 and D0 and outputs the

6.2 Arithmetic Operation Instructions 6.2.1 BIN 16-bit addition and subtraction operations (+(P),-(P))

(2) The following program outputs the difference between the set value for timer T3 and its

Page 226 of the Mitsubishi Electronics QCPU user manual — S D
Page 226 · click to enlarge
Page 226

D+(P),D-(P)

6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))

D+(P),D-(P)

Basic Process High performance Redundant Universal

When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

D D S S D S S D D

Mitsubishi Electronics QCPU — D+(P),D-(P) diagram (page 226)
Fig. 266

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

Mitsubishi Electronics QCPU — D+(P),D-(P) diagram (page 226)
Fig. 267

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 32 bits)

(1) Adds 32-bit BIN data designated by to 32-bit BIN data designated by , and stores the

D S

result of the addition at the device designated by .

Mitsubishi Electronics QCPU — D S diagram (page 226)
Fig. 268

(2) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

S D

(3) Judgment of whether the data is positive or negative is made on the basis of the most

significant bit (b31).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — S D diagram (page 226)
Fig. 269

Since bit 31 value is "1", result of operation takes a negative value. K2147483647 (7FFFFFFFH)

Since bit 31 value is "0", result of operation takes a positive value.

(BIN 32 bits)

Page 227 of the Mitsubishi Electronics QCPU user manual — K 2 K
Page 227 · click to enlarge
Page 227

D+(P),D-(P)

(1) Subtracts 32-bit BIN data designated by from 32-bit BIN data designated by and

D S

stores the result of the subtraction at the device designated by .

D S +1 D S D +1 D

123456 (BIN) b0 b16 b15 567890 (BIN) b31

b0 b16 b15 b31 b0 b16 b15 b31

444434 (BIN)

(2) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

S D

(3) Judgment of whether the data is positive or negative is made on the basis of the most

significant bit (b31).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

(7FFFFFFE H ) K2147483646

Since bit 31 value is "0", result of operation takes a positive value.

K 2147483648 K2

(80000000 H )

(00000002 H )

Since bit 31 value is "1", result of operation takes a negative value. K2147483647

K 2 K

(80000000 H )

(FFFFFFFE H )

(80000001 H )

Operation Error

(1) There are no operation errors associated with the D+(P) or D-(P) instruction.

6.2 Arithmetic Operation Instructions 6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))

+1 · 2147483647

Page 228 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 228 · click to enlarge
Page 228

D+(P),D-(P)

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

S1 S1 S2 S2 D D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — D+(P),D-(P) diagram (page 228)
Fig. 270

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (BIN 32 bits)

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

Mitsubishi Electronics QCPU — D+(P),D-(P) diagram (page 228)
Fig. 271

: Head number of the devices where the addition/subtraction operation result will be stored (BIN 32 bits)

(1) Adds 32-bit BIN data designated by to 32-bit BIN data designated by , and stores the

S1 S2

result of the addition at the device designated by .

Mitsubishi Electronics QCPU — S1 S2 diagram (page 228)
Fig. 272

(2) The values for , and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

(3) Judgment of whether the data is positive or negative is made on the basis of the most

significant bit (b31).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — S1 S2 diagram (page 228)
Fig. 273

Since bit 31 value is "1", result of operation takes a negative value. K2147483647 (7FFFFFFFH)

Since bit 31 value is "0", result of operation takes a positive value.

(BIN 32 bits)

Page 229 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 229 · click to enlarge
Page 229

D+(P),D-(P)

(1) Subtracts 32-bit BIN data designated by from 32-bit BIN data designated by and

S1 S2

stores the result of the subtraction at the device designated by .

+1 S1 S2 D S1 S2 D

123456 (BIN) b0 b16 b15

b0 b16 b15 b31 b0 b16 b15 b31

444434 (BIN)

(2) The values for , and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

S1 S2 D

(3) Judgment of whether the data is positive or negative is made on the basis of the most

significant bit (b31).

  • 0: Positive
  • 1: Negative

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 229)
Fig. 274

Since bit 31 value is "0", result of operation takes a positive value.

Since bit 31 value is "1", result of operation takes a negative value.

Operation Error

(1) There are no operation errors associated with the D+(P) or D-(P) instruction.

Mitsubishi Electronics QCPU — Operation Error diagram (page 229)
Fig. 275 · Operation Error

6.2 Arithmetic Operation Instructions 6.2.2 BIN 32-bit addition and subtraction operations (D+(P),D-(P))

(1) The following program adds 28-bit data from X10 to X2B to the data at D9 and D10 when X0

goes ON, and outputs the result of the operation to Y30 to Y4B.

(2) The following program subtracts the data from M0 to M23 from the data at D0 and D1 when

XB goes ON, and stores the result at D10 and D11.

+1 · +1 · 567890 (BIN) b31

Page 230 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 230 · click to enlarge
Page 230

*(P),/(P)

6.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))

*(P),/(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — *(P),/(P) diagram (page 230)
Fig. 276

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (BIN 32 bits)

Mitsubishi Electronics QCPU — *(P),/(P) diagram (page 230)
Fig. 277

*

(1) Multiplies BIN 16-bit data designated by and BIN 16-bit data designated by , and

Mitsubishi Electronics QCPU — * diagram (page 230)
Fig. 278

stores the result in the device designated by .

b0 1234 (BIN) b15 b0 5678 (BIN) b15 b0 b16 b15 7006652 (BIN) b31

(2) If is a bit device, designation is made from the lower bits.

Example

K1 Lower 4 bits (b0 to b3) K4 Lower 16 bits (b0 to b15) K8 32 bits (b0 to b31)

(3) Values for and can be designated between 32768 and 32767 (BIN, 16 bits).

S1 S2

(4) Judgments whether , , and are positive or negative are made on the basis of the

S1 S2 D

most significant bit (b15 for , and , for and b31).

S1 S2 D

  • 0: Positive
  • 1: Negative

(BIN 16 bits) · (BIN 16 bits)

Page 231 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 231 · click to enlarge
Page 231

*(P),/(P)

/

(1) Divides BIN 16-bit data designated by and BIN 16-bit data designated by , and stores

Mitsubishi Electronics QCPU — *(P),/(P) diagram (page 231)
Fig. 279

(2) If a word device has been used, the result of the division operation is stored as 32 bits, and

both the quotient and remainder are stored; if a bit device has been used, 16 bits are used and only the quotient is stored.

Quotient: Stored at the lower 16 bits. Remainder: Stored at the upper 16 bits (Stored only when using a word device).

(3) Values for and can be designated between 32768 and 32767 (BIN 16 bits).

S1 S2

(4) Judgment whether values for , , and +1 are positive or negative is made on the basis of the most significant bit (b15). (Sign is attached to both the quotient and remainder.)

S1 S2 D D

  • 0: Positive
  • 1: Negative

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • Attempt to divide by 0. (Error code: 4100)
Mitsubishi Electronics QCPU — Operation Error diagram (page 231)
Fig. 280 · Operation Error

6.2 Arithmetic Operation Instructions 6.2.3 BIN 16-bit multiplication and division operations (*(P),/(P))

(1) The following program multiplies "5678" by "1234" in BIN and stores the result at D3 and D4

(2) The following program multiplies BIN data at X8 to XF by BIN data at X10 to X1B, and

outputs the result of the multiplication to Y30 to Y3F.

(3) The following program divides, when X3 is turned ON, the data at X8 to XF by 3.14 and

Page 232 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 232 · click to enlarge
Page 232

D*(P),D/(P)

6.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))

D*(P),D/(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — D*(P),D/(P) diagram (page 232)
Fig. 281

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

Mitsubishi Electronics QCPU — D*(P),D/(P) diagram (page 232)
Fig. 282

: Head number of the devices where the multiplication/division operation result will be stored (BIN 64 bits)

(1) Multiplies BIN 32-bit data designated by and BIN 32-bit data designated by , and

Mitsubishi Electronics QCPU — D*(P),D/(P) diagram (page 232)
Fig. 283

stores the result in the device designated by .

123456 (BIN) b0 b63 b48 b31 b16 70109427840 (BIN) b0 b16 b15 567890 (BIN) b31

(2) If is a bit device, only the lower 32 bits of the multiplication result will be considered, and the upper 32 bits cannot be designated.

Example

K1 Lower 4 bits (b0 to b3) K4 Lower 16 bits (b0 to b15) K8 Lower 32 bits (b0 to b31)

If the upper 32 bits of the bit device are required for the result of the multiplication operation, first temporarily store the data in a word device, then transfer the word device data to the bit

device by designating ( +2) and ( +3) data.

D D

(3) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

S1 S2

(4) Judgments whether , , and are positive or negative are made on the basis of the

S1 S2 D

most significant bit (b31 for and , b63 for ).

S1 S2 D

  • 0: Positive
  • 1: Negative

(BIN 32 bits) · (BIN 32 bits)

Page 233 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 233 · click to enlarge
Page 233

D*(P),D/(P)

(1) Divides BIN 32-bit data designated by and BIN 32-bit data designated by , and stores

Mitsubishi Electronics QCPU — D*(P),D/(P) diagram (page 233)
Fig. 284

(2) With a word device, the division operation result is stored in 64 bits and both the quotient

and remainder are stored. With a bit device, only the quotient is stored as the operation result in 32 bits.

Quotient : Stored at the lower 32 bits. Remainder : Stored at the upper 32 bits (Stored only when using a word device).

(3) The values for and can be designated at between 2147483648 and 2147483647 (BIN 32 bits).

S1 S2

(4) Judgment whether values for , , and +2 are positive or negative is made on the basis of the most significant bit (b31).

S1 S2 D D

(Sign is attached to both the quotient and remainder.)

  • 0: Positive
  • 1: Negative

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON,

and the corresponding error code is stored into SD0.

  • Attempt to divide by 0. (Error code: 4100)
Mitsubishi Electronics QCPU — Operation Error diagram (page 233)
Fig. 285 · Operation Error

6.2 Arithmetic Operation Instructions 6.2.4 BIN 32-bit multiplication and division operations (D*(P),D/(P))

(1) The following program multiplies the BIN data at D7 and D8 by the BIN data at D18 and D19

when X5 is ON, and stores the result at D1 to D4.

(2) The following program outputs the value resulting when the data at X8 to XF is multiplied by

3.14 to Y30 to Y3F when X3 is ON.

Page 234 of the Mitsubishi Electronics QCPU user manual — S D
Page 234 · click to enlarge
Page 234

B+(P),B-(P)

6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))

B+(P),B-(P) B+(P), B-(P)

Basic Process High performance Redundant Universal

When two data are set ( + , - )

D S D D S D

Mitsubishi Electronics QCPU — D S D D S D diagram (page 234)
Fig. 286

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — D S D D S D diagram (page 234)
Fig. 287

: Head number of the devices where the data to be added to/subtracted from is stored (BCD 4 digits)

B+

(1) Adds the BCD 4-digit data designated by and the BCD 4-digit data designated by , and

D S

stores the result of the addition at the device designated by .

D S D

9 6 1 2 2 1 3 4 6 5 7 8

(2) 0 to 9999 (BCD 4 digits) can be assigned to and .

S D

(3) If the result of the addition operation exceeds 9999, the higher bits are ignored.

The carry flag in this case does not go ON.

4 6 3 2 0 0 1 5 5 3 8 3

B-

(1) Subtracts the BCD 4-digit data designated by and the BCD 4-digit data designated by ,

S D

and stores the result of the subtraction at the device designated by .

Mitsubishi Electronics QCPU — S D diagram (page 234)
Fig. 288

4 0 4 4 2 0 3 4 6 0 7 8

Digits exceeding the designated number of digits are assumed to be 0.

(2) 0 to 9999 (BCD 4 digits) can be assigned to and .

(BCD 4 digits)

Page 235 of the Mitsubishi Electronics QCPU user manual — S D
Page 235 · click to enlarge
Page 235

B+(P), B-(P)

(3) The following will result if an underflow is generated by the subtraction operation:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — B+(P), B-(P) diagram (page 235)
Fig. 289

9 9 9 8 0 0 0 3 0 0 0 1

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The or BCD data is outside the 0 to 9999 range. (Error code: 4100)

S D

Program Example

(1) The following program adds BCD data 5678 and 1234, stores it at D993, and at the same

time outputs it to from Y30 to Y3F.

Mitsubishi Electronics QCPU — S D diagram (page 235)
Fig. 290

Adds 1234 in BCD to the value at D993, and stores the result to D993.

Outputs the data in D993 to Y30 to Y3F.

Mitsubishi Electronics QCPU — S D diagram (page 235)
Fig. 291

6.2 Arithmetic Operation Instructions 6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))

(2) The following program subtracts the BCD data 4321 from 7654, stores the result at D10, and

at the same time outputs it to Y30 to Y3F.

Subtracts the value in D10 from 4321 in BCD, and stores the result to D10.

Outputs the data in D10 to Y30 to Y3F.

[Ladder Mode] · [List Mode]

Page 236 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 236 · click to enlarge
Page 236

B+(P), B-(P)

When three data are set ( + , - )

S1 S2 D S1 S2 D

Mitsubishi Electronics QCPU — S1 S2 D S1 S2 D diagram (page 236)
Fig. 292

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (BCD 4 digits)

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — S1 S2 D S1 S2 D diagram (page 236)
Fig. 293

: Head number of the devices where the addition/subtraction operation result will be stored (BCD 4 digits)

B+

(1) Adds the BCD 4-digit data designated by and the BCD 4-digit data designated by , and

S1 S2

stores the result of the addition at the device designated by .

S1 S2 D

9 6 1 2 2 1 3 4 6 5 7 8

(2) 0 to 9999 (BCD 4 digits) can be assigned to , and .

S1 S2 D

(3) If the result of the addition operation exceeds 9999, the higher bits are ignored.

The carry flag in this case does not go ON.

4 6 3 2 0 0 1 5 5 3 8 3

B-

(1) Subtracts the BCD 4-digit data designated by and the BCD 4-digit data designated by ,

S1 S2

and stores the result of the subtraction at the device designated by .

Mitsubishi Electronics QCPU — S1 S2 diagram (page 236)
Fig. 294

4 0 4 4 2 0 3 4 6 0 7 8

Digits exceeding the designated number of digits are assumed to be 0.

(2) 0 to 9999 (BCD 4 digits) can be assigned to , and .

S1 S2 D

(BCD 4 digits)

Page 237 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 237 · click to enlarge
Page 237

B+(P), B-(P)

(3) The following will result if an underflow is generated by the subtraction operation:

The carry flag in this case does not go ON.

Mitsubishi Electronics QCPU — B+(P), B-(P) diagram (page 237)
Fig. 295

9 9 9 8 0 0 0 3 0 0 0 1

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The , or BCD data is outside the 0 to 9999 range. (Error code: 4100)

S1 S2 D

Program Example

(1) The following program adds the D3 BCD data and the Z1 BCD data when X20 goes ON, and

outputs the result to Y8 to Y17.

[Ladder Mode] [List Mode]

(2) The following program subtracts the BCD data at D20 from the BCD data at D10 when X20

goes ON, and stores the result at R10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 237)
Fig. 296

6.2 Arithmetic Operation Instructions 6.2.5 BCD 4-digit addition and subtraction operations (B+(P),B-(P))

Step Instruction Device · Step Instruction Device

Page 238 of the Mitsubishi Electronics QCPU user manual — D S
Page 238 · click to enlarge
Page 238

DB+(P),DB-(P)

6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))

DB+(P),DB-(P)

Basic Process High performance Redundant Universal

When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

D D S S D S S D D

Mitsubishi Electronics QCPU — DB+(P),DB-(P) diagram (page 238)
Fig. 297

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — DB+(P),DB-(P) diagram (page 238)
Fig. 298

: Head number of the devices where the data to be added to/subtracted from is stored (BCD 8 digits)

DB+

(1) Adds the BCD 8-digit data designated by and the BCD 8-digit data designated by , and

D S

stores the result of the addition at the device designated by .

Mitsubishi Electronics QCPU — D S diagram (page 238)
Fig. 299

Digits exceeding the designated number of digits are assumed to be 0.

(2) 0 to 99999999 (BCD 8 digits) can be assigned to and .

S D

(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.

The carry flag in this case does not go ON.

1 0 6 5 4 3 2 1 9 9 0 6 5 4 3 2 1

DB-

(1) Subtracts the BCD 8-digit data designated by and the BCD 8-digit data designated by ,

D S

and stores the result of the subtraction at the device designated by .

Mitsubishi Electronics QCPU — D S diagram (page 238)
Fig. 300

Digits exceeding the designated number of digits are assumed to be 0.

(BCD 8 digits)

Page 239 of the Mitsubishi Electronics QCPU user manual — S D
Page 239 · click to enlarge
Page 239

DB+(P),DB-(P)

(2) 0 to 99999999 (BCD 8 digits) can be assigned to and .

S D

(3) The following will result if an underflow is generated by the subtraction operation: The carry

flag in this case does not go ON.

Mitsubishi Electronics QCPU — S D diagram (page 239)
Fig. 301

2 1 3 4 5 6 7 9 2 1 3 4 5 6 7 8 9

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The or BCD data is outside the 0 to 99999999 range. (Error code: 4100)

S D

Program Example

(1) The following program adds the BCD data 12345600 and 34567000, stores the result at

D887 and D888, and at the same time outputs them to from Y30 to Y4F.

Mitsubishi Electronics QCPU — S D diagram (page 239)
Fig. 302

Adds 34567000 in BCD to the value in D887 and D888, and stores the result to D887 and D888.

Outputs the data in D887 and D888 to Y30 to Y4F.

Mitsubishi Electronics QCPU — S D diagram (page 239)
Fig. 303

6.2 Arithmetic Operation Instructions 6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))

(2) The following program subtracts the BCD data 98765432 from 12345678, stores the result

at D100 and D101, and at the same time outputs it from Y30 to Y4F.

Subtracts the value in D100 and D101 from 12345678 in BCD, and stores the result to D100 and D101.

Outputs the data in D100 and D101 to T30 to Y4F.

[Ladder Mode] · [List Mode]

Page 240 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 240 · click to enlarge
Page 240

DB+(P),DB-(P)

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

S1 S1 S2 S2 D D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — DB+(P),DB-(P) diagram (page 240)
Fig. 304

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (BCD 8 digits)

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — DB+(P),DB-(P) diagram (page 240)
Fig. 305

: Head number of the devices where the addition/subtraction operation result is stored (BCD 8 digits)

DB+

(1) Adds the BCD 8-digit data designated by and the BCD 8-digit data designated by , and

S1 S2

stores the result of the addition at the device designated by .

Mitsubishi Electronics QCPU — S1 S2 diagram (page 240)
Fig. 306

+ 1 0 2 3 4 5 6 7

Digits exceeding the designated number of digits are assumed to be 0.

(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .

(3) If the result of the addition operation exceeds 99999999, the upper bits will be ignored.

The carry flag in this case does not go ON.

1 0 6 5 4 3 2 1 9 9 0 6 5 4 3 2 1

(BCD 8 digits)

Page 241 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 241 · click to enlarge
Page 241

DB+(P),DB-(P)

DB-

(1) Subtracts the BCD 8-digit data designated by and the BCD 8-digit data designated by ,

S1 S2

and stores the result of the subtraction at the device designated by .

Mitsubishi Electronics QCPU — S1 S2 diagram (page 241)
Fig. 307

Digits exceeding the designated number of digits are assumed to be 0.

(2) 0 to 99999999 (BCD 8 digits) can be assigned to , and .

S1 S2 D

(3) The following will result if an underflow is generated by the subtraction operation:

The carry flag in this case does not go ON.

2 1 3 4 5 6 7 9 2 1 3 4 5 6 7 8 9

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The , or BCD data is outside the 0 to 99999999 range. (Error code: 4100)

S1 S2 D

Program Example

(1) The following program adds the BCD data at D3 and D4 to the BCD data at Z1 and Z2 when

X20 goes ON, and stores the result at R10 and R11.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 241)
Fig. 308

6.2 Arithmetic Operation Instructions 6.2.6 BCD 8-digit addition and subtraction operations (DB+(P),DB-(P))

Page 242 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 242 · click to enlarge
Page 242

B*(P),B/(P)

6.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))

B*(P),B/(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — B*(P),B/(P) diagram (page 242)
Fig. 309

B ,B/ indicates an instruction symbol of * .

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

Mitsubishi Electronics QCPU — B*(P),B/(P) diagram (page 242)
Fig. 310

: Head number of the devices where the multiplication/division operation result will be stored (BCD 8 digits)

B*

(1) Multiplies BCD data designated by and BCD data designated by , and stores the result

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 242)
Fig. 311

4 0 9 7 8 0 7 6 6 5 7 8

(2) 0 to 9999 (BCD 4 digits) can be assigned to and .

B/

(1) Divides BCD data designated by and BCD data designated by , and stores the result in

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 242)
Fig. 312

0 0 0 6 8 0 7 6 6 5 7 8 4 0 2 2

Digits exceeding the designated number of digits are assumed to be 0.

(2) Uses 32 bits to store the result of the division as quotient and remainder

Quotient (BCD 4 digits) :Stored at the lower 16 bits. Remainder (BCD 4 digits) :Stored at the upper 16 bits.

(3) If has been designated as a bit device, the remainder of the operation will not be stored.

(BCD 4 digits) · (BCD 4 digits)

Page 243 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 243 · click to enlarge
Page 243

B*(P),B/(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The or BCD data is outside the 0 to 9999 range. (Error code: 4100)

S1 S2

  • Attempt to divide by 0. (Error code: 4100)

Program Example

(1) The following program multiplies, when X20 is turned ON, the BCD data at X0 to XF by the

BCD data at D8 and stores the operation result at D0 to D1.

[Ladder Mode] [List Mode]

D8 D1 (Upper 4 digits) X0 XF

D0 (Lower 4 digits)

4 8 2 8 6 8 4 2 7 9 5 3

4 5 2 6

(2) The following program divides 5678 by the BCD data 1234, stores the result at D502 and

D503, and at the same time outputs the quotient to Y30 to Y3F.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 243)
Fig. 313 · Program Example

6.2 Arithmetic Operation Instructions 6.2.7 BCD 4-digit multiplication and division operations (B*(P),B/(P))

/ 0 0 0 4 2 1 3 4 6 5 7 8

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Multiplier Multiplicand · Multiplication result
Page 244 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 244 · click to enlarge
Page 244

DB*(P),DB/(P)

6.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))

DB*(P),DB/(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DB*(P),DB/(P) diagram (page 244)
Fig. 314

DB ,DB/ indicates an instruction symbol of * .

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (BCD 16 digits)

Mitsubishi Electronics QCPU — DB*(P),DB/(P) diagram (page 244)
Fig. 315

DB*

(1) Multiplies the BCD 8-digit data designated by and the BCD 8-digit data designated by , and stores the product at the device designated by .

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 244)
Fig. 316

9

9 8 0 1

(2) If has designated a bit device, the lower 8 digits (lower 32 bits) will be used for the product, and the higher 8 digits (upper 32 bits) cannot be designated. K1 Lower 1 digit (b0 to 3), K4 Lower 4 digits (b0 to 15), K8 Lower 8 digits (b0 to 31)

(3) 0 to 99999999 (BCD 8 digits) can be assigned to and .

S1 S2

DB/

Mitsubishi Electronics QCPU — S1 S2 diagram (page 244)
Fig. 317

(1) Divides 8-digit BCD data designated by and 8-digit BCD data designated by , and stores the result in the device designated by .

6 5 7 8 1 9 2 3 1 0 2 3 5 4 6 7 /

Digits exceeding the designated number of digits are assumed to be 0

(Lower 4 digits) (Upper 4 digits) (Lower 4 digits) (Upper 4 digits)

0 4 5 1 0 2 3 6 3 0 8

(BCD 8 digits) · (BCD 8 digits)

Page 245 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 245 · click to enlarge
Page 245

DB*(P),DB/(P)

(2) 64 bits are used for the result of the division operation, and stored as quotient and

remainder.

Quotient (BCD 8 digits) :Stored at the lower 32 bits. Remainder (BCD 8 digits) :Stored at the upper 32 bits.

(3) If has been designated as a bit device, the remainder of the operation will not be stored.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The or BCD data is outside the 0 to 99999999 range. (Error code: 4100)

S1 S2

  • Attempt to divide by 0. (Error code: 4100)

Program Example

(1) The following program multiplies the BCD data 67347125 and 573682, stores the result from

D502 to D505, and at the same time outputs the upper 8 digits to Y30 to Y4F.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 245)
Fig. 318 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 245)
Fig. 319 · Program Example

6.2 Arithmetic Operation Instructions 6.2.8 BCD 8-digit multiplication and division operations (DB*(P),DB/(P))

(2) The following program divides the BCD data from X20 to X3F by the BCD data at D8 and D9

when X0B goes ON, and stores the result from D765 to D768.

0 6 8 0 2 8 8 1 3 3

[Operation]

Page 246 of the Mitsubishi Electronics QCPU user manual — E-
Page 246 · click to enlarge
Page 246

E+(P),E-(P)

6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))

E+(P),E-(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

When two data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

D D S S D S S D D

Mitsubishi Electronics QCPU — E+(P),E-(P) diagram (page 246)
Fig. 320

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — E+(P),E-(P) diagram (page 246)
Fig. 321

: Head number of the devices where the data to be added to/subtracted from is stored (real number)

*1:Available only in multiple Universal model QCPU

Function

E+

(1) Adds the 32-bit floating decimal point type real number designated at and the 32-bit

floating decimal point type real number designated at , and stores the sum in the device

Mitsubishi Electronics QCPU — E+ diagram (page 246)
Fig. 322

(2) Values which can be designated at and and which can be stored, are as follows:

0, 2-126 | Designated value (stored value) | < 2128

E-

(1) Subtracts a 32-bit floating decimal point type real number designated by and a 32-bit floating decimal point type real number designated by , and stores the result at a device designated by .

Mitsubishi Electronics QCPU — E- diagram (page 246)
Fig. 323

(real number)

Page 247 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 247 · click to enlarge
Page 247

E+(P),E-(P)

(2) Values which can be designated at and and which can be stored, are as follows:

S D

0, 2-126 | Designated value (stored value) | < 2128

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within
the following range(Error code: 4100)

0, 2-126 | Contents of designated device | < 2128

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to Section 3.2.4 for details.

  • The result of addition and subtraction exceeds the following range. (The overflow occurs.)

(For the Universal model QCPU only)

2128 | Result of addition and subtraction | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program adds the 32-bit floating decimal point type real numbers at D3 and D4

Mitsubishi Electronics QCPU — Program Example diagram (page 247)
Fig. 324 · Program Example

and the 32-bit floating decimal point type real numbers at D10 and D11 when X20 goes ON, and stores the result at D3 and D4.

6.2 Arithmetic Operation Instructions 6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))

(2) The following program subtracts the 32-bit floating decimal point type real number at D10

and D11 from the 32-bit floating decimal point type real numbers at D20 and D21, and stores the result of the subtraction at D20 and D21.

Page 248 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 248 · click to enlarge
Page 248

E+(P),E-(P)

When three data are set (( +1, )+( +1, ) ( +1, ), ( +1, )-( +1, ) ( +1, ))

S1 S1 S2 S2 D D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — E+(P),E-(P) diagram (page 248)
Fig. 325

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (real number)

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — E+(P),E-(P) diagram (page 248)
Fig. 326

: Head number of the devices where the addition/subtraction operation result is stored (real number)

*1:Available only in multiple Universal model QCPU

Function

E+

(1) Adds the 32-bit floating decimal point type real number designated at and the 32-bit

floating decimal point type real number designated at , and stores the sum in the device

designated at .

Mitsubishi Electronics QCPU — E+ diagram (page 248)
Fig. 327

(2) Values which can be designated at , and and which can be stored, are as follows:

S1 S2 D

0, 2-126 | Designated value (stored value) | < 2128

E-

(1) Subtracts a 32-bit floating decimal point type real number designated by and a 32-bit

floating decimal point type real number designated by , and stores the result at a device

designated by .

Mitsubishi Electronics QCPU — E- diagram (page 248)
Fig. 328

(2) Values which can be designated at and and which can be stored, are as follows:

S1 S2 D

0, 2-126 | Designated value (stored value) | < 2128

(real number)

Page 249 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 249 · click to enlarge
Page 249

E+(P),E-(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within

the following range:

0, 2-126 | Contents of designated device | < 2128

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to Section 3.2.4 for details.

  • The result of addition and subtraction exceeds the following range. (The overflow occurs.)

(For the Universal model QCPU only)

2128 | Result of addition and subtraction | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program adds the 32-bit floating decimal point type real numbers at D3 and D4

and the 32-bit floating decimal point type real numbers at D10 and D11 when X20 goes ON, and outputs the result to R0 and R1.

Mitsubishi Electronics QCPU — Program Example diagram (page 249)
Fig. 329 · Program Example

6.2 Arithmetic Operation Instructions 6.2.9 Addition and subtraction of floating decimal point data (Single precision) (E+(P),E-(P))

(2) The following programs subtracts the 32-bit floating decimal point type real numbers at D20

and D21 from the 32-bit floating decimal point type real numbers at D11 and D10, and stores the result at D30 and D31.

Page 250 of the Mitsubishi Electronics QCPU user manual — S D
Page 250 · click to enlarge
Page 250

ED+(P),ED-(P)

6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))

ED+(P),ED-(P)

Universal Basic Process High performance Redundant

When two data are set (( +3, +2, +1, )+( +3, +2, +1, ) ( +3, +2, +1, ),

D S D

( +3, +2, +1, )-( +3, +2, +1, ) ( +3, +2, +1, ))

D S D

Mitsubishi Electronics QCPU — ED+(P),ED-(P) diagram (page 250)
Fig. 330

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

: Head number of the devices where the data to be added to/subtracted from is stored (real number)

Mitsubishi Electronics QCPU — ED+(P),ED-(P) diagram (page 250)
Fig. 331

ED+

(1) Adds the 64-bit floating decimal point type real number designated at and the 64-bit

floating decimal point type real number designated at , and stores the sum in the device

Mitsubishi Electronics QCPU — ED+ diagram (page 250)
Fig. 332

(2) Values which can be designated at and and which can be stored, are as follows:

S D

0, 2-1022 | Designated value (stored value) | < 21024

(real number)

Page 251 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 251 · click to enlarge
Page 251

ED+(P),ED-(P)

ED-

(1) Subtracts a 64-bit floating decimal point type real number designated by and a 64-bit

floating decimal point type real number designated by , and stores the result at a device

Mitsubishi Electronics QCPU — ED+(P),ED-(P) diagram (page 251)
Fig. 333

(2) Values which can be designated at and and which can be stored, are as follows:

S D

0, 2-1022 | Designated value (stored value) | < 21024

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within
the following range(Error code: 4140)

0, 2-1022 | Contents of designated device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result of addition/subtraction exceeds the following range (Operation results in an

overflow):

21024 | Result of operation | (Error code: 4141)

Mitsubishi Electronics QCPU — Operation Error diagram (page 251)
Fig. 334 · Operation Error

6.2 Arithmetic Operation Instructions 6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))

(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6

and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON, and stores the result at D3 to D6.

(2) The following program subtracts the 64-bit floating decimal point type real number at D10 to

D13 from the 64-bit floating decimal point type real numbers at D20 to D23, and stores the result of the subtraction at D20 to D23.

Page 252 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 252 · click to enlarge
Page 252

ED+(P),ED-(P)

When three data are set(( +3, +2, +1, )+( +3, +2, +1, ) ( +3, +2, +1, ),

S1 S2 D

( +3, +2, +1, )-( +3, +2, +1, ) ( +3, +2, +1, ))

S1 S2 D

Mitsubishi Electronics QCPU — ED+(P),ED-(P) diagram (page 252)
Fig. 335

: Data to be added to/subtracted from or head number of the devices where the data to be added

to/subtracted from is stored (real number)

: Data for adding/subtracting or head number of the devices where the data for adding/subtracting is stored

Mitsubishi Electronics QCPU — ED+(P),ED-(P) diagram (page 252)
Fig. 336

: Head number of the devices where the addition/subtraction operation result is stored (real number)

ED+

(1) Adds the 64-bit floating decimal point type real number designated at and the 64-bit

floating decimal point type real number designated at , and stores the sum in the device

Mitsubishi Electronics QCPU — ED+ diagram (page 252)
Fig. 337

D +2 D D +1 D S1 S2

(2) Values which can be designated at , and and which can be stored, are as follows:

0, 2-1022 | Designated value (stored value) | < 21024

ED-

(1) Subtracts a 64-bit floating decimal point type real number designated by and a 64-bit

floating decimal point type real number designated by , and stores the result at a device

Mitsubishi Electronics QCPU — ED- diagram (page 252)
Fig. 338

+2 +1 S1 S2 D

(2) Values which can be designated at and and which can be stored, are as follows:

S1 S2 D

0, 2-1022 | Designated value (stored value) | < 21024

(real number)

Page 253 of the Mitsubishi Electronics QCPU user manual — D3 D6 D5 D11
Page 253 · click to enlarge
Page 253

ED+(P),ED-(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within
the following range(Error code: 4140)

0, 2-1022 | Contents of designated device | < 21024

  • The value of the specified device is 0. (Error code: 4140)
  • The result of addition/subtraction exceeds the following range (Operation results in an

overflow):

21024 | Result of operation | (Error code: 4141)

Program Example

(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6

and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON, and outputs the result at R0 to R3.

[Ladder Mode] [List Mode]

D3 D6 D5 D11

D10 D13 D12 R1

R0 R3 R2

Mitsubishi Electronics QCPU — D3 D6 D5 D11 diagram (page 253)
Fig. 339

6.2 Arithmetic Operation Instructions 6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P))

(2) The following programs subtracts the 64-bit floating decimal point type real numbers at D20

to D23 from the 64-bit floating decimal point type real numbers at D10 to D13, and stores the result at D30 to D33.

Step Instruction Device · [Operation]

Page 254 of the Mitsubishi Electronics QCPU user manual — E/
Page 254 · click to enlarge
Page 254

E*(P),E/(P)

6.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))

E*(P),E/(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — E*(P),E/(P) diagram (page 254)
Fig. 340

, E/ indicates an instruction symbol of E* .

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (real number)

Mitsubishi Electronics QCPU — E*(P),E/(P) diagram (page 254)
Fig. 341

*1:Available only in multiple Universal model QCPU

Function

E*

(1) Multiplies the 32-bit floating decimal point real number designated by by the 32-bit

floating decimal point real number designated by and stores the operation result at the

device designated by .

Mitsubishi Electronics QCPU — E* diagram (page 254)
Fig. 342

(2) Values which can be designated at , and and which can be stored, are as follows:

0, 2-126 | Designated value (stored value) | < 2128

E/

(1) Divides the 32-bit floating decimal point real number designated by by the 32-bit floating

decimal point real number designated by and stores the operation result at the device

Mitsubishi Electronics QCPU — E/ diagram (page 254)
Fig. 343

(real number) · (real number)

Page 255 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 255 · click to enlarge
Page 255

E*(P),E/(P)

(2) Values which can be designated at , and and which can be stored, are as follows:

S1 S2 D

0, 2-126 | Designated value (stored value) | < 2128

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device or the result of multiplication is not within the following

range:

0, 2-126 | Contents of designated device | < 2128

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

  • The value of the designated device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if -0 is specified. Refer to Section 3.2.4 for details.

  • The result of multiplication and division exceeds the following range.

(The overflow occurs.)(For the Universal model QCPU only)

2128 | Result of addition and subtraction | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

Mitsubishi Electronics QCPU — Program Example diagram (page 255)
Fig. 344 · Program Example

(1) The following program multiplies the 32-bit floating decimal point real numbers at D3 and D4

6.2 Arithmetic Operation Instructions 6.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P))

and the 32-bit floating decimal point real numbers at D10 and D11, and stores the result at R0 and R1.

(2) The following program divides the 32-bit floating decimal point real numbers at D10 and D11

by the 32-bit floating decimal point real numbers at D20 and D21, and stores the result at D30 and D31.

Page 256 of the Mitsubishi Electronics QCPU user manual — ED*
Page 256 · click to enlarge
Page 256

ED*(P),ED/(P)

6.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))

ED*(P),ED/(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ED*(P),ED/(P) diagram (page 256)
Fig. 345

: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored

: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored

: Head number of the devices where the multiplication/division operation result will be stored (real number)

Mitsubishi Electronics QCPU — ED*(P),ED/(P) diagram (page 256)
Fig. 346

ED*

(1) Multiplies the 64-bit floating decimal point real number designated by by the 64-bit floating decimal point real number designated by and stores the operation result at the device designated by .

Mitsubishi Electronics QCPU — ED* diagram (page 256)
Fig. 347

D +2 D D +1 D +3 +2 +1 +3 +2 +1 S1 S2

(2) Values which can be designated at , and and which can be stored, are as follows:

0, 2-1022 | Designated value (stored value) | < 21024

(3) When the operation results in -0 or an underflow, the result is processed as 0.

(real number) · (real number)

Page 257 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 257 · click to enlarge
Page 257

ED*(P),ED/(P)

ED/

(1) Divides the 64-bit floating decimal point real number designated by by the 64-bit floating decimal point real number designated by and stores the operation result at the device designated by .

Mitsubishi Electronics QCPU — ED*(P),ED/(P) diagram (page 257)
Fig. 348

D +2 D D +1 D +3 +2 +1 +3 +2 +1 S1 S2

(2) Values which can be designated at , and and which can be stored, are as follows:

0, 2-1022 | Designated value (stored value) | < 21024

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device or the result of multiplication is not within the following
range(Error code: 4140)

0, 2-1022 | Contents of designated device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The value of at division operation is 0. (Error code: 4100)
  • The result of multiplication/division exceeds the following range (Operation results in an

overflow):

21024 | Result of operation | (Error code: 4141)

Mitsubishi Electronics QCPU — Operation Error diagram (page 257)
Fig. 349 · Operation Error

6.2 Arithmetic Operation Instructions 6.2.12 Multiplication and division of floating decimal point data (Double precision) (ED*(P),ED/(P))

(1) The following program multiplies the 64-bit floating decimal point real numbers at D3 to D6

and the 64-bit floating decimal point real numbers at D10 to D13, and stores the result at R0 to R3.

Page 258 of the Mitsubishi Electronics QCPU user manual — D10 D13 D12 D21
Page 258 · click to enlarge
Page 258

ED*(P),ED/(P)

(2) The following program divides the 64-bit floating decimal point real numbers at D10 to D13

by the 64-bit floating decimal point real numbers at D20 to D23, and stores the result at D30 to D33.

[Ladder Mode] [List Mode]

D10 D13 D12 D21

D20 D23 D22 D31

D30 D33 D32

52171.39

9.73521

5359.041

Step Instruction Device · [Operation]

Page 259 of the Mitsubishi Electronics QCPU user manual — BK+(P),BK-(P)
Page 259 · click to enlarge
Page 259

BK+(P),BK-(P)

6.2.13 Block addition and subtraction (BK+(P),BK-(P))

BK+(P),BK-(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BK+(P),BK-(P) diagram (page 259)
Fig. 350

: Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)

: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored

: Head number of the devices where the operation result will be stored (BIN 16 bits)

nNumber of addition/subtraction data blocks (BIN 16 bits)
Mitsubishi Electronics QCPU — BK+(P),BK-(P) diagram (page 259)
Fig. 351

6.2 Arithmetic Operation Instructions 6.2.13 Block addition and subtraction (BK+(P),BK-(P))

(1) Adds n points of BIN data from the device designated by and n-points of BIN data from

the device designated by and stores the result from the device designated by onward.

(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

(BIN 16 bits)

Page 260 of the Mitsubishi Electronics QCPU user manual — S2 D S2
Page 260 · click to enlarge
Page 260

BK+(P),BK-(P)

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

K32767 (7FFF H )

+K2 K 32767

(0002 H ) (8001 H )

K 32767 (8001 H )

+K 2

K32767

(FFFE H ) (7FFF H )

BK-

(1) Subtracts n points of BIN data from the device designated by and n-points of BIN data

from the device designated by and stores the result from the device designated by onward.

S2 D

Mitsubishi Electronics QCPU — S2 D diagram (page 260)
Fig. 352

(2) Block subtraction is performed in 16-bit units.

(3) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

Mitsubishi Electronics QCPU — S2 D diagram (page 260)
Fig. 353

(4) The following will happen when an underflow or overflow is generated in an operation result:

The carry flag in this case does not go ON.

K 32768 (8000 H )

K2 K32766

(0002 H )

(7FFE H )

K32767 (7FFF H )

K 2

(8001 H ) (FFFE H )

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , or device exceeds the range of that device.

S1 S2 D

(Error code4101)
  • The device ranges of and overlap. (Except when the same device is assigned to

S1 D S1

and ) (Error code4101)
  • The device ranges of and overlap. (Except when the same device is assigned to

S2 D S2

and ) (Error code4101)
Page 261 of the Mitsubishi Electronics QCPU user manual — BK+(P),BK-(P)
Page 261 · click to enlarge
Page 261

BK+(P),BK-(P)

Program Example

(1) The following program adds, when X20 is turned ON, the data stored at D100 to D103 to the

data stored at R0 to R3 and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BK+(P),BK-(P) diagram (page 261)
Fig. 354

(2) The following program subtracts, when X1C is turned ON, the constant 8765 from the data

at D100 to D102 and stores the operation result into the area starting from R0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BK+(P),BK-(P) diagram (page 261)
Fig. 355

6.2 Arithmetic Operation Instructions 6.2.13 Block addition and subtraction (BK+(P),BK-(P))

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 262 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 262 · click to enlarge
Page 262

DBK+(P),DBK-(P)

6.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))

DBK+(P),DBK-(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — DBK+(P),DBK-(P) diagram (page 262)
Fig. 356

indicates an instruction symbol of DBK+, DBK- .

: Head number of the devices where the data to be added and subtracted are stored (BIN 32 bits)

: Addition and subtraction data or head number of the devices where the addition and subtraction data are

stored (BIN 32 bits)

: Head number of the devices where the addition and subtraction operation result will be stored (BIN 32 bits) n: Number of addition and subtraction data blocks (BIN 16 bits)

Mitsubishi Electronics QCPU — DBK+(P),DBK-(P) diagram (page 262)
Fig. 357

DBK+

(1) This instruction adds BIN 32-bit data stored in n-point devices starting from the device

specified by to BIN 32-bit data stored in n-point devices starting from the device specified

by or a constant. and then stores the operation result into the nth device specified by and up,

S2 D

Mitsubishi Electronics QCPU — S2 D diagram (page 262)
Fig. 358

n +2 +4 +3, +5,

Universal

Page 263 of the Mitsubishi Electronics QCPU user manual — ・ K2147483647
Page 263 · click to enlarge
Page 263

DBK+(P),DBK-(P)

Mitsubishi Electronics QCPU — DBK+(P),DBK-(P) diagram (page 263)
Fig. 359

S2 n +2 +4 +3, +5,

(2) Block addition is executed in 32-bit units.

(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).

(4) If the value specified by n is 0, the instruction will be not processed.

(5) The following will happen if an overflow occurs in an operation result:

The carry flag in this case is not turned on.

・ K2147483647

+K2 K 2147483647

(7FFFFFFF H )

(00000002 H ) ( 80000001 H )

・ K 2147483647

+K 2

K2147483647

(80000001 H )

( FFFFFFFE H ) (7FFFFFFF H )

DBK-

(1) This instruction subtracts BIN 32-bit data stored in the n-point devices starting from the

device specified by or a constant from BIN 32-bit data stored in n-point devices starting

from the device specified by , and then stores the operation result into the nth device

specified by and up,

Mitsubishi Electronics QCPU — ・ K2147483647 diagram (page 263)
Fig. 360

6.2 Arithmetic Operation Instructions 6.2.14 BIN 32-bit data block addition and subtraction operations (DBK+(P),DBK-(P))

n +2 +4 +3, +5,

S2 n +2 +4 +3, +5,

(3) The constant in the device specified by can be between 2147483648 to 2147483647 (BIN 32-bit data).

(4) If the value specified by n is 0, the instruction will be not processed.

(5) specifies out of the range of n-point devices starting from the device specified by and

Page 264 of the Mitsubishi Electronics QCPU user manual — R1,R0
Page 264 · click to enlarge
Page 264

DBK+(P),DBK-(P)

(6) The following will happen if an overflow occurs in an operation result:

The carry flag in this case is not turned on.

- K - 2 K 2147483647

・ K2147483647

(00000002 H ) ( 80000001 H )

(7FFFFFFF H )

・ K 2147483647

- K2

K2147483647

(FFFFFFFE H ) (7FFFFFFF H )

(80000001 H )

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • A negative value is specified for n. (Error code: 4100)
  • The range of the n-point devices starting from the device specified by , , or exceeds the specified device range. (Error code: 4101)

S1 S2 D

  • The range of the n-point devices starting from the device specified by overlaps with the

range of the n-point devices starting from the device specified by . (Exclude the case

that and specify the same device. (Error code: 4101)

S1 D

  • The range of the n-point devices starting from the device specified by overlaps with the

range of the n-point devices starting from the device specified by . (Error code: 4101)

(1) The following program adds the value data stored at R0 to R5 to the constant, and then

stores the operation result into D30 to D35, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S1 D diagram (page 264)
Fig. 361

b31 b0 600000 -800000 -123456 R3,R2 R5,R4

b31 b0 723456 -676544

R1,R0

D31,D30 +

0 D33,D32 D35,D34

(2) The following program subtracts the value data stored at D50 to D59 from the value data

stored at D100 to D109, and then stores the operation result into R100 to R109, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — R1,R0 diagram (page 264)
Fig. 362
Mitsubishi Electronics QCPU — R1,R0 diagram (page 264)
Fig. 363

[Operation] · [Operation]

Page 265 of the Mitsubishi Electronics QCPU user manual — D S D
Page 265 · click to enlarge
Page 265

$+(P)

6.2.15 Linking character strings ($+(P))

$+(P)

Process High performance Redundant Universal Basic

When two data are set ( + )

D S D

Mitsubishi Electronics QCPU — D S D diagram (page 265)
Fig. 364

: Data for linking or head number of the devices where the data for linking is stored (character string)

: Head number of the devices where the data to be linked is stored (character string)

(1) Links the character string data designated by after the character string data designated

Mitsubishi Electronics QCPU — D S D diagram (page 265)
Fig. 365

6.2 Arithmetic Operation Instructions 6.2.15 Linking character strings ($+(P))

by and stores the result into the area starting with the device number designated by .

The object of character string data is that character string data stored from device numbers

designated at and to that stored at "00H".

+1 43H (C) 00H +2 45H (E) 44H (D) 32H (2) b15 b8

+1 43H (C) +2 45H (E) 44H (D)

00H 36H (6) +3 +3 32H (2) +4 34H (4) 00H +5 36H (6)

31H (1) 33H (3) 35H (5)

(2) When character strings are linked, the "00H", which indicates the end of character string

data designated at , is ignored, and the character string designated at is appended to

Page 266 of the Mitsubishi Electronics QCPU user manual — S D
Page 266 · click to enlarge
Page 266

$+(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The entire character string linked from the device number designated by to the final device number of the relevant device cannot be stored. (Error code: 4101)
  • The storage device numbers for the character strings designated by and overlap. (Error code: 4101)

S D

  • The character string of and exceeds 16383 characters. (Error code: 4101)

S D

Program Example

(1) The following program links the character string stored from D10 to D12 to the character

string "ABCD" when X0 is ON.

[Ladder Mode] [List Mode]

D11 63H (c) 00H D12 65 H (e) 64 H (d) 62 H (b) b15 b8

Mitsubishi Electronics QCPU — S D diagram (page 266)
Fig. 366

63 H (c) D12 65 H (e) 64 H (d)

D13 42H (B) D14 44H (D) 00H

Step Instruction Device · [Operation]

Page 267 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 267 · click to enlarge
Page 267

$+(P)

When three data are set ( + )

S1 S2 D

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 267)
Fig. 367

: Data for linking or head number of the devices where the data for linking is stored (character string)

: Data to be linked or head number of the devices where the data to be linked is stored (character string)

: Head number of the devices where the linking result will be stored (character string)

(1) Links the character string data designated by after the character string data designated

by and stores the result into the area starting with the device number designated by .

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 267)
Fig. 368

2DH ( ) 35H (5) b15 b8

33H (3) 41H (A) 39H (9) 46H (F) b15 b8

41H (A) 31H (1) 2DH ( ) 00H 33H (3) 41H (A)

6.2 Arithmetic Operation Instructions 6.2.15 Linking character strings ($+(P))

(2) When character strings are linked, the "00H" which indicates the end of character string data

indicated by , is ignored, and the character string indicated by is appended to the last

Page 268 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 268 · click to enlarge
Page 268

$+(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The entire character string linked from the device number designated by to the final device number of the relevant device cannot be stored. (Error code: 4101)
  • The storage device numbers for the character strings designated by and overlap. (Error code: 4101)

S1 S2

  • The storage device numbers for the character strings designated by and overlap. (Error code: 4101)

S2 D

  • The character string of , and exceeds 16383 characters. (Error code: 4101)

S1 S2 D

Program Example

(1) The following program links the character string stored from D10 to D12 with the character

string "ABCD" when X0 is ON, and stores them in D100 onwards.

[Ladder Mode] [List Mode]

D11 63 H (c) 00H D12 65 H (e) 64H (d) 62 H (b) b15 b8

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 268)
Fig. 369

63 H (c) D102 65 H (e) 64 H (d)

D103 42H (B) D104 44H (D) 00H

Step Instruction Device · [Operation]

Page 269 of the Mitsubishi Electronics QCPU user manual — INC
Page 269 · click to enlarge
Page 269

INC(P),DEC(P)

6.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))

INC(P),DEC(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — INC(P),DEC(P) diagram (page 269)
Fig. 370

: Head number of devices for INC (+1)/DEC ( 1) operation (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

INC

Mitsubishi Electronics QCPU — INC diagram (page 269)
Fig. 371

(1) Adds 1 to the device designated by (16-bit data).

6.2 Arithmetic Operation Instructions 6.2.16 Incrementing and decrementing 16-bit BIN data (INC(P),DEC(P))

(2) When INC/INCP operation is executed for the device designated by , whose content is

32767, the value 32768 is stored at the device designated by .

(1) Subtracts 1 from the device designated by (16-bit data).

(2) When DEC/DECP operation is executed for the device designated by , whose content is

32768, the value 32767 is stored at the device designated by .

(1) There are no operation errors associated with the INC(P)/DEC(P) instruction.

Page 270 of the Mitsubishi Electronics QCPU user manual — INC(P),DEC(P)
Page 270 · click to enlarge
Page 270

INC(P),DEC(P)

Program Example

(1) The following program outputs the present value at the counter C0 to C20 to the area Y30 to

Y3F in BCD, every time X8 is turned ON. (When present value is less than 9999)

Mitsubishi Electronics QCPU — INC(P),DEC(P) diagram (page 270)
Fig. 372

Outputs the present value of C (D+Z1) to Y30 to Y3F in BCD.

Sets Z1 at "0" when Z1=21 or X7 (reset input) is ON.

(2) The following is a down counter program.

Mitsubishi Electronics QCPU — INC(P),DEC(P) diagram (page 270)
Fig. 373

In the state M38=OFF, decrement at D8 (D8 - 1) is executed when X8 goes from OFF to ON.

Show 6 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Ladder Mode] · [List Mode] · Step Instruction Device
Page 271 of the Mitsubishi Electronics QCPU user manual — DINC
Page 271 · click to enlarge
Page 271

DINC(P),DDEC(P)

6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))

DINC(P),DDEC(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DINC(P),DDEC(P) diagram (page 271)
Fig. 374

: Head number of devices for DINC(+1) or DDEC(-1) operation (BIN 32 bits)

U \G Zn Constants Other Bit Word Bit Word

DINC

Mitsubishi Electronics QCPU — DINC diagram (page 271)
Fig. 375

(1) Adds 1 to the device designated by (32-bit data).

6.2 Arithmetic Operation Instructions 6.2.17 Incrementing and decrementing 32-bit BIN data (DINC(P),DDEC(P))

(2) When DINC/DINCP operation is executed for the device designated by , whose content is

2147483647, the value 2147483648 is stored at the device designated by .

(1) Subtracts 1 from the device designated by (32-bit data).

(2) When DDEC/DDECP operation is executed for the device designated by , whose content

is 0, the value 1 is stored at the device designated by .

(1) There are no operation errors associated with the DINC(P) or DDEC(P).

Page 272 of the Mitsubishi Electronics QCPU user manual — DINC(P),DDEC(P)
Page 272 · click to enlarge
Page 272

DINC(P),DDEC(P)

Program Example

(1) The following program adds 1 to the data at D0 and D1 when X0 is ON.

[Ladder Mode] [List Mode]

(2) The following program adds 1 to the data set at X10 to X27 when X0 goes ON, and stores

the result at D3 and D4.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DINC(P),DDEC(P) diagram (page 272)
Fig. 376

(3) The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.

[Ladder Mode] [List Mode]

(4) The following program subtracts 1 from the data set at X10 to X27 when X0 goes ON, and

stores the result at D3 and D4.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DINC(P),DDEC(P) diagram (page 272)
Fig. 377

Step Instruction Device · Step Instruction Device

Page 273 of the Mitsubishi Electronics QCPU user manual — D D
Page 273 · click to enlarge
Page 273

BCD(P),DBCD(P)

6.3 Data conversion instructions

6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))

BCD(P),DBCD(P) BCD(P), DBCD(P)

Basic Process High performance Redundant Universal

indicates an instruction symbol of BCD/DBCD.

BCD, DBCD

S D

BCDP, DBCDP

P

S D

: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)

: Head number of the devices where BCD data will be stored (BCD 4/8 digits)

U \G Zn Constants

K, H Other Bit Word Bit Word

R, ZR J \

Function

6.3 Data conversion instructions 6.3.1 Conversion from BIN data to 4-digit and 8-digit BCD (BCD(P),DBCD(P))

BCD

Converts BIN data (0 to 9999) at the device designated by to BCD data, and stores it at the

device designated by .

1 1 BIN 9999

Must always be "0".

1 1 BCD 9999

Thousands digits Hundreds digits Tens digits Ones digits

DBCD

Converts BIN data (0 to 99999999) at the device designated by to BCD data, and stores it at

the device designated by .

S S

+1 (Upper 16 bits) (Lower 16 bits)

231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 BIN 99999999

0 1 0 1 0 1 0 1 0 1

Must always be "0" (upper 5 digits).

1 2 4 8

1 2 4 8

1 2 4 8

1 2 4 8

1 2 4 8

1 2 4 8

1 2 4 8

1 2 4 8

0 BCD 99999999

1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1

D D

+1 (Upper 4 digits)

Show 17 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data · 16384 0 · BCD conversion · BCD conversion · Ten millions digits · Millions digits · Hundred thousands digits · Ten thousands digits · Thousands digits · Hundreds digits · Tens digits · Ones digits · (Lower 4 digits)
Page 274 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 274 · click to enlarge
Page 274

BCD(P), DBCD(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data of is other than 0 to 9999 at BCD instruction. (Error code: 4100)
  • The data of or +1 is other than 0 to 99999999 at DBCD instruction.

S S

(Error code4100)

Program Example

(1) The following program outputs the present value of C4 from Y20 to Y2F to the BCD display

device.

Mitsubishi Electronics QCPU — Program Example diagram (page 274)
Fig. 378 · Program Example

0 1 0 1 0 1 1 0 0 1 0 0 0

[Ladder Mode] [List Mode]

(2) The following program outputs 32-bit data from D0 to D1 to Y40 to Y67.

Mitsubishi Electronics QCPU — Program Example diagram (page 274)
Fig. 379 · Program Example

Y67 to Y64 Y63 to Y60 Y5F to Y5C Y5B to Y58 Y57 to Y54 Y53 to Y50 Y4F to Y4C Y4B to Y48 Y47 to Y44 Y43 to Y40

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 274)
Fig. 380 · Program Example

Step Instruction Device

Page 275 of the Mitsubishi Electronics QCPU user manual — BIN
Page 275 · click to enlarge
Page 275

BIN(P),DBIN(P)

6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))

BIN(P),DBIN(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BIN(P),DBIN(P) diagram (page 275)
Fig. 381

: BCD data or head number of the devices where the BCD data is stored (BCD 4/8 digits)

: Head number of the devices where BIN data will be stored (BIN 16/32 bits)

BIN

Mitsubishi Electronics QCPU — BIN diagram (page 275)
Fig. 382

6.3 Data conversion instructions 6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))

Converts BCD data (0 to 9999) at device designated by to BIN data, and stores at the device

Converts BCD data (0 to 99999999) at device designated by to BIN data, and stores at the

1 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1

231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

0 1 0 1 0 1 0 1 0 1

Page 276 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 276 · click to enlarge
Page 276

BIN(P),DBIN(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • When values other than 0 to 9 are designated to any digits of
(Error code4100)

When the QCPU is used, the error above can be suppressed by turning ON SM722. However, the instruction is not executed regardless of whether SM722 is turned ON or OFF if the designated value is out of the available range. For the BINP/DBINP instruction, the next operation will not be performed until the command (execution condition) is turned from OFF to ON regardless of the presence/absence of an error.

Program Example

(1) The following program converts the BCD data at X10 to X1B to BIN when X8 is ON, and stores it at D8.

Mitsubishi Electronics QCPU — Program Example diagram (page 276)
Fig. 383 · Program Example

[Ladder Mode] [List Mode]

Step Instruction Device

Page 277 of the Mitsubishi Electronics QCPU user manual — BIN(P),DBIN(P)
Page 277 · click to enlarge
Page 277

BIN(P),DBIN(P)

(2) The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores it at D0 and D1.

(Addition of the BIN data converted from BCD at X20 to X37 and the BIN data converted from BCD at X10 to X1F)

Mitsubishi Electronics QCPU — BIN(P),DBIN(P) diagram (page 277)
Fig. 384

X13 to X10 X17 to X14 X1B to X18 X1F to X1C X23 to X20 X27 to X24 X2B to X28 X2F to X2C X33 to X30 X37 to X34

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BIN(P),DBIN(P) diagram (page 277)
Fig. 385

If the data set at X10 to X37 is a BCD value which exceeds 2147483647, the value at D0 and D1 will be a negative value, because it exceeds the range of numerical values that can be handled by a 32-bit device.

Mitsubishi Electronics QCPU — BIN(P),DBIN(P) diagram (page 277)
Fig. 386

6.3 Data conversion instructions 6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))

Page 278 of the Mitsubishi Electronics QCPU user manual — S S
Page 278 · click to enlarge
Page 278

FLT(P),DFLT(P)

6.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))

FLT(P),DFLT(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — FLT(P),DFLT(P) diagram (page 278)
Fig. 387

: Integer data to be converted to 32-bit floating decimal point data or head number of the devices where the

integer data is stored (BIN 16/32 bits)

: Head number of the devices where the converted 32-bit floating decimal point data will be stored

Mitsubishi Electronics QCPU — FLT(P),DFLT(P) diagram (page 278)
Fig. 388

*1:Available only in multiple Universal model QCPU

Function

FLT

(1) Converts 16-bit BIN data designated by to 32-bit floating decimal point type real number,

Mitsubishi Electronics QCPU — FLT diagram (page 278)
Fig. 389

(2) BIN values between 32768 to 32767 can be designated by .

DFLT

(1) Converts 32-bit BIN data designated by to 32-bit floating decimal point type real number,

Mitsubishi Electronics QCPU — DFLT diagram (page 278)
Fig. 390

(2) BIN values between 2147483648 to 2147483647 can be designated by +1 and .

S S

(real number)

Page 279 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 279 · click to enlarge
Page 279

FLT(P),DFLT(P)

(3) Due to the fact that 32-bit floating decimal point type real numbers are processed by simple

32-bit processing, the number of significant digits is 24 bits if the display is binary and approximately 7 digits if the display is decimal.

For this reason, if the integer exceeds the range of 16777216 to 16777215 (24-bit BIN value), errors can be generated in the conversion value. As for the conversion result, the 25th bit from the upper bit of the integer is always filled with 1 and 26th bit and later bits are truncated.

Mitsubishi Electronics QCPU — FLT(P),DFLT(P) diagram (page 279)
Fig. 391

b31 b24 b23 b16 222030030 1 1 0 1 0 0 1 1 1 0 1 1

b15 b8 b7 b0 1 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 Result of operation is 222030032. Truncation Always filled with 1

372588919 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 Result of operation is 372588928. Truncation Always filled with 1

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The result exceeds the following range (The overflow occurs.)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

Mitsubishi Electronics QCPU — Operation Error diagram (page 279)
Fig. 392 · Operation Error

6.3 Data conversion instructions 6.3.3 Conversion from BIN 16 and 32-bit data to floating decimal point (Single precision) (FLT(P),DFLT(P))

Page 280 of the Mitsubishi Electronics QCPU user manual — FLT(P),DFLT(P)
Page 280 · click to enlarge
Page 280

FLT(P),DFLT(P)

Program Example

(1) The following program converts the BIN 16-bit data at D20 to a 32-bit floating decimal point

type real number and stores the result at D0 and D1.

[Ladder Mode] [List Mode]

32-bit floating-point real number

(2) The following program converts the BIN 32-bit data at D20 and D21 to a 32-bit floating

decimal point type real number, and stores the result at D0 and D1.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FLT(P),DFLT(P) diagram (page 280)
Fig. 393

Integer conversion An error is generated in operation results since the number of significant digits is "7". BIN value

Show 6 more labels / short text on this page
Step Instruction Device · [Operation] · Integer conversion · BIN value · Step Instruction Device · [Operation]
Page 281 of the Mitsubishi Electronics QCPU user manual — FLTD(P),DFLTD(P)
Page 281 · click to enlarge
Page 281

FLTD(P),DFLTD(P)

6.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))

FLTD(P),DFLTD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — FLTD(P),DFLTD(P) diagram (page 281)
Fig. 394

: Integer data to be converted to 64-bit floating decimal point data or head number of the devices where the

integer data is stored (BIN 16/32 bits)

: Head number of the devices where the converted 64-bit floating decimal point data will be stored

Mitsubishi Electronics QCPU — FLTD(P),DFLTD(P) diagram (page 281)
Fig. 395

6.3 Data conversion instructions 6.3.4 Conversion from BIN 16 and 32-bit data to floating decimal point (Double precision) (FLTD(P),DFLTD(P))

(1) Converts 16-bit BIN data designated by to 64-bit floating decimal point type real number,

(2) BIN values between 32768 to 32767 can be designated by .

(1) Converts 32-bit BIN data designated by to 64-bit floating decimal point type real number,

(2) BIN values between 2147483648 to 2147483647 can be designated by +1 and .

(real number)

Page 282 of the Mitsubishi Electronics QCPU user manual — D0 D3 D2 D21
Page 282 · click to enlarge
Page 282

FLTD(P),DFLTD(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Program Example

(1) The following program converts the BIN 16-bit data at D20 to a 64-bit floating decimal point

type real number and stores the result at D0 to D3.

[Ladder Mode] [List Mode]

Conversion to real number

D0 D3 D2

64-bit floating-point real number

(2) The following program converts the BIN 32-bit data at D20 and D21 to a 64-bit floating

decimal point type real number, and stores the result at D0 to D3.

[Ladder Mode] [List Mode]

D0 D3 D2 D21

Conversion to real number

64-bit floating-point real number BIN value

Show 7 more labels / short text on this page
Step Instruction Device · [Operation] · BIN value · Step Instruction Device · [Operation] · 16543521 · 16543521
Page 283 of the Mitsubishi Electronics QCPU user manual — +1 S +1 D S D
Page 283 · click to enlarge
Page 283

INT(P),DINT(P)

6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))

INT(P),DINT(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — INT(P),DINT(P) diagram (page 283)
Fig. 396

: 32-bit floating decimal point data to be converted to BIN value or head number of the devices where the

floating decimal point data is stored (real number)

Mitsubishi Electronics QCPU — INT(P),DINT(P) diagram (page 283)
Fig. 397

: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)

*1:Available only in multiple Universal model QCPU

Function

6.3 Data conversion instructions 6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))

INT

(1) Converts the 32-bit floating decimal point real number designated at into BIN 16-bit data and stores it at the device number designated at .

+1 S S D

32-bit floating-point real number

(2) The range of 32-bit floating decimal point type real numbers that can be designated at +1 or is from 32768 to 32767.

(3) Stores integer values stored at as BIN 16-bit values.

(4) After conversion, the first digit after the decimal point of the real number is rounded off.

DINT

(1) Converts 32-bit floating decimal point type real number designated by to BIN 32-bit data, and stores the result at the device number designated by .

+1 S +1 D S D

Lower 16 bits Upper 16 bits

32-bit floating-point real number

(2) The range of 32-bit floating decimal point type real numbers that can be designated at +1 or is from 2147483648 to 2147483647.

BIN16-bit · BIN 32 bits

Page 284 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 284 · click to enlarge
Page 284

INT(P),DINT(P)

(3) The integer value stored at +1 and is stored as BIN 32 bits.

D D

(4) After conversion, the first digit after the decimal point of the real number is rounded off.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only):

0, 2-126 | Contents of designated device | < 2128 (Error code: 4140)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)
  • The 32-bit floating decimal point type data designated by when the INT instruction was

used was outside the 31768 to 32767 range. (Error code: 4100)

  • The 32-bit floating decimal point type data designated by when the DINT instruction

was used was outside the 2147483648 to 2147483647 range. (Error code: 4100)

Program Example

(1) The following program converts the 32-bit floating decimal point type real number at D20

and D21 to BIN 16-bit data, and stores the result at D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 284)
Fig. 398 · Program Example

Integer conversion An operation error occurs since "setting data < -32768." 32-bit floating-point real number

Step Instruction Device · [Operation]

Page 285 of the Mitsubishi Electronics QCPU user manual — D21 2147483649.22 D20
Page 285 · click to enlarge
Page 285

INT(P),DINT(P)

(2) The following program converts the 32-bit floating decimal point type real number at D20

and D21 to BIN 32-bit data and stores the result at D0 and D1.

[Ladder Mode] [List Mode]

-574968.321

32-bit floating-point real number

D21 2147483649.22 D20

An operation error occurs since "setting data > 2147483647." 32-bit floating-point real number

6.3 Data conversion instructions 6.3.5 Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision) (INT(P),DINT(P))

Show 6 more labels / short text on this page
Step Instruction Device · [Operation] · Integer conversion · -574968 · BIN value · Integer conversion
Page 286 of the Mitsubishi Electronics QCPU user manual — DINTD
Page 286 · click to enlarge
Page 286

INTD(P),DINTD(P)

6.3.6 Conversion from floating decimal point data to BIN16- and 32-bit data (Double precision) (INTD(P),DINTD(P))

INTD(P),DINTD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — INTD(P),DINTD(P) diagram (page 286)
Fig. 399

: 64-bit floating decimal point data to be converted to BIN value or head number of the devices where the

floating decimal point data is stored (real number)

: Head number of the devices where the converted BIN value will be stored (BIN 16/32 bits)

Mitsubishi Electronics QCPU — INTD(P),DINTD(P) diagram (page 286)
Fig. 400

INTD

(1) Converts the 64-bit floating decimal point real number designated at into BIN 16-bit data

and stores it at the device number designated at .

S +2 S S +1 S

64-bit floating-point real number

(2) The range of 64-bit floating decimal point type real numbers that can be designated at

S

+3, +2, +1 or is from 32768 to 32767.

(3) Stores integer values stored at as BIN 16-bit values.

(4) The converted data is the value rounded 64-bit floating-point real number to the first digit

after the decimal point.

DINTD

(1) Converts 64-bit floating decimal point type real number designated by to BIN 32-bit data,

Mitsubishi Electronics QCPU — DINTD diagram (page 286)
Fig. 401

and stores the result at the device number designated by .

BIN 16 bit

Page 287 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 287 · click to enlarge
Page 287

INTD(P),DINTD(P)

(2) The range of 64-bit floating decimal point type real numbers that can be designated at

+3, +2, +1 or is from 2147483648 to 2147483647.

S

(3) The integer value stored at +1 and is stored as BIN 32 bits.

D D

(4) The converted data is the value rounded 64-bit floating-point real number to the first digit

after the decimal point.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0, 2-1022 | value of specified device | 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The 64-bit floating decimal point type data designated by when the INTD instruction

was used was outside the 31768 to 32767 range. (Error code: 4100)

  • The 64-bit floating decimal point type data designated by when the DINTD instruction

was used was outside the 2147483648 to 2147483647 range. (Error code: 4100)

Program Example

(1) The following program converts the 64-bit floating decimal point type real number at D20 to

D23 with BIN 16-bit data, and stores the result at D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 287)
Fig. 402 · Program Example

6.3 Data conversion instructions 6.3.6 Conversion from floating decimal point data to BIN16- and 32-bit data (Double precision) (INTD(P),DINTD(P))

An operation erroe occurs because the specified data is larger than -32768.

(2) The following program converts the 64-bit floating decimal point type real number at D20 to

D23 with BIN 32-bit data and stores the result at D0 and D1.

An operation erroe occurs because the specified data is larger than 2147483647. 64-bit floating-point real number

Step Instruction Device

Page 288 of the Mitsubishi Electronics QCPU user manual — FB2E H FFFFFB2E H D100
Page 288 · click to enlarge
Page 288

DBL(P)

6.3.7 Conversion from BIN 16-bit to BIN 32-bit data (DBL(P))

DBL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DBL(P) diagram (page 288)
Fig. 403

: BIN 16-bit data or head number of the devices where the BIN 16-bit data is stored (BIN 16 bits)

: Head number of the devices where the converted BIN 32-bit data will be stored (BIN 32 bits)

Converts BIN 16-bit data at device designated by to BIN 32-bit data with sign, and stores the

Mitsubishi Electronics QCPU — DBL(P) diagram (page 288)
Fig. 404

Lower 16 bits Upper 16 bits BIN 16-bit data

(1) There are no errors associated with the DBL(P) instruction.

Program Example

(1) The following program converts the BIN 16-bit data stored at D100 to BIN 32-bit data when

X20 is ON, and stores at R100 and R101.

[Ladder Mode] [List Mode]

FB2E H FFFFFB2E H D100

R101 R100

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · ( 1234) · ( 1234)
Page 289 of the Mitsubishi Electronics QCPU user manual — WORD(P)
Page 289 · click to enlarge
Page 289

WORD(P)

6.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))

WORD(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — WORD(P) diagram (page 289)
Fig. 405

: BIN 32-bit data or head number of the devices where the BIN 32-bit data is stored (BIN 32 bits)

: Head number of the devices where the converted BIN 16-bit data will be stored (BIN 16 bits)

Converts BIN 32-bit data at device designated by to BIN 16-bit data with sign, and stores the result at a device designated by .

Devices can be designated in the range from -32768 to 32767.

Mitsubishi Electronics QCPU — WORD(P) diagram (page 289)
Fig. 406

6.3 Data conversion instructions 6.3.8 Conversion from BIN 32-bit to BIN 16-bit data (WORD(P))

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

  • The contents of the data designated by +1 and are outside the range of 32768 to 32767. (Error code: 4100)

(1) The following program converts the BIN 32-bit data at R100 and R101 to BIN 16-bit data

when X20 is ON, and stores it at D100. [Ladder Mode] [List Mode]

Page 290 of the Mitsubishi Electronics QCPU user manual — DGRY
Page 290 · click to enlarge
Page 290

GRY(P),DGRY(P)

6.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))

GRY(P),DGRY(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — GRY(P),DGRY(P) diagram (page 290)
Fig. 407

: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)

: Head number of the devices where the converted Gray code will be stored (BIN 16/32 bits)

GRY

Converts BIN 16-bit data at the device designated by to Gray code, and stores result at

Mitsubishi Electronics QCPU — GRY diagram (page 290)
Fig. 408

0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0 b0

0 Gray code 1234 0 1 1 0 1 0 1 1 1 0 1 1 b0

DGRY

Converts BIN 32-bit data at the device designated by to Gray code, and stores result at

Mitsubishi Electronics QCPU — DGRY diagram (page 290)
Fig. 409

0 BIN 305419896 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0

0 Gray code 305419896 0 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 0 0

Page 291 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 291 · click to enlarge
Page 291

GRY(P),DGRY(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The data at is a negative number. (Error code: 4100)

Program Example

(1) The following program converts the BIN data at D100 to Gray code when X10 is ON, and

stores result at D200.

[Ladder Mode] [List Mode]

(2) The following program converts the BIN data at D10 and D11 to Gray code when X1C is ON,

and stores it at D100 and D101.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 291)
Fig. 410 · Program Example

6.3 Data conversion instructions 6.3.9 Conversion from BIN 16 and 32-bit data to Gray code (GRY(P),DGRY(P))

Step Instruction Device · Step Instruction Device

Page 292 of the Mitsubishi Electronics QCPU user manual — DGBIN
Page 292 · click to enlarge
Page 292

GBIN(P),DGBIN(P)

6.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))

GBIN(P),DGBIN(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — GBIN(P),DGBIN(P) diagram (page 292)
Fig. 411

: Gray code data or head number of the devices where the Gray code data is stored (BIN 16/32 bits)

: Head number of the devices where the converted BIN data will be stored (BIN 16/32 bits)

GBIN

Converts Gray code data at device designated by to BIN 16-bit data and stores at device

Mitsubishi Electronics QCPU — GBIN diagram (page 292)
Fig. 412

0 Gray code 1234 0 1 1 0 1 0 1 1 1 0 1 1 b0

0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0 b15 b0

DGBIN

Converts Gray code data at device designated by to BIN 32-bit data and stores at device

Mitsubishi Electronics QCPU — DGBIN diagram (page 292)
Fig. 413

0 Gray code 305419896 0 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 0 0

0 BIN 305419896 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0

Page 293 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 293 · click to enlarge
Page 293

GBIN(P),DGBIN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Data at when the GBIN instruction was issued is outside the 0 to 32767 range.
(Error code4100)
  • Data at when the DGBIN instruction was issued is outside the 0 to 2147483647 range.
(Error code4100)

Program Example

(1) The following program converts the Gray code data at D100 when X10 is ON to BIN data,

and stores the result at D200.

[Ladder Mode] [List Mode]

(2) The following program converts the Gray code data at D10 and D11 to BIN data when X1C

is ON, and stores the result at D0 and D1.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 293)
Fig. 414 · Program Example

6.3 Data conversion instructions 6.3.10 Conversion of Gray code to BIN 16 and 32-bit data (GBIN(P),DGBIN(P))

Step Instruction Device · Step Instruction Device

Page 294 of the Mitsubishi Electronics QCPU user manual — NEG
Page 294 · click to enlarge
Page 294

NEG(P),DNEG(P)

6.3.11 Complement of 2 of BIN 16and 32-bit data (sign reversal) (NEG(P),DNEG(P))

NEG(P),DNEG(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — NEG(P),DNEG(P) diagram (page 294)
Fig. 415

: Head number of the devices where the data for which complement of 2 is performed is stored

Mitsubishi Electronics QCPU — NEG(P),DNEG(P) diagram (page 294)
Fig. 416

U \G Zn Constants Other Bit Word Bit Word

NEG

(1) Reverses the sign of the 16-bit device designated by and stores at the device designated

Mitsubishi Electronics QCPU — NEG diagram (page 294)
Fig. 417

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 b0

0

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

(2) Used when reversing positive and negative signs.

(BIN 16/32 bits)

Page 295 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 295 · click to enlarge
Page 295

NEG(P),DNEG(P)

DNEG

(1) Reverses the sign of the 32-bit device designated by and stores at the device designated

Mitsubishi Electronics QCPU — NEG(P),DNEG(P) diagram (page 295)
Fig. 418

1 Before execution 1 0 1 0 0 1 0 0 b0

0

1 0 1 0 0 1 0 0

After execution 0 1 0

(2) Used when reversing positive and negative signs.

Operation Error

(1) There are no operation errors associated with the NEG(P) or DNEG(P) instruction.

Program Example

(1) The following program calculates a total for the data at D10 through D20 when XA goes ON,

and seeks an absolute value if the result is negative.

Mitsubishi Electronics QCPU — Program Example diagram (page 295)
Fig. 419 · Program Example

6.3 Data conversion instructions 6.3.11 Complement of 2 of BIN 16- and 32-bit data (sign reversal) (NEG(P),DNEG(P))

Calculates the absolute value (complement of 2) when M3 is ON.

[Ladder Mode]

Page 296 of the Mitsubishi Electronics QCPU user manual — D100 D101
Page 296 · click to enlarge
Page 296

ENEG(P)

6.3.12 Floating-point sign invertion (Single precision) (ENEG(P))

ENEG(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — ENEG(P) diagram (page 296)
Fig. 420

: Head number of the devices where the 32-bit floating decimal point data whose sign is to be reversed is

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

–– –– *1 ––

*1:Available only in multiple Universal model QCPU

Function

(1) Reverses the sign of the 32-bit floating decimal point type real number data designated by

D D

, and stores at the device designated by .

(2) Used when reversing positive and negative signs.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): 0, 2-126 | Contents of designated device | < 2128 (Error code: 4140)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program inverts the sign of the 32-bit floating decimal point type real number

data at D100 and D101 when X20 goes ON, and stores result at D100 and D101.

[Ladder Mode] [List Mode]

D100 D101

Show 6 more labels / short text on this page
stored (real number) · Setting · Internal Devices · Data · Step Instruction Device · [Operation]
Page 297 of the Mitsubishi Electronics QCPU user manual — D D
Page 297 · click to enlarge
Page 297

EDNEG(P)

6.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))

EDNEG(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — EDNEG(P) diagram (page 297)
Fig. 421

: Head number of the devices where the 64-bit floating decimal point data whose sign is to be reversed is

Mitsubishi Electronics QCPU — EDNEG(P) diagram (page 297)
Fig. 422

U \G Zn Constants Other Bit Word Bit Word

(1) Reverses the sign of the 64-bit floating decimal point type real number data designated by

, and stores at the device designated by .

D D

Mitsubishi Electronics QCPU — D D diagram (page 297)
Fig. 423

6.3 Data conversion instructions 6.3.13 Floating-point sign invertion (Double precision) (EDNEG(P))

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The value of the specified device is not in the following range: (Error code: 4140)

0, 2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)

(1) The following program inverts the sign of the 64-bit floating decimal point type real number

data at D100 to D103 when X20 goes ON, and stores result at D100 to D103.

stored (real number)

Page 298 of the Mitsubishi Electronics QCPU user manual — BKBCD(P)
Page 298 · click to enlarge
Page 298

BKBCD(P)

6.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))

BKBCD(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKBCD(P) diagram (page 298)
Fig. 424

: Head number of the devices where BIN data is stored (BIN 16 bits)

: Head number of the devices where the converted BCD data will be stored (BCD 4 digits)

nNumber of variable data blocks (BIN 16 bits)
Mitsubishi Electronics QCPU — BKBCD(P) diagram (page 298)
Fig. 425

(1) Converts BIN data (0 to 9999) n points from device designated by to BCD, and stores

Mitsubishi Electronics QCPU — BKBCD(P) diagram (page 298)
Fig. 426

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1

0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0

0 BIN 5678 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0

0 BIN 1545 0 1 1 0 1 0 0 1

0 BIN 4321 0 0 1 0 1 1 1 0 1

0 BIN 5555 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 +(n 1)

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1

0 BCD 1234 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0

0 BCD 5678 1 0 1 0 1 1 0 0 1 0 0 0

0 BCD 1545 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1

0 BCD 4321 1 0 1 1 0 0 1 0 1

0 BCD 5555 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

Page 299 of the Mitsubishi Electronics QCPU user manual — S D
Page 299 · click to enlarge
Page 299

BKBCD(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range of the device n points from a device designated by , or exceeds the relevant device. (Error code: 4101)

S D

  • The data n points from the device designated by is outside the 0 to 9999 range.
(Error code4100)
  • The and devices overlap. (Error code: 4101)

S D

Program Example

(1) The following program converts, when X20 is turned ON, the BIN data stored at D100 to

D102 to BCD and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S D diagram (page 299)
Fig. 427

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1

0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0

0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0

0 1 1 0 0 1 0 0 0 1 0 1 0

6.3 Data conversion instructions 6.3.14 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD(P))

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1

0 1 0 1 0 1 0 1 1 0 0 1 0

0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0

0 0 1 1 0 0 1 0 1 0

Step Instruction Device · [Operation]

Page 300 of the Mitsubishi Electronics QCPU user manual — BKBIN(P)
Page 300 · click to enlarge
Page 300

BKBIN(P)

6.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))

BKBIN(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKBIN(P) diagram (page 300)
Fig. 428

: Head number of the devices where BCD data is stored (BCD 4 digits)

: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)

nNumber of variable data blocks (BIN 16 bits)
Mitsubishi Electronics QCPU — BKBIN(P) diagram (page 300)
Fig. 429

(1) Converts BCD data (0 to 9999) n points from device designated by to BIN, and stores

Mitsubishi Electronics QCPU — BKBIN(P) diagram (page 300)
Fig. 430

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1

0 BCD 1234 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0

0 BCD 5678 1 0 1 0 1 1 0 0 1 0 0 0

0 BCD 1545 0 0 1 0 1 0 1 0 1 0 0 0 1 0 1

0 BCD 4321 1 0 1 1 0 0 1 0 1

0 BCD 5555 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1

0 BIN 1234 0 1 0 0 1 1 0 1 0 0 1 0

0 BIN 5678 0 0 1 0 1 1 0 0 0 1 0 1 1 1 0

0 BIN 1545 0 1 1 0 1 0 0 1

0 BIN 4321 0 0 1 0 1 1 1 0 1

0 BIN 5555 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 +(n 1)

Page 301 of the Mitsubishi Electronics QCPU user manual — S D
Page 301 · click to enlarge
Page 301

BKBIN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , , or device exceeds the range of that device.

S D

(Error code4101)
  • The data n points at the device is outside the 0 to 9999 range.
(Error code4100)
  • The and devices overlap. (Error code: 4101)

S D

Program Example

(1) The following program converts, when X20 is turned ON, the BCD data stored at D100 to

D102 to BIN and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S D diagram (page 301)
Fig. 431

2000 1000 800 400 200 100 80 40 20 10 8 4 2 1

1 1 0 1 0

0 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0

1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1

6.3 Data conversion instructions 6.3.15 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN(P))

8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1

0 0 0 1 0 0 1 0 0 0

0 0 0 1 1 1 0 1 0 0 1 1

0 0 1 0 0 1 1 1 0 1 1 1

Step Instruction Device · [Operation]

Page 302 of the Mitsubishi Electronics QCPU user manual — ECON(P)
Page 302 · click to enlarge
Page 302

ECON(P)

6.3.16 Single precision to Double precision conversion (ECON(P))

ECON(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ECON(P) diagram (page 302)
Fig. 432

: Conversion source data, or head number of the device where conversion source data is stored

(Real number (single precision))

Mitsubishi Electronics QCPU — ECON(P) diagram (page 302)
Fig. 433

: Head number of the device where the converted data is stored (Real number (double precision))

Converts 32-bit floating-point real number specified for into 64-bit floating-point real

Mitsubishi Electronics QCPU — ECON(P) diagram (page 302)
Fig. 434

number, and stores the conversion result to the device specified for .

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-126 | value of specified device | 2128

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (Error code: 4140)
Page 303 of the Mitsubishi Electronics QCPU user manual — ECON(P)
Page 303 · click to enlarge
Page 303

ECON(P)

Program Example

(1) The program which converts 32-bit floating-point real number of the devices, D10 to D11,

into 64-bit floating-point real number when X0 turns ON, and outputs the conversion result to the devices, D0 to D3.

[Ladder Mode] [List Mode]

6.3 Data conversion instructions 6.3.16 Single precision to Double precision conversion (ECON(P))

Step Instruction Device

Page 304 of the Mitsubishi Electronics QCPU user manual — EDCON(P)
Page 304 · click to enlarge
Page 304

EDCON(P)

6.3.17 Double precision to Single precision conversion (EDCON(P))

EDCON(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — EDCON(P) diagram (page 304)
Fig. 435

: Conversion source data, or head number of the device where conversion source data is stored

(Real number (double precision))

Mitsubishi Electronics QCPU — EDCON(P) diagram (page 304)
Fig. 436

: Head number of the device where the converted data is stored (Real number (single precision))

Converts 64-bit floating-point real number specified for into 32-bit floating-point real

Mitsubishi Electronics QCPU — EDCON(P) diagram (page 304)
Fig. 437

number, and stores the conversion result to the device specified for .

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Conversion results in an overflow):

2128 | Conversion result | (Error code: 4141)

Page 305 of the Mitsubishi Electronics QCPU user manual — EDCON(P)
Page 305 · click to enlarge
Page 305

EDCON(P)

Program Example

(1) The program which converts 64-bit floating-point real number of the devices, D10 to D13,

into 32-bit floating-point real number when X0 turns ON, and outputs the conversion result to the devices, D0 to D1.

[Ladder Mode] [List Mode]

6.3 Data conversion instructions 6.3.17 Double precision to Single precision conversion (EDCON(P))

Step Instruction Device

Page 306 of the Mitsubishi Electronics QCPU user manual — DMOV
Page 306 · click to enlarge
Page 306

MOV(P),DMOV(P)

6.4 Data Transfer Instructions

6.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))

MOV(P),DMOV(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — MOV(P),DMOV(P) diagram (page 306)
Fig. 438

: Data to be transferred or the number of the device where the data to be transferred is stored (BIN 16/32 bits)

: Number of the device where the data will be transferred (BIN 16/32 bits)

MOV

(1) Transfers the 16-bit data from the device designated by to the device designated by .

Mitsubishi Electronics QCPU — MOV diagram (page 306)
Fig. 439

S D

1 Before transfer 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0

1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0 After transfer

DMOV

Mitsubishi Electronics QCPU — DMOV diagram (page 306)
Fig. 440

(1) Transfers 32-bit data at the device designated by to the device designated by .

1 Before transfer 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b15 b0 b0 b15

After transfer 1 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b15 b0 b0 b15

(1) There are no operation errors associated with the MOV(P) or DMOV(P) instruction.

Page 307 of the Mitsubishi Electronics QCPU user manual — MOV(P),DMOV(P)
Page 307 · click to enlarge
Page 307

MOV(P),DMOV(P)

Program Example

(1) The following program stores input data from X0 to XB at D8.

[Ladder Mode] [List Mode]

(2) The following program stores the constant K155 at D8 when X8 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — MOV(P),DMOV(P) diagram (page 307)
Fig. 441

D8 1 0 0 1 0 1 0 1 1 b15 b8b7 b0

(3) The following program stores the data from D0 and D1 at D7 and D8.

[Ladder Mode] [List Mode]

(4) The following program stores the data from X0 to X1F at D0 and D1.

Mitsubishi Electronics QCPU — MOV(P),DMOV(P) diagram (page 307)
Fig. 442

6.4 Data Transfer Instructions 6.4.1 16-bit and 32-bit data transfers (MOV(P),DMOV(P))

Step Instruction Device · Step Instruction Device

Page 308 of the Mitsubishi Electronics QCPU user manual — Function
Page 308 · click to enlarge
Page 308

EMOV(P)

6.4.2 Floating-point data transfer (Single precision) (EMOV(P))

EMOV(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — EMOV(P) diagram (page 308)
Fig. 443

: Data to be transferred or number of the device to which the data to be transferred is stored (real number)

: The number of the device to which the transferred data will be stored (real number)

*1:Available only in multiple Universal model QCPU

Function

Transfers 32-bit floating decimal point type real number data being stored at the device

Mitsubishi Electronics QCPU — Function diagram (page 308)
Fig. 444 · Function

(1) There are no operation errors associated with the EMOV(P) instruction.

Page 309 of the Mitsubishi Electronics QCPU user manual — D11 D10
Page 309 · click to enlarge
Page 309

EMOV(P)

Program Example

(1) The following program stores the real numbers at D10 and D11 at D0 and D1.

[Ladder Mode] [List Mode]

36.475 D10 D1

(2) The following program stores the real number 1.23 at D10 and D11 when X8 is ON.

[Ladder Mode] [List Mode]

D11 D10

1.23 1.23

Mitsubishi Electronics QCPU — D11 D10 diagram (page 309)
Fig. 445

6.4 Data Transfer Instructions 6.4.2 Floating-point data transfer (Single precision) (EMOV(P))

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 310 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 310 · click to enlarge
Page 310

EDMOV(P)

6.4.3 Floating-point data transfer (Double precision) (EDMOV(P))

EDMOV(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — EDMOV(P) diagram (page 310)
Fig. 446

: Data to be transferred or number of the device to which the data to be transferred is stored (real number)

: The number of the device to which the transferred data will be stored (real number)

Transfers 64-bit floating decimal point type real number data being stored at the device

Mitsubishi Electronics QCPU — EDMOV(P) diagram (page 310)
Fig. 447

Operation Error

(1) There are no operation errors associated with the EDMOV(P) instruction.

Page 311 of the Mitsubishi Electronics QCPU user manual — D11 D10 D13 D12
Page 311 · click to enlarge
Page 311

EDMOV(P)

Program Example

(1) The following program stores the 64-bit floating decimal point type real number at D10 to

D13 at D0 to D3.

[Ladder Mode] [List Mode]

D10 D13 D12 D1

D0 D3 D2

(2) The following program stores the real number 1.23 at D10 to D13 when X8 is ON.

[Ladder Mode] [List Mode]

D11 D10 D13 D12

Mitsubishi Electronics QCPU — D11 D10 D13 D12 diagram (page 311)
Fig. 448

6.4 Data Transfer Instructions 6.4.3 Floating-point data transfer (Double precision) (EDMOV(P))

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 312 of the Mitsubishi Electronics QCPU user manual — D D
Page 312 · click to enlarge
Page 312

$MOV(P)

6.4.4 Character string transfers ($MOV(P))

$MOV(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — $MOV(P) diagram (page 312)
Fig. 449

: Character string to be transferred (maximum string length: 32 characters) or head number of the devices

where the character string to be transferred is stored (character string)

Mitsubishi Electronics QCPU — $MOV(P) diagram (page 312)
Fig. 450

: Head number of the devices where the transferred character string will be stored (character string)

(1) Transfers the character string data designated by to the devices from the device

designated by and onward. The character string data enclosed in " (double quotes) or devices from the number

specified by to the device number storing "00H" are transferred all at once.

Mitsubishi Electronics QCPU — $MOV(P) diagram (page 312)
Fig. 451

(2) Processing will be performed without error even in cases where the range for the devices

storing the character data to be transferred ( to +n) overlaps with the range of the

S S

devices which will store the character string data after it has been transferred ( to +n).

D D

The following occurs when the character string data that had been stored from D10 to D13 is transferred to D11 to D14:

Mitsubishi Electronics QCPU — D D diagram (page 312)
Fig. 452

Character string before transfer is remained. 32 H (2) b15 b8

D11 33 H (3) 35 H (5) 34 H (4)

D11 31H (1) 33H (3) 32H (2)

Page 313 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 313 · click to enlarge
Page 313

$MOV(P)

(3) If the "00H" code is being stored at lower bytes of +n, "00H" will be stored at both the

Mitsubishi Electronics QCPU — $MOV(P) diagram (page 313)
Fig. 453

42 H (B) 41 H (A) 43 H (C) 00 H 44 H (D) 45 H (E)

42 H (B) 41 H (A) 43 H (C) 00 H 44 H (D) 00 H

At the upper byte position, "00H" is automatically stored.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • There is no "00 H " code stored between the device number designated by and the relevant device. (Error code: 4101)
  • The entire character string linked from the device number designated by to the final device number of the relevant device cannot be stored. (Error code: 4101)
  • The character string of exceeds 16383 characters. (Error code: 4101)

Program Example

(1) The character string data stored in D10 to D12 is transferred to D20 to D22 when X0 goes

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 313)
Fig. 454 · Program Example

6.4 Data Transfer Instructions 6.4.4 Character string transfers ($MOV(P))

D10 4DH (M) 2AH ( * ) 45H (E) 45H (E) 00H

4DH (M) 2AH ( * ) 45H (E) 45H (E) 00H

(2) When X is turned ON, the character string "ABCD" is transferred to D20 and D21.

Step Instruction Device

Page 314 of the Mitsubishi Electronics QCPU user manual — DCML
Page 314 · click to enlarge
Page 314

CML(P),DCML(P)

6.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))

CML(P),DCML(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — CML(P),DCML(P) diagram (page 314)
Fig. 455

: Data to be reversed or the number of the device where data to be reversed is stored (BIN 16/32 bits)

: Number of the device where the reversing result will be stored (BIN 16/32 bits)

CML

(1) Inverts 16-bit data designated by bit by bit, and transfers the result to the device

Mitsubishi Electronics QCPU — CML diagram (page 314)
Fig. 456

1 Before execution 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0 b0

1 b0 After execution

DCML

(1) Inverts 32-bit data designated by bit by bit, and transfers the result to the device

Mitsubishi Electronics QCPU — DCML diagram (page 314)
Fig. 457

1 Before execution 0 1 1 0 1 0 0 0 1 1 1 0 0 1 0

After execution 1 b15 b0 b0 b15

(1) There are no operation errors associated with the CML(P) or DCML(P) instruction.

Page 315 of the Mitsubishi Electronics QCPU user manual — CML(P),DCML(P)
Page 315 · click to enlarge
Page 315

CML(P),DCML(P)

Program Example

(1) The following program inverts the data from X0 to X7, and transfers result to D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — CML(P),DCML(P) diagram (page 315)
Fig. 458

If "Number of bits of < Number of bits of "

1 1 0 1 0 X7 X0

0 0 1 0 1 b7 b0 1 b15 b8

(2) The following program inverts the data at M16 to M23, and transfers the result to Y40 to

Y47.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — CML(P),DCML(P) diagram (page 315)
Fig. 459

If "Number of bits of < Number of bits of "

6.4 Data Transfer Instructions 6.4.5 16-bit and 32-bit negation transfers (CML(P),DCML(P))

0 1 0 1 1 1 0 0 M23 M16

1 0 1 0 0 0 1 1 Y47 Y40 1 Y4B Y48

(3) The following program inverts the data at D0 when X3 is ON, and stores the result at D16.

1 0 1 0 1 b7 b0 0 1 0 1 1 0 1 1 b15 b8

0 1 0 1 0 1 0 1 0 0 1 0 0

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 316 of the Mitsubishi Electronics QCPU user manual — CML(P),DCML(P)
Page 316 · click to enlarge
Page 316

CML(P),DCML(P)

(4) The following program inverts the data at X0 to X1F, and transfers results to D0 and D1.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — CML(P),DCML(P) diagram (page 316)
Fig. 460

If "Number of bits of < Number of bits of " S D

These bits are all regarded as 0. 0 1 0 0 0 1 1 1 0 0 1 0 1 1 0 0

1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1

(5) The following program inverts the data at M16 to M35, and transfers it to Y40 to Y63.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — CML(P),DCML(P) diagram (page 316)
Fig. 461

If "Number of bits of < Number of bits of " S D

These bits are all regarded as 0. 0 1 0 0 0 1 1 1 0 0 1 0 1 1 0 0 M35 M24 M23 M16

1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 Y47 Y40 1 Y63 Y48 Y56

(6) Inverts the data at D0 and D1 when X3 is ON, and stores the result at D16 and D17.

[Ladder Mode] [List Mode]

0 1 0 0 1 b7 b0 b8 D0,D1

0

1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 b7 b0 1 b8 D16,D17

Show 8 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation] · Step Instruction Device · [Operation] · b31 b24 · b31 b24
Page 317 of the Mitsubishi Electronics QCPU user manual — 1234 H 5678 H 7FF0 H
Page 317 · click to enlarge
Page 317

BMOV(P)

6.4.6 Block 16-bit data transfers (BMOV(P))

BMOV(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BMOV(P) diagram (page 317)
Fig. 462

: Head number of the devices where the data to be transferred is stored (BIN 16 bits)

: Head number of the devices of transfer destination (BIN 16 bits)

n : Number of transfers (when using an intelligent function module device (U \G ): 1 to 6144 (QnA only))

K, H Other Bit Word Bit Word

R, ZR J \

U \G Zn Constants

Function

(1) Transfers in batch 16-bit data of n points from the device designated by to location n

6.4 Data Transfer Instructions 6.4.6 Block 16-bit data transfers (BMOV(P))

points from the device designated by .

B0 b15 B0 b15 S D

1234 H 5678 H 7FF0 H

1234 H 5678 H 7FF0 H

S S

6FFF H 553F H

6FFF H 553F H

(2) Transfers can be accomplished even in cases where there is an overlap between the source

and destination device. In the case of transmission to the smaller device number, transmission is from ; for transmission to the larger device number, transmission is from + (n 1). However, as shown in the example below, when transferring data from R to ZR, or from ZR to R, the range to be transferred (source) and the range of destination must not overlap. Transfer from R to R, or from ZR to ZR can be performed without any problem.

  • ZR transfer range ((specified head No. of ZR) to (specified head No. of ZR + the number
  • R transfer range ((specified head No. of R + file register block No. 32768) to (specified

head No. of R + file register block No. 32768 + the number of transfers -1))

Show 15 more labels / short text on this page
(BIN 16 bits) · Internal Devices · Setting · Data · n –– · +1 +2 · Block transfer · +1 +2 · n · n · +(n-1) · +(n-1) · +(n-2) · +(n-2) · of transfers -1))
Page 318 of the Mitsubishi Electronics QCPU user manual — S S D D
Page 318 · click to enlarge
Page 318

BMOV(P)

Example

Transfer ranges of ZR and R overlap when transferring 10000 blocks of data from ZR30000 (source) to R10 (block No.1 of the destination).

  • ZR transfer range (30000) to (30000+10000-1) (30000) to (39999)
  • R transfer range (10+(1 32768)) to (10+(1 32768)+10000-1)

(32778) to (42777) Therefore, the range 32778 to 39999 overlaps and the data is not correctly transferred.

Mitsubishi Electronics QCPU — BMOV(P) diagram (page 318)
Fig. 463

(3) When is a word device and is a bit device, the object for the word device will be the number of bits designated by the bit device digit designation.

If K1Y30 has been designated by , the lower four bits of the word device designated by will become the object.

D S

Mitsubishi Electronics QCPU — D S diagram (page 318)
Fig. 464

n 0 0 1 1 1 0 1 0

(4) If bit device has been designated for and , then and should always have the same number of digits.

S D S D

(5) When using a link direct device and an intelligent function module device for and , only

S D

either of or can be used.

S D

(6) Selection whether to check a device range

Whether to check a device range during execution of the BMOV instruction can be selected with the device range check inhibit flag (SM237) (only when the conditions for subset processing are established).

While SM237 is ON, whether to + (n) -1 and to + (n) - 1 are within the device range or not are not checked. For details of SM237, refer to Appendix 3 SPECIAL RELAY LIST.

S S D D

SM237 can be used only for the Universal model QCPU whose first 5 digits of serial number is 10012 or later.

Page 319 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 319 · click to enlarge
Page 319

BMOV(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device range of n points from or exceeds the corresponding device range.

S D

(Error code4101)

Program Example

(1) The following program outputs the lower 4 bits of data at D66 to D69 to Y30 to Y3F in 4-point

units.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 319)
Fig. 465 · Program Example

After execution (destination of transfer) Before execution (source of transfer)

1 Y33 to Y30 1 0 1 0 1 0 1

Y37 to Y34 Y3B to Y38 Y3F to Y3C

0 0 1 0 1 0 D68 D69

Mitsubishi Electronics QCPU — Program Example diagram (page 319)
Fig. 466 · Program Example

(2) The following program outputs the data at X20 to X2F to D100 to D103 in 4-point units.

6.4 Data Transfer Instructions 6.4.6 Block 16-bit data transfers (BMOV(P))

0 1 1 1 0 1 0 1

0 1 0

Step Instruction Device · [Operation]

Page 320 of the Mitsubishi Electronics QCPU user manual — S D S D
Page 320 · click to enlarge
Page 320

FMOV(P)

6.4.7 Identical 16-bit data block transfers (FMOV(P))

FMOV(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FMOV(P) diagram (page 320)
Fig. 467

: Data to be transferred or the head number of the devices where the data to be transferred is stored

: Head number of the devices of transfer destination (BIN 16 bits)

nNumber of transfers (BIN 16 bits)
Mitsubishi Electronics QCPU — FMOV(P) diagram (page 320)
Fig. 468

(1) Transfers 16-bit data at the device designated by to n points of devices starting from the

one designated by .

Mitsubishi Electronics QCPU — FMOV(P) diagram (page 320)
Fig. 469

(2) In cases where designates a word device and a bit device, the number of bits

S D

designated by digit designation for the bit device will be the object bits for the word device.

If K1Y30 has been designated by , the lower 4 bits of the word device designated by will become the object.

D S

D D D D

b0 b1 b2 b3 b4 b15 Transfer

Y30 Y33 Y3B Y38 Y3F Y3C

Y37 Y34

n 1 0 1 1 1 0 1 0 1

1 0 1 1

(3) If bit device has been designated for and , then and should always have the same number of digits.

S D S D

(BIN 16 bits) · +2 +3 · +1

Page 321 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 321 · click to enlarge
Page 321

FMOV(P)

(4) Selection whether to check a device range

Whether to check a device range during execution of the FMOV instruction can be selected with the device range check inhibit flag (SM237) (only when the conditions for subset processing are established).

While SM237 is ON, whether to + (n) - 1 is within the device range or not is not checked. For details of SM237, refer to Appendix 3 SPECIAL RELAY LIST.

D D

SM237 can be used only for the Universal model QCPU whose first 5 digits of serial number is 10012 or later.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device range of n points from or exceeds the corresponding device range.
(Error code4101)

Program Example

(1) The following program outputs the lower 4 bits of D0 when XA goes ON to Y10 to Y23 in

4-bit units. [Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 321)
Fig. 470 · Program Example

6.4 Data Transfer Instructions 6.4.7 Identical 16-bit data block transfers (FMOV(P))

1 Y13 to Y10 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1

Y17 to Y14 Y1B to Y18 Y1F to Y1C Y23 to Y20

(2) The following program outputs the data at X20 through X23 to D100 through D103 when XA

0 1 0 1 1 0 1

0 1 1 1 0

Step Instruction Device · [Operation]

Page 322 of the Mitsubishi Electronics QCPU user manual — S S
Page 322 · click to enlarge
Page 322

DFMOV(P)

6.4.8 Identical 32-bit data block transfers (DFMOV(P))

DFMOV(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — DFMOV(P) diagram (page 322)
Fig. 471

: Data to be transferred or head number of the devices where the data to be transferred are stored (BIN 32 bits)

: Head number of the devices of transfer destination (BIN 32 bits)

nNumber of transfers (BIN 16 bits)
Mitsubishi Electronics QCPU — DFMOV(P) diagram (page 322)
Fig. 472

(1) This instruction transfers 32-bit data of the device specified by to the n-point devices

Mitsubishi Electronics QCPU — DFMOV(P) diagram (page 322)
Fig. 473

(2) If specifies data of a device with digit specification, the amount of data to be transferred will be the amount of the data specified digit.

If K5Y0 is specified by , the lower 20 bits (five digits) of the word device specified by will be the object.

S S

Mitsubishi Electronics QCPU — S S diagram (page 322)
Fig. 474

D +(2n 2) +(2n 1), D 0

Universal

Page 323 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 323 · click to enlarge
Page 323

DFMOV(P)

(3) If specifies data of a device with digit specification, the amount of data stored in the

device specified by will be transferred.

If K5Y0 is specified by , the lower 20 bits of the word device specified by will be the object.

D S

If both and specify data of a device with digit specification, the amount of data

Mitsubishi Electronics QCPU — D S diagram (page 323)
Fig. 475

specified by will be transferred regardless of the number of digits.

(4) If the value specified by n is 0, the instruction will be not processed.

(5) Whether to check a device range during the execution of the FMOV instruction can be

selected with the device range check inhibit flag (SM237). (Only when the conditions of the subset processing are established)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The value specified by n is negative. (Error code: 4100)
Mitsubishi Electronics QCPU — Operation Error diagram (page 323)
Fig. 476 · Operation Error
  • The range of n-point devices, to be transferred, exceeds the range of devices specified by

6.4 Data Transfer Instructions 6.4.8 Identical 32-bit data block transfers (DFMOV(P))

(1) The following program stores the value data stored at Y0 to Y13(20 bits) into D10 to

1 0 1 Y14 Y13 Y0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

1 1 0 1 b20 b19 b0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0

0

1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0

1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0

1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

Page 324 of the Mitsubishi Electronics QCPU user manual — DXCH
Page 324 · click to enlarge
Page 324

XCH(P),DXCH(P)

6.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))

XCH(P),DXCH(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — XCH(P),DXCH(P) diagram (page 324)
Fig. 477

, : Head number of the devices where the data to be exchanged is stored (BIN 16/32 bits)

U \G Zn Constants Other Bit Word Bit Word

XCH

Mitsubishi Electronics QCPU — XCH diagram (page 324)
Fig. 478

0 1 1 1 0 1 1 1 0

1 0 1

1 0 1 0 1 1 1 0 1 1 1 0

DXCH

(1) Conducts 32-bit data exchange between +1, and +1, .

Mitsubishi Electronics QCPU — DXCH diagram (page 324)
Fig. 479

1 1 1 0 1 0

1 0

1 1 1 0 1

Page 325 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 325 · click to enlarge
Page 325

XCH(P),DXCH(P)

Operation Error

(1) There are no errors associated with the XCH (P) and DXCH (P) instruction.

Program Example

(1) The following program exchanges the present value of T0 with the contents of D0 when X8

goes ON.

[Ladder Mode] [List Mode]

(2) The following program exchanges the contents of D0 with the data from M16 to M31 when

X10 goes ON.

[Ladder Mode] [List Mode]

(3) The following program exchanges the contents of D0 and D1 with the data at M16 to M47

when X10 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 325)
Fig. 480 · Program Example

6.4 Data Transfer Instructions 6.4.9 16-bit and 32-bit data exchanges (XCH(P),DXCH(P))

(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10

Step Instruction Device · Step Instruction Device · Step Instruction Device

Page 326 of the Mitsubishi Electronics QCPU user manual — D2 D1
Page 326 · click to enlarge
Page 326

BXCH(P)

6.4.10 Block 16-bit data exchanges (BXCH(P))

BXCH(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BXCH(P) diagram (page 326)
Fig. 481

, : Head number of the devices where the data to be exchanged is stored (BIN 16 bits) n : Number of exchanges (BIN 16 bits)

Mitsubishi Electronics QCPU — BXCH(P) diagram (page 326)
Fig. 482

(1) Exchanges 16-bit data of n points from device designated by and 16-bit data of n points

from device designated by .

b7 b0 b15 b8

b7 b0 b15 b8

D2 D1

0 1 0

0 0 1 1 0 0 1 0 0 1 1 0 0

1 0

1 1 0 1 0 1 1

0 1

1 0

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

1

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0 1

b7 b0 b15 b8 b7 b0 b15 b8

0 0 1 1 0 0 1 0 0 1 1 0 0

0 1 0

1 1 0 1 0 1 1

1 0

1 0

0 1

1

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

0 1

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

Show 19 more labels / short text on this page
+1 · +1 · +2 · +2 · n · n · +(n 2) · +(n 2) · +(n 1) · +(n 1) · +1 · +1 · +2 · +2 · n n · +(n 2) · +(n 2) · +(n 1) · +(n 1)
Page 327 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 327 · click to enlarge
Page 327

BXCH(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range of the device of n points from a device designated by , or exceeds the relevant device. (Error code: 4101)

D1 D2

  • The and devices overlap. (Error code: 4101)

D1 D2

Program Example

(1) The following program exchanges 16-bit data for 3 points from D200 for 16-bit data for 3

points from R0 when X1C goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — D1 D2 diagram (page 327)
Fig. 483

0 1 1 1 0 1 0 1 1 0 R0

1 0

0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

1 1 0 1 1 0

0 1 1 1 0 1 0 1 1 0 1 b7 b0 b15 b8

6.4 Data Transfer Instructions 6.4.10 Block 16-bit data exchanges (BXCH(P))

1 0 0 1 0 0

0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

1 0

1 1 0 1 1 0

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

Step Instruction Device · [Operation]

Page 328 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 328 · click to enlarge
Page 328

SWAP(P)

6.4.11 Upper and lower byte exchanges (SWAP(P))

SWAP(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SWAP(P) diagram (page 328)
Fig. 484

: Head number of the devices where the data is stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Exchanges the higher and lower 8 bits of the device designated by .

b11 b8 b15 b12

b7 b4 b0 b3

0 1 0 1 1 0 1 0 0 1 1 0

1 0 1 0

b11 b8 b15 b12

b7 b4 b0 b3 0

1

Operation Error

(1) There are no operation errors associated with the SWAP(P) instruction.

Program Example

(1) The following program exchanges the higher 8 bits and lower 8 bits of R10 when X10 goes

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 328)
Fig. 485 · Program Example

0 1 0

b7 b4 b0 b3 1 1 0 0 1 1 0 0

Step Instruction Device · [Operation]

Page 329 of the Mitsubishi Electronics QCPU user manual — CJ,SCJ,JMP
Page 329 · click to enlarge
Page 329

CJ,SCJ,JMP

6.5 Program Branch Instructions

6.5.1 Pointer branch instructions (CJ,SCJ,JMP)

CJ,SCJ,JMP

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — CJ,SCJ,JMP diagram (page 329)
Fig. 486
P**Pointer number of jump destination (Device name)
Mitsubishi Electronics QCPU — CJ,SCJ,JMP diagram (page 329)
Fig. 487

6.5 Program Branch Instructions 6.5.1 Pointer branch instructions (CJ,SCJ,JMP)

(1) Executes the program specified by the pointer number within the same program file, when

(2) When the execution command is OFF, the program at the next step is executed.

(1) Executes the program specified by the pointer number within the same program file starting

with the scan immediately after OFF ON of the execution command.

(2) When the execution command is OFF or turned ON OFF, the program at the next step is executed.

Page 330 of the Mitsubishi Electronics QCPU user manual — CJ,SCJ,JMP
Page 330 · click to enlarge
Page 330

CJ,SCJ,JMP

JMP

(1) Unconditionally executes program of designated pointer number within the same program

file.

Note the following points when using the jump instruction. 1. After the timer coil has gone ON, accurate measurements cannot be made if there is an attempt to jump the timer of a coil that has been turned ON using the CJ, SCJ or JMP instructions. 2. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the OUT instruction. 3. Scan time is shortened if the CJ, SCJ or JMP instruction is used to force a jump to the rear. 4. The CJ, SCJ, and JMP instructions can be used to jump to a step prior to the step currently being executed. However, it is necessary to consider methods to get out of the loop so that the watchdog timer does not time out in the process.

Mitsubishi Electronics QCPU — CJ,SCJ,JMP diagram (page 330)
Fig. 488
5. The device to which a jump has been made with the CJ, SCJ or JMP does not change.
Mitsubishi Electronics QCPU — CJ,SCJ,JMP diagram (page 330)
Fig. 489

XB Jumps to label P19 when XB turns ON. Y43 and Y49 remain unchanged regardless of whether XB and XC are turned ON/OFF during the execution of CJ instruction. 16

6. The label (P*) occupies step 1.
Mitsubishi Electronics QCPU — CJ,SCJ,JMP diagram (page 330)
Fig. 490
7. The jump instructions can be used only for pointer numbers within the same program file. 8. If a jump is made to a pointer number inside the skip range during a skip operation, program execution will be taken up following the pointer number of the jump destination.
Page 331 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 331 · click to enlarge
Page 331

CJ,SCJ,JMP

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The pointer number designated does not come prior to the END instruction.
(Error code4210)
  • A pointer number which is not in use as a label in the same program has been
designated. (Error code4210)
  • A common pointer has been designated. (Error code: 4210)

Program Example

(1) The following program jumps to P3 when X9 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 331)
Fig. 491 · Program Example

(2) The following program jumps to P3 from the next scan after XC goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 331)
Fig. 492 · Program Example

6.5 Program Branch Instructions 6.5.1 Pointer branch instructions (CJ,SCJ,JMP)

(1) When using the Universal model QCPU with the SCJ instruction, inserting "AND SM400" (or

the NOP instruction) in immediately before the SCJ instruction is required. [Program example1] [Ladder Mode] [List Mode]

Page 332 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 332 · click to enlarge
Page 332

GOEND

6.5.2 Jump to END (GOEND)

GOEND

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — GOEND diagram (page 332)
Fig. 493

U \G Zn Constants Other Bit Word Bit Word

(1) Jumps to the FEND or END instruction in the same program file.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The GOEND instruction has been executed after the execution of the CALL, ECALL

instruction, and prior to the execution of the RET instruction. (Error code: 4211)

  • The GOEND instruction has been executed after the execution of the FOR instruction,

and prior to the execution of the NEXT instruction. (Error code: 4200)

  • The GOEND instruction has been executed during an interrupt program but prior to the

execution of the IRET instruction. (Error code: 4221)

  • The GOEND instruction was executed between the CHKCIR and CHKEND instruction
block. (Error code4230)
  • The GOEND instruction was executed between the IX and IXEND instruction block.
(Error code4231)

Program Example

(1) The following program jumps to the END instruction if D0 holds a negative number.

[Ladder Mode] [List Mode]

Step Instruction Device

Page 333 of the Mitsubishi Electronics QCPU user manual — EI
Page 333 · click to enlarge
Page 333

DI,EI,IMASK

6.6 Program Execution Control Instructions

6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)

DI,EI,IMASK

Basic Process High performance Redundant Universal

When the Basic model QCPU is used

DI

DI

S IMASK

IMASK

EI

EI

: Interrupt mask data or head number of the devices where the interrupt mask data is stored (BIN 16 bits)

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)

Function

DI

(1) Disables the execution of an interrupt program until the EI instruction has been executed,

even if a start cause for the interrupt program occurs.

(2) A DI state is entered when power is turned ON or when the CPU module is reset.

EI

The EI instruction is used to clear the interrupt disable state resulting from the execution of the DI instruction, and to create a state in which the interrupt program designated by the interrupt pointer number certified by the IMASK instruction can be executed. When the IMASK instruction is not executed, I32 to I47 are disabled.

DI

Even if a cause of interrupt occurs during the execution of the sequence program between the DI and EI instructions, execution of the interrupt program is suspended until the processing of the sequence program is completed.

EI

FEND

Show 8 more labels / short text on this page
Sequence program · Setting · Internal Devices · Data · Sequence program · Sequence program · In · Interrupt programs
Page 334 of the Mitsubishi Electronics QCPU user manual — S S
Page 334 · click to enlarge
Page 334

DI,EI,IMASK

IMASK

(1) Enables/disables the execution of the interrupt program marked by the designated interrupt

pointer by using the bit pattern of 8 points from the device designated by .

  • 1(ON)......Interrupt program execution enabled
  • 0(OFF)....Interrupt program execution disabled

(2) The interrupt pointer numbers corresponding to the individual bits are as shown below:

b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1

I15 I14

I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0

I31 I30 I29 I28 I27 I26 I25 I24 I23 I22 I21 I20 I19 I18 I17 I16

I47 I46 I45 I44 I43 I42 I41 I40 I39 I38 I37 I36 I35 I34 I33 I32

I63 I62 I61 I60 I59 I58 I57 I56 I55 I54 I53 I52 I51 I50 I49 I48 + 3 S

I79 I78 I77 I76 I75 I74 I73 I72 I71 I70 I69 I68 I67 I66 I65 I64 + 4 S

I95 I94 I93 I92 I91 I90 I89 I88 I87 I86 I85 I84 I83 I82 I81 I80 + 5 S

I111 I110 I109 I108 I107 I106 I105 I104 I103 I102 I101 I100 I99 I98 I97 I96 + 6 S

I127 I126 I125 I124 I123 I122 I121 I120 I119 I118 I117 I116 I115 I114 I113 I112 + 7 S

(3) When the power is turned ON or when the CPU module has been reset, the execution of

interrupt programs I0 to I31,I48 to I127 is enabled, and the execution of interrupt programs I32 to I47 is disabled.

(4) The statuses of devices , +1, +2, and +3 to +7 are stored in SD715 to SD717 and SD781 to SD785 (storage area for the IMASK instruction mask pattern).

S

(5) Although the special registers are separated as SD715 to SD717 and SD781 to SD785,

device numbers should be designated as to +7 successively.

S S

1. An interrupt pointer occupies 1 step.
Mitsubishi Electronics QCPU — S S diagram (page 334)
Fig. 494

2. For the information on interrupt conditions, link direct devices, refer to the QnUCPU User’s Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) 3. The DI state (interrupt disabled) is active during the execution of an interrupt program. Do not insert the EI instructions in interrupt programs to attempt the execution of multiple interrupts, with interrupt programs running inside interrupt programs. 4. If there are the EI and DI instructions within a master control, these instructions will be executed regardless of the execution/non-execution status of the MC instruction.

Show 4 more labels / short text on this page
b15 · b0 · + 1 · + 2
Page 335 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 335 · click to enlarge
Page 335

DI,EI,IMASK

Operation Error

(1) There are no operation errors associated with the DI, EI or IMASK instruction.

Program Example

(1) The following program is designed to enable the execution of only the interrupt programs

having the interrupt pointer numbers I1 and I3 while X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 335)
Fig. 495 · Program Example

6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)

Page 336 of the Mitsubishi Electronics QCPU user manual — EI
Page 336 · click to enlarge
Page 336

DI,EI,IMASK

When the High Performance model QCPU/Process CPU/Redundant CPU/Universal model

DI

DI

S IMASK

IMASK

EI

EI

: Head number of the devices where the interrupt mask data is stored (BIN 16 bits)

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

DI

(1) Disables the execution of an interrupt program until the EI instruction has been executed,

even if a start cause for the interrupt program occurs.

(2) A DI state is entered when power is turned ON or when the CPU module is reset.

EI

The EI instruction is used to clear the interrupt disable state resulting from the execution of the DI instruction, and to create a state in which the interrupt program designated by the interrupt pointer number enabled by the IMASK instruction and the fixed cycle execution type program can be executed. When the IMASK instruction is not executed, I32 to I47 are disabled.

DI

Even if a cause of interrupt occurs during the execution of the sequence program between the DI and EI instructions, execution of the interrupt program is suspended until the processing of the sequence program is completed.

EI

FEDN

Show 9 more labels / short text on this page
QCPU is used · Sequence program · Setting · Internal Devices · Data · Sequence program · Sequence program · In · Interrupt programs
Page 337 of the Mitsubishi Electronics QCPU user manual — IRET
Page 337 · click to enlarge
Page 337

DI,EI,IMASK

IMASK

(1) Enables/disables the execution of the interrupt program marked by the designated interrupt

pointer by using the bit pattern of 16 points from the device designated by .

  • 1(ON)......Interrupt program execution enabled
  • 0(OFF)....Interrupt program execution disabled

(2) The interrupt pointer numbers corresponding to the individual bits are as shown below:

b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1

I15 I14

I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0

I31 I30 I29 I28 I27 I26 I25 I24 I23 I22 I21 I20 I19 I18 I17 I16

I47 I46 I45 I44 I43 I42 I41 I40 I39 I38 I37 I36 I35 I34 I33 I32

I63 I62 I61 I60 I59 I58 I57 I56 I55 I54 I53 I52 I51 I50 I49 I48 + 3 S

I79 I78 I77 I76 I75 I74 I73 I72 I71 I70 I69 I68 I67 I66 I65 I64 + 4 S

I95 I94 I93 I92 I91 I90 I89 I88 I87 I86 I85 I84 I83 I82 I81 I80 + 5 S

I111 I110 I109 I108 I107 I106 I105 I104 I103 I102 I101 I100 I99 I98 I97 I96 + 6 S

I127 I126 I125 I124 I123 I122 I121 I120 I119 I118 I117 I116 I115 I114 I113 I112 + 7 S

I143 I142 I141 I140 I139 I138 I137 I136 I135 I134 I133 I132 I131 I130 I129 I128 + 8 S

I159 I158 I157 I156 I155 I154 I153 I152 I151 I150 I149 I148 I147 I146 I145 I144 + 9 S

I175 I174 I173 I172 I171 I170 I169 I168 I167 I166 I165 I164 I163 I162 I161 I160 +10 S

I191 I190 I189 I188 I187 I186 I185 I184 I183 I182 I181 I180 I179 I178 I177 I176 +11 S

I207 I206 I205 I204 I203 I202 I201 I200 I199 I198 I197 I196 I195 I194 I193 I192 +12 S

I223 I222 I221 I220 I219 I218 I217 I216 I215 I214 I213 I212 I211 I210 I209 I208 +13 S

I239 I238 I237 I236 I235 I234 I233 I232 I231 I230 I229 I228 I227 I226 I225 I224 +14 S

I255 I254 I253 I252 I251 I250 I249 I248 I247 I246 I245 I244 I243 I242 I241 I240 +15 S

(3) When the power is turned ON or when the CPU module has been reset, the execution of

interrupt programs I0 to I31,I48 to I255 is enabled, and the execution of interrupt programs I32 to I47 is disabled.

6.6 Program Execution Control Instructions 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK)

(4) The status of devices , +1, +2, and +3 to +15 are stored in SD715 to SD717 and SD781 to SD793 (storage area for the IMASK instruction mask pattern).

S

(5) Although the special registers are separated as SD715 to SD717 and SD781 to SD793,

device numbers should be designated as to +15 successively.

S S

1. An interrupt pointer occupies 1 step.

T10

50 Y10

Y30 X5 Stored at step 50

IRET

  • For the information on interrupt conditions, link direct devices, refer to the

QnUCPU User’s Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) 2. The DI state (interrupt disabled) is active during the execution of an interrupt program. Do not insert the EI instructions in interrupt programs to attempt the execution of multiple interrupts, with interrupt programs running inside interrupt programs. 3. If there are the EI and DI instructions within a master control, these instructions will be executed regardless of the execution/non-execution status of the MC instruction.

Show 4 more labels / short text on this page
b15 · b0 · + 1 · + 2
Page 338 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 338 · click to enlarge
Page 338

DI,EI,IMASK

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program creates an execution enabled state for the interrupt program marked

by the interrupt pointer number when X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 338)
Fig. 496 · Program Example
Page 339 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 339 · click to enlarge
Page 339

IRET

6.6.2 Recovery from interrupt programs (IRET)

IRET

Basic Process High performance Redundant Universal

**

IRET

IRET

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

(1) Indicates the completion of interrupt program processing.

(2) Returns to sequence program processing following the execution of the IRET instruction.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • There is no pointer corresponding to the interrupt number. (Error code: 4220)

6.6 Program Execution Control Instructions 6.6.2 Recovery from interrupt programs (IRET)

  • The IRET instruction was executed before the interrupt program is executed.
(Error code4223)
  • The END, FEND, GOEND, or STOP instruction has been executed after the generation of

an interrupt and prior to the execution of the IRET instruction. (Error code: 4221)

  • The IRET instruction was executed during the fixed scan execution type program.

(For the Universal model QCPU only) (Error code: 4223)

Setting · Internal Devices · Data

Page 340 of the Mitsubishi Electronics QCPU user manual — IRET
Page 340 · click to enlarge
Page 340

IRET

Program Example

(1) The following program adds 1 to D0 if M0 is ON when the number 3 interrupt is generated.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — IRET diagram (page 340)
Fig. 497
Page 341 of the Mitsubishi Electronics QCPU user manual — DY20 DX0
Page 341 · click to enlarge
Page 341

RFS(P)

6.7 I/O Refresh Instructions

6.7.1 I/O refresh (RFS(P))

RFS(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — RFS(P) diagram (page 341)
Fig. 498

: Head number of the devices to be refreshed (bits)

nNumber of refreshes (BIN 16 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

Function

6.7 I/O Refresh Instructions 6.7.1 I/O refresh (RFS(P))

(1) 1. Refreshes only the device being scanned during a scan, and functions to fetch input from

external sources or to output data to an output module.

(2) Fetching of input from or sending output to an external source is conducted in batch only

after the execution of the END instruction, so it is not possible to output a pulse signal to an outside source during the execution of a scan. When the I/O refresh instruction is executed, the inputs (X) or outputs (Y) of the corresponding device numbers are refreshed forcibly midway through program execution. Therefore, a pulse signal can be output to an external source during a scan.

(3) Use direct access inputs (DX) or direct access outputs (DY) to refresh inputs (X) or outputs

(Y) in 1-point units.

[Program based on the RFS instruction]

RFS

K1 X0

Y20 X0

K1 Y20 RFS

[Program based on direct access input and direct access output]

DY20 DX0

Show 11 more labels / short text on this page
Setting · Internal Devices · Data · (Only X, Y) · n –– · Command · Refreshes X0 · Command · Refreshes Y20 · Direct access input · Direct access output
Page 342 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 342 · click to enlarge
Page 342

RFS(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The range n points from the device designated by exceeds the proximate I/O range.
(Error code4101)

Program Example

(1) The following program refreshes X100 to X11F and Y200 to Y23F when M0 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 342)
Fig. 499 · Program Example
Page 343 of the Mitsubishi Electronics QCPU user manual — Function
Page 343 · click to enlarge
Page 343

UDCNT1

6.8 Other Convenient Instructions

6.8.1 Counter 1-phase input up or down (UDCNT1)

UDCNT1

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — UDCNT1 diagram (page 343)
Fig. 500

: + 0: Input number for count input (bits)

  • OFF: Count up (add numbers when counting)
  • ON: Count down (subtract numbers when counting)

: Number of the counter to be enabled to start counting with the UDCNT1 instruction (Device name)

nValue to set (BIN 16 bits)
Mitsubishi Electronics QCPU — UDCNT1 diagram (page 343)
Fig. 501

*1: Only the X device can be used for . However, the X device can be used only in the range of number of I/O points

(the number of accessible points to actual I/O modules). *2: Local devices and the file registers set for individual programs cannot be used.

6.8 Other Convenient Instructions 6.8.1 Counter 1-phase input up or down (UDCNT1)

Function

(1) When the input designated at goes from OFF to ON, the present value of the counter designated at will be updated.

(2) The direction of the count is determined by the ON/OFF status of the input designated by

+1.

  • OFF : Count up (counts by adding to the present value)
  • ON : Count down (counts by subtracting from the present value)

(3) Count processing is conducted as described below:

  • When the count is going up, the counter contact designated at goes ON when the present value becomes identical with the setting value designated by n. However, the present value count will continue even when the contact of the counter designated at goes ON. (See Program Example (1))
  • When the count is going down, the counter for the contact designated at goes OFF when the present value reaches the set value 1. (See Program Example (1))
Page 344 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 344 · click to enlarge
Page 344

UDCNT1

  • The counter designated at is a ring counter. If it is counting up when the present value is 32767, the present value will become 32768. Further, if it is counting down when the present value is 32768, the present value will become 32767. The count processing performed on the present value is as shown below:
Mitsubishi Electronics QCPU — UDCNT1 diagram (page 344)
Fig. 502

32768 32767 2 1 0 1 2 32767 32766

(4) The UDCNT1 instruction triggers counting when the execution command is turned

OFF ON and suspends counting when the execution command is turned ON OFF. When the execution command is turned OFF ON again, the counting resumes from the suspended value.

(5) The RST instruction clears the present value of the counter designated at and turns the contact OFF.

1. With the UDCNT1 instruction, the argument device data is registered in the work area of the CPU module and counting operation is processed as a system interrupt. (The device data registered in the work area is cleared by turning the

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:

CPU Module Type Name Interrupt Interval

High Performance model QCPU, Process CPU,

Universal model QCPU 1 ms

2. The set value cannot be changed during counting directed by the UDCNT1 instruction (while the execution command is ON). To change the set value, turn OFF the execution command. 3. Counters which have been designated by the UDCNT1 instruction cannot be used by other instructions. If they are used by other instructions, they will not be capable of returning an accurate count. 4. The UDCNT1 instruction can be used as many as 6 times within all the programs being executed. The seventh and the subsequent UDCNT1 instructions are not processed.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device.
(Error code4101)
Page 345 of the Mitsubishi Electronics QCPU user manual — UDCNT1
Page 345 · click to enlarge
Page 345

UDCNT1

Program Example

(1) This program uses C0 (Up/Down counter) to count the number of times X0 goes from OFF

to ON after X20 has gone ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — UDCNT1 diagram (page 345)
Fig. 503

0 1 2 3 4 5 6 7 6 5 4 3 2 1 0 1 2 3 2 1 0 1 1 -

Mitsubishi Electronics QCPU — UDCNT1 diagram (page 345)
Fig. 504

6.8 Other Convenient Instructions 6.8.1 Counter 1-phase input up or down (UDCNT1)

Step Instruction Device · [Operation]

Page 346 of the Mitsubishi Electronics QCPU user manual — S S
Page 346 · click to enlarge
Page 346

UDCNT2

6.8.2 Counter 2-phase input up or down (UDCNT2)

UDCNT2

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — UDCNT2 diagram (page 346)
Fig. 505

: + 0: Input number for count input (A phase pulse) (bits)

+ 1Input number for count input (B phase pulse) (bits)

: Number of the counter to be enabled to start counting with the UDCNT2 instruction (Device name)

nValue to set (BIN 16 bits)
Mitsubishi Electronics QCPU — UDCNT2 diagram (page 346)
Fig. 506

*1: Only the X device can be used for . However, the X device can be used only in the range of number of I/O points

(the number of accessible points to actual I/O modules). *2: Local devices and the file registers set for individual programs cannot be used.

Function

(1) The present value of the counter designated by is updated depending on the status of the input designated by (A phase pulse) and the status of the input designated by +1 (B phase pulse).

S S

(2) Direction of the count is determined in the following manner:

  • When is ON, if +1 goes from OFF to ON, count up operation is performed (values are added to the present value of the counter).

S S

  • When is ON, if +1 goes from ON to OFF, count down operation is performed (values are subtracted from the present value of the counter).

S S

  • No count operation is performed if is OFF.

(3) Count processing is conducted as described below:

  • When the count is going up, the counter contact designated at goes ON when the present value becomes identical with the setting value designated by n. However, the present value count will continue even when the contact of the counter designated at goes ON. (See Program Example (1))
  • When the count is going down, the counter for the contact designated at goes OFF when the present value reaches the set value 1. (See Program Example (1))
Page 347 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 347 · click to enlarge
Page 347

UDCNT2

  • The counter designated at is a ring counter. If it is counting up when the present value is 32767, the present value will become 32768. Further, if it is counting down when the present value is 32768, the present value will become 32767. The count processing performed on the present value is as shown below:

32768 32767 2 1 0 1 2 32767 32766

(4) Count processing conducted according to the UDCNT2 instruction begins when the count

command goes from OFF to ON, and is suspended when it goes from ON to OFF. When the execution command is turned OFF to ON again, the counting resumes from the suspended value.

(5) The RST instruction clears the present value of the counter designated at and turns the contact OFF.

1. With the UDCNT2 instruction, the argument device data is registered in the work area of the CPU module and counting operation is processed as a system interrupt. (The device data registered in the work area is cleared by turning the

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:

CPU Module Type Name Interrupt Interval

High Performance model QCPU, Process CPU,

Universal model QCPU 1 ms

2. The set value cannot be changed during counting directed by the UDCNT2 instruction (while the execution command is ON). To change the set value, turn OFF the execution command. 3. Counters designated by the UDCNT2 instruction cannot be used by any other instruction. If they are used by other instructions, they will not be capable of returning an accurate count. 4. The UDCNT2 instruction can be used as many as 5 times within all the programs being executed. The sixth and the subsequent UDCNT2 instructions are not processed.

6.8 Other Convenient Instructions 6.8.2 Counter 2-phase input up or down (UDCNT2)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device.
(Error code4101)

When counting up · When counting down

Page 348 of the Mitsubishi Electronics QCPU user manual — UDCNT2
Page 348 · click to enlarge
Page 348

UDCNT2

Program Example

(1) The following program performs a count operation as instructed by C0 (count up or down) on

the status of X0 and X1 after X20 has gone ON. [Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — UDCNT2 diagram (page 348)
Fig. 507

1 0 2 3 4 5 4 3 2 1 0 1 2 1 1

Step Instruction Device · [Operation]

Page 349 of the Mitsubishi Electronics QCPU user manual — D D
Page 349 · click to enlarge
Page 349

TTMR

6.8.3 Teaching timer (TTMR)

TTMR

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — TTMR diagram (page 349)
Fig. 508

: + 0: The device where measurement value is stored (BIN 16 bit)

+ 1For CPU module system use (BIN 16 bit)
nMeasurement value multiplier (BIN 16 bits)
Mitsubishi Electronics QCPU — TTMR diagram (page 349)
Fig. 509

(1) Measures the time while the execution command is ON in units of seconds, and stores the

multiplied value of the measured time by the multiplier specified by n at the device designated by .

(2) Clears the device designated by +0 or +1 when the execution command is turned OFF ON.

D D

6.8 Other Convenient Instructions 6.8.3 Teaching timer (TTMR)

(3) The multipliers that can be designated by n are as shown below:

1. Time measurements are conducted when the TTMR instruction is executed. Using the JMP or similar instruction to jump the TTMR instruction will make it impossible to get an accurate measurement. 2. Do not change the multiplier designated by n while the TTMR instruction is being executed. Changing this multiplier will result in an inaccurate value being returned. 3. The TTMR instruction can also be used in low speed execution type programs. 4. The device designated by +1 is used by the system of the CPU module, so users should not change its value. If users do change this value, the value stored in the device designated by will no longer be accurate.

(4) No processing is performed when the value specified by "n" is other than 0 to 2.

n Multiplier

Page 350 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 350 · click to enlarge
Page 350

TTMR

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program stores the amount of time that X0 is ON at D0.

[Ladder Mode] [List Mode]

Step Instruction Device

Page 351 of the Mitsubishi Electronics QCPU user manual — Function
Page 351 · click to enlarge
Page 351

STMR

6.8.4 Special function timer (STMR)

STMR

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — STMR diagram (page 351)
Fig. 510

n : Value to set (BIN 16 bits).

D D

: + 0: Off delay timer output (bits)

+ 1One shot timer output after OFF (bits)
+ 2One shot timer output after ON (bits)
+ 3ON delay and Off delay timer output (bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

–– *1 –– –– ––

––

*1:Can be used only by timer (T) data

Function

6.8 Other Convenient Instructions 6.8.4 Special function timer (STMR)

(1) The STMR instruction uses the 4 points from the device designated by to perform four types of timer output.

  • OFF delay timer output ( +0) Goes ON at the leading edge of the command for the STMR instruction, and after the trailing edge of the command, goes OFF when the amount of time designated by n has passed.
  • One shot timer output after OFF ( +1) Goes ON at the trailing edge of the command for the STMR instruction, and goes OFF when the amount of time designated by n has passed.
  • One shot timer output after ON ( +2) Goes ON at the leading edge of the command for the STMR instruction, and goes OFF either when the amount of time designated by n has passed, or when the command for the STMR instruction goes OFF.
  • ON delay timer output ( +3) Goes ON at the trailing edge of the timer coil, and after the trailing edge of the command for the STMR instruction, goes OFF when the amount of time designated by n has passed.

(2) The timer coil designated by turns ON at the leading edge and trailing edge of the command for the STMR instruction, and starts measurement of the present value. • The timer coil measures to the point where the value reaches the set value designated by

n, then enters a time up state and goes OFF. • If the command for the STMR instruction goes OFF before the timer coil reaches the time

up state, it will remain ON. Timer measurement is continued at this time. When the STRM instruction command goes ON once again, the present value will be cleared to 0 and measurement will begin once again.

Show 4 more labels / short text on this page
Setting · Internal Devices · Data · n ––
Page 352 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 352 · click to enlarge
Page 352

STMR

(3) The timer contact goes ON at the leading edge of the command for the STMR instruction,

and after the trailing edge is reached, the timer coil goes OFF at the trailing edge of the STMR instruction command. The timer contact is used by the CPU module system, and cannot be used by the user.

Mitsubishi Electronics QCPU — STMR diagram (page 352)
Fig. 511

(4) Measurement of the present value of the timer specified by the STMR instruction is

executed regardless of the command ON/OFF status of the STMR instruction. If the STMR instruction is jumped with the JMP or similar instruction, it will not be possible to get accurate measurement.

(5) Measurement unit for the timer designated by is identical to the low speed timer.

(6) A value between 0 to 32767 can be set for n.

No operation if n is other than 0 to 32767.

(7) The timer designated by cannot be used by the OUT instruction. If the STMR instruction and the OUT instruction use the same timer number, accurate operation will not be conducted.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 353 of the Mitsubishi Electronics QCPU user manual — STMR
Page 353 · click to enlarge
Page 353

STMR

Program Example

(1) The following program turns Y0 and Y1 ON and OFF once each second (flicker) when X20

is ON.

(Uses 100 ms timer)

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — STMR diagram (page 353)
Fig. 512
Mitsubishi Electronics QCPU — STMR diagram (page 353)
Fig. 513
Mitsubishi Electronics QCPU — STMR diagram (page 353)
Fig. 514

6.8 Other Convenient Instructions 6.8.4 Special function timer (STMR)

[Timing Chart]

Page 354 of the Mitsubishi Electronics QCPU user manual — D D
Page 354 · click to enlarge
Page 354

ROTC

6.8.5 Rotary table shortest direction control (ROTC)

ROTC

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — ROTC diagram (page 354)
Fig. 515

: + 0 : Measures the number of table rotations (for system use) (BIN 16 bits)

+ 1Call station number (BIN 16 bits)
+ 2Call item number (BIN 16 bits)
n1Number of divisions of table (2 to 32767) (BIN 16 bits)
n2Number of low-speed sections (value from 0 to less than n1) (BIN 16 bits)
Mitsubishi Electronics QCPU — ROTC diagram (page 354)
Fig. 516

: + 0 : A phase input signal (bits)

+ 20 point detection input signal (bits)
+ 3High speed forward rotation output signal (for system use) (bits)
+ 4Low speed forward rotation output signal (for system use) (bits)
+ 5Stop output signal (for system use) (bits)
+ 6Low speed reverse rotation output signal (for system use) (bits)
+ 7High speed reverse rotation output signal (for system use) (bits)

(1) This control functions to enable shortest direction control of the rotary table to the position of

the station number designated by +1 in order to remove or deposit an item whose number

has been designated by +2 on a rotary table with equal divisions of the value designated by n1.

(2) The item number and station number are controlled as items allocated by counterclockwise

rotation.

(3) The system uses +0 as a counter to instruct it as to what item is at which number counting from station number 0. Do not rewrite the sequence program data.

Accurate controls will not be possible in cases where users have rewritten the data.

(4) The value of n2 should be less than the number of table divisions specified by n1.

(5) +0 and +1 are A and B phase input signals that are used to detect whether the direction of the rotary table rotation is forward or reverse.

D D

The direction of rotation is judged by whether the B phase pulse is at its leading or trailing edge when the A phase pulse is ON:

  • When the B phase is at the leading edge: Forward rotation (clockwise rotation)
  • When the B phase is at the trailing edge: Reverse rotation (counterclockwise rotation)
Page 355 of the Mitsubishi Electronics QCPU user manual — S D
Page 355 · click to enlarge
Page 355

ROTC

(6) +2 is the 0 point detection output signal that goes ON when item number 0 has arrived at the No. 0 station. When the device designated by +2 goes ON while the ROTC instruction is being

executed, +0 is cleared. It is best to perform this clear operation first, then to begin shortest direction control with the ROTC instruction.

(7) The data from +3 to +7 consists of output signals needed to control the table's operation. The output signal of one of the devices from +3 to +7 will go ON in response to the execution results of the ROTC instruction.

D D

D D

(8) If the command for the ROTC instruction is OFF, clears all +3 to +7 without performing shortest direction control.

D D

(9) The ROTC instruction can be used only one time in all programs where it is executed.

Attempts to use it more than one time will result in inaccurate operations.

(10) No processing is performed when the value of +0 to +2, or the value of n2 is greater than n1.

S S

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

S D

6.8 Other Convenient Instructions 6.8.5 Rotary table shortest direction control (ROTC)

Page 356 of the Mitsubishi Electronics QCPU user manual — ROTC
Page 356 · click to enlarge
Page 356

ROTC

Program Example

(1) The following program deposits the item at section D2 on a 10-division rotary table at the

station at section D1, and the two sections ahead and behind this determine the rotation direction and control speed of the motor when the table is being rotated at low speed.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — ROTC diagram (page 356)
Fig. 517
Mitsubishi Electronics QCPU — ROTC diagram (page 356)
Fig. 518
Page 357 of the Mitsubishi Electronics QCPU user manual — Example
Page 357 · click to enlarge
Page 357

RAMP

6.8.6 Ramp signal (RAMP)

RAMP

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — RAMP diagram (page 357)
Fig. 519
n1Initial value (BIN 16 bits)
n2Final value (BIN 16 bits)

: + 0 : Present value (BIN 16 bits)

D1 D1

+ 1Number of executions (BIN 16 bits)
n3Number of shifts (BIN 16 bits)

: + 0 : Completion device (bits)

D2 D2

+ 1Bit for selecting data retaining at completion (bit)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

6.8 Other Convenient Instructions 6.8.6 Ramp signal (RAMP)

Function

(1) When the execution command is ON, the following processing is executed.

  • Shifts from the value specified by n1 to the value specified by n2 in the number of times

specified by n3.

  • For n3, designate the number of scans (number of shifts) required for shift from n1 to n2.

No operation if other than 0

  • The system uses +1 to store the number of times the instruction has been executed.
  • The value of one variation (one scan) is obtained by the expression below:

(Value specified by n2) (Value specified by n1)

Value of one variation (one scan)

(Value specified by n3)

Example

0 is varied to 350 in seven scans as shown below.

Value stored in + 0 (Present value)

300 250 200 150 100 50

Value specified by n2 (350)

Value specified by n1 (0)

Value stored in + 1 (Number of execution times)

Number of shifts (7) specified by n3

When the calculated one variation is indivisible, compensation is made to achieve the value specified in n2 by the number of shifts specified in n3. Hence, a linear ramp may not be made.

Show 15 more labels / short text on this page
Setting · Internal Devices · Data · n1 –– · n2 –– · n3 –– · –– –– –– · (7) · (6) · (5) · (4) · (3) · (2) · (1) · (0)
Page 358 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 358 · click to enlarge
Page 358

RAMP

(2) If the scan is performed for the number of moves specified by n3, the complete device

specified by +0 is turned ON. The ON/OFF status of the completion device and the contents of +0 are determined by

the ON/OFF status of the device designated by +1.

  • When +1 is OFF, +0 will go OFF at the next scan, and the RAMP instruction will begin a

new move operation from the value currently at +0.

  • When +1 is ON, +0 will remain ON, and the contents of +0 will not change.

D2 D2 D1

(3) When the command is turned OFF during the execution of this instruction, the contents of

+0 will not change following this. When the command goes ON again, the RAMP instruction will begin a new move from the present value at +0.

(4) Do not change the specified values in n1 and n2 before the completion device specified in

+0 turns ON. Since the same expression is used every scan to calculate the value stored in +1, changing n1/n2 may cause a sudden variation.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

D1 D2

Caution

(1) When the digit specification of bit device is made to , the digit specification of bit device can only be used when the following condition is met.

  • Specification of digits: K8
Page 359 of the Mitsubishi Electronics QCPU user manual — RAMP
Page 359 · click to enlarge
Page 359

RAMP

Program Example

(1) The following program changes the contents of D0 from 10 to 100 in a total of 6 scans, and

saves the contents of D0 when the move has been completed.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — RAMP diagram (page 359)
Fig. 520
Mitsubishi Electronics QCPU — RAMP diagram (page 359)
Fig. 521
Mitsubishi Electronics QCPU — RAMP diagram (page 359)
Fig. 522

6.8 Other Convenient Instructions 6.8.6 Ramp signal (RAMP)

[Timing Chart]

Page 360 of the Mitsubishi Electronics QCPU user manual — Function
Page 360 · click to enlarge
Page 360

SPD

6.8.7 Pulse density measurement (SPD)

SPD

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — SPD diagram (page 360)
Fig. 523
nMeasurement time (unit: ms) (BIN 16 bits)
Mitsubishi Electronics QCPU — SPD diagram (page 360)
Fig. 524

: Head number of the devices where the measurement result will be stored (BIN 16 bits)

*1: Local devices and the file registers set for individual programs cannot be used.

Function

(1) The number of turning OFF ON input of the device specified by is counted for just the

amount of time specified by n, and the count results are stored in the device specified by .

Mitsubishi Electronics QCPU — Function diagram (page 360)
Fig. 525 · Function

(2) When measurement directed by the SPD instruction has been completed, measurement is

done again from 0.

Turn OFF the execution command to stop the measurement directed by the SPD instruction.

Page 361 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 361 · click to enlarge
Page 361

SPD

1. With the SPD instruction, the argument device data is registered in the work area of the CPU module and counting operation is processed as a system interrupt. (The device data registered in the work area is cleared by turning the

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be counted must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:

CPU Module Type Name Interrupt Interval

High Performance model QCPU, Process CPU,

Universal model QCPU 1 ms

2. • When the High Performance model QCPU or Process CPU is used: The instruction is not processed when n = 0. 3. The SPD instruction can be used as many as 6 times within all the programs being executed. The seventh and the subsequent SPD instructions are not processed. 4. While the measurement is in execution (while the command input is ON) by the SPD instruction, the setting value cannot be changed. Turn OFF the command input before changing the setting value.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Mitsubishi Electronics QCPU — Operation Error diagram (page 361)
Fig. 526 · Operation Error

6.8 Other Convenient Instructions 6.8.7 Pulse density measurement (SPD)

(1) The following program measures the pulses input to X0 for a period of 500 ms when X10

Page 362 of the Mitsubishi Electronics QCPU user manual — Function
Page 362 · click to enlarge
Page 362

PLSY

6.8.8 Fixed cycle pulse output (PLSY)

PLSY

Process High performance Universal Basic Redundant

PLSY n2 n1 D PLSY

n1Frequency or the number of the device where frequency is stored (BIN 16 bits)

n2 : Outputs count or the number of the device where the outputs count is stored (BIN 16 bits)

: Number of the device to which pulses are output (bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

*1: Only output (Y) can be used.

Function

(1) Outputs a pulse at a frequency designated by n1 the number of times designated by n2, to

the output module with the output signal (Y) designated by .

(2) Frequencies between 1 to 100 Hz can be designated by n1.

If n1 is other than 1 to 100 Hz, the PLSY instruction will not be executed.

(3) The number of outputs that can be designated by n2 is between 1 to 65535 (0000H to

FFFFH).

If n2 is set to "0", pulses are continuously output.

(4) Only an output number corresponding to the output module can be designated for pulse

output at .

(5) Pulse output commences with the command leading edge of the PLSY instruction.

Pulse output is suspended when the PLSY instruction command goes OFF.

Show 7 more labels / short text on this page
Command · Setting · Internal Devices · Data · n1 –– · n2 –– · *1 –– ––
Page 363 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 363 · click to enlarge
Page 363

PLSY

1. With the PLSY instruction, the argument device data is registered in the work area of the CPU module and counting operation is processed as a system interrupt. (The device data registered in the work area is cleared by turning the

execution command OFF, or turning the STOP/RUN switch STOP RUN.) For this reason, the pulses that can be output must have longer ON and OFF times than the interrupt interval of the CPU module. The interrupt interval of individual modules is shown below:

CPU Module Type Name Interrupt Interval

High Performance model QCPU, Process CPU,

Universal model QCPU 1 ms

2. Do not change the argument for the PLSY instruction during pulse output directed by the PLSY instruction (while the execution command is ON). To change the argument, turn OFF the execution command. 3. The PLSY instruction can be used only once in all programs executed by the CPU module. The second and the subsequent PLSY instructions are not processed.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Mitsubishi Electronics QCPU — Operation Error diagram (page 363)
Fig. 527 · Operation Error

6.8 Other Convenient Instructions 6.8.8 Fixed cycle pulse output (PLSY)

(1) The following program outputs a 10 Hz pulse 5 times to Y20 when X0 is ON.

Page 364 of the Mitsubishi Electronics QCPU user manual — Function
Page 364 · click to enlarge
Page 364

PWM

6.8.9 Pulse width modulation (PWM)

PWM

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — PWM diagram (page 364)
Fig. 528

n1 : ON time or the number of the device where the ON time is stored (BIN 16 bits)

n2 : Frequency or the number of the device where the frequency is stored (BIN 16 bits)

Mitsubishi Electronics QCPU — PWM diagram (page 364)
Fig. 529

: Number of the device to which pulses are output (bits)

*1: Only output (Y) can be used.

Function

(1) Outputs the pulse of the cycle set by n2, for the amount of time ON designated by n1, to the

Mitsubishi Electronics QCPU — Function diagram (page 364)
Fig. 530 · Function

(2) The setting ranges for n1 and n2 are shown below:

CPU Module Type Name Setting Range for n1 and n2 [ms] *2

High Performance model QCPU, Process CPU,

1 to 65535 (0001H to FFFFH)

*2: The value specified by n1 should be less than the value specified by n2.

Universal model QCPU

Page 365 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 365 · click to enlarge
Page 365

PWM

1. With the PWM instruction, the argument device data is registered in the work area of the CPU module and counting operation is processed as a system interrupt. (The device data registered in the work area is cleared by turning the

execution command OFF, or turning the STOP/RUN switch STOP RUN.) The interrupt interval of individual modules is shown below:

CPU Module Type Name Interrupt Interval of n1, n2

High Performance model QCPU, Process CPU,

Universal model QCPU 1 ms

  • For this reason, the PWM instruction can be used only once within all the programs being executed by the CPU module. 2. The instruction is not processed in the following cases:
  • When both n1 and n2 are 0
  • When n1 n2
  • When the PWM instruction is executed twice or more. 3. Do not change the argument for the PWM instruction during pulse output directed by the PWM instruction (while the execution command is ON). To change the argument, turn OFF the execution command.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Mitsubishi Electronics QCPU — Operation Error diagram (page 365)
Fig. 531 · Operation Error

6.8 Other Convenient Instructions 6.8.9 Pulse width modulation (PWM)

(1) The following program outputs a 100 ms pulse once each second to Y20 when X0 is ON.

Page 366 of the Mitsubishi Electronics QCPU user manual — S D1 D2
Page 366 · click to enlarge
Page 366

MTR

6.8.10 Matrix input (MTR)

MTR

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — MTR diagram (page 366)
Fig. 532

: Head number of the devices where matrix input data will be stored (bits)

nNumber of input rows (BIN 16 bit)
Mitsubishi Electronics QCPU — MTR diagram (page 366)
Fig. 533

(1) It reads the input from 16 points n-rows starting from the input number designated by , then stores fetched input data from the device designated by onward.

(2) One row (16 points) can be fetched in 1 scan.

(3) Fetching from the first to the n th row is repeated.

(4) The first through the 16th points store the first row of data and the next 16 points store the

second row of data at the devices following the device designated by . For this reason, the space of 16 n points from the device designated by are occupied by the MTR instruction.

(5) is the output needed to select the row which will be fetched, and the system automatically turns it ON and OFF. It uses the n points from the device designated by .

(6) Only device numbers divisible by 16 can be designated for , and .

S D1 D2

(7) For n, a value in the range from 2 to 8 can be assigned.

(8) No processing is performed in the following cases.

  • The device number designated by , , or is not divisible by 16.

S D1 D2

  • The device designated by is outside the actual input range.
  • The device designated by is outside the actual output range.
  • The space 16 n points following the device designated by exceeds the relevant device range.
  • The value for n is not between 2 and 8.
Page 367 of the Mitsubishi Electronics QCPU user manual — MTR
Page 367 · click to enlarge
Page 367

MTR

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

Mitsubishi Electronics QCPU — MTR diagram (page 367)
Fig. 534
  • The device other than the input (X) was specified at . (Error code: 4101)
  • The device other than the output (Y) was specified at . (Error code: 4101)

(1) The following program fetches, when X0 is turned ON, the 16 points 3 matrix starting from X10, and stores the matrix into the area starting from M0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — MTR diagram (page 367)
Fig. 535

6.8 Other Convenient Instructions 6.8.10 Matrix input (MTR)

(1) Note that the MTR instruction directly operates on actual input and output.

The output that had been turned ON by the MTR instruction does not turn OFF when the MTR command turns OFF.

Turn OFF the specified output in the sequence program.

(2) The MTR instruction execution interval must be longer than the total of response time of

If the set interval is shorter than the value indicated above, an input cannot be read correctly. If the scan time in a sequence program is short, select the constant scan and set the scan time longer than the total of response time.

Step Instruction Device · [Operation]

Page 368 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 368 · click to enlarge
Page 368

MEMO

Page 369 of the Mitsubishi Electronics QCPU user manual — APPLICATION INSTRUCTIONS
Page 369 · click to enlarge
Page 369

APPLICATION INSTRUCTIONS

Category Processing Details Reference

Logical operations such as logical sum, logical product,

etc. Section 7.1

Rotation instruction Rotation of designated data Section 7.2

Shift instruction Shift of designated data Section 7.3

Bit processing instructions Sets and resets bit data; bit extraction Section 7.4

Data processing including data searching, sorting,

decoding and encoding Section 7.5

Repeated operation, subroutine program calls, index

modification in ladder units Section 7.6

Data table read/write Section 7.7

Read/write from/to the buffer memory of intelligent function

modules Section 7.8

Character code outputs to external devices and displays

on indicators Section 7.9

Check, status latch, sampling trace, program trace Section 7.10

Character string (ASCII code data) processing Section 7.11

BCD real number and floating point real number

processing Section 7.12

Data control instructions Output value controls based on input data range checks Section 7.13

Sets file registers; switches block numbers Section 7.14

Reading, writing, addition, subtraction, and conversion of

clock values; comparison between the clock values; and

Section 7.15

comparison between the date values

Reading, addition, and subtraction of clock values up to

millisecond Section 7.16

Program control instructions Instructions to switch program execution conditions Section 7.17

Instructions that do not fit in the above categories, such as

watchdog timer reset instructions and timing clock

Section 7.18

Show 20 more labels / short text on this page
section · Logical operation instructions · Data processing instructions · Structure creation instructions · Data Table Operation · Instructions · Buffer memory access · instruction · Display instructions · Debugging and failure · diagnosis instructions · Character string processing · instructions · Special function instructions · File register switching · instructions · Clock instructions · Expansion clock instruction · Other instructions · instructions
Page 370 of the Mitsubishi Electronics QCPU user manual — (XNR)
Page 370 · click to enlarge
Page 370

7.1 Logical operation instructions

(1) The logical operation instructions perform logical sum, logical product or other logical

operations in 1-bit units.

Category Processing Details Formula for

A B Y

Becomes 1 only when both input A and

input B are 1; otherwise, is 0 Y A · B

(AND)

Becomes 0 only when both input A and

input B are 0; otherwise, is 1 Y A + B

(OR)

Becomes 0 if input A and input B are

(XOR)

equal; otherwise, is 1 Y A · B + A · B

Becomes 1 if input A and input B are

equal; otherwise, is 0 Y (A + B)(A + B)

(XNR)

Show 7 more labels / short text on this page
Example · Operation · Logical product · Logical sum · Exclusive OR · NON exclusive · logical sum
Page 371 of the Mitsubishi Electronics QCPU user manual — D S
Page 371 · click to enlarge
Page 371

WAND(P),DAND(P)

7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))

WAND(P),DAND(P)

Basic Process High performance Redundant Universal

When two data are set ( , ( +1, ) ( +1, ) ( +1, ))

D S D D D S S D D

indicates an instruction symbol of WAND/DAND.

WAND,DAND

S D

WANDP,DANDP

P

S D

: Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)

K, H Other Bit Word Bit Word

R, ZR J \

U \G Zn Constants

Function

7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))

WAND

(1) A logical product operation is conducted for each bit of the 16-bit data of the device

designated at and the 16-bit data of the device designated at , and the results are stored in the device designated at .

D S

b0 b7 b15 b8 AND 1 0 1 b0 b7 b15 b8 D

0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0

0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7

(2) When bit devices are designated, the bit devices after the points designated as digits are

regarded as "0" in the operation. (See Program Example (2))

Show 5 more labels / short text on this page
Command · Command · Internal Devices · Setting · Data
Page 372 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 372 · click to enlarge
Page 372

WAND(P),DAND(P)

DAND

(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated

by and the 32-bit data for the device designated by , and stores the results at the device designated by .

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 372)
Fig. 536

1 0 0 1 1 0 0 1 1 b0 b15 b31 b16

0 1 0 1 1 0 0 1 0 1 0 0 0 1 b0 b15 b31 b16

0 1 0 1 1 0 1 0 0 0 1 b31 b16 b0 b15

(2) When bit devices are designated, the bit devices below the points designated as digits are

regarded as "0" in the operation. (See Program Example (2))

Operation Error

(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.

Program Example

(1) The following program masks the digit in the 10s place of the 4-digit BCD value at D10

(second digit from the end) to 0 when XA is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 372)
Fig. 537 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 372)
Fig. 538 · Program Example

0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 b0 b7 b15 b8 D10 BCD1234

1 0 1

0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7

[Operation]

Page 373 of the Mitsubishi Electronics QCPU user manual — WAND(P),DAND(P)
Page 373 · click to enlarge
Page 373

WAND(P),DAND(P)

(2) The following program performs a logical product operation on the data at D99 and D100,

and the 24-bit data between X30 and X47 when X8 is ON, and stores the results at D99 and D100.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 373)
Fig. 539

1 b31 D100, D99

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 373)
Fig. 540

0 1 1 0 1 0 1

0 1 1 0 1 0 1 b31

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 373)
Fig. 541

7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))

[Operation]

Page 374 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 374 · click to enlarge
Page 374

WAND(P),DAND(P)

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))

S1 S2 D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 374)
Fig. 542

, : Data for a logical product operation or the head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the logical product operation result will be stored (BIN 16/32 bits)

WAND

(1) A logical product operation is conducted for each bit of the 16-bit data of the device

designated at and the 16-bit data of the device designated at , and the results are

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 374)
Fig. 543

1 0 1 b0 b7 b15 b8 S1

0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0

0 0 0 1 0 0 1 0 1 0 0 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation. (See Program Examples (1) and (2))

DAND

(1) Conducts a logical product operation on each bit of the 32-bit data for the device designated

by and the 32-bit data for the device designated by , and stores the results at the

S1 S2

device designated by .

Mitsubishi Electronics QCPU — S1 S2 diagram (page 374)
Fig. 544

1 0 0 1 1 0 0 1 1 b0 b15 b31 b16

0 1 0 1 1 0 0 1 0 1 0 0 0 1 b0 b15 b31 b16

0 1 0 1 1 0 1 0 0 0 1 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

Page 375 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 375 · click to enlarge
Page 375

WAND(P),DAND(P)

as "0" in the operation. (See Program Example (3))

Operation Error

(1) There are no operation errors associated with the WAND(P) or DAND(P) instruction.

Program Example

(1) The following program performs a logical product operation on the data from X10 to X1B and

the data at D33 when XA is ON, and stores the results at D40. [Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 375)
Fig. 545 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 375)
Fig. 546 · Program Example

0 1 0 0 1 0 0 1 0 0 X10 X17 X1B to X10

0 1 0 1 1 1 0 1 0

0 1 0 0 1 0 0 1 1 0 b15 b8 b0 b7

(2) The following program performs a logical product operation on the data at D10 and at D20

when X1C is ON, and stores the results from M0 to M11. [Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 375)
Fig. 547 · Program Example

7.1 Logical operation instructions 7.1.1 Logical products with 16-bit and 32-bit data (WAND(P),DAND(P))

0 1 0 1 0 1 0 1 0 1 0 1 0 b0 b7 b15 D10

0 0 0 1

1 0 1 0 1 0 1 0 1 0 1 0 M15 M8 M0 M7

[Operation]

Page 376 of the Mitsubishi Electronics QCPU user manual — WAND(P),DAND(P)
Page 376 · click to enlarge
Page 376

WAND(P),DAND(P)

(3) The following program masks the digit in the hundred-thousands place of the 8-digit BCD

value at D10 and D11 (sixth digit from the end) to 0 when XA is ON, and outputs the results to from Y10 to Y2B.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 376)
Fig. 548

0 D10, D11 (BCD12345678) 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 b31 b16 b0 b15

Mitsubishi Electronics QCPU — WAND(P),DAND(P) diagram (page 376)
Fig. 549

1 H FF0FFFFF 1 0 1 b31 b16 b0 b15

1 Y2B to Y10 1 1 0 0 0 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 Y20 Y10 Y1F

Y2B Y28 Y27 Y24 Y23 Y1CY1B Y18 Y17 Y14 Y13

[Operation]

Page 377 of the Mitsubishi Electronics QCPU user manual — AND
Page 377 · click to enlarge
Page 377

BKAND(P)

7.1.2 Block logical products (BKAND(P))

BKAND(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKAND(P) diagram (page 377)
Fig. 550

*1 : Head number of the devices where data on which a logical operation will be conducted is stored

*1 : Data for a logical operation or head number of the devices where the data for the logical operation is

stored (BIN 16 bits)

*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)

K, H Other Bit Word Bit Word

R, ZR J \

U \G Zn Constants

*1 ––

*1 –– –– ––

*1 ––

*1: The same device number can be specified for and or and .

S1 D S2 D

7.1 Logical operation instructions 7.1.2 Block logical products (BKAND(P))

Function

(1) Performs a logical product operation on the data located in the n points from the device

designated by , and the data located in the n points from the device designated by , and

S1 S2

stores the results into the area starting from the device designated by .

b15 b8 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b7 b0

b15 b8 0 0 1 0 1 0 0 b7 b0

S1 S2

1 0 1

1 0

0 1

0 1

AND

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

1

1 0 1 0

1 0 +(n 1)

b15 b8 0 0 1 1 0 1 1 0 b7 b0

1 0

0 1

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

1 0

Show 19 more labels / short text on this page
(BIN 16 bits) · Internal Devices · Setting · Data · n –– · + 1 · + 1 · + 2 · + 2 · n · n · +(n 2) · +(n 2) · +(n 1) · + 1 · + 2 · n · +(n 2) · + (n 1)
Page 378 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 378 · click to enlarge
Page 378

BKAND(P)

(2) The constant designated by can be between -32768 and 32767 (BIN 16-bit data).

Mitsubishi Electronics QCPU — BKAND(P) diagram (page 378)
Fig. 551

b15 b8 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b7 b0

1 0 1

0 1

b15 b8b7 b0 1 0 1

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

1 0 1 0 + (n 1)

b15 b8 0 0 1 1 0 0 1 1 0 1 1 b7 b0

1 0 1

0 1

0 1 0 1 0 1 0 1 0 1 0 1

1 0

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , , or device exceeds the range of that device.

S1 S2 D

(Error code4101)
  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by .

(except when the same device is specified for and ) (Error code: 4101)

S1 D

  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by .

(except when the same device is specified for and ) (Error code: 4101)

S2 D

Program Example

(1) The following program performs a logical product operation on the data stored at D100 to

D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S2 D diagram (page 378)
Fig. 552
Mitsubishi Electronics QCPU — S2 D diagram (page 378)
Fig. 553

b15 b8 1 0 1 b7 b0

b15 b8 1 0 b7 b0

1 0

0 1 0

0 1

0 1

b15 b8 1 0 b7 b0

0 1 0

0 1

[Operation]

Page 379 of the Mitsubishi Electronics QCPU user manual — OR
Page 379 · click to enlarge
Page 379

WOR(P),DOR(P)

7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))

WOR(P),DOR(P)

Basic Process High performance Redundant Universal

When two data are set ( , ( +1, ) ( +1, ) ( +1, ))

D S D D D S S D D

indicates an instruction symbol of WOR/DOR.

WOR, DOR

S D

WORP, DORP

P

S D

: Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

Function

7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))

WOR

(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by

and the 16-bit data of the device designated by , and stores the results at the device

D S

designated by .

1 0 1 1 b0 b7 b15 b8 0 D

OR

b0 b7 b15 b8

1 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0

1 1 0 1 0 0 1 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation.

Show 5 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data
Page 380 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 380 · click to enlarge
Page 380

WOR(P),DOR(P)

DOR

(1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by

and the 32-bit data of the device designated by , and stores the results at the device

D S

designated by .

Mitsubishi Electronics QCPU — D S diagram (page 380)
Fig. 554

1 0 1 1 b0 b15 b31 b16

1 0 0 1 0 0 0 1 1 1 0 0 1 1 b0 b15 b31 b16

1 0 0 0 1 1 1 0 0 1 1 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation.

Operation Error

(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.

Program Example

(1) The following program performs a logical sum operation on the data at D10 and D20 when

XA is turned ON, and stores the results at D10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 380)
Fig. 555 · Program Example

OR 1 1 0 0 1 1 0 0 1 0

0 1 0 1 1 1 0 0 1 0 0 0 1

1 1 0 0 1 0 0 0 1

Step Instruction Device · [Operation]

Page 381 of the Mitsubishi Electronics QCPU user manual — WOR(P),DOR(P)
Page 381 · click to enlarge
Page 381

WOR(P),DOR(P)

(2) The following program performs a logical sum operation on the 32-bit data from X0 to X1F,

and on the hexadecimal value FF00FF00H when XB is turned ON, and stores the results at D66 and D67.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WOR(P),DOR(P) diagram (page 381)
Fig. 556
Mitsubishi Electronics QCPU — WOR(P),DOR(P) diagram (page 381)
Fig. 557

1 0 1 0 1 0 1 0 X0 XF X1F X10

1 0 0 0 1 1 1 0 b0 b15 b31 b16

1 0 0 0 1 0 1 0 b31 b16 b0 b15

Mitsubishi Electronics QCPU — WOR(P),DOR(P) diagram (page 381)
Fig. 558

7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))

[Operation]

Page 382 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 382 · click to enlarge
Page 382

WOR(P),DOR(P)

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))

S1 S2 D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — WOR(P),DOR(P) diagram (page 382)
Fig. 559

, : Data for a logical sum operation or head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the logical sum operation result will be stored (BIN 16/32 bits)

WOR

(1) Conducts a logical sum operation on each bit of the 16-bit data of the device designated by

and the 16-bit data of the device designated by , and stores the results at the device

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 382)
Fig. 560

1 1 0 1 0 b0 b7 b15 b8 S1

0 1 1 0 0 1 1 0 1 1

1 1 0 0 1 1 0 0 1 0 0 1 1

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation. (See Program Example (1))

Page 383 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 383 · click to enlarge
Page 383

WOR(P),DOR(P)

DOR

(1) Conducts a logical sum operation on each bit of the 32-bit data of the device designated by

and the 32-bit data of the device designated by , and stores the results at the device

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 383)
Fig. 561

0 0 1 1 0 0 1 1 0 0 1 1 0 0 b0 b15 b31 b16

0 0 1 0 1 1 0 1 b0 b15 b31 b16

0 0 1 0 0 1 b31 b16 b0 b15

(2) When bit devices are designated, the bit devices below the points designated as digits are

regarded as "0" in the operation. (See Program Example (2))

Operation Error

(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.

Program Example

(1) The following program performs a logical sum operation on the data from X10 to X1B, and

the data at D33, and stores the result at Y30 to Y3B when XA is ON.

Mitsubishi Electronics QCPU — Program Example diagram (page 383)
Fig. 562 · Program Example

7.1 Logical operation instructions 7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))

0 1 1 0 1 1 0 X10 X17 X1B to X10

1 0 0 1 1 0 0 1 0 0 1 1

1 0 0 1 1 1 0 1 1 0 1 1 0 0 1 1 Y38 Y30 Y37

Page 384 of the Mitsubishi Electronics QCPU user manual — WOR(P),DOR(P)
Page 384 · click to enlarge
Page 384

WOR(P),DOR(P)

(2) The following program performs a logical sum operation on the 32-bit data at D0 and D1,

and the 24-bit data from X20 to X37, and stores the results at D23 and D24 when M8 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WOR(P),DOR(P) diagram (page 384)
Fig. 563

1 0 0 0 1 1 0 0 1 1 1 b0 b23 b31 b24

0 1 0 0 1 0 0 1 X20 X37

1 0 0 0 1 1 0 1 b31 b16 b0 b15

Step Instruction Device · [Operation]

Page 385 of the Mitsubishi Electronics QCPU user manual — OR
Page 385 · click to enlarge
Page 385

BKOR(P)

7.1.4 Block logical sum operations (BKOR(P))

BKOR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKOR(P) diagram (page 385)
Fig. 564

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)

*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)

*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

*1 ––

*1 –– –– ––

*1 ––

*1: The same device number can be specified for and or and .

S1 D S2 D

7.1 Logical operation instructions 7.1.4 Block logical sum operations (BKOR(P))

Function

(1) Performs a logical sum operation on the data located in the n points from the device

designated by , and the data located in the n points from the device designated by , and

S1 S2

stores the results into the area starting from the device designated by .

b15 b8 0 1 0 1 b7 b0

b15 b8 0 1 0 1 1 b7 b0

1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0

1 1 0 0 1 1 0 1 1 0 0 1 1

0 1

0 1 0

OR

0 1 0

0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1

1 0

0 0 1 0 1

b15 b8 0 1 0 0 1 b7 b0

1 1 0 0 1 1 0 0 1

0 1

0 0 1 0 0 1 1

1 0 1

Show 19 more labels / short text on this page
Setting · Internal Devices · Data · n –– · + 1 · + 1 · + 2 · + 2 · n · n · +(n 2) · +(n 2) · +(n 1) · +(n 1) · + 1 · + 2 · n · +(n 2) · +(n 1)
Page 386 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 386 · click to enlarge
Page 386

BKOR(P)

Mitsubishi Electronics QCPU — BKOR(P) diagram (page 386)
Fig. 565

(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

b15 b8 0 0 1 0 0 1 1 0 1 1 b7 b0

0 1 0 1 0 1 0 1 0 1 0 1 0

1 1 0 1 1 0 1 0 1 1 0 1

b15 b8 b7 b0 1 0

0 1 1 0 1 1

1 1 0 1 0 1 1

b15 b8 0 1 1 b7 b0

1

1

1 0 1 0 1 0 1 0

1 1 0 0 1 0 0 1 1

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , , or device exceeds the range of that device.

S1 S2 D

(Error code4101)
  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by . (except when the same

device is specified for and ) (Error code: 4101)

S1 D

  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by . (except when the same

device is specified for and ) (Error code: 4101)

S2 D

Program Example

(1) The following program performs a logical sum operation on the data stored at D100 to D102

and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S2 D diagram (page 386)
Fig. 566

b15 b8 0 0 1 b7 b0

b15 b8 0 0 1 1 0 b7 b0

0 1

0 1 0

1 1 0 1 0 0

0 1 0 1

b15 b8 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 b7 b0

1

1 0 1

Step Instruction Device · [Operation]

Page 387 of the Mitsubishi Electronics QCPU user manual — XOR
Page 387 · click to enlarge
Page 387

WXOR(P),DXOR(P)

7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))

WXOR(P),DXOR(P)

Basic Process High performance Redundant Universal

When two data are set ( , ( +1, ) ( +1, ) ( +1, ))

D S D D D S S D D

indicates an instruction symbol of WXOR/DXOR.

WXOR, DXOR

S D

WXORP, DXOR

P

S D

: Data for an exclusive OR operation or head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)

K, H Other Bit Word Bit Word

R, ZR J \

U \G Zn Constants

Function

7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))

WXOR

(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated

by and the 16-bit data of the device designated by , and stores the results at the device

D S

designated by .

0 0 1 0 1 0 1 0 1 0 1 0 b0 b7 b15 b8 1 1 1 0 D

XOR

b0 b7 b15 b8

0 0 0 1 1 0 1 0

1 0 1 1 0 0 0 1 0 1 0 1 1 0 1 0 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

Show 5 more labels / short text on this page
Command · Command · Internal Devices · Setting · Data
Page 388 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 388 · click to enlarge
Page 388

WXOR(P),DXOR(P)

DXOR

(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated

by and the 32-bit data of the device designated by , and stores the results at the device

D S

designated by .

Mitsubishi Electronics QCPU — D S diagram (page 388)
Fig. 567

0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b15 b31 b16

0 1 1 0 0 1 1 0 1 0 0 1 1 0 b0 b15 b31 b16

0 0 1 1 0 0 1 1 1 0 0 1 1 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

Operation Error

(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.

Program Example

(1) The following program performs an exclusive OR operation on the data at D10 and D20

when XA is ON, and stores the result at D10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 388)
Fig. 568 · Program Example

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b7 b15 b8 D10

0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1

0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 b15 b8 b0 b7

Step Instruction Device · [Operation]

Page 389 of the Mitsubishi Electronics QCPU user manual — Remark
Page 389 · click to enlarge
Page 389

WXOR(P),DXOR(P)

(2) The following program compares the bit pattern of the 32-bit data from X20 to X3F with the

bit pattern of the data at D9 and D10 when X6 is ON, and stores the number of differing bits at D16.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WXOR(P),DXOR(P) diagram (page 389)
Fig. 569
Mitsubishi Electronics QCPU — WXOR(P),DXOR(P) diagram (page 389)
Fig. 570

X3F X30 X20 X2F 1 X3F to X20 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

X3C X3B X38 X37 X34 X33 X2CX2B X28 X27 X24 X23

0 D10,D9 1 0 0 1 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 b31 b16 b0 b15

1 D10,D9 1 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 1 0 0 0

Remark

See Section 7.5.2 for more information on the DSUMP instruction.

Mitsubishi Electronics QCPU — Remark diagram (page 389)
Fig. 571 · Remark

7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))

[Operation]

Page 390 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 390 · click to enlarge
Page 390

WXOR(P),DXOR(P)

When three data are set ( ( +1, ) ( +1, ) ( +1, ))

S1 S2 D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — WXOR(P),DXOR(P) diagram (page 390)
Fig. 572

, : Data for an exclusive OR operation or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — WXOR(P),DXOR(P) diagram (page 390)
Fig. 573

: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)

WXOR

(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated

by and the 16-bit data of the device designated by , and stores the results at the device

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 390)
Fig. 574

XOR 0 0 1 0 0 b0 b7 b15 b8 0

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation. (See Program Example (1))

(BIN 16/32 bits)

Page 391 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 391 · click to enlarge
Page 391

WXOR(P),DXOR(P)

DXOR

(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated

by and the 32-bit data of the device designated by , and stores the results at the device

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 391)
Fig. 575

1 0 1 b0 b15 b31 b16

1 0 1 0 1 0 1 1 0 0 b0 b15 b31 b16

0 1 0 1 0 1 0 0 0 1 1 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation.

Operation Error

(1) There are no operation errors associated with the WXOR(P) or DXOR(P) instructions.

Program Example

(1) The following program conducts an exclusive OR operation on the data from X10 to X1B

and the data at D33 when X10 is ON, and outputs the result to Y30 to Y3B.

Mitsubishi Electronics QCPU — Program Example diagram (page 391)
Fig. 576 · Program Example

7.1 Logical operation instructions 7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))

0 1 0 1 0 1 0 1 0 1 0 1 X10 X17 X1B to X10

1 0 0 1 1 0 0 1 1 1 0 0 1

0 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 Y38 Y30 Y37

Page 392 of the Mitsubishi Electronics QCPU user manual — WXOR(P),DXOR(P)
Page 392 · click to enlarge
Page 392

WXOR(P),DXOR(P)

(2) The following program conducts an exclusive OR operation on the data at D20 and D21, and

the data at D30 and D31 when X10 is turned ON, and stores the results at D40 and D41.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WXOR(P),DXOR(P) diagram (page 392)
Fig. 577

1 1 0 0 1 0 1 0 1 1 0 0 1 1 b0 b15 b31 b16

0 1 1 0 0 0 1 0 1 0 1 b0 b15 b31 b16

1 1 0 0 0 1 1 0 1 0 0 1 1 0 b31 b16 b0 b15

Step Instruction Device · [Operation]

Page 393 of the Mitsubishi Electronics QCPU user manual — XOR
Page 393 · click to enlarge
Page 393

BKXOR(P)

7.1.6 Block exclusive OR operations (BKXOR(P))

BKXOR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKXOR(P) diagram (page 393)
Fig. 578

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)

*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored

*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

*1 ––

*1 –– –– ––

*1 ––

*1: The same device number can be specified for and or and .

S1 D S2 D

7.1 Logical operation instructions 7.1.6 Block exclusive OR operations (BKXOR(P))

Function

(1) Performs an exclusive OR operation on the data located in the n points from the device

designated by , and the data located in the n points from the device designated by , and

S1 S2

stores the results into the area starting from the device designated by .

b15 b8 0 0 1 1 0 0 1 1 0 1 1 b7 b0

b15 b8 0 0 1 0 1 0 0 b7 b0

1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0

0 0 1 0 1 1 0 0

1 0 1 0

0 1

XOR

0 1

1 0 1

0 1 0

0 1

b15 b8 0 1 0 0 1 b7 b0

1 0 1 1 0

1 0 1

1 0

0 1

Show 20 more labels / short text on this page
(BIN 16 bits) · Setting · Internal Devices · Data · n –– · + 1 · + 1 · + 2 · + 2 · n · n · +(n 2) · +(n 2) · +(n 1) · +(n 1) · + 1 · + 2 · n · +(n 2) · +(n 1)
Page 394 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 394 · click to enlarge
Page 394

BKXOR(P)

(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

Mitsubishi Electronics QCPU — BKXOR(P) diagram (page 394)
Fig. 579

1 0

0 1 0

0 1

b15 b8b7 b0 1

1 0 1

0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

b15 b8 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 b7 b0

1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0

1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1

1

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , , or device exceeds the range of that device.

S1 S2 D

(Error code4101)
  • The device range for n points starting from the device designated by overlaps with the device range for n points starting from the device designated by . (except when the same device is specified for and ) (Error code: 4101)

S1 D

  • The device range for n points starting from the device designated by overlaps with the device range for n points starting from the device designated by . (except when the same device is specified for and ) (Error code: 4101)

S2 D

Program Example

(1) The following program performs an exclusive OR operation on the data stored at D100 to

D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S2 D diagram (page 394)
Fig. 580
Mitsubishi Electronics QCPU — S2 D diagram (page 394)
Fig. 581

b15 b8 0 b7 b0

b15 b8 1 0 b7 b0

0 1

0 1 0 1 0 1 0 1

0 1 0

b15 b8 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 b7 b0

0 1 0 1

0 1 0 1 0 1 0 1

[Operation]

Page 395 of the Mitsubishi Electronics QCPU user manual — XNR
Page 395 · click to enlarge
Page 395

WXNR(P),DXNR(P)

7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))

WXNR(P),DXNR(P)

Basic Process High performance Redundant Universal

When two data are set ( , ( +1, ) ( +1, ) ( +1, ))

D S D D D S S D D

indicates an instruction symbol of WXNR/DXNR.

WXNR, DXNR

S D

WXNRP, DXNRP

P

S D

: Data for an exclusive NOR operation or head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the exclusive NOR operation result will be stored (BIN 16/32 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

Function

7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))

WXNR

(1) Conducts an exclusive NOR operation on the 16-bit data of the device designated by and

the 16-bit data of the device designated by , and stores the results at the device

designated by .

1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 b0 b7 b15 b8 D

XNR

b0 b7 b15 b8

1 0 1 1 0

1 0 1 0 0 1 0 1 0 1 0 1 0 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

Show 5 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data
Page 396 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 396 · click to enlarge
Page 396

WXNR(P),DXNR(P)

DXNR

(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by and

the 32-bit data of the device designated by , and stores the results at the device

designated by .

Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 396)
Fig. 582

1 1 0 1 1 b0 b15 b31 b16

1 0 1 0 0 b0 b15 b31 b16

1 1 0 0 1 0 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

Operation Error

(1) There are no operation errors associated with the WXNR(P) or DXNR(P) instruction.

Program Example

(1) The following program compares the bit patterns of the 16-bit data located from X30 to X3F

with the bit patterns of the 16-bit data at D99 when XC is ON, and stores the number of identical bit patterns at D7.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 396)
Fig. 583 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 396)
Fig. 584 · Program Example

XNR 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X30 X37 X3F X38

1 1 0 0 1 0 0 1 1 0 1 0 1 0 1 1

0 1 1 0 0 0 1 1 0 1 b15 b8 b0 b7

[Operation]

Page 397 of the Mitsubishi Electronics QCPU user manual — WXNR(P),DXNR(P)
Page 397 · click to enlarge
Page 397

WXNR(P),DXNR(P)

(2) The following program compares the bit patterns of the 32-bit data located from X20 to X3F

with the bit patterns of the data at D16 and D17 when X6 is ON, and stores the number of identical bit patterns at D18.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 397)
Fig. 585
Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 397)
Fig. 586

X3F X30 X20 X2F 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

X3C X3B X38 X37 X34 X33 X2CX2B X28 X27 X24 X23

1 D17,D16 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 0 0 1 1 0 1 1 b31 b16 b0 b15

1 D17,D16 0 1 0 1 1 0 0 1 1 0 0 0 1 1 0 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 1

See 7.5.2 for more information on the SUMP/DSUMP instructions.

7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))

[Operation]

Page 398 of the Mitsubishi Electronics QCPU user manual — WXNR
Page 398 · click to enlarge
Page 398

WXNR(P),DXNR(P)

When three data are set ( , ( +1, ) ( +1, ) ( +1, ))

S1 S2 D S1 S1 S2 S2 D D

Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 398)
Fig. 587

, : Data for an exclusive NOR operation or head number of the devices where the data is stored (BIN 16/32 bits)

: Head number of the devices where the exclusive NOR operation result will be stored (BIN 16/32 bits)

WXNR

(1) Conducts an exclusive NOR operation on the 16-bit data of the device designated by and

the 16-bit data of the device designated by , and stores the results at the device

Mitsubishi Electronics QCPU — WXNR diagram (page 398)
Fig. 588

XNR 1 0 1 0 b0 b7 b15 b8 S1

0 0 1 0 1 1 0 0 1 1

0 0 1 1 0 0 1 1 0 0 1 0 0 b15 b8 b0 b7

(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.

Page 399 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 399 · click to enlarge
Page 399

WXNR(P),DXNR(P)

DXNR

(1) Conducts an exclusive NOR operation on the 32-bit data of the device designated by and

the 32-bit data of the device designated by , and stores the results at the device

Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 399)
Fig. 589

0 0 1 1 0 0 1 0 0 1 1 b0 b15 b31 b16

S2 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b0 b15 b31 b16

1 0 0 1 1 0 0 1 0 1 1 0 0 1 b31 b16 b0 b15

(2) For bit devices, the bit devices after the points designated by digit specification are regarded

as "0" in the operation.

Operation Error

(1) There are no operation errors associated with the WXNR(P) or DXNR(P) instructions.

Program Example

(1) The following program performs an exclusive NOR operation on the 16-bit data from X30 to

X3F and the data at D99 when X0 is turned ON, and stores the results to D7.

Mitsubishi Electronics QCPU — Program Example diagram (page 399)
Fig. 590 · Program Example

7.1 Logical operation instructions 7.1.7 16-bit and 32-bit data exclusive NOR operations (WXNR(P),DXNR(P))

XNR 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X30 X37 X3F X38

1 1 0 0 1 0 0 1 0 0

0 1 1 0 0 0 1 1 0 1 0 1 0 1 1 0 b15 b8 b0 b7

Page 400 of the Mitsubishi Electronics QCPU user manual — WXNR(P),DXNR(P)
Page 400 · click to enlarge
Page 400

WXNR(P),DXNR(P)

(2) The following program performs an exclusive NOR operation on the 32-bit data at D20 and

D21 and the data at D10 and D11 when X10 is turned ON, and stores the result to D40 and D41.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WXNR(P),DXNR(P) diagram (page 400)
Fig. 591

0 1 0 1 1 0 1 0 1 0 0 1 0 1

0 1 1 0 0 1 0 1 1 0 1 1 0 0 b0 b15 b31 b16

1 1 0 1 1 0 1 1 0 b31 b16 b0 b15

Step Instruction Device · [Operation]

Page 401 of the Mitsubishi Electronics QCPU user manual — XNR
Page 401 · click to enlarge
Page 401

BKXNR(P)

7.1.8 Block exclusive NOR operations (BKXNR(P))

BKXNR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKXNR(P) diagram (page 401)
Fig. 592

*1 : Head number of the devices where data on which a logical operation will be conducted is stored (BIN 16 bits)

*1 : Data for a logical operation or head number of the devices where the data for the logical operation is stored (BIN 16 bits)

*1 : Head number of the devices where the operation result will be stored (BIN 16 bits) n : Number of operation data blocks (BIN 16 bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

*1 ––

*1 –– –– ––

*1 ––

*1: The same device number can be specified for and or and .

S1 D S2 D

7.1 Logical operation instructions 7.1.8 Block exclusive NOR operations (BKXNR(P))

Function

(1) Performs an exclusive NOR operation on the data located in the n points from the device

designated by , and the data located in the n points from the device designated by , and

S1 S2

stores the results into the area starting from the device designated by .

b15 b8 0 1 0 b7 b0

b15 b8 0 1 0 b7 b0

S1 S2

1 0 1 0

0 1 0

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

1 0

XNR

0 1

1 0

1 0 + (n 1)

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 +(n 1)

b15 b8 1 0 1 b7 b0

0 1

1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1

0 1 0

1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1

Show 17 more labels / short text on this page
Setting · Internal Devices · Data · n –– · + 1 · + 1 · + 2 · + 2 · n · n · + (n 2) · +(n 2) · + 1 · + 2 · n · +(n 2) · + (n 1)
Page 402 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 402 · click to enlarge
Page 402

BKXNR(P)

Mitsubishi Electronics QCPU — BKXNR(P) diagram (page 402)
Fig. 593

(2) The constant designated by can be between 32768 and 32767 (BIN 16-bit data).

b15 b8 0 1 b7 b0

0 1 0

1 1 0 0 1 1 0 1 1 0 0 1 1

1 0 1 0

1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0

0 1 0

b15 b8 0 1 0 b7 b0

0 1

1 1 0 1 1 0 0 1 0 0

0 1

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , , or device exceeds the range of that device.

S1 S2 D

(Error code4101)
  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by . (except when the same

device is specified for and ) (Error code: 4101)

S1 D

  • The device range for n points starting from the device designated by overlaps with the

device range for n points starting from the device designated by . (except when the same

device is specified for and ) (Error code: 4101)

S2 D

Program Example

(1) The following program performs an exclusive NOR operation on the data stored at D100 to

D102 and the data stored at R0 to R2 when X20 is turned ON, and stores the operation result into the area starting from D200.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S2 D diagram (page 402)
Fig. 594
Mitsubishi Electronics QCPU — S2 D diagram (page 402)
Fig. 595

b15 b8 1 b7 b0

0 1

0 1

1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0

1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1

1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1

0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0

[Operation]

Page 403 of the Mitsubishi Electronics QCPU user manual — ROR(P),RCR(P)
Page 403 · click to enlarge
Page 403

ROR(P),RCR(P)

7.2 Rotation instruction

7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))

ROR(P),RCR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ROR(P),RCR(P) diagram (page 403)
Fig. 596

: Head number of the devices to rotate (BIN 16 bits) n : Number of rotations (0 to 15) (BIN 16 bits)

Mitsubishi Electronics QCPU — ROR(P),RCR(P) diagram (page 403)
Fig. 597

7.2 Rotation instruction 7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))

(1) Rotates 16-bit data of the device designated by , not including the carry flag, n-bits to the right. The carry flag is ON or OFF depending on the status prior to the execution of the ROR instruction.

b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0

0 1 1 0

b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0

0 0 1 0 1

b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0

0 0 0 1 0 1

b8 b15 b14 b13 b12 b11 b10 b9 b7 b6 b5 b4 b3 b2 b1 b0

Page 404 of the Mitsubishi Electronics QCPU user manual — of 18 / 16 1 is "2". RCR
Page 404 · click to enlarge
Page 404

ROR(P),RCR(P)

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.

The number of bits by which a rotation is carried out is the remainder of n/(specified number of bits).

For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12

1 is "3", and the data is rotated 3 bits.

(3) Specify any of 0 to 15 as n.

If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.

For example, when n 18, the contents are rotated two bits to the right since the remainder

of 18 / 16 1 is "2". RCR

(1) Rotates 16-bit data of the device designated by , including the carry flag, n-bits to the right.

The carry flag is ON or OFF depending on the status prior to the execution of the ROR instruction.

Mitsubishi Electronics QCPU — of 18 / 16 1 is "2". RCR diagram (page 404)
Fig. 598 · of 18 / 16 1 is "2". RCR

b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0

1 0 1 0 0

b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0

0 1

b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0

1 0 1 0

b7 b15 b8 b14 b13 b12 b11 b10 b9 b6 b5 b4 b3 b2 b1 b0

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.

The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).

For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12

1 is "3", and the data is rotated 3 bits.

(3) Specify any of 0 to 15 as n.

If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.

For example, when n 18, the contents are rotated two bits to the right since the remainder

of 18 / 16 1 is "2".

Page 405 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 405 · click to enlarge
Page 405

ROR(P),RCR(P)

Operation Error

(1) There are no operation errors associated with the ROR(P) or RCR(P) instructions.

Program Example

(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the

right when XC is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 405)
Fig. 599 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 405)
Fig. 600 · Program Example

0 1

1 1 1 0 1 b15 b8 b0 b7

Contents of b15 to b4 before execution Content of b3 before execution

(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the right

when XC is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 405)
Fig. 601 · Program Example

7.2 Rotation instruction 7.2.1 Right rotation of 16-bit data (ROR(P),RCR(P))

0 1

1 1 * 0 1 b15 b8 b0 b7

Contents of b15 to b4 before execution Content of b3 before execution

* ON/OFF status of the carry flag depends on its status before the execution of ROR.

[Operation]

Page 406 of the Mitsubishi Electronics QCPU user manual — ROL
Page 406 · click to enlarge
Page 406

ROL(P),RCL(P)

7.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))

ROL(P),RCL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ROL(P),RCL(P) diagram (page 406)
Fig. 602

: Head number of the devices to rotate (BIN 16 bits) n : Number of rotations (0 to 15) (BIN 32 bits)

Mitsubishi Electronics QCPU — ROL(P),RCL(P) diagram (page 406)
Fig. 603

ROL

(1) Rotates the 16-bit data of the device designated at , not including the carry flag, n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of ROL instruction.

Mitsubishi Electronics QCPU — ROL diagram (page 406)
Fig. 604

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 1 0 0 1 0

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 0 0 1 1 0

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 1 0 1 0

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

Page 407 of the Mitsubishi Electronics QCPU user manual — (SM700)
Page 407 · click to enlarge
Page 407

ROL(P),RCL(P)

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.

The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).

For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12

1 is "3", and the data is rotated 3 bits.

(3) Specify any of 0 to 15 as n.

If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.

For example, when n 18, the data is rotated 2 bits to the left since the remainder of 18/16

1 is "2".

RCL

(1) Rotates the 16-bit data of the device designated by , including the carry flag, n-bits to the left.

The carry flag turns ON or OFF depending on its status prior to the execution of RCL instruction.

(SM700)

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 1 0 0 1 0

Left rotation (1 bit)

(SM700)

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

Left rotation (1 bit)

Value of carry flag

(SM700)

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

7.2 Rotation instruction 7.2.2 Left rotation of 16-bit data (ROL(P),RCL(P))

Left rotation (n bits)

Value of carry flag

(SM700)

b9 b15 b10 b14 b13 b12 b11 b8 b7 b6 b5 b4 b3 b2 b1 b0

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.

The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).

For example, when n 15 and (specified number of bits) 12 bits, the remainder of 15/12

1 is "3", and the data is rotated 3 bits.

(3) Specify any of 0 to 15 as n.

If the value specified as n is 16 or greater, the remainder of n / 16 is used for rotation.

For example, when n 18, the data is rotated 2 bits to the left since the remainder of 18/16

1 is "2".

Show 7 more labels / short text on this page
Carry flag · Carry flag · Value of b15 · Carry flag · Value of b15 · Carry flag · Value of b(16-n)
Page 408 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 408 · click to enlarge
Page 408

ROL(P),RCL(P)

Operation Error

(1) There are no operation errors associated with the ROL(P) or RCL(P) instructions.

Program Example

(1) The following program rotates the contents of D0, not including the carry flag, 3 bits to the

left when XC is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 408)
Fig. 605 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 408)
Fig. 606 · Program Example

0 1

1 0 1 1 b15 b8 b0 b7

Contents of b15 to b13 before execution Contents of b11 to b0 before execution Content of b12 before execution

(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the left

when XC is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 408)
Fig. 607 · Program Example

0 1

1 0 1 b15 b8 b0 b7

Contents of b15 and b14 before execution Contents of b11 to b0 before execution Content of b12 before execution Content of b13 before execution Content of carry flag SM700

* ON/OFF status of the carry flag depends on its status before the execution of RCL.

[Operation] · Step Instruction Device · [Operation]

Page 409 of the Mitsubishi Electronics QCPU user manual — D D
Page 409 · click to enlarge
Page 409

DROR(P),DRCR(P)

7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))

DROR(P),DRCR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 409)
Fig. 608

: Head number of the devices to rotate (BIN 32 bits) n : Number of rotations (0 to 31) (BIN 16 bits)

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 409)
Fig. 609

DROR

(1) The 32-bit data of the device designated at , not including the carry flag, is rotated n-bits to the right.

7.2 Rotation instruction 7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))

The carry flag turns ON or OFF depending on its status prior to the execution of the DROR instruction.

D D

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification.

The number of bits by which a rotation is executed is the remainder of n/(specified number of bits).

For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24

1 is "7", and the data is rotated 7 bits.

(3) Specify any of 0 to 31 as n.

If the value specified as n is 32 or greater, the remainder of n / 32 is used for rotation.

For example, when n 34, the contents are rotated two bits to the right since the remainder

of 34 / 32 1 is "2".

Show 4 more labels / short text on this page
+1 · Carry flag · (SM700) b1 b0 · n-bit rotation
Page 410 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 410 · click to enlarge
Page 410

DROR(P),DRCR(P)

DRCR

(1) Rotates 32-bit data, including carry flag, at device designated by n bits to the right.

The carry flag goes ON or OFF depending on its status prior to the execution of the DRCR instruction.

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 410)
Fig. 610

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.

(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n /

32 is used for rotation. For example, when n 34, the contents are rotated two bits to the right since the remainder of 34 / 32 1 is "2".

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 410)
Fig. 611

(1) There are no operation errors associated with the DROR(P) or DRCR(P) instruction.

Program Example

(1) The following program rotates the contents of D0 and D1, not including the carry flag, 4 bits

to the right when XC is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 410)
Fig. 612 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 410)
Fig. 613 · Program Example

b31 b16 b0 b15 b28 b27 b24b23 b20b19 b12 b11 b8 b7 b4 b3

0 D0, D1 0 0 0 1 0 1 0 1 0 1

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8 b7 b4 b3

1 D0, D1 0 1 0 1 0 1 0

[Operation]

Page 411 of the Mitsubishi Electronics QCPU user manual — DROR(P),DRCR(P)
Page 411 · click to enlarge
Page 411

DROR(P),DRCR(P)

(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to

the right when XC is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 411)
Fig. 614

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8b7 b4b3

0 0 1 0 1 0 1 0 1

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8b7 b4b3

1 D0, D1 1 1 0 1 0 1 0 1 0

Content of b3 before execution Content of carry flag SM700 before execution

* : ON/OFF status of the carry flag depends on its status before the execution of DRCR.

Mitsubishi Electronics QCPU — DROR(P),DRCR(P) diagram (page 411)
Fig. 615

7.2 Rotation instruction 7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))

Step Instruction Device · [Operation]

Page 412 of the Mitsubishi Electronics QCPU user manual — DRCL
Page 412 · click to enlarge
Page 412

DROL(P),DRCL(P)

7.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))

DROL(P),DRCL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DROL(P),DRCL(P) diagram (page 412)
Fig. 616

: Head number of the devices to rotate (BIN 32 bits) n : Number of rotations (0 to 31) (BIN 16 bits)

Mitsubishi Electronics QCPU — DROL(P),DRCL(P) diagram (page 412)
Fig. 617

DROL

(1) The 32-bit data of the device designated at , not including the carry flag, is rotated n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of the DROL instruction.

Mitsubishi Electronics QCPU — DROL diagram (page 412)
Fig. 618

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3 Carry flag

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.

(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n/32

is used for rotation. For example, when n 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".

DRCL

(1) Rotates 32-bit data of the device designated by , including the carry flag, n-bits to the left. The carry flag turns ON or OFF depending on its status prior to the execution of the DRCL instruction.

Mitsubishi Electronics QCPU — DRCL diagram (page 412)
Fig. 619

b2 b16 b31 b17 b30b29b28b27 b18 b15b14 b5 b4 b3 Carry flag

Page 413 of the Mitsubishi Electronics QCPU user manual — 0 D0, D1 0
Page 413 · click to enlarge
Page 413

DROL(P),DRCL(P)

(2) When a bit device is designated for , a rotation is performed within the device range specified by digit specification. The number of bits by which a rotation is executed is the remainder of n /(specified number of bits). For example, when n 31 and (specified number of bits) 24 bits, the remainder of 31/24 1 is "7", and the data is rotated 7 bits.

(3) Specify any of 0 to 31 as n. If the value specified as n is 32 or greater, the remainder of n/32

is used for rotation. For example, when n 34, the data is rotated 2 bits to the left since the remainder of 34/32 1 is "2".

Mitsubishi Electronics QCPU — DROL(P),DRCL(P) diagram (page 413)
Fig. 620

(1) There are no operation errors associated with the DROL(P) or DRCL(P) instructions.

Program Example

(1) The following program rotates the contents of D0 and D1, not including the carry flag, 4 bits

to the left when XC is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 413)
Fig. 621 · Program Example

(SM700)

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12 b11 b8 b7 b4 b3

1 D0, D1 0 1 0 1 0 1 0

7.2 Rotation instruction 7.2.4 Left rotation of 32-bit data (DROL(P),DRCL(P))

(SM700)

b31 b16 b0 b15 b28b27 b24b23 b20b19 b12b11 b8 b7 b4 b3

0 D0, D1 0 0 0 1 0 1 0 1 0 1

Contents of b31 to b28 before execution Contents of b27 to b0 before execution

Content of b28 before execution

(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to

the left when XC is ON.

[Ladder Mode] [List Mode]

(SM700)

b31 b16 b0 b15 b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3

1 D0, D1 0 1 0 1 0 1 0

(SM700)

0 0 1 0 1 0 1 0 1 1 1 b31 b16 b0 b15 b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3

0 D0, D1 0

Contents of b31 to b29 before execution Contents of b27 to b0 before execution

Content of b28 before execution Content of carry flag SM700 before execution

: ON/OFF status of the carry flag depends on its status before the execution of DRCL.

Show 10 more labels / short text on this page
[Operation] · Carry flag · Carry flag · Step Instruction Device · [Operation] · Carry flag · * · Carry flag · * · *
Page 414 of the Mitsubishi Electronics QCPU user manual — SFR
Page 414 · click to enlarge
Page 414

SFR(P),SFL(P)

7.3 Shift instruction

7.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))

SFR(P),SFL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SFR(P),SFL(P) diagram (page 414)
Fig. 622

: Head number of the devices where shift data is stored (BIN 16 bits) n : Number of shifts (0 to 15) (BIN 16 bits)

Mitsubishi Electronics QCPU — SFR(P),SFL(P) diagram (page 414)
Fig. 623

SFR

(1) Causes a shift to the right by n bits of the 16-bit data from the device designated at .

The n bits from the upper bit are filled with 0s.

Mitsubishi Electronics QCPU — SFR diagram (page 414)
Fig. 624

1 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0

0 1 1 1 0 1 1 1 0 1 1 b15 b8 b0 b7

(2) When a bit device is designated for , a right shift is executed within the device range specified by digit specification.

Mitsubishi Electronics QCPU — SFR diagram (page 414)
Fig. 625

1 0 1 0 1 0 1 0 1 0 1 0

0 1 0 1 0 1 0 1 0 Y18 Y10 Y17

Page 415 of the Mitsubishi Electronics QCPU user manual — SFL
Page 415 · click to enlarge
Page 415

SFR(P),SFL(P)

The number of bits by which a shift is executed is the remainder of n/(specified number of bits).

For example, when n 15 and (specified number of bits) 8 bits, the remainder of 15/8 1 is "7", and the data is shifted 7 bits.

(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16

is used for a shift to the right. For example, when n 18, the data is shifted 2 bits to the right since the remainder of 18/16 1 is 2.

SFL

(1) Shifts 16-bit data at device designated by n bits to the left.

Bits starting from the lowest bit to n bit are filled with 0s.

Mitsubishi Electronics QCPU — SFL diagram (page 415)
Fig. 626

1 0 0 1 1 0 1

b14b13b12b11b10 b9 b6 b5 b4 b3 b2 b1 Carry flag

0 1 0 b15 b8 b0 b7

(2) When a bit device is designated for , a left shift is executed within the device range specified by digit specification.

Mitsubishi Electronics QCPU — SFL diagram (page 415)
Fig. 627

1 0 0 1 1 0 0 0 X14X13

7.3 Shift instruction 7.3.1 n-bit shift to right or left of 16-bit data (SFR(P),SFL(P))

The number of bits by which a shift is executed is the remainder of n/(specified number of

bits). For example, when n 15 and (specified number of bits) 8 bits, the remainder of

15/8 1 is "7", and the data is shifted 7 bits.

(3) Specify any of 0 to 15 as n. If the value specified as n is 16 or greater, the remainder of n/16

is used for a shift to the left. For example, when n 18, the data is shifted 2 bits to the left since the remainder of 18/16 1 is "2".

(1) There are no operation errors associated with the SFR(P) or SFL(P) instructions.

Page 416 of the Mitsubishi Electronics QCPU user manual — SFR(P),SFL(P)
Page 416 · click to enlarge
Page 416

SFR(P),SFL(P)

Program Example

(1) The following program shifts the data of D0 to the right by the number of bits designated by

D100 when X20 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SFR(P),SFL(P) diagram (page 416)
Fig. 628
Mitsubishi Electronics QCPU — SFR(P),SFL(P) diagram (page 416)
Fig. 629

0 1 0 1 0 1 1 1 0 0 1 0 1 0 0 0 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 0 1 0 0 1 1 1 0 0 1 0 1 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15

(2) The following program shifts the contents of X10 to X17 3 bits to the left when X1C is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SFR(P),SFL(P) diagram (page 416)
Fig. 630

1 0 0 1 1 0 0 0 X14X13

[Operation] · Step Instruction Device · [Operation]

Page 417 of the Mitsubishi Electronics QCPU user manual — BSFR
Page 417 · click to enlarge
Page 417

BSFR(P),BSFL(P)

7.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))

BSFR(P),BSFL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BSFR(P),BSFL(P) diagram (page 417)
Fig. 631

: Head number of the devices to be shifted (bits) n : Number of devices to which shift is executed (BIN 16 bits)

Mitsubishi Electronics QCPU — BSFR(P),BSFL(P) diagram (page 417)
Fig. 632

BSFR

Mitsubishi Electronics QCPU — BSFR diagram (page 417)
Fig. 633

(1) Shifts the data in n points from the device designated by to the right by one bit.

7.3 Shift instruction 7.3.2 1-bit shift to right or left of n-bit data (BSFR(P),BSFL(P))

D +(n-1) +(n-2) +(n-3)

(2) The device designated by + (n 1) is filled with 0.

(1) Shifts the data in n points from the device designated by to the left by one bit.

(2) The device designated by is filled with 0.

Page 418 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 418 · click to enlarge
Page 418

BSFR(P),BSFL(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The range of the device n points from a device designated by , or exceeds the relevant device. (Error code: 4101)

Program Example

(1) The following program shifts the data at M668 to M676 to the right when X8F is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 418)
Fig. 634 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 418)
Fig. 635 · Program Example

1 1 1 0 1 0 1 1 0 0 1 1

1 1 0 1 0 1 0 1 1 0 0 1 M672M671

(2) The following program shifts the data at Y60 to Y6F to the left when X4 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 418)
Fig. 636 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 418)
Fig. 637 · Program Example

1 0 0 1 1 0 1 0 1 0 1 1 1

0 0 1 1 0 1 0 1 0 1 1 1 0 Y6F Y68 Y60 Y67

[Operation] · [Operation]

Page 419 of the Mitsubishi Electronics QCPU user manual — (SM700)
Page 419 · click to enlarge
Page 419

SFTBR(P),SFTBL(P)

7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))

SFTBR(P),SFTBL(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — SFTBR(P),SFTBL(P) diagram (page 419)
Fig. 638

: Head number of the devices to be shifted (bits) n1 : Number of bits to be shifted (BIN 16 bits) n2 : Number of shifts (BIN 16 bits)

Mitsubishi Electronics QCPU — SFTBR(P),SFTBL(P) diagram (page 419)
Fig. 639

*1 : T, C, ST, and S devices are not available.

Function

7.3 Shift instruction 7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))

SFTBR(P)

(1) This instruction shifts the n1 bits data in the devices starting from the device specified by to the right by n2 bits.

D

+2 +1 +3 +4 +5 +6 +7 +8 +9

D

0 +2 +1 +3 +4 +5 +6 +7 +8 +9

(SM700)

0

1

(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is

equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used for a shift.

(3) This instruction specifies n1 ranged from 1 to 64.

(4) Bits starting from the highest bit to n2th bit are filled with 0s. If the value of n2 is larger than

the value of n1, the remainder of n2 / n1 will be 0.

(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.

Show 6 more labels / short text on this page
Universal · n1=10, n2=4 · n2 · n1 · Carry flag · Filled with 0s
Page 420 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 420 · click to enlarge
Page 420

SFTBR(P),SFTBL(P)

SFTBL(P)

(1) This instruction shifts the n1 bits data in the devices starting from the device specified by to the left by n2 bits.

+6 D +7 D +8 D D

+2 +1 D D +3 D +4 D +5 D

1 1 0 1 0 1

1 (SM700)

+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D

1 1 1 0 1 0

(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is

equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used for a shift. However, if the remainder of n2 / n1 is 0, the instruction will be not processed.

(3) This instruction specifies n1 ranged from 1 to 64.

(4) Bits starting from the lowest bit to n2th bit are filled with 0s. If the value of n2 is larger than

the value of n1, the remainder of n2 / n1 will be 0.

(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The value specified by n1 is other than 0 to 64. (Error code: 4100)
  • The value data specified by n2 is negative. (Error code: 4100)
  • The range of devices specified by n1 exceeds the range of devices specified by . (Error code: 4101)
Show 5 more labels / short text on this page
n1=10, n2=4 · n2 · n1 · Carry flag · Filled with 0s
Page 421 of the Mitsubishi Electronics QCPU user manual — SFTBR(P),SFTBL(P)
Page 421 · click to enlarge
Page 421

SFTBR(P),SFTBL(P)

Program Example

(1) The following program shifts the data of Y10 to Y17 (8 bits) specified by to the right by 2 bits (n2), when M0 is turned on.

Mitsubishi Electronics QCPU — SFTBR(P),SFTBL(P) diagram (page 421)
Fig. 640

0 0 1 0 1 1 1 0 0

(2) The following program shifts the data of Y21 to Y2C (12 bits) specified by to the left by 5 bits (n2), when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SFTBR(P),SFTBL(P) diagram (page 421)
Fig. 641
Mitsubishi Electronics QCPU — SFTBR(P),SFTBL(P) diagram (page 421)
Fig. 642

7.3 Shift instruction 7.3.3 n-bit shift to right or left of n-bit data (SFTBR(P),SFTBL(P))

Y21 Y22 Y23 Y24 Y25 Y26 Y27 Y28 Y29 Y2A Y2B Y2C

0 1 0 1 1 1 0 1 1 0 0 1

Y21 Y22 Y23 Y24 Y25 Y26 Y27 Y28 Y29 Y2A Y2B Y2C 0

0 0 1 0 0 1 0 1 1 0 0 0

Step Instruction Device · [Operation]

Page 422 of the Mitsubishi Electronics QCPU user manual — DSFL
Page 422 · click to enlarge
Page 422

DSFR(P),DSFL(P)

7.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))

DSFR(P),DSFL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DSFR(P),DSFL(P) diagram (page 422)
Fig. 643

: Head number of the devices to be shifted (BIN 16 bits) n : Number of devices to which shift is executed (BIN 16 bits)

Mitsubishi Electronics QCPU — DSFR(P),DSFL(P) diagram (page 422)
Fig. 644

DSFR

(1) Shifts data n points from device designated by 1-word to the right.

Mitsubishi Electronics QCPU — DSFR diagram (page 422)
Fig. 645

D +(n-1) +(n-2) +(n-3)

(2) The device designated by D + (n 1) is filled with 0.

DSFL

(1) Shifts data n points from device designated by 1-word to the left.

Mitsubishi Electronics QCPU — DSFL diagram (page 422)
Fig. 646

(2) The device designated by is filled with 0.

Page 423 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 423 · click to enlarge
Page 423

DSFR(P),DSFL(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The range of the device n points from a device designated by , or exceeds the relevant device. (Error code: 4101)

Program Example

(1) The following program shifts the contents of D683 to D689 to the right when XB is turned

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 423)
Fig. 647 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 423)
Fig. 648 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 423)
Fig. 649 · Program Example

(2) The following program shifts the contents of D683 to D689 to the left when XB is turned ON.

7.3 Shift instruction 7.3.4 1-word shift to right or left of n-word data (DSFR(P),DSFL(P))

[Operation]

Page 424 of the Mitsubishi Electronics QCPU user manual — SFTWR(P)
Page 424 · click to enlarge
Page 424

SFTWR(P),SFTWL(P)

7.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))

SFTWR(P),SFTWL(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 424)
Fig. 650

: Head number of the devices to be shifted (BIN 16 bits) n1 : Number of words to be shifted (BIN 16 bits) n2 : Number of shifts (BIN 16 bits)

Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 424)
Fig. 651

SFTWR(P)

(1) This instruction shifts n1 words data in the devices starting from the device specified by to the right by n2 words.

Mitsubishi Electronics QCPU — SFTWR(P) diagram (page 424)
Fig. 652

+6 D +7 D +8 D D

+2 +1 D D +3 D +4 D +5 D

H 1E 100 0 1FF 10 1F 7FF 2A

+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D

0 H

(2) The n2 words data in the devices starting from the highest device are filled with 0s.

(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.

(4) If the value of n2 is equal to or larger than the value of n1, the n1 words data in the devices

starting from the device specified by will be filled with 0s.

Universal · n1=9, n2=4

Page 425 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 425 · click to enlarge
Page 425

SFTWR(P),SFTWL(P)

SFTWL(P)

(1) This instruction shifts the n1 words data in the devices starting from the device specified by

to the left by n2 words.

Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 425)
Fig. 653

+6 D +7 D +8 D D

+2 +1 D D +3 D +4 D +5 D

1FFH

+2 +1 D D +3 D +4 D +5 D +6 D +7 D +8 D D

3A 1F 30 0 FF H

(2) The n2 words in the devices starting from the lowest device are filled with 0s.

(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.

(4) If the value of n2 is equal to or greater than the value of n1, the n1 words devices starting

from the device specified by will be filled with 0s.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • n1 or n2 is negative value. (Error code: 4100)
  • The range of devices specified by n1 exceeds the range of devices specified by . (Error code: 4101)
Mitsubishi Electronics QCPU — Operation Error diagram (page 425)
Fig. 654 · Operation Error

7.3 Shift instruction 7.3.5 n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))

(1) The following program shifts the 8 words (n1) data stored in the devices starting from D10

specified by to the right by 2 words (n2), when M0 is turned on.

D10 D11 D12 × × D13 D14 D15 D16 D17

n1=9, n2=4

Page 426 of the Mitsubishi Electronics QCPU user manual — SFTWR(P),SFTWL(P)
Page 426 · click to enlarge
Page 426

SFTWR(P),SFTWL(P)

(2) The following program shifts the 12 words (n1) data in the devices starting from D21

specified by to the left by 5 words (n2), when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 426)
Fig. 655
Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 426)
Fig. 656
Mitsubishi Electronics QCPU — SFTWR(P),SFTWL(P) diagram (page 426)
Fig. 657

D21 D22 D23 D24 D25 D26 D27 D28 D29 D2A D2B D2C

FF 3A 1 0 0 10 7FFH

D21 D22 D23 D24 D25 D26 D27 D28 D29 D2A D2B D2C ×

Filled with 0H

Step Instruction Device · [Operation]

Page 427 of the Mitsubishi Electronics QCPU user manual — BSET(P),BRST(P)
Page 427 · click to enlarge
Page 427

BSET(P),BRST(P)

7.4 Bit processing instructions

7.4.1 Bit set and reset for word devices (BSET(P),BRST(P))

BSET(P),BRST(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BSET(P),BRST(P) diagram (page 427)
Fig. 658

: Number of the device whose bits are set/reset (BIN 16 bits) n : Number of the bit to be set/reset (0 to 15) (BIN 16 bits)

Mitsubishi Electronics QCPU — BSET(P),BRST(P) diagram (page 427)
Fig. 659

7.4 Bit processing instructions 7.4.1 Bit set and reset for word devices (BSET(P),BRST(P))

(1) Sets (sets "1" at) the nth bit in the word device designated at .

(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.

1 1 0 0 1 0 1 1 0 1 0 1 1 D10 After execution

(1) Resets the nth bit of a word device designated by to 0.

(2) If n exceeds "15", bit set/reset is performed with the lower 4 bits of the data.

1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 D10 Before execution

1 1 0 1 1 0 0 1 1 1 0 1 1 D10 After execution

Page 428 of the Mitsubishi Electronics QCPU user manual — Remark
Page 428 · click to enlarge
Page 428

BSET(P),BRST(P)

Operation Error

(1) There are no operation errors associated with the BSET(P) or BRST(P) instructions.

Program Example

(1) The following program resets the 8th bit of D8 (b8) to 0 when XB is OFF, and sets the 3rd bit

of D8 (b3) to 1 when XB is ON.

Mitsubishi Electronics QCPU — Program Example diagram (page 428)
Fig. 660 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 428)
Fig. 661 · Program Example

Remark

Bit set or reset of word devices can also be conducted by bit designation of word devices.

  • For the bit specification for word devices, link direct devices, refer to the

QnUCPU User’fs Manual(Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User’s Manuall(Function Explanation, Program Fundamentals) The processing of program example (1) would be conducted as shown below if bit designation of a word device had been used:

Mitsubishi Electronics QCPU — Remark diagram (page 428)
Fig. 662 · Remark
Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 429 of the Mitsubishi Electronics QCPU user manual — S1 D
Page 429 · click to enlarge
Page 429

TEST(P),DTEST(P)

7.4.2 Bit tests (TEST(P),DTEST(P))

Basic Process High performance Redundant Universal

TEST(P),DTEST(P)

indicates an instruction symbol of TEST/DTEST.

TEST, DTEST

S1 S2

TESTP, DTESTP

P

S1 S2 D

: Number of the device where bit data to be extracted is stored (BIN 16 bits)

: Location of the bit data to be extracted (0 to 15 (TEST)/0 to 31 (DTEST)) (BIN 16/32 bits)

: Number of the bit device where the extracted data will be stored (bits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

Function

7.4 Bit processing instructions 7.4.2 Bit tests (TEST(P),DTEST(P))

TEST

(1) Fetches bit data at the location designated by within the word device designated by ,

S2 S1

and writes it to the bit device designated by .

(2) The bit device designated by is OFF when the relevant bit is "0" and ON when it is "1".

(3) The position designated by indicates the position of an individual bit in a 1-word data

block (0 to 15). When 16 or more is designated at , the target is the bit data at the position indicated by the remainder of n / 16. For example, when n 18, the target is the data at b2 since the remainder of 18 / 16 1 is "2".

S2 S2 (When =5)

b15 b0 b5 S1 D

DTEST

(1) Fetches bit data at the location designated by within the 2-word device designated by ,

S2 S1

or +1, and writes it to the bit device designated by .

S1 D

(2) The bit device designated by is OFF when the relevant bit is "0" and ON when it is "1".

Show 7 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data · –– –– –– · bit
Page 430 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 430 · click to enlarge
Page 430

TEST(P),DTEST(P)

(3) The position designated by indicates the position of an individual bit in a 2-word data

block (0 to 31). When 32 or more is designated at , the target is the bit data at the position indicated by the remainder of n / 32. For example, when n 34, the target is the data at b2 since the remainder of 34 / 32 1 is "2".

Mitsubishi Electronics QCPU — TEST(P),DTEST(P) diagram (page 430)
Fig. 663

(1) There are no operation errors associated with the TEST(P) or DTEST(P) instructions.

Program Example

(1) The following program turns M0 ON or OFF based on the status of the 10th bit in the 1-word

data block (D0).

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 430)
Fig. 664 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 430)
Fig. 665 · Program Example

[Operation]

Page 431 of the Mitsubishi Electronics QCPU user manual — TEST(P),DTEST(P)
Page 431 · click to enlarge
Page 431

TEST(P),DTEST(P)

(2) The following program turns Y40 ON or OFF, depending on the status of the 19th bit of the 2-word data (W0 and W1).

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — TEST(P),DTEST(P) diagram (page 431)
Fig. 666

1 0 1 1 0 0 1 0 1 0 1 1 0 b31 b19

1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0 b0 b15 b16

0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 b31 b19

1 0 1 0 1 1 0 1 0 1 1 0 1 b0 b15 b16

Programs using the bit test instruction can be rewritten as programs using bit designation of word devices. If the program in example (1) were changed to use bit designation of a word device, it would appear as follows:

Mitsubishi Electronics QCPU — TEST(P),DTEST(P) diagram (page 431)
Fig. 667

M0 turns ON/OFF depending on the ON/OFF status of b10 of D0 (D0.A).

Mitsubishi Electronics QCPU — TEST(P),DTEST(P) diagram (page 431)
Fig. 668

7.4 Bit processing instructions 7.4.2 Bit tests (TEST(P),DTEST(P))

Step Instruction Device · [Operation]

Page 432 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 432 · click to enlarge
Page 432

BKRST(P)

7.4.3 Batch reset of bit devices (BKRST(P))

BKRST(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 432)
Fig. 669

: Head number of the devices to be reset (bits) n : Number of the devices to be reset (BIN 16 bits)

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 432)
Fig. 670

(1) Resets bit device n-points from the bit device designated by .

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 432)
Fig. 671
  • Turns device n-points from annunciator (F) number designated by OFF.
  • Deletes annunciator number turned OFF from SD64 to SD79 and compresses remaining data
  • Stores number of annunciators stored from SD64 to SD79 at SD63.
  • Sets the current value n-points from timer (T) or counter c designated by (C) to 0, and turns coil

than the above • Turns OFF coil or contact n-points from the device designated by .

(2) If the designated device is OFF, the device status will not change.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The n-bit range from the , or device exceeds the range of that device.
(Error code4101)
Page 433 of the Mitsubishi Electronics QCPU user manual — BKRST(P)
Page 433 · click to enlarge
Page 433

BKRST(P)

Program Example

(1) The following program turns OFF devices from M0 to M7 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 433)
Fig. 672

1 1 0 M0 M3 0 M8 M9 M4 M7 1 0 0 M0 M3 1 0 0 1 M8 M9 M4 M7

(2) The following program sets data from 2nd bit (b2) of D10 to 1st bit (b1) of D11 to 0 when X20

is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 433)
Fig. 673
Mitsubishi Electronics QCPU — BKRST(P) diagram (page 433)
Fig. 674

1 1 1 0 1 0

0 1 0

b15 b8 0 0 0 1 0 1 0 0 1 D11

b15 b8 0 0 0 1 0 1 0 0 1 0 0 D11

Mitsubishi Electronics QCPU — BKRST(P) diagram (page 433)
Fig. 675

7.4 Bit processing instructions 7.4.3 Batch reset of bit devices (BKRST(P))

[Operation] · Not changed · [Operation]

Page 434 of the Mitsubishi Electronics QCPU user manual — D D
Page 434 · click to enlarge
Page 434

SER(P),DSER(P)

7.5 Data processing instructions

7.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))

SER(P),DSER(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SER(P),DSER(P) diagram (page 434)
Fig. 676

: Search data or head number of the devices where the search data is stored (BIN 16/32 bits)

: Data to be searched or head number of the devices where the data to be searched is stored (BIN 16 bits)

: Head number of the devices where the search result will be stored (BIN 16 bits) n : Number of searches (BIN 16 bits)

Mitsubishi Electronics QCPU — SER(P),DSER(P) diagram (page 434)
Fig. 677

SER

(1) Searches n points from the 16-bit data of the device designated by , regarding 16-bit data of the device designated by as a keyword. Then, the number of matches with the keyword is stored at the device designated by +1, and the first matched device number (in the relative number from ) is stored at the device designated by .

Mitsubishi Electronics QCPU — SER diagram (page 434)
Fig. 678

(2) No processing is conducted if n is 0 or a negative value.

(3) If no matches are found in the search, the devices designated at and +1 become "0".

D D

Page 435 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 435 · click to enlarge
Page 435

SER(P),DSER(P)

DSER

(1) Searches n points from the device designated by in 32-bit units (2 n points in 16-bit

units.) regarding 32-bit data of the device designated by +1 and as a keyword. Then,

S1 S1

the number of matches with the keyword is stored at the device designated by +1, and the

first matched device number (in the relative number from ) is stored at the device

Mitsubishi Electronics QCPU — S1 S1 diagram (page 435)
Fig. 679

(2) No processing is conducted if n is 0 or a negative value.

(3) If no matches are found in the search, the devices designated at and +1 become "0".

D D

If the data to be searched using the SER/DSER instruction is sorted in the ascending order, searches can be accelerated by the use of the binary search

method, which is activated by turning SM702 *1 ON. However, correct searche results are not obtained if SM702 is turned ON when the data to be searched is not sorted in the ascending order.

  • *1: SM702 is the special relay for setting the search method.
  • SM702 OFF: Sequential search method (linear search method) (Comparison with the search data starts from the beginning of the data to be searched.)
  • SM702 ON: Binary search method (Obtains the center value of the sorted array and decides if the obtained value is larger or smaller than the search value, then, chooses the area for search between the larger and smaller value divisions. By repeating this process, the area for search is narrowed down.)

7.5 Data processing instructions 7.5.1 16-bit and 32-bit data searches (SER(P),DSER(P))

Data to be searched

Data to be searched

Data to be searched

Search range Compared with the search data

Search range Compared with the search data

Search range Compared with the search data

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The location n-points from the device exceeds the designated device range.
(Error code4101)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Show 8 more labels / short text on this page
Search order · Search data · 200 300 · 200 300 · 200 300 · 500 400 · 500 400 · 500 400
Page 436 of the Mitsubishi Electronics QCPU user manual — SER(P),DSER(P)
Page 436 · click to enlarge
Page 436

SER(P),DSER(P)

Program Example

(1) The following program searches D100 to D105 for the contents of D0 when X20 is ON, and

stores the search results at W0 and W1.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SER(P),DSER(P) diagram (page 436)
Fig. 680
Mitsubishi Electronics QCPU — SER(P),DSER(P) diagram (page 436)
Fig. 681

(2) The following program searches D100 to D111 for the contents of D11 and D10 when X20 is

ON, and stores the search results at W0 and W1.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SER(P),DSER(P) diagram (page 436)
Fig. 682

Data to be searched 56789051 Search data D11, D10

[Operation] · Step Instruction Device · [Operation]

Page 437 of the Mitsubishi Electronics QCPU user manual — DSUM
Page 437 · click to enlarge
Page 437

SUM(P),DSUM(P)

7.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))

SUM(P),DSUM(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SUM(P),DSUM(P) diagram (page 437)
Fig. 683

: Head number of the devices where the total number of bits of "1" is counted (BIN 16/32 bits)

: Head number of the devices where the total number of the bits will be stored (BIN 16/32 bits)

SUM

7.5 Data processing instructions 7.5.2 16-bit and 32-bit data checks (SUM(P),DSUM(P))

From the 16-bit data in the device designated by , stores the total number of bits where 1

is set, in the device designated by .

b15 b8 1 1 0 0 1 0 1 1 0 0 1 1 0 0 0 1 b0 b7

Total number of bits where 1 is set

b15 b8 0 1 0 0 0 b0 b7

Stores the total number of bits where 1 is set in BIN. (There are 8 bits where 1 is set in the example.)

DSUM

From the 32-bit data in the device designated by , stores the total number of bits where 1

is set, in the device designated by .

0 0 0 1 0 1 0 1 1 0 b31 b16b15 b0

1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1

Total number of bits where 1 is set

b15 b8 0 1 0 b0 b7

Stores the total number of bits where 1 is set in BIN. (There are 16 bits where 1 is set in the example.)

Page 438 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 438 · click to enlarge
Page 438

SUM(P),DSUM(P)

Operation Error

(1) There are no operation errors associated with the SUM(P) or DSUM(P) instructions.

Program Example

(1) The following program stores the number of bits which are ON from X8 to X17 into D0 when

X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 438)
Fig. 684 · Program Example

0 0 1 0 1 0 1 1 0 1 1 1 X8

Stores the total number of bits where 1 is set at D0.

(2) The following program stores the number of bits which are ON in D100 and D101 into D0

when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 438)
Fig. 685 · Program Example

b15 0 0 1 0 1 1 0 0 1 1 b0 b31 b16 D100, D101

Mitsubishi Electronics QCPU — Program Example diagram (page 438)
Fig. 686 · Program Example

0 1 0 1 0 1 0 0 0 1

Stores the total number of bits where 1 is set into D0.

[Operation] · [Operation]

Page 439 of the Mitsubishi Electronics QCPU user manual — DECO(P)
Page 439 · click to enlarge
Page 439

DECO(P)

7.5.3 Decoding from 8 to 256 bits (DECO(P))

DECO(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DECO(P) diagram (page 439)
Fig. 687

: Data to be decoded or the number of the device where the data to be decoded is stored (BIN 16 bits)

: Head number of the devices where the decoding result will be stored (Device name) n : Valid bit length (1 to 8), 0: No processing (BIN 16 bits)

Mitsubishi Electronics QCPU — DECO(P) diagram (page 439)
Fig. 688
Mitsubishi Electronics QCPU — DECO(P) diagram (page 439)
Fig. 689

(1) Turns ON the bit position of , which corresponds to the binary value designated by the

7.5 Data processing instructions 7.5.3 Decoding from 8 to 256 bits (DECO(P))

(2) The value of n can be designated between 1 and 8.

(3) No processing is conducted if n 0, and there are no changes in the bits 2n from the device

(4) Bit devices are treated as 1 bit, and word devices as 16 bits.

Page 440 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 440 · click to enlarge
Page 440

DECO(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of n is not in the 0 to 8 range. (Error code: 4100)
  • The range 2n bits from exceeds the range of the relevant device.
(Error code4101)

Program Example

(1) The following program decodes the 3 bits from X0 and stores the results at M10 when X20 is

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 440)
Fig. 690 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 440)
Fig. 691 · Program Example

0 1 0 M10 M17

If 3 bits are designated as significant bits, 8 points are occupied.

[Operation]

Page 441 of the Mitsubishi Electronics QCPU user manual — ENCO(P)
Page 441 · click to enlarge
Page 441

ENCO(P)

7.5.4 Encoding from 256 to 8 bits (ENCO(P))

ENCO(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ENCO(P) diagram (page 441)
Fig. 692

: Head number of the device where the data to be encoded is stored (Device name)

: Number of the device where the encoding result will be stored (BIN 16 bits) n : Valid bit length (1 to 8), 0: No processing (BIN 16 bits)

Mitsubishi Electronics QCPU — ENCO(P) diagram (page 441)
Fig. 693

(1) Stores the binary value corresponding to the bits which are "1" included in the 2n-bit data of

Mitsubishi Electronics QCPU — ENCO(P) diagram (page 441)
Fig. 694

7.5 Data processing instructions 7.5.4 Encoding from 256 to 8 bits (ENCO(P))

5 4 3 2 1 0 0 1 0

(2) The value of n can be designated at between 1 and 8.

(3) If n 0, there will be no operation, and the contents of will not change.

(4) Bit devices are treated as 1 bit, and word devices as 16 bits.

(5) If more than 1 bit is at 1, processing will be conducted at the upper bit location.

Page 442 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 442 · click to enlarge
Page 442

ENCO(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of n is not in the 0 to 8 range. (Error code: 4100)
  • The range 2 n bits from exceeds the range of the relevant device.
(Error code4101)
  • All data 2 n bits from is "0". (Error code: 4100)

Program Example

(1) The following program encodes the 3 bits from M10 when X20 is ON, and stores the results

at D8.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 442)
Fig. 695 · Program Example

0 1 0 0 0 M10 M17

If 3 bits are designated as significant bits, 8 points are occupied.

0 1 1 Storage device D8

The location of the ON bit, counted from M10, is stored in BIN.

Step Instruction Device · [Operation]

Page 443 of the Mitsubishi Electronics QCPU user manual — SEG(P)
Page 443 · click to enlarge
Page 443

SEG(P)

7.5.5 7-segment decode (SEG(P))

SEG(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SEG(P) diagram (page 443)
Fig. 696

: Data to be decoded or head number of the devices where the data to be decoded is stored (BIN 16 bits)

: Head number of the devices where the decoding result will be stored (BIN 16 bits)

(1) Decodes the data from 0 to F designated by the lower 4 bits of to 7-segment display data,

and stores at .

Mitsubishi Electronics QCPU — SEG(P) diagram (page 443)
Fig. 697

(2) If is a bit device, indicates the head number of the devices storing the 7-segment display data; if it is a word device, indicates the number of the device storing the data.

7.5 Data processing instructions 7.5.5 7-segment decode (SEG(P))

Word device 0 0 1 0 0 1 1 1 b7 b0

0 b8 SEG K7 D8

7-segment display data is stored in lower 8 bits. Upper 8 bits are always filled with 0s.

(1) There are no operation errors associated with the SEG(P) instruction.

Page 444 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 444 · click to enlarge
Page 444

SEG(P)

Mitsubishi Electronics QCPU — SEG(P) diagram (page 444)
Fig. 698

decimal Bit Pattern B7 B6 B5 B4 B3 B2 B1 B0

0 0000 0 0 1

1 0001 0 1 1 0

2 0010 0 1 0 1 1 0 1 1

3 0011 0 1 0 0 1

4 0100 0 1 1 0 0 1 1 0

5 0101 0 1 1 0 1 1 0 1

6 0110 0 1 0 1

7 0111 0 0 1 0 0 1 1 1

8 1000 0 1

9 1001 0 1 1 0 1

A 1010 0 1 1 1 0 1 1 1

B 1011 0 1 0 0

C 1100 0 0 1 1 1 0 0 1

E 1110 0 1 0 0 1

F 1111 0 1 1 1 0 0 0 1

Program Example

(1) The following program converts the data from XC to XF to 7-segment display data and

outputs it to Y38 to Y3F when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 444)
Fig. 699 · Program Example

*1: The data Y38 to Y3F will not change until the next data is output.

7-segment decode display · Step Instruction Device · [Timing Chart]

Page 445 of the Mitsubishi Electronics QCPU user manual — DIS(P)
Page 445 · click to enlarge
Page 445

DIS(P)

7.5.6 4-bit dissociation of 16-bit data (DIS(P))

DIS(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DIS(P) diagram (page 445)
Fig. 700

: Head number of the devices where data to be dissociated is stored (BIN 16 bits)

: Head number of the devices where the dissociated data will be stored (BIN 16 bits) n : Number of dissociations (1 to 4), 0: No processing (BIN 16 bits)

Mitsubishi Electronics QCPU — DIS(P) diagram (page 445)
Fig. 701
Mitsubishi Electronics QCPU — DIS(P) diagram (page 445)
Fig. 702

(1) Stores the lower n-digits (1 digit is 4 bits) of the 16-bit data designated by at the lower 4

7.5 Data processing instructions 7.5.6 4-bit dissociation of 16-bit data (DIS(P))

b0 b3 b7 b4 b11 b8 b4 b15 b0 b3

(2) The upper 12 bits n-points from the device designated by become 0.

(3) The value of n can be designated at between 1 and 4.

(4) If n 0, there will be no processing, and the contents n-points from will not change.

Page 446 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 446 · click to enlarge
Page 446

DIS(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range n-points from exceeds the relevant device. (Error code: 4101)
  • The value of n is outside the 0 to 4 range. (Error code: 4100)

Program Example

(1) The following program dissociates the 16-bit data from D0 into 4-bit groups, and stores from

D10 to D13 when X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 446)
Fig. 703 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 446)
Fig. 704 · Program Example

1 1 0 0 1 0 0 1 0 1 0 1 0 0 0 1

0 1

0 1 0 1

0 1 0 0 1

[Operation]

Page 447 of the Mitsubishi Electronics QCPU user manual — UNI(P)
Page 447 · click to enlarge
Page 447

UNI(P)

7.5.7 4-bit linking of 16-bit data (UNI(P))

UNI(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — UNI(P) diagram (page 447)
Fig. 705

: Head number of the devices where data to be linked is stored (BIN 16 bits)

: Head number of the devices where the linked data will be stored (BIN 16 bits) n : Number of links (1 to 4), 0: No processing (BIN 16 bits)

Mitsubishi Electronics QCPU — UNI(P) diagram (page 447)
Fig. 706

(1) Links lower 4 bits of 16-bit data n-points from device designated by to 16-bit device

Mitsubishi Electronics QCPU — UNI(P) diagram (page 447)
Fig. 707

7.5 Data processing instructions 7.5.7 4-bit linking of 16-bit data (UNI(P))

(2) The bits of the upper (4 n) digits of the device designated by become 0.

(3) The value of n can be designated at between 1 and 4.

(4) If n 0, there will be no processing, and the contents of device will not change.

Page 448 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 448 · click to enlarge
Page 448

UNI(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range n-points from exceeds the relevant device. (Error code: 4101)
  • The value of n is outside the 0 to 4 range. (Error code: 4100)

Program Example

(1) The following program links the lower 4 bits of D0 to D2 when X0 is ON, and stores them at

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 448)
Fig. 708 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 448)
Fig. 709 · Program Example

0 1 b0

0 1 0 0 1 0 1 0 1 0 0 0 1 b8 b0 D10

0 1 0 1

0 1 0 0 1

[Operation]

Page 449 of the Mitsubishi Electronics QCPU user manual — NDIS(P),NUNI(P)
Page 449 · click to enlarge
Page 449

NDIS(P),NUNI(P)

7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))

NDIS(P),NUNI(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — NDIS(P),NUNI(P) diagram (page 449)
Fig. 710

: Head number of the devices where data to be dissociated/linked is stored (BIN 16 bits)

: Head number of the devices where the dissociated/linked data will be stored (BIN 16 bits)

: Head number of the devices where the units of dissociation/linking will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

7.5 Data processing instructions 7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))

(1) Dissociates data stored in device numbers starting from that designated at into the number of individual bits designated at , and stores this data in device numbers starting from that designated at .

Page 450 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 450 · click to enlarge
Page 450

NDIS(P),NUNI(P)

(2) The number of dissociated bits designated at can be designated within a range of 1 to 16 bits.

(3) Bits from the device number designated at to the device number where "0" is stored are processed as dissociated bits.

(4) Do not overlap the device range for data to be dissociated( to end range of ) with the device range which stores the dissociated data ( to end range of ). If overlapped, the correct operation result may not be obtained.

S1 S1

D D

(5) Do not specify the same device number for , , and . If the same device is specified for , , and , the operation does not work correctly.

S1 S2 D

S1 S2 D

NUNI

(1) Links individual bits of data stored into the area starting from the device number designated

by in the number of bits specified by , and stores them following the device number designated by .

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 450)
Fig. 711

(2) The number of bits to be linked as designated by can be within a range of from 1 to 16.

(3) Processing will be performed on the number of bits to be linked from the device number

designated by to the device number storing "0".

(4) Do not overlap the device range for data to be linked( to end range of ) with the device range which stores the linked data ( to end range of ). If overlapped, the correct operation result may not be obtained.

S1 S1

D D

(5) Do not overlap the device numbers to be designated at , and . If overlapped, correct operation is not possible.

S1 S2 D

Page 451 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 451 · click to enlarge
Page 451

NDIS(P),NUNI(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The number of bits to be dissociated or linked as specified by , or the device use range specified by or exceeds the final device number of their respective devices.

S1 D

(Error code4101)
  • The number of bits for dissociation or linking specified by has not been set within the range of from 1 to 16 bits. (Error code: 4100)

Program Example

(1) The following program dissociates data of 4, 3, and 6 bits respectively from the lower bits of

D0, and stores them from D10 to D12.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 451)
Fig. 712 · Program Example

7.5 Data processing instructions 7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P))

1 1 0 1 0 1 1 0 0 0 1 0 0 b4b3 b0

0 1 1 0 0

0 1 1

D12 b5 b0 The data in these bits is ignored. 6 bits

0 1 0 1 1 0 0

Page 452 of the Mitsubishi Electronics QCPU user manual — NDIS(P),NUNI(P)
Page 452 · click to enlarge
Page 452

NDIS(P),NUNI(P)

(2) The following program links the lower 4 bits of data from D10, the lower 3 bits of data from

D11, and the lower 6 bits of data from D12, and stores at D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — NDIS(P),NUNI(P) diagram (page 452)
Fig. 713
Mitsubishi Electronics QCPU — NDIS(P),NUNI(P) diagram (page 452)
Fig. 714

4 bits 0 0 0 1 0 1 1 0 0 1 1 0 1 1 0 0 b3 b0

0 1 0 1 0 1 0 0 0 1 1 0 1

0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0 b5 b0

0 0 0 1 0 1 1 0 0 1 0 1 1 1 0 0

[Operation]

Page 453 of the Mitsubishi Electronics QCPU user manual — WTOB(P),BTOW(P)
Page 453 · click to enlarge
Page 453

WTOB(P),BTOW(P)

7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))

WTOB(P),BTOW(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — WTOB(P),BTOW(P) diagram (page 453)
Fig. 715

: Head number of the devices where data to be dissociated/linked in byte units is stored (BIN 16 bits)

: Head number of the devices where the result of dissociated/linking in byte units will be stored (BIN 16 bits) n : Number of byte data to be dissociated/linked (BIN 16 bits)

Mitsubishi Electronics QCPU — WTOB(P),BTOW(P) diagram (page 453)
Fig. 716

7.5 Data processing instructions 7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))

(1) Dissociates n-bytes of the 16-bit data stored into the area starting from the device number

designated by , and stores them following the device designated by .

b15 b8b7 b0 b15 b8 b7 b0 D S

Data of lower byte 00H Data of upper byte Data of lower byte Data of upper byte

*1: Fractions that follow the decimal point are rounded up.

For example, if n 5, data through the lower 8 bits of to ( +2) would be stored from (

39H 78H 56H 39H 00H 12H 00H 78H 00H 56H 00H DCH 00H

Page 454 of the Mitsubishi Electronics QCPU user manual — S D
Page 454 · click to enlarge
Page 454

WTOB(P),BTOW(P)

(2) Setting the number of bytes with n automatically determines the range of the 16-bit data

designated by and the range of the devices to store the byte data designated by .

S D

(3) No processing will be conducted when the number of bytes designated by n is "0".

(4) The "00H" code will automatically be stored at the upper 8 bits of the byte storage device

Mitsubishi Electronics QCPU — S D diagram (page 454)
Fig. 717

31H 32H 33H 34H 35H 36H D13 D14

31H 00H 32H 00H 33H 00H 34H 00H

(5) Even though the range of the device with the data to be devided ( to +( -1)) is the

S S n 2

same as the range of the device with the devided data ( to +(n-1)), the instruction operates correctly.

D D

BTOW

(1) Links the lower 8 bits of the 16-bit data in n words stored in the area starting from the device

designated by in 1-word units and stores it into the area starting from the device

designated by . The upper 8 bits of n-word data stored in the area starting from the device

designated by will be ignored. Further, if n is an odd number, 0 is stored at the upper 8 bits of the device where the nth byte data is stored.

Mitsubishi Electronics QCPU — D D diagram (page 454)
Fig. 718

Data of the 1st byte Data of the 3rd byte Data of the 2nd byte Data of the 4th byte

Data of the 2nd byte Data of the 3rd byte Data of the 4th byte

*1: Figures after the decimal point are rounded up.

For example, if n 5, the lower 8 bits of data from to ( +4) are linked and stored at

b15 b8b7 b0 b15 b8 b7 b0 S S

12H 34H 56H 78H 00H FEH 00H

D 12H 34H 56H 78H

(2) Setting the number of bytes with n automatically determines the range of the byte data

designated by and the range of the devices to store the linked data designated by .

S D

(3) No processing will be conducted when the number of bytes designated by n is "0".

Page 455 of the Mitsubishi Electronics QCPU user manual — S S
Page 455 · click to enlarge
Page 455

WTOB(P),BTOW(P)

(4) The upper 8 bits of the byte storage device designated by are ignored, and the lower 8 bits are used.

(5) Linking is correctly processed even when the device range ( to +(n-1)) where the data

S S

to be linked is stored overlaps with the device range ( to +( -1)) where the linked data

D D n 2

will be stored.

For example, the following will take place in a case where the lower 8 bits of D11 to D16 are to be stored at D12 to D14:

Mitsubishi Electronics QCPU — S S diagram (page 455)
Fig. 719

31H 00H 31H 32H 33H 34H

35H 36H 35H 00H 36H 00H

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The range of the number of bytes designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

  • The range of the number of bytes designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

Mitsubishi Electronics QCPU — S S diagram (page 455)
Fig. 720

(1) The following program dissociates the data at D10 to D12 in byte units and stores it at D20

7.5 Data processing instructions 7.5.9 Data dissociation and linking in byte units (WTOB(P),BTOW(P))

58H 00H FDH 00H E2H 00H 57H 00H

E2H 57H 44H 34H D11 D12

Page 456 of the Mitsubishi Electronics QCPU user manual — WTOB(P),BTOW(P)
Page 456 · click to enlarge
Page 456

WTOB(P),BTOW(P)

(2) The following program links the lower 8 bits of data from D20 through D25 and stores the

result at D10 to D12 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — WTOB(P),BTOW(P) diagram (page 456)
Fig. 721

78H 12H 49H 55H 67H 31H

Step Instruction Device · [Operation]

Page 457 of the Mitsubishi Electronics QCPU user manual — MAX(P),DMAX(P)
Page 457 · click to enlarge
Page 457

MAX(P),DMAX(P)

7.5.10 Maximum value search for 16and 32-bit data (MAX(P),DMAX(P))

MAX(P),DMAX(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — MAX(P),DMAX(P) diagram (page 457)
Fig. 722

: Head number of the devices where a maximum value is searched (BIN 16/32 bits)

: Head number of the devices where the maximum value search result will be stored (BIN 16/32 bits) n : Number of data blocks to be searched (BIN 16 bits)

Mitsubishi Electronics QCPU — MAX(P),DMAX(P) diagram (page 457)
Fig. 723

7.5 Data processing instructions 7.5.10 Maximum value search for 16- and 32-bit data (MAX(P),DMAX(P))

(1) Searches in the n points of 16-bit BIN data, from the device designated by , for the

maximum value and stores the searched maximum value at the device designated by .

Starts the search from the device designated by and stores the location, specified in the

number of points counted from , of the device where the maximum value is found first at

+1 and stores the number of the found minimum values at +2.

Page 458 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 458 · click to enlarge
Page 458

MAX(P),DMAX(P)

DMAX

(1) Searches in the n points of 32-bit BIN data, from the device designated by , for the

maximum value and stores the searched maximum value at the device designated by

and +1.

Starts the search from the device designated by and stores the location, specified in the

number of points counted from , of the device where the maximum value is found first at

Mitsubishi Electronics QCPU — MAX(P),DMAX(P) diagram (page 458)
Fig. 724

+2 and stores the number of the found minimum values at +3.

54321000 (BIN) 4321000 (BIN) 3254000 (BIN) 54321000 (BIN) 12345678 (BIN)

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the , or device exceeds the range of that device.
(Error code4101)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program subtracts, when X1C is turned ON, the data stored at D100 to D103

from the data stored at R0 to R3, and searches in the results of subtraction for the maximum value, then, stores it at D200 to D202.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 458)
Fig. 725 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 458)
Fig. 726 · Program Example

[Operation]

Page 459 of the Mitsubishi Electronics QCPU user manual — 3786213 (BIN) D1, D0
Page 459 · click to enlarge
Page 459

MAX(P),DMAX(P)

(2) The following program searches for the maximum value from the32-bit data at D0 to D7, and

stores it at D100 to D103 when X20 is turned ON.

[Ladder Mode] [List Mode]

3786213 (BIN) D1, D0

8744740 D101, D100

D3, D2 D5, D4 D7, D6

-3235 (BIN)

3 1 D102 D103

8744740 (BIN) 7141821 (BIN)

7.5 Data processing instructions 7.5.10 Maximum value search for 16- and 32-bit data (MAX(P),DMAX(P))

Step Instruction Device · [Operation]

Page 460 of the Mitsubishi Electronics QCPU user manual — MIN
Page 460 · click to enlarge
Page 460

MIN(P),DMIN(P)

7.5.11 Minimum value search for 16and 32-bit data (MIN(P),DMIN(P))

MIN(P),DMIN(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — MIN(P),DMIN(P) diagram (page 460)
Fig. 727

: Head number of the devices where a minimum value is searched (BIN 16/32 bits)

: Head number of the devices where the minimum value search result will be stored (BIN 16/32 bits) n : Number of data blocks to be searched (BIN 16 bits)

Mitsubishi Electronics QCPU — MIN(P),DMIN(P) diagram (page 460)
Fig. 728

MIN

(1) Searches in the n points of 16-bit BIN data, from the device designated by , for the

minimum value and stores searched minimum value at the device designated by .

Starts the search from the device designated by and stores the location, specified in the

number of points counted from , of the device where the minimum value is found first at

+1 and stores the number of the found minimum values at +2.

Mitsubishi Electronics QCPU — MIN diagram (page 460)
Fig. 729
Page 461 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 461 · click to enlarge
Page 461

MIN(P),DMIN(P)

DMIN

(1) Searches in the n points of 32-bit BIN data, from the device designated by , for the

minimum value and stores searched minimum value at the devices designated by and

+1.

Starts the search from the device designated by and stores the location, specified in the

number of points counted from , of the device where the minimum value is found first at

+2 and stores the number of the found minimum values at +3.

Mitsubishi Electronics QCPU — MIN(P),DMIN(P) diagram (page 461)
Fig. 730

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The n-bit range from the device specified by exceeds the range of the corresponding device. (Error code: 4101)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program adds, when X1C is turned ON, the data stored at D100 to D103 and

Mitsubishi Electronics QCPU — Program Example diagram (page 461)
Fig. 731 · Program Example

the data stored at R0 to R3, and searches in the results of addition for the minimum value, then, stores it at D200 to D202.

7.5 Data processing instructions 7.5.11 Minimum value search for 16- and 32-bit data (MIN(P),DMIN(P))

Page 462 of the Mitsubishi Electronics QCPU user manual — 57020175 (BIN) D1,D0
Page 462 · click to enlarge
Page 462

MIN(P),DMIN(P)

(2) The following program, when X20 is turned ON, searches for the minimum value from the

32-bit data contained from D0 to D7, and stores it from D100 to D103.

[Ladder Mode] [List Mode]

57020175 (BIN) D1,D0

69386 D101,D100

D3,D2 D5,D4 D7,D6

2070166 (BIN) 3596045 (BIN) 69386 (BIN)

4 1 D102 D103

Step Instruction Device · [Operation]

Page 463 of the Mitsubishi Electronics QCPU user manual — SORT,DSORT
Page 463 · click to enlarge
Page 463

SORT,DSORT

7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)

SORT,DSORT

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 463)
Fig. 732

: Head device number in the table to be sorted (BIN 16/32 bits) n : Number of data blocks to be sorted (BIN 16 bits)

Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 463)
Fig. 733

: Number of data blocks to be compared in one sort operation (BIN 16 bits)

: Number of the bit device to be turned ON at the completion of the sort operation (bits)

: Device reserved for the system (BIN 16 bits)

7.5 Data processing instructions 7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)

(1) Sorts (rearranges data) BIN 16-bit data n points from in ascending or descending order.

Sort order is designated by the ON/OFF status of SM703:

  • When SM703 is ON : Descending order sort
Page 464 of the Mitsubishi Electronics QCPU user manual — DSORT
Page 464 · click to enlarge
Page 464

SORT,DSORT

(2) Several scans are required for sorts performed by the SORT instruction. The number of

scans executed until completion is the value obtained by dividing the maximum number of times executed until the completion of the sort by the number of data blocks compared at

one execution designated by . (Decimal fractions are rounded up.)When the value of is increased, the number of scans until completion of the sort is reduced, but the amount of time per scan is lengthened.

S2 S2

(3) The maximum number of executions until completion of the sort should be calculated

according to the following equation:

The maximum number of executions until completion (n) (n - 1) / 2 [times executed]

Example

When n 10, the number of executions is obtained as 10 (10 - 1) / 2 45 [times executed].

If 2, then the number of scans until the completion of sort is calculated as

45/2 22.5 23 [scans].

(4) The device designated by (the completion device) is turned OFF by the execution of the SORT instruction, and turned ON when the sort is completed. Because the device

designated by is maintained in the ON state after the completion of the sort, the user must turn it OFF if required.

(5) The 2 points from the device designated by are used by the system during the execution

of the SORT instruction. These 2 points from the device designated by should therefore not be used by the user.

Changing these points may cause an error code to be returned (Error code: 4100).

(6) If the value of n is changed during the execution of the SORT instruction, the sort will be

conducted in accordance with the number of sort data blocks after the change.

(7) If the execution command is turned OFF during the execution of the SORT instruction, the

sort is suspended. The sort resumes from the beginning when the execution command is turned ON again.

(8) To execute another sort operation immediately after the completion of the previous sort, turn

OFF the execution command once, then turn it ON.

DSORT

(1) Sorts (rearranges data) BIN 32-bit data n points from in ascending or descending order.

Sort order is designated by the ON/OFF status of SM703:

  • When SM703 is OFF : Ascending order sort
  • When SM703 is ON : Descending order sort

Data before sort When SM703 = OFF

+3 , +5 , +7 ,

Sort in the ascending order

+3 , +5 , +7 ,

+3 , +5 , +7 ,

When SM703 = ON

Sort in the descending order

Show 7 more labels / short text on this page
+1 , · +2 +4 +6 · +1 , · +2 +4 +6 · +1 , · +2 +4 +6 · 500 -124
Page 465 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 465 · click to enlarge
Page 465

SORT,DSORT

(2) Several scans are required for sorts performed by the DSORT instruction. The number of

scans executed until completion is the value obtained by dividing the maximum number of times executed until the completion of the sort by the number of data blocks compared at

one execution designated by . (Decimal fractions are rounded up.)When the value of is increased, the number of scans until completion of the sort is reduced, but the amount of time per scan is lengthened.

S2 S2

(3) The maximum number of executions until completion of the sort should be calculated

according to the following equation:

The maximum number of executions until completion (n) (n 1)/2 [times executed]

Example

When n 10, the number of executions is obtained as 10 (10 1)/2 45 [times executed].

If S2 2, then the number of scans until the completion of sort is calculated as

45/2 22.5 23 [scans].

(4) The device designated by (the completion device) is turned OFF by the execution of the SORT instruction, and turned ON when the sort is completed. Because the device desig-

nated by is maintained in the ON state after the completion of the sort, the user must turn it OFF if required.

(5) The 2 points from the device designated by are used by the system during the execution

of a DSORT instruction. These 2 points from the device designated by should therefore not be used by the user.

Changing these points may cause an error code to be returned (Error code: 4100).

(6) If the value of n is changed during the execution of the SORT instruction, the sort will be

conducted in accordance with the number of sort data blocks after the change.

(7) If the execution command is turned OFF during the execution of the SORT instruction, the

sort is suspended. The sort resumes from the beginning when the execution command is turned ON again.

7.5 Data processing instructions 7.5.12 BIN 16 and 32 bits data sort operations (SORT,DSORT)

(8) To execute another sort operation immediately after the completion of the previous sort, turn

OFF the execution command once, then turn it ON.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • For the SORT(P) instruction, the range for n points starting from the device at exceeds the corresponding device range. (Error code: 4101)
  • For the DSORT(P) instruction, the range for 2 n points starting from the device at exceeds the corresponding device range. (Error code: 4101)
  • The device range of the (n/2 n) points starting from the device designated by

overlaps with the device range of the 2 points starting from the device designated by . (Error code: 4101)

  • is 0 or is a negative value. (Error code: 4100)
Page 466 of the Mitsubishi Electronics QCPU user manual — SORT,DSORT
Page 466 · click to enlarge
Page 466

SORT,DSORT

Program Example

(1) The following program sorts the BIN 16-bit data in 10 points from D0 in the ascending/

descending order when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 466)
Fig. 734
Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 466)
Fig. 735

(2) The following program sorts the BIN 32-bit data in 20 points from D0 in ascending/

descending order when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 466)
Fig. 736
Mitsubishi Electronics QCPU — SORT,DSORT diagram (page 466)
Fig. 737

[Operation] · [Operation]

Page 467 of the Mitsubishi Electronics QCPU user manual — WSUM(P)
Page 467 · click to enlarge
Page 467

WSUM(P)

7.5.13 Calculation of totals for 16-bit data (WSUM(P))

WSUM(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — WSUM(P) diagram (page 467)
Fig. 738

: Head number of the devices where data to be summed are stored (BIN 16 bits)

: Head number of the devices where the sum will be stored (BIN 32 bits) n : Number of data blocks (BIN 16 bits)

Mitsubishi Electronics QCPU — WSUM(P) diagram (page 467)
Fig. 739

(1) Adds all 16-bit BIN data for n blocks from the device designated at , and stores it in the

Mitsubishi Electronics QCPU — WSUM(P) diagram (page 467)
Fig. 740

7.5 Data processing instructions 7.5.13 Calculation of totals for 16-bit data (WSUM(P))

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

  • The n-bit range from the , or device exceeds the range of that device.
Page 468 of the Mitsubishi Electronics QCPU user manual — 4500 (BIN) D10
Page 468 · click to enlarge
Page 468

WSUM(P)

Program Example

(1) The following program adds the 16-bit BIN data from D10 to D14, and stores it in D100 and

D101 when X1C is turned ON.

[Ladder Mode] [List Mode]

4500 (BIN) D10

6780 (BIN) 14948 (BIN) D11 D12 D13

2500 (BIN) 3276 (BIN)

D101,D100

4444 (BIN) D14

Step Instruction Device · [Operation]

Page 469 of the Mitsubishi Electronics QCPU user manual — DWSUM(P)
Page 469 · click to enlarge
Page 469

DWSUM(P)

7.5.14 Calculation of totals for 32-bit data (DWSUM(P))

DWSUM(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DWSUM(P) diagram (page 469)
Fig. 741

: Head number of the devices where data to be summed are stored (BIN 32 bits)

: Head number of the devices where the sum will be stored (BIN 64 bits) n : Number of data blocks (BIN 16 bits)

Mitsubishi Electronics QCPU — DWSUM(P) diagram (page 469)
Fig. 742

(1) Adds all 32-bit BIN data stored in n points of devices starting from the one designated by ,

Mitsubishi Electronics QCPU — DWSUM(P) diagram (page 469)
Fig. 743

7.5 Data processing instructions 7.5.14 Calculation of totals for 32-bit data (DWSUM(P))

and stores the result to 4 points of devices (4 words) starting from the one designated by .

68640000 (BIN) D n + 3 D + 2 + 4 + 6 + 8

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The n-bit range from the , or device exceeds the range of that device.
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 470 of the Mitsubishi Electronics QCPU user manual — 11245600 (BIN) D101,D100
Page 470 · click to enlarge
Page 470

DWSUM(P)

Program Example

(1) The following program adds the 32-bit BIN data at D100 to D107, and stores the result at

D10 and D13 when X20 is turned ON.

[Ladder Mode] [List Mode]

11245600 (BIN) D101,D100

23672600 (BIN) D103,D102 D105,D104 D107,D106

27543200 (BIN) 558800 (BIN) 15675000 (BIN)

Step Instruction Device · [Operation] · D10 D13 to

Page 471 of the Mitsubishi Electronics QCPU user manual — S D
Page 471 · click to enlarge
Page 471

MEAN(P),DMEAN(P)

7.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))

MEAN(P),DMEAN(P)

Ver.

Basic Process High performance Redundant

  • QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
  • QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
Mitsubishi Electronics QCPU — MEAN(P),DMEAN(P) diagram (page 471)
Fig. 744

: Head number of the devices where the data to be averaged are stored (BIN16/32 bits)

: Head number of the devices where the average will be stored (BIN 16/32 bits) n : Number of data or number of the devices where the number of data are stored(Setting range: 1 to 32767)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

––

––

Function

7.5 Data processing instructions 7.5.15 Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P))

MEAN(P)

(1) This instruction calculates the mean of 16-bit BIN data stored in n-point devices starting from

the device specified by , and then stores the result into the device specified by .

S D

Average value D S S

+n-1

(2) If the value calculated is not integer, this instruction will drop the number of decimal places.

(3) If the value specified by n is 0, the instruction will be not processed.

DMEAN(P)

(1) This instruction calculates the mean of 32-bit BIN data stored in n-point devices starting from

the device specified by , and then stores the result into the device specified by .

S D

+ 2 + 1, + 3, S S

S S

Average value D D +1,

+2n-2 +2n-1,

(2) If the value calculated is not integer, this instruction will drop the number of decimal places.

(3) If the value specified by n is 0, the instruction will be not processed.

Show 9 more labels / short text on this page
Universal · (BIN 16 bits) · Setting · Internal Devices · Data · n –– –– · n +1 · +2 · n
Page 472 of the Mitsubishi Electronics QCPU user manual — D11,D10 D1,D0 D3,D2 D5,D4
Page 472 · click to enlarge
Page 472

MEAN(P),DMEAN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The value specified by n is other than 0 to 32767. (Error code: 4100)
  • The range of the n-point devices starting from the device specified by exceeds the

range of the devices specified by . (Error code: 4101)

Program Example

(1) The following program stores the average value of 16-bit data stored from D0 to D2 into

D10,when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 472)
Fig. 745 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 472)
Fig. 746 · Program Example

(BIN) (BIN) (BIN) D1 D10 D0

550 (BIN) 105 555 990

(2) The following program stores the average value of 32-bit data stored from D0 to D5 into D10

and D11, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — (BIN) (BIN) (BIN) D1 D10 D0 diagram (page 472)
Fig. 747
Mitsubishi Electronics QCPU — (BIN) (BIN) (BIN) D1 D10 D0 diagram (page 472)
Fig. 748

D11,D10 D1,D0 D3,D2 D5,D4

2101176 (BIN) 623541 4753647 926342

(BIN) (BIN) (BIN)

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 473 of the Mitsubishi Electronics QCPU user manual — FOR,NEXT
Page 473 · click to enlarge
Page 473

FOR,NEXT

7.6 Structure creation instructions

7.6.1 FOR to NEXT instruction loop (FOR,NEXT)

FOR,NEXT

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FOR,NEXT diagram (page 473)
Fig. 749
nNumber of repetitions of FOR to NEXT loop (1 to 32767) (BIN 16 bits)
Mitsubishi Electronics QCPU — FOR,NEXT diagram (page 473)
Fig. 750

(1) When the processing in the FOR to NEXT loop is executed n-times without conditions, the

step following the NEXT instruction will be executed.

Mitsubishi Electronics QCPU — FOR,NEXT diagram (page 473)
Fig. 751

(2) The value of n can be designated at between 1 and 32767. If it is designated from 32768 to 0, the processing which is executed when n=1 will be performed.

7.6 Structure creation instructions 7.6.1 FOR to NEXT instruction loop (FOR,NEXT)

(3) If you do not desire to execute the processing called for within the FOR to NEXT loop, use

(4) FOR instructions can be nested up to 16 deep.

FOR instructions can be nested up to 16 deep.

Page 474 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 474 · click to enlarge
Page 474

FOR,NEXT

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • An END, FEND or GOEND instruction was executed before the execution of a NEXT

instruction and after the execution of a FOR instruction. (Error code: 4200)

  • A NEXT instruction is executed prior to the execution of a FOR instruction.
(Error code4201)
  • A STOP instruction has been inserted within the FOR to NEXT loop.
(Error code4200)
  • The 17th FOR instruction is executed when FOR instructions have been nested.
(Error code4202)

Program Example

(1) The following program executes the FOR to NEXT loop when X8 is OFF, and does not

execute it when X8 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 474)
Fig. 752 · Program Example
Page 475 of the Mitsubishi Electronics QCPU user manual — FOR,NEXT
Page 475 · click to enlarge
Page 475

FOR,NEXT

Remark

1. To force an end to the repetitious execution of the FOR to NEXT loop during the execution of the loop, insert a BREAK instruction. See 7.6.2 for details concerning the use of the BREAK instruction. 2. Use the EGP/EGF instruction to perform the pulse operation of an index-modified program between the FOR and NEXT instructions. Refer to 5.2.5 for details of the EGP/EGF instruction. The program samples are shown below:
Mitsubishi Electronics QCPU — FOR,NEXT diagram (page 475)
Fig. 753
3. Branching into a FOR to NEXT loop using a JMP or other branch instruction from the outside of the FOR to NEXT loop is not possible.
Mitsubishi Electronics QCPU — FOR,NEXT diagram (page 475)
Fig. 754

7.6 Structure creation instructions 7.6.1 FOR to NEXT instruction loop (FOR,NEXT)

Page 476 of the Mitsubishi Electronics QCPU user manual — BREAK(P)
Page 476 · click to enlarge
Page 476

BREAK(P)

7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))

BREAK(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BREAK(P) diagram (page 476)
Fig. 755

: Number of the device where the remaining number of loops will be stored (BIN 16 bits) Pn : Number of the pointer (device name (pointer)) where the program is branched at the forced end of a loop.

Mitsubishi Electronics QCPU — BREAK(P) diagram (page 476)
Fig. 756

(1) Forces an end to a FOR to NEXT instruction loop and shifts the operation to the pointer

specified by Pn. Only a pointer within the same program file can be assigned to Pn. If a pointer of the other program file is used, an operation error will be returned.

Mitsubishi Electronics QCPU — BREAK(P) diagram (page 476)
Fig. 757

If the BREAK instruction is not executed, program returns to the FOR instruction as many times as the number specified with the FOR instruction.

(2) The remaining number of the FOR to NEXT instruction loop times is stored at . Note that the remaining number includes the operation when the BREAK instruction is executed.

(3) The BREAK instruction can be used only during the execution of a FOR to NEXT instruction

loop.

(4) The BREAK instruction can be used only when there is only one level of nesting. When an

end is forced to the multiple nesting levels, execute the same number of BREAK instructions for the nesting levels.

Page 477 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 477 · click to enlarge
Page 477

BREAK(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The BREAK instruction is used in a case other than with the FOR to NEXT instruction
loop. (Error code4203)
  • The jump destination for the pointer designated by Pn does not exist.
(Error code4210)
  • The pointer of another program file is designated for Pn. (Error code: 4210)

Program Example

(1) The following program forces the FOR to NEXT loop to end when the value of D0 reaches

30 (when the FOR to NEXT loop has been executed 30 times).

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 477)
Fig. 758 · Program Example

7.6 Structure creation instructions 7.6.2 Forced end of FOR to NEXT instruction loop (BREAK(P))

The value 71 is stored at D1 when the BREAK instruction is executed.

Page 478 of the Mitsubishi Electronics QCPU user manual — CALL(P)
Page 478 · click to enlarge
Page 478

CALL(P)

7.6.3 Subroutine program calls (CALL(P))

CALL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — CALL(P) diagram (page 478)
Fig. 759
PnHead pointer number of a subroutine program (Device name)
Mitsubishi Electronics QCPU — CALL(P) diagram (page 478)
Fig. 760

to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)

(1) When the CALL (P) instruction is executed, executes the subroutine program of the program

specified by Pn.

The CALL (P) instruction can execute subroutine programs specified by a pointer within the same program file and subroutine programs specified by a common pointer.

Mitsubishi Electronics QCPU — CALL(P) diagram (page 478)
Fig. 761
Page 479 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 479 · click to enlarge
Page 479

CALL(P)

(2) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with

to corresponding to the function device. The contents to the devices specified by

S1 S5 S1

to are as indicated below.

Mitsubishi Electronics QCPU — S1 S5 S1 diagram (page 479)
Fig. 762

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word

data is transmitted to FD.

(b) After the execution of the subroutine program, the contents of FY and FD are

transmitted to the corresponding devices.

(c) The processing units for the function devices are as follows:

  • FX, FY: Bits
  • FD : 4-word units The size of the data to be dealt with will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur if it cannot be secured for the data size.

Function devices Device Data Size Remark

  • FX

Bit device 1 point –– When bit designation is made for word device 1 bit

  • FY

7.6 Structure creation instructions 7.6.3 Subroutine program calls (CALL(P))

  • FD When digit designation of a bit device is used *1 4 words The data size varies

instruction to be used. Word device 4 words

*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.

S1 S5

D0 M0 P0 CALL

Occupies from D30 to D33 (Transfer to FD2).

Occupies from D0 to D3 (Transfer to FD1).

Occupies M0 (Transfer to FX0).

(3) to can be used with the CALL (P) instruction.

S1 S5

(4) The number of function devices to be used by a subroutine program must be identical to the

number of arguments in the CALL (P) instruction. Also, the types of the function device and CALL (P) argument used should be identical.

(5) Device numbers specified by the CALL (P) instruction should not overlap.

If they do overlap, it will not be possible to obtain accurate calculations.

depending on the · [Main routine program]

Page 480 of the Mitsubishi Electronics QCPU user manual — FD0 FD0 FD0 FD0
Page 480 · click to enlarge
Page 480

CALL(P)

(6) The device used in the argument of the CALL (P) instruction should not be used in a subrou-

tine program. If used, it will not be possible to obtain accurate calculations. (Refer to the following program example.)

(7) When the device, either timer or counter, is used in the argument of the CALL(P) instruction,

only the current value is transmitted/received.

Incorrect operation example

The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D1 is used in the subroutine program.

[Operation performed after subroutine program execution]

Before the execution of subroutine program

At the time of subroutine program

After the execution of RET instruction

FD0

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. *3: D1 does not reflect the value of the function device.

Show 21 more labels / short text on this page
[Program example] · Immediately after the · execution of CALL · instruction · execution · 33 *2 · 110 *1 · 110 *3 · 100 *2 · Transfer Transfer · 1000 *2 · Indefinite · 33 *1 · Indefinite · Indefinite · 1 *1 · Indefinite · Indefinite · Indefinite · Indefinite · Indefinite
Page 481 of the Mitsubishi Electronics QCPU user manual — P0 CALL
Page 481 · click to enlarge
Page 481

CALL(P)

Correct operation example

The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D4 is used in the subroutine program.

Mitsubishi Electronics QCPU — CALL(P) diagram (page 481)
Fig. 763

[Operation performed after subroutine program execution]

At the time of subroutine program

Before the execution of subroutine program

After the execution of RET instruction

D4 D4

D4 D4

FD0 FD0 FD0 FD0

7.6 Structure creation instructions 7.6.3 Subroutine program calls (CALL(P))

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device.

(8) Up to 16 nesting levels are possible with the CALL(P) instruction. However, this 16 levels is

the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

P0 CALL

P0 P10 P20

CALL P10 CALL P20

FEND RET RET RET

END

(9) Devices which are turned ON within subroutine programs will be latched even if the

subroutine program is not executed. Devices which are turned ON during the execution of a subroutine program can be turned OFF by the execution of the FCALL(P) instruction.

Show 22 more labels / short text on this page
[Program example] · Immediately after the · execution of CALL · instruction · execution · 33 *2 · 1 *2 · Transfer · 100 *2 · Transfer · 1000 *2 · 100 *1 · Indefinite · 33 *1 · Indefinite · Indefinite · 1 *1 · Indefinite · Indefinite · Indefinite · Indefinite · Indefinite
Page 482 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 482 · click to enlarge
Page 482

CALL(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device specified for the argument cannot be secured for the data size.
(Error code4101)
  • Following the execution of the CALL (P) instruction, an END, FEND, GOEND, or STOP

instruction is executed before the execution of the RET instruction.

(Error code4211)
  • An RET instruction is executed prior to the execution of the CALL (P) instruction.
(Error code4212)
  • A 17th nesting level is executed. (Error code: 4213)
  • There is no subroutine program for the pointer specified in the CALL (P) instruction.
(Error code4210)

Program Example

(1) The following program executes a subroutine program with argument when X20 is turned

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 482)
Fig. 764 · Program Example
Page 483 of the Mitsubishi Electronics QCPU user manual — END
Page 483 · click to enlarge
Page 483

RET

7.6.4 Return from subroutine programs (RET)

RET

Basic Process High performance Redundant Universal

RET RET

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

(1) Indicates end of subroutine program

(2) When the RET instruction is executed, returns to the step following the CALL (P), FCALL

(P), ECALL (P), EFCALL (P) or XCALL instruction which called the subroutine program.

RET

7.6 Structure creation instructions 7.6.4 Return from subroutine programs (RET)

END

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Following the execution of the CALL(P), FCALL (P), ECALL (P), EFCALL (P) or XCALL

instruction, an END, FEND, GOEND, or STOP instruction is executed before the execution of the RET instruction. (Error code: 4211)

  • An RET instruction is executed prior to the execution of the CALL (P), FCALL (P), ECALL

(P), EFCALL (P) or XCALL instruction. (Error code: 4212)

Show 9 more labels / short text on this page
Setting · Internal Devices · Data · Main routine · Subroutine · program · program · Pn · CALL Pn
Page 484 of the Mitsubishi Electronics QCPU user manual — FCALL(P)
Page 484 · click to enlarge
Page 484

FCALL(P)

7.6.5 Subroutine program output OFF calls (FCALL(P))

FCALL(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FCALL(P) diagram (page 484)
Fig. 765
PnHead pointer number of a subroutine program (Device name)
Mitsubishi Electronics QCPU — FCALL(P) diagram (page 484)
Fig. 766

to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)

(1) When FCALL(P) is executed, the non-execution processing of the subroutine program of the

pointer designated by Pn is performed.

The FCALL (P) instruction can execute subroutine programs designated by a pointer within the same program file, and subroutine programs designated by common pointers.

(a) Non-execution processing is identical to the processing that is conducted when the

condition contacts for the individual coil instructions are in the OFF state.

Mitsubishi Electronics QCPU — FCALL(P) diagram (page 484)
Fig. 767

Pn Non-execution processing is executed when the command for the FCALL(P) instruction is turned from ON to OFF.

Page 485 of the Mitsubishi Electronics QCPU user manual — CALL P0
Page 485 · click to enlarge
Page 485

FCALL(P)

(b) The operation results for the individual coil instructions following non-execution

processing will be as follows, regardless of the ON/OFF status of the individual contacts:

OUT instruction Forced OFF SET instruction

Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction

Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer

Preserves Present value of counter

(2) The FCALL (P) instruction is used in conjunction with the CALL(P) instruction.

(3) If the FCALL (P) instruction is used in conjunction with the CALL(P) instruction,

non-execution processing of a subroutine program is performed when the execution command is turned OFF, enabling forcible turning OFF of the OUT instruction and the PLS instruction (including P instructions). In case the FCALL (P) instruction is not used in conjunction with the CALL(P) instruction, non-execution processing of a subroutine program is not performed even if the execution command is turned OFF. Therefore, output status of the individual coil instructions remains unchanged.

CALL When FCALL instruction is used

P0

FCALL P0

7.6 Structure creation instructions 7.6.5 Subroutine program output OFF calls (FCALL(P))

Y10

FEND

Y10 X1 P0

Y11

SET Y11

M0

Forced OFF by FCALL instruction

PLS M0

RET

When FCALL instruction is not used

CALL P0

FEND

Y10 X1 P0

Y10

Y11

SET Y11

M0

PLS M0

RET

Page 486 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 486 · click to enlarge
Page 486

FCALL(P)

(4) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with

to corresponding to the function device. The contents to the devices specified by

S1 S5 S1

to are as indicated below.

Mitsubishi Electronics QCPU — S1 S5 S1 diagram (page 486)
Fig. 768

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word

data is transmitted to FD.

(b) After the execution of the subroutine program, the contents of FY and FD are

transmitted to the corresponding devices.

(c) The processing units for the function devices are as follows:

  • FX, FY: Bits
  • FD : 4-word units The size of the data to be dealt with will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur if it cannot be secured for the data size.

Function devices Device Data Size Remark

Bit device 1 point

  • FX

When Bit Designation has been Made for Word

  • FY
  • FD When digit designation of a bit device is used*1 4 words The upper 2 words of

Word device 4 words

*1: An error will not occur if the device number specified by to is not a multiple of 16 at the digit designation of the bit device.

S1 S5

D0 M0 P0 FCALL

Occupies from D30 to D33 (Transfer to FD2).

Occupies from D0 to D3 (Transfer to FD1).

Occupies M0 (Transfer to FX0).

(5) The FCALL (P) instruction can use from to .

S1 S5

Device 1 bit · FD become 0 · [Main routine program]

Page 487 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 487 · click to enlarge
Page 487

FCALL(P)

(6) Up to 16 nesting levels are possible with the FCALL(P) instruction. However, this 16 levels

is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

Mitsubishi Electronics QCPU — FCALL(P) diagram (page 487)
Fig. 769

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0. • The device specified for the argument cannot be secured for the data size.

(Error code4101)
  • Following the execution of the CALL (P) instruction, an END, FEND, GOEND, or STOP

instruction is executed before the execution of the RET instruction.

(Error code4211)
  • An RET instruction is executed prior to the execution of the FCALL (P) instruction.
(Error code4212)
  • A 17th nesting level is executed. (Error code: 4213)
  • The subroutine program of the pointer designated by the FCALL (P) instruction does not
exist. (Error code4210)
Mitsubishi Electronics QCPU — Operation Error diagram (page 487)
Fig. 770 · Operation Error

7.6 Structure creation instructions 7.6.5 Subroutine program output OFF calls (FCALL(P))

(1) The following program executes a subroutine program with argument when X20 is turned

ON, and forces non-execution processing when X20 is turned from ON to OFF. [Ladder Mode] [List Mode]

Page 488 of the Mitsubishi Electronics QCPU user manual — ECALL(P)
Page 488 · click to enlarge
Page 488

ECALL(P)

7.6.6 Subroutine calls between program files (ECALL(P))

ECALL(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — ECALL(P) diagram (page 488)
Fig. 771
File nameName of the program file to be called (character string)
PnHead pointer number of a subroutine program (Device name)
Mitsubishi Electronics QCPU — ECALL(P) diagram (page 488)
Fig. 772

to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)

(1) Executes the subroutine program of the pointer designated by Pn in the designated program

file name when the ECALL (P) instruction is executed. The ECALL(P) instruction can be used to call a subroutine program that uses a local pointer from a different program file.

Mitsubishi Electronics QCPU — ECALL(P) diagram (page 488)
Fig. 773
Page 489 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 489 · click to enlarge
Page 489

ECALL(P)

(2) Only the file name of a program file stored in the drive 0 (program memory/internal RAM)

can be designated for a file name.

(3) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

(4) When function devices (FX, FY, FD) are used by a subroutine program, specify a device

corresponding to the function device with to . The contents of the devices specified by

S1 S5

S1 S5

to are as indicated below.

[MAIN]

Mitsubishi Electronics QCPU — [MAIN] diagram (page 489)
Fig. 774
Mitsubishi Electronics QCPU — [MAIN] diagram (page 489)
Fig. 775

[ABC]

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word

data is transmitted to FD.

(b) After the execution of the subroutine program, the contents of FY and FD are

transmitted to the corresponding devices.

(c) The processing units for the function devices are as follows:

  • FX, FY: Bits

7.6 Structure creation instructions 7.6.6 Subroutine calls between program files (ECALL(P))

  • FD : 4-word units The size of the data to be dealt with will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur if it cannot be secured for the data size.

Function devices Device Data Size Remark

Bit device 1 point

  • FX

When Bit Designation has been Made for Word

  • FY
  • FD When digit designation of a bit device is used*1 4 words The data size varies

instruction to be used. Word device 4 words

*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.

S1 S5

D0 M0 P0 ECALL "A-LINE"

Occupies from D30 to D33 (Transfer to FD2).

Occupies from D0 to D3 (Transfer to FD1).

Occupies M0 (Transfer to FX0).

Device 1 bit · depending on the · [Main routine program]

Page 490 of the Mitsubishi Electronics QCPU user manual — Incorrect operation example
Page 490 · click to enlarge
Page 490

ECALL(P)

(5) From to can be used by the ECALL instruction.

S1 S5

(6) The device used in the argument of the ECALL instruction should not be used in a

subroutine program.

If used, it will not be possible to obtain accurate calculations. (Refer to the following program example.)

Incorrect operation example

The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D1 is used in the subroutine program.

Mitsubishi Electronics QCPU — Incorrect operation example diagram (page 490)
Fig. 776 · Incorrect operation example

[Operation performed after subroutine program execution]

Mitsubishi Electronics QCPU — Incorrect operation example diagram (page 490)
Fig. 777 · Incorrect operation example

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. *3: D1 does not reflect the value of the function device.

[Program example]

Page 491 of the Mitsubishi Electronics QCPU user manual — "ABC" P0 ECALL
Page 491 · click to enlarge
Page 491

ECALL(P)

Correct operation example

The following example shows the operation performed when D0 is specified for FD0 in the subroutine program and D4 is used in the subroutine program.

Mitsubishi Electronics QCPU — ECALL(P) diagram (page 491)
Fig. 778

[Operation performed after subroutine program execution]

At the time of subroutine program

Before the execution of subroutine program

After the execution of RET instruction

D4 0 0 D4 100 D4 100 *1

7.6 Structure creation instructions 7.6.6 Subroutine calls between program files (ECALL(P))

FD0

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device.

(7) The numbers of the devices designated by the arguments in the ECALL(P) instruction

should not overlap. If they do overlap, it will not be possible to obtain accurate calculations.

(8) Up to 16 levels of nesting can be used with the ECALL(P) instruction. However, this 16

levels is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

"ABC" P0 ECALL

P0 P10 P20

ECALL"DEF" P10 ECALL "GHI" P20

FEND RET RET RET

END

(9) Devices which are turned ON within subroutine programs will be latched even if the

subroutine program is not executed. Devices turned ON during the execution of a subroutine program can be turned OFF by the EFCALL(P) instruction.

Show 20 more labels / short text on this page
[Program example] · Immediately after the · execution of ECALL · instruction · execution · 33 *2 · 1 *2 · Transfer Transfer · 100 *2 · 1000 *2 · Indefinite · 33 *1 · Indefinite · Indefinite · 1 *1 · Indefinite · Indefinite · Indefinite · Indefinite · Indefinite
Page 492 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 492 · click to enlarge
Page 492

ECALL(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device specified for the argument cannot be secured for the data size.
(Error code4101)
  • Following the execution of the ECALL (P) instruction, an END, FEND, GOEND, or STOP

instruction is executed before the execution of the RET instruction.

(Error code4211)
  • An RET instruction is executed prior to the execution of the ECALL(P) instruction.
(Error code4212)
  • A 17th nesting level is executed. (Error code: 4213)
  • The subroutine program of the pointer designated by the ECALL(P) instruction does not
exist. (Error code4210)
  • The designated file does not exist. (Error code: 2410)
  • The designated file cannot be executed. (Error code: 2411)

Program Example

(1) The following program executes program block P0 of the program A-LINE when X20 is

turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 492)
Fig. 779 · Program Example
Page 493 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 493 · click to enlarge
Page 493

EFCALL(P)

7.6.7 Subroutine output OFF calls between program files (EFCALL(P))

EFCALL(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — EFCALL(P) diagram (page 493)
Fig. 780
File nameName of the program file to be called (character string)
PnHead pointer number of a subroutine program (Device name)

S1 S5

toNumber of the device to be passed as an argument to a subroutine program

(bits, BIN 16 bits, BIN 32 bits)

Mitsubishi Electronics QCPU — S1 S5 diagram (page 493)
Fig. 781

7.6 Structure creation instructions 7.6.7 Subroutine output OFF calls between program files (EFCALL(P))

(1) When the EFCALL(P) instruction is executed, the non-execution processing of the

subroutine program of the pointer designated by Pn is performed.

The EFCALL (P) can also be used to call a subroutine program that uses a local pointer from a different program file.

(a) Non-execution processing is identical to the processing that is conducted when the

condition contacts for the individual coil instructions are in the OFF state.

Pn Non-execution processing is executed when the command for the EFCALL(P) instruction is turned from ON to OFF.

Page 494 of the Mitsubishi Electronics QCPU user manual — EFCALL(P)
Page 494 · click to enlarge
Page 494

EFCALL(P)

(b) The operation results for the individual coil instructions following non-execution

processing will be as follows, regardless of the ON/OFF status of the individual contacts:

OUT instruction Forced OFF SET instruction

Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction

Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer

Preserves Present value of counter

(2) The EFCALL (P) instruction is used in combination with the ECALL (P) instruction.

(3) If the EFCALL(P) instruction is used in conjunction with the ECALL(P) instruction,

non-execution processing of a subroutine program is performed when the execution command is turned OFF, enabling forcible turning OFF of the OUT instruction and the PLS

instruction (including P instructions). In case the EFCALL(P) instruction is not used in conjunction with the ECALL(P) instruction, non-execution processing of a subroutine program is not performed even if the execution command is turned OFF. Therefore, output status of the individual coil instructions remains unchanged.

Mitsubishi Electronics QCPU — EFCALL(P) diagram (page 494)
Fig. 782

When EFCALL instruction is used

[File NameABC.QPG]

Forced OFF by FCALL instruction

When EFCALL instruction is not used

[File NameABC.QPG]
Page 495 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 495 · click to enlarge
Page 495

EFCALL(P)

(4) Only the file name of a program file stored in the drive 0 (program memory/internal RAM)

can be designated for a file name.

(5) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

(6) When function devices (FX, FY, FD) are used by a subroutine program, specify a device

corresponding to the function device with to .

S1 S5

[MAIN]

Mitsubishi Electronics QCPU — S1 S5 diagram (page 495)
Fig. 783

[ABC]

Mitsubishi Electronics QCPU — [ABC] diagram (page 495)
Fig. 784

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word

data is transmitted to FD.

(b) After the execution of the subroutine program, the contents of FY and FD are

transmitted to the corresponding devices.

(c) The processing units for the function devices are as follows:

7.6 Structure creation instructions 7.6.7 Subroutine output OFF calls between program files (EFCALL(P))

  • FX, FY: Bits
  • FD : 4-word units The size of the data to be dealt with will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur if it cannot be secured for the data size.

Function devices Device Data Size Remark

Bit device 1 point

  • FX

–– When Bit Designation has been Made for Word

  • FY
  • FD When digit designation of a bit device is used*1 4 words The upper 2 words of

Word device 4 words ––

*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the bit device.

S1 S5

D0 M0 P0 "ABC" EFCALL

Occupies from D30 to D33 (Transfer to FD2).

Occupies from D0 to D3 (Transfer to FD1).

Occupies M0 (Transfer to FX0).

Device 1 bit · FD become 0 · [Main routine program]

Page 496 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 496 · click to enlarge
Page 496

EFCALL(P)

(7) to can be used with the EFCALL (P) instruction.

S1 S5

(8) The number of function devices used by subroutine programs must be identical to the

number of arguments used by the EFCALL (P) instruction. Further, the function devices should be identical to the types of arguments used by the EFCALL (P) instruction.

(9) Up to 16 levels of nesting can be used with the EFCALL (P) instruction. However, this 16

levels is the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

Mitsubishi Electronics QCPU — S1 S5 diagram (page 496)
Fig. 785

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device specified for the argument cannot be secured for the data size.
(Error code4101)
  • Following the execution of the EFCALL (P) instruction, an END, FEND, GOEND, or STOP

instruction is executed before the execution of the RET instruction.

(Error code4211)
  • An RET instruction is executed prior to the execution of the EFCALL (P) instruction.
(Error code4212)
  • A 17th nesting level is executed. (Error code: 4213)
  • The subroutine program of the pointer designated by the EFCALL (P) instruction does not
exist. (Error code4210)
  • The designated file does not exist. (Error code: 4210)
  • The designated file cannot be executed. (Error code: 2411)

Program Example

(1) The following program executes a subroutine program with argument when X0 is ON, and

forces non-execution processing when X20 is turned from ON to OFF.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 496)
Fig. 786 · Program Example
Page 497 of the Mitsubishi Electronics QCPU user manual — XCALL
Page 497 · click to enlarge
Page 497

XCALL

7.6.8 Subroutine program call (XCALL)

XCALL

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — XCALL diagram (page 497)
Fig. 787
PnHead pointer number of a subroutine program (Device name)
Mitsubishi Electronics QCPU — XCALL diagram (page 497)
Fig. 788

to : Number of the device to be passed as an argument to a subroutine program (bits, BIN 16 bits, BIN 32 bits)

(1) XCALL instruction executes the subroutine program and performs non-execution processing

of the subroutine program.

(a) Execution of subroutine program

Executes each coil instruction according to ON/OFF status of the condition contacts.

7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)

(b) Non-execution of subroutine program

Performs the same processing for each coil instruction as when the condition contacts are OFF status. The operation results for the individual coil instructions following non-execution processing will be as follows, regardless of the ON/OFF status of the individual contacts:

OUT instruction Forced OFF SET instruction

Maintains status RST instruction SFT instruction Basic instructions Application instructions PLS instruction

Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Present value of low speed/high speed timers 0 Present value of retentive timer Preserves Present value of counter

Page 498 of the Mitsubishi Electronics QCPU user manual — ON
Page 498 · click to enlarge
Page 498

XCALL

(2) Operation of XCALL instruction varies according to the CPU module type. The following

program example shows the operation of XCALL instruction for each CPU module.

Subroutine program (P1) call by XCALL instruction

[ON/OFF timing of X0]

(1) Turning X0 ON (OFF ON) (2) During X0 is ON

(3) Turning X0 OFF (ON OFF)

ON

OFF

*2: Time during X0 is ON(2)) does not include the time when turning X0 ON (1)).

Component Operation of XCALL instruction

  • Process CPU (serial No. of first 5 digits : 07031 or earlier)
  • High performance model QCPU (serial No. of first 5 digits: 06081 or earlier.)
1. When X0 is turned ON: Without process (Do not execute subroutine program of "P1".)
2. During X0 is ON: Execute subroutine program of "P1".
3. When X0 is turned OFF: Perform "Non-execution processing" of subroutine program of "P1".
1. Using SM734 (XCALL instruction executing condition designation) to select operation when
  • High performance model QCPU (serial No. of first 5 digits: 06082 or later.)
  • Process CPU (serial No. of first 5 digits : 07032 or later)

X0 is turned ON.

  • When SM734 is OFF: Without process (Do not execute subroutine program of "P1".)
  • When SM734 is ON: Execute subroutine program of "P1". 2) During X0 is ON: Execute subroutine program of "P1".
3. When X0 is turned OFF: Perform "Non-execution processing" of subroutine program of "P1".
1. When X0 is turned ON: Execute subroutine program of "P1".
  • Redundant CPU
2. During X0 is ON: Execute subroutine program of "P1".
  • Basic model QCPU
3. When X0 is turned OFF: Perform "Non-execution processing" of subroutine program of "P1".
  • Universal model QCPU

[Program example] · P1 subroutine program · *2

Page 499 of the Mitsubishi Electronics QCPU user manual — S1 S5
Page 499 · click to enlarge
Page 499

XCALL

(3) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with

to corresponding to the function device. The contents to the devices specified by

S1 S5 S1

to are as indicated below.

Mitsubishi Electronics QCPU — S1 S5 S1 diagram (page 499)
Fig. 789

(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word

data is transmitted to FD.

(b) After the execution of the subroutine program, the contents of FY and FD are

transmitted to the corresponding devices.

(c) The processing units for the function devices are as follows:

  • FX, FY: Bits
  • FD : 4-word units The size of the data to be dealt with will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur if it cannot be secured for the data size.

Function devices Device Data Size Remark

Bit device 1 point

  • FX

When Bit Designation has been Made for Word

  • FY

7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)

  • FD When digit designation of a bit device is used*3 4 words The data size varies

instruction to be used. Word device 4 words

*3: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit specification of the bit device.

S1 S5

D0 M0 P0 XCALL

Occupies from D30 to D33 (Transfer to FD2).

Occupies from D0 to D3 (Transfer to FD1).

Occupies M0 (Transfer to FX0).

(4) to can be used by the XCALL instruction.

S1 S5

(5) The number of function devices used by a subroutine program must be identical to the

number of arguments in the XCALL instruction. Also, the function device and the type of XCALL argument should be identical.

(6) Device numbers specified in the argument of the XCALL instruction should not overlap.

If they do overlap, it will not be possible to obtain accurate calculations.

Device 1 bit · depending on the · [Main routine program]

Page 500 of the Mitsubishi Electronics QCPU user manual — XCALL
Page 500 · click to enlarge
Page 500

XCALL

(7) Up to 16 nesting levels can be used with the XCALL instruction. However, this 16 levels is

the total number of levels in the CALL(P), FCALL(P), ECALL(P), EFCALL(P), and XCALL instructions.

Mitsubishi Electronics QCPU — XCALL diagram (page 500)
Fig. 790

(8) The device used for the argument of the XCALL instruction must not be used in a subroutine

program. If used, it will not be possible to perform correct calculations. (Refer to the following program example.) The processing to be executed when D1 is used in a subroutine program with D0 designated for FD0 in a subroutine program is shown below.

Mitsubishi Electronics QCPU — XCALL diagram (page 500)
Fig. 791

[Operation performed after subroutine program execution]

Mitsubishi Electronics QCPU — XCALL diagram (page 500)
Fig. 792

of RET instruction Before the execution of subroutine program

*1: Stores the execution result of the subroutine program. *2: Replaced by the value of the function device. D1 does not reflect the operation result in the subroutine program.

[Program example]

Page 501 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 501 · click to enlarge
Page 501

XCALL

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device specified for the argument cannot be secured for the data size.
(Error code4101)
  • Following the execution of the XCALL(P) instruction, the END, FEND, GOEND or STOP

instruction is executed before the execution of the RET instruction.

(Error code4211)
  • The RET instruction is executed prior to the execution of the XCALL(P) instruction.
(Error code4212)
  • A 17th nesting level is executed. (Error code: 4213)
  • There is no subroutine program for the pointer specified in the XCALL(P) instruction.
(Error code4210)

Program Example

(1) The following program executes a subroutine program with argument when X20 is turned

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 501)
Fig. 793 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 501)
Fig. 794 · Program Example

7.6 Structure creation instructions 7.6.8 Subroutine program call (XCALL)

Page 502 of the Mitsubishi Electronics QCPU user manual — R, ZR J \
Page 502 · click to enlarge
Page 502

COM

7.6.9 Refresh instruction (COM)

Basic Process High performance Redundant Universal

COM Refer to Section 7.6.10 for the COM instruction of the following CPU modules.

  • Basic model QCPU of serial No. 04122 or later
  • High Performance model QCPU of serial No. 04012 or later
  • Process CPU of serial No. 07032 or later
  • Redundant CPU
  • Universal model QCPU

COM COM

U \G Zn Constants Other Bit Word Bit Word

R, ZR J \

Function

(1) Use the COM instruction when:

(a) It is desired to increase the speed of transmission/reception processing to/from the

remote I/O stations.

(b) It is desired to ensure reliable data transmission/reception with other stations that use

different scan times during the execution of the data link.

(2) The processing of the COM instruction differs depending on whether the special relay

SM775 is ON or OFF.

  • When SM775 is OFF: Performs auto refresh and communication with a peripheral

device *1 *2

  • When SM775 is ON: Performs communication with peripheral device only * 1
  • *1: The following processing is performed in communication with peripheral device:
  • Monitor processing of other stations
  • Read processing by the serial communications module of the buffer memory of another intelligent function module *2: The auto refresh includes the following processing:
  • Refresh of MELSECNET/10H
  • CC-Link refresh
  • Auto refresh of intelligent function modules.

Setting · Internal Devices · Data

Page 503 of the Mitsubishi Electronics QCPU user manual — 0 END 0 0
Page 503 · click to enlarge
Page 503

COM

(3) At the point of the execution of the COM instruction, the CPU module temporarily stops the

processing of the sequence program, and performs the same operation as ordinary data processing as well as auto refresh of intelligent function modules (including link refreshes) at the END processing. However, the low speed cyclic refresh of MELSECNET/10 or MELSECNET/H is not performed.

Mitsubishi Electronics QCPU — COM diagram (page 503)
Fig. 795

General data processing and auto refresh (including link refresh) of intelligent function module

(4) The COM instruction can be used in a sequence program any number of times. However,

(5) Data communications using the COM instruction

(a) Example of data communications when COM instruction is not used

Mitsubishi Electronics QCPU — COM diagram (page 503)
Fig. 796

END 0 END 0 END 0 END 0 0

(b) Example of data communications when COM instruction has been used

7.6 Structure creation instructions 7.6.9 Refresh instruction (COM)

COM COM

COM

COM

COM

COM

0 END

0 END

0 END

0 END

0 END

COM COM COM

COM

COM

Program at other station

0 END 0 0

END END END

COM COM COM

I/O refresh at remote I/O station

1) When the COM instruction is used at the host station, it is possible to increase the number of data communication repetitions with the remote I/O station unconditionally, as shown in (b) above, and thus to speed up data communications. 2) In cases where the remote station scan time is longer than the scan time of the host station, the COM instruction used at the remote station side can avoid the occurrence of timing failure in which the data cannot be fetched, as shown in (a). 3) When the COM instruction has been used at the other station, a link refresh will be performed each time that station receives a command from the host station.

COM instruction COM instruction END instruction COM instruction

Step 0 COM instruction

Link refresh can be performed once in each of these intervals.

Host station program · Data communications

Page 504 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 504 · click to enlarge
Page 504

COM

(6) If the scan time from the linked station is longer than the sequence program scan time at the

host station, designating the COM instruction at the host station will not increase the speed of data communications.

END

Sequence program 0 END COM

0 COM END 0 COM COM 0 END

The programs in which the COM instruction cannot be used are shown below:

  • Low-speed execution type programs
  • Interrupt programs
  • Fixed scan execution type programs

Operation Error

(1) There are no operation errors associated with the COM instruction.

Link scan

Page 505 of the Mitsubishi Electronics QCPU user manual — Redundant Universal Ver. Basic
Page 505 · click to enlarge
Page 505

COM

7.6.10 Select Refresh Instruction (COM)

COM

  • Refer to Section 7.6.9. for the COM instruction of the following CPU modules.
  • Basic model QCPU of serial No. 04121 or lower
  • High Performance model QCPU of serial No. 04011 or lower
  • Process CPU of serial No. 07031 or lower

Redundant Universal Ver. Basic

Ver. Process Ver. High performance

The first 5 digits of the serial No. are "04122" or higher.

The first 5 digits of the serial No. are "04012" or higher.

The first 5 digits of the serial No. are "07032" or higher.

Mitsubishi Electronics QCPU — Redundant Universal Ver. Basic diagram (page 505)
Fig. 797 · Redundant Universal Ver. Basic

U \G Zn Constants Other Bit Word Bit Word

(1) When the COM instruction is executed, the following refresh operations can be performed.

  • I/O refresh
  • CC-Link refresh
Mitsubishi Electronics QCPU — Redundant Universal Ver. Basic diagram (page 505)
Fig. 798 · Redundant Universal Ver. Basic

7.6 Structure creation instructions 7.6.10 Select Refresh Instruction (COM)

  • Auto refresh using QCPU standard area of multiple CPU system
  • Reading input/output data of all modules other than the multiple CPU system group
  • Auto refresh using the multiple CPU high speed transmission area of multiple CPU
  • The following processing is performed in communication with peripheral device.
  • Monitor processing of other station
  • Read of another intelligent function module buffer memory by the serial

(2) Turning OFF SM775 refreshes all refresh items except I/O refresh.

Page 506 of the Mitsubishi Electronics QCPU user manual — COM
Page 506 · click to enlarge
Page 506

COM

(3) When selecting refresh items

(a) Select refresh items by SD778, and set SM775 to ON.

The following table shows the refresh items that can be designated by turning SM775 ON/OFF and with SD778.

Mitsubishi Electronics QCPU — COM diagram (page 506)
Fig. 799

Refresh Item When SM775 is OFF When SM775 is ON

(b) Select refresh items using b0 to b5 and b15 of SD778.

Whether to execute each bit of SD778 or not can be designated as shown below:

Mitsubishi Electronics QCPU — COM diagram (page 506)
Fig. 800

b15 b0 b1 b2 b3 b4 b5 b6 b14

1/0 0 1/0 SD778

Auto refresh of intelligent function module Auto refresh using QCPU standard area of multiple CPU system Reading inputs/outputs from the outside of the multiple CPU system group Auto refresh using the multiple CPU high speed transmission area of multiple CPU system Communication with peripheral devices

To make only the send/receive processing with the remote I/O station faster, designate MELSECNET/H refresh only. (Set only b2 and b15 of SD778 to 1 (SD778: 8004H).)

Refresh between the multiple CPUs by the COM instruction is performed under the following condition. • Receiving operation from other CPUs : When b4 of SD778 (auto refresh in the

CPU shared memory) is 1. • Sending operation from host CPU : When b15 of SD778 (communication

with peripheral device is executed/not executed) is 0

Page 507 of the Mitsubishi Electronics QCPU user manual — Q04UDEHCPU
Page 507 · click to enlarge
Page 507

COM

(4) Upon the execution of the COM instruction, the CPU module suspends the processing of the

sequence program, and refreshes the designated refresh item.

Execution of COM instruction

Execution of COM instruction

0 END 0 END 0

Refreshes the designated refresh items

Refreshes the designated refresh items

(5) The COM instruction can be used in a sequence program any number of times.

However, note that the sequence program scan time will be lengthened by the time taken for refresh time of the communication with peripheral devices and refresh item that are selected in SD778.

(6) Only with the Universal model QCPU, interruption is enabled during the execution of the

COM instruction. However, note that the data can be separated if the refresh data is used by an interrupt program etc.

(7) With the Built-in Ethernet port QCPU, service processing time may be increased if the

processing was executed by the COM instruction while the built-in Ethernet ports are in Ethernet connection.

(8) Refresh items for the COM instruction are indicated in the following table.

Version Serial No. SM775 Refresh Item

OFF Refreshes all of the refresh items.

Q00JCPU

ON Communication with peripheral device only.

Q00CPU

OFF Refreshes all of the refresh items.

Q01CPU

ON Refreshes the refresh items selected by SD778.

A ON/OFF Refreshes all of the refresh items.

Q02CPU

Q02HCPU

OFF Refreshes all of the refresh items.

7.6 Structure creation instructions 7.6.10 Select Refresh Instruction (COM)

Q06HCPU

ON Communication with peripheral device only.

B

Q12HCPU

OFF Refreshes all of the refresh items.

Q25HCPU

ON Refreshes the refresh items selected by SD778.

Q02PHCPU

OFF Refreshes all of the refresh items.

Q06PHCPU

ON Refreshes the refresh items selected by SD778

OFF Refreshes all of the refresh items.

Q12PHCPU

ON Communication with peripheral device only.

Q25PHCPU C

OFF Refreshes all of the refresh items.

ON Refreshes the refresh items selected by SD778.

Q12PRHCPU

OFF Refreshes all of the refresh items.

Q25PRHCPU D

ON Refreshes the refresh items selected by SD778.

Q02UCPU

OFF Refreshes the refresh items selected by SD778.

Q03UDCPU

Q04UDHCPU

Q06UDHCPU

Q03UDECPU

B ––––

ON Refreshes all of the refresh items.

Q04UDEHCPU

Q06UDEHCPU

Q13UDEHCPU

Q26UDEHCPU

Show 16 more labels / short text on this page
CPU Module Type · Function · Name · A "04021" or · lower · B "04122" or · higher · "04011" or · lower · "04012" or · higher · –––– –––– · "07031" or · lower · "07032" or · higher
Page 508 of the Mitsubishi Electronics QCPU user manual — COM
Page 508 · click to enlarge
Page 508

COM

1. The COM instruction cannot be used in low speed execution type programs, fixed scan execution type programs or interrupt programs. 2. For the redundant CPU, there are restrictions on use of the COM instruction. Refer to the manual below for details. • QnPRHCPU User's Manual (Redundant System)
Page 509 of the Mitsubishi Electronics QCPU user manual — Function
Page 509 · click to enlarge
Page 509

CCOM

7.6.11 Select Refresh Instruction (CCOM)

CCOM

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

CCOM

CCOM

CCOMP

CCOMP

Z, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

(1) When the CCOM(P) instruction is executed, the following refresh operations can be

executed.

  • I/O refresh
  • CC-Link refresh
  • CC-Link IE controller network refresh
  • MELSECNET/H refresh

7.6 Structure creation instructions 7.6.11 Select Refresh Instruction (CCOM)

  • Auto refresh of intelligent function modules
  • Auto refresh using QCPU standard area of multiple CPU system
  • Reading input or output data of all modules other than the multiple CPU system group
  • Auto refresh using the multiple CPU high speed transmission area of multiple
  • Communication with peripheral devices

(2) Turning off SM775 refreshes all refresh items except I/O refresh.

Show 7 more labels / short text on this page
Universal · Command · Command · Setting · Internal Devices · Data · CPU system
Page 510 of the Mitsubishi Electronics QCPU user manual — CCOM
Page 510 · click to enlarge
Page 510

CCOM

(3) When refresh items are selected

(a) Specify refresh items for SD778, and set SM775 to on.

The following table shows the refresh items that can be specified by turning SM775 on or off and in SD778.

Refresh item When SM775 is off When SM775 is on

I/O refresh Not executed

CC-Link IE controller network refresh

Auto refresh of intelligent function modules

Whether to be executed or not can be

Auto refresh using QCPU standard area of multiple

selected.

Reading input or output data of all modules other

than the multiple CPU system group

Auto refresh using the multiple CPU high speed

transmission area of multiple CPU system

Communication with peripheral devices

(b) Select refresh items using b0 to b5 and b15 of SD778.

Whether to execute each bit of SD778 or not can be specified as shown below:

Bit of SD778 Executed Not executed

b0 to b5 1 0

b15 b0 b1 b2 b3 b4 b5 b6 b14

1/0 0 1/0 SD778

I/O refresh CC-Link refresh

CC-Link IE controller network, MELSECNET/H refresh

Auto refresh of intelligent function module Auto refresh using QCPU standard area of multiple CPU system Reading inputs/outputs from the outside of the multiple CPU system group Auto refresh using the multiple CPU high speed transmission area of multiple CPU system Communication with peripheral devices

Refresh between the multiple CPUs by the CCOM(P) instruction is executed under the following condition.

  • Receiving operation from other CPUs: When b4 of SD778 (auto refresh in the

CPU shared memory) is 1. • Sending operation from host CPU: When b15 of SD778 (communication with

peripheral device) is 0.

Show 5 more labels / short text on this page
CC-Link refresh · MELSECNET/H refresh · Executed · CPU system · b15 0 1
Page 511 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 511 · click to enlarge
Page 511

CCOM

(4) On the execution of the CCOM (P) instruction, the CPU module suspends the processing of

the sequence program, and refreshes the specified refresh item.

Execution of CCOM(P) instruction

Execution of CCOM(P) instruction

0 END 0 END 0

Refresh specified in refresh items

Refresh specified in refresh items

(5) The CCOM(P) instruction can be used in a sequence program any number of times.

However, note that the sequence program scan time will be lengthened by the time taken for refresh item that are specified in SD778.

(6) Interruption is enabled during the execution of the CCOM(P) instruction. However, note that

the data can be separated if the refresh data is used for an interrupt program.

(7) The CCOM(P) instruction is not available for the fixed scan execution type program or

interrupt program.

(8) With the Built-in Ethernet port QCPU, service processing time may be increased if the

processing was executed by the CCOM instruction while the built-in Ethernet ports are in Ethernet connection.

Operation Error

(1) When the CCOM(P) instruction is executed in the QnUD(H)CPU whose serial number

(first five digits) is "10101" or later, an error occurs. (Error code: 4100)

Program Example

(1) Turning on M0 enables the program to execute the select refresh, while turning off M0

7.6 Structure creation instructions 7.6.11 Select Refresh Instruction (CCOM)

disables the program to execute the select refresh.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 511)
Fig. 801 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 511)
Fig. 802 · Program Example

Step Instruction Device

Page 512 of the Mitsubishi Electronics QCPU user manual — IX,IXEND
Page 512 · click to enlarge
Page 512

IX,IXEND

7.6.12 Index modification of entire ladder (IX,IXEND)

IX,IXEND

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 512)
Fig. 803

: Head number of the devices where index modification data is stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Performs index modification on all devices in the ladder up to the IXEND instruction after the

IX instruction, using the index modification value specified in the index modification table. Refer to 7.6.13 for how to configure an index modification table.

The configuration of the index modification table and the corresponding index register numbers are as shown below:

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 512)
Fig. 804

*1: When using a basic model QCPU, index registers with numbers from Z10 onward cannot be used.

Page 513 of the Mitsubishi Electronics QCPU user manual — IX,IXEND
Page 513 · click to enlarge
Page 513

IX,IXEND

(2) Index modification for device numbers is accomplished in the manner as below: By setting a

modification value to each of the devices, the set modification values are added to the all device numbers of the devices used in the ladder between the IX and IXEND instructions. The program is executed using the index modified device numbers.

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 513)
Fig. 805

Processed as X3 and X1B, respectively. Processed as Y2E and Y4A, respectively. Processed as M16 and M72, respectively. Processed as B30 Processed as T498 Processed as C275 Processed as D1

Value "10" is added to M6 and M62 Value "10 (AH)" is added to Y24 and Y40

Value "16 (10H)" is added to B20

Value "1" is added to D0 Value "5" is added to C270 Value "8" is added to T495

(3) Instructions such as the PLS, PLF, and P instructions, which are executed only once when input conditions have been established, cannot be index modified by using the IX to IXEND instruction loop.

(4) In cases where adding the modification value causes the device number to exceed the

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 513)
Fig. 806

7.6 Structure creation instructions 7.6.12 Index modification of entire ladder (IX,IXEND)

(5) Do not execute the IX or IXEND instructions during online program changes of sequence

programs (write during RUN). Accurate processing will not be conducted if this happens.

(6) Modification values are preset for random word devices as BIN values, and the initial device

number for which modification values have been set is designated by .

(7) Do not execute a scan execution type program and an interrupt program simultaneously

Page 514 of the Mitsubishi Electronics QCPU user manual — IX,IXEND
Page 514 · click to enlarge
Page 514

IX,IXEND

(8) Whether the program will be expanded or a user needs to create the program is depending

on your GPP function software package.

(a) When a user needs to create the program (When GX Developer is used)

The index register should be added to the index modification ladder established with the

IX and IXEND instructions. *2

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 514)
Fig. 807

*2 : The value of Zn is returned to the previous Zn value before the execution of the IX instruction after the IXEND instruction has been executed.

(b) When the program is expanded (When SW -GPPQ is used) The index modification ladder established with the IX and IXEND instructions will be transformed into a ladder using the index register (Zn) during the program expansion. *3

Index modification cannot be conducted in a program between the IX and IXEND instructions.

Mitsubishi Electronics QCPU — IX,IXEND diagram (page 514)
Fig. 808

*3 : The value of Zn is returned to the previous Zn value before the execution of the IX instruction after the IXEND instruction has been executed.

1. When using the IX and IXEND instructions in both a normal sequence program and an interrupt sequence program, establish the interlock to avoid simultaneous execution. The interlock assumes the area between the IX and IXEND instructions in the normal sequence program as DI, disabling the interruption. 2. The IXDEV and IXSET instructions can be used to specify modification values. Refer to 7.6.13 for details.
Page 515 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 515 · click to enlarge
Page 515

IX,IXEND

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The IX and IXEND instructions are not used together. (Error code: 4231)
  • An END, FEND, GOEND, or STOP instruction is executed prior to the execution of the

IXEND instruction, but after the execution of the IX instruction. (Error code: 4231)

Program Example

(1) The following program executes the same ladder 10 times, while changing device numbers.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 515)
Fig. 809 · Program Example

7.6 Structure creation instructions 7.6.12 Index modification of entire ladder (IX,IXEND)

1st time B0 X10 Y30 M0 D0 D10 T3 C4 D40

2nd time B1 X11 Y31 M1 D1 D11 T4 C5 D41

3rd time B2 X12 Y32 M2 D2 D12 T5 C6 D42

10th time B9 X19 Y39 M9 D9 D19 T12 C13 D49

D104 D105 D106 D107 Modification value of V Modification value of D D108

Modification value of M Modification value of L Modification value of B

Page 516 of the Mitsubishi Electronics QCPU user manual — IXDEV,IXSET
Page 516 · click to enlarge
Page 516

IXDEV,IXSET

7.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)

IXDEV,IXSET

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — IXDEV,IXSET diagram (page 516)
Fig. 810

: Head number of the devices where index modification data is stored (pointer only) P (Pointer)

: Head number of the devices where index modification data will be stored (except a pointer) (BIN 16 bits)

(1) The IXDEV and IXSET instructions are used to configure an index modification table used in

the IX and IXEND instructions. (2) The device offset value designated at the offset designation area is set at the index

modification table designated by . (3) The value 0 will be entered if no designation is made. (4) Word devices are also indicated by contact (word device bit designation). Data register 10

(D10) is designated with D10.0. (Any value from 0 to F can be used for the bit number.)

(5) Designation is made according to the method described below. *1 (The symbol is where the offset value will be. The notation XX indicates random selection.)

Mitsubishi Electronics QCPU — IXDEV,IXSET diagram (page 516)
Fig. 811

Device T C X Y M L V B

D .XX W .XX R .XX \ G .XX U \ B J

*1: When using a basic model QCPU, the devices R, U/G, J, ZR and P cannot be used. *2: Devices following J \ designate B, W, X, or Y, and the offset value is also set in correspondence with this.

*3: When using a basic model QCPU, specify a dummy device number. is P .

Page 517 of the Mitsubishi Electronics QCPU user manual — INC D50
Page 517 · click to enlarge
Page 517

IXDEV,IXSET

(6) If two offsets for two identical types of device have been set in the offset designation area,

the last value set will be valid.

(7) The IXDEV and IXSET instructions should be treated as a pair.

(8) Any value from 0 to 32767 is valid for ZR. (The offset value will be the remainder of the

quotient of the designated device number divided by 32768.)

(9) The dummy contacts in the offset specifying part are valid for only LD and AND located

within the range of the IXDEV-IXSET instructions. The IXDEV-IXSET instructions will not be executed if other instructions are described.

Example

IXDEV

Non-execution processing (outputs OFF)

INC D50

IXSET P3 D0

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The IXDEV and IXSET instructions have not been used as a pair. (Error code: 4231)

7.6 Structure creation instructions 7.6.13 Designation of modification values in index modification of entire ladders (IXDEV,IXSET)

Non-execution processing (ignored) · Valid dummy contacts

Page 518 of the Mitsubishi Electronics QCPU user manual — IXDEV,IXSET
Page 518 · click to enlarge
Page 518

IXDEV,IXSET

Program Example

(1) The following program changes the modification values for input (X), output (Y), data

register (D) and pointer (P).

When using a basic model QCPU, the devices R, U/G, J, ZR and P cannot be used.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — IXDEV,IXSET diagram (page 518)
Fig. 812

0 5 3 0 8 0

*4: Refer to 7.6.12 for index modification using the IX to IXEND instructions.

Page 519 of the Mitsubishi Electronics QCPU user manual — FIFW(P)
Page 519 · click to enlarge
Page 519

FIFW(P)

7.7 Data Table Operation Instructions

7.7.1 Writing data to the data table (FIFW(P))

FIFW(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FIFW(P) diagram (page 519)
Fig. 813

: Data to be written into the table or the number of the device where the data is stored (BIN 16 bits)

: Head number of the table (BIN 16 bits)

7.7 Data Table Operation Instructions 7.7.1 Writing data to the data table (FIFW(P))

(1) Stores the 16-bit data designated by in the data table designated by .

The number of data blocks stored in the table is stored at , and the data designated by

(2) The first time the FIFW instruction is executed, any values in the designated by device should be cleared.

(3) The number of data blocks to be written in the data table and the data table range should be

Page 520 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 520 · click to enlarge
Page 520

FIFW(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The data table range exceeds the relevant device range when the FIFW instruction is
executed. (Error code4101)

Program Example

(1) The following program stores the data at D0 to the data table following R0 when X10 is

turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 520)
Fig. 814 · Program Example

(2) The following program stores the data at X20 to X2F to data table of D38 to D44 table when

X1B is turned ON, and, if there are more than 6 data blocks to be stored, turns Y60 ON and disables the FIFW instruction.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 520)
Fig. 815 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 520)
Fig. 816 · Program Example

Step Instruction Device · [Operation] · [Operation]

Page 521 of the Mitsubishi Electronics QCPU user manual — D D
Page 521 · click to enlarge
Page 521

FIFR(P)

7.7.2 Reading oldest data from tables (FIFR(P))

FIFR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FIFR(P) diagram (page 521)
Fig. 817

: Head number of the devices where the data read from the table will be stored (BIN 16 bits)

: Head number of the table (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Stores the oldest data ( +1) input to the table designated by at the device designated by

D D

Mitsubishi Electronics QCPU — D D diagram (page 521)
Fig. 818

After the execution of the FIFR instruction, the data in the table is all compressed up by one block.

7.7 Data Table Operation Instructions 7.7.2 Reading oldest data from tables (FIFR(P))

(2) Users should attempt to avoid executing the FIFR instruction if the value stored at is 0. [See Program Example (1)]

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The FIFR instruction was executed when the value at was 0. (Error code: 4100)
  • The data table range exceeded the corresponding device range at execution of the FIFR
Page 522 of the Mitsubishi Electronics QCPU user manual — FIFR(P)
Page 522 · click to enlarge
Page 522

FIFR(P)

Program Example

(1) The following program stores the R1 data from the table R0 to R7 at D0 when X10 is turned

ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FIFR(P) diagram (page 522)
Fig. 819
Mitsubishi Electronics QCPU — FIFR(P) diagram (page 522)
Fig. 820

(2) The following program stores the data at D0 in the data table D38 to D43, and, when the

table stores 5 data, stores the data at D39 of the data table in R0, when X1C is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FIFR(P) diagram (page 522)
Fig. 821
Mitsubishi Electronics QCPU — FIFR(P) diagram (page 522)
Fig. 822

Data table Data table Number of stored data tables

Executes the FIFWP instruction when X1C turns ON again

[Operation] · [Operation]

Page 523 of the Mitsubishi Electronics QCPU user manual — D S
Page 523 · click to enlarge
Page 523

FPOP(P)

7.7.3 Reading newest data from data tables (FPOP(P))

FPOP(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FPOP(P) diagram (page 523)
Fig. 823

: Head number of the devices where the data read from the table will be stored (BIN 16 bits)

: Head number of the table (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Stores the newest data input to the table designated by at the device designated by . After the execution of the FPOP instruction, the device storing the data read by the FPOP instruction is reset to 0.

D S

Mitsubishi Electronics QCPU — D S diagram (page 523)
Fig. 824

7.7 Data Table Operation Instructions 7.7.3 Reading newest data from data tables (FPOP(P))

(2) Perform interlock to avoid executing the FPOP instruction when the value stored at is 0. [See Program Example (1)]

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The FPOP instruction was executed when the value of was 0. (Error code: 4100)
  • The data table range exceeded the corresponding device range at execution of the FPOP
Page 524 of the Mitsubishi Electronics QCPU user manual — FPOP(P)
Page 524 · click to enlarge
Page 524

FPOP(P)

Program Example

(1) The following program stores the data stored last in the data table R0 to R7 at D0 when X10

is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FPOP(P) diagram (page 524)
Fig. 825
Mitsubishi Electronics QCPU — FPOP(P) diagram (page 524)
Fig. 826

(2) The following program stores the data at D0 in the data table D38 to D43 when X1C is

turned ON, and when the number of data stores in the table reaches 5, turns X1D ON, and stores the data stored last in the data table to R0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FPOP(P) diagram (page 524)
Fig. 827
Mitsubishi Electronics QCPU — FPOP(P) diagram (page 524)
Fig. 828

Since the number of stored data block is 4, the FIFWP instruction is executed when XIC turns ON

[Operation] · [Operation]

Page 525 of the Mitsubishi Electronics QCPU user manual — FDEL(P),FINS(P)
Page 525 · click to enlarge
Page 525

FDEL(P),FINS(P)

7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))

FDEL(P),FINS(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FDEL(P),FINS(P) diagram (page 525)
Fig. 829

: Head number of the devices where data to be inserted is stored (BIN 16 bits)

Head number of the devices where the data to be deleted will be stored (BIN 16 bits) : Head number of the table (BIN 16 bits) n : Location on the table where data is inserted/deleted (BIN 16 bits)

Mitsubishi Electronics QCPU — FDEL(P),FINS(P) diagram (page 525)
Fig. 830

7.7 Data Table Operation Instructions 7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))

(1) Deletes the nth block of data from the data table designated by , and stores it at the

After the execution of the FDEL instruction, the data in the table following the deleted block is compressed forward by one block.

S If n=3, data at +3 is deleted. D

Page 526 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 526 · click to enlarge
Page 526

FDEL(P),FINS(P)

FINS

(1) Inserts the 16-bit data designated by at the nth block of the data table designated by .

S D

After the execution of the FINS instruction, the data in the table following the inserted block is all dropped one position.

Number of stored data blocks 5432 1234

+1 +2 +3 +4

+1 +2 +3 +4

D

D D D D

If n=2, data is inserted to +2. D

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The Nth position from is larger than the data storage number at the execution of the FDEL instruction. (Error code: 4101)
  • The Nth position from is larger than the "data storage number + 1" at the execution of the FINS instruction. (Error code: 4101)
  • The value of n in the case of the FDEL, FINS instruction exceeds the device range of the
table . (Error code4101)
  • The FDEL or FINS instruction was executed when n 0. (Error code: 4100)
  • The FDEL instruction was executed when the value of was 0. (Error code: 4100)
  • The data table range exceeded the corresponding device range at execution of the FDEL
or FINS instruction. (Error code4101)
Show 7 more labels / short text on this page
Data table · Data table · 5432 4444 · Data table range · 1234 123 · +5 0 · +4 0
Page 527 of the Mitsubishi Electronics QCPU user manual — FDEL(P),FINS(P)
Page 527 · click to enlarge
Page 527

FDEL(P),FINS(P)

Program Example

(1) The following program deletes the second data from the table R0 to R7 and stores the

deleted data at D0 when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FDEL(P),FINS(P) diagram (page 527)
Fig. 831

(2) The following program inserts the data at D0 into the third position at the table R0 to R7

when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — FDEL(P),FINS(P) diagram (page 527)
Fig. 832

7.7 Data Table Operation Instructions 7.7.4 Deleting and inserting data from and in data tables (FDEL(P),FINS(P))

Step Instruction Device · [Operation] · Step Instruction Device

Page 528 of the Mitsubishi Electronics QCPU user manual — FROM
Page 528 · click to enlarge
Page 528

FROM(P),DFRO(P)

7.8 Buffer memory access instruction

7.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))

FROM(P),DFRO(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 528)
Fig. 833

n1 : Head I/O number of an intelligent function module (BIN 16 bits) n2 : Head address of data to be read (BIN 16 bits) : Head number of the devices where the read data will be stored (BIN 16/32 bits) n3 : Number of data blocks to be read (BIN 16 bits)

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 528)
Fig. 834

FROM

(1) Reads the data in n3 words from the buffer memory address designated by n2 of the

intelligent function module designated by n1, and stores the data into the area starting from the device designated by .

Mitsubishi Electronics QCPU — FROM diagram (page 528)
Fig. 835
Page 529 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 529 · click to enlarge
Page 529

FROM(P),DFRO(P)

DFRO

(1) Reads the data in (n3 2) words from the buffer memory address designated by n2 of the

the intelligent function module designated by n1, and stores the data into the area starting

from the device designated by .

Intelligent function module buffer memory

Data read from intelligent function modules is also possible with the use of an intelligent function module device. For the intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • There has been no exchange of signals with an intelligent function module at the

7.8 Buffer memory access instruction 7.8.1 Reading 1-/2-word data from the intelligent function module (FROM(P),DFRO(P))

execution of the instruction. (Error code: 1412)

  • An error has been detected in an intelligent function module at the execution of the
instruction. (Error code1402)
  • The I/O number designated by n1 is not for the intelligent function module.
(Error code2110)
  • The range of n3 points (2 n3 points for DFRO) from the device designated by exceeds the designated device range. (Error code: 4101)
  • The address designated by n2 is outside the buffer memory range.
(Error code4101)
Show 5 more labels / short text on this page
CPU module · Device designated by · n2 n2+1 · (n3 2) words · (n3 2) points
Page 530 of the Mitsubishi Electronics QCPU user manual — Remark
Page 530 · click to enlarge
Page 530

FROM(P),DFRO(P)

Program Example

(1) The following program reads the digital value of CH1 of the A68AD mounted at I/O numbers

040 to 05F into D0 when X0 is turned ON. (Reads 1 word of data from address 10 of the buffer memory.)

[Ladder Mode] [List Mode]

(2) The following program reads the X-axis present value of the AD71 mounted at the I/O

numbers 040 to 05F into D0 and D1, when X0 is turned ON. (Reads data in 2 words from the address 602 and 603 of the buffer memory.)

[Ladder Mode] [List Mode]

Remark

1. The value of n1 is specified by the upper 3 digits of hexadecimal 4-digit representation of the head I/O number of the slot in which an intelligent function module is mounted.
Mitsubishi Electronics QCPU — Remark diagram (page 530)
Fig. 836 · Remark

Head I/O number of the reading K4 or H4

2. QCPU establishes the automatic interlock of the FROM/DFRO instructions.

Step Instruction Device · Step Instruction Device

Page 531 of the Mitsubishi Electronics QCPU user manual — TO(P),DTO(P)
Page 531 · click to enlarge
Page 531

TO(P),DTO(P)

7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))

TO(P),DTO(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — TO(P),DTO(P) diagram (page 531)
Fig. 837

n1 : Head I/O number of an intelligent function module (BIN 16 bits) n2 : Head address of the area where data is written (BIN 16 bits) : Data to be written or head number of the devices where the data to be written is stored (BIN 16/32 bits) n3 : Number of data blocks to be written (BIN 16 bits)

Mitsubishi Electronics QCPU — TO(P),DTO(P) diagram (page 531)
Fig. 838

7.8 Buffer memory access instruction 7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))

Writes the data stored in n3 points starting from the device designated by into the area starting from buffer memory address designated by n2 of the intelligent function module designated by n1.

When a constant is designated to , writes the same data (value designated to ) to the area

of n3 points starting from the specified buffer memory. ( can be designated in the following range: -32768 to 32767 or 0H to FFFFH.)

Page 532 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 532 · click to enlarge
Page 532

TO(P),DTO(P)

DTO

Writes the data stored in n3 2 points starting from the device designated by into the area starting from buffer memory address designated by n2 of the intelligent function module designated by n1.

Intelligent function module buffer memory

Device designated by S

(n3 x 2) points

(n3 x 2) words

When a constant is designated to , writes the same data (value designated to ) to the area

S S

of n3 2 points starting from the specified buffer memory. ( can be designated in the following range: -2147483648 to 2147483647 or 0H to FFFFFFFFH.)

Intelligent function module buffer memory

n2+1 (When 70000 is designated to )

(n3 x 2) words

(The same data is written)

Data write to intelligent function modules is also possible with the use of an intelligent function module device. For the intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • There has been no exchange of signals with an intelligent function module at the

execution of the instruction. (Error code: 1412)

  • An error has been detected in an intelligent function module at the execution of the
instruction. (Error code1402)
  • The I/O number designated by n1 is not for the intelligent function module.
(Error code2110)
  • The n3 points (2 n3 points for DTO) of the device designated by exceed the designated device range. (Error code: 4101)
  • The address designated by n2 is outside the buffer memory range.
(Error code4101)
  • The address designated by n2 is an odd numbered address. (AJ71QC24(N))
(Error code4100)
Show 5 more labels / short text on this page
CPU module · n2 · n2+1 · CPU module 0 · n2
Page 533 of the Mitsubishi Electronics QCPU user manual — Remark
Page 533 · click to enlarge
Page 533

TO(P),DTO(P)

Program Example

(1) The following program sets the CH1 and CH2 of the Q68ADV mounted at the I/O numbers

040 to 04F to the "A/D conversion" mode, when X0 is turned ON. (Writes 3 into the buffer memory address 0.)

[Ladder Mode] [List Mode]

(2) The following program sets the X-axis current value of the AD71 mounted at I/O numbers

040 to 05F to 0 when X0 is turned ON. (Writes 0 to addresses 41, 42 of the buffer memory.)

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — TO(P),DTO(P) diagram (page 533)
Fig. 839

Remark

1. The value of n1 is specified by the upper 3 digits of hexadecimal 4-digit representation of the head I/O number of the slot in which an intelligent function module is mounted.
Mitsubishi Electronics QCPU — Remark diagram (page 533)
Fig. 840 · Remark

7.8 Buffer memory access instruction 7.8.2 Writing 1-/2-word data to intelligent function module (TO(P),DTO(P))

Head I/O number of the reading K4 or H4

2. QCPU establishes the automatic interlock of the TO/DTO instructions.

Step Instruction Device

Page 534 of the Mitsubishi Electronics QCPU user manual — Function
Page 534 · click to enlarge
Page 534

PR

7.9 Display instructions

7.9.1 Print ASCII code instruction (PR)

PR

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PR diagram (page 534)
Fig. 841

: ASCII code or head number of the devices where the ASCII code is stored (character string)

: Head number of the output module to which the ASCII code will be output (bits)

*1: Local devices and the file registers set for individual programs cannot be used.

Function

(1) Outputs ASCII code stored in the device specified by or ASCII code stored in the area startings from the device number to an output module specified by .

The number of characters output differs according to the ON/OFF status of SM701 (number of output characters selection).

(a) If SM701 is ON, characters 8 points (16 characters) from the device designated by will be the target of the operation.

Mitsubishi Electronics QCPU — Function diagram (page 534)
Fig. 842 · Function

41 H (A) 42 H (B) 43 H (C) 44 H (D) +2 45 H (E) 46 H (F) 47 H (G) 48 H (H) +3

49 H (I) 4AH (J) +4 +5 +6 +7

4BH (K) 4CH (L) 4DH (M) 4EH (N) 4F H (O) 50 H (P)

Page 535 of the Mitsubishi Electronics QCPU user manual — ON
Page 535 · click to enlarge
Page 535

PR

(b) If SM701 is OFF, everything from the device designated by to the 00H code will be the target of the operation.

Mitsubishi Electronics QCPU — PR diagram (page 535)
Fig. 843

41 H (A) 42 H (B) 43 H (C) 44 H (D) +2 45 H (E) 46 H (F) 47 H (G) 48 H (H) +3

49 H (I) 4A H (J) +4 +5 +6 +7

4BH (K) 4CH (L) 00 H (NULL) 4E H (N) 4F H (O) 50 H (P)

(2) The number of points used by the output module is 10 points from the Y address designated

by .

(3) Output signals from the output module are transmitted at the rate of 30 ms per character.

For this reason, the time required to the completion of the transmission of the designated

number of characters (n) will be 30 ms n (ms). At 10 ms interrupt intervals, the PR instruction executes data output, strobe signal ON, and strobe signal OFF. The other instructions are executed continuously during a period between the above processings.

Execution of sequence program PR instruction processing

7.9 Display instructions 7.9.1 Print ASCII code instruction (PR)

ON

10 ms 10 ms 10 ms 10 ms 10 ms

(4) In addition to the ASCII code, the output module also outputs a strobe signal (10 ms ON, 20

ms OFF) from the + 8 device.

(5) Following the execution of the PR instruction, the PR instruction execution flag ( + 9 device) remains ON until the completion of the transmission of the designated number of characters.

(6) The PR and PRC instructions can be used multiple times, but it is preferable to establish an

interlock with the PR instruction execution flag ( + 9 device) so that they will not be ON simultaneously.

(7) If the contents of the device in which ASCII codes are stored changes during the ASCII code

output, the modified data after change will be output.

Data output · Strobe signal OFF · 30 ms

Page 536 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 536 · click to enlarge
Page 536

PR

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • There is no 00 H code within the range of the device specified by when SM701 is OFF.
(Error code4101)

Program Example

(1) The following program converts the string "ABCDEFGHIJKLMNOP" to ASCII code when X0

is turned ON and stores it from D0 to D7, and then outputs the ASCII code at D0 to D7 to Y14 to Y1D when X3 is turned ON.

Mitsubishi Electronics QCPU — Program Example diagram (page 536)
Fig. 844 · Program Example

When X0 turns ON, converts “ABCDEFGHIJKLMOP” to the ASCII code and stores it to D to D7.

When X3 turns ON, outputs the ASCII code in D0 to D7 to Y14 to Y1D.

Mitsubishi Electronics QCPU — Program Example diagram (page 536)
Fig. 845 · Program Example

Stores the ASCII code for "A" to "H" to D0 to D3.

Stores the ASCII code for "I" to "P" to D4 to D7.

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Timing Chart]
Page 537 of the Mitsubishi Electronics QCPU user manual — PRC
Page 537 · click to enlarge
Page 537

PRC

7.9.2 Print comment instruction (PRC)

PRC

Process High performance Redundant Universal Basic

When High Performance model QCPU/Process CPU is used

Mitsubishi Electronics QCPU — PRC diagram (page 537)
Fig. 846

: Head number of the device which prints the comment (Device name)

: Head number of the output module which outputs the comment (bits)

U \G Zn Constants Other P, I, J, U, Bit Word Bit Word

(1) Outputs comment (ASCII code) at device designated by to output module designated by

Mitsubishi Electronics QCPU — PRC diagram (page 537)
Fig. 847

The number of characters output differs according to the ON/OFF status of SM701.

7.9 Display instructions 7.9.2 Print comment instruction (PRC)

  • When SM701 is OFF: Comment is 32 characters
  • When SM701 is ON : Comment is the upper 16 characters

The number of points used by the output module is 10 points from the Y address designated by .

A B C D E F G H I K K L M n O

Page 538 of the Mitsubishi Electronics QCPU user manual — PRC
Page 538 · click to enlarge
Page 538

PRC

Mitsubishi Electronics QCPU — PRC diagram (page 538)
Fig. 848

(File access completion flag) None of instructions can be executed.

Instructions other than PRC instruction (SP.FREAD, SP.FWRITE, PUNROAD, PLOAD, PSWAPP) can be executed.

(2) Output signals from the output module are transmitted at the rate of 30 ms per character.

For this reason, the time required to the completion of the transmission of the designated

number of characters will be 30 ms n (ms). At 10ms interrupt intervals, the PRC instruction executes data output, strobe signal ON, and strobe signal OFF. The other instructions are executed continuously during a period between the above processings.

Mitsubishi Electronics QCPU — PRC diagram (page 538)
Fig. 849

10 ms 10 ms 10 ms 10 ms 10 ms

(3) In addition to the ASCII code, the output module also outputs a strobe signal (10 ms ON, 20

ms OFF) from the + 8 device.

(4) Following the execution of the PRC instruction, the PRC instruction execution flag ( + 9 device) remains ON until the completion of the transmission of the designated number of characters. (5) The PRC instruction can be used multiple times, but it is preferable to establish an interlock

with the PRC instruction execution flag ( + 9 device) so that they will not be ON simultaneously.

(6) If no comments have been registered at the device designated by , processing will not be performed. (7) When a comment is read, SM720 turns ON for one scan after the instruction is completed.

SM721 turns ON during the execution of the instruction. The PRC instruction cannot be executed while SM721 is ON. If the attempt is made, no processing is performed.

[Timing Chart]

Page 539 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 539 · click to enlarge
Page 539

PRC

1. For device comments used with the PRC instruction, use comment files stored in the memory card Standard Rom. Comment files stored in the program memory cannot be used. 2. The comment file used by the PRC instruction is set at the "PLC File Setting" option in the PLC parameter dialog box. If no comment file has been set for use by the PLC file setting, it will not be possible to output device comments with the PRC instruction. 3. Do not execute the PRC instruction during an interrupt program. Otherwise, malfunction may occur.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The PRC instruction is executed while a comment is written during RUN.
(Error code4100)

Program Example

(1) Program which outputs the comment of Y60 to Y30 to Y39 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 539)
Fig. 850 · Program Example

7.9 Display instructions 7.9.2 Print comment instruction (PRC)

Page 540 of the Mitsubishi Electronics QCPU user manual — Function
Page 540 · click to enlarge
Page 540

LEDR

7.9.3 Error display and annunciator reset instruction (LEDR)

LEDR

Process High performance Redundant Universal Basic

LEDR LEDR

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

Resets the self-diagnosis error display so that annunciator display or operation can be continued. With one execution of this instruction, either error display or annunciator is reset.

(1) Operation when self-diagnosis error is generated

(a) If the self-diagnosis error is one which allows continued operation.

If the self-diagnosis error being displayed is one that will allow continued operation of the CPU module, the "ERROR/ERR." LED or error indication is reset. It will be necessary to reset SM0, SM1, and SD0 at the user program, because they are not reset automatically. Since the cause of the error displayed at this time has a higher priority over annunciator, no action for resetting the annunciator is taken.

(b) When a battery error is generated.

If the LEDR instruction is executed after the battery has been replaced, the "BAT. ARM/ BAT." LED at the front of the CPU module and the error display will be reset. SM51 is also turned OFF at this time.

Show 4 more labels / short text on this page
Command · Setting · Internal Devices · Data
Page 541 of the Mitsubishi Electronics QCPU user manual — SD77 SD78 SD79
Page 541 · click to enlarge
Page 541

LEDR

(2) Operations when an annunciator (F) is ON.

(a) When the CPU module has no LED display

The following operations will be conducted when the LEDR instruction is executed: 1) "USER" LED flickers, and is turned OFF 2) The annunciators (F) stored in SD62 and SD64 are reset, and the F numbers for SD65 to SD79 are moved up. 3) The data newly stored at SD64 is transmitted to SD62. 4) The data at SD63 is decremented by 1. However, if SD63 is 0, it remains 0.

SD62

SD62

Number of registered F numbers Decrements 1.

SD63 SD64 SD65 SD66 SD67

15 200 99 5 255

SD63 SD64 SD65 SD66

14 99 5 255

F number storage area

SD77 SD78 SD79

SD78 SD79

(b) For CPUs with an LED display at the front

The following operations will be conducted when the LEDR instruction is executed: 1) The F number being displayed at the front of the CPU module will be reset. 2) "USER" LED flickers, and is turned off. 3) The annunciators (F) stored in SD62 and SD64 are reset, and the F numbers for SD65 to SD79 are compressed forwards. 4) The data newly stored at SD64 is transmitted to SD62.

5. The data at SD63 is decremented by 1. However, if SD63 is 0, it remains 0. 6) The F number being stored at SD62 is displayed at the LED display. However, if the value of SD63 is 0, nothing will be displayed.

7.9 Display instructions 7.9.3 Error display and annunciator reset instruction (LEDR)

SD62

SD62

F number is not displayed on the LED display unit since SD63 is 0.

Decrements 1.

SD63 SD64 SD65 SD66 SD67

1 200

SD63 SD64 SD65 SD66

0

Number of registered F numbers

SD77 SD78 SD79

SD78 SD79

Show 4 more labels / short text on this page
Before execution · After execution · Before execution · After execution
Page 542 of the Mitsubishi Electronics QCPU user manual — LEDR
Page 542 · click to enlarge
Page 542

LEDR

Remark

1. The defaults for the error item numbers set in special registers SD207 to SD209 and order of priority are given in the table below:
Mitsubishi Electronics QCPU — LEDR diagram (page 542)
Fig. 851
2. If the highest priority is given to the annunciator, it can be reset with priority by the LEDR instruction.
Page 543 of the Mitsubishi Electronics QCPU user manual — OFF
Page 543 · click to enlarge
Page 543

CHKST,CHK

7.10 Debugging and failure diagnosis instructions

7.10.1 Special format failure checks (CHKST,CHK)

CHKST,CHK

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — CHKST,CHK diagram (page 543)
Fig. 852

Check condition (Only a contact is valid; b contact is ignored)

U \G Zn Constants Other Bit Word Bit Word

CHKST

7.10 Debugging and failure diagnosis instructions 7.10.1 Special format failure checks (CHKST,CHK)

(1) The CHKST instruction is the instruction that starts the CHK instruction.

If the command for the CHKST instruction is OFF, execution jumps from the CHK instruction to the next instruction. If the command for the CHKST instruction is ON, the CHK instruction is executed.

TO

CHKST

When T0 is OFF, program jumps to the instruction next to the CHK instruction.

CHK

Y10

CHK

(1) The CHK instruction is the instruction used for the bidirectional operation as shown on the

following page to confirm the nature of the system failure.

(a) When the CHK instruction is executed, a failure diagnosis check is conducted with the

designated check conditions, and if a failure is detected, SM80 is turned ON, and the failure number is stored at SD80 as a BCD value. The error code "9010" will be returned if a failure is detected. The contact number where the failure was discovered is stored at the upper 3 digits of SD80 (see (3)), and the coil number where the failure was detected (see (2)) is stored at the lower 1 digit of SD80.

At the detection of failure of Contact No.: 62, Coil No.: 3 Before the detection of failure After the detection of failure SM80 SD80

OFF

0 0 0 0 SM80 SD80

ON

0 6 2 3

Page 544 of the Mitsubishi Electronics QCPU user manual — CHKST,CHK
Page 544 · click to enlarge
Page 544

CHKST,CHK

(b) The contact instruction prior to the CHK instruction does not control the execution of the

CHK instruction, but rather sets the check conditions.

Mitsubishi Electronics QCPU — CHKST,CHK diagram (page 544)
Fig. 853

Advance end sensor (X0) turns ON at the detection

Retract end sensor (X1) turns ON at the detection

(c) A ladder such as the one shown below can be created to perform a cycle time over check for the system shown above:

Mitsubishi Electronics QCPU — CHKST,CHK diagram (page 544)
Fig. 854

When T0 is OFF, program jumps to the instruction next to the CHK instruction.

Turns ON the internal relay used for failure detection.

Turns OFF the internal relay used for failure detection.

(d) The following points should be taken into consideration when creating a ladder for use

with the CHK instruction: 1) The contact numbers for the advance edge detection sensor and the retract edge detection sensor (X ) must always be continuous. Further, the contact number (X ) for the advance edge detection sensor should be lower than that for the retract edge. 2) Controls for the advance edge detection sensor contact number (X ) and output with

the identical number (Y ) *1 are as follows: When advance operation is in progress turn ON When retract operation is in progress turn OFF

*1: Output (Y ) is treated as an internal relay, and cannot be output to an external device.

Page 545 of the Mitsubishi Electronics QCPU user manual — CHK X5 X7 X9
Page 545 · click to enlarge
Page 545

CHKST,CHK

(2) Depending on the designated contact, the CHK instruction undergoes processing identical

to that shown for the ladder below:

CHKST TO

CHK

(Detection by both advance and retraction end sensors during advance operation of the conveyor)

Max. 150 contacts

X X +1 Y

Coil No. 1

SM80 SET

MOV Failure No. 1 SD80

(Detection by both advance and retraction end sensors during retract operation of the conveyor)

Example X X0 X X1 X + 1 Y Y0

X +1 Y

SET

SM80

Coil No. 2

Executes the same processing as the ladder indicated above

MOV Failure No. 2 SD80

(Advance operation of the conveyor at the detection by the advance end sensor)

X Y

Coil No. 3

SM80 SET

MOV Failure No. 3 SD80

(Retract operation of the conveyor at the detection by the retraction end sensor)

Y X +1

Coil No. 4

SM80 SET

MOV Failure No. 4 SD80

(Advance operation of the conveyor during no detection by the retraction end sensor)

Y X +1

Coil No. 5

SM80 SET

MOV Failure No. 5 SD80

(Retract operation of the conveyer at the detection by the advance end sensor)

Y X Coil No. 6

SM80 SET

MOV Failure No. 6 SD80

7.10 Debugging and failure diagnosis instructions 7.10.1 Special format failure checks (CHKST,CHK)

(3) Numbers 1 to 150 from the vertical bus on the left side have been allocated as contact

numbers during failure detection.

CHK X5 X7 X9

X1A X1C

149 150 1 2 3 Contact No.

(4) Reset SM80 and SD80 prior to forcing the execution of the CHK instruction.

After the execution of the CHK instruction, it cannot be performed once again until SM80 and SD80 have been reset. (The contents of SM80 and SD80 will be preserved until reset by user.)

(5) A CHKST instruction must be placed before the CHK instruction.

An error will be returned if an instruction other than the LD, LDI, AND or ANI instruction is used between the CHK instruction and the CHKST instruction. (Error code: 4235)

(6) The CHK instruction can be written at any step of the program.

However, there is a limit in the number of uses of the CHK instruction.

  • Can be used up to two places in all program files being executed.
  • Can be used only one place in a single program file. An error will be returned if the CHK instruction is used exceeding the number of uses specified above. (Error code: 4235)
Page 546 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 546 · click to enlarge
Page 546

CHKST,CHK

(7) Place LD and AND instructions prior to the CHK instruction to establish a check condition.

Check conditions cannot be set using other contact instructions. If a check condition has been set with LDI or ANI, the processing for the check condition they specify will not be conducted. However, contact numbers during failure detection can also be allocated to the LDI and ANI instructions.

Does not execute check

CHK X5

X7 X9 XA X1A X1C

1 2 3 4 Contact No.

Contact numbers are allocated

(8) The failure detection method differs according to whether SM710 is ON or OFF.

(a) If SM710 is OFF, checks will be conducted of coil numbers 1 to 6 for each contact

successively. When the CHK instruction is executed, checks will be in order from coil No. 1 of contact No. 1, through coil No. 6, then move on to contact No. 2 and check the coils in order from No. 1. The CHK instruction will be completed when coil No. 6 from contact No. n has been checked.

(b) If SM710 is ON, checks will be conducted of contact numbers 1 through n, in coil

number order. When the CHK instruction is executed, checks will begin with the ladder for coil No. 1, in order from contact No. 1 until contact No. n, then move on to the coil No. 2 ladder and begin from contact No. 1. The CHK instruction will be completed when a check has been made through contact No. n of coil No. 6.

(9) If more than one failure is detected, the number of the first failure detected will be stored.

Failure numbers detected after this will be ignored.

(10) The CHK instruction cannot be used by a low speed execution type program.

If a low speed execution type program has been set in a program file containing the CHK instruction, an operation error will be returned, and the CPU module operation will be suspended.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • There is a parallel ladder. (Error code: 4235)
  • There is an NOP instruction. (Error code: 4235)
  • There are more than 150 contact instructions. (Error code: 4235)
  • A CHK instruction is not executed following the CHKST instruction.
(Error code4235)
  • The CHK instruction is executed when no CHKST instruction has been executed.
(Error code4235)
  • The CHKST and CHK instruction are used in a low speed execution type program.
(Error code4235)
  • There is an instruction other than the LD, LDI, AND or ANI instruction between the CHK

instruction and the CHKST instruction. (Error code: 4235)

  • The CHK instruction is used at three places or more in all of programs being executed.
(Error code4235)
  • The CHK instruction is used at two places or more in a single program.
(Error code4235)
Page 547 of the Mitsubishi Electronics QCPU user manual — Remark
Page 547 · click to enlarge
Page 547

CHKCIR,CHKEND

7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)

CHKCIR,CHKEND

Process High performance Universal Basic Redundant

When the GX Developer is used (High Performance model QCPU/Process CPU/

CHKST

CHKST

Section 7.10.1.

X

CHK

CHK

SM400

CHKCIR

CHKCIR

Ladder pattern to be checked

Max. 9 coils

SM400

CHKEND

CHKEND

7.10 Debugging and failure diagnosis instructions 7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

CHKCIR, CHKEND

(1) The check ladder pattern that will be used in the CHK instruction can be updated to any

format desired. The actual failure checks are conducted with the CHKST and CHK instructions.

(2) Failure checks are conducted according to the check conditions designated by the CHK

instruction and the ladder pattern described between the CHKCIR and CHKEND instructions.

Remark

Refer to 7.10.1 for more information on the CHKST and CHK instructions.

To change the check format of the CHK instruction using the CHKCIR to CHKEND instructions, the user should create a ladder with index modification (Z0).

Show 9 more labels / short text on this page
Redundant CPU) · Command · Refer to · Fn · Fn · Fn · Setting · Internal Devices · Data
Page 548 of the Mitsubishi Electronics QCPU user manual — Example
Page 548 · click to enlarge
Page 548

CHKCIR,CHKEND

(a) The device numbers indicated at check conditions (X2 and X8 in the figure below) will

assume index modification values for the individual device numbers (with the exception of annunciators (F)) described in the ladder patterns.

Example

X10 in the in the figure below would be as follows:

When corresponding to check condition X2 Processing performed by...X12 When corresponding to check condition X8 Processing performed by...X18

However, the order in which failure detection is executed differs depending on whether SM710 is ON or OFF.

1. If SM710 is OFF, checks will be conducted of coil numbers 1 through the end for each contact successively.

[Ladder designated by CHKCIR to CHKEND] [Order of check by CPU module]

Mitsubishi Electronics QCPU — Example diagram (page 548)
Fig. 855 · Example
2. If SM710 is ON, checks will be conducted of contact numbers 1 through the end, in coil number order.

[Ladder designated by CHKCIR to CHKEND] [Order of check by CPU module]

Mitsubishi Electronics QCPU — Example diagram (page 548)
Fig. 856 · Example
Page 549 of the Mitsubishi Electronics QCPU user manual — CHKCIR,CHKEND
Page 549 · click to enlarge
Page 549

CHKCIR,CHKEND

(b) Failure checks check the ON/OFF status of OUT F by using the ladder pattern in the various check conditions.

In all check conditions, SM80 will be turned ON if even one of the OUT F is ON in a ladder pattern. Further, the error numbers (contact numbers and coil numbers) corresponding to the

OUT F which were found to be ON will be stored from SD80 in BCD order.

(c) The instructions that can be used in ladder patterns are as follows: Contacts ...LD, LDI, AND, ANI, OR, ORI, ANB, ORB, MPS, MPP,MRD, and

Coil OUT F

(d) The following devices can be used for ladder pattern contacts:

Input (X), Output (Y)

(e) Only annunciators (F) can be used in ladder pattern coils.

However, since annunciators (F) are used as a dummy, any value can be set for an annunciator (F). Further, they can overlap with no difficulties.

(f) ON/OFF controls can be performed without error if an annunciator (F) used during the execution of the CHK instruction has the same number as an annunciator (F) used in some other context than the CHK instruction. They will be treated differently during the CHK instruction than they are in the different context.

(g) Since the annunciators (F) used in the CHK instruction do not turn ON/OFF actually,

they will not turn ON/OFF if monitored by a peripheral device.

(h) A ladder pattern can be created up to 256 steps.

Mitsubishi Electronics QCPU — CHKCIR,CHKEND diagram (page 549)
Fig. 857

Further, OUT F can use up to 9 coils.

7.10 Debugging and failure diagnosis instructions 7.10.2 Changing check format of CHK instruction (CHKCIR,CHKEND)

(3) Coil numbers for ladders designated with the CHKCIR through CHKEND instructions are

allocated coil numbers from 1 to 9, from top to bottom.

comparative operation instructions

Page 550 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 550 · click to enlarge
Page 550

CHKCIR,CHKEND

(4) The CHKCIR and CHKEND instructions can be written at any step in the program desired.

It can be used in up to two locations in all program files being executed. However, the CHKCIR and CHKEND instructions cannot be used in more than 1 location in a single program file.

(5) The CHKCIR and CHKEND instructions cannot be used in low speed execution type

programs.

If a program file in which the CHKCIR or CHKEND instruction is described is set as a low speed execution type program, an operation error will occur, and the High Performance model QCPU/Process CPU/Redundant CPU operation will be suspended.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The CHKCIR or CHKEND instruction appears three or more times in all program files.
(Error code4235)
  • The CHKCIR or CHKEND instruction appears two or more times in a single program file.
(Error code4235)
  • The CHKEND instruction is not executed following the execution of the CHKCIR
instruction. (Error code4230)
  • The CHKEND instruction is executed although no CHKCIR instruction has been
executed. (Error code4230)
  • The CHKST and CHK instruction are used in a low speed execution type program.
(Error code4235)
  • There are 10 or more F instances in a ladder pattern. (Error code: 4235)
  • A ladder pattern has 257 or more steps. (Error code: 4235)
  • A device has been encountered which cannot be used in a ladder pattern.
(Error code4235)
  • Index modification has been conducted on a ladder pattern device.
(Error code4235)
Page 551 of the Mitsubishi Electronics QCPU user manual — 34 H (4) 35 H (5)
Page 551 · click to enlarge
Page 551

BINDA(P),DBINDA(P)

7.11 Character string processing instructions

7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))

BINDA(P),DBINDA(P)

Process High performance Redundant Universal Basic

indicates an instruction symbol of BINDA/DBINDA.

BINDA, DBINDA

S D

S D BINDAP, DBINDAP

P

: BIN data to be converted to ASCII (BIN 16/32 bits)

: Head number of the devices where the conversion result will be stored (character string)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

7.11 Character string processing instructions 7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))

Function

BINDA

(1) Converts the individual digit numbers of decimal notation of the BIN 16-bit data designated

by into ASCII codes, and stores the results into the area starting from the device

designated by .

b15 b8 b7 b0

Sign ASCII code for ten-thousands place

D Only when SM701 is OFF

ASCII code for thousands place ASCII code for hundreds place

ASCII code for tens place ASCII code for units place +3

BIN 16-bit data 0

For example, if 12345 has been designated at , the following will be stored from onward:

S D

b15 b8 b7 b0

2DH ( ) 31H (1) 32H (2) 33H (3)

S D D D

1 2 3 4 5

34 H (4) 35 H (5)

00 H +3

(2) The BIN data designated at can be in the range from 32768 to 32767.

Show 12 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data · –– –– –– · b15 b0 · +1 · +2 · b15 b0 · +1 · +2
Page 552 of the Mitsubishi Electronics QCPU user manual — DBINDA
Page 552 · click to enlarge
Page 552

BINDA(P),DBINDA(P)

(3) The operation results stored at are as follows:

(a) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored

if it is negative.

(b) The sign "20H" will be stored for the leading zeros of effective digits. (Zero suppression

is conducted.)

0 0 3 2 5

Number of significant digits

20H is set

(c) The storage of data at devices specified by +3 differs depending on the ON/OFF status of SM701 (output number of characters conversion signal).

When SM701 is OFF Stores "0" When SM701 is ON Does not change

DBINDA

(1) Converts the individual digit numbers of decimal notation of the BIN 32-bit data designated

by into ASCII codes, and stores the results into the area starting from the device

Mitsubishi Electronics QCPU — DBINDA diagram (page 552)
Fig. 858

ASCII code for hundred-millions place ASCII code for ten-millions place

ASCII code for millions place ASCII code for hundred-thousands place

ASCII code for ten-thousands place ASCII code for thousands place +3

ASCII code for hundreds place ASCII code for tens place

ASCII code for units place 0 or 20 H

For example, if the value 12345678 has been designated by , the following would be

2DH ( ) 20H (space) 20 H (space) 31H (1)

+1 12 3 4 5 6 7 8 S S

+2 32H (2) 33H (3) 34H (4) 35H (5) +3

36H (6) 37H (7) 38H (8) 0 or 20H

(2) BIN data designated by can be between 2147483648 to 2147483647.

(3) The operations results stored at will be stored in the following way:

(a) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored

if it is negative.

(b) The sign "20H" will be stored for the leading zeros of effective digits. (Zero suppression

is conducted.)

0 0 1 2

0 3 4 5 6 0

Number of significant digits 20H

(c) The data stored at the upper 8 bits of the device designated by +5 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFF Stores "0" When SM701 is ON Stores "20H"

Page 553 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 553 · click to enlarge
Page 553

BINDA(P),DBINDA(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following example program uses the PR instruction to output the 16-bit BIN data W0

value by decimal to Y40 to Y48 as ASCII.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 553)
Fig. 859 · Program Example

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, the PR instruction will output ASCII code until 00H is encountered.

Mitsubishi Electronics QCPU — Program Example diagram (page 553)
Fig. 860 · Program Example

20 H(space) 20H(space) 35 H (5) 31H (1)

7.11 Character string processing instructions 7.11.1 Conversion from BIN 16-bit or 32-bit to decimal ASCII (BINDA(P),DBINDA(P))

(2) The following program uses the PR instruction to output the decimal value of the 32-bit BIN

data at W10 and W11 in ASCII code to Y40 to Y48.

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, the PR instruction will output ASCII code until 00H is encountered.

2D H ( ) 20 H(space) 20 H(space) 20 H(space)

is output. 3 8 4 2 5 6 3 W11

34 H (4) 32 H (2) 35 H (5) 36 H (6) 33 H (3) 00 H

Page 554 of the Mitsubishi Electronics QCPU user manual — BINHA
Page 554 · click to enlarge
Page 554

BINHA(P),DBINHA(P)

7.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))

BINHA(P),DBINHA(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BINHA(P),DBINHA(P) diagram (page 554)
Fig. 861

: BIN data to be converted to ASCII (BIN 16/32 bits)

: Head number of the devices where the conversion result will be stored (character string)

BINHA

(1) Converts the individual digit numbers of hexadecimal notation of the BIN 16-bit data

designated by into ASCII codes, and stores the results into the area starting from the

Mitsubishi Electronics QCPU — BINHA diagram (page 554)
Fig. 862

ASCII code for the 4th digit ASCII code for the 3rd digit

ASCII code for the 2nd digit ASCII code for the 1st digit

For example, if 02A6H has been designated by , it will be stored as follows:

30H (0) 32H (2) 41H (A) 36H (6)

(2) The BIN data designated by can be in the range from 0H to FFFFH.

(3) The operation results stored at are processed as 4-digit hexadecimal values.

For this reason, zeros which are significant digits on the left side of the value are processed as "0". (No zero suppression is conducted.)

(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFF Stores "0" When SM701 is ON Does not change

Page 555 of the Mitsubishi Electronics QCPU user manual — BINHA(P),DBINHA(P)
Page 555 · click to enlarge
Page 555

BINHA(P),DBINHA(P)

DBINHA

(1) Converts the individual digit numbers of hexadecimal notation of the BIN 32-bit data

designated by into ASCII codes, and stores the results into the area starting from the

Mitsubishi Electronics QCPU — BINHA(P),DBINHA(P) diagram (page 555)
Fig. 863

ASCII code for the 8th digit ASCII code for the 7th digit

S D (Only when SM701 is OFF)

ASCII code for the 6th digit ASCII code for the 5th digit

+2 ASCII code for the 4th digit ASCII code for the 3rd digit

ASCII code for the 2nd digit ASCII code for the 1st digit +3

For example, if the value 03AC625EH has been designated by , it would be stored

30H (0) 33H (3) 41H (A) 43H (C)

+2 36H (6) 32H (2) 35H (5) 45H (E) +3

(2) The BIN data designated by can be in the range from 0H to FFFFFFFFH.

(3) The operation results stored at are processed as 8-digit hexadecimal values.

For this reason, zeros which are significant digits on the left side of the value are processed as "0". (No zero suppression is conducted.)

(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFF Stores "0" When SM701 is ON Does not change

Mitsubishi Electronics QCPU — BINHA(P),DBINHA(P) diagram (page 555)
Fig. 864

7.11 Character string processing instructions 7.11.2 Conversion from BIN 16-bit or 32-bit data to hexadecimal ASCII (BINHA(P),DBINHA(P))

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 556 of the Mitsubishi Electronics QCPU user manual — 00 H
Page 556 · click to enlarge
Page 556

BINHA(P),DBINHA(P)

Program Example

(1) The following program uses the PR instruction to output the hexadecimal value of the 16-bit

BIN data at W0 in ASCII code to Y40 to Y48.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BINHA(P),DBINHA(P) diagram (page 556)
Fig. 865

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.

9C06 H PR

D0 W0

39H (9) 43H (C) 30H (0) 36H (6)

D1 D2

Y40 to Y48 Outputs "9C06"

00 H

(2) The following program uses the PR instruction to output the hexadecimal value of the 32-bit

BIN data at W10 and W11 to Y40 to Y48.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — 00 H diagram (page 556)
Fig. 866

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.

Mitsubishi Electronics QCPU — 00 H diagram (page 556)
Fig. 867

37H (7) 42H (B) 33H (3) 43H (C)

7 B 3 C 5 8 1 FH W11 W10 PR

31H (1) 46H (F) 00H D4

b15 b8b7 b0 · BIN value

Page 557 of the Mitsubishi Electronics QCPU user manual — D D D
Page 557 · click to enlarge
Page 557

BCDDA(P),DBCDDA(P)

7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))

BCDDA(P),DBCDDA(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BCDDA(P),DBCDDA(P) diagram (page 557)
Fig. 868

: BCD data to be converted to ASCII (BCD 4 digits/8 digits)

: Head number of the devices where the conversion result will be stored (character string)

BCDDA

7.11 Character string processing instructions 7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))

(1) Converts the individual digit numbers of hexadecimal notation of the BCD 4-digit data

designated by into ASCII codes, and stores the results into the area starting from the

device designated by .

b15 b8 b7 b0

D D D

b15 b12 b8 b11 b7 b4 b0 b3 ASCII code for thousands place

ASCII code for hundreds place

+1 +2 Thousands place

ASCII code for units place

ASCII code for tens place

Only when SM701 is OFF

For example, when "9105" is designated for , the results of the operation are stored into

the area starting from in the following manner:

b15 b8b7 b0 39H (9) 31H (1) 30H (0) 35H (5) 00H

b15 b12 b8 b11 b7 b4 b0 b3

D D D

9 1 0 5 +1 +2

(2) The BCD data designated by can be in the range of from 0 to 9999.

(3) The results of calculation stored in the device . All zeros on the left side of the "Number of significant digits" are zero-suppressed.

0 0 5 0

Number of significant digits 20H

Hundreds place · Tens place · Units place

Page 558 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 558 · click to enlarge
Page 558

BCDDA(P),DBCDDA(P)

(4) The data to be stored at the device designated by +2 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFF Stores "0" When SM701 is ON Does not change

DBCDDA

(1) Converts the individual digit numbers of hexadecimal notation of the BCD 8-digit data

designated by into ASCII codes, and stores the results into the area starting from the

Mitsubishi Electronics QCPU — DBCDDA diagram (page 558)
Fig. 869

ASCII code for ten-millions place ASCII code for millions place

b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b0 b3 b7 b4 b8 b11

ASCII code for thousands place ASCII code for hundreds place

ASCII code for tens place ASCII code for unit place

For example, if the value 01234056 is designated by , the operation result would be

20H 31H (1) 32H (2) 33H (3)

b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b7 b4

b0 b3 b8 b11 0 1 2 3 4 0 5 6

34H (4) 30H (0) 35H (5) 36H (6) 00H

(2) The BCD data designated by can be in the range of 0 to 99999999.

(3) The results of calculation stored in the device . All zeros on the left side of the "Number of significant digits" are zero-suppressed.

0 0 0 1

2 0 9 8

Number of significant digits

20 H

(4) The data to be stored at the device designated by +4 differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFF Stores "0" When SM701 is ON Does not change

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data at during the operation of the BCDDA instruction is outside the range of from 0 to 9999. (Error code: 4100)
  • The data at during the operation of the DBCDDA instruction is outside the range of 0 to 99999999. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 559 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 559 · click to enlarge
Page 559

BCDDA(P),DBCDDA(P)

Program Example

(1) The following program uses the PR instruction to convert BCD 4-digit data (the value at W0)

to decimal, and outputs it in ASCII format to Y40 to Y48.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BCDDA(P),DBCDDA(P) diagram (page 559)
Fig. 870

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.

D0 W0

31H (1) 32H (2) 39H (9) 35H (5)

PR

Y40 to Y48 1 Outputs "1295" 2 9 5

D1 D2

00 H

(2) The following program uses the PR instruction to convert BCD 8-digit data (the values at

W10 and W11) to decimal, and outputs it in ASCII format to Y40 to 48.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — D1 D2 diagram (page 559)
Fig. 871

7.11 Character string processing instructions 7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))

[Operation] Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON. Because SM701 is OFF, The PR instruction will output ASCII code until 00H is encountered.

33H (3) 35H (5) 34H (4) 37H (7)

Y40 to Y48 Outputs "35478352" 5 4 7 8 3 5 2

35H (5) 32H (2) 00H D4

b15 b8b7 b0 · BCD value

Page 560 of the Mitsubishi Electronics QCPU user manual — S S
Page 560 · click to enlarge
Page 560

DABIN(P),DDABIN(P)

7.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))

DABIN(P),DDABIN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — DABIN(P),DDABIN(P) diagram (page 560)
Fig. 872

: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored

Mitsubishi Electronics QCPU — DABIN(P),DDABIN(P) diagram (page 560)
Fig. 873

: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)

DABIN

(1) Converts decimal ASCII data stored into the area starting from the device number

designated by into BIN 16-bit data, and stores it in the device number designated by .

Mitsubishi Electronics QCPU — DABIN diagram (page 560)
Fig. 874

ASCII code for tens place ASCII code for units place

For example, if the ASCII code " 25108H" is specified for the area starting from , the conversion result is stored at as shown below:

2DH ( ) 32H (2) 35H (5) 31H (1)

(2) The ASCII data designated by from to +2 can be in the range of from 32768 to 32767

S S

(3) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored if it

is negative.

(If other than "20H " and "2DH" is set, it will be processed as positive data.)

(4) ASCII code can be set for each position within the range from "30H" to "39H".

(5) If the ASCII code set for individual positions is "20H" or "00H," it will be processed as "30H".

(character string)

Page 561 of the Mitsubishi Electronics QCPU user manual — S S
Page 561 · click to enlarge
Page 561

DABIN(P),DDABIN(P)

DDABIN

(1) Converts decimal ASCII data stored into the area starting from the device number

designated by into BIN 32-bit data, and stores it in the device number designated by .

Mitsubishi Electronics QCPU — DABIN(P),DDABIN(P) diagram (page 561)
Fig. 875

ASCII code for hundred-millions place ASCII code for ten-millions place

+2 ASCII code for millions place ASCII code for hundred-thousands place

ASCII code for ten-thousands place ASCII code for thousands place +3

ASCII code for hundreds place ASCII code for tens place

For example, if the ASCII code of 1234543210H is designated for the area starting from

, the operation result would be stored at +1 and in the following manner:

2DH ( ) 31H (1) 32H (2) 33H (3)

+2 34H (4) 35H (5) 34H (4) 33H (3) +3

32H (2) 31H (1) 30H (0) +4 +5

(2) The ASCII data designated by to +5 can be in the range of from 2147483648 to 2147483647.

S S

Further, data stored at the upper bytes of +5 will be ignored.

(3) The sign "20H" will be stored if the BIN data is positive, and the sign "2DH" will be stored if it

is negative.

(If other than "20H " and "2DH" is set, it will be processed as positive data.)

(4) ASCII code can be set for each position within the range from "30H" to "39H".

Mitsubishi Electronics QCPU — S S diagram (page 561)
Fig. 876

(5) If the ASCII code set for individual positions is "20H" or "00H," it will be processed as "30H".

7.11 Character string processing instructions 7.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P))

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The ASCII code designated by to +5 for the individual numbers is something other than "30 H " to "39 H ", "20 H ", or "00 H ". (Error code: 4100)
  • The ASCII data designated by to +5 is outside the ranges shown below:

When DABIN instruction is used 32768 to 32767

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 562 of the Mitsubishi Electronics QCPU user manual — DABIN(P),DDABIN(P)
Page 562 · click to enlarge
Page 562

DABIN(P),DDABIN(P)

Program Example

(1) The following program converts the decimal, 5-digit ASCII data and sign set at D20 through

D22 to BIN values, and stores the result at D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DABIN(P),DDABIN(P) diagram (page 562)
Fig. 877

2DH ( ) 20H (space) 20H (space) 32H (2)

(2) The following program converts the decimal, 10-digit ASCII data and sign set at D20 through

D25 to BIN values and stores the result at D10 and D11.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DABIN(P),DDABIN(P) diagram (page 562)
Fig. 878

20H (space) 20H (space) 20H (space) 20H (space)

36H (6) 38H (8) 33H (3) 37H (7) 30H (0) D24 D25

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 563 of the Mitsubishi Electronics QCPU user manual — S S
Page 563 · click to enlarge
Page 563

HABIN(P),DHABIN(P)

7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))

HABIN(P),DHABIN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — HABIN(P),DHABIN(P) diagram (page 563)
Fig. 879

: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored

: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)

R, ZR J \

U \G Zn Constants

$ Other Bit Word Bit Word

Function

7.11 Character string processing instructions 7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))

HABIN

(1) Converts hexadecimal ASCII data stored in the area starting from the device number

designated by into BIN 16-bit data, and stores it in the device number designated by .

S D

b15 b8b7 b0 S S

ASCII code for the 4th digit ASCII code for the 3rd digit

BIN 16 bits +1

ASCII code for the 2nd digit ASCII code for the 1st digit

For example, if the ASCII code of 5A8DH is designated for the area starting from , the operation result would be stored at in the following manner:

5A8D H D S S

35H (5) 41H (A) 38H (8) 44H (D)

(2) The ASCII data designated by to +1 can be in the range of from 0000H to FFFFH.

S S

(3) The ASCII codes can be in the range of "30H" to "39H" and from "41H" to "46H".

Show 10 more labels / short text on this page
(character string) · Setting · Internal Devices · Data · –– –– –– · b15 b0 · b15 b7 b0 · b8 · b15 b0 · +1
Page 564 of the Mitsubishi Electronics QCPU user manual — S S
Page 564 · click to enlarge
Page 564

HABIN(P),DHABIN(P)

DHABIN

(1) Converts hexadecimal ASCII data stored in the area starting from the device number

designated by into BIN 32-bit data, and stores it in the device number designated by .

Mitsubishi Electronics QCPU — HABIN(P),DHABIN(P) diagram (page 564)
Fig. 880

ASCII code for the 8th digit ASCII code for the 7th digit

ASCII code for the 6th digit ASCII code for the 5th digit

+2 ASCII code for the 4th digit ASCII code for the 3rd digit

ASCII code for the 2nd digit ASCII code for the 1st digit +3

For example, if the ASCII code of 5CB807E1H is designated for the area starting from ,

the operation result would be stored at +1 and in the following manner:

35H (5) 43H (C) 42H (B) 38H (8)

30H (0) 37H (7) 45H (E) 31H (1)

(2) The ASCII data designated by to +3 can be in the range of from 00000000H to FFFFFFFFH.

S S

(3) The ASCII codes can be in the range of "30H" to "39H" and from "41H" to "46H".

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The ASCII codes for the individual numbers designated by to +3 are outside the range of from "30 H " to "39 H " and from "41 H " to "46 H ". (Error code: 4100)

S S

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 565 of the Mitsubishi Electronics QCPU user manual — HABIN(P),DHABIN(P)
Page 565 · click to enlarge
Page 565

HABIN(P),DHABIN(P)

Program Example

(1) The following program converts the hexadecimal, 4-digit ASCII data set at D20 and D21 to

BIN data, and stores the result at D0.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — HABIN(P),DHABIN(P) diagram (page 565)
Fig. 881

41H (A) 36H (6) 33H (3) 46H (F)

(2) The following program converts the hexadecimal, 8-digit ASCII data set at D20 to D23 to

BIN values, and stores the result at D10 and D11.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — HABIN(P),DHABIN(P) diagram (page 565)
Fig. 882

34H (4) 46H (F) 44H (D) 32H (2)

38H (8) 37H (7) 35H (5) 30H (0) D22 D23

7.11 Character string processing instructions 7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))

Regarded as 4FD28750H (1339197264 in decimal value) 4FD28750

Show 4 more labels / short text on this page
Step Instruction Device · [Operation] · Step Instruction Device · [Operation]
Page 566 of the Mitsubishi Electronics QCPU user manual — S S
Page 566 · click to enlarge
Page 566

DABCD(P),DDABCD(P)

7.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))

DABCD(P),DDABCD(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — DABCD(P),DDABCD(P) diagram (page 566)
Fig. 883

: ASCII data to be converted to BCD value or head number of the devices where the ASCII data is stored

Mitsubishi Electronics QCPU — DABCD(P),DDABCD(P) diagram (page 566)
Fig. 884

: Head number of the devices where the conversion result will be stored (BCD 4 digits/8 digits)

DABCD

(1) Converts decimal ASCII data stored in the area starting from device number designated by

Mitsubishi Electronics QCPU — DABCD diagram (page 566)
Fig. 885

into 4-digit BCD data, and stores at device number designated by .

b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0

ASCII code for units place S S D ASCII code for tens place

For example, if the ASCII code of 8765H is designated for the area starting from , the operation results would be stored at in the following manner:

8 7 6 5 b15 b12 b8 b11 b7 b4 b0 b3 38H (8) 37H (7) 36H (6) 35H (5)

(2) The ASCII data designated by to +1 can be in the range of from 0 to 9999.

S S

(3) The ASCII code set at each digit can be in the range of from "30H" to "39H".

(4) If ASCII code for individual digits is "20H" or "00H", it is processed as "30H".

(character string)

Page 567 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 567 · click to enlarge
Page 567

DABCD(P),DDABCD(P)

DDABCD

(1) Converts decimal ASCII data stored in the area starting from the device designated by to

Mitsubishi Electronics QCPU — DABCD(P),DDABCD(P) diagram (page 567)
Fig. 886

8-digit BCD data, and stores it into the area starting from the device designated by .

ASCII code for ten-millions place ASCII code for millions place

b31 b28 b24 b27 b16 b19 b23 b20 b15 b12 b0 b3 b7 b4 b8 b11

ASCII code for thousands place ASCII code for hundreds place

ASCII code for tens place ASCII code for units place

For example, if the ASCII code of 87654321H is designated for the area starting from , the

operation results would be stored at +1 and in the following manner:

38H (8) 37H (7) 36H (6) 35H (5)

b31 b28 b24 b27 b16 b19 b23 b20 b15 b12

34H (4) 33H (3) 32H (2) 31H (1)

(2) The ASCII data designated at to +3 can be in the range of from 0 to 99999999.

S S

(3) The ASCII code set at each digit can be in the range of from "30H" to "39H".

(4) If ASCII code for individual digits is from "20H" to "00H", it is processed as "30H".

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Mitsubishi Electronics QCPU — Operation Error diagram (page 567)
Fig. 887 · Operation Error

7.11 Character string processing instructions 7.11.6 Conversion from decimal ASCII to BCD 4-digit or 8-digit data (DABCD(P),DDABCD(P))

  • There are characters within the data at that are outside the 0 to 9 range.
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 568 of the Mitsubishi Electronics QCPU user manual — 0 4 9 4 Y4F Y40
Page 568 · click to enlarge
Page 568

DABCD(P),DDABCD(P)

Program Example

(1) The following program converts the decimal ASCII data set from D20 to D22 to BCD

4-digit data, and outputs the results to Y40 to Y4F.

Outputs the converted BCD value to a display device.

b15 b8b7 b0 D20

0 4 9 4 Y4F Y40

20H(space) 34H (4) 39H (9) 34H (4)

(2) The following program converts the decimal ASCII data set at D20 to D23 into 8-digit BCD

data, stores the result at D10 and D11, and also outputs it to from Y40 to Y5F.

Mitsubishi Electronics QCPU — 0 4 9 4 Y4F Y40 diagram (page 568)
Fig. 888

Outputs the converted BCD value to a display device.

Mitsubishi Electronics QCPU — 0 4 9 4 Y4F Y40 diagram (page 568)
Fig. 889

20H(space) 34H (4) 39H (9) 37H (7)

0 4 9 7 2 9 4 9 D11 D10 Y5F Y50Y4F Y40 DMOV

0 4 9 7 2 9 4 9 Regarded as 04972949

Show 10 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation] · Regarded as 0494 · BCD value · [Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 569 of the Mitsubishi Electronics QCPU user manual — NO.1 LINE START
Page 569 · click to enlarge
Page 569

COMRD(P)

7.11.7 Reading device comment data (COMRD(P))

COMRD(P)

Process High performance Redundant Universal Basic

S D COMRD

COMRD

COMRDP S D

COMRDP

: Head number of the devices where a comment to be read is stored (Device name)

: Head number of the devices where the read comment will be stored (character string)

J \

BL \ S,BL

R, ZR

U \G Zn Constants

P,I,J,U Bit Word Bit Word

\ TR,BL,

––

Function

(1) Reads the comment at the device number designated by , and stores it as ASCII code in the area starting from the device number designated by .

7.11 Character string processing instructions 7.11.7 Reading device comment data (COMRD(P))

D D D

ASCII code for the 1st character ASCII code for the 2nd character

ASCII code for the 3rd character ASCII code for the 4th character

Comment at device number designated by

ASCII code for the 5th character ASCII code for the 6th character

ASCII code for the 7th character ASCII code for the 8th character

Stores up to 32 characters

ASCII code for the 29th character ASCII code for the 30th character

ASCII code for the 31st character ASCII code for the 32nd character

00 H

For example, if the comment for the device designated by were "NO. 1 LINE START," the operation results would be stored following as follows:

D

4EH (N) 4FH (O) 2EH (.) 31H (1)

4C H (L)

+2 20H (space)

NO.1 LINE START

+3 +4 +5 +6 +7

4EH (N) 49H (I) 20H (space) 45H (E) 54H (T) 53H (S) 52H (R) 41H (A) 54H (T)

00H +15 D 20H (space) 20H (space)

Show 14 more labels / short text on this page
Command · Command · Internal Devices · Other · Setting · Data · b15 b8b7 b0 · +1 · +2 · +3 · b15 b8b7 b0 · +1 · Comment at · 20H (space)
Page 570 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 570 · click to enlarge
Page 570

COMRD(P)

(2) If no comment has been registered for the device specified by despite the fact that the comment range setting is made, all of the characters for the comment are processed as "20H" (space).

(3) The device number plus 1 where the final character of is stored differs depending on the ON/OFF status of SM701 (number of characters to output select signal).

When SM701 is OFFDoes not change When SM701 is ON : Stores "0"

(4) When a comment is read, SM720 turns ON for one scan after the instruction is completed.

SM721 turns ON during the execution of the instruction. While SM721 is ON, the COMRD(P) instruction cannot be executed. If the attempt is made, no processing is performed.

1. The device comment used in the COMRD(P) instruction uses a comment file stored in a memory card and the standard ROM. Comment files stored in the program memory cannot be used. 2. Set the comment file used for the COMRD(P) instruction in "PLC file setting" in the PLC parameter dialog box. If the comment file to be used is not set in the PLC file setting, device comments cannot be output with the COMRD(P) instruction. 3. The COMRD(P) instruction cannot be executed during the interrupt program. No operation if executed.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The comment is not registered to the device number specified by . (Error code: 4100)
  • The device number specified by is not a word device. (Error code: 4101)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 571 of the Mitsubishi Electronics QCPU user manual — COMRD(P)
Page 571 · click to enlarge
Page 571

COMRD(P)

Program Example

(1) The following program stores the comments set at D100 into the area starting from W0 as

ASCII when X1C is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — COMRD(P) diagram (page 571)
Fig. 890
Mitsubishi Electronics QCPU — COMRD(P) diagram (page 571)
Fig. 891

49H (I) 4EH (N) 20H (space) 20H (space)

54H (T) 57H (G) 52H (R) 55H (E)

20H (space) 20H (space) 20H (space)

Mitsubishi Electronics QCPU — COMRD(P) diagram (page 571)
Fig. 892

7.11 Character string processing instructions 7.11.7 Reading device comment data (COMRD(P))

(2) The COMRD(P)/PRC instruction is not executed if the start signal (execution command) of

the COMRD(P)/PRC instruction is turned ON before completion of the instruction (while SM721 is ON). Execute the COMRD(P)/PRC instruction when SM721 is OFF.

(3) Two or more file comments cannot be accessed simultaneously.

(4) The following instructions cannot be executed simultaneously because they use SM721 in

Designated by instruction. (Device designated by instruction) + 1

[Operation]

Page 572 of the Mitsubishi Electronics QCPU user manual — LEN(P)
Page 572 · click to enlarge
Page 572

LEN(P)

7.11.8 Character string length detection (LEN(P))

LEN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — LEN(P) diagram (page 572)
Fig. 893

: Character string or head number of the devices where the character string is stored (character string)

: Number of the device where the length of detected character string will be stored (BIN 16 bits)

(1) Detects length of character string designated by and stores in the area starting from the

device number designated by .

Processes the data from the device number designated by to the device number storing "00H" as a character string.

Mitsubishi Electronics QCPU — LEN(P) diagram (page 572)
Fig. 894

For example, when the value "ABCDEFGHI" is stored in the area starting from , the value

41H (A) 42H (B) 43H (C) 44H (D)

45H (E) 46H (F) +2 +3 +4

47H (G) 48H (H) 49H (I) 00H

Page 573 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 573 · click to enlarge
Page 573

LEN(P)

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • There is no "00 H " set within the relevant device range following the device number
designated by . (Error code4101)

Program Example

(1) The following program outputs the length of the character string from D0 to Y40 to Y4F as

BCD 4-digit values.

Mitsubishi Electronics QCPU — Program Example diagram (page 573)
Fig. 895 · Program Example

Outputs the length of character string to a display device.

Mitsubishi Electronics QCPU — Program Example diagram (page 573)
Fig. 896 · Program Example

4DH (M) 49H (I) 54H (T) 53H (S)

7.11 Character string processing instructions 7.11.8 Character string length detection (LEN(P))

"MITSUBISHI" (Characters "ABC" that follow 00H are ignored)

48H (H) 49H (I) 00H B1H (A)

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 574 of the Mitsubishi Electronics QCPU user manual — STR(P),DSTR(P)
Page 574 · click to enlarge
Page 574

STR(P),DSTR(P)

7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))

STR(P),DSTR(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 574)
Fig. 897

: Head number of the devices where the digits numbers for the numerical value to be converted are stored

: BIN data to be converted (BIN 16/32 bits)

: Head number of the devices where the converted character string will be stored (character string)

STR (1) Adds a decimal point to the BIN 16-bit data designated by at the location designated by , converts the data to character string data, and stores it in the area starting from the device number designated by .

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 574)
Fig. 898

ASCII code for the (total number of digits -1) th digit

ASCII code for the (total number of digits -3) th digit

ASCII code for the (total number of digits -2) th digit

ASCII code for the (total number of digits -5) th digit

ASCII code for the (total number of digits -4) th digit

ASCII code for the (total number of digits -7) th digit

ASCII code for the (total number of digits -6) th digit

Automatically stored at the end of the character string

31 H (1) 32H (2) 2EH (.)

33H (3) 00H +1 1 2 3

Page 575 of the Mitsubishi Electronics QCPU user manual — STR(P),DSTR(P)
Page 575 · click to enlarge
Page 575

STR(P),DSTR(P)

(2) The total number of digits that can be designated by is from 2 to 8.

(3) The number of digits that can be designated by +1 as a part of the decimal fraction is from 0 to 5.

However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.

(4) BIN data in the range between 32768 and 32767 can be designated at .

(5) After conversion, character string data is stored at the device number or later device number as indicated below:

(a) The sign "20H" (space) will be stored if the BIN data is positive, and the sign "2DH"

(minus sign) will be stored if it is negative.

(b) If the setting for the number of digits after the decimal fraction is anything other than "0",

"2EH" (.) will automatically be stored at the position before the first of the specified number of digits.

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 575)
Fig. 899

Total number of digits Number of digits in decimal fraction

Number of digits in decimal fraction 1 2 3 4

If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.

(c) If the total number of digits following the decimal fraction is greater than the number of BIN data digits, a zero will be added automatically and the number converted by shifting

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 575)
Fig. 900

to the right, so that it would become "0. ".

Total number of digits Number of digits in decimal fraction

7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))

(d) If the total number of digits excluding the sign and the decimal point is greater than the

number of BIN data digits, "20H" (space) will be stored between the sign and the numeric value.

Total number of digits Number of digits in decimal fraction

If the number of BIN digits is greater, an error will be returned.

(e) The value "00H" is automatically stored at the end of the converted character string.

Page 576 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 576 · click to enlarge
Page 576

STR(P),DSTR(P)

DSTR

(1) Adds a decimal point to the BIN 32-bit data designated by at the location designated by

, converts the data to character string data, and stores it following the device number

designated by .

Total number of digits

Number of digits in decimal fraction +1

ASCII code for the (total number of digits -1) th digit

ASCII code for the sign

ASCII code for the (total number of digits -3) th digit ASCII code for the (total number of digits -5) th digit ASCII code for the (total number of digits -7) th digit

ASCII code for the (total number of digits -2) th digit ASCII code for the (total number of digits -4) th digit ASCII code for the (total number of digits -6) th digit

Designated total number of digits

ASCII code for the (total number of digits -9) th digit

ASCII code for the (total number of digits -8) th digit ASCII code for the (total number of digits -10) th digit

00 H +5

Automatically stored at the end of the character string

D

2DH ( ) 36H (6) 35H (5) 34H (4)

+4 +3 +2 +1

6 5 4 3 2 1

33H (3) 32H (2) 31H (1)

2E H (.)

S2 S2

00 H

6 5 4 3 2 1

(2) The total number of digits that can be designated by is from 2 to 13.

(3) The number of digits that can be designated by +1 as a part of the decimal fraction is from 0 to 10.

However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.

(4) The BIN data that can be designated by and +1 is within the range of from 2147483648 to 2147483647.

S1 S2

(5) After conversion, character string data is stored at the device number following as indicated below:

(a) The sign "20H" (space) will be stored if the BIN data is positive, and the sign "2DH"

(minus sign) will be stored if it is negative.

(b) If the setting for the number of digits after the decimal fraction is anything other than "0",

"2EH" (.) will automatically be stored at the position before the first of the specified number of digits.

Total number of digits Number of digits in decimal fraction

Mitsubishi Electronics QCPU — S1 S2 diagram (page 576)
Fig. 901

1 2 3 4 5 . 6 7 8

2 3 4 5 6 7 8 Number of digits in decimal fraction

If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.

Show 16 more labels / short text on this page
b15 b8b7 b0 · +1 · Sign · +2 · +1 · b31 · b16 b15 b0 · +3 · Upper 16 bits · Lower 16 bits · +4 · BIN 32 bits · 8 3 +1 · b15 b8b7 b0 · +1 · BIN data
Page 577 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 577 · click to enlarge
Page 577

STR(P),DSTR(P)

(c) If the total number of digits following the decimal fraction is greater than the number of BIN data digits, a zero will be added automatically and the number converted by shifting

to the right, so that it would become "0. ".

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 577)
Fig. 902

Total number of digits Number of digits in decimal fraction

13 10 0 . 0 5 4 3 2 1

(d) If the total number of digits excluding the sign and the decimal point is greater than the

number of BIN data digits, "20H" (space) will be stored between the sign and the numeric value.

Total number of digits Number of digits in decimal fraction

13 2 5 4 3 2 . 1 0

5 4 3 2 1 0

Filled with 20H (space) codes

If the number of BIN digits is greater, an error will be returned.

(e) The value "00H" is automatically stored at the end of the converted character string.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The total number of digits designated by is outside the ranges shown below.

(Error code: 4100) When the STR instruction is in use 2 to 8 When the DSTR instruction is in use 2 to 13

  • The number of digits designated as a part of the decimal fraction by +1 is outside the range shown below. (Error code: 4100) When the STR instruction is in use .......0 to 5 When the DSTR instruction is in use.....0 to 10

7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))

  • The relationship between the total number of digits designated by and the number of

digits in the decimal fraction designated by +1 is not as shown below:

(Error code: 4100) Total number of digits minus 3 is equal to or larger than the number of digits in the decimal

fraction.

  • The number of digits designated by is smaller than "2 + number of digits of the BIN

data, designated by ".

(Number of digits of < Number of digits of the BIN data at without a sign + Number of digits of a sign (+ or -) + Number of digits of decimal point (.)) (Error code: 4100)

S1 S2

  • The device range where the character string designated by will be stored exceeds the relevant device range. (Error code: 4101)

BIN data

Page 578 of the Mitsubishi Electronics QCPU user manual — STR(P),DSTR(P)
Page 578 · click to enlarge
Page 578

STR(P),DSTR(P)

Program Example

(1) The following program converts the BIN 16-bit data stored at D10 when X0 is turned ON in

accordance with the digit designation of D0 and D1, and stores the result from D20 to D23.

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 578)
Fig. 903
Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 578)
Fig. 904

20H (space) 31H (1) 32H (2) 36H (6)

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 579 of the Mitsubishi Electronics QCPU user manual — STR(P),DSTR(P)
Page 579 · click to enlarge
Page 579

STR(P),DSTR(P)

(2) The following program converts the BIN 32-bit data stored at D10 and D11 when X0 is

turned ON in accordance with the digit designation of D0 and D1, and stores the result at from D20 to D26.

Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 579)
Fig. 905
Mitsubishi Electronics QCPU — STR(P),DSTR(P) diagram (page 579)
Fig. 906

20H (space) 30H (0) 2EH (.) 30H (0)

12 9 D0 D1 33H (3) 34H (4) 35H (5) 36H (6) 37H (7) 38H (8) D24 D25 D26

7.11 Character string processing instructions 7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 580 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 580 · click to enlarge
Page 580

VAL(P),DVAL(P)

7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))

VAL(P),DVAL(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPUThe upper five digits of the serial No. are "04122" or larger

(Correspording GX Seveloper :Version 8.00 A or later).

Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 580)
Fig. 907

: Character string to be converted to BIN data or head number of the devices where the character string is

Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 580)
Fig. 908

: Head number of the devices where the number of digits of the converted BIN data will be stored (BIN 16 bits)

: Head number of the devices where the converted BIN data will be stored (BIN 16/32 bits)

VAL

(1) Converts character strings stored in the device numbers starting from that designated at

to BIN 16-bit data, and stores the number of digits and BIN data in and .

D1 D2

For conversions from character strings to BIN, all data from the device number designated

by to the device number where "00H" is stored will be processed as character strings.

Mitsubishi Electronics QCPU — D1 D2 diagram (page 580)
Fig. 909

Total number of digits Number of digits in decimal fraction

ASCII code for the sign ASCII code for the 1st character

ASCII code for the 6th character ASCII code for the 7th character +4 +3 +2 +1

ASCII code for the 2nd character ASCII code for the 3rd character

stored (character string)

Page 581 of the Mitsubishi Electronics QCPU user manual — Example
Page 581 · click to enlarge
Page 581

VAL(P),DVAL(P)

For example, if the character string " 123.45" is designated for the area starting from ,

Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 581)
Fig. 910

the operation result would be stored at and in the following manner:

+1 2DH ( ) 31H (1) 32 H (2) 33H (3)

2EH (.) 34H (4) 35 H (5) 00H +3 +2 +1

(2) The total number of characters that can be designated as a character string at is from 2 to 8.

(3) From 0 to 5 characters from the character string designated at can become the decimal fraction part.

However, this number must not exceed the total number of digits minus 3.

(4) The range of the numerical character string that can be converted to BIN value is from

32768 to 32767, ignoring a decimal point.

Numerical value character strings, excluding the sign and the decimal point, can be designated only within the range from "30H" to "39H". The value ignoring a decimal point means:

Example

: " 12345.6" " 123456"

(5) The sign "20H" will be stored if the numerical value is positive, and the sign "2DH" will be

stored if it is negative.

(6) "2EH" is set for the decimal point.

(7) The total number of digits stored at amounts to all characters expressing numerical values (including signs and decimal points).

The characters following the decimal point stored at +1 include the number of characters from "2EH" (.) onward.

Mitsubishi Electronics QCPU — Example diagram (page 581)
Fig. 911 · Example

7.11 Character string processing instructions 7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))

The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.

(8) In cases where the character string designated by contains "20H" (space) or "30H" (0) between the sign and the first numerical value other than "0", these "20H" and "30H" are ignored in the conversion into a BIN value.

Total number of digits Number of digits in decimal fraction

Total number of digits Number of digits in decimal fraction

Page 582 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 582 · click to enlarge
Page 582

VAL(P),DVAL(P)

DVAL

(1) Converts the character string stored in the area starting from the device designated by to

BIN 32-bit data, and stores the digits numbers and BIN data in and .

D1 D2

For conversions from character strings to BIN, all data from the device number designated

by to the device number where "00H" is stored will be processed as character strings.

Mitsubishi Electronics QCPU — D1 D2 diagram (page 582)
Fig. 912

ASCII code for the sign ASCII code for the 1st character

ASCII code for the 2nd character ASCII code for the 3rd character

ASCII code for the 6th character ASCII code for the 7th character

ASCII code for the 8th character ASCII code for the 9th character

ASCII code for the 10th character ASCII code for the 11th character

2D H( ) 31H (1) 32H (2) 33H(3)

34H (4) 35H(5) 2EH (.) 36H(6) 37H (7) 38H(8) .

(2) The total number of characters in the character string indicated by is from 2 to 13.

(3) From 0 to 10 characters in the character string indicated by can be the decimal fraction part.

However, this number must not exceed the total number of digits minus 3.

(4) The range of the numerical character string that can be converted to BIN value is from

2147483648 to 2147483647, excluding the decimal point.

Numerical value character strings, excluding the sign and the decimal point, can be designated only within the range from "30H" to "39H".

(5) The sign "20H" will be stored if the numerical value is positive, and the sign "2DH" will be

stored if it is negative.

(6) "2EH" is set for the decimal point.

(7) The total number of digits stored at D1 amounts to all characters expressing numerical

values (including signs and decimal points).

The characters following the decimal point stored at +1 include the number of characters from "2EH" (.) onward.

The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.

Page 583 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 583 · click to enlarge
Page 583

VAL(P),DVAL(P)

(8) In cases where the character string designated by contains "20H" (space) or "30H" (0) between the sign and the first numerical value other than "0", these "20H" and "30H" are ignored in the conversion into a BIN value.

Total number of digits Number of digits in decimal fraction

6 5 4 3 . 2 1

6 5 4 3 2 1

Total number of digits Number of digits in decimal fraction

0 5 4 3 2 1

5 4 3 2 1

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The number of characters in the character string designated by falls outside the ranges shown below: (Error code: 4100) When VAL instruction is in use........... From 2 to 8 characters When DVAL instruction is in use ........ From 2 to 13 characters
  • The number of characters in the decimal fraction portion of the character string

designated by falls outside the ranges shown below: (Error code: 4100) When VAL instruction is in use 0 to 5 When DVAL instruction is in use 0 to 10

  • The total number of characters in the character string designated by and the number of characters in the decimal fraction part stand in a relationship that is outside the range indicated below: (Error code: 4100) Total number of characters minus 3 is equal to or greater than the number of characters in the decimal fraction part.

7.11 Character string processing instructions 7.11.10 Conversion from character string to BIN 16-bit or 32-bit data (VAL(P),DVAL(P))

  • An ASCII code other than "20 H " or "2D H " has been set for the sign.
(Error code4100)
  • An ASCII code other than from "30 H " to "39 H " or "2E H " (decimal point) has been set as a

digit for one of the individual numbers. (Error code: 4100)

  • There has been more than one decimal point set in the value. (Error code: 4100)
  • The value of the BIN value when converted falls outside the following ranges:
(Error code4100)

When VAL instruction is in use 32768 to 32767

When DVAL instruction is in use 2147483648 to 2147483647

  • No "00 H " is set within the range from the device number designated by to the last device number of the relevant device. (Error code: 4101)
Show 5 more labels / short text on this page
BIN data · Ignored · BIN data · Sign · Ignored
Page 584 of the Mitsubishi Electronics QCPU user manual — VAL(P),DVAL(P)
Page 584 · click to enlarge
Page 584

VAL(P),DVAL(P)

Program Example

(1) The following program reads the character string data stored from D20 to D22 as an integer,

converts it to a BIN value, and stores it at D0 when X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 584)
Fig. 913

2DH ( ) 31H (1) 36H (6) 2EH (.)

Total number of digits Number of digits in decimal fraction

(2) The following program reads the character string data stored from D20 to D24 as an integer,

converts it to a BIN value, and stores it at D0 when X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 584)
Fig. 914
Mitsubishi Electronics QCPU — VAL(P),DVAL(P) diagram (page 584)
Fig. 915

7 9 1 0 0 6 1 1 D1 D0

20H (space) 37H (7) 39H (9) 31H (1)

Total number of digits Number of digits in decimal fraction

2EH (.) 36H (6) 31H (1) 31H (1) D24 D25

Step Instruction Device · [Operation] · [Operation]

Page 585 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 585 · click to enlarge
Page 585

ESTR(P)

7.11.11 Conversion from floating decimal point to character string data (ESTR(P))

ESTR(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 585)
Fig. 916

: 32-bit floating decimal point data to be converted or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 585)
Fig. 917

: Head number of the devices where display designation for the numerical value to be converted is stored (BIN 16 bits)

: Head number of the devices where the converted character string will be stored (character string)

*1:Available only in multiple Universal model QCPU

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 585)
Fig. 918

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))

(1) Converts the 32-bit floating decimal point data designated by to a character string

according to the display designation specified by , and stores the result into the area

(2) The post-conversion data differs depending on the display designation designated by .

The converted data differs depending on the format selected at . S2

Setting is possible in the range from 2 to 24.

(real number)

Page 586 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 586 · click to enlarge
Page 586

ESTR(P)

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 586)
Fig. 919

ASCII code for the (total number of digits -1) th digit

ASCII code for the (total number of digits -3) th digit

ASCII code for the (total number of digits -2) th digit

ASCII code for the (total number of digits -5) th digit

ASCII code for decimal point (.) (2E H)

ASCII code for the (total number of digits -7) th digit

ASCII code for the (total number of digits -6) th digit

Page 587 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 587 · click to enlarge
Page 587

ESTR(P)

For example, in a case where there are 8 digits in total, with 3 digits in the decimal fraction

part, and the value designated is 1.23456, the operation result would be stored in the area

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 587)
Fig. 920

31H (1) 32H (2) 35H (5)

20H (space) 2EH (.) 33H (3)

(a) The total number of digits that can be designated by +1 is as shown below: When the number of decimal fraction digits is "0"

Number of digits (max.: 24) 2 When the number of decimal fraction digits is other than "0"

Number of digits (max.: 24) (Number of decimal fraction digits + 3)

(b) The number of digits of decimal fraction part that can be designated by +2 is from 0 to 7. However, the number of digits following the decimal point must be smaller than or equal to the total number of digits minus 3.

(c) The converted character string data is stored at the area starting from the device number as indicated below: 1) The sign "20H" (space) will be stored if the 32-bit floating decimal point type real number is positive, and the sign "2DH" (minus sign) will be stored if it is negative. 2) If the decimal fraction part of a 32-bit floating point real number data is out of the range of the digits of decimal fraction part, the lower decimal values will be rounded off.

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))

0. Decimal point format +1

8 (Total number of digits)

Total number of digits

2 (Number of digits in decimal fraction) +2

1.. 2 3

Rounded off Number of digits in decimal fraction

-1. 2 3 4 5 6

3. If the number of digits following the decimal point has been set at any value other than "0", "2E H " (.) will automatically be stored at the position before the first of the specified number of digits.
0. Decimal point format +1

8 (Total number of digits)

Total number of digits

2 (Number of digits in decimal fraction) +2

1.. 2 3

Number of digits in decimal fraction

-1 . 2 3 4 5 6

If the number of digits in the decimal fraction part is "0", the ASCII code "2EH" (.) will not be stored.

+1 · +1 · Automatically added

Page 588 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 588 · click to enlarge
Page 588

ESTR(P)

4. If the total number of digits, excluding the sign, the decimal point and the decimal fraction part, is greater than the integer part of the 32-bit floating point type real number data, "20 H (space)" will be stored between the sign and the integer part.
Mitsubishi Electronics QCPU — ESTR(P) diagram (page 588)
Fig. 921
5. The value "00 H " is automatically stored at the end of the converted character string.
Mitsubishi Electronics QCPU — ESTR(P) diagram (page 588)
Fig. 922

ASCII code for the (total number of digits -1)th digit

ASCII code for decimal point (.) (2EH)

ASCII code for the (total number of digits -2)th digit

ASCII code for the (total number of digits -5)th digit

ASCII code for the (total number of digits -4)th digit

ASCII code for the (total number of digits -7)th digit

ASCII code for the (total number of digits -6)th digit

ASCII code for the (total number of digits -11)th digit

ASCII code for the (total number of digits -10)th digit

For example, in a case where there are 12 digits is total, with 4 digits in the decimal fraction

portion, and the value designated is 12.34567, the operation results would be stored in the

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 588)
Fig. 923

20H (space) 2EH (.) 33H (3) 36H (6) 2CH (+) 31H (1)

2DH (-) 31H (1) 32H (2) 34H (4) 45H (E) 30H (0)

1. 2 3 4 6 E 0 1
Page 589 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 589 · click to enlarge
Page 589

ESTR(P)

(a) The total number of digits that can be designated by +1 is as shown below: When the number of decimal fraction digits is "0"

Number of digits (max.: 24) 2 When the number of decimal fraction digits is other than "0"

Number of digits (max.: 24) (Number of decimal fraction digits + 7)

(b) The number of digits of dicimal fraction part that can be designated by +2 is from 0 to 7. However, the number of digits in the decimal fraction portion should be equal to or less than the total number of digits minus 7.

(c) The converted character string data is stored at the area starting from the device number as indicated below: 1) If the 32-bit floating decimal point type real number data is positive in value, the sign before the integer will be stored as ASCII code "20H" (space), and if it is a negative

value, the sign will be stored as "2DH" ( ). 2) The integer portion is fixed to one digit. 20H (space) will be stored between the integer and the sign.

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 589)
Fig. 924
3. If the decimal fraction part of the 32-bit floating point type real number is out of the range of the digits of the decimal fraction part, the lower decimal values will be rounded off.
Mitsubishi Electronics QCPU — ESTR(P) diagram (page 589)
Fig. 925

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))

4. If the number of digits of the decimal fraction part has been set at any value other than "0", "2E H " (.) will automatically be stored at the position before the first of the specified number of digits.

If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2EH" (.) will not be stored.

Page 590 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 590 · click to enlarge
Page 590

ESTR(P)

5. The ASCII code "2C H " (+) will be stored as the sign for the exponent portion of the

value if the exponent is positive in value, and the code "2DH" ( ) will be stored if the exponent is a negative value.

6. The exponent portion is fixed at 2 digits. If the exponent portion is only 1 digit, the ASCII code "30 H " (0) will be stored between the sign and the exponent portion of the number.
Mitsubishi Electronics QCPU — ESTR(P) diagram (page 590)
Fig. 926
7. The value "00 H " is automatically stored at the end of the converted character string.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value is not within the range indicated below: (Error code: 4100)

0, 2-126 | | 2128

  • The format designated by was neither 0 nor 1. (Error code: 4100)
  • The total number of digits designated by + 1 is outside the ranges shown below.

(Error code: 4100) When using decimal point format When the number of decimal fraction digits is "0"

Total number of digits 2 When the number of decimal fraction digits is other than "0"

Total number of digits (Number of decimal fraction digits + 3) When using exponent format When the number of decimal fraction digits is "0"

Total number of digits 6 When the number of decimal fraction digits is other than "0"

Total number of digits (Number of decimal fraction digits + 7)

  • The number of digits designated for the decimal fraction portion of the value by +2 was outside the ranges indicated below: (Error code: 4100) When using the decimal point format

Number of decimal fraction digits (Total number of digits 3) When using the exponent format

Number of decimal fraction digits (Total number of digits 7)

  • The value whose total digits exceeds "24" is specified. (Error code: 4100)
  • The device range to store the character string designated by exceeds the relevant device range. (Error code: 4101)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)
Page 591 of the Mitsubishi Electronics QCPU user manual — ESTR(P)
Page 591 · click to enlarge
Page 591

ESTR(P)

Program Example

(1) The following program converts the 32-bit floating point type real number data which had

been stored at R0 and R1 in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D0 when X0 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 591)
Fig. 927

20H (space) 2EH (.) 33H (3) 00H

20H (space) 30H (0) 30H (0) 33H (3)

Total number of digits Total number of digits Number of digits in decimal fraction

. 0 32 7 4 5 7 0 R0 Space

(2) The following program converts the 32-bit floating decimal point type real number data which

had been stored at D0 and D1 in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D10 when X1C goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — ESTR(P) diagram (page 591)
Fig. 928

7.11 Character string processing instructions 7.11.11 Conversion from floating decimal point to character string data (ESTR(P))

Total number of digits Number of digits in decimal fraction

3 2 7 4 6 E 0 - 2

20H (space) 2EH (.) 37H (7) 36H (6) 2DH (-) 32H (2)

33H (3) 32H (2) 34H (4)

Instruction Device Step · [Operation] · Instruction Device Step

Page 592 of the Mitsubishi Electronics QCPU user manual — S D
Page 592 · click to enlarge
Page 592

EVAL(P)

7.11.12 Conversion from character string to floating decimal point data (EVAL(P))

EVAL(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 592)
Fig. 929

: Character string data to be converted to 32-bit floating decimal point real number data or head number of the

devices where the character string data is stored (character string)

: Head number of the devices where the converted 32-bit floating decimal point real number data will be stored

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 592)
Fig. 930

(1) Converts character string stored in the area starting from the device number designated by

to 32-bit floating point type real number, and stores result at device designated by .

S D

(2) The designated character string can be converted to 32-bit floating point type real number

data either in the decimal point format or the exponent format.

Mitsubishi Electronics QCPU — S D diagram (page 592)
Fig. 931

ASCII code for the sign ASCII code for the 1st character

(a) When using decimal point format

Mitsubishi Electronics QCPU — S D diagram (page 592)
Fig. 932

2DH (-) 31H (1) 2EH (.) 30H (0) +2 37H (7) 38H (8) 31H (1) 32H (2) +3

(real number)

Page 593 of the Mitsubishi Electronics QCPU user manual — +2 33 H (3) 35 H (5) (.)
Page 593 · click to enlarge
Page 593

EVAL(P)

(b) When using exponent format

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 593)
Fig. 933

2DH (-) 20H (space) 31H (1) 2EH (.)

+2 33H (3) 32H (2) 30H (0) 31H (1) +3

45H (E) 2BH (+) 31H (1)

1 1 . 3 2 0 1 E + 1 0

(3) Excluding the sign, decimal point, and exponent portion of the result, 6 digits of the character

string designated by to be converted to a 32-bit floating decimal point type real number will be effective; the 7th digit on later digit will be cut from the result.

(a) When using decimal point format

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 593)
Fig. 934

2DH (-) 20H (space) 20H (space) 31H (1)

+2 2EH (.) 33H (3) 30H (0) 31H (1) +3

35H (5) 36H (6) 38H (8) +4 +5 31H (1) +6 32H (2) 00H

1.. 3 0 1 5 6 8 1 2

(b) When using exponent format

S

2DH (-) 20H (space) 31H (1) 2EH

7.11 Character string processing instructions 7.11.12 Conversion from character string to floating decimal point data (EVAL(P))

+2 33 H (3) 35 H (5) (.)

D D

30 H (0) 33 H (3) +3

-1 . 350 34 E2

+4 +5 45H (E) +6 2DH (-) 30H (0) 32H (2) 00H

34H (4) 31H (1) 32H (2)

32-bit floating-point real number

. 3 5 0 3 4 1 2 E 0 - 2 1 -

(4) In the decimal point format, if "2BH" (+) is specified for the sign or if the designation of sign is

omitted, conversion is made assuming a positive value.

If "2DH" (-) is specified for the sign, the character string is converted assuming a negative value.

(5) In the exponent format, if "2BH" (+) is specified for the sign in the exponent portion or if the

designation of sign is omitted, conversion is made assuming a positive value.

If "2DH" (-) is specified for the sign in the exponent portion, the character string is converted assuming a negative value.

Show 5 more labels / short text on this page
b15 b8b7 b0 · +1 · +1 · +7 · These are cut
Page 594 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 594 · click to enlarge
Page 594

EVAL(P)

(6) In a case where the ASCII code "20H (space)" or "30H" (0) exists between numbers not

including the initial zero in a character string specified by , it will be ignored when the conversion is done.

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 594)
Fig. 935

2DH (-) 20H (space) 30H (0) 31H (1)

+2 2EH (.) 32H (2) 33H (3) 31H (1) +3

(7) In a case where the ASCII code "30H (0) " exists between the character "E" and a number in

an exponent format character string, the "30H" would be ignored when the conversion is performed.

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 594)
Fig. 936

2DH (-) 20H (space) 31H (1) 2EH (.) 30H (0) 34H (4) 35H (5) 33H (3) 45H (E) 2BH (+) 30H (0) 33H (3) 00H

-1 . 0 4 5 3 E + 3

. 0 4 5 3 E + 0 3 1 -

(8) If the "20H" (space) code is contained in the character string, the code is ignored in the

conversion.

(9) Up to 24 characters can be set for a character string.

The codes "20H" (space) and "30H" (0) contained in the character string are also counted as a character.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The integer portion or the decimal fraction portion contains a character other than one in

the range of from "30H" (0) to "39H" (9). (Error code: 4100)

  • There are two or more occurrences of the character "2E H " (.) in the character string
designated by . (Error code4100)
  • The exponent portion contains the code (character) other than "45 H "(E), "2B H "(+),

"45H"(E) or "2DH"( ), or the string contains more than one exponent portion.

(Error code4100)
  • Data after conversion is not within the following range. (Error code: 4100)

0, 2-126 |data after conversion| 2128

  • The code "00 H " does not appear in the range from to the relevant device.
(Error code4101)
  • The number of characters in the character string following is either 0 or more than 24.
(Error code4100)
Page 595 of the Mitsubishi Electronics QCPU user manual — EVAL(P)
Page 595 · click to enlarge
Page 595

EVAL(P)

Program Example

(1) The following program converts the character string stored in the area starting from R0 to a

32-bit floating decimal point type real number, and stores the result at D0 and D1 when X20 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 595)
Fig. 937
Mitsubishi Electronics QCPU — EVAL(P) diagram (page 595)
Fig. 938

2DH (-) 20H (space) 30H (0) 31H (1)

R2 2EH (.) 32H (2) 33H (3) 34H (4) R3

35H (5) 32H (2) 31H (1) R4 R5 00H

1. 2 3 4 5 2 1 0 -

(2) The following program converts the character string stored in the area starting from D10 to a

32-bit floating decimal point type real number, and stores the result at D100 and D101 when X20 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — EVAL(P) diagram (page 595)
Fig. 939

7.11 Character string processing instructions 7.11.12 Conversion from character string to floating decimal point data (EVAL(P))

20H (space) 20H (space) 31H (1) 2EH (.)

D12 32H (2) 33H (3) 34H (4) 35H (5) D13

45H (E) 2DH (-) 30H (0) D14 D15 32H (2) D16 00

1. 2 3 4 5 E 0 - 2

[Operation] · Instruction Device Step

Page 596 of the Mitsubishi Electronics QCPU user manual — S S
Page 596 · click to enlarge
Page 596

ASC(P)

7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))

ASC(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — ASC(P) diagram (page 596)
Fig. 940

: Head number of the devices where BIN data to be converted to a character string is stored (BIN 16 bits)

: Head number of the devices where the converted character string will be stored (character string)

nNumber of characters to be stored (BIN 16 bits)
Mitsubishi Electronics QCPU — ASC(P) diagram (page 596)
Fig. 941

(1) Converts the BIN 16-bit data stored in the area starting from the device designated by to ASCII by treating the BIN data in hexadecimal representation. Then, stores the converted

data into the area starting from the device designated by , for the number of characters specified by n.

b15 b12 b8 b11 b7 b4 b0 b3 S D S D

4th digit 3rd digit 2nd digit 1st digit 4th digit 3rd digit 2nd digit 1st digit

ASCII code for the 1st digit ASCII code for the 2nd digit

ASCII code for the 3rd digit ASCII code for the 4th digit

D D

ASCII code for the 1st digit ASCII code for the 2nd digit

Number of characters designated by n

ASCII code for the 3rd digit ASCII code for the 4th digit

4th digit 3rd digit 2nd digit 1st digit

ASCII code for the 1st digit ASCII code for the 2nd digit

b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0 D

S S

1H 2H 3H 4H +1

34H (4) 33H (3) 32H (2) 31H (1) 38H (8) 37H (7) 36H (6) 35H (5) 44H (D) 46H (F) 42H (B) 00H

5H 6H 7H 8H FH EH DH CH AH 9H BH 6H

When "15" is set for n

43H (C) 45H (E) 36H (6) 39H (9)

Show 10 more labels / short text on this page
b15 b8b7 b0 · +1 · +1 +2 +3 · BIN data · +1 +2 +3 · +2 · +3 · +4 +5 · +6 · +7
Page 597 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 597 · click to enlarge
Page 597

ASC(P)

(2) The use of n to set the number of characters causes the BIN data range designated by

and the character string storage device range designated by to be set automatically.

(3) Processing will be performed accurately even if the device range where BIN data to be

converted is being stored overlaps with the device range where the converted ASCII data will be stored.

Mitsubishi Electronics QCPU — ASC(P) diagram (page 597)
Fig. 942

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3

D11 31H 32H 33H 34H 35H 36H 37H 38H 41H 39H

AH 9H 8H 7H 6H 5H 4H 3H 2H 1H

(4) If an odd number of characters has been designated by n, the ASCII code "00H" will be

automatically stored in the upper 8 bits of the final device in the range where the character string is to be stored.

When 5 characters have been designated by n.

Mitsubishi Electronics QCPU — ASC(P) diagram (page 597)
Fig. 943

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3 S

42H(B) 32H(2) 41H(A) 31H(1) 42H(B) 00H B 1 A 2 B +1

(5) If the number of characters designated by n is "0", conversion processing will not be

conducted.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Mitsubishi Electronics QCPU — Operation Error diagram (page 597)
Fig. 944 · Operation Error

7.11 Character string processing instructions 7.11.13 Conversion from hexadecimal BIN to ASCII (ASC(P))

  • The range for the number of characters designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

  • The range for the number of characters designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

(1) The following program reads the BIN data being stored at D0 as hexadecimal values,

converts them to a character string, and stores the result from D10 to D14 when X0 is turned ON.

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3

2H 2H 0H 5H AH FH CH 7H 2H 9H

39H (9) 32H (2) 37H (7) 43H (C) 46H (F) 41H (A) 35H (5) 30H (0) 32H (2) 32H (2)

Page 598 of the Mitsubishi Electronics QCPU user manual — HEX(P)
Page 598 · click to enlarge
Page 598

HEX(P)

7.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))

HEX(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — HEX(P) diagram (page 598)
Fig. 945

: Head number of the devices where a character string to be converted to BIN data is stored (character string)

: Head number of the devices where the converted BIN data will be stored (BIN 16 bits)

nNumber of characters to be stored (BIN 16 bits)
Mitsubishi Electronics QCPU — HEX(P) diagram (page 598)
Fig. 946

(1) Converts the number of characters of hexadecimal ASCII data designated by n stored in the

area starting from the device number designated by into BIN values and stores them in

Mitsubishi Electronics QCPU — HEX(P) diagram (page 598)
Fig. 947

the area starting from the device number designated by .

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3

ASCII code for the 1th digit ASCII code for the 2nd digit

ASCII code for the 3th digit ASCII code for the 4nd digit

ASCII code for the 1rd digit ASCII code for the 2st digit

ASCII code for the 3rd digit ASCII code for the 4st digit

For example, if the number 9 has been designated by n, the operation would be as follows:

Mitsubishi Electronics QCPU — HEX(P) diagram (page 598)
Fig. 948

34H (4) 33H (3) 32H (2) 31H (1) 36H (6) 42H (B) 39H (9) 41H (A) 38H (8) 45H (E) 0H 0H EH AH 9H BH 6H 1H 2H 3H 4H

Code "38H" remains unchanged since the designated number of characters is "9".

(2) When the number of characters is specified for n, the range of characters designated by

as well as the device range designated by in which the BIN data will be stored are automatically decided.

Page 599 of the Mitsubishi Electronics QCPU user manual — D1 D2 D3 D4
Page 599 · click to enlarge
Page 599

HEX(P)

(3) Accurate processing will be conducted even in cases where the range of devices where the

ASCII code to be converted is being stored overlaps with the range of devices that will store the converted BIN data.

Mitsubishi Electronics QCPU — HEX(P) diagram (page 599)
Fig. 949

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3

D11 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 41H (A) 39H (9)

7H 6H 5H 4H 3H 2H 1H

0 0H AH 9H 8H

(4) If the number of characters designated by n is not divisible by 4, "0" will be automatically

stored after the designated number of characters in the final device number of the devices which are storing the converted BIN values.

Mitsubishi Electronics QCPU — HEX(P) diagram (page 599)
Fig. 950

b15 b12 b8 b11 b7 b4 b0 b3 b15 b8b7 b0

+1 42H (B) 32H (2) 41H (A) 31H (1) 38H (8) 43H (C) 0 0 0 8

Value "0" is automatically stored in the area outside the range of the designated number of characters.

(5) If the number of characters designated by n is "0", conversion processing will not be

conducted.

(6) ASCII code that can be designated by includes from "30H" to "39H" and from "41H" to "46H".

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Characters outside the hexadecimal character string (that is, characters that are not in the

range of from "30H" to "39H", or from "41H" to "46H") have been set by . (Error code: 4100)

7.11 Character string processing instructions 7.11.14 Conversion from ASCII to hexadecimal BIN (HEX(P))

  • The range for the number of characters designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

  • The range for the number of characters designated by n following the device number

designated by exceeds the relevant device range. (Error code: 4101)

  • The number of characters designated by n is a negative value. (Error code: 4101)

Program Example

(1) The following program converts the character string being stored from D0 to D4 to BIN data

and stores the result from D10 to D14 when X0 goes ON.

[Ladder Mode] [List Mode]

b15 b8b7 b0 b15 b12 b8 b11 b7 b4 b0 b3

36H (6) 42H (B) 35H (5) 32H (2) 41H (A) 37H (7) 31H (1) 33H (3) 39H (9) 37H (7)

0H 0H 9H 7H 3H 1H 7H AH 2H 5H BH 6H

D1 D2 D3 D4

Instruction Device Step · [Operation]

Page 600 of the Mitsubishi Electronics QCPU user manual — S D
Page 600 · click to enlarge
Page 600

RIGHT(P),LEFT(P)

7.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))

RIGHT(P),LEFT(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — RIGHT(P),LEFT(P) diagram (page 600)
Fig. 951

: Character string or head number of the devices where the character string is stored (character string)

: Head number of the devices where the character string consisting of n characters starting from the right or

nNumber of characters to be extracted (BIN 16 bits)
Mitsubishi Electronics QCPU — RIGHT(P),LEFT(P) diagram (page 600)
Fig. 952

RIGHT

(1) Stores n number of characters from the right side of the character string (the end of the

character string) being stored in devices starting from that whose number is designated by

, in devices starting from that whose number is designated by .

S D

b15 b8b7 b0 S

b15 b8b7 b0 D D

ASCII code for the 1st character ASCII code for the 2nd character

ASCII code for the 3rd character ASCII code for the 4th character

ASCII code for the (last - n + 1)th character ASCII code for the (last - n + 2)th character

ASCII code for the (last - n + 3)th character ASCII code for the (last - n + 4)th character

ASCII code for the (last - n + 1)th character ASCII code for the (last - n + 2)th character

ASCII code for the (last - 2)th character ASCII code for the (last - 1)th character

ASCII code for the (last - n + 3)th character ASCII code for the (last - n + 4)th character

ASCII code for the last character 00H

ASCII code for the (last - 2)th character ASCII code for the (last - 1)th character

ASCII code for the last character 00H

Mitsubishi Electronics QCPU — S D diagram (page 600)
Fig. 953

b15 b8b7 b0 S

41H (A) 42H (B) 43H (C) 44H (D) +1

31H (1) 32H (2) 33H (3) 34H (4) 45H (E) 46H (F) 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 00H

+1 · +1

Page 601 of the Mitsubishi Electronics QCPU user manual — "ABCDEF12345"
Page 601 · click to enlarge
Page 601

RIGHT(P),LEFT(P)

(2) The NULL code (00H) indicating the end of the character string is automatically appended at

the end of the character string. Refer to 3.2.5 for the format of the character string data.

(3) If the number of characters designated by n is "0", the NULL code (00H) will be stored at .

LEFT

(1) Stores n number of characters from the left side of the character string (the beginning of the

character string) being stored in devices starting from that whose number is designated by

, in devices starting from that whose number designated by .

S D

S S D

ASCII code for the 1st character ASCII code for the 2nd character

ASCII code for the 3rd character ASCII code for the 4th character

ASCII code for the 1st character ASCII code for the 2nd character

ASCII code for the 3rd character ASCII code for the 4th character

ASCII code for the (n - 2)th character ASCII code for the (n - 1)th character

ASCII code for the (n - 2)th character ASCII code for the (n - 1)th character

ASCII code for the nth character ASCII code for the (n + 1)th character

ASCII code for the nth character 00H

ASCII code for the last character 00H

b15 b8b7 b0 S

41H (A) 42 H (B) 43H (C) 44 H (D) 45H (E) 46 H (F) 31H (1) 32 H (2) 33H (3) 34 H (4) 35H (5) 00H

D D D

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)

+2 +3 +4 +5

ASCII code for the 7th character "ABCDEF1" +3 31H (1) 00H

"ABCDEF12345"

(2) The NULL code (00H) indicating the end of the character string is automatically added to the

end of the character string.

Mitsubishi Electronics QCPU — "ABCDEF12345" diagram (page 601)
Fig. 954

Refer to 3.2.5 for the format of the character string data.

7.11 Character string processing instructions 7.11.15 Extracting character string data from the right or left (RIGHT(P),LEFT(P))

(3) If the number of characters designated by n is "0", the NULL code (00H) will be stored at .

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The value of n exceeds the number of characters designated by . (Error code: 4101)
  • The range of n characters from exceeds the relevant device. (Error code: 4101)
Show 8 more labels / short text on this page
b15 b8b7 b0 · b15 b8b7 b0 · +1 · +1 · When n 7 · b15 b8b7 b0 · +1 · +1
Page 602 of the Mitsubishi Electronics QCPU user manual — RIGHT(P),LEFT(P)
Page 602 · click to enlarge
Page 602

RIGHT(P),LEFT(P)

Program Example

(1) The following program stores 4 characters of data from the rightmost of the character string

stored in the area starting from R0, and stores it into the area starting from D0 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — RIGHT(P),LEFT(P) diagram (page 602)
Fig. 955

42H (B) 41H (A) 32H (2) 31H (1) D1

30H (0) 45H (E) 46H (F) 41H (A) 30H (0) 45H (E) 46H (F) 41H (A) 00H

(2) The following program stores the number of characters corresponding to the value being

stored in D0 from the left of the character string data being stored at D100 to the area starting from R10 when X1C is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — RIGHT(P),LEFT(P) diagram (page 602)
Fig. 956

53H (S) 51 H (Q) 4FH (O) 4EH (N) R11

53H (S) 51 H (Q) 4FH (O) 4EH (N) 48H (H) 44 H (D) 41H (A) 42 H (B) 00H

00H 48H (H) 44 H (D) R13

Show 4 more labels / short text on this page
Instruction Device Step · [Operation] · Instruction Device Step · [Operation]
Page 603 of the Mitsubishi Electronics QCPU user manual — MIDR(P),MIDW(P)
Page 603 · click to enlarge
Page 603

MIDR(P),MIDW(P)

7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))

MIDR(P),MIDW(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — MIDR(P),MIDW(P) diagram (page 603)
Fig. 957

: Character string or head number of the devices where the character string is stored (character string)

: Head number of the devices where a character string data obtained as the result of operation will be stored

: Head number of the devices where the location of the first character and the number of characters will be

stored (BIN 16 bits)

Mitsubishi Electronics QCPU — MIDR(P),MIDW(P) diagram (page 603)
Fig. 958

7.11 Character string processing instructions 7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))

(1) Extracts the character string data of +1 characters, starting from the position designated

by , counted from the left end of the character string data designated by , and stores

the extracted data into the area starting from the device designated by .

41H (A) 42H (B) 43H (C) 44H (D) +1

45 H (E) 46H (F) 47 H (G) 48H (H) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H

+2 49 H (I) 00H Position of the 5th character

(character string)

Page 604 of the Mitsubishi Electronics QCPU user manual — D S2
Page 604 · click to enlarge
Page 604

MIDR(P),MIDW(P)

(2) The NULL code (00H) indicating the end of the character string is automatically added to the

end of the character string.

Refer to 3.2.5 for the format of the character string data.

(3) No processing will be conducted if the number of characters designated by +1 is "0".

(4) If the number of characters designated by +1 is " 1", stores the data up to the final

character designated by starting from the device designated by .

Mitsubishi Electronics QCPU — MIDR(P),MIDW(P) diagram (page 604)
Fig. 959

41H (A) 42H (B) 43H (C) 44H (D) +1

45H (E) 46H (F) 47H (G) 48H (H) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H

+2 49H (I) 4AH (J) Position of the 5th character

MIDW

(1) Extracts the character string data of +1 characters, starting from the left end of the

character string data designated by , and stores the extracted data to the character string

data designated by in the area starting from the position designated by from the left end.

D S2

Mitsubishi Electronics QCPU — D S2 diagram (page 604)
Fig. 960

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (H)

30H (0) 31H (1) 32H (2) 33H (3)

34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 00H

Position counted from the left end of character string data designated by

41H (A) 42H (B) 30H (0) 31H (1) +2 32H (2) 33H (3)

Number of characters counted from the left end of the character string data designated by

(2) The NULL code (00H) indicating the end of the character string is automatically added to the

end of the character string.

Refer to 3.2.5 for the format of the character string data.

(3) No processing will be conducted if the number of characters designated by +1 is "0".

Page 605 of the Mitsubishi Electronics QCPU user manual — S2 D
Page 605 · click to enlarge
Page 605

MIDR(P),MIDW(P)

(4) If the number of characters designated by +1 exceeds the final character from the

character string data designated by , data will be stored up to the final character.

Mitsubishi Electronics QCPU — MIDR(P),MIDW(P) diagram (page 605)
Fig. 961

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)

30H (0) 31H (1) 32H (2) 33H (3)

34H (4) 35H (5) 36H (6) 37H (7) 38H (8) 00H

Position counted from the left end of character string data designated by

41H (A) 42H (B) 43H (C) 44H (D) +2 30H (0) 31H (1)

Number of characters counted from the left end of character string data designated by

Characters "35H" (5) to "37H" (7) are not stored.

(5) If the number of characters designated by +1 is " 1", stores the data up to the final

character designated by to the area starting from the device designated by .

S1 D

41H (A) 42H (B) 43H (C) 44H (D) +2 45H (E) 46H (F)

S1

30H (0) 31H (1) 32H (2) 33H (3) 34H (4) 35H (5) 00H +2 +3

D

47 H (G) 48 H (H) +3

49 H (I) 4A H (J) +4

4B H (K) 00 H +5

"ABCDEFGHIJK"

After execution 2 1 +1

Position counted from the left end of character string data designated by

7.11 Character string processing instructions 7.11.16 Random selection from and replacement in character strings (MIDR(P),MIDW(P))

D

41H (A) 30H (0) 31H (1) 32H (2) 33H (3) 34H (4)

Number of characters counted from the left end of character string data designated by

+1 +2 +3 +4 +5

35H (5) 48H (H) 49H (I) 4AH (J)

4B H (K) 00 H

"A012345HIJK"

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of exceeds the number of characters designated by . (Error code: 4101)

S2 S1

  • The +1 number of characters from position exceeds the device range.

S2 D D

(Error code4101)
  • The + 0 value is 0. (Error code: 4101)
  • "00 H " does not exist in the specified devices that follow the device specified for . (Error code: 4101)
  • The value of exceeds the number of characters designated by . (Error code: 4101)

S2 D

Show 9 more labels / short text on this page
Before execution · b15 b8b7 b0 · b15 b8b7 b0 · +1 · +1 · "012345" · b15 b8b7 b0 · For MIDR instruction · For MIDW instruction
Page 606 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 606 · click to enlarge
Page 606

MIDR(P),MIDW(P)

  • The +1 value exceeds the number of characters for . (Error code: 4101)

S2 S1

  • The + 0 value is 0. (Error code: 4101)
  • "00 H " does not exist in the specified devices that follow the device specified for . (Error code: 4101)

Program Example

(1) The following program stores the 3rd character through the 6th character from the left of the

character string stored in the area starting from D10 at devices starting from D0 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 606)
Fig. 962 · Program Example

42 H (B) 41H (A) 32 H (2) 31H (1) 33 H (3) 46H (E) D12 D13

32 H (2) 31H (1) 33 H (3) 46H (E) D2 00 H

(2) The following program stores 4 characters of the character string data stored in the area

starting from D0 into the area starting from the 3rd character from the left of the character string data in the area starting from D100 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 606)
Fig. 963 · Program Example

32H (2) 31H (3) 46H (F) 45H (E) 30H (0) 33H (3) D2 D3

55H (U) 53H (S) 43H (C) 59H (Y)

5AH (Z) 31H (1) 30H (0) 42H (B) 00H D103 D104

55H (U) 53H (S) 32H (2) 31H (1)

46H (F) 45H (E) 30H (0) 42H (B) 00H D103 D104

Show 4 more labels / short text on this page
Instruction Device Step · [Operation] · Instruction Device Step · [Operation]
Page 607 of the Mitsubishi Electronics QCPU user manual — "EFGH"
Page 607 · click to enlarge
Page 607

INSTR(P)

7.11.17 Character string search (INSTR(P))

INSTR(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — INSTR(P) diagram (page 607)
Fig. 964

: Character string to be searched or head number of the devices where the character string to be searched is

: Character string in which a search is performed or head number of the devices where the character string is

: Head number of the devices where the result of search will be stored (BIN 16 bits)

nLocation to start the search (BIN 16 bits)

R, ZR J \

Other Bit Word Bit Word K, H $

––

––

7.11 Character string processing instructions 7.11.17 Character string search (INSTR(P))

Function

(1) Searches for the character string data designated by in the area starting from the nth

character from the left of the character string data designated by and stores the result of

search at the device designated by .

As the result of search, the location of match, counted in the number of characters from the

first character of the character string data designated by , is stored.

S1 S2

Searches from the 3rd character +1

41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 47H (G) 48H (H) 49H (I) 4AH (J) 4BH (K) 00H

45H (E) 46H (F) 47H (G) 48H (H) +2 00H

S1 S1

+2 +3 +4 +5

5th character from the first character

"EFGH"

"ABCDEFGHIJK"

5 Stores the position of the found character, counted by the number of characters from the 1st character in the character string data designated by .

(2) If there is no matching character string data, stores "0" at .

Show 13 more labels / short text on this page
stored (character string) · stored (character string) · Setting · Internal Devices · Constants · Data · U \G Zn · –– –– –– · n –– –– · When n 3 · b15 b8b7 b0 · b15 b8b7 b0 · +1
Page 608 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 608 · click to enlarge
Page 608

INSTR(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of n exceeds the number of characters for . (Error code: 4100)
  • 00 H (NULL) does not exist within the corresponding device range after the device

designated by , . (Error code: 4100)

S1 S2

  • The value of n is negative number or “0”. (Error code: 4100)

Program Example

(1) The following program searches from the 5th character from the left of the character string

data stored in devices starting from R0 for the character string data in devices starting from D0, and stores the results at D100 when X0 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 608)
Fig. 965 · Program Example

Not searched since the search start position is 5

43 H (C) 49H (I) 32 H (2) 33H (3) 31 H (1) 32H (2) 43 H (C) 49H (I) 4DH (M) 00H

43H (C) 49H (I) 32H (2) 33H (3) D2 00H

(2) The following program searches from the 3rd character from the left of the character string

data being stored in devices starting from D0 for the character string data "AB", and stores the results of the search at D100 when X1C goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 608)
Fig. 966 · Program Example

31H (1) 32H (2) 33H (3) 34H (4) 41H (A) 42H (B) 35H (5) 36H (6) 41H (A) 42H (B) 00H

Show 4 more labels / short text on this page
Instruction Device Step · [Operation] · Instruction Device Step · [Operation]
Page 609 of the Mitsubishi Electronics QCPU user manual — D D
Page 609 · click to enlarge
Page 609

STRINS(P)

7.11.18 Insertion of character string (STRINS(P))

STRINS(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — STRINS(P) diagram (page 609)
Fig. 967

: Character string to be inserted or head number (character string) of the devices where insert character

: Head number (character string) of the devices where insert character strings are stored

nInsert position (Setting range: 1 n 16383) (BIN 16 bits)

Other Bit Word Bit Word K, H $

R, ZR J \

––

––

n –– –– ––

Function

7.11 Character string processing instructions 7.11.18 Insertion of character string (STRINS(P))

(1) This instruction inserts the character string data specified by to the nth device (insert

position) from the initial character string data stored in the devices specified by .

Insert positionn 3

Shifts the third character and up by the number of characters specified by to the left and inserts the character string data specified by .

30 H (0) 31H (1) 32 H (2) 33H (3) +2 34 H (4) 00H

b15 b8b7 b0 D

S S

41H (A) 42H (B) 30H (0) 31H (1) 32H (2) 33H (3) 34H (4) 43H (C) 44H (D) 45H (E) 47H (G) 00H 66H (f)

+2 +3 +4 +5

( +1) ( +2)

D

41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 47H (G) 48H (H)

46H (F) 48H (H) 65H (e)

Third character insertion position

+2 +3 +4 +5

00 H

The character data stored after +4 will be written over in accordance with the number of characters to be inserted.

62H (b) 64H (d) 66H (f)

61H (a) 63H (c) 65H (e)

(2) This instruction stores the NULL code (00H) into the device (1 word) that positions after the

last device where the character string data are stored, if the character string ( + ) value is even after the insertion.

S D

(3) This instruction stores the NULL code (00H) into the last device (high 8 bits) where the

character string data are stored, if the character string ( + ) value is odd after the insertion.

S D

(4) This instruction links the device, where the character string data are stored, specified by

with the last device specified by , if n is specified by the number of devices specified by plus one.

D D

Show 12 more labels / short text on this page
Universal · strings are stored · Internal Devices · Constants · Setting · U \G Zn · Data · b15 b8b7 b0 · +1 · +1 · b15 b8b7 b0 · +1
Page 610 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 610 · click to enlarge
Page 610

STRINS(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The number of characters in the devices specified by , , or the devices specified by

S D

( + ) after the insertion exceeds 16383 characters. (Error code: 4100)

S D

  • The value specified by n is not within the specified range. (1 n 16383) (Error code: 4100)
  • The value specified by n exceeds the number of the devices specified by plus one. (Error code: 4100)
  • The devices, that store character strings, specified by overlaps with even one of the

devices specified by . (Error code: 4101)

  • The range of the devices specified by ( + ) in which character strings data have been inserted exceeds the specified device range. (Error code: 4101)

S D

  • The NULL code (00 H ) does not exist within the specified device range after the device

specified by or . (Error code: 4101)

S D

  • The range of the devices specified by ( + ) in which character strings data have been

S D

inserted overlaps with the range of the devices specified by that store the character string data. (Error code: 4101)

Program Example

(1) The following program inserts the character string data stored in the device D0 and up to the

fourth device from the initial character string data stored in D20 and up, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 610)
Fig. 968 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 610)
Fig. 969 · Program Example

D0 35 H (5) 38H (8) D1 34 H (4) 00H D20 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)

D20 character string Inserted between"O"and"G" Fourth character from the

P R O G R A M A B C D

50H (P) 52H (R) 4FH (O) 35H (5) 38H (8) 34H (4) 47H (G) 52H (R)

42H (B) 44H (D) 41H (A) 43

P R O 5 8 4 G R A M A B C D

Step Instruction Device · [Operation]

Page 611 of the Mitsubishi Electronics QCPU user manual — 00 H 00 H 00 H
Page 611 · click to enlarge
Page 611

STRDEL(P)

7.11.19 Deletion of character string (STRDEL(P))

STRDEL(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — STRDEL(P) diagram (page 611)
Fig. 970

: Head number (character string) of the devices where character strings to be deleted are stored

n1Deletion start position (Setting range 1 n1 16383) (BIN 16 bits)
n2Number of characters to be deleted (Setting range 1 n2 16384-n1) (BIN 16 bits)

R, ZR J \

Other Bit Word Bit Word K, H

––

Function

7.11 Character string processing instructions 7.11.19 Deletion of character string (STRDEL(P))

(1) This instruction deletes n2 characters data in the devices specified by starting from the device (insert position) specified by n1.

Device position where character string data to be deleted: n1 3

Number of characters to be deleted: n2 5

Shifts the n1+n2th characters and up, which are stored after the devices whose characters

Stores the NULL code (00H) into

were deleted, by n2 characters to the right

the empty devices after shifting.

b15 b8b7 b0 D

b15 b8b7 b0 D

b15 b8b7 b0 D

41H (A) 42H (B) 43H (C) 44H (D) 45H (E) 46H (F) 48H (H) 47H (G) 4AH (J) 49H (I) 4CH (L) 4BH (K) 00H 31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)

Deletes n2 characters from

41 H (A) 42 H (B)

41H (A) 42H (B) 48H (H) 49H (I) 4AH (J) 4BH (K) 4CH (L) 00H

the n1th device and up +1

+2 +3 +4 +5

+2 +3 +4 +5

+2 +3 +4 +5

49H (I) 48H (H) 4AH (J) 4CH (L) 4BH (K) 00H 31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)

00 H 00 H 00 H

31H (1) 30H (0) 33H (3) 32H (2) 35H (5) 34H (4)

n1th character to be deleted

The characters of the devices other than the shifted devices do not change.

(2) This instruction stores the NULL code (00H) into the device (one word) that positions after

the last device that stores the character string data when the character string data specified

by is even, after the characters are deleted.

(3) This instruction stores the NULL code (00H) into the last device (high 8 bits) that stores the

character string data when the character string data specified by is odd, after the characters are deleted.

(4) This instruction shifts the characters stored in the devices that position after the deleted

devices by n2 characters to the right, and then stores the NULL code (00H) into the empty device.

Show 10 more labels / short text on this page
Universal · Setting · Internal Devices · Constants · U \G Zn · Data · n1 –– –– · n2 –– –– · +1 · +1
Page 612 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 612 · click to enlarge
Page 612

STRDEL(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The number of characters in the devices specified by exceeds 16383. (Error code: 4100)
  • The value specified by n1 is not within the range. (1 n1 16383) (Error code: 4100)
  • The value specified by n1 exceeds the number of characters in the devices specified by
. (Error code4100)
  • The value specified by n2 exceeds the number of characters in the devices starting from

n1th to the last devices position. (Error code: 4100)

  • The value specified by n2 is negative. (Error code: 4100)

Program Example

(1) The following program deletes the fourth to the seventh characters in the character string

data stored in the devices D0 and up, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 612)
Fig. 971 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 612)
Fig. 972 · Program Example

D0 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)

D0 50H (P) 52H (R) 4FH (O) 47H (G) 52H (R) 41H (A) 4DH (M) 41H (A) 42H (B) 43H (C) 00H 44H (D)

D0 50H (P) 52H (R) 4FH (O) 00H 44H (D) D1 D2

P R O G R A M A B C D

P R O G R A M A B C D

Step Instruction Device · [Operation]

Page 613 of the Mitsubishi Electronics QCPU user manual — EMOD(P)
Page 613 · click to enlarge
Page 613

EMOD(P)

7.11.20 Floating decimal point to BCD (EMOD(P))

EMOD(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — EMOD(P) diagram (page 613)
Fig. 973

: 32-bit floating decimal point real number data or head number of the devices where the floating decimal point

real number data is stored (real number)

Mitsubishi Electronics QCPU — EMOD(P) diagram (page 613)
Fig. 974

: Head number of the devices where the data after break down into BCD will be stored (BIN 16 bits)

*1:Available only in multiple Universal model QCPU

Mitsubishi Electronics QCPU — EMOD(P) diagram (page 613)
Fig. 975

7.11 Character string processing instructions 7.11.20 Floating decimal point to BCD (EMOD(P))

(1) Dissociate the 32-bit floating decimal point data designated by into BCD type floating

point format based on the decimal fraction digits specified by , and stores the result into

the area starting from the device designated by .

0 4270H 0325H 1 3 +4 +3 +2 +1 3 . 2 5 4 2 7

specifies the decimal fraction digits of the 32-bit floating decimal point real number data

of . In the example above, a decimal fraction digit is designated as shown below:

Page 614 of the Mitsubishi Electronics QCPU user manual — D D
Page 614 · click to enlarge
Page 614

EMOD(P)

Mitsubishi Electronics QCPU — EMOD(P) diagram (page 614)
Fig. 976
1. 5 4 3 2 1E + 2

(2) The 7th digit of the significant digits being stored at +1 and +2 is rounded off to make a 6-digit number.

D D

Mitsubishi Electronics QCPU — D D diagram (page 614)
Fig. 977

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The decimal fraction digit designated by is outside the range of from 0 to 7.
(Error code4100)
  • The device range designated by exceeds the range of the relevant device.
(Error code4101)
  • The 32-bit floating point real number specified by is outside the following range.

0, 2-126 | device | < 2128 (Error code: 4100)

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)
Page 615 of the Mitsubishi Electronics QCPU user manual — 9876540 H
Page 615 · click to enlarge
Page 615

EMOD(P)

Program Example

(1) The following program breaks down the 32-bit floating decimal point type real number data

stored at D0 and D1 into BCD according to the decimal fraction digits as designated by R10, and stores the results into the area starting from D100 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — EMOD(P) diagram (page 615)
Fig. 978

D104 D103 D102 D101 D100

0.987654

9876540 H

R10

Mitsubishi Electronics QCPU — 9876540 H diagram (page 615)
Fig. 979

7.11 Character string processing instructions 7.11.20 Floating decimal point to BCD (EMOD(P))

[Operation]

Page 616 of the Mitsubishi Electronics QCPU user manual — S1 S1
Page 616 · click to enlarge
Page 616

EREXP(P)

7.11.21 From BCD format data to floating decimal point (EREXP(P))

EREXP(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — EREXP(P) diagram (page 616)
Fig. 980

: Head number of the devices where BCD type floating point format data is stored (BIN 16 bits)

: The device where the converted 32-bit floating point real number data will be stored (real number)

*1:Available only in multiple Universal model QCPU

Function

(1) Converts the BCD type floating point data designated by to the 32-bit floating decimal

point real number data according to the decimal fraction digits specified by , and stores

the result into the area starting from the device designated by .

Mitsubishi Electronics QCPU — Function diagram (page 616)
Fig. 981 · Function

(2) The sign at and the sign for the exponent part at +3 is set at 0 for a positive value and at 1 for a negative value.

S1 S1

(3) 0 to 38 can be set for the BCD exponent of +4.

(4) 0 to 7 can be set for the decimal fraction digits of .

Mitsubishi Electronics QCPU — S1 S1 diagram (page 616)
Fig. 982

5423H 0321H 0 2 +4 +3 +2 +1

Page 617 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 617 · click to enlarge
Page 617

EREXP(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The format designated by was neither 0 nor 1. (Error code: 4100)
  • A value other than 0 to 9 exists in the each digit of + 1 and + 2. (Error code: 4100)

S1 S1

  • The format designation made by + 3 is something other than 0 or 1.
(Error code4100)
  • The exponent data designated by +4 is outside the range of from 0 to 38.
(Error code4100)
  • The decimal fraction digit designated by is outside the range of from 0 to 7.
(Error code4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program converts the BCD type floating decimal point format data being

stored in devices starting from D0 to 32-bit floating decimal point type real number data based on the decimal fraction digit being stored at D10, and stores the result at D100 and D101 when X0 goes ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 617)
Fig. 983 · Program Example

7.11 Character string processing instructions 7.11.21 From BCD format data to floating decimal point (EREXP(P))

Instruction Device Step

Page 618 of the Mitsubishi Electronics QCPU user manual — S D S D
Page 618 · click to enlarge
Page 618

SIN(P)

7.12 Special function instructions

7.12.1 SIN operation on floating-point data (Single precision) (SIN(P))

SIN(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — SIN(P) diagram (page 618)
Fig. 984

: Angle data of which the SIN (sine) value is obtained or head number of the devices where the angle data is

Mitsubishi Electronics QCPU — SIN(P) diagram (page 618)
Fig. 985

: Head number of the devices where the operation result will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Function

(1) Returns the SIN (sine) value of the angle designated at and stores the operation result in

the device number designated at .

S D S D

SIN ( )

32-bit floating-point real number

32-bit floating-point real number

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RAD and DEG instructions.

stored (real number) · +1 · +1

Page 619 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 619 · click to enlarge
Page 619

SIN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program conducts a SIN operation on the angles stored in the four BCD digits

from X20 to X2F and stores the results at D0 and D1 as 32-bit floating decimal point type real numbers.

Mitsubishi Electronics QCPU — Program Example diagram (page 619)
Fig. 986 · Program Example

Inputs an angle used for SIN operation ( ).

Converts the input angle into a 32-bit floating-point real number ( ). Converts the converted angle into a radian value ( ). Executes SIN operation using the converted radian value ( ).

7.12 Special function instructions 7.12.1 SIN operation on floating-point data (Single precision) (SIN(P))

[Operations involved when X20 to X2F designate a value of 150]

1 5 0 2 . 6 1 7 9 9 4 0 . 5 0

[Ladder Mode]

Page 620 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 620 · click to enlarge
Page 620

SIND(P)

7.12.2 SIN operation on floating-point data (Double precision) (SIND(P))

SIND(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — SIND(P) diagram (page 620)
Fig. 987

: Angle data of which the SIN (sine) value is obtained or head number of the devices where the angle data is

Mitsubishi Electronics QCPU — SIND(P) diagram (page 620)
Fig. 988

: Head number of the devices where the operation result will be stored (real number)

(1) The SIN (sine) value of the angle specified by is calculated and its result is stored into the

Mitsubishi Electronics QCPU — SIND(P) diagram (page 620)
Fig. 989

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RADD and DEGD instructions.

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

stored (real number)

Page 621 of the Mitsubishi Electronics QCPU user manual — SIND(P)
Page 621 · click to enlarge
Page 621

SIND(P)

Program Example

(1) The following program conducts a SIN operation on the angles stored in the four BCD digits

from X20 to X2F and stores the results at D0 to D3 as 64-bit floating decimal point type real numbers.

Mitsubishi Electronics QCPU — SIND(P) diagram (page 621)
Fig. 990

Inputs an angle used for SIN operation ( ).

Converts the input angle into a 64-bit floating-point real number ( ).

Converts the converted angle into a radian value ( ).

Executes SIN operation using the converted radian value ( )

[Operations involved when X20 to X2F designate a value of 150]

Mitsubishi Electronics QCPU — SIND(P) diagram (page 621)
Fig. 991

7.12 Special function instructions 7.12.2 SIN operation on floating-point data (Double precision) (SIND(P))

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 622 of the Mitsubishi Electronics QCPU user manual — Function
Page 622 · click to enlarge
Page 622

COS(P)

7.12.3 COS operation on floating-point data (Single precision) (COS(P))

COS(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — COS(P) diagram (page 622)
Fig. 992

: Angle data of which the COS (cosine) value is obtained or head number of the devices where the angle data

is stored (real number)

Mitsubishi Electronics QCPU — COS(P) diagram (page 622)
Fig. 993

: Head number of the devices where the operation result will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Function

(1) Returns the COS (cosine) value of the angle designated by and stores operation result at

Mitsubishi Electronics QCPU — Function diagram (page 622)
Fig. 994 · Function

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RAD and DEG instructions.

Page 623 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 623 · click to enlarge
Page 623

COS(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program performs a COS operation on the angle data designated by the 4

BCD digits from X20 to X2F, and stores results as 32-bit floating decimal point type real numbers at D0 and D1.

Mitsubishi Electronics QCPU — Program Example diagram (page 623)
Fig. 995 · Program Example

Inputs an angle used for COS operation ( ). Converts the input angle into a 32-bit floating-point real number ( ). Converts the converted angle into a radian value ( ).

Executes COS operation using the converted radian value ( ).

7.12 Special function instructions 7.12.3 COS operation on floating-point data (Single precision) (COS(P))

[Operations involved when X20 to X2F designate a value of 60]

6 0 1 . 0 4 7 1 9 8 0 . 5 0

[Ladder Mode]

Page 624 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 624 · click to enlarge
Page 624

COSD(P)

7.12.4 COS operation on floating-point data (Double precision) (COSD(P))

COSD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — COSD(P) diagram (page 624)
Fig. 996

: Angle data of which the COS (cosine) value is obtained or head number of the devices where the angle data

is stored (real number)

Mitsubishi Electronics QCPU — COSD(P) diagram (page 624)
Fig. 997

: Head number of the devices where the operation result will be stored (real number)

(1) The COS (cosine) value of the angle specified by is calculated and its result is stored into

Mitsubishi Electronics QCPU — COSD(P) diagram (page 624)
Fig. 998

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RADD and DEGD instructions.

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Page 625 of the Mitsubishi Electronics QCPU user manual — COSD(P)
Page 625 · click to enlarge
Page 625

COSD(P)

Program Example

(1) The following program performs a COS operation on the angle data designated by the 4

BCD digits from X20 to X2F, and stores results as 64-bit floating decimal point type real numbers at D0 to D3.

Mitsubishi Electronics QCPU — COSD(P) diagram (page 625)
Fig. 999

Inputs an angle used for COS operation ( ).

Converts the input angle into a 64-bit floating-point real number ( ).

Converts the converted angle into a radian value ( ).

Executes COS operation using the converted radian value ( ).

[Operations involved when X20 to X2F designate a value of 60]

Mitsubishi Electronics QCPU — COSD(P) diagram (page 625)
Fig. 1000

7.12 Special function instructions 7.12.4 COS operation on floating-point data (Double precision) (COSD(P))

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 626 of the Mitsubishi Electronics QCPU user manual — Function
Page 626 · click to enlarge
Page 626

TAN(P)

7.12.5 TAN operation on floating-point data (Single precision) (TAN(P))

TAN(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — TAN(P) diagram (page 626)
Fig. 1001

: Angle data of which the TAN (tangent) value is obtained or head number of the devices where the angle data

is stored (real number)

Mitsubishi Electronics QCPU — TAN(P) diagram (page 626)
Fig. 1002

: Head number of the devices where the operation result will be stored (real number)

*2: Applicable for the Universal model QCPU only.

Function

(1) Returns the tangent (TAN) value of the angle data designated by , and stores operation

Mitsubishi Electronics QCPU — Function diagram (page 626)
Fig. 1003 · Function

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RAD and DEG instructions.

(3) When angles designated by are /2 radians, or (3/2) radians, an operation error will be generated in the calculation of the radian value, so care must be taken to avoid such errors.

Page 627 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 627 · click to enlarge
Page 627

TAN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Operation results are outside the range shown below:

0, 2-126 |operation result| 2128

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

  • The value of the specified device is 0. *3

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program performs a TAN operation on the angle data set by the 4 BCD digits

from X20 to X2F, and stores the results as 32-bit floating decimal point type real numbers at D0 and D1.

Mitsubishi Electronics QCPU — Program Example diagram (page 627)
Fig. 1004 · Program Example

Inputs an angle used for TAN operation ( ). Converts the input angle into a 32-bit floating-point real number ( ).

7.12 Special function instructions 7.12.5 TAN operation on floating-point data (Single precision) (TAN(P))

Converts the converted angle into a radian value ( ).

Executes TAN operation using the converted radian value ( ).

[Operations involved when X20 to X2F designate a value of 135]

1 3 5 2 . 3 5 6 1 9 4 1 . 0

[Ladder Mode]

Page 628 of the Mitsubishi Electronics QCPU user manual — TAND(P)
Page 628 · click to enlarge
Page 628

TAND(P)

7.12.6 TAN operation on floating-point data (Double precision) (TAND(P))

TAND(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — TAND(P) diagram (page 628)
Fig. 1005

: Angle data of which the TAN (tangent) value is obtained or head number of the devices where the angle data

is stored (real number)

Mitsubishi Electronics QCPU — TAND(P) diagram (page 628)
Fig. 1006

: Head number of the devices where the operation result will be stored (real number)

(1) The TAN (tangent) value of the angle specified by is calculated and its result is stored into

Mitsubishi Electronics QCPU — TAND(P) diagram (page 628)
Fig. 1007

+3 S +2 S S +1 S +3 D +2 D D +1 D

(2) Angles designated at are set in radian units (degrees / 180).

For conversion between degrees and radian values, see the RADD and DEGD instructions.

(3) When angles designated by are /2 radians, or (3/2) radians, an operation error will be generated in the calculation of the radian value, so care must be taken to avoid such errors.

(4) When the operation results in -0 or an underflow, the result is processed as 0.

Page 629 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 629 · click to enlarge
Page 629

TAND(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140) 0,2 -1022 | value of specified device | < 2 1024
  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Program Example

(1) The following program performs a TAN operation on the angle data set by the 4 BCD digits

from X20 to X2F, and stores the results as 64-bit floating decimal point type real numbers at D0 to D3.

Mitsubishi Electronics QCPU — Program Example diagram (page 629)
Fig. 1008 · Program Example

Inputs an angle used for TAN operation ( ).

Converts the input angle into a 64-bit floating-point real number ( ).

Converts the converted angle into a radian value ( ). Executes TAN operation using the converted radian value ( ).

Mitsubishi Electronics QCPU — Program Example diagram (page 629)
Fig. 1009 · Program Example

7.12 Special function instructions 7.12.6 TAN operation on floating-point data (Double precision) (TAND(P))

[Operations involved when X20 to X2F designate a value of 135]

[Ladder Mode]

Page 630 of the Mitsubishi Electronics QCPU user manual — Function
Page 630 · click to enlarge
Page 630

ASIN(P)

7.12.7 SIN -1 operation on floating point data (Single precision) (ASIN(P))

ASIN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — ASIN(P) diagram (page 630)
Fig. 1010

: SIN value of which the SIN-1 (inverse sine) value is obtained or head number of the devices where the SIN

value is stored (real number)

Mitsubishi Electronics QCPU — ASIN(P) diagram (page 630)
Fig. 1011

: Head number of the devices where the operation result will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Function

(1) Returns the SIN-1 angle of the SIN value designated by , and stores operation results at

word device designated by .

Mitsubishi Electronics QCPU — Function diagram (page 630)
Fig. 1012 · Function

(2) The SIN value designated by can be in the range from 1.0 to 1.0.

(3) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Page 631 of the Mitsubishi Electronics QCPU user manual — ASIN(P)
Page 631 · click to enlarge
Page 631

ASIN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is outside the range of from 1.0 to 1.0. (Error code: 4100)
  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. *2

(For the High Performance model QCPU, Process CPU, Redundant CPU)

(Error code4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

7.12 Special function instructions 7.12.7 SIN-1 operation on floating point data (Single precision) (ASIN(P))

Page 632 of the Mitsubishi Electronics QCPU user manual — ASIN(P)
Page 632 · click to enlarge
Page 632

ASIN(P)

Program Example

(1) The following program seeks the inverse sine of the 32-bit floating decimal point real number

at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — ASIN(P) diagram (page 632)
Fig. 1013

Calculates an angle (radian value) by SIN-1 operation ( ) Converts the radian value into an angle ( ) Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the integer-converted angle to a display device ( )

[Operations involved when the D0 and D1 value is 0.5]

Mitsubishi Electronics QCPU — ASIN(P) diagram (page 632)
Fig. 1014

D11 D10 SIN-1 operation 0 . 5 0 . 5 2 3 5 9 8 8

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 633 of the Mitsubishi Electronics QCPU user manual — ASIND(P)
Page 633 · click to enlarge
Page 633

ASIND(P)

7.12.8 SIN -1 operation on floating-point data (Double precision) (ASIND(P))

ASIND(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ASIND(P) diagram (page 633)
Fig. 1015

: SIN value of which the SIN-1 (inverse sine) value is obtained or head number of the devices where the SIN

value is stored (real number)

Mitsubishi Electronics QCPU — ASIND(P) diagram (page 633)
Fig. 1016

: Head number of the devices where the operation result will be stored (real number)

Mitsubishi Electronics QCPU — ASIND(P) diagram (page 633)
Fig. 1017

(1) The angle is calculated from the SIN (sine) value specified by is and its result is stored

7.12 Special function instructions 7.12.8 SIN-1 operation on floating-point data (Double precision) (ASIND(P))

+3 S +2 S S +1 S +3 D +2 D D +1 D

(2) The SIN value designated by can be in the range from 1.0 to 1.0.

(3) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.

(4) When the operation results in -0 or an underflow, the result is processed as 0.

Page 634 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 634 · click to enlarge
Page 634

ASIND(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The value specified by is within the double-precision floating-point range and outside the range of -1.0 to 1.0. (Error code: 4100)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Program Example

(1) The following program seeks the inverse sine of the 64-bit floating decimal point real number

at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 634)
Fig. 1018 · Program Example

Calculates an angle (radian value) by SIN operation ( ).

Converts the radian value into an angle ( ).

Converts the angle in 64-bit floating-point real number into an integer ( ).

Outputs the integer-converted angle to a display device ( ).

[Operations involved when the D0 to D3 value is 0.5]

Mitsubishi Electronics QCPU — Program Example diagram (page 634)
Fig. 1019 · Program Example

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 635 of the Mitsubishi Electronics QCPU user manual — ACOS(P)
Page 635 · click to enlarge
Page 635

ACOS(P)

7.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))

ACOS(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — ACOS(P) diagram (page 635)
Fig. 1020

: COS value of which the COS-1 (inverse cosine) value is obtained or head number of the devices where the

COS value is stored (real number)

Mitsubishi Electronics QCPU — ACOS(P) diagram (page 635)
Fig. 1021

: Head number of the devices where the operation result will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — ACOS(P) diagram (page 635)
Fig. 1022

7.12 Special function instructions 7.12.9 COS -1 operation on floating-point data (Single precision) (ACOS(P))

(1) Returns the COS-1 angle of the COS value designated by , and stores operation result at

(2) The COS value designated by can be in the range of from 1.0 to 1.0.

(3) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Page 636 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 636 · click to enlarge
Page 636

ACOS(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is outside the range of from 1.0 to 1.0. (Error code: 4100)
  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program seeks the inverse cosine of the 32-bit floating decimal point real

number at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 636)
Fig. 1023 · Program Example

Calculates an angle (radian value) by COS-1 operation ( )

Converts the radian value into an angle ( )

Converts the angle in 32-bit floating-point real number into an integer ( )

Outputs the integer-converted angle to a display device ( )

[Operations involved when the D0 and D1 value is 0.5]

Mitsubishi Electronics QCPU — Program Example diagram (page 636)
Fig. 1024 · Program Example

D11 D10 COS-1 operation 0 . 5 1 . 0 4 7 1 9 8

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 637 of the Mitsubishi Electronics QCPU user manual — ACOSD(P)
Page 637 · click to enlarge
Page 637

ACOSD(P)

7.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))

ACOSD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ACOSD(P) diagram (page 637)
Fig. 1025

: COS value of which the COS-1 (inverse cosine) value is obtained or head number of the devices where the

COS value is stored (real number)

Mitsubishi Electronics QCPU — ACOSD(P) diagram (page 637)
Fig. 1026

: Head number of the devices where the operation result will be stored (real number)

(1) The angle is calculated from the COS (cosine) value specified by is and its result is

7.12 Special function instructions 7.12.10 COS -1 operation on floating-point data (Double precision) (ACOSD(P))

+3 S +2 S S +1 S +3 D +2 D D +1 D

(2) The COS value designated by can be in the range of from 1.0 to 1.0.

(3) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.

(4) When the operation results in -0 or an underflow, the result is processed as 0.

Page 638 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 638 · click to enlarge
Page 638

ACOSD(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The value specified by is within the double-precision floating-point range and outside the range of -1.0 to 1.0. (Error code: 4100)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Program Example

(1) The following program seeks the inverse cosine of the 64-bit floating decimal point real

number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 638)
Fig. 1027 · Program Example

Calculates an angle (radian value) by COS operation ( ).

Converts the radian value into an angle ( ).

Converts the angle in 64-bit floating-point real number into an integer ( ).

Outputs the integer-converted angle to a display device ( ).

[Operations involved when the D0 to D3 value is 0.5]

Mitsubishi Electronics QCPU — Program Example diagram (page 638)
Fig. 1028 · Program Example

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 639 of the Mitsubishi Electronics QCPU user manual — ATAN(P)
Page 639 · click to enlarge
Page 639

ATAN(P)

7.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))

ATAN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — ATAN(P) diagram (page 639)
Fig. 1029

: TAN value of which the TAN-1 (inverse tangent) value is obtained or head number of the devices where the

TAN value is stored (real number)

Mitsubishi Electronics QCPU — ATAN(P) diagram (page 639)
Fig. 1030

: Head number of the devices where the operation result will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — ATAN(P) diagram (page 639)
Fig. 1031

7.12 Special function instructions 7.12.11 TAN -1 operation on floating-point data (Single precision) (ATAN(P))

(1) Returns the TAN-1 angle of the TAN value designated by , and stores operation results at

(2) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RAD and DEG instructions.

Page 640 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 640 · click to enlarge
Page 640

ATAN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. *2

(For the High Performance model QCPU, Process CPU, Redundant CPU)

(Error code4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. Refer to 3.2.4 for details.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program seeks the inverse tangent of the 32-bit floating decimal point real

number at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 640)
Fig. 1032 · Program Example

Calculates an angle (radian value) by TAN-1 operation ( ) Converts the radian value into an angle ( ) Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the integer-converted angle to a display device ( )

[Operations involved when D0 and D1 value is 1]

Mitsubishi Electronics QCPU — Program Example diagram (page 640)
Fig. 1033 · Program Example

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 641 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 641 · click to enlarge
Page 641

ATAND(P)

7.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))

ATAND(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — ATAND(P) diagram (page 641)
Fig. 1034

: TAN value of which the TAN-1 (inverse tangent) value is obtained or head number of the devices where the

TAN value is stored (real number)

Mitsubishi Electronics QCPU — ATAND(P) diagram (page 641)
Fig. 1035

: Head number of the devices where the operation result will be stored (real number)

(1) The angle is calculated from the TAN (tangent) value specified by is and its result is

7.12 Special function instructions 7.12.12 TAN -1 operation on floating-point data (Double precision) (ATAND(P))

stored into the device specified by .

1 +3 S +2 S S +1 S +3 D +2 D D +1 D

) TAN (

64-bit floating-point real number

64-bit floating-point real number

(2) The angle (operation result) stored at is stored in radian units.

For more information on the conversion between radian and angle data, see description of RADD and DEGD instructions.

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Page 642 of the Mitsubishi Electronics QCPU user manual — ATAND(P)
Page 642 · click to enlarge
Page 642

ATAND(P)

Program Example

(1) The following program seeks the inverse tangent of the 64-bit floating decimal point real

number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.

Mitsubishi Electronics QCPU — ATAND(P) diagram (page 642)
Fig. 1036

1 Calculates an angle (radian value) by TAN operation ( ).

Converts the radian value into an angle ( ).

Converts the angle in 64-bit floating-point real number into an integer ( ).

Outputs the integer-converted angle to a display device ( ).

[Operations involved when D0 to D3 value is 1]

Mitsubishi Electronics QCPU — ATAND(P) diagram (page 642)
Fig. 1037

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 643 of the Mitsubishi Electronics QCPU user manual — RAD(P)
Page 643 · click to enlarge
Page 643

RAD(P)

7.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))

RAD(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — RAD(P) diagram (page 643)
Fig. 1038
Mitsubishi Electronics QCPU — RAD(P) diagram (page 643)
Fig. 1039

: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)

: Head number of the devices where the value converted in radian units will be stored (real number)

*2: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — RAD(P) diagram (page 643)
Fig. 1040

(1) Converts units of angle size from angle units designated by to radian units, and stores

7.12 Special function instructions 7.12.13 Conversion from floating-point angle to radian (Single precision) (RAD(P))

(2) Conversion from degree to radian units is performed according to the following equation:

Page 644 of the Mitsubishi Electronics QCPU user manual — BIN
Page 644 · click to enlarge
Page 644

RAD(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. *3

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians,

and stores results as 32-bit floating decimal point type real number at D20 and D21.

Mitsubishi Electronics QCPU — Program Example diagram (page 644)
Fig. 1041 · Program Example

Inputs an angle to be converted into a radian value ( )

Converts the input a 32-bit floating-point real number ( )

Converts the converted angle into a radian value ( )

[Operations involved when X20 to X2F designate a value of 120]

Conversion to radian D11 D10

X2F

1 2 0 X20

D21 D20 1 2 0 2 . 0 9 4 3 9 5

BIN

FLT

RAD

Show 8 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · Conversion to BIN · Conversion to floating-point · b15 b0 · BCD value · BIN value
Page 645 of the Mitsubishi Electronics QCPU user manual — Radian unit = Degree unit x 180
Page 645 · click to enlarge
Page 645

RADD(P)

7.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))

RADD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — RADD(P) diagram (page 645)
Fig. 1042

: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)

: Head number of the devices where the value converted in radian units will be stored (real number)

(1) The unit expressing the size of an angle is converted into the radian unit from the degree

unit specified by , and its result is stored into the device specified by .

7.12 Special function instructions 7.12.14 Conversion from floating-point angle to radian (Double precision) (RADD(P))

S D

+3 S +2 S S +1 S +3 D +2 D D +1 D

( ) ( )rad

64-bit floating-point real number

64-bit floating-point real number

(2) Conversion from degree to radian units is performed according to the following equation:

Radian unit = Degree unit x 180

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Page 646 of the Mitsubishi Electronics QCPU user manual — BIN
Page 646 · click to enlarge
Page 646

RADD(P)

Program Example

(1) The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians,

and stores results as 64-bit floating decimal point type real number at D20 to D23.

Mitsubishi Electronics QCPU — RADD(P) diagram (page 646)
Fig. 1043

Inputs an angle to be converted into a radian value ( ).

Converts the input angle into a 64-bit floating-point real number ( ).

Converts the converted angle into a radian value ( ).

[Operations involved when X20 to X2F designate a value of 120]

D20 D23 D22 1 3 2

X2F

1 2 0 X20

D10 D13 D12 D21

2.094395···

BIN

FLTD

RADD

Show 9 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · Conversion to BIN · Conversion to floating-point · Conversion to radian · b15 b0 · BCD value · BIN value
Page 647 of the Mitsubishi Electronics QCPU user manual — DEG(P)
Page 647 · click to enlarge
Page 647

DEG(P)

7.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))

DEG(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — DEG(P) diagram (page 647)
Fig. 1044

: Radian angle to be converted to degrees or head number of the devices where the radian angle is stored

Mitsubishi Electronics QCPU — DEG(P) diagram (page 647)
Fig. 1045

: Head number of the devices where the value converted in degrees will be stored (real number)

*1: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — DEG(P) diagram (page 647)
Fig. 1046

7.12 Special function instructions 7.12.15 Conversion from floating-point radian to angle (Single precision) (DEG(P))

(1) Converts units of angle size from radian units designated by to angles, and stores result

(2) The conversion from radians to angles is performed according to the following equation:

(real number)

Page 648 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 648 · click to enlarge
Page 648

DEG(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is 0. *2

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*2: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program converts the radian value set with 32-bit floating decimal point type

real number at D20 and D21 to angles, and stores the result as a BCD value at Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 648)
Fig. 1047 · Program Example

Converts a radian value into an angle ( )

Converts the angle in 32-bit floating-point real number into an integer ( ) Outputs the converted integer to a display device ( )

[Operations involved when the values at D20 and D21 are 1.435792]

Mitsubishi Electronics QCPU — Program Example diagram (page 648)
Fig. 1048 · Program Example
1. 4 3 5 7 9 2 8 2 . 2 6 4 8 2

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 649 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 649 · click to enlarge
Page 649

DEGD(P)

7.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))

DEGD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — DEGD(P) diagram (page 649)
Fig. 1049

: Radian angle to be converted to degrees or head number of the devices where the radian angle is stored

: Head number of the devices where the value converted in degrees will be stored (real number)

R, ZR J \

U \G Zn Constants

E Other Bit Word Bit Word

––

Function

(1) The unit expressing the size of an angle is converted into the degree unit from the radian

7.12 Special function instructions 7.12.16 Conversion from floating-point radian to angle (Double precision) (DEGD(P))

unit specified by , and its result is stored into the device specified by .

S D

+3 S +2 S S +1 S +3 D +2 D D +1 D

( )rad ( )

64-bit floating-point real number

64-bit floating-point real number

(2) The conversion from radians to angles is performed according to the following equation:

Degree unit = Radian unit x 180

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

Show 5 more labels / short text on this page
(real number) · Setting · Internal Devices · Data · –– –– ––
Page 650 of the Mitsubishi Electronics QCPU user manual — DEGD(P)
Page 650 · click to enlarge
Page 650

DEGD(P)

Program Example

(1) The following program converts the radian value set with 64-bit floating decimal point type

real number at D20 to D23 to angles, and stores the result as a BCD value at Y40 to Y4F.

Mitsubishi Electronics QCPU — DEGD(P) diagram (page 650)
Fig. 1050

Converts a radian value into an angle ( ). 1

Converts the angle in 64-bit floating-point real number into an integer ( ).

Outputs the converted integer to a display device ( ).

[Operations involved when the values at D20 to D23 are 1.435792]

Mitsubishi Electronics QCPU — DEGD(P) diagram (page 650)
Fig. 1051

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 651 of the Mitsubishi Electronics QCPU user manual — POW(P)
Page 651 · click to enlarge
Page 651

POW(P)

7.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))

POW(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — POW(P) diagram (page 651)
Fig. 1052

: Exponentiation recipient data or head number of the devices where the exponentiation recipient data are

Mitsubishi Electronics QCPU — POW(P) diagram (page 651)
Fig. 1053

: Exponentiation data or head number of the devices where the data are stored (real number)

: Head number of the devices where the operation result will be stored (real number)

*1Available only for real number
Mitsubishi Electronics QCPU — POW(P) diagram (page 651)
Fig. 1054

7.12 Special function instructions 7.12.17 Exponentiation operation on floating-point data (Single precision) (POW(P))

(1) This instruction raises the 32-bit floating-point data type real number specified by to the

number nth specified by power, and then stores the operation result into the device

(2) The following shows the values to be specified by and stored into or .

0, 2-126 | Set values (Storage values) | < 2128

(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.

Universal · stored (real number)

Page 652 of the Mitsubishi Electronics QCPU user manual — D11 D10 1.2
Page 652 · click to enlarge
Page 652

POW(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The values specified by or are out of the ranges shown below. (Error code: 4140)

S1 S2

0, 2-126 | Specified value (Storage value) | < 2128

  • The value of or is 0. (Error code: 4140)

S1 S2

  • The values in the operation result is within the range shown below. (Error code: 4141)

2126 | Value resulted from operation |

Program Example

(1) The following program raises the 32-bit floating-point data type real number data specified

by D0 and D1 to the data specified by (D10 and D11)th power, when X10 is turned on. Then the program stores the operation result into D20 and D21.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 652)
Fig. 1055 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 652)
Fig. 1056 · Program Example

D11 D10 1.2

operation D21 D20 D1 D0 0.22 0.163

Step Instruction Device · [Operation] · Exponentiation

Page 653 of the Mitsubishi Electronics QCPU user manual — POWD(P)
Page 653 · click to enlarge
Page 653

POWD(P)

7.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))

POWD(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — POWD(P) diagram (page 653)
Fig. 1057

: Exponentiation recipient data or head number of the devices where the exponentiation recipient data are

Mitsubishi Electronics QCPU — POWD(P) diagram (page 653)
Fig. 1058

: Exponentiation data or head number of the devices where the data are stored (real number)

: Head number of the devices where the operation result will be stored (real number)

*1Available only for real number
Mitsubishi Electronics QCPU — POWD(P) diagram (page 653)
Fig. 1059

7.12 Special function instructions 7.12.18 Exponentiation operation on floating-point data (Single precision) (POWD(P))

(1) This instruction raises the 64-bit floating-point data type real number specified by to the

number nth specified by power, and then stores the operation result into the device

+3 +2 +1 +3 +2 +1

+3 +2 +1 +3 +2 +1

64-bit floating-point data type real number 64-bit floating-point data type real number

(2) The following shows the values to be specified by and stored into or

0, 2-1022 | Set values (Storage values) | < 21024

(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.

Universal · stored (real number)

Page 654 of the Mitsubishi Electronics QCPU user manual — D203 D202 D201 D200
Page 654 · click to enlarge
Page 654

POWD(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The values specified by or are out of the range shown below. (Error code: 4140)

S1 S2

0, 2-1022 | Set values (Storage values) | < 21024

  • The value of or is 0. (Error code: 4140)

S1 S2

  • The values resulted from the operation is within the range shown below.

21024 | Value resulted from operation | (Error code: 4141)

Program Example

(1) The following program raises the 64-bit floating-point data type real number specified by

D200 to D203 to the number nth specified by D0 to D3 power, when X10 is turned on. Then the program stores the operation result into D100 to D103.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 654)
Fig. 1060 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 654)
Fig. 1061 · Program Example

D3 D2 D1 D0 Exponentiation operation

D203 D202 D201 D200

D103 D102 D101 D100

3796.416

Step Instruction Device · [Operation]

Page 655 of the Mitsubishi Electronics QCPU user manual — SQR(P)
Page 655 · click to enlarge
Page 655

SQR(P)

7.12.19 Square root operation for floating-point data (Single precision) (SQR(P))

SQR(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — SQR(P) diagram (page 655)
Fig. 1062

: Data of which the square root is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — SQR(P) diagram (page 655)
Fig. 1063

: Head number of the devices where the operation result will be stored (real number)

*2: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — SQR(P) diagram (page 655)
Fig. 1064

7.12 Special function instructions 7.12.19 Square root operation for floating-point data (Single precision) (SQR(P))

(1) Returns the square root of the value designated at , and stores the operation result in the

(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)

(real number)

Page 656 of the Mitsubishi Electronics QCPU user manual — BIN
Page 656 · click to enlarge
Page 656

SQR(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is a negative number. (Error code: 4100)
  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. *3

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU, and Q4ARCPU) (Error code: 4100)

*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program seeks the square root of the value set by the 4 BCD digits from X20

to X2F, and stores the result as a 32-bit floating decimal point type real number at D0 and D1.

Mitsubishi Electronics QCPU — Program Example diagram (page 656)
Fig. 1065 · Program Example

Inputs data used for square root operation ( )

Converts the input data into a 32-bit floating-point real number ( ) Executes square root operation ( )

[Operations involved when value designated by X20 to X2F is 650]

X2F

6 5 0 X20

SQR operation D11 D10

D1 D0 6 5 0 2 5 . 4 9 5 1

BIN

FLT

SQR

Show 8 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · Conversion to BIN · Conversion to floating-point · b15 b0 · BCD value · BIN value
Page 657 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 657 · click to enlarge
Page 657

SQRD(P)

7.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))

SQRD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — SQRD(P) diagram (page 657)
Fig. 1066

: Data of which the square root is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — SQRD(P) diagram (page 657)
Fig. 1067

: Head number of the devices where the operation result will be stored (real number)

(1) Returns the square root of the value designated at , and stores the operation result in the

7.12 Special function instructions 7.12.20 Square root operation for floating-point data (Double precision) (SQRD(P))

device number designated at .

+3 S +2 S S +1 S +3 D +2 D D +1 D

64-bit floating-point real number

64-bit floating-point real number

(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is a negative number. (Error code: 4100)
  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

(real number) · ( )

Page 658 of the Mitsubishi Electronics QCPU user manual — BIN
Page 658 · click to enlarge
Page 658

SQRD(P)

Program Example

(1) The following program seeks the square root of the value set by the 4 BCD digits from X20

to X2F, and stores the result as a 64-bit floating decimal point type real number at D0 to D3.

Mitsubishi Electronics QCPU — SQRD(P) diagram (page 658)
Fig. 1068

Inputs data used for square root operation ( ).

Converts the input data into a 64-bit floating-point real number ( ). Executes square root operation ( ).

[Operations involved when value designated by X20 to X2F is 650]

D0 D3 D2 1 2 3

X2F

6 5 0 X20

D10 D13 D12 D1

25.4951

BIN

FLTD

SQRD

Show 9 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · Conversion to BIN · Conversion to floating-point · b15 b0 · SQR operation · BCD value · BIN value
Page 659 of the Mitsubishi Electronics QCPU user manual — EXP(P)
Page 659 · click to enlarge
Page 659

EXP(P)

7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))

EXP(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — EXP(P) diagram (page 659)
Fig. 1069

: Data of which the exponential value is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — EXP(P) diagram (page 659)
Fig. 1070

: Head number of the devices where the operation result will be stored (real number)

*2: Applicable for the Universal model QCPU only.

Mitsubishi Electronics QCPU — EXP(P) diagram (page 659)
Fig. 1071

7.12 Special function instructions 7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))

(1) Returns the exponent of the value designated by , and stores the results of the operation

(2) Exponent operations are calculated taking the base (e) to be "2.71828".

(real number)

Page 660 of the Mitsubishi Electronics QCPU user manual — EXP(P)
Page 660 · click to enlarge
Page 660

EXP(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Operation results are outside the range shown below: (Error code: 4100)

2-126 | operation result | 2128 (For a High Performance model QCPU)

2-126 | operation result | 2128 (For a Basic model QCPU/Process CPU/Redundant CPU)

  • The value of the specified device is 0. *3

(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)
Page 661 of the Mitsubishi Electronics QCPU user manual — EXP(P)
Page 661 · click to enlarge
Page 661

EXP(P)

Program Example

(1) The following program performs an exponent operation on the value set by the 2 BCD digits

at X20 to X27, and stores the results as a 32-bit floating decimal point real number at D0 and D1.

Mitsubishi Electronics QCPU — EXP(P) diagram (page 661)
Fig. 1072

Inputs the data used for exponent operation ( ).

Checks the range of the value for operation. *4

Converts the input data into a 32-bit floating-point real number ( ).

Mitsubishi Electronics QCPU — EXP(P) diagram (page 661)
Fig. 1073

[Operations involved when value designated by X20 to X27 is 13]

7.12 Special function instructions 7.12.21 Exponent operation on floating-point data (Single precision) (EXP(P))

1 3 4 4 2 4 1 3 . 4

*4: The operation result will be under 2129 if the BCD value of X20 to X27 is less than 89, from the calculation

loge 2129 = 89.4. Because setting a value of over 90 will return an operation error, turn M0 ON if a value of over 90 has been set to avoid the error.

Conversion from natural logarithm to common logarithm In the CPU module, calculation is made using a natural logarithm.

To obtain a common logarithm value, enter in, a common logarithm value divided by 0.43429.

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 662 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 662 · click to enlarge
Page 662

EXPD(P)

7.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))

EXPD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — EXPD(P) diagram (page 662)
Fig. 1074

: Data of which the exponential value is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — EXPD(P) diagram (page 662)
Fig. 1075

: Head number of the devices where the operation result will be stored (real number)

(1) Returns the exponent of the value designated by , and stores the results of the operation

Mitsubishi Electronics QCPU — EXPD(P) diagram (page 662)
Fig. 1076

+3 S +2 S S +1 S +3 D +2 D D +1 D

(2) Exponent operations are calculated taking the base (e) to be "2.71828".

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

(real number)

Page 663 of the Mitsubishi Electronics QCPU user manual — EXPD(P)
Page 663 · click to enlarge
Page 663

EXPD(P)

Program Example

(1) The following program performs an exponent operation on the value set by the 2 BCD digits

at X20 to X31, and stores the results as a 64-bit floating decimal point real number at D0 to D3.

Mitsubishi Electronics QCPU — EXPD(P) diagram (page 663)
Fig. 1077

Checks the range of the value used for operation. *1

Converts the input data into a 64-bit floating-point real number ( ). Executes exponent operation ( ).

[Operations involved when value designated by X20 to X31 is 13]

Mitsubishi Electronics QCPU — EXPD(P) diagram (page 663)
Fig. 1078

7.12 Special function instructions 7.12.22 Exponent operation on floating-point data (Double precision) (EXPD(P))

*1: The operation result will be under 21024 if the BCD value of X20 to X31 is less than 709, from the calculation

loge 21024 = 709.7832. Because setting a value of over 710 will return an operation error, turn M0 ON if a value of over 710 has been set to avoid the error.

Conversion from natural logarithm to common logarithm In the CPU module, calculation is made using a natural logarithm.

To obtain a common logarithm value, enter in, a common logarithm value divided by 0.43429.

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 664 of the Mitsubishi Electronics QCPU user manual — Function
Page 664 · click to enlarge
Page 664

LOG(P)

7.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))

LOG(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — LOG(P) diagram (page 664)
Fig. 1079

: Data of which the natural logarithm is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — LOG(P) diagram (page 664)
Fig. 1080

: Head number of the devices where the operation result will be stored (real number)

*2: Applicable for the Universal model QCPU only.

Function

(1) Returns the natural logarithm of the value designated by taking (e) as base, and stores

Mitsubishi Electronics QCPU — Function diagram (page 664)
Fig. 1081 · Function

(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)

(real number)

Page 665 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 665 · click to enlarge
Page 665

LOG(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is negative. (Error code: 4100)
  • The value designated by is 0. (Error code: 4100)
  • The contents of the designated device or the result of the addition are not "0", or not within

the following range(For the Universal model QCPU only): (Error code: 4140)

0, 2-126 | Contents of designated device | < 2128

  • The value of the specified device is 0. * 3 (For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant CPU) (Error code: 4100)

*3: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to 3.2.4.

  • The result exceeds the following range (Operation results in an overflow)

(For the Universal model QCPU only)

2128 | Operation result | (Error code: 4141)

  • The value of the specified device is 0, unnormalized number, nonnumeric, and ± . (For the Universal model QCPU only) (Error code: 4140)

Program Example

(1) The following program seeks the natural logarithm of the value "10" set by D50, and stores

the result at D30 and D31.

Mitsubishi Electronics QCPU — Program Example diagram (page 665)
Fig. 1082 · Program Example

Sets data used for natural logarithm operation ( )

7.12 Special function instructions 7.12.23 Natural logarithm operation on floating-point data (Single precision) (LOG(P))

Converts the operation data into a 32-bit floating-point real number ( ) Executes natural logarithm operation ( )

1 0 2 . 3 0 2 5 8 5

[Ladder Mode]

Page 666 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 666 · click to enlarge
Page 666

LOGD(P)

7.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))

LOGD(P)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — LOGD(P) diagram (page 666)
Fig. 1083

: Data of which the natural logarithm is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — LOGD(P) diagram (page 666)
Fig. 1084

: Head number of the devices where the operation result will be stored (real number)

(1) Returns the natural logarithm of the value designated by taking (e) as base, and stores

Mitsubishi Electronics QCPU — LOGD(P) diagram (page 666)
Fig. 1085

+3 S +2 S S +1 S +3 D +2 D D +1 D

(2) Only positive values can be designated by . (Operation cannot be performed on negative numbers.)

(3) When the operation results in -0 or an underflow, the result is processed as 0.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value designated by is negative. (Error code: 4100)
  • The value designated by is 0. (Error code: 4100)
  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the designated device is 0. (Error code: 4140)
  • The result exceeds the following range (Operation results in an overflow):

21024 | Operation result | (Error code: 4141)

(real number)

Page 667 of the Mitsubishi Electronics QCPU user manual — LOGD(P)
Page 667 · click to enlarge
Page 667

LOGD(P)

Program Example

(1) The following program seeks the natural logarithm of the value "10" set by D50, and stores

the result at D30 to D33.

Mitsubishi Electronics QCPU — LOGD(P) diagram (page 667)
Fig. 1086

Sets data used for natural logarithm operation ( ).

Converts the operation data into a 64-bit floating-point real number ( ). Executes natural logarithm operation ( ).

Mitsubishi Electronics QCPU — LOGD(P) diagram (page 667)
Fig. 1087
Mitsubishi Electronics QCPU — LOGD(P) diagram (page 667)
Fig. 1088

7.12 Special function instructions 7.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 668 of the Mitsubishi Electronics QCPU user manual — Function
Page 668 · click to enlarge
Page 668

LOG10(P)

7.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))

LOG10(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — LOG10(P) diagram (page 668)
Fig. 1089

: Data of which the common logarithm is obtained or head number of the devices where the data are stored

Mitsubishi Electronics QCPU — LOG10(P) diagram (page 668)
Fig. 1090

: Head number of the devices where the operation result will be stored (real number)

*1: Available only for real number.

Function

(1) This instruction obtains the value specified by for common logarithm (logarithm with base

10), and then stores the operation result into the device specified by .

Mitsubishi Electronics QCPU — Function diagram (page 668)
Fig. 1091 · Function

(2) Only positive values can be specified by . (Operation cannot be performed on negative numbers.)

(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.

Universal · (real number)

Page 669 of the Mitsubishi Electronics QCPU user manual — D601 D600
Page 669 · click to enlarge
Page 669

LOG10(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The value specified by is negative. (Error code: 4100)
  • The value specified by is 0. (Error code: 4100)
  • The value of the specified device is not in the following range. (Error code: 4140)

0,2-126 | value of specified device | < 2128

  • The value specified by is 0. (Error code: 4140)
  • The value resulted from the operation is within the range shown below.
(When an overflow occurs)(Error code: 4141)

2128 | value of specified device |

Program Example

(1) The following program obtains the value for common logarithm of the 32-bit floating-point

data type real number specified by D600 or D601, when X10 is turned on. Then the program stores the operation result into D123 or D124.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 669)
Fig. 1092 · Program Example

7.12 Special function instructions 7.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))

D601 D600

D124 D123

Log 10

0.448088

Step Instruction Device · [Operation]

Page 670 of the Mitsubishi Electronics QCPU user manual — Function
Page 670 · click to enlarge
Page 670

LOG10D(P)

7.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))

LOG10D(P)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — LOG10D(P) diagram (page 670)
Fig. 1093

: Data of which the common logarithm is obtained or head number of the devices where the data are stored

Mitsubishi Electronics QCPU — LOG10D(P) diagram (page 670)
Fig. 1094

: Head number of the devices where the operation result will be stored (real number)

*1: Available only for real number.

Function

(1) This instruction obtains the value specified by for common logarithm (logarithm with base

10),and then stores the operation result into the device specified by .

Mitsubishi Electronics QCPU — Function diagram (page 670)
Fig. 1095 · Function

Log10 S S +3 S +2 S +1 D D +3 D +2 D +1

(2) Only positive values can be specified by . (Operation cannot be performed on negative numbers.)

(3) If the value resulted from the operation is 0 or an underflow occurs, the result will be processed as 0.

Universal · (real number)

Page 671 of the Mitsubishi Electronics QCPU user manual — D126 D125 D124 D123 0.448088
Page 671 · click to enlarge
Page 671

LOG10D(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The value specified by is negative. (Error code: 4100)
  • The value specified by is 0. (Error code: 4100)
  • The value of the specified device is not in the following range: (Error code: 4140)

0,2-1022 | value of specified device | < 21024

  • The value of the specified device is 0. (Error code: 4140)
  • The value resulted from the operation is within the range shown below.
(When an overflow occurs)(Error code: 4141)

21024 | value of specified device |

Program Example

(1) This following program obtains the value for common logarithm of the 64-bit floating-point

data type real number specified by D600 to D603 when X10 is turned on. Then the program stores the operation result into D123 to D126.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 671)
Fig. 1096 · Program Example

D603 D602 D601 D600 Log 10 2.806

D126 D125 D124 D123 0.448088

7.12 Special function instructions 7.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P))

Step Instruction Device · [Operation]

Page 672 of the Mitsubishi Electronics QCPU user manual — SRND
Page 672 · click to enlarge
Page 672

RND(P),SRND(P)

7.12.27 Random number generation and series updates (RND(P),SRND(P))

RND(P),SRND(P)

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — RND(P),SRND(P) diagram (page 672)
Fig. 1097

: Head number of the devices where random numbers will be stored (BIN 16 bits)

: Random number serial data or the first number of the devices where the random number serial data is stored

Mitsubishi Electronics QCPU — RND(P),SRND(P) diagram (page 672)
Fig. 1098

The random number generation instruction generates random numbers conforming to a certain calculation formula. In the calculation using the formula, the result of previous calculation is used as a coefficient. The random series change instruction can change the random number generation pattern.

RND

Generates random number of from 0 to 32767, and stores at device designated by .

SRND

Updates random number series according to the 16-bit BIN data being stored in device

designated by .

(BIN 16 bits)

Page 673 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 673 · click to enlarge
Page 673

RND(P),SRND(P)

Operation Error

(1) There are no operation errors associated with the RND(P) or SRND(P) instructions.

Program Example

(1) The following program stores random number at D100 when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 673)
Fig. 1099 · Program Example

(2) The following program updates a random number series according to the contents of D0

when X10 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 673)
Fig. 1100 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 673)
Fig. 1101 · Program Example

7.12 Special function instructions 7.12.27 Random number generation and series updates (RND(P),SRND(P))

Page 674 of the Mitsubishi Electronics QCPU user manual — D D
Page 674 · click to enlarge
Page 674

BSQR(P),BDSQR(P)

7.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))

BSQR(P),BDSQR(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BSQR(P),BDSQR(P) diagram (page 674)
Fig. 1102

: Data of which the square root is obtained or the number of the device where the data is stored

(BSQR(P)BCD 4 digits, BDSQR(P): BCD 8 digits)
Mitsubishi Electronics QCPU — BSQR(P),BDSQR(P) diagram (page 674)
Fig. 1103

: Head number of the devices where the square root calculation result will be stored (BCD 4 digits)

BSQR

(1) Returns the square root of the value designated at , and stores the operation result in the

device number designated at .

Integer part Decimal fraction part .

(2) Values that can be designated at are BCD values with a maximum of 4 digits (from 0 to 9999).

(3) The operation results of and +1 are stored as their respective BCD values of between 0 and 9999.

D D

(4) Operation results are rounded off from the fifth decimal place.

For this reason, the fourth decimal place has an error of ±1.

Page 675 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 675 · click to enlarge
Page 675

BSQR(P),BDSQR(P)

BDSQR

(1) Calculates the square root of the values designated by and +1 and stores the results at

S S

Mitsubishi Electronics QCPU — S S diagram (page 675)
Fig. 1104

(2) BCD value of a maximum of 8 digits (0 to 99999999) can be designated by and +1.

S S

(3) The operation results of and +1 are stored as their respective BCD values of between 0 and 9999.

D D

(4) Operation results are rounded off from the fifth decimal place.

For this reason, the fourth decimal place has an error of ±1.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The data designated by is not a BCD value. (Error code: 4100)

Program Example

(1) The following program calculates the square root of BCD value 1325 and outputs the integer

part to the 4 BCD digits from Y50 to Y5F, and the decimal fraction part to the 4 BCD digits from Y40 to Y4F.

Mitsubishi Electronics QCPU — Program Example diagram (page 675)
Fig. 1105 · Program Example

Sets the data used for square root operation ( )

7.12 Special function instructions 7.12.28 BCD 4-digit and 8-digit square roots (BSQR(P),BDSQR(P))

Outputs the integer part of the operation result to a display device ( )

Outputs the decimal fraction part of the operation result to a display device ( )

[Ladder Mode]

Page 676 of the Mitsubishi Electronics QCPU user manual — BSQR(P),BDSQR(P)
Page 676 · click to enlarge
Page 676

BSQR(P),BDSQR(P)

(2) The following program calculates the square root of BCD value 74625813 and outputs the

integer part of the result to the 4 BCD digits at Y50 to Y5F, and the decimal fraction part to the 4 BCD digits from Y40 to Y4F.

Mitsubishi Electronics QCPU — BSQR(P),BDSQR(P) diagram (page 676)
Fig. 1106

Sets the data (BCD value) used for square root operation ( )

Outputs the integer part of the operation result to a display device ( )

Outputs the decimal fraction part of the operation result to a display device ( )

Mitsubishi Electronics QCPU — BSQR(P),BDSQR(P) diagram (page 676)
Fig. 1107
Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Step Instruction Device · [Operation]
Page 677 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 677 · click to enlarge
Page 677

BSIN(P)

7.12.29 BCD type SIN operation (BSIN(P))

BSIN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BSIN(P) diagram (page 677)
Fig. 1108

: Data of which the SIN (sine) value is obtained or the number of the device where the data is stored

Mitsubishi Electronics QCPU — BSIN(P) diagram (page 677)
Fig. 1109

: Head number of the devices where the operation result will be stored (BCD 4 digits)

(1) Calculates the SIN (sine) value of value (angle) designated by , and stores the sign of the

operation result in the device designated at , and the operation result in the devices

7.12 Special function instructions 7.12.29 BCD type SIN operation (BSIN(P))

designated at +1 and +2.

D D

S Integer part Decimal fraction part .

(2) The value designated at is a BCD value which can be between 0 and 360 degrees (in units of degrees).

(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.

(4) The operation results stored in +1 and +2 are BCD values between 1.000 and 1.000.

D D

(5) Operation results are rounded off from the fifth decimal place.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data designated by is not a BCD value. (Error code: 4100)
  • The data designated by is not in the range of from 0 to 360. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(BCD 4 digits) · Sign SIN

Page 678 of the Mitsubishi Electronics QCPU user manual — BSIN(P)
Page 678 · click to enlarge
Page 678

BSIN(P)

Program Example

(1) The program example below calculates the SIN of 3-digit BCD data designated by X20 to

X2B, and outputs a 1-digit BCD part to the integer part from Y50 to Y53, and a 4-digit BCD fraction part from Y40 to Y4F.

Y60 is turned ON if the results of the operation are negative. (If a value has been set at X20 to X2F that is greater than 360, it will be adjusted to be in the range from 0 to 360.) [Ladder Mode]

Mitsubishi Electronics QCPU — BSIN(P) diagram (page 678)
Fig. 1110

Processes so that the input angle is within 360° ( )

Outputs the integer part of the operation result to a display device ( )

Outputs the decimal fraction part of the operation result to a display device ( )

Outputs the sign of the operation result by ON or OFF ( )

[Operations involved when value designated by X20 to X2B is 590]

Mitsubishi Electronics QCPU — BSIN(P) diagram (page 678)
Fig. 1111

[List Mode] · Step Instruction Device

Page 679 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 679 · click to enlarge
Page 679

BCOS(P)

7.12.30 BCD type COS operations (BCOS(P))

BCOS(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BCOS(P) diagram (page 679)
Fig. 1112

: Data of which the COS (cosine) value is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — BCOS(P) diagram (page 679)
Fig. 1113

: Head number of the devices where the operation result will be stored (BCD 4 digits)

(1) Calculates COS (cosine) value of value (angle) designated by , then stores the sign for

the operation result in the word device designated by , and the operation result in the

7.12 Special function instructions 7.12.30 BCD type COS operations (BCOS(P))

word device designated by +1 and +2.

D D

S Integer part Decimal fraction part .

(2) The value designated at is a BCD value which can be between 0 and 360 degrees

(in units of degrees).

(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.

(4) The operation results stored in +1 and +2 are BCD values between 1.000 and 1.000.

D D

(5) Operation results are rounded off from the fifth decimal place.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data designated by is not a BCD value. (Error code: 4100)
  • The data designated by is not in the range of from 0 to 360. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(BCD 4 digits) · Sign COS

Page 680 of the Mitsubishi Electronics QCPU user manual — BCOS(P)
Page 680 · click to enlarge
Page 680

BCOS(P)

Program Example

(1) The following program calculates the cosine of the data designated by the 3 BCD digits from

X20 to X2B and outputs the integer part of the result to 1 BCD digit from Y50 to Y53, and the decimal fraction part of the result to the 4 BCD digits from Y40 to Y4F.

Y60 is turned ON if the results of the operation are negative.

Mitsubishi Electronics QCPU — BCOS(P) diagram (page 680)
Fig. 1114

Processes so that the input angle is within 360° ( )

Outputs the integer part of the operation result to a display device ( )

Outputs the decimal fraction part of the operation result to a display device ( )

Outputs the sign of the operation result by ON or OFF ( )

[Operations involved when value designated by X20 to X2B is 430]

Mitsubishi Electronics QCPU — BCOS(P) diagram (page 680)
Fig. 1115

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 681 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 681 · click to enlarge
Page 681

BTAN(P)

7.12.31 BCD type TAN operation (BTAN(P))

BTAN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BTAN(P) diagram (page 681)
Fig. 1116

: Data of which the TAN (tangent) value is obtained or head number of the devices where the data is stored

Mitsubishi Electronics QCPU — BTAN(P) diagram (page 681)
Fig. 1117

: Head number of the devices where the operation result will be stored (BCD 4 digits)

(1) Calculates TAN (tangent) value for value (angle) designated by , and stores the sign for

the operation result in the word device designated by , and the operation result in the

word device designated by +1 and +2.

7.12 Special function instructions 7.12.31 BCD type TAN operation (BTAN(P))

D D

S Integer part Decimal fraction part .

(2) The value designated at is a BCD value which can be between 0 and 360 degrees (in units of degrees).

(3) The sign for the operation result stored in will be "0" if the result is a positive value, and "1" if the result is a negative value.

(4) The operation results stored at +1 and +2 are BCD values within the range of from 57.2901 and 57.2902.

D D

(5) Operation results are rounded off from the fifth decimal place.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data designated by is not a BCD value. (Error code: 4100)
  • The data designated by is not in the range of from 0 to 360. (Error code: 4100)
  • The data designated by is 90 ° or 270 ° . (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(BCD 4 digits) · Sign TAN

Page 682 of the Mitsubishi Electronics QCPU user manual — BTAN(P)
Page 682 · click to enlarge
Page 682

BTAN(P)

Program Example

(1) The following program calculates the tangent of the data stored in the 3 BCD digits from X20

to X2B, and stores the integer part of the results in the 4 BCD digits from Y50 to Y53, and the decimal fraction part in the 4 BCD digits from Y40 to Y4F.

Y60 is turned ON if the results of the operation are negative.

Mitsubishi Electronics QCPU — BTAN(P) diagram (page 682)
Fig. 1118

Processes so that the input angle is within 360° ( )

Mitsubishi Electronics QCPU — BTAN(P) diagram (page 682)
Fig. 1119

[Operations involved when X20 to X2B designate a value of 390]

Mitsubishi Electronics QCPU — BTAN(P) diagram (page 682)
Fig. 1120

[Ladder Mode] · [List Mode]

Page 683 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 683 · click to enlarge
Page 683

BASIN(P)

7.12.32 BCD type SIN -1 operations (BASIN(P))

BASIN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BASIN(P) diagram (page 683)
Fig. 1121

: Number of the device where data of which the SIN-1 (inverse sine) value is obtained is stored

: Head number of the devices where the operation result will be stored (BCD 4 digits)

R, ZR J \

U \G Zn Constants

K, H Other Bit Word Bit Word

––

Function

(1) Returns the SIN-1 (inverse sine) value of the value designated by and stores operation

results (angles) at device designated by .

7.12 Special function instructions 7.12.32 BCD type SIN -1 operations (BASIN(P))

S S S

Integer part Decimal fraction part . Sign SIN

(2) A sign for the operation data is set at .

If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".

(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values. (Settings can be between 0 and 1.0000.)

S S

(4) Operation results stored at are BCD values between 0 and 90 degrees, and 270 and 360 degrees (degree units).

(5) Calculation results are a value from which the decimal fraction part has been rounded.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data designated by is not a BCD value. (Error code: 4100)
  • Data designated by is not in the range of from 1.0000 to 1.0000. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Show 6 more labels / short text on this page
(BCD 4 digits) · Setting · Internal Devices · Data · +1 · +2
Page 684 of the Mitsubishi Electronics QCPU user manual — BASIN(P)
Page 684 · click to enlarge
Page 684

BASIN(P)

Program Example

(1) The following program performs a SIN-1 operation on the sign (positive when X0 is OFF, and

negative when X0 is ON), the BCD 1-digit integer part from X30 to X33 and the BCD 4-digit decimal fraction part from X20 to X2F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Mitsubishi Electronics QCPU — BASIN(P) diagram (page 684)
Fig. 1122

Sets the sign of a SIN value ( )

Sets the integer part of a SIN value ( )

Sets the decimal fraction part of a SIN value ( )

Executes Sin-1 operation and outputs the result of operation to Y40 to Y4F ( )

Mitsubishi Electronics QCPU — BASIN(P) diagram (page 684)
Fig. 1123

[Operations involved when X20 to X33 designates value of 0.4753]

Mitsubishi Electronics QCPU — BASIN(P) diagram (page 684)
Fig. 1124

[Ladder Mode] · [List Mode]

Page 685 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 685 · click to enlarge
Page 685

BACOS(P)

7.12.33 BCD type COS -1 operation (BACOS(P))

BACOS(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BACOS(P) diagram (page 685)
Fig. 1125

: Number of the device where data of which the COS-1 (inverse cosine) value is obtained is stored

Mitsubishi Electronics QCPU — BACOS(P) diagram (page 685)
Fig. 1126

: Head number of the devices where the operation result will be stored (BCD 4 digits)

U \G Zn Constants Other Bit Word Bit Word

(1) Returns the COS-1 (inverse cosine) value of the value designated by , and stores

operation results at device designated by .

7.12 Special function instructions 7.12.33 BCD type COS -1 operation (BACOS(P))

S S S

COS

Integer part Decimal fraction part . Sign

(2) A sign for the operation data is set at .

If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".

(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values.

S S

(Settings can be between 0 and 1.0000.)

(4) The operation results stored at will be a BCD value in the range of between 0 and 180° (degree units).

(5) Calculation results are a value from which the decimal fraction part has been rounded.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The operation data designated by is not a BCD value. (Error code: 4100)
  • The operation data designated by is not in the range of from 1.0000 to 1.0000. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(BCD 4 digits) · +1 · +2

Page 686 of the Mitsubishi Electronics QCPU user manual — BACOS(P)
Page 686 · click to enlarge
Page 686

BACOS(P)

Program Example

(1) The following program performs a COS-1 operation on the sign (positive when X0 is OFF,

and negative when X0 is ON), the BCD 1-digit integer part from X30 to X33 and the BCD 4-digit decimal fraction part from X20 to X2F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Mitsubishi Electronics QCPU — BACOS(P) diagram (page 686)
Fig. 1127

Sets the sign of a COS value ( )

Sets the integer part of a COS value ( )

Sets the decimal fraction part of a COS value ( )

Turns M0 ON when D1>1 or D1=1 and D2 0

Executes COS-1 operation and outputs the result of operation to Y40 to Y4F ( )

Mitsubishi Electronics QCPU — BACOS(P) diagram (page 686)
Fig. 1128

[Operations involved if X0 and X20 to X33 designate a value of 0.7650]

Mitsubishi Electronics QCPU — BACOS(P) diagram (page 686)
Fig. 1129

[Ladder Mode] · [List Mode]

Page 687 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 687 · click to enlarge
Page 687

BATAN(P)

7.12.34 BCD type TAN -1 operations (BATAN(P))

BATAN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — BATAN(P) diagram (page 687)
Fig. 1130

: Number of the device where data of which the TAN-1 (inverse tangent) value is obtained is stored

Mitsubishi Electronics QCPU — BATAN(P) diagram (page 687)
Fig. 1131

: Head number of the devices where the operation result will be stored (BCD 4 digits)

U \G Zn Constants Other Bit Word Bit Word

(1) Performs TAN-1 (inverse tangent) on value designated by and stores operation results

(angles) at device designated by .

7.12 Special function instructions 7.12.34 BCD type TAN -1 operations (BATAN(P))

S S S

TAN

Integer part Decimal fraction part . Sign

(2) A sign for the operation data is set at .

If the operation data is a positive value, this is set at "0", and if it is a negative value, it is set at "1".

(3) The part before the decimal point and fraction part are stored at +1 and +2 respectively, as BCD values.

S S

(Values from 0 to 9999.9999 can be set.)

(4) Operation results stored at are BCD values between 0 and 90 degrees, and 270 and 360 degrees (degree units).

(5) Calculation results are a value from which the decimal fraction part has been rounded.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The operation data designated by is not a BCD value. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(BCD 4 digits) · +1 · +2

Page 688 of the Mitsubishi Electronics QCPU user manual — BATAN(P)
Page 688 · click to enlarge
Page 688

BATAN(P)

Program Example

(1) The following program performs a TAN-1 operation on the sign (positive when X0 is OFF,

and negative when X0 is ON), the BCD 4-digit integer part from X20 to X2F and the BCD 4-digit decimal fraction part from X30 to X3F, and outputs the calculated angle in 4 BCD digits from Y40 to Y4F.

Mitsubishi Electronics QCPU — BATAN(P) diagram (page 688)
Fig. 1132

Sets the sign of a TAN value ( )

Sets the integer part of a TAN value ( )

Sets the decimal fraction part of a TAN value ( )

Executes TAN-1 operation and outputs the result of operation to Y40 to Y4F ( )

[Operations involved when X0 and X20 to X2F designate a value of 1.2654]

Mitsubishi Electronics QCPU — BATAN(P) diagram (page 688)
Fig. 1133

[Ladder Mode] · [List Mode] · Step Instruction Device

Page 689 of the Mitsubishi Electronics QCPU user manual — S1 S2 S3
Page 689 · click to enlarge
Page 689

LIMIT(P),DLIMIT(P)

7.13 Data Control Instructions

7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))

LIMIT(P),DLIMIT(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — LIMIT(P),DLIMIT(P) diagram (page 689)
Fig. 1134

: Lower limit value (minimum output threshold value) (BIN 16/32 bits)

: Upper limit value (maximum output threshold value) (BIN 16/32 bits)

: Input value to be controlled by the upper and lower limit control (BIN 16/32 bits)

: Head number of the devices where the output value controlled by the upper and lower limit control will be

stored (BIN 16/32 bits)

U \G Zn Constants

K, H Other Bit Word Bit Word

R, ZR J \

7.13 Data Control Instructions 7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))

Function

LIMIT

(1) Controls the output value to be stored at the device designated by by checking whether the input value (BIN 16 bits) designated by is within the range of upper and lower limit values specified by and or not. Output value is controlled in the way shown below:

S1 S2

  • When ....................

S1 Lower limit value S3 Input value S1 Lower limit value D Output value

S2 Upper limit value S3 Input value S2 Upper limit value D Output value

  • When ....................
  • When .........

S1 Lower limit value S3 Input value S2 Upper S3 Input value D Output value

Output value ( ) D

Value designated by S2

Value designated by S1

Input value( ) S3

(2) Values in the range from 32768 and 32767 can be designated at , , and .

S1 S2 S3

Settng · Internal Devices · Data

Page 690 of the Mitsubishi Electronics QCPU user manual — S2 S2
Page 690 · click to enlarge
Page 690

LIMIT(P),DLIMIT(P)

(3) When control based only on upper limit values is performed, the lower limit value designated

at is set at " 32678".

(4) When control based only on lower limit values is performed, the upper limit value designated

at is set at "32767".

DLIMIT

(1) The function controls the output value to be stored at the device designated by ( , +1) by

D D

checking whether the input value (BIN 32 bits) designated by ( , +1) is within the range

Mitsubishi Electronics QCPU — D D diagram (page 690)
Fig. 1135

of upper and lower limit values specified by ( , +1) and ( , +1) or not.

Lower limit value Input value Upper limit value Input value Output value

(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of 2147483648 to 2147483647.

S1 S1 S2 S2 S3 S3

(3) To perform controls based only on the upper limit value, set the lower limit value designated

by ( , +1) to " 2147483648".

S1 S1

(4) To perform controls based only on the lower limit value, set the upper limit value designated

by ( , +1) to "2147483647".

S2 S2

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The lower limit value designated by is larger than the upper limit value designated by
. (Error code4100)
Page 691 of the Mitsubishi Electronics QCPU user manual — Example
Page 691 · click to enlarge
Page 691

LIMIT(P),DLIMIT(P)

Program Example

(1) The following program conducts limit controls from 500 to 5000 on the data set as BCD

values from X20 to X2F, and stores the result at D1 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — LIMIT(P),DLIMIT(P) diagram (page 691)
Fig. 1136
  • D1 becomes 500 if D0 500.

Example

D0 400 D1 500

  • D1 becomes the value of D0 when 500 D0 5000.

Example

D0 1300 D1 1300

  • D1 becomes 5000 when 5000 D0.

Example

D0 9600 D1 5000

(2) The following program conducts limit value controls from 10000 to 1000000 on the data set

as BCD values from X20 to X3F when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Example diagram (page 691)
Fig. 1137 · Example

7.13 Data Control Instructions 7.13.1 Upper and lower limit controls for BIN 16-bit and BIN 32-bit data (LIMIT(P),DLIMIT(P))

  • (D11, D10) become 10000 if (D1, D0) are less than 10000.
  • (D11, D10) become the value of (D1, D0) if 10000 (D1, D0) 1000000.
  • (D11, D10) become 1000000 if 1000000 (D1, D0).

[Operation]

Page 692 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 692 · click to enlarge
Page 692

BAND(P),DBAND(P)

7.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))

BAND(P),DBAND(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — BAND(P),DBAND(P) diagram (page 692)
Fig. 1138

: Lower limit value of dead band (no output band) (BIN 16/32 bits)

: Upper limit value of dead band (no output band) (BIN 16/32 bits)

: Input value to be controlled by a dead band control (BIN 16/32 bits)

: Head number of the devices where the output value controlled by the dead band control will be stored

Mitsubishi Electronics QCPU — BAND(P),DBAND(P) diagram (page 692)
Fig. 1139

BAND

(1) Controls the output value to be stored at the device designated by by checking whether

the input value (BIN 16 bits) designated by is within the range of dead band upper and

lower limit values specified by and or not. Output value is controlled in the way shown below:

S1 S2

Mitsubishi Electronics QCPU — S1 S2 diagram (page 692)
Fig. 1140

S1 Lower limit value S3 Input value S3 Input value S1 Lower D Output value

S2 Upper limit value S3 Input value S3 Input value S2 Upper D Output value

S1 Lower limit value S3 Input value S2 Upper D Output value

(2) The values that can be designated by , , and are in the range of from 32768 to 32767.

(BIN 16/32 bits)

Page 693 of the Mitsubishi Electronics QCPU user manual — S1 S1 S2 S2 S3 S3
Page 693 · click to enlarge
Page 693

BAND(P),DBAND(P)

(3) The output value stored at is a signed 16-bit BIN value. Therefore, if the operation results exceed the range of from 32768 to 32767, the following will take place:

WhenDead band lower limit value .................10

Input value 32768

Output value 32768 10 8000H AH 7FF6H 32758

DBAND

(1) Controls the output value to be stored at the device designated by by checking whether

the input value (BIN 32 bits) designated by ( , +1) is within the range of dead band upper

S3 S3

and lower limit values specified by ( , +1) and ( , +1) or not.

S1 S1 S2 S2

Output value is controlled in the way shown below:

Mitsubishi Electronics QCPU — S1 S1 S2 S2 diagram (page 693)
Fig. 1141

+1 S3 S3 +1 S2 S2 +1 S2 S2

Lower limit value Input value Upper limit value Output value

S1 Dead band lower limit value ( , +1) S1

S2 Dead band upper limit value ( , +1) S2

(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of from 2147483648 to 2147483647.

S1 S1 S2 S2 S3 S3

Mitsubishi Electronics QCPU — S1 S1 S2 S2 S3 S3 diagram (page 693)
Fig. 1142

7.13 Data Control Instructions 7.13.2 BIN 16-bit and 32-bit dead band controls (BAND(P),DBAND(P))

(3) The output value stored at , +1 is a signed 32-bit BIN value. Therefore, if the operation results exceed the range of from 2147483648 to 2147483647, the following takes place:

WhenDead band lower limit value ( , +1).....1000

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

  • The lower limit value designated by is greater than the upper limit value designated by
Page 694 of the Mitsubishi Electronics QCPU user manual — Example
Page 694 · click to enlarge
Page 694

BAND(P),DBAND(P)

Program Example

(1) The following program performs the dead band control by applying the lower and upper

limits of 0 and 1000 for the data set in BCD at X20 to X2F and stores the result of control at D1 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — BAND(P),DBAND(P) diagram (page 694)
Fig. 1143
  • "0" is stored at D1 if 0 D0 1000.

Example

D0 500 D1 0

  • The value of (D0) 1000 is stored at D1 if 1000 D0.

Example

D0 7000 D1 6000

(2) The following program performs the dead band control by applying the lower and upper

limits of 10000 and 10000 for the data set at D0 and D1 and stores the result of control at D10 and D11 when X0 is turned ON

[Ladder Mode] [List Mode]

  • The value (D1, D0) ( 10000) is stored at (D11, D10) if (D1, D0) ( 10000).

Example

(D1, D0) 12345 (D11, D10) 2345

  • The value 0 is stored at (D11, D10) if 10000 (D1, D0) 10000.

Example

(D1, D0) 6789 (D11, D10) 0

  • The value (D1, D0) 10000 is stored at (D11, D10) if 10000 (D1, D0).

Example

(D1, D0) 50000 (D11, D10) 40000

[Operation] · Step Instruction Device · [Operation]

Page 695 of the Mitsubishi Electronics QCPU user manual — ZONE(P),DZONE(P)
Page 695 · click to enlarge
Page 695

ZONE(P),DZONE(P)

7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))

ZONE(P),DZONE(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ZONE(P),DZONE(P) diagram (page 695)
Fig. 1144

: Negative bias value to be added to an input value (BIN 16/32 bits)

: Positive bias value to be added to an input value (BIN 16/32 bits)

: Input value used for a zone control (BIN 16/32 bits)

: Head number of the devices where the output value controlled by the zone control will be stored

(BIN 16/32 bits).

Mitsubishi Electronics QCPU — ZONE(P),DZONE(P) diagram (page 695)
Fig. 1145

7.13 Data Control Instructions 7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))

(1) Adds bias value designated by or to input value designated by , and stores at

S3 Input value S3 Input value S1 Negative bias value D Output value

S3 Input value S3 Input value S2 Positive bias value D Output value

Page 696 of the Mitsubishi Electronics QCPU user manual — D D
Page 696 · click to enlarge
Page 696

ZONE(P),DZONE(P)

(2) The values that can be designated by , , and are in the range of from 32768 to 32767.

S1 S2 S3

(3) The output value stored at is a signed 16-bit BIN value. Therefore, if the operation results exceed the range of 32768 to 32767, the following will take place:

WhenNegative bias value .............................. 100

Input value 32768

Output value 32768 + ( 100) 8000H + FF9C 7F9CH 32668

DZONE

(1) Adds bias value designated by ( , +1) or ( , +1) to input value designated by ( ,

S1 S1 S2 S2 S3

+1), and stores the result at device number designated by ( , +1).

S3 D D

Addition of the bias value is performed as follows:

Mitsubishi Electronics QCPU — S3 D D diagram (page 696)
Fig. 1146

(2) The values designated by ( , +1), ( , +1), or ( , +1) are within the range of from 2147483648 to 2147483647.

S1 S1 S2 S2 S3 S3

(3) The value stored at ( , +1) is a signed 32-bit BIN value.

D D

Therefore, if the operation results exceed the range of from 2147483648 to 2147483647, the following takes place:

Mitsubishi Electronics QCPU — D D diagram (page 696)
Fig. 1147
WhenNegative bias value ( , +1).................. 1000

Output value 2147483648 + ( 1000) 80000000H + FFFFFC18H

(1) There are no operation errors associated with the ZONE(P) or DZONE(P) instructions.

Page 697 of the Mitsubishi Electronics QCPU user manual — Example
Page 697 · click to enlarge
Page 697

ZONE(P),DZONE(P)

Program Example

(1) The following program performs zone control by applying negative and positive bias values

of 100 to 100 for the data set at D0 and stores the result of control at D1 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — ZONE(P),DZONE(P) diagram (page 697)
Fig. 1148
  • The value (D0) + ( 100) is stored at D1 if D0 0.

Example

D0 200 D1 300

  • The value 0 is stored at D1 if D0 0.
  • The value of (D0) + 100 is stored at D1 if 0 D0.

Example

D0 700 D1 800

(2) The following program performs zone control by applying negative and positive bias values

of 10000 to 10000 for the data set at D0 and D1 and stores the result of control at D10 and D11 when X1 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Example diagram (page 697)
Fig. 1149 · Example

7.13 Data Control Instructions 7.13.3 Zone control for BIN 16-bit and BIN 32-bit data (ZONE(P),DZONE(P))

  • The value (D1, D0) + ( 10000) is stored at (D11, D10) if (D1, D0) 0.
  • The value 0 is stored at (D11, D10) if (D1, D0) 0.
  • The value (D1, D0) + 10000 is stored at (D11, D10) if 0 (D1, D0).

[Operation] · Step Instruction Device

Page 698 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 698 · click to enlarge
Page 698

(SCL(P),DSCL(P))

7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))

(SCL(P),DSCL(P))

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — (SCL(P),DSCL(P)) diagram (page 698)
Fig. 1150

: Input values for scaling or head number of the device where input values are stored(BIN 16/32 bits)

: Head number of the devices where scaling conversion data are stored(BIN 16/32 bits)

: Head number of the devices where output values depending on scaling are stored(BIN 16/32 bits).

SCL(P)

(1) This instruction executes scaling for the scaling conversion data (16-bit data units) specified

by with the input value specified by , and then stores the operation result into the

S2 S1

devices specified by . The scaling conversion is executed based on the scaling conversion data stored in the

Mitsubishi Electronics QCPU — S2 S1 diagram (page 698)
Fig. 1151

Operable range Operation error Operation error ※n indicates the number of coordinates

(2) If the value does not result in an integer, this instruction rounds the value to the whole

number.

(3) Set the X coordinate of the scaling conversion data in ascending order.

(4) Set the input value within the range of the scaling conversion data (within the range of devices).

S1 S2

Universal

Page 699 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 699 · click to enlarge
Page 699

(SCL(P),DSCL(P))

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point

number will be output.

(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.

DSCL(P)

(1) This instruction executes scaling for the scaling conversion data (32-bit data units) specified

by with the input value specified , and then stores the operation result into the devices

S2 S1

specified by . The scaling conversion is executed based on the scaling conversion data stored in the

device specified by and up.

Scaling conversion data component

Setting item Device assignment

Y

Number of coordinate points

Operable range Operation error

Input valueS1

Y coordinate Point 2

Point n-1

S2 , +4n-1 S2 +4n-2

Y coordinate Point n

S2 , +4n+1 S2 +4n

※n indicates the number of coordinates

specified by (S2).

(2) If the value does not result in an integer, this instruction rounds the value to the whole

number.

(3) Set the X coordinate of the scaling conversion data in ascending order.

(4) Set the input value within the range of the scaling conversion data (within the range of

S1 S2

and +1 devices).

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point

number will be output.

7.13 Data Control Instructions 7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))

(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.

Show 16 more labels / short text on this page
, · X coordinate · , · Operation · Point 1 · error · Y coordinate · , · X coordinate · , · , +9 · Output value: · Point n · X coordinate · Point 1 · Point 2
Page 700 of the Mitsubishi Electronics QCPU user manual — S1 S1
Page 700 · click to enlarge
Page 700

(SCL(P),DSCL(P))

(1) There are two searching methods that depend on whether SM750 is on or off.

SM750 Searching method Range of number of searches

OFF Sequential search 1 Number of times 32767

ON Binary search 1 Number of times 15

(2) When the scaling conversion data are set in ascending order, the searching

methods change from one to the other depending on the SM750 status. Therefore, the processing speed also changes. The number of searches determines the processing speed. Fewer number of serches make the processing run faster. (a) If the data processing speed with the sequential search rises:

If the number of coordinates is highest and the input value is within the coordinate range from 1 to 15 point, the number of sequential searches will be 15 or smaller. Therefore, the data processing speed with the sequential search will rise. (b) If the data processing speed with the binary search rises:

f the maximum number of searches is 15 and the input value is out of the coordinate range, 16 or over, the number of binary searches will be equal to the number of sequential numbers or smaller. Therefore, the data processing speed with the binary search will rise.

Number of coordinate points=32767 Number of sequential searches=32767 Number of binary searches=15

The processing speed with binary search rises since the number of binary searches is smaller than the number of sequential searches.

S1 S1

Number of sequential searches=1 Number of binary searches=15

The processing speed with sequential searches rises since the number of binary searches is larger than the number of sequential searches.

Page 701 of the Mitsubishi Electronics QCPU user manual — D110 K22
Page 701 · click to enlarge
Page 701

(SCL(P),DSCL(P))

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The X coordinates of the scaling conversion data positioned before the point specified by

are not set in ascending order. (However, this error is not detected when SM750 is on.)

(Error code4100)
  • The input value specified by is out of the range of the scaling conversion data set. (Error code: 4100)
  • The number of X and Y coordinates of the device specified by is out of the range from 1 to 32767. (Error code: 4100)
  • The number of X and Y coordinates of the device specified by is out of the specified range. (Error code: 4101)

Program Example

(1) The following program executes scaling for the scaling conversion data of which the devices

specified at D100 and up are set with the input value specified at D0, and then outputs the data at D20.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 701)
Fig. 1152 · Program Example

7.13 Data Control Instructions 7.13.4 Scaling (Point-by-point coordinate data) (SCL(P),DSCL(P))

Scaling conversion data component

Setting item Device Setting contents

Number of coordinate points

D100 K5

Y

D101 K5

D102 K13

D103 K10

Point 2 (10,15) Point 3 (17,13)

Point 1 (5,13)

D104 K15

D105 K17

D20=11 (Output value)

Point 4 (20,8)

D106 K13

Point 5 (25,4)

D107 K20

D108 K8

D109 K25

D0=18 (Output value)

D110 K22

Show 17 more labels / short text on this page
Step Instruction Device · [Operation] · X coordinate · Point 1 · Y coordinate · X coordinate · Point 2 · Y coordinate · X coordinate · Point 3 · Y coordinate · X coordinate · Point 4 · Y coordinate · X coordinate · Point 5 · Y coordinate
Page 702 of the Mitsubishi Electronics QCPU user manual — S2 S1
Page 702 · click to enlarge
Page 702

SCL2,DSCL2

7.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))

SCL2,DSCL2

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — SCL2,DSCL2 diagram (page 702)
Fig. 1153

: Input values for scaling or head number of the device where input values are stored(BIN 16/32 bits)

: Head number of the devices where scaling conversion data are stored(BIN 16/32 bits)

: Head number of the devices where output values depending on scaling are stored(BIN 16/32 bits).

SCL2

(1) This instruction executes scaling for the scaling conversion data (16-bit data units) specified

by with the input value specified by , and then stores the operation result into the

S2 S1

devices specified by . The scaling conversion is executed based on the scaling conversion data stored in the

Mitsubishi Electronics QCPU — S2 S1 diagram (page 702)
Fig. 1154

(2) If the value does not result in an integer, this instruction rounds the value to the whole

number.

(3) Set the X coordinate of the scaling conversion data in ascending order.

Universal

Page 703 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 703 · click to enlarge
Page 703

SCL2,DSCL2

(4) Set the input value within the range of the scaling conversion data (within the range of devices).

S1 S2

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point

number will be output.

DSCL2(P)

(1) This instruction executes scaling for the scaling conversion data (32-bit data units) specified

by with the input value specified , and then stores the operation result into the devices

S2 S1

specified by . The scaling conversion is executed based on the scaling conversion data stored in the

Mitsubishi Electronics QCPU — S2 S1 diagram (page 703)
Fig. 1155

(2) If the value does not result in an integer, this instruction rounds the value to the whole

number.

(3) Set the X coordinate of the scaling conversion data in ascending order.

(4) Set the input value within the range of the scaling conversion data (within the range of

S1 S2

and +1 devices).

Mitsubishi Electronics QCPU — S1 S2 diagram (page 703)
Fig. 1156

(5) If some specified points have same X coordinates, the Y coordinate data of the highest point

7.13 Data Control Instructions 7.13.5 Scaling (Point-by-point coordinate data) (SCL2(P),DSCL2(P))

(6) Specify the number of coordinate points of scaling conversion data from 1 to 32767.

When the coordinates of the scaling conversion data are set in ascending order, the searching methods change from one to the other depending on the SM750 status. Therefore, the processing speed also change. The number of searches determines the processing speed. Fewer number of searches make the processing run faster. For details, refer to Section 7.13.4.

Page 704 of the Mitsubishi Electronics QCPU user manual — D119 K-11
Page 704 · click to enlarge
Page 704

SCL2,DSCL2

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The X coordinates are not set in ascending order. (Error code: 4100)
  • The input value specified by is out of the range of the scaling conversion data set. (Error code: 4100)
  • The number of X and Y coordinates of the device specified by is out of the range from 1 to 32767. (Error code: 4100)
  • The number of X and Y coordinates of the device specified by is out of the specified range. (Error code: 4101)

Program Example

(1) The following program executes scaling for the scaling conversion data of which the devices

specified at D100 and up are set with the input value specified at D0, and then outputs the data at D20.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 704)
Fig. 1157 · Program Example

Scaling conversion data component

Setting item Device Setting contents

Number of coordinate points

D110 K5

Y

D111 K7

D112 K13

D113 K15

D114 K18

Point 2 (13, -7)

Point 4 (18, -11)

D115 K20

D116 K-14

D200=-9 (Output value)

Point 3 (15, -9) Point 5 (20, -13)

D117 K-7

D118 K-15

Point 1 (7, -14)

D119 K-11

D120 K-18

Show 15 more labels / short text on this page
Step Instruction Device · [Operation] · Point 1 · Point 2 · D0=11 (Input value) · X coordinate · Point 3 · Point 4 · Point 5 · Point 1 · Y coordinate · Point 2 · Point 3 · Point 4 · Point 5
Page 705 of the Mitsubishi Electronics QCPU user manual — File register used after the execution of RSET instruction ( )
Page 705 · click to enlarge
Page 705

RSET(P)

7.14 File register switching instructions

7.14.1 Switching file register numbers (RSET(P))

RSET(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — RSET(P) diagram (page 705)
Fig. 1158

: Block number data used to change the block number or the number of the device where the block number

data is stored (BIN 16 bits)

Mitsubishi Electronics QCPU — RSET(P) diagram (page 705)
Fig. 1159

(1) Changes the file register block number used in the program to the block number stored in

Mitsubishi Electronics QCPU — RSET(P) diagram (page 705)
Fig. 1160

the device designated at . Following the block number change, all file registers used in the sequence program are processed to the file register of the block number after the change.

7.14 File register switching instructions 7.14.1 Switching file register numbers (RSET(P))

When switching block number from block No. 0 to block No. 1

File register used after the execution of RSET instruction ( )

When a file register (R) is refreshed and the block No. of the file register is switched with the RSET instruction, follow restrictions. For the restrictions on file registers, refer to Section 3.10.

Page 706 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 706 · click to enlarge
Page 706

RSET(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The block number designated by does not exist. (Error code: 4100)
  • There is no file register for the specified block No. (Error code: 4101)

Program Example

(1) The following program compares R0 of block No. 0 and block No. 1.

Mitsubishi Electronics QCPU — Program Example diagram (page 706)
Fig. 1161 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 706)
Fig. 1162 · Program Example
Mitsubishi Electronics QCPU — Program Example diagram (page 706)
Fig. 1163 · Program Example

[Ladder Mode] · [List Mode] · [Operation]

Page 707 of the Mitsubishi Electronics QCPU user manual — File name of the presently used file register ( )
Page 707 · click to enlarge
Page 707

QDRSET(P)

7.14.2 Setting files for file register use (QDRSET(P))

QDRSET(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — QDRSET(P) diagram (page 707)
Fig. 1164

: Character string data of the drive No./file name in which the file register is set, or head number of the devices

where the character string data is stored (character string)

Mitsubishi Electronics QCPU — QDRSET(P) diagram (page 707)
Fig. 1165

(1) Changes the file register file name used in the program to the file name being stored at the

device designated by .

After the file names have been changed, all the file registers being used by the sequence program process the file register of the block No. 0 of the renamed file. Block number switches are performed by the RSET instruction.

Mitsubishi Electronics QCPU — QDRSET(P) diagram (page 707)
Fig. 1166

7.14 File register switching instructions 7.14.2 Setting files for file register use (QDRSET(P))

When switching from Drive No. 1/File name B to Drive No. 3/File name A

File name of the presently used file register ( )

File name of file register used after the execution of QDRSET instruction ( )

Page 708 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 708 · click to enlarge
Page 708

QDRSET(P)

(2) Drive number can be designated from 1 to 4.

(The drive number cannot be designated as drive 0 (program memory/internal memory).) Note that available drives vary depending on the CPU module used. Refer to the manual of the CPU module and check the drives that can be specified.

(3) It is not necessary to designate the extension (.QDR) with the file name.

(4) A file name setting can be deleted by designating the NULL character (00H) for the file

name.

(5) File names designated with this instruction will be given priority even if a drive number and

file name have been designated in the parameters.

1. If the file name is changed with the QDRSET instruction, the file name returns to the name specified by the parameter when the CPU module is switched from STOP to RUN. To maintain the file name even after the CPU mode is changed from STOP to RUN, execute the QDRSET instruction with the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to RUN mode. 2. For refreshing a file register, do not change the file name of the file register with the QDRSET instruction. For restrictions on file registers, refer to Section 3.10.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • File name does not exist at the drive number designated by . (Error code: 2410) S
Page 709 of the Mitsubishi Electronics QCPU user manual — QDRSET(P)
Page 709 · click to enlarge
Page 709

QDRSET(P)

Program Example

(1) The following program compares R0 of ABC in block No. 1 and R0 of DEF in block No. 1.

Mitsubishi Electronics QCPU — QDRSET(P) diagram (page 709)
Fig. 1167
Mitsubishi Electronics QCPU — QDRSET(P) diagram (page 709)
Fig. 1168

7.14 File register switching instructions 7.14.2 Setting files for file register use (QDRSET(P))

[Ladder Mode] · [List Mode]

Page 710 of the Mitsubishi Electronics QCPU user manual — Example
Page 710 · click to enlarge
Page 710

QCDSET(P)

7.14.3 File setting for comments (QCDSET(P))

QCDSET(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — QCDSET(P) diagram (page 710)
Fig. 1169

: Character string data of the drive No./file name in which the comment file is set, or head number of the

devices where the character string data is stored (character string)

Mitsubishi Electronics QCPU — QCDSET(P) diagram (page 710)
Fig. 1170

(1) Changes the file register file name used in the program to the file name being stored at the

device designated by .

After the file name change, comment data being used by the sequence program perform processing in relation to the comment data of the file name after the change.

Example

When switching from Drive No. 1/File name B to Drive No. 3/File name A

Mitsubishi Electronics QCPU — Example diagram (page 710)
Fig. 1171 · Example

File name of file register used after the execution of QCDSET instruction ( ) ( )

(2) Drive number can be designated from 1 to 4.

(The drive number cannot be designated as drive 0 (program memory/internal memory).) Note that available drives vary depending on the CPU module used. Refer to the manual of the CPU module and check the drives that can be specified.

(3) It is not necessary to designate the extension (.QCD) with the file name.

Page 711 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 711 · click to enlarge
Page 711

QCDSET(P)

(4) A file name setting can be deleted by designating the NULL character (00H) for the file

name.

(5) File names designated with this instruction will be given priority even if a drive number and

file name have been designated in the parameters.

(6) This instruction cannot be executed while SM721 is ON for the Universal model QCPU. No

operation if executed.

If the file name is changed with the QCDSET instruction, the file name returns to the name specified by the parameter when the CPU module is switched from STOP to RUN. To maintain the file name even after the CPU mode is changed from STOP to RUN, execute the QCDSET instruction with the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to RUN mode.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • File name does not exist at the drive number designated by . (Error code: 2410)

Program Example

(1) The following program switches object file to file name ABC. QCD at drive No. 0 when X0 is

ON, and to DEF. QCD at drive No. 1 when X1 is ON.

Mitsubishi Electronics QCPU — Program Example diagram (page 711)
Fig. 1172 · Program Example

7.14 File register switching instructions 7.14.3 File setting for comments (QCDSET(P))

(1) This instruction will not be executed even when the execution command of this instruction is

ON while SM721 (file access in execution) is ON for the Universal model QCPU only. Execute this instruction when SM721 is OFF.

Page 712 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 712 · click to enlarge
Page 712

DATERD(P)

7.15 Clock instructions

7.15.1 Reading clock data (DATERD(P))

DATERD(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DATERD(P) diagram (page 712)
Fig. 1173

: Head number of the devices where the read clock data will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Reads "year, month, day, hour, minute, second, and day of week" from the clock element of

the CPU module and stores it as BIN value to the device designated by or later device.

Mitsubishi Electronics QCPU — DATERD(P) diagram (page 712)
Fig. 1174

(1980 to 2079) (1 to 12) (1 to 31) +3 (0 to 23) +4 (0 to 59) +5 (0 to 59) +6 (0 to 6)

(2) The "year" at is stored as 4-digit year indication.

(3) The "day of week" at +6 is stored as 0 to 6 to represent the days Sunday to Saturday.

Day of week Sun Mon Tue Wed Thu Fri Sat

Stored data 0 1 2 3 4 5 6

(4) Compensation is made automatically for leap years.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 713 of the Mitsubishi Electronics QCPU user manual — DATERD(P)
Page 713 · click to enlarge
Page 713

DATERD(P)

Program Example

(1) The following program outputs the following clock data as BCD values:

Year Y70 to Y7F Month Y68 to Y6F Day Y60 to Y67 Hour Y58 to Y5F Minute Y50 to Y57 Second Y48 to Y4F Week Y44 to Y47

Mitsubishi Electronics QCPU — DATERD(P) diagram (page 713)
Fig. 1175
Mitsubishi Electronics QCPU — DATERD(P) diagram (page 713)
Fig. 1176

7.15 Clock instructions 7.15.1 Reading clock data (DATERD(P))

[Ladder Mode]

Page 714 of the Mitsubishi Electronics QCPU user manual — S S S S S S S
Page 714 · click to enlarge
Page 714

DATEWR(P)

7.15.2 Writing clock data (DATEWR(P))

DATEWR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DATEWR(P) diagram (page 714)
Fig. 1177

: Head number of the devices where clock data to be written into the clock device is stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Writes clock data stored in the device number designated by or later device number to the clock element of the CPU module.

S

+1 +2 +3 +4 +5 +6

Hour Minute Second Day of week

(2) Each item is set as a BIN value.

(3) The "year" at is designated by using four-digit year indication between 1980 to 2079.

(4) +1 designates the "month" in values of from 1 to 12 (January to December).

(5) +2 designates the "day" in values of from 1 to 31.

(6) +3 designates the "hour" in values of from 0 to 23 (using 24-hour clock, from 0 hours to 23 hundred hours). (Uses the 24-hour clock.)

(7) +4 designates the "minute" in values of from 0 to 59.

Mitsubishi Electronics QCPU — S S S S S S S diagram (page 714)
Fig. 1178

(8) +5 designates the "second" in values of from 0 to 59.

(9) +6 designates the "day of week" in values of from 0 to 6 (Sunday to Saturday).

Day of week Sun Mon Tue Wed Thu Fri Sat

Stored data 0 1 2 3 4 5 6

Year Month · Day · Clock element

Page 715 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 715 · click to enlarge
Page 715

DATEWR(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Individual items of data have been set outside the setting range.
(Error code4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Program Example

(1) The following program writes the following clock data to the clock element as BCD values

when X40 is turned ON.

Year X30 to X3F Hour X18 to X1F Month X28 to X2F Minute X10 to X17 Day X20 to X27 Second X8 to XF Week X4 to X7

Mitsubishi Electronics QCPU — Program Example diagram (page 715)
Fig. 1179 · Program Example

7.15 Clock instructions 7.15.2 Writing clock data (DATEWR(P))

Writes the clock data (D0 to D6) to the clock element

2 0 0 0 X3F X38 X37 X30 (Year)

1 2 2 4 X2F X28 X27 X20 (Month, Day)

3 9 0 XF X8 X7 X4 (Second, Day of week)

[Ladder Mode]

Page 716 of the Mitsubishi Electronics QCPU user manual — D D
Page 716 · click to enlarge
Page 716

DATE+(P)

7.15.3 Clock data addition operation (DATE+(P))

DATE+(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DATE+(P) diagram (page 716)
Fig. 1180

: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)

: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)

: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Adds the time data designated by to the clock data designated by , and stores the

S2 S1

result into the area starting from the device designated by .

Mitsubishi Electronics QCPU — S2 S1 diagram (page 716)
Fig. 1181

(0 to 23) (0 to 59) (0 to 59)

(0 to 23) (0 to 59) (0 to 59)

For example, adding the time 7:48:10 to 6:32:40 would result in the following operation:

D S2 S1

Hour6 Minute: 32 Second: 40
Hour7 Minute: 48 Second: 10
Hour14 Minute: 20 Second: 50

+1 +2 +1 +2

D D

(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the

sum to make the final operation result.

For example, if the time 20:20:20 were added to 14:20:30, the result would not be 34:40:50, but would instead be 10:40:50.

D S2 S1

Hour14 Minute: 20 Second: 30
Hour20 Minute: 20 Second: 20
Hour10 Minute: 40 Second: 50

+1 +2 +1 +2

D D

Remark

See 7.15.2 for further information regarding the data that can be set for hours, minutes, and seconds.

+1 · +2 · +1 +2

Page 717 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 717 · click to enlarge
Page 717

DATE+(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data set by and is outside the setting range. (Error code: 4100)

S1 S2

  • The device specified by or or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

S1 S2 D

Program Example

(1) The following program adds 1 hour to the clock data read from the clock element, and stores

the results in the area starting from D100 when X20 is ON.

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 717)
Fig. 1182

Reads data in the clock element to D0 or later

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 717)
Fig. 1183

7.15 Clock instructions 7.15.3 Clock data addition operation (DATE+(P))

  • Time data read operation triggered by DATERDP instruction.

[Ladder Mode] · [List Mode]

Page 718 of the Mitsubishi Electronics QCPU user manual — D D D
Page 718 · click to enlarge
Page 718

DATE-(P)

7.15.4 Clock data subtraction operation (DATE-(P))

DATE-(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DATE-(P) diagram (page 718)
Fig. 1184

: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)

: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)

: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Subtracts the time data designated by from the clock data designated by , and stores

S2 S1

the result into the area starting from the device designated by .

Mitsubishi Electronics QCPU — S2 S1 diagram (page 718)
Fig. 1185

(0 to 23) (0 to 59) (0 to 59)

(0 to 23) (0 to 59) (0 to 59)

For example, if the clock time 3:50:10 were subtracted from the clock time 10:40:20, the operation would be performed as follows:

Hour10 Minute: 40 Second: 20 +1 +2
Hour3 Minute: 50 Second: 10 +1 +2

D D D

Hour6 Minute: 50 Second: 10 +1 +2

(2) If the subtraction results in a negative number, 24 will be added to the result to make a final

operation result.

For example, if the clock time 10:42:12 were subtracted from 4:50:32, the result would not

Mitsubishi Electronics QCPU — D D D diagram (page 718)
Fig. 1186

See 7.15.2 for further information regarding the data that can be set for hours, minutes, and seconds.

Page 719 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 719 · click to enlarge
Page 719

DATE-(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data set by and is outside the setting range. (Error code: 4100)

S1 S2

  • The device specified by or or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

S1 S2 D

Program Example

(1) The following program subtracts the time data stored in devices starting from D10 from the

clock data read from the clock element when X1C is turned ON, and stores the result at devices starting from R10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 719)
Fig. 1187
  • Time data read operation triggered by DATERDP instruction.
Mitsubishi Electronics QCPU — S1 S2 D diagram (page 719)
Fig. 1188

7.15 Clock instructions 7.15.4 Clock data subtraction operation (DATE-(P))

  • Subtraction as triggered by DATE-P instruction (when 10 hours, 40 minutes, and 10

[Operation]

Page 720 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 720 · click to enlarge
Page 720

SECOND(P)

7.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))

SECOND(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — SECOND(P) diagram (page 720)
Fig. 1189

: Head number of the devices where the clock data before conversion is stored (BIN 16 bits)

: Head number of the devices where the clock data after conversion will be stored (BIN 32 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Converts the time data stored in the area starting from the device designated by to

seconds and stores the conversion result into the device designated by .

+1 S D

(0 to 23) (0 to 59)

For example, if the value were 4 hours, 29 minutes, and 31 seconds, the conversion would be made as follows:

1 D S S S

4 29 31 16171

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data set by and is outside the setting range. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Show 9 more labels / short text on this page
D Data range · Hour Minute · +1 · Second · +2 · Second · (0 to 59) · +1 · +2
Page 721 of the Mitsubishi Electronics QCPU user manual — 20 21 23 D14 D15
Page 721 · click to enlarge
Page 721

SECOND(P)

Program Example

(1) The following program converts the clock time data read from the clock element into second

when X20 is turned ON, and stores the result at D100 and D101.

[Ladder Mode] [List Mode]

  • Time data read operation triggered by DATERDP instruction.
Mitsubishi Electronics QCPU — SECOND(P) diagram (page 721)
Fig. 1190
  • Conversion to seconds as triggered by the SECONDP instruction.

20 21 23 D14 D15

D101,D100

Mitsubishi Electronics QCPU — 20 21 23 D14 D15 diagram (page 721)
Fig. 1191

7.15 Clock instructions 7.15.5 Time data conversion (from Hour/Minute/Second to Second) (SECOND(P))

Step Instruction Device · [Operation]

Page 722 of the Mitsubishi Electronics QCPU user manual — HOUR(P)
Page 722 · click to enlarge
Page 722

HOUR(P)

7.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))

HOUR(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — HOUR(P) diagram (page 722)
Fig. 1192

: Head number of the devices where clock data before conversion is stored (BIN 32 bits)

: Head number of the devices where the clock data after conversion will be stored (BIN 16 bits)

(1) Converts the data in seconds stored in the device number designated by to an hour/ minute/second format, and stores the conversion result into the area starting from the device

designated by .

Mitsubishi Electronics QCPU — HOUR(P) diagram (page 722)
Fig. 1193

(0 to 23) (0 to 59) (0 to 59)

For example, if 45325 seconds were the value designated, the conversion operation would be conducted as follows:

Mitsubishi Electronics QCPU — HOUR(P) diagram (page 722)
Fig. 1194

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data set by and is outside the setting range. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)
Page 723 of the Mitsubishi Electronics QCPU user manual — 11 6 40 D101 D102
Page 723 · click to enlarge
Page 723

HOUR(P)

Program Example

(1) The following program converts the seconds stored at D0 and D1 into an hour, minute,

second format, and stores the result at devices starting from D100 when X20 is turned ON.

[Ladder Mode] [List Mode]

[Operation] • Conversion to hour minute, and second format by the HOURP instruction (when the value

40000 seconds has been designated by D1 and D0).

11 6 40 D101 D102

40000 D1,D0

7.15 Clock instructions 7.15.6 Time data conversion (from Second to Hour/Minute/Second ) (HOUR(P))

Step Instruction Device

Page 724 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 724 · click to enlarge
Page 724

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

7.15.7 Date comparison (DT=,DT<>,DT>,DT<=,DT<,DT>=)

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

Mitsubishi Electronics QCPU — (DT=,DT<>,DT>,DT<=,DT<,DT>=) diagram (page 724)
Fig. 1195

: Head number of the devices where the data to be compared are stored (BIN 16 bits)

: Head number of the devices where the data to be compared are stored (BIN 16 bits) n : Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)

Mitsubishi Electronics QCPU — (DT=,DT<>,DT>,DT<=,DT<,DT>=) diagram (page 724)
Fig. 1196

(1) This instruction compares the date data specified by with those specified by , or the

S1 S2

date data specified by with current date data. Setting n can determine the data to be compared.

(a) Comparison of given date data

  • This instruction treats the date data specified by and as a normally open contact, and then compares the data in accordance with the value of n.

S1 S2

(1980~2079)

(1980~2079)

operator (1~12)

(1~12)

(1~31) +2

(1~31)

(b) Comparison of current date data

  • This instruction treats the date data specified by and the current date data as a normally open contact, and then compares the data in accordance with the value of n.

(1980~2079)

operator (1~12)

operation result Current date

(1~31) +2

Show 18 more labels / short text on this page
Universal · Data range · Data range · Year · Year · Comparison · Comparison · Month · Month · operation result · Day · Day +2 · Data range · Year · Comparison · Comparison · Month · Day
Page 725 of the Mitsubishi Electronics QCPU user manual — S1 S2
Page 725 · click to enlarge
Page 725

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

When either or corresponds to any of the following in comparing given or current date data with given date data, the operation error (error code: 4101) or a malfunction may occurs.

S1 S2

  • The range of the devices to be used for the index modification is specified over

the range of the device specified by or .

S1 S2

  • File registers are specified by or without a register set.

S1 S2

(2) This instruction sets BIN values for each item.

(3) This instruction sets the year of four digits selected from 1980 to 2079 with the BIN value

specified by or .

S1 S2

(4) This instruction sets the month selected from 1 to 12 (January to December) with the BIN

value specified by +1 or +1.

S1 S2

(5) This instruction sets the day selected from 1 to 31 (1st to 31st) for with the BIN value

specified by +2 or +2.

S1 S2

(6) This instruction specifies the following values at n so that the data to be compared can be

specified. The bit configuration specified at n is as follows.

This instruction specifies 0 at bits from 3rd to 14th. The instruction will be non-conductive status without specifying 0 regardless of the operation result.

b15 b14 b3 b2 b1 b0

0/1 0 0/1 0/1 0/1

If this instruction specifies 1 (on) at 15th bit, the instruction compares S1 with the current date in accordance with the bit condition specified at 0 to 2nd bit.

7.15 Clock instructions 7.15.7 Date comparison (DT=,DT,DT>,DT

(a) Date data to be compared (from 0 to 2nd bit)

  • 0: Does not compare specified date data (year/month/day).
  • 1: Compares specified date data (year/month/day).

(b) Operation data to be compared (15th bit)

  • 0: Compares the date data specified by with the date data specified by .

S1 S2

  • 1: Compares the date data specified by with the current date data.
  • Ignores the date data specified by .

Day · Month · Year

Page 726 of the Mitsubishi Electronics QCPU user manual — S1 S1 S2 S2
Page 726 · click to enlarge
Page 726

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

(c) The following table shows processing details of bits to be compared.

Mitsubishi Electronics QCPU — (DT=,DT<>,DT>,DT<=,DT<,DT>=) diagram (page 726)
Fig. 1197

0001H 8001H Day Comparison of days ( +2)

0002H 8002H Month Comparison of months ( +1)

0003H 8003H Month, day Comparison of months ( +1) and days ( +2)

0004H 8004H Year Comparison of years ( )

0005H 8005H Year, day Comparison of years ( ) and days ( +2)

0006H 8006H Year, month Comparison of years ( ) and months ( +1)

0007H 8007H Year, month, day Comparison of years ( ), months ( +1),

Other than 0001H to 0007H,8001H to 8007H No objects No comparison of years ( ), months ( +1),

(7) If the data stored in the devices to be compared are not recognized as date data, SM709 will

be turned on after the instruction execution and no-conductive status will be made. Even if they are not recognized as date data but the range of the devices is within the setting range, SM709 will not be turned on.

Moreover, if the range of devices specified by to +2 or to +2 exceeds the range of specified devices, SM709 will be turned on after the instruction execution and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till when the CPU modules are reset or powered off. Therefore, turn off SM709 if necessary.

S1 S1 S2 S2

(8) The following table shows the comparison operation results for each instruction.

Mitsubishi Electronics QCPU — S1 S1 S2 S2 diagram (page 726)
Fig. 1198
Page 727 of the Mitsubishi Electronics QCPU user manual — A
Page 727 · click to enlarge
Page 727

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

(a) The following figure shows the comparison example of dates.

A

B

2009/1/1 2008/1/1 2007/1/1 2006/1/1

The following table shows the conductive states resulting from performing the comparison operation of the dates A, B, and C shown above. Even if the objects to be compared are under the same condition, the comparison

operation results vary depending on the objects selected.

Mitsubishi Electronics QCPU — A diagram (page 727)
Fig. 1199

(b) Even if the dates to be compared do not exist practically, this instruction executes the

comparison operation for the objects with the settable dates in accordance with the following condition.

  • Date A: 2006/02/30 (This date is settable, though it does not exist.)
Mitsubishi Electronics QCPU — A diagram (page 727)
Fig. 1200

7.15 Clock instructions 7.15.7 Date comparison (DT=,DT,DT>,DT

  • Date C: 2008/02/31 (This date is settable, though it does not exist.)

(2006/9/22) · (2007/6/23) · (2008/8/8)

Page 728 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 728 · click to enlarge
Page 728

(DT=,DT<>,DT>,DT<=,DT<,DT>=)

Operation Error

(1) Any operation errors do not occur in DT=,DT,DT>,DT

Program Example

(1) The following program compares the data stored in D0 with the data (year, month, and day)

stored in D10, and makes Y33 be conductive status when the data stored in D0 meet the data stored in D10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 728)
Fig. 1201 · Program Example

(2) The following program compares the data stored in D0 with the current date data (year and

month), and makes Y33 be conductive status when the data stored in D0 do not meet the current date data, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 728)
Fig. 1202 · Program Example

(3) The following program compares the data stored in D0 with the data (year and day) stored in

D10, and makes Y33 be conductive status when the data value stored in D10 is smaller than the data value stored in D0, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 728)
Fig. 1203 · Program Example

(4) The following program compares the data stored in D0 with the current date data (year), and

makes Y33 be conductive status when the value of the current date data is the data value stored in D0 or larger.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 728)
Fig. 1204 · Program Example

Step Instruction Device · Step Instruction Device · Step Instruction Device

Page 729 of the Mitsubishi Electronics QCPU user manual — (TM=,TM<>,TM>,TM<=,TM<,TM>=)
Page 729 · click to enlarge
Page 729

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

7.15.8 Clock comparison (TM=,TM<>,TM>,TM<=,TM<,TM>=)

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

Ver.

Basic Process High performance Redundant

QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.

QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 729)
Fig. 1205

indicates an instruction symbol of DT=/DT<>/DT</DT<=/DT>/DT>=.

: Head number of the devices where the data to be compared are stored (BIN 16 bits)

: Head number of the devices where the data to be compared are stored (BIN 16 bits) n : Value of the data to be compared or the number of the stored data to be compared (BIN 16 bits)

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 729)
Fig. 1206

7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM

(1) This instruction compares the clock data specified by with those specified by , or the

clock data specified by with the current time data. Setting n determines the data to be compared.

  • This instruction treats the clock data specified by and the clock data specified by

as a normally open contact, and compares the data in accordance with the value of n.

Universal

Page 730 of the Mitsubishi Electronics QCPU user manual — S1 S1
Page 730 · click to enlarge
Page 730

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

(b) Comparison of current time data

  • This instruction treats the clock data specified by and the current time data as a normally open contact, and compares the data in accordance with the value of n.
  • This instruction treats the clock data specified by as dummy data and ignores the data.

(0~23)

operator (0~59)

operation result Current time

(0~59) +2

When either or corresponds to any of the following conditions in comparing given or current time data with specified clock data, the operation error (error code: 4101) or a malfunction may occurs.

S1 S1

  • The range of the devices to be used for the index modification is specified over

the range of the device specified by or .

S1 S1

  • File registers are specified by or without a register set.

S1 S1

(2) This instructions set BIN values for each item.

(3) This instructions sets the time selected from 0 to 23 (midnight to 23 o'clock) with the BIN

value specified by or . (Uses the 24-hour clock.)

S1 S1

(4) This instructions sets the minute selected from 0 to 59 (0 to 59 minutes) with BIN value

specified by +1 or +1.

S1 S1

(5) This instructions sets the second selected from 0 to 59 (0 to 59 seconds) with BIN value

specified by +2 or +2.

S1 S1

(6) This instructions specifies the following values at n so that the data to be compared can be

specified. The bit configuration specified at n is as follows.

This instruction specifies 0 at bits from 3rd to 14th. The instruction will be non-conductive status without specifying 0 regardless of the operation result.

b15 b14 b3 b2 b1 b0

0/1 0 0/1 0/1 0/1

If this instruction specifies 1 (on) at 15th bit, the instruction compares S1 with the current date in accordance with the bit condition specified at 0 to 2nd bit.

(a) Clock data to be compared (from 0 to 2nd bit)

  • 0: Does not compare specified clock data (hour/minute/second).
  • 1: Compares specified clock data (hour/minute/second).

(b) Operation data to be compared (15th bit)

  • 0: Compares the clock data specified by with the clock data specified by .

S1 S1

  • 1: Compares the clock data specified by with the current time data.

Ignores the clock data specified by .

Show 9 more labels / short text on this page
Data range · Hour · Comparison · Comparison · Minute · Second · Second · Minute · Hour
Page 731 of the Mitsubishi Electronics QCPU user manual — S1 S1 S1 S1
Page 731 · click to enlarge
Page 731

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

(c) The following table shows processing details of bits to be compared.

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 731)
Fig. 1207

0001H 8001H Second Comparison of seconds ( +2)

0002H 8002H Minute Comparison of minutes ( +1)

0004H 8004H Hour Comparison of hours ( )

0006H 8006H Hour, minute Comparison of hours ( ) and minutes ( +1)

8001H to 8007H No objects No comparison of hours ( ), minutes ( +1),

(7) If the data stored in the devices to be compared are not recognized as date data, SM709 will

be turned on after the instruction execution and no-conductive status will be made. Once SM709 is turned on, on-status will be retained till when the CPU modules are reset or powered off. Therefore, turn off SM709 if necessary.

Moreover, if the range of devices specified by to +2 or to +2 exceeds the range of specified devices, SM709 will be turned on and no-conductive status will be made.

S1

(8) The following table shows the comparison operation results for each instruction.

Mitsubishi Electronics QCPU — S1 S1 S1 S1 diagram (page 731)
Fig. 1208

7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM

Page 732 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 732 · click to enlarge
Page 732

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

(a) The following figure shows the comparison example of time.

A

B

0 Midnight 18:00 N00n 6:00 0 Midnight

4:50:55 22:47:05

14:08:58

The following table shows the conductive states resulting from performing the comparison operation of the dates A, B, and C shown above. Even if the objects to be compared are under the same condition, the comparison

operation results vary depending on the objects selected.

Mitsubishi Electronics QCPU — A diagram (page 732)
Fig. 1209

Operation Error

(1) Any operation errors do not occur in TM=,TM,TM>,TM

Page 733 of the Mitsubishi Electronics QCPU user manual — (TM=,TM<>,TM>,TM<=,TM<,TM>=)
Page 733 · click to enlarge
Page 733

(TM=,TM<>,TM>,TM<=,TM<,TM>=)

Program Example

(1) The following program compares the data stored in D0 with the data (hour, minute, and

second) stored in D10, and makes Y33 be conductive status when the data stored in D0 meet the data stored in D10.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 733)
Fig. 1210

(2) The following program compares the data stored in D0 with the current time data (hour and

minute), and makes Y33 be conductive status when the data stored in D0 do not meet the current date data, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 733)
Fig. 1211

(3) The following program compares the data stored in D0 with the data (hour and second)

stored in D10, and makes Y33 be conductive status when the data value stored in D10 is smaller than the data value stored in D0, when M0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 733)
Fig. 1212
Mitsubishi Electronics QCPU — (TM=,TM<>,TM>,TM<=,TM<,TM>=) diagram (page 733)
Fig. 1213

7.15 Clock instructions 7.15.8 Clock comparison (TM=,TM,TM>,TM

(4) The following program compares the data stored in D0 with the current time data (hour), and

makes Y33 be conductive status when the value of the current time data is the data value stored in D0 or larger.

Step Instruction Device · Step Instruction Device · Step Instruction Device

Page 734 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 734 · click to enlarge
Page 734

S(P).DATERD

7.16 Expansion Clock Instructions

7.16.1 Reading expansion clock data (S(P).DATERD)

S(P).DATERD

Universal Ver. Process Ver. High performance

Ver.

The first 5 digits of the serial No. are "07032" or higher.

Mitsubishi Electronics QCPU — S(P).DATERD diagram (page 734)
Fig. 1214

: Head number of the devices where the read clock data will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Reads "year, month, day, hour, minute, second, day of the week, and millisecond" from the

clock element of the CPU module, and stores it as BIN value into the device specified by or later device.

Mitsubishi Electronics QCPU — S(P).DATERD diagram (page 734)
Fig. 1215

(1980 to 2079) (1 to 12) (1 to 31) +3 (0 to 23) +4 (0 to 59) +5 (0 to 59) +6 (0 to 6)

(2) The "year" at is stored as 4-digit year indication.

(3) The "day of the week" at +6 is stored as 0 to 6 to represent the days Sunday to Saturday.

Day of week Sunday Monday Tuesday Wednesday Thursday Friday Saturday

Stored data 0 1 2 3 4 5 6

(4) Compensation is made automatically for leap years.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

Redundant Basic

Page 735 of the Mitsubishi Electronics QCPU user manual — S(P).DATERD
Page 735 · click to enlarge
Page 735

S(P).DATERD

Program Example

(1) The following program outputs the following clock data as BCD values:

Year Y70 to Y7F Month Y68 to Y6F Day Y60 to Y67 Hour Y58 to Y5F Minute Y50 to Y57 Second Y48 to Y4F Week Y44 to Y47 Millisecond Y38 to Y43

Mitsubishi Electronics QCPU — S(P).DATERD diagram (page 735)
Fig. 1216

7.16 Expansion Clock Instructions 7.16.1 Reading expansion clock data (S(P).DATERD)

[Ladder Mode]

Page 736 of the Mitsubishi Electronics QCPU user manual — S(P).DATERD
Page 736 · click to enlarge
Page 736

S(P).DATERD

Caution

(1) This instruction reads clock data and stores those to a specified device even if a wrong clock

data is set to the CPU module. (example: Feb. 30th)

When setting clock data with the DATEWR instruction or GX Developer, make sure to set a correct data.

(2) Time error of reading a clock data of millisecond is a maximum of 2ms. (Difference between

the data memorized by clock element inside of the CPU module and the data read by this function.)

(3) Specifying digit for the bit device can be used only when the following conditions (a) and (b)

are met.

(a) Digit specificationK4

(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code: 4004) will occur.

Page 737 of the Mitsubishi Electronics QCPU user manual — +3 +3 +3 S1 S2 D --
Page 737 · click to enlarge
Page 737

S(P).DATE+

7.16.2 Expansion clock data addition operation (S(P).DATE+)

S(P).DATE+

Universal Ver. Process Ver. High performance

Ver.

The first 5 digits of the serial No. are "07032" or higher.

S.DATE+

S.DATE+

D S1 S2

SP.DATE+

SP.DATE+

D S2 S1

: Head number of the devices where the clock data to be adjusted by addition is stored (BIN 16 bits)

: Head number of the devices where the time data to be added for adjustment is stored (BIN 16 bits)

: Head number of the devices where the result of addition of clock (time) data will be stored (BIN 16 bits)

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

(1) Adds the time data designated by to the clock data designated by , and stores the result into the area starting from the device designated by .

S2 S1

7.16 Expansion Clock Instructions 7.16.2 Expansion clock data addition operation (S(P).DATE+)

(0 to 23) Setting data Setting data Setting data

D S2 S1 Hour Minute Second +1 +2

Hour Minute Second +1 +2

(0 to 23) (0 to 59) (0 to 59)

Hour Minute Second +1 +2

(0 to 23) (0 to 59) (0 to 59)

(0 to 59) + (0 to 59) S1

D D -- +3 -- +3 -- +3 S1 S2 D Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) S1 S2 D

For example, adding the time 7:48:10:500 to 6:32:40:875 would result in the following operation:

D S2 S1

Hour6
Hour7
Hour14

+1 +2 +1 +2 +

Minute32 Second: 40
Minute48 Second: 10

D D

Minute20 Second: 51

+3 +3 +3 S1 S2 D --

+4 +4 +4 S1 S2 D Millisecond: 875

Millisecond500
Millisecond375
Show 7 more labels / short text on this page
Redundant Basic · Command · Command · Setting · Internal Devices · Data · +1 +2
Page 738 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 738 · click to enlarge
Page 738

S(P).DATE+

(2) If the results of the addition of time exceed 24 hours, 24 hours will be subtracted from the

sum to make the final operation result.

For example, when the time 20:20:20:500 is added to 14:20:30:875, the result is not 34:40:51:375, but 10:40:51:375.

Mitsubishi Electronics QCPU — S(P).DATE+ diagram (page 738)
Fig. 1217

Devices, +3, +3, and +3 are not used for operation. A clock data read by the S(P).DATERD instruction can be directly added.

S1 S2 D

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 738)
Fig. 1218

When the clock data is read by the S(P).DATERD instruction, day of week is inserted between "second" and "millisecond".

If the S(P).DATE+ instruction is used to read the clock data, the data can be directly used for addition since it does not perform the calculation for the day of a week.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The data set by and is outside the range. (See Function (1).) (Error code: 4100)

S1 S2

  • The device specified by , or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

S1 S2 D

Caution

(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b)

are met.

(a) Digit specificationK4

(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code:4004) will occur.

Page 739 of the Mitsubishi Electronics QCPU user manual — S(P).DATE+
Page 739 · click to enlarge
Page 739

S(P).DATE+

Program Example

(1) The following program adds 1 hour to the clock data read from the clock element, and stores

the results into the area starting from D100 when X20 is turned ON.

Mitsubishi Electronics QCPU — S(P).DATE+ diagram (page 739)
Fig. 1219

Reads out the clock element data to D0 or later.

Mitsubishi Electronics QCPU — S(P).DATE+ diagram (page 739)
Fig. 1220

7.16 Expansion Clock Instructions 7.16.2 Expansion clock data addition operation (S(P).DATE+)

  • Time data read operation by the SP.DATERD instruction
Hour10 Minute: 23 Second: 41 D4 D5 +
Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Instruction Device Step · [Operation]
Page 740 of the Mitsubishi Electronics QCPU user manual — S2 S1
Page 740 · click to enlarge
Page 740

S(P).DATE-

7.16.3 Expansion clock data subtraction operation (S(P).DATE-)

S(P).DATE-

Universal Ver. Process Ver. High performance

Ver.

The first 5 digits of the serial No. are "07032" or higher.

Mitsubishi Electronics QCPU — S(P).DATE- diagram (page 740)
Fig. 1221

: Head number of the devices where the clock time data to be adjusted by substraction is stored (BIN 16 bits)

: Head number of the devices where time data to be subtracted for adjustment is stored (BIN 16 bits)

: Head number of the devices where the result of subtraction of clock (time) data will be stored (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Subtracts the time data designated by from the clock data designated by , and stores the result into the area starting from the device designated by .

S2 S1

Mitsubishi Electronics QCPU — S2 S1 diagram (page 740)
Fig. 1222

(0 to 23) Setting data Setting data Setting data

(0 to 23) (0 to 59) (0 to 59)

(0 to 23) (0 to 59) (0 to 59)

D D -- +3 -- +3 -- +3 S1 S2 D Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) Millisecond +4 (0 to 999) S1 S2 D

For example, when the clock time 3:50:10:500 is subtracted from the clock time 10:40:20:875, the operation is performed as follows:

Mitsubishi Electronics QCPU — S2 S1 diagram (page 740)
Fig. 1223

Redundant Basic

Page 741 of the Mitsubishi Electronics QCPU user manual — S1 S2 D
Page 741 · click to enlarge
Page 741

S(P).DATE-

(2) If the subtraction results in a negative number, 24 will be added to the result to make a final

operation result.

For example, when the clock time 10:42:12:500 is subtracted from 4:50:32:875, the result is not 6:8:20:375, but 18:8:20:375.

Mitsubishi Electronics QCPU — S(P).DATE- diagram (page 741)
Fig. 1224

Devices, +3, +3, and +3 are not used for operation. A clock data read by S(P).DATERD instruction can be directly subtracted.

S1 S2 D

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 741)
Fig. 1225

When the clock data is read by the S(P).DATERD instruction, day of week is inserted between "second" and "millisecond".

If the S(P).DATE- instruction is used to read the clock data, the data can be directly used for subtraction since it does not perform the calculation for the day of the week.

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

Mitsubishi Electronics QCPU — S1 S2 D diagram (page 741)
Fig. 1226

7.16 Expansion Clock Instructions 7.16.3 Expansion clock data subtraction operation (S(P).DATE-)

  • The data set by and is outside the range. (See Function (1).) (Error code: 4100)
  • The device specified by , or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(1) Specifying digit for the bit device can be used only when the following conditions (a) and (b)

(b) Head of device: multiple of 16 When the above conditions (a) and (b) are not met, INSTRCT CODE ERR. (error code:4004) will occur.

Page 742 of the Mitsubishi Electronics QCPU user manual — Hour: 8 Minute: 42 Second: 1 D4 D5 -
Page 742 · click to enlarge
Page 742

S(P).DATE-

Program Example

(1) The following program subtracts the time data stored in the area starting from D10 from the

clock data read from the clock element when X1C is turned ON, and stores the result into the area starting from D100.

Mitsubishi Electronics QCPU — S(P).DATE- diagram (page 742)
Fig. 1227

Reads out the clock element data to D0 or later.

  • Time data read operation by the SP.DATERD instruction
Mitsubishi Electronics QCPU — S(P).DATE- diagram (page 742)
Fig. 1228
  • Subtraction by the SP.DATEinstruction
Mitsubishi Electronics QCPU — S(P).DATE- diagram (page 742)
Fig. 1229

Hour: 8 Minute: 42 Second: 1 D4 D5 -

Show 4 more labels / short text on this page
[Ladder Mode] · [List Mode] · Instruction Device Step · [Operation]
Page 743 of the Mitsubishi Electronics QCPU user manual — PSCAN PSTOP POFF PLOW
Page 743 · click to enlarge
Page 743

7.17 Program control instructions

(1) Processing when the execution type is converted with the program control instruction is as

follows.

Execution type before change

PSCAN PSTOP POFF PLOW

Output turned OFF in

scan type execution.

next scan.

Becomes stand-by type.

execution type. Initial execution type

from the next scan after

that.

execution type.

stopped, and output is

No change -remains low

Low speed execution type

turned OFF in the next

execution type from the

speed execution type.

stand-by type from next

scan. Becomes

next scan.

scan.

stand-by type from the

(Execution from step 0)

next scan after that.

Output turned OFF in

next scan.

Fixed scan execution type

Becomes stand-by type.

execution type.

execution type.

from the next scan after

that.

7.17 Program control instructions

Once the fixed scan execution type program is changed to another execution type, it cannot be returned to the fixed scan execution type.

Show 21 more labels / short text on this page
Executed Instruction · No change-remains · Scan execution type · Becomes stand-by type · Becomes low speed · Becomes scan · No change-remains · Stand-by type · Ignored · stand-by type · Low speed execution · Low speed execution · Low speed execution · type execution is · type execution is · type execution is · stopped, becomes scan · stopped, becomes · Becomes scan · Becomes low speed · Becomes stand-by type
Page 744 of the Mitsubishi Electronics QCPU user manual — "ABC" GHI GHI *1 *1 DEF GHI
Page 744 · click to enlarge
Page 744

(2) As program execution type conversions by PSCAN and PSTOP instructions occur at the

END processing, such conversions are impossible during program execution.

When different execution types have been set for the same program in the same scan, the execution type will be that specified by the execution switching command that was executed last.

END processing END processing

Execution program name GHI

"ABC" GHI GHI *1 *1 DEF GHI

PSTO executes "ABC" PSCAN executes "DEF"

Converts "DEF" into the scan execution type program and "ABC" to the stand-by type program

*1: The order of "GHI" and "DEF" program execution is determined by the program settings parameters. Switching from the fixed scan execution type program to the execution type program is performed in the following timing.

(a) For the Universal model QCPU

The execution type is changed when the execution of the fixed scan execution type is stopped at the END processing after the program control instruction execution.

(b) For the CPU modules other than the Universal model QCPU

The execution of the fixed scan execution type is stopped at the execution of the program control instruction, and the execution type is changed at the END processing.

(3) When the POFF instruction is executed, the output is turned OFF at the next scan, and the

execution type will be the stand-by type at the second next scan and later.

If executed prior to the output OFF processing, the program control instruction is ignored.

END processing

Page 745 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 745 · click to enlarge
Page 745

PSTOP(P)

7.17.1 Program standby instruction (PSTOP(P))

PSTOP(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PSTOP(P) diagram (page 745)
Fig. 1230

: Character string for the name of the program file to be set in the stand-by status or head number of the

devices where the character string data is stored (character string)

Mitsubishi Electronics QCPU — PSTOP(P) diagram (page 745)
Fig. 1231

(1) Places the file name program stored in the device designated by in the stand-by status.

(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as

the stand-by type.

(3) The specified program is placed in the stand-by status when END processing is performed.

(4) This instruction will be given priority even in cases when a program execution type has been

7.17 Program control instructions 7.17.1 Program standby instruction (PSTOP(P))

designated in the parameters.

(5) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The program with the file name specified by does not exist. (Error code: 2410)
  • The program type of the file name specified by is the SFC program.(Error code: 2412)
  • The file name storage destination device of exceeds the range of the corresponding device. (Error code: 4101)

Program Example

(1) The following program places the program with the file name ABC in the stand-by status

when X0 goes ON.

[Ladder Mode] [List Mode]

Step Instruction Device

Page 746 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 746 · click to enlarge
Page 746

POFF(P)

7.17.2 Program output OFF standby instruction (POFF(P))

POFF(P)

Process High performance Redundant Universal Basic

POFF

POFF

POFFP

POFFP

: File name of the program to be set in the standby status by turning OFF the output, or the device where the

file name is stored (character string)

R, ZR J \

U \G Zn Constants

$ Other Bit Word Bit Word

Function

(1) Changes the execution type of the program with the file name stored in the device

designated by .

  • Scan execution type: Turns OFF outputs at the next scan (Non-execution

processing). Programs are set as the stand-by type after the subsequent scan.

  • Low speed execution type: Stops the execution of the low speed execution type

program and turns OFF outputs at the next scan. Programs are set as the stand-by type after the subsequent scan.

(2) Only the programs stored in the drive No. 0 (program memory) can be set as the stand-by

type.

(3) This instruction will be given priority even in cases when a program execution type has been

designated in the parameters.

(4) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The program with the file name specified by does not exist.
(Error code2410)
  • The file name storage destination device of exceeds the range of the corresponding device. (Error code: 4101)
Show 6 more labels / short text on this page
Command · Command · Setting · Internal Devices · Data · –– –– ––
Page 747 of the Mitsubishi Electronics QCPU user manual — POFF(P)
Page 747 · click to enlarge
Page 747

POFF(P)

Remark

1. Non-execution processing is identical to the processing that is conducted when the condition contacts for the individual coil instructions are in the OFF state.

The operation results for the individual coil instructions following non-execution processing will be as follows, regardless of the ON/OFF status of the individual contacts:

Mitsubishi Electronics QCPU — POFF(P) diagram (page 747)
Fig. 1232

Maintains status RST instruction SFT instruction Basic instruction Application instruction PLS instruction

Processing identical to when condition contacts are OFF Pulse generation instruction ( P) Current value of low speed/high speed timer 0 Current value of retentive timer

(1) The following program makes the program with the file name ABC non-executionable and

places it in the standby status when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — POFF(P) diagram (page 747)
Fig. 1233

7.17 Program control instructions 7.17.2 Program output OFF standby instruction (POFF(P))

Page 748 of the Mitsubishi Electronics QCPU user manual — Example
Page 748 · click to enlarge
Page 748

PSCAN(P)

7.17.3 Program scan execution registration instruction (PSCAN(P))

PSCAN(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PSCAN(P) diagram (page 748)
Fig. 1234

: File name of the program to be set as a scan execution type, or head number of the devices where the file

name is stored (character string)

Mitsubishi Electronics QCPU — PSCAN(P) diagram (page 748)
Fig. 1235

(1) Sets the program whose file name is being stored at the device designated by in the scan execution type.

(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as

the scan execution type.

(3) Designated programs assume the scan execution type with END processing.

Example

When programs A, B, and C exist and program A performs "PSCAN" of program D.

Mitsubishi Electronics QCPU — Example diagram (page 748)
Fig. 1236 · Example

A B C END A B C D END

(4) This instruction will be given priority even in cases when a program execution type has been

designated in the parameters.

(5) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

Page 749 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 749 · click to enlarge
Page 749

PSCAN(P)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The program with the file name specified by does not exist.
(Error code2410)
  • The file name storage destination device of exceeds the range of the corresponding device. (Error code: 4101)
  • The specified file name is the SFC program, and the SFC program for the other file name

has been already started. (Dual activation error of the SFC program) (For the Universal model QCPU) (Error code: 4131)

(For the High Performance model QCPU, Process CPU, Redundant CPU)

(Error code2504)

Program Example

(1) The following program sets the program with file name ABC as scan execution type when

X0 is turned ON.

[Ladder Mode] [List Mode]

7.17 Program control instructions 7.17.3 Program scan execution registration instruction (PSCAN(P))

Step Instruction Device

Page 750 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 750 · click to enlarge
Page 750

PLOW(P)

7.17.4 Program low speed execution registration instruction (PLOW(P))

PLOW(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PLOW(P) diagram (page 750)
Fig. 1237

: File name of the program to be set as a low speed execution type, or head number of the devices where the

file name is stored (character string)

Mitsubishi Electronics QCPU — PLOW(P) diagram (page 750)
Fig. 1238

(1) Sets the program whose file name is being stored at the device designated by in low-speed execution type.

(2) Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as

the low speed execution type.

(3) Designated programs assume the low speed execution type with END processing.

When programs A, B, and C exist and program A performs "PLOW" of program D.

Example

(Assume that the constant scan has been set.)

Mitsubishi Electronics QCPU — Example diagram (page 750)
Fig. 1239 · Example

A B C END A B C D END

(4) This instruction will be given priority even in cases when a program execution type has been

designated in the parameters.

(5) It is not necessary to designate the extension (.QPG) with the file name.

(Only .QPG files will be acted on.)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The program with the designated file name does not exist. (Error code: 2410)
  • There is a CHK instruction contained within the program whose file name has been
designated. (Error code4235)
Page 751 of the Mitsubishi Electronics QCPU user manual — PLOW(P)
Page 751 · click to enlarge
Page 751

PLOW(P)

Program Example

(1) The following program sets the program with file name ABC as low-speed execution type

when X0 is turned ON.

[Ladder Mode] [List Mode]

7.17 Program control instructions 7.17.4 Program low speed execution registration instruction (PLOW(P))

Step Instruction Device

Page 752 of the Mitsubishi Electronics QCPU user manual — PCHK "ABC" Y10
Page 752 · click to enlarge
Page 752

PCHK

7.17.5 Program execution status check instruction (PCHK)

PCHK

Process High performance Universal Basic Redundant

Mitsubishi Electronics QCPU — PCHK diagram (page 752)
Fig. 1240

: File name of the program whose execution status will be checked (character string)

(1) Checks whether the program of the specified file name is in execution or not

(non-execution).

(2) The instruction is in conduction when the program of the specified file name is in execution,

and the instruction is in non-conduction when the program is in non-execution.

(3) Specify the file name without an extension (.QPG).

For example, specify "ABC" when the file name is ABC.QPG.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The program with the designated file name does not exist. (Error code: 2410)

Program Example

(1) Program that keeps Y10 ON when the program file "ABC.QPG" is being executed.

PCHK "ABC" Y10

Execution · Non-execution

Page 753 of the Mitsubishi Electronics QCPU user manual — PCHK
Page 753 · click to enlarge
Page 753

PCHK

Remark

Non-execution indicates that the program execution type is a stand-by type. Execution indicates that the program execution type is a scan execution type (including during output OFF (during non-execution processing)), low speed execution type or fixed scan execution type.

The PCHK instruction is in conduction when the program of the specified file name (target program) is in execution, and the instruction is in non-conduction when the program is in non-execution. When the target program is set to non-execution (stand-by type) with the POFF instruction, the PCHK instruction is in conduction while the non-execution processing of the target program is being performed. At the END processing of the scan where the non-execution processing is completed, the target program is put into non-execution (stand-by type), and the PCHK instruction is brought into non-conduction. Therefore, note that if the PCHK instruction is executed for the program where the non-execution processing has been completed by the POFF instruction, the PCHK instruction may be brought into conduction.

The following chart shows the operation performed when program A executes the POFF instruction of program B and program C executes the PCHK instruction of program B with the programs being executed in order of program A, program B and program C.

Mitsubishi Electronics QCPU — PCHK diagram (page 753)
Fig. 1241

Program B execution type change (Scan execution type to stand-by type)

7.17 Program control instructions 7.17.5 Program execution status check instruction (PCHK)

Page 754 of the Mitsubishi Electronics QCPU user manual — T1 T2
Page 754 · click to enlarge
Page 754

WDT(P)

7.18 Other instructions

7.18.1 Resetting watchdog timer (WDT(P))

WDT(P)

Basic Process High performance Redundant Universal

Command WDT

WDT

WDTP

WDTP

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

Function

(1) Resets watchdog timer during the execution of a sequence program.

(2) Used in cases where the scan time exceeds the value set for the watchdog timer due to

prevailing conditions.

If the scan time exceeds the watchdog timer setting value on every scan, change the watchdog timer settings at the peripheral device parameter settings.

(3) Make sure that the setting for t1 from step 0 to the WDT instruction and the setting for t2

from the WDT instruction to the END (FEND) instruction do not exceed the setting value of the watchdog timer.

Step 0 END (FEND) WDT

T1 T2

(4) The WDT instruction can be used two or more times during a single scan, but care should be

taken in such cases, because of the time required until the output goes OFF during the generation of an error.

(5) Scan time values stored at the special register will not be cleared even if the WDT or WDTP

instruction is executed.

Accordingly, there are times when the value for the scan time for the special register is greater than the value of the watchdog timer set at the parameters.

Show 4 more labels / short text on this page
Command · Setting · Internal Devices · Data
Page 755 of the Mitsubishi Electronics QCPU user manual — END
Page 755 · click to enlarge
Page 755

WDT(P)

Operation Error

(1) There are no operation errors associated with the WDT(P) instruction.

Program Example

(1) The following program has a watchdog timer setting of 200 ms, when due to the execution

conditions program execution requires 300 ms from step 0 to the END (FEND) instruction.

[When WDT instruction is used]

Program where scan time is 150 ms.

Program where scan time is 300 ms.

WDT

END

Program where scan time is 150 ms.

END

7.18 Other instructions 7.18.1 Resetting watchdog timer (WDT(P))

Page 756 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 756 · click to enlarge
Page 756

DUTY

7.18.2 Timing pulse generation (DUTY)

DUTY

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — DUTY diagram (page 756)
Fig. 1242
n1Number of scans for ON (BIN 16 bits)
n2Number of scans for OFF (BIN 16 bits)
Mitsubishi Electronics QCPU — DUTY diagram (page 756)
Fig. 1243

: User timing clock (SM420 to SM424, SM430 to M434) (bits)

*1: Only SM420 to SM424, SM430 to SM434 can be used.

Function

(1) Turns the user timing clock (SM420 to SM424, SM430 to M434), designated by , ON for the duration equivalent to the number of scans specified by n1, and OFF for the duration equivalent to the number of scans specified by n2.

ON

OFF

SM420 to SM424 SM430 to SM434

n2 scans n1 scans

(2) Scan execution type programs use SM420 to SM424, and low speed execution type

programs use SM430 to SM434.

(3) The following will take place if both n1 and n2 have been set for 0:

(a) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay OFF.

(b) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay ON.

(4) The data designated by n1, n2, and is registered with the system when the DUTY instruction is executed, and the timing pulse is turned ON and OFF by END processing.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device designated by is not from SM420 to SM424 or SM430 to SM434.
(Error code4101)
  • The values of n1 and n2 are less than 0. (Error code: 4100)
Page 757 of the Mitsubishi Electronics QCPU user manual — DUTY
Page 757 · click to enlarge
Page 757

DUTY

Program Example

(1) The following program turns SM420 ON for 1 scan, and OFF for 3 scans if X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — DUTY diagram (page 757)
Fig. 1244
Mitsubishi Electronics QCPU — DUTY diagram (page 757)
Fig. 1245

7.18 Other instructions 7.18.2 Timing pulse generation (DUTY)

Step Instruction Device · [Operation]

Page 758 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 758 · click to enlarge
Page 758

TIMCHK

7.18.3 Time check instruction (TIMCHK)

TIMCHK

Process High performance Redundant Universal Ver. Basic

Basic model QCPU: The upper five digits of the serial No. are "04122" or larger.

Mitsubishi Electronics QCPU — TIMCHK diagram (page 758)
Fig. 1246

: Device where the measured current value will be stored (BIN 16 bits)

: Device where the set value of measurement is stored (BIN 16 bits)

: Device to be turned ON at time-out (bits)

(1) Measures the ON time of the device used as a condition, and turns ON the device specified

by if the condition device remains ON for longer than the time set to the device specified

by .

(2) The current value of the device specified by is cleared to 0 and the device specified by is turned OFF at the leading edge of the execution command.

S1 D

The current value of the device designated by and the ON status of the device

designated by are retained after the execution command turns OFF.

(3) Set the set value of measurement in units of 100ms.

Operation Error

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • The device that cannot be specified has been specified. (Error code: 4100)

Program Example

(1) Program where the ON time of X0 is set to 5s, the current value storage device to D0, and

the device that will turn ON at time-out to Y10.

[Ladder Mode] [List Mode]

Step Instruction Device

Page 759 of the Mitsubishi Electronics QCPU user manual — ZRRDB(P)
Page 759 · click to enlarge
Page 759

ZRRDB(P)

7.18.4 Direct 1-byte read from file register (ZRRDB(P))

ZRRDB(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ZRRDB(P) diagram (page 759)
Fig. 1247
nSerial byte number for the file register to be read (BIN 32 bits)
Mitsubishi Electronics QCPU — ZRRDB(P) diagram (page 759)
Fig. 1248

: Number of the device where the read data will be stored (BIN 16 bits)

(1) Reads the serial byte number designated by n that does not signify a block number, and

stores at the lower 8 bits of the device designated by .

Mitsubishi Electronics QCPU — ZRRDB(P) diagram (page 759)
Fig. 1249

The upper 8 bits designated by will become 00H.

7.18 Other instructions 7.18.4 Direct 1-byte read from file register (ZRRDB(P))

(2) The correspondence between file register numbers and serial byte numbers is as indicated

ZR0 Serial byte No. 0 Serial byte No. 1

Serial byte No. 2 Serial byte No. 3 ZR1

Page 760 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 760 · click to enlarge
Page 760

ZRRDB(P)

(a) If the value of n has been designated as 23560, the data at the lower 8 bits of ZR11780

will be read.

Read destination designation n 23560 D

b15 b8b7 b0 ZR11780 43H 21H b15 b8b7 b0 00H 21H Data is stored

(b) If the value of n has been designated as 43257, the data at the upper 8 bits of ZR21628

will be read.

Mitsubishi Electronics QCPU — ZRRDB(P) diagram (page 760)
Fig. 1250

D b15 b8b7 b0 ZR21628 93H 42H b15 b8b7 b0 00H 93H

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • A device number (serial byte number) that exceeds the range of allowable designations
has been designated. (Error code4101)

Program Example

(1) The following program reads the lower bits of ZR16000 and the upper bits of R16003, and

stores results at D100 and D101 when X0 is ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 760)
Fig. 1251 · Program Example

8FH 25H 32H 34H 42H 12H 00H 93H

Step Instruction Device · [Operation]

Page 761 of the Mitsubishi Electronics QCPU user manual — ZRWRB(P)
Page 761 · click to enlarge
Page 761

ZRWRB(P)

7.18.5 File register direct 1-byte write (ZRWRB(P))

ZRWRB(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ZRWRB(P) diagram (page 761)
Fig. 1252
nSerial byte number for the file register to be written (BIN 32 bits)
Mitsubishi Electronics QCPU — ZRWRB(P) diagram (page 761)
Fig. 1253

: Number of the device where the data to be written is stored (BIN 16 bits)

(1) Writes the lower bits of data stored in the device designated by that does not signify a block number to the file register of the serial byte number designated by n.

Mitsubishi Electronics QCPU — ZRWRB(P) diagram (page 761)
Fig. 1254

The upper 8 bits of data in the device designated by are ignored.

7.18 Other instructions 7.18.5 File register direct 1-byte write (ZRWRB(P))

b0 b7 b15 b8 Write destination designation Writing the data

(2) The correspondence between file register numbers and serial byte numbers is as indicated

ZR0 Serial byte No. 0 Serial byte No. 1

Serial byte No. 2 Serial byte No. 3 ZR1

Page 762 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 762 · click to enlarge
Page 762

ZRWRB(P)

Mitsubishi Electronics QCPU — ZRWRB(P) diagram (page 762)
Fig. 1255

If n 12340 is specified, the data will be written to the lower 8 bits of ZR11170.

If n 43257 is specified, the data will be written to the upper 8 bits of ZR21628.

b15 b8b7 b0 ZR21628 50H b15 b8b7 b0 Ignored

(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error

code is stored into SD0.

  • A device number (serial byte number) that exceeds the range of allowable designations
has been designated. (Error code4101)

Program Example

(1) The following program writes the data at the lower bits of D100 and D101 to the lower bits of

R16000 and the upper bits of R16003 when X0 is turned ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 762)
Fig. 1256 · Program Example

54H BAH 80H 4AH ABH

54H BAH 80H 4AH ABH

Step Instruction Device · [Operation]

Page 763 of the Mitsubishi Electronics QCPU user manual — S D D
Page 763 · click to enlarge
Page 763

ADRSET(P)

7.18.6 Indirect address read operations (ADRSET(P))

ADRSET(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ADRSET(P) diagram (page 763)
Fig. 1257

: Number of the device whose indirect address is read out (Device name)

: Number of the device where the indirect address of the device designated by will be stored (BIN 32 bits)

U \G Zn Constants Other Bit Word Bit Word

(1) Stores the indirect address of the device designated by at +1 and .

S D D

The address stored at the device designated by is used when an indirect device address is performed by the sequence program.

Mitsubishi Electronics QCPU — S D D diagram (page 763)
Fig. 1258

7.18 Other instructions 7.18.6 Indirect address read operations (ADRSET(P))

Stores the address of W100 address to D101 and D100.

Writes 1234 to the address specified by D100 and D101.

(2) A bit device designation cannot be made at .

(1) There are no operation errors associated with the ADRSET(P) instruction.

See Section 3.4 for further information on indirect designations.

Page 764 of the Mitsubishi Electronics QCPU user manual — KEY
Page 764 · click to enlarge
Page 764

KEY

7.18.7 Numerical key input from keyboard (KEY)

KEY

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — KEY diagram (page 764)
Fig. 1259

: Head number of the devices (X) to which a numeral will be input (bits)

nNumber of digits of the numeral to be input (BIN 16 bits)
Mitsubishi Electronics QCPU — KEY diagram (page 764)
Fig. 1260

: Head number of the devices where the input numeral will be stored (BIN 16 bits)

: Number of the bit device to turn ON at the completion of input (bits)

(1) Fetches ASCII data from the 8 points of input (X) designated by , converts it to hexadecimal values and stores the result in the area starting from the device designated by

Mitsubishi Electronics QCPU — KEY diagram (page 764)
Fig. 1261

Designation of the number of digits to be input

"0" (30 ) to "9" (39 ) H H "A" (41 ) to "F" (46 ) H H b12 b8 b11 b7 b4 b0 b3

Number of digits that are input 5 digits 6 digits 7 digits 8 digits 1 digit 2 digits 3 digits 4 digits

For example, in a case where the number of digits (n) has been set at 5, and the values "31", "33", "35", "37" and "39" have been input through X10 to X18 of the input module, the following will take place:

Mitsubishi Electronics QCPU — KEY diagram (page 764)
Fig. 1262

X10 X11 X12 X13 X14 X15 X16 X17 X18

(31H)(33H)(35H)(37H)(39H)

5 D11 3H 5H 7H 9H 0H 0H 0H 1H D12

Page 765 of the Mitsubishi Electronics QCPU user manual — S S S
Page 765 · click to enlarge
Page 765

KEY

(2) Numerical input to input (X) designated by undergoes bit development at through

S S

+7 and is input as the ASCII code corresponding to the numbers.

ASCII code which can be input is from 30H (0) to 39H (9), and from 41H (A) to 46H (F).

Mitsubishi Electronics QCPU — S S diagram (page 765)
Fig. 1263

"1"(31H)= 0 b7 b4 b0 b3 0 1 1 0 0 0 1

(3) After ASCII code is input to to +7, the strobe signal at +8 goes ON to incorporate the designated numbers internally.

S S S

The strobe signal should be held at its ON or OFF status for more than one scan of the sequence program. If this time is less than 1 scan, there will be cases when the data is correctly incorporated.

Mitsubishi Electronics QCPU — S S S diagram (page 765)
Fig. 1264

(4) Be sure to keep the execution command (condition contact for the KEY instruction) ON until

Mitsubishi Electronics QCPU — S S S diagram (page 765)
Fig. 1265

7.18 Other instructions 7.18.7 Numerical key input from keyboard (KEY)

The KEY instruction cannot be executed if the execution command turns OFF.

(5) The digits for the numbers actually fetched to will be stored at the device designated by

, and these will be converted to the ASCII codes input at +1 and +2, converted to hexadecimal BIN values, and stored.

31H 33H 35H 37H 39H

5 0 0 0 1 0

2 0 1 3 5 0

3 1 3 5 7 0

4 3 5 7 9 0 0 0 1

(6) The number of digits that can be designated by n is from 1 to 8.

Page 766 of the Mitsubishi Electronics QCPU user manual — D1 D2
Page 766 · click to enlarge
Page 766

KEY

(7) Fetching of the input data is completed when any of the inputs shown below has been made.

At the completion, the bit device designated by is turned ON.

  • When the number of digits specified by n has been input
  • When the "0DH" code has been input

For example, the operations at the location designated if n 5 will be as indicated below:

Mitsubishi Electronics QCPU — KEY diagram (page 766)
Fig. 1266

31H 42H 35H 37H 39H

5 0 0 0 1 0

2 0 1 B 5 0

3 1 B 5 7 0

4 B 5 7 9 0 0 0 1

3 0 0 0 1 0

2 0 1 B 5 0

3 0 1 B 5 0

If input processing is to be performed a second time, it is necessary to clear the number of

digits input and the input data stored at , and turn OFF the designated device at the user program.

If is not cleared and not turned OFF, the next input processing cannot be performed.

D1 D2

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device designated by is not an input (X) device. (Error code: 4100)
  • The number of digits designated by n are outside the range of from 1 to 8.
(Error code4100)
Page 767 of the Mitsubishi Electronics QCPU user manual — KEY
Page 767 · click to enlarge
Page 767

KEY

Program Example

(1) The following program fetches data of the 5 or fewer digits from the numerical key pad

connected to X20 to X28, and stores it to the area starting from D0 when X0 is turned ON.

Mitsubishi Electronics QCPU — KEY diagram (page 767)
Fig. 1267
Mitsubishi Electronics QCPU — KEY diagram (page 767)
Fig. 1268
Mitsubishi Electronics QCPU — KEY diagram (page 767)
Fig. 1269

7.18 Other instructions 7.18.7 Numerical key input from keyboard (KEY)

X20 X21 X22 X23 X24 X25 X26 X27 (Strobe signal)

5 2H 3H 4H 5H 0H 1H 0H 0H

[Ladder Mode] · [List Mode]

Page 768 of the Mitsubishi Electronics QCPU user manual — ZPUSH
Page 768 · click to enlarge
Page 768

ZPUSH(P),ZPOP(P)

7.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))

ZPUSH(P),ZPOP(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ZPUSH(P),ZPOP(P) diagram (page 768)
Fig. 1270

: Head number of the devices to/from which contents of an index register are saved/recovered (BIN 16 bits)

U \G Zn Constants Other Bit Word Bit Word

ZPUSH

(1) Saves the contents of the following index registers to after the device specified by .

(When contents of an index register are saved, + 0 (the number of saves made) is increased by 1.)

  • Basic model QCPU: Z0 to Z9
  • High Performance model QCPU/Process CPU/Redundant CPU:
  • Universal model QCPU: Z0 to Z19

(2) The ZPOP instruction is used for data recovery. Nesting is possible within the ZPUSH to

ZPOP cycle.

(3) If nesting has been done, each time the ZPUSH instruction is executed, the field used

following will be added to, so a field large enough to accommodate the number of times the instruction will be used should be maintained from the beginning.

(4) The composition of the field used following is as shown below: • When Basic model QCPU is used

Mitsubishi Electronics QCPU — ZPUSH diagram (page 768)
Fig. 1271

Z0 to Z15

Page 769 of the Mitsubishi Electronics QCPU user manual — ZPOP
Page 769 · click to enlarge
Page 769

ZPUSH(P),ZPOP(P)

  • When using a High Performance model QCPU/Process CPU/Redundant CPU
Mitsubishi Electronics QCPU — ZPUSH(P),ZPOP(P) diagram (page 769)
Fig. 1272
  • When Universal model QCPU is used
Mitsubishi Electronics QCPU — ZPUSH(P),ZPOP(P) diagram (page 769)
Fig. 1273

ZPOP

(1) Recovers the contents saved in the area starting from the device designated by to the index register. (When the saved content is read out to the index register, + 0 (the number of saves made) is decreased by 1.)

Mitsubishi Electronics QCPU — ZPOP diagram (page 769)
Fig. 1274

7.18 Other instructions 7.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P))

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

  • The range for the number of points to be used at and later by the ZPUSH(P) instruction exceeds the corresponding device range. (Error code: 4101)
  • The contents of + 0 (number of saves made) is 0 in the ZPOP(P) instruction.

(1) The following program saves the contents of the index register to the fields following D0

before calling the subroutine following P0 that uses the index register. [Ladder Mode] [List Mode]

Page 770 of the Mitsubishi Electronics QCPU user manual — Remark
Page 770 · click to enlarge
Page 770

UNIRD(P)

7.18.9 Reading Module Information (UNIRD(P))

UNIRD(P)

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — UNIRD(P) diagram (page 770)
Fig. 1275

n1: Value obtained by dividing the head I/O number of the reading module information source by 16 (0 to FFn)

: Head number of the devices where the module information will be stored (device name)

n2The number of points of read data (0 to 256) (BIN 16 bits)
Mitsubishi Electronics QCPU — UNIRD(P) diagram (page 770)
Fig. 1276

(1) Reads the module information as much as designated by n2 from the module designated by

n1 (value obtained by dividing the head I/O number by 16), and stores that information into

the area starting from the device designated by .

(Reads the status of the actually installed modules instead of the module type designated by I/O assignment.)

Remark

The value of n1 is designated by the higher 3 digits of the head I/O number of the slot from which the module information is read, when it is expressed in 4 digits in hexadecimal notation.

Mitsubishi Electronics QCPU — Remark diagram (page 770)
Fig. 1277 · Remark

to X000F

Head input number is read as K4 or H4

(BIN 16 bits)

Page 771 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 771 · click to enlarge
Page 771

UNIRD(P)

The details of the module information are described as follows:

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Bit

0. 16 points 001: 32 points

Number of I/O points

10. 48 points 011: 64 points
100. 128 points 101: 256 points
110. 512 points 111: 1024 points
0. Input module
1. Output module
10. I/O mixed module
11. Intelligent function module

b6 External supply power status

1. External supply power is connected. 0: External supply power is not connected.

b7 Presence/absence of fuse

1. Some modules have fuse blown. 0: Normal
1. Module information on the extension base unit is tried to be read during online

module change or from the CPU module of standby system in the redundant

execution from the standby

system.*1

0. Other than above
b9 Minor/medium error status 1Minor/medium error occurred 0: Normal
0. No module error 01: Minor error
10. Medium error 11: Serious error b11
b12 Module standby status 1Normal 0: Module error occurred

b13 Empty Fixed to 0

b14 Q module 0Q series module

b15 Module installation status 1: Modules are installed. 0: No modules are installed.

7.18 Other instructions 7.18.9 Reading Module Information (UNIRD(P))

*1: The Universal model QCPU used in the multiple CPU system is turned ON during the online module change of the module controlled by the other CPU.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

[High Performance model QCPU, Process CPU, Redundant CPU and Universal model QCPU]

  • When n1 is other than 0 to FF H (Error code: 4100)
  • When n2 is other than 0 to 256 (Error code: 4100)
  • When a total of n1 and n2 is equal to or greater than 257 (Error code: 4100) [Q00/Q01CPU]
  • When n1 is other than 0 to 3F H (Error code: 4100)
  • When n2 is other than 0 to 64 (Error code: 4100)
  • When a total of n1 and n2 is equal to or greater than 65 (Error code: 4100) [Q00JCPU]
  • When n1 is other than 0 to F H (Error code: 4100)
  • When n2 is other than 0 to 16 (Error code: 4100)
  • When n1 and n2 is equal to or greater than 17 (Error code: 4100)
Show 17 more labels / short text on this page
Individual module information · Bit Item Meaning · b0 · b1 · b2 · b3 · b4 · Module type · b5 · (For future expansion) · blown · Online module replacement · status/ · b8 · system · b10 · Module error status
Page 772 of the Mitsubishi Electronics QCPU user manual — UNIRD(P)
Page 772 · click to enlarge
Page 772

UNIRD(P)

Program Example

(1) The following program stores the module information at I/O numbers 10H to 20H into the

devices starting from D0 when X10 is turned ON.

Mitsubishi Electronics QCPU — UNIRD(P) diagram (page 772)
Fig. 1278

[Ladder Mode] [List Mode]

Readout result (When read to D0)

(a) 32-point intelligent function module for Q series

Mitsubishi Electronics QCPU — UNIRD(P) diagram (page 772)
Fig. 1279

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 1 0 1 0 1 1 0 0 1

No blown-fuse error existing Execution other than during online module change or from the standby system

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 0

All of these bits turn 0 because information is stored to "D0."

A module is installed as latter 16 points of a 32-point module.

  • With a 48or 64-point module, the same contents as those of D1 are stored in D2 or D2

and D3 respectively.

Instruction Device Step

Page 773 of the Mitsubishi Electronics QCPU user manual — UNIRD(P)
Page 773 · click to enlarge
Page 773

UNIRD(P)

(b) 32-point module for A series

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 1 0

For an A series module, all of these bits turn 0 because information is not stored.

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 0

All of these bits turn 0 because information is stored to "D0."

A module is installed as latter 16 points of a 32-point module.

  • With a 48or 64-point module, the same contents as those of D1 are stored in D2 or D2

and D3 respectively.

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

For an empty slot, all of these bits turn 0.

(d) Performing online module replacement

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

Performing online module replacement

7.18 Other instructions 7.18.9 Reading Module Information (UNIRD(P))

(e) Module information on the extension base unit is tried to be read from the standby

system of the redundant system in separate mode.

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

Execution from the standby system (Module information on the extension base unit is tried to be read from the standby system of the redundant system in separate mode.)

A series module · Module is installed · (c) Empty slot

Page 774 of the Mitsubishi Electronics QCPU user manual — 7.18.10 Reading module model name(TYPERD(P))
Page 774 · click to enlarge
Page 774

7.18.10 Reading module model name(TYPERD(P))

Ver.

Basic Process High performance Redundant

Universal model QCPU: The serial number (first five digits) is "11043" or later.

Mitsubishi Electronics QCPU — 7.18.10 Reading module model name(TYPERD(P)) diagram (page 774)
Fig. 1280 · 7.18.10 Reading module model name(TYPERD(P))
Mitsubishi Electronics QCPU — 7.18.10 Reading module model name(TYPERD(P)) diagram (page 774)
Fig. 1281 · 7.18.10 Reading module model name(TYPERD(P))
Mitsubishi Electronics QCPU — 7.18.10 Reading module model name(TYPERD(P)) diagram (page 774)
Fig. 1282 · 7.18.10 Reading module model name(TYPERD(P))

Setting data Description Setting range Set by Data type

Value obtained by dividing the start I/O number of a module

whose model name is to be read by 16

(1) This instruction reads the module information stored in the area starting from the I/O number

specified by "n", and stores it in the area starting from the device specified by . The following 6 modules (Q series only) support the instruction.

  • CPU module
  • Input module
  • Output module
  • I/O combined module
  • Intelligent function module
  • GOT (bus connection)

Universal

Page 775 of the Mitsubishi Electronics QCPU user manual — Q20UDH CPU Q20UDH CPU
Page 775 · click to enlarge
Page 775

(2) Specify the start I/O number of a module whose model name is to be read by "n" as follows:

  • Specify the value obtained by dividing the start I/O number of the target module by 16.

CPU module QX10 Q68 ADV

QY41

P QY10 QY10

3E00H 0000H 0010H 0020H 0030H 0040H 0050H 0070H 0080H Start I/O number configured in the I/O assignment setting

Specify the start I/O number by K3 or H3.

When the target module is a CPU module itself, specify the start I/O number by H3E0.

  • When the target module occupies two slots

The start I/O number to be specified may differ from that of the mounted module. For the start I/O number, refer to the manual of each module. Specify the value obtained by dividing the start I/O number of the target module by 16.

Example) QJ71GP21S-SX Specify a value to which 0010H, start I/O number of the mounted module, is added.

CPU module QJ71G P21S-SX Empty

3E00H 0000H 0010H 0030H 0040H 0050H 0060H 0070H 0080H Start I/O number configured in the I/O assignment setting

Specify the start I/O number by K1 or H1.

  • When the target module is a CPU module in multiple CPU systems

Specify the value obtained by dividing the start I/O number of the target CPU module by 16.

7.18 Other instructions 7.18.10 Reading module model name(TYPERD(P))

Q20UDH CPU Q20UDH CPU

Q20UDH CPU

QY41

Q68 ADV

QY41

P QY10 QY10

P

3E00H 3E10H 3E20H 3E30H 0000H 0010H 0020H 0030H 0040H Start I/O number configured in the I/O assignment setting

Specify the start I/O number by H3E3.

Or, the model name can be read by specifying the start I/O number of a module controlled by another CPU.

Show 4 more labels / short text on this page
Power supply module · Power supply module · Power supply module · CPU module
Page 776 of the Mitsubishi Electronics QCPU user manual — D D
Page 776 · click to enlarge
Page 776

(3) +0 and +1 to +9 store the execution result of the instruction and module model name, respectively.

D D D

A value stored in is as follows:

(a) When the model name has been written to the target module (example: QJ71GP21-SX)

b15 to b8 b7 to b0

Stores 0.

Indicates that the model name that has been written to the target module is stored. 37H (7)

4A H (J)

51 H (Q)

31 H (1)

Nine words are used.

Stores the model name that has been written to the target module (stored in ASC II).

50 H (P)

47 H (G)

31 H (1)

32 H (2)

53 H (S)

2D H (-)

00 H

58 H (X)

00 H

00 H

00 H

00 H

Stores the remaining model name and 00H to the 12th to 17th devices and the 18th device, respectively.

00 H

00 H

The following table shows the examples of model names stored in +1 to +9.

D D

Target module Stored model name

Intelligent function module QJ71GP21-SX

GOT GOT1000

(b) When the model name has not been written to the target module (example: QX40)

b15 to b8 b7 to b0

Stores 1.

Indicates that the character string consists of module type and the number of points is stored. 50H (P)

4A H (N)

49 H (I)

55 H (U)

Nine words are used.

Stores the character string consists of module type and the number of points. (stored in ASC II).

5F H (_)

54 H (T)

36 H (6)

31 H (1)

00 H 00 H

00 H

00 H

00 H

00 H

00 H

00 H

Stores the remaining model name and 00H to the 12th to 17th devices and the 18th device, respectively.

00 H

00 H

The following table shows the examples of character strings stored in +1 to +9..

D D

Target module Stored character string

I/O combined module MIXED_64

Intelligent function module INTELLIGENT_128

[Character string indicating module type]

  • Input module: INPUT
  • Output module: OUTPUT
  • I/O combined module: MIXED
  • Intelligent function module*1: INTELLIGENT
  • 1: Includes the QI60 and GOT.
Show 5 more labels / short text on this page
○+0 · CPU module Q06UDEHCPU · ○+0 · Input module INPUT_16 · Output module OUTPUT_32
Page 777 of the Mitsubishi Electronics QCPU user manual — 00 H
Page 777 · click to enlarge
Page 777

[Character string indicating the number of points]

  • 16 points:_16
  • 32 points:_32
  • 48 points:_48
  • 64 points:_64
  • 128 points:_128
  • 256 points:_256
  • 512 points:_512
  • 1024 points:_1024
  • The specified slot is empty or the target module is during online module change.
  • The specified value (n) is not the start I/O number.
  • The specified value (n) is within the allowable setting range, but cannot be set in the

I/O assignment setting screen of the PLC parameter dialog box.

b15 to b8 b7 to b0

Stores -1.

Indicates that the model name is not stored.

00 H 00 H

00 H 00 H

Nine words are used.

00 H 00 H

00 H 00 H

00 H 00 H

00 H

00 H

00 H

00 H

00 H

00 H

Stores 00H.

7.18 Other instructions 7.18.10 Reading module model name(TYPERD(P))

00 H

00 H

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an

error code is stored into SD0.

  • The target module cannot be communicated due to a failure. (Error code: 2110)
  • Devices by 10 words starting from the device specified by exceed the device range. (Error code: 4101)
  • The specified value (n) is except 0 to FF H and 3E0 to 3E3 H . (Error code: 4101)

(c) Others · ○+0

Page 778 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 778 · click to enlarge
Page 778

Program Example

(1) The following program stores the model name of a module having the start I/O number

0020H in the area starting from the device specified by when X0 is turned on.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 778)
Fig. 1283 · Program Example

Step Instruction Device

Page 779 of the Mitsubishi Electronics QCPU user manual — TRACE,TRACER
Page 779 · click to enlarge
Page 779

TRACE,TRACER

7.18.11 Trace Set/Reset (TRACE,TRACER)

TRACE,TRACER

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — TRACE,TRACER diagram (page 779)
Fig. 1284

U \G Zn Constants Other Bit Word Bit Word

The sampling trace function collects the specified device data of a CPU module consecutively at the specified timing.

With the sampling trace function, the traced results obtained through the specified number of trace operations will be stored in the trace file of the memory card when SM800, SM801, and SM802 are turned ON.

Mitsubishi Electronics QCPU — TRACE,TRACER diagram (page 779)
Fig. 1285

TRACE Trace start request Trigger condition enabled Trace reset

7.18 Other instructions 7.18.11 Trace Set/Reset (TRACE,TRACER)

Page 780 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 780 · click to enlarge
Page 780

TRACE,TRACER

TRACE

(1) The TRACE instruction turns ON SM803, executes sampling by the number of times set for

"After trigger number of times" in the Trace condition settings, latches the data and stops sampling trace.

(2) The sampling is stopped if SM801 is turned OFF during the trace execution.

(3) After the TRACE instruction is executed and the trace is completed, SM805 is turned ON.

(4) Once the TRACE instruction is executed, the second and the subsequent TRACE

instructions are ignored.

When the TRACER instruction is executed, the TRACE instruction is enabled again.

TRACER

(1) The TRACER instruction resets the TRACE instruction. When the TRACER instruction is

executed, the TRACE instruction is enabled again.

(2) When the TRACER instruction is executed, SM803 to SM805 are turned OFF.

Remark

1. For details of the trace, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals). 2. For trace execution with GX Developer, refer to the GX Developer Operating Manual.

Operation Error

(1) There are no operation errors associated with the TRACE or TRACER instruction.

Program Example

(1) The following program executes the TRACE instruction when X0 is turned ON, and resets

the TRACE instruction with the TRACER instruction when X1 is turned ON.

[Ladder Mode] [List Mode]

Instruction Device Step

Page 781 of the Mitsubishi Electronics QCPU user manual — SP.FWRITE
Page 781 · click to enlarge
Page 781

SP.FWRITE

7.18.12 Writing Data to Designated File (SP.FWRITE)

SP.FWRITE

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 781)
Fig. 1286

*1: Local devices and the devices designated for individual programs cannot be used.

Data Meaning Setting Range Set by Data Type

U0 Dummy –– ––

Drive designation 2 User

Head number of the devices storing the control data. The following control data is required.

Device Item Contents/Setting Data Setting Range Set by

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Designate the execution type. 0000H : Write binary data 0100H : Write data after CSV format conversion 0000H 0100H User

+1 (Not used) Used by system –– System

Writing result (No.

Contains the number of actually written data against the data designated by . The unit of the value depends on data type specified at

+7.

+3 (Not used) –– –– ––

Set the file position when binary data writing is specified by . 00000000H :Starting at the beginning of the file 00000001H to FFFFFFFEH: From the specified position

The unit of the value depends on data type specification. FFFFFFFFH : Addition starts from the end

of the file. When CSV format write is specified at

  • For the High Performance model QCPU of which the first 5 digits of the serial number are "01111" or lower, always set the beginning (0 H ) of the file.
  • For the High Performance model QCPU/ Process CPU/Redundant CPU/Universal model QCPU of which the first 5 digits of the serial number are "01112" or higher, set the file position. 00000000 H to FFFFFFFE H : Starting at the beginning of

00000000H to FFFFFFFFH User

the file FFFFFFFFH : Addition starts at the end of the file.

Show 10 more labels / short text on this page
Setting · Execution/ completion · type · +2 · –– System · of written · data) · BIN 16 bits · +4 +5 · File position
Page 782 of the Mitsubishi Electronics QCPU user manual — FFFF H
Page 782 · click to enlarge
Page 782

SP.FWRITE

Data Meaning Setting Range Set by Data Type

When binary write is specified at , always

set 0.

When CSV format write is specified at ,

No. of

set the number of columns where data will be

written.

FFFF H

0. No columns. Regarded as

one row.

Other than 0Set to the specified number of

columns.

0. Word
1. Byte 0,1 User

Head number of the devices storing a file name. A file name is expressed as follows:

Device Item Contents/Setting Data Setting Range Set by

Designate the character string of a file name.

  • When omitting an extension, also omit

the "." (Period).

  • Limit the file name within 8 characters +

period + 3 characters.

  • When 9 or more characters are used,

the extension is ignored regardless of its

presence, and "BIN" or "CSV" is

automatically assigned as an extension.

Head number of the devices storing the data. Written data is expressed as follows:

Device Item Contents/Setting Data Setting Range Set by

Designate the number of data to request

writing (word units).

No. of

This data should be designated in units of

S2 S2

words even when byte is designated by

1 to 32767 *2 User

+7.

Write data Data to request writing. 0000H to

FFFF H

Bit device that turned ON at the completion of the processing.

( +1 is also turned ON at error completion.)

Device Item Contents/Setting Data Setting Range Set by

Indicates the completion of the processing.

ONCompleted OFF: Not completed

Indicates whether the processing is normally

completed or abnormally completed.

ONError completion
OFFNormal completion

*2: Indicates the range applicable only for the Universal model QCPU.

Show 31 more labels / short text on this page
Setting · 0H to · +6 · columns · User · designation · (0 to 65535) · Data type · +7 · specification · BIN 16 bits · File name · to · Character · character · string User · + · string · 1 to 480 · request · write data · +1 to · + · Completion · signal · Bit · Error · System · +1 · completion · signal
Page 783 of the Mitsubishi Electronics QCPU user manual — Example
Page 783 · click to enlarge
Page 783

SP.FWRITE

Caution

(1) At (drive designation), only the ATA card drive (2) can be set.

(2) For CSV setting, the data written are decimal values.

Example

Character "A" (41H) "65" is written. Handling range: -32768 to 32767

(3) For binary write, the word-specified file position setting range is 00000000H to 7FFFFFFFH

and FFFFFFFFH.

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Page 784 of the Mitsubishi Electronics QCPU user manual — D0 D0
Page 784 · click to enlarge
Page 784

SP.FWRITE

Function

(1) The designated number of data is written to the designated file.

Set the execution/completion type in the control data to designate whether to write binary data without any conversion or to convert binary data into CSV format data before writing it. (The writing target is the ATA card only.)

(2) The execution completion bit device ( ) is automatically turned ON at the END processing after the completion of the instruction is detected. The bit device is turned OFF at the execution of the END instruction in the next scan.

Use this bit device as the execution completion flag for the SP.FWRITE instruction.

When this instruction is completed abnormally, the error completion device ( +1) is turned

ON/OFF in synchronization with the processing complete ( ) device. Use this device as the error completion flag for this instruction. SM721 is turned ON during the execution of the instruction. This instruction cannot be executed while SM721 is ON. (If an attempt is made, no processing is performed.) When an error is detected at the execution of the instruction (before SM721 is turned ON),

the processing complete device ( ), the error completion device ( +1), and SM721 are not turned ON.

D1 D1

(3) Be sure to use in units of words to designate the No. of request write data ( ) and the file

position ( +4 and +5).

D0 D0

The following shows the method for writing binary data when No. of request write data and file position are specified.

Mitsubishi Electronics QCPU — D0 D0 diagram (page 784)
Fig. 1287
Page 785 of the Mitsubishi Electronics QCPU user manual — D0 D0
Page 785 · click to enlarge
Page 785

SP.FWRITE

(4) When writing binary data

(a) If the extension of the target file is omitted, ".BIN" is used as an extension.

(b) When the designated file does not exist, a new file is created and the data is added/

saved from the beginning of the file. The attributes of this new file are set using the archive attributes.

(c) When the size of the data exceeds that of the existing area in the file during the writing, the excess data is added/saved.

(d) If the file position specified is greater than the existing file size:

  • The High Performance model QCPU of which the first 5 digits of the serial number

are "01111" or lower results in an error.

  • The High Performance model QCPU/Process CPU/Redundant CPU/Universal

model QCPU of which the first 5 digits of the serial number are "01112" or higher performs writing at point 0 and is completed normally.

(e) An error occurs when the saving space becomes full while data is added and saved.

In such a case, the data that is successfully added/saved remains in the medium. The error completion is indicated after as much data as possible is added/saved.

(5) When writing data after CSV format conversion

(a) If the extension is omitted, ".CSV" is used as an extension.

(b) When the existing file is specified:

[High Performance model QCPU of which the first 5 digits of the serial number are "01111" or lower] File contents are all deleted and data are saved, starting at the beginning. [High Performance model QCPU/Process CPU/Redundant CPU/Universal model QCPU of which the first 5 digits of the serial number are "01112" or higher]

  • When other than FFFFFFFF H is set at ( +4, +5), file contents are all deleted and data are saved, starting at the beginning.

D0 D0

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

  • When FFFFFFFF H is set at ( +4, +5), data are saved, starting at the end of the file.

D0 D0

(c) When the designated file does not exist, a new file is created and the data is added/ saved from the beginning of the file. The attributes of this new file are set using the archive attributes.

(d) An error occurs when the saving space becomes full while data is added and saved.

In such a case, the data that is successfully added/saved remains in the medium. The error completion is indicated after as much data as possible is added/saved.

Page 786 of the Mitsubishi Electronics QCPU user manual — K0
Page 786 · click to enlarge
Page 786

SP.FWRITE

(e) When the designated number of columns is "0", the data is stored as single-row data in

CSV format file.

Example

When data is written after CSV format conversion and the designated No. of columns is "0":

SP.FWRITE D10 K2 U0 D20 D99 M0 * Designation in word units

H0100 D10

Not used Number of written result data (In normal completion, it is the same number as the number of data to be written.)

K0

K0

K0

K0

Designation of the number of columns

K0

File name (If a file name consists of 8 or less characters, "00"s are filled in the remaining area.) "ABCDE"

H4241

H4443

H0045

Number of data to be written

K7

Data to be written

K0

K10

K20

K30

K40

K-50

K100

Data to be written to the file

0 , 10 20 40 30 , , -50 100 , , , CR LF

Data to be read out to EXCEL file

Mitsubishi Electronics QCPU — K0 diagram (page 786)
Fig. 1288

Execution/completion type · Not used · Data type specification

Page 787 of the Mitsubishi Electronics QCPU user manual — Example
Page 787 · click to enlarge
Page 787

SP.FWRITE

(f) When data is written after CSV format conversion and the designated number of columns is other than "0", the data is stored as table data with designated number of columns in a CSV format file.

Example

When data is written after CSV format conversion and the designated No. of columns is other than "0":

Mitsubishi Electronics QCPU — Example diagram (page 787)
Fig. 1289 · Example

In the module Number of written result data (In normal completion, it is the same number as the number of data to be written.)

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Page 788 of the Mitsubishi Electronics QCPU user manual — SP.FWRITE
Page 788 · click to enlarge
Page 788

SP.FWRITE

(g) When data is added by the High Performance model QCPU/Process CPU/Redundant

CPU/Universal model QCPU of which the first 5 digits of the serial number are 01112 or higher:

[Specify the file to which data will be written.] (If a file exists, delete it and create a new file again.)

Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 788)
Fig. 1290

= 0H (New file is created) = D0 = 6H*3

Starting row 1 , 2 , 3 , 4 CR LF Row 1

[In the addition mode, make addition from the end of the file.]

Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 788)
Fig. 1291

= FFFFFFFH (Continuation mode) = D7 = 8H*3

1 , 2 , 3 , 4 CR LF Row 1

Present starting row 7 , 8 , 9 CR LF Row 3

10 , 11 , 12 CR LF Row 4

*3: Unless the "number of write points" is set to an integral multiple of "column designation", the column numbers will be random. *4: Since the last data is always followed by the line feed code, addition normally starts at the beginning of the new row in the addition mode. *5: If, in the addition mode, "column designation" is changed from that in the previous writing, the column numbers are shifted.

(h) Do not execute the SP.FWRITE instruction in an interrupt program.

(If execute it, the operation is not guaranteed.)

Page 789 of the Mitsubishi Electronics QCPU user manual — D0 D1
Page 789 · click to enlarge
Page 789

SP.FWRITE

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Drive specified by drive designation device contains the medium other than the ATA card. (Error code: 4100)
  • Values specified in control data and the subsequent devices are out of the setting range. (Error code: 4100)
  • Value designated by "No. of request write data" ( ) is out of the setting range, or exceeds the device range designated by ( +1) or the subsequent devices.
(Error code4101)
  • Empty space in the ATA card is insufficient. (Error code: 4100)
  • No free space is found when an attempt is made to create a new file.
(Error code4100)
  • Invalid device is designated. (Error code: 4004)
  • Access error occurred in the ATA card. (Error code: 4100)
  • An unusable value is set for a file name ( ). (Error code: 4100)
  • The attribute of a file name ( ) is "read only". (Error code: 4100)
  • The device specified by or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

D0 D1

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

Page 790 of the Mitsubishi Electronics QCPU user manual — SP.FWRITE
Page 790 · click to enlarge
Page 790

SP.FWRITE

Program Example

(1) When X10 is turned ON, the following program adds four bytes of binary data (00H, 01H,

02H, and 03H) to file "ABCD.BIN" in the memory card inserted to drive 2.

  • Assume that 8 points from are reserved for the control data devices.
Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 790)
Fig. 1292
Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 790)
Fig. 1293

[Ladder Mode] · [List Mode]

Page 791 of the Mitsubishi Electronics QCPU user manual — SP.FWRITE
Page 791 · click to enlarge
Page 791

SP.FWRITE

(2) When X10 is turned ON, the following program creates a file named "ABCD.CSV" in the

memory card inserted to drive 1, and writes four bytes of data (00H, 01H, 02H, and 03H) as two-column table data in CSV format.

  • The written file is displayed as follows:
Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 791)
Fig. 1294
Mitsubishi Electronics QCPU — SP.FWRITE diagram (page 791)
Fig. 1295

7.18 Other instructions 7.18.12 Writing Data to Designated File (SP.FWRITE)

  • Assume that 8 points from are reserved for the control data devices.

Contents of the file to be written 0 , 1 , CR LF 2 , 3 , CR LF

[Ladder Mode] · [List Mode]

Page 792 of the Mitsubishi Electronics QCPU user manual — SP.FREAD
Page 792 · click to enlarge
Page 792

SP.FREAD

7.18.13 Reading Data from Designated File (SP.FREAD)

SP.FREAD

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — SP.FREAD diagram (page 792)
Fig. 1296

*1: Local devices and the devices designated for individual programs cannot be used.

Mitsubishi Electronics QCPU — SP.FREAD diagram (page 792)
Fig. 1297

Head number of the devices storing the control data The following control data is required.

Designate the execution type. 0000H: Read binary data 0100H: Read data after CSV format conversion

Even when byte is specified at +7 by data

words (16 bits), not in units of bit devices.

*2: Indicates the range applicable only for the Universal model QCPU.

Page 793 of the Mitsubishi Electronics QCPU user manual — D1 D1
Page 793 · click to enlarge
Page 793

SP.FREAD

Data Meaning Setting Range Set by Data Type

Designate the file position to start reading when binary data reading is designated by . 00000000H: Starting at the beginning of the file 00000001H to FFFFFFFEH :From the designated position

The unit for the value is determined by word/byte unit designation. FFFFFFFFH: Setting disabled

When CSV format read is specified at

  • For the High Performance model QCPU of which the first 5 digits of the serial number are "01111" or lower, always set the beginning (0 H ) of the file.
  • For the High Performance model QCPU/ Process CPU/Redundant CPU/Universal model QCPU of which the first 5 digits of the

00000000H to FFFFFFFFH User

serial number are "01112" or higher, set the file position (Row). 00000000H: Read starts at the beginning of the file. 00000001H to FFFFFFFEH :Read starts at the specified row. FFFFFFFFH: Read continues, starting at the

previous read position.

When binary read is specified at , always set 0. When CSV format read is specified at , set the number of columns from where data will be read. 0: No columns. Regarded as one row. Other than 0: Regarded as the specified number of columns.

No. of columns designation

BIN 16 bits +6

0H to FFFFH (0 to 65535) User

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

0. Word 1: Byte 0,1 User

Head number of the devices storing a file name. A file name is expressed as follows:

Device Item Contents/Setting Data Setting Range Set by

Designate the character string of a file name.

  • When omitting an extension, also omit the "." (Period).
  • Limit the file name within 8 characters + period + 3 characters.
  • When 9 or more characters are used, the extension is ignored regardless of its presence, and "BIN" or "CSV" is automatically assigned as an extension.

Head number of the devices for storing the read data.

Device Item Contents/Setting Data Setting Range Set by

Contains the number of actually read data

Reading result (No. of

against the data designated by +2. The

D1 D1

unit on the value depends on data type specification.

data Read data –– System

Show 18 more labels / short text on this page
Setting · +4 · File position · +5 · Data type specification · +7 · File name · to · Character · character · string User · + · string · –– System · read data) · +1 to · Reading · +
Page 794 of the Mitsubishi Electronics QCPU user manual — D1 D1
Page 794 · click to enlarge
Page 794

SP.FREAD

Data Meaning Setting Range Set by Data Type

Bit device that turned ON at the completion of the processing.

( +1 is also turned ON at error completion.)

Device Item Contents/Setting Data Setting Range Set by

Indicates the completion of the processing. ON: Completed OFF: Not completed

Indicates whether the processing is normally completed or abnormally completed. ON: Error completion OFF: Normal completion

Caution

(1) At (drive designation), only the ATA card drive (2) can be set.

(2) For CSV setting, the data written are decimal values.

Example

Character "A" (41H) "65" is written. Handling range: -32768 to 32767

(3) For binary read, the word-specified file position setting range is 00000000H to 7FFFFFFFH.

Function

(1) Data is read from the designated file.

Set the execution/completion type in the control data to designate whether to read binary data without any conversion or to convert binary data into CSV format data before reading it. (The reading target is the ATA card only.)

(2) The execution completion bit device ( ) is automatically turned ON at the END processing after the completion of the instruction is detected. The bit device is turned OFF at the execution of the END instruction in the next scan.

Use this bit device as the execution completion flag for the SP.FWRITE instruction. When this instruction is completed abnormally, the error completion device ( +1) is turned ON/OFF in synchronization with the execution completion ( ) device. Use this device as the error completion flag for this instruction. SM721 is turned ON during the execution of the instruction. This instruction cannot be executed while SM721 is ON. (If an attempt is made, no processing is performed.) When an error is detected at the execution of the instruction (before SM721 is turned ON), the processing complete device ( ), the error completion device ( +1), and SM721 are not turned ON.

D1 D1

Show 8 more labels / short text on this page
Setting · Completion · Bit · signal · System · Error completion · +1 · signal
Page 795 of the Mitsubishi Electronics QCPU user manual — K3
Page 795 · click to enlarge
Page 795

SP.FREAD

(3) Be sure to use word units to designate the number of request read data ( +2), file position ( +4 and +5), and read data device size ( ).

D0 D0 D1

The following shows how the individual device data is read in binary data reading operation.

H0000

K3

Number of request read data

K1

Location to start reading in the file

K0

File data (in byte units)

K3

H00

H11

H33 22

H22

H33

H55 44

H44

H55

H77

H66

H77

H88

H99

HAA

(4) When reading binary data

(a) If the extension of the target file is omitted, ".BIN" is used as an extension.

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

(b) When the designated file does not exist, an error occurs.

(c) If the position specified is greater than the existing file size:

  • The High Performance model QCPU of which the first 5 digits of the serial number

are "01111" or lower results in an error.

  • The High Performance model QCPU/Process CPU/Redundant CPU/Universal

model QCPU of which the first 5 digits of the serial number are '01112' or higher will perform reading at point 0 and will be completed normally.

(5) When reading data after CSV format conversion

(a) The elements in CSV format file (cells for EXCEL) are read by each row. The numerical

value and character strings are converted into binary data and stored in the device.

(b) If the extension is omitted, ".CSV" is used as an extension.

(c) When the designated file does not exist, an error occurs.

(d) The elements designated by the number of request read data ( +2) are read from the beginning of the file. When the last data of the file is reached before the specified number of data are read:

  • The High Performance model QCPU of which the first 5 digits of the serial number

are "01111" or lower results in an error.

  • The High Performance model QCPU/Process CPU/Redundant CPU/Universal

model QCPU whose the first 5 digits of the serial number are '01112' or higher reads the data up to the point where the reading is possible.

Show 9 more labels / short text on this page
Control data · Execution/completion type · (Not used) · (Not used) · Designation of columns · Data type specification · Data device · Total · Read data
Page 796 of the Mitsubishi Electronics QCPU user manual — Example
Page 796 · click to enlarge
Page 796

SP.FREAD

(e) When the designated number of columns is 0, the data is read by ignoring the rows in

CSV format file.

Example

When data is read after CSV format conversion and the designated No. of

columns is 0:

Mitsubishi Electronics QCPU — Example diagram (page 796)
Fig. 1298 · Example

Main / sub item , , Measured value CR LF Length , 1 , 3 CR LF Temperature , -21 , CR LF

Data that was read File name Control data Control data

Conversion data (0) is stored since "Main/sub item" is nonnumeric data.

Conversion data (0) is stored since " " is nonnumeric data.

Conversion data (0) is stored since "Measured value" is nonnumeric data.

Conversion data (0) is stored since "Length" is nonnumeric data.

Since " 1 " is a numeric value, it is converted to a binary value.

Since " 3 " is a numeric value, it is converted to a binary value.

Conversion data (0) is stored since "Temperature" is nonnumeric data.

Since " -21 " is a numeric value, it is converted to a binary value.

Conversion data (0) is stored since " " is nonnumeric data.

Page 797 of the Mitsubishi Electronics QCPU user manual — SP.FREAD
Page 797 · click to enlarge
Page 797

SP.FREAD

If the number of columns varies in each row, the data is also read by ignoring the rows.

Such file cannot be created using EXCEL. This happens when CSV file is modified by a user.

Mitsubishi Electronics QCPU — SP.FREAD diagram (page 797)
Fig. 1299

If the number of columns varies in each row when the data is read: Example

Main / sub item , , Measured value Excess CR LF Length CR LF Temperature , -21 , CR LF

Data that was read File name Control data Control data

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

Stores the number of read data Number of read result data

Conversion data (0) is stored since "Main/sub item" is nonnumeric data.

Conversion data (0) is stored since " " is nonnumeric data.

Conversion data (0) is stored since "Measured value" is nonnumeric data.

Conversion data (0) is stored since "Excess" is nonnumeric data.

Conversion data (0) is stored since "Length" is nonnumeric data.

Conversion data (0) is stored since "Temperature" is nonnumeric data.

Since " -21 " is a numeric value, it is converted to a binary value.

Page 798 of the Mitsubishi Electronics QCPU user manual — Example
Page 798 · click to enlarge
Page 798

SP.FREAD

(f) When data is read after CSV format conversion and the designated number of columns is other than 0, the data is read as the table with designated number of columns in CSV format file. The elements outside of the designated columns are ignored.

Example

When data is read after CSV format conversion and the designated No. of

columns is other than "0":

Mitsubishi Electronics QCPU — Example diagram (page 798)
Fig. 1300 · Example

Main / sub item , , Measured value CR LF Length , 1 , 3 CR LF LF Temperature , -21 , CR LF LF

Elements outside the designated number of columns are ignored.

Loaded data Stores the number of read data Number of read result data

Conversion data (0) is stored since "Main/sub item" is nonnumeric data.

Conversion data (0) is stored since " " is nonnumeric data.

Conversion data (0) is stored since "Length" is nonnumeric data.

Since " 1 " is a numeric value, it is converted to a binary value.

Conversion data (0) is stored since "Temperature" is nonnumeric data.

Since " -21 " is a numeric value, it is converted to a binary value.

Page 799 of the Mitsubishi Electronics QCPU user manual — Example
Page 799 · click to enlarge
Page 799

SP.FREAD

If the number of columns varies in each row, the elements outside of the designated columns are ignored and "0" is added to the places where elements do not exist.

Example

If the number of columns varies in each row when the data is read:

Mitsubishi Electronics QCPU — Example diagram (page 799)
Fig. 1301 · Example

Main / sub item , , Measured value Excess CR LF Length CR LF Temperature , -21 , CR LF

Elements outside the designated number of columns are ignored.

Data that was read File name Control data Control data

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

Conversion data (0) is stored since "Main/sub item" is nonnumeric data.

Conversion data (0) is stored since " " is nonnumeric data.

Conversion data (0) is stored since "Length" is nonnumeric data.

No data Since no element exists here, conversion data (D) is added.

Conversion data (0) is stored since "Temperature" is nonnumeric data.

Since " -21 " is a numeric value, it is converted to a binary value.

Page 800 of the Mitsubishi Electronics QCPU user manual — SP.FREAD
Page 800 · click to enlarge
Page 800

SP.FREAD

(g) With the High Performance model QCPU/Process CPU/Redundant CPU/Universal

model QCPU whose first 5 digits of the serial number are "01112" or later, it is possible to divide read operation into multiple times. [Specify the row desired to start read.]

Mitsubishi Electronics QCPU — SP.FREAD diagram (page 800)
Fig. 1302

Starting row number Read head device Number of data

1 , 2 , 3 , 4 CR LF Row 1

Row 2 5 , 6 , 7 , 8 CR LF

9 , 10 , 11 , 12 CR LF Row 3

13 , 14 , 15 , 16 CR LF Row 4

Row 5 17 , 18 , 19 , CR LF

[In the continuation mode, read continues from the end of the previous read position.]

Mitsubishi Electronics QCPU — SP.FREAD diagram (page 800)
Fig. 1303

Starting row number Read head device Number of data

= FFFFFFFH (Continuation mode) = D7 = 5H

1 , 2 , 3 , 4 CR LF

5 , 6 , 7 , 8 CR LF

9 , 10 , 11 , 12 CR LF

13 , 14 , 15 , 16 CR LF

17 , 18 , 19 , 20 CR LF

  • When read is performed in the continuation mode, the previous addition cannot be made

normally if the "execution type", "column designation" and "Data type specification" settings differ from those at the previous time.

  • The previous addition cannot be made normally if the SP.FREAD instruction or

SP.FWRITE instruction with another setting is executed while data is being read continuously in the continuation mode.

Page 801 of the Mitsubishi Electronics QCPU user manual — D0 D2
Page 801 · click to enlarge
Page 801

SP.FREAD

(h) When data is read after CSV format conversion, the numerical values that are out of

range or the elements other than numerical values in the object CSV format file are converted into 0H.

(i) When data is read after CSV format conversion, numerical values are read and converted as follows:

CSV Format -32768 to -1 0 to 32767 32768 to 65535

a sign 32768 to 65535 0 to 32767 32768 to 65535

sign -32768 to -1 0 to 32767 -32768 to -1

(j) Do not execute this instruction in an interrupt program. (Otherwise, a malfunction may result.)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • Drive specified by drive designation device ( ) contains the medium other than the ATA card. (Error code: 4100)
  • Values designated in control data ( ) and the subsequent devices are out of the setting range. (Excluding +2) (Error code: 4100)
  • Value designated by number of data blocks to be read ( +2) is out of the setting range.
(Error code4101)
  • Invalid device is designated. (Error code: 4004)

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

  • File name designated by file name character string ( ) or the subsequent devices does not exist in the designated drive. (Error code: 2410)
  • Size of read data exceeds the size of reading device. (Error code: 4101)
  • When binary data is read, the number of data in the file is less than the size designated by

the number of request read data ( +2). (High Performance model QCPU of which the first 5 digits of the serial number are '01111' or lower) (Error code: 4100)

  • Access error occurred in the ATA card. (Error code: 4100)
  • The device specified by or exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

D0 D2

Show 5 more labels / short text on this page
Numerical Values in · Without · Word · device · With a
Page 802 of the Mitsubishi Electronics QCPU user manual — SP.FREAD
Page 802 · click to enlarge
Page 802

SP.FREAD

Program Example

(1) The following program reads 4 bytes of binary data from the beginning of file "ABCD.BIN" in

the memory card inserted to drive 2 when X10 is turned ON.

  • Assume that 8 points from (D0) are reserved for the control data devices.
  • Assume that 100 bytes from D20 are reserved for the reading devices.
Mitsubishi Electronics QCPU — SP.FREAD diagram (page 802)
Fig. 1304
Mitsubishi Electronics QCPU — SP.FREAD diagram (page 802)
Fig. 1305

[Ladder Mode] · [List Mode]

Page 803 of the Mitsubishi Electronics QCPU user manual — SP.FREAD
Page 803 · click to enlarge
Page 803

SP.FREAD

(2) The following program reads file "ABCD.CSV" in the PC card inserted to slot 0 as

two-column table data in CSV format when X10 is turned ON.

  • Assume that 8 points from (D0) are reserved for the control data devices.
  • Assume that 100 bytes from D20 are reserved for the reading devices.
  • Assume that the target CSV format file contains numerical values only.
Mitsubishi Electronics QCPU — SP.FREAD diagram (page 803)
Fig. 1306
Mitsubishi Electronics QCPU — SP.FREAD diagram (page 803)
Fig. 1307

7.18 Other instructions 7.18.13 Reading Data from Designated File (SP.FREAD)

[Ladder Mode] · [List Mode]

Page 804 of the Mitsubishi Electronics QCPU user manual — Function
Page 804 · click to enlarge
Page 804

SP.DEVST

7.18.14 Writing Data to Standard ROM (SP.DEVST)

SP.DEVST

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — SP.DEVST diagram (page 804)
Fig. 1308

n1: Write offset of the device data storage file (specified in units of 16-bit words) (BIN 32-bit)

: Head device number written to the standard ROM (device name) n2: The number of write points (BIN 16-bit)

Mitsubishi Electronics QCPU — SP.DEVST diagram (page 804)
Fig. 1309

*1:Devices assigned as local devices can not be used.

Function

(1) Writes device data for the number of points specified at n2 of the device to the write offset, which is specified for n1, of the device data storage file in the standard ROM.

n1 is the offset from the head of device data storage file and specified by word offset (in units of 16-bit words).

Mitsubishi Electronics QCPU — Function diagram (page 804)
Fig. 1310 · Function

Device data storage file Write offset of device data stofage file

(2) Since the device data write position completion device ( +0) in the standard ROM automatically turns ON at execution of the END instruction, which detects the completion of this instruction, and turns OFF with the END instruction of next scan, it is used as an execution completion flag of this instruction.

(3) When this instruction is completed in error, the error completion device ( +1) turns ON/ OFF at the same timing with the completion device ( +0). This device is used as an error completion flag of this instruction.

Page 805 of the Mitsubishi Electronics QCPU user manual — Caution
Page 805 · click to enlarge
Page 805

SP.DEVST

(4) SM721 turns ON during execution of this instruction.

When SM721 has already turned ON, this instruction can not be executed. (If executed, no processing is performed.)

(5) When an error is detected at execution of this instruction, the completion device ( +0), error completion device ( +1) and SM721 do not turn ON.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The write offset specified at n1 is out of the device data storage file range.
(Error code4100)
  • The number of n2 points from the write offset specified at n1 is out of the device data
storage file range. (Error code4100)
  • The range for the number of n2 points from the device exceeds the corresponding device. (Error code: 4141)
  • The device data storage file is not set at "PLC file" of PLC parameter on GX Developer.
(Error code2410)
  • The device specified by exceeds the range of the corresponding device.
(Error code4101)

Program Example

(1) The program which writes the ten points of data from D100 to the device data storage file in

the standard ROM when M0 turns ON.

[Ladder Mode] [List Mode]

7.18 Other instructions 7.18.14 Writing Data to Standard ROM (SP.DEVST)

Caution

(1) The value written to the standard ROM is the value at execution of this instruction.

(2) The standard ROM write count index (SD687 and SD688) is increased by the execution of

the SP.DEVST instruction. If the standard ROM write count index exceeds hundred thousand times, FLASH ROM ERROR (error code: 1610) occurs.

(3) To prevent the number of ROM writes from increasing due to executing instruction

carelessly, set the specification of writing to standard ROM instruction count (SD695) to restrict the number of writes a day.

Exceeding the number of writes (the default values are 36 times.) set causes OPERATION ERROR (error code: 4113).

Instruction Device Step

Page 806 of the Mitsubishi Electronics QCPU user manual — (S(P).DEVLD)
Page 806 · click to enlarge
Page 806

(S(P).DEVLD)

7.18.15 Read Data from Standard ROM (S(P).DEVLD)

(S(P).DEVLD)

Universal Basic Process High performance Redundant

Mitsubishi Electronics QCPU — (S(P).DEVLD) diagram (page 806)
Fig. 1311

n1 : Read offset of the device data storage file (specified in units of 16-bit words) (BIN 32-bit) : Head device number read from the standard ROM (device name) n2 : The number of reading points (BIN 16-bit)

Mitsubishi Electronics QCPU — (S(P).DEVLD) diagram (page 806)
Fig. 1312

(1) Reads device data for the number of points specified at n2 from the read offset, which is

specified for n1, of the device data storage file in the standard ROM, and stores the data to the device specified for .

n1 is the offset from the head of device data storage file and specified by word offset (in units of 16-bit words).

Mitsubishi Electronics QCPU — (S(P).DEVLD) diagram (page 806)
Fig. 1313
Page 807 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 807 · click to enlarge
Page 807

(S(P).DEVLD)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The address specified at n1 is out of the standard ROM range. (Error code: 4100)
  • The number of n2 points from the address specified at n1 is out of the standard ROM
range. (Error code4100)
  • The range for the number of n2 points from the device exceeds the corresponding device. (Error code: 4101)
  • The device data storage file is not set at "PLC file" of PLC parameter on GX Developer.
(Error code2410)

Program Example

(1) The program which reads the ten points of data from D100 to the device data storage file in

the standard ROM when M0 turns ON.

[Ladder Mode] [List Mode]

7.18 Other instructions 7.18.15 Read Data from Standard ROM (S(P).DEVLD)

Instruction Device Step

Page 808 of the Mitsubishi Electronics QCPU user manual — Function
Page 808 · click to enlarge
Page 808

PLOADP

7.18.16 Load Program from Memory Card (PLOADP)

PLOADP

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PLOADP diagram (page 808)
Fig. 1314

: Drive No. storing the program to be loaded, character string data of the file name, or head number of the

devices storing the character string data (BIN 16 bits) *1

: Device that turns ON for 1 scan by the instruction completion (bits)

Mitsubishi Electronics QCPU — PLOADP diagram (page 808)
Fig. 1315

*1: Designated as ":". Example) 1:MAIN *2: Local devices cannot be used.

Function

(1) The program stored in the memory card or standard ROM is transferred to the program

memory (drive 0).

If the transferred program is not registered to the program setting of the PLC parameter dialog box, its program setting in the CPU module is set to the standby type. At this time, the program setting of the PLC parameter dialog box does not change. (To transfer a program with the PLOADP instruction, a continuous free space is required in the program memory.)

(2) The program added using the PLOADP instruction is assigned the lowest number among

the unused program Nos.

(To assign a program number manually, store the program number to be assigned in SD720.) The following example assumes that "MAIN6" is added by the PLOADP instruction.

(a) When the program Nos. have been set consecutively, the new program is added at the

end of the preset program Nos. When programs No. 1 to 5 have been set, the new program is added as program No. 6.

Mitsubishi Electronics QCPU — Function diagram (page 808)
Fig. 1316 · Function
Page 809 of the Mitsubishi Electronics QCPU user manual — PLOADP
Page 809 · click to enlarge
Page 809

PLOADP

(b) When there are multiple open program Nos., the program designated by the PLOADP

instruction is added to the lowest number among them to be added. (The open program Nos. are made when programs are deleted by the PUNLOADP instruction.) When programs No. 2 and 4 are open, the new program is added as program No. 2.

Program No. Program name 1 2 MAIN1

Program No. Program name 1 2 MAIN1 MAIN6 MAIN3

Added to the smallest program number which is empty.

Adds "MAIN6" by the PLOADP instruction.

(3) Drive Nos. 1, 2, and 4 can be specified. (Drive 3 cannot be specified.)

  • Drive 1: Memory card (RAM)
  • Drive 2: Memory card (ROM)
  • Drive 4: Standard ROM

(4) An extension (.QPG) need not be specified for the file name.

(5) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.

(6) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.

If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.

(7) Do not execute this instruction in an interrupt program.

(Otherwise, a malfunction may result.)

(8) To execute the program that was transferred to the program memory with the PLOADP

instruction, execute the scan execution type with the PSCAN instruction (See Section 7.17.3).

7.18 Other instructions 7.18.16 Load Program from Memory Card (PLOADP)

(9) The PLC file settings of the loaded program are set as follows:

(a) File usage for each program

All the usage of file register, device initial value, comment, and local device of the program transferred by this instruction are set as "Use PLC file setting". However, an error will be returned if both of the conditions below are met when the program is transferred using this instruction.

  • Setting is made so that local devices are used in the PLC file setting.
  • The number of programs in the program memory exceeds the number of programs

set at the parameters. To use local devices in the program transferred by this instruction, register a dummy program file in the parameter, delete the dummy file with the PUNLOADP instruction, and then load the program with the PLOADP instruction.

(b) I/O refresh setting

Nothing is set for both input and output for the I/O refresh setting of the program transferred by this instruction.

Empty MAIN3 · Empty MAIN5 · Empty MAIN5

Page 810 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 810 · click to enlarge
Page 810

PLOADP

(10) The "PLOADP instruction" and "Write during RUN" processing cannot be executed

simultaneously.

(a) When a write during RUN request is given during processing of the PLOADP

instruction, write during RUN is delayed. Write during RUN is started after the processing of the PLOADP instruction is completed.

(b) When the PLOADP instruction is executed during write during RUN, the processing of

the PLOADP instruction is delayed. The processing of the PLOADP instruction is started after completion of write during RUN.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • File name does not exist at the drive number designated by . (Error code: 2410)
  • The drive No. designated by is invalid. (Error code: 4100)
  • There is not enough memory to load the specified program in drive 0.
(Error code2413)
  • The number of files registered in the program memory is as much number as the one

indicated in the table below. (Error code: 4101)

  • The program No. stored in SD720 is already used, or larger than the largest program

number shown in the table below. (Error code: 4101)

  • The program file which has the same name as the program file to be loaded already
exists. (Error code2410)
  • The file size of the local devices cannot be reserved. (Error code: 2401)
Mitsubishi Electronics QCPU — Operation Error diagram (page 810)
Fig. 1317 · Operation Error

CPU Model Name Program Memory (No. of Files) Largest Program No.

(1) The following program transfers "ABCD.QPG" stored in drive 4 to drive 0 and places the

program in standby status when M0 is turned ON.

[Ladder Mode] [List Mode]

Instruction Device Step

Page 811 of the Mitsubishi Electronics QCPU user manual — Function
Page 811 · click to enlarge
Page 811

PUNLOADP

7.18.17 Unload Program from Program Memory (PUNLOADP)

PUNLOADP

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PUNLOADP diagram (page 811)
Fig. 1318

: Character string data of the program file name to be unloaded, or head number of the devices storing the

character string data (BIN 16 bits)

Mitsubishi Electronics QCPU — PUNLOADP diagram (page 811)
Fig. 1319

: Device turned ON for 1 scan on completion of the instruction (bits)

*1: Local devices cannot be used.

Function

(1) The standby program stored in the program memory (drive 0) is deleted from the program

memory.

(The program set as the "scan execution type" with the PSCAN instruction or the program set as the "low speed execution type" with the PLOW instruction cannot be deleted.)

7.18 Other instructions 7.18.17 Unload Program from Program Memory (PUNLOADP)

(2) The program No. deleted by the PUNLOADP instruction is made "Empty".

When programs No. 1 to 5 have been set in the program setting of the PLC parameter dialog box, deleting program No. 2 with this instruction makes program No. 2 open.

Program No. Program name 1 2 MAIN1 MAIN2 MAIN3 MAIN4 MAIN5

Program No. Program name 1 2 MAIN1

Empty MAIN3 MAIN4 MAIN5

Program No. 2 is deleted.

Deletes "MAIN2" by the PUNLOADP instruction.

(3) An extension (.QPG) need not be specified for the file name.

(4) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.

(5) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.

If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.

Page 812 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 812 · click to enlarge
Page 812

PUNLOADP

(6) When the Programmable Controller is powered OFF, then ON or the CPU module is reset

after execution of the PUNLOADP instruction, the following operation is performed.

(a) When boot setting has been made in the PLC parameter dialog box, the program where

the boot setting has been made is transferred to the program memory. When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding program name from the boot setting and program setting of the PLC parameter dialog box.

(b) When boot setting has not been made in the PLC parameter dialog box, "FILE SET

ERROR (error code: 2400)" occurs. 1) When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding program name from the program setting of the PLC parameter dialog box. 2) When the program deleted by the PUNLOADP instruction is to be executed again, write the corresponding program to the CPU module.

(7) Do not execute this instruction in an interrupt program.

(Otherwise, a malfunction may result.)

(8) The program to be deleted from the program memory by this instruction should be set to the

"standby execution type" with the PSTOP instruction beforehand. (See Section 7.17.1)

(9) The "PUNLOADP instruction" and "write during RUN" processing cannot be executed

simultaneously.

(a) When a write during RUN request is given during processing of the PUNLOADP

instruction, write during RUN is delayed. Write during RUN is started after the processing of the PUNLOADP instruction is completed.

(b) When the PUNLOADP instruction is executed during write during RUN, the processing

of the PUNLOADP instruction is delayed. The processing of the PUNLOADP instruction is started after completion of write during RUN.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The file name designated by does not exist. (Error code: 2410)
  • The program designated by is not in standby status or is being executed.
(Error code4101)

Program Example

(1) The following program deletes "ABCD.QPG" stored in drive 0 from the memory when M0

turns from OFF to ON.

[Ladder Mode] [List Mode]

Instruction Device Step

Page 813 of the Mitsubishi Electronics QCPU user manual — 1 2 MAIN1
Page 813 · click to enlarge
Page 813

PSWAPP

7.18.18 Load + Unload (PSWAPP)

PSWAPP

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — PSWAPP diagram (page 813)
Fig. 1320

: Character string data of the file name of the program to be unloaded, or head number of the devices storing

the character string data (BIN 16 bits)

: Drive No. storing the program to be loaded, character string data of the file name, or head number of the

devices storing the character string data (BIN 16 bits) *1

Mitsubishi Electronics QCPU — PSWAPP diagram (page 813)
Fig. 1321

: Device turned ON for 1 scan on completion of the instruction (bits)

*1: Designated as ":". Example) 1:MAIN *2: Local devices cannot be used.

Function

7.18 Other instructions 7.18.18 Load + Unload (PSWAPP)

(1) The standby type program stored in the program memory (drive 0) designated by is deleted from the program memory, and at the same time, the program stored in the memory card or standard ROM designated by is transferred to the program memory and placed in standby status.

(When the program is transferred to the program memory, the program must have a continuous free space.) The program set as the "scan execution type" with the PSCAN instruction or the program set as the "low speed execution type" with the PLOW instruction cannot be deleted.

(2) The program to be transferred to the program memory by the PSWAPP instruction will have

the program No. of the program to be deleted from the program memory.

(If there is an open program No. before the program to be deleted from the program memory, the program to be transferred to the program memory will not have the open program No.) When program No. 2 is "Empty", the program transferred to the program memory is registered as program No. 3 by the program swapping of program No. 3 with this instruction.

Program No. Program name Program No. Program name

1 2 MAIN1

1 2 MAIN1

Empty MAIN3 MAIN4 MAIN5

Swaps "MAIN3" with "MAIN6" by the PSWAPP instruction.

Empty MAIN6 MAIN4 MAIN5

MAIN6 enters

Page 814 of the Mitsubishi Electronics QCPU user manual — PSWAPP
Page 814 · click to enlarge
Page 814

PSWAPP

(3) Drive Nos. 1, 2, and 4 can be specified. (Drive 3 cannot be specified.)

  • Drive 1: Memory card (RAM)
  • Drive 2: Memory card (ROM)
  • Drive 4: Standard ROM

(4) An extension (.QPG) need not be specified for the file name.

(5) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed. The bit device is turned OFF at the next END processing.

(6) The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously.

If two or more of the above instructions are executed simultaneously, the instruction executed later will not be executed. When using the above instructions, provide interlocks manually to avoid simultaneous execution.

(7) When the Programmable Controller is powered OFF, then ON or the CPU module is reset

after execution of the PSWAPP instruction, the following operation is performed.

(a) When boot setting has been made in the PLC parameter dialog box, the program where

the boot setting has been made is transferred to the program memory. When the program replaced by the PSWAPP instruction is to be executed, change the boot setting and program setting of the PLC parameter dialog box for the corresponding program name.

(b) When boot setting has not been made in the PLC parameter dialog box, "FILE SET

ERROR (error code: 2400)" occurs. 1) When the program replaced by the PSWAPP instruction is to be executed, change the program setting of the PLC parameter dialog box for the corresponding program name. 2) To execute the program set in the program setting of the PLC parameter dialog box, write the corresponding program to the CPU module again.

(8) Do not execute this instruction in an interrupt program.

(Execution of this instruction in an interrupt program can cause a malfunction.)

(9) The PLC file settings of the program on which the PSWAPP instruction has been conducted

are set as follows:

(a) File usage for each program

All the usage of file register, device initial value, comment, and local device of the program after the execution of the PSWAPP instruction are set as "Use PLC file setting".

(b) I/O refresh setting

Nothing is set for both input and output for the I/O refresh setting of the program after the PSWAPP instruction has been executed.

(10) The "PSWAPP instruction" and "write during RUN" processing cannot be executed

simultaneously.

(a) When a write during RUN request is given during processing of the PSWAPP

instruction, write during RUN is delayed. Write during RUN is started after the processing of the PSWAPP instruction is completed.

(b) When the PSWAPP instruction is executed during write during RUN, the processing of

the PSWAPP instruction is delayed. The processing of the PSWAPP instruction is started after completion of write during RUN.

Page 815 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 815 · click to enlarge
Page 815

PSWAPP

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The drive No. or the file name designated by or does not exist.

S1 S2

(Error code2410)
  • The drive No. designated by is invalid. (Error code: 4100)
  • There is not enough memory to load the specified program in drive 0.
(Error code2413)
  • The program designated by is not in standby status or is being executed.
(Error code4101)

Program Example

(1) The following program deletes "EFGH.QPG" stored in drive 0 from the memory, transfers

"ABCD.QPG" stored in drive 4 to drive 0, and places the program in standby status when M0 is turned from OFF to ON.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 815)
Fig. 1322 · Program Example

7.18 Other instructions 7.18.18 Load + Unload (PSWAPP)

Instruction Device Step

Page 816 of the Mitsubishi Electronics QCPU user manual — RBMOV(P)
Page 816 · click to enlarge
Page 816

RBMOV(P)

7.18.19 High-speed Block Transfer of File Register (RBMOV(P))

RBMOV(P)

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — RBMOV(P) diagram (page 816)
Fig. 1323

: Head number of the devices where the data to be transferred is stored (BIN 16 bits)

: Head number of the devices of transfer destination (BIN 16 bits) n : Number of data to be transferred (BIN 16 bits)

Mitsubishi Electronics QCPU — RBMOV(P) diagram (page 816)
Fig. 1324

(1) Transfers in batch 16-bit data of n points from the device designated by to location n

Mitsubishi Electronics QCPU — RBMOV(P) diagram (page 816)
Fig. 1325

(2) The transfer is available even if there is an overlap between the source and destination

devices. For the transmission to the smaller number of device, the data is transferred from . For the transmission to the larger number of device, the data is transferred from +(n-1).

However, as shown in the example below, when transferring data from R to ZR, or from ZR to R, the range to be transferred (source) and the range of destination must not overlap.

  • ZR transfer range ((specified head No. of ZR) to (specified head No. of ZR + the number

of transfers -1)) R transfer range ((specified head No. of R + file register block No. 32768) to (specified head No. of R + file register block No. 32768 + the number of transfers -1))

Page 817 of the Mitsubishi Electronics QCPU user manual — S D
Page 817 · click to enlarge
Page 817

RBMOV(P)

Example

Transfer ranges of ZR and R overlap when transferring 10000 points of data from ZR30000 (source) to R10 (block No.1 of the destination).

  • ZR transfer range (30000) to (30000+10000-1) (30000) to (39999)
  • R transfer range (10+(1 32768)) to (10+(1 32768)+10000-1) (32778) to (42777) Therefore, the range 32778 to 39999 overlaps.

Source of transfer Destination of transfer

ZR0 R0

Overlapped Block No. 0

ZR30000

R10 R32767

ZR39999

R10009

Block No. 1

(3) When is a word device and is a bit device, the number of bits designated by the bit device digit specification will be transferred. If K1Y30 has been designated by , the lower four bits of the word device designated by will be transferred.

S D

+1 +2 R100 1 0 1 1 b0 b1 b2 b3 b4 b15

D D

n 0 0 1 1 1 0 1 0 Y30 Y33 Y37 Y34 Y3B Y38

R101 0 0 1 1 +1

R102 0 1 1 1 +2

7.18 Other instructions 7.18.19 High-speed Block Transfer of File Register (RBMOV(P))

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The device range of n points from or exceeds the corresponding device range.

S D

(Error code4101)
  • The file register is not specified for either or . (Error code: 4101)

S D

n

Page 818 of the Mitsubishi Electronics QCPU user manual — RBMOV(P)
Page 818 · click to enlarge
Page 818

RBMOV(P)

Program Example

(1) The following program outputs the lower four bits of data in R66 to R69 to Y30 through Y3F

in units of 4 points.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — RBMOV(P) diagram (page 818)
Fig. 1326

1 Y33 to Y30 1 0 1 0 1 0 1

Y37 to Y34 Y3B to Y38 Y3F to Y3C

0 0 1 0 1 0 R68 R69

(2) The following program outputs the data in X20 to X2F to R100 to R103 in units of 4 points.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — RBMOV(P) diagram (page 818)
Fig. 1327

0 1 1 1 0 1 0 1 X20 X23 X2B X28 X2F X2C

0 1 0

0 1 1 0 R101

0 1 0 R102

0 1 0 R103

Instruction Device Step · Instruction Device Step

Page 819 of the Mitsubishi Electronics QCPU user manual — Q26UDE(H)CPU
Page 819 · click to enlarge
Page 819

RBMOV(P)

The RBMOV (P) instruction is useful to batch transfer a large quantity of file register data with the QnHCPU/QnPHCPU/QnPRHCPU. For the QnUCPU, the processing speed of the RBMOV instruction is equivalent to that of the BMOV instruction. The comparison of processing speed between the RBMOV and BMOV instructions is as follows:

(1)Transfer from file registers to internal devices/internal devices to file registers

1 word 1000 words 10000 words

file register is stored

Min. Max. Min. Max. Min. Max.

Standard RAM 20.0 µs 91.0 µs 775.0 µs

RBMOV

SRAM card 22.0 µs 305.0 µs 2900.0 µs

Flash card *1 22.5 µs 405.0 µs 3950.0 µs

Standard RAM 7.5 µs 76.2 µs 720.0 µs

BMOV

8.0 µs 384.0 µs 3900.0 µs

Flash card *1 418.0 µs 4250.0 µs

Standard RAM 45.5 µs 215.0 µs 1850.0 µs

RBMOV

49.5 µs 540.0 µs 5150.0µs Flash card *1

Standard RAM 17.5 µs 177.0 µs 1700.0 µs

BMOV

18.0 µs 500.0 µs 5050.0 µs

Flash card *1 572.0 µs 5800.0 µs

Standard RAM 12.2 µs 34.9 µs 121.5 µs 145.1 µs 1111.5 µs 1135.1 µs

RBMOV

SRAM card*2 -

Flash card *2 -

Q00UCPU

Q01UCPU

Standard RAM 7.3 µs 13.8 µs 116.5 µs 124.2 µs 1106.5 µs 1114.2 µs

BMOV

SRAM card*2 -

7.18 Other instructions 7.18.19 High-speed Block Transfer of File Register (RBMOV(P))

Flash card *2 -

Standard RAM 9.4 µs 31.3 µs 118.5 µs 141.3 µs 1108.5 µs 1131.3 µs

RBMOV

SRAM card 9.4 µs 31.4 µs 178.5 µs 201.3 µs 1708.5 µs 1731.3 µs

Flash card *1 9.4 µs 32.1 µs 278.5 µs 301.3 µs 2708.5 µs 2731.3 µs

Q02UCPU

Standard RAM 5.0 µs 11.6 µs 114.5 µs 122.3 µs 1104.5 µs 1112.3 µs

BMOV

SRAM card 5.1 µs 11.7 µs 174.5 µs 182.3 µs 1704.5 µs 1712.3 µs

Flash card *1 5.0 µs 11.6 µs 274.5 µs 282.3 µs 2704.5 µs 2712.3 µs

Standard RAM 11.3 µs 16.8 µs 120.7 µs 127.1 µs 1110.7 µs 1117.1 µs

RBMOV

SRAM card 11.2 µs 16.7 µs 180.7 µs 187.1 µs 1710.7 µs 1717.1 µs

Flash card *1 11.3 µs 16.8 µs 280.7 µs 287.1 µs 2710.7 µs 2717.1 µs

Q03UD(E)CPU

Standard RAM 4.8 µs 6.6 µs 114.7 µs 117.1 µs 1104.7 µs 1107.1 µs

BMOV

SRAM card 4.8 µs 6.6 µs 147.7 µs 177.1 µs 1704.7 µs 1707.1 µs

Flash card *1 4.8 µs 6.5 µs 274.7 µs 277.1 µs 2704.7 µs 2707.1 µs

Standard RAM 9.2 µs 15.1 µs 61.0 µs 68.6 µs 531.0 µs 538.6 µs

Q04UD(E)HCPU

RBMOV

SRAM card 9.4 µs 15.6 µs 165.0 µs 172.6 µs 1576.0 µs 1583.6 µs

Q06UDE(H)CPU

Q10UDE(H)CPU

Flash card *1 9.4 µs 15.7 µs 260.0 µs 267.6 µs 2526.0 µs 2533.6 µs

Q13UDE(H)CPU

Standard RAM 4.1 µs 5.6 µs 56.0 µs 58.6 µs 526.0 µs 528.6 µs

Q20UDE(H)CPU

BMOV

SRAM card 4.5 µs 6.1 µs 160.0 µs 162.6 µs 1571.0 µs 1573.6 µs

Q26UDE(H)CPU

Flash card *1 4.3 µs 6.2 µs 255.0 µs 257.6 µs 2521.0 µs 2523.6 µs

*1 : When file registers are stored in the Flash card, no processing is performed for transfer from internal devices to file registers. *2 : Unusable for the Q00UCPU and Q01UCPU.

Show 9 more labels / short text on this page
CPU Instruction · Target memory where · QnHCPU · QnPHCPU · QnPRHCPU · SRAM card · SRAM card · QnCPU · SRAM card
Page 820 of the Mitsubishi Electronics QCPU user manual — Q26UDE(H)CPU
Page 820 · click to enlarge
Page 820

RBMOV(P)

(2)Transfer from file registers to file registers

1 word 1000 words 10000 words

file register is stored

Min. Max. Min. Max. Min. Max.

Standard RAM 20.0 µs 91.0 µs 775.0 µs

RBMOV

SRAM card 22.5 µs 545.0 µs 5300.0 µs

Standard RAM 7.5 µs 77.0 µs 720.0 µs

BMOV

SRAM card 8.5 µs 692.0 µs 7050.0 µs

Standard RAM 45.5 µs 215.0 µs 1850.0 µs

RBMOV

SRAM card 50.0 µs 870.0 µs 8350.0 µs

Standard RAM 17.5 µs 179.0 µs 1700.0 µs

BMOV

SRAM card 18.5 µs 839.0 µs 8600.0 µs

Standard RAM 12.6 µs 35.3 µs 232.5 µs 256.1 µs 2211.5 µs 2235.1 µs

RBMOV

Q00UCPU

SRAM card*2 -

Q01UCPU

Standard RAM 7.7 µs 14.2 µs 227.5 µs 234.2 µs 2206.5 µs 2214.2 µs

BMOV

SRAM card*2 -

Standard RAM 9.6 µs 31.5 µs 228.5 µs 252.3 µs 2208.5 µs 2231.3 µs

RBMOV

SRAM card 9.6 µs 31.5 µs 378.5 µs 401.3 µs 3708.5 µs 3731.3 µs

Q02UCPU

Standard RAM 5.2 µs 11.8 µs 224.5 µs 232.3 µs 2204.5 µs 2212.3 µs

BMOV

SRAM card 5.2 µs 11.8 µs 374.5 µs 382.3 µs 3704.5 µs 3712.3 µs

Standard RAM 11.2 µs 16.7 µs 230.7 µs 237.1 µs 2210.7 µs 2217.1 µs

RBMOV

SRAM card 11.6 µs 16.7 µs 380.7 µs 387.1 µs 3710.7 µs 3717.1 µs

Q03UD(E)CPU

Standard RAM 4.9 µs 6.7 µs 224.7 µs 227.1 µs 2204.7 µs 2207.1 µs

BMOV

SRAM card 5.2 µs 6.7 µs 374.7 µs 377.1 µs 3704.7 µs 3707.1 µs

Q04UD(E)HCPU

Standard RAM 9.3 µs 15.5 µs 118.0 µs 124.6 µs 1102.0 µs 1107.6 µs

RBMOV

Q06UDE(H)CPU

SRAM card 9.7 µs 15.5 µs 365.0 µs 371.6 µs 3571.0 µs 3578.6 µs

Q10UDE(H)CPU

Standard RAM 4.3 µs 6.2 µs 113.0 µs 115.6 µs 1096.0 µs 1098.6 µs

Q13UDE(H)CPU

Q20UDE(H)CPU

BMOV

SRAM card 4.5 µs 6.1 µs 360.0 µs 362.6 µs 3566.0 µs 3568.6 µs

Q26UDE(H)CPU

*1 : Unusable for the Q00UCPU and Q01UCPU.

Show 6 more labels / short text on this page
Target memory where · CPU Instruction · QnHCPU · QnPHCPU · QnPRHCPU · QnCPU
Page 822 of the Mitsubishi Electronics QCPU user manual — Index - 2
Page 822 · click to enlarge
Page 822

BIN 16-bit addition operations (+) 6-22 BIN 32-bit addition operations (D+) 6-26 Block addition (BK+) 6-59,6-62 Addition and subtraction of floating decimal point data (Double precision) (ED+, ED-) 6-50,6-52 Addition and subtraction of floating decimal point data (Single precision) (E+, E-) 6-46,6-48 ADRSET (Indirect address read) 7-395 ANB (Ladder block series connections) 5-10 AND (=, , >, , D, E, ED

- (BIN 16-bit subtraction operations) 6-22 $+ (Linking character strings) 6-65,6-67 $=, $, $>, $

16-bit data block transfers (FMOV) 6-120,6-122 16-bit data checks (SUM) 7-69 16-bit data exchange (XCH) 6-124 16-bit data exclusive NOR operation (WXNR) 7-27 16-bit data searches (SER) 7-66 16-bit dead band controls (BAND) 7-324 16-bit exclusive OR operations (WXOR) 7-19 16-bit negation transfers (CML) 6-114 16-bit transfers (MOV) 6-106 1-bit shift to left of n-bit data (BSFL) 7-49,7-51 1-bit shift to right of n-bit data (BSFR) 7-49,7-51 1-word shift to left of n-word data (DSFL) 7-54,7-56 1-word shift to right of n-word data (DSFR) 7-54,7-56 32-bit data checks (DSUM) 7-69 32-bit data exchanges (DXCH) 6-124 32-bit data exclusive NOR operation (DXNR) 7-27 32-bit data searches (DSER) 7-66 32-bit dead band controls (DBAND) 7-324 32-bit exclusive OR operations (DXOR) 7-19 32-bit negation transfers (DCML) 6-114 32-bit transfers (DMOV) 6-106 4-bit dissociation of 16-bit data (DIS) 7-77 4-bit linking of 16-bit data (UNI) 7-79 7-segment decode (SEG) 7-75

6-8 And inverse (ANI) 5-3 AND($=, $, $>, $

7-228 ASIN (SIN-1 operation on floating-point data (Single precision)) 7-262 ASIND (SIN-1 operation on floating-point data (Double precision)) 7-265 ATAN (TAN-1 operation on floating-point data (Single precision)) 7-271 ATAND (TAN-1 operation on floating-point data

7-273

[B]

B- (BCD 4-digit subtraction) 6-34 B contact operation start (LDI) 5-2 B* (BCD 4-digit multiplication) 6-42 B+ (BCD 4-digit addition) 6-34 B/ (BCD 4-digit division) 6-42 BACOS (BCD type COS-1 operation) 7-317 BAND (16-bit dead band controls) 7-324 Basic instructions 2-10 BASIN (BCD type SIN-1 operation) 7-315 BATAN (BCD type TAN-1 operation) 7-313 Batch recovery of index register (ZPOP) 7-400 Batch reset of bit devices (BKRST) 7-64 Batch save of index register (ZPUSH) 7-400 BCD (BIN data to 4-digit) 6-73 BCD 4-digit addition and subtraction operations (B+, B-) 6-34

[A]

A contact operation start (LD) 5-2 A contact parallel connection (OR) 5-2 A contact series connection (AND) 5-2 ACOS (COS-1 operation on floating-point data (Single precision)) 7-267 ACOSD (COS-1 operation on floating-point data (Double precision)) 7-269 Addition

Addition of floating decimal point (Double precision) (ED+) 6-50,6-52 Addition of floating decimal point (Single precision) (E+) 6-46,6-48 BCD 4-digit addition (B+) 6-34 BCD 8-digit addition (DB+) 6-38

Index - 2

[Symbols] · [Numerics]

Page 823 of the Mitsubishi Electronics QCPU user manual — Index - 3
Page 823 · click to enlarge
Page 823

BCD 4-digit multiplication and division operations (B*, B/) 6-42 BCD 4-digit square roots (BSQR) 7-306 BCD 8-digit addition and subtraction operations (DB+, DB-) 6-38 BCD 8-digit multiplication and division operations (DB*, DB/) 6-44 BCD 8-digit square roots (BDSQR) 7-306 BCD conversion

BK+ (Block addition) 6-59,6-62 BKAND (Block logical products) 7-9 BKBCD (Conversion from block BIN 16-bit data to BCD 4-digit data) 6-98 BKBIN (Conversion from block BCD 4-digit data to block BIN 16-bit data) 6-100 BKCMP (BIN block data comparisons) 6-15,6-18 BKOR (Block logical sum operations) 7-17 BKRST (Batch reset of bit devices) 7-64 BKXNR (Block exclusive NOR operations) 7-33 BKXOR (Block exclusive OR operations) 7-25 Block 16-bit exchanges (BXCH) 6-126 Block 16-bit transfers (BMOV) 6-117 Block addition (BK+) 6-59,6-62 Block exclusive NOR operations (BKXNR) 7-33 Block exclusive OR operations (BKXOR) 7-25 Block logical products (BKAND) 7-9 Block logical sum operations (BKOR) 7-17 Block subtraction (BK-) 6-59,6-62 BMOV (Block 16-bit data transfers) 6-117 BREAK (Forced end of FOR to NEXT instruction loop)

Conversion from BIN data to 4-digit BCD (BCD)

6-73 Conversion from BIN data to 8-digit BCD (DBCD)

6-73 BCD type COS operations (BCOS) 7-311 BCD type COS-1 operations (BACOS) 7-317 BCD type SIN operation (BSIN) 7-309 BCD type SIN-1 operation (BASIN) 7-315 BCD type TAN operation (BTAN) 7-313 BCD type TAN-1 operations (BATAN) 7-319 BCDDA (Conversion from BCD 4-digit to decimal ASCII) 7-189 BCOS (BCD type COS operations) 7-311 BDSQR (BCD 8-digit square roots) 7-306 BIN (BCD 4-digit data to BIN data) 6-75 BIN 16-bit addition and subtraction operations (+, -) 6-22 BIN 16-bit data comparisons (=, , >, , D

7-108 BRST (Bit reset for word devices) 7-59 BSET (Bit set for word devices) 7-59 BSFL (1-bit shift to left of n-bit data) 7-49,7-51 BSFR (1-bit shift to right of n-bit data) 7-49,7-51 BSIN (BCD type SIN operation) 7-309 BSQR (BCD 4-digit square roots) 7-306 BTAN (BCD type TAN operation) 7-313 BTOW (Data linking in byte units) 7-85 Buffer memory access instructions 2-41 BXCH (Block 16-bit data exchanges) 6-126

[C]

Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P)) 7-103 Calculation of totals for 16-bit data (WSUM) 7-99 Calculation of totals for 32-bit data (DWSUM)

7-101,7-103 CALL (Subroutine program calls) 7-110 Cautions on programming 3-27 Changing check format of CHK instruction (CHKCIR, CHKEND) 7-179 Character string data 3-11 Character string data comparisons 6-11 Character string length detection (LEN) 7-204 Character string processing instructions 2-43 Character string search (INSTR) ...7-239,7-241,7-243 Character string transfers ($MOV) 6-112 CHKCIR (Changing check format of CHK instruction)

7-179 CHKEND (Changing check format of CHK instruction)

7-179 CHKST, CHK (Special format failure checks) 7-175 CJ (Pointer branch instruction) 6-129 Clock comparison (TM=,TM,TM>,TM=) 7-361 Clock data addition operation (DATE+) 7-348 Clock data subtraction operation (DATE-) 7-350 Clock instructions 2-52

Index - 3

Page 824 of the Mitsubishi Electronics QCPU user manual — Index - 4
Page 824 · click to enlarge
Page 824

CML (16-bit negation transfers) 6-114 COM (Refresh instruction) 7-134,7-137,7-141 Common logarithm operation on floating-point data (Double precision) (LOG10D(P)) 7-302 Common logarithm operation on floating-point data (Single precision) (LOG10(P)) 7-300 Comparison operation instruction table 2-10 Comparison operation instructions 6-2 Comparisons (BIN 16-bit data) 6-2 Comparisons (BIN 32-bit data) 6-4 Comparisons (Character string data) 6-11 Complement of 2 of BIN 16-bit data (NEG) 6-94 Complement of 2 of BIN 32-bit data (DNEG) 6-94 COMRD (Reading device comment data) 7-201 Conditions for execution of instructions 3-33 Connection instructions

Conversion from ASCII to hexadecimal BIN (HEX)

7-230 Conversion from BCD 4-digit to decimal ASCII (BCDDA) 7-189 Conversion from BCD 8-digit to decimal ASCII (DBCDDA) 7-189 Conversion from BIN 16-bit to character string (STR)

7-206 Conversion from BIN 16-bit to decimal ASCII (BINDA)

7-183 Conversion from BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 Conversion from BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 Conversion from BIN 16-bit to hexadecimal ASCII (BINHA) 7-186 Conversion from BIN 32-bit to character string (DSTR)

Association instruction table 2-7 Ladder block parallel connection (ORB) 5-10 Ladder block series connection (ANB) 5-10 Linking character strings ($+) 6-65 Contact instruction 2-6 Contact instructions

7-206 Conversion from BIN 32-bit to decimal ASCII (DBINDA) 7-183 Conversion from BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 Conversion from BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 Conversion from BIN 32-bit to hexadecimal ASCII (DBINHA) 7-186 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN) 6-100 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD) 6-98 Conversion from character string to BIN 16-bit (VAL)

Operation start (LD, LDI) 5-2 Parallel connection (OR, ORI) 5-2 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF,ORP) 5-5,5-7 Pulse serial connection (ANF, ANP) 5-5,5-7 Series connection (AND, ANI) 5-2 Conversion

BCD 4-digit to BIN (BIN) 6-75 BCD 8-digit to BIN (DBIN) 6-75 BIN 16-bit to BIN 32-bit (DBL) 6-88 BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 BIN 16-bit to Gray code (GRY) 6-90 BIN 32-bit to BIN 16-bit (WORD) 6-89 BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 BIN 32-bit to Gray code (DGRY) 6-90 BIN to BCD 4-digit (BCD) 6-73 BIN to BCD 8-digit (DBCD) 6-73 Double precision to Single precision (EDCON)

7-212 Conversion from character string to BIN 32-bit (DVAL)

7-212 Conversion from character string to floating decimal point (EVAL) 7-224 Conversion from decimal ASCII to BCD 4-digit (DABCD) 7-198 Conversion from decimal ASCII to BCD 8-digit (DDABCD) 7-198 Conversion from decimal ASCII to BIN 16-bit (DABIN)

7-192 Conversion from decimal ASCII to BIN 32-bit (DDABIN) 7-192 Conversion from floating decimal point to character string (ESTR) 7-217 Conversion from floating-point angle to radian (Double precision) (RADD) 7-277 Conversion from floating-point angle to radian (Single precision) (RAD) 7-275 Conversion from floating-point radian to angle (Double precision) (DEGD) 7-281,7-283,7-285 Conversion from floating-point radian to angle (Single precision) (DEG) 7-279 Conversion from hexadecimal ASCII to BIN 16-bit (HABIN) 7-195 Conversion from hexadecimal ASCII to BIN 32-bit (DHABIN) 7-195

6-104 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Floating decimal point data to BIN32-bit (Double precision) (DINTD) 6-86 Gray code to BIN 16-bit (GBIN) 6-92 Gray code to BIN 32-bit (DGBIN) 6-92 Single precision to Double precision (ECON)

6-102

Index - 4

Page 825 of the Mitsubishi Electronics QCPU user manual — Index - 5
Page 825 · click to enlarge
Page 825

Conversion from hexadecimal BIN to ASCII (ASC) 7-228 Conversion of Gray code to BIN 16-bit (GBIN) 6-92 Conversion of Gray code to BIN 32-bit (DGBIN) 6-92 Conversion to BIN

Data table operation instructions 2-40 DATE- (Clock data subtraction operation) 7-350 Date comparison (DT=,DT,DT>,DT=) 7-356 DATE+ (Clock data addition operation) 7-348 DATERD (Reading clock data) 7-344 DATEWR (Writing clock data) 7-346 DB- (BCD 8-digit subtraction) 6-38 DB* (BCD 8-digit multiplication) 6-44 DB+ (BCD 8-digit addition) 6-38 DB/ (BCD 8-digit division) 6-44 DBAND (32-bit dead band controls) 7-324 DBCD (Conversion from BIN to BCD 8-digit) 6-73 DBCDDA (Conversion from BCD 8-digit to decimal ASCII) 7-189 DBIN (BCD 8-digit to BIN 16-bit conversion) 6-75 DBINDA (Conversion from BIN 32-bit to decimal ASCII) 7-183 DBINHA (Conversion from BIN 32-bit to hexadecimal ASCII) 7-186 DBK- 6-63 DBK+ 6-62 DBL (BIN 16-bit to BIN 32-bit) 6-88 DCML (32-bit negation transfers) 6-114 DDABCD (Conversion from decimal ASCII to BCD 8-digit) 7-198 DDABIN (Conversion from decimal ASCII to BIN 32-bit) 7-192 DDEC (Decrementing 32-bit BIN) 6-71 Debugging and failure diagnosis instructions 2-42 DEC (Decrementing 16-bit BIN) 6-69 DECO (Decoding from 8 to 256 bits) 7-71 Decoding from 8 to 256 bits (DECO) 7-71 Decrement

BCD 4-digit to BIN 16-bit (BIN) 6-75 BCD 8-digit to BIN 32-bit (DBIN) 6-75 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Double precision) (DINTD) 6-86 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Conversion to floating decimal point (Double precision) (FLTD, DFLTD) 6-81 Conversion to floating decimal point (Single precision) (FLT, DFLT) 6-78 COS (COS operation on floating-point data (Single precision)) 7-254 COS operation on floating-point data (Double precision) (COSD) 7-256 COS operation on floating-point data (Single precision) (COS) 7-254 COS-1 operation on floating-point data (Double precision) (ACOSD) 7-269 COS-1 operation on floating-point data (Single precision) (ACOS) 7-267 COSD (COS operation on floating-point data (Double precision)) 7-256 Count 1-phase input or down (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Counters (OUT C) 5-26

BIN 16-bit (DEC) 6-69 BIN 32-bit (DDEC) 6-71 Decrementing 16-bit BIN (DEC) 6-69 Decrementing 32-bit BIN (DDEC) 6-71 DEG (Conversion from floating-point radian to angle (Single precision)) 7-279 DEGD (Conversion from floating-point radian to angle (Double precision)) 7-281,7-283,7-285 Deleting data from data tables (FDEL) 7-157 Deletion of character string (STRDEL(P)) 7-243 DELTA (Pulse conversion of direct output) 5-42 Designating data 3-3 Designation of modification values in index modification (IXDEV, IXSET) 7-148 Device range check 3-27 DFLT (Conversion from BIN 32-bit to floating decimal point (Single precision)) 6-78 DFLTD (Conversion from BIN 32-bit to floating decimal point (Double precision)) 6-81 DFRO (Reading 2-word data from intelligent function modules) 7-160 DGBIN (Conversion of Gray code to BIN 16-bit)

D- (BIN 32-bit subtraction operations 6-26 D(P).DDRD(Reading Devices to Another CPU) 10-17 D(P).DDWR(Writing Devices to Another CPU) 10-13 D* (BIN 32-bit multiplication operations) 6-32 D+ (BIN 32-bit addition operations) 6-26 D/ (BIN 32-bit division operations) 6-32 D=, D, D>, D

6-92 DGRY (BIN 32-bit to Gray code) 6-90 DHABIN (Conversion from hexadecimal ASCII to BIN 32-bit) 7-195

Index - 5

Page 826 of the Mitsubishi Electronics QCPU user manual — Index - 6
Page 826 · click to enlarge
Page 826

DI (Interrupt disable) 6-133 Digit designation 3-4 Digit designation of bit devices 3-4 DINC (Incrementing 32-bit BIN) 6-71 DINT (Floating decimal point data to BIN 32-bit (Single precision)) 6-83 DINTD (Floating decimal point data to BIN 32-bit (Double precision)) 6-86 Direct 1-byte read from file register (ZRRDB) 7-391 DIS (4-bit grouping of 16-bit data) 7-77 Display instructions 2-41 Dissociation of random data (NDIS) 7-81 Division

[E]

E- (Subtraction of floating decimal point data (Single precision)) 6-46,6-48 E* (Multiplication of floating decimal point data (Single precision)) 6-54 E+ (Addition of floating decimal point data (Single precision)) 6-46,6-48 E/ (Dividion of floating decimal point data (Single precision)) 6-54 E=, E, E>, E

7-120 ECON (Single precision to Double precision conversion) 6-102 ED- (Subtraction of floating decimal point data (Double precision)) 6-50,6-52 ED* (Multiplication of floating decimal point data (Double precision)) 6-56 ED+ (Addition of floating decimal point data (Double precision)) 6-50,6-52 ED/ (Dividion of floating decimal point data (Double precision)) 6-56 ED=,ED,ED>,ED

BCD 4-digit (B/) 6-42 BCD 8-digit division (DB/) 6-44 BIN 16-bit (/) 6-30 Division of floating decimal point(Double precision) (ED/) 6-56 Division of floating decimal point(Single precision) (E/) 6-54 DLIMIT (Upper and lower limit controls for BIN 32-bit) 7-321 DMAX (Maximum value search for 32-bit data)... 7-89 DMEAN(P) 7-103 DMIN (Minimum value search for 32-bit data) 7-92 DMOV (32-bit transfers) 6-106 DNEG (Complement of 2 of BIN 32-bit data) 6-94 DOR (Logical sums of 32-bit data) 7-11 Double precision to Single precision conversion (EDCON) 6-104 Double word data 3-6 DRCL (Left rotation of 32-bit data) 7-44 DRCR (Right rotation of 32-bit data) 7-41 DROL (Left rotation of 32-bit data) 7-44 DROR (Right rotation of 32-bit data) 7-41 DSCL(P) 7-331 DSCL2(P) 7-335 DSER (32-bit data searches) 7-66 DSFL (1-word shift to left of n-word data) 7-54,7-56 DSFR (1-word shift to right of n-word data) 7-54,7-56 DSORT (BIN 32-bit data sort) 7-95 DSTR (Conversion from BIN 32-bit to character string) 7-206 DSUM (32-bit data checks) 7-69 DTEST (Bit tests) 7-61 DTO (Writing 2-word data to intelligent function modules) 7-163 DUTY (Timing pulse generation) 7-388 DVAL (Conversion from character string to BIN 32-bit) 7-212 DWSUM (Calculation of totals for 32-bit data) 7-101,7-103 DXCH (16-bit data exchanges) 6-124 DXNR (32-bit data exclusive NOR operation) 7-27 DXOR (32-bit exclusive OR operations) 7-19 DZONE (Zone control for BIN 32-bit data) 7-327,7-330,7-334

7-125 EGF (Pulse operation results / leading edge) 5-18 EGP (Pulse operation results / trailing edge) 5-18 EI (Interrupt enable) 6-133 EMOD (Floating decimal point to BCD) 7-245 EMOV (Floating-point data transfer (Single precision))

6-108 ENCO (Encoding from 256 to 8 bits) 7-73 Encoding from 256 to 8 bits (ENCO) 7-73 END (End sequence program) 5-53 End main routine program (FEND) 5-51 End sequence program (END) 5-53 ENEG (Floating-point sign invertion(Single precision))

6-96 EREXP (From BCD format data to floating decimal point) 7-248 Error display and annunciator reset instruction (LEDR)

7-172 ESTR (Conversion from floating decimal point to character string) 7-217 EVAL (Conversion from character string to floating decimal point) 7-217 EXP (Exponent operation on floating-point data (Single precision)) 7-291 Expansion clock data addition operation (S.DATE+)

7-366

Index - 6

Page 827 of the Mitsubishi Electronics QCPU user manual — Index - 7
Page 827 · click to enlarge
Page 827

Expansion clock data subtraction operation (S.DATE-) 7-366 EXPD (Exponent operation on floating-point data (Double precision)) 7-294 Exponent operation on floating-point data (Double precision) (EXPD) 7-294 Exponent operation on floating-point data (Single precision) (EXP) 7-291 Exponentiation operation on floating-point data (Single precision) (POW(P)) 7-283 Exponentiation operation on floating-point data (Single precision) (POWD(P)) 7-285 Extracting character string data from the left (LEFT) 7-232 Extracting character string data from the right (RIGHT) 7-232

From BCD format data to floating decimal point (EREXP) 7-248

[G]

GBIN (Conversion of Gray code to BIN 16-bit) 6-92 GOEND (Jump to END) 6-132 GRY (BIN 16-bit to Gray code) 6-90

[H]

HABIN (Conversion from hexadecimal ASCII to BIN 16-bit) 7-195 HEX (Conversion from ASCII to hexadecimal BIN)

7-230 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 High-speed block transfer of file register (RBMOV)

[F]

7-448 HOUR (Time data conversion) 7-354 How to read instruction tables 2-4 How to read instructions 4-2

FCALL (Subroutine program output OFF calls) 7-116 FDEL (Deleting data from data tables) 7-157 FEND (End main routine program) 5-51 FF (Bit device output reverse) 5-40 FIFR (Reading oldest data from data tables) 7-153 FIFW (Writing data to the data tables) 7-151 File register direct 1-byte write (ZRWRB) 7-393 File setting for comments (QCDSET) 7-342 FINS (Inserting data in data tables) 7-157 Fixed cycle pulse output (PLSY) 6-162 Floating decimal point data comparisons (Double precision) (ED=, ED, ED>, ED, E

[I]

I/O refrech (RFS) 6-141 I/O refresh instruction table 2-27 Identical 32-bit data block transfers (DFMOV(P))

6-122 IMASK (Interrupt program mask) 6-133 INC (Incrementing 16-bit BIN) 6-69 Increment

BIN 16-bit (INC) 6-69 BIN 32-bit (DINC) 6-71 Incrementing 16-bit BIN (INC) 6-69 Incrementing 32-bit BIN (DINC) 6-71 Index modification 3-12 Indirect address read (ADRSET) 7-395 Indirect specification 3-23 Inserting data in data tables (FINS) 7-157 Insertion of character string (STRINS(P)) 7-241 INSTR (Character string search) ...7-239,7-241,7-243 Instructions for data link 2-59 INT (Floating decimal point data to BIN 16-bit (Single precision)) 6-83 INTD (Floating decimal point data to BIN 16-bit (Double precision)) 6-86 Interrupt disable (DI) 6-133 Interrupt enable (EI) 6-133 Interrupt program mask (IMASK) 6-133 INV (Operation results inversion) 5-15 Inversion

Bit device output reverse (FF) 5-40 Operation results inversion (INV) 5-15 IRET (Recovery from interrupt programs) 6-139 IX, IXEND (Index modification of entire ladder)

7-144 IXDEV (Designation of modification values in index modification) 7-148 IXSET (Designation of modification values in index modification) 7-148

Index - 7

Page 828 of the Mitsubishi Electronics QCPU user manual — Index - 8
Page 828 · click to enlarge
Page 828

[J]

[M]

JMP (Pointer branch) 6-129 Jump to END (GOEND) 6-132

Master control instructions 5-47 Matrix input (MTR) 6-166 MAX (Maximum value search for 16-bit data) 7-89 Maximum value search for 16-bit data (MAX) 7-89 Maximum value search for 32-bit data (DMAX)... 7-89 MC (Setting the master control) 5-47 MCR (Resetting the master control) 5-47 MEAN(P) 7-103 MEF (Pulse operation results / trailing edge) 5-17 MEP (Pulse operation results / leading edge) 5-17 MIDR (Random selection from character strings)

[K]

KEY (Numerical key input from keyboard) 7-396

[L]

Ladder block parallel connections (ORB) 5-10 Ladder block series connections (ANB) 5-10 LD ($=, $, $>, $, , D, E, ED

7-235 MIDW (Random replacement in character strings)

7-235 MIN (Minimum value search for 16-bit data) 7-92 Minimum value search for 16-bit data (MIN) 7-92 Minimum value search for 32-bit data (DMIN) 7-92 MOV (16-bit transfers) 6-106 MPP (Operation results pop) 5-12 MPS (Operation results push) 5-12 MRD (Operation results read) 5-12 MTR (Matrix input) 6-166 Multiplication

BCD 4-digit (B*) 6-42 BCD 8-digit (DB*) 6-44 BIN 16-bit (*) 6-30 BIN 32-bit (D*) 6-32 Multiplication of floating decimal point (Double precision) (ED*) 6-56 Multiplication of floating decimal point (Single precision) (E*) 6-54 Multiplication and division of floating decimal point (Double precision)(ED*, ED/) 6-56 Multiplication and division of floating decimal point (Single precision)(E*, E/) 6-54

[N]

Natural logarithm operation on floating-point data (Double precision) (LOGD) 7-298 Natural logarithm operation on floating-point data (Single precision) (LOG) 7-296,7-302 n-bit shift to left of 16-bit data (SFL) 7-46 n-bit shift to right of 16-bit data (SFR) 7-46 n-bit shift to right or left of n-bit data (SFTBR(P), SFTBL(P)) 7-51 n-bit shift to right or left of n-word data (SFTWR(P), SFTWL(P)) 7-56 NEG (complement of 2 of BIN 16-bit data) 6-94 Network refresh instruction (ZCOM) 8-2 NEXT (FOR to NEXT) 7-105 No operation (NOP, NOPLF, PAGE) 5-57 NOP 5-57 NOP (No operation) 5-57 NOPLF (No operation page change) 5-57 Number of steps 3-34 Numerical key input (KEY) 7-396 Numerical key input from keyboard (KEY) 7-396 NUNI (Linking of random data) 7-81

Index - 8

Page 829 of the Mitsubishi Electronics QCPU user manual — Index - 9
Page 829 · click to enlarge
Page 829

[O]

PLOW (Program low speed execution registration)

7-382 PLS (Leading edge output) 5-37 PLSY (Fixed cycle pulse output) 6-162 POFF (Program output OFF standby instruction)

Operation errors 3-27 Operation results inversion (INV) 5-15 Operation results pop (MPP) 5-12 Operation results push (MPS) 5-12 Operation results read (MRD) 5-12 Operation start (LD, LDI) 5-2 OR ($=, $, $>, $, , D, E, ED

7-378 Pointer branching instruction (CJ, SCJ, JMP) ... 6-129 Pop (MPP) 5-12 PR (Print ASCII code instruction) 7-166 PRC (Print comment instruction) 7-169 Print ASCII code instruction (PR) 7-166 Print comment instruction (PRC) 7-169 Program branch instruction table 2-27 Program control instructions 2-56 Program execution control instruction table 2-27 Program low speed execition registration instruction (PCHK) 7-384 Program low speed execution registration (PLOW)

7-382 Program output OFF standby instruction (POFF)

7-378 Program scan execution registration instruction (PSCAN) 7-380 Program standby instruction (PSTOP) 7-377 PSCAN (Program scan execution registration instruction) 7-380 PSTOP (Program standby instruction) 7-377 PSWAPP (Load + unload) 7-445 Pulse conversion

(DELTA) 5-42 (EGF, EGP) 5-18 (MEF, MEP) 5-17 Pulse conversion of direct output (DELTA) 5-42 Pulse density measurement (SPD) 6-160 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection LDPI,LDFI, ANDPI,ANDFI,ORPI,ORFI) 5-7 Pulse operation results

Application instructions 2-29 Sequence instructions 2-6 OUT

Annunciator output (OUT F) 5-28 Counters (OUT C) 5-26 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 Low speed retentive timer (OUT ST) 5-22 Low speed timer (OUT T) 5-22 Output (OUT) 5-20 Out instructions (OUT) 5-20 Output instruction table 2-8 Output instructions (OUT) 5-20 Output of sub-routine program OFF calls (FCALL) 7-116 Output OFF calls between program files (EFCALL) 7-125 Output reverse (FF) 5-40

Operation result conversions (MEF, MEP) 5-17 Pulse conversions of edge relay operation results (EGF, EGP) 5-18 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF, ORP) 5-5,5-7 Pulse series connection (ANDF, ANDP) 5-5 Pulse width modulation (PWM) 6-164 PUNLOADP (Unload program from program memory)

7-443 Push (MPS) 5-12 PWM (Pulse width modulation) 6-164

[P]

PAGE (No operation page change) 5-57 Page change (NOPLF) 5-57 Page change (PAGE n) 5-57 Parallel connection (OR, ORI) 5-2 Parallel connections (ORB) 5-10 PCHK (Program low speed execution registeration instruction) 7-384 PLF (Trailing edge output) 5-37 PLOADP (Load program from Memory Card) ... 7-440

[Q]

QCDSET (File setting for comments) 7-342 QCPU dedicated instructions 2-60 QDRSET(Setting files for file register use) 7-339

[R]

RAD (Conversion from floating-point angle to radian (Single precision)) 7-275

Index - 9

Page 830 of the Mitsubishi Electronics QCPU user manual — Index - 10
Page 830 · click to enlarge
Page 830

RADD (Conversion from floating-point angle to radian (Double precision)) 7-277 RAMP (Ramp signal) 6-157 Ramp signal (RAMP) 6-157 Random number generation (RND/SRND) 7-304 Random selection from and replacement in character strings (MIDR) 7-235 Random selection replacement in character strings (MIDW) 7-235 RBMOV (High-speed block transfer of file register) 7-448 RCL (Left rotation of 16-bit data) 7-38 RCR (Right rotation of 16-bit data) 7-35 Read (MRD) 5-12 Read data from standard ROM (S.DEVLD) 7-438 Reading 1-word data from intelligent function modules (FROM) 7-160 Reading 2-word data from intelligent function modules (DFRO) 7-160 Reading clock data (DATERD) 7-344 Reading data from designated file (SP.FREAD) 7-424 Reading device comment data (COMRD) 7-201 Reading expansion clock data (S.DATERD) 7-366 Reading from other CPU shared memory (FROM) 9-12 Reading module information (UNIRD) 7-402 Reading newest data from data tables (FPOP) 7-155 Reading oldest data from data tables (FIFR) 7-153 Reading routing information (RTREAD) 8-6 Real number data 3-8 Recovery from interrupt programs (IRET) 6-139 Refresh instruction (COM) 7-134 Related programming manuals 1-2 Resetting devices (RST) 5-32,5-35 Resetting the annunciators (RST F) 5-35 Resetting the master control (MCR) 5-47 Resetting watchdog timer (WDT) 7-386 RET (Return from sub-routine programs) 7-115 Return from sub-routine programs (RET) 7-115 Revercing

ROTC (Rotary table shortest direction control)

6-154 RSET (Switching file register numbers) 7-337 RST

Resetting devices (RST) 5-32 Resetting the annunciators (RST F) 5-35 RTREAD (Reading routing information) 8-6 RTWRITE (Writing routing information) 8-8

S.DATE- (Expansion clock data subtraction operation)

7-366 S.DATE+ (Expansion clock data addition operation)

7-366 S.DATERD (Reading expansion clock data) 7-366 S.DEVLD (Read data from standard ROM) 7-438 S.TO (Write to host CPU shared memory) 9-4 Scaling (Point-by-point coordinate data) (SCL(P), DSCL(P)) 7-330 Scaling (Point-by-point coordinate data) (SCL2(P), DSCL2(P)) 7-334 SCJ (Pointer branching instruction) 6-129 SCL(P) 7-330 SCL2 7-334 SECOND (Time data conversion) 7-352 SEG (7-segment decode) 7-75 Sequence instructions 2-6 Sequence program stop (STOP) 5-55 SER (16-bit data searches) 7-66 Series connection (AND, ANI) 5-2 Series connections (ANB) 5-10 SET

Setting devices (SET) 5-30 Setting the annunciators (SET F) 5-35 Setting devices (SET) 5-30,5-35 Setting files for file register use (QDRSET) 7-339 Setting the annunciators (SET F) 5-35 Setting the master control (MC) 5-47 SFL (n-bit shift to left of 16-bit data) 7-46 SFR (n-bit shift to right of 16-bit data) 7-46 SFT (Bit device shifts) 5-44 SFTBL(P) 7-52 SFTBR(P) 7-51 SFTWL(P) 7-57 SFTWR(P) 7-56 Shift instruction 5-44,7-46

Bit device output reverse (FF) 5-40 Floating-point sign invertion (Double precision) (EDNEG) 6-97 Floating-point sign invertion (Single precision) (ENEG) 6-96 Operation results inversion (INV) 5-15 RFS (I/O refresh) 6-141 RIGHT (Extracting character string data from the right) 7-232 Right rotation of 16-bit data (ROR, RCR) 7-35 Right rotation of 32-bit data (DROR, DRCL) 7-41 RND (Random number generation and series update) 7-304 ROL (Left rotation of 16-bit data) 7-38 ROR (Right rotation of 16-bit data) 7-35 Rotary table shortest direction control (ROTC) 6-154 Rotation instructions 2-32

(Application instructions) 2-29 Shift instruction table

(Sequence instructions) 2-6 SIN (SIN operation on floating-point data (Single precision)) 7-250 SIN operation on floating-point data (Double precision) (SIND) 7-252 SIN operation on floating-point data (Single precision) (SIN) 7-250 SIN-1 operation on floating-point data (Double precision) (ASIND) 7-265 SIN-1 operation on floating-point data (Single precision) (ASIN) 7-262

Index - 10

Page 831 of the Mitsubishi Electronics QCPU user manual — Index - 11
Page 831 · click to enlarge
Page 831

SIND (SIN operation on floating-point data (Double precision)) 7-252 Single precision to Double precision conversion (ECON) 6-102 SORT (BIN 16-bit data sort) 7-95 SP.CONTSW (System switching instruction) 11-2 SP.DEVST (Writing data to standard ROM) 7-436 SP.FREAD (Reading data from designated file) 7-424 SP.FWRITE (Writing data to designated file) 7-413 SPD (Pulse density measurement) 6-160 Special format failure checks (CHKST, CHK) ... 7-175 Special function instructions 2-46 Special timer (STMR) 6-151 SQR (Square root operation for floating-point data (Single precision)) 7-287 SQRD (Square root operation for floating-point data (Double precision)) 7-289 Square root operation for floating-point data (Double precision) (SQRD) 7-289 Square root operation for floating-point data (Single precision) (SQR) 7-287 SRND (Random number generation and series updates) 7-304 STMR (Special function timer) 6-151 STOP (Sequence program stop) 5-55 STR (Conversion from BIN 16-bit to character string) 7-206 Structure creation instructions 2-38 Subrotine program calls (CALL) 7-110 Subroutine calls (XCALL) 7-129 Subroutine calls between program files (ECALL) 7-120 Subroutine program output OFF calls (FCALL) 7-116 Subset processing 3-25 Subtraction

TAN-1 operation on floating-point data (Double precision)(ATAND) 7-273 TAN-1 operation on floating-point data (Single precision)(ATAN) 7-271 TAND (TAN operation on floating-point data (Double precision)) 7-260 Teaching timer (TTMR) 6-149 Termination instruction table 2-9 TEST (Bit tests) 7-61 TIMCHK (Time check instruction) 7-390 Time check instruction (TIMCHK) 7-390 Time data conversion (HOUR) 7-354,7-356,7-361 Time data conversion (SECOND) 7-352 Timer (OUT T) 5-22 Timing pulse generation (DUTY) 7-388 TO (Writing 1-word data to intelligent function modules) 7-163 TRACE (Trace set) 7-411 TRACER (Trace reset) 7-411 TTMR (Teaching timer) 6-149 Types of Instructions 2-2

[U]

UDCNT1 (Counter 1-phase input up or down) .. 6-143 UDCNT2 (Counter 2-phase input up or down) .. 6-146 UNI (4-bit linking of 16-bit data) 7-79 UNIRD (Reading module information) 7-402 Unload program from program memory (PUNLOADP)

7-443 Up / Down counter

Count 1-phase input or dawn (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Upper and lower byte exchanges (SWAP) 6-128 Upper and lower limit controls for BIN 32-bit (DLIMIT)

7-321

[V]

BCD 4-digit subtraction (B-) 6-34 BCD 8-digit subtraction (DB-) 6-38 BIN 16-bit subtraction operations (-) 6-22 BIN 32-bit subtraction operations (D-) 6-26 Block subtraction (BK-) 6-59,6-62 Subtraction of floating decimal point data (Double precision) (ED-) 6-50,6-52 Subtraction of floating decimal point data (Single precision) (E-) 6-46,6-48 SUM (16-bit data checks) 7-69 SWAP (Upper and lower byte exchanges) 6-128 Switching file register numbers (RSET) 7-337 Switching instructions 2-51 System Switching (SP.CONTSW) 11-2

VAL (Conversion from character string to BIN 16-bit)

7-212

[W]

WAND (Logical products with 16-bit data) 7-3 WDT (Resetting watchdog timer) 7-386 WOR (Logical sums of 16-bit data) 7-11 WORD (Conversion from BIN 32-bit to BIN 16-bit)

6-89 Word data 3-4 Word device bit designation 3-3 Writing 1-word data to intelligent function modules (TO) 7-163 Writing 2-word data to intelligent function modules (DTO) 7-163 Writing clock data (DATEWR) 7-346 Writing data to designated file (SP.FWRITE) 7-413 Writing data to standard ROM (SP.DEVST) 7-436 Writing data to the data tables (FIFW) 7-151 Writing routing information (RTWRITE) 8-8 Writing to the CPU shared memory of host CPU... 9-2

[T]

TAN (TAN operation on floating-point data (Single precision)) 7-258 TAN operation on floating-point data (Double precision)(TAND) 7-260 TAN operation on floating-point data (Single precision)(TAN) 7-258

Index - 11

Page 832 of the Mitsubishi Electronics QCPU user manual — Index - 12
Page 832 · click to enlarge
Page 832

S.TO 9-4 TO 9-7 WSUM (Calculation of totals for 16-bit data) 7-99 WTOB (Data dissociation in byte units) 7-85 WXNR (16-bit data exclusive NOR operation) 7-27 WXNR (16-bit data non-exclusive logical sum operations) 7-30 WXOR (16-bit exclusive OR operations) 7-19,7-22

[X]

XCALL (Subroutine program call) 7-129 XCH (32-bit data exchange) 6-124

[Z]

ZCOM (Network refresh instruction) 8-2 ZONE (Zone control for BIN 16-bit) 7-327,7-330,7-334 Zone control for BIN 16-bit (ZONE) 7-327,7-330,7-334 Zone control for BIN 32-bit data (DZONE) 7-327,7-330,7-334 ZPOP (Batch recovery of index register) 7-400 ZPUSH (Batch save of index register) 7-400 ZRRDB (Direct 1-byte read from file register) 7-391 ZRWRB (File register direct 1-byte write) 7-393

Index - 12

Page 833 of the Mitsubishi Electronics QCPU user manual — Warranty
Page 833 · click to enlarge
Page 833

Warranty

Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc.,

which follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product. (2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided. 4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced. 5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage. 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is

discontinued. Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued. 3. Overseas service Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ. 4. Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi, loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products, special damages and secondary damages whether foreseeable or not , compensation for accidents, and compensation for damages to products other than Mitsubishi products, replacement by the user, maintenance of on-site equipment, start-up test run and other tasks. 5. Changes in product specifications The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice. 6. Product application (1) In using the Mitsubishi MELSEC programmable controller, the usage conditions shall be that the application will

not lead to a major accident even if any problem or fault should occur in the programmable controller device, and that backup and fail-safe functions are systematically provided outside of the device for any problem or fault. (2) The Mitsubishi programmable controller has been designed and manufactured for applications in general

industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies, and applications in which a special quality assurance system is required, such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications. In addition, applications in which human life or property that could be greatly affected, such as in aircraft, medical applications, incineration and fuel devices, manned transportation, equipment for recreation and amusement, and safety devices, shall also be excluded from the programmable controller range of applications. However, in certain cases, some applications may be possible, providing the user consults their local Mitsubishi representative outlining the special requirements of the project, and providing that all parties concerned agree to the special circumstances, solely at the users discretion.

Page 834 of the Mitsubishi Electronics QCPU user manual — SH(NA)-080809ENG-C 1/2
Page 834 · click to enlarge
Page 834

Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other

countries.

Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries.

Ethernet is a trademark of Xerox Co., Ltd. in the United States.

CompactFlash is a trademark of SanDisk Corporation.

VxWorks, Tornado, WindPower, WindSh and WindView are registered trademarks of Wind River Systems, Inc.

Other company names and product names used in this document are trademarks or registered trademarks of respective

owners.

SH(NA)-080809ENG-C 1/2

Page 835 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 835 · click to enlarge
Page 835
Page 835 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 836 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 836 · click to enlarge
Page 836
Page 836 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 837 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 2/2
Page 837 · click to enlarge
Page 837
Page 837 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 2/2
Page 838 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 2/2
Page 838 · click to enlarge
Page 838
Page 838 of the Mitsubishi Electronics QCPU user manual — QCPU Programming Manual (Common Instruction) 2/2
Page 839 of the Mitsubishi Electronics QCPU user manual — A-1
Page 839 · click to enlarge
Page 839

SAFETY PRECAUTIONS

(Always read these cautions before using the product)

Before using this product, please read this manual and the related manuals introduced in this manual, and pay full attention to safety to handle the product correctly.

Please store this manual in a safe place and make it accessible when required. Always forward a copy of the manual to the end user.

A-1

Page 840 of the Mitsubishi Electronics QCPU user manual — © 2008 MITSUBISHI ELECTRIC CORPORATION
Page 840 · click to enlarge
Page 840

REVISIONS

*The manual number is given on the bottom left of the back cover.

Print Date *Manual Number Revision

Dec., 2008 SH (NA)-080809ENG-A First edition

Mar., 2009 SH (NA)-080809ENG-B

Section 3.3, 3.8, 5.1.3, 6.1.7, 6.2.14, 7.3.3, 7.11.18, 7.11.19, 7.12.1.5,12.7, 7.12.11, 7.12.25,

7.12.26, 7.13.4, 7.13.5, 7.15.7, 7.15.8

Jul., 2009 SH (NA)-080809ENG-C Revision because of function support by the Universal model QCPU having a

serial number "11043" or later

Section 2.1, 2.5.6, 2.5.18, 2.5.20, 7.6.9, 7.12.7, 7.12.11, 12.1.3, 12.1.4, APPENDIX 1.2, 1.3, 1.4.2,

3, 5.1

Section 2.5.16, 7.16, 7.18.10

Section 2.5.21 2.5.22, Section 2.5.22 2.5.21, Section 9.13 7.6.10,

Section 9.14 7.6.1, Section 9.15 7.16, Section 9.15.1 7.16.1, Section 9.15.2 7.16.2,

Section 9.15.3 7.16.3, Section 9.1 7.18.9, Section 9.2 7.18.11, Section 9.3 7.18.12,

Section 9.4 7.18.13, Section 9.5 7.18.14, Section 9.6 7.18.15, Section 9.7 7.18.16,

Section 9.8 7.18.17, Section 9.9 7.18.18, Section 9.10 7.18.19, Section 9.11 9.1,

Section 9.11.1 9.1.1, Section 9.11.2 9.1.2, Section 9.12 9.2, Section 9.12.1 9.2.1,

Chapter 10 11, Chapter 11 10

Japanese Manual Version SH-080804-B

This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.

© 2008 MITSUBISHI ELECTRIC CORPORATION

A-2

Show 4 more labels / short text on this page
Partial corrections · Partial corrections · Additions · Modification
Page 841 of the Mitsubishi Electronics QCPU user manual — Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,
Page 841 · click to enlarge
Page 841

INTRODUCTION

This manual explains the common instructions required for programming of the QCPU.

  • The common instructions refer to all instructions except those dedicated to special function

modules (such as AJ71QC24 and AJ71PT32-S3) and to AD57 models, as well as PID control instructions, SFC

instructions and ST instructions.

Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.

  • Relevant CPU module

Basic model QCPU Q00JCPU, Q00CPU, Q01CPU

High Perfomance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU

Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU

Redundant CPU Q12PRHCPU, Q25PRHCPU

Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU,

Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU,

Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU,

Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,

Q20UDEHCPU

A-3

CPU module Model · Universal model QCPU

Page 852 of the Mitsubishi Electronics QCPU user manual — A-14
Page 852 · click to enlarge
Page 852

MANUALS

To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals.

Read other manuals as well when using a different type of CPU module and its functions.

Order each manual as needed, referring to the following list.

The numbers in the "CPU module" and the respective modules are as follows.

Mitsubishi Electronics QCPU — MANUALS diagram (page 852)
Fig. 1328

A-14

Page 853 of the Mitsubishi Electronics QCPU user manual — A-15
Page 853 · click to enlarge
Page 853

< Manual number (model code) > Description

CC-Link IE Controller Network Reference Manual

Specifications, procedures and settings before system operation, parameter

< SH-080668ENG (13JV16) >

setting, programming, and troubleshooting of the CC-Link IE controller network module

Q Corresponding MELSECNET/H Network System Reference

Explains the specifications for a MELSECNET/H network system for PLC to PLC

Manual (PLC to PLC network)

network. It explains the procedures and settings up to operation, setting the parame-

< SH-080049 (13JF92) >

ters, programming and troubleshooting.

Q Corresponding MELSECNET/H Network System Refer-

Explains the specifications for a MELSECNET/H network system for remote I/O

ence Manual (Remote I/O network)

network. It explains the procedures and settings up to operation, setting the

< SH-080124 (13JF96) >

parameters, programming and troubleshooting.

Type MELSECNET, MELSECNET/B Data Link System

Describes the general concept, specifications, and part names and settings for

MELSECNET (II) and MELSECNET/B.

< IB-66530 (13JF70) >

Describes various functions of the Ethernet module: e-mail function, PLC CPU

Q Corresponding Ethernet Interface Module

status monitoring, communication via MELSECNET/H or MELSECNET/10 net-

work system, communication using data link instructions, file transfer (using FTP)

< SH-080010 (13JF70) >

and other functions.

A-15

Show 4 more labels / short text on this page
Related Manuals · Manual name · Reference Manual · User's Manual (Application)
Page 854 of the Mitsubishi Electronics QCPU user manual — A-16
Page 854 · click to enlarge
Page 854

MEMO

A-16

Page 855 of the Mitsubishi Electronics QCPU user manual — 8 INSTRUCTIONS FOR DATA LINK
Page 855 · click to enlarge
Page 855
Mitsubishi Electronics QCPU — 8 INSTRUCTIONS FOR DATA LINK diagram (page 855)
Fig. 1329
Mitsubishi Electronics QCPU — 8 INSTRUCTIONS FOR DATA LINK diagram (page 855)
Fig. 1330

Network refresh instructions Refreshes the specified network module. Section 8.1

Reading the data specified by routing parameters. Section 8.2.1

Writing routing data to the area specified by routing parameters. Section 8.2.2

In this chapter, instruction names are abbreviated as follows if not specified particularly.

Mitsubishi Electronics QCPU — 8 INSTRUCTIONS FOR DATA LINK diagram (page 855)
Fig. 1331
Page 856 of the Mitsubishi Electronics QCPU user manual — Function
Page 856 · click to enlarge
Page 856

ZCOM

8.1 Network refresh instructions

8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)

ZCOM

Basic Process High performance Redundant Universal

Mitsubishi Electronics QCPU — ZCOM diagram (page 856)
Fig. 1332
JnNetwork No. of host station (BIN 16 bits)
UnHead I/O number of host station network module (BIN 16 bits)

R, ZR J \

U \G Zn Constants Other Bit Word Bit Word

The ZCOM instruction is used to perform refresh at any timing during execution of a sequence program. The targets of refresh performed by the ZCOM instruction are indicated below.

  • Refresh of CC-Link IE controller network (when refresh parameters are set)
  • Refresh of MELSECNET/H (when refresh parameters are set)
  • Auto refresh of CC-Link (when refresh device is set)
  • Auto refresh of intelligent function module (when auto refresh is set)

Function

(1) When the ZCOM instruction is executed, the CPU module temporarily suspends processing

of the sequence program and conducts refresh processing of the network modules designated by Jn/Un.

Mitsubishi Electronics QCPU — Function diagram (page 856)
Fig. 1333 · Function

Setting · Internal Devices · Data

Page 857 of the Mitsubishi Electronics QCPU user manual — ZCOM
Page 857 · click to enlarge
Page 857

ZCOM

(2) The ZCOM instruction does not perform the following processing.

(a) Communication processing between CPU module and programming tool

(b) Monitor processing of other station

(c) Read processing of buffer memory of other intelligent function module by serial communication module.

(d) Low-speed cyclic data transmission of MELSECNET/H

(3) PLC to PLC network*1

(a) When the scan time for the sequence program of host station is longer than the scan

time for the other station, the ZCOM instruction is used to ensure the data reception from the other station.

(1) Example of data communications when the ZCOM instruction is not used

Mitsubishi Electronics QCPU — ZCOM diagram (page 857)
Fig. 1334

(2) Example of data communications when the ZCOM instruction is used

Mitsubishi Electronics QCPU — ZCOM diagram (page 857)
Fig. 1335

8.1 Network refresh instructions 8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)

For details of the transmission delay time on the PLC to PLC network*1, refer to the manual below:

(b) When the link scan time is longer than the sequence program scan time, data

communications will not be faster even if the ZCOM instruction is used.

*1 : Controller network in CC-Link IE controller network.

Page 858 of the Mitsubishi Electronics QCPU user manual — ZCOM
Page 858 · click to enlarge
Page 858

ZCOM

(4) Remote I/O network

The link refresh of the remote master station is performed by the "END processing" of the CPU module. Since link scan is performed at completion of link refresh, link scan 'synchronizes' with the program of the CPU module. When the ZCOM instruction is used at the remote master station, link refresh is performed at the point of ZCOM instruction execution, and link scan is performed at completion of link refresh. Hence, use of the ZCOM instruction at the remote master station speeds up send/receive processing to/from the remote I/O station.

(1) When the ZCOM instruction is not used

Mitsubishi Electronics QCPU — ZCOM diagram (page 858)
Fig. 1336

(2) When the ZCOM instruction is used

Mitsubishi Electronics QCPU — ZCOM diagram (page 858)
Fig. 1337

For details of the transmission delay time on the remote I/O network, refer to the manual below:

  • Q Corresponding MELSECNET/H Network System Reference Manual

(5) The ZCOM instruction can be used as many times as desired in sequence programs.

However, note that each execution of a refresh operation will lengthen the sequence program scan time by the amount of time required for the refresh operation.

(Remote I/O network)

Page 859 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 859 · click to enlarge
Page 859

ZCOM

(6) Designating "Un" in the argument enables the target designation of the intelligent function as

well as the network modules.

In this case, the auto refresh is performed for the buffer memory of the intelligent function modules. (It replaces the FROM/TO instructions.)

(7) Only with the universal model QCPU, interruption of processing is enabled during the

execution of the ZCOM instruction. However, when refresh data are used in an interrupted program, the data can split.

1. The ZCOM instruction cannot be used in a fixed cycle execution type program or interrupt program. 2. The Redundant CPU has restrictions on use of the ZCOM instruction. Refer to the manual below for details.
  • QnPRHCPU User's Manual (Redundant System)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • When the specified network number is not connected to the host station
(Error code4102)
  • When the module specified with the head I/O number is not a network module or link

module (Except Universal model QCPU) (Error code: 2111)

  • When the module specified with the head I/O number is not a network module or link

module (Only Universal model QCPU) (Error code: 4102)

Mitsubishi Electronics QCPU — Operation Error diagram (page 859)
Fig. 1338 · Operation Error

To conduct only communication with peripheral device, use the COM instruction (refer to Section 7.6.9, 9.1).

8.1 Network refresh instructions 8.1.1 Refresh instruction for the designated module (S(P)/J(P)/G(P).ZCOM)

(1) The following program conducts a link refresh for the network module of network No. 6 while

(2) The following program conducts a link refresh for the network module mounted to the

position whose head I/O number is a X/Y30 to X/Y4F while X0 is ON.

Page 860 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 860 · click to enlarge
Page 860

RTREAD

8.2 Reading/Writing Routing Information

8.2.1 Reading routing information (S(P)/Z(P).RTREAD)

RTREAD

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — RTREAD diagram (page 860)
Fig. 1339
nTransfer destination network No. (1 to 239) (BIN 16 bits)
Mitsubishi Electronics QCPU — RTREAD diagram (page 860)
Fig. 1340

: Head number of the devices that stores the read data (Device name)

(1) Reads data from transfer destination network number specified by n, using routing

information set by the routing parameters, and stores it into the area starting from .

(2) If no data for the transfer destination network number specified by n is set at the routing

parameters, stores 0 into the area starting from .

(3) The contents of the data stored in the area starting from is as indicated below.

(1 to 120) D

Relay station number +0 +1 +2 Dummy

Relay network number (1 to 239)

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • When data specified by n is other than 1 to 239. (Error code: 4100)
  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(Individual data ranges)

Page 861 of the Mitsubishi Electronics QCPU user manual — RTREAD
Page 861 · click to enlarge
Page 861

RTREAD

Program Example

(1) The following program reads the routing information for the network number specified by D0

when X0 is turned ON.

[Ladder Mode] [List Mode]

[Operation] [Content of routing parameter setting]

Mitsubishi Electronics QCPU — RTREAD diagram (page 861)
Fig. 1341
Mitsubishi Electronics QCPU — RTREAD diagram (page 861)
Fig. 1342

8.2 Reading/Writing Routing Information 8.2.1 Reading routing information (S(P)/Z(P).RTREAD)

Instruction Device Step

Page 862 of the Mitsubishi Electronics QCPU user manual — S S S
Page 862 · click to enlarge
Page 862

RTWRITE

8.2.2 Registering routing information (S(P)/Z(P).RTWRITE)

RTWRITE

Process High performance Redundant Universal Basic

Mitsubishi Electronics QCPU — RTWRITE diagram (page 862)
Fig. 1343
nTransfer destination network No. (1 to 239) (BIN 16 bits)
Mitsubishi Electronics QCPU — RTWRITE diagram (page 862)
Fig. 1344

: Head number of the devices where the data to be written is stored (Device name)

(1) Registers routing data of or later in the area for the transfer destination network number specified by n in the routing parameters.

(2) The following shows the contents of data to be set at or later.

(0 to 120) S

Relay station number +0 +1 +2 Dummy

Relay network number (0 to 239)

(3) If data for the transfer destination network number specified by n is set in the routing

parameters, it is used to update the data in the area starting from .

(4) If all data in or later ( +0 to +2) is 0, the data for the transfer destination network number specified by n is deleted from the routing parameters.

S S S

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • When data specified by n is other than 1 to 239. (Error code: 4100)
  • When the data of or later exceeds each setting ranges. (Error code: 4100)
  • When the total number of routing information registered in the routing parameter of the

network parameters and routing information registered with the RTWRITE instruction exceeds 64. (Error code: 4100)

  • The device specified by exceeds the range of the corresponding device. (For the Universal model QCPU only.) (Error code: 4101)

(Individual data ranges)

Page 863 of the Mitsubishi Electronics QCPU user manual — RTWRITE
Page 863 · click to enlarge
Page 863

RTWRITE

Program Example

(1) The following program writes the routing information specified by D1 to D3 to the network

module of the network number specified by D0 when X0 is turned ON.

[Ladder Mode] [List Mode]

[Operation] [Content of routing parameter setting]

Mitsubishi Electronics QCPU — RTWRITE diagram (page 863)
Fig. 1345
Mitsubishi Electronics QCPU — RTWRITE diagram (page 863)
Fig. 1346

8.2 Reading/Writing Routing Information 8.2.2 Registering routing information (S(P)/Z(P).RTWRITE)

Instruction Device Step

Page 864 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 864 · click to enlarge
Page 864

MEMO

Page 865 of the Mitsubishi Electronics QCPU user manual — MULTIPLE CPU DEDICATED INSTRUCTION
Page 865 · click to enlarge
Page 865

MULTIPLE CPU DEDICATED INSTRUCTION

Category Processing Details Reference

Writing to the CPU shared

Writes device data of the host CPU to the CPU shared

memory of the host CPU module. Section 9.1

memory of host CPU

Reading from the CPU shared

Reads device data from the CPU shared memory of another

CPU module to the host CPU. Section 9.2

memory of another CPU

section

Page 866 of the Mitsubishi Electronics QCPU user manual — Q00UCPU, Q01UCPU,
Page 866 · click to enlarge
Page 866

9.1 Writing to the CPU Shared Memory of Host CPU

The S.TO or TO instruction is used to write to the CPU shared memory of the host station in the multiple CPU system.

The following table indicates the usability of the S.TO and TO instructions.

CPU Module Type Name S.TO Instruction TO Instruction

Basic model QCPU Q00CPU, Q01CPU Usable Usable

Q02CPU, Q02HCPU,

High Performance model QCPU

Q06HCPU, Q12HCPU,

Q25HCPU

Q02PHCPU, Q06PHCPU,

Q12PHCPU, Q25PHCPU Usable Unusable

Redundant CPU Q12PRHCPU, Q25PRHCPU Unusable Unusable

Q00UCPU, Q01UCPU,

Q02UCPU, Q03UDCPU,

Q04UDHCPU, Q06UDHCPU,

Q10UDHCPU, Q13UDHCPU,

Q20UDHCPU, Q26UDHCPU,

Q03UDECPU,

Q04UDEHCPU,

Q06UDEHCPU,

Q10UDEHCPU,

Q13UDEHCPU,

Q20UDEHCPU,

Q26UDEHCPU

(1) Operation of S.TO instruction

The S.TO instruction can write data to the CPU shared memory of the host CPU module. The following figure shows the processing performed when the S.TO instruction is executed in CPU No. 1.

CPU No. 1 CPU No. 2

Buffer memory CPU shared memory

[ SP.TO H3E0 n2 n3 n4 D ]

Designation of CPU shared memory in CPU No. 1

Show 9 more labels / short text on this page
Usable Unusable · Process CPU · Universal model QCPU · Usable Usable · Intelligent function module · Device memory · Data write · CPU shared memory · Device memory
Page 867 of the Mitsubishi Electronics QCPU user manual — 9.1 Writing to the CPU Shared Memory of Host CPU
Page 867 · click to enlarge
Page 867

(2) Operation of the TO instruction

The TO instruction can write device memory data to the following memories.

  • CPU shared memory of host CPU module
  • Buffer memory of intelligent function module

The following figure shows the processing performed when the TO instruction is executed in CPU No. 1.

Mitsubishi Electronics QCPU — 9.1 Writing to the CPU Shared Memory of Host CPU diagram (page 867)
Fig. 1347 · 9.1 Writing to the CPU Shared Memory of Host CPU

Designation of CPU shared memory in CPU No. 1

Mitsubishi Electronics QCPU — 9.1 Writing to the CPU Shared Memory of Host CPU diagram (page 867)
Fig. 1348 · 9.1 Writing to the CPU Shared Memory of Host CPU

9.1 Writing to the CPU Shared Memory of Host CPU

Both of the S.TO and TO instructions can be used for the Basic model QCPU (Q00CPU or Q01CPU) and Universal model QCPU to write data to the CPU shared memory. However, use of the TO instruction is recommended, since use of S.TO instruction reduces the number of steps and processing time.

Refer to Section 7.8.2 when writing to the buffer memory of the intelligent function module by the TO instruction.

Page 868 of the Mitsubishi Electronics QCPU user manual — S(P).TO
Page 868 · click to enlarge
Page 868

S(P).TO

9.1.1 Write to Host CPU Shared Memory (S(P).TO)

S(P).TO

Process Universal Redundant Ver. Basic

Ver. High performance

Basic model QCPU:The first 5 digits of serial No is "04122" or higher.

Hight performance modele QCPU:Function version B or later.

Mitsubishi Electronics QCPU — S(P).TO diagram (page 868)
Fig. 1349

n1 : Head I/O number of the host CPU (BIN 16 bits) n2 : CPU shared memory address of the write destination host CPU (BIN 16 bits)

  • Basic model QCPU: 0 to 511
  • High Performance model QCPU, Process CPU, Universal model QCPU: 0 to 4095 n3 : Head number of the devices where data to be written is stored (BIN 16 bits) n4 : Number of data blocks to be written (BIN 16 bits)
  • Basic model QCPU: 1 to 320
  • High Performance model QCPU, Process CPU: 1 to 256
  • Universal model QCPU: 1 to 2048
Mitsubishi Electronics QCPU — S(P).TO diagram (page 868)
Fig. 1350

: Device of the host CPU which is turned ON for one scan by the completion of writing (bits)

(1) Writes device data of words n3 to n4 to the CPU shared memory address specified by n2 of

the host CPU module or later address.

When writing is completed, the completion bit specified by turns ON.

Mitsubishi Electronics QCPU — S(P).TO diagram (page 868)
Fig. 1351
Page 869 of the Mitsubishi Electronics QCPU user manual — 4095(0FFF H )
Page 869 · click to enlarge
Page 869

S(P).TO

(a) CPU shared memory address of the Basic model QCPU

CPU shared memory address

0(0 H )

Host CPU operation information area

96(60 H )

Write designation prohibited area

192(C0 H )

Host CPU refresh area

Write designation permitted area

511(1FF H )

(b) CPU shared memory address of the High Performance model QCPU, Process CPU and

Universal model QCPU*4

CPU shared memory address

0(0 H )

Host CPU operation information area

512(200 H )

Write designation prohibited area

2048(800 H )

Host CPU refresh area

Write designation permitted area

4095(0FFF H )

*3 : Usable as a user free area when auto refresh setting is not made.

In addition, even when auto refresh setting is made, the auto refresh send range or later is usable as a user free area. *4 : Data cannot be written to the multiple CPU high speed transmission area of the Universal

model QCPU with the S(P).TO instruction.

(2) When the number of write points is 0, no processing is performed and the completion device

9.1 Writing to the CPU Shared Memory of Host CPU 9.1.1 Write to Host CPU Shared Memory (S(P).TO)

does not turn ON, either.

(3) The S.TO instruction can be executed once to one scan for each CPU.

When execution condition is established at two or more places at the same time, the S.TO instruction executed later is not processed since handshake is established automatically.

(4) The number of data that can be written varies depending on the target CPU module.

CPU module Number of Write Points

Basic model QCPU 1 to 320

High Performance model QCPU Process CPU 1 to 256

Universal model QCPU 1 to 2048

Writing data to CPU shared memory can be performed using the intelligent function module device. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Show 6 more labels / short text on this page
System area · *3 · User free area · System area · *3 · User free area
Page 870 of the Mitsubishi Electronics QCPU user manual — Remark
Page 870 · click to enlarge
Page 870

S(P).TO

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.

(1) When the specified data is outside the following range (Error code: 4101)

  • When the number of write points (n4) is outside the specified range of the setting data.
  • When the head of the CPU shared memory address (n2) of the write destination host

CPU exceeds the CPU shared memory address range

  • When the CPU shared memory address (n2) + the number of write points (n4) of the write

destination host CPU exceeds the CPU shared memory address range

  • When the head number of the devices (n3) where the data to be written is stored + the

number of write points (n4) exceeds the device range

(2) When the host CPU operation information area, system area or host CPU refresh area is

specified to the CPU shared memory address (n2) of the write destination

(High Performance model QCPU, Process CPU) (Error code: 4101) (Basic model QCPU, Universal model QCPU) (Error code: 4111)

(3) When the head I/O number (n1) of the host CPU is other than that of the host CPU

(High Performance model QCPU, Process CPU) (Error code: 2107) (Basic model QCPU, Universal model QCPU) (Error code: 4112)

(4) No CPU module is installed at the position specified by the head I/O number of the CPU

module. (Error code2110)

(5) When the head I/O number (n1) of the host CPU is other than 3E0H/3E1H/3E2H/3E3H

(Error code4100)

(6) When the specified instruction is improper (Error code: 4002)

(7) When the specified number of devices is wrong (Error code: 4003)

(8) When the unusable device is specified (Error code: 4004)

Program Example

(1) The following program stores 10 points of data from D0 into address 800H of the CPU

shared memory of CPU No. 1 when X0 is turned ON.

[Ladder Mode] [List Mode]

Remark

The n1 is specified by the first 3 digits of the hexadecimal 4 digits which represent the head I/O number of the slot mounted to the CPU module.

Mitsubishi Electronics QCPU — Remark diagram (page 870)
Fig. 1352 · Remark

Instruction Device Step

Page 871 of the Mitsubishi Electronics QCPU user manual — TO(P), DTO(P)
Page 871 · click to enlarge
Page 871

TO(P), DTO(P)

9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))

Universal Redundant Ver. Basic Process High performance

Q00CPU/Q01CPU whose first 5 digits of the serial No. is "04122" or higher

TO(P), DTO(P)

Mitsubishi Electronics QCPU — TO(P), DTO(P) diagram (page 871)
Fig. 1353
n1Head I/O number of the host CPU (BIN 16 bits)
  • Basic model QCPU : 3E0 H
  • Universal model QCPU: 3E0 H to 3E3 H
n2CPU shared memory address of the write destination host CPU (BIN 16 bits)
  • Basic model QCPU : 192 to 511
  • Universal model QCPU: 2048 to 4095, 10000 to 24335* 2

: Data to be written or head number of the devices where the data to be written is stored (BIN 16 bits)

n3Number of data blocks to be written (BIN 16 bits)
  • Basic model QCPU : TO(P): 1 to 320, DTP(P) : 1 to 160
  • Universal model QCPU: TO(P): 1 to 14336* 2 , DTP(P) : 1 to 7168* 2
Mitsubishi Electronics QCPU — TO(P), DTO(P) diagram (page 871)
Fig. 1354

9.1 Writing to the CPU Shared Memory of Host CPU 9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))

*2: The setting range varies depending on the auto refresh setting range of the multiple CPU high speed transmission function.

(1) Writes device data of words to n3 to the CPU shared memory address specified by n2 of the host CPU module or later address.

CPU shared memory of host CPU (n1) n2 S

Page 872 of the Mitsubishi Electronics QCPU user manual — 24335(5F0F H )
Page 872 · click to enlarge
Page 872

TO(P), DTO(P)

When a constant is specified to , writes the same data (value specified to ) to the area of n3 words from the specified CPU shared memory.

S S

CPU shared memory of host CPU (n1) n2

(When "5" is designated for )

n3 words Writes the same data to the area of n3 words

(a) CPU shared memory addresses of the Basic model QCPU

CPU shared memory address

0(0 H )

Host CPU operation information area

Write designation prohibited area

96(60 H )

192(C0 H )

Host CPU refresh area

Write designation permitted area

511(1FF H )

(b) CPU shared memory address of the Universal model QCPU*3

CPU shared memory address

0(0 H )

Host CPU operation information area

512(200 H )

Write designation prohibited area

2048(800 H )

Host CPU refresh area

4096(1000 H )

Write designation permitted area

10000(2710 H )

Multiple CPU high speed

24335(5F0F H )

*2 : Usable as a user free area when auto refresh setting is not made.

In addition, even when auto refresh setting is made, the auto refresh send range or later is usable as a user free area. *3 : With Q02UCPU, data can not be written to the multiple CPU high speed transmission area.

(2) No processing is performed when the number of write points is 0.

(3) The number of write data varies depending on the target CPU module.

CPU module Number of Write Points

Basic model QCPU 1 to 320

Universal model QCPU 1 to 14336

Show 9 more labels / short text on this page
Constant · System area · *2 · User free area · System area · *2 · User free area · Unusable · transmission area
Page 873 of the Mitsubishi Electronics QCPU user manual — TO(P), DTO(P)
Page 873 · click to enlarge
Page 873

TO(P), DTO(P)

DTO

(1) Writes device data of words to (n3×2) to the CPU shared memory address specified by n2 of the host CPU module or later address.

Mitsubishi Electronics QCPU — TO(P), DTO(P) diagram (page 873)
Fig. 1355

When a constant is specified to , writes the same data (value specified to ) to the area of (n3×2) words from the specified CPU shared memory.

Mitsubishi Electronics QCPU — TO(P), DTO(P) diagram (page 873)
Fig. 1356

5 (When "5" is designated for ) S Writes the same data to the area of (n3 2) words

(2) No processing is performed when the number of write points is 0.

(3) The number of data that can be written varies depending on the target CPU module.

CPU mode Number of Write Points

Basic model QCPU 1 to 160

Universal model QCPU 1 to 7168

Mitsubishi Electronics QCPU — TO(P), DTO(P) diagram (page 873)
Fig. 1357

9.1 Writing to the CPU Shared Memory of Host CPU 9.1.2 Writing to host station CPU shared memory (TO(P), DTO(P))

Writing data to CPU shared memory can be performed using the intelligent function module device. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Page 874 of the Mitsubishi Electronics QCPU user manual — Remark
Page 874 · click to enlarge
Page 874

TO(P), DTO(P)

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.

(1) When the specified data is outside the following range (Error code: 4101)

  • When the number of write points (n3) is outside the specified range of the setting data.
  • When the CPU shared memory address (n2) of the write destination host CPU + the

number of write points (n3) exceeds the CPU shared memory range

  • When the head number of the devices that stores the data to be written ( ) + the number of write points (n3) exceeds the device range
  • When the head of CPU shared memory address (n2) of the write destination host CPU is

outside the write permitted area.

(2) When the head of CPU shared memory address (n2) of the write destination host CPU is an

invalid value. (Error code4111)

(3) When the I/O number specified in (n1) is other than that of the host CPU (Exclude the case

when the multiple CPU high speed transmisson area of other CPU is used.)

(Error code4112)

(4) No CPU module is installed at the position specified by the head I/O number of the CPU

module. (Error code2110)

Program Example

(1) The following program stores 10 points of data from D0 into address 10000 of the CPU

shared memory of CPU No. 1 when X0 is turned ON.

[Ladder Mode] [List Mode]

(2) The following program stores 20 points of data from D0 into address 10000 of the CPU

shared memory of CPU No. 4 when X0 is turned ON.

[Ladder Mode] [List Mode]

Remark

The n1 is specified by the first 3 digits of the hexadecimal 4 digits which represent the head I/O number of the slot mounted to the CPU module.

Mitsubishi Electronics QCPU — Remark diagram (page 874)
Fig. 1358 · Remark

Step Instruction Device · Step Instruction Device

Page 875 of the Mitsubishi Electronics QCPU user manual — 9.2 Reading from the CPU Shared Memory of another CPU
Page 875 · click to enlarge
Page 875

9.2 Reading from the CPU Shared Memory of another CPU

The FROM(P)/DFRO(P) instruction of Multiple CPU system can be read from the following memories.

  • Buffer memory of intelligent function module
  • CPU shared memory of other CPU module
  • CPU shared memory of host CPU module (applicable for the Basic model QCPU and Universal model QCPU)

The following figure shows the processing performed when the FROM(P) instruction is executed in CPU No. 1.

Mitsubishi Electronics QCPU — 9.2 Reading from the CPU Shared Memory of another CPU diagram (page 875)
Fig. 1359 · 9.2 Reading from the CPU Shared Memory of another CP…

9.2 Reading from the CPU Shared Memory of another CPU

Designation of CPU shared memory of CPU No. 2

Designation of CPU shared memory of CPU No. 1

*1Applicable for the Basic model QCPU and Universal model QCPU

Refer to Section 7.8.1 for reading the buffer memory of the intelligent function module with the FROM/DFRO instruction.

Page 876 of the Mitsubishi Electronics QCPU user manual — FROM
Page 876 · click to enlarge
Page 876

FROM(P),DFRO(P)

9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))

FROM(P),DFRO(P)

Process Universal Redundant Ver. Basic

Ver. High performance

Basic model QCPU:The first 5 digits of serial No is "04122" or higher.

High performance model QCPU:Function version B or later.

(1) When Basic model QCPU, Universal model QCPU is used

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 876)
Fig. 1360
n1Head I/O number of the reading target CPU module (BIN 16 bits)
  • Basic model QCPU : 3E0 H to 3E2 H
  • Universal model QCPU: 3E0 H to 3E3 H
n2Head address of data to be read (BIN 16 bits)
  • Basic model QCPU : 0 to 512
  • Universal model QCPU: 0 to 4095, 10000 to 24335* 3

: Head number of the devices where the read data is stored (BIN 16 bits)

n3Number of read data (BIN 16 bits)
  • Basic model QCPU : FROM(P): 1 to 512, DFRO(P) : 1 to 256
  • Universal model QCPU: FROM(P): 1 to 14336* 3 , DRRO(P) : 1 to 7168* 3
Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 876)
Fig. 1361

*3: The setting range varies depending on the auto refresh setting range of the multiple CPU high speed communication function.

Function

FROM

(1) Reads the data of n3 words from the CPU shared memory address designated by n2 of the

CPU module designated by n1, and stores that data into the area starting from the device designated by .

Mitsubishi Electronics QCPU — FROM diagram (page 876)
Fig. 1362
Page 877 of the Mitsubishi Electronics QCPU user manual — FROM(P),DFRO(P)
Page 877 · click to enlarge
Page 877

FROM(P),DFRO(P)

(a) CPU shared memory address of the Basic model QCPU

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 877)
Fig. 1363

(b) CPU shared memory address of the Universal model QCPU*5

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 877)
Fig. 1364

*4 : Usable as a user free area when auto refresh setting is not made.

When auto refresh setting is made, the auto refresh send range and later are usable as a user free area. *5 : With Q02UCPU, data can not be written to the multiple CPU high speed transmission area.

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 877)
Fig. 1365

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))

(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.

(3) The number of data to be read changes depending on the target CPU module.

(1) Reads the data of (n3×2) words from the CPU shared memory address designated by n2 of

the CPU module designated by n1, and stores that data into the area starting from the device designated by .

CPU shared memory of the designated CPU (n1) n2 Device memory

Page 878 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 878 · click to enlarge
Page 878

FROM(P),DFRO(P)

(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.

(3) The number of data to be read changes depending on the target CPU module.

CPU Module Number of Read Points

Basic model QCPU 1 to 256

Universal model QCPU 1 to 7168

Read of data from the CPU shared memory can also be performed using the intelligent function module devices. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.

(1) When the specified data is outside the following range. (Error code: 4101)

  • The head of the CPU shared memory address (n2) which performs reading is outside the

CPU shared memory range.

  • The address of the CPU shared memory (n2) which performs reading plus the number of

read points (n3) is outside the CPU shared memory range.

  • The read data storage device number (D) plus the number of read points (n3) is outside

the specified device range.

(2) The CPU module does not exist in the position specified by the CPU module head I/O

number. (Error code2110)

(3) When the head of the CPU shared memory address (n2) which performs reading is an

invalid value. (4097 to 9999) (Error code: 4101)

Page 879 of the Mitsubishi Electronics QCPU user manual — Remark
Page 879 · click to enlarge
Page 879

FROM(P),DFRO(P)

Program Example

(1) The following program stores 10 points of data from address C0H of the CPU shared

memory of CPU No. 2 into the area starting from D0 when X0 is turned ON.

[Ladder Mode] [List Mode]

(2) The following program stores 20 points of data from address 10000 of the CPU shared

memory of CPU No. 4 into the area starting from D0 when X0 is turned ON.

[Ladder Mode] [List Mode]

Remark

The n1 is specified by the first 3 digits of the hexadecimal 4digits which represent the head I/O number of the slot mounted to the CPU module.

CPU Slot Slot 0 Slot 1 Slot 2

Head I/O number 3E00 3E10 3E20 3E30

n1 3E0 3E1 3E2 3E3

The QCPU provides automatic interlocks for the FROM and TO instructions.

Mitsubishi Electronics QCPU — Remark diagram (page 879)
Fig. 1366 · Remark

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))

Instruction Device Step · Step Instruction Device

Page 880 of the Mitsubishi Electronics QCPU user manual — FROM(P),DFRO(P)
Page 880 · click to enlarge
Page 880

FROM(P),DFRO(P)

(2) When High Performance model QCPU, Process CPU is used

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 880)
Fig. 1367
n1Head I/O number of the reading target CPU module (BIN 16 bits)
n2Head address of data to be read (BIN 16 bits)

: Head number of the devices where the read data is stored (BIN 16 bits)

n3Number of read data (BIN 16 bits)
Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 880)
Fig. 1368

(1) Reads the data of n3 words from the CPU shared memory address designated by n2 of the

CPU module designated by n1, and stores that data into the area starting from the device designated by .

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 880)
Fig. 1369

CPU shared memory address of the High Performance model QCPU and Process CPU

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 880)
Fig. 1370

*1 : Usable as a user free area when auto refresh setting is not made.

When auto refresh setting is made, the auto refresh send range and later are usable as a user free area.

(2) When 0 is specified in n3 as the number of data to be read, no processing is performed.

(3) The number of data to be read changes depending on the target CPU module.

Mitsubishi Electronics QCPU — FROM(P),DFRO(P) diagram (page 880)
Fig. 1371
Page 881 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 881 · click to enlarge
Page 881

FROM(P),DFRO(P)

Read of data from the CPU shared memory can also be performed using the intelligent function module devices. For intelligent function module device, refer to the QnUCPU User's Manual (Function Explanation, Program Fundamentals) or Qn(H)/QnPH/QnPRHCPU User's Manual (Function Explanation, Program Fundamentals).

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.

(1) When the specified data is outside the following range. (Error code: 4101)

  • The head address of the CPU shared memory (n2) from which read will be performed is

outside the CPU shared memory range.

  • The address of the CPU shared memory (n2) from which data is read plus the number of

read points (n3) is outside the CPU shared memory range.

  • The read data storage device number (D) plus the number of read points (n3) is outside

the specified device range.

(2) The CPU module does not exist in the position specified by the CPU module head I/O

number. (Error code2110)

(3) When the head of read CPU shared memory address (n2) is an invalid value.

(4097 to 9999) (Error code4101)
Mitsubishi Electronics QCPU — Operation Error diagram (page 881)
Fig. 1372 · Operation Error

9.2 Reading from the CPU Shared Memory of another CPU 9.2.1 Reading from Other CPU Shared Memory (FROM(P), DFRO(P))

(1) The following program stores data of 10 points from address 800H of the CPU shared

memory of CPU No. 2. into the area starting from D0 when X0 is turned ON.

The n1 is specified by the first 3 digits of the hexadecimal 4digits which represent the head I/O number of the slot mounted to the CPU module.

The QCPU provides automatic interlocks for the FROM and TO instructions.

Page 882 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 882 · click to enlarge
Page 882

MEMO

Page 883 of the Mitsubishi Electronics QCPU user manual — CPU
Page 883 · click to enlarge
Page 883

QCPU INSTRUCTIONS

Category Processing Details Reference

Write instruction to another CPU Writes devices to another CPU. Section 10.2

Read instruction from another

Reads devices from another CPU. Section 10.3

CPU

section

Page 884 of the Mitsubishi Electronics QCPU user manual — DP.DDWR U3E1 D0 D100 D200 M0
Page 884 · click to enlarge
Page 884

10.1 Overview

The multiple CPU high-speed transmission dedicated instruction directs the Universal model QCPU to write/read device data to/from the Universal model QCPU in another CPU.

The following shows an operation when CPU No.1 writes device data to CPU No.2 with the multiple CPU high-speed transmission dedicated instruction.

CPU No.1

CPU No.2

DP.DDWR U3E1 D0 D100 D200 M0

The multiple CPU high-speed transmission dedicated instruction in either host CPU or another CPU (target CPU module of instruction) is available only for the following CPU modules.

  • Q03UDCPU, Q04UDHCPU, Q06UDHCPU
  • The first five digits of serial numeber is 10012 or higer.
  • Q10UDHCPU, Q13UDHCPU, Q20UDHCPU, Q26UDHCPU
  • QnUDE (H) CPU

(1) Parameter setting and system configuration to execute the multiple CPU high-speed

The multiple CPU high-speed transmission dedicated instruction can be executed in the following parameter setting and system configuration.

  • CPU No.1 uses QnUD(H)CPU or QnUDE(H)CPU.
  • The multiple CPU high speed main base unit (Q3 DB) is used.
  • "Use multiple CPU high speed transmission" is selected in the Multiple CPU settings

screen of PLC parameter.

User program · Writing · transmission dedicated instruction

Page 885 of the Mitsubishi Electronics QCPU user manual — DP.DDWR H3E1 D0 D100 D200 M0
Page 885 · click to enlarge
Page 885

(a) Writable/readable device names

The following table shows the devices that can be written to/read from the Univesal model QCPU in another CPU with the multiple CPU high-speed transmission dedicated instruction.

Category Type Device name Setting of target

Requirements for the setting

  • Digits are specified by 16 bits (4 digits).

Bit device X, Y, M, L, B, F, SB

  • The start bit device is multiples of

16(10H).

Word device T, ST, C, D, W, SW ––

Requirements for the setting

  • Digits are specified by 16 bits (4 digits).
  • The start bit device is multiples of

16(10H).

Word device SD ––

File register Word device R, ZR ––

:Settable :Settable with conditions

SB, SW, SM, and SD include system information area. Take care not to destroy the system information when writing data to the devices above with the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction.

(3) Specification method of a device and writable/readable device range

There are two methods for specifying a device in another CPU: device specification and string specification. They differ in writable/readable device range to another CPU.

10.1 Overview

The device specification is a method to directly specify a device in another CPU to be written/read.

Program for device specification with the DP.DDWR instruction

DP.DDWR H3E1 D0 D100 D200 M0

Directly specifies "D200", a device in another CPU to be written.

In the device specification, data can be written/read within the device range of host CPU. For example, when data register in host CPU is 12k points and data register in another CPU is 16k points, data can be written/read by 12k points from the start of the data register in another CPU.

Show 6 more labels / short text on this page
(2) Writable/readable devices · device Remarks · Internal user device · Bit device SM · Internal system device · (a) Device specification
Page 886 of the Mitsubishi Electronics QCPU user manual — Remark
Page 886 · click to enlarge
Page 886

Writable/readable device range in device specification

Mitsubishi Electronics QCPU — 10.1 Overview diagram (page 886)
Fig. 1373 · 10.1 Overview

The string specification is a method to specify a device in another CPU to be written/ read by character string.

Program for string specification with the DP.DDWR instruction

Mitsubishi Electronics QCPU — 10.1 Overview diagram (page 886)
Fig. 1374 · 10.1 Overview

Specifies "D200", a device in another CPU to be written by characer string.

In the string specification, data can be written to/read from all device ranges of another CPU. For example, when data register in host CPU is 12k points and data register in another CPU is 16k points, data can be written/read by 16k points from the start of the data register in another CPU.

Writable/readable device range in string specification

Mitsubishi Electronics QCPU — 10.1 Overview diagram (page 886)
Fig. 1375 · 10.1 Overview

Remark

  • The following explains precautions for string specification.
  • The number of characters that can be specified is 32.
  • Whether "0" is appended at the start of the device number or not, the devices
  • are processed as the same.
  • For example, both "D1" and "D0001" are processed as "D1".
  • Whether a device is specified by upper case character or lower-case character,
  • they are processed as the same.
  • For example, both "D1" and "d1" are processed as "D1".
  • If a device not existing in another CPU is specified by a character string, the

instruction will be completed abnormally.

(b) String specification

Page 887 of the Mitsubishi Electronics QCPU user manual — 10.1 Overview
Page 887 · click to enlarge
Page 887

(4) Managing the multiple CPU high speed transmission area

(a) The multiple CPU high speed transmission area is managed by blocks in units of 16

words. The following table shows the number of blocks that can be used in each CPU and the number of blocks used in the instruction.

C Number of CPU modules System area*1

1k points 2k points

*1: For setting of the system area, refer to the QCPU User's Manual (Multiple CPU System).

(b) The following shows configuration of the multiple CPU high speed transmission area

when the multiple CPU system is configured with three CPU modules and the system area size is 1k word.

Multiple CPU high speed

Multiple CPU high speed

Multiple CPU high speed

CPU No.1

CPU No.2

CPU No.3

Area to be sent from CPU No.1 to CPU No.s 2 and 3

CPU No.2

CPU No.1

CPU No.3

CPU No.1

Area to be sent from CPU No.2 to CPU No.s 1 and 3

CPU No.2

CPU No.1

CPU No.3

CPU No.2

Area to sent from CPU No.3 to CPU No.s 1 and 2

10.1 Overview

CPU No.3

CPU No.1

CPU No.3

CPU No.2

(5) The number of blocks used for the instruction

The number of blocks used for the instruction depends on the number of write points. The following table shows the number of blocks used for the instruction.

Number of write/read points specified by

the instruction D(P).DDWR instruction D(P).DDRD instruction

1 to 4 1

5 to 20 2

21 to 36 3

37 to 52 4

53 to 68 5

69 to 84 6

85 to 100 7

Show 30 more labels / short text on this page
2 46 110 · 3 22 54 · 4 14 35 · transmission area in · transmission area in · transmission area in · 22 blocks · Send area to · Receive area from · 22 blocks · 22 blocks · 22 blocks · Send area to · Receive area from · 22 blocks · Receive area to · Send area to · 22 blocks · 22 blocks · Send area to · Receive area to · 22 blocks · 22 blocks · Receive area to · Send area to · 22 blocks · 22 blocks · Receive area to · Send area to · 22 blocks
Page 888 of the Mitsubishi Electronics QCPU user manual — 10.1 Overview
Page 888 · click to enlarge
Page 888

(6) The multiple CPU high-speed transmission dedicated instructions that can be executed

For the Universal model QCPU, the multiple CPU high-speed transmission dedicated instructions can be concurrently executed within the range satisfying the following formula.

The number of blocks that can be used in each CPU

Total number of blocks used for the instructions concurrently executed

When the number of blocks used for the multiple CPU high-speed transmission dedicated instructions exceeds the total number of blocks in the multiple CPU high speed transmission area, the instruction will not be executed in the scan (no processing) but executed at the next scan. Note that the instruction will be completed abnormally when the number of empty blocks in the multiple CPU high speed transmission area is less than the setting values of SD796 to SD799 (maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting) at the execution of the instruction. The following table shows execution possibility of the multiple CPU high-speed transmission dedicated instructions when the number of empty blocks in the multiple CPU high speed transmission area is less than the number of blocks used for the multiple CPU high-speed transmission dedicated instructions or the setting values of SD796 to SD799.

Magnitude relation between the number of blocks

used for the instructions*1 and

the number of empty

Number of blocks used for the instruction*1 Number of empty blocks*2 Number of blocks used

for the instruction*1 Number of empty blocks*2

between SD setting value

and the number of empty blocks

SD setting value*3 Number of empty blocks*2

Executed Not executed (no processing)

SD setting value*3 Number of empty blocks*2

*1:The number of blocks used for the multiple CPU high-speed transmission dedicated instruction. *2:The number of empty blocks in the multiple CPU high-speed transmission area. *3:Setting values from SD796 of SD799.

concurrently · blocks Magnitude relation · Completed abnormally

Page 889 of the Mitsubishi Electronics QCPU user manual — SM 797
Page 889 · click to enlarge
Page 889

(7) Interlock when using the multiple CPU high-speed transmission dedicated instruction

(a) Special relays SM796 to SM799 (maximum number of used blocks for multiple CPU

high-speed transmission dedicated instruction setting) can be used as an interlock for the multiple CPU high-speed transmission dedicated instruction. When executing the multiple CPU high-speed transmission dedicated instructions concurrently, use SM796 to SM799 as an interlock for the instructions.

When using special relays SM796 to SM799, set the maximum number of blocks for the instruction used for each CPU to special registers SD796 to SD799. (For example, when the maximum number of blocks for the multiple CPU high-speed transmission dedicated instruction to be executed to CPU No.3 is 5, set 5 to SD798.) When the multiple CPU high speed transmission area becomes equal to or less than the number of blocks set at SD796 to SD799, the corresponding special relay (SM796 to SM799) turns on.

CPU No.1 CPU No.2

Multiple CPU high speed transmission area Multiple CPU high speed transmission area

SM 797

DP.DDWR H3E1

Number of request blocks:4

Number of empty blocks:

Turns on when the number of empty blocks is less than the number of blocks used for the DP.DDWR instruction. (The DP.DDWR instruction is not executed.)

Lnsufficient for writing a request from the DP.DDWR instruction.

Empty area of the request blocks in send area (1 2) has been increased. CPU No.1 CPU No.2

10.1 Overview

Multiple CPU high speed transmission area Multiple CPU high speed transmission area

SM 797

DP.DDWR H3E1

Number of request blocks:4

Number of empty blocks:

Turns off as empty blocks by the number of blocks used for the DP.DDWR instruction became available (The DP.DDWR instruction can be written.)

The request from the DP.DDWR instruction can be written.

Show 12 more labels / short text on this page
Execution command · Send area · Receive area · (1 2) · (1 2) · During use · Send area · Receive area · Execution command · (1 2) · (1 2) · During use
Page 890 of the Mitsubishi Electronics QCPU user manual — RST M3
Page 890 · click to enlarge
Page 890

(b) Program example when SM796 to SM799 are used as an interlock

The following shows a program that executes the D.DDWR instruction to CPU No.2 at the rise of X0, and executes the D.DDWR instruction to CPU No.3 at the rise of X1. The maximum number of used blocks for multiple CPU hight speed transmission dedicated

SM402

MOV K7 SD797

Turn-on for one scan after RUN

Maximum number of used blocks (CPU No.2)

MOV K7 SD798

Maximum number of used blocks (CPU No.3)

SM402

MOV K100 D1

Turn-on for one scan after RUN

Mumber of write points to CPU No.2

MOV K100 D3

Mumber of write points to CPU No.3

The DDWR instruction is executed to CPU No.2 at the rise of X0

X0 11 Execution command of the DDWR instruction to CPU No.2

SET M0

During execution the DDWR instruction to CPU No.3

14 M0 SM797

D.DDWRH3E1 D0 ZR0 ZR0 M1

Completion status (CPU No.2)

Write data to CPU No.2

Write data to CPU No.2

Completion devaice (CPU No.2)

During execution of the DDWR instruction to CPU No.3

Number of used blocks information (CPU No.2)

RST M0

During execution of the DDWR instruction to CPU No.2

The DDWR instruction is executed to CPU No.3 at the rise of X1

X1 29 During execution of the DDWR instruction to CPU No.3

SET M3

During execution the DDWR instruction to CPU No.3

32 M3 SM798

D.DDWRH3E2 D2 ZR1000 ZR1000 M4

During execution of the DDWR instruction to CPU No.3

Number of used blocks information (CPU No.3)

Completion status (CPU No.3)

Write data to CPU No.3

Write data to CPU No.3

Completion device (CPU No.3)

RST M3

During execution of the DDWR instruction to CPU No.3

Page 891 of the Mitsubishi Electronics QCPU user manual — M1
Page 891 · click to enlarge
Page 891

(8) Program example when the multiple CPU high-speed transmission dedicated instructions

are executed to CPU modules by turns

When the multiple CPU high-speed transmission dedicated instructions are executed to Universal model QCPUs by turns, release an interlock to prevent the concurrent execution. Use the cyclic transmission area device (from U3En¥G10000) as an interlock. The following shows a program example when the multiple CPU high-speed transmission dedicated instructions are executed at CPU No.s 1 and 2 by turns.

Program example when the multiple CPU high-speed transmission dedicated instruction is executed at CPU No.1

SM402

MOV K7 SD797

Turn-on for one scan after RUN

Maximum number of used blocks (CPU No.2)

SET M0

During execution of the DDWR instruction Write command

U3E0¥G10000.0 is turned on while CPU No.1 is executing the DP.DDWR instruction.

M0 U3E1¥G10000.0 SM797

U3E0¥

SET G10000.0

During execution of the DDWR instruction

CPU No.2 is during execution of the instruction

Number of used blocks information (CPU No.2)

CPU No.1 is during execution of the instruction

MOV K100 D1

Number of write points

DP.DDWR H3E1 D0 ZR100 ZR100 M1

10.1 Overview

RST M0

During execution of the DDWR instruction

U3E0¥G10000.0 is turned on while CPU No.1 is executing the DP.DDWR instruction.

M1

U3E0¥

SET G10000.0

CPU No.1 is during of the instruction

Completion status · Completion device · Completion device

Page 892 of the Mitsubishi Electronics QCPU user manual — M1
Page 892 · click to enlarge
Page 892

Program example when the multiple CPU high-speed transmission dedicated instruction is executed at CPU No.2

SM402

MOV K1 SD796

Turn-on for one scan after RUN

Maximum number of used blocks (CPU No.1)

SET M0

During execution the DDRD instruction

U3E1¥G10000.0 is turned on while CPU No.2 is executing the DP.DDRD instruction.

M0 U3E0¥G10000.0 SM796

U3E1¥

SET G10000.0

CPU No.2 is during execution of the instruction

During execution of the DDWR instruction

CPU No.1 is during execution of the instruction

Number of used blocks information (CPU No.1)

MOV K50 D1

DP.DDRD H3E0 D0 D1000 D1000 M1

RST M0

During execution of the DDRD instruction

U3E1¥G10000.0 is turned off at the completion of the DP.DDRD instruction.

M1

U3E1¥

RST G10000.0

CPU No.2 is during of execution the instruction

(9) Program example when data exceeding 100 words are written/read with the multiple CPU

high-speed transmission dedicated instruction

The maximum number of write/read points that can be processed with the multiple CPU high-speed transmission dedicated instruction is 100 words. Data exceeding 100 words can be written/read by executing the multiple CPU high-speed transmission dedicated instruction at several times. The following shows a program example using the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction. The similar program can be used when using the D(P).DDRD instruction of the multiple CPU high-speed transmission dedicated instruction.

Show 5 more labels / short text on this page
Read instruction · Read instruction · Completion status · Completion devaice · Completion device
Page 893 of the Mitsubishi Electronics QCPU user manual — = Z2 K1000
Page 893 · click to enlarge
Page 893

(a) Program example when one D(P).DDWR instruction is executThe following shows a

program example that writes ZR0 to ZR999 (1000 points) in CPU No.1 to ZR0 to ZR999 in CPU No.2 with the D.DDWR instruction. In the following program example, the next D.DDWR instruction is executed after the completion device of the D.DDWR instruction (M2) turns on so that only one D.DDWR instruction may be executed.

Program example when one D(P).DDWR instruction is executed The maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting is set to CPU No.2

SM402

MOV K7 SD797

Turn-on for one scan after

Maximum number of used blocks (CPU No.2)

MOV K100 D1

Number of write points

Data writing is started at the rise of the write command (X0)

X0 M0

37 RST Z2

SET M0

68 M0

SET M1

During execution of the DDWR instruction

M4

Execution request of the next DDWR instruction

10.1 Overview

The DDWR instruction is executed

71 M1 SM797

D.DDWR H3E1 D0 ZR0Z2 ZR0Z2 M2

During execution of the DDWR instruction

Number of used blocks information (CPU No.2)

RST M1

During execution of the DDWR instruction

When the DDWR instruction is completed abnomally, the annunciator is turned on and data writing is stopped

98 M2 M3

SET F0

RST M0

Next data writing is requested at nomal completion of the DDWR instruction

134 M2 M3

+ K100 Z2

< Z2 K1000

PLS M4

Execution request of the next DDWR instruction RST M0

= Z2 K1000

END 173

Show 13 more labels / short text on this page
Write comman · During writing · During writing · During writing · Completion status · Write destination · source/write Completion device · Completion device · Error completion device · During writing · Completion device · Error completion device · During writing
Page 894 of the Mitsubishi Electronics QCPU user manual — = Z2 K1000
Page 894 · click to enlarge
Page 894

(b) Program example when the D(P).DDWR instructions are executed concurrently

The following shows a program example that writes ZR0 to ZR999 (1000 points) in CPU No.1 to ZR0 to ZR999 in CPU No.2 with the D.DDWR instruction. As shown on the program example, multiple CPU device write/read instructions can be executed concurrently. When reading/writing devices with the multiple CPU high-speed transmission dedicated instructions concurrently, the more the total number of blocks in the multiple CPU high speed transmission area (send area), the more the time taken to complete reading/ writing with the multiple CPU high-speed transmission dedicated instruction can be shortened.

Program example when the D(P).DDWR instructions are executed concurrently

The maximum number of used blocks for multiple CPU high-speed transmission dedicated instruction setting is set to CPU No.2

SM402

MOV K7 SD797

Turn-on for one scan after RUN

Maximum number of used blocks (CPU No.2) MOV K100 D1

Number of write points 1 MOV K100 D3

Number of write points 2 Data writing is started at the rise of the write command (X0)

X0 M0

39 RST Z2

SET M0

During writing First DDWR instruction, Second DDWR instruction

70 M0

SET M1

During execution of the DDWR instruction 1

M7

SET M2

Execution request of the next DDWR instruction The first DDWR instruction is executed

During execution of the DDWR instruction 2

94 M1

SM797

D.DDWR H3E1 D0 ZR0Z2 ZR0Z2 M3

During execution of the DDWR instruction 1

Number of used blocks information (CPU No.2)

source write Completion device 1

RST M1

During execution of the DDWR instruction 1 The second DDWR instruction is executed

126 M2

SM797

D.DDWR H3E1 D2 ZR100Z2 ZR100Z2 M5

During execution of the DDWR instruction 2

Number of used 3 blocks information (CPU No.2)

source write Completion device 2

RST M2

During execution of the DDWR instruction 2

When the DDWR instruction is completed abnomally, the annunciator is turned on and data writing is stopped

158 M3 M4

SET F0

DDWR instruction error display

Error completion device 1

M5 M6

RST M0

Error completion device 2 Next data writing is requested at nomal completion of the second DDWR instruction

197 M5 M6

+ K200 Z2

Error completion device 2

< Z2 K1000

PLS M7

Execution request of the next DDWR instruction RST M0

= Z2 K1000

END 241

Show 12 more labels / short text on this page
Write comma · During writing · During writing · Completion status 1 · Write destination · Completion status 2 · Write destination · Completion device 1 · Completion device 2 · During writing · Completion device 2 · During writing
Page 895 of the Mitsubishi Electronics QCPU user manual — D(P).DDWR
Page 895 · click to enlarge
Page 895

D(P).DDWR

10.2 Writing Devices to Another CPU (D(P).DDWR)

D(P).DDWR

Ver.

Basic Process High performance Redundant

Q03UDCPU, Q04UDHCPU, Q06UDHCPU: that the first 5 digits of serial number is 10012 or higer QnUDE(H)CPU.

Mitsubishi Electronics QCPU — D(P).DDWR diagram (page 895)
Fig. 1376

*2: Index modification cannot be made to setting data n.

*3: Index modification cannot be made to setting data from to . *4: Local devices cannot be used. *5: File registers cannot be used per program. *6: FD @ (indirect specification) cannot be used. *7: FX and FY cannot be used.

Mitsubishi Electronics QCPU — D(P).DDWR diagram (page 895)
Fig. 1377

10.2 Writing Devices to Another CPU (D(P).DDWR)

n The result of dividing the start I/O number of another CPU by 16

CPU No.1: 3E0H, CPU No.2: 3E1H, CPU No.3: 3E2H, CPU No.4: 3E3H BIN 16 bits

Start device of the host CPU that stores control data

Device name Start device of the host CPU that stores data to be written

Start device of another CPU that stores write data Device*6

*6: By specifying a file register (R, ZR), data can be written to devices in another CPU, outside the range of host CPU. *7: By specifying the start device by " ", devices can be written to devices in another CPU, outside the range of host CPU.

Universal

Page 896 of the Mitsubishi Electronics QCPU user manual — D2 D2
Page 896 · click to enlarge
Page 896

D(P).DDWR

Control Data

Device Item Setting data Setting range Set by

An execution result upon completion of the

instruction is stored.

0000(H)No errors (normal completion)
Other than 0000(H)Error code (error completion)

points Set the number of write points in units of words. 1 to 100 User

Function

(1) In multiple CPU system, data stored in a device specified by host CPU ( ) or later is stored

by the number of write points specified by ( +1) into a device specified by another CPU (n)

( ) or later.

Start device nimber of the strage iocation where write data has stored

Strat devaice number of the storageiocation for write data

Host CPU (CPU that repuests writing)

Another CPU n (CPU to be read)

Number of write points

(2) Whether to complete the D(P).DDWR instruction normally can be checked by the

completion device ( +0) and completion status display device ( +1).

D2 D2

(a) Completion device ( +0) Turns on at END processing in the scan where the instruction has been completed, and turns off at the next END processing.

(b) Completion status display device ( +1) This device turns on/off depending on the status upon completion of the instruction.

  • Normal completion: Off
  • Error completion: Turns on at END processing in the scan where the instruction has

been completed, and turns off at the next END processing (At error completion, an

error code is stored at control data ( +0): Completion status)).

Show 4 more labels / short text on this page
+0 Completion status · –– System · Number of write · +1
Page 897 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 897 · click to enlarge
Page 897

D(P).DDWR

(3) The number of blocks used for the instruction depends on the number of write points (refer

to Section 12.1).

Number of blocks used for the instruction

Number of write points

D(P).DDWR

specified by the instruction

1 to 4 1

5 to 20 2

21 to 36 3

37 to 52 4

53 to 68 5

69 to 84 6

85 to 100 7

(4) The instruction will be completed abnormally when there are no empty blocks in the multiple

CPU high speed transmission area.

Set the number of blocks used for the instruction at special registers (SD796 to SD799), and use the special relays (SM796 to SM799)as an interlock prevent error completion (refer to Section 12.1).

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into SD0.

(1) Specified another CPU is wrong or the multiple CPU high-speed transmission dedicated

instruction cannot be used in the setting (Error code: 4350)

  • The reserved CPU has been specified.
  • Unmounted CPU has been specified.
  • Another CPU start I/O number divided by 16n is out of 3E0 H to 3E3 H .
  • The instruction was executed without setting "Use multiple CPU high speed

10.2 Writing Devices to Another CPU (D(P).DDWR)

transmission".

  • The instruction was executed with the Q02UCPU.
  • Host CPU has been specified.
  • The CPU where the instruction cannot be executed has been specified.

(2) The instruction cannot be executed with the CPU. (Error code: 4351)

  • Another CPU does not support this instruction.

(3) The number of devices is wrong. (Error code: 4352)

(4) The device that cannot be used for the instruction has been specified. (Error code: 4353)

(5) A device has been specified by the character string that cannot be used. (Error code: 4354)

(6) The number of write points ( +1)is other than 0 to 100. (Error code 4354)

instruction

Page 898 of the Mitsubishi Electronics QCPU user manual — S2 D1
Page 898 · click to enlarge
Page 898

D(P).DDWR

In any of the following cases, the instruction is completed abnormally, and an error code is

stored into a device specified at completion status storage device ( +0).

(1) The request of the instruction to the target CPU is more than the acceptable value (no empty

blocks exist in the multiple CPU high speed transmission area).

(Error code0010 H )

(2) A device for another CPU specified at cannot be used at another CPU, or is out of device range. (Error code: 1001H)

(3) The number of write points set with the D(P).DDWR instruction is 0.

(Error code1080 H )

(4) The response of the instruction from another CPU cannot be returned (no empty blocks exist

in the multiple CPU high speed transmission area). (Error code: 1003H)

Program Example

(1) This program stores data by 10 words starting from DO in host CPU into W10 or later in CPU

No.2 when XO turns on.

The number of write points "10" is stored into D101, setting device of the number of write points (S1+1) of control data.

MOVP K10 D101

Execution command of the instruction

DP.DDWR H3E1 D100 D0 W10 M100

D0 to D9 in host CPU are stored into W10 to W19 in CPU No.2.

M100

M101

M101

Caution

(1) Digit specification of bit device is possible for n, , and . Note that when the digit

S2 D1

specification of bit device is made to or , the following conditions must be met.

S2 D1

  • Digits are specified by 16 bits (4 digits).
  • The start bit device is multiples of 16 (10 H ).

(2) Execute this instruction after checking that the write target CPU is powered on. Not doing so

may end up no processing.

(3) If changing a range of the device specified at setting data between after execution of the

instruction and turn-on of the completion device, data to be stored by system (completion status, completion device) cannot be stored normally.

(4) SB, SW, SM, and SD include system information area. Take care not to destroy the system

information when writing data to the devices above with the D(P).DDWR instruction of the multiple CPU high-speed transmission dedicated instruction.

Show 4 more labels / short text on this page
[Ladder mode] · Normal completion Program · Completion device · Error completion Program
Page 899 of the Mitsubishi Electronics QCPU user manual — D(P).DDRD
Page 899 · click to enlarge
Page 899

D(P).DDRD

10.3 Reading Devices from Another CPU (D(P).DDRD)

D(P).DDRD

Ver.

Basic Process High performance Redundant

Q03UDCPU, Q04UDHCPU, Q06UDHCPUthat the first 5 digits of serial number is 10012 or higer

QnUDE(H)CPU.

Mitsubishi Electronics QCPU — D(P).DDRD diagram (page 899)
Fig. 1378

*2: Index modification cannot be made to setting data n.

*3: Index modification cannot be made to setting data from to . *4: Local devices cannot be used. *5: File registers cannot be used per program. *6: FD @ (indirect specification) cannot be used. *7: FX and FY cannot be used.

Mitsubishi Electronics QCPU — D(P).DDRD diagram (page 899)
Fig. 1379

10.3 Reading Devices from Another CPU (D(P).DDRD)

n The result of dividing the start I/O number of another CPU by 16

CPU No.1: 3E0H, CPU No.2: 3E1H, CPU No.3: 3E2H, CPU No.4: 3E3H BIN 16 bits

Start device of the host CPU that stores control data

Device name Start device of another CPU that stores data to be read

Start device of the host CPU that stores read data Device*6

*6: By specifying a file register (R, ZR), data can be read to devices in another CPU, outside the range of host CPU. *7: By specifying the start device by " ", devices can be read to devices in another CPU, outside the range of host CPU.

Universal

Page 900 of the Mitsubishi Electronics QCPU user manual — D2 D2
Page 900 · click to enlarge
Page 900

D(P).DDRD

Control Data

Device Item Setting data Setting range Set by

An execution result upon completion of the

instruction is stored.

0000( H )No errors (normal completion)
Other than 0000( H )Error code (error completion)

points Set the number of read points in units of words. 1 to 100 User

(1) In multiple CPU system, data stored in a device specified by another CPU (n) ( ) or later is

stored by the number of read points specified by ( +1) into a device specified by host CPU

( ) or later.

Strat device number of the storage location where read has been stored

Start device number of the storage location for read data

Host CPU (CPU that requests reading)

Another CPU n (CPU to be read)

Number of read points

(2) Whether to complete the D(P).DDRD instruction normally can be checked by the completion

device ( +0) and completion status display device ( +1).

D2 D2

(a) END processing in scan data that CPU completed the instruction turns on the device

and the next END processing turns off the device.

(b) This device turns on/off depending on the status upon completion of the instruction.

  • Normal completion: Off
  • Error completion: Turns on at END processing in the scan where the instruction has

been completed, and turns off at the next END processing (At error completion, an

error code is stored at control data ( +0): Completion status)).

(3) The number of blocks used for the instruction depends on the number of read points (refer to

Section 12.1).

Number of blocks used for the instruction

Number of read points

specified by the instruction D(P).DDRD instruction

1 to 100 1

(4) The instruction will be completed abnormally when there are no empty blocks in the multiple

CPU high speed transmission area.

Set the number of blocks used for the instruction at special registers (SD796 to SD799), and use the special relays (SM796 to SM799)as an interlock prevent error completion (refer to Section 12.1).

Show 4 more labels / short text on this page
+0 Completion status · –– System · Number of read · +1
Page 901 of the Mitsubishi Electronics QCPU user manual — D(P).DDRD
Page 901 · click to enlarge
Page 901

D(P).DDRD

Operation Error

In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into SD0.

(1) Specified another CPU is wrong or the multiple CPU high-speed transmission dedicated

instruction cannot be used in the setting (Error code: 4350).

  • The reserved CPU has been specified.
  • Unmounted CPU has been specified.
  • The result of dividing the start I/O number of another CPU by 16n is outside the range of

3E0H to 3E3H.

  • The instruction was executed without setting "Use multiple CPU high speed

transmission".

  • The instruction was executed with the Q02UCPU.
  • Host CPU has been specified.
  • The CPU where the instruction cannot be executed has been specified.

(2) The instruction cannot be executed with the CPU. (Error code: 4351)

  • Another CPU does not support this instruction.

(3) The number of devices is wrong. (Error code: 4352)

(4) The device that cannot be used for the instruction has been specified. (Error code: 4353)

(5) A device has been specified by the character string that cannot be used.(Error code: 4354)

(6) The number of read points ( +1)is other than 0 to 100. (Error code: 4355)

In any of the following cases, the instruction is completed abnormally, and an error code is

stored into a device specified at completion status storage device ( +0).

10.3 Reading Devices from Another CPU (D(P).DDRD)

(1) The request of the instruction to the target CPU is more than the acceptable value (no empty

blocks exist in the multiple CPU high speed transmission area). (Error code: 0010H)

(2) A device for another CPU specified at cannot be used at another CPU, or is out of device range. (Error code: 1001H)

(3) The number of read points set with the D(P).DDRD instruction is 0. (Error code: 1081H)

(4) The response of the instruction from another CPU cannot be returned (no empty blocks exist

in the multiple CPU high speed transmission area). (Error code: 1003H)

Page 902 of the Mitsubishi Electronics QCPU user manual — S2 D1
Page 902 · click to enlarge
Page 902

D(P).DDRD

Program Example

(1) This program stores data by 10 words starting from DO in CPU No.2 into W10 or later in host

CPU when XO turns on.

MOVP K10 D101

Execution command of the instruction

DP.DDRD H3E1 D100 D0 W10 M100

M100

M101

M101

Caution

(1) Digit specification of bit device is possible for n, , and . Note that when the digit

S2 D1

specification of bit device is made to or , the following conditions must be met.

S2 D1

  • Digits are specified by 16 bits (4 digits).
  • The start bit device is multiples of 16 (10 H ) .

(2) Execute this instruction after checking that the read target CPU is powered on. Not doing so

may end up no processing.

(3) If changing a range of the device specified at setting data between after execution of the

instruction and turn-on of the completion device, data to be stored by system (completion status, completion device) cannot be stored normally.

Show 4 more labels / short text on this page
[Ladder mode] · Normal completion Program · Completion device · Error completion Program
Page 903 of the Mitsubishi Electronics QCPU user manual — QCPU INSTRUCTIONS
Page 903 · click to enlarge
Page 903

QCPU INSTRUCTIONS

Category Processing Details Reference

Switches between the control system and standby system at

the END processing of the scan executed with the

Section 11.1

SP.CONTSW instruction.

section · System switching instruction

Page 904 of the Mitsubishi Electronics QCPU user manual — Function
Page 904 · click to enlarge
Page 904

SP.CONTSW

11.1 System Switching Instruction (SP.CONTSW)

SP.CONTSW

Basic Process High performance Universal Redundant

Mitsubishi Electronics QCPU — SP.CONTSW diagram (page 904)
Fig. 1380

: Value other than 0 and used to identify the processing that issued the system switching request (BIN 16 bits)

*1: The bit specification for the word device is available.

Function

(1) Switches between the control system and standby system at the END processing of the

scan executed with the SP.CONTSW instruction.

(2) When using the SP.CONTSW instruction for system switching, the "manual switching enable

flag (SM1592)" must have been turned ON (enabled) in advance.

(3) is provided to identify the processing block of the program where system switching occurred when multiple SP.CONTSW instructions are used.

At , specify a value within the ranges -32768 to -1 and 1 to 32767 (1H to FFFFH). The value specified for the SP.CONTSW instruction is stored into the "system switching instruction argument (SD6)" of the error common information when the system switching is

normally completed. *2

When multiple SP.CONTSW instructions are executed during the same scan, the argument of the SP.CONTSW instruction executed first is stored into the system switching instruction argument (SD6).

(4) When system switching is normally completed, the value specified for the SP.CONTSW instruction is stored into the "system switching instruction argument (SD1602)" of the new control system CPU module. *3

By reading the SD1602 value from the new control system CPU module, which the SP.CONTSW instruction was used for system switching can be confirmed.

*2 : The value specified for the SP.CONTSW instruction can be confirmed in the error common information of the PLC diagnostics dialog box on GX Developer. *3 : The new control system CPU module means the CPU module that was switched from the standby system

to the control system by the SP.CONTSW instruction.

Page 905 of the Mitsubishi Electronics QCPU user manual — Operation Error
Page 905 · click to enlarge
Page 905

SP.CONTSW

(5) The error completion device is turned ON by the control system CPU module when system

switching by the SP.CONTSW instruction was unsuccessful.

(a) When OPERATION ERROR is detected due to any of the following reasons at the

execution of the SP.CONTSW instruction, the error completion device is turned ON during the instruction execution.

  • 0 is specified at of the executed <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction.
  • The "manual switching enable flag (SM1592)" is OFF.
  • The <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction was executed by the standby system in the separate

mode.

  • The <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction was executed in the debug mode.

(b) If systems could not be switched due to any of the reasons given in the following table,

the error completion device turns ON when system switching is executed in the END processing.

Reason No. Reasons for System Switching Failure

1 Tracking cable is disconnected or faulty.

2 Hardware fault, power-off, reset or watchdog timer error occurred in the standby

system.

3 Watchdog timer error occurred in the control system.

4 Preparations being made for tracking transfer.

5 Communication time-out.

6 Stop error occurred in the standby system. (Excluding watchdog timer error)

7 Operating status different between the control system and standby system.

8 Memory copy being executed from the control system to the standby system.

9 Write during RUN being executed.

10 Network fault detected by the standby system.

11.1 System Switching Instruction (SP.CONTSW)

When the error completion device was turned ON due to unsuccessful system switching, 16 is stored into the "reason(s) for system switching (SD1588)" and the reason No. of the above table into the "reason(s) for system switching failure (SD1589)".

(6) Use a user program or GX Developer to turn OFF the error completion bit that has turned

ON.

If normal system switching is performed by the execution of the SP.CONTSW instruction with the error completion device ON, the error completion device of the new standby system CPU module is also turned OFF. When system switching is performed due to a factor other than the SP.CONTSW instruction, however, the error completion device is not turned OFF.

Operation Error

(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and

an error code is stored into SD0.

  • The value specified at is 0 at execution of the <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction.
(Error code4100)
  • The manual switching enable flag (SM1592) is OFF (disable) at execution of the
SP.CONTSW instruction. (Error code4120)
  • The <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction was executed by the standby system CPU module in the
separate mode. (Error code4121)
  • The <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW instruction was executed in the debug mode. (Error code: 4121)

0 Normally completed

Page 906 of the Mitsubishi Electronics QCPU user manual — Program Example
Page 906 · click to enlarge
Page 906

SP.CONTSW

(2) If system switching was unsuccessful, the error flag (SM0) is turned ON and an error code is

stored into SD0.

  • The tracking cable is disconnected or faulty. (Error code: 6220)
  • Hardware fault, power-off, reset or watchdog timer error occurred in the standby system.
(Error code6220)
  • Watchdog timer error occurred in the control system. (Error code: 6220)
  • Preparations are being made for tracking transfer. (Error code: 6220)
  • Communication time-out occurred. (Error code: 6220)
  • Stop error, excluding watchdog timer error, occurred in the standby system.
(Error code6220)
  • The operating status differs between the control system and standby system.
(Error code6220)
  • Memory copy is being executed from the control system to the standby system.
(Error code6220)
  • Write during RUN is being executed. (Error code: 6220)
  • Network fault was detected by the standby system. (Error code: 6220)

Program Example

(1) The following program executes system switching on the leading edge of the system

switching command (M100).

If the system switching command (M100) remains ON, the SP.CONTSW instruction is also executed by the new control system CPU module after system switching. Therefore, M101 is added to the execution conditions as a consecutive switching prevention flag.

[Ladder Mode] [List Mode]

Mitsubishi Electronics QCPU — Program Example diagram (page 906)
Fig. 1381 · Program Example

Instruction Device Step

Page 907 of the Mitsubishi Electronics QCPU user manual — ERROR CODES
Page 907 · click to enlarge
Page 907

ERROR CODES

Page 908 of the Mitsubishi Electronics QCPU user manual — 12.1 Error Code List
Page 908 · click to enlarge
Page 908

12.1 Error Code List

The CPU module uses the self diagnostics function to display error information (on the LED) and stores the information into the special relay SM and special register SD, when an error occurs in the following situations:

  • When the Progammable Controller is powered ON.
  • When the CPU module is switched from STOP to RUN.
  • While the CPU module is running.

If an error occurs when a communication request is issued from the peripheral device, intelligent function module or network system to the CPU module, the CPU module returns the error code (4000H to 4FFFH) to the request source.

The following describes the description of errors which occur in the CPU module and the corrective actions for the errors.

(1) How to read the error code list

The following describes how to read Section 12.1.3 Error code list (1000 to 1999) to Section 12.1.9 Error code list (7000 to 10000).

(a) Error code, common information and individual information

Alphanumeric characters in the parentheses of the titles indicate the special register numbers where each information is stored.

QCPU : Indicates all the Q series CPU modules. Q00J/Q00/Q01 : Indicates the Basic model QCPU. Qn(H) : Indicates the High Performance model QCPU. QnPH : Indicates the Process CPU. QnPRH : Indicates the Redundant CPU. QnU : Indicates the Universal model QCPU. Each CPU module : Indicates the relevant specific CPU module. model name (Example: Q02U)

(b) Compatible CPU

Page 909 of the Mitsubishi Electronics QCPU user manual — 12.1.2 Reading an error code
Page 909 · click to enlarge
Page 909

12.1.1 Error codes

Errors are detected by the self diagnostic function of the CPU module or detected during communication with the CPU module.

The relation between the error detection pattern, error detection location and error code is shown in Table 12.1.

Table12.1Reference destination

Error detection pattern Error detection

location Error code Reference

Detection by the self

diagnostics function of CPU

CPU module 1000 to 10000*1*2 Section 12.1.3 to 12.1.9

CPU module 4000H to 4FFFH • QCPU User’s Manual (Hardware design,

7000H to 7FFFH Serial Communication User’s Manual, etc.

module, etc.

CC-Link System Master/Local Module User’s

CC-Link module B000H to BFFFH

Ethernet module C000H to CFFFH Ethernet Interface Module User’s Manual

CC-Link IE Controller Network Reference

E000H to EFFFH

  • MELSECNET/H mode

Q Corresponding MELSECNET/H Network

MELSECNET/H

F000H to FFFFH

  • MELSECNET/10 mode

For QnA/Q4AR MELSECNET/10 Network

  • * 1: CPU module error codes are classified into minor, moderate, major errors as shown below.
  • Minor error: Errors that may allow the CPU module to continue the operation, e.g., battery error. (Error code: 1300 to 10000)
  • Moderate error: Errors that may cause the CPU module to stop the operation, e.g., WDT error. (Error code: 1300 to 10000)
  • Major error: Errors that may cause the CPU module to stop the operation, e.g., RAM error. (Error code: 1000 to 1299) Determine the error level, i.e. whether the operation can be continued or stopped, by referring to "Operating Statuses of CPU" described in Section 12.1.3 to 12.1.9 "Error Code List"

12.1 Error Code List 12.1.1 Error codes

*2: When detected an error code without being noted in the reference table, please contact your local Mitsubishi representive.

12.1.2 Reading an error code

When an error occurs, reading an error code, error message or the like can be executed with GX Developer.

For the details of the operation method, refer to the operating manual for GX Developer.

Show 12 more labels / short text on this page
module · Maintenance and Inspection) · Serial communication · Manual · Detection at communication · CC-Link IE controller · with CPU module · network · Manual · System Reference Manual · network module · System Reference Manual
Page 910 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 910 · click to enlarge
Page 910

12.1.3 Error code list (1000 to 1999)

The following shows the error messages from the error code 1000 to 1999, the contents and causes of the errors, and the corrective actions for the errors.

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Malfunctioning due to noise or other reason
  • Hardware fault
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU

  • Malfunctioning due to noise or other reason
  • Hardware fault
  • Accessed to outlying devices with the device range checks disabled (SM237 is turned on)(This error occurs only when BMOV, FMOV, and DFMOV instructions are executed.) (Universal model QCPU only)
  • Collateral information
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Check the devices specified by BMOV, FMOV, and DFMOV instructions and correct the device settings. (Universal model QCPU only)
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

QCPU

RUN:

  • Always

Off ERR.:

1002 [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Malfunctioning due to noise or other reason
  • Hardware fault
  • Collateral information

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU

  • Malfunctioning due to noise or other reason
  • Hardware fault
  • Collateral information
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[MAIN CPU DOWN] Boot operation was performed in the transfer destination without formatting. ■Collateral information

  • Before performing boot operation by the parameter, select "Clear program memory" to clear the program memory.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON
Show 4 more labels / short text on this page
Corresponding · Flicker · Stop · Qn(H) QnPH QnPRH
Page 911 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *4
Page 911 · click to enlarge
Page 911

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

1006 [MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Malfunctioning due to noise or other reason
  • Hardware fault
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[MAIN CPU DOWN]

  • A failure is detected on the power supply module, CPU module, main base unit, extension base unit or extension cable.
  • When using the redundant base unit, the redundant power supply module failure in both systems and/or the redundant base unit failure are detected.
  • Collateral information

Reset the CPU module and RUN it again.If the same error is detected again, it is considered that the power supply module, CPU module, main base unit, extension base unit or extension cable is faulty. (Contact your local Mitsubishi representative.)

Q00J/Q00/Q01 *4

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[END NOT EXECUTE] Entire program was executed without the execution of an END instruction.

RUN:

  • When the END instruction is executed it is read as another instruction code, e.g. due to noise.
  • The END instruction has been changed to another instruction code somehow.
  • Collateral information
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

Off ERR.:

QCPU

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[SFCP. END ERROR] The SFC program cannot be normally terminated due to noise or other reason.

  • The SFC program cannot be normally terminated due to noise or any similar cause.
  • The SFC program cannot be normally terminated for any other reason.
  • Collateral information
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

Q00J/Q00/Q01 *4

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When SFC program is executed

[MAIN CPU DOWN] Runaway or error of the CPU module was detected.

  • Take measures against noise.
  • Reset the CPU module and run it again. If the same error is displayed again, the CPU module has hardware failure.(Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Malfunction due to noise etc.
  • Hardware failure
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

*4 Function version is B or later. *6 The module whose first 5 digits of serial No. is "04101" or later.

Show 10 more labels / short text on this page
Corresponding · Qn(H) QnPH QnPRH · Qn(H)*6 · QnPH QnPRH · QnU · Flicker · Stop · QnPH · QnU · QnU
Page 912 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 912 · click to enlarge
Page 912

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[RAM ERROR] The sequence program storing program memory in the CPU module is faulty. ■Collateral information

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset/ When an END instruction executed

[RAM ERROR]

  • The work area RAM in the CPU module is faulty.
  • The standard RAM and extended RAM in the CPU module are faulty.
  • Collateral information
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)

QCPU 1102

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset/ When an END instruction executed

[RAM ERROR] The device memory in the CPU module is faulty. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset
  • Take noise reduction measures.
  • When indexing is performed, check the value of index register to see if it is within the device range.
  • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.)

RUN:

[RAM ERROR]

  • The device memory in the CPU module is faulty.
  • The device out of range is accessed due to indexing, and the device for system is overwritten.
  • Collateral information

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset/ When an END instruction executed

[RAM ERROR] The address RAM in the CPU module is faulty. ■Collateral information

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • At power ON/ At reset

[RAM ERROR] The CPU memory in the CPU module is faulty. ■Collateral information

Q00J/Q00/Q01

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset
  • Take noise reduction measures.
  • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

[RAM ERROR] The CPU shared memory in the CPU module is faulty. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*4 Function version is B or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later.

Show 10 more labels / short text on this page
Corresponding · Flicker · Qn(H)*8 · QnPH*8 · Stop · QnPRH*9 · QnU · Qn(H)*4 · QnPH QnPRH · QnU
Page 913 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 913 · click to enlarge
Page 913

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

  • Check the battery to see if it is dead or not. If dead, replace the battery.
  • Take noise reduction measures.
  • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the possible cause is a CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

[RAM ERROR] The battery is dead. The program memory in the CPU module is faulty. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN/When an END instruction

1107 [RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

RUN:

[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information

Off ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/ At reset

[TRK. CIR. ERROR] A tracking hardware fault was detected. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

1112 [TRK. CIR. ERROR] A tracking hardware fault was detected during running.

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

  • Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System).
  • The tracking cable was disconnected and reinserted without the standby system being powered off or reset.
  • The tracking cable is not secured by the connector fixing screws.
  • The error occurred at a startup since the redundant system startup procedure was not followed.
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • During running

*7 The module whose first 5 digits of serial No. is "07032" or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later.

Show 12 more labels / short text on this page
Corresponding · Qn(H) · QnPH*7 · QnPRH · executed · QnPRH 1108 · Qn(H)*8 · QnPH*8 · QnPRH*9 · Flicker · Stop · QnPRH
Page 914 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 914 · click to enlarge
Page 914

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information

This suggests a CPU module hardware fault. (Contact your nearest Mitsubishi representative.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[TRK. CIR. ERROR] A tracking hardware fault was detected during running.

  • Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System).
  • The tracking cable was disconnected and reinserted without the standby system being powered off or reset.
  • The tracking cable is not secured by the connector fixing screws.
  • The error occurred at a startup since the redundant system startup procedure was not followed.
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • During running

[RAM ERROR] The memory of the CPU module in the Multiple CPU high speed transmission area is faulty. ■Collateral information

  • Take noise reduction measures.
  • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.

RUN:

Off ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/ At reset

[RAM ERROR] The program memory in the CPU module is overwritten. ■Collateral information

  • Take noise reduction measures.
  • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At program execution

[RAM ERROR] The data of the device memory built in the CPU module is overwritten. ■Collateral information

  • Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At program execution

[RAM ERROR] The error of the data held by the battery in the CPU module is detected. (It occurs when the automatic format is not set.) ■Collateral information

  • Take noise reduction measures.
  • Change the CPU main body or SRAM card battery. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 6 more labels / short text on this page
Corresponding · QnPRH · QnU*10 · Flicker · Stop · QnU 1161
Page 915 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 915 · click to enlarge
Page 915

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[RAM ERROR] The destruction of the data stored in the standard RAM is detected. ■Collateral information

  • Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information

QCPU 1201

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information

RUN:

Off ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/ At reset

This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

*11 The Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU, .Q26UD(E)HCPU only.

Show 5 more labels / short text on this page
Corresponding · QnU*11 · Flicker · Stop · QnPRH 1204
Page 916 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 916 · click to enlarge
Page 916

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

  • Check FUSE. LED of the output modules and replace the module whose LED is lit. (The module with a blown fuse can also be identified using GX Developer. Check the special registers SD1300 to SD1331 to see if the bit corresponding to the module is "1".)
  • When a GOT is bus-connected to the main base unit or extension base unit, check the connection status of the extension cable and the earth status of the GOT.

[FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information

  • Common Information:Module No.(Slot No.) [For Remote I/O network]Network No./ Station No.
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off/On ERR.:

  • Always

[FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information

CPU Status:

Check ERR. LED of the output modules and replace the module whose LED is lit. (The module with a blown fuse can also be identified using GX Developer. Check the special registers SD130 to SD137 to see if the bit corresponding to the module is "1".)

  • Common Information:Module No.(Slot No.) [For Remote I/O network]Network No./ Station No.
  • Individual Information:–
  • Diagnostic Timing

Q00J/Q00/Q01

  • Always

[I/O INT. ERROR] An interruption has occurred although there is no interrupt module. ■Collateral information

Any of the mounted modules is experiencing a hardware fault. Therefore, check the mounted modules and change the faulty module. (Contact your local Mitsubishi representative.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • During interrupt

[I/O INT. ERROR] An interrupt request from other than the interrupt module was detected. ■Collateral information

RUN:

Off ERR.:

Take action so that an interrupt will not be issued from other than the interrupt module.

Q00J/Q00/Q01 *4

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • During interrupt

CPU Status:

  • Correct the interrupt pointer setting in the PLC system setting of the PLC parameter dialog box.
  • Take measures so that an interrupt is not issued from the module where the interrupt pointer setting in the PLC system setting of the PLC parameter dialog box has not been made. Correct the interrupt setting of the network parameter. Correct the interrupt setting of the intelligent function module buffer memory. Correct the basic program of the QD51.

[I/O INT. ERROR] An interrupt request from the module where interrupt pointer setting has not been made in the PLC parameter dialog box was detected. ■Collateral information

Q00J/Q00/Q01 *5

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • During interrupt

1320 [LAN CTRL.DOWN] The H/W self-diagnostics detected a LAN controller failure. ■Collateral information

RUN:

Off ERR.:

This suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/ At reset

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *4 Function version is B or later. *5 Function version is A. *13 This applies to the Built-in Ethernet port QCPU.

Show 14 more labels / short text on this page
Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker/On · Stop/ · Continue*1 · QnU · Flicker · Stop · QnPRH · QnU · QnU*13 1321 · Flicker · Stop
Page 917 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 917 · click to enlarge
Page 917

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT DOWN]

  • There was no response from the intelligent function module/special function module in the initial processing.
  • The size of the buffer memory of the intelligent function module/special function module is invalid.
  • The unsupported module is mounted.
  • Collateral information

When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module, CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)

  • Common Information:Module No.(Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset/When intelligent function module is accessed

[SP. UNIT DOWN] The intelligent function module/special function module was accessed in the program, but there was no response. ■Collateral information

This suggests the intelligient function module/ special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)

RUN:

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing

Off/On ERR.:

  • When an intelligent function module access instruction is executed

When the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.)

CPU Status:

[SP. UNIT DOWN]

  • The unsupported module is mounted.
  • Collateral information
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • When an END instruction executed

[SP. UNIT DOWN]

  • There was no response from the intelligent function module/special function module when the END instruction is executed.
  • An error is detected at the intelligent function module/special function module.
  • The I/O module (intelligent function module/ special function module) is nearly removed, completely removed, or mounted during running.
  • Collateral information

The CPU module, base module and/or the intelligent function module/special function module that was accessed is experiencing a hardware fault. (Contact your local Mitsubishi representative.)

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • Always

[CONTROL-BUS. ERR.] When performing a parameter I/O allocation the intelligent function module/special function module could not be accessed during initial communications. (On error occurring, the head I/O number of the corresponding intelligent function module/special function module is stored in the common information.) ■Collateral information

RUN:

Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

Off ERR.:

CPU Status:

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*2 In the QCPU, either error stop or continue can be selected for each intelligent function module by the parameters.

Show 6 more labels / short text on this page
Corresponding · Flicker/On · Stop/ · Continue*2 · Flicker · Stop
Page 918 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *4
Page 918 · click to enlarge
Page 918

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CONTROL-BUS. ERR.] The FROM/TO instruction is not executable, due to a control bus error with the intelligent function module/special function module. (On error occurring, the program error location is stored in the individual information.) ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

QCPU

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • During execution of FROM/TO instruction set

[CONTROL-BUS. ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information

  • Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system.
  • The intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

Q00J/Q00/Q01 *4

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

RUN:

[CONTROL-BUS. ERR.] An error is detected on the system bus.

Off ERR.:

  • Self-diagnosis error of the system bus.
  • Self-diagnosis error of the CPU module
  • Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

QCPU

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[CONTROL-BUS. ERR.]

  • Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module with a CPU module compatible with the multiple CPU system.
  • Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)
  • Fault of a loaded module was detected.
  • In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted.
  • Collateral information

Q00J/Q00/Q01 *4

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • Always

[CONTROL-BUS. ERR.] An error is detected on the system bus. ■Collateral information

Q00J/Q00/Q01 *4

Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • Always

*4 Function version is B or later.

Show 10 more labels / short text on this page
Corresponding · Qn(H)*4 · QnPH · Flicker · Stop · Qn(H)*4 · QnPH · QnU · Qn(H) QnPH QnPRH · QnU
Page 919 of the Mitsubishi Electronics QCPU user manual — Q00/Q01 *4
Page 919 · click to enlarge
Page 919

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information

Q00J/Q00/Q01

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power-ON/ At reset/ When an END instruction executed

[CONTROL-BUS. ERR.] System bus fault was detected at power-on or reset. ■Collateral information

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[CONTROL-BUS. ERR.] In a multiple CPU system, a bus fault was detected at power-on or reset. ■Collateral information

RUN:

Off ERR.:

Q00/Q01 *4

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.)

CPU Status:

[CONTROL-BUS. ERR.] A reset signal error was detected on the system bus. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

[CONTROL-BUS.ERR.] In the redundant system, at power-on/reset or switching system, the control system cannot access the extension base unit since it failed to acquire the access right. ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module,

the Q6 WRB, or hardware of extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power-ON/ At reset/ At Switching execution

[MULTI-C.BUS ERR.] The error of host CPU is detected in the Multiple CPU high speed bus. ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*4 Function version is B or later. *8 The module whose first 5 digits of serial No. is "08032" or later. *9 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 15 more labels / short text on this page
Corresponding · Qn(H)*4 · QnPH QnPRH · QnU · Qn(H)*8 · QnPH*8 · Qn(H)*4 · QnPH · QnU · Flicker · QnU · Stop · QnPRH · QnPRH*9 · QnU*10
Page 920 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 920 · click to enlarge
Page 920

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information

  • Take noise reduction measures.
  • Check the main base unit mounting status of the CPU module.
  • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:Module No. (CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[MULTI-C.BUS ERR.] The communication time out with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information:Module No. (CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

1433 [MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information

  • Take noise reduction measures.
  • Check the main base unit mounting status of the CPU module.
  • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:Module No. (CPU No.)
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • Always

Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

CPU Status:

1436 [MULTI-C.BUS ERR.] The error of the Multiple CPU high speed main base unit is detected. (The error of the Multiple CPU high speed bus is detected.) ■Collateral information

  • Take noise reduction measures.
  • Check the main base unit mounting status of the CPU module.
  • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[MULTI-C.BUS ERR.] An error of the multiple CPU high speed main base unit was detected. (An error of the multiple CPU high speed bus was detected.) ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[AC/DC DOWN]

  • A momentary power supply interruption has occurred.
  • The power supply went off.
  • Collateral information

RUN:

On ERR.:

Check the power supply.

QCPU

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

*10 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 6 more labels / short text on this page
Corresponding · QnU*10 · Flicker · Stop · Off · Continue
Page 921 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 921 · click to enlarge
Page 921

Error Code Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SINGLE PS. DOWN] The power supply voltage of either of redundant power supply modules on the redundant base unit dropped. ■Collateral information

Check the power supplied to the redundant power supply modules mounted on the redundant base unit. RUN:

  • Common Information: Base No./ Power supply No.
  • Individual Information:–
  • Diagnostic Timing

On ERR.:

  • Always

[SINGLE PS. ERROR] On the redundant base unit, the one damaged redundant power supply module was detected. ■Collateral information

CPU Status:

Hardware fault of the redundant power supply module. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information: Base No./ Power supply No.
  • Individual Information:–
  • Diagnostic Timing
  • Always

[BATTERY ERROR *3 ]

  • The battery voltage in the CPU module has dropped below stipulated level.
  • The lead connector of the CPU module battery is not connected.
  • The lead connector of the CPU module battery is not securely engaged.
  • Collateral information
  • Change the battery.
  • If the battery is for program memory, standard RAM or for the back-up power function, install a lead connector.
  • Check the lead connector of the CPU module for looseness. Firmly engage the connector if it is loose.

QCPU

RUN:

On ERR.:

  • Common Information:Drive Name
  • Individual Information:–
  • Diagnostic Timing
  • Always

CPU Status:

[BATTERY ERROR*3] Voltage of the battery on memory card has dropped below stipulated level. ■Collateral information

  • Common Information:Drive Name
  • Individual Information:–
  • Diagnostic Timing

Change the battery.

  • Always

[FLASH ROM ERROR] The number of writing to flash ROM (standard ROM and system securement area) exceeds 100,000 times. (Number of writings >100,000 times) ■Collateral information

RUN:

On ERR.:

12.1 Error Code List 12.1.3 Error code list (1000 to 1999)

Change the CPU module.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When writing to ROM

*3 BAT. LED is displayed at BATTERY ERROR. *6 The module whose first 5 digits of serial No. is "04101" or later. *12 The module whose first 5 digits of serial No. is "10042" or later. *14 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Show 14 more labels / short text on this page
Corresponding · Qn(H)*6 · QnPH*6 · On · QnPRH · QnU*12 · Continue · Off · Continue · Qn(H) QnPH QnPRH · QnU*14 · On · QnU · Continue
Page 922 of the Mitsubishi Electronics QCPU user manual — Q02U
Page 922 · click to enlarge
Page 922

12.1.4 Error code list (2000 to 2999)

The following shows the error messages from the error code 2000 to 2999, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[UNIT VERIFY ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information

Replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system.

  • Common Information:Module No. (Slot No.) [For Remote I/O network] Network No./Station No.
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[UNIT VERIFY ERR.] The I/O module status is different from the I/O module information at power ON.

Read the error common information at the GX Developer, and check and/or change the module that corresponds to the numerical value (module number) there. Alternatively, monitor special registers SD150 to SD157 using GX Developer, and check and replace the module where the bit of its data is "1".

RUN:

  • I/O module (or intelligent function module) is not installed properly or installed on the base unit.
  • Collateral information

Off/On ERR.:

  • Common Information:Module No. (Slot No.) [For Remote I/O network] Network No./Station No.
  • Individual Information:–
  • Diagnostic Timing

Q00J/Q00/Q01

CPU Status:

  • When an END instruction executed

[UNIT VERIFY ERR.] I/O module information power ON is changed.

  • Read the common information of the error using the peripheral device, and check and/or change the module that corresponds to the numerical value (module number) there.
  • Alternatively, monitor the special registers SD1400 to SD1431 at a peripheral device, and change the fuse at the output module whose bit has a value of "1".
  • When a GOT is bus-connected to the main base unit or extension base unit, check the connection status of the extension cable and the grounding status of the GOT.
  • I/O module (or intelligent function module/special function module) not installed properly or installed on the base unit.
  • Collateral information
  • Common Information:Module No. (Slot No.) [For Remote I/O network] Network No./Station No.
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[UNIT VERIFY ERR.] During operation, a module was mounted on the slot where the empty setting of the CPU module was made. ■Collateral information

RUN:

Off/On ERR.:

During operation, do not mount a module on the slot where the empty setting of the CPU module was made.

Q00J/Q00/Q01 *3

  • Common Information:Module No. (CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When an END instruction executed

[BASE LAY ERROR]

  • More than applicable number of extension base units have been used.
  • When a GOT was bus-connected, the CPU module was reset while the power of the GOT was OFF.
  • Collateral information

RUN:

Off ERR.:

Q00J/Q00/Q01 *3

  • Use the allowable number of extension base units or less.
  • Power on the Progammable Controller and GOT again.

Q00UJ Q00U/Q01U

  • Common Information:Base No.
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

Q02U

  • At power ON/At reset

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 Either error stop or continue can be selected for each module by the parameters. *3 The function version is B or later.

Show 16 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH · Flicker/On · Stop/ · Continue*1 · Qn(H) QnPH QnPRH · QnU · Flicker/On · QnU · Stop/ · Continue*2 · QnPRH · Flicker · Stop
Page 923 of the Mitsubishi Electronics QCPU user manual — [BASE LAY ERROR]
Page 923 · click to enlarge
Page 923

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[BASE LAY ERROR]

The QA1S6 B, QA6 B, or

Q00J/Q00/Q01 *3

QA6ADP+A5 B/A6 B was used as the base unit.

  • Collateral information

Do not use the QA1S6 B, QA6 B, or

  • Common Information:Base No.
  • Individual Information:–
  • Diagnostic Timing

QA6ADP+A5 B/A6 B as the base unit.

  • At power ON/At reset

[BASE LAY ERROR] The GOT is bus-connected to the main base unit of the redundant system. The following errors are detected in the CPU redundant system compatible with the extension base unit.

  • The base unit other than the Q6 WRB is
  • Remove a bus connection cable for GOT connection connected to the main base unit.

connected to the extension stage No.1. • The base unit is connected to any one of the extension stages No.2 to No.7, although the

  • Use the Q6 WRB (fixed to the extension stage

No.1) • Use the CPU module compatible with the extension base unit for the other system.

Q6 WRB does not exist in the extension stage

No.1 . • The other system CPU module is incompatible with the extension base unit.

  • Do not use the Q5 B, QA1S6 B, QA6 B or

QA6ADP+A5 B/A6 B for the base unit.

  • The Q5 B, QA1S6 B, QA6 B or
  • Use the main base unit which has the same number of slots.

QA6ADP+A5 B/A6 B is connected.

  • The number of slots of the main base unit for both systems is different.
  • Hardware failure of the Q6 WRB. (Contact your

RUN:

local Mitsubishi representative, explaining a detailed description of the problem.)

Off ERR.:

Information of the Q6 WRB cannot be read

correctly. ■Collateral information

  • Common Information:Base No.
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[BASE LAY ERROR]

Stage number of the Q6 WRB is recognized as

other than extension stage No.1 in the redundant system. ■Collateral information

Hardware failure of the Q6 WRB. (Contact your

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

local Mitsubishi representative, explaining a detailed description of the problem.)

  • Common Information:Base No.
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[EXT.CABLE ERR.] The following errors are detected in the redundant system.

  • At power-on/reset, the standby system has detected the error in the path between the control

Check to see if the extension cable between the

main base unit and the Q6 WRB is connected

system and the Q6 WRB.

correctly. If not, connect it after turning OFF the main base unit where the extension cable will be connected. If the cable is connected correctly, hardware of the

  • The standby system has detected the error in the path between the host system CPU and the

Q6 WRB at END processing.

CPU module, Q6 WRB, or extension cable is

  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

  • At power-ON/At reset/ When an END instruction executed

*3 The function version is B or later. *6 The module whose first 5 digits of serial No. is "09012" or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · QnPH QnPRH · QnU · QnPRH*6 · Flicker · Stop · QnPRH*6
Page 924 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 924 · click to enlarge
Page 924

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY ERR.] The slot to which the QI60 is mounted is set to other than Inteli (intelligent function module) or Interrupt (interrupt module) in the I/O assignment of PLC parameter. ■Collateral information

Make setting again to match the PLC parameter I/O assignment with the actual loading status.

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • In the I/O assignment setting of PLC parameter, Inteli (intelligent function module) was allocated to an I/O module or vice versa.
  • In the I/O assignment setting of PLC parameter, a module other than CPU (or nothing) was allocated to the location of a CPU module or vice versa.
  • In the I/O assignment setting of the PLC parameter, switch setting was made to the module that has no switch setting.
  • In the I/O assignment setting of the PLC parameter dialog box, the number of points assigned to the intelligent function module is less than the number of points of the mounted module.
  • Collateral information
  • Make the PLC parameter’s I/O assignment setting again so it is consistent with the actual status of the intelligent function module and the CPU module.
  • Delete the switch setting in the I/O assignment setting of the PLC parameter.

RUN:

Off ERR.:

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

CPU Status:

[SP. UNIT LAY ERR.]

  • In the parameter I/O allocation settings, an Inteli (intelligent function module) was allocated to a location reserved for an I/O module or vice versa.
  • In the parameter I/O allocation settings, a module other than CPU (or nothing) was allocated to a location reserved for a CPU module or vice versa.
  • In the I/O assignment setting of the PLC parameter dialog box, the number of points assigned to the intelligent function module is less than the number of points of the mounted module.
  • Collateral information

Reset the parameter I/O allocation setting to conform to the actual status of the intelligent function module and the CPU module.

Q00J/Q00/Q01

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.] 13 or more A-series special function modules (except for the A1SI61) that can initiate an interrupt to the CPU module have been installed. ■Collateral information

Reduce the A series special function modules (except the A1SI61) that can make an interrupt start to the CPU module to 12 or less.

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

*3 The function version is B or later.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH QnPRH · Qn(H) QnPH QnPRH · QnU · Flicker · Stop · Qn(H)
Page 925 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *3
Page 925 · click to enlarge
Page 925

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY ERR.] Seven or more A1SD51S have been installed. ■Collateral information

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing

Keep the number of A1SD51S to six or fewer.

  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • Two or more QI60/A1SI61 modules are mounted in a single CPU system.
  • Two or more QI60/A1SI61 modules are set to the same control CPU in a multiple CPU system.
  • Two or more A1SI61 modules are loaded in a multiple CPU system.
  • Collateral information
  • Reduce the number of QI60/A1SI61 modules mounted in the single CPU system to one.
  • Change the number of QI60/A1SI61 modules set to the same control CPU to only one in the multiple CPU system.
  • Reduce the number of A1SI61 modules to only one in the multiple CPU system. When using an interrupt module with each QCPU in a multiple CPU system, replace it with the QI60. (Use one A1SI61 module + max. three QI60 modules or only the QI60 modules.)
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing

RUN:

  • At power ON/At reset

Off ERR.:

[SP. UNIT LAY ERR.] Two or more QI60, A1SI61 interrupt modules have been mounted. ■Collateral information

Install only 1 QI60, A1SI61 module. Qn(H) QnPRH

CPU Status:

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.] Two or more QI60 modules are mounted. ■Collateral information

Reduce the QI60 modules to one. Q00J/Q00/Q01*5

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.] Two or more QI60 modules where interrupt pointer setting has not been made are mounted. ■Collateral information

  • Reduce the QI60 modules to one.
  • Make interrupt pointer setting to the second QI60 module and later.

Q00J/Q00/Q01 *3

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • At power ON/At reset

*3 The function version is B or later. *5 The module whose first 5 digits of serial No. is "04101" or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) · Qn(H)*3 · QnPH · Flicker · Stop · QnU
Page 926 of the Mitsubishi Electronics QCPU user manual — [SP.UNIT LAY ERR.]
Page 926 · click to enlarge
Page 926

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP.UNIT LAY ERR.]

  • Two or more MELSECNET/H modules are mounted.
  • Two or more CC-Link IE controller network modules are mounted.
  • Two or more Ethernet modules are mounted.
  • Collateral information
  • Reduce the number of MELSECNET/H modules to one.
  • Reduce the number of CC-Link IE controller network modules to one.
  • Reduce the number of Ethernet modules to one.

Q00UJ

  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP.UNIT LAY ERR.]

  • Five or more MELSECNET/H and CC-Link IE controller network modules in total are mounted in the entire system.
  • Two or more MELSECNET/H modules are mounted in the entire system.
  • Two or more CC-Link IE controller network modules are mounted in the entire system.
  • Two or more Ethernet modules are mounted in the entire system.
  • Collateral information
  • Reduce the number of MELSECNET/H and CCLink IE controller network modules to four or less in total in the entire system.
  • Reduce the number of MELSECNET/H modules to one in the entire system.
  • Reduce the number of CC-Link IE controller network modules to one in the entire system.
  • Reduce the number of Ethernet modules to one in the entire system.

Q00U/Q01U

  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP.UNIT LAY ERR.]

  • Three or more MELSECNET/H and CC-Link IE controller network modules in total are mounted in the entire system.
  • Three or more Ethernet interface modules are mounted in the entire system.
  • Collateral information

RUN:

  • Reduce the MELSECNET/H and CC-Link IE controller network modules up to two or less in the entire system.
  • Reduce the Ethernet interface modules up to two or less in the entire system.

Off ERR.:

Q02U

  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[SP.UNIT LAY ERR.]

  • Five or more MELSECNET/H and CC-Link IE controller network modules in total are mounted in the entire system.
  • Five or more Ethernet interface modules are mounted in the entire system.
  • Collateral information
  • Reduce the MELSECNET/H and CC-Link IE controller network modules up to four or less in the entire system.
  • Reduce the Ethernet interface modules up to four or less in the entire system.
  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP.UNIT LAY ERR.]

  • Three or more CC-Link IE controller network modules are mounted in the entire system.
  • Five or more MELSECNET/H and CC-Link IE controller network modules in total are mounted in the entire system.
  • Collateral information
  • Reduce the CC-Link IE controller network modules up to two or less in the entire system.
  • Reduce the total number of the MELSECNET/H and CC-Link IE controller network modules up to four or less in the entire system.
  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

*6 The module whose first 5 digits of serial No. is "09012" or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *9 The module whose first 5 digits of serial No. is "10042" or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop · QnU*7 · Qn(H)*6 · QnPH*9 · QnPRH*9
Page 927 of the Mitsubishi Electronics QCPU user manual — [SP. UNIT LAY ERR.]
Page 927 · click to enlarge
Page 927

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY ERR.]

  • Five or more MELSECNET/H modules have been installed.
  • Five or more Ethernet interface modules have been installed.
  • Collateral information
  • Reduce the number of MELSECNET/H modules to four or less.
  • Reduce the number of Ethernet modules to four or less.
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • Two or more MELSECNET/H modules were installed.
  • Two or more Ethernet modules were installed.
  • Three or more CC-Link modules were installed.
  • Collateral information
  • Reduce the MELSECNET/H modules to one or less.
  • Reduce the Ethernet modules to one or less.
  • Reduce the CC-Link modules to two or less.

Q00J/Q00/Q01

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • The same network number or same station number is duplicated in the MELSECNET/H network system.
  • Collateral information

RUN:

Off ERR.:

Q00J/Q00/Q01

  • Check the network number and station number.
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[SP. UNIT LAY ERR.] The start X/Y set in the PLC parameter’s I/O assignment settings is overlapped with the one for another module. ■Collateral information

Make the PLC parameter’s I/O assignment setting again so it is consistent with the actual status of the intelligent function module/special function modules.

QCPU

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • Network module A1SJ71LP21, A1SJ71BR11, A1SJ71AP21, A1SJ71AR21, or A1SJ71AT21B dedicated for the A2USCPU has been installed.
  • Network module A1SJ71QLP21 or A1SJ71QBR11 dedicated for the Q2AS has been installed.
  • Collateral information

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

Replace the network module for the A2USCPU or the network module for the Q2ASCPU with the MELSECNET/H module.

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset
Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Qn(H) QnPH QnPRH · Flicker · Stop · Qn(H)
Page 928 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 928 · click to enlarge
Page 928

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT ERROR]

  • The location designated by the FROM/TO instruction set is not the intelligent function module/special function module.
  • The module that does not include buffer memory has been specified by the FROM/TO instruction.
  • The intelligent function module/special function module, Network module being accessed is faulty.
  • Station not loaded was specified using the instruction whose target was the CPU share memory.
  • Collateral information

Q00J/Q00/Q01

  • Read the individual information of the error using the GX Developer, check the FROM/TO instruction that corresponds to that numerical value (program error location), and correct when necessary.
  • The intelligent function module/special function module that was accessed is experiencing a hardware fault. Therefore, change the faulty module. Alternatively, contact your local Mitsubishi representative.
  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

[SP. UNIT ERROR]

  • The location designated by a link direct device

(J \ ) is not a network module.

  • The I/O module (intelligent function module/ special function module) was nearly removed, completely removed, or mounted during running.
  • Collateral information

RUN:

Off/On ERR.:

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

CPU Status:

[SP. UNIT ERROR]

  • The module other than intelligent function module/special function module is specified by the intelligent function module/special function module dedicated instruction. Or, it is not the corresponding intelligent function module/special function module.
  • There is no network No. specified by the network dedicated instruction. Or the relay target network does not exit.
  • Collateral information

QCPU

Read the individual information of the error using a peripheral device, and check the special function module /special function module dedicated instruction (network instruction) that corresponds to the value (program error part) to make modification.

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed/STOP RUN

[SP. UNIT ERROR] The module other than network module is specified bythe network dedicated instruction. ■Collateral information

  • Common Information:FFFF H (fixed)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed/STOP RUN

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH QnPRH · QnU · Flicker/On · Stop/ · Continue*1 · Qn(H) QnPH
Page 929 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/
Page 929 · click to enlarge
Page 929

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT ERROR] An instruction, which on execution specifies other stations, has been used for specifying the host CPU. (An instruction that does not allow the host CPU to be specified). ■Collateral information

Q00J/Q00/Q01 *3

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed/ STOP RUN

[SP. UNIT ERROR] An instruction, which on execution specifies the host CPU, has been used for specifying other CPUs. (An instruction that does not allow other stations to be specified). ■Collateral information

Q00J/Q00/Q01 *3

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing

Read the individual information of the error using the GX Developer, check the program corresponding that value (program error location), and make correction.

  • When instruction executed/ STOP RUN

[SP. UNIT ERROR]

  • An instruction that does not allow the under the control of another CPU to be specified is being used for a similar task.
  • Instruction was executed for the A or QnA module under control of another CPU.
  • Collateral information

RUN:

Off/On ERR.:

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing

CPU Status:

Q00J/Q00/

Q01 *3

  • When instruction executed/ STOP RUN

[SP. UNIT ERROR] A CPU module that cannot be specified in the instruction dedicated to the multiple CPU system was specified. ■Collateral information

  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • When instruction executed/ STOP RUN

[SP. UNIT ERROR] When the online module change setting is set to be “enabled” in the PLC parameter in a multiple CPU system, intelligent function module controlled by other CPU using the FROM instruction/intelligent

  • When performing the online module change in a multiple CPU system, correct the program so that access will not be made to the intelligent function module controlled by the other CPU.
  • When accessing the intelligent function module controlled by the other CPU in a multiple CPU system, set the online module change setting to be “disabled” by parameter.

function module device (U \ G) is specified.

  • Collateral information
  • Common Information:Module No. (Slot No.)
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

*3 The function version is B or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 15 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH · QnU · Qn(H)*3 · QnPH · Flicker/On · Stop/Continue · Qn(H)*3 · QnPH · QnU · Qn(H)*3 · QnPH · QnU*7
Page 930 of the Mitsubishi Electronics QCPU user manual — Q00UJ Q00U/Q01U
Page 930 · click to enlarge
Page 930

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY ERR.]

The locations of the Q5 B/Q6 B, QA1S6 B/

QA6 B, and QA6ADP+A5 B/A6 B are

improper. ■Collateral information

Q00J/Q00/Q01 *4

Check the location of the base unit.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.] The CPU module is installed to other than the CPU slot and slots 0 to 2. ■Collateral information

Check the loading position of the CPU module and reinstall it at the correct slot.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

The QA1S6 B/QA6 B and QA6ADP+A5 B/

A6 B are used for the main base unit.

  • Collateral information

Replace the main base unit with a usable one.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

RUN:

[SP. UNIT LAY ERR.]

Off ERR.:

  • A module is mounted on the 65th slot or later slot.
  • A module is mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • A module is mounted on the slot whose number of I/O points exceeds 4096 points.
  • A module is mounted on the slot whose number of I/O points strides 4096 points.
  • Collateral information
  • Remove the module mounted on the 65th slot or later slot.
  • Remove the module mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • Remove the module mounted on the slot whose number of I/O points exceeds 4096 points.
  • Replace the module with the one whose number of occupied points does not exceed 4096 points.

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • A module is mounted on after the 25th slot (on after the 17th slot for the Q00UJ).
  • A module is mounted on the slot whose number is later than the one set in the "Base setting" on the I/O assignment tab of PLC parameter in GX Developer.
  • A module is mounted on the slot for which I/O points greater than 1024 (greater than 256 for the Q00UJ) is assigned.
  • A module is mounted on the slot for which I/O points is assigned from less than 1024 to greater than 1024 (from less than 256 to greater than 256 for the Q00UJ).
  • Collateral information
  • Remove the module mounted on after the 25th (on after the 17th slot for the Q00UJ).
  • Remove the module mounted on the slot whose number is later than the one set in the "Base setting" on the I/O assignment tab of PLC parameter in GX Developer.
  • Remove the module mounted on the slot for which I/O points greater than 1024 (greater than 256 for the Q00UJ) is assigned.
  • Replace the end module with the one whose number of occupied points is within 1024 (within 256 for the Q00UJ).

Q00UJ Q00U/Q01U

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

*4 The function version is A. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH · Qn(H) QnPH · Qn(H) QnPH QnPRH · Flicker · Stop · Qn(H) QnPH QnPRH · QnU*7
Page 931 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 931 · click to enlarge
Page 931

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY ERR.]

  • A module is mounted on the 37th slot or later slot.
  • A module is mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • A module is mounted on the slot whose number of I/O points exceeds 2048 points.
  • A module is mounted on the slot whose number of I/O points strides 2048 points.
  • Collateral information
  • Remove the module mounted on the 37th slot or later slot.
  • Remove the module mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • Remove the module mounted on the slot whose number of I/O points exceeds 2048 points.
  • Replace the module with the one whose number of occupied points does not exceed 2048 points.

Q02U

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.]

  • A module is mounted on the 25th slot or later slot. (The 17th slot or later slot for the Q00J.)
  • A module is mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • A module is mounted on the slot whose number of I/O points exceeds 1024 points. (256 points for the Q00J.)
  • A module is mounted on the slot whose number of I/O points strides 1024 points. (256 points for the Q00J.)
  • Collateral information
  • Remove the module mounted on the 25th slot or later slot. (The 17th slot or later slot for the Q00J.)
  • Remove the module mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting.
  • Remove the module mounted on the slot whose number of I/O points exceeds 1024 points. (256 points for the Q00J.)
  • Replace the module with the one whose number of occupied points does not exceed 1024 points. (256 points for the Q00J.)

RUN:

Q00J/Q00/Q01

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY ERR.] 5 or more extension base units were added. (3 bases for Q00J) ■Collateral information

Remove 5 or more extension base units. (3 bases for Q00J) Q00J/Q00/Q01*4

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[SP. UNIT LAY. ERR.]

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • A module which the QCPU cannot recognise has been installed.
  • There was no response form the intelligent function module/special function module.
  • Collateral information
  • Install a usable module.
  • The intelligent function module/special function module is experiencing a hardware fault. (Contact your local Mitsubishi representative.)

QCPU

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*4 The function version is A.

Show 4 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop
Page 932 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 932 · click to enlarge
Page 932

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. UNIT LAY. ERR.] CPU module locations in a multiple CPU system are either of the following.

  • Mount modules on the available slots so that the empty slots will be located on the right-hand side of the CPU module.
  • Remove the module mounted on the left-hand side of the High Performance model QCPU/ Process CPU, and mount the High Performance model QCPU/Process CPU on the empty slot. Mount the motion CPU on the right-hand side of the High Performance model QCPU/Process CPU.
  • There are empty slots between the QCPU and QCPU/motion controller.
  • A module other than the High Performance model QCPU/Process CPU (including the motion controller) is mounted on the left-hand side of the High Performance model QCPU/Process CPU.
  • Collateral information
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[SP.UNIT LAY ERR.] The unusable module is mounted on the extension base unit in the redundant system. ■Collateral information

  • Remove the unusable module from the extension base unit. QnPRH *6
  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power-ON/ At reset

[SP. UNIT VER. ERR.] In a multiple CPU system, the control CPU of the intelligent function module incompatible with the multiple CPU system is set to other than CPU No.1. ■Collateral information

  • Change the intelligent function module for the one compatible with the multiple CPU system (function version B).
  • Change the setting of the control CPU of the intelligent function module incompatible with the multiple CPU system to CPU No.1.

CPU Status:

Q00J/Q00/Q01

  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ At writing to progurammable controller

[SP. UNIT VER. ERR.] Either of the following modules incompatible with the redundant system has been mounted in a redundant system.

  • CC-Link IE controller network modules
  • MELSECNET/H modules
  • Ethernet modules
  • Collateral information

Use either of the following modules compatible with the redundant system.

  • CC-Link IE controller network modules
  • MELSECNET/H modules
  • Ethernet modules
  • Common Information:Module No. (Slot No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ At writing to progurammable controller

*3 The function version is B or later. *6 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH · Flicker · Stop · QnPH · QuU*10 · QnPRH
Page 933 of the Mitsubishi Electronics QCPU user manual — [RESTORE ERROR]
Page 933 · click to enlarge
Page 933

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MISSING PARA.] There is no parameter file in the drive specified as valid parameter drive by the DIP switches. ■Collateral information

  • Check and correct the valid parameter drive settings made by the DIP switches.
  • Set the parameter file to the drive specified as valid parameter drive by the DIP switches.
  • Common Information:Drive Name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

[MISSING PARA.] There is no parameter file at the program memory. ■Collateral information

  • Common Information:Drive Name
  • Individual Information:–
  • Diagnostic Timing

Set the parameter file to the program memory. Q00J/Q00/Q01

  • At power ON/At reset/ STOP RUN

[MISSING PARA.] Parameter file does not exist in all drives where parameters will be valid. ■Collateral information

  • Common Information:Drive Name
  • Individual Information:–
  • Diagnostic Timing

Set a parameter file in a drive to be valid. QuU

RUN:

  • At power ON/At reset/ STOP RUN

Off ERR.:

[BOOT ERROR] The contents of the boot file are incorrect. ■Collateral information

Q00J/Q00/Q01 *3

  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing

Check the boot setting.

CPU Status:

  • At power ON/ At reset

[BOOT ERROR] File formatting is failed at a boot. ■Collateral information

  • Reboot.
  • CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[RESTORE ERROR]

  • The device information (number of points) backuped by the device data backup function is different from the number of device points of the PLC parameter. After this error occurred, perform restore per power-on/reset until the number of device points is identical to the number of device points in the PLC parameter, or until the backup data is deleted.
  • Collateral information

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • Set the number of device points at the time of backup to the device point setting in [PLC parameter]. Then, turn ON from OFF power supply, or reset the CPU and cancel reset.
  • Delete the backuped data, and turn ON from OFF power supply, or reset the CPU and cancel reset.
  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

*3 The function version is B or later.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Flicker · Qn(H) QnPH QnPRH · Stop · QnU · Qn(H) QnPRH · QnU · QnU
Page 934 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 934 · click to enlarge
Page 934

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[RESTORE ERROR]

  • The device information backuped by the device data backup function is incomplete. (Turning power supply OFF or reset is suspected.) Do not return the data when this error occurs. Also, delete the incomplete device information at the time of this error occurrence.
  • Collateral information

Reset the CPU module and run it again.

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[RESTORE ERROR] The model name of the restoration destination CPU module is different from the one of the backup source CPU module. ■Collateral information

Execute a restore for the CPU module whose name is same as the backup source CPU module.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power ON/ At reset

[RESTORE ERROR]

  • ·The backup data file is destroyed. (The content of the file is different from the check code.
  • Reading the backup data from the memory card is not successfully completed.
  • Since the write protect switch of the SRAM card is set to on (write inhibited), the checked "Restore for the first time only" setting cannot be performed.
  • Collateral information

CPU Status:

  • Execute a restore of other backup data because the backup data may be destructed.
  • Set the write protect switch of the SRAM card to off (write enabled).
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[RESTORE ERROR] Writing the backup data to the restoration destination drive is not successfully completed. ■Collateral information

Execute a restore for the other CPU module too because the CPU module may be damaged.

  • Common Information:File name/Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/ At reset

[ICM. OPE. ERROR]

  • A memory card was removed without switching the memory card in/out switch OFF.
  • The memory card in/out switch is turned ON although a memory card is not actually installed.
  • Collateral information

RUN:

Off/On ERR.:

  • Remove memory card after placing the memory card in/out switch OFF.
  • Turn on the card insert switch after inserting a memory card.
  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When memory card is inserted or removed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnU · Stop · Qn(H) QnPH QnPRH · Flicker/On · QnU*11 · Stop/ · Continue*1
Page 935 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 935 · click to enlarge
Page 935

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[ICM. OPE. ERROR]

  • The memory card has not been formatted.
  • Memory card format status is incorrect.
  • The QCPU file does not exist in the Flash card.
  • Collateral information
  • Format memory card.
  • Reformat memory card.
  • Write the QCPU file the Flash card
  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing
  • When memory card is inserted or removed/When memory card is inserted

[ICM. OPE. ERROR] SRAM card failure is detected. (It occurs when automatic format is not set.) Writing parameters was performed duruing setting file registers. ■Collateral information

RUN:

Off/On ERR.:

Format SRAM card after changing battery of SRAM card. Write a parameter, which set the file register at "Not available", in CPU, and then perform the ioperation.

CPU Status:

  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing
  • When memory card is inserted or removed/When memory card is inserted

[ICM. OPE. ERROR] A memory card that cannot be used with the CPU module has been installed. ■Collateral information

  • Format memory card.
  • Reformat memory card.
  • Check memory card.
  • Common Information:Drive name
  • Individual Information:–
  • Diagnostic Timing
  • When memory card is inserted or removed

[FILE SET ERROR] Automatic write to standard ROM was performed on the CPU module that is incompatible with automatic write to standard ROM. (Memory card where automatic write to standard ROM was selected in the boot file was fitted and the parameter enable drive was set to the memory card.) ■Collateral information

  • Execute automatic write to standard ROM on the CPU module which is compatible with automatic write to standard ROM.
  • Using GX Developer, perform write of parameters and programs to standard ROM.
  • Change the memory card for the one where automatic write to standard ROM has not been set, and perform boot operation from the memory card.

RUN:

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

Off ERR.:

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • At power ON/At reset/ At writing to progurammable controller

CPU Status:

[FILE SET ERROR] The file designated at the PLC file settings in the parameters cannot be found. ■Collateral information

  • Read the individual information of the error using peripheral device, check to be sure that the parameter drive name and file name correspond to the numerical values there (parameter number), and correct.
  • Create a file created using parameters, and load it to the CPU module.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

QCPU

  • At power ON/At reset/ At writing to progurammable controller

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later. *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Show 14 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU*11 · Flicker/On · QnU*11 · Stop/ · Continue*1 · Qn(H) QnPH QnPRH · QnU*11 · Qn(H)*3 · QnPH QnPRH · Flicker · Stop
Page 936 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 936 · click to enlarge
Page 936

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[FILE SET ERROR] Program memory capacity was exceeded by performing boot operation or automatic write to standard ROM. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • Check and correct the parameters (boot setting).
  • Delete unnecessary files in the program memory.
  • Choose "Clear program memory" for boot in the parameter so that boot is started after the program memory is cleared.
  • At power ON/At reset/ At writing to progurammable controller

[FILE SET ERROR] Program memory capacity was exceeded by performing boot operation. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/ At writing to progurammable controller

[FILE SET ERROR] The file specified by parameters cannot be made. ■Collateral information

RUN:

  • Read the individual information of the error using the peripheral device, check to be sure that the parameter drive name and file name correspond to the numerical values there (parameter number), and correct.
  • Check the space remaining in the memory card.

Off ERR.:

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

QCPU

CPU Status:

  • At power ON/At reset/ At writing to progurammable controller

[FILE SET ERROR]

  • Although setting is made to use the device data storage file, there is no empty capacity required for creating the device data storage file in the standard ROM.
  • When the latch data backup function (to standard ROM) is used, there is no empty capacity required for storing backup data in standard ROM. (The parameter number "FFFF H " is

Secure the empty capacity of the standard ROM. QnU

  • displayed for the error individual information.)
  • Standard RAM capacity is insufficient that error history of the module cannot be stored.
  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/ At writing to progurammable controller

[FILE OPE. ERROR]

  • The specified program does not exist in the program memory. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN, POFF or PLOW instruction is executed.
  • The specified file does not exist.
  • Collateral information
  • Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Create a file created using parameters, and load it to the CPU module.
  • In case a specified file does not exist, write the file to a target memory and/or check the file specified with the instruction again.

RUN:

Off/On ERR.:

CPU Status:

  • Common Information:File name/ Drive name
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *3 The function version is B or later.

Show 12 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · QnPH QnPRH · QnU · Flicker · Stop · Qn(H) QnPH QnPRH · Flicker/On · QnU · Stop/ · Continue*1
Page 937 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 937 · click to enlarge
Page 937

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[FILE OPE. ERROR]

  • The file is the one which cannot be specified by the sequence program (such as comment file).
  • The specified program exists in the program memory, but has not been registered in the program setting of the Parameter dialog box. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN or POFF instruction is executed.
  • Collateral information

Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct.

  • Common Information:File name/ Drive name
  • Individual Information:Program error location
  • Diagnostic Timing

RUN:

Off/On ERR.:

  • When instruction executed

[FILE OPE. ERROR] The SFC program file is one that cannot be designated by the sequence program. ■Collateral information

Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct.

CPU Status:

  • Common Information:File name/ Drive name
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

[FILE OPE. ERROR] No data has been written to the file designated by the sequence program. ■Collateral information

Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Check to ensure that the designated file has not been write protected.

  • Common Information:File name/ Drive name
  • Individual Information:Program error location
  • Diagnostic Timing
  • When instruction executed

[CAN'T EXE. PRG.]

  • There is a program file that uses a device that is out of the range set in the PLC parameter device setting.
  • After the PLC parameter setting is changed, only the parameter is written into the PLC.
  • Collateral information
  • Read the common information of the error using the peripheral device, check to be sure that the parameter device allocation setting and the program file device allocation correspond to the numerical values there (file name), and correct if necessary.
  • If PLC parameter device setting is changed, batch-write the parameter and program file into the PLC.

QCPU

RUN:

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing

Off ERR.:

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

  • At power ON/At reset/ STOP RUN

[CAN'T EXE. PRG.] After the index modification of the PLC parameter is changed, only the parameter is written to the PLC. ■Collateral information

CPU Status:

When the index modification of the PLC parameter is changed, batch-write the parameter and program file into the PLC.

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.)

Show 13 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker/On · Qn(H) QnPH QnPRH · Stop/ · Continue*1 · QnU · Qn(H) QnPH QnPRH · Flicker · Stop · QnU
Page 938 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 938 · click to enlarge
Page 938

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CAN'T EXE. PRG.] There are multiple program files although "none" has been set at the PLC parameter program settings. ■Collateral information

Edit the PLC parameter program setting to "yes". Alternatively, delete unneeded programs.

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

[CAN'T EXE. PRG.]

  • There are three or more program files.
  • The program name differs from the program contents.
  • Collateral information
  • Delete unnecessary program files.
  • Match the program name with the program contents.

Q00J/Q00/Q01

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

[CAN'T EXE. PRG.] The program file is incorrect. Alternatively, the file contents are not those of a sequence program. ■Collateral information

Check whether the program version

is .QPG, and check the file contents to be sure they are for a sequence program.

QCPU

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing

RUN:

  • At power ON/At reset/ STOP RUN

Off ERR.:

[CAN'T EXE. PRG.] The program file is not the one for the redundant CPU. ■Collateral information

Create a program using GX Developer or PX Developer for which the PLC type has been set to the redundant CPU (Q12PRH/Q25PRH), and write it to the CPU module.

CPU Status:

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

[CAN'T EXE. PRG.] There are no program files at all. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • At power ON/At reset/ STOP RUN
  • Check program configuration.
  • Check parameters and program configuration.

[CAN'T EXE. PRG.] Two or more SFC normal programs or control programs have been designated. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ STOP RUN

[CAN'T EXE. PRG.] There are two or more SFC programs. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:–
  • Diagnostic Timing

Reduce the SFC programs to one. Q00J/Q00/Q01*3

  • At power ON/At reset/ STOP RUN

*3 The function version is B or later.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker · QnPRH · Stop · Qn(H) QnPH QnPRH · QnU
Page 939 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 939 · click to enlarge
Page 939

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

Check for illegal accesses. If any illegal access is identified, take actions such as disabling communication of the connection. If no illegal access is identified, clear the error and perform the following. (Clearing the error also clears the count of remote password mismatches.)

[REMOTE PASS.FAIL] The count of remote password mismatches reached the upper limit. ■Collateral information

RUN:

ON ERR.:

ON

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Check if the remote password sent is correct.
  • Check if the remote password has been locked.
  • Check if concurrent access was made from multiple devices to one connection by UDP.
  • Check if the upper limit of the remote password mismatch count is too low.

CPU Status:

  • Always

[SNTP OPE.ERROR] Time setting failed when the programmable controller was powered ON or reset. ■Collateral information

RUN:

  • Check if the time setting function is set up correctly.
  • Check if the specified SNTP server is operating normally, or if any failure has occurred on the network connected to the specified SNTP server computer.

Off/ON ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When time setting function is executed

12.1 Error Code List 12.1.4 Error code list (2000 to 2999)

*8 This applies to the Built-in Ethernet port QCPU.

Show 6 more labels / short text on this page
Error Code (SD0) · Corresponding · Continue · QnU*8 · Flicker/ON · Stop/Continue
Page 940 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 940 · click to enlarge
Page 940

12.1.5 Error code list (3000 to 3999)

The following shows the error messages from the error code 3000 to 3999, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PARAMETER ERROR] In a multiple CPU system, the intelligent function module under control of another CPU is specified in the interrupt pointer setting of the PLC parameter. ■Collateral information

  • Specify the head I/O number of the intelligent function module under control of the host CPU.
  • Delete the interrupt pointer setting of the parameter.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/ At writing to progurammable controller

[PARAMETER ERROR] The PLC parameter settings for timer time limit setting, the RUN-PAUSE contact, the common pointer number, general data processing, number of empty slots, system interrupt settings, baud rate setting, and service processing setting are outside the range that can be used by the CPU module. ■Collateral information

QCPU

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] In a program memory check, the check capacity has not been set within the range applicable for the CPU module. ■Collateral information

RUN:

Off ERR.:

  • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it.
  • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module.
  • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] The parameter settings in the error individual information (special register SD16) are illegal. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

QCPU

  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] The ATA card is set to the memory card slot when the specified drive for the file register is set to “memory card (ROM)” and [Use the following file] or [Use the same file name as the program] (either one is allowed) is set in the PLC file setting. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

*1 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *10 The Universal model QCPU except the Q00UJCPU. *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*10 · Flicker · QnPH · QnPRH*5 · Stop · QnU*11
Page 941 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 941 · click to enlarge
Page 941

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

  • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it.
  • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module.
  • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)

[PARAMETER ERROR] The parameter settings are corrupted. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

QCPU

  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] When "Use the following file" is selected for the file register in the PLC file setting of the PLC parameter dialog box, the specified file does not exist although the file register capacity has been set. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/

RUN:

Off ERR.:

At writing to progurammable controller

[PARAMETER ERROR] When [Use the following file] is set for the file register in the PLC file setting of the PLC parameter dialog box and the capacity of file register is not set, the file register file does not exist in the specified target memory. ■Collateral information

  • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it.
  • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module.
  • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)

CPU Status:

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] When [Use the following file.] is set for the device data storage file in [PLC file] of [PLC parameter], and [Capacity] is not set, the device data storage file does not exist in the target memory. ■Collateral information

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN/

At writing to progurammable controller

*10 The Universal model QCPU except the Q00UJCPU.

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Flicker · Stop · QnU*10 · QnU
Page 942 of the Mitsubishi Electronics QCPU user manual — [PARAMETER ERROR]
Page 942 · click to enlarge
Page 942

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PARAMETER ERROR] The automatic refresh range of the multiple CPU system exceeded the file register capacity. ■Collateral information

Change the file register file for the one refresh- enabled in the whole range.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • When an END instruction executed

[PARAMETER ERROR] The number of devices set at the PLC parameter device settings exceeds the possible CPU module range. ■Collateral information

  • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it.
  • If the error is still generated following the correction of the parameter settings, the possible cause is the memory errorm of the CPU module's program memory or the memory card. (Contact your local Mitsubishi representative.)
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

QCPU

[PARAMETER ERROR] The parameter file is incorrect. Alternatively, the contents of the file are not parameters. ■Collateral information

Check whether the parameter file version

is .QPA, and check the file contents to be sure they are parameters.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

  • Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it.
  • Write the modified parameter items to the CPU module again, and power-on the Programmable Controller or reset the CPU module.
  • When the same error occurs again, the hardware is faulty. Contact your local Mitsubishi representative, explaining a detailed description of the problem.

CPU Status:

[PARAMETER ERROR] The contents of the parameter are broken. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

[PARAMETER ERROR]

  • Delete the setting of the Q02CPU' s high speed interrupt. To use high speed interrupts, change the CPU module to one of the Q02H/Q06H/ Q12H/Q25HCPU.
  • To use a multiple CPU system, delete the setting of the high-speed interrupt. To use high speed interrupts, change the system to a single CPU system.
  • The high speed interrupt is set in a Q02CPU.
  • The high speed interrupt is set in a multiple CPU system.
  • The high speed interrupt is set when aQA1S6 B

or QA6 B is used.

  • No module is installed at the I/O address designated by the high speed interrupt.
  • Collateral information
  • To use either the QA1S6 B or QA6 B, delete
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

the setting of the high speed interrupt. To use

high speed interrupts, do not use the QA1S6 B/

QA6 B.

  • At power-On/ At reset/ STOP RUN/
  • Re-examine the I/O address designated by the high speed interrupt setting.

At writing to progurammable controller

*1 The function version is B or later. *4 The module whose first 5 digits of serial No. is "04012" or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*10 · Flicker · Stop · Qn(H)*7 · QnPH*9 · QnPRH*9 · Qn(H)*4
Page 943 of the Mitsubishi Electronics QCPU user manual — Q00/Q01 *1
Page 943 · click to enlarge
Page 943

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PARAMETER ERROR] The parameter file in the drive specified as valid parameter drive by the DIP switches is inapplicable for the CPU module. ■Collateral information

Create parameters using GX Developer, and write them to the drive specified as valid parameter drive by the DIP switches.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] In a multiple CPU system, the modules for AnS, A, Q2AS and QnA have been set to multiple control CPUs. ■Collateral information

Re-set the parameter I/O assignment to control them under one CPU module. (Change the parameters of all CPUs in the multiple CPU system.)

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] The parameter-set number of CPU modules differs from the actual number in a multiple CPU system. ■Collateral information

CPU Status:

Match the number of (CPU modules in multiple CPU setting) - (CPUs set as empty in I/O assignment) with that of actually mounted CPU modules.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] Multiple CPU setting or control CPU setting differs from that of the reference CPU settings in a multiple CPU system. ■Collateral information

Q00/Q01 *1

Match the multiple CPU setting or control CPU setting in the PLC parameter with that of the reference CPU (CPU No.1) settings.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

At writing to progurammable controller

*1 The function version is B or later.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · QnPRH · Qn(H)*1 · Flicker · Stop · Qn(H)*1 · QnPH · Qn(H)*1 · QnU
Page 944 of the Mitsubishi Electronics QCPU user manual — [PARAMETER ERROR]
Page 944 · click to enlarge
Page 944

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PARAMETER ERROR] Multiple CPU auto refresh setting is any of the followings in a multiple CPU system.

  • When a bit device is specified as a refresh device, a number other than a multiple of 16 is specified for the refresh-starting device.
  • The device specified is other than the one that may be specified.
  • The number of send points is an odd number.
  • Collateral information

Check the following in the multiple CPU auto refresh setting and make correction.

  • When specifying the bit device, specify a multiple of 16 for the refresh starting device.
  • Specify the device that may be specified for the refresh device.
  • Set the number of send points to an even number.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] In a multiple CPU system, the multiple CPU auto refresh setting is any of the following.

  • The total number of transmission points is greater than the maximum number of refresh points.
  • Collateral information

Check the following in the multiple CPU auto refresh setting and make correction.

Q00/Q01 *1

  • The total number of transmission points is within the maximum number of refresh points.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

RUN:

[PARAMETER ERROR] In a multiple CPU system, the multiple CPU auto refresh setting is any of the following.

Off ERR.:

  • The device specified is other than the one that may be specified.
  • The number of send points is an odd number.
  • The total number of send points is greater than the maximum number of refresh points.
  • The setting of the refresh range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W).
  • Collateral information

Check the following in the multiple CPU auto refresh setting and make correction.

CPU Status:

  • Specify the device that may be specified for the refresh device.
  • Set the number of send points to an even number.
  • Set the total number of send points within the range of the maximum number of refresh points.
  • Set the refresh range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR]

  • In a multiple CPU system, the online module change parameter (multiple CPU system parameter) settings differ from those of the reference CPU.
  • In a multiple CPU system, the online module change setting is enabled although the CPU module mounted does not support online module chang parameter.
  • Collateral information
  • Match the online module change parameter with that of the reference CPU.
  • If the CPU module that does not support online module change is mounted, replace it with the CPU module that supports online module change.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller

*1 The function version is B or later. *8 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *10 The Universal model QCPU except the Q00UJCPU.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · Flicker · Stop · QnU*10 · Qn(H) QnPH · QnU*8
Page 945 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 945 · click to enlarge
Page 945

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PARAMETER ERROR] In a multiple CPU system configuration, the CPU verified is different from the one set in the parameter setting. ■Collateral information

Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No./CPU No.) and parameter of target CPU, and correct them.

  • Common Information:File name/ Drive name
  • Individual Information: Parameter number/CPU No.
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[PARAMETER ERROR] The CPU module incompatible with multiple CPU synchronized boot-up is set as the target for the synchronized boot-up in the [Multiple CPU synchronous startup setting]. ■Collateral information

Delete the CPU module incompatible with multiple CPU synchronized boot-up from the setting.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number/ CPU No.
  • Diagnostic Timing
  • At power ON/ At reset/ At writing to progurammable controller

[PARAMETER ERROR] The parameter file is damaged. ■Collateral information

With GX Developer, write [PLC parameter/Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.)

RUN:

Off ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

CPU Status:

[PARAMETER ERROR] Parameter file of intelligent function module is damaged. ■Collateral information

With GX Developer, write [Intelligent function module parameter] to a valid drive to write the parameters then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset
  • With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.)
  • When a valid drive for parameter is set to other than [program memory], set the parameter file (PARAM) at the boot file setting to be able to transmit to the program memory. With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.)

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

[PARAMETER ERROR] The system file that have stored the remote password setting information is damaged. ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

*5 The module whose first 5 digits of serial No. is "07032" or later. *8 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · QnU*8 · Flicker · Stop · Qn(H)*5 · QnPH*5 · QnPRH*5
Page 946 of the Mitsubishi Electronics QCPU user manual — [LINK PARA. ERROR]
Page 946 · click to enlarge
Page 946

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR] In a multiple CPU system, the CC-Link IE controller network module controlled by another CPU is specified as the head I/O number of the CC-Link IE controller network module. ■Collateral information

  • Delete the network parameter of the CC-Link IE controller network module controlled by another CPU.
  • Change the setting to the head I/O number of the CC-Link IE controller network module controlled by host CPU.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

[LINK PARA. ERROR] The network parameter of the CC-Link IE controller network operating as the normal station is overwritten to the control station. Or, the network parameter of the CC-Link IE controller network operating as the control station is overwritten to the normal station. (The network parameter is updated on the module by resetting.) ■Collateral information

Reset the CPU module.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

RUN:

[LINK PARA. ERROR]

Off ERR.:

  • The number of modules actually mounted is different from that is set in Network parameter for MELSECNET/H.
  • The head I/O number of the actually mounted module is different from the one set in the network parameter of the CC-Link IE controller network.
  • Data cannot be handled in the parameter exists.
  • The network type of CC-Link IE controller network is overwritten during power-on. (When changing the network type, switch RESET to RUN.)
  • Collateral information

CPU Status:

  • Check the network parameter and actual mounting status, and if they differ, make them matched. When network parameters are modified, write them to the CPU module.
  • Check the setting of extension base unit stage number.
  • Check the connection status of extension base unit and extension cable. When the GOT is busconnected to the main base unit or extension base unit, also check its connection status. If an error occurs even after performing the above checks, the hardware may be faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

[LINK PARA. ERROR]

  • The CC-Link IE controller network module is specified for the head I/O number of network parameter in the MELSECNET/H.
  • The MELSECNET/H module is specified for the head I/O number of network parameter in the CC-Link IE controller network.
  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

*7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later.

Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*7 · QnPH*9 · QnU · Flicker · Stop · Qn(H)*7 · QnPH*9 · QnPRH*9 · QnU
Page 947 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 947 · click to enlarge
Page 947

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR]

  • Check the network parameter and actual mounting status, and if they differ, make them matched. When network parameters are modified, write them to the CPU module.
  • Check the setting of extension base unit stage number.
  • Check the connection status of extension base unit and extension cable. When the GOT is busconnected to the main base unit or extension base unit, also check its connection status. If an error occurs even after performing the above checks, the hardware may be faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Although the CC-Link IE controller network module is mounted, network parameter for the CC-Link IE controller network module is not set.
  • Although the CC-Link IE controller network and MELSECNET/H modules are mounted, network parameter for the MELSECNET/H module is not set.
  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN

[LINK PARA. ERROR] In a multiple CPU system, the MELSECNET/H under control of another CPU is specified as the head I/O number in the network setting parameter of the MELSECNET/H. ■Collateral information

  • Delete the MELSECNET/H network parameter of the MELSECNET/H under control of another CPU.
  • Change the setting to the head I/O number of the MELSECNET/H under control of the host CPU.

Q00/Q01 *1

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The network parameter of the MELSECNET/H operating as the normal station is overwritten to the control station. Or, the network parameter of the MELSECNET/H operating as the control station is overwritten to the normal station. (The network parameter is updated on the module by resetting.) ■Collateral information

RUN:

Off ERR.:

CPU Status:

Reset the CPU module.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • Check the network parameters and actual mounting status, and if they differ, make them matched. If any network parameter has been corrected, write it to the CPU module.
  • Check the extension base unit stage No. setting.
  • Check the connection status of the extension base units and extension cables. When the GOT is bus-connected to the main base unit and extension base units, also check the connection status. If the error occurs after the above checks, the possible cause is a hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

  • The number of modules actually mounted is different from that is set in Network parameter for MELSECNET/H.
  • The head I/O number of actually installed modules is different from that designated in the network parameter of MELSECNET/H.
  • Some data in the parameters cannot be handled.
  • The network type of MELSECNET/H is overwritten during power-on. (When changing the network type, switch RESET to RUN.)

QCPU

  • The mode switch of MELSECNET/H module *5 is outside the range.
  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • Set the mode switch of MELSECNET/H module *5 within the range.
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 14 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*7 · QnPH*9 · QnPRH*9 · QnU · Qn(H)*1 · QnPH · QnU*10 · Flicker · Qn(H)*1 · QnPH QnPRH · Stop · QnU
Page 948 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 948 · click to enlarge
Page 948

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR] The link refresh range exceeded the file register capacity. ■Collateral information

Change the file register file for the one that enables entire range refresh.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • When an END instruction executed

[LINK PARA. ERROR]

  • When the station number of the MELSECNET/H module is 0, the PLC-to-PLC network parameter has been set.
  • When the station number of the MELSECNET/H module is other than 0, the remote master parameter setting has been made.
  • Collateral information

Correct the type or station number of the MELSECNET/H module in the network parameter to meet the used system.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The refresh parameter for the CC-Link IE controller network is outside the range. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

  • Check the network parameters and mounting status, and if they differ, match the network parameters and mounting status. If any network parameter has been corrected, write it to the CPU module.
  • Confirm the setting of the number of extension stages of the extension base units.
  • Check the connection status of the extension base units and extension cables. When the GOT is bus-connected to the main base unit and extension base units, also check their connection status. If the error occurs after the above checks, the cause is a hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

Off ERR.:

  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • The network No. specified by a network parameter is different from that of the actually mounted network.
  • The head I/O No. specified by a network parameter is different from that of the actually mounted I/O unit.
  • The network class specified by a network parameter is different from that of the actually mounted network.
  • The network refresh parameter of the MELSECNET/H, MELSECNET/10 is out of the specified area.
  • Collateral information

CPU Status:

QCPU

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] A multi-remote I/O network was configured using a module that does not support the MELSECNET/H multi-remote I/O network. ■Collateral information

Use a module that supports the MELSECNET/H multi-remote I/O network. QnPH

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 13 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH QnPRH · QnU*10 · Qn(H)*1 · QnPH QnPRH · Qn(H)*7 · QnPH*9 · QnPRH*9 · QnU · Flicker · Stop
Page 949 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 949 · click to enlarge
Page 949

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR]

  • The system A of the MELSECNET/H remote master station has been set to other than Station No. 0.
  • The system B of the MELSECNET/H remote master station has been set to Station No. 0.
  • Collateral information
  • Set the system A of the MELSECNET/H remote master station to Station No. 0.
  • Set the system B of the MELSECNET/H remote master station to any of Station No. 1 to 64.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] Since the number of points of the B/W device set in [Device] of the PLC parameter is lower than the number of B/W refresh device points shown in the following table when parameters of the MELSECNET/H are not set, the refresh between the CPU module and the MELSECNET/H cannot

be performed..

RUN:

No. of refresh device

No. of refresh device

points of B device

points of W device

Off ERR.:

1 8192 points (8192 points×1 module)

8192 points (8192 points×1 module)

Set the refresh parameter of the MELSECNET/H in accordance with the number of points of B/W devices set in [Device] of the PLC parameter.

2 8192 points (4096 points×2 modules)

8192 points (4096 points×2 modules)

No. of mountable

CPU Status:

3 6144 points (2048 points×3 modules)

6144 points (2048 points×3 modules)

4 8192 points (2048 points×4 modules)

8192 points (2048 points×4 modules)

  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The setting of the network refresh range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information

Set the network refresh range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*7 The module whose first 5 digits of serial No. is "09012" or later.

Show 13 more labels / short text on this page
Error Code (SD0) · Corresponding · QnPRH · Refresh · device · Qn(H)*7 · Flicker · QnPH*7 · QnPRH*7 · QnU · network modules · Stop · QnU
Page 950 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 950 · click to enlarge
Page 950

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR] A CC-Link IE controller network parameter error was detected. ■Collateral information

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN
  • Correct and write the network parameters.
  • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.)

[LINK PARA. ERROR]

  • The network module detected a network parameter error.
  • A MELSECNET/H network parameter error was detected.
  • Collateral information

QCPU

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The station No. specified in pairing setting are not correct.

  • The stations are not numbered consecutively.
  • Pairing setting has not been made for the CPU module at the normal station.
  • Collateral information

Refer to the troubleshooting of the network module, and if the error is due to incorrect pairing setting, reexamine the pairing setting of the network parameter.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The CC-Link IE controller network module whose first 5 digits of serial No. is "09041" or earlier is mounted. ■Collateral information

CPU Status:

Mount the CC-Link IE controller network module whose first 5 digits of serial No. is "09042" or later. QnU

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] Group cyclic function in CC-Link IE controller network that does not correspond to group cyclic function is set. ■Collateral information

Set group cyclic function in function version D or later of CC-Link IE controller network. QnU*9

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] Paring setting in CC-Link IE controller network modules installed in CPUs except for redundant CPUs was performed. ■Collateral information

Q00J/Q00/Q01

Examine the paring setting for the network parameter in the control staion.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*7 The module whose first 5 digits of serial No. is "09012" or later. *9 The module whose first 5 digits of serial No. is "10042" or later.

Show 12 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*7 · QnPH*9 · QnPRH*9 · QnU · QnPRH · Flicker · Stop · Qn(H)*9 · QnPH*9 · QnU*9
Page 951 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 951 · click to enlarge
Page 951

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR]

  • LB/LW own station send range at LB/LW4000 or later was set.
  • LB/LW setting (2) was performed.
  • Collateral information

Examine the network range assignments for the network parameter in the control station.

Q00J/Q00/Q01

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] In a multiple CPU system, Ethernet interface module under control of another station is specified to the start I/O number of the Ethernet network parameter. ■Collateral information

  • Delete the Ethernet network parameter of Ethernet interface module under control of another station.
  • Change the setting to the start I/O number of Ethernet interface module under control of the host station.

Q00/Q01 *1

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • Although the number of modules has been set to one or greater number in the Ethernet module count parameter setting, the number of actually mounted module is zero.
  • The start I/O No. of the Ethernet network parameter differs from the I/O No. of the actually mounted module.
  • Collateral information

QCPU

RUN:

Off ERR.:

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • Correct and write the network parameters.
  • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.)
  • At power ON/At reset/STOP RUN

CPU Status:

[LINK PARA. ERROR]

  • Ethernet module whose network type is set to “Ethernet (main base)” is mounted on the extension base unit in the redundant system.
  • Ethernet module whose network type is set to “Ethernet (extension base)” is mounted on the main base unit in the redundant system.
  • Collateral information

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • The Ethernet, MELSECNET/H and MELSECNET/10 use the same network number.
  • The network number, station number or group number set in the network parameter is out of range.
  • The specified I/O number is outside the range of the used CPU module.
  • The Ethernet-specific parameter setting is not normal.
  • Collateral information
  • Correct and write the network parameters.
  • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.)

QCPU

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*10 · Flicker · Stop · QnPRH*7
Page 952 of the Mitsubishi Electronics QCPU user manual — [LINK PARA. ERROR]
Page 952 · click to enlarge
Page 952

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR] In a multiple CPU system, the CC-Link module under control of another station is specified as the head I/O number of the CC-Link network parameter. ■Collateral information

Q00/Q01 *1

  • Delete the CC-Link network parameter of the CC-Link module under control of another station.
  • Change the setting to the start I/O number of the CC-Link module under control of the host station.
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • Though the number of CC-Link modules set in the network parameters is one or more, the number of actually mounted modules is zero.
  • The start I/O number in the common parameters is different from that of the actually mounted module.
  • The station type of the CC-Link module count setting parameters is different from that of the actually mounted station.
  • Collateral information

RUN:

Off ERR.:

QCPU

CPU Status:

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • Correct and write the network parameters.
  • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.)
  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • CC-Link module whose station type is set to “master station (compatible with redundant function)” is mounted on the extension base unit in the redundant system.
  • CC-Link module whose station type is set to “master station (extension base)” is mounted on the main base unit in the redundant system.
  • Collateral information
  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *7 The module whose first 5 digits of serial No. is "09012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*10 · Flicker · Stop · QnPRH*7
Page 953 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *1
Page 953 · click to enlarge
Page 953

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[LINK PARA. ERROR] The CC-Link link refresh range exceeded the file register capacity. ■Collateral information

Change the file register file for the one refresh- enabled in the whole range.

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • When an END instruction executed

[LINK PARA. ERROR] The network refresh parameter for CC-Link is out of range. ■Collateral information

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing

Check the parameter setting. QCPU

  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR] The setting of the network refresh range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information

Set the network refresh range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power ON/At reset/STOP RUN

[LINK PARA. ERROR]

  • The CC-Link parameter setting is incorrect.
  • The set mode is not allowed for the version of the mounted CC-Link module.
  • Collateral information

CPU Status:

Check the parameter setting. QCPU

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[SFC PARA. ERROR] The parameter setting is illegal.

  • Though Block 0 was set to "Automatic start" in the SFC setting of the PLC parameter dialog box, Block 0 does not exist.
  • Collateral information

Q00J/Q00/Q01 *1

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • STOP RUN

[SFC PARA. ERROR] The block parameter setting is illegal. ■Collateral information

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • STOP RUN

*1 The function version is B or later.

Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH QnPRH · QnU · QnU · Flicker · Stop · QnPH QnPRH · QnU · Qn(H) QnPH QnPRH
Page 954 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 954 · click to enlarge
Page 954

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SFC PARA. ERROR] The number of step relays specified in the device setting of the PLC parameter dialog box is less than that used in the program. ■Collateral information

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • STOP RUN

[SFC PARA. ERROR] The execution type of the SFC program specified in the program setting of the PLC parameter dialog box is other than scan execution. ■Collateral information

  • Common Information:File name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-ON/ At reset/ STOP RUN *3

[SP. PARA ERROR] The start I/O number in the intelligent function module parameter set on GX Configurator differs from the actual I/O number. ■Collateral information

  • Common Information:File name

Check the parameter setting. QCPU

  • Individual Information:Parameter number *2
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

RUN:

[SP. PARA ERROR]

Off ERR.:

  • The refresh setting of the intelligent function module exceeded the file register capacity.
  • The intelligent function module set in GX Configurator differs from the actually mounted module.
  • Collateral information

CPU Status:

Q00J/Q00/Q01

  • Change the file register file for the one which allows refresh in the whole range.
  • Check the parameter setting.
  • Common Information:File name
  • Individual Information:Parameter number *2
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[SP. PARA ERROR] The intelligent function module's refresh parameter setting is outside the available range. ■Collateral information

  • Common Information:File name

Check the parameter setting. QCPU

  • Individual Information:Parameter number *2
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[SP. PARA ERROR] The setting of the refresh parameter range crosses over the boundary between the internal user device and the extended data register (D) or extended link register (W). ■Collateral information

Set the refresh parameter range so that it does not cross over the boundary between the internal user device and the extended data register (D) or extended link register (W).

  • Common Information:File name
  • Individual Information:Parameter number *2
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

*1 The function version is B or later. *2 Parameter No. is the value gained by dividing the head I/O number of parameter in the intelligent function module set by GX Configurator by 10H. *3 The diagnostic timing of CPU modules except for Universal QCPU can be performed only when switching the CPU modules to run.

Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Qn(H) QnPH QnPRH · QnU · Flicker · Stop · Qn(H)*1 · QnPH QnPRH · QnU · QnU
Page 955 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *1
Page 955 · click to enlarge
Page 955

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SP. PARA ERROR] The intelligent function module's refresh parameter are abnormal. ■Collateral information

  • Common Information:File name

Check the parameter setting.

QCPU

  • Individual Information:Parameter number *2
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

[SP. PARA ERROR] In a multiple CPU system, the automatic refresh setting or other parameter setting was made to the intelligent function module under control of another station. ■Collateral information

  • Delete the automatic refresh setting or other parameter setting of the intelligent function module under control of another CPU.
  • Change the setting to the automatic refresh setting or other parameter setting of the intelligent function module under control of the host CPU.

Q00/Q01 *1

  • Common Information:File name/ Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power-On/ At reset/ STOP RUN/

At writing to progurammable controller

RUN:

[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 0FF0H. ■Collateral information

Off ERR.:

Change the head I/O number of the target module to be within the 0H to 0FF0H range.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset/STOP RUN

[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 07E0H. ■Collateral information

Change the head I/O number of the target module to be within the 0H to 07E0H range. Q02U

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is outside the following range.

12.1 Error Code List 12.1.5 Error code list (3000 to 3999)

Change the head I/O number of the target module of the remote password for the number within the following range.

  • Q00JCPU: 0 H to 1E0 H
  • Q00CPU/Q01CPU: 0 H to 3E0 H
  • Collateral information

Q00J/Q00/Q01 *1

  • Q00JCPU: 0 H to 1E0 H
  • Q00CPU/Q01CPU: 0 H to 3E0 H
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *2 Parameter No. is the value gained by dividing the head I/O number of parameter in the intelligent function module set by GX Configurator by 10H. *7 The module whose first 5 digits of serial No. is "09012" or later.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*10 · Qn(H)*1 · Flicker · QnPH QnPRH · QnU*7 · Stop
Page 956 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *1
Page 956 · click to enlarge
Page 956

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[REMOTE PASS. ERR.] Position specified as the head I/O number of the remote password file is incorrect due to one of the following reasons:

  • Module is not loaded.
  • Other than a the intelligent function module (I/O module)
  • Intelligent function module other than serial communication module, modem interface module or Ethernet module
  • Serial communication module or Ethernet module of function version A The intelligent function module where remote password is available is not mounted.
  • Collateral information

Mount serial communication module, modem interface module or Ethernet module of function version B or later in the position specified in the head I/O No. of the remote password file.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

RUN:

[REMOTE PASS. ERR.] Any of the following modules is not mounted on the slot specified for the head I/O number of the remote password.

Off ERR.:

Mount any of the following modules in the position specified for the head I/O number of the remote password.

  • Serial communication module of function version B or later
  • Ethernet module of function version B or later
  • Modem interface module of function version B or later
  • Collateral information

CPU Status:

  • Serial communication module of function version B or later
  • Ethernet module of function version B or later
  • Modem interface module of function version B or later

Q00J/Q00/Q01 *1

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[REMOTE PASS. ERR.] Serial communication module, modem interface module or Ethernet module of function version B or later controlled by another CPU was specified in a multiple CPU system. ■Collateral information

  • Change it for the Ethernet module of function version B or later connected by the host CPU.
  • Delete the remote password setting.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*1 The function version is B or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 10 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH QnPRH · QnU · Flicker · Stop · Qn(H)*1 · QnPH · QnU*10
Page 957 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 957 · click to enlarge
Page 957

12.1.6 Error code list (4000 to 4999)

The following shows the error messages from the error code 4000 to 4999, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[INSTRCT. CODE ERR]

  • The program contains an instruction code that cannot be decoded.
  • An unusable instruction is included in the program.
  • Collateral information

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[INSTRCT. CODE ERR] The program contains a dedicated instruction for SFC although it is not an SFC program. ■Collateral information

Q00J/Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[INSTRCT. CODE ERR]

  • The name of dedicated instruction specified by the program is incorrect.
  • The dedicated instruction specified by the program cannot be executed by the specified module.
  • Collateral information

RUN:

Off ERR.:

Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

  • At power ON/At reset/STOP RUN

[INSTRCT. CODE ERR] The number of devices for the dedicated instruction specified by the program is incorrect. ■Collateral information

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[INSTRCT. CODE ERR] The device which cannot be used by the dedicated instruction specified by the program is specified. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

*2 The function version is B or later.

Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · When instruction executed · Qn(H) QnPH QnPRH · QnU · When instruction executed · Flicker · Stop · When instruction executed · When instruction executed · When instruction executed
Page 958 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 958 · click to enlarge
Page 958

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MISSING END INS.] There is no END (FEND) instruction in the program. ■Collateral information

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[CAN'T SET(P)] The total number of internal file pointers used by the program exceeds the number of internal file pointers set in the parameters. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power ON/At reset/STOP RUN

[CAN'T SET(P)]

  • The common pointer Nos. assigned to files overlap.
  • The local pointer Nos. assigned to files overlap.
  • Collateral information

Read the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN QCPU

[CAN'T SET(I)] The allocation pointer Nos. assigned by files overlap. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/STOP RUN

[OPERATION ERROR] The instruction cannot process the contained data. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • When instruction executed

[OPERATION ERROR] Access error of ATA card occurs by SP.FREAD/SP.FWRITE instructions. ■Collateral information

  • Take measurements against noise.
  • Reset and restart the CPU module. When the same error is displayed again, the ATA card has hardware failure. (Please consult your local Mitsubishi service center or representative, explaining a detailed description of the problem.)

RUN:

Off/On ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[OPERATION ERROR] The file being accessed by other functions with SP.FWRITE instruction was accessed. ■Collateral information

  • Stop the file accessed with other functions to execute SP.FWRITE instruction.
  • Stop the access with othrer functions and the SP.FWRITE instructuion to execute at same time.
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *11 The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

Show 12 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker · Stop · Qn(H) QnPH QnPRH · Flicker/On · QnU*11 · Stop/ · Continue*1 · QnU*11
Page 959 of the Mitsubishi Electronics QCPU user manual — [OPERATION ERROR]
Page 959 · click to enlarge
Page 959

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[OPERATION ERROR]

  • The number of setting data dealt with the instruction exceeds the applicable range.
  • The storage data and constant of the device specified by the instruction exceeds the applicable range.
  • When writing to the host CPU shared memory, the write prohibited area is specified for the write destination address.
  • The range of storage data of the device specified by the instruction is duplicated.
  • The device specified by the instruction exceeds the range of the number of device points.
  • The interrupt pointer No. specified by the instruction exceeds the applicable range.
  • Collateral information

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off/On ERR.:

  • When instruction executed Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

[OPERATION ERROR]

  • The storage data of file register specified by the instruction exceeds the applicable range. Or, file register is not set.
  • Collateral information

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR]

  • The block data that crosses over the boundary between the internal user device and the extended data register (D) or extended link register is specified (including 32-bit binary, real number (single precision, double precision), indirect address, and control data)
  • Collateral information
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *10 The Universal model QCPU except the Q00UJCPU.

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker/On · Stop/ · Continue*1 · QnU*10 · QnU
Page 960 of the Mitsubishi Electronics QCPU user manual — Q02U
Page 960 · click to enlarge
Page 960

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[OPERATION ERROR] In a multiple CPU system, the link direct device

(J \ ) was specified for the network module

  • Delete from the program the link direct device which specifies the network module under control of another CPU.
  • Using the link direct device, specify the network module under control of the host CPU.

Q00/Q01 *2

under control of another station. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR]

  • The network No. or station No. specified for the dedicated instruction is wrong.
  • The link direct device (J \ ) setting is incorrect.
  • The module No./ network No./number of character strings exceeds the range that can be specified.
  • Collateral information

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR]

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • The specification of character string (" ") specified by dedicated instruction cannot be used for the character string.
  • Collateral information

RUN:

Off/On ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[OPERATION ERROR] The configuration of the PID dedicated instruction is incorrect. ■Collateral information

Q00J/Q00/

Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR] PLOADP/PUNLOADP/PSWAPP instructins were executed while setting program memory check. ■Collateral information

  • Delete the program memory check setting.
  • When using the program memory check, delete PLOADP/PUNLOADP/PSWAPP instructions.
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR] 33 or more multiple CPU dedicated instructions were executed from one CPU module. ■Collateral information

Q00/Q01 *2

Using the multiple CPU dedicated instruction completion bit, provide interlocks to prevent one CPU module from executing 33 or more multiple CPU dedicated instructions.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

Q02U

  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 14 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*2 · QnPH · QnU*10 · Flicker/On · QnU · Stop/ · Continue*1 · Qn(H) QnPRH · QnU · QnPH*5 · Qn(H)*2 · QnPH Q00U/Q01U
Page 961 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 961 · click to enlarge
Page 961

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[OPERATION ERROR] With high speed interrupt setting PR, PRC, UDCNT1, UDCNT2, PLSY or PWM instruction is executed. ■Collateral information

Delete the high-speed interrupt setting. When using high-speed interrupt, delete the PR, PRC, UDCNT1, UDCNT2, PLSY and PWM instructions.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR] An attempt was made to perform write/read to/from the CPU shared memory write/read disable area of the host station CPU module with the instruction. ■Collateral information

RUN:

Off/On ERR.:

Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).

  • When instruction executed

[OPERATION ERROR] The CPU module that cannot be specified with the multiple CPU dedicated instruction was specified. ■Collateral information

Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR]

  • When the SP.DEVST instruction is executed, the number of writing to the standard ROM of the day exceeds the value specified by SD695.
  • The value outside the specified range is set to SD695.
  • Collateral information
  • Check that the number of execution of the SP.DEVST instruction is proper.
  • Execute the SP.DEVST instruction again the following day or later day. Or, arrange the value of SD695.
  • Correct the value of SD695 so that it does not exceed the range.

RUN:

Off/On ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[OPERATION ERROR] Since the manual system switching enable flag (special register SM1592) is OFF, manual system switching cannot be executed by the control system switching instruction (SP. CONTSW). ■Collateral information

RUN:

Off/On ERR.:

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

To execute control system switching by the SP. CONTSW instruction, turn ON the manual system switching enable flag (special register SM1592).

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[OPERATION ERROR]

  • Reexamine the interlock signal for the SP. CONTSW instruction, and make sure that the SP. CONTSW instruction is executed in the control system only. (Since the SP. CONTSW instruction cannot be executed in the standby system, it is recommended to provide an interlock using the operation mode signal or like.)
  • As the SP. CONTSW instruction cannot be executed in the debug mode, reexamine the interlock signal related to the operation mode.
  • In the separate mode, the control system switching instruction (SP. CONTSW) was executed in the standby system CPU module.
  • In the debug mode, the control system switching instruction (SP. CONTSW) was executed.
  • Collateral information

RUN:

Off/On ERR.:

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later. *3 The module whose first 5 digits of serial No. is "04012" or later. *10 The Universal model QCPU except the Q00UJCPU.

Show 19 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*3 · Flicker/On · QnU · Stop/ · Continue*1 · QnU*10 · Flicker/On · QnU · Stop/Continue · Flicker/On · QnPRH · Stop/ · Continue*1 · Flicker/On · QnPRH · Stop/ · Continue*1
Page 962 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 962 · click to enlarge
Page 962

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[OPERATION ERROR]

  • The dedicated instruction was executed to the module mounted on the extension base unit in the redundant system.
  • The instruction for accessing the intelligent function module mounted on the extension base unit from the standby system at separate mode was executed.
  • Collateral information

RUN:

  • Delete the dedicated instruction for the module mounted on the extension base unit.
  • Delete the instruction for accessing the intelligent function module mounted on the extension base unit from the standby system.

Off/On ERR.:

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[OPERATION ERROR] Instructions to read SFC step comment (S(P).SFCSCOMR) and SFC transition condition comment (S(P).SFCTCOMR) are executed for the comment file in ATA card ■Collateral information

RUN:

Off/On ERR.:

Target comment file is to be other than the comment file in ATA card.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When END/other instruction executed

[OPERATION ERROR] The SFC program is started up by the instruction while the other SFC program has not yet been completed. ■Collateral information

RUN:

Off/On ERR.:

Check the SFC program specified by the instruction. Or, check the executing status of the SFC program.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[OPERATION ERROR] Operation where the input data is special value ("-0", unnormalized number, nonnumeric, ) is performed. ■Collateral information

Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it.

RUN:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

Off/On ERR.:

  • When instruction executed

[OPERATION ERROR] Overflow occurs at operation. ■Collateral information

CPU Status:

Read the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[FOR NEXT ERROR] No NEXT instruction was executed following the execution of a FOR instruction. Alternatively, there are fewer NEXT instructions than FOR instructions. ■Collateral information

RUN:

Off ERR.:

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *4 The module whose first 5 digits of serial No. is "07012" or later. *5 The module whose first 5 digits of serial No. is "07032" or later. *6 The module whose first 5 digits of serial No. is "09012" or later.

Show 19 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker/On · QnPRH*6 · Stop/Continue · Qn(H)*4 · Flicker/On · QnPH*5 · QnPRH · Stop/ · Continue*1 · Flicker/On · Stop/Continue · QnU 4140 · Flicker/On · Stop/ · Continue*1 · Flicker · Stop
Page 963 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 963 · click to enlarge
Page 963

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[FOR NEXT ERROR] A NEXT instruction was executed although no FOR instruction has been executed. Alternatively, there are more NEXT instructions than FOR instructions. ■Collateral information

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[FOR NEXT ERROR] More than 16 nesting levels are programmed. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

Keep nesting levels at 16 or under.

  • When instruction executed

[FOR NEXT ERROR] A BREAK instruction was executed although no FOR instruction has been executed prior to that. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

RUN:

[CAN'T EXECUTE(P)] The CALL instruction is executed, but there is no subroutine at the specified pointer. ■Collateral information

Off ERR.:

QCPU

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[CAN'T EXECUTE(P)] There was no RET instruction in the executed subroutine program. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

[CAN'T EXECUTE(P)] The RET instruction exists before the FEND instruction of the main routine program. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[CAN'T EXECUTE(P)] More than 16 nesting levels are programmed. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

Keep nesting levels at 16 or under.

  • When instruction executed
Show 4 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop
Page 964 of the Mitsubishi Electronics QCPU user manual — QCPU
Page 964 · click to enlarge
Page 964

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CAN'T EXECUTE(I)] Though an interrupt input occurred, the corresponding interrupt pointer does not exist. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[CAN'T EXECUTE(I)] An IRET instruction does not exist in the executed interrupt program. ■Collateral information

QCPU 4221

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

[CAN'T EXECUTE(I)] The IRET instruction exists before the FEND instruction of the main routine program. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[CAN'T EXECUTE(I)]

  • The IRET instruction was executed in the fixed scan execution type program.
  • The STOP instruction was executed in the fixed scan execution type program.
  • Collateral information

RUN:

Off ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[CAN'T EXECUTE(I)] The interrupt pointer for the module mounted on the extension base unit is set in the redundant system. ■Collateral information

Delete the setting of interrupt pointer for the module mounted on the extension base unit, since it cannot be used.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power-ON/At reset

[INST. FORMAT ERR.] The number of CHK and CHKEND instructions is not equal. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

[INST. FORMAT ERR.] The number of IX and IXEND instructions is not equal. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

QCPU

  • When instruction executed

*6 The module whose first 5 digits of serial No. is "09012" or later.

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · QnU · Flicker · Stop · QnPRH*6 · Qn(H) QnPH
Page 965 of the Mitsubishi Electronics QCPU user manual — [MULTI-COM.ERROR]
Page 965 · click to enlarge
Page 965

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[INST. FORMAT ERR.] The configuration of the check conditions for the CHK instruction is incorrect. Alternatively, a CHK instruction has been used in a low speed execution type program. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[MULTI-COM.ERROR]

  • The multiple CPU high-speed transmission dedicated instruction used in the program specifies the wrong CPU module. Or, the setting in the CPU module is incompatible with the multiple CPU high-speed transmission dedicated instruction.
  • The reserved CPU is specified.
  • The uninstalled CPU is specified.
  • The head I/O number of the target CPU/16 (n1) is outside the range of 3E H to 3E3 H .
  • The CPU module where the instruction cannot be executed is specified.
  • The instruction is executed in a single CPU system.
  • The host CPU is specified.
  • The instruction is executed without setting the "Use multiple CPU high speed communication".
  • Collateral information

RUN:

Off ERR.:

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed QnU *7

[MULTI-COM.ERROR]

  • The multiple CPU high-speed transmission dedicated instruction specified by the program cannot be executed to the specified target CPU module.
  • The instruction name is wrong.
  • The instruction unsupported by the target CPU module is specified.
  • Collateral information

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[MULTI-COM.ERROR] The number of devices for the multiple CPU high- speed transmission dedicated instruction specified by the program is wrong. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

*7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 5 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH · Flicker · Stop
Page 966 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *2
Page 966 · click to enlarge
Page 966

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MULTI-COM.ERROR] The device which cannot be used for the multiple CPU high-speed transmission dedicated instruction specified by the program is specified. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[MULTI-COM.ERROR] The character string which cannot be handled by the multiple CPU high-speed transmission dedicated instruction is specified. ■Collateral information

Read the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[MULTI-COM.ERROR] The number of read/write data (number of request/ receive data) for the multiple CPU high-speed transmission dedicated instruction specified by the program is not valid. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

RUN:

[SFCP. CODE ERROR] No SFCP or SFCPEND instruction in SFC program. ■Collateral information

Off ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • STOP RUN

[CAN'T SET(BL)] The block number designated by the SFC program exceeds the range. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

Write the program to the CPU module again using GX Developer.

[CAN'T SET(BL)] Block number designations overlap in SFC program. ■Collateral information

Q00J/Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[CAN'T SET(S)] A step number designated in an SFC program exceeds the range. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

*2 The function version is B or later. *7 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · QnU*7 · QnU*7 · Flicker · Qn(H) QnPH QnPRH · Stop · Qn(H) QnPH QnPRH · QnU
Page 967 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *2
Page 967 · click to enlarge
Page 967

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CAN'T SET(S)] Total number of steps in all SFC programs exceed the maximum. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

Q00J/Q00/Q01 *2

  • STOP RUN Write the program to the CPU module again using GX Developer.

[CAN'T SET(S)] Step number designations overlap in SFC program. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[CAN'T SET(S)] The total number of (maximum step No.+1) of each block exceeds the total number of step relays. ■Collateral information

Correct the total number of step relays so that it does not exceed the total number of (maximum step No.+1) of each block.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

  • STOP RUN

Off ERR.:

[SFC EXE. ERROR] The SFC program cannot be executed.

  • The data of the block data setting is illegal.
  • The SFC data device of the block data setting is beyond the device setting range set in the PLC parameter.
  • Collateral information
  • Write the program to the CPU module again using GX Developer.
  • After correcting the setting of the SFC data device, write it to the CPU module.
  • After correcting the device setting range set in the PLC parameter, write it to the CPU module.

CPU Status:

  • Common Information:File name/Drive name
  • Individual Information:–
  • Diagnostic Timing

Q00J/Q00/Q01 *2

  • STOP RUN

[SFC EXE. ERROR] The SFC program cannot be executed.

  • The block parameter setting is abnormal.
  • Collateral information

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

  • Common Information:File name/Drive name
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN Write the program to the CPU module again using GX Developer.

[SFC EXE. ERROR] The SFC program cannot be executed.

  • The structure of the SFC program is illegal.
  • Collateral information
  • Common Information:File name/Drive name
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

*2 The function version is B or later.

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker · Stop · QnU
Page 968 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *2
Page 968 · click to enlarge
Page 968

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SFCP. FORMAT ERR.] The numbers of BLOCK and BEND instructions in an SFC program are not equal. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[SFCP. FORMAT ERR.] The configuration of the STEP* to TRAN* to TSET to SEND instructions in the SFC program is incorrect. ■Collateral information

Write the program to the CPU module again using the peripheral device.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.

  • STEPI* instruction does not exist in the block of the SFC program.
  • Collateral information

RUN:

Off ERR.:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • STOP RUN

[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.

  • The step specified in the TSET instruction does not exist.
  • In jump transition, the host step number was specified as the destination step number.
  • Collateral information
  • Write the program to the CPU module again using GX Developer.
  • Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).

Q00J/Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.

  • The step specified in the TAND instruction does not exist.
  • Collateral information

Write the program to the CPU module again using GX Developer.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

*2 The function version is B or later.

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Flicker · Stop · Qn(H) QnPH QnPRH · QnU
Page 969 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 969 · click to enlarge
Page 969

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.

  • In the operation output of a step, the SET Sn/ BLmSn or RST Sn/BLmSn instruction was specified for the host step.
  • Collateral information
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).

  • STOP RUN

Q00J/Q00/Q01 *2

[SFCP. FORMAT ERR.] The structure of the SFC program is illegal.

CPU Status:

  • In a reset step, the host step number was specified as the destination step.
  • Collateral information
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[SFCP. OPE. ERROR] The SFC program contains data that cannot be processed. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

RUN:

[SFCP. OPE. ERROR] Exceeds device range that can be designated by the SFC program. ■Collateral information

Off/On ERR.:

Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

Qn(H) QnPH QnPRH 4601

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[SFCP. OPE. ERROR] The START instruction in an SFC program is preceded by an END instruction. ■Collateral information

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

*1 CPU operation can be set in the parameters at error occurrence. (LED indication varies.) *2 The function version is B or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnU · Stop · Flicker/On · Stop/ · Continue*1
Page 970 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01 *2
Page 970 · click to enlarge
Page 970

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[SFCP. EXE. ERROR] The active step information at presumptive start of the SFC program is incorrect. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. The program is automatically subjected to an initial start.

On ERR.:

  • STOP RUN

[SFCP. EXE. ERROR] Key-switch was reset during RUN when presumptive start was designated for SFC program. ■Collateral information

CPU Status:

Continue Qn(H) QnPH QnPRH 4611

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • STOP RUN

[BLOCK EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information

Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

[BLOCK EXE. ERROR] Startup was attempted at a block that does not exist in the SFC program. ■Collateral information

RUN:

  • Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location).
  • Turn ON if the special relay SM321 is OFF.

Off ERR.:

Q00J/Q00/Q01 *2

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • When instruction executed

[STEP EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information

Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

*2 The function version is B or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · On · Qn(H) QnPH QnPRH · Flicker · QnU · Stop · Qn(H) QnPH QnPRH
Page 971 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 971 · click to enlarge
Page 971

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[STEP EXE. ERROR]

  • Startup was attempted at the step that does not exist in the SFC program. Or, the step that does not exist in the SFC program was specified for end.
  • Forced transition was executed based on the transition condition that does not exit in the SFC program. Or, the transition condition for forced transition that does not exit in the SFC program was canceled.
  • Collateral information

Q00J/Q00/Q01 *2

  • Read the common information of the error using the peripheral device, and check and correct the error step corresponding to that value (program error location).
  • Turn ON if the special relay SM321 is OFF.
  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • When instruction executed

[STEP EXE. ERROR] There were too many simultaneous active steps in blocks that can be designated by the SFC program. ■Collateral information

CPU Status:

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed Read common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem.

[STEP EXE. ERROR] There were too many simultaneous active steps in all blocks that can be designated. ■Collateral information

  • Common Information:Program error location
  • Individual Information:–
  • Diagnostic Timing
  • When instruction executed

12.1 Error Code List 12.1.6 Error code list (4000 to 4999)

*2 The function version is B or later.

Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Flicker · Stop · Qn(H) QnPH QnPRH · QnU
Page 972 of the Mitsubishi Electronics QCPU user manual — [WDT ERROR]
Page 972 · click to enlarge
Page 972

12.1.7 Error code list (5000 to 5999)

The following shows the error messages from the error code 5000 to 5999, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[WDT ERROR]

  • The scan time of the initial execution type program exceeded the initial execution monitoring time specified in the PLC RAS setting of the PLC parameter.
  • Collateral information
  • Read the individual information of the error from the peripheral device, check its value (time), and shorten the scan time.
  • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter.
  • Resolve the endless loop caused by jump transition.
  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing
  • Always

[WDT ERROR]

  • The power supply of the standby system is turned OFF.
  • The tracking cable is disconnected or connected without turning off or resetting the standby system.
  • The tracking cable is not secured by the connector fixing screws.
  • Collateral information
  • Since power-off of the standby system increases the control system scan time, reset the WDT value, taking the increase of the control system scan time into consideration.
  • When the tracking cable is disconnected during operation, securely connect it and restart the CPU module. If the same error is displayed again, the tracking cable or CPU module has a hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing

RUN:

Off ERR.:

  • Always

[WDT ERROR]

  • The scan time of the program exceeded the WDT value specified in the PLC RAS setting of the PLC parameter.
  • Collateral information
  • Read the individual information of the error using the peripheral device, check its value (time), and shorten the scan time.
  • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter.
  • Resolve the endless loop caused by jump transition.

CPU Status:

QCPU

  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing
  • Always

[WDT ERROR]

  • The power supply of the standby system is turned OFF.
  • The tracking cable is disconnected or connected without turning off or resetting the standby system.
  • The tracking cable is not secured by the connector fixing screws.
  • Collateral information
  • Since power-off of the standby system increases the control system scan time, reset the WDT value, taking the increase of the control system scan time into consideration.
  • When the tracking cable is disconnected during operation, securely connect it and restart the CPU module. If the same error is displayed again, the tracking cable or CPU module has a hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing
  • Always
Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · QnPRH · Flicker · Stop · QnPRH
Page 973 of the Mitsubishi Electronics QCPU user manual — Q00J/Q00/Q01
Page 973 · click to enlarge
Page 973

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information

  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing
  • Review the constant scan setting time.
  • Review the constant scan setting time and low speed program execution time in the PLC parameter so that the excess time of constant scan can be fully secured.
  • Always

[PRG. TIME OVER] The low speed program execution time specified in the PLC RAS setting of the PLC parameter exceeded the excess time of the constant scan. ■Collateral information

  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing

RUN:

On ERR.:

  • Always

[PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information

CPU Status:

Review the constant scan setting time in the PLC parameter so that the excess time of constant scan can be fully secured.

  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing

Q00J/Q00/Q01

  • Always

[PRG. TIME OVER] The scan time of the low speed execution type program exceeded the low speed execution watch time specified in the PLC RAS setting of the PLC parameter dialog box. ■Collateral information

Read the individual information of the error using the peripheral device, check the numerical value (time) there, and shorten scan time if necessary. Change the low speed execution watch time in the PLC RAS setting of the PLC parameter dialog box.

  • Common Information:Time (value set)
  • Individual Information:Time (value actually measured)
  • Diagnostic Timing

12.1 Error Code List 12.1.7 Error code list (5000 to 5999)

  • Always
Show 8 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · QnU · Qn(H) QnPH QnPRH · On · Continue · Qn(H) QnPH
Page 974 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 974 · click to enlarge
Page 974

12.1.8 Error code list (6000 to 6999)

The following shows the error messages from the error code 6000 to 6999, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[FILE DIFF.] In a redundant system, the control system and standby system do not have the same programs and parameters.

  • Match the programs and parameters of the control system and standby system.
  • Verify the systems by either of the following procedures 1), 2) to clarify the differences between the files of the two systems, then correct a wrong file, and execute “Write to PLC“ again. 1) After reading the programs/parameters of System A using GX Developer or PX Developer, verify them with those of System B. 2) Verify the programs/parameters of GX Developer or PX Developer saved in the offline environment with those written to the CPU modules of both systems.
  • When the capacity of each write destination within the CPU for online change of multiple program blocks is different between the two systems, take corrective action 1) or 2). 1) Using the memory copy from control system to standby system, copy the program memory from the control system to the standby system. 2) Format the CPU module program memories of both systems. (For the capacity of each write destination within the CPU for online change of multiple program blocks, set the same value to both systems.)

The file type detected as different between the two systems can be checked by the file name of the error common information.

  • The program is different. (File name = ********.QPG)
  • The PLC parameters/network parameters/ redundant parameters are different. (File name = PARAM.QPA)
  • The remote password is different. (File name = PARAM.QPA)
  • The intelligent function module parameters are different. (File name = IPARAM.QPA)
  • The device initial values are different. (File name = ********.QDI)
  • The capacity of each write destination within the CPU for online pchange of multiple program blocks is different. (File name = MBOC.QMB) (This can be detected from the standby system of the redundant system.)
  • Collateral information

RUN:

Off ERR.:

CPU Status:

  • Common Information:File name
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/ At tracking cable connection/At changing to backup mode/At completion of write during RUN/ At system switching/At switching both systems into RUN

[FILE DIFF.] In a redundant system, the valid parameter drive settings (SW2, SW3) made by the DIP switches are not the same. ■Collateral information

Match the valid parameter drive settings (SW2, SW3) by the DIP switches of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/At tracking cable connection/At operation mode change
Show 5 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnPRH · Stop
Page 975 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 975 · click to enlarge
Page 975

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[OPE. MODE DIFF.] The operational status of the control system and standby system in the redundant system is not the same. (This can be detected from the standby system of the redundant system.) ■Collateral information

RUN:

On ERR.:

Synchronise the operation statuses of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

[OPE. MODE DIFF.] At power ON/reset, the RUN/STOP switch settings of the control system and standby system are not the same in a redundant system. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

Set the RUN/STOP switches of the control system and standby system to the same setting.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[UNIT LAY. DIFF.]

  • In a redundant system, the module configuration differs between the control system and standby system.
  • The network module mode setting differs between the two systems. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information

RUN:

  • Match the module configurations of the control system and standby system.
  • In the redundant setting of the network parameter dialog box, match the mode setting of System B to that of System A.

Off ERR.:

  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset/At tracking cable connection/At operation mode change

[UNIT LAY. DIFF.] In a redundant system, the CPU module model name differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information

12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

Match the model names of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/At tracking cable connection/At operation mode change
Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · On · Continue · QnPRH · Flicker · Stop
Page 976 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 976 · click to enlarge
Page 976

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[UNIT LAY. DIFF.] A difference in the remote I/O configuration of the MELSECNET/H multiplexed remote I/O network between the control system and standby system of a redundant system was detected. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

Check the network cables of the MELSECNET/H multiplexed remote I/O network for disconnection.

  • Common Information:Module No.
  • Individual Information:–
  • Diagnostic Timing
  • Always

RUN:

[CARD TYPE DIFF.] In a redundant system, the memory card installation status (installed/not installed) differs between the control system and standby system. ■Collateral information

Off ERR.:

Match the memory card installation statuses (set/ not set) of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[CARD TYPE DIFF.] In a redundant system, the memory card type differs between the control system and standby system. ■Collateral information

Match the memory card types of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[CAN'T EXE. MODE] The function inexecutable in the debug mode or operation mode (backup/separate mode) was executed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

RUN:

On ERR.:

Execute the function executable in the debug mode or operation mode (backup/separate mode).

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information

RUN:

Off ERR.:

Match the operation modes of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset/At tracking cable connection
Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop · QnPRH · On · Continue · Flicker · Stop
Page 977 of the Mitsubishi Electronics QCPU user manual — [TRK. TRANS. ERR.]
Page 977 · click to enlarge
Page 977

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information

Match the operation modes of the control system and standby system.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

RUN:

Off ERR.:

  • When an END instruction executed

[CPU MODE DIFF.] Both System A and B are in the same system status (control system). (This can be detected from the system B of the redundant system.) ■Collateral information

CPU Status:

Power the CPU module (System B) which resulted in a stop error, OFF and then ON.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset/At tracking cable connection

[TRK. TRANS. ERR.]

  • An error (e.g. retry limit exceeded) occurred in tracking data transmission. (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed.
  • Collateral information
  • Common Information:Tracking transmission data classification
  • Individual Information:–
  • Diagnostic Timing
  • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.

RUN:

On ERR.:

  • Always

[TRK. TRANS. ERR.]

  • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information

12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

CPU Status:

  • Common Information:Tracking transmission data classification
  • Individual Information:–
  • Diagnostic Timing
  • Always
Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop · QnPRH · On · Continue
Page 978 of the Mitsubishi Electronics QCPU user manual — [TRK. TRANS. ERR.]
Page 978 · click to enlarge
Page 978

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[TRK. TRANS. ERR.]

  • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information
  • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[TRK. TRANS. ERR.]

RUN:

  • An error (e.g. retry limit exceeded) occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information

On ERR.:

CPU Status:

  • Common Information:Tracking transmission data classification
  • Individual Information:–
  • Diagnostic Timing
  • Always

[TRK. TRANS. ERR.]

  • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information
  • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.
  • Common Information:Tracking transmission data classification
  • Individual Information:–
  • Diagnostic Timing
  • Always
Show 5 more labels / short text on this page
Error Code (SD0) · Corresponding · On · QnPRH · Continue
Page 979 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 979 · click to enlarge
Page 979

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always
  • Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.

[TRK. TRANS. ERR.]

  • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).)
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information
  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

RUN:

[TRK. SIZE ERROR] The tracking capacity exceeded the allowed range. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

On ERR.:

  • Common Information:Tracking capacity excess error factor
  • Individual Information:–
  • Diagnostic Timing

Reexamine the tracking capacity.

CPU Status:

  • When an END instruction executed

[TRK. SIZE ERROR] The control system does not have enough file register capacity for the file registers specified in the tracking settings. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information

12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed

[TRK. SIZE ERROR] File registers greater than those of the standby system were tracked and transmitted from the control system. (This can be detected from the standby system of the redundant system.) ■Collateral information

Switch to the file registers of which capacity is greater than the file registers specified in the tracking settings.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • When an END instruction executed
Show 5 more labels / short text on this page
Error Code (SD0) · Corresponding · On · QnPRH · Continue
Page 980 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 980 · click to enlarge
Page 980

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[TRK. CABLE ERR.]

  • A start was made without the tracking cable being connected.
  • A start was made with the tracking cable faulty.
  • As the tracking hardware on the CPU module side was faulty, communication with the other system could not be made via the tracking cable. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information

RUN:

Make a start after connecting the tracking cable. If the same error still occurs, this indicates the tracking cable or CPU module side tracking transmission hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[TRK. DISCONNECT]

  • The tracking cable was removed.
  • The tracking cable became faulty while the CPU module is running.
  • The CPU module side tracking hardware became faulty. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information
  • If the tracking cable was removed, connect the tracking cable to the connectors of the CPU modules of the two systems.
  • When the error is not resolved after connecting the tracking cable to the connectors of the CPU modules of the two systems and resetting the error, the tracking cable or CPU module side tracking hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

RUN:

On ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

[TRK.INIT. ERROR]

  • The other system did not respond during initial communication at power ON/reset.
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.)
  • Collateral information
  • Power the corresponding CPU module OFF and then ON again, or reset it and then unreset. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.

RUN:

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[CONTROL EXE.] The standby system has been switched to the control system in a redundant system. (Detected by the CPU that was switched from the standby system to the control system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information

RUN:

On ERR.:

CPU Status:

  • Common Information:Reason(s) for system switching
  • Individual Information:–
  • Diagnostic Timing
  • Always
Show 11 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop · On · Continue · QnPRH · Flicker · Stop · Off · No error
Page 981 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 981 · click to enlarge
Page 981

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[STANDBY] The control system has been switched to the standby system in a redundant system. (Detected by the CPU that was switched from the control system to the standby system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information

RUN:

On ERR.:

CPU Status:

  • Common Information:Reason(s) for system switching
  • Individual Information:–
  • Diagnostic Timing
  • Always

[CAN'T SWITCH] System switching cannot be executed due to standby system error/ tracking cable error/ online module change in execution at separate mode. Causes for switching system at control system are as follows:

RUN:

On ERR.:

  • Check the status of the standby system and resolve the error.
  • Complete the online module change.
  • System switching by SP. CONTSW instruction
  • System switching request from network module
  • Collateral information

CPU Status:

  • Common Information: Reason(s) for system switching
  • Individual Information: Reason(s) for system switching

failure ■Diagnostic Timing

  • At switching execution

[STANDBY SYS. DOWN] Any of the following errors was detected in the backup mode.

  • Check whether the standby system is on or not, and if it is not on, power it on.
  • Check whether the standby system has been reset or not, and if it has been reset, unreset it.
  • Check whether the standby system has developed a stop error or not, and if it has developed the error, remove the error factor and restart it.
  • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and standby system are combined correctly.
  • The standby system has not started up in the redundant system.
  • The standby system has developed a stop error in the redundant system.
  • The CPU module in the debug mode was connected to the operating control system. (This can be detected from the control system of the redundant system.)
  • Collateral information

RUN:

On ERR.:

12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always
Show 9 more labels / short text on this page
Error Code (SD0) · Corresponding · Off · No error · QnPRH 6220 · On · No error · On · Continue
Page 982 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 982 · click to enlarge
Page 982

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

  • The standby system exists but the control system does not exist.
  • Check whether the system other than the standby system is on or not, and if it is not on, power it on.
  • Check whether the system other than the standby system has been reset or not, and if it is has been reset, unreset it.
  • Check whether the system other than the standby system has developed a stop error or not, and if has developed the error, remove the error factor, set the control system and standby system to the same operating status, and restart.
  • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and control system are combined correctly.
  • Confirm the redundant system startup procedure, and execute a startup again.

[CONTROL SYS. DOWN] Any of the following errors was detected in the backup mode.

  • The control system has not started up in the redundant system.
  • The control system has developed a stop error in the redundant system.
  • The CPU module in the debug mode was connected to the operating standby system.
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.)
  • Collateral information

RUN:

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • Always

6311 [CONTROL SYS. DOWN]

  • As consistency check data has not transmitted from the control system in a redundant system, the other system cannot start as a standby system.
  • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.)
  • Collateral information
  • Replace the tracking cable. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)
  • Confirm the redundant system startup procedure, and execute a startup again.

RUN:

Off ERR.:

CPU Status:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[CONTROL SYS. DOWN] The control system detected the error of the system configuration and informed it to the standby system (host system) in the redundant system. ■Collateral information

RUN:

Off ERR.:

Restart the system after checking that the connection between base unit and the system configuration (type/number/parameter of module) are correct.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[PRG. MEM. CLEAR] The memory copy from control system to standby system was executed, and the program memory was cleared. ■Collateral information

RUN:

Off ERR.:

After the memory copy from control system to standby system is completed, switch power OFF and then ON, or make a reset.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At execution of the memory copy from control system to standby system
Show 13 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · Stop · QnPRH · Flicker · Stop · Flicker · QnPRH*1 · Stop · Flicker · QnPRH · Stop
Page 983 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 983 · click to enlarge
Page 983

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MEM.COPY EXE] The memory copy from control system to standby system was executed. (This can be detected from the control system of the redundant system.) ■Collateral information

RUN:

On ERR.:

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At execution of the function of copying memory from control system to standby system

[TRK. PARA. ERROR] The file register file specified in the tracking setting of the PLC parameter dialog box does not exist. ■Collateral information

Read the individual information of the error using GX Developer, and check and correct the drive name and file name. Create the specified file.

  • Common Information:File name/Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing

RUN:

Off ERR.:

  • At power ON/At reset

[TRK. PARA. ERROR] The file register range specified in the device detail setting of the tracking setting of the PLC parameter dialog box exceeded the specified file register file capacity. ■Collateral information

CPU Status:

Read the individual information of the error using GX Developer, and increase the file register capacity.

  • Common Information:File name/Drive name
  • Individual Information:Parameter number
  • Diagnostic Timing
  • At power ON/At reset

12.1 Error Code List 12.1.8 Error code list (6000 to 6999)

Show 7 more labels / short text on this page
Error Code (SD0) · Corresponding · On · Continue · QnPRH 6500 · Flicker · Stop 6501
Page 984 of the Mitsubishi Electronics QCPU user manual — Q00/Q01 *1
Page 984 · click to enlarge
Page 984

12.1.9 Error code list (7000 to 10000)

The following shows the error messages from the error code 7000 to 10000, the contents and causes of the errors, and the corrective actions for the errors.

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MULTI CPU DOWN]

  • In the operating mode of a multiple CPU system, a CPU error occurred at the CPU where "All station stop by stop error of CPU " was selected.
  • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted.
  • CPU modules other than CPU No.1 were removed from the base unit in operation, or reset.
  • Collateral information
  • Read the individual information of the error using GX Developer, identify the error of the CPU module, and remove the error.
  • Remove the CPU module incompatible with the multiple CPU system from the main base unit.
  • Check the mounting status of CPU modules other than CPU No.1 and whether the CPU modules were reset.

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • Always

[MULTI CPU DOWN] In a multiple CPU system, CPU other than CPU No.1 cannot be started up due to stop error of the CPU No.1 at power-on, which occurs to CPU No.2 to No.4. ■Collateral information

Q00/Q01 *1

Read the individual information of the error using GX Developer, identify the error of the CPU module, and remove the error.

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

RUN:

[MULTI CPU DOWN]

Off ERR.:

  • There is no response from the target CPU module in a multiple CPU system during initial communication.
  • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted.
  • Collateral information
  • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.)
  • Remove the CPU module incompatible with the multiple CPU system from the main base unit. Or, replace the CPU module incompatible with the multiple CPU system with the compatible one.

CPU Status:

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[MULTI CPU DOWN]

  • There is no response from the target CPU module in a multiple CPU system during initial communication.
  • Collateral information
  • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.)
  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[MULTI CPU DOWN] There is no response from the target CPU module in a multiple CPU system at initial communication stage. ■Collateral information

Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.)

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

*1 The function version is B or later. *6 The Universal model QCPU except the Q00UJCPU.

Show 15 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H)*1 · QnPH · QnU*6 · Qn(H)*1 · QnPH · QnU*6 · Flicker · Stop · Qn(H)*1 · QnPH · QnU*6 · Qn(H)*1 · QnPH
Page 985 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 985 · click to enlarge
Page 985

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MULTI CPU DOWN] In a multiple CPU system, a data error occurred in communication between the CPU modules. ■Collateral information

  • Check the system configuration to see if modules are mounted in excess of the number of I/O points.
  • When there are no problems in the system configuration, this indicates the CPU module hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.)

RUN:

Off ERR.:

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

[MULTI EXE. ERROR]

  • In a multiple CPU system, a faulty CPU module was mounted.
  • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. (The CPU module compatible with the multiple CPU system was used to detect an error.)
  • In a multiple CPU system, any of the CPU No. 2 to 4 was reset with power ON. (The CPU whose reset state was cancelled was used to detect an error.)
  • Collateral information
  • Read the individual information of the error using GX Developer, and replace the faulty CPU module.
  • Replace the CPU module with the one compatible with the multiple CPU system.
  • Do not reset any of the No. 2 to 4 CPU modules.
  • Reset CPU No. 1 and restart the multiple CPU system.

RUN:

Off ERR.:

Q00/Q01 *1

CPU Status:

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[MULTI EXE. ERROR] The PC CPU module-compatible software package

RUN:

(PPC-DRV-01)*5 whose version is 1.06 or earlier is used in a multiple CPU system. ■Collateral information

Off ERR.:

Change the version of the PC CPU module- compatible software package (PPC-DRV-01)*5 to 1.07 or later.

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted on the multiple CPU high-speed main

RUN:

Off ERR.:

base unit (Q3 DB). (This may result in a module

Replace the Q172(H)CPU(N) and Q173(H)CPU(N) with the Motion CPU compatible with the multiple CPU high-speed main base unit.

failure.) ■Collateral information

12.1 Error Code List 12.1.9 Error code list (7000 to 10000)

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

QnPH*4 [MULTI EXE. ERROR] The Universal model QCPU (except Q02UCPU) and Q172(H)CPU(N) are mounted on the same base unit. (This may result in a module failure.) ■Collateral information

RUN:

Off ERR.:

Check the QCPU and Motion CPU that can be used in a multiple CPU system, and change the system configuration.

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

*1 The function version is B or later. *4 The module whose first 5 digits of serial No. is "09082" or later. *6 The Universal model QCPU except the Q00UJCPU.

Show 17 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnU*6 · Stop · Qn(H)*1 · Flicker · QnPH · QnU*6 · Stop · Flicker · Stop · Flicker · Stop · Qn(H)*4 · Flicker · Stop
Page 986 of the Mitsubishi Electronics QCPU user manual — Q00J/Q01/Q01 *1
Page 986 · click to enlarge
Page 986

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[MULTI EXE. ERROR] Either of the following settings was made in a multiple CPU system.

  • Multiple CPU automatic refresh setting was made for the inapplicable CPU module.
  • "I/O sharing when using multiple CPUs" setting was made for the inapplicable CPU module.
  • Collateral information

RUN:

Off ERR.:

  • Correct the multiple CPU automatic refresh setting.
  • Correct the "I/O sharing when using multiple CPUs" setting.

Q00/Q01 *1

CPU Status:

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[MULTI EXE. ERROR] The system configuration for using the Multiple CPU high speed transmission function is not met.

  • The QnUCPU is not used for the CPU No.1.
  • The Multiple CPU high speed main base unit

(Q3 DB) is not used.

  • Change the system configuration to meet the conditions for using the Multiple CPU high speed transmission function.
  • Set the send range of CPU, that does not correspond to multiple CPU compatible area, at 0 point, when performing automatic refreshing in multiple CPU compatible area.

RUN:

Off ERR.:

  • Points other than 0 is set to the send range for the CPU module incompatible with the multiple CPU high speed transmission function.
  • Points other than 0 is set to the send range for the CPU module incompatible with the multiple CPU.
  • Collateral information

CPU Status:

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing
  • At power ON/At reset

[MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted to the CPU slot or slots 0 to 2. (The module may break down.) ■Collateral information

RUN:

  • Check the QCPU and Motion CPU that can be used in a multiple CPU system, and change the system configuration.
  • Remove the Motion CPU incompatible with the multiple CPU system.

Off ERR.:

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[MULTI CPU ERROR] In the operating mode of a multiple CPU system, an error occurred in the CPU where "system stop" was not selected. (The CPU module where no error occurred was used to detect an error.) ■Collateral information

RUN:

On ERR.:

Read the individual information of the error using the peripheral device, check the error of the CPU module resulting in CPU module fault, and remove the error.

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

[CPU LAY. ERROR] An assignment error occurred in the CPU- mountable slot (CPU slot, I/O slot 0, 1) in excess of the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information

  • Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)).
  • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration.

RUN:

Off ERR.:

Q00J/Q01/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

*1 The function version is B or later. *3 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *6 The Universal model QCPU except the Q00UJCPU.

Show 19 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnU*6 · Stop · Flicker · QnU*3 · Stop · Flicker · QnU · Stop · Qn(H)*1 · On · QnPH · QnU*6 · Continue · Flicker · QnU · Stop
Page 987 of the Mitsubishi Electronics QCPU user manual — RUN: ERR.:
Page 987 · click to enlarge
Page 987

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

[CPU LAY. ERROR] An assignment error occurred within the range of the number of CPUs specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information

  • Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)).
  • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration.

RUN:

Off ERR.:

Q00J/Q01/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[CPU LAY. ERROR]

RUN:

  • The number of CPU modules mounted in a multiple CPU system is wrong.
  • Collateral information

Off ERR.:

Configure a system so that the number of mountable modules of each CPU module does not exceed the maximum number of mountable modules specified in the specification.

Q00/Q01 *1

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[CPU LAY. ERROR] The CPU module has been mounted on the inapplicable slot. ■Collateral information

RUN:

Off ERR.:

Q00J/Q00/Q01 *1

Mount the CPU module on the applicable slot.

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[CPU RAY ERROR] The host CPU No. set by the multiple CPU setting and the host CPU No. determined by the mounting position of the CPU module are not the same. ■Collateral information

RUN:

  • Mount the mounting slot of the CPU module correctly.
  • Correct the host CPU No. set by the multiple CPU setting to the CPU No. determined by the mounting position of the CPU module.

Off ERR.:

  • Common Information:Module No.(CPU No.)
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[INCORRECT FILE] The error of stored file (enabled parameter file) is detected. ■Collateral information

Write the file shown as SD17 to SD22 of individual information to the drive shown as SD16(L) of individual information, and turn ON from OFF the power supply of the CPU module or cancel the reset. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem.

RUN:

Off ERR.:

  • Common Information:–
  • Individual Information:File diagnostic information
  • Diagnostic Timing
  • At power-On/
  • At reset/
  • STOP RUN/At writing to progurammable controller

CPU Status:

12.1 Error Code List 12.1.9 Error code list (7000 to 10000)

RUN:

On ERR.:

[F**** ] Annunciator (F) was set ON ■Collateral information

Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (annunciator number).

CPU Status:

  • Common Information:Program error location
  • Individual Information:Annunciator number
  • Diagnostic Timing

RUN: ERR.:

  • When instruction executed

CPU Status:

*1 The function version is B or later. *3 The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

Show 22 more labels / short text on this page
Error Code (SD0) · Corresponding · Flicker · QnU · Stop · Flicker · QnU*6 · Stop · Flicker · QnPRH · QnU · Stop · Flicker · QnU*3 · Stop · Flicker · QnU · Stop · On/Off *2 · Continue QCPU · USER LED On · Continue
Page 988 of the Mitsubishi Electronics QCPU user manual — RUN:
Page 988 · click to enlarge
Page 988

Error Contents and Cause Corrective Action LED Status CPU Status

CPU

RUN:

[<CHK>ERR ***-***] Error detected by the CHK instruction. ■Collateral information

On ERR.:

Read the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (error number) there.

  • Common Information:Program error location
  • Individual Information:Failure No.
  • Diagnostic Timing

Off USER LED On

  • When instruction executed

CPU Status:

[BOOT OK] Storage of data onto ROM was completed normally in automatic write to standard ROM. (BOOT LED also flickers.) ■Collateral information

RUN:

Off ERR.:

Use the DIP switches to set the valid parameter drive to the standard ROM. Then, switch power on again, and perform boot operation from the standard ROM.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • At power ON/At reset

[CONT. UNIT ERROR] In the multiple CPU system, an error occurred in the CPU module other than the Process CPU/High Performance model QCPU. ■Collateral information

RUN:

Off ERR.:

Check the details of the generated error by connecting to the corresponding CPU module using GX Developer.

  • Common Information:–
  • Individual Information:–
  • Diagnostic Timing

CPU Status:

  • Always

*1 The function version is B or later.

Show 12 more labels / short text on this page
Error Code (SD0) · Corresponding · Qn(H) QnPH QnPRH · Continue · Qn(H)*1 · Flicker · QnPH QnPRH · Stop · Qn(H)*1 · Flicker · QnPH · Continue
Page 989 of the Mitsubishi Electronics QCPU user manual — 12.2 Canceling of Errors
Page 989 · click to enlarge
Page 989

12.2 Canceling of Errors

Q series CPU module can perform the cancel operation for errors only when the errors allow the CPU module to continue its operation. To cancel the errors, follow the steps shown below.

1) Eliminate the cause of the error. 2) Store the error code to be canceled in the special register SD50. 3) Energize the special relay SM50 (OFF ON). 4) The error to be canceled is canceled. After the CPU module is reset by the canceling of the error, the special relays, special registers, and LEDs associated with the error are returned to the status under which the error occurred. If the same error occurs again after the cancellation of the error, it will be registered again in the error history.

When multiple enunciators(F) detected are canceled, the first one with No. F only is canceled.

Refer to the following manual for details of error canceling.

QCPU User's Manual (Function Explanation, Program Fundamentals)

(1) When the error is canceled with the error code to be canceled stored in the

SD50, the lower one digit of the code is neglected. (Example) If error codes 2100 and 2101 occur, and error code 2100 to cancel error code 2101. If error codes 2100 and 2111 occur, error code 2111 is not canceled even if error code 2100 is canceled. (2) Errors developed due to trouble in other than the CPU module are not

12.2 Canceling of Errors

canceled even if the special relay (SM50) and special register (SD50) are used to cancel the error. (Example) Since "SP. UNIT DOWN" is the error that occurred in the base unit (including the extension cable), intelligent function module, etc. the error cause cannot be removed even if the error is canceled by the special relay (SM50) and special register (SD50). Refer to the error code list and remove the error cause.

Page 990 of the Mitsubishi Electronics QCPU user manual — MEMO
Page 990 · click to enlarge
Page 990

MEMO

Page 991 of the Mitsubishi Electronics QCPU user manual — App-1
Page 991 · click to enlarge
Page 991

A

APPENDICES

A

App-1

Page 992 of the Mitsubishi Electronics QCPU user manual — App-2
Page 992 · click to enlarge
Page 992

Appendix 1 OPERATION PROCESSING TIME

Appendix 1.1 Definition

(1) Processing time taken by the QCPU is the total of the following processing times.

  • Total of each instruction processing time
  • END processing time (including I/O refresh time)
  • Processing time for the function that increases the scan time

(2) Instruction processing time

This is the total of processing time of each instruction shown in Appendix 1.2, 1.3 and 1.4.

(3) END processing time, I/O refresh time, and processing time for the function that increases

Refer to the following manual(s) for the END processing time, I/O refresh time, and processing time for the function that increases the scan time.

  • QnUCPU User's Manual (Functions Explanation, Program Fundamentals)
  • Qn(H)/QnPH/QnPRHCPU User's Manual

(Functions Explanation, Program Fundamentals)

App-2

the scan time · (a) For QCPUs

Page 993 of the Mitsubishi Electronics QCPU user manual — (ON OFF)
Page 993 · click to enlarge
Page 993

Appendix 1.2 Operation Processing Time of Basic Model

QCPU

The processing time for the individual instructions are shown in the table on the following pages.

Operation processing times can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing time rather than as being strictly accurate.

Q00JCPU Q00CPU Q01CPU

LD

A

LDI

X0 0.20 0.16 0.10

AND

ANI

OR

ORI

LDP

LDF

ANDP

0.30 0.24 0.15

ANDF

ORP

ORF

ANB

ORB

MPS

–– 0.20 0.16 0.10

MRD

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

MPP

INV

0.20 0.16 0.10 When executed

MEP

0.30 0.24 0.15 When executed

MEF

When not executed (OFF OFF)

(ON ON)

EGP

0.20 0.16 0.10

When executed (OFF ON)

(ON OFF)

When not executed (OFF OFF)

17 9.5 9.4

(ON ON)

EGF

When executed (OFF ON)

(ON OFF)

App-3

Show 6 more labels / short text on this page
(1) Sequence instructions · Processing Time (µs) · Instruction Condition (Device) · When not executed · When not executed · 18 14 14
Page 994 of the Mitsubishi Electronics QCPU user manual — App-4
Page 994 · click to enlarge
Page 994
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 994)
Fig. 1382 · Appendix 1.2 Operation Processing Time of Basic Mode…

App-4

Page 995 of the Mitsubishi Electronics QCPU user manual — App-5
Page 995 · click to enlarge
Page 995

Q00JCPU Q00CPU Q01CPU

PLS 12 9.5 9.2

PLF 11 9.5 8.9

When not executed 0.68 0.40 0.25

FF Y

When executed 7.5 6.2 5.7

When not executed 0.50 0.40 0.25

DELTA DY0

When executed 26 21 21

When not executed 0.48 0.40 0.25

DELTAP DY0

When executed 58 45 43

SFT

When not executed 0.50 0.34 0.25

SFTP

When executed 12 8.7 8.3

M0 0.40 0.32 0.20

MC

A

MCR –– 0.20 0.16 0.10

Error check performed 660 600 520

No error check performed

FEND

END

(• Fuse blown check)

(• I/O module verification)

NOP –– 0.20 0.16 0.10

NOPLF

–– 0.20 0.16 0.10

PAGE

The processing time when the instruction is not executed is calculated as follows: Q00JCPU 0.20 (No. of steps for each instruction + 1) µs Q00CPU 0.16 (No. of steps for each instruction + 1) µs Q01CPU 0.10 (No. of steps for each instruction + 1) µs

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

Q00JCPU Q00CPU Q01CPU

In conductive status 0.80 0.64 0.40

LD =

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

OR =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 0.80 0.64 0.40

LD < >

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND < >

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

App-5

Show 10 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · (• Battery check) · 660 600 520 · (2) Basic instructions · Processing Time (µs) · Instruction Condition (Device) · When executed · When executed · When executed
Page 996 of the Mitsubishi Electronics QCPU user manual — App-6
Page 996 · click to enlarge
Page 996

Q00JCPU Q00CPU Q01CPU

When not executed 0.70 0.56 0.35

OR < >

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 0.80 0.64 0.40

LD >

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND >

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

OR >

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 0.80 0.64 0.40

LD < =

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND < =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

OR < =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 0.80 0.64 0.40

LD <

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND <

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

OR <

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 0.80 0.64 0.40

LD > =

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

AND > =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

When not executed 0.70 0.56 0.35

OR > =

In conductive status 0.80 0.64 0.40

In non-conductive status 0.80 0.64 0.40

In conductive status 1.0 0.80 0.50

LDD =

In non-conductive status 1.0 0.80 0.50

When not executed 0.80 0.64 0.40

ANDD =

In conductive status 1.0 0.80 0.50

In non-conductive status 1.0 0.80 0.50

When not executed 0.80 0.64 0.40

ORD =

In conductive status 1.0 0.80 0.50

In non-conductive status 1.0 0.80 0.50

In conductive status 1.0 0.80 0.50

LDD < >

In non-conductive status 1.0 0.80 0.50

When not executed 0.80 0.64 0.40

ANDD < >

In conductive status 1.0 0.80 0.50

In non-conductive status 1.0 0.80 0.50

App-6

Show 14 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed
Page 997 of the Mitsubishi Electronics QCPU user manual — App-7
Page 997 · click to enlarge
Page 997
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 997)
Fig. 1383 · Appendix 1.2 Operation Processing Time of Basic Mode…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

BKCMP = n n = 1 130 105 97

BKCMP = P n n = 96 205 175 165

App-7

Page 998 of the Mitsubishi Electronics QCPU user manual — App-8
Page 998 · click to enlarge
Page 998
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 998)
Fig. 1384 · Appendix 1.2 Operation Processing Time of Basic Mode…

App-8

Page 999 of the Mitsubishi Electronics QCPU user manual — App-9
Page 999 · click to enlarge
Page 999
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 999)
Fig. 1385 · Appendix 1.2 Operation Processing Time of Basic Mode…

BK + n n = 1 105 86 80

A

BK + P n n = 96 185 155 140

BK - n n = 1 105 86 80

BK - P n n = 96 185 155 140

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

App-9

Page 1000 of the Mitsubishi Electronics QCPU user manual — App-10
Page 1000 · click to enlarge
Page 1000
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1000)
Fig. 1386 · Appendix 1.2 Operation Processing Time of Basic Mode…

= D0, = J1 \ W1 155 130 120

= D0, = J1 \ W1 165 135 120

App-10

Page 1001 of the Mitsubishi Electronics QCPU user manual — App-11
Page 1001 · click to enlarge
Page 1001

The processing time when the instruction is not executed is calculated as follows: Q00JCPU 0.20 (No. of steps for each instruction + 1) µs Q00CPU 0.16 (No. of steps for each instruction + 1) µs Q01CPU 0.10 (No. of steps for each instruction + 1) µs

Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1001)
Fig. 1387 · Appendix 1.2 Operation Processing Time of Basic Mode…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

App-11

(3) Application instructions

Page 1002 of the Mitsubishi Electronics QCPU user manual — App-12
Page 1002 · click to enlarge
Page 1002
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1002)
Fig. 1388 · Appendix 1.2 Operation Processing Time of Basic Mode…

App-12

Page 1003 of the Mitsubishi Electronics QCPU user manual — App-13
Page 1003 · click to enlarge
Page 1003
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1003)
Fig. 1389 · Appendix 1.2 Operation Processing Time of Basic Mode…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

App-13

Page 1004 of the Mitsubishi Electronics QCPU user manual — App-14
Page 1004 · click to enlarge
Page 1004
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1004)
Fig. 1390 · Appendix 1.2 Operation Processing Time of Basic Mode…

App-14

Page 1005 of the Mitsubishi Electronics QCPU user manual — App-15
Page 1005 · click to enlarge
Page 1005

Q00JCPU Q00CPU Q01CPU

COM –– 110 77 72

IX –– 65 54 51

IXEND –– 30 26 25

Number of contacts 1 145 120 110

IXDEV + IXSET

Number of contacts 14 770 630 585

FIFW

Number of data points 0 36 32 28

FIFWP

Number of data points 96 36 32 28

Number of data points 1 45 41 36

FIFR

FIFRP

Number of data points 96 93 82 70

FPOP

Number of data points 1 40 37 32

FPOPP

Number of data points 96 40 37 32

A

FINS

Number of data points 0 53 44 38

FINSP

Number of data points 96 100 89 76

Number of data points 1 60 50 43

FDEL

FDELP

Number of data points 96 110 95 82

FROM n1 n2 n3 n3 = 1 125 105 93

FROMP n1 n2 n3 *1 n3 = 1000 740 695 685

DFRO n1 n2 n3 n3 = 1 130 110 100

DFROP n1 n2 n3 *1 n3 = 500 745 695 675

TO n1 n2 n3 n3 = 1 120 105 92

TOP n1 n2 n3 *1 n3 = 1000 735 680 645

DTO n1 n2 n3 n3 = 1 130 110 99

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

DTOP n1 n2 n3 *1 n3 = 500 740 680 640

*1 : The FROM/TO instruction differs in processing time according to the number of slots and the loaded

modules. (The CPU also differs in processing time according to the extension base type.)

App-15

Processing Time (µs) · Instruction Condition (Device)

Page 1006 of the Mitsubishi Electronics QCPU user manual — App-16
Page 1006 · click to enlarge
Page 1006

Q00JCPU Q00CPU Q01CPU

LIMIT

–– 34 28 26

LIMITP

DLIMIT

–– 41 34 30

DLIMITP

BAND

–– 33 28 25

BANDP

DBAND

–– 40 34 30

DBANDP

ZONE

–– 31 25 24

ZONEP

DZONE

–– 37 29 28

DZONEP

RSET

–– –– 18 16

RSETP

DATERD

–– 30 25 23

DATERDP

DATEWR

–– 69 57 54

DATEWRP

DATE+

No digit increase 47 39 36

DATE+P

Digit increase 50 42 38

No digit increase 47 40 36

DATE -

DATE - P

Digit increase 50 42 38

SECOND

–– 28 24 22

SECONDP

HOUR

–– 38 32 29

HOURP

WDT

–– 18 15 14

WDTP

DUTY –– 41 36 32

ZRRDB

–– –– 24 22

ZRRDBP

ZRWRB

–– –– 27 24

ZRWRBP

ADRSET

–– 23 19 18

ADRSETP

ZPUSH

–– 38 33 30

ZPUSHP

ZPOP

–– 37 31 29

ZPOPP

ZCOM –– 105 82 80

(4) Processing time for QCPU instructions (QCPU instructions only)

Q00JCPU Q00CPU Q01CPU

UNIRD

n = 1 96 80 74

UNIRDP

n = 16 440 370 340

App-16

Show 4 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · Processing Time (µs) · Instruction Condition (Device)
Page 1007 of the Mitsubishi Electronics QCPU user manual — App-17
Page 1007 · click to enlarge
Page 1007

(5) Instructions executable by the product with the first 5 digits of the serial No. "04122" or higher

Q00JCPU Q00CPU Q01CPU

In conductive status 43.0 35.5 33.0

LDE = Single precision

In non-conductive status 46.0 38.0 35.5

When not executed 1.5 1.2 1.0

ANDE = Single precision

In conductive status 35.5 29.5 26.5

In non-conductive status 42.0 35.0 32.5

When not executed 1.5 1.2 1.0

ORE = Single precision

In conductive status 42.0 35.0 32.5

In non-conductive status 37.0 31.0 28.5

In conductive status 46.0 38.0 35.5

LDE < > Single precision

In non-conductive status 43.5 36.0 33.0

A

When not executed 1.5 1.2 1.0

ANDE < > Single precision

In conductive status 38.5 31.5 29.0

In non-conductive status 39.5 33.0 30.5

When not executed 1.5 1.2 1.0

ORE < > Single precision

In conductive status 45.0 37.5 35.0

In non-conductive status 34.5 29.0 26.5

In conductive status 46.0 37.5 35.5

LDE > Single precision

In non-conductive status 46.0 38.5 35.0

When not executed 1.5 1.2 1.0

ANDE > Single precision

In conductive status 38.5 32.0 29.0

In non-conductive status 42.0 35.0 32.5

When not executed 1.5 1.2 1.0

ORE > Single precision

In conductive status 45.0 37.5 34.5

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

In non-conductive status 37.0 31.0 29.0

In conductive status 45.5 37.5 35.0

LDE < = Single precision

In non-conductive status 46.5 38.5 35.5

When not executed 1.5 1.2 1.0

ANDE < = Single precision

In conductive status 38.5 31.5 29.0

In non-conductive status 42.5 35.5 32.5

When not executed 1.5 1.2 1.0

ORE < = Single precision

In conductive status 45.0 37.5 34.5

In non-conductive status 37.5 31.5 28.5

In conductive status 45.5 37.5 35.0

LDE < Single precision

In non-conductive status 46.5 38.5 35.5

When not executed 1.5 1.2 1.0

ANDE < Single precision

In conductive status 38.0 31.5 29.0

In non-conductive status 42.5 35.5 32.5

When not executed 1.5 1.2 1.0

ORE < Single precision

In conductive status 45.0 37.5 34.5

In non-conductive status 37.5 31.5 29.0

In conductive status 45.5 38.0 35.5

LDE > = Single precision

In non-conductive status 46.5 38.0 35.0

When not executed 1.5 1.2 1.0

ANDE > = Single precision

In conductive status 38.5 32.0 29.0

In non-conductive status 42.5 35.5 32.5

App-17

Show 13 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed
Page 1008 of the Mitsubishi Electronics QCPU user manual — App-18
Page 1008 · click to enlarge
Page 1008
Mitsubishi Electronics QCPU — Appendix 1.2 Operation Processing Time of Basic Model QCPU diagram (page 1008)
Fig. 1391 · Appendix 1.2 Operation Processing Time of Basic Mode…

= 2127, = 2127 65.5 60.5 49.5

= 2127, = 2127 66.5 56.0 51.0

= 2127, = 2127 48.5 41.0 37.5

= 2127, = 2127 50.5 42.5 38.5

= 2127, = 2127 65.5 55.0 49.5

= 2127, = - 2126 69.5 57.5 53.0

Decimal point format all 2-digit specification 138.0 148.0 196.0

App-18

Page 1009 of the Mitsubishi Electronics QCPU user manual — App-19
Page 1009 · click to enlarge
Page 1009

Q00JCPU Q00CPU Q01CPU

SIN

SINP Single precision 204.0 173.0 157.0

COS

COSP Single precision 187.0 158.0 144.0

TAN

TANP Single precision 224.0 190.0 173.0

RAD

RADP Single precision 51.0 43.0 39.0

DEG

DEGP Single precision 51.0 43.0 39.0

SQR

SQRP Single precision 60.0 51.0 46.5

= - 10 306.0 259.0 235.0

A

EXP

= 1 306.0 259.0 235.0

LOG

= 1 73.0 61.5 56.0

= 10 301.0 255.0 232.0

RND

–– 12.5 11.0 10.0

RNDP

SRND

–– 13.5 12.0 11.0

SRNDP

Appendix1 OPERATION PROCESSING TIME Appendix 1.2 Operation Processing Time of Basic Model QCPU

App-19

Show 4 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · EXPP Single precision · LOGP Single precision
Page 1010 of the Mitsubishi Electronics QCPU user manual — App-20
Page 1010 · click to enlarge
Page 1010

Name Condition/Number of Points Processed

Q00JCPU Q00CPU Q01CPU

With auto refresh of CPU

Refresh range2k words

(0.5k words assigned equally to all CPUs)

COM *2

Without auto refresh of CPU

–– –– 150 135

Read from CPU shared

n3 = 1 –– 100 90

memory of host CPU

n3 = 320 –– 440 420

FROM

Read from CPU shared

n3 = 1 –– 110 105

memory of another CPU

n3 = 320 –– 305 290

n3 = 1 –– 100 95

Write to CPU shared memory

TO

n3 = 320 –– 440 425

Write to CPU shared memory

n4 = 1 –– 205 195

S.TO

n4 = 320 –– 545 525

*2: If the processing overlaps those of the other CPUs in a multiple CPU system, the processing time increases by a maximum of the following time.

For a system having only the main base unit

(Instruction processing time increase) = 4 0.54 (number of points processed) (number of other CPUs) (µs)

For a system including extension base units

(Instruction processing time increase) = 4 1.30 (number of points processed) (number of other CPUs) (µs)

(6) Table of the time to be added when file register, module access device or link direct device is

Instruction Name data Device Specification

Q00JCPU Q00CPU Q01CPU

Source –– 34 32

Destination –– 23 22

Source –– 13 12

Destination –– 9 8

Source –– 14 13

Destination –– 10 9

Source 99 82 77

Destination 167 137 129

Source 74 61 58

(Un\G , U3En\G0 to G511)

Destination 72 60 56

Source 76 63 59

Destination 92 75 71

Source 178 147 137

Destination 303 248 233

Source 154 126 118

Link direct device (Jn\ )

Destination 153 125 117

Source 155 127 119

Destination 163 133 125

App-20

Show 24 more labels / short text on this page
Instruction · Processing Time (µs) · –– 920 880 · shared memory · shared memory · of host CPU · of host CPU · used · Processing Time (µs) · Location · Bit · File register (ZR) · Word · Double · word · Bit · Module access device · Word · Double · word · Bit · Word · Double · word
Page 1011 of the Mitsubishi Electronics QCPU user manual — (ON OFF)
Page 1011 · click to enlarge
Page 1011

Appendix 1.3 Operation Processing Time of High Performance

Model QCPU/Process CPU/Redundant CPU

The processing time for the individual instructions are shown in the table on the following pages.

Operation processing time can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing times rather than as being strictly accurate.

Qn QnH QnPH QnPRH

A

LD

LDI

AND

–– 0.079 0.034 0.034 0.034

ANI

OR

ORI

LDP

LDF

ANDP

–– 0.158 0.068 0.068 0.068

ANDF

ORP

ORF

ANB

ORB

MPS

–– 0.079 0.034 0.034 0.034

MRD

MPP

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

INV

0.079 0.034 0.034 0.034 When executed

MEP

0.173 0.073 0.073 0.073 When executed

MEF

When not executed (OFF OFF)

(ON ON)

EGP

0.158 0.068 0.068 0.068

EGF

When executed (OFF ON)

(ON OFF)

App-21

Show 5 more labels / short text on this page
(1) Sequence instructions · Processing Time (µs) · Instruction Condition (Device) · When not executed · When not executed
Page 1012 of the Mitsubishi Electronics QCPU user manual — App-22
Page 1012 · click to enlarge
Page 1012

Qn QnH QnPH QnPRH

(OFF OFF)

0.158 0.068 0.068 0.068 (ON ON)

(OFF ON)

0.158 0.068 0.068 0.068 (ON OFF)

When OFF 2.8 1.2 1.2 1.2

F

When displayed 162 69.7 69.7 69.7

ON

Display completed 126 54 54 54

OUT

When not executed 0.63 0.27 0.27 0.27

After time up 0.63 0.27 0.27 0.27

T

K 0.63 0.27 0.27 0.27

When not executed 0.63 0.27 0.27 0.27

After time up 0.63 0.27 0.27 0.27

K 0.63 0.27 0.27 0.27

When not executed 0.63 0.27 0.27 0.27

After time up 0.63 0.27 0.27 0.27

OUTH T

K 0.63 0.27 0.27 0.27

When not executed 0.158 0.068 0.068 0.068

When not changed (ON ON) 0.158 0.068 0.068 0.068

When changed (OFF ON) 0.158 0.068 0.068 0.068

SET

When not executed 0.47 0.20 0.20 0.20

F

When displayed 161 69 69 69

Display completed 0.47 0.20 0.20 0.20

When not executed 0.158 0.068 0.068 0.068

When not changed (OFF OFF) 0.158 0.068 0.068 0.068

When changed (ON OFF) 0.158 0.068 0.068 0.068

When not executed 0.158 0.068 0.068 0.068

SM

When executed 0.158 0.068 0.068 0.068

When not executed 0.47 0.20 0.20 0.20

F

When displayed 90 38 38 38

Display completed 0.47 0.20 0.20 0.20

RST

When not executed 0.63 0.27 0.27 0.27

T, C

When executed 0.63 0.27 0.27 0.27

When not executed 0.24 0.10 0.10 0.10

When executed 0.24 0.10 0.10 0.10

When not executed 0.47 0.20 0.20 0.20

Z

When executed 4.3 1.9 1.9 1.9

When not executed 0.40 0.17 0.17 0.17

R

When executed 0.40 0.17 0.17 0.17

PLS

–– 1.0 0.44 0.44 0.44

PLF

When not executed 0.47 0.20 0.20 0.20

FF Y

When executed 0.47 0.20 0.20 0.20

DELTA

When not executed 0.47 0.20 0.20 0.20

DELTAP DY0

When executed 5.9 2.6 2.6 2.6

App-22

Show 20 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · When not changed · When changed · When · When · executed · When added · When · executed · When added · When · executed · When added · When executed · When · executed · When executed · When · executed
Page 1013 of the Mitsubishi Electronics QCPU user manual — App-23
Page 1013 · click to enlarge
Page 1013

Qn QnH QnPH QnPRH

When not executed 0.47 0.20 0.20 0.20

SFT

SFTP

When executed 1.66 0.71 0.71 0.71

MC –– 0.24 0.10 0.10 0.10

MCR –– 0.079 0.034 0.034 0.034

Error check performed 380 150 150 500

No error check performed

FEND

END

380 150 150 500

(• Fuse blown check)

(• I/O module verification)

NOP –– 0.079 0.034 0.034 0.034

NOPLF

–– 0.079 0.034 0.034 0.034

PAGE

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

App-23

Processing Time (µs) · Instruction Condition (Device) · (• Battery check)

Page 1014 of the Mitsubishi Electronics QCPU user manual — App-24
Page 1014 · click to enlarge
Page 1014

The processing time when the instruction is not executed is calculated as follows: Q02CPU 0.079 (No. of steps for each instruction + 1) µs Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU 0.034 (No. of steps for each instruction + 1) µs

Qn QnH QnPH QnPRH

In conductive status 0.24 0.10 0.10 0.10

LD =

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

OR =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.24 0.10 0.10 0.10

LD < >

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND < >

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

OR < >

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.24 0.10 0.10 0.10

LD >

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND >

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

OR >

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.24 0.10 0.10 0.10

LD < =

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND < =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

App-24

Show 11 more labels / short text on this page
(2) Basic instructions · Processing Time (µs) · Instruction Condition (Device) · When · executed · When executed · When executed · When executed · When executed · When executed · When executed
Page 1015 of the Mitsubishi Electronics QCPU user manual — App-25
Page 1015 · click to enlarge
Page 1015

Qn QnH QnPH QnPRH

When not executed 0.24 0.10 0.10 0.10

OR < =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.24 0.10 0.10 0.10

LD <

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND <

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

OR <

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.24 0.10 0.10 0.10

LD > =

A

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

AND > =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

When not executed 0.24 0.10 0.10 0.10

OR > =

In conductive status 0.24 0.10 0.10 0.10

In non-conductive status 0.24 0.10 0.10 0.10

In conductive status 0.55 0.24 0.24 0.24

LDD =

In non-conductive status 0.39 0.17 0.17 0.17

When not executed 0.39 0.17 0.17 0.17

ANDD =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.39 0.17 0.17 0.17

When not executed 0.39 0.17 0.17 0.17

ORD =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

In conductive status 0.55 0.24 0.24 0.24

LDD < >

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ANDD < >

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ORD < >

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

In conductive status 0.55 0.24 0.24 0.24

LDD >

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ANDD >

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ORD >

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

In conductive status 0.55 0.24 0.24 0.24

LDD < =

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ANDD < =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ORD < =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

App-25

Show 15 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed · When executed
Page 1016 of the Mitsubishi Electronics QCPU user manual — App-26
Page 1016 · click to enlarge
Page 1016

Qn QnH QnPH QnPRH

In conductive status 0.55 0.24 0.24 0.24

LDD <

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

In conductive status 0.55 0.24 0.24 0.24

ANDD <

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

In conductive status 0.55 0.24 0.24 0.24

ORD <

In non-conductive status 0.55 0.24 0.24 0.24

In conductive status 0.55 0.24 0.24 0.24

LDD > =

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ANDD > =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

When not executed 0.39 0.17 0.17 0.17

ORD > =

In conductive status 0.55 0.24 0.24 0.24

In non-conductive status 0.55 0.24 0.24 0.24

93 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

LDE = *1

93 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

93 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

ANDE = *1

When not executed ––

93 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

93 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

ORE = *1

When not executed 0.55 0.24 –– ––

93 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.

Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

App-26

Show 38 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · When executed · When executed · When executed · When executed · In conductive status · Single · precision · In non-conductive status · In conductive status · Double · precision · In non-conductive status · Single · In conductive status · When · precision · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status · Single · In conductive status · precision · When · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status
Page 1017 of the Mitsubishi Electronics QCPU user manual — App-27
Page 1017 · click to enlarge
Page 1017

Instruction Condition (Device) Processing Time (µs)

Qn QnH QnPH QnPRH

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

LDE<> *1

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 93 40 6.4 6.4 14.9 6.4

ANDE<> *1

When not executed 0.55 0.24 –– ––

A

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

In conductive status 93 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

ORE<> *1

When not executed 0.55 0.24 –– ––

In conductive status 93 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

When not executed 92 40 6.4 6.4

14.9 6.4

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

92 40 6.4 6.4 14.9 6.4

LDE> *1

92 40 –– –– 14.9 6.4

precision In non-conductive status

92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 93 40 6.4 6.4 14.9 6.4

ANDE> *1

When not executed 0.55 0.24 –– ––

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.

Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

App-27

Show 32 more labels / short text on this page
Single · precision · Double · precision · Single · When · precision · executed · Double · When · precision · executed · Single · When · precision · executed · Double · When · precision · executed · Single · precision · In conductive status · Double · Single · When · precision · executed · Double · When · precision · executed
Page 1018 of the Mitsubishi Electronics QCPU user manual — App-28
Page 1018 · click to enlarge
Page 1018

Instruction Condition (Device) Processing Time (µs)

Qn QnH QnPH QnPRH

When not executed 0.55 0.24 0.24 0.24

In conductive status 93 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

ORE> *1

When not executed 0.55 0.24 –– ––

In conductive status 93 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

In conductive status 93 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

LDE<= *1

In conductive status 93 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

ANDE<= *1

When not executed 0.55 0.24 –– ––

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

ORE<= *1

When not executed 0.55 0.24 –– ––

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

In conductive status 92 40 6.4 6.4 14.9 6.4

In non-conductive status 92 40 6.4 6.4 14.9 6.4

LDE< *1

In conductive status 92 40 –– –– 14.9 6.4

In non-conductive status 92 40 –– –– 14.9 6.4

*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.

Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

App-28

Show 32 more labels / short text on this page
Single · When · precision · executed · Double · When · precision · executed · Single · precision · Double · precision · Single · When · precision · executed · Double · When · precision · executed · Single · When · precision · executed · Double · When · precision · executed · Single · precision · Double · precision
Page 1019 of the Mitsubishi Electronics QCPU user manual — App-29
Page 1019 · click to enlarge
Page 1019

Qn QnH QnPH QnPRH

When not executed 0.55 0.24 0.24 0.24

92 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

ANDE< *1

When not executed 0.55 0.24 –– ––

92 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

93 40 6.4 6.4 14.9 6.4

A

92 40 6.4 6.4 14.9 6.4

ORE< *1

When not executed 0.55 0.24 –– ––

93 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

93 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

LDE>= *1

93 40 –– –– 14.9 6.4

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

92 40 –– –– 14.9 6.4

When not executed 0.55 0.24 0.24 0.24

92 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

ANDE>= *1

When not executed 0.55 0.24 –– ––

92 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.

Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

App-29

Show 46 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · Single · In conductive status · When · precision · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status · Single · In conductive status · precision · When · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status · In conductive status · Single · precision · In non-conductive status · In conductive status · Double · precision · In non-conductive status · Single · In conductive status · precision · When · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status
Page 1020 of the Mitsubishi Electronics QCPU user manual — App-30
Page 1020 · click to enlarge
Page 1020

Qn QnH QnPH QnPRH

When not executed 0.55 0.24 0.24 0.24

92 40 6.4 6.4 14.9 6.4

92 40 6.4 6.4 14.9 6.4

ORE>= *1

When not executed 0.55 0.24 –– ––

92 40 –– –– 14.9 6.4

92 40 –– –– 14.9 6.4

In conductive status 38 16 16 16

LD$ =

In non-conductive status 34 15 15 15

When not executed 0.56 0.23 0.23 0.23

AND$ =

In conductive status 39 17 17 17

In non-conductive status 32 14 14 14

When not executed 0.56 0.24 0.24 0.24

OR$ =

In conductive status 40 17 17 17

In non-conductive status 33 14 14 14

In conductive status 32 14 14 14

LD$ < >

In non-conductive status 40 17 17 17

When not executed 0.56 0.23 0.23 0.23

In conductive status 33 14 14 14

AND$ < >

In non-conductive status 39 17 17 17

When not executed 0.56 0.24 0.24 0.24

In conductive status 32 14 14 14

OR$ < >

In non-conductive status 39 17 17 17

In conductive status 32 14 14 14

LD$ >

In non-conductive status 40 17 17 17

*1 : The Qn/QnH changes in processing time depending on the serial No. of the CPU module.

Top : The first 5 digits of the serial No. are "05031" or lower Bottom : The first 5 digits of the serial No. are "05032" or higher For the condition to be satisfied when the instruction is not executed, there is no differentiation between the top and bottom.

App-30

Show 18 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · Single · In conductive status · When · precision · executed · In non-conductive status · Double · In conductive status · When · precision · executed · In non-conductive status · When executed · When executed · When executed · When executed
Page 1021 of the Mitsubishi Electronics QCPU user manual — App-31
Page 1021 · click to enlarge
Page 1021
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1021)
Fig. 1392 · Appendix 1.3 Operation Processing Time of High Perfo…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

BKCMP = n n = 1 48 21 21 21

BKCMP = P n n = 96 142 61 61 61

BKCMP n n = 1 48 21 21 21

BKCMP P n n = 96 150 65 65 65

BKCMP > n n = 1 48 21 21 21

BKCMP >P n n = 96 142 61 61 61

BKCMP >= n n = 1 48 21 21 21

BKCMP >=P n n = 96 150 65 65 65

BKCMP < n n = 1 48 21 21 21

BKCMP

BKCMP

BKCMP

App-31

Page 1022 of the Mitsubishi Electronics QCPU user manual — App-32
Page 1022 · click to enlarge
Page 1022
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1022)
Fig. 1393 · Appendix 1.3 Operation Processing Time of High Perfo…

App-32

Page 1023 of the Mitsubishi Electronics QCPU user manual — App-33
Page 1023 · click to enlarge
Page 1023
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1023)
Fig. 1394 · Appendix 1.3 Operation Processing Time of High Perfo…

= 2127, = 2127 1.8 0.78 0.78 0.78

A

= 2127, = 2127 203 87 –– ––

= 2127, = 2127 2.4 1.1 1.1 1.1

= 2127, = 2127 209 90 –– ––

= 2127, = 2127 1.8 0.78 0.78 0.78

= 2127, = 2127 202 87 –– ––

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

= 2127, = 2127 2.4 1.1 1.1 1.1

= 2127, = 2127 210 90 –– ––

= 2126, = 2127 2.4 1.1 1.1 1.1

= 2126, = 2127 222 96 –– ––

= 2127, = - 2126 12 5.2 5.2 5.2

= 2127, = - 2126 369 159 –– ––

App-33

Page 1024 of the Mitsubishi Electronics QCPU user manual — App-34
Page 1024 · click to enlarge
Page 1024
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1024)
Fig. 1395 · Appendix 1.3 Operation Processing Time of High Perfo…

App-34

Page 1025 of the Mitsubishi Electronics QCPU user manual — App-35
Page 1025 · click to enlarge
Page 1025
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1025)
Fig. 1396 · Appendix 1.3 Operation Processing Time of High Perfo…

A

BKBCD n n = 1 38 17 17 17

BKBCDP n n = 96 99 43 43 43

BKBIN n n = 1 38 17 17 17

BKBINP n n = 96 99 43 43 43

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

*1 : The upper row indicates the processing time when A38B/A1S38B and the extension base are used.

The center row indicates the processing time when A38HB/A1S38HB is used. The lower row indicates the processing time when Q312B is used.

App-35

Page 1026 of the Mitsubishi Electronics QCPU user manual — App-36
Page 1026 · click to enlarge
Page 1026
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1026)
Fig. 1397 · Appendix 1.3 Operation Processing Time of High Perfo…

BMOV n n = 1 17 7.1 7.1 7.1

BMOVP n n = 96 32 14 14 14

FMOV n n = 1 6.7 2.9 2.9 2.9

FMOVP n n = 96 14 6.1 6.1 6.1

BXCH n n = 1 31 13 13 13

BXCHP n n = 96 84 36 36 36

App-36

Page 1027 of the Mitsubishi Electronics QCPU user manual — App-37
Page 1027 · click to enlarge
Page 1027

The processing time when the instruction is not executed is calculated as follows: Q02CPU 0.079 (No. of steps for each instruction + 1) µs Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU, Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU, Q12PRHCPU, Q25PRHCPU ·0.034 (No. of steps for each instruction + 1) µs

Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1027)
Fig. 1398 · Appendix 1.3 Operation Processing Time of High Perfo…

A

BKAND n n = 1 36 16 16 16

BKANDP n n = 96 74 32 32 32

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

BKOR n n = 1 36 16 16 16

BKORP n n = 96 74 32 32 32

BKXOR n n = 1 36 16 16 16

BKXORP n n = 96 74 32 32 32

App-37

(3) Application instructions

Page 1028 of the Mitsubishi Electronics QCPU user manual — App-38
Page 1028 · click to enlarge
Page 1028
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1028)
Fig. 1399 · Appendix 1.3 Operation Processing Time of High Perfo…

BKNXOR n n = 1 36 16 16 16

BKNXORP n n = 96 74 32 32 32

ROR n n = 1 2.0 0.85 0.85 0.85

RORP n n = 15 2.0 0.85 0.85 0.85

RCR n n = 1 1.6 0.68 0.68 0.68

RCRP n n = 15 1.6 0.68 0.68 0.68

ROL n n = 1 2.0 0.85 0.85 0.85

ROLP n n = 15 2.0 0.85 0.85 0.85

RCL n n = 1 1.6 0.68 0.68 0.68

RCLP n n = 15 1.6 0.68 0.68 0.68

DROR n n = 1 3.9 1.7 1.7 1.7

DRORP n n = 31 4.0 1.7 1.7 1.7

DRCR n n = 1 4.3 1.8 1.8 1.8

DRCRP n n = 31 4.3 1.9 1.9 1.9

DROL n n = 1 3.9 1.7 1.7 1.7

DROLP n n = 31 4.0 1.7 1.7 1.7

DRCL n n = 1 4.3 1.8 1.8 1.8

DRCLP n n = 31 4.3 1.9 1.9 1.9

SFR n n = 1 1.7 0.75 0.75 0.75

SFRP n n = 15 2.0 0.85 0.85 0.85

SFL n n = 1 1.7 0.75 0.75 0.75

SFLP n n = 15 2.0 0.85 0.85 0.85

BSFLR n n = 1 20 8.6 8.6 8.6

BSFLRP n n = 96 24 10 10 10

BSFL n n = 1 20 8.5 8.5 8.5

BSFLP n n = 96 23 10 10 10

DSFR n n = 1 1.3 0.58 0.58 0.58

DSFRP n n = 96 25 11 11 11

DSFL n n = 1 1.3 0.58 0.58 0.58

DSFLP n n = 96 26 11 11 11

App-38

Page 1029 of the Mitsubishi Electronics QCPU user manual — App-39
Page 1029 · click to enlarge
Page 1029
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1029)
Fig. 1400 · Appendix 1.3 Operation Processing Time of High Perfo…

BSET n n = 1 7.6 3.3 3.3 3.3

BSETP n n = 15 7.6 3.3 3.3 3.3

BRST n n = 1 7.6 3.3 3.3 3.3

BRSTP n n = 15 7.6 3.3 3.3 3.3

BKRST n n = 1 18 7.8 7.8 7.8

A

BKRSTP n n = 96 19 8.2 8.2 8.2

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

DECO n n = 2 20 8.6 8.6 8.6

DECOP n n = 8 27 12 12 12

DIS n n = 1 18 7.7 7.7 7.7

DISP n n = 4 19 8.3 8.3 8.3

UNI n n = 1 21 8.9 8.9 8.9

UNIP n n = 4 23 9.7 9.7 9.7

WTOB n n = 1 47 20 20 20

WTOBP n n = 96 99 43 43 43

BTOW n n = 1 45 19 19 19

BTOWP n n = 96 89 38 38 38

App-39

Page 1030 of the Mitsubishi Electronics QCPU user manual — App-40
Page 1030 · click to enlarge
Page 1030
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1030)
Fig. 1401 · Appendix 1.3 Operation Processing Time of High Perfo…

MAX n n = 1 17 7.1 7.1 7.1

MAXP n n = 96 136 59 59 59

MIN n n = 1 17 7.1 7.1 7.1

MINP n n = 96 159 69 69 69

DMAX n n = 1 27 12 12 12

DMAXP n n = 96 181 78 78 78

DMIN n n = 1 27 12 12 12

DMINP n n = 96 112 48 48 48

WSUM n n = 1 16.4 7.1 7.1 7.1

WSUMP n n = 96 68.4 29.5 29.5 29.5

DWSUM n n = 1 18.9 8.2 8.2 8.2

DWSUMP n n = 96 130.4 56.1 56.1 56.1

FOR n n = 0 2.3 1.0 1.0 1.0

CALL Pn Internal file pointer 2.1 0.88 0.88 0.88

*1: Indicates extension of scan time to completion of instruction.

App-40

Page 1031 of the Mitsubishi Electronics QCPU user manual — App-41
Page 1031 · click to enlarge
Page 1031
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1031)
Fig. 1402 · Appendix 1.3 Operation Processing Time of High Perfo…

IXDEV + IXSET Number of contacts 1 48 21 21 21

Number of data points 0 11 4.5 4.5 4.5

Number of data points 96 11 4.5 4.5 4.5

Number of data points 1 13 5.6 5.6 5.6

Number of data points 96 32 14 14 14

Number of data points 1 16 7.0 7.0 7.0

Number of data points 96 16 7.0 7.0 7.0

Number of data points 0 20 8.4 8.4 8.4

A

Number of data points 96 36 15 15 15

Number of data points 1 19 7.5 7.5 7.5

Number of data points 96 39 15 15 15

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

PR SM701ON Variable 1 character 33 11 11 ––

*1 : The upper row indicates the processing time when A38B/A1S38B and the extension base are used.

The center row indicates the processing time when A38HB/A1S38HB is used. The bottom row indicates the processing times taken when the Q312B is used to execute the instruction for the QJ71C24 in slot 0. The FROM/TO instruction differs in processing time according to the number of slots and the loaded modules. (The QnCPU/QnHCPU also differs in processing time according to the extension base type.)

App-41

Page 1032 of the Mitsubishi Electronics QCPU user manual — App-42
Page 1032 · click to enlarge
Page 1032
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1032)
Fig. 1403 · Appendix 1.3 Operation Processing Time of High Perfo…

LED instruction execution no display 103 44 44 44

App-42

Page 1033 of the Mitsubishi Electronics QCPU user manual — App-43
Page 1033 · click to enlarge
Page 1033
Mitsubishi Electronics QCPU — Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU diagram (page 1033)
Fig. 1404 · Appendix 1.3 Operation Processing Time of High Perfo…

A

Decimal point format all 2-digit specification 100 43 43 43

Exponent format all 6-digit specification 127 55 55 55

ASC n n = 1 64 28 28 28

ASCP n n = 96 289 125 125 125

HEX n n = 1 60 26 26 26

HEXP n n = 96 343 148 148 148

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

RIGHT n n = 1 49 21 21 21

RIGHTP n n = 96 131 56 56 56

LEFT n n = 1 50 21 21 21

LEFTP n n = 96 131 56 56 56

App-43

Page 1034 of the Mitsubishi Electronics QCPU user manual — SRNDP
Page 1034 · click to enlarge
Page 1034

Qn QnH QnPH QnPRH

EMOD

–– 527 227 227 227

EMODP

EREXP

–– 1656 713 713 713

EREXPP

SIN

Single precision 115 50 50 50

SINP

Double precision 1945 837 –– ––

COS

Single precision 122 53 53 53

COSP

Double precision 2618 1127 –– ––

Single precision 123 53 53 53

TAN

TANP

Double precision 2618 1127 –– ––

ASIN

Single precision 111 48 48 48

ASINP

Double precision 2491 1072 –– ––

ACOS

Single precision 115 49 49 49

ACOSP

Double precision 2367 1019 –– ––

Single precision 157 68 68 68

ATAN

ATANP

Double precision 3140 1352 –– ––

RAD

Single precision 17 7.2 7.2 7.2

RADP

Double precision 24 10 –– ––

DEG

Single precision 17 7.2 7.2 7.2

DEGP

Double precision 23 9.9 –– ––

Single precision 28 12 12 12

SQR

SQRP

Double precision 1812 780 –– ––

129 56 56 56 = 1

EXP

EXPP

2386 1026 –– –– = 1

113 49 49 49 = 10

LOG

LOGP

2146 924 –– –– = 10

RND

–– 3.9 1.7 1.7 1.7

RNDP

SRND

–– 3.5 1.5 1.5 1.5

SRNDP

App-44

Show 10 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · = - 10 · Single precision · = - 10 · Double precision · = 1 · Single precision · = 1 · Double precision
Page 1035 of the Mitsubishi Electronics QCPU user manual — DATEWRP
Page 1035 · click to enlarge
Page 1035

Qn QnH QnPH QnPRH

= 0 6.2 2.7 2.7 2.7

BSQR

BSQRP

= 9999 38 16 16 16

= 0 6.2 2.7 2.7 2.7

BDSQR

BDSQRP

= 99999999 38 16 16 16

BSIN

–– 12 5.1 5.1 5.1

BSINP

BCOS

–– 12 5.2 5.2 5.2

BCOSP

BTAN

–– 12 5.2 5.2 5.2

BTANP

BASIN

A

–– 20 8.7 8.7 8.7

BASINP

BACOS

–– 21 9.0 9.0 9.0

BACOSP

BATAN

–– 22 9.6 9.6 9.6

BATANP

LIMIT

–– 10 4.3 4.3 4.3

LIMITP

DLIMIT

–– 11 4.7 4.7 4.7

DLIMITP

BAND

–– 9.8 4.2 4.2 4.2

BANDP

DBAND

–– 11 4.9 4.9 4.9

DBANDP

ZONE

–– 9.1 3.9 3.9 3.9

ZONEP

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

DZONE

–– 11 4.6 4.6 4.6

DZONEP

RSET

–– 6.8 2.9 2.9 2.9

RSETP

QDRSET

–– 205 88 88 88

QDRSETP

QCDSET

–– 147 63 63 63

QCDSETP

DATERD

–– 13 5.5 5.5 5.5

DATERDP

DATEWR

–– 15 6.4 6.4 6.4

DATEWRP

App-45

Processing Time (µs) · Instruction Condition (Device)

Page 1036 of the Mitsubishi Electronics QCPU user manual — EROMWRP
Page 1036 · click to enlarge
Page 1036

Qn QnH QnPH QnPRH

No digit increase 13 5.4 5.4 5.4

DATE+

DATE+P

Digit increase 13 5.4 5.4 5.4

DATE -

No digit increase 12 5.2 5.2 5.2

DATE - P

Digit increase 12 5.2 5.2 5.2

SECOND

–– 10 4.5 4.5 4.5

SECONDP

HOUR

–– 12 5.2 5.2 5.2

HOURP

1 character 3.0 1.3 1.3 1.3

MSG

32 characters 3.0 1.3 1.3 1.3

Initial time 20 8.6 8.6 8.6

PKEY

No reception 19 8.2 8.2 8.2

PSTOP

–– 79 34 34 34

PSTOPP

POFF

–– 79 34 34 34

POFFP

PSCAN

–– 75 32 32 32

PSCNAP

PLOW

–– 80 34 34 ––

PLOWP

WDT

–– 5.9 2.6 2.6 2.6

WDTP

DUTY –– 9.3 4.0 4.0 4.0

ZRRDB

–– 7.9 3.4 3.4 3.4

ZRRDBP

ZRWRB

–– 9.4 4.0 4.0 4.0

ZRWRBP

ADRSET

–– 4.9 2.1 2.1 2.1

ADRSETP

KEY –– 17 7.3 7.3 ––

ZPUSH

–– 11 4.7 4.7 4.7

ZPUSHP

ZPOP

–– 5.1 2.2 2.2 2.2

ZPOPP

EROMWR

––

EROMWRP

App-46

Processing Time (µs) · Instruction Condition (Device)

Page 1037 of the Mitsubishi Electronics QCPU user manual — App-47
Page 1037 · click to enlarge
Page 1037

Qn QnH QnPH QnPRH

ZCOM –– 691 289 289 289

READ –– –– –– –– ––

SREAD –– –– –– –– ––

WRITE –– –– –– –– ––

SWRITE –– –– –– –– ––

SEND –– –– –– –– ––

RECV –– –– –– –– ––

REQ –– –– –– –– ––

ZNFR –– –– –– –– ––

ZNTO –– –– –– –– ––

MELSECNET/10 –– –– –– ––

ZNRD

MELSECNET (II) –– –– –– ––

A

MELSECNET/10 –– –– –– ––

ZNWR

MELSECNET (II) –– –– –– ––

RFRP –– –– –– –– ––

RTOP –– –– –– –– ––

(4) Processing time for QCPU instructions (QCPU instructions only)

(a) Instructions available from function version A

Qn QnH QnPH QnPRH

UNIRD –– 79 34 34 34

Start 176

TRACE

STRA execution completion 6.3 2.7 2.7 2.7

TRACER –– 19 8.2 8.2 8.2

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

SP.FWRITE –– 84 36 36 36

SP.FREAD –– 82 35 35 35

PLOADP –– 58 25 25 ––

PUNLOADP –– 272 117 117 ––

PSWAPP –– 308 133 133 ––

1 point 45.5 20 20 20

When standard RAM is used

1000 points 215 91 91 91

RBMOV

1 point 49.5 22 22 22

When SRAM card is used

1000 points 540 305 305 305

App-47

Show 4 more labels / short text on this page
Processing Time (µs) · Instruction Condition (Device) · Processing Time (µs) · Instruction Condition (Device)
Page 1038 of the Mitsubishi Electronics QCPU user manual — SP.CONTSW –– –– –– –– 9.6
Page 1038 · click to enlarge
Page 1038

(b) Instructions available from function version B

Instruction Condition/Number of Points Processed Processing Time (µs)

Qn QnH QnPH QnPRH

Refresh range2k words

(0.5k words

720 660 660 ––

assigned equally to all CPUs)

With auto refresh of

Refresh range4k words

COM *1

(1k words assigned equally to all

860 730 730 ––

Without auto refresh of

–– 43 20 20 20

n3 = 1 59 29 29 ––

n3 = 1000 530 500 500 ––

FROM *1

Main base unit 51 24 24 ––

Extension base unit 54 27 27 ––

n3 = 1000 Main base unit 540 480 480 ––

Extension base unit 1100 1050 1050 ––

n3 = 1 ("TO" instruction)

Writing to CPU shared

n4 = 1 ("S.TO instruction") 74 33 33 ––

S.TO

memory of host CPU

n2 = 256 126 54 54 ––

S (P).DATERD *3 Reading data of the

–– 25 11 11 11

S (P).DATE+ *3 Expansion clock data

–– 38 17 17 17

S (P).DATE- *3 Expansion clock data

–– 38 17 17 17

*1 : If the processing overlaps those of the other CPUs in a multiple CPU system, the processing time

increases by a maximum of the following time.

For system having only the main base unit

(Instruction processing time increase) = 0.54 (number of points processed) (number of other CPUs) (µs)

For system including extension base units

(Instruction processing time increase) = 1.30 (number of points processed) (number of other CPUs) (µs)

*2 : In a multiple CPU system, the instruction processing time for the intelligent function module under control

of the host CPU is equal to that for the intelligent function module under control of another CPU. *3 : Products with the first 5 digits of the serial No. "07032" or higher are applicable.

(5) Redundant system instructions (for redundant CPU)

Qn QnH QnPH QnPRH

SP.CONTSW –– 9.6

App-48

Show 15 more labels / short text on this page
CPU shared memory · CPUs) · CPU shared memory · Reading from CPU · shared memory of · another CPU · Reading buffer memory · n3 = 1 · of intelligent function · module*2 · expansion clock · addition operation · subtraction operation · Processing Time (µs) · Instruction Condition (Device)
Page 1039 of the Mitsubishi Electronics QCPU user manual — App-49
Page 1039 · click to enlarge
Page 1039

(6) Table of the time to be added when file register, module access device or link direct device is

Instruction data Device Specification

Qn QnH QnPH QnPRH

Source 5.56 2.40 2.40 2.40

Destination 4.44 1.91 1.91 1.91

Source 2.60 1.12 1.12 1.12

Destination 3.76 1.62 1.62 1.62

Source 2.83 1.22 1.22 1.22

Destination 4.00 1.72 1.72 1.72

Source 5.22 2.25 2.25 2.25

Destination 4.09 1.76 1.76 1.76

Source 2.25 0.97 0.97 0.97

(Q2MEM-1MBS,

Destination 3.42 1.47 1.47 1.47

Q2MEM-2MBS)

Source 2.49 1.07 1.07 1.07

A

Destination 3.65 1.57 1.57 1.57

Source 35.56 15.31 15.31 15.31

Destination 65.08 28.01 28.01 28.01

Source 32.76 14.10 14.10 14.10

(Un\G , U3En\G0 to G4095)

Destination 28.84 12.41 12.41 12.41

Source 32.99 14.20 14.20 14.20

Destination 29.07 12.51 12.51 12.51

Source 75.67 32.57 32.57 32.57

Destination 138.65 59.67 59.67 59.67

Source 72.73 31.30 31.30 31.30

Link direct device (Jn\ )

Destination 137.32 59.10 59.10 59.10

Source 72.96 31.40 31.40 31.40

Destination 137.55 59.20 59.20 59.20

Appendix1 OPERATION PROCESSING TIME Appendix 1.3 Operation Processing Time of High Performance Model QCPU/Process CPU/Redundant CPU

App-49

Show 21 more labels / short text on this page
used · Processing Time (µs) · Location · Bit · When standard · Word · RAM is used · Double word · File register (ZR) · Bit · When SRAM · card is used · Word · Double word · Bit · Module access device · Word · Double word · Bit · Word · Double word
Page 1040 of the Mitsubishi Electronics QCPU user manual — RST
Page 1040 · click to enlarge
Page 1040

Appendix 1.4 Operation Processing Time of Universal

Model QCPU

The processing time for the individual instructions are shown in the table on the following pages.

Operation processing times can vary substantially depending on the nature of the sources and destinations of the instructions, and the values contained in the following tables should therefore be taken as a set of general guidelines to processing time rather than as being strictly accurate. Appendix 1.4.1 Subset instruction processing time

The following describes the subset instruction processing time.

1. The subset instruction processing time table shown in (1) applies when the device used in an instruction satisfies either of the conditions (a) and (b). 2. Since the processing time of each instruction is not constant due to the cache function in the Universal model QCPU, the minimum value and the maximum value are described.

(1) Subset instruction processing time table

(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU.

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

LD

LDI

AND

ANI

OR

ORI

When executed 0.120 0.080 0.060 0.040

LDP

LDF

ANDP

ANDF

ORP

ORF

LDPI LDFI When executed 0.360 0.240 0.180 0.120

ANDPI ANDFI ORPI ORFI

When executed 0.480 0.320 0.240 0.160

OUT

0.120 0.080 0.060 0.040 When changed

SET

0.120 0.080 0.060 0.040 When executed

RST

App-50

Show 7 more labels / short text on this page
Processing Time (µs) · Sequence · instruction · When not changed · When not executed · When not changed · When changed
Page 1041 of the Mitsubishi Electronics QCPU user manual — App-51
Page 1041 · click to enlarge
Page 1041
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1041)
Fig. 1405 · Appendix 1.4 Operation Processing Time of Universal…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-51

Page 1042 of the Mitsubishi Electronics QCPU user manual — App-52
Page 1042 · click to enlarge
Page 1042
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1042)
Fig. 1406 · Appendix 1.4 Operation Processing Time of Universal…

App-52

Page 1043 of the Mitsubishi Electronics QCPU user manual — App-53
Page 1043 · click to enlarge
Page 1043

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

+ When executed 0.360 0.240 0.180 0.120

S D

+ When executed 0.480 0.320 0.240 0.160

S1 S2 D

- When executed 0.360 0.240 0.180 0.120

S D

- When executed 0.480 0.320 0.240 0.160

S1 S2 D

D + When executed 0.360 0.240 0.180 0.120

S D

D + When executed 0.480 0.320 0.240 0.160

S1 S2 D

D - When executed 0.360 0.240 0.180 0.120

S D

D - When executed 0.480 0.320 0.240 0.160

S1 S2 D

A

* When executed 0.420 0.300 0.240 0.180

S1 S2 D

/ When executed 0.520 0.400 0.340 0.280

S1 S2 D

D * When executed 0.500 0.380 0.320 0.260

S1 S2 D

D/ When executed 0.640 0.520 0.460 0.400

S1 S2 D

B + When executed 3.100 12.300 3.100 12.300 3.100 12.300 3.300 8.300

S D

B + When executed 5.900 13.500 5.900 13.500 5.900 13.500 4.600 6.200

S1 S2 D

B - When executed 3.150 12.300 3.150 12.300 3.150 12.300 3.300 9.000

S D

B - When executed 5.950 13.600 5.950 13.600 5.950 13.600 4.600 8.200

S1 S2 D

B * When executed 3.700 12.100 3.700 12.100 3.700 12.100 4.000 8.200

S1 S2 D

B/ When executed 4.000 14.000 4.000 14.000 4.000 14.000 4.200 12.400

S1 S2 D

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

= 0, = 0 0.420 0.300 0.240 0.180

S D

E +

S D

= 2127, = 2127 0.420 0.300 0.240 0.180

S D

= 0, = 0 0.540 0.380 0.300 0.220

S1 S2

E +

S1 S2 D

= 2127, = 2127 0.540 0.380 0.300 0.220

S1 S2

= 0, = 0 0.420 0.300 0.240 0.180

S D

E -

S D

= 2127, = 2127 0.420 0.300 0.240 0.180

S D

= 0, = 0 0.540 0.380 0.300 0.220

S1 S2

E -

S1 S2 D

= 2127, = 2127 0.540 0.380 0.300 0.220

S1 S2

= 0, = 0 0.420 0.300 0.240 0.180

S1 S2

E *

S1 S2 D

= 2127, = 2127 0.420 0.300 0.240 0.180

S1 S2

precision = 2127, = 2127 4.900 18.900 4.900 18.900 4.900 18.900 5.100 14.100

E/

S1 S2 D S1 S2

INC When executed 0.240 0.160 0.120 0.080

DINC When executed 0.240 0.160 0.120 0.080

DEC When executed 0.240 0.160 0.120 0.080

DDEC When executed 0.240 0.160 0.120 0.080

BCD When executed 0.320 0.240 0.200 0.160

DBCD When executed 0.400 0.320 0.280 0.240

BIN When executed 0.260 0.180 0.140 0.100

DBIN When executed 0.260 0.180 0.140 0.100

App-53

Show 14 more labels / short text on this page
Processing Time (µs) · Basic · instruction · Single · precision · Single · precision · Single · precision · Single · precision · Single · precision · Single
Page 1044 of the Mitsubishi Electronics QCPU user manual — App-54
Page 1044 · click to enlarge
Page 1044
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1044)
Fig. 1407 · Appendix 1.4 Operation Processing Time of Universal…

n=1 4.200 4.600 4.200 4.600 4.200 4.600 4.100 4.500 n=96 4.850 5.150 4.850 5.150 4.850 5.150 4.700 5.100 SM237=

n=1 6.800 11.300 6.800 11.300 6.800 11.300 6.300 8.900 n=96 7.450 11.900 7.450 11.900 7.450 11.900 5.900 9.500

n=1 4.100 4.600 4.100 4.600 4.100 4.600 4.100 4.600

n=96 4.800 5.200 4.800 5.200 4.800 5.200 4.800 5.200 SM237=

n=1 4.600 8.250 4.600 8.250 4.600 8.250 4.600 7.900 n=96 6.150 10.600 6.150 10.600 6.150 10.600 5.300 8.500

XCH –– 2.250 8.100 2.250 8.100 2.250 8.100 2.500 6.000

DXCH –– 2.400 8.200 2.400 8.200 2.400 8.200 2.800 7.900

n=1 2.700 2.800 2.700 2.800 2.700 2.800 2.350 2.450 n=96 6.500 6.800 6.500 6.800 6.500 6.800 5.950 6.000 SM237=

n=1 4.000 8.150 4.000 8.150 4.000 8.150 3.000 6.950 n=96 8.000 12.200 8.000 12.200 8.000 12.200 6.600 10.600

CJ –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100

SCJ –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100

JMP –– 3.500 10.100 3.500 10.100 3.500 10.100 1.900 10.100

App-54

Page 1045 of the Mitsubishi Electronics QCPU user manual — App-55
Page 1045 · click to enlarge
Page 1045

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

n = 1 2.250 10.800 2.250 10.800 2.250 10.800 2.300 7.800

n = 15 2.250 10.800 2.350 10.800 2.350 10.800 2.400 7.800

n = 1 2.250 10.800 2.250 10.800 2.250 10.800 2.300 3.900

n = 15 2.250 10.800 2.250 10.800 2.250 10.800 2.400 4.100

n = 1 2.250 10.800 2.350 10.800 2.350 10.800 2.500 4.600

n = 15 2.250 10.800 2.350 10.800 2.350 10.800 2.400 4.600

n = 1 2.250 11.500 2.300 11.500 2.300 11.500 2.400 7.500

n = 15 2.250 11.500 2.300 11.500 2.300 11.500 2.500 7.500

n = 1 2.350 11.500 2.350 11.500 2.350 11.500 2.400 10.300

n = 31 2.350 11.500 2.350 11.500 2.350 11.500 2.500 10.300

n = 1 2.350 13.300 2.350 13.300 2.350 13.300 2.500 12.700

A

n = 31 2.350 14.900 2.350 14.900 2.350 14.900 2.500 12.700

n = 1 2.350 10.800 2.350 10.800 2.350 10.800 2.500 11.800

n = 31 2.350 10.800 2.350 10.800 2.350 10.800 2.500 11.800

n = 1 2.350 13.300 2.350 13.300 2.350 13.300 2.500 5.100

n = 31 2.350 13.300 2.350 13.300 2.350 13.300 2.500 5.100

n = 1 2.350 9.900 2.350 9.900 2.350 9.900 2.400 6.100

n = 15 2.350 9.900 2.350 9.900 2.350 9.900 2.300 5.700

n = 1 2.350 9.850 2.350 9.850 2.350 9.850 2.400 4.300

n = 15 2.350 9.850 2.350 9.850 2.350 9.850 2.400 4.300

n = 1 3.250 15.500 3.250 15.500 3.250 15.500 3.300 12.000

n = 96 32.600 45.000 32.600 45.000 32.600 45.000 32.600 42.200

n = 1 3.200 15.500 3.200 15.500 3.200 15.500 3.300 8.200

n = 96 32.600 45.100 32.600 45.100 32.600 45.100 32.600 37.700

= 0 3.100 8.950 3.100 8.950 3.100 8.950 3.400 6.700

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

SUM

= FFFFH 3.000 8.850 3.000 8.850 3.000 8.850 3.500 6.700

SEG When executed 2.100 7.700 2.100 7.700 2.100 7.700 2.100 5.900

FOR –– 1.500 7.500 1.500 7.500 1.500 7.500 1.200 6.300

Internal file pointer 4.800 5.400 4.800 5.400 4.800 5.400 2.700 4.800

Common pointer 7.100 30.500 7.100 30.500 7.100 30.500 4.400 5.700

CALL Pn to –– 50.200 62.000 50.200 62.000 50.200 62.000 28.700 42.600

S1 S5

Remark

For the instructions for which a leading edge instruction ( P) is not described, the processing time is the same as an ON execution instruction.

Example

MOVP instruction, WANDP instruction etc.

App-55

Show 16 more labels / short text on this page
Processing Time (µs) · ROR n · RCR n · ROL n · RCL n · DROR n · DRCR n · DROL n · DRCL n · Application · instruction · SFR n · SFL n · DSFR n · DSFL n · CALL Pn
Page 1046 of the Mitsubishi Electronics QCPU user manual — App-56
Page 1046 · click to enlarge
Page 1046

(b) When using Q03UD(E)HCPU, Q04UD(E)HCPU, Q06UD(E)HCPU,

Q10UD(E)HCPU,Q13UD(E)HCPU, Q20UD(E)HCPU, Q26UD(E)HCPU

Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Min. Max. Min. Max. Min. Max.

LD

LDI

AND

ANI

OR

ORI

When executed 0.020 0.0095 0.0095

LDP

LDF

ANDP

ANDF

ORP

ORF

LDPI

When executed 0.060 0.0285 0.0285

LDFI

ANDPI

ANDFI

When executed 0.080 0.038 0.038

ORPI

ORFI

OUT

0.020 0.0095 0.0095 When changed

SET

RST When not executed 0.020 0.0095 0.0095

App-56

Show 4 more labels / short text on this page
Processing Time (µs) · Sequence · instruction · When not changed
Page 1047 of the Mitsubishi Electronics QCPU user manual — App-57
Page 1047 · click to enlarge
Page 1047
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1047)
Fig. 1408 · Appendix 1.4 Operation Processing Time of Universal…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-57

Page 1048 of the Mitsubishi Electronics QCPU user manual — App-58
Page 1048 · click to enlarge
Page 1048
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1048)
Fig. 1409 · Appendix 1.4 Operation Processing Time of Universal…

App-58

Page 1049 of the Mitsubishi Electronics QCPU user manual — App-59
Page 1049 · click to enlarge
Page 1049
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1049)
Fig. 1410 · Appendix 1.4 Operation Processing Time of Universal…

A

B + When executed 3.300 5.500 3.000 4.100 3.000 4.100

B + When executed 4.600 6.200 4.200 5.900 4.200 5.900

B - When executed 3.300 4.400 2.900 3.800 2.900 3.800

B - When executed 4.600 6.300 4.200 4.600 4.200 4.600

B * When executed 4.000 4.800 3.400 4.800 3.400 4.800

B/ When executed 4.200 5.700 3.700 5.200 3.700 5.200

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

= 2127, = 2127 0.120 0.057 0.057

= 2127, = 2127 0.140 0.0665 0.0665

= 2127, = 2127 0.120 0.057 0.057

= 2127, = 2127 0.140 0.0665 0.0665

= 2127, = 2127 0.120 0.057 0.057

precision = 2127, = 2127 4.500 5.600 3.900 4.900 0.285

App-59

Page 1050 of the Mitsubishi Electronics QCPU user manual — App-60
Page 1050 · click to enlarge
Page 1050

Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Min. Max. Min. Max. Min. Max.

= 0 0.100 0.0475 0.0475

= 7FFF H 0.100 0.0475 0.0475

= 0 0.100 0.0475 0.0475

= 7FFFFFFF H 0.100 0.0475 0.0475

= 0 0.100 0.0475 0.0475

= 32766.5 0.100 0.0475 0.0475

= 0 0.100 0.0475 0.0475

= 1234567890.3 0.100 0.0475 0.0475

MOV –– 0.040 0.019 0.019

DMOV –– 0.040 0.019 0.019

EMOV –– 0.040 0.019 0.019

CML –– 0.040 0.019 0.019

DCML –– 0.040 0.019 0.019

6.300 8.200 5.400 7.000 5.400 7.000

n = 1 SM237=OFF*1 8.200 10.600 3.900 5.100 3.900 5.100

SM237=ON *1 6.000 7.800 2.900 3.700 2.900 3.700

BMOV

7.100 8.800 5.900 7.600 5.900 7.600

n = 96 SM237=OFF*1 9.300 11.900 4.400 5.700 4.400 5.700

SM237=ON *1 7.100 9.100 3.400 4.300 3.400 4.300

5.300 5.900 4.200 4.800 4.200 4.800

n = 1 SM237=OFF*1 7.000 8.000 3.400 3.800 3.400 3.800

SM237=ON *1 5.900 6.800 2.800 3.200 2.800 3.200

FMOV

5.300 7.600 4.400 6.800 4.400 6.800

n = 96 SM237=OFF*1 7.400 12.200 3.600 5.800 3.600 5.800

SM237=ON *1 6.300 11.000 3.000 5.200 3.000 5.200

XCH –– 2.500 2.900 1.800 2.300 1.800 2.300

DXCH –– 2.800 3.700 2.100 2.900 2.100 2.900

n=1 SM237=OFF 2.600 3.750 2.250 3.150 2.250 3.150 SM237=ON 2.050 2.250 1.750

DFMOV *2

n=96 SM237=OFF 5.850 7.350 4.200 5.500 4.200 5.500 SM237=ON 5.300 6.000 3.650 4.150 3.650 4.150

CJ –– 1.800 2.800 1.400 2.400 1.400 2.400

SCJ –– 1.800 2.800 1.400 2.400 1.400 2.400

JMP –– 1.800 2.800 1.100 2.400 1.100 2.400 *1 : Can be used onliy for the Q03UDCPU, Q04UDHCPU and Q06UDHCPU whose first 5 digits of serial number is “10012” or later. *2 : Can be used onliy for the Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q13UD(E)HCPU and Q26UD(E)HCPU whose first 5 digits of serial number is “10012” or later.

App-60

Show 11 more labels / short text on this page
Processing Time (µs) · FLT Single · precision · DFLT Single · precision · INT Single · precision · DINT Single · precision · Basic · instruction
Page 1051 of the Mitsubishi Electronics QCPU user manual — App-61
Page 1051 · click to enlarge
Page 1051
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1051)
Fig. 1411 · Appendix 1.4 Operation Processing Time of Universal…

A

Mitsubishi Electronics QCPU — A diagram (page 1051)
Fig. 1412

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-61

Page 1052 of the Mitsubishi Electronics QCPU user manual — App-62
Page 1052 · click to enlarge
Page 1052
Mitsubishi Electronics QCPU — Appendix 1.4 Operation Processing Time of Universal Model QCPU diagram (page 1052)
Fig. 1413 · Appendix 1.4 Operation Processing Time of Universal…

n = 1 2.300 3.100 1.700 2.500 1.700 2.500

n = 15 2.400 3.100 1.800 2.500 1.800 2.500

n = 1 2.300 3.900 1.700 3.200 1.700 3.200

n = 15 2.400 4.100 1.700 3.200 1.700 3.200

n = 1 2.400 3.300 1.800 3.200 1.800 3.200

n = 15 2.400 3.300 1.800 3.200 1.800 3.200

n = 1 2.400 2.700 1.800 2.100 1.800 2.100

n = 15 2.400 2.800 1.800 2.200 1.800 2.200

n = 1 2.400 3.400 1.900 2.700 1.900 2.700

n = 31 2.500 3.400 1.900 2.700 1.900 2.700

n = 1 2.500 4.800 1.900 4.200 1.900 4.200

n = 31 2.500 4.900 1.900 4.200 1.900 4.200

n = 1 2.500 3.900 1.800 3.200 1.800 3.200

n = 31 2.500 3.900 1.800 3.300 1.800 3.300

n = 1 2.500 4.800 1.900 3.800 1.900 3.800

n = 31 2.500 4.600 1.900 3.800 1.900 3.800

n = 1 2.400 3.900 1.700 2.600 1.700 2.600

n = 15 2.300 3.900 1.800 2.600 1.800 2.600

n = 1 2.400 4.300 1.800 2.700 1.800 2.700

n = 15 2.400 4.300 1.800 2.700 1.800 2.700

n = 1 2.700 4.800 2.200 4.300 2.200 4.300

n = 96 32.600 35.900 23.900 26.100 23.900 26.100

n = 1 2.700 4.600 2.100 4.000 2.100 4.000

n = 96 32.600 35.300 23.700 25.800 23.700 25.800

= FFFFH 3.500 4.200 2.900 3.600 2.900 3.600

SEG When executed 2.100 2.800 1.500 2.100 1.500 2.100

Internal file pointer 2.600 4.000 2.300 3.600 2.300 3.600

CALL Pn to –– 28.700 33.400 26.100 29.300 26.100 29.300

For the instructions for which a leading edge instruction ( P) is not described, the processing time is the same as an ON execution instruction.

Example

MOVP instruction, WANDP instruction etc.

App-62

Page 1053 of the Mitsubishi Electronics QCPU user manual — App-63
Page 1053 · click to enlarge
Page 1053

(2) Table of the time to be added when file register, module access device is used

(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU

Device name data Device Specification

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Source 0.100

Destination 0.220

Source 0.100

When standard RAM is used

Destination 0.100

Source 0.200

Destination 0.200

Source –– –– –– 0.220

When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)

Destination –– –– –– 0.420

Source –– –– –– 0.220

(R)

Destination –– –– –– 0.180

Source –– –– –– 0.440

A

Destination –– –– –– 0.380

Source –– –– –– 0.160

Destination –– –– –– 0.320

When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)

Source –– –– –– 0.160

Destination –– –– –– 0.140

Source –– –– –– 0.320

Destination –– –– –– 0.300

Source 0.220 0.180 0.160 0.140

Destination 0.280 0.320 0.300 0.280

Source 0.220 0.180 0.160 0.140

When standard RAM is used

Destination 0.220 0.180 0.160 0.140

Source 0.320 0.280 0.260 0.240

Destination 0.320 0.280 0.260 0.240

Source –– –– –– 0.260

(ZR)/

Destination –– –– –– 0.480

When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)

Source –– –– –– 0.260

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

Destination –– –– –– 0.220

Source –– –– –– 0.480

Destination –– –– –– 0.420

(W))

Source –– –– –– 0.200

When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)

Destination –– –– –– 0.380

Source –– –– –– 0.200

Destination –– –– –– 0.180

Source –– –– –– 0.360

Destination –– –– –– 0.340

Source ––

Module access device (Multiple CPU high speed trans- mission area) (U3En\G10000)

Destination ––

Source ––

Destination ––

Source ––

Destination ––

App-63

Show 29 more labels / short text on this page
Processing Time (µs) · Location · Bit · Word · Double word · Bit · File register · Word · Double word · Bit · Word · Double word · Bit · Word · Double word · File register · Bit · Extended · data register · Word · (D)/Extended · link register · Double word · Bit · Word · Double word · Bit · Word · Double word
Page 1054 of the Mitsubishi Electronics QCPU user manual — App-64
Page 1054 · click to enlarge
Page 1054

(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UDE(H)CPU,Q20UD(E)HCPU and Q26UD(E)HCPU

Device name data Device Specification

Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/

Q26UD(E)HCPU

Source 0.100 0.048 0.048

Destination 0.100 0.038 0.038

When standard RAM is used

Source 0.100 0.048 0.048

Destination 0.100 0.038 0.038

Source 0.200 0.095 0.095

Destination 0.200 0.086 0.086

Source 0.220 0.200 0.200

When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)

Destination 0.180 0.162 0.162

Source 0.220 0.200 0.200

(R)

Destination 0.180 0.162 0.162

Source 0.440 0.399 0.399

Destination 0.380 0.361 0.361

Source 0.160 0.152 0.152

Destination 0.140 0.133 0.133

When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)

Source 0.160 0.152 0.152

Destination 0.140 0.133 0.133

Source 0.320 0.304 0.304

Destination 0.300 0.295 0.295

Source 0.120 0.057 0.057

Destination 0.120 0.048 0.048

Source 0.120 0.057 0.057

When standard RAM is used

Destination 0.120 0.048 0.048

Source 0.220 0.105 0.105

Destination 0.220 0.095 0.095

Source 0.240 0.209 0.209

(ZR)/

When SRAM card is used (Q2MEM-1MBS, Q2MEM-2MBS)

Destination 0.200 0.171 0.171

Source 0.240 0.209 0.209

Destination 0.200 0.171 0.171

Source 0.460 0.409 0.409

Destination 0.400 0.371 0.371

(W))

Source 0.180 0.162 0.162

Destination 0.160 0.143 0.143

When SRAM card is used (Q3MEM-4MBS, Q3MEM-8MBS)

Source 0.180 0.162 0.162

Destination 0.160 0.143 0.143

Source 0.340 0.314 0.314

Destination 0.320 0.304 0.304

Source 0.220 0.181 0.181

Destination 0.140 0.105 0.105

Module access device (Multiple CPU high speed trans- mission area) (U3En\G10000)

Source 0.220 0.181 0.181

Destination 0.140 0.105 0.105

Source 0.500 0.437 0.437

Destination 0.340 0.285 0.285

App-64

Show 29 more labels / short text on this page
Processing Time (µs) · Location · Bit · Word · Double word · Bit · File register · Word · Double word · Bit · Word · Double word · Bit · Word · Double word · File register · Bit · Extended · data register · Word · (D)/Extended · link register · Double word · Bit · Word · Double word · Bit · Word · Double word
Page 1055 of the Mitsubishi Electronics QCPU user manual — App-65
Page 1055 · click to enlarge
Page 1055

(3) Table of the time to be added when F/T(ST)/C device is used in OUT/SET/RST instruction

(a) When using Q00UJCPU, Q00UCPU, Q01UCPU amd Q02UCPU.

name Device name Condition

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

When not executed 2.900 2.900 2.900 2.100

F

When displayed 116.000 116.000 116.000 68.800

Display completed 116.000 116.000 116.000 61.600

OUT

When not executed 0.360 0.240 0.180 0.120

T(ST), C

After time up 0.360 0.240 0.180 0.120

When added 0.360 0.240 0.180 0.120

When not executed 0.120 0.080 0.006 0.004

SET F

When displayed 116.000 116.000 116.000 68.600

Display completed 116.000 116.000 116.000 65.700

A

When not executed 0.120 0.080 0.006 0.004

F

When displayed 55.800 55.800 55.800 26.500

RST

Display completed 29.200 29.200 29.200 21.600

When not executed 0.360 0.240 0.180 0.120

T(ST), C

When executed 0.360 0.240 0.180 0.120

(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(EHCPU,

Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU

name Device name Condition

Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/ Q26UD(E)HCPU

When not executed 1.940 1.570 1.570

F

When displayed 39.930 38.090 38.090

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

OUT

Display completed 39.750 37.980 37.980

When not executed 0.060 0.030 0.030

T(ST), C

When executed After time up 0.060 0.030 0.030

When not executed 0.000 0.000 0.000

When displayed 42.900 40.600 40.600

SET F

Display completed 39.270 37.900 37.900

When not executed 0.000 0.000 0.000

When displayed 45.260 36.600 36.600

F

RST

Display completed 19.020 16.190 16.190

When not executed 0.060 0.030 0.030

T(ST), C

When executed 0.060 0.030 0.030

App-65

Show 11 more labels / short text on this page
Instruction · Processing Time (µs) · When executed · When executed · When executed · When executed · Processing Time (µs) · Instruction · When executed · When executed · When executed
Page 1056 of the Mitsubishi Electronics QCPU user manual — App-66
Page 1056 · click to enlarge
Page 1056

Appendix 1.4.2 Processing time of instructions other than subset instruction

The following table shows the processing time of instructions other than subset instructions.

(1) Table of the processing time of instructions other than subset instructions

(a) When using Q00UJCPU, Q00UCPU, Q01UCPU and Q02UCPU

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

ANB

ORB

MPS

–– 0.120 0.080 0.060 0.040

MRD

MPP

INV

0.120 0.080 0.060 0.040 When executed

MEP

0.120 0.080 0.060 0.040 When executed

MEF

EGP

0.120 0.080 0.060 0.040 When executed

EGF

PLS –– 1.800 1.900 1.800 1.900 1.800 1.900 1.300 1.600

PLF –– 1.800 1.900 1.800 1.900 1.800 1.900 1.600 1.700

When not executed 0.240 0.160 0.120 0.080

FF

When executed 1.700 1.800 1.700 1.800 1.700 1.800 1.200 1.500

When not executed 0.240 0.160 0.120 0.080

DELTA

When executed 4.000 14.700 4.000 14.700 4.000 14.700 2.800 3.600

When not executed 0.240 0.160 0.120 0.800

SFT

When executed 1.800 12.600 1.800 12.600 1.800 12.600 1.600 6.600

MC –– 0.240 0.160 0.120 0.080

MCR –– 0.120 0.080 0.060 0.040

FEND

Error check performed 250.000 175.000 252.000

END

No error check performed 250.000 175.000 221.000

App-66

Show 6 more labels / short text on this page
Processing Time (µs) · When not executed · When not executed · When not executed · Sequence · instruction
Page 1057 of the Mitsubishi Electronics QCPU user manual — App-67
Page 1057 · click to enlarge
Page 1057

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

NOP

NOPLF

–– 0.120 0.080 0.060 0.040

PAGE

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.100

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.100

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.200 12.500

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 11.900

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 10.800

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 9.800

A

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 7.700

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.600 8.200

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 14.200

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 14.200

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 6.700

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 6.600

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 13.700

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.600 13.700

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 8.100

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.200 8.100

When not executed 0.360 0.240 0.180 0.120

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 8.500

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 8.100

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.100

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 9.600

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.100 7.800

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 8.200

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 10.300

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 9.800

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.500

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 10.900

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.300 9.200

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 9.400

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 10.400

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.400 9.800

App-67

Show 55 more labels / short text on this page
Processing Time (µs) · Sequence · instruction · LDE= Single · precision · ANDE= Single · When · precision · executed · ORE= Single · When · precision · executed · LDE< > Single · precision · ANDE< > Single · When · precision · executed · ORE< > Single · When · precision · executed · LDE> Single · precision · ANDE> Single · Basic · When · precision · instruction · executed · ORE> Single · When · precision · executed · LDE<= Single · precision · ANDE<= Single · When · precision · executed · ORE<= Single · When · precision · executed · LDE< Single · precision · ANDE< Single · When · precision · executed · ORE< Single · When · precision · executed
Page 1058 of the Mitsubishi Electronics QCPU user manual — App-68
Page 1058 · click to enlarge
Page 1058

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

In conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 12.200

In non-conductive status 4.400 20.900 4.400 20.900 4.400 20.900 4.700 11.800

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.100 6.700

In non-conductive status 4.200 19.600 4.200 19.600 4.200 19.600 4.400 7.000

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.600 14.000

In non-conductive status 4.200 17.400 4.200 17.400 4.200 17.400 4.500 14.300

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 21.000

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 21.900

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 3.800 17.800

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 18.100

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.100 23.800

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.900 25.500

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 23.500

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 22.600

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 18.800

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 18.700

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.200

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.100 23.400

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 25.100

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 23.400

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.500

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 24.200

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.900 25.800

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 22.500

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 13.500

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.600

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 26.300

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.200

App-68

Show 53 more labels / short text on this page
Processing Time (µs) · LDE>= Single · precision · ANDE>= Single · When · precision · executed · ORE>= Single · When · precision · executed · LDED= Double · precision · ANDED= Double · precision · When · executed · ORED= Double · precision · When · executed · LDED<> Double · precision · ANDED<> Double · Basic · When · precision · instruction · executed · ORED<> Double · When · precision · executed · LDED> Double · precision · ANDED> Double · When · precision · executed · ORED> Double · When · precision · executed · LDED<= Double · precision · ANDED<= Double · precision · When · executed · ORED<= Double · precision · When · executed
Page 1059 of the Mitsubishi Electronics QCPU user manual — App-69
Page 1059 · click to enlarge
Page 1059

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 5.100 25.000

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 24.100

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.000 19.400

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.700

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100

In conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.200 13.100

In non-conductive status 4.700 37.400 4.700 37.400 4.700 37.400 4.300 13.100

When not executed 0.360 0.240 0.180 0.120

A

In conductive status 4.500 34.700 4.500 34.700 4.500 34.700 3.900 19.500

In non-conductive status 4.500 34.700 4.500 34.700 4.500 34.700 4.100 19.800

When not executed 0.360 0.240 0.180 0.120

In conductive status 4.700 33.200 4.700 33.200 4.700 33.200 5.000 25.100

In non-conductive status 4.700 33.200 4.700 33.200 4.700 33.200 4.200 18.500

In conductive status 8.300 38.500 8.300 38.500 8.300 38.500 5.500 14.900

LD$=

In non-conductive status 8.300 38.500 8.300 38.500 8.300 38.500 5.500 15.600

When not executed 0.360 0.240 0.180 0.120

AND$=

In conductive status 7.200 37.300 7.200 37.300 7.200 37.300 5.200 13.800

In non-conductive status 7.200 37.300 7.200 37.300 7.200 37.300 5.300 14.500

When not executed 0.360 0.240 0.180 0.120

OR$=

In conductive status 7.500 36.600 7.500 36.600 7.500 36.600 5.500 14.900

In non-conductive status 7.500 36.600 7.500 36.600 7.500 36.600 5.300 14.600

In conductive status 8.300 39.300 8.300 39.300 8.300 39.300 5.600 15.200

LD$< >

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

In non-conductive status 8.300 39.300 8.300 39.300 8.300 39.300 5.600 15.400

When not executed 0.360 0.240 0.180 0.120

AND$< >

In conductive status 8.000 38.200 8.000 38.200 8.000 38.200 4.300 21.500

In non-conductive status 8.000 38.200 8.000 38.200 8.000 38.200 4.500 23.400

When not executed 0.360 0.240 0.180 0.120

OR$< >

In conductive status 8.300 37.300 8.300 37.300 8.300 37.300 5.400 17.700

In non-conductive status 8.300 37.300 8.300 37.300 8.300 37.300 5.300 19.400

In conductive status 8.300 41.600 8.300 41.600 8.300 41.600 6.400 19.200

LD$>

In non-conductive status 8.300 41.600 8.300 41.600 8.300 41.600 5.600 20.100

When not executed 0.360 0.240 0.180 0.120

In conductive status 8.000 38.100 8.000 38.100 8.000 38.100 4.500 15.400

AND$>

In non-conductive status 8.000 38.100 8.000 38.100 8.000 38.100 4.600 15.300

When not executed 0.360 0.240 0.180 0.120

In conductive status 8.200 35.700 8.200 35.700 8.200 35.700 5.400 20.000

OR$>

In non-conductive status 8.200 35.700 8.200 35.700 8.200 35.700 5.400 22.100

In conductive status 8.300 39.200 8.300 39.200 8.300 39.200 5.800 12.800

LD$<=

In non-conductive status 8.300 39.200 8.300 39.200 8.300 39.200 6.300 13.900

When not executed 0.360 0.240 0.180 0.120

AND$<=

In conductive status 7.100 36.500 7.100 36.500 7.100 36.500 6.000 16.000

In non-conductive status 7.100 36.500 7.100 36.500 7.100 36.500 6.100 16.200

App-69

Show 30 more labels / short text on this page
Processing Time (µs) · LDED< Double · precision · ANDED< Double · When · precision · executed · ORED< Double · When · precision · executed · LDED>= Double · precision · ANDED>= Double · precision · When · executed · ORED>= Double · precision · When · executed · When executed · Basic · instruction · When executed · When executed · When executed · When executed · When executed · When executed
Page 1060 of the Mitsubishi Electronics QCPU user manual — App-70
Page 1060 · click to enlarge
Page 1060

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

When not executed 0.360 0.240 0.180 0.120

OR$<=

In conductive status 7.400 35.600 7.400 35.600 7.400 35.600 4.700 14.600

In non-conductive status 7.400 35.600 7.400 35.600 7.400 35.600 4.600 14.400

In conductive status 7.400 40.000 7.400 40.000 7.400 40.000 4.800 17.000

LD$<

In non-conductive status 7.400 40.000 7.400 40.000 7.400 40.000 5.500 18.000

When not executed 0.360 0.240 0.180 0.120

AND$<

In conductive status 8.000 37.300 8.000 37.300 8.000 37.300 5.900 13.400

In non-conductive status 8.000 37.300 8.000 37.300 8.000 37.300 6.200 14.500

When not executed 0.360 0.240 0.180 0.120

OR$<

In conductive status 8.300 35.600 8.300 35.600 8.300 35.600 6.200 18.700

In non-conductive status 8.300 35.600 8.300 35.600 8.300 35.600 5.400 19.700

In conductive status 7.400 38.300 7.400 38.300 7.400 38.300 4.800 10.000

LD$>=

In non-conductive status 7.400 38.300 7.400 38.300 7.400 38.300 5.500 11.200

When not executed 0.360 0.240 0.180 0.120

AND$>=

In conductive status 7.200 37.300 7.200 37.300 7.200 37.300 4.400 21.600

In non-conductive status 7.200 37.300 7.200 37.300 7.200 37.300 4.500 21.800

When not executed 0.360 0.240 0.180 0.120

OR$>=

In conductive status 8.200 36.400 8.200 36.400 8.200 36.400 5.400 15.400

In non-conductive status 8.200 36.400 8.200 36.400 8.200 36.400 5.300 15.300

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.600

S1 S2 D

n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.500

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500

S1 S2 D

n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.500

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 23.100

S1 S2 D

n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.400

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500

S1 S2 D

n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.400

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.300 23.000

S1 S2 D

n = 96 66.600 87.500 66.600 87.500 66.600 87.500 59.500 74.500

n = 1 15.300 36.100 15.300 36.100 15.300 36.100 8.200 22.500

S1 S2 D

n = 96 64.500 85.500 64.500 85.500 64.500 85.500 57.400 72.400

n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000

S1 S2 D

n = 96 64.900 85.700 64.900 85.700 64.900 85.700 60.700 78.400

n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.350 28.900

S1 S2 D

n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.500 80.300

n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000

S1 S2 D

n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.600 80.300

n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.350 29.000

S1 S2 D

n = 96 64.800 85.700 64.800 85.700 64.800 85.700 60.800 78.400

n = 1 15.800 36.300 15.800 36.300 15.800 36.300 9.350 29.000

S1 S2 D

n = 96 67.000 87.700 67.000 87.700 67.000 87.700 62.700 80.400

n = 1 15.700 36.300 15.700 36.300 15.700 36.300 9.300 29.000

S1 S2 D

n = 96 64.800 85.700 64.800 85.700 64.800 85.700 60.700 78.400

App-70

Show 20 more labels / short text on this page
Processing Time (µs) · When executed · When executed · When executed · When executed · When executed · BKCMP = n · Basic · instruction · BKCMP<> n · BKCMP> n · BKCMP<= n · BKCMP< n · BKCMP>= n · DBKCMP = n · DBKCMP<> n · DBKCMP> n · DBKCMP<= n · DBKCMP< n · DBKCMP>= n
Page 1061 of the Mitsubishi Electronics QCPU user manual — App-71
Page 1061 · click to enlarge
Page 1061

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

DB + When executed 5.750 13.300 5.750 13.300 5.750 13.300 4.900 7.500

S D

DB + When executed 5.650 13.200 5.650 13.200 5.650 13.200 5.200 11.000

S1 S2 D

DB - When executed 5.750 12.700 5.750 12.700 5.750 12.700 4.900 10.200

S D

DB - When executed 5.650 12.600 5.650 12.600 5.650 12.600 5.200 8.600

S1 S2 D

DB * When executed 8.750 40.200 8.750 40.200 8.750 40.200 8.300 22.200

S1 S2 D

DB/ When executed 5.750 21.500 5.750 21.500 5.750 21.500 6.100 19.200

S1 S2 D

S D

= 0, = 0 4.500 26.700 4.500 26.700 4.500 26.700 4.800 16.800

ED +

S D

= 21023, = 21023 5.800 32.900 5.800 32.900 5.800 32.900 4.800 16.800

S D

A

= 0, = 0 5.450 35.400 5.450 35.400 5.450 35.400 7.100 20.100

S1 S2

ED +

S1 S2 D

= 21023, = 21023 6.750 41.400 6.750 41.400 6.750 41.400 7.100 20.100

S1 S2

S D

= 0, = 0 5.200 25.900 5.200 25.900 5.200 25.900 5.000 17.300

ED -

S D

= 21023, = 21023 6.000 27.700 6.000 27.700 6.000 27.700 5.000 17.300

S D

= 0, = 0 5.550 32.900 5.550 32.900 5.550 32.900 6.000 16.300

S1 S2

ED -

S1 S2 D

= 21023, = 21023 5.750 33.900 5.750 33.900 5.750 33.900 6.000 16.300

S1 S2

S1 S2

= 0, = 0 5.550 34.400 5.550 34.400 5.550 34.400 10.500 22.300

ED *

S1 S2 D

= 21023, = 21023 5.950 39.100 5.950 39.100 5.950 39.100 10.500 22.300

S1 S2

ED /

S1 S2 D S1 S2

sion = 21023, = 21023 8.050 44.200 8.050 44.200 8.050 44.200 7.500 27.200

n = 1 13.500 28.500 13.500 28.500 13.500 28.500 12.100 19.700

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

S1 S2 D

n = 96 63.100 78.200 63.100 78.200 63.100 78.200 61.700 69.300

n = 1 13.500 28.500 13.500 28.500 13.500 28.500 12.100 20.600

S1 S2 D

n = 96 63.100 78.200 63.100 78.200 63.100 78.200 61.700 70.200

n = 1 10.100 24.200 10.100 24.200 10.100 24.200 7.050 19.200

S1 S2 D

n = 96 59.800 73.900 59.800 73.900 59.800 73.900 59.400 68.900

n = 1 10.100 24.200 10.100 24.200 10.100 24.200 7.050 19.900

S1 S2 D

n = 96 59.800 73.900 59.800 73.900 59.800 73.900 59.400 69.600

$ + –– 15.400 64.300 15.400 64.300 15.400 64.300 14.400 34.000

S D

$ + –– 19.700 71.000 19.700 71.000 19.700 71.000 9.200 22.900

S1 S2 D

= 0 3.100 19.600 3.100 19.600 3.100 19.600 4.000 8.900

FLTD

= 7FFFH 3.350 19.900 3.350 19.900 3.350 19.900 3.400 9.000

= 0 3.200 20.400 3.200 20.400 3.200 20.400 4.100 10.800

DFLTD

= 7FFFFFFFH 3.450 20.500 3.450 20.500 3.450 20.500 3.600 10.800

= 0 3.200 22.900 3.200 22.900 3.200 22.900 3.500 9.300

INTD

= 32766.5 4.100 34.300 4.100 34.300 4.100 34.300 5.100 19.500

= 0 3.200 23.000 3.200 23.000 3.200 23.000 2.600 6.800

DINTD

= 1234567890.3 4.050 33.500 4.050 33.500 4.050 33.500 3.400 11.700

App-71

Show 36 more labels / short text on this page
Processing Time (µs) · Double · preci- · sion · Double · preci- · sion · Double · preci- · sion · Double · preci- · sion · Double · preci- · sion · Basic · Double · instruction · preci- · BK + n · BK - n · DBK + n · DBK - n · Double · preci- · sion · Double · preci- · sion · Double · preci- · sion · Double · preci- · sion
Page 1062 of the Mitsubishi Electronics QCPU user manual — App-72
Page 1062 · click to enlarge
Page 1062

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

DBL When executed 3.300 5.900 3.300 5.900 3.300 5.900 2.700 3.800

WORD When executed 3.000 7.250 3.000 7.250 3.000 7.250 2.900 7.000

GRY When executed 3.350 7.500 3.350 7.500 3.350 7.500 2.700 6.100

DGRY When executed 3.000 7.200 3.000 7.200 3.000 7.200 2.900 4.600

GBIN When executed 4.600 9.700 4.600 9.700 4.600 9.700 4.000 8.200

DGBIN When executed 5.550 10.700 5.550 10.700 5.550 10.700 5.500 8.000

NEG When executed 3.300 6.850 3.300 6.850 3.300 6.850 2.400 4.100

DNEG When executed 3.050 5.700 3.050 5.700 3.050 5.700 2.500 4.300

Floating point = 0 3.100 7.350 3.100 7.350 3.100 7.350 2.500 3.400

ENEG

Floating point = -1.0 3.350 11.700 3.350 11.700 3.350 11.700 2.700 4.500

Floating point = 0 3.000 21.200 3.000 21.200 3.000 21.200 2.200 3.500

EDNEG

Floating point = -1.0 3.100 22.900 3.100 22.900 3.100 22.900 2.400 3.500

n = 1 8.700 27.600 8.700 27.600 8.700 27.600 9.700 22.000

S D

n = 96 84.200 104.000 84.200 104.000 84.200 104.000 74.200 86.500

n = 1 8.450 28.100 8.450 28.100 8.450 28.100 8.900 16.300

S D

n = 96 56.100 75.800 56.100 75.800 56.100 75.800 58.500 65.100

ECON –– 3.100 21.300 3.100 21.300 3.100 21.300 4.300 6.800

EDCON –– 5.050 24.000 5.050 24.000 5.050 24.000 2.800 5.400

EDMOV –– 2.900 22.900 2.900 22.900 2.900 22.900 3.200 7.800

Character string to be

transferred = 0 6.250 30.100 6.250 30.100 6.250 30.100 4.500 13.900

$MOV

Character string to be

transferred = 32 15.500 39.300 15.500 39.300 15.500 39.300 15.400 17.500

n = 1 8.400 20.900 8.400 20.900 8.400 20.900 8.700 15.200

D1 D2

n = 96 67.100 79.900 67.100 79.900 67.100 79.900 67.200 74.000

SWAP –– 3.300 3.550 3.300 3.550 3.300 3.550 2.400 2.700

GOEND –– 0.550 0.550 0.550 0.500

DI –– 2.800 8.400 2.800 8.400 2.800 8.400 1.800 2.200

EI –– 4.300 12.300 4.300 12.300 4.300 12.300 3.100 3.800

IMASK –– 12.900 40.600 12.900 40.600 12.900 40.600 9.800 25.000

IRET –– 1.000

n = 1 7.500 26.500 7.500 26.500 7.500 26.500 4.300 16.100

n = 96 11.400 30.400 11.400 30.400 11.400 30.400 11.400 23.700

n = 1 7.300 26.300 7.300 26.300 7.300 26.300 3.800 10.000

n = 96 10.900 29.900 10.900 29.900 10.900 29.900 8.500 15.200

UDCNT1 –– 1.500 7.100 1.500 7.100 1.500 7.100 1.000 2.000

UDCNT2 –– 1.500 6.300 1.500 6.300 1.500 6.300 1.000 4.000

TTMR –– 5.300 20.900 5.300 20.900 5.300 20.900 3.900 6.100

STMR –– 8.900 49.800 8.900 49.800 8.900 49.800 7.200 30.000

ROTC –– 52.300 52.600 52.300 52.600 52.300 52.600 15.200 16.100

RAMP –– 7.400 30.900 7.400 30.900 7.400 30.900 5.900 18.300

SPD –– 1.500 6.300 1.500 6.300 1.500 6.300 1.000 2.800

PLSY –– 6.400 7.100 6.400 7.100 6.400 7.100 3.500 4.700

PWM –– 3.900 4.600 3.900 4.600 3.900 4.600 3.400 3.400

MTR –– 10.100 61.400 10.100 61.400 10.100 61.400 20.500 28.400

App-72

Show 8 more labels / short text on this page
Processing Time (µs) · BKBCD n · BKBIN n · Basic · instruction · BXCH n · RSF X n · RSF Y n
Page 1063 of the Mitsubishi Electronics QCPU user manual — App-73
Page 1063 · click to enlarge
Page 1063

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

n = 1 13.600 28.500 13.600 28.500 13.600 28.500 12.100 20.100

S1 S2 D

n = 96 63.200 78.200 63.200 78.200 63.200 78.200 57.400 63.200

n = 1 13.500 28.500 13.500 28.500 13.500 28.500 7.700 13.200

S1 S2 D

n = 96 63.100 78.200 63.100 78.200 63.100 78.200 57.400 62.800

n = 1 13.600 28.300 13.600 28.300 13.600 28.300 7.800 13.200

S1 S2 D

n = 96 63.100 78.000 63.100 78.000 63.100 78.000 57.300 62.800

n = 1 13.500 28.300 13.500 28.300 13.500 28.300 7.800 14.100

S1 S2 D

n = 96 63.100 78.000 63.100 78.000 63.100 78.000 57.400 62.900

n = 1 5.050 21.100 5.050 21.100 5.050 21.100 3.700 6.300

n = 96 9.000 34.800 9.000 34.800 9.000 34.800 10.200 12.800

n = 1 4.800 19.100 4.800 19.100 4.800 19.100 4.500 8.900

A

n = 96 8.550 34.300 8.550 34.300 8.550 34.300 10.100 14.300

n1 = 16 / n2 = 1 10.300 46.500 10.300 46.500 10.300 46.500 8.800 43.400

n1 = 16 / n2 = 15 10.300 46.400 10.300 46.400 10.300 46.400 8.750 43.400

n1 = 16 / n2 = 1 10.500 49.800 10.500 49.800 10.500 49.800 8.050 45.100

n1 = 16 / n2 = 15 10.500 49.800 10.500 49.800 10.500 49.800 8.050 45.100

n1 = 16 / n2 = 1 7.950 24.000 7.950 24.000 7.950 24.000 6.500 22.800

n1 = 16 / n2 = 15 7.950 24.100 7.950 24.100 7.950 24.100 6.500 22.800

n1 = 16 / n2 = 1 8.700 23.600 8.700 23.600 8.700 23.600 7.350 23.600

n1 = 16 / n2 = 15 8.650 23.700 8.650 23.700 8.650 23.700 7.300 23.700

n = 1 4.550 4.750 4.550 4.750 4.550 4.750 3.000 3.400

n = 15 4.550 4.750 4.550 4.750 4.550 4.750 3.000 3.500

n = 1 4.600 4.750 4.600 4.750 4.600 4.750 3.000 3.400

n = 15 4.600 4.750 4.600 4.750 4.600 4.750 3.000 3.400

TEST When executed 7.250 13.200 7.250 13.200 7.250 13.200 4.400 6.900

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

DTEST When executed 6.950 12.900 6.950 12.900 6.950 12.900 4.500 7.000

n = 1 7.350 11.600 7.350 11.600 7.350 11.600 4.300 5.200

n = 96 10.100 22.600 10.100 22.600 10.100 22.600 6.500 13.200

All match 6.650 6.800 6.650 6.800 6.650 6.800 5.000 5.300

None match 6.650 6.800 6.650 6.800 6.650 6.800 5.000 5.300

S1 S2 D

All match 34.000 42.300 34.000 42.300 34.000 42.300 32.300 35.900

None match 34.000 42.300 34.000 42.300 34.000 42.300 32.400 35.900

All match 8.000 16.300 8.000 16.300 8.000 16.300 6.800 10.200

None match 8.000 16.300 8.000 16.300 8.000 16.300 6.800 10.200

S1 S2 D

All match 54.100 62.600 54.100 62.600 54.100 62.600 52.800 56.300

None match 54.100 62.600 54.100 62.600 54.100 62.600 52.800 56.300

= 0 4.100 4.200 4.100 4.200 4.100 4.200 3.700 4.100

DSUM

S D

= FFFFFFFFH 4.100 4.200 4.100 4.200 4.100 4.200 3.800 4.100

n = 2 8.850 23.000 8.850 23.000 8.850 23.000 6.000 16.400

S D

n = 8 13.600 36.600 13.600 36.600 13.600 36.600 8.100 15.200

M1 = ON 7.650 11.900 7.650 11.900 7.650 11.900 5.300 6.300

M4 = ON 7.500 11.700 7.500 11.700 7.500 11.700 5.200 6.200

S D

M1 = ON 14.600 27.800 14.600 27.800 14.600 27.800 10.400 17.900

M256 = ON 10.600 23.700 10.600 23.700 10.600 23.700 5.700 13.300

App-73

Show 26 more labels / short text on this page
Processing Time (µs) · BKAND n · BKOR n · BKXOR n · BKXNR n · BSFR n · BSFL n · SFTBR n1 n2 · SFTBL n1 n2 · SFTWR n1 n2 · SFTWL n1 n2 · BSET n · Application · instruction · BRST n · BKRST n · n = 1 · SER n · n = · n = 1 · DSER n · n = · DECO n · n = 2 · ENCO n · n = 8
Page 1064 of the Mitsubishi Electronics QCPU user manual — App-74
Page 1064 · click to enlarge
Page 1064

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

n = 1 6.500 14.800 6.500 14.800 6.500 14.800 5.000 10.900

S D

n = 4 6.900 15.200 6.900 15.200 6.900 15.200 5.400 11.300

n = 1 6.800 15.100 6.800 15.100 6.800 15.100 5.500 8.900

S D

n = 4 7.500 15.900 7.500 15.900 7.500 15.900 6.200 9.600

NDIS When executed 4.750 18.700 4.750 18.700 4.750 18.700 11.000 16.300

NUNI When executed 4.750 18.700 4.750 18.700 4.750 18.700 10.600 16.000

n = 1 6.600 14.900 6.600 14.900 6.600 14.900 5.000 6.500

S D

n = 96 37.700 46.100 37.700 46.100 37.700 46.100 36.000 38.400

n = 1 7.350 15.600 7.350 15.600 7.350 15.600 5.100 6.100

S D

n = 96 32.100 40.500 32.100 40.500 32.100 40.500 29.900 32.000

n = 1 8.250 24.900 8.250 24.900 8.250 24.900 4.300 6.900

S D

n = 96 34.200 51.600 34.200 51.600 34.200 51.600 32.000 34.300

n = 1 8.250 24.800 8.250 24.800 8.250 24.800 4.400 6.800

S D

n = 96 34.200 51.600 34.200 51.600 34.200 51.600 30.300 34.800

n = 1 6.800 34.900 6.800 34.900 6.800 34.900 4.800 14.200

S D

n = 96 60.300 89.200 60.300 89.200 60.300 89.200 56.400 68.000

n = 1 7.600 35.700 7.600 35.700 7.600 35.700 4.800 9.300

S D

n = 96 59.400 90.000 59.400 90.000 59.400 90.000 55.400 62.800

n = 1 10.100 28.900 10.100 28.900 10.100 28.900 6.200 12.200

S1 S2 D1 D2

n = 96 52.100 92.400 52.100 92.400 52.100 92.400 6.200 13.100

n = 1 9.300 29.000 9.300 29.000 9.300 29.000 6.200 10.500

S1 S2 D1 D2

n = 96 43.600 89.600 43.600 89.600 43.600 89.600 6.100 10.500

n = 1 6.700 15.000 6.700 15.000 6.700 15.000 4.800 6.200

S D

n = 96 28.900 37.100 28.900 37.100 28.900 37.100 26.900 28.700

n = 1 8.600 26.800 8.600 26.800 8.600 26.800 5.500 7.000

S D

n = 96 56.200 74.700 56.200 74.700 56.200 74.700 53.000 56.300

n = 1 5.850 19.800 5.850 19.800 5.850 19.800 4.300 17.300

S D

n = 96 17.300 38.200 17.300 38.200 17.300 38.200 16.000 35.500

n = 1 6.900 23.300 6.900 23.300 6.900 23.300 5.750 21.900

S D

n = 96 29.400 49.900 29.400 49.900 29.400 49.900 29.200 48.600

NEXT –– 1.000 1.100 1.000 1.100 1.000 1.100 0.980 1.400

BREAK –– 4.700 25.000 4.700 25.000 4.700 25.000 21.300 17.900

Return to original program 4.100 19.500 4.100 19.500 4.100 19.500 2.000 3.000

RET

Return to other program 4.700 16.700 4.700 16.700 4.700 16.700 2.300 4.900

Internal file pointer 5.400 3.300 5.300

Common pointer 7.600 30.500 7.600 30.500 7.600 30.500 4.900 6.600

FCALL Pn to –– 50.400 62.700 50.400 62.700 50.400 62.700 19.800 23.700

S1 S5

*: Program name –– 105.000 214.000 105.000 214.000 105.000 214.000 75.700 134.000

ECALL * Pn to

S1 S5

*: Program name –– 164.000 271.000 164.000 271.000 164.000 271.000 109.000 173.000

*: Program name –– 105.000 214.000 105.000 214.000 105.000 214.000 76.200 134.000

EFCALL * Pn to

*: Program name –– 164.000 271.000 164.000 271.000 164.000 271.000 90.500 170.000

S1 S5

XCALL –– 5.100 6.700 5.100 6.700 5.100 6.700 3.800 6.400

App-74

Show 20 more labels / short text on this page
Processing Time (µs) · DIS n · UNI n · WTOB n · BTOW n · MAX n · MIN n · DMAX n · DMIN n · SORT n · DSORT n · Application · WSUM n · instruction · DWSUM n · MEAN n · DMEAN n · FCALL Pn · ECALL * Pn · EFCALL * Pn
Page 1065 of the Mitsubishi Electronics QCPU user manual — App-75
Page 1065 · click to enlarge
Page 1065

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

When selecting I/O refresh only 18.100 89.100 18.100 89.100 18.100 89.100 12.800 79.000

When selecting CC-Link refresh

33.300 132.000 33.300 132.000 33.300 132.000 24.900 119.000

only (Master station side)

When selecting CC-Link refresh

only (Local station side)

33.300 132.000 33.300 132.000 33.300 132.000 24.900 119.000

78.600 231.000 78.600 231.000 78.600 231.000 54.000 212.000

refresh only (Control station side)

78.600 231.000 78.600 231.000 78.600 231.000 54.000 212.000

refresh only (Normal station side)

When selecting intelli auto

18.100 89.000 18.100 89.000 18.100 89.000 12.800 79.000

COM

CCOM

When selecting I/O outside the

A

15.700 71.600 15.700 71.600 15.700 71.600 8.600 76.500

group only (Input only)

When selecting I/O outside the

40.200 152.000 40.200 152.000 40.200 152.000 26.300 135.000

group only (Output only)

When selecting I/O outside the

group only (Both I/O)

45.800 153.000 45.800 153.000 45.800 153.000 26.100 135.000

When selecting refresh of multi-

ple CPU high speed transmission

––

18.200 89.000 18.200 89.000 18.200 89.000 7.250 54.300

Number of data points = 0 6.100 14.200 6.100 14.200 6.100 14.200 3.700 10.100

FIFW

Number of data points = 96 6.100 14.200 6.100 14.200 6.100 14.200 3.800 5.200

Number of data points = 0 7.500 15.600 7.500 15.600 7.500 15.600 4.400 5.800

FIFR

Number of data points = 96 37.000 45.000 37.000 45.000 37.000 45.000 33.500 35.200

Number of data points = 0 7.600 15.600 7.600 15.600 7.600 15.600 4.400 10.800

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

FPOP

Number of data points = 96 7.600 15.600 7.600 15.600 7.600 15.600 4.400 10.800

Number of data points = 0 6.900 15.000 6.900 15.000 6.900 15.000 5.000 10.700

FINS

Number of data points = 96 36.600 44.700 36.600 44.700 36.600 44.700 4.400 10.900

Number of data points = 0 8.000 16.100 8.000 16.100 8.000 16.100 4.900 11.300

FDEL

Number of data points = 96 37.300 45.500 37.300 45.500 37.300 45.500 34.200 35.900

n3 = 1 17.400 74.700 17.400 74.700 17.400 74.700 12.100 71.300

FROM n1 n2 n3

n3 = 1000 406.000 498.500 406.000 498.500 406.000 498.500 402.600 495.100

n3 = 1 19.600 85.600 19.600 85.600 19.600 85.600 14.600 81.800

DFRO n1 n2 n3

n3 = 500 406.000 498.500 406.000 498.500 406.000 498.500 402.600 495.100

n3 = 1 16.400 69.600 16.400 69.600 16.400 69.600 11.700 63.400

TO n1 n2 n3

n3 = 1000 381.300 471.200 381.300 471.200 381.300 471.200 375.900 464.300

n3 = 1 18.600 85.100 18.600 85.100 18.600 85.100 14.200 78.500

DTO n1 n2 n3

n3 = 500 381.300 471.200 381.300 471.200 381.300 471.200 375.900 464.300

No display no display 1.500 7.100 1.500 7.100 1.500 7.100 5.100 5.100

LEDR

LED instruction execution no

38.900 109.000 38.900 109.000 38.900 109.000 35.700 89.200

= 1 5.600 13.900 5.600 13.900 5.600 13.900 4.900 6.500

BINDA

S D

= -32768 7.800 16.200 7.800 16.200 7.800 16.200 7.200 8.700

= 1 6.200 14.500 6.200 14.500 6.200 14.500 5.700 7.100

DBINDA

S D

= -2147483648 11.000 19.200 11.000 19.200 11.000 19.200 10.400 12.200

App-75

Show 10 more labels / short text on this page
Processing Time (µs) · When selecting MELSECNET/H · When selecting MELSECNET/H · refresh only · area only · When selecting communication · with peripheral device · Application · instruction · display
Page 1066 of the Mitsubishi Electronics QCPU user manual — App-76
Page 1066 · click to enlarge
Page 1066
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1066)
Fig. 1414 · Appendix 1.4.2 Processing time of instructions other…

= 1 5.050 13.400 5.050 13.400 5.050 13.400 4.400 5.900

= FFFFH 5.050 13.400 5.050 13.400 5.050 13.400 4.400 5.800

= 1 5.600 13.900 5.600 13.900 5.600 13.900 5.200 6.700

= FFFFFFFFH 5.600 13.900 5.600 13.900 5.600 13.900 5.100 6.500

= 1 4.850 13.200 4.850 13.200 4.850 13.200 4.300 5.800

= 9999 5.300 13.600 5.300 13.600 5.300 13.600 4.700 6.100

= 1 5.300 13.600 5.300 13.600 5.300 13.600 4.800 6.300

= 99999999 6.200 14.500 6.200 14.500 6.200 14.500 5.600 7.100

= 1 7.000 18.500 7.000 18.500 7.000 18.500 6.500 9.000

= -32768 6.950 18.500 6.950 18.500 6.950 18.500 6.300 8.900

= 1 9.450 21.000 9.450 21.000 9.450 21.000 9.400 12.000

= -2147483648 9.450 21.000 9.450 21.000 9.450 21.000 9.100 11.600

= 1 5.650 17.100 5.650 17.100 5.650 17.100 4.900 7.500

= FFFFH 5.750 17.300 5.750 17.300 5.750 17.300 5.100 8.100

= 1 6.800 18.200 6.800 18.200 6.800 18.200 6.000 8.500

= FFFFFFFFH 7.100 18.600 7.100 18.600 7.100 18.600 6.300 8.900

= 1 5.650 17.200 5.650 17.200 5.650 17.200 5.000 7.500

= 9999 5.700 17.200 5.700 17.200 5.700 17.200 5.000 7.500

= 1 6.850 18.300 6.850 18.300 6.850 18.300 6.200 8.800

= 99999999 6.850 18.300 6.850 18.300 6.850 18.300 6.200 8.800

COMRD –– 185.000 188.000 185.000 188.000 185.000 188.000 97.300 97.400

1 character 4.700 16.200 4.700 16.200 4.700 16.200 4.100 6.600

96 characters 20.600 32.900 20.600 32.900 20.600 32.900 19.800 22.400

STR –– 9.800 36.500 9.800 36.500 9.800 36.500 6.900 14.400

DSTR –– 12.100 40.400 12.100 40.400 12.100 40.400 10.200 20.800

VAL –– 12.200 40.900 12.200 40.900 12.200 40.900 9.800 23.900

DVAL –– 19.400 45.600 19.400 45.600 19.400 45.600 14.000 33.100

ESTR –– 29.700 87.800 29.700 87.800 29.700 87.800 22.100 52.400

App-76

Page 1067 of the Mitsubishi Electronics QCPU user manual — App-77
Page 1067 · click to enlarge
Page 1067

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

Decimal point format all 2-digit specification 23.900 70.400 23.900 70.400 23.900 70.400 23.300 36.500

EVAL

Exponent format all 6-digit specification 23.700 70.300 23.700 70.300 23.700 70.300 23.300 36.400

n = 1 10.200 41.800 10.200 41.800 10.200 41.800 5.600 19.700

S D

n = 96 31.900 66.600 31.900 66.600 31.900 66.600 30.200 44.700

n = 1 8.600 43.400 8.600 43.400 8.600 43.400 7.500 23.100

S D

n = 96 77.100 115.000 77.100 115.000 77.100 115.000 37.500 53.300

n = 1 10.900 29.600 10.900 29.600 10.900 29.600 7.600 11.400

S D

n = 96 41.400 60.300 41.400 60.300 41.400 60.300 36.300 46.000

n = 1 10.600 29.300 10.600 29.300 10.600 29.300 6.500 16.100

S D

A

n = 96 41.300 60.200 41.300 60.200 41.300 60.200 36.200 46.200

MIDR –– 11.700 30.600 11.700 30.600 11.700 30.600 9.500 19.100

MIDW –– 12.400 24.000 12.400 24.000 12.400 24.000 10.300 18.200

No match 22.000 38.200 22.000 38.200 22.000 38.200 19.300 29.000

INSTR

Head 13.300 29.600 13.300 29.600 13.300 29.600 10.300 20.000

End 21.900 38.100 21.900 38.100 21.900 38.100 51.100 60.800

EMOD –– 11.600 24.000 11.600 24.000 11.600 24.000 10.300 15.300

EREXP –– 19.700 28.000 19.700 28.000 19.700 28.000 19.300 22.300

S D

= 128 / = 40 /

47.000 102.000 47.000 102.000 47.000 102.000 44.300 96.700

S D

= 128 / = 40 /

S D

70.100 134.000 70.100 134.000 70.100 134.000 58.800 112.000

S D

= 128 / = 40 /

46.400 93.600 46.400 93.600 46.400 93.600 39.000 78.100

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

S D

= 128 / = 40 /

S D

44.500 70.600 44.500 70.600 44.500 70.600 36.000 69.200

SIN Single precision 6.400 13.900 6.400 13.900 6.400 13.900 4.500 9.900

COS Single precision 6.100 13.500 6.100 13.500 6.100 13.500 4.300 8.200

TAN Single precision 8.300 15.000 8.300 15.000 8.300 15.000 5.100 7.200

ASIN Single precision 7.300 15.600 7.300 15.600 7.300 15.600 6.100 13.700

ACOS Single precision 8.100 16.500 8.100 16.500 8.100 16.500 6.800 11.100

ATAN Single precision 5.350 12.000 5.350 12.000 5.350 12.000 4.000 6.900

SIND Double precision 13.400 51.300 13.400 51.300 13.400 51.300 9.600 26.000

COSD Double precision 14.700 51.700 14.700 51.700 14.700 51.700 10.000 26.900

TAND Double precision 17.400 54.400 17.400 54.400 17.400 54.400 11.400 25.300

ASIND Double precision 22.600 60.300 22.600 60.300 22.600 60.300 12.100 30.800

ACOSD Double precision 19.700 60.000 19.700 60.000 19.700 60.000 11.700 28.000

ATAND Double precision 15.000 51.800 15.000 51.800 15.000 51.800 9.700 22.000

RAD Single precision 3.200 10.300 3.200 10.300 3.200 10.300 2.500 4.800

RADD Double precision 5.200 43.100 5.200 43.100 5.200 43.100 4.100 16.400

DEG Single precision 3.200 11.500 3.200 11.500 3.200 11.500 2.500 4.700

DEGD Double precision 5.150 43.800 5.150 43.800 5.150 43.800 5.000 18.100

SQR Single precision 3.900 12.300 3.900 12.300 3.900 12.300 3.500 9.300

SQRD Double precision 7.000 45.700 7.000 45.700 7.000 45.700 5.700 25.400

= -10 6.350 13.800 6.350 13.800 6.350 13.800 4.000 13.000

EXP

S D

= 1 6.350 13.800 6.350 13.800 6.350 13.800 4.000 13.000

App-77

Show 16 more labels / short text on this page
Processing Time (µs) · ASC n · HEX n · RIGHT n · LEFT n · Match · n = 1 · STRINS n · n = 48 · Application · instruction · n = 1 · STRDEL n · n = 48 · Single · precision
Page 1068 of the Mitsubishi Electronics QCPU user manual — App-78
Page 1068 · click to enlarge
Page 1068
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1068)
Fig. 1415 · Appendix 1.4.2 Processing time of instructions other…

= -10 15.800 52.700 15.800 52.700 15.800 52.700 8.800 27.600

= 1 15.400 52.500 15.400 52.500 15.400 52.500 8.500 27.300

= 1 5.800 14.900 5.800 14.900 5.800 14.900 4.100 8.100

= 10 7.450 16.500 7.450 16.500 7.450 16.500 6.200 10.300

= 1 11.000 48.900 11.000 48.900 11.000 48.900 9.500 28.300

= 10 12.600 51.300 12.600 51.300 12.600 51.300 11.100 29.900

RND –– 1.950 5.450 1.950 5.450 1.950 5.450 1.200 2.300

SRND –– 2.750 4.550 2.750 4.550 2.750 4.550 1.400 2.400

= 0 2.500 6.800 2.500 6.800 2.500 6.800 1.800 3.300

= 9999 6.400 15.500 6.400 15.500 6.400 15.500 5.100 8.800

= 0 2.600 6.050 2.600 6.050 2.600 6.050 1.900 3.700

= 99999999 8.450 17.600 8.450 17.600 8.450 17.600 7.500 10.900

BSIN –– 11.500 32.800 11.500 32.800 11.500 32.800 8.700 20.200

BCOS –– 10.400 32.500 10.400 32.500 10.400 32.500 7.800 14.400

BTAN –– 12.100 33.700 12.100 33.700 12.100 33.700 9.000 17.000

BASIN –– 13.300 32.800 13.300 32.800 13.300 32.800 12.200 15.100

BACOS –– 13.400 33.700 13.400 33.700 13.400 33.700 13.100 14.900

BATAN –– 12.600 31.400 12.600 31.400 12.600 31.400 11.400 15.700

LOG10 Single precision 8.200 16.500 8.200 16.500 8.200 16.500 5.950 14.800

LOG10D Double precision 15.100 48.000 15.100 48.000 15.100 48.000 12.400 46.500

LIMIT –– 5.350 5.500 5.350 5.500 5.350 5.500 5.200 5.400

DLIMIT –– 6.000 6.150 6.000 6.150 6.000 6.150 5.700 5.900

BAND –– 5.450 12.400 5.450 12.400 5.450 12.400 5.400 6.300

DBAND –– 6.050 11.900 6.050 11.900 6.050 11.900 5.800 6.900

ZONE –– 6.250 10.700 6.250 10.700 6.250 10.700 5.200 11.100

DZONE –– 6.000 11.900 6.000 11.900 6.000 11.900 5.700 10.800

App-78

Page 1069 of the Mitsubishi Electronics QCPU user manual — App-79
Page 1069 · click to enlarge
Page 1069
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1069)
Fig. 1416 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-79

Page 1070 of the Mitsubishi Electronics QCPU user manual — App-80
Page 1070 · click to enlarge
Page 1070
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1070)
Fig. 1417 · Appendix 1.4.2 Processing time of instructions other…

Standard RAM 6.800 26.900 6.800 26.900 6.800 26.900 3.000 16.400

SRAM card –– 3.000 16.400

SRAM card to standard RAM –– 230.000 327.000

Standard RAM to SRAM card –– 997.000 1066.000

SRAM card to standard ROM –– 525.000 690.000

Standard ROM to SRAM card –– 490.000 655.000

DATERD –– 5.600 27.800 5.600 27.800 5.600 27.800 5.100 14.700

DATEWR –– 7.800 42.100 7.800 42.100 7.800 42.100 7.100 23.000

No digit increase 14.200 41.200 14.200 41.200 14.200 41.200 6.500 13.100

Digit increase 14.200 41.200 14.200 41.200 14.200 41.200 5.700 21.200

No digit increase 15.100 41.200 15.100 41.200 15.100 41.200 6.500 11.500

Digit increase 15.100 41.200 15.100 41.200 15.100 41.200 5.700 17.200

SECOND –– 5.800 20.500 5.800 20.500 5.800 20.500 2.600 5.900

HOUR –– 6.200 22.500 6.200 22.500 6.200 22.500 3.000 5.300

App-80

Page 1071 of the Mitsubishi Electronics QCPU user manual — App-81
Page 1071 · click to enlarge
Page 1071
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1071)
Fig. 1418 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-81

Page 1072 of the Mitsubishi Electronics QCPU user manual — App-82
Page 1072 · click to enlarge
Page 1072
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1072)
Fig. 1419 · Appendix 1.4.2 Processing time of instructions other…

App-82

Page 1073 of the Mitsubishi Electronics QCPU user manual — App-83
Page 1073 · click to enlarge
Page 1073
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1073)
Fig. 1420 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-83

Page 1074 of the Mitsubishi Electronics QCPU user manual — App-84
Page 1074 · click to enlarge
Page 1074
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1074)
Fig. 1421 · Appendix 1.4.2 Processing time of instructions other…

App-84

Page 1075 of the Mitsubishi Electronics QCPU user manual — App-85
Page 1075 · click to enlarge
Page 1075
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1075)
Fig. 1422 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-85

Page 1076 of the Mitsubishi Electronics QCPU user manual — App-86
Page 1076 · click to enlarge
Page 1076

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

When not executed 0.480 0.320 0.240 0.160

8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000

8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000

ANDTM>=

6.500 23.100 6.500 23.100 6.500 23.100 5.600 21.900

6.500 23.100 6.500 23.100 6.500 23.100 5.600 21.900

When not executed 0.480 0.320 0.240 0.160

8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000

8.200 25.500 8.200 25.500 6.500 25.500 7.000 23.000

ORTM>=

6.500 23.100 6.500 23.100 6.500 23.100 5.900 22.100

6.500 23.100 6.500 23.100 6.500 23.100 5.900 22.100

S.DATERD –– 9.250 51.000 9.250 51.000 9.250 51.000 7.500 23.400

No digit increase 16.800 75.400 16.800 75.400 16.800 75.400 9.100 23.400

S.DATE +

Digit increase 16.800 75.400 16.800 75.400 16.800 75.400 8.900 22.200

No digit increase 17.600 75.300 17.600 75.300 17.600 75.300 9.000 22.200

S.DATE -

Digit increase 16.900 75.300 16.900 75.300 16.900 75.300 9.800 22.100

PSTOP –– 82.200 199.000 82.200 199.000 82.200 199.000 61.400 84.500

POFF –– 82.600 198.000 82.600 198.000 82.600 198.000 121.000 246.000

PSCAN –– 83.600 200.000 83.600 200.000 83.600 200.000 126.000 232.000

WDT –– 2.900 12.000 2.900 12.000 2.900 12.000 1.300 3.000

DUTY –– 7.700 27.500 7.700 27.500 7.700 27.500 4.900 24.300

TIMCHK –– 5.350 24.500 5.350 24.500 5.350 24.500 7.400 23.300

File register of standard RAM 4.100 4.200 4.100 4.200 4.100 4.200 2.400 2.600

ZRRDB

File register of SRAM card –– 2.500 2.800

File register of standard RAM 5.400 5.500 5.400 5.500 5.400 5.500 3.100 3.300

ZRWRB

File register of SRAM card –– 3.300 3.600

ADRSET –– 2.400 6.650 2.400 6.650 2.400 6.650 4.200 4.900

ZPUSH –– 9.200 20.500 9.200 20.500 9.200 20.500 6.900 14.000

ZPOP –– 9.000 15.500 9.000 15.500 9.000 15.500 7.500 12.500

App-86

Show 31 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · status · of specified · ciock · In nonconductive · status · In conductive · Comparison · status · of current · In nonconductive · ciock · status · In conductive · Comparison · status · of specified · In nonconductive · ciock · status · In conductive · Comparison · status · of current · ciock · In nonconductive · Application · status · instruction
Page 1077 of the Mitsubishi Electronics QCPU user manual — App-87
Page 1077 · click to enlarge
Page 1077

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

29.400 91.700 29.400 91.700 29.400 91.700 20.600 55.000

29.500 91.600 29.500 91.600 29.500 91.600 20.600 66.100

S.ZCOM

MELSECNET/H,

79.900 214.000 79.900 214.000 79.900 214.000 102.000 180.000

A

MELSECNET/H,

79.900 214.000 79.900 214.000 79.900 214.000 29.800 102.000

S.RTREAD –– 9.200 57.700 9.200 57.700 9.200 57.700 6.700 33.500

S.RTWRITE –– 10.900 67.100 10.900 67.100 10.900 67.100 8.300 26.000

n2 = 1 6.000 33.100 6.000 33.100 6.000 33.100 4.000 29.100

n2 = 16 16.500 43.600 16.500 43.600 16.500 43.600 12.500 37.600

TYPERD 48.50 141.30 43.50 139.90 43.40 139.80 32.40 134.20

TRACE Start 174.000 96.600 103.000

TRACER –– 5.100 15.500 5.100 15.500 5.100 15.500 3.800 13.600

1 point –– –– 12.200 34.900 12.200 34.900 9.400 31.300

–– –– 121.500 145.100 121.500 145.100 118.500 141.300

S D

1 point –– 9.400 31.400

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

–– 178.500 201.300

SP.FWRITE –– 9.200 12.100

SP.FREAD –– 489.000 544.000

SP.DEVST –– 87.000 144.000

S.DEVLD –– 127.000 140.000

App-87

Show 25 more labels / short text on this page
Processing Time (µs) · When mounting CC-Link · module · (Master station side) · When mounting CC-Link · module · (Local station side) · When mounting · CC-Link IEcontroller · network module(Control · station side) · When mounting · CC-Link IEcontroller · network module(Normal · station side) · Application · instruction · UNIRD n1 n2 · When standard · RAM is used · points · RBNOV n · When SRAM · card is used · points
Page 1078 of the Mitsubishi Electronics QCPU user manual — App-88
Page 1078 · click to enlarge
Page 1078

Category Instruction Condition (Device)

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Min. Max. Min. Max. Min. Max. Min. Max.

n4 = 1 64.600 78.100 64.600 78.100 64.600 78.100 64.600 78.100

S.TO n1 n2 n3 n4

n4 = 320 115.000 126.000 115.000 126.000 115.000 126.000 154.000 126.000

n3 = 1 12.700 62.200 12.700 62.200 12.700 62.200 8.300 58.200

TO n1 n2 n3

n3 = 320 63.500 112.300 63.500 112.300 63.500 112.300 56.200 107.800

n3 = 1 13.500 62.300 13.500 62.300 13.500 62.300 8.600 58.300

DTO n1 n2 n3

n3 = 320 112.900 160.800 112.900 160.800 112.900 160.800 106.800 157.300

n3 = 1 12.100 58.700 12.100 58.700 12.100 58.700 8.400 52.600

CPU

n3 = 320 56.000 101.700 56.000 101.700 56.000 101.700 51.700 96.600

FROM n1 n2 n3

n3 = 1 24.400 82.900 24.400 82.900 24.400 82.900 16.600 37.000

n3 = 320 152.000 243.000 152.000 243.000 152.000 243.000 153.000 185.000

n3 = 1000 418.000 518.000 418.000 518.000 418.000 518.000 432.000 485.000

n3 = 1 12.100 58.700 12.100 58.700 12.100 58.700 8.800 53.400

n3 = 320 97.400 143.700 97.400 143.700 97.400 143.700 94.900 139.600

DFRO n1 n2 n3

n3 = 1 24.800 94.200 24.800 94.200 24.800 94.200 16.600 47.300

n3 = 320 276.000 367.000 276.000 367.000 276.000 367.000 278.000 339.000

n3 = 1000 799.000 892.000 799.000 892.000 799.000 892.000 841.000 892.000

Remark

For the instructions for which a rise execution instruction ( P) is not specified, the processing time is the same as an ON execution instruction.

Example

WORDP instruction and TOP instruction

App-88

Show 25 more labels / short text on this page
Processing Time (µs) · Writing to host · CPU shared · memory · Writing to host · CPU shared · memory · Writing to host · CPU shared · memory · Multiple · Reading from · host CPU shared · dedicated · memory · instruction · Reading from · other CPU · shared memory · Reading from · host CPU shared · memory · Reading from · other CPU · shared memory
Page 1079 of the Mitsubishi Electronics QCPU user manual — PAGE
Page 1079 · click to enlarge
Page 1079

(b) When using Q03UD(E)JCPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU

Q03UD(E)CPU Q04/Q06UD(E)HCPU Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Min. Max. Min. Max. Min. Max.

ANB

ORB

MPS

–– 0.020 0.0095 0.0095

MRD

MPP

INV

0.020 0.0095 0.0095 When executed

MEP

0.020 0.0095 0.0095 When executed

MEF

A

EGP

0.020 0.0095 0.0095 When executed

EGF

PLS –– 1.300 1.600 0.890 1.100 0.890 1.100

PLF –– 1.500 1.600 0.940 1.200 0.940 1.200

When not executed 0.040 0.0185 0.0185

FF

When executed 1.200 1.500 0.790 0.910 0.790 0.910

When not executed 0.040 0.0185 0.0185

DELTA

When executed 2.800 3.600 2.400 3.200 2.400 3.200

When not executed 0.040 0.0185 0.0185

SFT

When executed 1.600 3.300 1.100 2.700 1.100 2.700

MC –– 0.040 0.0185 0.0185

MCR –– 0.040 0.0185 0.0185

FEND

Error check performed 108.000 130.000 75.800 89.300 75.800 89.300

END

No error check performed 107.000 124.000 75.800 89.800 75.800 89.800

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

NOP

NOPLF

–– 0.020 0.0095 0.0095

PAGE

App-89

Show 6 more labels / short text on this page
Processing Time (µs) · When not executed · When not executed · When not executed · Sequence · instruction
Page 1080 of the Mitsubishi Electronics QCPU user manual — App-90
Page 1080 · click to enlarge
Page 1080
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1080)
Fig. 1423 · Appendix 1.4.2 Processing time of instructions other…

In conductive status 3.700 4.700 3.300 4.300 3.300 4.300

In non-conductive status 3.300 5.800 3.000 5.100 3.000 5.100

When not executed 3.500 5.600 3.000 5.200 3.000 5.200

In conductive status 0.060 0.0285 0.0285 In non-conductive status 3.600 5.200 3.300 4.900

App-90

Page 1081 of the Mitsubishi Electronics QCPU user manual — App-91
Page 1081 · click to enlarge
Page 1081
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1081)
Fig. 1424 · Appendix 1.4.2 Processing time of instructions other…

In conductive status 3.800 6.000 3.300 5.500 0.0285 In non-conductive status 3.800 5.900 3.400 5.400

In conductive status 4.100 7.700 3.500 7.200 3.500 7.200

A

In non-conductive status 3.600 7.600 3.200 7.000 3.200 7.000

When not executed 3.900 7.700 3.400 7.400 3.400 7.400

In non-conductive status 3.800 8.800 3.400 8.300 3.400 8.300

In conductive status 4.000 9.300 3.700 8.800 3.700 8.800

In non-conductive status 4.400 8.200 3.900 7.700 3.900 7.700

When not executed 3.800 7.600 3.300 7.200 3.300 7.200

In conductive status 3.800 7.700 3.400 7.300 3.400 7.300

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

In conductive status 4.100 9.300 3.700 8.900 3.700 8.900

In non-conductive status 3.800 8.900 3.400 8.400 3.400 8.400

When not executed 4.300 8.100 3.800 7.500 3.800 7.500

4.100 7.800 3.500 7.200 3.500 7.200 In non-conductive status

In conductive status 3.800 7.700 3.300 7.300 3.300 7.300

In non-conductive status 4.000 7.900 3.500 7.500 3.500 7.500

In non-conductive status 4.100 9.300 3.700 8.800 3.700 8.800

When not executed 4.100 9.300 3.700 8.800 3.700 8.800

In conductive status 4.000 8.000 3.500 7.400 3.500 7.400

In non-conductive status 3.800 7.700 3.300 7.200 3.300 7.200

App-91

Page 1082 of the Mitsubishi Electronics QCPU user manual — App-92
Page 1082 · click to enlarge
Page 1082
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1082)
Fig. 1425 · Appendix 1.4.2 Processing time of instructions other…

In conductive status 4.300 8.300 3.800 7.600 3.800 7.600

In non-conductive status 3.800 7.800 3.300 7.300 3.300 7.300

When not executed 3.900 7.900 3.400 3.900 3.400 3.900

In non-conductive status 4.100 9.600 3.700 9.200 3.700 9.200

In conductive status 4.000 9.600 3.700 9.200 3.700 9.200

In non-conductive status 4.100 9.600 3.600 9.000 3.600 9.000

When not executed 3.800 7.900 3.400 7.400 3.400 7.400

In conductive status 3.900 8.100 3.400 7.500 3.400 7.500

In conductive status 4.100 9.600 3.700 9.200 3.700 9.200

In non-conductive status 4.000 7.200 3.600 6.600 3.600 6.600

When not executed 5.300 8.900 4.700 8.100 4.700 8.100

In conductive status 4.700 9.000 4.200 8.200 4.200 8.200

When not executed 4.400 6.800 3.900 6.400 3.900 6.400

In conductive status 4.500 6.700 4.000 6.300 4.000 6.300

In conductive status 5.100 8.200 4.200 7.600 4.200 7.600

In non-conductive status 5.000 8.100 4.000 7.200 4.000 7.200

When not executed 4.800 8.100 4.300 7.500 4.300 7.500

In conductive status 4.700 8.400 4.200 7.800 4.200 7.800

When not executed 4.300 5.500 4.100 5.100 4.100 5.100

In conductive status 4.500 5.900 4.400 5.400 4.400 5.400

In conductive status 5.200 7.300 4.100 6.700 4.100 6.700

In non-conductive status 5.100 7.200 4.100 6.700 4.100 6.700

When not executed 4.800 7.200 4.300 6.700 4.300 6.700

In conductive status 4.800 7.700 4.200 7.100 4.200 7.100

When not executed 4.500 7.100 4.000 6.700 4.000 6.700

In conductive status 4.600 7.600 4.300 7.000 4.300 7.000

In conductive status 5.100 6.800 4.300 6.200 4.300 6.200

In non-conductive status 5.200 7.200 4.300 6.600 4.300 6.600

When not executed 5.000 6.300 4.400 5.700 4.400 5.700

In conductive status 4.800 6.400 4.200 5.800 4.200 5.800

App-92

Page 1083 of the Mitsubishi Electronics QCPU user manual — App-93
Page 1083 · click to enlarge
Page 1083
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1083)
Fig. 1426 · Appendix 1.4.2 Processing time of instructions other…

In conductive status 4.700 7.700 4.400 7.200 4.400 7.200

In non-conductive status 4.600 7.600 4.400 7.100 4.400 7.100

In conductive status 4.800 8.100 4.500 7.500 4.500 7.500

In non-conductive status 5.000 8.300 4.500 7.900 4.500 7.900

In conductive status 4.500 7.100 4.000 6.600 4.000 6.600

In non-conductive status 4.900 7.500 4.400 7.100 4.400 7.100

In conductive status 5.100 7.800 4.100 7.200 4.100 7.200

A

In non-conductive status 5.000 8.100 4.100 7.600 4.100 7.600

In conductive status 4.800 6.700 4.500 6.200 4.500 6.200

In non-conductive status 5.000 6.700 4.400 6.300 4.400 6.300

In conductive status 4.400 6.800 4.100 6.300 4.100 6.300

In non-conductive status 4.500 7.000 4.200 6.600 4.200 6.600

In conductive status 5.400 6.600 4.100 5.800 4.100 5.800

In non-conductive status 5.300 6.300 4.100 5.700 4.100 5.700

n = 1 8.200 10.700 7.500 10.000 7.500 10.000

n = 96 57.400 61.800 46.400 48.700 46.400 48.700

n = 1 8.200 10.700 7.500 10.000 7.500 10.000

n = 96 59.500 63.300 45.600 50.400 45.600 50.400

n = 1 8.200 10.800 7.500 10.100 7.500 10.100

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

n = 96 59.500 63.400 47.700 50.500 47.700 50.500

n = 1 8.200 10.600 7.500 10.000 7.500 10.000

n = 96 57.400 61.700 46.400 49.000 46.400 49.000

n = 1 8.300 10.600 7.500 10.000 7.500 10.000

n = 96 59.500 63.600 47.600 50.500 47.600 50.500

n = 1 8.200 10.900 7.500 10.000 7.500 10.000

n = 96 57.400 62.000 46.400 48.900 46.400 48.900

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

n = 1 9.250 14.000 8.600 13.000 8.600 13.000

n = 96 60.700 67.500 47.900 52.800 47.900 52.800

App-93

Page 1084 of the Mitsubishi Electronics QCPU user manual — App-94
Page 1084 · click to enlarge
Page 1084
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1084)
Fig. 1427 · Appendix 1.4.2 Processing time of instructions other…

DB + When executed 4.900 7.000 4.600 6.400 4.600 6.400

DB + When executed 5.200 7.300 4.800 6.700 4.800 6.700

DB - When executed 4.900 6.600 4.700 6.000 4.700 6.000

DB - When executed 5.200 7.500 4.800 6.600 4.800 6.600

DB * When executed 8.300 12.100 8.100 11.600 8.100 11.600

DB/ When executed 6.100 9.100 5.800 8.800 5.800 8.800

= 0, = 0 4.800 8.000 4.300 7.200 4.300 7.200

= 21023, = 21023 4.800 8.000 4.300 7.200 4.300 7.200

= 0, = 0 5.500 9.800 4.800 9.200 4.800 9.200

= 21023, = 21023 5.500 9.800 4.800 9.200 4.800 9.200

= 0, = 0 5.000 8.200 4.400 7.500 4.400 7.500

= 21023, = 21023 5.000 8.200 4.400 7.500 4.400 7.500

= 0, = 0 4.400 8.100 3.800 7.500 3.800 7.500

= 21023, = 21023 4.400 8.100 3.800 7.500 3.800 7.500

= 0, = 0 5.800 9.500 5.100 8.800 5.100 8.800

= 21023, = 21023 5.800 9.500 5.100 8.800 5.100 8.800

sion = 21023, = 21023 6.600 10.600 5.900 10.000 5.900 10.000

n = 1 9.100 11.200 8.500 10.600 8.500 10.600

n = 96 60.700 62.900 44.600 47.000 44.600 47.000

n = 1 9.700 12.000 8.900 11.300 8.900 11.300

n = 96 61.300 63.600 45.600 47.900 45.600 47.900

n = 1 7.000 10.700 6.450 9.950 6.450 9.950

n = 96 59.400 63.100 43.700 47.500 43.700 47.500

n = 1 7.000 10.700 6.450 9.950 6.450 9.950

n = 96 59.400 63.100 43.700 47.500 43.700 47.500

$ + –– 8.800 14.600 8.100 13.900 8.100 13.900

$ + –– 7.300 11.100 6.500 10.300 6.500 10.300

= 7FFFH 2.500 5.200 2.200 4.800 2.200 4.800

= 7FFFFFFFH 2.700 5.400 2.300 5.100 2.300 5.100

App-94

Page 1085 of the Mitsubishi Electronics QCPU user manual — App-95
Page 1085 · click to enlarge
Page 1085
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1085)
Fig. 1428 · Appendix 1.4.2 Processing time of instructions other…

DBL When executed 2.700 3.400 2.300 2.700 2.300 2.700

WORD When executed 2.900 4.300 2.600 3.600 2.600 3.600

GRY When executed 2.700 3.900 2.300 3.400 2.300 3.400

DGRY When executed 2.900 3.500 2.500 3.000 2.500 3.000

GBIN When executed 4.000 4.800 3.800 4.300 3.800 4.300

DGBIN When executed 5.500 6.100 5.000 5.900 5.000 5.900

NEG When executed 2.400 3.900 2.000 3.300 2.000 3.300

DNEG When executed 2.500 3.700 2.500 3.300 2.500 3.300

Floating point = 0 2.500 3.300 2.300 2.800 2.300 2.800

Floating point = -1.0 2.700 4.500 2.500 3.900 2.500 3.900

A

Floating point = 0 2.200 3.500 1.800 3.100 1.800 3.100

Floating point = -1.0 2.400 3.500 1.900 3.000 1.900 3.000

n = 1 6.600 8.900 5.900 8.200 5.900 8.200

n = 96 71.300 74.100 61.000 63.400 61.000 63.400

n = 1 6.500 9.800 5.600 9.300 5.600 9.300

n = 96 56.300 59.500 49.200 52.500 49.200 52.500

transferred = 0 4.000 6.300 3.400 5.600 3.400 5.600

transferred = 32 14.600 16.500 11.400 13.300 11.400 13.300

n = 1 6.200 7.900 5.500 7.300 5.500 7.300

n = 96 67.000 68.800 47.300 49.300 47.300 49.300

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

n = 1 4.200 5.900 3.700 5.600 3.700 5.600

n = 96 11.400 13.800 10.700 12.400 10.700 12.400

n = 1 3.800 4.800 3.400 4.800 3.400 4.800

n = 96 8.500 9.500 8.100 8.900 8.100 8.900

App-95

Page 1086 of the Mitsubishi Electronics QCPU user manual — App-96
Page 1086 · click to enlarge
Page 1086
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1086)
Fig. 1429 · Appendix 1.4.2 Processing time of instructions other…

n = 1 9.000 11.700 8.300 11.000 8.300 11.000

n = 96 57.400 63.100 43.800 47.300 43.800 47.300

n = 1 7.700 10.000 7.700 9.500 7.700 9.500

n = 96 57.400 61.900 44.300 45.800 44.300 45.800

n = 1 7.800 10.100 7.300 9.200 7.300 9.200

n = 96 57.300 61.500 43.800 45.800 43.800 45.800

n = 1 7.800 9.600 7.600 8.900 7.600 8.900

n = 96 57.400 61.400 43.900 45.300 43.900 45.300

n = 1 3.700 5.400 3.200 4.800 3.200 4.800

n = 96 6.900 9.000 5.800 7.700 5.800 7.700

n = 1 4.100 5.900 3.400 5.100 3.400 5.100

n = 96 7.100 9.100 6.000 7.900 6.000 7.900

n1 = 16 / n2 = 1 7.950 17.500 7.600 16.900 7.600 16.900

n1 = 16 / n2 = 15 7.950 17.500 7.550 16.900 7.550 16.900

n1 = 16 / n2 = 1 7.950 17.900 7.500 17.400 7.500 17.400

n1 = 16 / n2 = 15 7.900 17.800 7.500 17.300 7.500 17.300

n1 = 16 / n2 = 1 5.950 10.600 4.600 8.700 4.600 8.700

n1 = 16 / n2 = 15 5.900 10.600 4.600 8.700 4.600 8.700

n1 = 16 / n2 = 1 5.950 10.700 4.550 8.700 4.550 8.700

n1 = 16 / n2 = 15 5.950 10.700 4.600 8.800 4.600 8.800

n = 1 3.000 3.400 2.500 2.800 2.500 2.800

n = 15 3.000 3.500 2.500 2.800 2.500 2.800

n = 1 3.000 3.400 2.600 2.800 2.600 2.800

n = 15 3.000 3.400 2.500 2.800 2.500 2.800

TEST When executed 4.400 5.300 3.700 4.700 3.700 4.700

DTEST When executed 4.500 5.400 3.900 4.800 3.900 4.800

n = 1 4.300 4.600 3.700 4.100 3.700 4.100

n = 96 6.000 6.800 5.100 6.000 5.100 6.000

= FFFFFFFFH 3.800 4.100 3.200 3.700 3.200 3.700

n = 2 6.000 7.500 5.300 6.900 5.300 6.900

n = 8 8.100 9.300 6.800 7.800 6.800 7.800

M1 = ON 5.300 5.700 4.700 5.100 4.700 5.100

M4 = ON 5.200 5.700 4.600 5.000 4.600 5.000

M1 = ON 10.400 11.400 9.000 10.000 9.000 10.000

M256 = ON 5.700 6.800 5.100 6.100 5.100 6.100

App-96

Page 1087 of the Mitsubishi Electronics QCPU user manual — App-97
Page 1087 · click to enlarge
Page 1087
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1087)
Fig. 1430 · Appendix 1.4.2 Processing time of instructions other…

n = 1 4.400 5.300 3.800 4.600 3.800 4.600

n = 4 4.800 5.700 4.000 5.000 4.000 5.000

n = 1 5.000 5.300 3.500 4.800 3.500 4.800

n = 4 5.600 6.000 4.000 5.100 4.000 5.100

NDIS When executed 11.000 13.100 11.000 13.200 11.000 13.200

NUNI When executed 10.600 12.700 7.300 13.200 7.300 13.200

n = 1 5.000 6.500 4.400 5.800 4.400 5.800

n = 96 36.000 38.400 28.200 29.300 28.200 29.300

n = 1 5.100 6.100 4.600 5.500 4.600 5.500

n = 96 29.900 32.000 22.800 23.800 22.800 23.800

A

n = 1 4.300 6.900 4.000 6.100 4.000 6.100

n = 96 31.200 33.500 24.700 27.000 24.700 27.000

n = 1 4.400 6.800 4.000 6.000 4.000 6.000

n = 96 30.300 34.800 26.500 28.300 26.500 28.300

n = 1 4.800 9.100 4.800 8.100 4.800 8.100

n = 96 56.400 62.200 47.100 49.600 47.100 49.600

n = 1 4.800 6.800 4.300 5.900 4.300 5.900

n = 96 55.400 60.200 45.400 47.400 45.400 47.400

n = 1 6.200 9.300 5.600 8.800 5.600 8.800

n = 96 6.200 9.400 5.600 8.600 5.600 8.600

n = 1 6.200 9.300 5.600 8.200 5.600 8.200

n = 96 6.100 9.100 5.600 8.400 5.600 8.400

n = 1 4.800 6.200 4.200 5.500 4.200 5.500

n = 96 26.900 28.700 21.300 22.300 21.300 22.300

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

n = 1 5.500 7.000 4.800 6.100 4.800 6.100

n = 96 53.000 56.300 42.700 44.000 42.700 44.000

n = 1 4.300 8.650 3.900 7.800 3.900 7.800

n = 96 16.000 21.400 12.900 18.000 12.900 18.000

n = 1 5.700 10.600 5.300 9.950 5.300 9.950

n = 96 29.200 35.200 23.000 28.800 23.000 28.800

Return to original program 2.000 3.000 1.600 2.600 1.600 2.600

Return to other program 2.300 3.700 2.000 3.100 2.000 3.100

Internal file pointer 3.100 4.400 2.700 3.600 2.700 3.600

FCALL Pn to –– 19.300 21.500 16.500 18.600 16.500 18.600

*: Program name –– 70.300 82.300 65.900 77.600 65.900 77.600

*: Program name –– 101.000 114.000 91.800 105.000 91.800 105.000

*: Program name –– 70.700 82.800 66.200 78.100 66.200 78.100

*: Program name –– 86.500 107.000 78.800 91.600 78.800 91.600

App-97

Page 1088 of the Mitsubishi Electronics QCPU user manual — App-98
Page 1088 · click to enlarge
Page 1088

Q03UD(E)CPU Q04/

Category Instruction Condition (Device)

Q10/Q13/Q20/ Q26UD(E)HCPU

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

When selecting I/O refresh only 12.800 29.100 12.400 28.600 12.400 28.600

When selecting CC-Link refresh

only (Master station side) 16.000 39.500 15.500 39.100 15.500 39.100

When selecting CC-Link refresh

only (Local station side) 16.100 39.500 15.500 39.100 15.500 39.100

refresh only (Control station side) 34.700 70.400 34.400 69.800 34.400 69.800

refresh only (Normal station side) 34.700 70.400 34.400 69.800 34.400 69.800

When selecting intelli auto

refresh only 12.800 33.200 12.800 33.200 12.800 33.200

COM

CCOM

When selecting I/O outside the

group only (Input only) 7.900 21.100 7.700 20.700 7.700 20.700

When selecting I/O outside the

group only (Output only) 16.900 44.800 16.500 44.200 16.500 44.200

When selecting I/O outside the

group only (Both I/O) 22.600 52.600 22.400 52.600 22.400 52.600

When selecting refresh of multi-

ple CPU high speed transmission

13.000 33.800 12.700 33.200 12.700 33.200

with peripheral device 7.250 18.800 7.100 18.500 7.100 18.500

Number of data points = 0 3.700 5.300 3.200 4.600 3.200 4.600

FIFW

Number of data points = 96 3.800 4.400 3.300 3.800 3.300 3.800

Number of data points = 0 4.300 5.000 3.800 4.400 3.800 4.400

FIFR

Number of data points = 96 33.500 35.500 24.800 25.700 24.800 25.700

Number of data points = 0 4.300 5.900 3.800 5.300 3.800 5.300

FPOP

Number of data points = 96 4.300 5.900 3.700 5.400 3.700 5.400

Number of data points = 0 4.800 5.900 3.700 5.300 3.700 5.300

FINS

Number of data points = 96 4.300 5.900 3.700 5.300 3.700 5.300

Number of data points = 0 4.900 6.500 4.200 5.800 4.200 5.800

FDEL

Number of data points = 96 34.200 35.900 25.400 25.900 25.400 25.900

n3 = 1 10.800 24.100 10.700 23.600 10.700 23.600

FROM n1 n2 n3

n3 = 1000 392.600 413.300 390.900 410.200 390.900 410.200

n3 = 1 13.600 27.700 12.600 26.700 12.600 26.700

DFRO n1 n2 n3

n3 = 500 392.600 413.300 390.900 410.200 390.900 410.200

n3 = 1 10.200 21.900 9.600 21.300 9.600 21.300

TO n1 n2 n3

n3 = 1000 373.700 394.100 372.500 390.800 372.500 390.800

n3 = 1 13.000 26.700 12.000 25.700 12.000 25.700

DTO n1 n2 n3

n3 = 500 373.700 394.100 372.500 390.800 372.500 390.800

No display no display 2.400 2.600 1.900 2.000 1.900 2.000

LEDR

LED instruction execution no

28.100 39.400 24.400 35.800 24.400 35.800

= 1 4.900 6.500 4.300 5.600 4.300 5.600

BINDA

S D

= -32768 7.200 8.700 6.500 8.000 6.500 8.000

= 1 5.700 7.100 4.900 6.300 4.900 6.300

DBINDA

S D

= -2147483648 10.400 12.000 9.600 11.000 9.600 11.000

App-98

Show 8 more labels / short text on this page
Processing Time (µs) · When selecting MELSECNET/H · When selecting MELSECNET/H · area only · When selecting communication · Application · instruction · display
Page 1089 of the Mitsubishi Electronics QCPU user manual — App-99
Page 1089 · click to enlarge
Page 1089
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1089)
Fig. 1431 · Appendix 1.4.2 Processing time of instructions other…

= FFFFH 4.400 5.800 3.700 5.200 3.700 5.200

= FFFFFFFFH 5.100 6.500 4.600 6.000 4.600 6.000

A

= FFFFH 5.100 7.300 4.600 6.500 4.600 6.500

= FFFFFFFFH 6.300 8.500 5.600 7.700 5.600 7.700

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

App-99

Page 1090 of the Mitsubishi Electronics QCPU user manual — App-100
Page 1090 · click to enlarge
Page 1090
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1090)
Fig. 1432 · Appendix 1.4.2 Processing time of instructions other…

all 2-digit specification 23.300 30.400 22.800 29.000 22.800 29.000

all 6-digit specification 23.300 30.500 22.500 29.000 22.500 29.000

n = 1 5.600 9.000 5.400 8.300 5.400 8.300

n = 96 28.700 32.100 25.200 28.400 25.200 28.400

n = 1 6.000 9.700 5.400 9.000 5.400 9.000

n = 96 35.600 39.800 31.300 35.000 31.300 35.000

n = 1 7.600 9.400 7.300 6.600 7.300 6.600

n = 96 36.300 40.000 29.200 31.600 29.200 31.600

n = 1 6.500 8.900 5.900 8.200 5.900 8.200

n = 96 36.200 39.700 29.200 31.500 29.200 31.500

SIN Single precision 4.500 6.200 4.100 5.700 4.100 5.700

COS Single precision 4.300 6.000 4.000 5.600 4.000 5.600

TAN Single precision 5.100 7.200 5.100 6.700 5.100 6.700

ASIN Single precision 6.100 8.900 5.900 8.500 5.900 8.500

ACOS Single precision 6.800 9.300 6.700 8.900 6.700 8.900

ATAN Single precision 4.000 6.500 3.900 6.000 3.900 6.000

SIND Double precision 8.800 14.300 8.500 13.800 8.500 13.800

COSD Double precision 9.300 15.100 8.800 14.600 8.800 14.600

TAND Double precision 11.200 16.900 10.800 16.500 10.800 16.500

ASIND Double precision 12.000 17.100 11.600 16.600 11.600 16.600

ACOSD Double precision 11.700 16.500 11.200 16.200 11.200 16.200

ATAND Double precision 9.500 14.200 9.100 13.800 9.100 13.800

RAD Single precision 2.500 4.800 2.100 4.300 2.100 4.300

RADD Double precision 4.000 9.600 3.600 9.200 3.600 9.200

DEG Single precision 2.500 4.700 2.200 4.400 2.200 4.400

DEGD Double precision 4.300 9.000 3.800 9.000 3.800 9.000

SQR Single precision 3.000 4.600 2.600 4.300 2.600 4.300

SQRD Double precision 5.600 11.500 5.200 11.000 5.200 11.000

App-100

Page 1091 of the Mitsubishi Electronics QCPU user manual — App-101
Page 1091 · click to enlarge
Page 1091
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1091)
Fig. 1433 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

18.600 27.200 18.200 26.500 18.200 26.500 LOG10D Double precision

App-101

Page 1092 of the Mitsubishi Electronics QCPU user manual — App-102
Page 1092 · click to enlarge
Page 1092
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1092)
Fig. 1434 · Appendix 1.4.2 Processing time of instructions other…

App-102

Page 1093 of the Mitsubishi Electronics QCPU user manual — App-103
Page 1093 · click to enlarge
Page 1093

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

Standard RAM 3.000 6.300 2.700 5.900 2.700 5.900

RSET

SRAM card 3.000 6.400 2.600 5.800 2.600 5.800

SRAM card to standard RAM 120.000 134.000 115.000 134.000 115.000 134.000

QDRSET

Standard RAM to SRAM card 533.000 560.000 520.000 553.000 520.000 553.000

SRAM card to standard ROM 306.000 346.000 305.000 346.000 305.000 346.000

QCDSET

Standard ROM to SRAM card 311.000 342.000 300.000 334.000 300.000 334.000

DATERD –– 3.200 5.000 2.500 4.200 2.500 4.200

DATEWR –– 4.900 9.700 4.100 8.900 4.100 8.900

No digit increase 5.100 8.000 4.700 6.600 4.700 6.600

DATE +

Digit increase 5.700 8.000 4.600 6.500 4.600 6.500

A

No digit increase 5.800 8.500 4.600 7.000 4.600 7.000

DATE -

Digit increase 5.700 7.400 4.600 6.500 4.600 6.500

SECOND –– 2.600 3.900 2.200 3.400 2.200 3.400

HOUR –– 2.900 4.800 2.400 4.300 2.400 4.300

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT =

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT=

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT=

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT <>

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

App-103

Show 43 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · Application · In conductive · instruction · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date
Page 1094 of the Mitsubishi Electronics QCPU user manual — App-104
Page 1094 · click to enlarge
Page 1094

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT<>

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT<>

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT>

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT>

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT>

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

App-104

Show 53 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · Application · instruction · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date
Page 1095 of the Mitsubishi Electronics QCPU user manual — App-105
Page 1095 · click to enlarge
Page 1095

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT<=

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

A

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT<=

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT<=

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT<

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT<

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT<

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

App-105

Show 63 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · Application · instruction · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · date · In nonconductive · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · date · In nonconductive
Page 1096 of the Mitsubishi Electronics QCPU user manual — App-106
Page 1096 · click to enlarge
Page 1096

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

status 7.400 11.400 6.800 10.900 6.800 10.900

status 7.400 11.600 6.800 10.900 6.800 10.900

LDDT>=

status 5.900 10.000 5.500 9.700 5.500 9.700

status 5.900 10.100 5.500 9.700 5.500 9.700

When not executed 0.008 0.038 0.038

status 7.200 11.400 6.500 10.700 6.500 10.700

status 7.200 11.400 6.500 10.700 6.500 10.700

ANDDT>=

status 5.700 9.900 5.300 9.300 5.300 9.300

status 5.700 9.900 5.300 9.300 5.300 9.300

When not executed 0.008 0.038 0.038

status 7.400 11.500 6.700 10.800 6.700 10.800

status 7.400 11.500 6.700 10.800 6.700 10.800

ORDT>=

status 5.900 10.000 5.400 9.600 5.400 9.600

status 5.900 10.000 5.400 9.600 5.400 9.600

status 7.300 11.500 6.700 10.800 6.700 10.800

status 7.300 11.500 6.700 10.800 6.700 10.800

LDTM=

status 5.800 9.900 5.400 9.500 5.400 9.500

status 5.800 9.900 5.400 9.500 5.400 9.500

When not executed 0.008 0.038 0.038

status 7.000 11.500 6.300 10.800 6.300 10.800

status 7.000 11.500 6.300 10.800 6.300 10.800

ANDTM=

status 5.500 9.900 5.100 9.500 5.100 9.500

status 5.500 9.900 5.100 9.500 5.100 9.500

When not executed 0.008 0.038 0.038

status 7.300 11.500 6.600 10.800 6.600 10.800

ORTM=

status 7.300 11.500 6.600 10.800 6.600 10.800

status 5.900 9.900 5.300 9.500 5.300 9.500

App-106

Show 62 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · date · In conductive · Comparison · of specified · In nonconductive · date · In conductive · Comparison · of current · In nonconductive · Application · date · instruction · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · ciock · In nonconductive · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · Comparison · In conductive · of current · ciock
Page 1097 of the Mitsubishi Electronics QCPU user manual — App-107
Page 1097 · click to enlarge
Page 1097

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

status 7.300 11.500 6.700 10.800 6.700 10.800

status 7.300 11.500 6.700 10.800 6.700 10.800

LDTM<>

status 5.800 9.900 5.400 9.500 5.400 9.500

status 5.800 9.900 5.400 9.500 5.400 9.500

When not executed 0.008 0.038 0.038

status 7.000 11.500 6.300 10.800 6.300 10.800

A

status 7.000 11.500 6.300 10.800 6.300 10.800

ANDTM<>

status 5.500 9.900 5.100 9.500 5.100 9.500

status 5.500 9.900 5.100 9.500 5.100 9.500

When not executed 0.008 0.038 0.038

status 7.300 11.500 6.600 10.800 6.600 10.800

status 7.300 11.500 6.600 10.800 6.600 10.800

ORTM<>

status 5.900 9.900 5.300 9.500 5.300 9.500

status 5.900 9.900 5.300 9.500 5.300 9.500

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

status 7.300 11.500 6.700 10.800 6.700 10.800

status 7.300 11.500 6.700 10.800 6.700 10.800

LDTM>

status 5.800 9.900 5.400 9.500 5.400 9.500

status 5.800 9.900 5.400 9.500 5.400 9.500

When not executed 0.008 0.038 0.038

status 7.000 11.500 6.300 10.800 6.300 10.800

status 7.000 11.500 6.300 10.800 6.300 10.800

ANDTM>

status 5.500 9.900 5.100 9.500 5.100 9.500

status 5.500 9.900 5.100 9.500 5.100 9.500

When not executed 0.008 0.038 0.038

status 7.300 11.500 6.600 10.800 6.600 10.800

status 7.300 11.500 6.600 10.800 6.600 10.800

ORTM>

status 5.900 9.900 5.300 9.500 5.300 9.500

status 5.900 9.900 5.300 9.500 5.300 9.500

App-107

Show 63 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · Application · instruction · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · ciock · In nonconductive · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · ciock · In nonconductive
Page 1098 of the Mitsubishi Electronics QCPU user manual — App-108
Page 1098 · click to enlarge
Page 1098

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

status 7.300 11.500 6.700 10.800 6.700 10.800

status 7.300 11.500 6.700 10.800 6.700 10.800

LDTM<=

status 5.800 9.900 5.400 9.500 5.400 9.500

status 5.800 9.900 5.400 9.500 5.400 9.500

When not executed 0.008 0.038 0.038

status 7.000 11.500 6.300 10.800 6.300 10.800

status 7.000 11.500 6.300 10.800 6.300 10.800

ANDTM<=

status 5.500 9.900 5.100 9.500 5.100 9.500

status 5.500 9.900 5.100 9.500 5.100 9.500

When not executed 0.008 0.038 0.038

status 7.300 11.500 6.600 10.800 6.600 10.800

status 7.300 11.500 6.600 10.800 6.600 10.800

ORTM<=

status 5.900 9.900 5.300 9.500 5.300 9.500

status 5.900 9.900 5.300 9.500 5.300 9.500

status 7.300 11.500 6.700 10.800 6.700 10.800

status 7.300 11.500 6.700 10.800 6.700 10.800

LDTM<

status 5.800 9.900 5.400 9.500 5.400 9.500

status 5.800 9.900 5.400 9.500 5.400 9.500

When not executed 0.480 0.320 0.240

status 8.200 25.500 8.200 25.500 6.500 25.500

status 8.200 25.500 8.200 25.500 6.500 25.500

ANDTM<

status 6.500 23.100 6.500 23.100 6.500 23.100

status 6.500 23.100 6.500 23.100 6.500 23.100

When not executed 0.480 0.320 0.240

status 8.200 25.500 8.200 25.500 6.500 25.500

status 8.200 25.500 8.200 25.500 6.500 25.500

ORTM<

status 6.500 23.100 6.500 23.100 6.500 23.100

status 6.500 23.100 6.500 23.100 6.500 23.100

App-108

Show 63 more labels / short text on this page
Processing Time (µs) · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · Application · instruction · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · ciock · In nonconductive · In conductive · Comparison · of current · In nonconductive · ciock · In conductive · Comparison · of specified · In nonconductive · ciock · In conductive · Comparison · of current · ciock · In nonconductive
Page 1099 of the Mitsubishi Electronics QCPU user manual — App-109
Page 1099 · click to enlarge
Page 1099
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1099)
Fig. 1435 · Appendix 1.4.2 Processing time of instructions other…

A

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

No digit increase 16.800 75.400 16.800 75.400 16.800 75.400

No digit increase 17.600 75.300 17.600 75.300 17.600 75.300

File register of standard RAM 4.100 4.200 4.100 4.200 4.100 4.200

File register of SRAM card ––

File register of standard RAM 5.400 5.500 5.400 5.500 5.400 5.500

File register of SRAM card ––

App-109

Page 1100 of the Mitsubishi Electronics QCPU user manual — SP.FWRITE –– 6.700 11.100 6.000 10.400 6.000 10.400
Page 1100 · click to enlarge
Page 1100

Q03UD(E)CPU Q04/

Q10/Q13/Q20/ Q26UD(E)HCPU

Category Instruction Condition (Device)

Q06UD(E)HCPU

Min. Max. Min. Max. Min. Max.

19.600 26.500 19.300 26.000 19.300 26.000

19.600 26.500 19.100 26.200 19.100 26.200

S.ZCOM

MELSECNET/H,

53.500 73.500 53.000 72.700 53.000 72.700

MELSECNET/H,

29.800 41.200 29.800 40.600 29.800 40.600

S.RTREAD –– 5.900 11.000 5.400 10.500 5.400 10.500

S.RTWRITE –– 6.700 11.100 6.000 10.400 6.000 10.400

n2 = 1 4.000 8.400 3.700 8.000 3.700 8.000

n2 = 16 12.500 17.000 12.200 16.600 12.200 16.600

TYPERD 29.800 53.000 29.500 52.300 29.500 52.300

TRACE Start 46.600 48.300 43.800 44.700 43.800 44.700

TRACER –– 3.300 6.800 2.600 6.000 2.600 6.000

1 point 11.300 16.800 9.200 15.100 9.200 15.100

points 120.700 127.100 61.000 68.600 61.000 68.600

S D

1 point 11.200 16.700 9.400 15..600 9.400 15.600

points 180.700 187.100 165.000 172.600 165.000 172.600

SP.FWRITE –– 6.700 11.100 6.000 10.400 6.000 10.400

SP.FREAD –– 5.900 11.000 5.400 10.500 5.400 10.500

SP.DEVST –– 4.500 36.500 4.000 34.500 4.000 34.500

S.DEVLD –– 11.000 17.800 10.000 17.000 10.000 17.000

App-110

Show 23 more labels / short text on this page
Processing Time (µs) · When mounting CC-Link · module · (Master station side) · When mounting CC-Link · module · (Local station side) · When mounting · CC-Link IEcontroller · network module(Control · station side) · When mounting · CC-Link IEcontroller · network module(Normal · station side) · Application · instruction · UNIRD n1 n2 · When standard · RAM is used · RBNOV n · When SRAM · card is used
Page 1101 of the Mitsubishi Electronics QCPU user manual — App-111
Page 1101 · click to enlarge
Page 1101
Mitsubishi Electronics QCPU — Appendix 1.4.2 Processing time of instructions other than subset instruction diagram (page 1101)
Fig. 1436 · Appendix 1.4.2 Processing time of instructions other…

n4 = 1 34.700 34.900 33.500 34.400 33.500 34.400

n4 = 320 85.900 87.600 75.200 75.500 75.200 75.500

n3 = 1 4.700 23.800 5.200 23.300 5.200 23.300

n3 = 320 57.500 76.200 47.100 64.500 47.100 64.500

n3 = 1 5.300 23.800 5.800 23.300 5.800 23.300

n3 = 320 111.300 128.400 91.500 108.500 91.500 108.500

n3 = 1 5.000 23.800 4.300 23.300 4.300 23.300

n3 = 320 51.400 65.600 44.400 60.700 44.400 60.700

A

n3 = 1 11.600 17.700 10.600 13.900 10.600 13.900

n3 = 320 142.000 160.000 142.000 149.000 142.000 149.000

n3 = 1000 431.000 463.000 422.000 448.000 422.000 448.000

n3 = 1 5.200 23.800 5.600 23.300 5.600 23.300

n3 = 320 96.400 113.200 83.600 100.800 83.600 100.800

n3 = 1 12.900 20.800 12.200 17.100 12.200 17.100

n3 = 320 277.000 299.000 274.000 291.000 274.000 291.000

n3 = 1000 838.000 860.000 835.000 857.000 835.000 857.000

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

the instructions for which a rise execution instruction ( P) is not specified, the processing time is the same as an ON execution instruction.

App-111

Page 1102 of the Mitsubishi Electronics QCPU user manual — App-112
Page 1102 · click to enlarge
Page 1102

(2) Table of the time to be added when file register, module access device or link direct device is used

(a) When using Q00UJCPU, Q00UCPUI, Q01UCPU and Q02UCPU

Device name data Device Specification

Q00UJCPU Q00UCPU Q01UCPU Q02UCPU

Bit Source 0.100

Destination 0.100

Word Source 0.100

Destination 0.100

Double word Source 0.100 0.100 0.100 0.200

Destination 0.100 0.100 0.100 0.200

Bit Source –– –– –– 0.220

Destination –– –– –– 0.180

Word Source –– –– –– 0.220

(Q2MEM-1MBS,

Destination –– –– –– 0.180

Q2MEM-2MBS)

Double word Source –– –– –– 0.440

Destination –– –– –– 0.380

Bit Source –– –– –– 0.160

Destination –– –– –– 0.140

Word Source –– –– –– 0.160

(Q3MEM-4MBS,

Destination –– –– –– 0.140

Q3MEM-8MBS)

Double word Source –– –– –– 0.320

Destination –– –– –– 0.300

Bit Source 0.120

Destination 0.120

Word Source 0.120

Destination 0.120

Double word Source 0.120 0.120 0.120 0.220

Destination 0.120 0.120 0.120 0.220

Bit Source –– –– –– 0.240

Destination –– –– –– 0.200

Word Source –– –– –– 0.240

(Q2MEM-1MBS,

Destination –– –– –– 0.200

Q2MEM-2MBS)

Double word Source –– –– –– 0.460

Destination –– –– –– 0.400

Bit Source –– –– –– 0.180

Destination –– –– –– 0.160

Word Source –– –– –– 0.180

(Q3MEM-4MBS,

Destination –– –– –– 0.160

Q3MEM-8MBS)

Double word Source –– –– –– 0.340

Destination –– –– –– 0.320

Bit Source –– –– –– 12.000

Destination –– –– –– 17.300

Word Source –– –– –– 9.700

(Un\G , U3En\G0 to G4095)

Destination –– –– –– 33.000

Double word Source –– –– –– 24.200

Destination –– –– –– 34.800

Bit Source –– –– –– 32.900

Destination –– –– –– 67.300

Word Source –– –– –– 37.200

Destination –– –– –– 37.000

Double word Source –– –– –– 39.500

Destination –– –– –– 41.900

App-112

Show 19 more labels / short text on this page
Processing Time (µs) · Location · When standard · RAM is used · When SRAM · card is used · File register (R) · When SRAM · card is used · When standard · RAM is used · When SRAM · card is used · File register (ZR) · When SRAM · card is used · Module access device · Link direct device · (Jn\ )
Page 1103 of the Mitsubishi Electronics QCPU user manual — App-113
Page 1103 · click to enlarge
Page 1103

(b) When using Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU,

Q13UD(E)HCPU, Q20UD(E)HCPU and Q26UD(E)HCPU

Device name data Device Specification

Q03UD(E)CPU Q04/

Q10/Q13/Q20/

Q06UD(E)HCPU

Q26UD(E)HCPU

Bit Source 0.100 0.048 0.048

Destination 0.100 0.038 0.038

Word Source 0.100 0.048 0.048

Destination 0.100 0.038 0.038

Double word Source 0.200 0.095 0.095

Destination 0.200 0.086 0.086

Bit Source 0.220 0.200 0.200

Destination 0.180 0.162 0.162

Word Source 0.220 0.200 0.200

(Q2MEM-1MBS,

Destination 0.180 0.162 0.162

A

Q2MEM-2MBS)

Double word Source 0.440 0.399 0.399

Destination 0.380 0.361 0.361

Bit Source 0.160 0.152 0.152

Destination 0.140 0.133 0.133

Word Source 0.160 0.152 0.152

(Q3MEM-4MBS,

Destination 0.140 0.133 0.133

Q3MEM-8MBS)

Double word Source 0.320 0.304 0.304

Destination 0.300 0.295 0.295

Bit Source 0.120 0.057 0.057

Destination 0.120 0.048 0.048

Word Source 0.120 0.057 0.057

Destination 0.120 0.048 0.048

Double word Source 0.220 0.105 0.105

Destination 0.220 0.095 0.095

Bit Source 0.240 0.209 0.209

Destination 0.200 0.171 0.171

Appendix1 OPERATION PROCESSING TIME Appendix 1.4 Operation Processing Time of Universal Model QCPU

Word Source 0.240 0.209 0.209

(Q2MEM-1MBS,

Destination 0.200 0.171 0.171

Q2MEM-2MBS)

Double word Source 0.460 0.409 0.409

Destination 0.400 0.371 0.371

Bit Source 0.180 0.162 0.162

Destination 0.160 0.143 0.143

Word Source 0.180 0.162 0.162

(Q3MEM-4MBS,

Destination 0.160 0.143 0.143

Q3MEM-8MBS)

Double word Source 0.340 0.314 0.314

Destination 0.320 0.304 0.304

Bit Source 11.700 11.200 11.200

Destination 15.400 15.300 15.300

Word Source 9.460 9.410 9.410

(Un\G , U3En\G0 to G4095)

Destination 19.000 19.000 19.000

Double word Source 11.000 10.900 10.900

Destination 18.800 18.700 18.700

Bit Source 32.700 31.300 31.300

Destination 52.300 29.900 29.900

Word Source 28.500 17.300 17.300

Destination 27.500 14.700 14.700

Double word Source 30.300 18.100 18.100

Destination 30.600 15.700 15.700

App-113

Show 23 more labels / short text on this page
Processing Time (µs) · Location · When standard · RAM is used · When SRAM · card is used · File register (R) · When SRAM · card is used · When standard · RAM is used · File rExtended · When SRAM · data register (D)/ · card is used · Extended link · register (W)) · egister (ZR) · When SRAM · card is used · Module access device · Link direct device · (Jn\ )
Page 1104 of the Mitsubishi Electronics QCPU user manual — App-114
Page 1104 · click to enlarge
Page 1104

Appendix 2 CPU PERFORMANCE COMPARISON

Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU

Appendix 2.1.1 Usable devices

TableApp.2.1 Device Comparison

Device name QCPU AnUCPU AnACPU AnNCPU

Q02 Q02H Q06H Q12H Q25H Q02PH Q06PH Q12PH Q25PH Q12PRH Q25PRH Q03UD(E) Q04UD(E)H Q06UD(E)H Q10UD(E)H Q13UD(E)H Q20UD(E)H Q26UD(E)H Q02U : 2048 points

–– A2U512 points A2U-S1: 1024 points
–– A2A512 points A2A-S1: 1024 points
A1N256 points A2N: 512 points A2N-S1: 1024 points
Q00J256 points Q00: 1024 points Q01: 1024 points
Q00UJ256 points Q00U: 1024 points Q01U: 1024 points

Number of I/O points*9

A3U2048 points A4U: 4096 points
A3A2048 points
A3N2048 points

Number of I/O device points*8 2048 points*1 8192 points*1 8192 points Same with I/O devices points of each CPU

Internal relay 8192 points*1

Total 2048 points Latch relay 2048 points*1 8192 points*1

Sequence program –– ––

SFC 2048 points*6 8192 points ––

Annunciator 1024 points*1 2048 points*1 2048 points 2048 points 256 points

Edge relay 1024 points*1 2048 points*1 ––

Link relay 2048 points*1 8192 points*1 8192 points 4096 points 1024 points

Link special relay 1024 points 2048 points 56 points

Timer 512 points*1 2048 points*1 Total 2048 points Total 256 points Retentive timers 0 points*1

Counter 512 points*1 1024 points*1 1024 points 256 points

Data register 11136 points*1 12288 points*1 8192 points 6144 points 1024 points

Link register 2048 points*1 8192 points*1 8192 points 4096 points 1024 points

Link special register 1024 points 2048 points 56 points

Function input 16 points (FX0 to FXF)*7 ––

Function output 16 points (FY0 to FYF)*7 ––

Special relay 1000 points 2048 points 256 points Function register 5 points (FD0 to FD4) –– Special register 1000 points 2048 points 256 points

Link direct device Designated by J \ ––

device Designated by U \G ––

Z 10 points (Z0 to Z9) 16 points (Z0 to Z15) 7 points (Z, Z1 to Z6) 1 point (Z)

V*2 –– 7 points (V, V1 to V6) 1 point (V)

32768 points/ block*5 (R0 to R32767)

32768 points/block(R0 to R32767)*10 8192 points/block(R0 to R8191)

Accumulator*3 –– 2 points

Nesting 15 points 8 points

Pointer 300 points 512 points 4096 points 256 points

Interrupt pointers 128 points 128 points 256 points 32 points

SFC blocks 126*6 320 points ––

SFC transition devices –– 512 points –– Decimal constants K - 2147483648 toK2147483647 Hexadecimal constants H0 to HFFFFFFFF

Real number constants*6 E ± 1.17550-38 to E ± 3.40282+38 ––

Character string "QnACPU", "ABCD"*4 ––

App-114

Show 6 more labels / short text on this page
4096 points · Total 8192 points · Step relay · Intelligent function module · Index register · File register
Page 1105 of the Mitsubishi Electronics QCPU user manual — App-115
Page 1105 · click to enlarge
Page 1105

*1 : The number of device points can be changed at the parameters. *2 : QCPU uses V as an edge relay. *3 : Instructions that used accumulators with the AnNCPU, AnACPU, and AnUCPU have different formats with

the QCPU. *4 : Can only be used by the $MOV instruction with the Q00JCPU, Q00CPU, and Q01CPU. *5 : The Q00JCPU does not have file registers. *6 : Applicable to products with the first 5 digits of the serial number 04122 or higher

(Q00JCPU, Q00CPU, and QCPU). *7 : Each 5 points of FX0 to FX4 and FY0 to FY4 can be used on the programs. *8 : The number of points that can be used on the programs *9 : The number of accessible points to actual I/O modules *10 : The Q00UJCPU does not have file registers.%ParaEnd% Appendix 2.1.2 I/O control mode

TableApp.2.2 I/O Control Mode

Mitsubishi Electronics QCPU — Appendix 2.1.2 I/O control mode diagram (page 1105)
Fig. 1437 · Appendix 2.1.2 I/O control mode

A

Symbol in table : Usable, ––: Unusable *1 : The DOUT, DSET, and SRST instructions are direct output dedicated instructions.

There are no dedicated instructions for direct input. *2 : Switching between the refresh mode and direct mode is conducted with an AnNCPU DIP switch.

Appendix 2.1.3 Data that can be used by instructions

Mitsubishi Electronics QCPU — Appendix 2.1.3 Data that can be used by instructions diagram (page 1105)
Fig. 1438 · Appendix 2.1.3 Data that can be used by instructions

Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU

Symbols in table : Usable, –– : Unusable *1 : Applicable to products with the first 5 digits of the serial number 04122 or higher

(Q00JCPU, Q00CPU, and Q01CPU). *2 : Usable with only the MOV instruction for the Q00JCPU, Q00CPU, and Q01CPU.

App-115

Page 1106 of the Mitsubishi Electronics QCPU user manual — App-116
Page 1106 · click to enlarge
Page 1106

Appendix 2.1.4 Timer comparison

TableApp.2.4 Timer Comparison

Mitsubishi Electronics QCPU — Appendix 2.1.4 Timer comparison diagram (page 1106)
Fig. 1439 · Appendix 2.1.4 Timer comparison

Change of measurement unit at the parameter is enabled.

Change of measurement unit at the parameter is enabled.

High speed timer settingConducted by sequence program High speed timer setting: Conducted at parameters

Same measurement unit as low speed timer Fixed at 100ms

Setting range for set values 1 to 32767 1 to 32767

Processing for set value 0 Momentarily ON No maximum (does not time out)

Contact Enabled (only Z0 and Z1 are usable) Enabled Disabled

Coil Enabled (only Z0 and Z1 are usable) Disabled Disabled

Set value Enabled (Z0 to Z15 are usable)*1 Disabled Disabled

Present value Enabled (Z0 to Z15 are usable)*1 Enabled Enabled

When OUT Tn instruction is executed When END processing is done Contact ON/OFF processing

*1 : The Q00J/Q00/Q01CPU can use Z0 to Z9.

The Universal model QCPU can use Z0 to Z19.

(1) Cautions on using timers

QCPU updates the present value of timers and turns ON/OFF the contacts of them at the execution of OUT T instruction. Therefore, if "Present value Set value" when the timer coil is turned ON, the contact of that timer is turned ON. When creating a program in which the operation of the timer contact triggers the operation of another timer, create the program for the timer that operates later first. In the following cases, all timers go ON at the same scan if the program is created in the order the timers operate.

  • With high speed timers, if the set value is smaller than a scan time.
  • With slow timers, if "1" is set.

App-116

Page 1107 of the Mitsubishi Electronics QCPU user manual — App-117
Page 1107 · click to enlarge
Page 1107

Example

  • For timers T0 to T2, the program is created in the order the timer operates later.
Mitsubishi Electronics QCPU — Example diagram (page 1107)
Fig. 1440 · Example

T2 timer starts measurement from the next scan after turning the contact of T1 ON. T2

T1 timer starts measurement from the next scan after turning the contact of T0 ON.

T0 timer starts measurement when X0 is turned ON.

  • For timers T0 to T2, the program is created in the order of timer operation.
Mitsubishi Electronics QCPU — Example diagram (page 1107)
Fig. 1441 · Example

A

T0 timer starts measurement when X0 is turned ON.

Contacts of T1 and T2 timers are turned ON when contact of T0 is turned ON.

Appendix 2.1.5 Comparison of counters

TableApp.2.5 Comparison of Counters

Mitsubishi Electronics QCPU — Appendix 2.1.5 Comparison of counters diagram (page 1107)
Fig. 1442 · Appendix 2.1.5 Comparison of counters

Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU

  • Contact
  • Enabled (only Z0 and Z1 are usable)
  • Enabled
  • Disabled
  • Coil
  • Enabled (only Z0 and Z1 are usable)
  • Disabled
  • Disabled
  • value
  • Enabled (Z0 to Z15 are usable) *1
  • Enabled
  • Enabled
  • When OUT Cn instruction is executed
  • When END processing is done Contact ON/OFF processing

*1: The Q00J/Q00/Q01CPU can use Z0 to Z9. The Universal model QCPU can use Z0 to Z19.

  • When M9049 is OFF: Output continued until 00 H

App-117

Page 1108 of the Mitsubishi Electronics QCPU user manual — App-118
Page 1108 · click to enlarge
Page 1108

Appendix 2.1.7 Instructions whose designation format has been

changed (Except dedicated instructions for AnACPU and AnUCPU)

Because the QCPU does not have accumulators (A0, A1), the format of AnUCPU, AnACPU and AnNCPU instructions that used accumulators has been changed.

TableApp.2.7 Instructions Whose Expression Has Changed

Instruction Format Remarks Instruction Format Remarks

  • D : Rotation data
  • Rotation data are set at A0.

ROR D n ROR n

  • Rotation data are set at A0.
  • M9012 is used for carry flag.
  • D : Rotation data
  • SM700 is used for carry flag.

RCR D n RCR n

  • D : Rotation data
  • Rotation data are set at A0.

ROL D n ROL n

  • Rotation data are set at A0.
  • M9012 is used for carry flag.
  • D : Rotation data
  • SM700 is used for carry flag.

RCL D n RCL n

  • D : Rotation data
  • Rotation data are set at A0 and A1.

DROR D n DROR n

  • Rotation data are set at A0 and A1.
  • M9012 is used for carry flag.
  • D : Rotation data
  • SM700 is used for carry flag.

DRCR D n DRCR n

  • D : Rotation data
  • Rotation data are set at A0 and A1.

DROL D n DROL n

  • Rotation data are set at A0 and A1.
  • M9012 is used for carry flag.
  • D : Rotation data
  • SM700 is used for carry flag.

DRCL D n DRCL n

16-bit data search • Search results are stored at the D and D+1 devices.

  • Search results are stored at A0 and A1.

SER D n S1 S2 SER n S1 S2

32-bit data search • Search results are stored at the D and D+1 devices.

  • Search results are stored at A0 and A1.

DSER D n S1 S2 DSER n S1 S2

  • Check results are stored at the D device.
  • Check results are stored at A0.

SUM S D SUM S

  • Check results are stored at the D device.
  • Check results are stored at A0.

DSUM S D DSUM S

Partial refresh • Dedicated instruction is added.

  • Only when M9052 is ON

RFS D n SEG D n

8-character ASCII conversion –– ––

$MOV D (Character string) ASC D (Character string)

Carry flag set • No dedicated instruction ––

SET SM700 STC

Carry flag reset • No dedicated instruction ––

RST SM700 CLC

Jump to END instruction • Dedicated instruction is added.

  • P255: END instruction designation

GOEND CJ P255

CHK instruction*1 • The CHKST instruction is added. ––

CHKST

CHK P254 CHK

*1: Unusable for the Q00J/Q00/Q01CPU.

App-118

Show 14 more labels / short text on this page
Function QCPU AnUCPU/AnACPU/AnNCPU · 16-bit · rotation to right · 16-bit · rotation to left · 32-bit · rotation to right · 32-bit · rotation to left · 16-bit · data bit check · 16-bit · data bit check · CJ Pn
Page 1109 of the Mitsubishi Electronics QCPU user manual — App-119
Page 1109 · click to enlarge
Page 1109

Appendix 2.1.8 AnACPU and AnUCPU dedicated instructions

(1) Method of expression of dedicated instructions

Dedicated instructions based on the LEDA, LEDB, LEDC, SUB, and LEDR instructions, that are used with the AnACPU or AnUCPU have been changed for the same format as the basic instructions and the application instructions for the QCPU. The instructions that cannot be converted due to the absence of the corresponding instructions in the QCPU are converted into OUT SM1255/OUT SM999 (for the Q00J/Q00/ Q01CPU). The instructions that have been converted into OUT SM1255/OUT SM999 should be replaced by other instructions or deleted.

TableApp.2.8 Method of Expression of Dedicated Instruction

A

Instruction name LEDA(B) Command

S LEDC/SUB

Instruction name S D n Command

D LEDC/SUB

LEDR

: S, D, and n indicate data used by instructions.

(2) Dedicated instructions whose names have been changed

Dedicated instructions for the AnUCPU or AnACPU which have the same instruction name as is used for basic instructions and application instructions have undergone name changes in the QCPU.

Appendix2 CPU PERFORMANCE COMPARISON Appendix 2.1 Comparison of Q with AnNCPU, AnACPU, and AnUCPU

TableApp.2.9 Method of Expression of Dedicated Instruction

Floating point addition E+ ADD

Floating point subtraction E SUB

Floating point multiplication E* MUL

Floating point division E/ DIV

Data dissociation NDIS DIS

Data association NUNI UNI

Updating check patterns CHKCIR,CHKEND CHK, CHKEND

App-119

QCPU AnUCPU/AnACPU · n LEDC/SUB · Function QCPU AnUCPU/AnACPU

Page 1110 of the Mitsubishi Electronics QCPU user manual — App-120
Page 1110 · click to enlarge
Page 1110

Appendix 3 SPECIAL RELAY LIST

Special relays, SM, are internal relays whose applications are fixed in the Programmable Controller.

For this reason, they cannot be used by sequence programs in the same way as the normal internal relays.

However, they can be turned ON or OFF as needed in order to control the CPU module.

The heading descriptions in the following special relay lists are shown in 3.1.

TableApp.3.1 Explanation of special relay list

Item Function of Item

Number • Indicates special register number

Name • Indicates name of special relay

Meaning • Indicates contents of special relay

Explanation • Discusses contents of special relay in more detail

  • Indicates whether the relay is set by the system or user, and, if it is set by the system, when setting is performed.
SSet by system
USet by user (sequence programs or test operations from GX Developer)
S/USet by both system and user

Indicated only for registers set by system

Each ENDSet during each END processing

Initial : Set only during initial processing (when power supply is turned ON, or when going from STOP

Status changeSet only when there is a change in status
ErrorSet when error occurs
Instruction executionSet when instruction is executed
RequestSet only when there is a user request (through SM, etc.)

System switching : Set when system switching is executed.

  • Indicates the corresponding special relay (M9 ) of the ACPU.

(When the contents are changed, the special relay is represented M9 format change. Incompatible with the

ACPU M9

Q00J/Q00/Q01 and QnPRH.)

  • New indicates the special relay newly added to the Q series CPU module.

Indicates the corresponding CPU module type name.

QCPU : Indicates all the Q series CPU modules.

Q00J/Q00/Q01 : Indicates the Basic model QCPU.

Qn(H) : Indicates the High Performance model QCPU.

CPU

QnPH : Indicates the Process CPU.

QnPRH : Indicates the Redundant CPU.

QnUIndicates the Universal model QCPU
Each CPU module model nameIndicates the relevant specific CPU module. (Example: Q02U)
  • For details on the following items, refer to the following manuals:
  • Networks Manual of the corresponding network module
  • SFC QCPU(Q mode)/QnACPU Programming Manual (SFC)

POINT

Do not change the values of special relays set by the system with user program or device test operations. Doing so may result in system downtime or communication fault.

App-120

Show 7 more labels / short text on this page
<Set by> · <When set> · Set by · (When set) · to RUN) · Corresponding · Corresponding
Page 1111 of the Mitsubishi Electronics QCPU user manual — App-121
Page 1111 · click to enlarge
Page 1111

TableApp.3.2 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • Turns ON if an error occurs as a result of diagnosis. (Includes when an annunciator is ON, and when an error is detected with CHK instruction)
  • Remains ON even if the condition is restored to normal thereafter.
SM0 Diagnostic errors OFFNo error ON : Error
  • Turns ON if an error occurs as a result of diagnosis. (Includes when an annunciator is ON)
  • Remains ON even if the condition is restored to normal thereafter.

S (Error) New Q00J/Q00/Q01

  • Turns ON if an error occurs as a result of diagnosis. (Does not include when an annunciator is ON or when an error is detected by the CHK instruction)
  • Remains ON even if the condition is restored to normal thereafter.
OFFNo self-diagnosis

A

errors ONSelf-diagnosis
  • Turns ON if an error occurs as a result of diagnosis. (Does not include when an annunciator is ON)
  • Remains ON even if the condition is restored to normal thereafter.

S (Error) New Q00J/Q00/Q01

OFFNo error common

SM5 Error common information

information ONError common
  • When SM0 is ON, turns ON if there is error common information S (Error) New
OFFNo error individual

QCPU

SM16 Error individual information

information ONError individual
  • When SM0 is ON, turns ON if there is error individual information S (Error) New
SM50 Error reset OFF ONError reset • Conducts error reset operation U New
  • Turns ON if battery voltage at CPU module or memory card drops below rated value.
  • Remains ON even if the battery voltage returns to normal thereafter.
  • Synchronizes with the BAT. LED.
SM51 Battery low latch OFFNormal ON : Battery low
  • Turns ON if battery voltage at CPU module drops below rated value.
  • Remains ON even if the battery voltage returns to normal thereafter.
  • Synchronous with ERR. LED

S (Error) New Q00J/Q00/Q01

Appendix 3 SPECIAL RELAY LIST

SM52 Battery low OFFNormal ON : Battery low
  • Same as SM51, but turns OFF subsequently when battery voltage returns to normal. S (Error) M9006
  • Turns ON if an instantaneous power failure of within 20ms occurs during use of the AC power supply module. Reset when the power supply is switched OFF, then ON.
OFFAC/DC DOWN not

QCPU

SM53 AC/DC DOWN detection

detected ONAC/DC DOWN

S (Error) M9005 • Turns ON if an instantaneous power failure of within 10ms occurs during use of the DC power supply module. Reset when the power supply is switched OFF, then ON.

App-121

Show 16 more labels / short text on this page
(1) Diagnostic Information · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · S (Error) New · QnU · Qn(H) QnPH QnPRH · S (Error) M9008 · SM1 Self-diagnostic error · QnU · information · information · Qn(H) QnPH QnPRH · S (Error) M9007 · QnU · detected
Page 1112 of the Mitsubishi Electronics QCPU user manual — App-122
Page 1112 · click to enlarge
Page 1112

TableApp.3.2 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM56 Operation error OFFNormal ON : Operation error
  • ON when operation error is generated
  • Remains ON if the condition is restored to normal thereafter.
  • Turns ON if there is at least one output module whose fuse has blown.
  • Remains ON if the condition is restored to normal thereafter.
  • Blown fuse status is checked even for remote I/O station output modules.
OFFNormal ON : Module with blown

SM60 Blown fuse detection

QCPU

  • Turns ON if the I/O module differs from the status registered at power on.
  • Remains ON if the condition is restored to normal thereafter.
  • I/O module verification is also conducted for remote I/O station modules.

SM61 I/O module verify error OFF : Normal ON : Error

SM62 Annunciator detection OFF : Not detected ON : Detected • Goes ON if even one annunciator (F) goes ON. S (Instruction

  • Goes ON if error is detected by CHK instruction.
  • Remains ON if the condition is restored to normal thereafter.
SM80 CHK detection OFFNot detected ON : Detected

SM90

M9108

SM91 Corresponds to SD91 M9109

SM92 Corresponds to SD92 M9110

SM93 Corresponds to SD93 M9111

  • Goes ON when measurement of step transition monitoring timer is commenced.
  • Resets step transition monitoring timer when it goes OFF.

SM94 Corresponds to SD94 M9112

Startup of monitoring timer for step transition (Enabled only when SFC program exists)

OFFNot started(monitoring
timer reset) ONStarted(monitoring

U

SM95 Corresponds to SD95 M9113

SM96 Corresponds to SD96 M9114

SM97 Corresponds to SD97 New

SM98 Corresponds to SD98 New

SM99 Corresponds to SD99 New

OFFSerial communication

SM100 Serial communication function using flag

function is not used. ONSerial communication
  • Stores the setting of whether the serial communication function is used or not in the serial communication setting parameter

function is used.

SM101 Communication protocol status flag

OFFGX Developer ON : MC protocol
  • Stores whether the device that is communicating via the RS-232 interface is GX Developer or MC protocol communication device
  • Turns ON when an abnormal protocol was used to make communication in the serial communication function.
  • Remains ON if the condition is restored to normal thereafter
SM110 Protocol error OFFNormal ON : Abnormal

Q00/Q01

Q00UJ

  • Turns ON when the mode used to make communication was different from the setting in the serial communication function.
  • Remains ON if the condition is restored to normal thereafter.

Q00U Q01U

SM111 Communication status OFFNormal ON : Abnormal

Q02U *7

  • Turns ON when the error codes stored in SM110, SM111, SD110 and SD111 are cleared. (Activated when turned from OFF to ON)
SM112 Error information clear ONCleared

U

SM113 Overrun error OFFNormal ON : Abnormal
  • Turns ON when an overrun error occurred in the serial communication error. S (Error)
SM114 Parity error OFFNormal ON : Abnormal
  • Turns ON when a parity error occurred in the serial communication error. S (Error)
SM115 Framing error OFFNormal ON : Abnormal
  • Turns ON when a framing error occurred in the serial communication error. S (Error)
  • Turns ON when the data is written to the program cache memory.
  • Turns OFF when the program memory batch transfer is completed.
  • Remains ON if the program memory batch transfer is not executed after the data is written to the program cache memory.

Program memory batch transfer execution status

OFFCompleted ON : Not being executed or

SM165

changed) New QnU*6

  • *6: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10012" or later.
  • Q13UDHCPU, Q26UDHCPU *7: The module whose first 5 digits of serial No. is "10102" or later.

App-122

Show 22 more labels / short text on this page
Corres- ponding · Corresponding · S (Error) M9011 · S (Error) M9000 · fuse · S (Error) M9002 · execution) M9009 · Qn(H) QnPH QnPRH · S (Instruction · execution) New · Corresponds to SD90 · Qn(H) QnPH QnPRH · timer started) · S (Power-ON or · reset) · S (RS232 communication) · communication device · S (Error) · New · S (Error) · S (When status · Not completed
Page 1113 of the Mitsubishi Electronics QCPU user manual — App-123
Page 1113 · click to enlarge
Page 1113

TableApp.3.3 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM202 LED OFF command OFF ON : LED OFF • When this relay goes from OFF to ON, the LEDs corresponding to the individual bits at SD202 go off U New

SM203 STOP contact STOP status • Goes ON at STOP status S (Status change) M9042

SM204 PAUSE contact PAUSE status • Goes ON at PAUSE status S (Status change) M9041

SM206 PAUSE enable coil OFFPAUSE disabled ON : PAUSE enabled
  • PAUSE status is entered if this relay is ON when the PAUSE contact goes ON U M9040
  • When this relay goes from OFF to ON and after END instruction execution of subsequent scan, clock data stored in SD210 to SD213 are written to the CPU module.

SM210 Clock data set request OFF : Ignored ON : Set request

QCPU

U M9025

SM211 Clock data error OFFNo error ON : Error
  • ON when error is generated in clock data (SD210 to SD213) value, and OFF if no error is detected. S (Request) M9026

A

SM213 Clock data read request

OFFIgnored ON : Read request
  • When this relay is ON, clock data is read to SD210 to SD213 as BCD values. U M9028

Turned ON when access can be made to the CPU module No.1 from the other CPU module at power-on or reset operation. SM220 is used as interlock for accessing the CPU module No.1 when the multiple CPU synchronous setting is asynchronous.

OFFCPU No.1 preparation

SM220 CPU No.1 preparation completed

uncompleted ONCPU No.1 preparation

Turned ON when access can be made to the CPU module No.2 from the other CPU module at power-on or reset operation. SM221 is used as interlock for accessing the CPU module No.2 when the multiple CPU synchronous setting is asynchronous.

OFFCPU No.2 preparation

SM221 CPU No.2 preparation completed

uncompleted ONCPU No.2 preparation

Turned ON when access can be made to the CPU module No.3 from the other CPU module at power-on or reset operation. SM222 is used as interlock for accessing the CPU module No.3 when the multiple CPU synchronous setting is asynchronous.

OFFCPU No.3 preparation

SM222 CPU No.3 preparation completed

uncompleted ONCPU No.3 preparation

Turned ON when access can be made to the CPU module No.4 from the other CPU module at power-on or reset operation. SM223 is used as interlock for accessing the CPU module No.4 when the multiple CPU synchronous setting is asynchronous.

OFFCPU No.4 preparation

SM223 CPU No.4 preparation completed

uncompleted ONCPU No.4 preparation

Appendix 3 SPECIAL RELAY LIST

OFFOnline module change

SM235 Online module change flag

is not in progress ONOnline module change
  • Turns on during online module change. (for host CPU)

S (During online module change) New

OFFOnline module change
  • Turns ON for one scan after online module change is complete.
  • This contact point can only be used by the scan program. (for host CPU)

S (When online module change is

SM236 Online module change complete flag

incomplete ONOnline module change
  • Selects whether to check a device range during execution of the BMOV, FMOV or DFMOV instruction (only when the conditions for subset processing are established).
OFFDevice range checked ON : Device range not checked

SM237 Device range check inhibit flag

U New QnU*6

  • *5: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *6: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10012" or later.
  • Q13UDHCPU, Q26UDHCPU *8: The Universal model QCPU except the Q00UJCPU.

App-123

Show 19 more labels / short text on this page
(2) System information · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · QnU · QnU · completed · completed · S (When status · changed) New · QnU*8 · completed · QnU*5 · completed · in progress · QnPH · New · complete · complete)
Page 1114 of the Mitsubishi Electronics QCPU user manual — App-124
Page 1114 · click to enlarge
Page 1114

TableApp.3.3 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • Goes OFF when reset of the No. 1 CPU is canceled.
  • Comes ON when the No. 1 CPU is resetting (including the case where the CPU module is removed from the base). The other CPUs are also put in reset status.
OFFNo. 1 CPU reset

SM240 No. 1 CPU reset flag

cancel ONNo. 1 CPU resetting
  • Goes OFF when reset of the No. 2 CPU is canceled.
  • Comes ON when the No. 2 CPU is resetting (including the case where the CPU module is removed from the base). The other CPUs result in "MULTI CPU DOWN" (error code: 7000).

Q00/Q01 *1

OFFNo. 2 CPU reset

SM241 No. 2 CPU reset flag

cancel ONNo. 2 CPU resetting
  • Goes OFF when reset of the No. 3 CPU is canceled.
  • Comes ON when the No. 3 CPU is resetting (including the case where the CPU module is removed from the base). The other CPUs result in "MULTI CPU DOWN" (error code: 7000).
OFFNo. 3 CPU reset

SM242 No. 3 CPU reset flag

cancel ONNo. 3 CPU resetting
  • Goes OFF when reset of the No. 4 CPU is canceled.
  • Comes ON when the No. 4 CPU is resetting (including the case where the CPU module is removed from the base). The other CPUs result in "MULTI CPU DOWN" (error code: 7000).

S (Status change) New

OFFNo. 4 CPU reset

SM243 No. 4 CPU reset flag

cancel ONNo. 4 CPU resetting
  • Goes OFF when the No. 1 CPU is normal (including a continuation error).
  • Comes ON when the No. 1 CPU is during a stop error.
OFFNo. 1 CPU normal ON : No. 1 CPU during stop

SM244 No. 1 CPU error flag

Q00/Q01 *1

OFFNo. 2 CPU normal ON : No. 2 CPU during stop
  • Goes OFF when the No. 2 CPU is normal (including a continuation error).
  • Comes ON when the No. 2 CPU is during a stop error.

SM245 No. 2 CPU error flag

  • Goes OFF when the No. 3 CPU is normal (including a continuation error).
  • Comes ON when the No. 3 CPU is during a stop error.
OFFNo. 3 CPU normal ON : No. 3 CPU during stop

SM246 No. 3 CPU error flag

  • Goes OFF when the No. 4 CPU is normal (including a continuation error).
  • Comes ON when the No. 4 CPU is during a stop error
OFFNo. 4 CPU normal ON : No. 4 CPU during stop

SM247 No. 4 CPU error flag

S (Status change) New

SM250 Max. loaded I/O read OFF : Ignored ON : Read

  • When this relay goes from OFF to ON, maximum loaded I/O number is read to SD250. U New
  • Effective for the batch refresh (also effective for the low speed cyclic)
  • Designate whether to receive arrival stations only or to receive all slave stations in the MELSECNET/H.
  • Designate whether to receive arrival stations only or to receive all slave stations in the CC-Link IE controller network .

SM254 All stations refresh command

OFFRefresh arrival station ON : Refresh all stations
  • Effective for the batch refresh (also effective for the low speed cyclic)
  • Specify whether to receive only arrival station or all stations in the MELSECNET/H or CC-Link IE controller network.

*1: This applies to the CPU of function version B or later. *2: The module whose first 5 digits of serial No. is "09012" or later. *5: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *6: The module whose first 5 digits of serial No. is "10042" or later. *8: The Universal model QCPU except the Q00UJCPU.

App-124

Show 24 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H)*1 · QnPH · QnU*8 · Qn(H)*1 · QnPH · QnU*5 · error · Qn(H)*1 · QnPH · error · QnU*8 · error · Qn(H)*1 · QnPH · error · QnU*5 · Qn(H) QnPH QnPRH · Qn(H)*2 · QnPH*6 · U New · QnPRH*6 · QnU
Page 1115 of the Mitsubishi Electronics QCPU user manual — App-125
Page 1115 · click to enlarge
Page 1115

TableApp.3.3 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • Goes ON for standby network(If no designation has been made concerning active or standby, active is assumed.)
OFFOperative network ON : Standby network

SM255

MELSECNET/10, MELSECNET/H module 1 information

SM256 OFFReads ON : Does not read
  • For refresh from link to CPU module (B, W, etc.) indicate whether to read from the link module. U New
SM257 OFFWrites ON : Does not write
  • For refresh from CPU module to link (B, W, etc.), designate whether to write to the link module. U New
OFFOperative network ON : Standby network
  • Goes ON for standby network (If no designation has been made concerning active or standby, active is assumed.)

SM260

MELSECNET/10, MELSECNET/H module 2 information

SM261 OFFReads ON : Does not read
  • For refresh from link to CPU module (B, W, etc.) indicate whether to read from the link module. U New
SM262 OFFWrites ON : Does not write
  • For refresh from CPU module to link (B, W, etc.), designate whether to write to the link module. U New
  • Goes ON for standby network (If no designation has been made concerning active or standby, active is assumed.)

SM265

OFFOperative network ON : Standby network

A

MELSECNET/10, MELSECNET/H module 3 information

SM266 OFFReads ON : Does not read
  • For refresh from link to CPU module (B, W, etc.) indicate whether to read from the link module. U New
SM267 OFFWrites ON : Does not write
  • For refresh from CPU module to link (B, W, etc.), designate whether to write to the link module. U New
  • Goes ON for standby network (If no designation has been made concerning active or standby, active is assumed.)
OFFOperative network ON : Standby network

SM270

MELSECNET/10, MELSECNET/H module 4 information

SM271 OFFReads ON : Does not read
  • For refresh from link to CPU module (B, W, etc.) indicate whether to read from the link module. U New
SM272 OFFWrites ON : Does not write
  • For refresh from CPU module to link (B, W, etc.), designate whether to write to the link module. U New
SM280 CC-Link error OFFNormal ON : Error
  • Goes ON when a CC-Link error is detected in any of the installed CC-Link module. Goes OFF when normal operation is restored.

S (Status change) New

  • This flag is enabled when the time reserved for communication processing is set in SD315.
  • Turns ON to delay the END processing by the time set in SD315 in order to perform communication processing. (The scan time increases by the period set in SD315.)
  • Turns OFF to perform the END processing without a delay of the time set in SD315 when there is no communication processing. (Defaults to OFF)

Communication reserved time delay enable/disable flag

OFFWithout delay ON : With delay

SM315

Appendix 3 SPECIAL RELAY LIST

SM320 Presence/absence of SFC program

OFFSFC program absent ON : SFC program present
  • Turns ON when an SFC program is registered.
  • OFF when an SFC program is not registered. S (Initial) M9100

Q00J/Q00/Q01 *1

  • Initial value is set at the same value as SM320. (Goes ON automatically if SFC program is present.)
  • Turn this relay from ON to OFF to stop program execution.
  • Turn this relay from OFF to ON to resume program execution.
OFFSFC program not

QnU SM321 Start/stop SFC program

executed (stop) ONSFC program executed

*1: This applies to the CPU of function version B or later.

App-125

Show 12 more labels / short text on this page
Corres- ponding · Corresponding · S (Initial) New · S (Initial) New · Qn(H) QnPH QnPRH · S (Initial) New · S (Initial) New · U New Q00J/Q00/Q01 · Qn(H) QnPH QnPRH · S (Initial)/U M9101form · at change · (start)
Page 1116 of the Mitsubishi Electronics QCPU user manual — App-126
Page 1116 · click to enlarge
Page 1116

TableApp.3.3 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • The SFC program starting mode in the SFC setting of the PLC parameter dialog box is set as the initial value. AT initial start: OFF At continued start: ON

SM322 SFC program start status

OFFInitial start ON : Resume start
OFFContinuous transition

Presence/absence of continuous transition for entire block

Set the presence/absence of continuous transition for the block where "Continuous transition bit" of the SFC data device has not been set.

SM323

not effective ONContinuous transition

U M9103

  • OFF during operation in the continuous transition mode or during continuous transition, and ON when continuous transition is not executed.
  • Always ON during operation in the no continuous transition mode.

Q00J/Q00/Q01 *1

OFFWhen transition is

SM324 Continuous transition prevention flag

executed ONWhen no transition

S (Status change) New

Select whether the coil outputs of the active steps are held or not at the time of a block stop.

SM325 Output mode at block stop

OFFOFF ON : Preserves
  • As the initial value, the output mode at a block stop in the parameter is OFF when the coil outputs are OFF, and ON when the coil outputs are held.
  • All coil outputs go OFF when this relay is OFF.
  • Coil outputs are preserved when this relay is ON.

SM326 SFC device clear mode

OFFClear device ON : Preserves device

Selects the device status when the stopped CPU is run after the sequence program or SFC program has been modified when the SFC program exists.

OFFHold step output

Select the device status at the time of switching from STOP to program write to RUN.(All devices except the step relay)

SM327 Output during end step execution

turned OFF (cleared) ONHold step output held

U Q00J/Q00/Q01 *1

Select whether clear processing will be performed or not if active steps other than the ones being held exist in the block when the end step is reached.?

OFFClear processing is
  • When this relay turns OFF, all active steps are forcibly terminated to terminate the block.
  • When this relay is ON, the execution of the block is continued as-is.
  • If active steps other than the ones being held do not exist when the end step is reached, the steps being held are terminated to terminate the block.

Clear processing mode when end step is reached

SM328

performed. ONClear processing is not

U New Q00J/Q00/Q01*1

performed.

Select whether the low speed execution type program will be executed in the asynchronous mode or in the synchronous mode.

  • Asynchronous mode (this relay is turned OFF.) Mode in which the operation of the low speed execution type program is performed continuously within the excess time.
  • Synchronous mode (this relay is turned ON.) Mode in which the operation of the low speed execution type program is not performed continuously and operation is performed from the next scan if there is excess time.

Operation mode for low speed execution type program

SM330

OFFAsynchronous mode ON : Synchronous mode

U New Qn(H) QnPH

  • Indicates whether the normal SFC program is being executed or not.
  • Used as an SFC control instruction execution interlock.

SM331 Normal SFC program execution status

OFFNot executed ON : Being executed

S (Status change) New

Program execution management SFC program execution status

  • Indicates whether the program execution management SFC program is being executed or not.
  • Used as an SFC control instruction execution interlock.
OFFNot executed ON : Being executed
  • The status of the intelligent function module access instruction executed immediately before is stored. (This data is overwritten when the intelligent function module access instruction is executed again.)
  • Used by the user in a program as a completion bit.

ON indicates completion of intelligent function module access

SM390 Access execution flag

S (Status change) New

GINT instruction execution completion flag

OFFNot executed ON : Execution completed

Indicates execution status of the S(P).GINT instruction.

SM391

  • Turned OFF before the instruction is executed.
  • Turned ON after the instruction is completed.

*1: This applies to the CPU of function version B or later. *3: The module whose first 5 digits of serial No. is "04122" or later. *4: The module whose first 5 digits of serial No. is "07032" or later.

App-126

Show 22 more labels / short text on this page
Corres- ponding · Corresponding · S (Initial)/U M9102form · at change · effective · S (Instruction · execution) M9104 · Qn(H) QnPH QnPRH · QnU · S (Initial)/U M9196 · U New · Qn(H) QnPH QnPRH · S (Initial)/U · New · QnU · QnU · Qn(H)*3 · QnPH*4 · QnPRH SM332 · Qn(H) QnPH QnPRH · S (Instruction · execution) New QnU
Page 1117 of the Mitsubishi Electronics QCPU user manual — App-127
Page 1117 · click to enlarge
Page 1117

TableApp.3.4 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM400 Always ON • Normally is ON S (Every END

ON OFF

QCPU

SM401 Always OFF • Normally is OFF S (Every END

ON OFF

  • After RUN, ON for 1 scan only.
  • This connection can be used for scan execution type programs only.
  • When an initial execution type program is used, this relay turns OFF at the END processing of the scan execution type program in the first scan after RUN.

SM402 After RUN, ON for 1 scan only

ON OFF

1 scan ON OFF 1 scan of scan execution type

A

Initial execution type program

  • After RUN, ON for 1 scan only. S (Every END
  • After RUN, OFF for 1 scan only.
  • This connection can be used for scan execution type programs only.
  • When an initial execution type program is used, this relay turns OFF at the END processing of the scan execution type program in the first scan after RUN. S (Every END

ON OFF 1 scan ON OFF

SM403 After RUN, OFF for 1 scan only

Initial execution type program

1 scan of scan execution type

  • After RUN, OFF for 1 scan only. S (Every END

Low speed execution type programON for 1 scan only after RUN

  • After RUN, ON for 1 scan only.
  • This connection can be used for low speed execution type programs only.

SM404

ON OFF

Appendix 3 SPECIAL RELAY LIST

Low speed execution type programAfter RUN, OFF for 1 scan only

  • After RUN, OFF for 1 scan only.
  • This connection can be used for low speed execution type programs only.

ON OFF 1 scan

SM405

  • Repeatedly changes between ON and OFF at 5-ms interval.
  • When Programmable Controller power supply is turned ON or a CPU module reset is performed, goes from OFF to start. (Note that the ON-OFF status changes when the designated time has elapsed during the execution of the program.)

SM409 0.01 second clock

0.005s 0.005s

S (Status change) New

  • SM410 0.1 second clock
  • Repeatedly changes between ON and OFF at each designated time interval.
  • When Programmable Controller power supply is turned ON or a CPU module reset is performed, goes from OFF to start. (Note that the ON-OFF status changes when the designated time has elapsed during the execution of the program.)

0.05s 0.05s

M9030

SM411 0.2 second clock M9031

0.1s 0.1s

SM412 1 second clock M9032

0.5s 0.5s

SM413 2 second clock M9033

QCPU

  • This relay alternates between ON and OFF at intervals of the time (unit: s) specified in SD414.
  • When Programmable Controller power supply is turned ON or a CPU module reset is performed, goes from OFF to start. (Note that the ON-OFF status changes when the designated time has elapsed during the execution of the program.)

S (Status change) M9034form

SM414 2n second clock

App-127

Show 28 more labels / short text on this page
(3) System clocks/counters · Corres- ponding · Corresponding · processing) M9036 · processing) M9037 · Qn(H) QnPH QnPRH · S (Every END · processing) M9038 · QnU · program · processing) New Q00J/Q00/Q01 · Qn(H) QnPH QnPRH · processing) M9039 · QnU · program · processing) New Q00J/Q00/Q01 · 1 scan · S (Every END · processing) New · Qn(H) QnPH · S (Every END · processing) New · Qn(H) QnPH QnPRH · QnU · S (Status change) · 1s 1s · ns ns · at change
Page 1118 of the Mitsubishi Electronics QCPU user manual — App-128
Page 1118 · click to enlarge
Page 1118

TableApp.3.4 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • This relay alternates between ON and OFF at intervals of the time (unit: ms) specified in SD415.
  • When Programmable Controller power supply is turned ON or a CPU module reset is performed, goes from OFF to start. (Note that the ON-OFF status changes when the designated time has elapsed during the execution of the program.)

SM415 2n (ms) clock

S (Status change) New

  • SM420 User timing clock No.0
  • Relay repeats ON/OFF switching at fixed scan intervals.
  • When Programmable Controller power supply is turned ON or a CPU module reset is performed, goes from OFF to start. (For the redundant CPU, however, this relay is always OFF after system switching.)
  • The ON/OFF intervals are set with the DUTY instruction

M9020

SM421 User timing clock No.1 M9021

SM422 User timing clock No.2 M9022

SM423 User timing clock No.3 M9023

QCPU

SM424 User timing clock No.4 M9024

n2 scan n2 scan

DUTY n1 n2 SM420

n1ON scan interval n2: OFF scan interval

SM430 User timing clock No.5

SM431 User timing clock No.6

  • For use with SM420 to SM424 low speed programs S (Every END

processing) New Qn(H) QnPH

SM432 User timing clock No.7

SM433 User timing clock No.8

SM434 User timing clock No.9

TableApp.3.5 Special relay

Mitsubishi Electronics QCPU — QCPU diagram (page 1118)
Fig. 1443
  • Goes ON when low speed execution type program is executed.
  • When this relay goes from OFF to ON, the module service interval designated by SD550 is read to SD551 to SD552.

TableApp.3.6 Special relay

Mitsubishi Electronics QCPU — QCPU diagram (page 1118)
Fig. 1444
  • When this special relay is turned ON, I/O refresh is performed after execution of the first program, and the next program is then executed. When a sequence program and an SFC program are to be executed, the sequence program is executed, I/O refresh is performed, and the SFC program is then executed.

*1: This applies to the CPU of function version B or later.

App-128

Show 10 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · n(ms) n(ms) · QnU · S (Every END · processing) · n1 scan · (4) Scan information · (5) I/O refresh
Page 1119 of the Mitsubishi Electronics QCPU user manual — App-129
Page 1119 · click to enlarge
Page 1119

TableApp.3.7 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM600 Memory card usable flags

OFF : Unusable ON : Use enabled • ON when memory card is ready for use by user S (Status change) New

SM601 Memory card protect flag

OFF : No protect ON : Protect • Goes ON when memory card protect switch is ON S (Status change) New

SM602 Drive 1 flag OFF : No drive 1 ON : Drive 1 present • Turns ON when the mounted memory card is RAM S (Status change) New

SM603 Drive 2 flag OFF : No drive 2 ON : Drive 2 present • Turns ON when the mounted memory card is ROM S (Status change) New

SM604 Memory card in-use flag

OFF : Not used ON : In use • Goes ON when memory card is in use S (Status change) New

OFFRemove/insert enabled ON : Remove/insert

SM605 Memory card remove/ insert prohibit flag

  • Goes ON when memory card cannot be inserted or removed U New
  • Turned ON by user to enable the removal/insertion of memory card.
  • Turned OFF by the system after the memory card is removed.
  • This contact can be used only when SM604 and SM605 are OFF.

A

OFFRemove/insert

SM609 Memory card remove/ insert enable flag

prohibited ONRemove/insert enabled

SM620 Drive 3/4 usable flags OFF : Unusable ON : Use enabled • Always ON S (Initial) New QCPU

Q00J/Q00/Q01

SM622 Drive 3 flag OFFNo drive 3 ON : Drive 3 present • Always ON S (Initial) New

SM623 Drive 4 flag OFF : No drive 4 ON : Drive 4 present • Always ON S (Initial) New QCPU

SM624 Drive 3/4 in-use flag OFF : Not used ON : In use

  • Goes ON when the file within Drive 3 (standard RAM) or Drive 4 (standard ROM) is used. S (Status change) New

Q00J/Q00/Q01

SM640 File register use OFF : File register not used ON : File register in use • Goes ON when file register is in use S (Status change) New

Appendix 3 SPECIAL RELAY LIST

*1: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *2: The Universal model QCPU except the Q00UJCPU.

App-129

Show 13 more labels / short text on this page
(6) Memory cards · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · QnU*1 · prohibited · S/U New · Qn(H) QnPH QnPRH · QnU*2 · Qn(H) QnPH QnPRH · QnU · Qn(H) QnPH QnPRH · QnU*2
Page 1120 of the Mitsubishi Electronics QCPU user manual — App-130
Page 1120 · click to enlarge
Page 1120

TableApp.3.7 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM650 Comment use OFF : File register not used ON : File register in use • Goes ON when comment file is in use S (Status change) New

OFFInternal memory
execution ONBoot operation in
  • Goes ON while boot operation is in process
  • Goes OFF if boot designation switch is OFF S (Status change) New
OFFProgram memory
execution ONBoot operation in
  • Goes ON while boot operation is in process S (Status change) New Q00J/Q00/Q01

Latch data backup to standard ROM completion flag

  • Turned ON when latch data backup to the standard ROM is completed.
  • Time when the latch data backup to the standard ROM was performed is stored in SD672 or later.
OFFNot completed ON : Completed

SM671

S (Status change) New QnU

  • Goes ON when access is made to area outside the range of file register of memory card(Set within END processing.)
  • Reset at user program

Memory card file register access range flag

SM672

OFFWithin access range ON : Outside access range
  • Turned ON when data cannot be backuped to the standard ROM by the latch data backup normally.
  • Turned OFF when data is backuped to the standard ROM by the latch data backup normally.

Error completion of latch data backup to standard ROM

OFFNo Error ON : Error

SM675

  • If latch data backup is performed when SM676 is ON, restore the data every time turning ON from OFF the power supply from the next power-on.
  • Delete the backuped latch data, or restore the data every time turning ON from OFF the power supply until the latch data backup operation will be executed again.

Specification of restration repeated execution

OFFNot specified ON : Specified

SM676

OFFWrite error ON : Write not executed/
  • Turns ON if a write error is detected at writing to program memory (flash ROM). Turns OFF by the write direction.

SM680 Program memory write error

S (At write) New

SM681 Program memory writing flag

OFFDuring writing ON : Write not executed
  • Turns ON when writing to the program memory (flash ROM) is in progress, and turns OFF when writing is completed.

S (At write) New

OFFOverwrite count is

Program memory overwrite count error flag

100,000 or more ONOverwrite count is less
  • Turns ON when the overwrite count of program memory (flash ROM) reaches 100,000. S (At write) New

SM682

SM685 Standard ROM write error

OFFWrite error ON : Write not executed/
  • Turns ON when write error is detected at writing to standard ROM (flash ROM).
  • Turns OFF by the write direction. S (At write) New
  • Turns ON when writing to the standard ROM (flash ROM) is in progress, and turns OFF when writing is completed.

SM686 Standard ROM writing flag

OFFDuring overwriting ON : Overwrite not executed

S (At write) New

OFFOverwrite count is

Standard ROM overwrite count error flag

  • Turns ON when the overwrite count of standard ROM (flash ROM) reaches 100,000. (It is necessary to change CPU module.)

SM687

100,000 or more ONOverwrite count is less

S (At write) New

OFFBackup start
preparation not completed ONBackup start

SM691 Backup start preparation status flag

Turns on when the backup start preparation is completed. S (Status change) New

OFFRestoration not

SM692 Restoration complete flag

completed ONRestoration completed

Turns on when restoration of the backup data in the memory card is completed. S (Status change) New

*1: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *3: The modules whose serial number (first five digits) is "10102" or later are the relevant models. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

App-130

Show 20 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · QnU · Qn(H) QnPH QnPRH · progress · SM660 Boot operation · QnU*1 · progress · Qn(H) QnPH QnPRH · S/U New · S New · U New · normal · QnU · than 100,000 · normal · than 100,000 · preparation completed · QnU*3
Page 1121 of the Mitsubishi Electronics QCPU user manual — App-131
Page 1121 · click to enlarge
Page 1121

(7) Instruction-Related Special Relays

TableApp.3.8 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM700 Carry flag OFF : Carry OFF ON : Carry ON • Carry flag used in application instruction S (Instruction

SM701 Number of output characters selection

Switching the number of output characters and the output pattern

  • Used for the PR, PRC, BINDA, DBINDA, BINHA, DBINHA, BCDDA, DBCDDA, or COMRD instruction U M9049
SM702 Search method OFFSearch next ON : 2-part search
  • Designates method to be used by search instruction.
  • Data must be arranged for 2-part search. U New
  • The sort instruction is used to designate whether data should be sorted in ascending order or in descending order.
QCPU SM703 Sort order OFFAscending order ON : Descending order
  • Goes ON when all data conditions have been met for the BKCMP instruction.
SM704 Block comparison OFFNon-match found ON : All match
  • Goes ON when all data conditions have been met for the DBKCMP instruction.

Turns on when the data to be compared by the DT or TM instruction is not recognized as date data or time data, or the device (3 words) to be compared exceeds the specified device range.

A

DT/TM instruction improper data detection flag

OFFImproper data not

SM709

detected ONImproper data detected

S (Instruction execution) or U New

SM710 CHK instruction priority ranking flag

OFFConditions priority ON : Pattern priority
  • Remains as originally set when OFF.
  • CHK priorities updated when ON. S (Instruction

SM715 EI flag OFF : During DI ON : During EI • ON when EI instruction is being executed. S (Instruction

Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Initial execution type program, scan execution type program, stand-by type program executed from initial execution type program or scan execution type program)

Block comparison (Except an interrupt program)

OFFMismatch found ON : No mismatch

SM716

Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Interrupt program, fixed scan execution type program, stand-by type program executed from interrupt program or fixed scan execution type program)

SM717 Block comparison (Interrupt program)

OFFMismatch found ON : No mismatch

Block comparison (Interrupt program (I45))

Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction. (Interrupt program (I45) or Stand-by type program executed from interrupt program (I45))

OFFMismatch found ON : No mismatch

SM718

Appendix 3 SPECIAL RELAY LIST

OFFComment read not
  • Turns on only during one scan when the processing of the COMRD or PRC instruction is completed.

SM720 Comment read completion flag

completed ONComment read

S (Status change) New

  • Turns on only during one scan when the processing of the COMRD instruction is completed.
  • Switches ON while a file is being accessed by the SP. FWRITE, SP. FREAD, COMRD, PRC, or LEDC instruction.
  • Switches ON while a file is being accessed by the SP. FWRITE, SP. FREAD, COMRD or LEDC instruction.
SM721 File being accessed OFFFile not accessed ON : File being accessed

S (Status change) New

  • Switches ON while a file is being accessed by the SP. FWRITE, SP. FREAD, COMRD or SP.DEVST instruction.
  • Turns ON while the ATA card or standard ROM is being accessed. QnU *1
OFFError detection

SM722 BIN/DBIN instruction error disabling flag

performed ONError detection not
  • Turned ON when "OPERATION ERROR" is suppressed for BIN or DBIN instruction. U New QCPU
  • *1: The module whose first 5 digits of serial No. is "09042" or later. *2: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU *3: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UCPU, Q01UCPU

App-131

Show 26 more labels / short text on this page
Corres- ponding · Corresponding · execution) M9012 QCPU · Qn(H) QnPH QnPRH · QnU · U New · S (Instruction · execution) New · S (Instruction · execution) New · QnU*2 · Qn(H) QnPH QnPRH · execution) New · execution) New QCPU · QnU*2 · S (Instruction · execution) New · QnU*3 · Qn(H) QnPH · QnPRH · completed · QnU · Qn(H) QnPH · Qn(H) QnPH QnPRH · QnU · performed
Page 1122 of the Mitsubishi Electronics QCPU user manual — App-132
Page 1122 · click to enlarge
Page 1122

TableApp.3.8 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

OFFNot executed by
  • During OFF, XCALL instructions will not be executed even if execution condition is risen.
  • During ON, XCALL instructions will be executed when execution condition is risen.

XCALL instruction execution condition designation

execution condition risen ONExecuted by execution

SM734

U New Qn(H)*1

OFFSFC comment readout

SFC comment readout instruction in execution flag

instruction is inactivated. ONSFC comment readout
  • Turns on the instructions, (S(P).SFCSCOMR) to read the SFC step comments and (S(P). SFCTCOMR) to read the SFC transition condition comments.

SM735

S (status change) New

instruction is activating.

OFFInstruction not

SM738 MSG instruction reception flag

  • Goes ON when MSG instruction is executed S (Instruction

execution) New Qn(H) QnPRH

executed ONInstruction execution

SM750 Scaling instruction search method setting

OFFSearch next ON : 2-part search

Determines a search method when the scaling instruction is executed. U New QnU*8

Q00J/Q00/Q01 *4

PID bumpless processing (for complete derivative)

SM774

OFFMatched ON : Not matched
  • Specifies whether to match the set value (SV) with the process value (PV) or not in the manual mode. U New
  • Select whether link refresh processing will be performed or not when only communication with the CPU module is made at the execution of the COM instruction.
OFFPerforms link refresh ON : Performs no link

Q00J/Q00/Q01

Selection of refresh processing during COM/CCOM instruction execution

SM775

OFFPerforms refresh

Q00J/Q00/Q01 *4

processes other than an I/O refresh ON : Performs refresh set

  • Select whether to perform refresh processes other than an I/O refresh set by SD778 when the COM or CCOM instruction is executed.
  • Set whether the local device of the subroutine program called at execution of the CALL instruction is valid or invalid.

SM776 Enable/disable local device at CALL

OFFLocal device disabled ON : Local device enabled

U New Qn(H) QnPH QnPRH

Enable/disable local device in interrupt program

OFFLocal device disabled ON : Local device enabled
  • Set whether the local device at execution of the interrupt program is valid or invalid. U New

Q00J/Q00/Q01 *4

PID bumpless processing(for incomplete derivative)

SM794

OFFMatched ON : Not matched
  • Specifies whether to match the set value (SV) with the process value (PV) or not in the manual mode. U New
  • *1: The module whose first 5 digits of serial No. is "06082" or later. *2: The module whose first 5 digits of serial No. is "07012" or later. *3: The module whose first 5 digits of serial No. is "07032" or later. *4: This applies to the CPU module of function version B or later. *5: The module whose first 5 digits of serial No. is "04012" or later. *6: The module whose first 5 digits of serial No. is "05032" or later. *8: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU *9: The Universal model QCPU except the Q00UJCPU.

App-132

Show 21 more labels / short text on this page
Corres- ponding · Corresponding · condition risen · Qn(H)*2 · QnPH*3 · QnPRH*3 · Qn(H) QnPRH · QnU · U New · Qn(H) QnPH · refresh · Qn(H)*5 · U New · QnPH*3 · QnPRH · by SD778 · QnU · QnU*9 SM777 · Qn(H)*6 · QnPRH · QnU
Page 1123 of the Mitsubishi Electronics QCPU user manual — App-133
Page 1123 · click to enlarge
Page 1123

TableApp.3.8 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.1)

  • Turns ON when the number of the remaining blocks of the dedicated instruction transmission area used for the multiple CPU high-speed transmission dedicated instruction(target CPU= CPU No.1) is less than the number of blocks specified by SD796. Turns ON at instruction execution. Turns OFF when the empty area exists at END processing.
OFFBlock is secured ON : Block set by SD796

SM796

  • Turns ON when the number of the remaining blocks of the dedicated instruction transmission area used for the multiple CPU high-speed transmission dedicated instruction (target CPU= CPU No.2) is less than the number of blocks specified by SD797. Turns ON at instruction execution. Turns OFF when the empty area exists at END processing.

Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.2)

OFFBlock is secured ON : Block set by SD797

SM797

  • Turns ON when the number of the remaining blocks of the dedicated instruction transmission area used for the multiple CPU high-speed transmission dedicated instruction (target CPU= CPU No.3) is less than the number of blocks specified by SD798. Turns ON at instruction execution. Turns OFF when the empty area exists at END processing.

Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.3)

OFFBlock is secured ON : Block set by SD798

SM798

A

Block information using multiple CPU high-speed transmission dedicated instruction (for CPU No.4)

  • Turns ON when the number of the remaining blocks of the dedicated instruction transmission area used for the multiple CPU high-speed transmission dedicated instruction(target CPU= CPU No.4) is less than the number of blocks specified by SD799. Turns ON at instruction execution. Turns OFF when the empty area exists at END processing.
OFFBlock is secured ON : Block set by SD799

SM799

*7: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

TableApp.3.9 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM800 Trace preparation OFFNot ready ON : Ready
  • Switches ON when the trace preparation is completed S (Status change) New
SM801 Trace start OFFSuspend ON : Start
  • Trace is started when this relay switches ON.
  • Trace is suspended when this relay switches OFF. (All related special Ms switches OFF.)

U M9047

SM802 Trace execution in progress

OFF : Suspend ON : Start • Switches ON during execution of trace. S (Status change) M9046

Appendix 3 SPECIAL RELAY LIST

  • Trace is triggered when this relay switches from OFF to ON. (Identical to TRACE instruction execution status)
SM803 Trace trigger OFF ONStart

U M9044

SM804 After trace trigger OFF : Not after trigger ON : After trigger • Switches ON after trace is triggered. S (Status change) New

SM805 Trace completed OFF : Not completed ON : End • Switches ON at completion of trace S (Status change) M9043

SM826 Trace error OFF : Normal ON : Errors • Switches ON if error occurs during execution of trace S (Status change) New

  • Even when the trace condition or the trigger condition is established, the sampling trace setting can be set to the CPU module by turning SM829 ON and registering the sampling trace setting by GX Developer.
ONForced registration

Forced registration specification of trace setting

enabled OFFForced registration

SM829

U New QnU*1

*1: The Universal model QCPU except the Q00UJCPU.

App-133

Show 29 more labels / short text on this page
Corres- ponding · Corresponding · S (When instruction/END · processing · New · cannot be secured · executed) · S (When instruction/END · New · processing · cannot be secured · executed) · QnU*7 · S (When instruction/END · New · cannot be secured · processing · executed) · S (When instruction/END · processing · New · cannot be secured · executed) · (8) Debug · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · QnU*1 · disabled
Page 1124 of the Mitsubishi Electronics QCPU user manual — App-134
Page 1124 · click to enlarge
Page 1124

(9) A to Q conversion correspondences

Special relays SM1000 to SM1255 are the relays which correspond to ACPU special relays M9000 to M9255 after A to Q conversion. (However, the Basic model QCPU and Redundant CPU do not support the A to Q conversion.) These special relays are all set by the system, and cannot be set by the user program. To turn them ON/OFF by the user program, change the special relays in the program into those of QCPU. However, some of SM1084 and SM1200 to SM1255 (corresponding to M9084 and M9200 to M9255 before conversion) can be turned ON/OFF by the user program, if they could be turned ON/OFF by the user program before conversion.For details on the ACPU special relays, see the user's manuals for the individual CPUs, and MELSECNET or MELSECNET/ B Data Link System Reference Manuals

POINT

Check "Use special relay/special register from SM/SD1000" for "A-PLC" on the PLC system tab of PLC parameter in GX Developer when the converted special relays are used with the High Performance model QCPU, Process CPU, and Universal model QCPU. When not using the converted special relays, uncheck "Use special relay/special register from SM/SD1000" to save the time taken for processing special relays.

Remark

The following are additional explanations about the Special Relay for Modification column.

When a special relay for modification is provided, the device number should

be changed to the provided QCPU special relay.

When is provided, the converted special relay can be used for the device number.

When is provided, the device number does not work with QCPU.

TableApp.3.10 Special relay

Mitsubishi Electronics QCPU — Remark diagram (page 1124)
Fig. 1445 · Remark
  • Turned on when there is one or more output modules of which fuse has been blown.
  • Remains ON if the condition is restored to normal thereafter.
  • Output modules of remote I/O stations are also checked fore fuse condition. Qn(H) QnPH
  • Turned on if the status of I/O module is different form entered status when power is turned on.
  • Remains ON if the condition is restored to normal thereafter.
  • I/O module verification is done also to remote I/O station modules.
  • Reset is enabled only when special registers SD1116 to SD1123 are reset.
  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-134

Page 1125 of the Mitsubishi Electronics QCPU user manual — App-135
Page 1125 · click to enlarge
Page 1125

TableApp.3.11 Special relay

Special Relay after Conversion

Special Relay for Modification

Name Meaning Details Corresponding

CPU

  • Turns ON if an instantaneous power failure of within 20ms occurs during use of the AC power supply module.
  • Reset when the power supply is switched OFF, then ON.
OFFAC DOWN not

M9005 SM1005 – AC DOWN detection

detected ONAC DOWN detected
  • Turns ON if an instantaneous power failure of within 10ms occurs during use of the DC power supply module.
  • Reset when the power supply is switched OFF, then ON.
  • Turns ON when the battery voltage drops to or below the specified.
  • Turns OFF when the battery voltage returns to normal thereafter.

M9006 SM1006 – Battery low OFF : Normal ON : Battery low

  • Turns ON when the battery voltage drops to or below the specified.
  • Remains ON if the battery voltage returns to normal thereafter.

M9007 SM1007 – Battery low latch OFF : Normal ON : Battery low

M9008 SM1008 SM1 Self-diagnosis error

OFFNo error ON : Error
  • Turned on when error is found as a result of selfdiagnosis.

A

M9009 SM1009 SM62 Annunciator detection

OFFNo F number detected ON : F number detected
  • Turned on when OUT F of SET F instruction is executed.
  • Switched off when SD1124 data is cleared to zero.
  • Turned on when operation error occurs during execution of application instruction.
  • Remains ON if the condition is restored to normal thereafter.

M9011 SM1011 SM56 Operation error flag

OFFNo error ON : Error

M9012 SM1012 SM700 Carry flag OFF : Carry OFF ON : Carry ON • Carry flag used in application instruction.

Qn(H) QnPH M9016 SM1016 Data memory clear flag

OFFlgnored ON : Output claered
  • Clears the data memory including the latch range (other than special relays and special registers) in remote run mode from computer, etc. when SM1016 is on.
  • Clears the unlatched data memory (other than special relays and special registers) in remote run mode from computer, etc. when SM1017 is on.

M9017 SM1017 Data memory clear flag

OFFlgnored ON : Output claered

M9020 SM1020 – User timing clock No.0

  • Relay which repeats on/off at intervals of predetermined scan.
  • When power is turned on or reset is per-formed, the clock starts with off. Set the intervals of on/off by DUTY instruction.

M9021 SM1021 – User timing clock No.1

DUTY n1 n2 SM1020

n1: ON scan interval n2: OFF scan interval * : If DUTY instruction, which specified from SM 1020 to

n2 scan n2 scan

M9022 SM1022 – User timing clock No.2

Appendix 3 SPECIAL RELAY LIST

SM 1024 of User timing clock in programs other than a program for a Universal model QCPU, changes the programmable controller to the Universal model QCPU, the special relays SM 420 to 424 will be replaced. (Universal model QCPUs cannot specify the special relays from SM 1020 to SM1024.)

M9023 SM1023 – User timing clock No.3

M9024 SM1024 – User timing clock No.4

OFFIgnored ON : Set request present
  • Writes the clock data stored in SD1025 to SD1028 to the CPU module after the END instruction is executed in the scan in which SM1025 turned from OFF to ON.

M9025 SM1025 – Clock data set request

M9026 SM1026 – Clock data error OFF : No error ON : Error • Switched on by clock data (SD1025 to SD1028) error

M9028 SM1028 – Clock data read request

OFFIgnored ON : Read request
  • Reads clock data to SD1025 to SD1028 in BCD when SD1028 is on.
  • The SM1029 relay is turned on using a sequence program to process all data communication requests accepted during one scan in the END processing of that scan.
  • The batch processing of the data communication requests can be turned on and off during running.
  • The default is OFF (processed one at a time for each END processing in the order in which data communication requests are accepted).

Batch processing of data communications requests

OFFBatch processing not
conducted ONBatch processing

M9029 SM1029

0.05s 0.05s

M9030 SM1030 – 0.1 second clock

  • 0.1 second, 0.2 second, 1 second and 2 second, clocks are generated.
  • Not turned on or off per scan but turned on and off even during scan if corresponding time has elapsed.
  • Starts with off when Programmable Controller power supply is turned on or CPU module reset is performed.

0.1s 0.1s

M9031 SM1031 – 0.2 second clock

0.5s 0.5s

M9032 SM1032 – 1 second clock

M9033 SM1033 – 2 second clock

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-135

Show 13 more labels / short text on this page
ACPU Special · Relay · Qn(H) QnPH · QnU*1 · n1 scan · Qn(H) QnPH · QnU*1 · used · Qn(H) QnPH · conducted · Qn(H) QnPH · QnU*1 · 1s 1s
Page 1126 of the Mitsubishi Electronics QCPU user manual — App-136
Page 1126 · click to enlarge
Page 1126

TableApp.3.11 Special relay

Special Relay after Conversion

Special Relay for Modification

Name Meaning Details Corresponding

CPU

  • Alternates between ON and OFF according to the seconds specified at SD414. (Default: n = 30)
  • Not turned on or off per scan but turned on and off even during scan if corresponding time has elapsed.
  • Starts with off when Programmable Controller power supply is turned on or CPU module reset is performed.

M9034 SM1034 –

ON OFF

M9036 SM1036 – Always ON

  • Used as dummy contacts of initialization and application instruction in sequence program.
  • SM1038 and SM1037 are turned on and off without regard to position of key switch on CPU module front. SM1038 and SM1039 are under the same condition as RUN status except when the key switch is at STOP position, and turned off and on. Switched off if the key switch is in STOP position. SM1038 is on for one scan only and SM1039 is off for one scan only if the key switch is not in STOP position.

ON OFF

M9037 SM1037 – Always OFF

M9038 SM1038 – ON for 1 scan only after RUN

ON OFF

RUN flag(After RUN, OFF for 1 scan only)

M9039 SM1039 –

ON OFF 1 scan

M9040 SM1040 SM206 PAUSE enable coil OFF : PAUSE disabled ON : PAUSE enabled • When RUN key switch is at PAUSE position or pause contact has turned on and if SM1040 is on, PAUSE mode is set and SM1041 is turned on.

M9041 SM1041 SM204 PAUSE status contact

OFFPAUSE not in effect ON : PAUSE in effect

M9042 SM1042 SM203 STOP status contact

OFFSTOP not in effect ON : STOP in effect
  • Switched on when the RUN key switch or RUN/STOP switch is in STOP position.
OFFSampling trace in
  • Turned on upon completion of sampling trace performed the number of times preset by parameter after STRA instruction is executed. Reset when STRAR instruction is executed.

M9043 SM1043 SM805 Sampling trace completed

progress ONSampling trace
  • Turning on/off SM1044 can execute STRA/STRAR instruction. (SM1044 is forcibly turned on/off by a peripheral device.) When switched from OFF to ON: STRA instruction When switched from ON to OFF: STRAR instruction The value stored in SD1044 is used as the condition for the sampling trace. At scanning, at time Time (10 ms unit)

OFF ON Same as STRA

instruction execution ON OFF Same as STRAR

M9044 SM1044 SM803 Sampling trace

  • The SM1045 relay is turned on to reset the WDT when the ZCOM instruction and data communication request batch processing are executed (used when the scan time exceeds 200 ms).

M9045 SM1045 Watchdog timer (WDT) reset

OFFDoes not reset WDT ON : Resets WDT

M9046 SM1046 SM802 Sampling trace OFF : Trace not in progress ON : Trace in progress • Switched on during sampling trace. Qn(H) QnPH

OFFSampling trace
  • Sampling trace is not executed unless SM1047 is turned ON. Sampling trace is suspended when SM1047 goes OFF.

M9047 SM1047 SM801 Sampling trace preparations

suspended ONSampling trace started

Switching the number of output characters

OFFOutput until NULL
  • When SM1049 is OFF, characters up to NULL (00 H ) code are output.
  • When SM1049 is ON, ASCII codes of 16 characters are output.

M9049 SM1049 SM701

code encountered ON16 characters output
  • Switched ON to disable the CHG instruction.
  • Switched ON when program transfer is requested. Automatically switched OFF when transfer is complete.

M9051 SM1051 CHG instruction execution disable

OFFEnabled ON : Disable
  • When SM1052 is ON, the SEG instruction is executed as an I/O partial refresh instruction. When SM1052 is OFF, the SEG instruction is executed as a 7-SEG display instruction.

M9052 SM1052 SEG instruction switch

OFF7SEG segment display ON : I/O partial refresh
  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU *2: minute clock indicates the name of the special relay (M9034) of the ACPU.

App-136

Show 16 more labels / short text on this page
ACPU Special · Relay · 2n minute clock(1 · ns ns · minute clock)*2 · Qn(H) QnPH · QnU*1 · 1 scan · Qn(H) QnPH · Qn(H) QnPH · QnU*1 · completed · instruction execution · Qn(H) QnPH · QnU*1 · Qn(H) QnPH
Page 1127 of the Mitsubishi Electronics QCPU user manual — App-137
Page 1127 · click to enlarge
Page 1127

TableApp.3.11 Special relay

Special Relay after Conversion

Special Relay for Modification

Name Meaning Details Corresponding

CPU

OFFOther than when P, I

M9056 SM1056 Main side P, I set request

set being requested ONP, I set being
  • Provides P, I set request after transfer of the other program (for example subprogram when main program is being run) is complete during run. Automatically switched off when P, I setting is complete.
OFFOther than when P, I

M9057 SM1057 Sub side P, I set request

set being requested ONP, I set being

M9058 SM1058 Main side P, I set completion

Momentarily ON at P, I set

completion • Turned ON once when the P, I set has been completed, and then turned OFF again. M9059 SM1059 Sub program P, I set completion

Momentarily ON at P, I set

OFFOther than when P, I

M9060 SM1060 Sub program 2 P, I set request

set being requested ONP, I set being
  • Provides P, I set request after transfer of the other program (for example subprogram when main program is being run) is complete during run. Automatically switched off when P, I setting is complete. M9061 SM1061 Sub program 3 P, I set request
OFFOther than when P, I

A

set being requested ONP, I set being
OFFRead time not
  • Turned ON to shorten the search time in the A8UPU/ A8PUJ. (In this case, the scan time is extended by 10 %.)

M9070 SM1070

shortened ONRead time shortened

It is set whether the error checks below are performed or not when the END instruction is processed (to set the END instruction processing time).

M9084 SM1084 Error check OFFError check executed ON : No error check
  • Check for fuse blown.
  • Check of battery
  • Collation check of I/O module
  • Turns ON when the detail factor of the operation error is stored into SD1091.
  • Remains ON if the condition is restored to normal thereafter.

M9091 SM1091 Operation error details flag

OFFNo error ON : Error

M9100 SM1100 SM320 Presence/absence of SFC program

OFFSFC programs not
  • Turned on if the SFC program is registered.
  • Turned off if the SFC program is not registered.
used ONSFC programs used
  • The value in SM1100 is set as the initial value. (The relay automatically turns ON when the SFC program is present.)
  • When this relay turns from ON to OFF, execution of the SFC program stops.
  • When this relay turns from OFF to ON, execution of the SFC program resumes.

M9101 SM1101 SM321 Start/stop SFC program

OFFSFC programs stop ON : SFC programs start

Appendix 3 SPECIAL RELAY LIST

  • The SFC program start mode in the SFC setting of the PLC parameter dialog box is set as the initial value. At initial start: OFF At continue start: ON

M9102 SM1102 SM322 SFC program start status

OFFInitial start ON : Resume start

*3: The A8UPU/A8PUJ is not available for the QCPU/QnACPU.

App-137

Show 10 more labels / short text on this page
ACPU Special · Relay · requested · requested · completion · requested · requested · A8UPU/ A8PUJrequired · search time*3 · Qn(H) QnPH
Page 1128 of the Mitsubishi Electronics QCPU user manual — App-138
Page 1128 · click to enlarge
Page 1128

TableApp.3.11 Special relay

Special Relay after Conversion

Special Relay for Modification

Name Meaning Details Corresponding

CPU

Presence/absence of continuous transition

OFFContinuous transition
  • Set whether continuous transition will be performed for the block where the "continuous transition bit" of the SFC information device is not set.
not effective ONContinuous transition

M9103 SM1103 SM323

  • OFF during operation in the continuous transition mode or during continuous transition, and ON when continuous transition is not executed.
  • Always ON during operation in the no continuous transition mode.

Continuous transition suspension flag

OFFWhen transition is

M9104 SM1104 SM324

completed ONWhen no transition

Step transition monitoring timer start (equivalent of SD90)

M9108 SM1108 SM90

Step transition monitoring timer start (equivalent of SD91)

M9109 SM1109 SM91

Step transition monitoring timer start (equivalent of SD92)

M9110 SM1110 SM92

Step transition monitoring timer start (equivalent of SD93)

  • Turns ON when the measurement of the step transition monitoring timer is started. Turning this relay OFF resets the step transition monitoring timer.
OFFMonitoring timer reset ON : Monitoring timer reset

M9111 SM1111 SM93

Step transition monitoring timer start (equivalent of SD94)

M9112 SM1112 SM94

Step transition monitoring timer start (equivalent of SD95)

M9113 SM1113 SM95

Step transition monitoring timer start (equivalent of SD96)

M9114 SM1114 SM96

  • Selects the operation output when block stop is executed. ON : Retains the ON/OFF status of the coil being used

M9196 SM1196 SM325 Operation output at block stop

OFFCoil output OFF ON : Coil output ON

by using operation output of the step being executed at block stop. OFF : All coil outputs are turned off. (Operation output

by the SET instruction is retained regardless of the ON/OFF status of SM1196.)

SM 1197 SM 1198

M9197 SM1197

OFF OFF X/Y0 to 7F0

Switches I/O numbers in the fuse blow module storage registers (SD1100 to SD1107) and I/O module verify error storage registers (SD1116 to SD1123) according to the combination of ON/OFF of the SM1197 and SM1198.

Switch between blown fuse and I/O verify error display

ON OFF X/Y800 to

FF0

OFF ON X/Y1000 to

17F0

M9198 SM1198

ON ON X/Y1800 to

1FF0

  • Recovers the setting data stored in the CPU module at restart when sampling trace/status latch is executed.
  • SM1199 should be ON to execute again. (Unnecessary when writing the data again from peripheral devices.)

Data recovery of online sampling trace/status latch

OFFData recovery disabled ON : Data recovery enabled

M9199 SM1199

(10) QCPU with built-in Ethernet port

TableApp.3.12 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

OFFNo time setting function

Set this to ON when executing the time setting function (SNTP client). (Only when the time setting function is in "Use" with the time setting parameter.)

Time setting function (SNTP client) execution

(SNTP client) execution ONTime setting function

SM1270

SM1273 Remote password mismatch count clear

OFFNormal ON : Clear

To clear the acumulated numeber (SD979 to 999) of mismatched remote passwords, the setting SM1273 is executed.

* 1: This applies to the Built-in Ethernet port QCPU.

App-138

Show 13 more labels / short text on this page
ACPU Special · Relay · effective · start · Qn(H) QnPH · I/O numbers · to be displayed · Corres- ponding · Corresponding · U New · (SNTP client) execution · QnU*1 · U New
Page 1129 of the Mitsubishi Electronics QCPU user manual — App-139
Page 1129 · click to enlarge
Page 1129

(11) Process control instructions

TableApp.3.13 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

  • Specifies whether or not to hold the output value when a range over occurs for the S.IN instruction range check.
SM1500 Hold mode OFFNo-hold ON : Hold
SM1501 Hold mode OFFNo-hold ON : Hold
  • Specifies whether or not the output value is held when a range over occurs for the S.OUT instruction range check.

(12) For redundant systems (Host system CPU information *1)

SM1510 to SM1599 are only valid for redundant systems. All off for standalone systems.

TableApp.3.14 Special relay

A

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

OFFRedundant system
backup mode, standalone system ONRedundant system
  • Turns on when the operating mode is redundant system separate. S (Each END) New
  • Distinguishes between system A and system B.
  • The flag status does not change even if the tracking cable is disconnected.

SM1511 System A identification flag

When TRK. CABLE ERR. (error code: 6210) occurs (Unknown)

SM1512 System B identification flag

SM1511

ON

OFF

OFF

SM1512

OFF

ON

OFF

SM1513 Debug mode status flag

OFFNot in debug mode ON : Debug mode
  • Turns on when the redundant system operating mode is set to debug mode. S (Initial) New
  • Indicates operation system status.
  • The flag status does not change even if the tracking cable is disconnected.

SM1515 Control system judgment flag

Appendix 3 SPECIAL RELAY LIST

When TRK. CABLE ERR. (error code: 6210) occurs (Unknown)

S (Status change) New

SM1516 Standby system judgment flag

SM1515

ON

OFF

OFF

SM1516

OFF

ON

OFF

*1: The information of the host CPU module is stored.

App-139

Show 16 more labels / short text on this page
Corres- ponding · Corresponding · U New · QnPH QnPRH · U New · Corres- ponding · Corresponding · SM1510 Operation mode · separate mode · System A · System B · S (Initial) New · QnPRH · Control system · Standby · system
Page 1130 of the Mitsubishi Electronics QCPU user manual — App-140
Page 1130 · click to enlarge
Page 1130

TableApp.3.13 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

OFFPower supply on
  • Turns on when the CPU module is started up by the system switching (switching from the standby system to the control system). Remains OFF when the standby system is switched to the control system by a power-ON startup.

SM1517 CPU module startup status

startup ONOperation system

S (Status change) New

Standby system to control system switching status flag

  • Turns ON once switch between standby system to control system, (ON for 1 scan only) occurs.
  • This status flag can only be used for scan execution type programs.

ON OFF

SM1518

S (Each END) New

  • On the last operation Control System was System B,if power supply is supplied, or reset is released on both SYSTEM together,After RUN, ON for 1 scan only by System A side.

Previous Control System Identification Flag

SM1519

ON OFF 1 scan

S (Each END) New

SM1520

SM1521 SM1521 Block 2

SM1522 SM1522 Block 3

SM1523 SM1523 Block 4

SM1524 SM1524 Block 5

SM1525 SM1525 Block 6

SM1526 SM1526 Block 7

SM1527 SM1527 Block 8

SM1528 SM1528 Block 9

  • When data is transferred based on the tracking setting of the redundant parameter dialog box, the target block is specified as trigger.

SM1529 SM1529 Block 10

SM1530 SM1530 Block 11

SM1531 SM1531 Block 12

SM1532 SM1532 Block 13

SM1533 SM1533 Block 14

Data tracking transfer trigger specification

OFFNo trigger ON : Trigger
  • When "Auto Tracking block No.1" is enabled in the tracking setting, SM1520 is turned ON by the system at power ON/ STOP to RUN. In other cases, SM1520 to SM1583 are turned ON by the user.

SM1534 SM1534 Block 15

SM1535 SM1535 Block 16

SM1536 SM1536 Block 17

SM1537 SM1537 Block 18

SM1538 SM1538 Block 19

SM1539 SM1539 Block 20

SM1540 SM1540 Block 21

SM1541 SM1541 Block 22

SM1542 SM1542 Block 23

SM1543 SM1543 Block 24

SM1544 SM1544 Block 25

SM1545 SM1545 Block 26

SM1546 SM1546 Block 27

SM1547 SM1547 Block 28

SM1548 SM1548 Block 29

App-140

Show 7 more labels / short text on this page
Corres- ponding · Corresponding · switch start up · 1 scan · SM1520 Block 1 · QnPRH · S (initial)/U New
Page 1131 of the Mitsubishi Electronics QCPU user manual — App-141
Page 1131 · click to enlarge
Page 1131

TableApp.3.13 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM1549

SM1550 SM1550 Block 31

SM1551 SM1551 Block 32

SM1552 SM1552 Block 33

SM1553 SM1553 Block 34

SM1554 SM1554 Block 35

SM1555 SM1555 Block 36

SM1556 SM1556 Block 37

SM1557 SM1557 Block 38

SM1558 SM1558 Block 39

SM1559 SM1559 Block 40

SM1560 SM1560 Block 41

  • When data is transferred based on the tracking setting of the redundant parameter dialog box, the target block is specified as trigger.

SM1561 SM1561 Block 42

A

SM1562 SM1562 Block 43

SM1563 SM1563 Block 44

SM1564 SM1564 Block 45

SM1565 SM1565 Block 46

Data tracking transfer trigger specification

OFFNo trigger ON : Trigger
  • When "Auto tracking block No. 1" is enabled in the tracking setting, SM1520 is turned ON by the system at power ON/ STOP to RUN. In other cases, SM1520 to SM1583 are turned ON by the user.

SM1566 SM1566 Block 47

SM1567 SM1567 Block 48

SM1568 SM1568 Block 49

SM1569 SM1569 Block 50

SM1570 SM1570 Block 51

SM1571 SM1571 Block 52

SM1572 SM1572 Block 53

SM1573 SM1573 Block 54

SM1574 SM1574 Block 55

SM1575 SM1575 Block 56

SM1576 SM1576 Block 57

SM1577 SM1577 Block 58

SM1578 SM1578 Block 59

SM1579 SM1579 Block 60

SM1580 SM1580 Block 61

Appendix 3 SPECIAL RELAY LIST

SM1581 SM1581 Block 62

SM1582 SM1582 Block 63

SM1583 SM1583 Block 64

OFFSystem switching

System switching enable/disable flag from network module

request issuing module absent ONSystem switching
  • Turns ON when a system switching request is issued from the network module. The module No. that issued system switching can be checked by SD1590.
  • Turns OFF when all bits of SD1590 are OFF.

SM1590

S (Each END) New

request issuing module present

ONError is not detected by

This flag is used to determine if the new standby station detects 6210:STANDBY during system switching. This applies to the following switching methods:

new standby system at system switching OFF : Error is detected by

Standby system error detection disable flag at system switching

SM1591

  • System switching from GX Developer
  • System switching using dedicated instruction
  • System switching by the intelligent function module

new standby system at system switching

OFFDisable user system

SM1592 Enable/disable user system switching

switching ONEnable user system
  • This flag enables system switching by the user from GX Developer or by dedicated instruction. (<a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW).

App-141

Show 8 more labels / short text on this page
Corres- ponding · Corresponding · SM1549 Block 30 · S (initial)/U New · QnPRH · U New · U New · switching
Page 1132 of the Mitsubishi Electronics QCPU user manual — App-142
Page 1132 · click to enlarge
Page 1132

TableApp.3.13 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

Sets the operation for the case accessing buffer memory of the intelligent function module mounted on the extension base unit from the standby system CPU in separate mode. OFF : “OPERATION ERROR” (error code: 4112) will be

Setting to access extension base unit of standby system CPU

SM1593

OFFError ON : Ignored

returned when accessing buffer memory of the intelligent function module on the extension base unit from the standby system CPU. ON : No processing is performed when accessing

U

buffer memory of intelligent function module on the extension base unit from the standby system CPU.

  • When SM1595 is turned from OFF to ON, memory copy from control system to standby system starts. Note that when SM1595 is turned from OFF to ON, memory copy does not start if the I/O No. of the copy destination (standby system CPU module: 3D1 H ) is not stored in SD1595.
OFFStart memory copy ON : No memory copy

SM1595 Memory copy to other system start flag

SM1596 Memory copy to other system status flag

OFFMemory copy not
  • Turns on while memory is copied to other system.
  • Turns off when memory copy execution has completed.
executed ONMemory copy executed
OFFMemory copy not

Memory copy to other system completion flag

SM1597

completed ONMemory copy
  • Turns on once the memory copying to the other system has completed. S (finish)/U
OFFCopy standard ROM

Copy contents of standard ROM during memory copy

data ONStandard ROM data is
  • If set to on by user, the standard ROM data is not copied to the other system while memory copy is executing.

SM1598

U

*2: The module whose first 5 digits of serial No. is “09012” or later.

(13) For redundant system (Other system CPU information *1)

SM1600 to SM1650 only valid for the CPU redundant system backup mode, so they cannot be refreshed during the separate mode. Either the backup mode or the separate mode is valid for the SM4651 to SM1699. SM1600 to SM1699 are all turned off for stand-alone system.

TableApp.3.14 Special relay

Number Name Meaning Explanation Set by (When Set)

CPU

SM *2

  • Turns on when an error occurs during redundant system. Error check (Turns on single bit of SD1600.)
  • Is off when no errors are present S (Each END) – QnPRH

SM1600 Other system error flag

OFFNo error ON : Error
  • Turns on when a diagnostics error occurs. (Includes error detection when annunciator is ON, and by CHK instruction)
  • Corresponds to status of SM0 at other system

SM1610 Other system diagnostics error

OFFNo error ON : Error

S (Each END) SM0

OFFNo self diagnostics
  • Turns on when a self diagnostics error occurs. (Does not include error detection when annunciator is ON, and by CHK instruction)
  • Corresponds to status of SM1 at other system

SM1611 Other systems self diagnostics error.

error occurred ONSelf diagnostics error

S (Each END) SM1

OFFNo common error

SM1615 Other system common error information

information present ONCommon error
  • Turns on when there is common error information at other system
  • Corresponds to status of SM5 at other system S (Each END) SM5

Error individual information for other systems

OFFNo individual error
  • Turns on when there is individual error information at other system
  • Corresponds to status of SM16 at other system S (Each END) SM16
information present ONIndividual error

SM1626

By turning this relay from OFF to ON, the continue error that occurred in the standby system CPU module can be canceled. Use SD1649 to specify the error code of the error to be canceled.

OFF to ONCancels error of standby system

SM1649 Standby system cancel error flag

U –

*1 Stores other system CPU diagnostic information and system information.

*2 This shows the special relay(SM ) for the host system CPU.

App-142

Show 19 more labels / short text on this page
Corres- ponding · Corresponding · QnPRH*2 · New · initiated · S (Starting to · copy/finish) · QnPRH · completed · New · not copied · Corresp · onding · Corresponding · Host · occurred · QnPRH · information present · information present
Page 1133 of the Mitsubishi Electronics QCPU user manual — App-143
Page 1133 · click to enlarge
Page 1133

(14) For redundant system (tracking)

Either the backup mode or the second mode is valid for SM1700 to SM1799. All is turned off for stand-alone system.

TableApp.3.15 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

SM1700 Transfer trigger completion flag

OFFTransfer not completed ON : Transfer completed
  • Turns on for one scan, once transfer of block 1 to block 64 is completed. S (status change)
  • (1) Turning this relay from OFF to ON enables manual system switching during online program change redundant tracking. After the manual system switching disable status is canceled, the system automatically turns off SM1709. (2) System switching due to any of the following conditions is executed even during online program change redundant tracking, regardless of the status of this relay.
  • Power off, reset, hardware failure, CPU stop error (3) In either of the following statuses, the system switching disable status can also be canceled by this relay.
  • Multiple-block online program change redundant tracking execution status
  • File batch online program change redundant tracking execution status

Manual system switching disable/ enable setting during online program change redundant tracking

ONManual system
switching enabled (Disable canceled) OFFManual system

A

SM1709

  • (1) Set whether the tracking of the following data will be executed or not during online program change redundant tracking.
  • Device memory (Including SM/SD that will automatically execute tracking)
  • PIDINIT information, S.PIDINIT information, SFC information (2) SM1710 can be also used to set whether tracking will be executed or not while online change of multiple program blocks or batch of files is being performed to ensure consistency of both systems. (3) This SM is also transferred form control system CPU module to standby system CPU module by tracking data.

Transfer tracking data during online program change enable flag

OFFNo device tracking ON : Transfer device

SM1710

U

Appendix 3 SPECIAL RELAY LIST

App-143

Show 6 more labels / short text on this page
Corres- ponding · Corresponding · S (When executed)/U · switching disabled · New QnPRH · memory
Page 1134 of the Mitsubishi Electronics QCPU user manual — App-144
Page 1134 · click to enlarge
Page 1134

TableApp.3.15 Special relay

Mitsubishi Electronics QCPU — Appendix 3 SPECIAL RELAY LIST diagram (page 1134)
Fig. 1446 · Appendix 3 SPECIAL RELAY LIST

Turns ON only during one scan when the transmission of the corresponding block is completed.

App-144

Page 1135 of the Mitsubishi Electronics QCPU user manual — App-145
Page 1135 · click to enlarge
Page 1135

TableApp.3.15 Special relay

Mitsubishi Electronics QCPU — Appendix 3 SPECIAL RELAY LIST diagram (page 1135)
Fig. 1447 · Appendix 3 SPECIAL RELAY LIST

Turns ON only during one scan when the transmission of the corresponding block is completed.

A

(15) Redundant power supply module information

TableApp.3.16 Special relay

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

M9

OFFNo redundant power
  • Turns ON when one or more redundant power supply modules with input power OFF are detected.
  • Turns on if any of SD1780 bits is on.
  • Turns off if all bits of SD1780 are off.
  • Turns OFF when the main base unit is not the redundant main base unit (Q38RB).
  • When the multiple CPU system is configured, the flags are stored only to the CPU No.1.

supply module with input power OFF detected ON : Redundant power

SM1780 Power supply off detection flag

supply module with input power OFF detected

  • Turns ON when one or more faulty redundant power supply modules are detected.
  • Turns on if any of SD1781 bits is on.
  • Turns off if all bits of SD1781 are off.
  • Turns OFF when the main base unit is not the redundant main base unit (Q38RB).
  • When the multiple CPU system is configured, the flags are stored only to the CPU No.1.
OFFNo faulty redundant
power supply module detected ONFaulty redundant

SM1781 Power supply failure detection flag

power supply module detected

Appendix 3 SPECIAL RELAY LIST

Momentary power failure detection flag for power supply 1 *1

  • Turns ON when a momentary power failure of the input power supply to the power supply 1 or 2 is detected one or more times. After turning ON, remains ON even if the power supply recovers from the momentary power failure.
  • Turns OFF the flag (SM1782, SM1783) of the power supply 1/2 when the CPU module starts.
  • When the input power to one of the redundant power supply modules turns OFF the corresponding flag turns OFF.
  • Turns OFF when the main base unit is not the redundant main base unit (Q38RB).
  • When the multiple CPU system is configured, the flags are stored only to the CPU No.1.

SM1782

OFFNo momentary power
failure detected ONMomentary power

Momentary power failure detection flag for power supply 2 *1

SM1783

*1: The "power supply 1" indicates the redundant power supply module mounted on the POWER 1 slot of the redundant base unit (Q38RB/Q68RB/Q65WRB). The "power supply 2" indicates the redundant power supply module mounted on the POWER 2 slot of the redundant base unit (Q38RB/Q68RB/Q65WRB). *2: The module whose first 5 digits of serial No. is "04012" or later. However, for the multiple CPU system configuration, this applies to all CPU modules whose first 5 digits of serial No. are "07032" or later. *3: The module whose first 5 digits of serial No. is "10042" or later.

App-145

Show 11 more labels / short text on this page
Corres- ponding · Corresponding · S (Each END) · S (Each END) · Qn(H)*2 · QnPH*2 · New · QnPRH · QnU*3 · S (Each END) · failure detected
Page 1136 of the Mitsubishi Electronics QCPU user manual — App-146
Page 1136 · click to enlarge
Page 1136

Appendix 4 SPECIAL REGISTER LIST

The special registers, SD, are internal registers with fixed applications in the Programmable Controller.

For this reason, it is not possible to use these registers in sequence programs in the same way that normal registers are used.

However, data can be written as needed in order to control the CPU modules.

Data stored in the special registers are stored as BIN values if no special designation has been made to the contrary.

The heading descriptions in the following special register lists are shown in 4.1.

TableApp.4.1 Descriptions of the special register lists headings

Item Function of Item

Number • Indicates special register number

Name • Indicates name of special register

Meaning • Indicates contents of special register

Explanation • Discusses contents of special register in more detail

  • Indicates whether the relay is set by the system or user, and, if it is set by the system, when setting is performed. <Set by> S : Set by system U : Set by user (sequence programs or test operations from GX Developer) S/U : Set by both system and user <When set> Indicated only for registers set by system Each END : Set during each END processing Initial : Set only during initial processing (when power supply is turned ON, or when going from STOP to RUN) Status change : Set only when there is a change in status Error : Set when error occurs Instruction execution : Set when instruction is executed Request : Set only when there is a user request (through SM, etc.) System switching : Set when system switching is executed.

Set by (When set)

  • Indicates corresponding special register in ACPU

(When the contents are changed, the special register is represented D9 format change. Incompatible with the Q00J/Q00/Q01 and QnPRH.) • New indicates the special register newly added to the Q series CPU module.

M9

Indicates the relevant CPU module. QCPU : Indicates all the Q series CPU modules. Q00J/Q00/Q01 : Indicates the Basic model QCPU. Qn(H) : Indicates the High Performance model QCPU. QnPH : Indicates the Process CPU. QnPRH : Indicates the Redundant CPU. QnU : Indicates the Universal model QCPU Each CPU type name : Can be applied only to the specific CPU. (e.g. Q02U)

For details on the following items, refer to the following manuals:

  • Networks Manual of the corresponding network module
  • SFC QCPU(Q mode)/QnACPU Programming Manual (SFC)

POINT

Do not change the values of special relays set by the system with user program or device test operations. Doing so may result in system downtime or communication fault.

App-146

Corresponding ACPU · Corresponding CPU

Page 1137 of the Mitsubishi Electronics QCPU user manual — SD4
Page 1137 · click to enlarge
Page 1137

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Error codes for errors found by diagnosis are stored as BIN data.
  • Contents identical to latest fault history information. S (Error)
  • Year (last two digits) and month that SD0 data was updated is stored as BCD 2-digit code.

SD1

b15 b7 b0 b8 to to Year (0 to 99) Month (1 to 12)

9510 H

  • The day and hour that SD0 was updated is stored as BCD 2-digit code.

Clock time for diagnosis error occurrence

Clock time for diagnosis error occurrence

S (Error) New SD2

b15 b7 b0 b8 to to Day (1 to 31) Hour (0 to 23)

(Example) 10 a.m. on 25th

2510 H

A

  • The minute and second that SD0 data was updated is stored as BCD 2digit code.

SD3

b15 b7 b0 b8 to to Minutes (0 to 59) Seconds (0 to 59)

(Example) 35 min. 48 sec.

3548 H

Category codes which help indicate what type of information is being stored in the common information areas (SD5 through SD15) and the individual information areas (SD16 through SD26) are stored here. The category code for judging the error information type is stored.

b15 b7 b0 b8 to to Individual information

  • The common information category codes store the following codes: 0 : No error
1. Unit/module No./ CPU No./Base No. *

QCPU

2: File name/Drive name 3: Time (value set) 4: Program error location 5: System switching cause (for Redundant CPU only) 6: Reason(s) for tracking capacity excess error (specific to Redundant CPU) 7: Base No./Power supply No. (The first 5 digits of serial number 10072 or higer are chosen for Universal model QCPU.) 8: Tracking transmission data classification (specific to Redundant CPU) *: For a multiple CPU system that consists of the Basic model QCPU, High Performance model QCPU, Process CPU, Universal model QCPU the module number or CPU number is stored depending on the error that occurred. (Refer to the corresponding error code for which number has been stored.) CPU No. 1: 1, CPU No. 2: 2, CPU No. 3: 3, CPU No. 4: 4 • The individual information category codes store the following codes: 0: No error 1: (Empty) 2: File name/Drive name 3: Time (value actually measured) 4: Program error location 5: Parameter number 6: Annunciator number 7: CHK instruction failure No. (except for the Basic model QCPU and the Universal model QCPU) 8: Reason(s) for system switching failure (specific to Redundant CPU) 12: File diagnostic information (specific to the Universal model QCPU) 13: Parameter No./CPU No. (specific to the Universal model QCPU)

Appendix 4 SPECIAL REGISTER LIST

Error information category code

SD4

App-147

Show 12 more labels / short text on this page
(1) Diagnostic Information · Corres- ponding · Corresponding · D9008 format change · SD0 Diagnostic errors · Diagnosis error code · (Example) October, 1995 · Common information · category codes · category codes · Error information categories · S (Error) New
Page 1138 of the Mitsubishi Electronics QCPU user manual — 2E H (.) 6
Page 1138 · click to enlarge
Page 1138

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Common information corresponding to the error codes (SD0) is stored here.
  • The following ten types of information are stored here:
  • The error common information type can be judged by the "common information category code" in SD4. (The values of the "common information category code" stored in SD4 correspond to following 1) to 8).) 1) Slot No.

SD5

SD6

1, 2, 3, 4 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

Slot No./CPU No./Base No.

I/O No. 5

SD7

SD8

SD9

*1: For a multiple CPU system that consists of the Basic model QCPU, High Performance model QCPU, Process CPU, Universal model QCPU, the slot number or CPU number is stored depending on the error that occurred. Slot 0 in the multiple CPU system is the one on the slot on the right of the rightmost CPU module. (Refer to the corresponding error code for which number has been stored.) No. 1 CPU: 1, No. 2 CPU: 2, No. 3 CPU: 3, No. 4 CPU: 4 *2: If a fuse blown or I/O verify error occurred in the module loaded in the MELSECNET/H remote I/O station, the network number is stored into the upper 8 bits and the station number into the lower 8 bits. Use the I/O No. to check the module where the fuse blown or I/O verify error occurred. *3: 255 is stored into SD5 of the Basic model QCPU when an instruction, etc. has been executed for the module later than the one on the last slot where a module can be mounted. *4: Definitions of base No. and slot No. Value used to identify the base unit on which the CPU module has been mounted. The following shows the definition of the base No.

SD10

SD11

SD12

SD13

S (Error) New QCPU

Base No.

Indicates the main base unit mounted with the CPU module. Indicates the extension base unit. The stage number setting made by the stage number setting connector on the extension base unit is the base No.

SD14

When stage number setting is extension 1:

Base No. = 1 when stage number setting is extension 7:

Base No. = 7

  • <Slot No.> Value used to identify the slot of each base unit and the module mounted on that slot.
  • The I/O slot 0 (slot on the right side of the CPU slot) of the main base unit is defined as the slot of "Slot No. = 0".
  • The slot Nos. are consecutively assigned to the slots of the base units in order of the main base unit and extension base units 1 to 7.
  • When the number of base unit slots has been set in the I/O assignment setting of the PLC parameter dialog box, the slot Nos. are assigned for only the number of set slots. *5: When 0FFFF H is stored into SD6 (I/O No.), the I/O No. cannot be identified due to overlapping I/O No., etc. in the I/O assignment setting of the PLC parameter dialog box. Therefore, identify the error location using SD5. 2) File name/Drive name

SD15

(Example) File name =

SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

ABCDEFGH. IJK

b15 to b8 b7 to b0

42H(B) 41H(A) 44H(D) 43H(C) 46H(F) 45H(E) 48H(H) 47H(G) 49H(I) 2EH(.) 4BH(K) 4AH(J)

File name (ASCII code8 characters)
Extension (ASCII code3 characters)

2E H (.) 6

App-148

Show 12 more labels / short text on this page
Corres- ponding · Corresponding · Number · Meaning · (Empty) · Error common information · Error common information · Definition · 1 to 7 · Number Meaning · Drive · (Empty)
Page 1139 of the Mitsubishi Electronics QCPU user manual — SD13
Page 1139 · click to enlarge
Page 1139

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD5

SD6

3. Time (value set)
Number Meaning Time1 s units (0 to 999 s) Time : 1ms units (0 to 65535ms)

SD7

SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

A

SD8

4. Program error location

SD9

SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

File name (ASCII code8 characters)

S (Error) New QCPU

SD10

Extension 2EH(.) (ASCII code: 3 characters)

Block No. Step No./transition condition

Sequence step No. (L) Sequence step No. (H)

SD11

*7Contents of pattern data

0 1 2 3 4 15 14 to

Appendix 4 SPECIAL REGISTER LIST

0 to

SD12

SFC block designation present (1)/absent (0)

SFC step designation present (1)/absent (0)

SFC transition designation present (1)/absent (0)

SD13

SD14

SD15

App-149

Show 9 more labels / short text on this page
Corres- ponding · Corresponding · (Empty) · Number Meaning · Error common information · Error common information · Pattern · (Bit number) · (Not used)
Page 1140 of the Mitsubishi Electronics QCPU user manual — App-150
Page 1140 · click to enlarge
Page 1140

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

5. Reason(s) for system switching

SD5

Number Meaning System switching condition 13

SD5

SD6

SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

SD6

SD7

*13Details of reason(s) for system switching
0. No system switching condition (default)

SD8

1. Power-OFF, reset, hardware failure, watchdog timer error 2 : Stop error (except watchdog timer error) 3 : System switching request by network module 16 : Control system switching instruction 17 : Control system switching request from GX De veloper

S (Error) New QnPRH

SD9

6. Reason(s) for tracking capacity excess error The block No. when the data amount that can be tracked (100k) is exceeded is indicated by the bit pattern of the corresponding special relay.

SD10

1 (SM1535)

1 (SM1528)

1 (SM1520)

SD5

0

SD6

SD11

SD7

0

1 (SM1583)

0 1 (SM1568)

SD8

(Block49) 0

SD9

0

SD12

SD15

0

7. Power supply No.

Number Meaning Base No. Power supply No.

SD13

SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

SD14

1. Power supply 1 fault 2: Power supply 2 fault Redundant power supply module mounted on POWER 1 slot of redundant base unit (Q38RB, Q68RB, Q65WRB)

"Power supply module 1":

SD15

"Power supply module 2":

Redundant power supply module mounted on POWER 2 slot of redundant base unit (Q38RB, Q68RB, Q65WRB)

*1: The module whose first 5 digits of serial No. is "07032" or later. *2: The module whose first 5 digits of serial No. is "10042" or later.

App-150

Show 31 more labels / short text on this page
Corres- ponding · Corresponding · Control system switching · instruction argument · (Empty) · Error common information · Error common information · b15 b14 · b13 · b12 · b11 · b10 · b9 · b8 · b0 b7 · b6 · b5 · b4 · b3 · b2 · b1 · (Block16) · (Block9) · (Block1) · (Block64) · (Empty) · Qn(H)*1 · QnPH*1 · S (Error) New · QnPRH · QnU*2
Page 1141 of the Mitsubishi Electronics QCPU user manual — SD12
Page 1141 · click to enlarge
Page 1141

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD5

SD6

SD7

A

8. Tracking transmission data classification Stores the data classification during tracking.

Number Meaning Data type 15

SD8

SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15

SD9

*15Details of data classification S (Error) New QnPRH

SD10

b15 b5 b4 b3 b2 b1 b0 to b14

0. Not sent 1: Being sent

SD11

Appendix 4 SPECIAL REGISTER LIST

PIDINIT/S. PIDINIT instruction data

System switching request Operation mode change request

SD12

SD13

SD14

SD15

App-151

Show 10 more labels / short text on this page
Corres- ponding · Corresponding · (Empty) · Error common information · Error common information · b6 Each bit · Device data · Signal flow · SFC execution data · System data
Page 1142 of the Mitsubishi Electronics QCPU user manual — App-152
Page 1142 · click to enlarge
Page 1142

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Individual information corresponding to error codes (SD0) is stored here.
  • There are the following eight different types of information are stored.
  • The error individual information type can be judged by the "individual information category code" in SD4. (The values of the "individual information category code" stored in SD4 correspond to following 1) to 8), 12), and 13).)

SD16

1. (Empty)
2. File name/Drive name

(Example) File name =

SD17

b15 to b8 b7 to b0 Number Meaning

ABCDEFGH. IJK

SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

42H(B) 41H(A) 44H(D) 43H(C) 46H(F) 45H(E) 48H(H) 47H(G) 49H(I) 2EH(.) 4BH(K) 4AH(J)

File name (ASCII code8 characters)

SD18

Extension 2EH(.) (ASCII code: 3 characters)

3. Time (value actually measured)

SD19

Number Meaning Time1 s units (0 to 999 s) Time : 1ms units (0 to 65535ms)

SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

SD20

SD21

4. Program error location

SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

S (Error) New QCPU

File name (ASCII code8 characters)

Extension 6 2EH(.) (ASCII code: 3 characters)

SD22

Block No. Step No./transition No. Sequence step No. (L) Sequence step No. (H)

SD23

*7Contents of pattern data

0 1 2 3 4 15 14 to

0 to

SFC block designation present (1)/absent (0)

SD24

SFC step designation present (1)/absent (0)

SFC transition designation present (1)/absent (0)

6. Parameter No. 5) 7)

Annunciator number / CHK instruction malfunction number

SD25

Number Meaning Number Meaning Parameter No. 16 No.

SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

SD26

*16: For details of the parameter No., refer to the User's Manual (Function Explanation, Program Fundamentals) of the CPU module used.

App-152

Show 12 more labels / short text on this page
Corres- ponding · Corresponding · Drive · (Empty) · (Empty) · Number Meaning · Error individual information · Error individual information · Pattern 7 · (Bit number) · (Not used) · (Empty) (Empty)
Page 1143 of the Mitsubishi Electronics QCPU user manual — App-153
Page 1143 · click to enlarge
Page 1143

*6 : Extensions are shown below.

TableApp.4.3 Extension name

Name File Type Higher 8 bits Lower 8 bits Higher 8 bits

51H 50H 41H QPA Parameters

51H 50H 47H QPG • Sequence program

  • SFC program

51H 43H 44H QCD Device comment

51H 44H 49H QDI Initial device value

51H 44H 52H QDR File register

51H 44H 4CH QDL Local device

(Other than the Basic model QCPU)

51H 54H 44H QTD Sampling trace data

(Other than the Basic model QCPU)

51 H 46 H 44 H QFD

(Other than the Basic model QCPU and

A

the Universal model QCPU)

51H 53H 54H QST SP.DEVST/S.DEVLD instruction file

(For Universal model QCPU only)

Appendix 4 SPECIAL REGISTER LIST

App-153

SDn SDn+1 Extension · Breakdown history data

Page 1144 of the Mitsubishi Electronics QCPU user manual — SD25 SD26
Page 1144 · click to enlarge
Page 1144

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

8. Reason(s) for system switching failure

Number Meaning System switching prohibition

SD16

SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26

*14Details of reason(s) for system switching failure
0. Normal switching completion (default) 1 : Tracking cable fault (cable removal, cable fault, internal circuit fault, hardware fault)
2. Hardware failure, power OFF, reset or watchdog timer error occurring in standby system
3. Hardware failure, power OFF, reset or watchdog timer error occurring in control system
4. Preparing for tracking 5 : Time limit exceeded
6. Standby system is in stop error (except watchdog timer error)
7. Operation differs between two systems (in backup mode only)
8. During memory copy from control system to standby system

SD26 Error individual information

9. Online program change
10. Error detected by network module of standby system
11. System switching being executed 12 : Online module change in progress
12. File diagnostic information

SD16 drive No.(L)

SD17 SD18 SD19 SD20

(ASCll8 characters)

SD21 SD22 SD23 SD24

EXtension *6 2EH(.) (ASCll; 3 characters)

Failure information 2 (CRC value that is read)

SD25 SD26

Failure information 3 (CRC value that is calculated)

13. Parameter No./CPU No. QnU

SD16

Parameter No.*16

SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24

CPU No. (1 to 4)

SD25 SD26

App-154

Show 11 more labels / short text on this page
Corres- ponding · Corresponding · condition 14 · (Empty) · QnPRH · Error individual information · S (Error) New · Failuer information (H) · File name · Number Meaning · (Empty)
Page 1145 of the Mitsubishi Electronics QCPU user manual — App-155
Page 1145 · click to enlarge
Page 1145

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Error number that performs error reset

  • Stores error number that performs error reset U New
  • All corresponding bits go 1(ON) when battery voltage drops.
  • Subsequently, these remain 1(ON) even after battery voltage has been returned to normal.

0 b3 b2 b1 b0

Bit pattern indicating where battery voltage drop occurred

SD51 Battery low latch

1. This does not apply to Basic model QCPU.
  • In the alarm, data can be held within the time specified for battery low.
  • The error indicates the complete discharge of the battery.

A

QCPU

Bit pattern indicating where battery voltage drop occurred

  • Same configuration as SD51 above
  • After the alarm is detected (ON), the alarm turns OFF by error detection (ON). (For the Universal model QCPU only)
  • Turns to 0 (OFF) when the battery voltage returns to normal thereafter.
  • Every time the input voltage falls to or below 85% (AC power)/65% (DC power) of the rating during operation of the CPU module, the value is incremented by 1 and stored in BIN code.
  • The counter repeats increment and decrement of the value ; 0 32767 -32768 0

Number of times for AC/DC DOWN detection

SD53 AC/DC DOWN detection

Number of module with blown fuse

SD60

Number of module with blown fuse

  • Value stored here is the lowest station I/O number of the module with the blown fuse. S (Error) D9000

I/O module verify error number

I/O module verify error module number

  • The lowest I/O number of the module where the I/O module verification number took place. S (Error) D9002

SD61

Appendix 4 SPECIAL REGISTER LIST

App-155

Show 10 more labels / short text on this page
Corres- ponding · Corresponding · SD50 Error reset · b15 to · CPU error · alarm error · S (Error) New · SD52 Battery low · S (Error) New · S (Error) D9005
Page 1146 of the Mitsubishi Electronics QCPU user manual — App-156
Page 1146 · click to enlarge
Page 1146

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Annunciator number • The first annunciator number (F number) to be detected is stored here. S (Instruction

SD63 Number of annunciators

Number of annunciators • Stores the number of annunciators searched. S (Instruction

When F goes ON due to OUT F or SET F instruction, the F numbers which go progressively ON from SD64 through SD79 are registered. The F numbers turned OFF by RST F instruction are deleted from SD64 - SD79, and the F numbers stored after the deleted F numbers are shifted to the preceding registers. Execution of the LEDR instruction shifts the contents of SD64 to SD79 up by one. After 16 annunciators have been detected, detection of the 17th will not be stored from SD64 through SD79.

SD64

SD65 D9126

SD66 D9127

SD67 D9128

SD68 D9129

SET F50

SET F25

SET F99

RST F25

SET F15

SET F70

SET F65

SET F38

SET F110

SET F151

SET F210 LEDR

SD69 D9130

SD62 0 50 99 (Number detected)

SD70 D9131

(Number of annunciators detected)

QCPU

SD71 D9132

Table of detected annunciator numbers

SD63 0 1 2 3 2 3 4 5 6 7 8 9 8

0 50 99 SD64 SD65 SD66 SD67 SD68 SD69 SD70 SD71 SD72 SD73 SD74 SD75 SD76 SD77 SD78 SD79

0 0 25 25 99 15 0 0 0 99 0 15 70 70 65 0 65 38 0 38 110 110 110 110 151 0 0 151 0 151210 210

SD80 CHK number CHK number • Error codes detected by the CHK instruction are stored as BCD code. S (Instruction

SD90

Corresponds to SM90 • Set the annunciator number (F number) that will be turned ON when the step transition monitoring timer setting or monitoring timeout occurs.

SD91 Corresponds to SM91 D9109

SD92 Corresponds to SM92 D9110

SD93 Corresponds to SM93 D9111

b15 b7 b0 b8

Step transition monitoring timer setting value (Enabled only when SFC program exists)

SD94 Corresponds to SM94 D9112

F number for timer set value and time over error

F number setting (0 to 255)

Timer time limit setting (1 to 255s:

U

SD95 Corresponds to SM95 D9113

SD96 Corresponds to SM96 D9114

SD97 Corresponds to SM97 New

  • Turning ON any of SM90 to SM99 during an active step starts the timer, and if the transition condition next to the corresponding step is not met within the timer time limit, the set annunciator (F) turns ON.

SD98 Corresponds to SM98 New

SD99 Corresponds to SM99 New

App-156

Show 21 more labels / short text on this page
Corres- ponding · Corresponding · SD62 Annunciator number · execution) D9009 · execution) D9124 · Annunciator detection number · S (Instruction · SD72 New · execution) · SD73 New · SD74 New · SD75 New · (Number detected) · SD76 New · SD77 New · SD78 New · SD79 New · execution) New · to to · Qn(H) QnPH QnPRH · (1s units))
Page 1147 of the Mitsubishi Electronics QCPU user manual — App-157
Page 1147 · click to enlarge
Page 1147

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Stores the transmission speed specified in the serial communication setting.

Transmission speed storage area

96. 9.6kbps, 192 : 19.2kbps, 384 : 38.4kbps, 576 : 57.6kbps, 1152 : 115.2kbps

SD100

b0 to b3 b4 b5 b6 b15 to

Stores the communication setting specified in the serial communication setting.

Q00/Q01

Communication setting storage area

Q00UJ

SD101

Q00U Q01U Q02U *4

Write during RUN setting

0. Absent 1: Present 0: Disabled 1: Enabled

A

* : Since the data is used by the system, it is undefined.

Stores the transmission wait time specifed in the serial communication setting.

Transmission wait time storage area

0. No waiting time 10 to 150: Waiting time (unit: ms)

SD102

Defaults to 0.

CH1 transmission speed setting (RS-232)

Stores the preset transmission speed when GX Developer is used.

96. 9600bps, 192 : 19.2kbps, 384 : 38.4kbps, 576 : 57.6kbps, 1152 : 115.2kbps *: Other than RS-232 connection holds the data at RS-232 connection. (When disconnected, the default value is 1152.)

SD105

Stores the data sending result when the serial communication function is used.

Data sending result storage area

SD110

Stores the error code at the timeout sending data. S (Error)

Q00/Q01

Q00UJ

Q00U Q01U Q02U *4 SD111

Stores the data receiving result when the serial communication function is used.

Data receiving result storage area

Stores the error code at the time of receiving data. S (Error)

Displays the current amount of battery consumption. The value range:1 to 2(Q00UJCPU, Q00UCPU, Q01UCPU,

Amount of battery consumption

Amount of battery consumption

Q02UCPU, Q03UD(E)CPU, Q04UD(E)HCPU) 1 to 3(Q06UD(E)HCPU) 1 to 4(Q10UD(E)HCPU, Q20UD(E)HCPU, Q13UD(E)HCPU, Q26UD(E)HCPU)

SD118

change) New QnU*4

Appendix 4 SPECIAL REGISTER LIST

Stores the factor which makes the battery life-prolonging function valid. When SD119 is other than 0, the battery life-prolonging function is valid.

0:No factor 1:Foctor

b15 to b2 b1 b0

SD119

b0:CPU switch setting

b1:Backup in execution by

latch data backup function (to standard ROM)

*3: This applies to Universal model QCPUs except for the Built-in Ethernet port QCPU. *4: The module whose first 5 digits of serial No. is "10102" or later.

App-157

Show 18 more labels / short text on this page
Corres- ponding · Corresponding · S (Power-ON or · reset) New · S (Power-ON or · reset) New · Sumcheck presence · S (Power-ON or · reset) New · Qn(H) QnPH QnPRH · S New · QnU*3 · New · S (Status · Battery life- prolonging factor · Battery life- prolonging factor · S (Status · change) New QnU
Page 1148 of the Mitsubishi Electronics QCPU user manual — SD157
Page 1148 · click to enlarge
Page 1148

TableApp.4.2 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD130

  • The numbers of output modules whose fuses have blown are input as a bit pattern (in units of 16 points). (If the module numbers are set by parameter, the parameter-set numbers are stored.)

SD131

SD132

Bit pattern in units of 16 points, indicating the modules whose fuses have blown 0: No blown fuse 1: Blown fuse present

b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

0 0 0 1 (YC0) 0 1 (Y80) SD130

SD133

0 0 1 (Y1F0) 0 1 (Y1A0) SD131 0 0

SD134

SD135

0 0 1 (Y7B0) 0 SD137 0 0 0 1 (Y730) 0

SD136

Indicates fuse blow.

  • Not cleared even if the blown fuse is replaced with a new one. This flag is cleared by error resetting operation

SD137

  • When I/O modules, of which data are different from those entered at power-ON, have been detected, the I/O module numbers (in units of 16 points) are entered in bit pattern. (Preset I/O module numbers set in parmeters when parameter setting has been performed.)

S (Error) New Q00J/Q00/Q01

SD150

SD151

SD152

Bit pattern, in units of 16 points, indicating the modules with verify errors. 0: No I/O verify errors 1: I/O verify error present

b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 ( ) X Y

SD153

0 SD150

I/O module verify error

0 1 ( ) X Y 190

0 SD151 0 0

SD154

SD155

0 SD157 0

0 0 1 ( ) X Y 7E0

Indicates an I/O module verify error.

SD156

  • Not cleared even if the blown fuse is replaced with a new one. This flag is cleared by error resetting operation.

SD157

App-158

Corres- ponding · Corresponding · Fuse blown module

Page 1149 of the Mitsubishi Electronics QCPU user manual — App-159
Page 1149 · click to enlarge
Page 1149

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • The CPU switch status is stored in the following format:

b15 b12 b11 b8 b7 b4 b3 b0

to

1. 2) Empty 3)
1)CPU switch status 0: RUN 1: STOP 2: L.CLR
2)Memory card switch Always OFF

b8 through b12 correspond to SW1 through SW5 of system setting switch 1. 0: OFF, 1: ON. b13 through b15 are empty.

A

3)DIP switch

SD200 Status of switch Status of CPU switch

  • The CPU switch status is stored in the following format:

b15 b8 b7 b4 b3 b0

1. 2) Empty

1): 0: RUN 1: STOP

2):

Memory card switch Always OFF

  • The CPU switch status is stored in the following format:

b15 b8 b7 b4 b3 b0

S (when RUN/ STOP/RESET switch changed)

1. 2) Empty

1): 0: RUN 1: STOP

Appendix 4 SPECIAL REGISTER LIST

2):

Memory card switch Always OFF

  • The following bit patterns store the status of the LEDs on the CPU module:
  • 0 is off, 1 is on, and 2 is flicker.

b15 b12b11 b8 b7 b4b3 b0

to

Q00J/Q00/Q01

1. 2) 4) 3) 5) 6) 8) 7)

1): RUN 5): BOOT 2): ERR. 6): Empty Mode bit pattern 3): USER 7): Empty 0: OFF 1: Green 4): BAT. 8): MODE 2: Orange (The Basic model QCPU does not include 3) to 8).)

SD201 LED status Status of CPU-LED

  • The following bit patterns store the status of the LEDs on the CPU module:
  • 0 is off, 1 is on, and 2 is flicker.

b15 b12b11 b8 b7 b4b3 b0

to

1. 2) 4) 3) 5) 6) 8) 7)

1): RUN 5): BOOT 2): ERROR 6): Empty 3): USER 7): Empty 4): BAT. 8): MODE (The Q00UJCPU, Q00UCPU, and Q01UCPU do not include 5).)

App-159

Show 18 more labels / short text on this page
(2) System information · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · S (Every END · processing) New · to to to · S (Every END · processing) New Q00J/Q00/Q01 · CPU switch status · to to to · New QnU · CPU switch status · S (Status · Qn(H) QnPH QnPRH · change) New · S (Status · change) New QnU
Page 1150 of the Mitsubishi Electronics QCPU user manual — App-160
Page 1150 · click to enlarge
Page 1150

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Specify the LEDs to be turned off using this register, and turn SM202 from OFF to ON to turn off the specified LEDs. USER and BOOT can be specified as the LEDs to be turned off.
  • Specify the LEDs to be turned off in the following bit pattern. (Turned off at 1, not be turned off at 0.)

b15 b8 b4 b0

SD202 LED off command

Bit pattern of LED that is turned off

USER LED

BOOT LED

(The Q00UJCPU, Q00UCPU, and Q01UCPU cannot specify the BOOT LED.)

  • The CPU operating status is stored as indicated in the following figure:

b15 b12 b11 b8 b7 b4 b3 b0

to

1)Operating status of CPU
0. 1: 2: 3:

RUN STEP-RUN (For the QnACPU only) STOP PAUSE

SD203 Operating status of CPU

Operating status of CPU

QCPU

2)STOP/PAUSE cause

Instruction in remote operation program from RUN/STOP switch ("RUN/STOP/ RESET switch" for Basic model QCPU) Remote contact Remote operation from GX Developer/ serial communication, etc. Internal program instruction Note: Priority is earliest first

0:

1. 2:

3:

4. Error
  • The LED display color of the LED status shown in SD201 1) to 8).

b15 b12 b11 b8 b7 b4 b3 b0

1)RUN LED 0OFF 1: Green
2)ERROR LED 0OFF 1: Red
3)USER LED 0OFF 1: Red

SD204 LED display color

4)BAT. LED 0OFF 1: Yellow 2: Green
5)BOOT LED 0OFF 1: Green
8)MODE LED 0OFF 1: Green

(The Q00UJCPU, Q00UCPU, and Q01UCPU do not include 5).)

App-160

Show 21 more labels / short text on this page
Corres- ponding · Corresponding · Fixed · Fixed · Fixed · Qn(H) QnPH QnPRH · to 0 · to 0 · to 0 · U New · QnU · 2) · 1) · D9015 format change · S (Every END · processing) · CPU-LED display color · S (status · change) New QnU · 6)Empty · 7)Empty
Page 1151 of the Mitsubishi Electronics QCPU user manual — App-161
Page 1151 · click to enlarge
Page 1151

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • When error is generated, the LED display (flicker) is made according to the error number setting priorities. (The Basic model QCPU supports only the annunciator (error item No. 7).
  • The Universal model QCPU sets execution/non-execution of LED display of the error corresponding to the each priority ranking when the error occurs.
  • The setting areas for priorities are as follows:

SD207

Priorities 1 to 4

b15 b12 to Priority 4 Priority 8

b11 b8 to Priority 3 Priority 7

b7 b4 to Priority 2 Priority 6 Priority 10 Priority 11

b3 b0 to Priority 1 Priority 5 Priority 9

SD207 SD208 SD209

SD208 Priorities 5 to 8

Q00J/ Q00/Q01 *9

(Priority 11 is valid when Redundant CPU is used.)

LED display priority ranking

U

Default Value SD207 = 4321H(0000H for Basic model QCPU) SD208 = 8765H(0700H for Basic model QCPU)

A

(0765H for Redundant CPU) SD209 = 00A9H(0000H for Basic model QCPU)

  • (0B09 H for Redundant CPU)
  • No display is made if "0" is set.
  • In case of the Basic model QCPU, the ERR. LED turns ON when the annunciator turns ON, if "7" has been set to either of priorities 1 to 11.
  • In case of the Basic model QCPU, the ERR. LED does not turn ON when the annumciator turns ON, if "7" has not been set to either of priorities 1 to 11. However, even if "0" has been set, information concerning CPU module operation stop (including parameter settings) errors will be indicated by the LEDs without conditions.

SD209 Priorities 9 to 11 New

  • The year (last two digits) and month are stored as BCD code as shown below:

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993

SD210 Clock data Clock data (year, month)

9307 H

  • The day and hour are stored as BCD code as shown below:

Example: 31st, 10 a.m.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Appendix 4 SPECIAL REGISTER LIST

QCPU SD211 Clock data Clock data (day, hour)

3110 H

  • The minutes and seconds (after the hour) are stored as BCD code as shown below:

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min, 48 s

SD212 Clock data Clock data (minute, second)

3548 H

*9: Function version is B or later.

App-161

Show 9 more labels / short text on this page
Corres- ponding · Corresponding · D9039 format change · Qn(H) QnPH QnPRH · QnU · Year Month · S (Request)/U · Day Hour · Second Second Minute
Page 1152 of the Mitsubishi Electronics QCPU user manual — App-162
Page 1152 · click to enlarge
Page 1152

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • The year (first two digits) and the day of the week are stored as BCD code as shown below.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example1993, Friday

1905 H

Clock data (higher digits of year, day of week)

Day of the week

0 1 2 3 4 5 6

Higher digits of year (19 or 20)

  • LED display ASCII data (16 characters) stored here. (On the Basic model QCPU, the registers store the message (16 characters of ASCII data) at error occurrence (including annunciator ON).

SD220

SD221

QCPU

b15 to b8 b7 to b0

SD220

15th character from the right

16th character from the right 13th character from the right

SD222

SD221

14th character from the right 11th character from the right

12th character from the right 9th character from the right

SD223

SD222

LED display data LED display data

S (When changed) New

10th character from the right 7th character from the right

SD223

SD224

8th character from the right 5th character from the right

SD224

SD225

SD225

6th character from the right 3rd character from the right

SD226

4th character from the right 1st character from the right

SD226

2nd character from the right

SD227

SD227

  • The LED display device data at the time of CHK is not stored in the Basic model QCPU and the Universal model QCPU.

The header I/O number of the module to which online module change is being performed /10H

Module to which online module change is being performed

  • 10 H is added to the value of the header I/O number of which the online module change is being performed.

S (During online module change) New QnPH QnPRH

SD235

0. Automatic mode 1: Detail mode • Stores the base mode. S (Initial) New

QCPU

0. Main base only 1 to 7: Extension stage number

SD241 Extension stage number

  • Stores the maximum number of the extension bases being installed. S (Initial) New

App-162

Show 10 more labels / short text on this page
Corres- ponding · Corresponding · SD213 Clock data · S (Request)/U D9028 · Sunday · Monday · Tuesday · Friday Thursday Wednesday · Saturday · SD240 Base mode
Page 1153 of the Mitsubishi Electronics QCPU user manual — App-163
Page 1153 · click to enlarge
Page 1153

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

b0 b1 b2 b7

to Fixed to 0

Base type differentiation 0QA**B is installed (A mode) 1: Q**B is installed (Q mode)

Main base unit 1st extension base 2nd extension base

Fixed to 0 when the base is not installed.

to 7th extension base

b0 b1 b2 b4 Fixed to 0

Base type differentiation 0Base not installed 1: Q**B is installed

Main base unit 1st extension base 2nd extension base

Installed Q base presence/ absence

A

S (Initial) New Q00J/Q00/Q01

SD242

b0 b1 b2 b7

to Fixed to 0

Main base unit 1st extension base

Base type differentiation 0Base not installed 1: Q**B is installed

Fixed to 0 when the base is not installed.

Installed Q base presence/ absence

S (Initial) New QnU

to 7th extension base

  • The bits from the third extension stage to the seventh extension stage are fixed to "0" in the Q00UJCPU.
  • The bits from the fifth extension stage to the seventh extension stage are fixed to "0" in the Q00UCPU, Q01UCPU, and Q02UCPU.

b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension

SD243

SD243

Appendix 4 SPECIAL REGISTER LIST

SD244

  • No. of base slots No. of base slots
  • As shown above, each area stores the number of slots being installed.
  • The bits from the third extension stage to the seventh extension stage are fixed to "0" in the Q00UJCPU.
  • The bits from the fifth extension stage to the seventh extension stage are fixed to "0" in the Q00UCPU, Q01UCPU, and Q02UCPU.

b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension

SD243

No. of base slots (Operation status)

SD243

No. of base slots

SD244

Q00J/Q00/Q01

SD244

  • As shown above, each area stores the number of slots being installed. (Number of set slots when parameter setting has been made)

SD245

b15 to b12 b11 to b8 b7 to b4 b3 to b0 Extension

SD245

No. of base slots (Mounting status)

No. of base slots

SD246

S (Initial) Q00J/Q00/Q01*9

SD246

  • As shown above, each area stores the number of module-mounted slots of the base unit (actual number of slots of the installed base unit).
  • When SM250 goes from OFF to ON, the upper 2 digits of the final I/O number plus 1 of the modules loaded are stored as BIN values.

SD250 Loaded maximum I/O

Loaded maximum I/O No.

  • The upper 2 digits of the final I/O number plus 1 of the modules loaded are stored as BIN values. S (Initial) New Q00J/Q00/Q01

*9: Function version is B or later.

App-163

Show 36 more labels / short text on this page
Corres- ponding · Corresponding · A/Q base differentiation · Qn(H) QnPH QnPRH · S (Initial) New · to · to · 4th extension base · 2nd extension base · 1 Extension · 3 Extension · 2 Main Extension · 7 Extension · 6 Extension · 4 Extension · Qn(H) QnPH QnPRH · S (Initial) New · QnU SD244 · 1 Fixed to · 3 Extension · 2 Main Extension · 0 Fixed to · 0 Extension · 4 Fixed to · S (Initial) · New · 3 Extension · 2 Main Extension · 1 Fixed to · 0 Fixed to · 0 Extension · 4 Fixed to · S (Request · Qn(H) QnPH QnPRH · END) New · QnU
Page 1154 of the Mitsubishi Electronics QCPU user manual — App-164
Page 1154 · click to enlarge
Page 1154

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Number of modules installed

  • Indicates the number of mounted MELSECNET/10 modules or MELSECNET/H modules.

SD254

I/O No. • Indicates I/O number of mounted MELSECNET/10 module or MELSECNET/H module

SD255

Information from 1st module

SD256 Network No.

  • Indicates network No. of mounted MELSECNET/10 module or MELSECNET/H module

QCPU

  • Indicates group No. of mounted MELSECNET/10 module or MELSECNET/H module

SD258 Station No.

  • Indicates station No. of mounted MELSECNET/10 module or MELSECNET/H module

MELSECNET/ 10. MELSECNET/H information

  • In the case of standby stations, the module number of the standby station is stored. (1 to 4) Qn(H) QnPH QnPRH

SD259

QnU*10 SD260 to SD264

Information from 2nd module • Configuration is identical to that for the first module.

Information from 3rd module • Configuration is identical to that for the first module. Qn(H) QnPH QnPRH

QnU*11 SD270 to SD274

Information from 4th module • Configuration is identical to that for the first module.

1. When Xn0 of the mounted CC-Link module turns ON, the bit of the corresponding station turns to 1 (ON). 2) When either Xn1 or XnF of the mounted CC-Link module turns OFF, the bit of the corresponding station turns to 1 (ON). 3) Turns to 1 (ON) when communication between the mounted CC-Link module and CPU module cannot be made.

b3 b4 b7 b8 b11 b12 b15

to

SD280 CC-Link error Error detection status

1st module 2nd module

3rd module 4th module

The above module Nos. n are in order of the head I/O numbers. (However, the one where parameter setting has not been made is not counted.)

*10: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU.

App-164

Show 16 more labels / short text on this page
Corres- ponding · Corresponding · SD257 Group number · Standby informa- tion · S (Initial) New · SD265 to SD269 · Information · Information · Information · of 3) · of 2) · of 1) · b0 · Qn(H) QnPH QnPRH · Empty · S (Error) New
Page 1155 of the Mitsubishi Electronics QCPU user manual — App-165
Page 1155 · click to enlarge
Page 1155

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

1. When Xn0 of the mounted CC-Link module turns ON, the bit of the corresponding station turns to 1 (ON). 2) When either Xn1 or XnF of the mounted CC-Link module turns OFF, the bit of the corresponding station turns to 1 (ON). 3) Turns to 1 (ON) when communication between the mounted CC-Link module and CPU module cannot be made.

b3 b4 b7 b8 b11 b12 b15

to

SD281 CC-Link error Error detection status

5st module 6nd module

7rd module 8th module

A

The above module Nos. n are in order of the head I/O numbers. (However, the one where parameter setting has not been made is not counted.)

SD286

  • The number of points assigned to M is stored with 32 bits.
  • Even if the points assigned to M are 32k points or less, the points are stored.

Points assigned to M (for extension)

S (Initial) New QnU*16 SD287

SD288 Points assigned to B (for extension)

  • The number of points assigned to B is stored with 32 bits.
  • Even if the points assigned to B are 32k points or less, the points are stored. SD289

Number of points assigned for X • Stores the number of points currently set for X devices

SD290

SD291 Number of points assigned for Y • Stores the number of points currently set for Y devices

SD292 Number of points assigned for M • Stores the number of points currently set for M devices

Device assignment (Same as parameter contents)

SD293 Number of points assigned for L • Stores the number of points currently set for L devices

SD294 Number of points assigned for B • Stores the number of points currently set for B devices

Appendix 4 SPECIAL REGISTER LIST

SD295 Number of points assigned for F • Stores the number of points currently set for F devices

SD296 Number of points assigned for SB • Stores the number of points currently set for SB devices

Number of points assigned for V • Stores the number of points currently set for V devices

SD297

QCPU

SD298 Number of points assigned for S • Stores the number of points currently set for S devices

SD299 Number of points assigned for T • Stores the number of points currently set for T device

Device assignment (Same as parameter contents)

SD300 Number of points assigned for ST • Stores the number of points currently set for ST devices

SD301 Number of points assigned for C • Stores the number of points currently set for C devices

SD302 Number of points assigned for D • Stores the number of points currently set for D devices

SD303 Number of points assigned for W • Stores the number of points currently set for W devices

SD304 Number of points assigned for SW • Stores the number of points currently set for SW devices

*14: The module whose first 5 digits of serial No. is "08032" or later. *15: The module whose first 5 digits of serial No. is "09012" or later. *16: The module whose first 5 digits of serial No. is "10042" or later.

App-165

Show 17 more labels / short text on this page
Corres- ponding · Corresponding · Information · Information · Information · of 3) · of 2) · of 1) · b0 · Qn(H)*14 · Empty · S (Error) New · QnPH*14 · QnPRH*15 · Device assignment · S (Initial) New · S (Initial) New
Page 1156 of the Mitsubishi Electronics QCPU user manual — App-166
Page 1156 · click to enlarge
Page 1156

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Stores the number of points of index register (Z) to be modified in the range of 16 bits. (The assignment is set by the ZR device index modification setting parameter.)

Device assignment (Index register)

16 bit modification Number of points assigned for Z

SD305

S (Initial) New QnU

SD306 Device assignment (Same as parameter contents)

  • Stores the number of ZR device points (except the number of points of extended data register (D) and extended link register (W)). The number of assignment points of ZR device is stored into this SD only when 1k point or more is set to the extended data register (D) and extended link register (W).

Number of points assigned for ZR (for extension)

SD307

SD308 Device assignment (assignment including the number of points set to the extended data register (D) and extended link register (W))

Number of points assigned for D (for inside + for extension)

  • Stores the total number of points of the extended data register (D) and data register in internal device memory area (stores the value in 32-bit binary). SD309

S (Initial) New QnU*17

SD310 Number of points assigned for W (for inside + for extension)

  • Stores the total number of points of the extended link register (W) and link register in internal device memory area (stores the value in 32-bit binary). SD311
  • Reserves the designated time for communication processing with GX Developer or other units.
  • The greater the value is designated, the shorter the response time for communication with other devices (GX Developer, serial communication units) becomes.
  • If the designated value is out of the range above, it is processed that no setting is made.
  • Setting range: 1 to 100 ms
  • Note that the scan time becomes longer by the designated time.

Time reserved for communication processing

Q00J/Q00/Q01

Time reserved for communication processing

SD315

No. of modules installed • Indicates the number of mounted Ethernet module.

SD340

SD341

I/O No. • Indicates I/O No. of mounted Ethernet module

SD342 Network No. • Indicates network No. of mounted Ethernet module

QCPU

Information of 1st module

SD343 Group No. • Indicates group No. of mounted Ethernet module

SD344 Station No. • Indicates station No. of mounted Ethernet module

SD345 to SD346 Empty

  • Empty (With QCPU, the Ethernet module IP address of the 1st module is stored in buffer memory.) Qn(H) QnPH QnPRH
  • Empty (With QCPU, the Ethernet module error code of the 1st module is read with the ERRRD instruction.)

QnU*10 SD347 Empty

Information from 2nd module • Configuration is identical to that for the first module.

S (Initial) New SD355 to SD361

Information from 3rd module • Configuration is identical to that for the first module. Qn(H) QnPH QnPRH

QnU*11 SD362 to SD368

Information from 4th module • Configuration is identical to that for the first module.

*10: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *17: The Universal model QCPU except the Q00UJCPU.

App-166

Show 8 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · U New · Ethernet information · S (Initial) New · SD348 to SD354 · Ethernet information
Page 1157 of the Mitsubishi Electronics QCPU user manual — App-167
Page 1157 · click to enlarge
Page 1157

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

b0 b1 b2 b3 b4 b5 b6 b7 b8 b15

Instruction reception status of channel 1 Instruction reception status of channel 2 Instruction reception status of channel 3 Instruction reception status of channel 4 Instruction reception status of channel 5 Instruction reception status of channel 6 Instruction reception status of channel 7 Instruction reception status of channel 8 ON: Received (Channel is being used.) OFF: Not received (Channel is not used.)

Ethernet instruction reception status

Instruction reception status of 1st module

SD380

A

Instruction reception status of 2nd module • Configuration is identical to that for the first module.

SD381

Ethernet instruction reception status

Instruction reception status of 3rd module • Configuration is identical to that for the first module.

SD382

Instruction reception status of 4th module • Configuration is identical to that for the first module.

SD383

Appendix 4 SPECIAL REGISTER LIST

App-167

Show 6 more labels / short text on this page
Corres- ponding · Corresponding · 0 to · Not used · S (Instruction · execution) New QnPRH
Page 1158 of the Mitsubishi Electronics QCPU user manual — App-168
Page 1158 · click to enlarge
Page 1158

TableApp.4.4 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Number of multiple CPUs

  • The number of CPU modules that comprise the multiple CPU system is stored. (1 to 3, Empty also included)

Q00/Q01 *9

SD393

  • The CPU module types of No. 1 CPU to 3 and whether the CPU modules are mounted or not are stored.

to CPU No.2 CPU No.3 CPU No.1 SD394

b15 b8 b7 b12 b11 b4 b3 b0 Empty (0)

SD394 CPU mounting information

Q00/Q01 *9

CPU module mounted or not mounted 0: Not mounted 1: Mounted

CPU module type 0PLC CPU 1: Motion CPU 2: PC CPU

Q00/Q01 *9

  • In a multiple CPU system configuration, the CPU number of the host CPU is stored. CPU No. 1: 1, CPU No. 2: 2, CPU No. 3: 3, CPU No. 4: 4

SD395 Multiple CPU number

Multiple CPU system information

SD396 No. 1 CPU operation status The operation information of each CPU No. is stored. (The information on the number of multiple CPUs indicated in SD393 is stored.)

b15 b8 b7 b4 b3 b0 to to to b14

Q00/Q01 *9

QnU*17 SD397 No. 2 CPU operation status

Vacancy Classification Operation status

mounted 0Not mounted 1: Mounted

SD398 No. 3 CPU operation status

0. Normal 1: Minor fault 2: Medium fault 3: Major fault

0: RUN 2: STOP 3: PAUSE

4. Initial F H : Reset F H : Reset

SD399 No. 4 CPU operation statu QnU*11

*9: Function version is B or later. *11: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *17: The Universal model QCPU except the Q00UJCPU.

TableApp.4.5 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD412 1 second counter

Number of counts in 1-second units

  • Following programmable controller CPU module RUN, 1 is added each second
  • Count repeats from 0 to 32767 to -32768 to 0

QCPU

SD414 2n second clock setting

2n second clock units

  • Stores value n of 2n second clock (Default is 30)
  • Setting can be made between 1 and 32767 U New
  • SD415 2nms clock setting 2nms clock units
  • Stores value n of 2nms clock (Default is 30)
  • Setting can be made between 1 and 32767 U New Qn(H) QnPH QnPRH
  • Incremented by 1 for each scan execution after the CPU module is set to RUN. (Not counted by the scan in an initial execution type program.)
  • Count repeats from 0 to 32767 to -32768 to 0

QnU SD420 Scan counter Number of counts in each scan

  • Incremented by 1 for each scan execution after the CPU module is set to RUN.
  • Count repeats from 0 to 32767 to -32768 to 0
  • Incremented by 1 for each scan execution after the CPU module is set to RUN.
  • Count repeats from 0 to 32767 to -32768 to 0
  • Used only for low speed execution type programs

SD430 Low speed scan counter

Number of counts in each scan

processing) New Qn(H) QnPH

App-168

Show 21 more labels / short text on this page
Corres- ponding · Corresponding · QnU · S (Initial) New · S (Initial) New · Qn(H)*9 · QnPH · QnU · S (END processing · New · error) · (3) System clocks/counters · Corres- ponding · Corresponding · S (Status · change) D9022 · S (Every END · processing) New · S (Every END · processing) New Q00J/Q00/Q01 · S (Every END
Page 1159 of the Mitsubishi Electronics QCPU user manual — App-169
Page 1159 · click to enlarge
Page 1159

TableApp.4.6 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD500 Execution program No.

Program No. in execution

  • Program number of program currently being executed is stored as BIN value.

Low speed execution type program No. in execution

Low speed excution type program No.

  • Program number of low speed excution type program No. currently being executed is stored as BIN value.
  • Enabled only when SM510 is ON.

processing) New Qn(H) QnPH

SD510

Current scan time (in 1 ms units)

  • The current scan time is stored into SD520 and SD521. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD520: Stores the ms place. (Storage range: 0 to 65535) SD521: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999)) (Example) When the current scan time is 23.6ms, the following values are

SD520

QCPU

A

SD521 Current scan time (in 100 s units)

stored. SD520 = 23 SD521 = 600

Initial scan time (in 1 ms units)

  • Stores the scan time of an initial execution type program into SD522 and SD523. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD522: Stores the ms place. (Storage range: 0 to 65535) SD523: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))

SD522

SD523 Initial scan time (in 100 s units)

Minimum scan time (in 1 ms units)

  • Stores the minimum value of the scan time except that of an initial execution type program into SD524 and SD525. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD524: Stores the ms place. (Storage range: 0 to 65535) SD525: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))

SD524

Minimum scan time (in 100 s units)

SD525

Maximum scan time (in 1 ms units)

  • Stores the maximum value of the scan time except that of an initial execution type program into SD526 and SD527. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD526: Stores the ms place. (Storage range: 0 to 65535) SD527: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))

SD526

Maximum scan time (in 100 s units)

SD527

Appendix 4 SPECIAL REGISTER LIST

Current scan time (in 1 ms units)

  • Stores the current scan time of a low speed execution type program into SD528 and SD529. (Measurement is made in 100 s units.) SD528: Stores the ms place. (Storage range: 0 to 65535) SD529: Stores the s place. (Storage range: 0 to 900)

SD528 Current scan time for low speed execution type programs

SD529 Current scan time (in 100 s units)

Minimum scan time (in 1 ms units)

  • Stores the minimum value of the scan time of a low speed execution type program into SD532 and SD533. (Measurement is made in 100 s units.) SD532: Stores the ms place. (Storage range: 0 to 65535) SD533: Stores the s place. (Storage range: 0 to 900)

SD532 Minimum scan time for low speed execution type programs

Minimum scan time (in 100 s units)

SD533

Maximum scan time (in 1 ms units)

SD534 Maximum scan time for low speed execution type programs

  • Stores the maximum value of the scan time except that of the first scan of a low speed execution type program into SD534 and SD535. (Measurement is made in 100 s units.) SD534: Stores the ms place. (Storage range: 0 to 65535) SD535: Stores the s place. (Storage range: 0 to 900)

Maximum scan time (in 100 s units)

SD535

END processing time (in 1 ms units)

  • Stores the time from the end of a scan execution type program to the start of the next scan into SD540 and SD541. (Measurement is made in 100 s units.(For the Universal model QCPU, in 1 s units.)) SD540: Stores the ms place. (Storage range: 0 to 65535) SD541: Stores the s place. (Storage range: 0 to 900) (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))

SD540

END processing time (in 100 s units)

App-169

Show 42 more labels / short text on this page
(4) Scan information · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · S (Status · change) New · QnU · S (Every END · S (Every END · D9018 format change · processing) · Current scan time · S (Every END · processing) New · Initial scan time · S (First END · processing) New · D9017 format change · S (Every END · Qn(H) QnPH QnPRH · processing) · Minimum scan time · S (Every END · QnU · processing) New · D9019 format change · Maximum scan time · S (Every END · processing) · New · S (Every END · processing) New · S (Every END · processing) New · Qn(H) QnPH · S (Every END · processing) New · Qn(H) QnPH QnPRH · END processing time · S (Every END · processing) New · QnU SD541
Page 1160 of the Mitsubishi Electronics QCPU user manual — SD552
Page 1160 · click to enlarge
Page 1160

TableApp.4.6 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Minimum scan time (in 1 ms units)

SD524

  • Stores the minimum value of the scan time into SD524 and SD525. (Measurement is made in 100 s units.) SD524: Stores the ms place. (Storage range: 0 to 65535) SD525: Stores the s place. (Storage range: 0 to 900)

Minimum scan time (in 100 s units)

SD525

Maximum scan time (in 1 ms units)

SD526

  • Stores the maximum value of the scan time into SD526 and SD527. (Measurement is made in 100 s units.) SD526: Stores the ms place. (Storage range: 0 to 65535) SD527: Stores the s place. (Storage range: 0 to 900)

Q00J/Q00/Q01

Maximum scan time (in 100 s units)

SD527

END processing time (in 1 ms units)

  • Stores the time from when the scan program ends until the next scan starts into SD540 and SD541. (Measurement is made in 100 s units.) SD540: Stores the ms place. (Storage range: 0 to 65535) SD541: Stores the s place. (Storage range: 0 to 900)

SD540

END processing time (in 100 s units)

SD541

Constant scan wait time (in 1 ms units)

  • Stores the wait time for constant scan setting into SD542 and SD543. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD542: Stores the ms place. (Storage range: 0 to 65535) SD543: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))

SD542

Constant scan wait time

Constant scan wait time (in 100

SD543

Cumulative execution time for low speed execution type programs (in 1 ms units)

SD544

  • Stores the cumulative execution time of a low speed execution type program into SD544 and SD545. (Measurement is made in 100 s units.) SD544: Stores the ms place. (Storage range: 0 to 65535) SD545: Stores the s place. (Storage range: 0 to 900)
  • Cleared to 0 after the end of one low speed scan.

Cumulative execution time for low speed execution type programs

Cumulative execution time for low speed execution type programs (in 100 s units)

SD545

Execution time for low speed execution type programs (in 1 ms units)

SD546

  • Stores the execution time of a low speed execution type program during one scan into SD546 and SD547. (Measurement is made in 100 s units.) SD546: Stores the ms place. (Storage range: 0 to 65535) SD547: Stores the s place. (Storage range: 0 to 900)
  • Stored every scan.

Execution time for low speed execution type programs

Execution time for low speed execution type programs (in 100 s units)

SD547

Scan execution type program execution time (in 1 ms units)

SD548

  • Stores the execution time of a scan execution type program during one scan into SD548 and SD549. (Measurement is made in 100 s units.) SD548: Stores the ms place. (Storage range: 0 to 65535) SD549: Stores the s place. (Storage range: 0 to 900)
  • Stored every scan.

Scan execution type program execution time

Scan execution type program execution time (in 100 s units)

SD549

Scan program execution time (in 1 ms units)

  • Stores the execution time of a scan program during one scan into SD548 and SD549. (Measurement is made in 100 s units. (For the Universal model QCPU, in 1 s units.)) SD548: Stores the ms place. (Storage range: 0 to 65535) SD549: Stores the s place. (Storage range: 0 to 900 (For the Universal model QCPU, storage range is 0 to 999))
  • Stored every scan.

SD548

Scan program execution time

Scan program execution time (in 100 s units)

SD549

Service interval measurement module

SD550

Unit/module No. • Sets I/O number for module that measures service interval. U New

Qn(H) QnPH QnPRH SD551

Module service interval (in 1 ms units)

  • Stores the service interval for the module specified in SD550 into SD551 and SD552 when SM551 is turned ON. (Measurement is made in 100 s units.) SD551: Stores the ms place. (Storage range: 0 to 65535) SD552: Stores the s place. (Storage range: 0 to 900)

Module service interval (in 100 s units)

SD552

App-170

Show 28 more labels / short text on this page
Corres- ponding · Corresponding · Minimum scan time · S (Every END · processing) · New · Maximum scan time · S (Every END · processing) · END processing time · S (Every END · processing) New · S (Every END · processing) New QCPU · s units) · S (Every END · processing) New · Qn(H) QnPH · S (Every END · processing) New · S (Every END · Qn(H) QnPH QnPRH · processing) New · S (Every END · processing) New Q00J/Q00/Q01 · QnU · Service interval time · S (Request) New
Page 1161 of the Mitsubishi Electronics QCPU user manual — App-171
Page 1161 · click to enlarge
Page 1161

TableApp.4.7 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Indicates the type of the memory card installed.

b8 b7 b15 to to to

b4 b3 b0 0

Drive 1 (RAM) type

0. Does not exist 1: SRAM card

SD600 Memory card typs Memory card typs

S (Initial and card removal) New

0. Does not exist (1: SRAM)
2. ATA card 3: Flash card

(The bits for the drive 1 (RAM) type and drive 2 (ROM) type are fixed to "0" in the Q00UJCPU, Q00UCPU, and Q01UCPU.)

A

Drive 1 (Memory card RAM) capacity

  • Drive 1 capacity
  • Drive 1 capacity is stored in 1 k byte units.
  • (Empty capacity after format is stored.) S (Initial and card removal) New Qn(H) QnPH QnPRH

SD602

Drive 2 (Memory card ROM) capacity

Drive 2 capacity • Drive 2 capacity is stored in 1 k byte units.*1 S (Initial and card removal) New

  • The use conditions for memory card are stored as bit patterns . (In use when ON)
  • The significance of these bit patterns is indicated below:
b0Boot operation (QBT)
b8Not used
b1Parameters (QPA)
b9CPU fault history (QFD)

Memory card use conditions

Memory card use conditions

b2Device comments (QCD)
b10Not used
b3Device initial value (QDI)
b11Local device (QDL)
b4File register R (QDR)
b12Not used
b5Sampling trace (QTD)
b13Not used
b6Not used
b14Not used
b7Not used
b15Not used
  • The use conditions for memory card are stored as bit patterns . (In use when ON)
  • The significance of these bit patterns is indicated below:

SD604

b0Boot operation (QBT) *1
b8Not used

Appendix 4 SPECIAL REGISTER LIST

b1Parameters (QPA)
b9Not used
b2Device comments (QCD)
b10Not used
b3Device initial value (QDI) *2
b11Local device (QDL)

Memory card use conditions

Memory card use conditions

change) New QnU*2

b4File register R (QDR)
b12Not used
b5Sampling trace (QTD)
b13Not used
b6Not used
b14Not used
b7Backup data (QBP)
b15Not used *3

*1: Turned ON at boot start and OFF at boot completion. *2: Turned ON when reflection of device initial value is started and OFF when reflection of device initial value is completed. *3: The module whose first 5 digits of serial No. is "10102" or later.

*1: When the Q2MEM-8MBA is used, value stored in the special register SD603 differs depending on the combination of the serial number of the High Performance model QCPU and the manufacture control number of the ATA card. For details, refer to QCPU User's Manual (Hardware Design, Maintenance and Inspection). *2: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU.

App-171

Show 11 more labels / short text on this page
(5) Memory card · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · QnU · Drive 2 type · QnU*2 SD603 · Qn(H) QnPH QnPRH · S (Status · change) New · S (Status
Page 1162 of the Mitsubishi Electronics QCPU user manual — App-172
Page 1162 · click to enlarge
Page 1162

TableApp.4.7 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Indicates the drive 3/4 type.

0 b7 b4 b0 b15 b8 to to

Drive 3 (Standrd RAM)

Drive 4 (Standrd ROM)

SD620 Drive 3/4 typs Drive 3/4 typs

(The bits for the drive 3 (standard RAM) type is fixed to "0" in the Q00UJCPU.)

  • Indicates the drive 3/4 type.

b4 b3 b0 0 b8 b7 b15 to to to

Drive 3 (Standard RAM)

0. Absent

S (Initial) New Q00J/Q00/Q01

1. Present

Drive 4 (Standrd ROM)

Fixed to "3 (FLASH ROM)"

Drive 3 (Standard RAM) capacity

  • Drive 3 capacity is stored in 1 k byte units. (Empty capacity after format is stored.) S (Initial) New

SD622

  • Drive 3 capacity is stored in 1k byte units. S (Initial) New Q00J/Q00/Q01

Drive 4 (Standard ROM) capacity

  • Drive 4 capacity is stored in 1 k byte units. (Empty capacity after format is stored.) S (Initial) New

SD623

  • Drive 4 capacity is stored in 1k byte units. S (Initial) New Q00J/Q00/Q01
  • The conditions for usage for drive 3/4 are stored as bit patterns. (In use when ON)
  • The significance of these bit patterns is indicated below:
b0Boot operation (QBT)
b8Not used
b1Parameters (QPA)
b9CPU fault history (QFD)

Drive 3/4 use conditions

Drive 3/4 use conditions

b2Device comments (QCD)
b10SFC trace (QTS)
b3Device initial value (QDI)
b11Local device (QDL)
b4File register (QDR)
b12Not used
b5Sampling trace (QTD)
b13Not used
b6Not used
b14Not used
b7Not used
b15Not used
  • The conditions for usage for drive 3/4 are stored as bit patterns. (In use when ON)
  • The significance of these bit patterns is indicated below:

SD624

b0Not used
b8Module error log *2
b1Parameters (QPA)
b9Not used
b2Device comments (QCD)
b10Not used

Drive 3/4 use conditions

Drive 3/4 use conditions

b3Device initial value (QDI) *1
b11Local device (QDL)
b4File register (QDR)
b12Not used
b5Sampling trace (QTD)
b13Not used
b6Not used
b14Not used
b7Not used
b15Not used

*1: Turned ON at boot start and OFF at boot completion. *2: The modules whose first 5 digits of serial No. is "11043" or later.

  • The conditions for usage for drive 3/4 are stored as bit patterns.

0 b4 b0 b15 to to

0

SD624 Drive 3/4 use conditions

Drive 3/4 use conditions

0. Not used 1: In use
0. Not used 1: In use

Q00J/Q00/Q01

SD640 File register drive Drive number: • Stores drive number being used by file register S (Status change) *10 New

*3: The Universal model QCPU except the Q00UJCPU. *10: On the Basic model QCPU, data is set at STOP to RUN or RSET instruction execution after parameter execution.

App-172

Show 26 more labels / short text on this page
Corres- ponding · Corresponding · b3 to · Fixed to 1 · Qn(H) QnPH QnPRH · S (Initial) New · QnU · Fixed to 3 · Qn(H) QnPH QnPRH · Drive 3 capacity · QnU · Qn(H) QnPH QnPRH · Drive 4 capacity · QnU · Qn(H) QnPH QnPRH · S (Status · change) New · S (Status · change) New QnU · b5 · S (Status · Boot operation (QBT) · change) New Q00J/Q00/Q01 · File register (QDR) · Qn(H) QnPH QnPRH · QnU*3
Page 1163 of the Mitsubishi Electronics QCPU user manual — App-173
Page 1163 · click to enlarge
Page 1163

TableApp.4.7 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD641

  • Stores file register file name (with extension) selected at parameters or by use of QDRSET instruction as ASCII code.

SD642

b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character

SD641 SD642 SD643 SD644

SD643

SD644

SD645

SD645

1st character of extension

2E H (.)

SD646

3rd character of the extension

2nd character of the extension

File register file name

File register file name

  • Stores file register file name (MAIN.QDR) selected at parameters as ASCII code.

A

b15 to b8 b7 to b0 2nd character (A) 1st character (M) 4th character (N) 3rd character (I) 6th character ( ) 5th character ( ) 8th character ( ) 7th character ( )

SD641 SD642 SD643 SD644

SD646

S (Initial) New Q00J/Q00/Q01

1st character of the extension (Q)

SD645

2E H (.)

3rd character of the extension (R)

2nd character of the extension (D)

SD646

SD647 File register capacity

  • Stores the data capacity of the currently selected file register in 1 k word units.

Q00J/Q00/Q01

SD648 File register block number

File register block number • Stores the currently selected file register block number. S (Status change) *10 D9035

SD650 Comment drive Comment drive number

  • Stores the comment drive number selected at the parameters or by the QCDSET instruction.

Appendix 4 SPECIAL REGISTER LIST

SD651

  • Stores the comment file name (with extension) selected at the parameters or by the QCDSET instruction in ASCII code.

SD652

b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character

SD653

SD651 SD652 SD653 SD654

SD654

SD655

1st character of the extension 3rd character of the extension

SD655

2E H (.)

SD656

2nd character of the extension

SD656

SD660

Boot designation file drive number

  • Stores the drive number where the boot designation file (*.QBT) is being stored. S (Initial) New

SD661

  • Stores the file name of the boot designation file (*.QBT).

SD662

b15 to b8 b7 to b0 2nd character 1st character 4th character 3rd character 6th character 5th character 8th character 7th character

SD663

SD661 SD662 SD663 SD664

Boot operation designation file

SD664

File name of boot designation file

SD665

1st character of the extension 3rd character of the extension

SD665

2E H (.)

SD666

2nd character of the extension

SD666

*3: The Universal model QCPU except the Q00UJCPU. *4: The Universal model QCPU except the Q00UJCPU, Q00UCPU, and Q01UCPU. *10: On the Basic model QCPU, data is set at STOP to RUN or RSET instruction execution after parameter execution.

App-173

Show 25 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · S (Status · change) New · QnU*3 · Qn(H) QnPH QnPRH · S (Status · File register capacity · change) New · QnU*3 · S (Initial) Q00J/Q00/Q01 · Qn(H) QnPH QnPRH · QnU*3 · S (Status · change) New · Qn(H) QnPH QnPRH · Comment file name · Comment file name · S (Status · change) New · QnU · Qn(H) QnPH QnPRH · S (Initial) New · QnU*4
Page 1164 of the Mitsubishi Electronics QCPU user manual — App-174
Page 1164 · click to enlarge
Page 1164

TableApp.4.7 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Stores information of parameter storage destination drive which is enabled. 0: Drive 0 (Program memory) 1: Drive 1 (SRAM card) 2: Drive 2 (Flash card/ATA card) 4: Drive 4 (Standard ROM) (Only drive 0 and drive 4 are valid in the Q00UJCPU, Q00UCPU, and Q01UCPU.)

Parameter enable drive information

Parameter enable drive No.

SD670

Indicates the status of the latch data backup function.

Presence/ absence of backup data

Restore operation at turning power supply

0 No backup data Absent Restoring not executed

ON from OFF the

Status of latch data backup function

SD671

completion Restoring not executed

3 Backup execution wait Restoring not executed

Restoring executed when turning power supply ON from OFF

  • "2 Restore ready completion" is a status immediately after restoring data. "3 Backup execution wait" is a status after turning power supply ON from OFF at "2 Restore ready completion".
  • Stores the last 2 digits of year and month when backup is performed in 2-digit BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993

SD672

Backup time (Year and month)

9307 H

  • Stores the day and hour when backup is performed in 2-digit BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example: 31st, 10 a.m.

SD673 Backup time (Day and hour)

3110 H

  • Stores the minute and second when backup is performed in 2-digit BCD code.

Backup time (Minute and second)

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.

SD674

S (At write) New

3548 H

  • Stores the first 2 digits of year and day of week when backup is performed in BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example1993, Friday

1905 H

SD675 Backup time (Year and day of week)

Day of the week

0 1 2 3 4 5 6

Higher digits of year (0 to 99)

App-174

Show 28 more labels / short text on this page
Corres- ponding · Corresponding · S (Initial) New · Status · ON from OFF · Restoring executed when · 1 Restore ready · turning power supply · completion · following time · Status display · 2 Restore execution · S (Status · change) New · Present · 4 Restore repeated · execution ready · completion · QnU · Year Month · Day Hour · Backup information · Second Second Minute · Sunday · Monday · Tuesday · Friday Thursday Wednesday · Saturday
Page 1165 of the Mitsubishi Electronics QCPU user manual — App-175
Page 1165 · click to enlarge
Page 1165

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Stores the last 2 digits of year and month when data is restored in 2-digit BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993

SD676

Restore time (Year and month)

9307 H

  • Stores the day and time when data is restored in 2-digit BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example: 31st, 10 a.m.

SD677 Restore time (Day and time)

3110 H

  • Stores the minute and second when data is restored in 2-digit BCD code.

Backup data restration information

Restore time (Minute and second)

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.

A

SD678

3548 H

  • Stores the first 2 digits of year and day of week when data is restored in BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example1993, Friday

1905 H

Restore time (Year and day of week)

SD679

Day of the week

0 1 2 3 4 5 6

Higher digits of year (0 to 99)

Program memory write (transfer) status

Write (transfer) status display (percentage)

SD681

Displays the status of writing (transferring) the program memory (flash ROM) in percentage. (0 to 100%) "0" is set when the write direction is set. S (At write) New

  • Stores the index value for the number of write operations to the program memory (flash ROM) up to the present in BIN 32-bit value. When the index value exceeds 100 thousand times, "FLASH ROM ERROR" (error code: 1610) occurs. (The index value is calculated even when exceeding 100 thousand times.) Note) The write count does not equal to the index value.(Since a flash ROM write life is prolonged by the system, 1 is added to the write count index when writing is performed twice or so.).

Appendix 4 SPECIAL REGISTER LIST

SD682

Program memory write count index

Write count index up to present

S (At write) New SD683

Standard ROM write (transfer) status

Write (transfer) status display (per- centage)

Displays the status of writing (transferring) the standard ROM (flash ROM) in percentage. (0 to 100%) "0" is set when the write direction is set. S (At write) New

SD686

SD687

  • Stores the index value for the number of write operations to the standard ROM (flash ROM) up to the present in BIN 32-bit value. When the index value exceeds 100 thousand times, "FLASH ROM ERROR" (error code: 1610) occurs. (The index value is calculated even when exceeding 100 thousand times.) Note) The write count does not equal to the index value. (Since a flash ROM write life is prolonged by the system, 1 is added to the write count index when the total write capacity after the previous count up reaches about 1M byte.)

S (At write) New SD688

Standard ROM write count index

Write count index up to present

Stores the factor of the error that occurred in the backup. 0H : No error 100H: Memory card not inserted 200H: Size of backup target data exceeded 300H: Memory card write inhibit setting 400H: Memory card write error 500H: Backup target data read error (from program memory) 503H: Backup target data read error (from standard RAM) 504H: Backup target data read error (from standard ROM) 510H: Backup target data read error (from system data)

SD689 Backup error factor

Stores the current backup status. 0 : Before backup start 1 : Backup start prepared 2 : Backup start preparation completed 3 : Backup in execution 4 : Backup completed FF: Backup error

SD690 Backup status Backup status

*1: The module whose first 5 digits of serial No. is "10102" or later. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

App-175

Show 18 more labels / short text on this page
Corres- ponding · Corresponding · Year Month · Day Hour · S (Initial) New · Second Second Minute · QnU · Sunday · Monday · Tuesday · Friday Thursday Wednesday · Saturday · Backup error factor · S (Backup error · occurrence) New · QnU*1 · S (Status · change) New
Page 1166 of the Mitsubishi Electronics QCPU user manual — App-176
Page 1166 · click to enlarge
Page 1166

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Backup execution status display (Percentage)

  • Displays the execution status of data backup to the memory card in percentage (0 to 100%).
  • "0" is set when the backup starts.

SD691 Backup execution status

Stores the factor of an error that occurred in the restoration. Each error factor is as follows: 800H: The CPU module model name is not matched. 801H: The file password is set only for the restoration destination data or is not matched. 810H: The verified backup data file is not matched or the backup data read failed.

SD692 Restoration error factor

Factor of error occurred in the restoration

S (Error occurrence) New

Stores the current restoration execution status. Each error factor is as follows: 0 : Before restoration start 1 : Restoration in execution 2 : Restoration completed FF: Restoration error Sets "0" (Before restoring), however, when the restoration is completed only during the automatic restoration.

Restoration execution status display (Percentage)

  • Displays the execution status of restoration to the CPU module in percentage (0 to 100%).
  • "0" is set before the restoration. Sets "0" (Before restoring), however, when the restoration is completed only during the automatic restoration.

SD694 Restoration execution status

  • Specifies the maximum number of executions of the writing to standard ROM instruction (SP.DEVST) to write to the standard ROM per day.
  • When the number of executions of the writing to standard ROM instruction exceeds the number of times set by SD695, “OPERATION ERROR” (error code: 4113) occurs.
  • The setting range for SD695 is 1 to 32767. If 0 or value outside the range is set, “OPERATION ERROR” (error code: 4113) occurs at execution of the writing to standard ROM instruction.

Specification of writing to stan- dard ROM instruction count

Specification of writing to standard ROM instruction count

SD695

SD696 Available memory in memory card

Available memory in memory card

Stores the available memory in memory card. (Stores the value in 32-bit binary.)

operation) New QnU*1 SD697

SD698 Backup data capacity

Backup data capacity Stores the backup data capacity. (Stores the value in 32-bit binary.) SD699

*1: The module whose first 5 digits of serial No. is "10102" or later. (Except the Q00UJCPU, Q00UCPU, and Q01UCPU)

App-176

Show 13 more labels / short text on this page
Corres- ponding · Corresponding · S (Status · change) New · QnU*1 · SD693 Restoration status · Current restoration status · S (Status · change) New · S (Status · change) New · U New QnU · S (Backup in
Page 1167 of the Mitsubishi Electronics QCPU user manual — SD754
Page 1167 · click to enlarge
Page 1167

TableApp.4.8 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD705

  • During block operations, turning SM705 ON makes it possible to use the mask pattern being stored at SD705 (or at SD705 and SD706 if double words are being used) to operate on all data in the block with the masked values.

Q00J/Q00/Q01

Qn(H) QnPH QnPRH SD706

Mask pattern Mask pattern

SD715

  • Patterns masked by use of the IMASK instruction are stored in the following manner:

SD716

IMASK instruction mask pattern

S (During execution) New

SD715

SD716

SD717

QCPU

SD717

A

SD718

Accumulator Accumulator • For use as replacement for accumulators used in A series programs. S/U New SD719

Program No. designation for PLOADP instruction

Program No. designation for PLOADP instruction

Stores the program number of the program to be loaded by the PLOADP instruction when designated. Designation range: 1 to 124

SD720

U New Qn(H) QnPH

SD738

  • Stores the message designated by the MSG instruction.

SD739

b15 to b8 b7 to b0

SD740

SD738 SD739

2nd character 1st character

SD741

4th character 3rd character 6th character 5th character 8th character 7th character 10th character 9th character 12th character 11th character 14th character 13th character 16th character 15th character 18th character 17th character 20th character 19th character 22nd character 21st character 24th character 23rd character 26th character 25th character 28th character 27th character 30th character 29th character 32nd character 31st character 34th character 33rd character 36th character 35th character 38th character 37th character 40th character 39th character 42nd character 41st character 44th character 43rd character 46th character 45th character 48th character 47th character 50th character 49th character 52nd character 51st character 54th character 53rd character 56th character 55th character 58th character 57th character 60th character 59th character 62nd character 61st character 64th character 63rd character

SD742

SD740 SD741 SD742 SD743

SD743

SD744

SD745

SD744 SD745 SD746 SD747 SD748 SD749 SD750 SD751 SD752 SD753 SD754 SD755 SD756 SD757 SD758 SD759 SD760 SD761 SD762 SD763 SD764 SD765 SD766 SD767 SD768 SD769

SD746

SD747

SD748

SD749

Appendix 4 SPECIAL REGISTER LIST

SD750

SD751

SD752

SD753

Message storage Message storage

S (During execution) New QCPU

SD754

SD755

SD756

SD757

SD758

SD759

SD760

SD761

SD762

SD763

SD764

SD765

SD766

SD767

SD768

SD769

App-177

Show 10 more labels / short text on this page
(6) Instruction-Related Registers · Corres- ponding · Corresponding · U New · b15 b0 b1 · Mask pattern · l15 l1 l0 · to · to · to
Page 1168 of the Mitsubishi Electronics QCPU user manual — App-178
Page 1168 · click to enlarge
Page 1168

TableApp.4.8 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Specify the limit of each PID loop as shown below.

PID limit setting (for complete derivative)

0. With limit 1: Without limit

SD774

SD775

  • Specify the limit of each PID loop as shown below.

PID limit setting (for complete derivative)

0. With limit 1: Without limit

to to b1 b0 b7 b8

U New Q00J/Q00/Q01*9

SD774

SD774

  • Selects whether or not the data is refreshed when the COM instruction is executed.
  • Designation of SD778 is made valid when SM775 turns ON.

b0 b1 b2 b3 b4 b5 b14 b15

0/1 SD778

I/O refresh CC-Link refresh MELSECNET/H refresh

Automatic refresh of intelligent function modules

Q00J/Q00/Q01 *9

Automatic refresh of CPU shared memory (Fixed to "0" for Redundant CPU)

Execution/non- execution of communication with CPU module

  • Refresh between multiple CPUs by COM instruction is performed under the following occasion. Receiving operation from other device: b4 of SD778(refresh in the CPU shared memory) is turned to 1. Sending operation from host CPU : b15 of SD778(communication with peripheral device is executed/nonexecuted) is turned to 0.

b0 to b14: 0: Do not refresh 1: Refresh b15 bit 0: Communication with CPU module is executed 1: Communication withCPU module is nonexecuted

  • Selects whether or not the data is refreshed when the COM instruction is executed.
  • Designation of SD778 is made valid when SM775 turns ON.

Refresh processing selection when the COM/ CCOM instruction is executed

SD778

b0 b1 b2 b3 b4 b5 b6 b14 b15

0/1 SD778

I/O refresh CC-Link refresh CC-Link IE controller network or

Automatic refresh of intelligent function modules

Reading input/output from group outside multiple CPU system

Auto refresh using the multiple CPU high speed transmission area of multiple CPU system

Execution/non- execution of communication with CPU module

  • Refresh between multiple CPUs by COM instruction is performed under the following occasion. Receiving operation from other device: b4 of SD778(refresh in the CPU shared memory) is turned to 1. Sending operation from host CPU : b15 of SD778(communication with peripheral device is executed/nonexecuted) is turned to 0.
  • When b2 (refresh of the CC-Link IE controller network and MELSECNET/H) of SD778 is 1, the CC-Link IE controller network and MELSECNET/H perform refresh. Therefore, if there are many refresh points, processing time for the COM instruction will be extended.

*9: Function version is B or later. *11: The module whose first 5 digits of serial No. is "04012" or later. *12: The module whose first 5 digits of serial No. is "07032" or later. *13: The module whose first 5 digits of serial No. is "09012" or later.

App-178

Show 28 more labels / short text on this page
Corres- ponding · Corresponding · b15 · b1 b0 · SD774 to SD775 · Qn(H) QnPRH · Loop16 · to · Loop2 · Loop1 · U New · QnU · Loop32 · to · Loop18 · Loop17 · b15 · Loop8 Loop2 Loop1 · to · 0 to · U New · Qn(H)*11 · 0 to · MELSECNET/H refresh · Qn(H)*13 · U New · QnPH*12 · QnPRH
Page 1169 of the Mitsubishi Electronics QCPU user manual — App-179
Page 1169 · click to enlarge
Page 1169

TableApp.4.8 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Selects whether or not the data is refreshed when the COM, CCOM instruction is executed.
  • Designation of SD778 is made valid when SM775 turns ON.

b0 b1 b2 b3 b4 b5 b6 b14 b15

0/1 SD778

I/O refresh CC-Link refresh Refresh of MELSECNET/H and CC-Link IE controller network

b0 to b14: 0: Do not refresh 1: Refresh b15 bit 0: communication with peripheral device is executed 1: communication with peripheral device is nonexecuted

Refresh processing selection when the COM/ CCOM instruction is executed

Automatic refresh of intelligent function modules

SD778

QCPU standard area of multiple CPU system and reading input/output from group outside.

A

Auto refresh using the multiple CPU high speed transmission area of multiple CPU system

Execution/non- execution of communication with CPU module

  • Stores the mask patterns masked by the IMASK instruction as follows:

SD781

Mask pattern of IMASK instruction

SD782

S (During execution) New

SD793

(The Q00UJCPU, Q00UCPU, and Q01UCPU cannot use the special registers SD786 to SD793.)

  • Stores the mask patterns masked by the IMASK instruction as follows:

Appendix 4 SPECIAL REGISTER LIST

SD781

Mask pattern of IMASK instruction

SD782

S (During execution) New Q00J/Q00/Q01

SD785

  • Specify the limit of each PID loop as shown below.

PID limit setting (for incomplete derivative)

0. With limit 1: Without limit

SD794

SD795

  • Specify the limit of each PID loop as shown below.

PID limit setting (for incomplete derivative)

0. With limit 1: Without limit

SD794

to b1 b0 b7 b8

U New Q00J/Q00/Q01*9

SD794

*9: Function version is B or later. *13: The module whose first 5 digits of serial No. is "09012" or later.

App-179

Show 41 more labels / short text on this page
Corres- ponding · Corresponding · 0 to · U New QnU · Auto refresh using · b15 b0 b1 · l63 l49 l48 · to · SD781 to SD793 · to · Qn(H) QnPH QnPRH · Mask pattern · to · QnU · to · b15 b0 b1 · l63 l49 l48 · to · SD781 to SD785 · Mask pattern · to · to to · to · SD794 to SD795 · b15 · b1 b0 · Qn(H)*13 · Loop16 · Loop2 · Loop1 · U New · QnPRH · to · QnU · Loop32 · to · Loop18 · Loop17 · b15 · Loop8 Loop2 Loop1 · to
Page 1170 of the Mitsubishi Electronics QCPU user manual — App-180
Page 1170 · click to enlarge
Page 1170

TableApp.4.8 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.1)

  • Specifies the maximum number of blocks used for the multiple CPU high-speed transmission dedicated instruction (target CPU=CPU No.1). When the dedicated instruction of Multiple CPU transmission is executed to the CPU No.1, and the number of empty blocks of the dedicated instruction transmission area is less than the setting value of this register, SM796 is turned ON, which is used as the interlock signal for consecutive execution of the dedicated instruction of Multiple CPU transmission.

U (At 1 scan

SD796

Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.2)

  • Specifies the maximum number of blocks used for the multiple CPU high-speed transmission dedicated instruction (target CPU=CPU No.2). When the dedicated instruction of Multiple CPU transmission is executed to the CPU No.2, and the number of empty blocks of the dedicated instruction transmission area is less than the setting value of this register, SM797 is turned ON, which is used as the interlock signal for consecutive execution of the dedicated instruction of Multiple CPU transmission.

SD797

U (At 1 scan

Maximum number of blocks range for dedicated instructions Range: 1 to 7 (Default: 2 Or when setting other than 1 to 7, the register operates as 7).

Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.3)

  • Specifies the maximum number of blocks used for the multiple CPU high-speed transmission dedicated instruction (target CPU=CPU No.3). When the dedicated instruction of Multiple CPU transmission is executed to the CPU No.3, and the number of empty blocks of the dedicated instruction transmission area is less than the setting value of this register, SM798 is turned ON, which is used as the interlock signal for consecutive execution of the dedicated instruction of Multiple CPU transmission.

SD798

U (At 1 scan

Maximum number of blocks used for the multiple CPU high- speed transmission dedicated instruction setting (for CPU No.4)

  • Specifies the maximum number of blocks used for the multiple CPU high-speed transmission dedicated instruction (target CPU=CPU No.4). When the dedicated instruction of Multiple CPU transmission is executed to the CPU No.4, and the number of empty blocks of the dedicated instruction transmission area is less than the setting value of this register, SM799 is turned ON, which is used as the interlock signal for consecutive execution of the dedicated instruction of Multiple CPU transmission.

U (At 1 scan

SD799

*14: The Universal model QCPU except the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU. *15: The range is from 1 to 9 for the Q03UDCPU, Q04UDCPU, and Q06UDHCP whose first 5 digits of serial number is "10012" or earlier. (Default: 2 Or when setting other than 1 to 9, the register operates as 9).

App-180

Show 7 more labels / short text on this page
Corres- ponding · Corresponding · after RUN) New · after RUN) New · QnU*14*15 · after RUN) New · after RUN) New
Page 1171 of the Mitsubishi Electronics QCPU user manual — App-181
Page 1171 · click to enlarge
Page 1171

TableApp.4.9 Special register

Mitsubishi Electronics QCPU — Appendix 4 SPECIAL REGISTER LIST diagram (page 1171)
Fig. 1448 · Appendix 4 SPECIAL REGISTER LIST

Stores the status of the debug function usage as shown below.

0. Forced ON/OFF for external I/O 1: Executional conditioned device test 2 to 15:Absent (0 fix)

*1: The module whose first 5 digits of serial No. is "10042" or later.

(8) Redundant CPU information (host system CPU information*1)

A

TableApp.4.10 Special register

Mitsubishi Electronics QCPU — A diagram (page 1171)
Fig. 1449

Stores the completion status of the memory copy from control system to standby system executed last. 1) Stores the same value as stored into SD1596 at normal completion/ abnormal completion of the memory copy from control system to standby system. 2) Backed up for a power failure, this special register holds the status of memory copy from control system to standby system executed last. 3) Cleared to 0 by latch clear operation.

History of memory copy from control system to standby system

Latest status of memory copy from control system to standby system

*1: The host system CPU information is stored.

(9) Remote password count

TableApp.4.11 Special register

Mitsubishi Electronics QCPU — A diagram (page 1171)
Fig. 1450

Appendix 4 SPECIAL REGISTER LIST

Stores the count of unlock processing failures. Range: 0 to FFFEH (FFFFH when the limit is exceeded)

*1: This applies to the Built-in Ethernet port QCPU.

App-181

(7) Debug

Page 1172 of the Mitsubishi Electronics QCPU user manual — App-182
Page 1172 · click to enlarge
Page 1172

(10) A to Q conversion

ACPU special registers D9000 to D9255 correspond to Q special registers SD1000 to SD1255 after A to Q/QnA conversion. (However, the Basic model QCPU and Redundant CPU do not support the A to Q conversion.) These special registers are all set by the system, and cannot be set by the user program. To set data by the user program, correct the program for use of the QCPU special registers. However, some of SD1200 to SD1255 (corresponding to D9200 to 9255 before conversion) can be set by the user program if they could be set by the user program before conversion. For details on the ACPU special registers, refer to the user's manual for the corresponding CPU, and MELSECNET or MELSECNET/B Data Link System Reference Manuals.

POINT

Check "Use special relay/special register from SM/SD1000" for "A-PLC" on the PLC system tab of PLC parameter in GX Developer when the converted special registers are used with the High Performance model QCPU, Process CPU, and Universal model QCPU. When not using the converted special registers, uncheck "Use special relay/ special registers from SM/SD1000" to save the time taken for processing special registers.

Remark

Supplemental explanation on "Special Register for Modification" column

For the device numbers for which a special register for modification is specified, modify it to the special register for QCPU.

For the device numbers for which is specified, special register after conversion can be used.

Device numbers for which is specified do not function for QCPU.

App-182

Page 1173 of the Mitsubishi Electronics QCPU user manual — App-183
Page 1173 · click to enlarge
Page 1173

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

  • When fuse blown modules are detected, the first I/O number of the lowest number of the detected modules is stored in hexadecimal. (Example: When fuses of Y50 to 6F output modules have blown, "50" is stored in hexadecimal) To monitor the number by peripheral devices, perform monitor operation given in hexadecimal. (Cleared when all contents of SD1100 to SD1107 are reset to 0.)
  • Fuse blow check is executed also to the output modules of remote I/O stations.

D9000 SD1000 – Fuse blown Number of module with blown fuse

  • Stores the module numbers corresponding to setting switch numbers or base slot numbers when fuse blow occurred.

AJ02 I/O module Extension base unit

slot No.

0 1 2 3 4 5 6 7

0 1 2 3 4 5 6 7

0 1 2 3

4 5 6 7

A

D9001 SD1001 – Fuse blown Number of module with blown fuse

  • For the remote I/O station, the value of (module I/O No./10H) + 1 is stored.
  • If I/O modules, of which data are different from data entered, are detected when the power is turned on, the first I/O number of the lowest number unit among the detected units is stored in hexadecimal. (Storing method is the same as that of SD1000.) To monitor the number by peripheral devices, perform monitor operation given in hexadecimal. (Cleared when all contents of SD1116 to SD1123 are reset to 0.)
  • I/O module verify check is executed also to the modules of remote I/O terminals.

D9002 SD1002 – I/O module verify error

I/O module verify error module number

  • When the AC power supply module is used, 1 is added at occurrence of an instantaneous power failure of within 20ms. (The value is stored in BIN code.) It is reset when the power supply is switched from OFF to ON.

D9005 SD1005 – AC DOWN counter

Number of times for AC DOWN

Appendix 4 SPECIAL REGISTER LIST

  • When the DC power supply module is used, 1 is added at occurrence of an instantaneous power failure of within 10ms. (The value is stored in BIN code.) It is reset when the power supply is switched from OFF to ON.

D9008 SD1008 SD0 Self-diagnostic error

  • When error is found as a result of self-diagnosis, error number is stored in BIN code.
  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-183

Show 22 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · QnU*1 · Setting · Stored · Base unit · Stored · switch · data · data · Qn(H) QnPH · Qn(H) QnPH · QnU*1 · Qn(H) QnPH · QnU*1 · Qn(H) QnPH · QnU*1 · Self-diagnostic error number · Qn(H) QnPH · QnU*1
Page 1174 of the Mitsubishi Electronics QCPU user manual — App-184
Page 1174 · click to enlarge
Page 1174

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

  • When one of F0 to 2047 is turned on by OUT F or SET F instruction, the F number, which has been detected earliest among the F numbers which have turned on, is stored in BIN code.
  • SD1009 can be cleared by RST F or LEDR instruction. If another F number has been detected, the clearing of SD1009 causes the next number to be stored in SD1009.

D9009 SD1009 SD62 Annunciator detection

F number at which external failure has occurred

  • When operation error has occurred during execution of application instruction, the step number, at which the error has occurred, is stored in BIN code. Thereafter, each time operation error occurs, the contents of SD1010 are renewed.

Step number at which operation error has occurred.

D9010 SD1010 Error step

  • When operation error has occurred during execution of application instruction, the step number, at which the error has occurred, is stored in BIN code. Since the step number is stored into SD1011 when SM1011 turns from OFF to ON, the data of SD1011 is not updated unless SM1011 is cleared by a user program.

Qn(H) QnPH D9011 SD1011 Error step

Step number at which operation error has occurred.

  • The I/O control mode set is returned in any of the following numbers: 0: Both input and output in direct mode 1: Input in refresh mode, output in direct mode 3: Both input and output in refresh mode

D9014 SD1014 I/O control mode

I/O control mode number

  • The operation status of CPU as shown below are stored in SD1015.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Remote RUN/STOP by computer 0

RUN

RUN

STOP

STOP

D9015 SD1015 SD203 Operating status of CPU

Operating status of CPU

PAUSE

PAUSE

3 STEP RUN

Remains the same in remote RUN/STOP mode.

Remote RUN/STOP by parameter setting

STOP

RUN

STOP

PAUSE

*1: When the CPU mdoule is in RUN mode and SM1040 is off, the CPU module remains in RUN mode if changed to PAUSE mode.

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-184

Show 11 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · QnU*1 · CPU key switch · Qn(H) QnPH · QnU*1 · Status in program · Except below · Instruction execution
Page 1175 of the Mitsubishi Electronics QCPU user manual — App-185
Page 1175 · click to enlarge
Page 1175

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

0. Main program (ROM) 1: Main program (RAM) 2: Subprogram 1 (RAM) 3: Subprogram 2 (RAM) 4: Subprogram 3 (RAM) 5: Subprogram 1 (ROM) 6: Subprogram 2 (ROM) 7: Subprogram 3 (ROM) 8: Main program

D9016 SD1016 Program number

  • Indicates which sequence program is run presently. One value of 0 to B is stored in BIN code.

A

(E 2 PROM) 9Subprogram 1
(E 2 PROM) ASubprogram 2
(E 2 PROM) BSubprogram 3

(E 2 PROM)

  • If scan time is smaller than the content of SD1017, the value is newly stored at each END. Namely, the minimum value of scan time is stored into SD1017 in BIN code.

D9017 SD1017 SD524 Scan time Minimum scan time (10 ms units)

QnU*1 D9018 SD1018 SD520 Scan time Scan time (10 ms units)

  • At every END, the scan time is stored in BIN code and always rewritten.

D9019 SD1019 SD526 Scan time Maximum scan time (10 ms units)

  • If scan time is larger than the content of SD1019, the value is newly stored at each END. Namely, the maximum value of scan time is stored into SD1019 in BIN code.
  • Sets the interval between consecutive program starts in multiples of 10 ms. 0 : No setting

Constant scan time (User sets in 10 ms units)

D9020 SD1020 Constant scan

1 to 200Set. Program is executed at intervals of (set

value) 10 ms.

D9021 SD1021 – Scan time Scan time (1 ms units)

  • At every END, the scan time is stored in BIN code and always rewritten.

Appendix 4 SPECIAL REGISTER LIST

  • When the PC CPU starts running, it starts counting 1 every second.
  • It starts counting up from 0 to 32767, then down to -32768 and then again up to 0. Counting repeats this routine.

D9022 SD1022 SD412 1 second counter Count in units of 1s.

  • The year (last two digits) and month are stored as BCD code as shown below.

D9025 SD1025 – Clock data Clock data (year, month)

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 1987, July H8707

  • The day and hour are stored as BCD code as shown below.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 31st, 10 a.m. H3110

D9026 SD1026 – Clock data Clock data (day, hour)

  • The minute and second are stored as BCD code as shown below.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min, 48 sec. H3548

D9027 SD1027 – Clock data Clock data (minute, second)

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-185

Show 11 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · Qn(H) QnPH · Qn(H) QnPH · Year Month · Qn(H) QnPH · QnU*1 · Day Hour · Minute Second
Page 1176 of the Mitsubishi Electronics QCPU user manual — App-186
Page 1176 · click to enlarge
Page 1176

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

  • The day of the week is stored as BCD code as shown below.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

ExampleFriday

H0005

D9028 SD1028 – Clock data Clock data (day of week)

Day of the week

D9035 SD1035 SD648 Extension file register Use block No. • Stores the block No. of the extension file register being used in BCD code.

  • Designate the device number for the extension file register for direct read and write in 2 words at SD1036 and SD1037 in BIN data. Use consecutive numbers beginning with R0 of block No. 1 to designate device numbers.

D9036 SD1036

Extension file registerfor designation of device number

Device number when individual devices from extension file register are directly accessed

Block No.1 area

Block No.2 area

D9037 SD1037

SD1037,SD1036

Device No. (BIN data)

  • Sets priority of ERROR LEDs which illuminate (or flicker) to indicate errors with error code numbers.
  • Configuration of the priority setting areas is as shown below.

D9038 SD1038 SD207

Priorities 1 to 4

b15 b12 b11 b8 b7 b4 b3 b0 to Priority 4 Priority 3

LED display priority ranking

SD207

SD208

Priority 7 Priority 6

D9039 SD1039 SD208 Priorities 5 to 7

  • For details, refer to the applicable CPUs User's Manual and the ACPU Programming manual (Fundamentals).
  • Turned on/off with a peripheral device. When STRA or STRAR instruction is executed, the value stored in SD1044 is used as the sampling trace condition. At scanning--------0 At time--------------Time (10 msec unit) The value is stored into SD1044 in BIN code.

D9044 SD1044 For sampling trace

Step or time during sampling trace

  • Stores the block number of the expansion file register which is used as the work area for the execution of a SFC program in a binary value.
  • Stores "0" if an empty area of 16K bytes or smaller, which cannot be expansion file register No. 1, is used or if SM320 is OFF.

D9049 SD1049 Work area for SFC

Block number of extension file register

  • Stores error code of errors occurred in the SFC program in BIN code. 0 : No error 80: SFC program parameter error 81: SFC code error 82: Number of steps of simultaneous execution exceeded 83: Block start error 84: SFC program operation error

D9050 SD1050 SFC program error number

Error code generated by SFC program

  • Stores the block number in which an error occurred in the SFC program in BIN code. In the case of error 83 the starting block number is stored.

D9051 SD1051 Error block Block number where error occurred

  • Stores the step number, where error code 84 occurred in an SFC program, in BIN value.
  • Stores "0" when error code 80, 81 or 82 occurred.
  • Stores the block stating step number when error code 83 occurs.

D9052 SD1052 Error step Step number where error occurred

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-186

Show 21 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · Sunday · Always set "0" · Monday · Tuesday · QnU*1 · Wednesday · Thursday · Friday · Saturday · Extension file register · 0 to 16383 · 16384 to · to · Priority 2 · Priority 1 · Priority 5 · Qn(H) QnPH
Page 1177 of the Mitsubishi Electronics QCPU user manual — App-187
Page 1177 · click to enlarge
Page 1177

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

Transition condition number where error occurred

  • Stores the transition condition number, where error code 84 occurred in an SFC program, in BIN value. Stores "0" when error code 80, 81, 82 or 83 occurred.

D9053 SD1053 Error transition

Sequence step number where error occurred

  • Stores the sequence step number of transfer condition and operation output in which error 84 occurred in the SFC program in BIN code.

D9054 SD1054 Error sequence step

  • Stores the step number when status latch is executed.
  • Stores the step number in a binary value if status latch is executed in a main sequence program.
  • Stores the block number and the step number if status latch is executed in a SFC program.

Status latch execution step number

D9055 SD1055 SD812

Block No.

Step No.

(BIN)

(BIN)

Lower 8 bits Upper 8 bits

A

Data check of serial communication module

  • In the self-loopback test of the serial communication module, the serial communication module writes/reads data automatically to make communication checks.

D9072 SD1072

  • Sets the time check time of the data link instructions (ZNRD, ZNWR) for the MELSECNET/10.
  • Setting range : 1 s to 65535 s (1 to 65535)
  • Setting unit : 1 s
  • Default value : 10 s (If 0 has been set, default 10 s is applied) Qn(H) QnPH

Register for setting time check value

D9085 SD1085

1 s to 65535 s

Number of special functions modules over

Number of special functions modules over

  • For details, refer to the manual of each microcomputer program package.

D9090 SD1090

D9091 SD1091 Detailed error code

Self-diagnosis detailed error code • Stores the detail code of cause of an instruction error. Qn(H) QnPH

Head I/O number of I/O module to be replaced

  • Stores the first two digits of the head I/O number of the I/O module, which will be dismounted/mounted online (with power on), in BIN value. Example) Input module X2F0 H2F

Head I/O number of I/ O module to be replaced

D9094 SD1094 SD251

  • The DIP switch information of the CPU module is stored in the following format. 0: OFF 1: ON

Appendix 4 SPECIAL REGISTER LIST

b0 b1 b2 b3 b4 b5 b15

D9095 SD1095 SD200 DIP switch information

SW1 SW2

SW3 SW4 SW5

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-187

Show 12 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · Status latch step · PLC communication check · Qn(H) QnPH · QnU*1 · Qn(H) QnPH · to · DIP switch information · Qn(H) QnPH
Page 1178 of the Mitsubishi Electronics QCPU user manual — App-188
Page 1178 · click to enlarge
Page 1178

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

D9100 SD1100

  • Output module numbers (in units of 16 points), of which fuses have blown, are entered in bit pattern. (Preset output module numbers when parameter setting has been performed.)

D9101 SD1101

b15 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

D9102 SD1102

SD1100

0 1 (Y80) 0 0 0 1 (YC0) 0 0 0

Bit pattern in units of 16 points, indicating the modules whose fuses have blown

D9103 SD1103

SD1101

0

– Fuse blown module

0 1 Y7 B0

1 Y7 30

D9104 SD1104

SD1107

D9105 SD1105

Indicates fuse blow.

D9106 SD1106

  • Fuse blow check is executed also to the output module of remote I/ O station. (If normal status is restored, clear is not performed. Therefore, it is required to perform clear by user program.)

D9107 SD1107

D9108 SD1108

  • Set the value of the step transition monitoring timer and the annunciator number (F number) that will be turned ON when the monitoring timer times out.

D9109 SD1109

b15 b7 b0 b8 to to

D9110 SD1110

Step transfer monitoring timer setting

Timer setting valve and the F number at time out

D9111 SD1111

(02 to 255) F number setting Timer time limit setting (1 to 255 s:(1 s units))

D9112 SD1112

  • By turning ON any of SM1108 to SM1114, the monitoring timer starts. If the transition condition following a step which corresponds to the timer is not established within set time, set annunciator (F) is turned on.)

D9113 SD1113

D9114 SD1114

D9116 SD1116

  • When I/O modules, of which data are different from those entered at power-ON, have been detected, the I/O module numbers (in units of 16 points) are entered in bit pattern. (Preset I/O module numbers set in parmeters when parameter setting has been performed.)

D9117 SD1117

D9118 SD1118

b15 b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 XY

D9119 SD1119

Bit pattern, in units of 16 points, indicating the modules with verification errors.

SD1116

0

0 1 XY 190

– I/O module verification error

0

SD1117

D9120 SD1120

SD1123

0 1 XY 7B0

D9121 SD1121

Indicates an I/O module verify error.

D9122 SD1122

  • I/O module verify check is executed also to remote I/O station modules. (If normal status is restored, clear is not performed. Therefore, it is required to perform clear by user program.)

D9123 SD1123

  • When one of F0 to 255 (F0 to 2047 for AuA and AnU) is turned on by SET F instruction 1 is added to the contents of SD63. When RST F or LEDR instruction is executed, 1 is subtracted from the contents of SD63.
  • Quantity, which has been turned on by SET F instruction is stored into SD63 in BIN code. The value of SD63 is maximum 16.

Number of annuciator detections

D9124 SD1124 SD63

Number of annuciator detections

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

App-188

Show 8 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Qn(H) QnPH · QnU*1 · Qn(H) QnPH · Qn(H) QnPH · QnU*1
Page 1179 of the Mitsubishi Electronics QCPU user manual — App-189
Page 1179 · click to enlarge
Page 1179

TableApp.4.13 Special register

Special Register for Modification

Name Meaning Details Corresponding

CPU

  • When any of F0 to 2047 is turned on by SET F instruction, the annunciator numbers (F numbers) that are turned on in order are registered into SD1125 to SD1132.
  • The F number turned off by RST F instruction is erased from any of SD1125 to SD1132, and the F numbers stored after the erased F number are shifted to the preceding registerers. By executing LEDR instruction, the contents of SD1125 to SD1132 are shifted upward by one. When there are 8 annunciator detections, the 9th one is not stored into SD1125 to SD1132 even if detected.

D9125 SD1125 SD64

D9126 SD1126 SD65

D9127 SD1127 SD66

SET F50

SET F25

SET F99

RST F25

SET F15

SET F70

SET F65

SET F38

SET F110

SET F151

SET F210 LEDR

D9128 SD1128 SD67

SD1009

0 50 99

1 2 3 2 3 4 5 6 7 8 8 8

SD1124

A

D9129 SD1129 SD68

SD1125

0 50 99

SD1126

0 25 25 99 15

SD1127

0 99 15 70

D9130 SD1130 SD69

SD1128

0 70 65 0

SD1129

0 65 38 0

D9131 SD1131 SD70

SD1130

0 38 110

SD1131

0 110 110 110 151 0

D9132 SD1132 SD71

SD1132

0 151 151 210

  • *1: The relevant modules are as follows:
  • The Universal model QCPU whose serial number (first five digits) is "10102" or later.
  • Q00UJCPU, Q00UCPU, Q01UCPU

Appendix 4 SPECIAL REGISTER LIST

App-189

Show 7 more labels / short text on this page
Special Register · ACPU Special Register · after Conversion · Annunciator detection number · Qn(H) QnPH · Annunciator detection number · QnU*1
Page 1180 of the Mitsubishi Electronics QCPU user manual — App-190
Page 1180 · click to enlarge
Page 1180

(11) QCPU with built-in Ethernet port

TableApp.4.14 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Stores the operation result of the time setting function. 0: Not executed 1: Success FFFFH: Failure

Stores operationresult.

SD1270

Stores years (last two digits of the Christian Era) and monthes by two digits of BCD code.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: July, 1993

SD1271

9307 H

Stores dates and hours acquired with time setting function by two digits of BCD code.

Example: 31st, 10 a.m.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

SD1272

3110 H

Stores minutes and seconds acquired with time setting function by two digits of BCD code.

Stores time acquired with time setting function.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to Example: 35 min., 48 sec.

SD1273

3548 H

Stores years (first two digits of the Christian Era) and days acquierd with time setting function.

b15 b12 to b11 b8 to b7 b4 to b3 b0 to

Example1993, Friday

1905 H

SD1274

Day of the week

0 1 2 3 4 5 6

Higher digits of year (0 to 99)

Stores time taken from transmission to SNTP server to clook time setup at CPU. Range: 0 to FFFEH (Unit: ms) FFFFH when the above limit is exceeded.

Stores time required for clock time aquisition.

SD1275

SD1276

Specify this when a connection is to be invalidated forcibly on the user program. If invalidation is specified for a connection, it stops communication and does not respond. (When a remote password is used and frequent unlock processing errors have occurred on a connection, this is useful for temporarily inhibiting access to the connection.)

b15b14 b0 b1 SD1276

Specifies forced connection invalidation.

U SD1277

b15b14 b13 b12 b4 b3 b2 b1 b0

0 0 0 to

SD1277

MELSOFT

0. Valid (default) 1: Invalid This register is to be invalidated if a socket communication is used as an open system.

*1: This applies to the Built-in Ethernet port QCPU.

App-190

Show 29 more labels / short text on this page
Corres- ponding · Corresponding · Operation result · Year Month · Day Hour · Time setting function · Execution time · S (status · change) · Second Second Minute · New QnU*1 · Sunday · Monday · Tuesday · Friday Thursday Wednesday · Saturday · Required response time · to · Connection 1 · Connection 2 · Connection 15 · Forced connection invalidation · Connection 16 · MELSOFT communication · port (UDP/IP) · MELSOFT communication · port (TCP/IP) · FTP communication port · Directconnection to
Page 1181 of the Mitsubishi Electronics QCPU user manual — App-191
Page 1181 · click to enlarge
Page 1181

TableApp.4.15 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

Open completion status of connections (whose open system is socket communication) using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".

b15b14 b0 b1 SD1282

SD1282 Open completion signal

Stores open completion status

change) New QnU*2

0. Open processing is not completed. 1 : Open processing is completed.

Open request status of connections using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".

A

b15b14 b0 b1 SD1284

SD1284 Open request signal

Stores open request status

change) New QnU*2

0. No open requests 1 : In open request

Reception status of connections using socket communication functions is stored. All bits corresponding to connections using any communications other than the socket communication are fixed to "0".

b15b14 b0 b1 SD1286

SD1286 Reception status signal

change) New QnU*2

For TCP (Normal reception mode) 0 : Data have not been received. 1 : Data have been received. For TCP (Fixed length reception mode) 0 : Data have not been received ,or received data size has not been reached to valid buffer size. 1 : Received data size has been reached to valid buffer size. For UDP 0 : Data have not been received. 1 : Data have been received.

Appendix 4 SPECIAL REGISTER LIST

Connection status of built-in Ethernet port is stored.

Built-in Ethernet port connection status

Stores connection status of built-in Ethernet port

SD1288

change) New QnU*2

Connection status 0 : Not connected with or disconnected from hubs or devices. 1 : Connected to hubs or devices

It may take several seconds for the QCPU to determine whether to connect or disconnect a built-in Ethernet port.

*2: The built-in Ethernet port QCPU whose serial number (first five digits) is "11012" or later is targeted.

App-191

Show 29 more labels / short text on this page
Corres- ponding · Corresponding · to · S (Status · Connection 1 · Connection 2 · to · Connection 15 · Connection 16 · to · S (Status · Connection 1 · Connection 2 · to · Connection 15 · Connection 16 · to · Connection 1 · Connection 2 · to · Stores reception status · Connection 15 · S (Status · Connection 16 · b9 b0 SD1288 · b15 b11 b10 · to to · 1/0 · S (Status
Page 1182 of the Mitsubishi Electronics QCPU user manual — App-192
Page 1182 · click to enlarge
Page 1182

(12) Fuse blown module

TableApp.4.16 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD1300

  • The numbers of output modules whose fuses have blown are input as a bit pattern (in units of 16 points). (If the module numbers are set by parameter, the parameter-set numbers are stored.)
  • Also detects blown fuse condition at remote station output modules

SD1301 D9101

SD1302 D9102

SD1303 D9103

Bit pattern in units of 16 points, indicating the modules whose fuses have blown 0 : No blown fuse 1 : Blown fuse present

SD1304 D9104

b15 b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

SD1305 D9105

0 0 0 1 (YC0) 0 1 (Y80) SD1300

SD1306 D9106

0 0 1 (Y1F0) 0 1 (Y1A0) SD1301 0 0

SD1307 D9107

B0 SD1331 0 0 0 1 Y1F

0 0 1 Y1F

Indicates fuse blow.

  • Not cleared even if the blown fuse is replaced with a new one. This flag is cleared by error resetting operation.

(13) I/O module verification

TableApp.4.17 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD1400

  • When the I/O modules whose I/O module information differs from that registered at power-ON are detected, the numbers of those I/O modules are entered in bit pattern. (If the I/O numbers are set by parameter, the parameter-set numbers are stored.)
  • Also detects I/O module information.

SD1401 D9117

SD1402 D9118

Bit pattern, in units of 16 points, indicating the modules with verification errors. 0 : No I/O verification errors 1 : I/O verification error present

SD1403 D9119

SD1404 D9120

SD1405 D9121

b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0

1 X Y 0 1 X Y 190

SD1406 D9122

I/O module verify error

0 SD1400

SD1407 D9123

0 SD1401 0 0

0 SD1431 0

1 X Y 1FE0

Indicates an I/O module verify error.

  • Not cleared even if the blown fuse is replaced with a new one. This flag is cleared by error resetting operation.

(14) Process control instructions

TableApp.4.18 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Set the basic period (1 second units) use for the process control instruction using floating point data.

SD1500 SD1501 Basic period Basic period tome

SD1501 SD1500 Floating points data = SD1501 SD1500 Floating point data =

Process control instruction detail error code

Process control instruction detail error code

  • Shows the detailed error contents for the error that occurred in the process control instruction. S (Error) New

Process control instruction generated error location

Process control instruction generated error location

SD1503

  • Shows the error process block that occurred in the process control instruction. S (Error) New

SD1506 SD1507 Dummy device Dummy device • Used to specify dummy devices by a process control instruction. U New QnPH QnPRH

b0 Bumpless function availability setting for the S.PIDP instrunction 0: Enabled 1: Disabled (Default: 0)

  • Selects the availability (enabled/disabled) of the function for process control instructions.

Function availability selection for process control instruction

b0 b1 b2 b15 b14 to

0 0 SD1508 0 1/0

U New QnPH QnPRH

SD1508

Bumpless function availability for the S.PIDP instruction

App-192

Show 23 more labels / short text on this page
Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · Fuse blown module · S (Error) · QnU · SD1308 New · SD1309 to SD1330 · New · SD1331 New · Corres- ponding · Corresponding · Qn(H) QnPH QnPRH · S (Error) · QnU · SD1408 New · SD1409 to SD1430 · New · SD1431 New · Corres- ponding · Corresponding · U New · QnPH SD1502
Page 1183 of the Mitsubishi Electronics QCPU user manual — App-193
Page 1183 · click to enlarge
Page 1183

(15) For redundant systems (Host system CPU information *1)

SD1510 to SD1599 are only valid for redundant systems. They are all set to 0 for stand-alone systems.

TableApp.4.19 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

The LED status for BACKUP, CONTROL, SYSTEM A, SYSTEM B is stored in the following format:

b0 to b2 b3 b4 b5 b6 b7 b8 b10b9 b15

  • 4 LED states
  • BACKUP
  • CONTROL
  • SYSTEM A
  • SYSTEM B
BACKUP 0Off 1: On (red) 2:

Redundant system LED status

SD1585

SYSTEM B 0Off 1: On 2: Flicker
5. On (orange-yellow) 6: Flicker (orange-yellow)
3. On(green) 4: Flicker(green)

A

SYSTEM A 0Off 1: On 2: Flicker
CONTROL 0Off 1: On

Stores the reason(s) for system switching on the host system. The following values are stored corresponding to the methods for system switching: Initialized to 0 when the power supply is switched off and then on or the RESET switch is set to the RESET position and then to the neutral position.

Reason(s) for system switch- ing

Reason(s) for system switching that occurred in host station

S (when condition occurs)

SD1588

0. Initial value (control system has not been switched) 1: Power off, Reset, H/W failure, WDT error, 2: CPU stop error (except WDT) 3: System switching request from network module 16: System switching dedicated instruction 17: System switching request from GX Developer
  • Stores the reason(s) for system switching failure. 0: System switching normal (default) 1: Tracking cable is not connected , tracking cable error, FPGA circuit failure. 2: H/W failure, power-OFF, Reset, WDT error on the standby system 3: H/W failure, power-OFF, Reset, WDT error on the Control system 4: Tracking data transfer initialization 5: Communication timeout 6: Serious error(except WDT error) on the Standby system 7: There is difference between both systems (detected as Backup mode only) 8: During memory copy from control system to standby system 9: During online program change 10: During detection of intelligent function module failure on the standby system 11: System switching being executed
  • Resets to "0" when host system is powered on.
  • Resets to "0" once system has been switched successfully.

Appendix 4 SPECIAL REGISTER LIST

Reason(s) for system switching failure conditions

Reason(s) for system switching failure No.

SD1589

  • Stores head address of network module which a system switch request was initiated.
  • Turns off automatically by system, after network error is reset by user.

b1 b0 b15 b11 to to 0 0/1 0/1 0

0:OFF 1:ON

Network module head address, which requested system switching

SD1590

Network module head address, which requested system switching

Module 0:

CPU module is invalid as it is 2-slot model. Module on the right side of the CPU module

SD1590

Module 1:

Module11:

Module at the rightmost end of the 12-slot base (Q312B)

  • Please refer to SD1690 which stores the corresponding head address of network module on other system.

Memory copy target I/O number

SD1595

Memory copy target I/O number

  • Stores the memory copy target I/O No.(Standby system CPU module: 3D1H) of before SM1595 is turned from OFF to ON. U New
  • Stores the execution result of Memory copy function. 0 : Memory copy successfully completed 4241 H : Standby system power supply off 4242 H : Tracking cable is disconnected or is damaged 4247 H : Memory copy function is being executed 4248 H : Unsupported memory copy destination I/O Number

SD1596 Memory copy status

*1: The information of the host CPU module is stored.

App-193

Show 17 more labels / short text on this page
Corres- ponding · Corresponding · to · S (status · change) New · Flicker(red) · QnPRH · S(when system · is switched) QnPRH · Each bit · S (Error/Status · change) New · to · QnPRH · Memory copy status · S (Status · change) New
Page 1184 of the Mitsubishi Electronics QCPU user manual — App-194
Page 1184 · click to enlarge
Page 1184

(16) For redundant systems (Other system CPU information *1)

SD1600 to SD1659 is only valid during the back up mode for redundant systems, and refresh cannot be done when in the separate mode. SD1651 to SD1699 are valid in either the backup mode or separate mode. When a stand-alone system SD1600 to SD1699 are all 0.

TableApp.4.20 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD *2

  • If an error is detected by the error check for redundant system, the corresponding bit shown below turns ON. That bit turns OFF when the error is cleared after that.

b1 b0 b15 b2 Fixed to 0

0: OFF 1: ON

SD1600

Tracking cable is not connected or damaged

Power-OFF, reset, watchdog timer error or hardware failure occurred in other system

SD1600 System error information

Other system stop error (except watchdog timer error)

Bit turns on when failing to connect with other system. The following causes are shown below:

Tracking H/W failure Host system WDT error Cannot recognize other system therefore causing error

  • If any of b0, b1, b2 and b15 is ON, the other bits are all OFF.
  • In the debug mode, b0, b1, b2 and b15 are all OFF.

Stores the reasons for system switching.

  • Stores the reasons for system switching into SD1601 of both systems when system switching occarred.
  • Initialized to 0 at power OFF to ON/reset to unreset.
  • The following shows values stored into this register. 0: Initial value (System switching has not occurred) 1: Power-OFF, Reset, H/W failure, WDT error,(*) 2: CPU stop error (except WDT) 3: System switching request by network module 16: System switching dedicated instruction 17: System switching request from GX Developer *: When the system is switched by the power OFF/reset of the control system, "1" is not stored into SD1601 of the new standby system.
  • Stores the parameters for system switching dedicated instruction <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW. (The parameters (SD1602) for <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW are stored in both systems A&B)
  • SD1602 is only valid when "16" is stored in SD1601.
  • This SD1602 is updated once system switch instruction <a href="http://SP.CO" rel="nofollow noopener" target="_blank">SP.CO</a>NTSW is activated.

System switching dedicated instruction parameter

System switching dedicated instruction parameter

SD1602

SD1610 Other system diagnostic error

  • The error value sorted in BIN code.
  • Stores SD0 of the other system CPU module S(Every END) SD0

SD1611 Other system diagnostic error occurrence time

  • Stores the date and time when diagnostics error occurred corresponding to error code stored in SD1610.
  • Data format is the same as SD1 to SD3.
  • Also, stores the value to SD1 to SD3.

Diagnostic error occurrence time

S(Every END) SD1 to

SD3 SD1612

SD1613

Other system error information category

  • Stores the category code corresponding to the error comment information/individual information code.
  • Data format is the same as SD4.
  • Also, stores the value to SD4.

Error information category code

SD1614

Other system error common information

  • Stores the common information corresponding to the error code stored in this system CPU.
  • Data composition is the same as SD5 to SD15.
  • Also, stores the value to SD5 to SD15.

S(Every END) SD5 to

SD15

  • Stores the individual information corresponding to the error code stored in this system CPU.
  • Data composition is the same as SD16 to SD26.
  • Also, stores the value to SD16 to SD26.

Other system error individual information

S(Every END) SD16 to

SD26

*2: Shows the special register (SD ) for the host system CPU module.

App-194

Show 18 more labels / short text on this page
Corres- ponding · Corresponding · Each bit · System error information · S(Every END) · System switching results · QnPRH SD1601 · System switching results · S(when system · is switched) · S(when system · is switched) · Diagnostic error code · S(Every END) SD4 · SD1615 to SD1625 · Error common information · SD1626 to SD1636 · Error individual information
Page 1185 of the Mitsubishi Electronics QCPU user manual — App-195
Page 1185 · click to enlarge
Page 1185

TableApp.4.20 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD *2

  • Stores the error code of the error to be cleared by clearing a standby system error.
  • Stores the error code of the error to be cleared into this register and turn SM1649 from OFF to ON to clear the standby system error.
  • The value in the lowest digit (1 place) of the error code is ignored when stored into this register. (By storing 4100 in this register and resetting the error, errors 4100 to 4109 can be cleared.)

Standby system error cancel command

Error code of error to be cleared

SD1649

Stores the operation information of the other system CPU module in the following format. "00FFH" I stored when a communication error occurs, or when in debug mode.

b15 to to b8 b4 b7 to b3 b0 0 SD1650

A

0:No error 1:Continue error 2:Stop error F:Communication with

Other system operating information

Other system operating information

SD1650

0:RUN 2:STOP 3:PAUSE F:Communication with

: Communication

with other system disabled, debug mode

  • When the power supply is switched off, or when the other system is reset.
  • H/W error occurs on either of system A or B.
  • WDT error occurs.
  • Tracking cable is not connected.
  • Tracking cable is disconnected or damaged.
  • Stores head address of network module which a system switch request was initiated, using the following format.
  • Turns off automatically by system, after network error is reset by user.

Appendix 4 SPECIAL REGISTER LIST

b1 b0 b15 b11 to to 0 0/1 0/1 0

0:OFF 1:ON

SD1690

Network module head address, which requested system switching on host (control) system

Network module head address, which requested system switching on host (control) system

Module 0: CPU module is invalid as it is 2- slot model Module 1: Module on the right side of the CPU module Module11: Module at the rightmost end of the 12-slot base (Q312B)

SD1690

  • Please refer to SD1590 which stores the corresponding head address of network module on host system.

*2 : Shows the special register (SD ) for the host system CPU.

App-195

Show 12 more labels / short text on this page
Corres- ponding · Corresponding · S(Every END) · other system disabled · ) ( · S(Every END) · other system disabled · – QnPRH · ) ( · Each bit · S(Every END) · to
Page 1186 of the Mitsubishi Electronics QCPU user manual — App-196
Page 1186 · click to enlarge
Page 1186

(17) For redundant systems (Trucking)

SD1700 to SD1779 is valid only for redundant systems. These are all 0 for stand-alone systems.

TableApp.4.21 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

SD1700 Tracking error detection count

Tracking error detection count

  • When the tracking error is detected, count is added by one.
  • The counter repeats an increment and decrement of the value; 0 32767 - 32768 0
  • Set in seconds the waiting time of the standby system CPU module from when online program change to the control system CPU module is completed by the online program change for redundancy function until the online program change to the standby system CPU module starts.
  • If no online program change request is issued to the standby system CPU module within the preset time after completion of the online program change to the control system CPU module, both system CPU modules judge it as the failure of the online program change for redundancy. In this case, both system CPU modules resume the consistency check between system A & B suspended during the online program change. Also, the control system CPU module is set to accept a new request of online program change for redundancy.
  • When both systems are powered on, 90 seconds are set to SD1710 as the default value.
  • Set the value within the range 90 to 3600 seconds. When the setting is 0 to 89 seconds, it is regarded as 90 seconds for operation. If the setting is outside the allowed range, it is regarded other than 0 to 3600 seconds for operation.
  • The waiting time for a start of online program change to the standby system CPU module is checked according to the SD1710 setting during online change of multiple blocks and online change of batch of files for redundancy.

Waiting time for online program change (standby system)

Waiting time for online program change (standby system)

SD1710

U/ S (Initial) QnPRH

App-196

Show 5 more labels / short text on this page
Corres- ponding · Corresponding · S(Error) · QnPRH · New
Page 1187 of the Mitsubishi Electronics QCPU user manual — App-197
Page 1187 · click to enlarge
Page 1187

(18) Redundant power supply module information

SD1780 to SD1789 are valid only for a redundant power supply system. The bits are all 0 for a singular power supply system.

TableApp.4.22 Special register

Number Name Meaning Explanation Set by (When Set)

ACPU

CPU

  • Stores the status of the redundant power supply module with input power OFF in the following bit pattern.
  • Stores 0 when the main base unit is not the redundant power main base unit (Q38RB).

Input power OFF detection status of

Input power OFF detection status of

power supply 2 Each bit 0: Input power ON status/ No redundant power supply module 1: Input power OFF status SD1780

power supply 1 1 1

Power supply off detection status

Power supply off detection status

b0 b7 b8 b15 to to

SD1780

Main base unit Extension base unit 1st stage

A

:

Extension base unit 7th stage

Main base unit Extension base unit 1st stage

:

Extension base unit 7th stage

  • When configuring multiple CPU, the status is stored to 1st CPU module.
  • Stores the failure detection status of the redundant power supply module in the following bit pattern. (The corresponding bit is cleared to 0 when the input power to the faulty redundant power supply module is switched OFF after detection of the redundant power supply module failure.)
  • Stores 0 when the main base unit is not the redundant power main base unit (Q38RB).

supply 2 Each bit 0: Redundant power supply module failure not detected/No redundant power supply module 1: Redundant power supply module failure detected (Detectable for redundant power supply module only)

Power supply failure detection status

Power supply failure detection status

b0 b7 b8 b15 to to

SD1781

SD1781

Main base unit Extension base unit 1st stage

:

Appendix 4 SPECIAL REGISTER LIST

Extension base unit 7th stage

Main base unit Extension base unit 1st stage

:

Extension base unit 7th stage

  • When configuring multiple CPU, the status is stored to 1st CPU module.
  • Counts the number of times of momentary power failure of the power supply 1/2.
  • Monitors the status of the power supply 1/ 2 mounted on the redundant power main base unit (Q38RB) and counts the number of times of momentary power failure. Status of power supply 1/power supply 2 mounted on the redundant extension base unit is not monitored.
  • When the CPU module starts, the counter of the power supply 1/ 2 is cleared to 0.
  • If the input power to one of the redundant power supply modules is turned OFF, the corresponding counter is cleared to 0. The counter is incremented by 1 every time the momentary power failure of the power supply 1/ 2 is detected.(The counter repeats increment and decrement of the value; 0 32767 – 32768 0 (The system monitor of GX Developer shows the counter within the range between 0 and 65535.

Momentary power failure detection counter for power supply

Momentary power failure detection count for power supply 1

SD1782

Momentary power failure detection counter for power supply

Momentary power failure detection count for power supply 2

SD1783

  • Stores 0 when the main base unit is not the redundant power main base unit (Q38RB).
  • When configuring multiple CPU, the status is stored to 1st CPU module.
  • The counter repeats increment and decrement of the value, 0 32767 – 32768 0 (The system monitor of GX Developer shows the counter within the range between 0 and 65535.

*1: The "power supply 1" in dicates the redundant power supply module mounted on the POWER 1 slot of the redundant base unit (Q38RB/68RB/Q65WRB). The "power supply 2" indicates the redundant power supply module mounted on the POWER 2 slot of the redundant base unit (Q38RB/68RB/Q65WRB). *2: The module whose first 5 digits of serial No. is "07032" or later. However, for the multiple CPU system configuration, this applies to all CPU modules whose first 5 digits of serial No. are "07032" or later. *3: The module whose first 5 digits of serial No. is "10042" or later.

App-197

Show 21 more labels / short text on this page
Corres- ponding · Corresponding · b9 b1 · S(Every END) New · to to · Failure detection · Failure detection · status of power · status of power · supply 1 · b9 b1 · to to · S(Every END) New · Qn(H)*2 · QnPH*2 · QnPRH · QnU*3 · S(Every END) New · 1*1 · S(Every END) New · 2*1
Page 1188 of the Mitsubishi Electronics QCPU user manual — App-198
Page 1188 · click to enlarge
Page 1188

Appendix 5 APPLICATION PROGRAM EXAMPLES

Appendix 5.1 Concept of Programs which Perform

Operations of X n ,

X n

(1) Concept of programs which perform operations of Xn

Xn can be operated using e(nlogeX).

For example, the operation of 101.2 is e(1.2 loge10), which is represented in the form of a sequence program as shown below.

Mitsubishi Electronics QCPU — Appendix 5 APPLICATION PROGRAM EXAMPLES diagram (page 1188)
Fig. 1451 · Appendix 5 APPLICATION PROGRAM EXAMPLES

Converts 10 into a real number format data and stores the result in D0 and D1. Executes Loge10 operation and stores the result in D2 and D3.

Converts 12 into a real number format data and stores the result into D4 and D5.

Divides D4 and D5 (12) by D0 and D1 (10), and stores the result (1, 2) in D6 and D7 (1, 2).

Multiplies D2 and D3 (Loge10) by D6 and D7 (1, 2) and stores the result in D8 and D9. Executes Loge(D8, D9) operation and stores the result in D10 and D11.

(2) Concept of program which performs operation of

X n

X n ( log eX ) e

can be operated using .

For example, the operation of is , which is represented in the form of a

10 3 ( log e 10) e

sequence program as shown below.

Mitsubishi Electronics QCPU — 10 3 ( log e 10) e diagram (page 1188)
Fig. 1452 · 10 3 ( log e 10) e

Converts 10 into a real number format data and stores the result in D20 and D21.

Executes Loge10 operation and stores the result in D22 and D23.

Converts 3 into a real number type data and stores the result in D24 and D25.

Divides D22 and D23 (Loge10) by D24 and D25 (3) and stores the result in D26 and D27.

Executes Loge(D26, D27) operation and stores the result in D28 and D29.

App-198

1 n

Page 1190 of the Mitsubishi Electronics QCPU user manual — Index - 2
Page 1190 · click to enlarge
Page 1190

BIN 16-bit addition operations (+) 6-22 BIN 32-bit addition operations (D+) 6-26 Block addition (BK+) 6-59,6-62 Addition and subtraction of floating decimal point data (Double precision) (ED+, ED-) 6-50,6-52 Addition and subtraction of floating decimal point data (Single precision) (E+, E-) 6-46,6-48 ADRSET (Indirect address read) 7-395 ANB (Ladder block series connections) 5-10 AND (=, , >, , D, E, ED

- (BIN 16-bit subtraction operations) 6-22 $+ (Linking character strings) 6-65,6-67 $=, $, $>, $

16-bit data block transfers (FMOV) 6-120,6-122 16-bit data checks (SUM) 7-69 16-bit data exchange (XCH) 6-124 16-bit data exclusive NOR operation (WXNR) 7-27 16-bit data searches (SER) 7-66 16-bit dead band controls (BAND) 7-324 16-bit exclusive OR operations (WXOR) 7-19 16-bit negation transfers (CML) 6-114 16-bit transfers (MOV) 6-106 1-bit shift to left of n-bit data (BSFL) 7-49,7-51 1-bit shift to right of n-bit data (BSFR) 7-49,7-51 1-word shift to left of n-word data (DSFL) 7-54,7-56 1-word shift to right of n-word data (DSFR) 7-54,7-56 32-bit data checks (DSUM) 7-69 32-bit data exchanges (DXCH) 6-124 32-bit data exclusive NOR operation (DXNR) 7-27 32-bit data searches (DSER) 7-66 32-bit dead band controls (DBAND) 7-324 32-bit exclusive OR operations (DXOR) 7-19 32-bit negation transfers (DCML) 6-114 32-bit transfers (DMOV) 6-106 4-bit dissociation of 16-bit data (DIS) 7-77 4-bit linking of 16-bit data (UNI) 7-79 7-segment decode (SEG) 7-75

6-8 And inverse (ANI) 5-3 AND($=, $, $>, $

7-228 ASIN (SIN-1 operation on floating-point data (Single precision)) 7-262 ASIND (SIN-1 operation on floating-point data (Double precision)) 7-265 ATAN (TAN-1 operation on floating-point data (Single precision)) 7-271 ATAND (TAN-1 operation on floating-point data

7-273

[B]

B- (BCD 4-digit subtraction) 6-34 B contact operation start (LDI) 5-2 B* (BCD 4-digit multiplication) 6-42 B+ (BCD 4-digit addition) 6-34 B/ (BCD 4-digit division) 6-42 BACOS (BCD type COS-1 operation) 7-317 BAND (16-bit dead band controls) 7-324 Basic instructions 2-10 BASIN (BCD type SIN-1 operation) 7-315 BATAN (BCD type TAN-1 operation) 7-313 Batch recovery of index register (ZPOP) 7-400 Batch reset of bit devices (BKRST) 7-64 Batch save of index register (ZPUSH) 7-400 BCD (BIN data to 4-digit) 6-73 BCD 4-digit addition and subtraction operations (B+, B-) 6-34

[A]

A contact operation start (LD) 5-2 A contact parallel connection (OR) 5-2 A contact series connection (AND) 5-2 ACOS (COS-1 operation on floating-point data (Single precision)) 7-267 ACOSD (COS-1 operation on floating-point data (Double precision)) 7-269 Addition

Addition of floating decimal point (Double precision) (ED+) 6-50,6-52 Addition of floating decimal point (Single precision) (E+) 6-46,6-48 BCD 4-digit addition (B+) 6-34 BCD 8-digit addition (DB+) 6-38

Index - 2

[Symbols] · [Numerics]

Page 1191 of the Mitsubishi Electronics QCPU user manual — Index - 3
Page 1191 · click to enlarge
Page 1191

BCD 4-digit multiplication and division operations (B*, B/) 6-42 BCD 4-digit square roots (BSQR) 7-306 BCD 8-digit addition and subtraction operations (DB+, DB-) 6-38 BCD 8-digit multiplication and division operations (DB*, DB/) 6-44 BCD 8-digit square roots (BDSQR) 7-306 BCD conversion

BK+ (Block addition) 6-59,6-62 BKAND (Block logical products) 7-9 BKBCD (Conversion from block BIN 16-bit data to BCD 4-digit data) 6-98 BKBIN (Conversion from block BCD 4-digit data to block BIN 16-bit data) 6-100 BKCMP (BIN block data comparisons) 6-15,6-18 BKOR (Block logical sum operations) 7-17 BKRST (Batch reset of bit devices) 7-64 BKXNR (Block exclusive NOR operations) 7-33 BKXOR (Block exclusive OR operations) 7-25 Block 16-bit exchanges (BXCH) 6-126 Block 16-bit transfers (BMOV) 6-117 Block addition (BK+) 6-59,6-62 Block exclusive NOR operations (BKXNR) 7-33 Block exclusive OR operations (BKXOR) 7-25 Block logical products (BKAND) 7-9 Block logical sum operations (BKOR) 7-17 Block subtraction (BK-) 6-59,6-62 BMOV (Block 16-bit data transfers) 6-117 BREAK (Forced end of FOR to NEXT instruction loop)

Conversion from BIN data to 4-digit BCD (BCD)

6-73 Conversion from BIN data to 8-digit BCD (DBCD)

6-73 BCD type COS operations (BCOS) 7-311 BCD type COS-1 operations (BACOS) 7-317 BCD type SIN operation (BSIN) 7-309 BCD type SIN-1 operation (BASIN) 7-315 BCD type TAN operation (BTAN) 7-313 BCD type TAN-1 operations (BATAN) 7-319 BCDDA (Conversion from BCD 4-digit to decimal ASCII) 7-189 BCOS (BCD type COS operations) 7-311 BDSQR (BCD 8-digit square roots) 7-306 BIN (BCD 4-digit data to BIN data) 6-75 BIN 16-bit addition and subtraction operations (+, -) 6-22 BIN 16-bit data comparisons (=, , >, , D

7-108 BRST (Bit reset for word devices) 7-59 BSET (Bit set for word devices) 7-59 BSFL (1-bit shift to left of n-bit data) 7-49,7-51 BSFR (1-bit shift to right of n-bit data) 7-49,7-51 BSIN (BCD type SIN operation) 7-309 BSQR (BCD 4-digit square roots) 7-306 BTAN (BCD type TAN operation) 7-313 BTOW (Data linking in byte units) 7-85 Buffer memory access instructions 2-41 BXCH (Block 16-bit data exchanges) 6-126

[C]

Calculation of averages for 16-bit or 32-bit data (MEAN(P),DMEAN(P)) 7-103 Calculation of totals for 16-bit data (WSUM) 7-99 Calculation of totals for 32-bit data (DWSUM)

7-101,7-103 CALL (Subroutine program calls) 7-110 Cautions on programming 3-27 Changing check format of CHK instruction (CHKCIR, CHKEND) 7-179 Character string data 3-11 Character string data comparisons 6-11 Character string length detection (LEN) 7-204 Character string processing instructions 2-43 Character string search (INSTR) ...7-239,7-241,7-243 Character string transfers ($MOV) 6-112 CHKCIR (Changing check format of CHK instruction)

7-179 CHKEND (Changing check format of CHK instruction)

7-179 CHKST, CHK (Special format failure checks) 7-175 CJ (Pointer branch instruction) 6-129 Clock comparison (TM=,TM,TM>,TM=) 7-361 Clock data addition operation (DATE+) 7-348 Clock data subtraction operation (DATE-) 7-350 Clock instructions 2-52

Index - 3

Page 1192 of the Mitsubishi Electronics QCPU user manual — Index - 4
Page 1192 · click to enlarge
Page 1192

CML (16-bit negation transfers) 6-114 COM (Refresh instruction) 7-134,7-137,7-141 Common logarithm operation on floating-point data (Double precision) (LOG10D(P)) 7-302 Common logarithm operation on floating-point data (Single precision) (LOG10(P)) 7-300 Comparison operation instruction table 2-10 Comparison operation instructions 6-2 Comparisons (BIN 16-bit data) 6-2 Comparisons (BIN 32-bit data) 6-4 Comparisons (Character string data) 6-11 Complement of 2 of BIN 16-bit data (NEG) 6-94 Complement of 2 of BIN 32-bit data (DNEG) 6-94 COMRD (Reading device comment data) 7-201 Conditions for execution of instructions 3-33 Connection instructions

Conversion from ASCII to hexadecimal BIN (HEX)

7-230 Conversion from BCD 4-digit to decimal ASCII (BCDDA) 7-189 Conversion from BCD 8-digit to decimal ASCII (DBCDDA) 7-189 Conversion from BIN 16-bit to character string (STR)

7-206 Conversion from BIN 16-bit to decimal ASCII (BINDA)

7-183 Conversion from BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 Conversion from BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 Conversion from BIN 16-bit to hexadecimal ASCII (BINHA) 7-186 Conversion from BIN 32-bit to character string (DSTR)

Association instruction table 2-7 Ladder block parallel connection (ORB) 5-10 Ladder block series connection (ANB) 5-10 Linking character strings ($+) 6-65 Contact instruction 2-6 Contact instructions

7-206 Conversion from BIN 32-bit to decimal ASCII (DBINDA) 7-183 Conversion from BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 Conversion from BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 Conversion from BIN 32-bit to hexadecimal ASCII (DBINHA) 7-186 Conversion from block BCD 4-digit data to block BIN 16-bit data (BKBIN) 6-100 Conversion from block BIN 16-bit data to BCD 4-digit data (BKBCD) 6-98 Conversion from character string to BIN 16-bit (VAL)

Operation start (LD, LDI) 5-2 Parallel connection (OR, ORI) 5-2 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF,ORP) 5-5,5-7 Pulse serial connection (ANF, ANP) 5-5,5-7 Series connection (AND, ANI) 5-2 Conversion

BCD 4-digit to BIN (BIN) 6-75 BCD 8-digit to BIN (DBIN) 6-75 BIN 16-bit to BIN 32-bit (DBL) 6-88 BIN 16-bit to floating decimal point (Double precision) (FLTD) 6-81 BIN 16-bit to floating decimal point (Single precision) (FLT) 6-78 BIN 16-bit to Gray code (GRY) 6-90 BIN 32-bit to BIN 16-bit (WORD) 6-89 BIN 32-bit to floating decimal point (Double precision) (DFLTD) 6-81 BIN 32-bit to floating decimal point (Single precision) (DFLT) 6-78 BIN 32-bit to Gray code (DGRY) 6-90 BIN to BCD 4-digit (BCD) 6-73 BIN to BCD 8-digit (DBCD) 6-73 Double precision to Single precision (EDCON)

7-212 Conversion from character string to BIN 32-bit (DVAL)

7-212 Conversion from character string to floating decimal point (EVAL) 7-224 Conversion from decimal ASCII to BCD 4-digit (DABCD) 7-198 Conversion from decimal ASCII to BCD 8-digit (DDABCD) 7-198 Conversion from decimal ASCII to BIN 16-bit (DABIN)

7-192 Conversion from decimal ASCII to BIN 32-bit (DDABIN) 7-192 Conversion from floating decimal point to character string (ESTR) 7-217 Conversion from floating-point angle to radian (Double precision) (RADD) 7-277 Conversion from floating-point angle to radian (Single precision) (RAD) 7-275 Conversion from floating-point radian to angle (Double precision) (DEGD) 7-281,7-283,7-285 Conversion from floating-point radian to angle (Single precision) (DEG) 7-279 Conversion from hexadecimal ASCII to BIN 16-bit (HABIN) 7-195 Conversion from hexadecimal ASCII to BIN 32-bit (DHABIN) 7-195

6-104 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Floating decimal point data to BIN32-bit (Double precision) (DINTD) 6-86 Gray code to BIN 16-bit (GBIN) 6-92 Gray code to BIN 32-bit (DGBIN) 6-92 Single precision to Double precision (ECON)

6-102

Index - 4

Page 1193 of the Mitsubishi Electronics QCPU user manual — Index - 5
Page 1193 · click to enlarge
Page 1193

Conversion from hexadecimal BIN to ASCII (ASC) 7-228 Conversion of Gray code to BIN 16-bit (GBIN) 6-92 Conversion of Gray code to BIN 32-bit (DGBIN) 6-92 Conversion to BIN

Data table operation instructions 2-40 DATE- (Clock data subtraction operation) 7-350 Date comparison (DT=,DT,DT>,DT=) 7-356 DATE+ (Clock data addition operation) 7-348 DATERD (Reading clock data) 7-344 DATEWR (Writing clock data) 7-346 DB- (BCD 8-digit subtraction) 6-38 DB* (BCD 8-digit multiplication) 6-44 DB+ (BCD 8-digit addition) 6-38 DB/ (BCD 8-digit division) 6-44 DBAND (32-bit dead band controls) 7-324 DBCD (Conversion from BIN to BCD 8-digit) 6-73 DBCDDA (Conversion from BCD 8-digit to decimal ASCII) 7-189 DBIN (BCD 8-digit to BIN 16-bit conversion) 6-75 DBINDA (Conversion from BIN 32-bit to decimal ASCII) 7-183 DBINHA (Conversion from BIN 32-bit to hexadecimal ASCII) 7-186 DBK- 6-63 DBK+ 6-62 DBL (BIN 16-bit to BIN 32-bit) 6-88 DCML (32-bit negation transfers) 6-114 DDABCD (Conversion from decimal ASCII to BCD 8-digit) 7-198 DDABIN (Conversion from decimal ASCII to BIN 32-bit) 7-192 DDEC (Decrementing 32-bit BIN) 6-71 Debugging and failure diagnosis instructions 2-42 DEC (Decrementing 16-bit BIN) 6-69 DECO (Decoding from 8 to 256 bits) 7-71 Decoding from 8 to 256 bits (DECO) 7-71 Decrement

BCD 4-digit to BIN 16-bit (BIN) 6-75 BCD 8-digit to BIN 32-bit (DBIN) 6-75 Floating decimal point data to BIN 16-bit (Double precision) (INTD) 6-86 Floating decimal point data to BIN 16-bit (Single precision) (INT) 6-83 Floating decimal point data to BIN 32-bit (Double precision) (DINTD) 6-86 Floating decimal point data to BIN 32-bit (Single precision) (DINT) 6-83 Conversion to floating decimal point (Double precision) (FLTD, DFLTD) 6-81 Conversion to floating decimal point (Single precision) (FLT, DFLT) 6-78 COS (COS operation on floating-point data (Single precision)) 7-254 COS operation on floating-point data (Double precision) (COSD) 7-256 COS operation on floating-point data (Single precision) (COS) 7-254 COS-1 operation on floating-point data (Double precision) (ACOSD) 7-269 COS-1 operation on floating-point data (Single precision) (ACOS) 7-267 COSD (COS operation on floating-point data (Double precision)) 7-256 Count 1-phase input or down (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Counters (OUT C) 5-26

BIN 16-bit (DEC) 6-69 BIN 32-bit (DDEC) 6-71 Decrementing 16-bit BIN (DEC) 6-69 Decrementing 32-bit BIN (DDEC) 6-71 DEG (Conversion from floating-point radian to angle (Single precision)) 7-279 DEGD (Conversion from floating-point radian to angle (Double precision)) 7-281,7-283,7-285 Deleting data from data tables (FDEL) 7-157 Deletion of character string (STRDEL(P)) 7-243 DELTA (Pulse conversion of direct output) 5-42 Designating data 3-3 Designation of modification values in index modification (IXDEV, IXSET) 7-148 Device range check 3-27 DFLT (Conversion from BIN 32-bit to floating decimal point (Single precision)) 6-78 DFLTD (Conversion from BIN 32-bit to floating decimal point (Double precision)) 6-81 DFRO (Reading 2-word data from intelligent function modules) 7-160 DGBIN (Conversion of Gray code to BIN 16-bit)

D- (BIN 32-bit subtraction operations 6-26 D(P).DDRD(Reading Devices to Another CPU) 10-17 D(P).DDWR(Writing Devices to Another CPU) 10-13 D* (BIN 32-bit multiplication operations) 6-32 D+ (BIN 32-bit addition operations) 6-26 D/ (BIN 32-bit division operations) 6-32 D=, D, D>, D

6-92 DGRY (BIN 32-bit to Gray code) 6-90 DHABIN (Conversion from hexadecimal ASCII to BIN 32-bit) 7-195

Index - 5

Page 1194 of the Mitsubishi Electronics QCPU user manual — Index - 6
Page 1194 · click to enlarge
Page 1194

DI (Interrupt disable) 6-133 Digit designation 3-4 Digit designation of bit devices 3-4 DINC (Incrementing 32-bit BIN) 6-71 DINT (Floating decimal point data to BIN 32-bit (Single precision)) 6-83 DINTD (Floating decimal point data to BIN 32-bit (Double precision)) 6-86 Direct 1-byte read from file register (ZRRDB) 7-391 DIS (4-bit grouping of 16-bit data) 7-77 Display instructions 2-41 Dissociation of random data (NDIS) 7-81 Division

[E]

E- (Subtraction of floating decimal point data (Single precision)) 6-46,6-48 E* (Multiplication of floating decimal point data (Single precision)) 6-54 E+ (Addition of floating decimal point data (Single precision)) 6-46,6-48 E/ (Dividion of floating decimal point data (Single precision)) 6-54 E=, E, E>, E

7-120 ECON (Single precision to Double precision conversion) 6-102 ED- (Subtraction of floating decimal point data (Double precision)) 6-50,6-52 ED* (Multiplication of floating decimal point data (Double precision)) 6-56 ED+ (Addition of floating decimal point data (Double precision)) 6-50,6-52 ED/ (Dividion of floating decimal point data (Double precision)) 6-56 ED=,ED,ED>,ED

BCD 4-digit (B/) 6-42 BCD 8-digit division (DB/) 6-44 BIN 16-bit (/) 6-30 Division of floating decimal point(Double precision) (ED/) 6-56 Division of floating decimal point(Single precision) (E/) 6-54 DLIMIT (Upper and lower limit controls for BIN 32-bit) 7-321 DMAX (Maximum value search for 32-bit data)... 7-89 DMEAN(P) 7-103 DMIN (Minimum value search for 32-bit data) 7-92 DMOV (32-bit transfers) 6-106 DNEG (Complement of 2 of BIN 32-bit data) 6-94 DOR (Logical sums of 32-bit data) 7-11 Double precision to Single precision conversion (EDCON) 6-104 Double word data 3-6 DRCL (Left rotation of 32-bit data) 7-44 DRCR (Right rotation of 32-bit data) 7-41 DROL (Left rotation of 32-bit data) 7-44 DROR (Right rotation of 32-bit data) 7-41 DSCL(P) 7-331 DSCL2(P) 7-335 DSER (32-bit data searches) 7-66 DSFL (1-word shift to left of n-word data) 7-54,7-56 DSFR (1-word shift to right of n-word data) 7-54,7-56 DSORT (BIN 32-bit data sort) 7-95 DSTR (Conversion from BIN 32-bit to character string) 7-206 DSUM (32-bit data checks) 7-69 DTEST (Bit tests) 7-61 DTO (Writing 2-word data to intelligent function modules) 7-163 DUTY (Timing pulse generation) 7-388 DVAL (Conversion from character string to BIN 32-bit) 7-212 DWSUM (Calculation of totals for 32-bit data) 7-101,7-103 DXCH (16-bit data exchanges) 6-124 DXNR (32-bit data exclusive NOR operation) 7-27 DXOR (32-bit exclusive OR operations) 7-19 DZONE (Zone control for BIN 32-bit data) 7-327,7-330,7-334

7-125 EGF (Pulse operation results / leading edge) 5-18 EGP (Pulse operation results / trailing edge) 5-18 EI (Interrupt enable) 6-133 EMOD (Floating decimal point to BCD) 7-245 EMOV (Floating-point data transfer (Single precision))

6-108 ENCO (Encoding from 256 to 8 bits) 7-73 Encoding from 256 to 8 bits (ENCO) 7-73 END (End sequence program) 5-53 End main routine program (FEND) 5-51 End sequence program (END) 5-53 ENEG (Floating-point sign invertion(Single precision))

6-96 EREXP (From BCD format data to floating decimal point) 7-248 Error display and annunciator reset instruction (LEDR)

7-172 ESTR (Conversion from floating decimal point to character string) 7-217 EVAL (Conversion from character string to floating decimal point) 7-217 EXP (Exponent operation on floating-point data (Single precision)) 7-291 Expansion clock data addition operation (S.DATE+)

7-366

Index - 6

Page 1195 of the Mitsubishi Electronics QCPU user manual — Index - 7
Page 1195 · click to enlarge
Page 1195

Expansion clock data subtraction operation (S.DATE-) 7-366 EXPD (Exponent operation on floating-point data (Double precision)) 7-294 Exponent operation on floating-point data (Double precision) (EXPD) 7-294 Exponent operation on floating-point data (Single precision) (EXP) 7-291 Exponentiation operation on floating-point data (Single precision) (POW(P)) 7-283 Exponentiation operation on floating-point data (Single precision) (POWD(P)) 7-285 Extracting character string data from the left (LEFT) 7-232 Extracting character string data from the right (RIGHT) 7-232

From BCD format data to floating decimal point (EREXP) 7-248

[G]

GBIN (Conversion of Gray code to BIN 16-bit) 6-92 GOEND (Jump to END) 6-132 GRY (BIN 16-bit to Gray code) 6-90

[H]

HABIN (Conversion from hexadecimal ASCII to BIN 16-bit) 7-195 HEX (Conversion from ASCII to hexadecimal BIN)

7-230 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 High-speed block transfer of file register (RBMOV)

[F]

7-448 HOUR (Time data conversion) 7-354 How to read instruction tables 2-4 How to read instructions 4-2

FCALL (Subroutine program output OFF calls) 7-116 FDEL (Deleting data from data tables) 7-157 FEND (End main routine program) 5-51 FF (Bit device output reverse) 5-40 FIFR (Reading oldest data from data tables) 7-153 FIFW (Writing data to the data tables) 7-151 File register direct 1-byte write (ZRWRB) 7-393 File setting for comments (QCDSET) 7-342 FINS (Inserting data in data tables) 7-157 Fixed cycle pulse output (PLSY) 6-162 Floating decimal point data comparisons (Double precision) (ED=, ED, ED>, ED, E

[I]

I/O refrech (RFS) 6-141 I/O refresh instruction table 2-27 Identical 32-bit data block transfers (DFMOV(P))

6-122 IMASK (Interrupt program mask) 6-133 INC (Incrementing 16-bit BIN) 6-69 Increment

BIN 16-bit (INC) 6-69 BIN 32-bit (DINC) 6-71 Incrementing 16-bit BIN (INC) 6-69 Incrementing 32-bit BIN (DINC) 6-71 Index modification 3-12 Indirect address read (ADRSET) 7-395 Indirect specification 3-23 Inserting data in data tables (FINS) 7-157 Insertion of character string (STRINS(P)) 7-241 INSTR (Character string search) ...7-239,7-241,7-243 Instructions for data link 2-59 INT (Floating decimal point data to BIN 16-bit (Single precision)) 6-83 INTD (Floating decimal point data to BIN 16-bit (Double precision)) 6-86 Interrupt disable (DI) 6-133 Interrupt enable (EI) 6-133 Interrupt program mask (IMASK) 6-133 INV (Operation results inversion) 5-15 Inversion

Bit device output reverse (FF) 5-40 Operation results inversion (INV) 5-15 IRET (Recovery from interrupt programs) 6-139 IX, IXEND (Index modification of entire ladder)

7-144 IXDEV (Designation of modification values in index modification) 7-148 IXSET (Designation of modification values in index modification) 7-148

Index - 7

Page 1196 of the Mitsubishi Electronics QCPU user manual — Index - 8
Page 1196 · click to enlarge
Page 1196

[J]

[M]

JMP (Pointer branch) 6-129 Jump to END (GOEND) 6-132

Master control instructions 5-47 Matrix input (MTR) 6-166 MAX (Maximum value search for 16-bit data) 7-89 Maximum value search for 16-bit data (MAX) 7-89 Maximum value search for 32-bit data (DMAX)... 7-89 MC (Setting the master control) 5-47 MCR (Resetting the master control) 5-47 MEAN(P) 7-103 MEF (Pulse operation results / trailing edge) 5-17 MEP (Pulse operation results / leading edge) 5-17 MIDR (Random selection from character strings)

[K]

KEY (Numerical key input from keyboard) 7-396

[L]

Ladder block parallel connections (ORB) 5-10 Ladder block series connections (ANB) 5-10 LD ($=, $, $>, $, , D, E, ED

7-235 MIDW (Random replacement in character strings)

7-235 MIN (Minimum value search for 16-bit data) 7-92 Minimum value search for 16-bit data (MIN) 7-92 Minimum value search for 32-bit data (DMIN) 7-92 MOV (16-bit transfers) 6-106 MPP (Operation results pop) 5-12 MPS (Operation results push) 5-12 MRD (Operation results read) 5-12 MTR (Matrix input) 6-166 Multiplication

BCD 4-digit (B*) 6-42 BCD 8-digit (DB*) 6-44 BIN 16-bit (*) 6-30 BIN 32-bit (D*) 6-32 Multiplication of floating decimal point (Double precision) (ED*) 6-56 Multiplication of floating decimal point (Single precision) (E*) 6-54 Multiplication and division of floating decimal point (Double precision)(ED*, ED/) 6-56 Multiplication and division of floating decimal point (Single precision)(E*, E/) 6-54

[N]

Natural logarithm operation on floating-point data (Double precision) (LOGD) 7-298 Natural logarithm operation on floating-point data (Single precision) (LOG) 7-296,7-302 n-bit shift to left of 16-bit data (SFL) 7-46 n-bit shift to right of 16-bit data (SFR) 7-46 n-bit shift to right or left of n-bit data (SFTBR(P), SFTBL(P)) 7-51 n-bit shift to right or left of n-word data (SFTWR(P), SFTWL(P)) 7-56 NEG (complement of 2 of BIN 16-bit data) 6-94 Network refresh instruction (ZCOM) 8-2 NEXT (FOR to NEXT) 7-105 No operation (NOP, NOPLF, PAGE) 5-57 NOP 5-57 NOP (No operation) 5-57 NOPLF (No operation page change) 5-57 Number of steps 3-34 Numerical key input (KEY) 7-396 Numerical key input from keyboard (KEY) 7-396 NUNI (Linking of random data) 7-81

Index - 8

Page 1197 of the Mitsubishi Electronics QCPU user manual — Index - 9
Page 1197 · click to enlarge
Page 1197

[O]

PLOW (Program low speed execution registration)

7-382 PLS (Leading edge output) 5-37 PLSY (Fixed cycle pulse output) 6-162 POFF (Program output OFF standby instruction)

Operation errors 3-27 Operation results inversion (INV) 5-15 Operation results pop (MPP) 5-12 Operation results push (MPS) 5-12 Operation results read (MRD) 5-12 Operation start (LD, LDI) 5-2 OR ($=, $, $>, $, , D, E, ED

7-378 Pointer branching instruction (CJ, SCJ, JMP) ... 6-129 Pop (MPP) 5-12 PR (Print ASCII code instruction) 7-166 PRC (Print comment instruction) 7-169 Print ASCII code instruction (PR) 7-166 Print comment instruction (PRC) 7-169 Program branch instruction table 2-27 Program control instructions 2-56 Program execution control instruction table 2-27 Program low speed execition registration instruction (PCHK) 7-384 Program low speed execution registration (PLOW)

7-382 Program output OFF standby instruction (POFF)

7-378 Program scan execution registration instruction (PSCAN) 7-380 Program standby instruction (PSTOP) 7-377 PSCAN (Program scan execution registration instruction) 7-380 PSTOP (Program standby instruction) 7-377 PSWAPP (Load + unload) 7-445 Pulse conversion

(DELTA) 5-42 (EGF, EGP) 5-18 (MEF, MEP) 5-17 Pulse conversion of direct output (DELTA) 5-42 Pulse density measurement (SPD) 6-160 Pulse NOT operation start, pulse NOT series connection, pulse NOT parallel connection LDPI,LDFI, ANDPI,ANDFI,ORPI,ORFI) 5-7 Pulse operation results

Application instructions 2-29 Sequence instructions 2-6 OUT

Annunciator output (OUT F) 5-28 Counters (OUT C) 5-26 High speed retentive timer (OUTH ST) 5-22 High speed timer (OUTH T) 5-22 Low speed retentive timer (OUT ST) 5-22 Low speed timer (OUT T) 5-22 Output (OUT) 5-20 Out instructions (OUT) 5-20 Output instruction table 2-8 Output instructions (OUT) 5-20 Output of sub-routine program OFF calls (FCALL) 7-116 Output OFF calls between program files (EFCALL) 7-125 Output reverse (FF) 5-40

Operation result conversions (MEF, MEP) 5-17 Pulse conversions of edge relay operation results (EGF, EGP) 5-18 Pulse operation start (LDF, LDP) 5-5,5-7 Pulse parallel connection (ORF, ORP) 5-5,5-7 Pulse series connection (ANDF, ANDP) 5-5 Pulse width modulation (PWM) 6-164 PUNLOADP (Unload program from program memory)

7-443 Push (MPS) 5-12 PWM (Pulse width modulation) 6-164

[P]

PAGE (No operation page change) 5-57 Page change (NOPLF) 5-57 Page change (PAGE n) 5-57 Parallel connection (OR, ORI) 5-2 Parallel connections (ORB) 5-10 PCHK (Program low speed execution registeration instruction) 7-384 PLF (Trailing edge output) 5-37 PLOADP (Load program from Memory Card) ... 7-440

[Q]

QCDSET (File setting for comments) 7-342 QCPU dedicated instructions 2-60 QDRSET(Setting files for file register use) 7-339

[R]

RAD (Conversion from floating-point angle to radian (Single precision)) 7-275

Index - 9

Page 1198 of the Mitsubishi Electronics QCPU user manual — Index - 10
Page 1198 · click to enlarge
Page 1198

RADD (Conversion from floating-point angle to radian (Double precision)) 7-277 RAMP (Ramp signal) 6-157 Ramp signal (RAMP) 6-157 Random number generation (RND/SRND) 7-304 Random selection from and replacement in character strings (MIDR) 7-235 Random selection replacement in character strings (MIDW) 7-235 RBMOV (High-speed block transfer of file register) 7-448 RCL (Left rotation of 16-bit data) 7-38 RCR (Right rotation of 16-bit data) 7-35 Read (MRD) 5-12 Read data from standard ROM (S.DEVLD) 7-438 Reading 1-word data from intelligent function modules (FROM) 7-160 Reading 2-word data from intelligent function modules (DFRO) 7-160 Reading clock data (DATERD) 7-344 Reading data from designated file (SP.FREAD) 7-424 Reading device comment data (COMRD) 7-201 Reading expansion clock data (S.DATERD) 7-366 Reading from other CPU shared memory (FROM) 9-12 Reading module information (UNIRD) 7-402 Reading newest data from data tables (FPOP) 7-155 Reading oldest data from data tables (FIFR) 7-153 Reading routing information (RTREAD) 8-6 Real number data 3-8 Recovery from interrupt programs (IRET) 6-139 Refresh instruction (COM) 7-134 Related programming manuals 1-2 Resetting devices (RST) 5-32,5-35 Resetting the annunciators (RST F) 5-35 Resetting the master control (MCR) 5-47 Resetting watchdog timer (WDT) 7-386 RET (Return from sub-routine programs) 7-115 Return from sub-routine programs (RET) 7-115 Revercing

ROTC (Rotary table shortest direction control)

6-154 RSET (Switching file register numbers) 7-337 RST

Resetting devices (RST) 5-32 Resetting the annunciators (RST F) 5-35 RTREAD (Reading routing information) 8-6 RTWRITE (Writing routing information) 8-8

S.DATE- (Expansion clock data subtraction operation)

7-366 S.DATE+ (Expansion clock data addition operation)

7-366 S.DATERD (Reading expansion clock data) 7-366 S.DEVLD (Read data from standard ROM) 7-438 S.TO (Write to host CPU shared memory) 9-4 Scaling (Point-by-point coordinate data) (SCL(P), DSCL(P)) 7-330 Scaling (Point-by-point coordinate data) (SCL2(P), DSCL2(P)) 7-334 SCJ (Pointer branching instruction) 6-129 SCL(P) 7-330 SCL2 7-334 SECOND (Time data conversion) 7-352 SEG (7-segment decode) 7-75 Sequence instructions 2-6 Sequence program stop (STOP) 5-55 SER (16-bit data searches) 7-66 Series connection (AND, ANI) 5-2 Series connections (ANB) 5-10 SET

Setting devices (SET) 5-30 Setting the annunciators (SET F) 5-35 Setting devices (SET) 5-30,5-35 Setting files for file register use (QDRSET) 7-339 Setting the annunciators (SET F) 5-35 Setting the master control (MC) 5-47 SFL (n-bit shift to left of 16-bit data) 7-46 SFR (n-bit shift to right of 16-bit data) 7-46 SFT (Bit device shifts) 5-44 SFTBL(P) 7-52 SFTBR(P) 7-51 SFTWL(P) 7-57 SFTWR(P) 7-56 Shift instruction 5-44,7-46

Bit device output reverse (FF) 5-40 Floating-point sign invertion (Double precision) (EDNEG) 6-97 Floating-point sign invertion (Single precision) (ENEG) 6-96 Operation results inversion (INV) 5-15 RFS (I/O refresh) 6-141 RIGHT (Extracting character string data from the right) 7-232 Right rotation of 16-bit data (ROR, RCR) 7-35 Right rotation of 32-bit data (DROR, DRCL) 7-41 RND (Random number generation and series update) 7-304 ROL (Left rotation of 16-bit data) 7-38 ROR (Right rotation of 16-bit data) 7-35 Rotary table shortest direction control (ROTC) 6-154 Rotation instructions 2-32

(Application instructions) 2-29 Shift instruction table

(Sequence instructions) 2-6 SIN (SIN operation on floating-point data (Single precision)) 7-250 SIN operation on floating-point data (Double precision) (SIND) 7-252 SIN operation on floating-point data (Single precision) (SIN) 7-250 SIN-1 operation on floating-point data (Double precision) (ASIND) 7-265 SIN-1 operation on floating-point data (Single precision) (ASIN) 7-262

Index - 10

Page 1199 of the Mitsubishi Electronics QCPU user manual — Index - 11
Page 1199 · click to enlarge
Page 1199

SIND (SIN operation on floating-point data (Double precision)) 7-252 Single precision to Double precision conversion (ECON) 6-102 SORT (BIN 16-bit data sort) 7-95 SP.CONTSW (System switching instruction) 11-2 SP.DEVST (Writing data to standard ROM) 7-436 SP.FREAD (Reading data from designated file) 7-424 SP.FWRITE (Writing data to designated file) 7-413 SPD (Pulse density measurement) 6-160 Special format failure checks (CHKST, CHK) ... 7-175 Special function instructions 2-46 Special timer (STMR) 6-151 SQR (Square root operation for floating-point data (Single precision)) 7-287 SQRD (Square root operation for floating-point data (Double precision)) 7-289 Square root operation for floating-point data (Double precision) (SQRD) 7-289 Square root operation for floating-point data (Single precision) (SQR) 7-287 SRND (Random number generation and series updates) 7-304 STMR (Special function timer) 6-151 STOP (Sequence program stop) 5-55 STR (Conversion from BIN 16-bit to character string) 7-206 Structure creation instructions 2-38 Subrotine program calls (CALL) 7-110 Subroutine calls (XCALL) 7-129 Subroutine calls between program files (ECALL) 7-120 Subroutine program output OFF calls (FCALL) 7-116 Subset processing 3-25 Subtraction

TAN-1 operation on floating-point data (Double precision)(ATAND) 7-273 TAN-1 operation on floating-point data (Single precision)(ATAN) 7-271 TAND (TAN operation on floating-point data (Double precision)) 7-260 Teaching timer (TTMR) 6-149 Termination instruction table 2-9 TEST (Bit tests) 7-61 TIMCHK (Time check instruction) 7-390 Time check instruction (TIMCHK) 7-390 Time data conversion (HOUR) 7-354,7-356,7-361 Time data conversion (SECOND) 7-352 Timer (OUT T) 5-22 Timing pulse generation (DUTY) 7-388 TO (Writing 1-word data to intelligent function modules) 7-163 TRACE (Trace set) 7-411 TRACER (Trace reset) 7-411 TTMR (Teaching timer) 6-149 Types of Instructions 2-2

[U]

UDCNT1 (Counter 1-phase input up or down) .. 6-143 UDCNT2 (Counter 2-phase input up or down) .. 6-146 UNI (4-bit linking of 16-bit data) 7-79 UNIRD (Reading module information) 7-402 Unload program from program memory (PUNLOADP)

7-443 Up / Down counter

Count 1-phase input or dawn (UDCNT1) 6-143 Count 2-phase input or down (UDCNT2) 6-146 Upper and lower byte exchanges (SWAP) 6-128 Upper and lower limit controls for BIN 32-bit (DLIMIT)

7-321

[V]

BCD 4-digit subtraction (B-) 6-34 BCD 8-digit subtraction (DB-) 6-38 BIN 16-bit subtraction operations (-) 6-22 BIN 32-bit subtraction operations (D-) 6-26 Block subtraction (BK-) 6-59,6-62 Subtraction of floating decimal point data (Double precision) (ED-) 6-50,6-52 Subtraction of floating decimal point data (Single precision) (E-) 6-46,6-48 SUM (16-bit data checks) 7-69 SWAP (Upper and lower byte exchanges) 6-128 Switching file register numbers (RSET) 7-337 Switching instructions 2-51 System Switching (SP.CONTSW) 11-2

VAL (Conversion from character string to BIN 16-bit)

7-212

[W]

WAND (Logical products with 16-bit data) 7-3 WDT (Resetting watchdog timer) 7-386 WOR (Logical sums of 16-bit data) 7-11 WORD (Conversion from BIN 32-bit to BIN 16-bit)

6-89 Word data 3-4 Word device bit designation 3-3 Writing 1-word data to intelligent function modules (TO) 7-163 Writing 2-word data to intelligent function modules (DTO) 7-163 Writing clock data (DATEWR) 7-346 Writing data to designated file (SP.FWRITE) 7-413 Writing data to standard ROM (SP.DEVST) 7-436 Writing data to the data tables (FIFW) 7-151 Writing routing information (RTWRITE) 8-8 Writing to the CPU shared memory of host CPU... 9-2

[T]

TAN (TAN operation on floating-point data (Single precision)) 7-258 TAN operation on floating-point data (Double precision)(TAND) 7-260 TAN operation on floating-point data (Single precision)(TAN) 7-258

Index - 11

Page 1200 of the Mitsubishi Electronics QCPU user manual — Index - 12
Page 1200 · click to enlarge
Page 1200

S.TO 9-4 TO 9-7 WSUM (Calculation of totals for 16-bit data) 7-99 WTOB (Data dissociation in byte units) 7-85 WXNR (16-bit data exclusive NOR operation) 7-27 WXNR (16-bit data non-exclusive logical sum operations) 7-30 WXOR (16-bit exclusive OR operations) 7-19,7-22

[X]

XCALL (Subroutine program call) 7-129 XCH (32-bit data exchange) 6-124

[Z]

ZCOM (Network refresh instruction) 8-2 ZONE (Zone control for BIN 16-bit) 7-327,7-330,7-334 Zone control for BIN 16-bit (ZONE) 7-327,7-330,7-334 Zone control for BIN 32-bit data (DZONE) 7-327,7-330,7-334 ZPOP (Batch recovery of index register) 7-400 ZPUSH (Batch save of index register) 7-400 ZRRDB (Direct 1-byte read from file register) 7-391 ZRWRB (File register direct 1-byte write) 7-393

Index - 12

Page 1201 of the Mitsubishi Electronics QCPU user manual — Warranty
Page 1201 · click to enlarge
Page 1201

Warranty

Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company. However, if repairs are required onsite at domestic or overseas location, expenses to send an engineer will be solely at the customer's discretion. Mitsubishi shall not be held responsible for any re-commissioning, maintenance, or testing on-site that involves replacement of the failed module. [Gratis Warranty Term] The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place. Note that after manufacture and shipment from Mitsubishi, the maximum distribution period shall be six (6) months, and the longest gratis warranty term after manufacturing shall be eighteen (18) months. The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs. [Gratis Warranty Range] (1) The range shall be limited to normal use within the usage state, usage methods and usage environment, etc.,

which follow the conditions and precautions, etc., given in the instruction manual, user's manual and caution labels on the product. (2) Even within the gratis warranty term, repairs shall be charged for in the following cases. 1. Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design. 2. Failure caused by unapproved modifications, etc., to the product by the user. 3. When the Mitsubishi product is assembled into a user's device, Failure that could have been avoided if functions or structures, judged as necessary in the legal safety measures the user's device is subject to or as necessary by industry standards, had been provided. 4. Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced. 5. Failure caused by external irresistible forces such as fires or abnormal voltages, and Failure caused by force majeure such as earthquakes, lightning, wind and water damage. 6. Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi. 7. Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user. 2. Onerous repair term after discontinuation of production (1) Mitsubishi shall accept onerous product repairs for seven (7) years after production of the product is

discontinued. Discontinuation of production shall be notified with Mitsubishi Technical Bulletins, etc. (2) Product supply (including repair parts) is not available after production is discontinued. 3. Overseas service Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ. 4. Exclusion of loss in opportunity and secondary loss from warranty liability Regardless of the gratis warranty term, Mitsubishi shall not be liable for compensation of damages caused by any cause found not to be the responsibility of Mitsubishi, loss in opportunity, lost profits incurred to the user by Failures of Mitsubishi products, special damages and secondary damages whether foreseeable or not , compensation for accidents, and compensation for damages to products other than Mitsubishi products, replacement by the user, maintenance of on-site equipment, start-up test run and other tasks. 5. Changes in product specifications The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice. 6. Product application (1) In using the Mitsubishi MELSEC programmable controller, the usage conditions shall be that the application will

not lead to a major accident even if any problem or fault should occur in the programmable controller device, and that backup and fail-safe functions are systematically provided outside of the device for any problem or fault. (2) The Mitsubishi programmable controller has been designed and manufactured for applications in general

industries, etc. Thus, applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies, and applications in which a special quality assurance system is required, such as for Railway companies or Public service purposes shall be excluded from the programmable controller applications. In addition, applications in which human life or property that could be greatly affected, such as in aircraft, medical applications, incineration and fuel devices, manned transportation, equipment for recreation and amusement, and safety devices, shall also be excluded from the programmable controller range of applications. However, in certain cases, some applications may be possible, providing the user consults their local Mitsubishi representative outlining the special requirements of the project, and providing that all parties concerned agree to the special circumstances, solely at the users discretion.

Page 1202 of the Mitsubishi Electronics QCPU user manual — SH(NA)-080809ENG-C 2/2
Page 1202 · click to enlarge
Page 1202

Microsoft, Windows, Windows NT are registered trademarks of Microsoft Corporation in the United States and other

countries.

Pentium and Celeron are trademarks of Intel Corporation in the United States and other countries.

Ethernet is a trademark of Xerox Co., Ltd. in the United States.

CompactFlash is a trademark of SanDisk Corporation.

VxWorks, Tornado, WindPower, WindSh and WindView are registered trademarks of Wind River Systems, Inc.

Other company names and product names used in this document are trademarks or registered trademarks of respective

owners.

SH(NA)-080809ENG-C 2/2

Page 1203 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 1203 · click to enlarge
Page 1203
Page 1203 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 1204 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Page 1204 · click to enlarge
Page 1204
Page 1204 of the Mitsubishi Electronics QCPU user manual — WARRANTY
Sources

References & links

Pages referenced in this manual — manufacturer, support and downloads.

Display codes

Error codes

What the fault codes shown on the display mean and how to clear them.

CodeMeaningFix
SD80Failure No. p.68
N1Number of scans for ON (BIN 16 bits) p.756
N2Number of scans for OFF (BIN 16 bits) p.756
1000[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.910
1001[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault • Accessed to outlying devices with the device range checks disabled (SM237 is turned on)(This error occurs only when BMOV, FMOV, and DFMOV instructions are executed.) (Universal model QCPU only) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) • Check the devices specified by BMOV, FMOV, and DFMOV instructions and correct the device settings. (Universal model QCPU only) p.910
1002[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.910
1005[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.910
1006[MAIN CPU DOWN] Runaway or failure of CPU module or failure of main CPU • Malfunctioning due to noise or other reason • Hardware fault ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.911
1009[MAIN CPU DOWN] • A failure is detected on the power supply module, CPU module, main base unit, extension base unit or extension cable. • When using the redundant base unit, the redundant power supply module failure in both systems and/or the redundant base unit failure are detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysReset the CPU module and RUN it again.If the same error is detected again, it is considered that the power supply module, CPU module, main base unit, extension base unit or extension cable is faulty. (Contact your local Mitsubishi representative.) p.911
1010[END NOT EXECUTE] Entire program was executed without the execution of an END instruction. • When the END instruction is executed it is read as another instruction code, e.g. due to noise. • The END instruction has been changed to another instruction code somehow. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed• Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.911
1020[SFCP. END ERROR] The SFC program cannot be normally terminated due to noise or other reason. • The SFC program cannot be normally terminated due to noise or any similar cause. • The SFC program cannot be normally terminated for any other reason. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When SFC program is executed• Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.911
1035[MAIN CPU DOWN] Runaway or error of the CPU module was detected. • Malfunction due to noise etc. • Hardware failure ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Take measures against noise. • Reset the CPU module and run it again. If the same error is displayed again, the CPU module has hardware failure.(Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.911
1101[RAM ERROR] The sequence program storing program memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/ When an END instruction executed• Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.912
1102[RAM ERROR] • The work area RAM in the CPU module is faulty. • The standard RAM and extended RAM in the CPU module are faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/ When an END instruction executed• Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.912
1103[RAM ERROR] The device memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • When indexing is performed, check the value of index register to see if it is within the device range. • Reset the CPU module and RUN it again. If the same error is displayed again,this suggests a CPU module hardware fault.(Contact your local Mitsubishi representative.) p.912
1104[RAM ERROR] The address RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.912
1105[RAM ERROR] The CPU memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • Reset the CPU module and RUN it again.If the same error is displayed again, this suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.912
1106[RAM ERROR] The battery is dead. The program memory in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • STOP RUN/When an END instruction executed• Check the battery to see if it is dead or not. If dead, replace the battery. • Take noise reduction measures. • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the possible cause is a CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.913
1107[RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetThis suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.913
1109[RAM ERROR] The work area RAM in the CPU module is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always p.913
1110[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset p.913
1111[TRK. CIR. ERROR] A tracking hardware fault was detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset p.913
1112[TRK. CIR. ERROR] A tracking hardware fault was detected during running. • The tracking cable was disconnected and reinserted without the standby system being powered off or reset. • The tracking cable is not secured by the connector fixing screws. • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During running• Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System). p.913
1115[TRK. CIR. ERROR] A fault was detected by the initial check of the tracking hardware. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetThis suggests a CPU module hardware fault. (Contact your nearest Mitsubishi representative.) p.914
1116[TRK. CIR. ERROR] A tracking hardware fault was detected during running. • The tracking cable was disconnected and reinserted without the standby system being powered off or reset. • The tracking cable is not secured by the connector fixing screws. • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During running• Start after checking that the tracking cable is connected. If the same error is displayed again, the cause is the hardware fault of the tracking cable or CPU module. (Please contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. For details, refer to the QnPRHCPU User's Manual (Redundant System). p.914
1150[RAM ERROR] The memory of the CPU module in the Multiple CPU high speed transmission area is faulty. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.914
1160[RAM ERROR] The program memory in the CPU module is overwritten. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At program execution• Take noise reduction measures. • Format the program memory, write all files to the PLC, then reset the CPU module, and RUN it again. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.914
1161[RAM ERROR] The data of the device memory built in the CPU module is overwritten. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At program execution• Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.914
1162[RAM ERROR] The error of the data held by the battery in the CPU module is detected. (It occurs when the automatic format is not set.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • Change the CPU main body or SRAM card battery. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.914
1164[RAM ERROR] The destruction of the data stored in the standard RAM is detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When instruction executed• Take noise reduction measures. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.915
1200[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetThis suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.915
1201[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset p.915
1202[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset p.915
1203[OPE. CIRCUIT ERR.] The operation circuit for index modification in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed p.915
1204[OPE. CIRCUIT ERR.] The hardware (logic) in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed p.915
1205[OPE. CIRCUIT ERR.] The operation circuit for sequence processing in the CPU module does not operate normally. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executed p.915
1300[FUSE BREAK OFF] There is an output module with a blown fuse. ■Collateral information • Common Information:Module No.(Slot No.) [For Remote I/O network]Network No./ Station No. • Individual Information:– ■Diagnostic Timing • Always• Check FUSE. LED of the output modules and replace the module whose LED is lit. (The module with a blown fuse can also be identified using GX Developer. Check the special registers SD1300 to SD1331 to see if the bit corresponding to the module is "1".) • When a GOT is bus-connected to the main base unit or extension base unit, check the connection status of the extension cable and the earth status of the GOT. p.916
1310[I/O INT. ERROR] An interruption has occurred although there is no interrupt module. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During interruptAny of the mounted modules is experiencing a hardware fault. Therefore, check the mounted modules and change the faulty module. (Contact your local Mitsubishi representative.) p.916
1311[I/O INT. ERROR] An interrupt request from other than the interrupt module was detected. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • During interruptTake action so that an interrupt will not be issued from other than the interrupt module. p.916
1320[LAN CTRL.DOWN] The H/W self-diagnostics detected a LAN controller failure. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetThis suggests a CPU module hardware fault. (Contact your local Mitsubishi representative.) p.916
1401[SP. UNIT DOWN] • There was no response from the intelligent function module/special function module in the initial processing. • The size of the buffer memory of the intelligent function module/special function module is invalid. • The unsupported module is mounted. ■Collateral information • Common Information:Module No.(Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset/When intelligent function module is accessedWhen the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module, CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) p.917
1402[SP. UNIT DOWN] The intelligent function module/special function module was accessed in the program, but there was no response. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When an intelligent function module access instruction is executedThis suggests the intelligient function module/ special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) p.917
1403[SP. UNIT DOWN] • The unsupported module is mounted. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executedWhen the unsupported module is mounted, remove it. When the corresponding module is supported, this suggests the intelligent function module/special function module , CPU module and/or base unit is expecting a hardware fault (Contact your local Mitsubishi representative.) p.917
1411[CONTROL-BUS. ERR.] When performing a parameter I/O allocation the intelligent function module/special function module could not be accessed during initial communications. (On error occurring, the head I/O number of the corresponding intelligent function module/special function module is stored in the common information.) ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) p.917
1412[CONTROL-BUS. ERR.] The FROM/TO instruction is not executable, due to a control bus error with the intelligent function module/special function module. (On error occurring, the program error location is stored in the individual information.) ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • During execution of FROM/TO instruction setReset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module/special function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) p.918
1413[CONTROL-BUS. ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system. • The intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) p.918
1414[CONTROL-BUS. ERR.] • Fault of a loaded module was detected. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • Always• Remove the CPU module incompatible with the multiple CPU system from the main base unit, or replace the CPU module with a CPU module compatible with the multiple CPU system. • Reset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) p.918
1415[CONTROL-BUS. ERR.] Fault of the main or extension base unit was detected. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executedReset the CPU module and RUN it again. If the same error is displayed again, the intelligent function module, CPU module or base unit is faulty. (Contact your local Mitsubishi representative.) p.919
1416[CONTROL-BUS. ERR.] System bus fault was detected at power-on or reset. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset p.919
1417[CONTROL-BUS. ERR.] A reset signal error was detected on the system bus. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always p.919
1418[CONTROL-BUS.ERR.] In the redundant system, at power-on/reset or switching system, the control system cannot access the extension base unit since it failed to acquire the access right. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/ At reset/ At Switching executionReset the CPU module and RUN it again. If the same error is displayed again, the CPU module, the Q6 WRB, or hardware of extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.919
1430[MULTI-C.BUS ERR.] The error of host CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.919
1431[MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1432[MULTI-C.BUS ERR.] The communication time out with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1433[MULTI-C.BUS ERR.] The communication error with other CPU is detected in the Multiple CPU high speed bus. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • Always• Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1436[MULTI-C.BUS ERR.] The error of the Multiple CPU high speed main base unit is detected. (The error of the Multiple CPU high speed bus is detected.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1437• Take noise reduction measures. • Check the main base unit mounting status of the CPU module. • Reset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1439[MULTI-C.BUS ERR.] An error of the multiple CPU high speed main base unit was detected. (An error of the multiple CPU high speed bus was detected.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and RUN it again. If the same error is displayed again, the CPU module has hardware failure. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.920
1500[AC/DC DOWN] • A momentary power supply interruption has occurred. • The power supply went off. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysCheck the power supply. p.920
1510[SINGLE PS. DOWN] The power supply voltage of either of redundant power supply modules on the redundant base unit dropped. ■Collateral information • Common Information:Base No./ Power supply No. • Individual Information:– ■Diagnostic Timing • AlwaysCheck the power supplied to the redundant power supply modules mounted on the redundant base unit. p.921
1520[SINGLE PS. ERROR] On the redundant base unit, the one damaged redundant power supply module was detected. ■Collateral information • Common Information:Base No./ Power supply No. • Individual Information:– ■Diagnostic Timing • AlwaysHardware fault of the redundant power supply module. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.921
1600[BATTERY ERROR*3] • The battery voltage in the CPU module has dropped below stipulated level. • The lead connector of the CPU module battery is not connected. • The lead connector of the CPU module battery is not securely engaged. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • Always• Change the battery. • If the battery is for program memory, standard RAM or for the back-up power function, install a lead connector. • Check the lead connector of the CPU module for looseness. Firmly engage the connector if it is loose. p.921
1601[BATTERY ERROR*3] Voltage of the battery on memory card has dropped below stipulated level. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • AlwaysChange the battery. p.921
1610[FLASH ROM ERROR] The number of writing to flash ROM (standard ROM and system securement area) exceeds 100,000 times. (Number of writings >100,000 times) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When writing to ROMChange the CPU module. p.921
2000[UNIT VERIFY ERR.] In a multiple CPU system, a CPU module incompatible with the multiple CPU system is mounted. ■Collateral information • Common Information:Module No. (Slot No.) [For Remote I/O network] Network No./Station No. • Individual Information:– ■Diagnostic Timing • When an END instruction executedReplace the CPU module incompatible with the multiple CPU system with a CPU module compatible with the multiple CPU system. p.922
2001[UNIT VERIFY ERR.] During operation, a module was mounted on the slot where the empty setting of the CPU module was made. ■Collateral information • Common Information:Module No. (CPU No.) • Individual Information:– ■Diagnostic Timing • When an END instruction executedDuring operation, do not mount a module on the slot where the empty setting of the CPU module was made. p.922
2010[BASE LAY ERROR] • More than applicable number of extension base units have been used. • When a GOT was bus-connected, the CPU module was reset while the power of the GOT was OFF. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Use the allowable number of extension base units or less. • Power on the Progammable Controller and GOT again. p.922
2011[BASE LAY ERROR] The QA1S6 B, QA6 B, or QA6ADP+A5 B/A6 B was used as the base unit. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At resetDo not use the QA1S6 B, QA6 B, or QA6ADP+A5 B/A6 B as the base unit. p.923
2012[BASE LAY ERROR] The GOT is bus-connected to the main base unit of the redundant system. The following errors are detected in the CPU redundant system compatible with the extension base unit. • The base unit other than the Q6 WRB is connected to the extension stage No.1. • The base unit is connected to any one of the extension stages No.2 to No.7, although the Q6 WRB does not exist in the extension stage No.1 . • The other system CPU module is incompatible with the extension base unit. • The Q5 B, QA1S6 B, QA6 B or QA6ADP+A5 B/A6 B is connected. • The number of slots of the main base unit for both systems is different. Information of the Q6 WRB cannot be read correctly. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Remove a bus connection cable for GOT connection connected to the main base unit. • Use the Q6 WRB (fixed to the extension stage No.1) • Use the CPU module compatible with the extension base unit for the other system. • Do not use the Q5 B, QA1S6 B, QA6 B or QA6ADP+A5 B/A6 B for the base unit. • Use the main base unit which has the same number of slots. • Hardware failure of the Q6 WRB. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.923
2013[BASE LAY ERROR] Stage number of the Q6 WRB is recognized as other than extension stage No.1 in the redundant system. ■Collateral information • Common Information:Base No. • Individual Information:– ■Diagnostic Timing • At power ON/At resetHardware failure of the Q6 WRB. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.923
2020[EXT.CABLE ERR.] The following errors are detected in the redundant system. • At power-on/reset, the standby system has detected the error in the path between the control system and the Q6 WRB. • The standby system has detected the error in the path between the host system CPU and the Q6 WRB at END processing. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/At reset/ When an END instruction executedCheck to see if the extension cable between the main base unit and the Q6 WRB is connected correctly. If not, connect it after turning OFF the main base unit where the extension cable will be connected. If the cable is connected correctly, hardware of the CPU module, Q6 WRB, or extension cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.923
2100[SP. UNIT LAY ERR.] The slot to which the QI60 is mounted is set to other than Inteli (intelligent function module) or Interrupt (interrupt module) in the I/O assignment of PLC parameter. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetMake setting again to match the PLC parameter I/O assignment with the actual loading status. p.924
2101[SP. UNIT LAY ERR.] 13 or more A-series special function modules (except for the A1SI61) that can initiate an interrupt to the CPU module have been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetReduce the A series special function modules (except the A1SI61) that can make an interrupt start to the CPU module to 12 or less. p.924
2102[SP. UNIT LAY ERR.] Seven or more A1SD51S have been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetKeep the number of A1SD51S to six or fewer. p.925
2103[SP. UNIT LAY ERR.] • Two or more QI60/A1SI61 modules are mounted in a single CPU system. • Two or more QI60/A1SI61 modules are set to the same control CPU in a multiple CPU system. • Two or more A1SI61 modules are loaded in a multiple CPU system. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Reduce the number of QI60/A1SI61 modules mounted in the single CPU system to one. • Change the number of QI60/A1SI61 modules set to the same control CPU to only one in the multiple CPU system. • Reduce the number of A1SI61 modules to only one in the multiple CPU system. When using an interrupt module with each QCPU in a multiple CPU system, replace it with the QI60. (Use one A1SI61 module + max. three QI60 modules or only the QI60 modules.) p.925
2106[SP.UNIT LAY ERR.] • Two or more MELSECNET/H modules are mounted. • Two or more CC-Link IE controller network modules are mounted. • Two or more Ethernet modules are mounted. ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Reduce the number of MELSECNET/H modules to one. • Reduce the number of CC-Link IE controller network modules to one. • Reduce the number of Ethernet modules to one. p.926
2107[SP. UNIT LAY ERR.] The start X/Y set in the PLC parameter’s I/O assignment settings is overlapped with the one for another module. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetMake the PLC parameter’s I/O assignment setting again so it is consistent with the actual status of the intelligent function module/special function modules. p.927
2108[SP. UNIT LAY ERR.] • Network module A1SJ71LP21, A1SJ71BR11, A1SJ71AP21, A1SJ71AR21, or A1SJ71AT21B dedicated for the A2USCPU has been installed. • Network module A1SJ71QLP21 or A1SJ71QBR11 dedicated for the Q2AS has been installed. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetReplace the network module for the A2USCPU or the network module for the Q2ASCPU with the MELSECNET/H module. p.927
2110[SP. UNIT ERROR] • The location designated by the FROM/TO instruction set is not the intelligent function module/special function module. • The module that does not include buffer memory has been specified by the FROM/TO instruction. • The intelligent function module/special function module, Network module being accessed is faulty. • Station not loaded was specified using the instruction whose target was the CPU share memory. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed• Read the individual information of the error using the GX Developer, check the FROM/TO instruction that corresponds to that numerical value (program error location), and correct when necessary. • The intelligent function module/special function module that was accessed is experiencing a hardware fault. Therefore, change the faulty module. Alternatively, contact your local Mitsubishi representative. p.928
2111[SP. UNIT ERROR] • The location designated by a link direct device (J \ ) is not a network module. • The I/O module (intelligent function module/ special function module) was nearly removed, completely removed, or mounted during running. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed p.928
2112[SP. UNIT ERROR] • The module other than intelligent function module/special function module is specified by the intelligent function module/special function module dedicated instruction. Or, it is not the corresponding intelligent function module/special function module. • There is no network No. specified by the network dedicated instruction. Or the relay target network does not exit. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/STOP RUNRead the individual information of the error using a peripheral device, and check the special function module /special function module dedicated instruction (network instruction) that corresponds to the value (program error part) to make modification. p.928
2113[SP. UNIT ERROR] The module other than network module is specified bythe network dedicated instruction. ■Collateral information • Common Information:FFFFH (fixed) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/STOP RUN p.928
2114[SP. UNIT ERROR] An instruction, which on execution specifies other stations, has been used for specifying the host CPU. (An instruction that does not allow the host CPU to be specified). ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUNRead the individual information of the error using the GX Developer, check the program corresponding that value (program error location), and make correction. p.929
2115[SP. UNIT ERROR] An instruction, which on execution specifies the host CPU, has been used for specifying other CPUs. (An instruction that does not allow other stations to be specified). ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN p.929
2116[SP. UNIT ERROR] • An instruction that does not allow the under the control of another CPU to be specified is being used for a similar task. • Instruction was executed for the A or QnA module under control of another CPU. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN p.929
2117[SP. UNIT ERROR] A CPU module that cannot be specified in the instruction dedicated to the multiple CPU system was specified. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed/ STOP RUN p.929
2118[SP. UNIT ERROR] When the online module change setting is set to be “enabled” in the PLC parameter in a multiple CPU system, intelligent function module controlled by other CPU using the FROM instruction/intelligent function module device (U \ G) is specified. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:Program error location ■Diagnostic Timing • When instruction executed• When performing the online module change in a multiple CPU system, correct the program so that access will not be made to the intelligent function module controlled by the other CPU. • When accessing the intelligent function module controlled by the other CPU in a multiple CPU system, set the online module change setting to be “disabled” by parameter. p.929
2120[SP. UNIT LAY ERR.] The locations of the Q5 B/Q6 B, QA1S6 B/ QA6 B, and QA6ADP+A5 B/A6 B are improper. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetCheck the location of the base unit. p.930
2121[SP. UNIT LAY ERR.] The CPU module is installed to other than the CPU slot and slots 0 to 2. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetCheck the loading position of the CPU module and reinstall it at the correct slot. p.930
2122[SP. UNIT LAY ERR.] The QA1S6 B/QA6 B and QA6ADP+A5 B/ A6 B are used for the main base unit. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetReplace the main base unit with a usable one. p.930
2124[SP. UNIT LAY ERR.] • A module is mounted on the 65th slot or later slot. • A module is mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting. • A module is mounted on the slot whose number of I/O points exceeds 4096 points. • A module is mounted on the slot whose number of I/O points strides 4096 points. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Remove the module mounted on the 65th slot or later slot. • Remove the module mounted on the slot whose number is greater than the number of slots specified at [Slots] in [Standard setting] of the base setting. • Remove the module mounted on the slot whose number of I/O points exceeds 4096 points. • Replace the module with the one whose number of occupied points does not exceed 4096 points. p.930
2125[SP. UNIT LAY. ERR.] • A module which the QCPU cannot recognise has been installed. • There was no response form the intelligent function module/special function module. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Install a usable module. • The intelligent function module/special function module is experiencing a hardware fault. (Contact your local Mitsubishi representative.) p.931
2126[SP. UNIT LAY. ERR.] CPU module locations in a multiple CPU system are either of the following. • There are empty slots between the QCPU and QCPU/motion controller. • A module other than the High Performance model QCPU/Process CPU (including the motion controller) is mounted on the left-hand side of the High Performance model QCPU/Process CPU. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Mount modules on the available slots so that the empty slots will be located on the right-hand side of the CPU module. • Remove the module mounted on the left-hand side of the High Performance model QCPU/ Process CPU, and mount the High Performance model QCPU/Process CPU on the empty slot. Mount the motion CPU on the right-hand side of the High Performance model QCPU/Process CPU. p.932
2128[SP.UNIT LAY ERR.] The unusable module is mounted on the extension base unit in the redundant system. ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power-ON/ At reset• Remove the unusable module from the extension base unit. p.932
2150[SP. UNIT VER. ERR.] In a multiple CPU system, the control CPU of the intelligent function module incompatible with the multiple CPU system is set to other than CPU No.1. ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller• Change the intelligent function module for the one compatible with the multiple CPU system (function version B). • Change the setting of the control CPU of the intelligent function module incompatible with the multiple CPU system to CPU No.1. p.932
2151[SP. UNIT VER. ERR.] Either of the following modules incompatible with the redundant system has been mounted in a redundant system. • CC-Link IE controller network modules • MELSECNET/H modules • Ethernet modules ■Collateral information • Common Information:Module No. (Slot No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controllerUse either of the following modules compatible with the redundant system. • CC-Link IE controller network modules • MELSECNET/H modules • Ethernet modules p.932
2200[MISSING PARA.] There is no parameter file in the drive specified as valid parameter drive by the DIP switches. ■Collateral information • Common Information:Drive Name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN• Check and correct the valid parameter drive settings made by the DIP switches. • Set the parameter file to the drive specified as valid parameter drive by the DIP switches. p.933
2210[BOOT ERROR] The contents of the boot file are incorrect. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At resetCheck the boot setting. p.933
2211[BOOT ERROR] File formatting is failed at a boot. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Reboot. • CPU module hardware fault. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.933
2220[RESTORE ERROR] • The device information (number of points) backuped by the device data backup function is different from the number of device points of the PLC parameter. After this error occurred, perform restore per power-on/reset until the number of device points is identical to the number of device points in the PLC parameter, or until the backup data is deleted. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Set the number of device points at the time of backup to the device point setting in [PLC parameter]. Then, turn ON from OFF power supply, or reset the CPU and cancel reset. • Delete the backuped data, and turn ON from OFF power supply, or reset the CPU and cancel reset. p.933
2221[RESTORE ERROR] • The device information backuped by the device data backup function is incomplete. (Turning power supply OFF or reset is suspected.) Do not return the data when this error occurs. Also, delete the incomplete device information at the time of this error occurrence. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At resetReset the CPU module and run it again. p.934
2225[RESTORE ERROR] The model name of the restoration destination CPU module is different from the one of the backup source CPU module. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At resetExecute a restore for the CPU module whose name is same as the backup source CPU module. p.934
2226[RESTORE ERROR] • ·The backup data file is destroyed. (The content of the file is different from the check code. • Reading the backup data from the memory card is not successfully completed. • Since the write protect switch of the SRAM card is set to on (write inhibited), the checked "Restore for the first time only" setting cannot be performed. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/ At reset• Execute a restore of other backup data because the backup data may be destructed. • Set the write protect switch of the SRAM card to off (write enabled). p.934
2227[RESTORE ERROR] Writing the backup data to the restoration destination drive is not successfully completed. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • At power ON/ At resetExecute a restore for the other CPU module too because the CPU module may be damaged. p.934
2300[ICM. OPE. ERROR] • A memory card was removed without switching the memory card in/out switch OFF. • The memory card in/out switch is turned ON although a memory card is not actually installed. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed• Remove memory card after placing the memory card in/out switch OFF. • Turn on the card insert switch after inserting a memory card. p.934
2301[ICM. OPE. ERROR] • The memory card has not been formatted. • Memory card format status is incorrect. • The QCPU file does not exist in the Flash card. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed/When memory card is inserted• Format memory card. • Reformat memory card. • Write the QCPU file the Flash card p.935
2302[ICM. OPE. ERROR] A memory card that cannot be used with the CPU module has been installed. ■Collateral information • Common Information:Drive name • Individual Information:– ■Diagnostic Timing • When memory card is inserted or removed• Format memory card. • Reformat memory card. • Check memory card. p.935
2400[FILE SET ERROR] Automatic write to standard ROM was performed on the CPU module that is incompatible with automatic write to standard ROM. (Memory card where automatic write to standard ROM was selected in the boot file was fitted and the parameter enable drive was set to the memory card.) ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller• Execute automatic write to standard ROM on the CPU module which is compatible with automatic write to standard ROM. • Using GX Developer, perform write of parameters and programs to standard ROM. • Change the memory card for the one where automatic write to standard ROM has not been set, and perform boot operation from the memory card. p.935
2401[FILE SET ERROR] Program memory capacity was exceeded by performing boot operation or automatic write to standard ROM. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/ At writing to progurammable controller• Check and correct the parameters (boot setting). • Delete unnecessary files in the program memory. • Choose "Clear program memory" for boot in the parameter so that boot is started after the program memory is cleared. p.936
2410[FILE OPE. ERROR] • The specified program does not exist in the program memory. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN, POFF or PLOW instruction is executed. • The specified file does not exist. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executed• Read the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Create a file created using parameters, and load it to the CPU module. • In case a specified file does not exist, write the file to a target memory and/or check the file specified with the instruction again. p.936
2411[FILE OPE. ERROR] • The file is the one which cannot be specified by the sequence program (such as comment file). • The specified program exists in the program memory, but has not been registered in the program setting of the Parameter dialog box. This error may occur when the ECALL, EFCALL, PSTOP, PSCAN or POFF instruction is executed. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executedRead the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. p.937
2412[FILE OPE. ERROR] The SFC program file is one that cannot be designated by the sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executedRead the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. p.937
2413[FILE OPE. ERROR] No data has been written to the file designated by the sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Program error location ■Diagnostic Timing • When instruction executedRead the individual information of the error using the peripheral device, check to be sure that the program corresponds to the numerical values there (program location), and correct. Check to ensure that the designated file has not been write protected. p.937
2500[CAN'T EXE. PRG.] • There is a program file that uses a device that is out of the range set in the PLC parameter device setting. • After the PLC parameter setting is changed, only the parameter is written into the PLC. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN• Read the common information of the error using the peripheral device, check to be sure that the parameter device allocation setting and the program file device allocation correspond to the numerical values there (file name), and correct if necessary. • If PLC parameter device setting is changed, batch-write the parameter and program file into the PLC. p.937
2501[CAN'T EXE. PRG.] There are multiple program files although "none" has been set at the PLC parameter program settings. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUNEdit the PLC parameter program setting to "yes". Alternatively, delete unneeded programs. p.938
2502[CAN'T EXE. PRG.] The program file is incorrect. Alternatively, the file contents are not those of a sequence program. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUNCheck whether the program version is .QPG, and check the file contents to be sure they are for a sequence program. p.938
2503[CAN'T EXE. PRG.] There are no program files at all. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN• Check program configuration. • Check parameters and program configuration. p.938
2504[CAN'T EXE. PRG.] Two or more SFC normal programs or control programs have been designated. ■Collateral information • Common Information:File name/ Drive name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ STOP RUN p.938
2700[REMOTE PASS.FAIL] The count of remote password mismatches reached the upper limit. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysCheck for illegal accesses. If any illegal access is identified, take actions such as disabling communication of the connection. If no illegal access is identified, clear the error and perform the following. (Clearing the error also clears the count of remote password mismatches.) • Check if the remote password sent is correct. • Check if the remote password has been locked. • Check if concurrent access was made from multiple devices to one connection by UDP. • Check if the upper limit of the remote password mismatch count is too low. p.939
2710[SNTP OPE.ERROR] Time setting failed when the programmable controller was powered ON or reset. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When time setting function is executed• Check if the time setting function is set up correctly. • Check if the specified SNTP server is operating normally, or if any failure has occurred on the network connected to the specified SNTP server computer. p.939
3000[PARAMETER ERROR] In a multiple CPU system, the intelligent function module under control of another CPU is specified in the interrupt pointer setting of the PLC parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller• Specify the head I/O number of the intelligent function module under control of the host CPU. • Delete the interrupt pointer setting of the parameter. p.940
3001[PARAMETER ERROR] The parameter settings are corrupted. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller• Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module. • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) p.941
3002[PARAMETER ERROR] When "Use the following file" is selected for the file register in the PLC file setting of the PLC parameter dialog box, the specified file does not exist although the file register capacity has been set. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN/ At writing to progurammable controller• Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Rewrite corrected parameters to the CPU module, reload the CPU power supply and/or reset the module. • If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) p.941
3003[PARAMETER ERROR] The automatic refresh range of the multiple CPU system exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executedChange the file register file for the one refresh- enabled in the whole range. p.942
3004[PARAMETER ERROR] The parameter file is incorrect. Alternatively, the contents of the file are not parameters. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerCheck whether the parameter file version is .QPA, and check the file contents to be sure they are parameters. p.942
3005[PARAMETER ERROR] The contents of the parameter are broken. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN• Read the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No.), and correct it. • Write the modified parameter items to the CPU module again, and power-on the Programmable Controller or reset the CPU module. • When the same error occurs again, the hardware is faulty. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.942
3006[PARAMETER ERROR] • The high speed interrupt is set in a Q02CPU. • The high speed interrupt is set in a multiple CPU system. • The high speed interrupt is set when aQA1S6 B or QA6 B is used. • No module is installed at the I/O address designated by the high speed interrupt. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller• Delete the setting of the Q02CPU' s high speed interrupt. To use high speed interrupts, change the CPU module to one of the Q02H/Q06H/ Q12H/Q25HCPU. • To use a multiple CPU system, delete the setting of the high-speed interrupt. To use high speed interrupts, change the system to a single CPU system. • To use either the QA1S6 B or QA6 B, delete the setting of the high speed interrupt. To use high speed interrupts, do not use the QA1S6 B/ QA6 B. • Re-examine the I/O address designated by the high speed interrupt setting. p.942
3007[PARAMETER ERROR] The parameter file in the drive specified as valid parameter drive by the DIP switches is inapplicable for the CPU module. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerCreate parameters using GX Developer, and write them to the drive specified as valid parameter drive by the DIP switches. p.943
3009[PARAMETER ERROR] In a multiple CPU system, the modules for AnS, A, Q2AS and QnA have been set to multiple control CPUs. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerRe-set the parameter I/O assignment to control them under one CPU module. (Change the parameters of all CPUs in the multiple CPU system.) p.943
3010[PARAMETER ERROR] The parameter-set number of CPU modules differs from the actual number in a multiple CPU system. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerMatch the number of (CPU modules in multiple CPU setting) - (CPUs set as empty in I/O assignment) with that of actually mounted CPU modules. p.943
3012[PARAMETER ERROR] Multiple CPU setting or control CPU setting differs from that of the reference CPU settings in a multiple CPU system. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerMatch the multiple CPU setting or control CPU setting in the PLC parameter with that of the reference CPU (CPU No.1) settings. p.943
3013[PARAMETER ERROR] Multiple CPU auto refresh setting is any of the followings in a multiple CPU system. • When a bit device is specified as a refresh device, a number other than a multiple of 16 is specified for the refresh-starting device. • The device specified is other than the one that may be specified. • The number of send points is an odd number. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerCheck the following in the multiple CPU auto refresh setting and make correction. • When specifying the bit device, specify a multiple of 16 for the refresh starting device. • Specify the device that may be specified for the refresh device. • Set the number of send points to an even number. p.944
3014[PARAMETER ERROR] • In a multiple CPU system, the online module change parameter (multiple CPU system parameter) settings differ from those of the reference CPU. • In a multiple CPU system, the online module change setting is enabled although the CPU module mounted does not support online module chang parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller• Match the online module change parameter with that of the reference CPU. • If the CPU module that does not support online module change is mounted, replace it with the CPU module that supports online module change. p.944
3015[PARAMETER ERROR] In a multiple CPU system configuration, the CPU verified is different from the one set in the parameter setting. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number/CPU No. ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerRead the individual information of the error using the peripheral device, check the parameter item corresponding to the numerical value (parameter No./CPU No.) and parameter of target CPU, and correct them. p.945
3016[PARAMETER ERROR] The CPU module incompatible with multiple CPU synchronized boot-up is set as the target for the synchronized boot-up in the [Multiple CPU synchronous startup setting]. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number/ CPU No. ■Diagnostic Timing • At power ON/ At reset/ At writing to progurammable controllerDelete the CPU module incompatible with multiple CPU synchronized boot-up from the setting. p.945
3040[PARAMETER ERROR] The parameter file is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetWith GX Developer, write [PLC parameter/Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.) p.945
3041[PARAMETER ERROR] Parameter file of intelligent function module is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetWith GX Developer, write [Intelligent function module parameter] to a valid drive to write the parameters then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) p.945
3042[PARAMETER ERROR] The system file that have stored the remote password setting information is damaged. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset• With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be a hardware error. (Contact your local Mitsubishi representative.) • When a valid drive for parameter is set to other than [program memory], set the parameter file (PARAM) at the boot file setting to be able to transmit to the program memory. With GX Developer, write [PLC parameter/ Network parameter/Remote password] to a valid drive then reload the power supply for system and/or reset the CPU module. If the same error occurs, it is thought to be hardware error. (Contact your local Mitsubishi representative.) p.945
3100[LINK PARA. ERROR] In a multiple CPU system, the CC-Link IE controller network module controlled by another CPU is specified as the head I/O number of the CC-Link IE controller network module. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN• Delete the network parameter of the CC-Link IE controller network module controlled by another CPU. • Change the setting to the head I/O number of the CC-Link IE controller network module controlled by host CPU. p.946
3101[LINK PARA. ERROR] The link refresh range exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executedChange the file register file for the one that enables entire range refresh. p.948
3102[LINK PARA. ERROR] A CC-Link IE controller network parameter error was detected. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN• Correct and write the network parameters. • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.) p.950
3103[LINK PARA. ERROR] In a multiple CPU system, Ethernet interface module under control of another station is specified to the start I/O number of the Ethernet network parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN• Delete the Ethernet network parameter of Ethernet interface module under control of another station. • Change the setting to the start I/O number of Ethernet interface module under control of the host station. p.951
3104[LINK PARA. ERROR] • The Ethernet, MELSECNET/H and MELSECNET/10 use the same network number. • The network number, station number or group number set in the network parameter is out of range. • The specified I/O number is outside the range of the used CPU module. • The Ethernet-specific parameter setting is not normal. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN• Correct and write the network parameters. • If the error occurs after correction, it suggests a hardware fault. (Contact your local Mitsubishi representative.) p.951
3105[LINK PARA. ERROR] In a multiple CPU system, the CC-Link module under control of another station is specified as the head I/O number of the CC-Link network parameter. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUN• Delete the CC-Link network parameter of the CC-Link module under control of another station. • Change the setting to the start I/O number of the CC-Link module under control of the host station. p.952
3106[LINK PARA. ERROR] The CC-Link link refresh range exceeded the file register capacity. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • When an END instruction executedChange the file register file for the one refresh- enabled in the whole range. p.953
3107[LINK PARA. ERROR] • The CC-Link parameter setting is incorrect. • The set mode is not allowed for the version of the mounted CC-Link module. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At reset/STOP RUNCheck the parameter setting. p.953
3200[SFC PARA. ERROR] The parameter setting is illegal. • Though Block 0 was set to "Automatic start" in the SFC setting of the PLC parameter dialog box, Block 0 does not exist. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUNRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.953
3201[SFC PARA. ERROR] The block parameter setting is illegal. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUN p.953
3202[SFC PARA. ERROR] The number of step relays specified in the device setting of the PLC parameter dialog box is less than that used in the program. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • STOP RUNRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.954
3203[SFC PARA. ERROR] The execution type of the SFC program specified in the program setting of the PLC parameter dialog box is other than scan execution. ■Collateral information • Common Information:File name • Individual Information:Parameter number ■Diagnostic Timing • At power-ON/ At reset/ STOP RUN*3 p.954
3300[SP. PARA ERROR] The start I/O number in the intelligent function module parameter set on GX Configurator differs from the actual I/O number. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerCheck the parameter setting. p.954
3301[SP. PARA ERROR] • The refresh setting of the intelligent function module exceeded the file register capacity. • The intelligent function module set in GX Configurator differs from the actually mounted module. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller• Change the file register file for the one which allows refresh in the whole range. • Check the parameter setting. p.954
3302[SP. PARA ERROR] The intelligent function module's refresh parameter are abnormal. ■Collateral information • Common Information:File name • Individual Information:Parameter number*2 ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controllerCheck the parameter setting. p.955
3303[SP. PARA ERROR] In a multiple CPU system, the automatic refresh setting or other parameter setting was made to the intelligent function module under control of another station. ■Collateral information • Common Information:File name/ Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power-On/ At reset/ STOP RUN/ At writing to progurammable controller• Delete the automatic refresh setting or other parameter setting of the intelligent function module under control of another CPU. • Change the setting to the automatic refresh setting or other parameter setting of the intelligent function module under control of the host CPU. p.955
3400[REMOTE PASS. ERR.] The head I/O number of the target module of the remote password is set to other than 0H to 0FF0H. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUNChange the head I/O number of the target module to be within the 0H to 0FF0H range. p.955
3401[REMOTE PASS. ERR.] Position specified as the head I/O number of the remote password file is incorrect due to one of the following reasons: • Module is not loaded. • Other than a the intelligent function module (I/O module) • Intelligent function module other than serial communication module, modem interface module or Ethernet module • Serial communication module or Ethernet module of function version A The intelligent function module where remote password is available is not mounted. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUNMount serial communication module, modem interface module or Ethernet module of function version B or later in the position specified in the head I/O No. of the remote password file. p.956
4000[INSTRCT. CODE ERR] • The program contains an instruction code that cannot be decoded. • An unusable instruction is included in the program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executedRead the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.957
4001[INSTRCT. CODE ERR] The program contains a dedicated instruction for SFC although it is not an SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed p.957
4002[INSTRCT. CODE ERR] • The name of dedicated instruction specified by the program is incorrect. • The dedicated instruction specified by the program cannot be executed by the specified module. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed p.957
4003[INSTRCT. CODE ERR] The number of devices for the dedicated instruction specified by the program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed p.957
4004[INSTRCT. CODE ERR] The device which cannot be used by the dedicated instruction specified by the program is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN When instruction executed p.957
4010[MISSING END INS.] There is no END (FEND) instruction in the program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUNRead the common information of the error using a peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.958
4020[CAN'T SET(P)] The total number of internal file pointers used by the program exceeds the number of internal file pointers set in the parameters. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN p.958
4021[CAN'T SET(P)] • The common pointer Nos. assigned to files overlap. • The local pointer Nos. assigned to files overlap. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN p.958
4030[CAN'T SET(I)] The allocation pointer Nos. assigned by files overlap. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • At power ON/At reset/STOP RUN p.958
4100[OPERATION ERROR] The instruction cannot process the contained data. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.958
4101[OPERATION ERROR] • The number of setting data dealt with the instruction exceeds the applicable range. • The storage data and constant of the device specified by the instruction exceeds the applicable range. • When writing to the host CPU shared memory, the write prohibited area is specified for the write destination address. • The range of storage data of the device specified by the instruction is duplicated. • The device specified by the instruction exceeds the range of the number of device points. • The interrupt pointer No. specified by the instruction exceeds the applicable range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.959
4102[OPERATION ERROR] In a multiple CPU system, the link direct device (J \ ) was specified for the network module under control of another station. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Delete from the program the link direct device which specifies the network module under control of another CPU. • Using the link direct device, specify the network module under control of the host CPU. p.960
4103[OPERATION ERROR] The configuration of the PID dedicated instruction is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.960
4105[OPERATION ERROR] PLOADP/PUNLOADP/PSWAPP instructins were executed while setting program memory check. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Delete the program memory check setting. • When using the program memory check, delete PLOADP/PUNLOADP/PSWAPP instructions. p.960
4107[OPERATION ERROR] 33 or more multiple CPU dedicated instructions were executed from one CPU module. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedUsing the multiple CPU dedicated instruction completion bit, provide interlocks to prevent one CPU module from executing 33 or more multiple CPU dedicated instructions. p.960
4109[OPERATION ERROR] With high speed interrupt setting PR, PRC, UDCNT1, UDCNT2, PLSY or PWM instruction is executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedDelete the high-speed interrupt setting. When using high-speed interrupt, delete the PR, PRC, UDCNT1, UDCNT2, PLSY and PWM instructions. p.961
4111[OPERATION ERROR] An attempt was made to perform write/read to/from the CPU shared memory write/read disable area of the host station CPU module with the instruction. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). p.961
4112[OPERATION ERROR] The CPU module that cannot be specified with the multiple CPU dedicated instruction was specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.961
4113[OPERATION ERROR] • When the SP.DEVST instruction is executed, the number of writing to the standard ROM of the day exceeds the value specified by SD695. • The value outside the specified range is set to SD695. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Check that the number of execution of the SP.DEVST instruction is proper. • Execute the SP.DEVST instruction again the following day or later day. Or, arrange the value of SD695. • Correct the value of SD695 so that it does not exceed the range. p.961
4120[OPERATION ERROR] Since the manual system switching enable flag (special register SM1592) is OFF, manual system switching cannot be executed by the control system switching instruction (SP. CONTSW). ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedTo execute control system switching by the SP. CONTSW instruction, turn ON the manual system switching enable flag (special register SM1592). p.961
4121[OPERATION ERROR] • In the separate mode, the control system switching instruction (SP. CONTSW) was executed in the standby system CPU module. • In the debug mode, the control system switching instruction (SP. CONTSW) was executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Reexamine the interlock signal for the SP. CONTSW instruction, and make sure that the SP. CONTSW instruction is executed in the control system only. (Since the SP. CONTSW instruction cannot be executed in the standby system, it is recommended to provide an interlock using the operation mode signal or like.) • As the SP. CONTSW instruction cannot be executed in the debug mode, reexamine the interlock signal related to the operation mode. p.961
4122[OPERATION ERROR] • The dedicated instruction was executed to the module mounted on the extension base unit in the redundant system. • The instruction for accessing the intelligent function module mounted on the extension base unit from the standby system at separate mode was executed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Delete the dedicated instruction for the module mounted on the extension base unit. • Delete the instruction for accessing the intelligent function module mounted on the extension base unit from the standby system. p.962
4130[OPERATION ERROR] Instructions to read SFC step comment (S(P).SFCSCOMR) and SFC transition condition comment (S(P).SFCTCOMR) are executed for the comment file in ATA card ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When END/other instruction executedTarget comment file is to be other than the comment file in ATA card. p.962
4131[OPERATION ERROR] The SFC program is started up by the instruction while the other SFC program has not yet been completed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedCheck the SFC program specified by the instruction. Or, check the executing status of the SFC program. p.962
4140[OPERATION ERROR] Operation where the input data is special value ("-0", unnormalized number, nonnumeric, ) is performed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it. p.962
4141[OPERATION ERROR] Overflow occurs at operation. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check the error step corresponding to the numerical value (program error part), and correct it. p.962
4200[FOR NEXT ERROR] No NEXT instruction was executed following the execution of a FOR instruction. Alternatively, there are fewer NEXT instructions than FOR instructions. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.962
4201[FOR NEXT ERROR] A NEXT instruction was executed although no FOR instruction has been executed. Alternatively, there are more NEXT instructions than FOR instructions. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.963
4202[FOR NEXT ERROR] More than 16 nesting levels are programmed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedKeep nesting levels at 16 or under. p.963
4203[FOR NEXT ERROR] A BREAK instruction was executed although no FOR instruction has been executed prior to that. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.963
4210[CAN'T EXECUTE(P)] The CALL instruction is executed, but there is no subroutine at the specified pointer. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.963
4211[CAN'T EXECUTE(P)] There was no RET instruction in the executed subroutine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.963
4212[CAN'T EXECUTE(P)] The RET instruction exists before the FEND instruction of the main routine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.963
4213[CAN'T EXECUTE(P)] More than 16 nesting levels are programmed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedKeep nesting levels at 16 or under. p.963
4220[CAN'T EXECUTE(I)] Though an interrupt input occurred, the corresponding interrupt pointer does not exist. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.964
4221[CAN'T EXECUTE(I)] An IRET instruction does not exist in the executed interrupt program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.964
4223[CAN'T EXECUTE(I)] The IRET instruction exists before the FEND instruction of the main routine program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.964
4225[CAN'T EXECUTE(I)] The interrupt pointer for the module mounted on the extension base unit is set in the redundant system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power-ON/At resetDelete the setting of interrupt pointer for the module mounted on the extension base unit, since it cannot be used. p.964
4230[INST. FORMAT ERR.] The number of CHK and CHKEND instructions is not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.964
4231[INST. FORMAT ERR.] The number of IX and IXEND instructions is not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.964
4235[INST. FORMAT ERR.] The configuration of the check conditions for the CHK instruction is incorrect. Alternatively, a CHK instruction has been used in a low speed execution type program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.965
4350[MULTI-COM.ERROR] • The multiple CPU high-speed transmission dedicated instruction used in the program specifies the wrong CPU module. Or, the setting in the CPU module is incompatible with the multiple CPU high-speed transmission dedicated instruction. • The reserved CPU is specified. • The uninstalled CPU is specified. • The head I/O number of the target CPU/16 (n1) is outside the range of 3EH to 3E3H. • The CPU module where the instruction cannot be executed is specified. • The instruction is executed in a single CPU system. • The host CPU is specified. • The instruction is executed without setting the "Use multiple CPU high speed communication". ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.965
4351[MULTI-COM.ERROR] • The multiple CPU high-speed transmission dedicated instruction specified by the program cannot be executed to the specified target CPU module. • The instruction name is wrong. • The instruction unsupported by the target CPU module is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.965
4352[MULTI-COM.ERROR] The number of devices for the multiple CPU high- speed transmission dedicated instruction specified by the program is wrong. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.965
4353[MULTI-COM.ERROR] The device which cannot be used for the multiple CPU high-speed transmission dedicated instruction specified by the program is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead the common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.966
4354[MULTI-COM.ERROR] The character string which cannot be handled by the multiple CPU high-speed transmission dedicated instruction is specified. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.966
4355[MULTI-COM.ERROR] The number of read/write data (number of request/ receive data) for the multiple CPU high-speed transmission dedicated instruction specified by the program is not valid. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.966
4400[SFCP. CODE ERROR] No SFCP or SFCPEND instruction in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNWrite the program to the CPU module again using GX Developer. p.966
4410[CAN'T SET(BL)] The block number designated by the SFC program exceeds the range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.966
4411[CAN'T SET(BL)] Block number designations overlap in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.966
4420[CAN'T SET(S)] A step number designated in an SFC program exceeds the range. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.966
4421[CAN'T SET(S)] Total number of steps in all SFC programs exceed the maximum. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNWrite the program to the CPU module again using GX Developer. p.967
4422[CAN'T SET(S)] Step number designations overlap in SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.967
4423[CAN'T SET(S)] The total number of (maximum step No.+1) of each block exceeds the total number of step relays. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNCorrect the total number of step relays so that it does not exceed the total number of (maximum step No.+1) of each block. p.967
4430[SFC EXE. ERROR] The SFC program cannot be executed. • The data of the block data setting is illegal. • The SFC data device of the block data setting is beyond the device setting range set in the PLC parameter. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUN• Write the program to the CPU module again using GX Developer. • After correcting the setting of the SFC data device, write it to the CPU module. • After correcting the device setting range set in the PLC parameter, write it to the CPU module. p.967
4431[SFC EXE. ERROR] The SFC program cannot be executed. • The block parameter setting is abnormal. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUNWrite the program to the CPU module again using GX Developer. p.967
4432[SFC EXE. ERROR] The SFC program cannot be executed. • The structure of the SFC program is illegal. ■Collateral information • Common Information:File name/Drive name • Individual Information:– ■Diagnostic Timing • STOP RUN p.967
4500[SFCP. FORMAT ERR.] The numbers of BLOCK and BEND instructions in an SFC program are not equal. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNWrite the program to the CPU module again using the peripheral device. p.968
4501[SFCP. FORMAT ERR.] The configuration of the STEP* to TRAN* to TSET to SEND instructions in the SFC program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.968
4502[SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • STEPI* instruction does not exist in the block of the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.968
4503[SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • The step specified in the TSET instruction does not exist. • In jump transition, the host step number was specified as the destination step number. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN• Write the program to the CPU module again using GX Developer. • Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). p.968
4504[SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • The step specified in the TAND instruction does not exist. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNWrite the program to the CPU module again using GX Developer. p.968
4505[SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • In the operation output of a step, the SET Sn/ BLmSn or RST Sn/BLmSn instruction was specified for the host step. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNRead the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). p.969
4506[SFCP. FORMAT ERR.] The structure of the SFC program is illegal. • In a reset step, the host step number was specified as the destination step. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.969
4600[SFCP. OPE. ERROR] The SFC program contains data that cannot be processed. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.969
4601[SFCP. OPE. ERROR] Exceeds device range that can be designated by the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.969
4602[SFCP. OPE. ERROR] The START instruction in an SFC program is preceded by an END instruction. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.969
4610[SFCP. EXE. ERROR] The active step information at presumptive start of the SFC program is incorrect. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUNRead common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. The program is automatically subjected to an initial start. p.970
4611[SFCP. EXE. ERROR] Key-switch was reset during RUN when presumptive start was designated for SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • STOP RUN p.970
4620[BLOCK EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.970
4621[BLOCK EXE. ERROR] Startup was attempted at a block that does not exist in the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Read the common information of the error using GX Developer, and check and correct the error step corresponding to that value (program error location). • Turn ON if the special relay SM321 is OFF. p.970
4630[STEP EXE. ERROR] Startup was executed at a block in the SFC program that was already started up. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.970
4631[STEP EXE. ERROR] • Startup was attempted at the step that does not exist in the SFC program. Or, the step that does not exist in the SFC program was specified for end. • Forced transition was executed based on the transition condition that does not exit in the SFC program. Or, the transition condition for forced transition that does not exit in the SFC program was canceled. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed• Read the common information of the error using the peripheral device, and check and correct the error step corresponding to that value (program error location). • Turn ON if the special relay SM321 is OFF. p.971
4632[STEP EXE. ERROR] There were too many simultaneous active steps in blocks that can be designated by the SFC program. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executedRead common information of the error using the peripheral device, check error step corresponding to its numerical value (program error location), and correct the problem. p.971
4633[STEP EXE. ERROR] There were too many simultaneous active steps in all blocks that can be designated. ■Collateral information • Common Information:Program error location • Individual Information:– ■Diagnostic Timing • When instruction executed p.971
5000[WDT ERROR] • The scan time of the initial execution type program exceeded the initial execution monitoring time specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always• Read the individual information of the error from the peripheral device, check its value (time), and shorten the scan time. • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter. • Resolve the endless loop caused by jump transition. p.972
5001[WDT ERROR] • The scan time of the program exceeded the WDT value specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always• Read the individual information of the error using the peripheral device, check its value (time), and shorten the scan time. • Change the initial execution monitoring time or the WDT value in the PLC RAS setting of the PLC parameter. • Resolve the endless loop caused by jump transition. p.972
5010[PRG. TIME OVER] The program scan time exceeded the constant scan setting time specified in the PLC RAS setting of the PLC parameter. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • Always• Review the constant scan setting time. • Review the constant scan setting time and low speed program execution time in the PLC parameter so that the excess time of constant scan can be fully secured. p.973
5011[PRG. TIME OVER] The scan time of the low speed execution type program exceeded the low speed execution watch time specified in the PLC RAS setting of the PLC parameter dialog box. ■Collateral information • Common Information:Time (value set) • Individual Information:Time (value actually measured) ■Diagnostic Timing • AlwaysRead the individual information of the error using the peripheral device, check the numerical value (time) there, and shorten scan time if necessary. Change the low speed execution watch time in the PLC RAS setting of the PLC parameter dialog box. p.973
6000[FILE DIFF.] In a redundant system, the control system and standby system do not have the same programs and parameters. The file type detected as different between the two systems can be checked by the file name of the error common information. • The program is different. (File name = ********.QPG) • The PLC parameters/network parameters/ redundant parameters are different. (File name = PARAM.QPA) • The remote password is different. (File name = PARAM.QPA) • The intelligent function module parameters are different. (File name = IPARAM.QPA) • The device initial values are different. (File name = ********.QDI) • The capacity of each write destination within the CPU for online pchange of multiple program blocks is different. (File name = MBOC.QMB) (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:File name • Individual Information:– ■Diagnostic Timing • At power ON/At reset/ At tracking cable connection/At changing to backup mode/At completion of write during RUN/ At system switching/At switching both systems into RUN• Match the programs and parameters of the control system and standby system. • Verify the systems by either of the following procedures 1), 2) to clarify the differences between the files of the two systems, then correct a wrong file, and execute “Write to PLC“ again. 1) After reading the programs/parameters of System A using GX Developer or PX Developer, verify them with those of System B. 2) Verify the programs/parameters of GX Developer or PX Developer saved in the offline environment with those written to the CPU modules of both systems. • When the capacity of each write destination within the CPU for online change of multiple program blocks is different between the two systems, take corrective action 1) or 2). 1) Using the memory copy from control system to standby system, copy the program memory from the control system to the standby system. 2) Format the CPU module program memories of both systems. (For the capacity of each write destination within the CPU for online change of multiple program blocks, set the same value to both systems.) p.974
6001[FILE DIFF.] In a redundant system, the valid parameter drive settings (SW2, SW3) made by the DIP switches are not the same. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode changeMatch the valid parameter drive settings (SW2, SW3) by the DIP switches of the control system and standby system. p.974
SW3by the DIP switches of the control system p.974
6010[OPE. MODE DIFF.] The operational status of the control system and standby system in the redundant system is not the same. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysSynchronise the operation statuses of the control system and standby system. p.975
6020[OPE. MODE DIFF.] At power ON/reset, the RUN/STOP switch settings of the control system and standby system are not the same in a redundant system. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetSet the RUN/STOP switches of the control system and standby system to the same setting. p.975
6030[UNIT LAY. DIFF.] • In a redundant system, the module configuration differs between the control system and standby system. • The network module mode setting differs between the two systems. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode change• Match the module configurations of the control system and standby system. • In the redundant setting of the network parameter dialog box, match the mode setting of System B to that of System A. p.975
6035[UNIT LAY. DIFF.] In a redundant system, the CPU module model name differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connection/At operation mode changeMatch the model names of the control system and standby system. p.975
6036[UNIT LAY. DIFF.] A difference in the remote I/O configuration of the MELSECNET/H multiplexed remote I/O network between the control system and standby system of a redundant system was detected. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Module No. • Individual Information:– ■Diagnostic Timing • AlwaysCheck the network cables of the MELSECNET/H multiplexed remote I/O network for disconnection. p.976
6040[CARD TYPE DIFF.] In a redundant system, the memory card installation status (installed/not installed) differs between the control system and standby system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetMatch the memory card installation statuses (set/ not set) of the control system and standby system. p.976
6041[CARD TYPE DIFF.] In a redundant system, the memory card type differs between the control system and standby system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetMatch the memory card types of the control system and standby system. p.976
6050[CAN'T EXE. MODE] The function inexecutable in the debug mode or operation mode (backup/separate mode) was executed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysExecute the function executable in the debug mode or operation mode (backup/separate mode). p.976
6060[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connectionMatch the operation modes of the control system and standby system. p.976
6061[CPU MODE DIFF.] In a redundant system, the operation mode (backup/separate) differs between the control system and standby system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executedMatch the operation modes of the control system and standby system. p.977
6062[CPU MODE DIFF.] Both System A and B are in the same system status (control system). (This can be detected from the system B of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset/At tracking cable connectionPower the CPU module (System B) which resulted in a stop error, OFF and then ON. p.977
6100[TRK. TRANS. ERR.] • An error (e.g. retry limit exceeded) occurred in tracking data transmission. (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always• Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.977
6101[TRK. TRANS. ERR.] • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always p.977
6102[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.978
6103[TRK. TRANS. ERR.] • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always p.978
6105[TRK. TRANS. ERR.] • An error (e.g. retry limit exceeded) occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always p.978
6106[TRK. TRANS. ERR.] • A timeout error occurred in tracking (data transmission). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking transmission data classification • Individual Information:– ■Diagnostic Timing • Always• Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.978
6107[TRK. TRANS. ERR.] A data sum value error occurred in tracking (data reception). (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Check the CPU module or tracking cable. If the error still occurs, this indicates the CPU module or tracking cable is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.979
6108[TRK. TRANS. ERR.] • A data error (other than sum value error) occurred in tracking (data reception). (This error may be caused by tracking cable removal or other system power-off (including reset).) • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always p.979
6110[TRK. SIZE ERROR] The tracking capacity exceeded the allowed range. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:Tracking capacity excess error factor • Individual Information:– ■Diagnostic Timing • When an END instruction executedReexamine the tracking capacity. p.979
6111[TRK. SIZE ERROR] The control system does not have enough file register capacity for the file registers specified in the tracking settings. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executedSwitch to the file registers of which capacity is greater than the file registers specified in the tracking settings. p.979
6112[TRK. SIZE ERROR] File registers greater than those of the standby system were tracked and transmitted from the control system. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • When an END instruction executedSwitch to the file registers of which capacity is greater than the file registers specified in the tracking settings. p.979
6120[TRK. CABLE ERR.] • A start was made without the tracking cable being connected. • A start was made with the tracking cable faulty. • As the tracking hardware on the CPU module side was faulty, communication with the other system could not be made via the tracking cable. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetMake a start after connecting the tracking cable. If the same error still occurs, this indicates the tracking cable or CPU module side tracking transmission hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.980
6130[TRK. DISCONNECT] • The tracking cable was removed. • The tracking cable became faulty while the CPU module is running. • The CPU module side tracking hardware became faulty. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• If the tracking cable was removed, connect the tracking cable to the connectors of the CPU modules of the two systems. • When the error is not resolved after connecting the tracking cable to the connectors of the CPU modules of the two systems and resetting the error, the tracking cable or CPU module side tracking hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.980
6140[TRK.INIT. ERROR] • The other system did not respond during initial communication at power ON/reset. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the control system or standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Power the corresponding CPU module OFF and then ON again, or reset it and then unreset. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.980
6200[CONTROL EXE.] The standby system has been switched to the control system in a redundant system. (Detected by the CPU that was switched from the standby system to the control system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:– ■Diagnostic Timing • Always– p.980
6210[STANDBY] The control system has been switched to the standby system in a redundant system. (Detected by the CPU that was switched from the control system to the standby system) Since this error code does not indicate the error information of the CPU module but indicates its status, the error code and error information are not stored into SD0 to 26, but are stored into the error log every system switching. (Check the error information by reading the error log using GX Developer.) ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:– ■Diagnostic Timing • Always– p.981
6220[CAN'T SWITCH] System switching cannot be executed due to standby system error/ tracking cable error/ online module change in execution at separate mode. Causes for switching system at control system are as follows: • System switching by SP. CONTSW instruction • System switching request from network module ■Collateral information • Common Information:Reason(s) for system switching • Individual Information:Reason(s) for system switching failure ■Diagnostic Timing • At switching execution• Check the status of the standby system and resolve the error. • Complete the online module change. p.981
6300[STANDBY SYS. DOWN] Any of the following errors was detected in the backup mode. • The standby system has not started up in the redundant system. • The standby system has developed a stop error in the redundant system. • The CPU module in the debug mode was connected to the operating control system. (This can be detected from the control system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• Check whether the standby system is on or not, and if it is not on, power it on. • Check whether the standby system has been reset or not, and if it has been reset, unreset it. • Check whether the standby system has developed a stop error or not, and if it has developed the error, remove the error factor and restart it. • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and standby system are combined correctly. p.981
6310[CONTROL SYS. DOWN] Any of the following errors was detected in the backup mode. • The control system has not started up in the redundant system. • The control system has developed a stop error in the redundant system. • The CPU module in the debug mode was connected to the operating standby system. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • Always• The standby system exists but the control system does not exist. • Check whether the system other than the standby system is on or not, and if it is not on, power it on. • Check whether the system other than the standby system has been reset or not, and if it is has been reset, unreset it. • Check whether the system other than the standby system has developed a stop error or not, and if has developed the error, remove the error factor, set the control system and standby system to the same operating status, and restart. • When the CPU module in the debug mode was connected to the control system operating in the backup mode, make connection so that the control system and control system are combined correctly. • Confirm the redundant system startup procedure, and execute a startup again. p.982
6311[CONTROL SYS. DOWN] • As consistency check data has not transmitted from the control system in a redundant system, the other system cannot start as a standby system. • The error occurred at a startup since the redundant system startup procedure was not followed. (This can be detected from the standby system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Replace the tracking cable. If the same error still occurs, this indicates the CPU module is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) • Confirm the redundant system startup procedure, and execute a startup again. p.982
6313[CONTROL SYS. DOWN] The control system detected the error of the system configuration and informed it to the standby system (host system) in the redundant system. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetRestart the system after checking that the connection between base unit and the system configuration (type/number/parameter of module) are correct. p.982
6400[PRG. MEM. CLEAR] The memory copy from control system to standby system was executed, and the program memory was cleared. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At execution of the memory copy from control system to standby systemAfter the memory copy from control system to standby system is completed, switch power OFF and then ON, or make a reset. p.982
6410[MEM.COPY EXE] The memory copy from control system to standby system was executed. (This can be detected from the control system of the redundant system.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At execution of the function of copying memory from control system to standby system– p.983
6500[TRK. PARA. ERROR] The file register file specified in the tracking setting of the PLC parameter dialog box does not exist. ■Collateral information • Common Information:File name/Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At resetRead the individual information of the error using GX Developer, and check and correct the drive name and file name. Create the specified file. p.983
6501[TRK. PARA. ERROR] The file register range specified in the device detail setting of the tracking setting of the PLC parameter dialog box exceeded the specified file register file capacity. ■Collateral information • Common Information:File name/Drive name • Individual Information:Parameter number ■Diagnostic Timing • At power ON/At resetRead the individual information of the error using GX Developer, and increase the file register capacity. p.983
7000[MULTI CPU DOWN] • In the operating mode of a multiple CPU system, a CPU error occurred at the CPU where "All station stop by stop error of CPU " was selected. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. • CPU modules other than CPU No.1 were removed from the base unit in operation, or reset. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • Always• Read the individual information of the error using GX Developer, identify the error of the CPU module, and remove the error. • Remove the CPU module incompatible with the multiple CPU system from the main base unit. • Check the mounting status of CPU modules other than CPU No.1 and whether the CPU modules were reset. p.984
7002[MULTI CPU DOWN] • There is no response from the target CPU module in a multiple CPU system during initial communication. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Reset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.) • Remove the CPU module incompatible with the multiple CPU system from the main base unit. Or, replace the CPU module incompatible with the multiple CPU system with the compatible one. p.984
7003[MULTI CPU DOWN] There is no response from the target CPU module in a multiple CPU system at initial communication stage. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetReset the CPU module and RUN it again. If the same error is displayed again, this suggests the hardware fault of any of the CPU modules. (Contact your local Mitsubishi representative.) p.984
7004[MULTI CPU DOWN] In a multiple CPU system, a data error occurred in communication between the CPU modules. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • Always• Check the system configuration to see if modules are mounted in excess of the number of I/O points. • When there are no problems in the system configuration, this indicates the CPU module hardware is faulty. (Contact your local Mitsubishi representative, explaining a detailed description of the problem.) p.985
7010[MULTI EXE. ERROR] • In a multiple CPU system, a faulty CPU module was mounted. • In a multiple CPU system, a CPU module incompatible with the multiple CPU system was mounted. (The CPU module compatible with the multiple CPU system was used to detect an error.) • In a multiple CPU system, any of the CPU No. 2 to 4 was reset with power ON. (The CPU whose reset state was cancelled was used to detect an error.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Read the individual information of the error using GX Developer, and replace the faulty CPU module. • Replace the CPU module with the one compatible with the multiple CPU system. • Do not reset any of the No. 2 to 4 CPU modules. • Reset CPU No. 1 and restart the multiple CPU system. p.985
7011[MULTI EXE. ERROR] Either of the following settings was made in a multiple CPU system. • Multiple CPU automatic refresh setting was made for the inapplicable CPU module. • "I/O sharing when using multiple CPUs" setting was made for the inapplicable CPU module. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Correct the multiple CPU automatic refresh setting. • Correct the "I/O sharing when using multiple CPUs" setting. p.986
7013[MULTI EXE. ERROR] The Q172(H)CPU(N) or Q173(H)CPU(N) is mounted to the CPU slot or slots 0 to 2. (The module may break down.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Check the QCPU and Motion CPU that can be used in a multiple CPU system, and change the system configuration. • Remove the Motion CPU incompatible with the multiple CPU system. p.986
7020[MULTI CPU ERROR] In the operating mode of a multiple CPU system, an error occurred in the CPU where "system stop" was not selected. (The CPU module where no error occurred was used to detect an error.) ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • AlwaysRead the individual information of the error using the peripheral device, check the error of the CPU module resulting in CPU module fault, and remove the error. p.986
7030[CPU LAY. ERROR] An assignment error occurred in the CPU- mountable slot (CPU slot, I/O slot 0, 1) in excess of the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)). • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration. p.986
7031[CPU LAY. ERROR] An assignment error occurred within the range of the number of CPUs specified in the multiple CPU setting of the PLC parameter dialog box. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Set the same value to the number of CPU modules specified in the multiple CPU setting of the PLC parameter dialog box and the number of mounted CPU modules (including CPU (empty)). • Make the type specified in the I/O assignment setting of the PLC parameter dialog box consistent with the CPU module configuration. p.987
7032[CPU LAY. ERROR] • The number of CPU modules mounted in a multiple CPU system is wrong. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetConfigure a system so that the number of mountable modules of each CPU module does not exceed the maximum number of mountable modules specified in the specification. p.987
7035[CPU LAY. ERROR] The CPU module has been mounted on the inapplicable slot. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At resetMount the CPU module on the applicable slot. p.987
7036[CPU RAY ERROR] The host CPU No. set by the multiple CPU setting and the host CPU No. determined by the mounting position of the CPU module are not the same. ■Collateral information • Common Information:Module No.(CPU No.) • Individual Information:– ■Diagnostic Timing • At power ON/At reset• Mount the mounting slot of the CPU module correctly. • Correct the host CPU No. set by the multiple CPU setting to the CPU No. determined by the mounting position of the CPU module. p.987
8031[INCORRECT FILE] The error of stored file (enabled parameter file) is detected. ■Collateral information • Common Information:– • Individual Information:File diagnostic information ■Diagnostic Timing • At power-On/ • At reset/ • STOP RUN/At writing to progurammable controllerWrite the file shown as SD17 to SD22 of individual information to the drive shown as SD16(L) of individual information, and turn ON from OFF the power supply of the CPU module or cancel the reset. If the same error is displayed again, the CPU module has hardware failure. Contact your local Mitsubishi representative, explaining a detailed description of the problem. p.987
9000[F**** ] Annunciator (F) was set ON ■Collateral information • Common Information:Program error location • Individual Information:Annunciator number ■Diagnostic Timing • When instruction executedRead the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (annunciator number). p.987
9010[<CHK>ERR ***-***] Error detected by the CHK instruction. ■Collateral information • Common Information:Program error location • Individual Information:Failure No. ■Diagnostic Timing • When instruction executedRead the individual information of the error using the peripheral device, and check the program corresponding to the numerical value (error number) there. p.988
9020[BOOT OK] Storage of data onto ROM was completed normally in automatic write to standard ROM. (BOOT LED also flickers.) ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • At power ON/At resetUse the DIP switches to set the valid parameter drive to the standard ROM. Then, switch power on again, and perform boot operation from the standard ROM. p.988
10000[CONT. UNIT ERROR] In the multiple CPU system, an error occurred in the CPU module other than the Process CPU/High Performance model QCPU. ■Collateral information • Common Information:– • Individual Information:– ■Diagnostic Timing • AlwaysCheck the details of the generated error by connecting to the corresponding CPU module using GX Developer. p.988

Ask about the Mitsubishi Electronics QCPU

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Mitsubishi Electronics QCPU

Be the first to ask — other owners or our team will answer.

Original document

Mitsubishi Electronics QCPU manual PDF

1204 pages·38.8 MB·Welding System·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…