Summary of the content on the page No. 1
Summary of the content on the page No. 2
Summary of the content on the page No. 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
Summary of the content on the page No. 4
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 Partial 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 Revision because of function support by the Universal model QCPU having a Jul., 2009 SH (NA)-080809ENG-C serial number "11043" or later Partial correction
Summary of the content on the page No. 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 program
Summary of the content on the page No. 6
CONTENTS SAFETY PRECAUTIONS ..................................................................................................................A - 1 REVISIONS .......................................................................................................................................A - 2 INTRODUCTION ...............................................................................................................................A - 3 CONTENTS ..............................................
Summary of the content on the page No. 7
2.5.11 Character string processing instructions .................................................................... 2 - 43 2.5.12 Special function instructions....................................................................................... 2 - 46 2.5.13 Data control instructions............................................................................................. 2 - 49 2.5.14 Switching instructions...................................................................................
Summary of the content on the page No. 8
5.2.3 Operation results inversion (INV) ............................................................................... 5 - 15 5.2.4 Operation result conversions (MEP,MEF) .................................................................. 5 - 17 5.2.5 Pulse conversions of edge relay operation results (EGP,EGF).................................. 5 - 18 5.3 Output Instructions 5 - 20 5.3.1 Out instruction (excluding timers, counters, and annunciators) (OUT)....................... 5 - 20 5.3.2 Timer
Summary of the content on the page No. 9
6.2.10 Addition and subtraction of floating decimal point data (Double precision) (ED+(P),ED-(P)) ................................................................................................. 6 - 50 6.2.11 Multiplication and division of floating decimal point data (Single precision) (E*(P),E/(P)) ....................................................................................................... 6 - 54 6.2.12 Multiplication and division of floating decimal point data (Double precision)
Summary of the content on the page No. 10
6.6 Program Execution Control Instructions 6 - 133 6.6.1 Interrupt disable/enable instructions, interrupt program mask (DI,EI,IMASK) .......... 6 - 133 6.6.2 Recovery from interrupt programs (IRET) ................................................................ 6 - 139 6.7 I/O Refresh Instructions 6 - 141 6.7.1 I/O refresh (RFS(P)) ................................................................................................. 6 - 141 6.8 Other Convenient Instructions 6 - 143 6.8.1 Counter 1-p
Summary of the content on the page No. 11
7.5.5 7-segment decode (SEG(P))...................................................................................... 7 - 75 7.5.6 4-bit dissociation of 16-bit data (DIS(P))..................................................................... 7 - 77 7.5.7 4-bit linking of 16-bit data (UNI(P))............................................................................. 7 - 79 7.5.8 Dissociation or linking of random data (NDIS(P),NUNI(P)) ........................................ 7 - 81 7.5.9 Data
Summary of the content on the page No. 12
7.11.3 Conversion from BCD 4-digit and 8-digit to decimal ASCII data (BCDDA(P),DBCDDA(P))................................................................................. 7 - 189 7.11.4 Conversion from decimal ASCII to BIN 16-bit and 32-bit data (DABIN(P),DDABIN(P)).................................................................................... 7 - 192 7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))...............................................
Summary of the content on the page No. 13
7.12.25 Common logarithm operation on floating-point data (Single precision) (LOG10(P))....................................................................................................... 7 - 300 7.12.26 Common logarithm operation on floating-point data (Double precision) (LOG10D(P)) .................................................................................................... 7 - 302 7.12.27 Random number generation and series updates (RND(P),SRND(P)) ..................... 7 - 304 7.
Summary of the content on the page No. 14
7.18.5 File register direct 1-byte write (ZRWRB(P)) ............................................................ 7 - 393 7.18.6 Indirect address read operations (ADRSET(P)) ....................................................... 7 - 395 7.18.7 Numerical key input from keyboard (KEY) ............................................................... 7 - 396 7.18.8 Batch save or recovery of index register (ZPUSH(P),ZPOP(P)) .............................. 7 - 400 7.18.9 Reading Module Information (UNI
Summary of the content on the page No. 15
12.1.4 Error code list (2000 to 2999)................................................................................... 12 - 16 12.1.5 Error code list (3000 to 3999)................................................................................... 12 - 34 12.1.6 Error code list (4000 to 4999)................................................................................... 12 - 51 12.1.7 Error code list (5000 to 5999)............................................................................
Summary of the content on the page No. 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. Nunber CPU module 1) Basic model QCPU 2) High Perfomance model QCPU 3) Process CPU 4) Redundant CPU 5) Universal model QCPU :Basic manual, :Other CPU module man
Summary of the content on the page No. 17
Related Manuals Manual name Description < Manual number (model code) > Specifications, procedures and settings before system operation, parameter CC-Link IE Controller Network Reference Manual setting, programming, and troubleshooting of the CC-Link IE controller network module < SH-080668ENG (13JV16) > 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 a
Summary of the content on the page No. 18
MEMO A-16
Summary of the content on the page No. 19
1 GENERAL DESCRIPTION 1 1-1
Summary of the content on the page No. 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 man