Home

Mitsubishi Programmable Controller Training

image

Contents

1. 1 word DSFL DSFL D n Instruction Execution Processing details ae symbol condition Number of basic steps App 5 Number of basic steps Instruction l l Execution P y Category ambo Symbol rocessing details ondion Bit tests BKRST BKRST S n Batch reset of Instruction l Execution Processing details i symbol condition vo O t O gt zZ basic steps S2 In gt D Position of match D 1 Number of matches C D Position of match D 1 Number of matches op J D ee dp C lt U o o ail o o E S D e S D n 8 256 decode S Decode rn gt DECOP s D n ENCO S Din 256 8 decode e App
2. A D INPUT D A OUTPUT CXE XE XD XOX XA XS 8000 Sa e Sa 5 2 Basic Operation 1 Operation Before Creating Ladder Programs 9 2 1 Internet Internet Explorer 2 E mail All Programs 7 e F 3 Select Starting up GX Works2 a MELSOFT Applicatior me e E Ta Gx Works2 gt ME GY Works fe a Bor 6 GX Works2 starts up r OO oo ee o TET senep a n e button 1 Click the 2 Select All Programs 3 Select MELSOFT Application 4 Select GX Works2 Put the mouse cursor over the items to select the menu Clicking or double clicking the mouse is not required 5 Click GX Works2 6 GX Works2 starts up 5 2 2 Selecting programmable controller type and project type creating a new project 1 Click IB on the toolbar or select Project New Project Ctrl HN 2 Click the Project Type list button J 2 Select 4 Ss Fe 3 The Project Type list is displayed Select Simple Project k A J ee 3 Click and select Spent The Simple project creates sequence programs using instructions for Mitsubishi programmable controller CPU Structured project The structured project creates programs with a
3. z 3 LATAN _ D 5 Tan 8 1 8 D 1 0 rue r ara Teo Kall pad _ s 0H 1s s 00 0 RADP E D Conversion from angle to radian ora _ s 0H 1 1 0 DEGP E D Conversion from radian to angle son e Pam Square root 3 Sone 808 sor al Teee sor cad Te EH taps D oe eo al RND D Generates a random number from 0 to Va L less than 32767 and stores it to the RNDP D device specified by D x 2 SRND D Updates random number series PTL according to the 16 bit BIN data stored in SRNDP D the device specified by S App 16 Instruction l Execution Processing details E symbol condition Category Number of basic steps Integral part Decimal part 2S Integral part Decimal part Sign Integral part Decimal part ay ey ae ee Sign Integral part Decimal part A fL Sign Integral part Decimal part D E E Sign Integral part Decimal part l Sign Integral part BACOSP BACOSP S D Decimal part S D Sign Integral part BATANP BATANP S D Decimal part A e aL EA App 17 13 Data control instructions Instruc
4. Main base unit Extension base unit requiring a power Not requiring a supply module power supply module B With three DT B I O modules SIO y Q52B ka Q33B amp Q63B For two modules z With five 2 I O modules 5 8 O O o a Q55B gt With eight I O modules o 3 3 A Q With 12 2 gt a I O modules LO 5 Q312B Q612B Multiple CPU high speed main base unit gt ex With eight a gt I O modules O a Q38DB SS ex With 12 a I O modules S O a Q312DB Slim type main base unit gt 2 With two alz I O modules S O Q32SB ES ex With three Bl I O modules S O co Q33SB gt ee ex With five a 7 I O modules y O a Q35SB The main roles of the base unit are fixing the power supply module CPU module and I O modules supplying 5VDC power from the power supply module to the CPU module and I O modules and transmitting the control signals to each module Power Supply Module Output Q61P 100V to 240VAC SVDC 6A Q62P 100V to 240VAC 5VDC 3A 24VDC 0 6A Q64PN Q61P D Q61SP CPU Module Maximum 1 O points for connecting to a programmable controller QOQUJCPU QOOUCPU QO1UCPU Q02UCPU QO3UD E CPU 20ns Q04UD E HCPU QO6UD E HCPU Bi 4096 points Q26UD E HCPU 260K steps I O Module iwovac UT o S e T S zvace o o S o o oo 24VDC positive com
5. depth 98mm 3 86inch xm Main base unit with 5 slots 245mm 9 65inch Main base unit with 8 slots 328mm 12 92inch Main base unit with 12 slots 439mm 17 28inch Connection of up to 7 extension base units Up to seven extension base units can be connected to the Q series CPU module The whole extension cable length is 13 2m which enables flexible layout of base units 8 Memory extension by memory card The QCPU equips the memory card installing connector so that a memory card with the capacity of up to 32M byte can be connected The 32M byte memory card can be connected only when an ATA card is used Installing large capacity memory cards enables large capacity files to be managed which allows for the comment setting to all data devices and saving old programs in a memory as correction data 3 The Basic model QCPU QO0 J CPU and Q01UCPU do not support memory cards For the High Performance model QCPU available file register points differs depending on the function version and serial number For details refer to the QCPU User s Manual Hardware Design Maintenance and Inspection 9 Automatic writing to standard ROM Parameters and programs of the memory cards can be written to the standard ROM of the CPU module without GX Works2 4 The Basic model QCPU does not support the following functions Automatic writing to standard ROM 5 The Un
6. S TOP ni n2 n3 In4 FROM nt n2 D Reads the device data from the other CPU shared memories and stores FROMP n1 n2 D the data in the host station Executes the auto refreshing of the COM intelligent function module general data and multiple CPU shared memory App 22 Appendix 2 How to Create Ladder Programs with GX Works2 O lt a g H LH a AH Ladder program creation methods include the following five methods 1 Inputting list expressions mnemonic language with the keyboard on the ladder program creation screen o Using the tool buttons on the toolbar Using the function keys Using the items of the menu bar 5 Directly inputting devices only for I O devices The following table shows the operations of each method Tool bution X41 in the device instruction input LD X1 gt Enter LDI X1 Enter OR X1 Enter ORI X1 gt OUT Y1 gt MOV K1 DO gt LDP X1 gt LDPI X1 field Click the button Click 46 X1 in the device instruction input field Click the button Ea X1 in the device instruction input field Click the button e X1 in the struction input field gt Click the button Click 42 Y1 in the device instruction input field Click the button t MOV K1 DO in the devic
7. Terminates GX Works2 Menu bar Menu bar is a most frequently used item to operate GX Works2 Click the menu bar to select a variety of functions from the drop down menu Project Edit Find Replace Compile wiew Online Debug Diagnostics Tool Window Help Toolbar Toolbar equips buttons to easily access the commonly used functions This enables a quicker operation Point the cursor to the tool button aa Start Monitoring all windows enol to show the function of each button Tab When multiple work windows are open they are displayed in the tab browser format Clicking a tab activates the corresponding work window View contents display area View contents display area displays the contents of the currently selected view View selection area View selection area allows selection of the view to be displayed Edit screen work window Edit screen displays various screens such as ladder program creation screen and comment creation screen for editing ladder diagrams comments and parameters Output window Output window displays compilation and check results such as errors and warnings Status bar Status bar displays the status information of GX Works2 Displays the Displays the current mode state of Caps Lock Displays the Displays the current Displays the connected CPU cursor position state of Num Lock Displays the CPU type
8. ZPUSHP ZPOP ZPOPP EROMWR S D1 n EROMWRP S D1 n Processing details Resets the watchdog timer during the execution of the sequence program D nl scan n2 scan S M420 to SM424 SM430 to SM434 Lower 8 bits Upper 8 bits Lower 8 bits Upper 8 bits Upper 8 bits Lower 8 bits Upper 8 bits 8 bits Lower 8 bits rm I WNFO Indirect address of specified device Device name e Imports ASCII data to 8 points of input unit specified by S converts it into hexadecimal value and stores it to devices following the device specified by D1 e Saves the contents of index registers ZO to Z15 to devices following the device specified by D Reads the data stored in the devices following the device specified by D to the index registers Z0 to Z15 Writes data to the file register of E PROM in batch App 21 Execution condition Number of basic steps Appendix 1 2 QCPU Instructions Instruction Category Execution Symbol Processing details condition Number of basic steps Reads the module information stored in _YNIRD nt D n2 the device starting from the I O number specified by n by the points specified _tUNIRDP n1 D In2 by n2 and stores it to devices following
9. QDRSETP File name File name QDRSETP File set File name acoser gcoseT lte rome H cane Execution Processing details oo g condition Number of basic steps Changes the extension file register block number to the number specified by S Sets file names to be used as file registers Sets file names to be used as comment files n number of file name characters 2 indicates a step decimal fraction is rounded up 15 Clock instructions Instruction ales Category symbol Symbol DATERD DATERD D Ea DATERDP DATERDP D Read write DATEWR S a clock data DATEWR DATEWRP S L DATEWRP DATE DATE S1 S2 D DATE P DATE P S1 S2 D DATE DATE S1 S2 D a DATE P S1 S2 D an SECOND _ SECOND S D SECONDP SECONDP S D a5 A HOUR HOUR S D HOURP SiD a HOURP Clock element D 0 Execution Processing details ai g condition Year Month Day Hour Minute Second Day of week Year Clock element Month Day Hour Minute Second Day of week Hour Minute Second Hour Minute Second Hour Minute Minute Second low
10. LM dew HN Bs DH GR Eg m a eee 3 Open Ctrl O Close A Save Ctrl s Save As Compress Unpack Delete Verify 0080 Q64AD Parameter Project Revision b Change PLC Type splay Filter Display All Change Project Type Object Intelligent Function Module Open Other Data Export to GX Developer Format File Property e 13 Click Print J Save GX Configurator Print Preview B i Print Window Print Window Preview Library gt Security b To the next page 11 Double click Auto _Refresh 12 The Auto_Refresh screen is displayed Set Digital output value for CH1 to D10 and Error code for CH1 to D20 13 Click Project Intelligent Function Module Intelligent Function Module Parameter List From the previous page eee 3 14 Check that Setting Exist is checked in Initialization Count and Auto Refresh Count for Q64AD in the Intelligent Function Module Parameter List dialog box 15 Click the button b Adding and setting method for Q62DAN SE MELSOFT Series GX Works 1 Click Project Intelligent Function Module i Project Edt Find Replace Compile view Onine Debug Diagnostics Tool Window Hel C new cen uman eg EA IAE New Module Open Ctrl O Close Save Ctrl 5 Save As Compress Unpack Delete Verify Proj
11. 3rd scan 12ms When no request data for service processing exists the END processing becomes faster for the request processing time The CPU module does not wait for requests b Operation for constant scanning setting The percentage calculation is executed for the time in which the waiting time for the constant scanning is subtracted from the scan time not executed for the scan time Ex Operation of when percentage of service processing 50 0 50 100 END processing Program execution I I I Service processing time gt I 4 Scan time constant scan setting A o4 n4 wwct 3 Precautions The following explains precautions for the service processing setting a For the following functions scan time exceeds the specified time during service processing even if the service processing time specification is set e Online program change e Change T C setting e Local device monitor e Program memory backup e Writing reading data to from a file register The scan time is increased when the write or read size is large e Writing reading data to from the buffer memory of the intelligent function module The scan time is increased when the write or read size is large e Access to a network module 1 Diagnostic functions CC IE Control diagnostics MELSECNET diagnostics Ethernet diagnostics CC Link CC Link LT diagnostics 2 Monitor function Module
12. 4 2 10 Drop down menu Drop down menu displays the names of the available functions in GX Works2 Selecting the function with P on the right end displays the related drop down menu Clicking the function with after the name displays the setting dialog box Ctrl N n CR DF Ss RE ee a Ay Close wep Save Ctrl S Save S Displays a dialog box Compress Unpack gt New Project Delete Verify Displays a drop down menu Change PLC Type Project Re Use Label Change Project Type PLC Series locru 9 mode gt Intelligent Function Module Rename PLO Type Open Other Data Delete on6UDH Export to GX Developer Format File sa Copy Ctrl Shift C laste Ctrl ShiFt Library Paste trl ShiFk y Language Security Set as Default Connection Ladder Print J Property Alt Enter Print Preview B Print Window Print Window Preview 4 2 Basic Operations of Dialog Box This section explains the screen configuration of the dialog box Q Parameter Setting p sts 4 Text box 3 List box ses lis points interrupt counter Stereo amp U7 0 1 Command button 1 Command button Command buttons include OK and Cancel Click each button to execute its operation 2 Checkbox Click O to put in the box to execute the operation 3 List box After the selection list is d
13. Heey Setting ho Selig Mbeody Set Set Risnmededt Ne Salba Mbeody Sel y Ti w amp wd B So Cheah PLC User Pata Write The Format PE Cea PLC Memory iranga PLE Memory Memory 5 4 2 Reading data from the CPU 8 on the toolbar or click Online Read from PLC IQ Diagnostics Tool Window J 4 UH gt 14 2 From the PLC Module tab click to select the program and parameter to read from the CPU Or ere O_o L click Parameter Program to select the target program and parameter 3 Click to accept the selection 2 Select a program to be read by clicking on data EET EE m Wai ALC Liner Det haia Tiia Format Ac Chem LC Memory inane aC _ phe MELSOFT Application 4 If a parameter or program exits the confirmation arameter already exists F nue A Ee oswa you vant te overs the extn fle dialog box for overwriting the data is displayed Click Yes 5 The progress dialog box is displayed 6 The message Completed is displayed when the reading is completed Click Close SRERHRAMEREMERE RSE 414 T T et Parameter Read Completed Read from PLC Completed When processing ends close this window automatically 6 Click 5 4 3 Monitoring 1 Suppose that the ladder program sequence program has been written into the programmable controller CPU to proceed to the next step w Perform the reset operation with the RUN STOP R
14. MIDW S Stores the specified number of character string specified by S1 from the position specified by the device S2 specified by D MIDWP S1 S1 S2 Searches for character string S1 from the nth character of character string S2 S1 s2 and stores matched positions to D Floating Converts the floating decimal point data decimal EMOD ee US s2 DH of S1 into BCD data with the number of decimal fraction digits specified by S2 point and stores them to the device specified EMODP EMODP S1 S2 D by D P e Converts BCD data of S1 into the een eA S S2 z floating decimal point data with the number of decimal fraction digits Ea 4 specified by S2 and stores them to the device specified by D EREXPP S1 S2 D App 15 12 Special function instructions Instruction Execution Processing details i symbol condition Category Number of basic steps Sin S 1 S gt D 1 D Cos S 1 S gt D 1 D pe fe Trigonometric Tan S 1 S gt D 1 D functions S floating decimal point AS N ASIN S DH gin 41 8 gt D D data ASINP ASINP s DH ACOS ACOS ls D Cos 1 S 1 S D 1 D ACOSP ACOSP S D
15. Z o S into a 5 digit decimal ASCII value and stores it to the word device specified by D S into a 10 digit decimal ASCII value and stores it to word devices following the word device specified by D S into a 4 digit hexadecimal ASCII value and stores it to word devices following the word device specified by D S into an 8 digit hexadecimal ASCII value and stores it to word devices following the word device specified by D by S to a 4 digit decimal ASCII value and stores it to word devices following the word device specified by D by S to an 8 digit decimal ASCII value and stores it to word devices following the word device specified by D specified by S into a 1 word BIN value and stores it to a word device specified by D specified by S into a 2 word BIN value and stores it to a word device specified by D value specified by S into a 2 word BIN value and stores it to a word device specified by D CE eN E eS a Ooo S S S S ee es i i S e App 13 Instruction Category symbol Symbol DABCD DABCD E DABCDP DABCDP S DDABCD DDABCD S DDABCDP S D DDABCDP COMRD COMRD S COMRDP S COMRDP LEN LEN 09 S STRP S1 S2 D ete DSTR s1 S2 D al DSTRP s1 S2
16. 1010 2 1 010000 x 2 Sign Positive 0 Exponent 3 82H 10000010 2 Mantissa 010 00000 00000 00000 00000 2 In this case the value will be encoded as 41200000H Sign Exponent Mantissa 010000010 01000000000000000000000 wa yY y Y Y a Y yY y Y Y Y Y 4 1 2 0 0 0 0 0 App 56 2 When 0 75 is stored 0 75 10 0 11 2 1 100 x 2 2 Sign Positive 0 Exponent 1 7EH gt 01111110 2 Mantissa 100 00000 00000 00000 00000 2 In this case the value will be encoded as 3F400000H Sign Exponent Mantissa 0 01111110 1000000000000000 0000000 y Y yY Y Y Y Y Y y f f y 3 F 4 0 0 0 0 0 Values after the decimal point in binary are calculated as follows Ex 0 1101 2 Ooo o ee Se O ee Bit representing2 Bit representing 2 Bit representing 2 Bit representing 27 0 1101 2 2 2 2 0 5 0 25 0 0625 0 8125 10 2 Double precision floating point data a Internal representation of real numbers Internal representation of real numbers used in the CPU module is shown below Real number data can be represented as follows using four word devices Sign 1 Mantissa x 2 Ponent The bit configuration and the meaning of each bit are described below it b63 b62 to D52 DSI to b16 b15 to b0 b63 b52 to b62 bO to b51 Sign Exponent 11 bits Mantissa 52 bits 1 Sign The most significant bit b63 is the sign bit 0 Positive
17. 2 MASK The IMASK instruction enables or disables the execution of the interrupt program marked by the specified interrupt pointer by using the bit pattern of 16 points from the device specified by the start number BIN 16 bits of the device where the interrupt mask data is stored 1 ON Interrupt program execution enabled 0 OFF Interrupt program execution disabled Refer to the MELSEC Q L Programming Manual Common Instruction for more details CHAPTER 7 GX Works2 BASIC OPERATIONS PART 2 MULTIPLE PROGRAMS 7 1 Multiple Programs Execute the sequence program created by separate files according to the order set by parameters 7 1 1 Creating multiple programs Create multiple programs in the ladder mode 1 Procedure for adding program Add a new program in the project 4 4 Project Parameter Intelligent Function Module Global Device Comment Program Setting POU OF 4m PRI f 3 Local Device Comment Device Memory Device Initial Value Project H A Parameter Intelligent Function Module Global Device Comment ka Program Setting El Data Type Program Data Name PR3 Program Language SFC Inherent Property M Use Macrocode Use MCIMER F Use EN ENO cesi V7 To the next page 1 Right click Program in the project data list 2 Click Add New Data 3 The dialog box on the left is displayed Enter PR3 as a data
18. 1 Initial execution type program a Initial execution type program is executed only once when the CPU is powered on or its operating status is changed from STOP to RUN b Set the execution type to Initial in the program setting of the PLC parameter c Initial execution type program is available for the program which is not necessary to be executed from the next scan after executed once Control by one program When an initial execution type program is used Initial program Program executed at every scan Program A Initial execution type program Program B Scan execution type program S One program can be r divided into two programs 2 Execution of multiple initial execution type programs When two or more initial execution type programs exist the programs are executed in ascending order of the numbers in the program setting of the PLC parameter 3 END Processing After all initial execution type programs are executed the END processing is executed In the next scan or later scan execution type program is executed Powered on CPU STOP RUN Initial execution type Program A Initial execution type Program B y Initial execution type Program n 1 scan Programs are executed in ascending order of the number in the program setting of parameters J END processing 6 2 3 Scan execution type program 1 Sca
19. 5 3 1 Preparations for starting up CPU Setting switches and formatting the built in memory are required before writing a program to the CPU Connect or set the connectors and the switches of 1 to 3 shown below The figures below are example of QOQ6GUDHCPU gg0800 1 Connecting a battery Connect the battery since the lead wire of the battery connector is disconnected at the factory shipment 2 Setting the switches Set the RUN STOP RESET switch to the STOP position 3 Connecting the USB cable 4 Setting the connection destination This section explains how to set the connection destination for accessing the programmable controller CPU Navigation Parameter Intelligent Function Module Global Device Comment E Program Setting POU E B Program ae MAIN Local Device Comment Device Memory Device Initial Value cl a U J Double click Transfer Setup Connection1 EY a oaea PLC side I F Cli aN Double click To the next page 1 Click Connection Destination in the view selection area on the navigation window 2 The Connection Destination view is displayed Double click Connection1 in Current Connection The Transfer Setup dialog box is displayed 3 Double click Serial USB of PC side I F 4 The PC si
20. D1 Device to be turned on at completion of sort D2 For system use n x n 1 2 scans are required Sort Sorts data of 2 x n points DSORT_ S1 n S2 D1 D2 H from device specified by DSORT S2 Number of comparisons for single run S1 in 32 bit units D1 Device to be turned on at completion of sort x 4 2 D2 For system use n n 1 2 scans are required points from the device specified by S and stores it points from the device specified by S and stores it App 8 6 Structure creation instructions Instruction Execution Categor Symbol Processing details a i _ e Executes n times between the o n BREAK Forcibly ends the execution of the D IPn Number of FOR to NEXT cycle and jumps e Executes subroutine program Pn when the input condition is met S1 to Sn are arguments sent to subroutine program 0 lt n lt 5 E Pn Pn RET e Returns from the subroutine program ee Pn Pn Pn the subroutine program of Pn when a 2 n FCALLP FCALLP S1 to Sn input conditions have not been met ES Subroutine program ECALL calls ECALL a S1to SnH e Executes subroutine program Pn in the Progr
21. C Use the same file name as the program Corresponding Memory C Use the Following file Corresponding Memory v Device Initial Yalue Not Used C Use the same file name as the program Corresponding Memory v C Use the Following file Corresponding Memory m K Points 1K 4086K Points File Name m File Name Capacity File for Local Device I Tra f Not Used Following settings are available in device setting when select Use the following file and specify capacity Change of latch 2 of file register Assignment to expanded data register expanded link register of part of file register area C Use the following file Corresponding Memory m File used for SP DE ST S DEVLD Instruction Not Used C Use the following file Corresponding Memory K Points 1K 512K Points File Name Comment File Used in a Command Not Used C Use the same file name as the program Corresponding Memory Use the Following file Corresponding Memory Y File Name Capacity File Name Print Window Print Window Preview Acknowledge xY Assignment Default Check Cancel The following lists the setting contents 1 Not Used No file register is set by the parameter Set this when using a sequence program to specify the comment file to use Use the QCDSET instruction to specify the comment file to use For details of the QODSET instruction refer to the MELSEC Q L Pro
22. Precautions on editing in an inline structured text box e A maximum number of characters that can be entered is 2048 e Up to 23 local labels can be used in an inline structured text box Excluding constants The following data type labels cannot be used e Counter e Timer e Retentive timer e Pointer e Structure e Array e Function block e Lower case device names cannot be used as labels regardless of the option setting Instructions cannot be entered using the Selection window The template function of the ST program cannot be used Label candidates are not displayed The editing status cannot be recovered to the previous status by the operation such as clicking Edit Undo Verifying a program containing an inline structured text When a project or project revision is verified with Program selected an inline structured text is not the verification target When verifying a program containing an inline structured text select Program File to verify Finding or replacing a program containing an inline structured text The inside of an inline structured text box are not the target of the following Find Replace functions Replace String Find Device Replace Device Find Instruction Replace Instruction Find Contact or Coil Change Open Close Contact Device Batch Replace When searching the inside of an inline structured text box use Cross Reference or Device List For Cross Reference and Device List refer to
23. iil Fa Click the Read PLC Data button MELSOFT Series GX Works2 2 Click the button This operation read setting status of multiple CPU setting 1 O assignment the slot type and points and Basic setting All existing setting data will be overwritten Multiple CPU setting excluding the number of multiple CPUs detailed settings and switch settings will be reset to default Is this OK If an error occurs in PLC some slots cannot be read If multiple CPU configuration is valid the specified high speed interrupt settings will be deleted 3 Click the Detailed Setting button Apii the 1 0 addins ii net ipay ore Uh PU ces tirti aly Lemang ihi petting blank wall net coun an error ba eon To the next page From the previous page cer gt is gt re gt E3 Tal le a felelelelelelelelelaleletelatele C ee ee larna itri borm iae m ae a hn m i iai PLC Hee PLC atan PUE Jec Bas ioari Program oF i petite dha p 4 Select I O Response Time Select 20ms 5 Click the 6 Click the dialog box button button of the Q Parameter Setting Write the PLC parameter set above with the program to the CPU CHAPTER9 PROGRAMMING INTELLIGENT FUNCTION MODULE On QCPUs some functions are not supported or are limited in use Intelligent function modules support those functions instead of QCPUs Therefore us
24. 16000 to 16000 0 625mV 0 to 10V v 1 _ to 16000 0 625mV Userrangesetting 1 1 12000 to 12000 0 333mV Voltage input characteristic in high resolution mode 1 Do not input an analog voltage out of the range between 15 to 15V The elements may be damaged 2 Set the offset gain values for the user range setting 1 within a range in which the following conditions are met Gain value Offset value gt A lt Value A gt Standard resolution mode High resolution mode 3 When an analog value that exceeds the range for the digital output value 2 is input the digital output value will be fixed at the maximum or minimum value Analog input range Standard resolution mode resolution mode High resolution mode setting Minimum Ee 288 12287 0 to 5V 40 10 to 10V 4096 95 16384 16383 0 to 10V a 384 12288 12287 User range setting 4096 App 31 2 I O characteristic of the D A conversion Offset value ae acs value voltage or current that corresponds with the digital input Analog output value voltage or current that corresponds with the digital input value 4000 12000 16000 S oO 4 gt D gt Q D gt O O 49 Cc lt x Analog output practical range 4096 4000 0 2000 4000 4095 Digital input value No Output range setting Offset value Gain Digital input value Maximum value resolution 1 to 5V 0 to 4000 0 to 5V 1 25mV 10 to 10V 4000
25. 6 Instruction Category symbol SEG SEGP DIS DISP UNI UNIP NDIS NDISP NUNI NUNIP WTOBP BTOW BTOWP O J MAX Search DMAXP DMINP z g g z Z Z Z 5 E as Symbol Saal fa sfa 4 fake al ahha SEG S D SEGP_ s D Dis f s D n DISP s D n UN S Dn UNIP S Dn NbDIS___ s1 D s2 NDISP S1 D S2 NUNI S1 D S2 NUNIP S1 D S2 WTB s D n WTOBP s D n BTOW s D n BTOWP S aza EE mi a MAXP S D n MIN S Dj n MINP S D n DMAX S D njH DMAXP S D n DMIN S D n DMINP S D n e Separates 16 bit data specified by S into e Links the lower 4 bits of n points from the Separates the data in the devices specified e Links the data in the devices following the e Breaks n points of 16 bit data from the e Links the lower 8 bits of 16 bit data of n Searches for the data of n points from the device specified by S in 16 bit units and stores the maximum value to the device specified by D e Searches for the data of n points
26. Host CPU operation information area Restricted system area Auto refresh area User setting area and Multiple CPU high speed transmission area Configuring the auto refresh setting for the CPU shared memory allows for using the area from 800H to the end point for auto refresh as the auto refresh area The start address of the user setting area is next to the end address in the auto refresh area When the points for auto refresh is 18 11H the auto refresh area is 800H to 811H and the user setting area is 812H or later The following figure shows the CPU shared memory configuration and the accessibility in the sequence program Host CPU Other CPUs CPU shared memory Write Read OH GO to to Host CPU operation LFF H G511 information area H 200n G512 QCPU System area 7FFH G2047 standard area 800H G2048 Auto refresh area to to User setting area FFFH G4095 1000H G4096 to to Use prohibited area 270FH G9999 2710H G10000 to to Max SFOFH G24335 Multiple CPU high speed transmission area Communication allowed x Communication not allowed 1 The QOOUCPU Q01UCPU and QO2UCPU do not have the use prohibited area and the multiple CPU high speed transmission area 10 6 1 Host CPU operation information area a Information stored in the host CPU operation information area The following information is stored in the host CPU operation information area in the multiple CPU sys
27. Network 2 to 7 Network 8 CC Link IE MELSECNET H Request source a Works2 Network 1 Personal computer Ethernet QCPU station 2 CC Link 2 Access example via CC Link IE MELSECNET H and CC Link The request source GX Works2 can access up to two target stations Request source CPU port GX Works2 Personal computer QCPU Network 2 to 7 Connected programmable controller QCPU waa tation 1 i i Skai NET H MELSECNET H AS D Ne QCPU station 2 CC Link Network 1 Network 8 CC Link IE CC Link IE MELSECNET H 2 3 Name and Appearance of CPU This section explains part names and setting of the module u N O When opening the cover put your finger here Application Module fixing hook Hook used to fix the module to the base unit Single operation installation Indicates the mode of the CPU module On Qmode 2 MODE LED Flash Device test with conditions is in process Forced on and off function for external I O is in process CPU module change function with memory card is in process Indicates the operation status of the CPU module On During operation with the RUN STOP RESET switch set to RUN Off During stop with the RUN STOP RESET switch set to STOP When an error which stops operation is detected Flash Parameters or programs are written when the RUN STOP RESET switch is set to STOP then
28. Q Parameter Setting PLC Name PLC System PLC File PLCRAS Boot File Program SFC Device 1 0 Assignment Multiple CPU Setting Serial Communication Label System Comment Convey system The following table lists the setting contents Setting range Default Set a label for the CPU Up to 10 characters Blank Set a comment for the CPU Up to 64 characters 2 Title project index Give a title to a project to identify its contents Set a title when saving a project with a different name and the title is stored in the created project Ee eS babor Fakcha vards bry checking thee Sra a d Sine Fis Formak Prevject pian you mini to uta sige file format project MELO Navigator diss not suppeet thie Format Specify a workspace name project name and title within 128 characters each However the total number of the characters of the save destination path name workspace name project name must be within 150 3 Data name On the opened project window select the data name to change Right click and click Rename to change the data name 4 Property The properties for a folder parameter and program are displayed Also giving titles and comments for each data is available Project Property Project Property Details Comment Details Comment Data Name Applied 2 Set the device comments common to all the programs in this file Title Common comments to all programs R lt Revision gt 4 Last
29. 1 Negative 2 Exponent The 11 bits b52 to b62 represent the exponent n of 2 The following shows the exponent according to the binary values in b52 to b62 b52 to b62 7FFH 7FEH 7FDH 400H 3FFH 3FEH 3FDH 3FCH 02H O1H OOH n Not used 1023 1022 1 0 1 2 3 10211 1022 Not used 3 Mantissa Each of the 52 bits bO to b51 represents the XXXXXX portion when the data is represented in binary 1 XXXXXX App 57 b Calculation example The following shows the calculation examples The X in nnnnnn xX indicates the numeral system used 1 When 10 is stored 10 10 1010 2 1 010000 x 2 2 Sign Positive 0 Exponent 3 401H 100 0000 0001 2 Mantissa 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 2 In this case the value will be encoded as 4014000000000000n Sign Exponent Mantissa 0 1000000000101000009000900000009000900090000000000099009000900000 Vv VY Y Vv Vv VY Vv Vv yY yY Y Y yY V Vv yY oo a a a a a a e y y y y y 4 0 1 4 0 0 0 0 0 0 0 0 0 0 0 0 2 When 0 75 is stored 0 75 10 gt 0 11 2 gt 1 100 x2 2 Sign Positive 0 Exponent 1 3FDH 011 1111 1101 2 Mantissa 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 2 In this case the value will be encoded as 3FD8000000000000h Sign Exponent Mantissa 0 011111111011000000000000000000000000000000000000000000000000000 V VY yY Vv Vv VY Vv Vv VY VY V Vv VY
30. MOV DO D1 19ns instruction Processing speed redundant Tracking execution time increased scan time function Constant scanning function for keeping regular scan 0 5 to 2000ms setting available in 0 5ms unit setting by parameters time i 40K steps 60K steps 100K steps 130K steps 200K steps 260K steps Program capacity 160K byte 240K byte 400K byte 520K byte 800K byte 1040K byte Program memory drive 0 160K byte 240K byte 400K byte 520K byte 800K byte 1040K byte Memory card RAM drive 1 Memory card ROM drive 2 Standard RAM 256K byte 768K byte 1024K byte 1280K byte drive 3 Memor Standard ROM Ya 1024K byte 2048K byte 4096K byte capacity drive 4 QCPU standard 8K byte CPU memory shared Multiple Emory CPU high speed 32K byte transmissi on area 1 The size unit of the files stored in the memory area differs depending on the CPU module For details refer to the QnUCPU User s Manual Function Explanation Program Fundamentals 2 The maximum number of executable sequence steps is obtained by the following formula Program capacity File header size Default 34 steps For details of the program capacity and files refer to the QNUCPU User s Manual Function Explanation Program Fundamentals 3 Data in the CPU shared memory is not latched Data in the CPU shared memory is cleared when the programmable controller is powered on or the CPU module is reset Capaci
31. SIL D10 K10000 REO SRST D10 count value D10 Local SM400 pointer 10 SASAS D10 K4Y50 PP aye te D10 value in 7 segments for loop SM400 Resets the register 13 b_ _ _ l a _ _ Mov ko Di1 for loop D11 PO SM400 l 16 INC D11 E of register Condition jump 204 lt D11 K1000 HHC PO for loop END 6 Creating a scan execution type program a A program to be created Create a program which changes the standby type program SUB to a scan execution type b Devices to be used 2 C erat ese ee Switch which shifts the program type to the scan execution type EA aa Switch which shifts the 7 segment display for 4 digits from Y40 c Program For the creating procedure of a program refer to section 5 2 3 Applied 2 X4 J _______________tmtmtmotmutt__tmon _ pscan suB Switches SUB to the scan execution type SM411 DO gt DO KO HJ RX CO gt X5 BoD co kavs JPR X5 Dis plays the setting value HBC DI KA4Y40 from SUB in 7 segments CO WT ___IRST CO Resets the counter END 7 1 2 Creating programs for control Create programs which control the operating status of the programs created in previous pages 1 Program control instructions Program control instructions change the execution type of the programs while a programmable controller CPU is running Program control instructions are the following three types e PSCAN instruction e POFF instruction
32. according to the following procedure 1 Turn on the special relay SM609 with the sequence program or the device test of GX Works2 2 Use the monitor function of GX Works2 to check that the special relay SM600 is turned off 3 Remove the memory card SM600 Memory card can be used The system is turned on when the memory card is ready to be used SM604 memory card is being used The system is turned on when the CPU module is using the memory card SM605 memory card installation removal prohibited Turned on by the user to disable a installation removal of the memory card d To install the memory card while the power is on 1 Install the memory card 2 Use the monitor function of GX Works2 to check that the special relay SM600 is turned on CHAPTER 3 PERFORMANCE SPECIFICATIONS 3 1 Performance Specifications The following table lists the performance specifications of the Universal model QCPU 1 QOOUJCPU QOOUCPU Q01UCPU Q02UCPU Q03UD E CPU Universal model QCPU Item QO3UDCPU OOUJCPU OOUCPU 01UCPU O2UCPU QO3UDECPU Control method Stored program repeat operation I O control mode PEES MORR Direct access I O is available by specifying direct access I O DXO DYD p Sequence control Relay symbol language logic symbolic language MELSAP3 SFC een language MELSAP L function block and structured text ST language Process control language Processing LD XO 20ns speed sequence MOV DO D1 240ns 160ns 12
33. and C Controller module For details of the multiple CPU system refer to the QCPU User s Manual Multiple CPU System 14 Supporting the redundant power supply system The redundant power supply system can be configured with a redundant base unit and redundant power supply modules The system can continue operation even when one of the power supply modules fails since the other supplies the power 15 Direct connection to Ethernet The Built in Ethernet port QOPU module allows for direct connections to Ethernet For details of the functions refer to the QnUCPU User s Manual Communication via Built in Ethernet Port 8 Applicable only to the built in Ethernet port QCPU MEMO CHAPTER2 SYSTEM CONFIGURATION 2 1 Basic System Configuration 2 1 1 Device configuration The following figure shows an actual programmable controller configuration Battery for QCPU Q6BAT Q7BAT SET DB multiple CPU high speed main base unit Battery holder Battery for QCPU Q7BAT B extension base unit B extension base unit Figure 2 1 Universal model QCPU module configuration When Q3ODB is used 1 The following bases are also available for the Universal model QCPU e Q3OB type main base unit e Q3ORB type redundant power main base unit e Q3OSB type slim type main base unit
34. and changing the program is unnecessary Mounting allowed Mounting allowed CPU 0 1 2 CPU 0 1 2 module Q 2 a D A module Motion CPU Power supply Motion CPU 10 2 10 2 2 I O number assignment of the multiple CPU system The multiple CPU system is different from the single CPU system in the position slot of I O number OH However the concept of the order of allocating I O numbers for the extension base unit O numbers for each slot and empty slots is the same for both types 1 Position of I O number OH a The number of slots set with the multiple CPU setting of the PLC parameter are occupied by QCPU motion CPU in the multiple CPU system b I O modules and intelligent function modules are mounted from the right of the slots occupied by QCPU motion CPU modules c The I O number for an I O module or intelligent function module mounted to the next slot to the slot occupied by QCPU motion CPU is set as OH and consecutive numbers are allocated sequentially to the right 1 QCPU Two CPU modules are mounted 01234567 gt O numbers OH 2 QCPU Four CPU modules are mounted 01234567 _ y O numbers OH 10 2 3 Communication between QCPUs and modules 1 Communication to controlled module non controlled modules The I O module and intelligent function module controlled by the host CPU can be controlled as well as the single CPU system The following t
35. Change 5 31 2012 4 38 33 PM Created by MITSUBISHI How to display screen Project Object Property Screen items Set a title index for the data Up to 128 characters are applicable for a project and 32 for other data Title 5 Device comment A device can be displayed with comments to make the program easier to be read Device comment XO X1 oH Y10 ERROR 1 ERROR 2 Detecting error ANNINA AVV VVAA WIL LLGPSFG a Set the device comments on the ladder creation screen Click and double click at the position where to set the device comments Input Device Comment o Device Label Device Label Comment idl af Preview OOO O SE Cancel e The devices for which a comment can be given are shown below Device name X Y M L F SM B SB V T current value C current value ST current value D SD W SW R ZR P I UO GO JO X JOY JO B JO SB JO W JO SW BLO S BLO TR when the comments for P and are used as pointers for a subroutine program and interrupt program the comments are not displayed To display the comment use a pointer statement Refer to 6 b When device comment files are written in the CPU select a valid device comment file with the parameter to use the comment with the application instruction COMRD Set the setting in the PLC File tab of the PLC parameter in the project data list Q Parameter Setting File Register Not Used
36. Click the button To the next page From the previous page V7 Program ProgramName Execute Type Fixed Scan Interval InUnit lt CONTROL INITIAL Scan 6 INITIAL a o Click the second cell of the Program Name Ee PRI O lt column PR2 o PR3 SUB pea C E 7 Click SUB 8 Click the button xecute Type ixed Scan Interva pine Eeee Type f Fed Steninteniel nit 9 Perform the step 6 to 8 repeatedly to set the E E folowing contents PRI Scan i me o a The third cell gt GONTROL pe fers Scam A b The forth cell gt PR1 c The fifth cell PR2 d The sixth cell PR3 Tc D 10 Click of Execution Type of INITIAL and Es OO Wa ed select Initial a a B e ie _ ram Hame execute Type fred Scen Interval nunt 11 Set the following contents with procedure 10 a SUB and PR2 Wait b PR3 Fixed Scan spe o CS Denes E wd ProgramName Execute Type Fixed Scan Interval In Unit 4 Ci T_T 200 12 Enter 1 to Fixed Scan Interval of PR3 and sd click of In Unit column to set s Bsr Wait FeR TT Fed sean wf ifs Program setting can be done by dragging and dropping items on the navigation window a Ae ci a CIETE Parameter Parameter jo PLC Parameter F PLC Parameter BR Network Parameter f Network Parameter n Remote Password _ Hi Remote Password Intellig
37. Contact Symbol Rising Pulse Close X1 in the device instruction input field LEE LDF X1 gt LDFI X1 gt ORP X1 gt ORPI X1 ORF X1 gt ORFI X1 gt EGP Vo gt EGF VO gt INV gt Click 4 X1 in the device instruction input field Click the OK button field Click the button Click H X1 in the device instruction input field gt Click the field Click the button Click 8 X1 in the device instruction input field Click the field Click the button Click ats VO in the device instruction input field Click the button fs VO in the device instruction input field Click the button Click Zal Click the button App 24 ae in the device instruction input field Enter Shift At Fe X1 in the device instruction input field gt X1 in the device instruction input field Shift At F7 X1 in the device instruction input field gt X1 in the device instruction input field Enter Shift Ait F8 X1 in the device instruction input field gt F5 gt vo in the device instruction input field Ctr Ait LFS VO in the device instruction input field gt Cir Ait F10 gt Enter Edit Ladder Symbo
38. If Insert is shown on the screen press the key to change the display to Ovrwrte If Insert is shown on the screen contacts or coils are added to the diagram lt When correcting X2 to X5 gt Added lt When correcting SET to RST gt Added 2 Move the cursor to the place shown on the left and double click 3 The Enter Symbol window is displayed Change the value to CO K100 4 Click the button 5 The ladder program has been changed To the next page From the previous page 6 Click the 3 button on the toolbar ee 7 The dialog box on the left is displayed Click Caution he operation of online change varies control I penea mare e fence the button to execute the online If rise instructions fall instructions or SCJ instructions is given while programming it cannot work properly p ro g ra m C h a n g e Online change to the same program from multiple positions at the same time is prohibited Please make sure that the old program and the program in PLC are identical before executing Do you want to continue Target Program PR1 8 Click the button i Online change has completed There are 500 online change maintenance steps remaining 9 CO is counted from 0 to 99 The BCD display of the demonstration machine is also counted from 0 to 99 10 Monitor the program MEMO CHAPTER6 FILE BASED MANAGEMENT AND PROGRAM EXECUTION MANAGEMENT 6 1 File Based Managem
39. List Connection Interface E e gt PLC Module Target PLC Network No i Station No Host PLC Type RO6UDH Device Memory IM Clear Device s whole Memory Progr pnitor status local device monitor IV Include Latch sed when executing device memory File Register Clear all File Registers C All Files Specific File pe MELSOFT Application Memory will be cleared Do you want to continue 6 Click Clear PLC Memory Connection Channel List Connection Interface pse lt gt PLC Module Target PLC Network No ia Station No Host PLC Type QO6UDH Device Memory Eg Point V Clear Device s whole Memory Program local device selected in monitor status local device monitor IV Include Latch target select column will be cleared when executing device memory R all clear during local device monitor m File Register F Clear all File Registers o Al Files 1 Click Online PLC Memory Operation Clear PLC Memory 2 The Clear PLC Memory dialog box is displayed Check that Clear Device s whole Memory is checked 3 Check Include Latch 4 Click the button 5 Click the button to clear the latch device 6 When the clearing the latch device is completed the dialog box on the left is displayed Click the button Click the button to close the dialog box 7 Clearing the error history in the CPU This section expla
40. MO XO MOPKI23 RO Data setting RO X1 H MOVPK5678 R X2 H Mov K9999 R2047 H Data setting R2047 X7 H FMovP KO RO Kk2048 Resets RO to R2047 Data setting R1 28 END 2 Program setting Configure the setting as shown below in the Program tab of the PLC parameter in the project data list ProgramName Execute Type Fixed Scan Interval 1 Mat scan rr ell Eoo o Eoo E ee 3 Writing data to the programmable controller Write the program MAIN and parameter to the CPU Select Program Memory for the target memory when writing the program and parameter to the programmable controller 4 Operation check Run the CPU to check the operation on the ladder monitor e The register R is set when XO X1 and X2 are turned on e The register R is reset when X7 is turned on In addition check the value set when XO X1 and X2 are turned on is not cleared by the reset or latch clear of the CPU 8 6 Input Response Speed Change For the input high speed input and I O combined module the input response speed can be set individually with the parameter setting of GX Works2 The input module imports external inputs in the set input response time ON External input ON Input module Click the I O Assignment tab of the Q Parameter He Read the mounting status of the programmable PES controller mpap ihe SS ahhar m ioi rapem wt Phe P ia eat ly L TE eer APE el a a ee ba
41. Multiple subroutine programs and interrupt programs can be created and managed in a single standby type program Scan execution Scan execution type program type program Main routine Main routine program program P100 Subroutine program Standby type program program Interrupt program i0 Interrupt program b After the execution of a standby type program the CPU module re executes the program that called a program in the standby type program The following figure shows the operation when the subroutine and interrupt programs in the standby type program are executed P100 instruction execution Interrupt factor occurrence END peered END processing END processing Scan execution type program J Subroutine program lO IRET Interrupt program c 3 Program type change Standby type program is used to create and store programs available in all systems Only required programs will be executed A program set as a standby type program in the PLC parameter can be changed to a scan execution type program and executed in the sequence program Use the PSCAN PSTOP and POFF instructions to change a program execution type in the QCPU 6 2 5 Fixed scan execution type program 1 Fixed scan execution type program a Fixed scan execution type program is an interrupt program executed at specified time intervals Interrupts in units of files are available without interrupt pointers or the IRET instruct
42. N Y Vv ee a a a a a a a a e y y y y y 3 F D 8 0 0 0 0 0 0 0 0 0 0 0 0 Values after the decimal point in binary are calculated as follows Ex 0 1101 2 Bit representing 2 Bit representing 2 Bit representing 2 3 Bit representing 2 4 0 1101 2 2 2 24 0 5 0 25 0 0625 0 8125 10 App 58 SH 081124ENG A Mitsubishi Programmable Controller Training Manual Q series advanced course for GX Works2 SCHOOL APPLI GXW2 E 1356 l SH NA 081124ENG A 1210 MEE NA 081124ENG A 1210 MEE a MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
43. No 1 Writing parameter and program For QCPU No 2 to 4 write the parameters and sequence program after specifying the target CPU in GX Works2 Resetting QCPU No 1 Reset the QCPU No 1 Set the RESET STOP RUN switches of QCPU No 1 to 4 to the RUN position SAE Soe eee Create sequence programs for CPU No 1 to 4 RESET STOP RUN switch setting for all QOPUs 10 15 Confirmation of statues of all QCPUs Check if all QCPUs in the multiple CPU system are RUN status or In error Continmaiioncand conection errors Check the error with the system monitor of GX Works2 and correct it Debugging each QCPU Debug each QCPU No 1 to 4 and the multiple CPU system Actual operation 10 16 10 4 2 System configuration of the demonstration machine In order to explain the operation overview of the multiple CPU system a simple example is used for an exercise The following figure shows a system in which the multiple CPUs CPU No 1 and No 2 control different intelligent function modules A D and D A converter module and transfer the data in the intelligent function modules between the two CPUs l Control CPU CPU No 1 Control CPU Controlled module Controlled module CPU No 2 A D converter module D A converter module 4 Q62 Q61P QCPU QCPU 42P DAN 64 16 points poi points Y40 X Y80 X Y90 to to to Y7F X Y8F X Y9F Devices for auto ref
44. Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 32768 points 32768 points RO to 32767 RO to 32767 l l 32768 points RO to 32767 32768 points RO to 32767 Standard Max 131072 Max 393216 i l l Max 524288 points by block Max 655360 points by block RAM points by points by ie nae switching switching block block switching switching SRAM card REETA l 1M byte Max 517120 points by block switching in units of 32768 points RO to 32767 SRAM card ee ee Max 1041408 points by block switching in units of 32768 points RO to 32767 2M byte SRAM card l PEN l Max 2087936 points by block switching in units of 32768 points RO to 32767 4M byte SRAM card l T ae i Max 4184064 points by block switching in units of 32768 points RO to 32767 8M byte Flash card i aa acte i i Max 1041408 points by block switching in units of 32768 points RO to 32767 2M byte l Flash card l T Sect cat l l File r 4M byte Max 2087936 points by block switching in units of 32768 points RO to 32767 register E Ea oh ae 524288 points 655360 points i i Standard ZRO to 131071 p p at 393215 ZRO to 524287 ZRO to 655359 RAM Block switching a BEA SEN Block switching Block switching not required Block switching not required not required q not required V O Q 2 gt O O Q m Z SRAM card 1M byte 1041408 points ZRO to 1041407 Block switching not required ZR 2M byte 208793
45. Series GX Works The mode will be switch over to the offset gain mode to normal mode Caution The mode will not be switched over to normal mode when the offset gain mode is selected in the switch setting When an error code is displayed in the setting the error detail and the solution can be confirmed by clicking the button on the right of the error code display area Error codes can be cleared by clicking the button App 29 Appendix 3 2 Offset value and gain value 1 I O characteristic of the A D conversion Offset value ule value voltage or current that corresponds with the digital output ent Analog input value voltage or current that corresponds with the digital output value 4000 12000 16000 Analog input practical range 4 gt D gt Q D gt O Q Analog input voltage V No Analog input range Offset value Gain Digital output value 2 Maximum setting value resolution 0 to 4000 0 to 5V 1 25mV 10 to 10V 4000 to 4000 0 to 10V 0 to 4000 User range setting 1_ t 4000 to 4000 0 375mV Voltage input characteristic in standard resolution mode App 30 Analog input range DS T 16000 eb 49 gt _ Q O w D Q na pth T Analog input range Offset value Gain Digital output value Maximum setting value resolution EA 1 to 5V O wv y ee 333mV O to 12000 0 to 5V 0 446mV _ 10 to 10V OV 10v
46. Switches SUB to the standby type PO and P1 Local pointers c Program Case sensitive in Make sure to use uppercase letters which Applied 2 are the same as the program names CONTROL x1 PE 0 PSCAN PRi Switches PR1 to the X1 i scan execution type 5 WT _________________JPoOFF PRI Switches PR1 to the l Standby type X2 l l 10 POFF PR2 Switches PR2 to the Xo l standby type 15 Jt gcan PR2 Switches PR2 to the scan execution type X y reEeeyYyY T 20 CALL PO Enables to execute PR3 X3 23 CALL P1 Disables to execute PR3 X4 26 POFF SUB Switches SUB to the Local standby type pointers 31 FEND PO moe Bp EI Enables the execution interruption 34 RET Pt 85 DI Disables the execution interruption 37 RET 38 END 7 1 3 Setting parameters Set parameters which control the created sequence programs and write them with the programs to the programmable controller CPU 1 Program setting Project 1 Double click Parameter in the project list H A Device Memory Device Initial Yalue i ii 2 Double click PLC Parameter Pr ay Sy le Parameter eo P PLC Parameter Network Parameter 2 aT Remote Password E Intelligent Function Module Global Device Comment Program Setting He POU Device Memory E Device Initial Value 7 a EEE i 3 The Q Parameter Setting dialog box is displayed e Click the Program tab 4 Click INITIAL 5
47. T A L ae A E ene A 7 1 0 7 2 1 Program list monitor aia aaa E e a aime ayer encase ea E E E E A E E E E ciave a e ace w aiava E E T T 7 10 1 2 2 Monitor function E ee A a ee E E E E A A E NT 7 1 2 8 1 Maintenance and Debug Functions E E E E E E E E E E E E cere errr etree E 8 1 8 1 1d Self diagnostic function ECCT ER ERECT LCE CEC RCTE CCT TICE TERETE Rene rr Cerra ricer 8 3 8 1 2 System display function E EAEEREN E L EEEE Wadia EA EEE EEEE EENE wie bi EN EE BEE E E EEEE E EE EE E EERE E EEE EE E EEEE E EE 8 5 8 1 3 System protection function EE E CRETE E E EEE A E EE ERECT E A Re A ri 8 1 0 8 1 4 Password registration function E E E E A E E E E etm a ara G are afa aimc We ate weeee eres 8 1 0 8 2 Other Functions TER ECERELE TEL CR ETE CERO E TORRE A ECCT EO CECE TET ECOT RRA RSCR EERE OER OT ECCT ROR EC RRR ESTE COTS RET SRC T RCE BT 8 1 2 8 2 1 Constant scan function SSRI E ORCC COO OOOO TIO COICO ICOCICD CCRC ORCS E SIC OES CSCI eC Cen err RTO CRE RTT SET 8 1 3 8 2 2 Latch function a lw me ml mc me el T 8 1 4 8 2 3 Remote operation function PPRERLERE ECR ER REPEC ERECTOR ERE RRP ETE EERE CR CREE ESR ERE Ri 8 1 5 8 2 4 Service processing setting sie ce E S S AE E E S EE ES 8 20 8 3 Comments Storage Function PEE EENE EEE MEE A EE A S E E E E AE A T T See T T TE 8 24 8 4 Appropriate Assignment of Device Points a A A A SW cele A A A A A T 8 29 8 5 Using File Register uaa a a a a a a a A E a a aaa a a a a a a a e a a 8 33 8 5 1 Preparation for using f
48. and switch settings of the intelligent function module can be set a Adding and setting method for Q64AD ENT SEIA AED 1 Click Project Intelligent Function Module i Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Hel New Module H I New Ctri4 N Ph To DE fs E5 Open Ctrl O Close Save Ctrl 5 Save s Compress Unpack Delete Verify Project Revision Change PLC Type 1 Click Change Project Type Object b Intelligent Function Module gt New Module N Ctrl Shift E Delete Module Open Other Data gt Export to GX Developer Format File Property Library b Save the Positioning Module Data Security gt Read from the Positioning Module Data New Module tj 2 The New Module dialog box is displayed Module Selection Module Type Analog Module Module Name 3 Set the A D converter module setting as follows LETE Module Type Analog Module Module Name Q64AD Mounted Slot No 3 ee Specify start XY address 0080 Title 4 Click the button 5 The specified intelligent function module data are added to the Project window CE a Eby 2 E E Parameter p PLC Parameter E iB Network Parameter bin Remote Password Switch Setting amp Parameter Auto_Refresh To the next page From the previous page TE MELSOFT Series GX Works2 C SC 6 Do
49. byte 1 Q2MEM 1MBS 1M byte ATA card Necessary use GX Works2 Necessary Q2MEM 2MBS 2M byte Q3MEM 4MBS 4M byt use GX a f Works2 Q3MEM 8MBS 8M byte ash Q2MEM 2MBF 2M byte Unnecessary card Q2MEM 4MBF 4M byte Q2MEM 8MBA 8M byte Necessary Q2MEM 16MBA 16M byte use GX Q2MEM 32MBA 32M byte Works2 1 When the memory contents become indefinite in the initial status or due to the end of battery life the memory is automatically formatted after the programmable controller is powered off and then on or is reset Make sure to format the memory in GX Works2 before using 1 Built in memory This section explains a memory map of the program memory built in a QCPU and capacities of the built in memories program memory standard RAM and standard ROM Memory map The program memory stores files as follows Program memory System area OK to 15K steps User setting area 1K step unit File for user Parameter Memory capacity after format Sequence program SFC program Comment Device initial value Use the user setting area of a system file for a communication with serial communication modules and for monitoring from other station on the network Registering the user area enables a high speed monitoring from other station on the network through the serial communication Refer to section 8 1 3 2 1 When using a QCPU for the first time after purchase format the program
50. clamp the cable to prevent a poor connection moving and disconnection by unintentional pulling The Q6HLD R2 type connector disconnection prevention holder is provided as a clamp for the RS 232 connector CPU module RS 232 cable Fixing screw 2 Operate the RUN STOP RESET switch with a fingertip To prevent the switch from damage do not use any tool such as screw driver 2 4 Memory System Configuration 2 4 1 Universal model QCPU module memory configuration The memory of universal model QCPU consists of the following block configurations Program memory program cache memory Parameter Program Device comment Device initial value Standard ROM Parameter Program Device comment Device initial value Programmable controller user data Storage file used in latch data backup function File used in SP DEVST S DEVLD function Standard RAM 2 File register Local device Sampling Module error trace file collection file RAM Device initial value Sampling trace file ROM Device initial value 000000 i pi Memory card CPU module File register 1 A memory card cannot be used for QQQUJCPU QOOUCPU and Q01UCPU 2 QOOUJCPU has no standard RAM e Program memory e Program cache memory e Standard RAM e Standard ROM e Memory card RAM e Memory card ROM A memory for storing programs and parameters for CPU module operation A pr
51. e PSTOP instruction Initial execution Scan execution type program type program 1 Once the fixed scan execution type program is changed to other execution type it cannot be returned to the fixed scan execution type The POFF instruction is used to securely turn off the external output Y when the program is changed to the standby type Program execution type changes by program control instructions are executed to the program which is read in the program memory The program execution type of the program which is not read in the program memory from the memory card cannot be changed 2 Programs for control a A program to be created 1 Turning on the switch X1 switches PR1 from the scan execution type to the standby type 2 Turning on the switch X2 switches PR2 from the standby type to the scan execution type 3 Turning on the switch X3 disables the PR3 execution The El instruction must be executed first to execute the fixed scan execution type program 4 Turning on the switch X4 switches SUB from the standby type to the scan execution type b Devices to be used e X1 ON Switches PR1 to the standby type OFF Jaun Switches PR1 to the scan execution type e X2 ON Switches PR2 to the scan execution type OFF Switches PR2 to the standby type e X3 ON Disables PR3 execution OFF Enables PR3 execution gt X4 ON Switches SUB to the scan execution type OFF
52. e biit to the tales menor y Save the created and set program parameter above 3 Applied 9 3 MULTI2 10 30 10 4 7 Writing data to the CPU Write the created sequence program and parameter setting in each QCPU Maem i le eh ea fe ek i a lS al pul pa ae 8 pl a a hk aL LA LL LS ek A nL a i ak eS a AA p Hg gee eee ee Pe eB BP BP BP BP eB BP BP eB eB eB BP eB BP eB eB BP BP BP eB eB BP BP BP eB eB BP eB eB eB Be eB eB Be Be eB eB BP BP Be eB BP BP Be eB eB BP BP Be BP eB eB eB Be eB eB eB eB Be eB eB BP eB Pe BP Be Be eB Be Be HK Write the created program for QCPU No 1 with GX Works2 Project name Applied 8 Program name MULTI1 1 Check Target System is PLC No 1 in the Transfer Setup screen 2 Click Online gt Write to PLO Password Keyword PLC Memory Operation nat eee 3 The Online Data Operation dialog box is RT tee displayed ee ee t Bae __ _ ee ee ee thong ESET ta wy SE Hh a win eas 4 Click the Parameter Program button pun 4 Click Le mmnne Sna Sma m Es ae a 5 Click the button 5 Click akas 6 When the writing to QCPU No 1 is completed T S the dialog box on the left is displayed Click the i button POEL i LITT TTT TTT TT e Parameter Write Completed Boot File Write Completed Remote Password Write Completed Intelligent Parameter Write Completed Program MULTI1 Write Completed Write to PLC Complete
53. file register size of the currently selected file is stored in SD647 Program example 3 When switching a block SM400 lt SD647 k33 ____ _ lt mo Checks final file register range Mo J ____ YO Processes alarm MO Block switching command RSET K1 Switches to block 1 Before switching the file register block with the RSET instruction confirm that the block after the switching has the size of 1K points or more File register size gt 82K points X Switching block No 1K points 8 36 4 Memory card format In this exercise store the file register in the standard RAM Therefore format the standard RAM as preparation apm Meer al 1 Click Online PLC Memory Operation gt PU a e Format PLC Memory of GX Works2 and select Standard RAM for Target Memory and click the aoinne EEEE z button High speed monitor area from other station Online change area of multiple blacks MELSOFT Application 2 Click the button amanen a 3 Click the button Yaa Program Memory High speed monitor area from other station Online change area of multiple blacks 8 5 2 Operation check 1 Creating a program for operation check Create the following program to check the operation easily Project name Applied 6 Program name FILEREG SM400 0 lt SD647 K2 _ mo Checks final file register range check MO s A Outputs alarm
54. from the e Searches for the data of 2 x n points e Searches for the data of 2 x n points Execution Processing details a g condition af O t O gt Zz basic steps b3 to bO DL 7SEG ay S 4 bit units and stores it at the lower 4 bits of n points from D n lt 4 device specified by S and stores it at the device specified by D n lt 4 by S1 into bits specified by the devices from S2 and stores them to the devices following the device specified by D device specified by S1 with bits specified by the devices from S2 and stores them to the devices following the device specified by D device specified by S into 8 bit units and stores them to the device specified by D points from the device specified by S into 16 bit units and stores them to the device BIOWP specified by D device specified by S in 16 bit units and stores the minimum value to the device specified by D from the device specified by S in 32 bit units and stores the maximum value to the device specified by D from the device specified by S in 32 bit units and stores the minimum value to the device specified by D fs a es eS App 7 Number of basic steps Instruction Execution Processing details _ ae Sorts data of n points from SORT i n S2 D1 D2 4 device specified by S1 in SORT S2 Number of comparisons for single run 16 bit units
55. high speed retentive timers are specified by the instructions The measurement units of the low and high speed retentive timers are set up by parameters Low speed retentive timer 1 to 1000ms 1ms unit 100ms by default High speed retentive timer 0 1 to 100ms 0 1ms unit 10ms by default Counter C Normal counter 1024 points by default CO to 1023 changeable Data register D 12288 points by default DO to 12287 changeable Extended data register D 2 0 point by default changeable Link register w 8192 points by default WO to 1FFF changeable Extended link register W Lee 0 point by default changeable Annunciator F 2048 points by default FO to 2047 changeable Edge relay V 2048 points by default VO to 2047 changeable Link special relay SB 2048 points by default SBO to 7FF changeable Link pecia register Sw 4 A single writing operation may not be counted as one The number of writing into the program memory can be checked with the special register SD682 and SD683 5 A single writing operation may not be counted as one The number of writing into the standard ROM can be checked with the special register SD687 and SD688 6 The number of points can be changed within the setting range Number of Retentive timer Ist device points 2048 points by default SWO to 7FF changeable oO O 3 2 Universal model QCPU Item QO3UDCPU P QOOUJCPU QOOUCPU QO01UC
56. is executed the remote RESET is needed to be allowed in the PLC parameter setting 8 19 8 2 4 Service processing setting This function can set the number of times and time of the service processing executed in the END processing by parameters This function also improves the response of communication with a peripheral device and restrains the increase of the scan time due to the service processing This enables the configuration of optimal service processing environment for the system The service processing indicates the communication service processing with the peripheral device such as GX Works2 and intelligent function module However the link refreshing processing such as with the CC Link IE controller network module MELSECNET H module and CC Link system master local module are not included Using the COM instruction enables the same service processing as the END processing even during the program execution Therefore the high speed service processing response is available even when the scan time is long Execute the process as the scan time proceeds 1 Parameter setting Set the parameters in the PLC system setting of the PLC parameter Q Parameter Selling LL Neme PLC System ruc oe PLC RAS booth iPro f 4 Timer Lint Setong Low Speed fio ms Jews 1000ms High Speed 10 00 ma 0 0L tres 1000 AUN PALISE Contacts RUN x 9 QXD XIFFF pause x QD XIFFF Latch Data Back p Operation Valid Contact p
57. name 4 Click the button From the previous page F Navigation X 5 The program PR3 is newly created Project HAA Parameter l 2 Inteligent Function Module AF Global Device Comment E t Program Setting 1 9 POL E 3 Program Flat PRI Pg BPRS 2 ie Local Device Comment E Device Memory L Device Initial Value 2 Creating a fixed scan execution type program a A program to be created Create a program which counts the number of its executions and displays the count value on the 7 segment display b Devices to be used DIOs Register for counting the number of program executions Y60 to Y6F 7 segment display of the D100 value c Program For the creating procedure of a program refer to section 5 2 3 Project name Applied 2 Program name PR3 SM400 0 KING D100 Counts the number of executions 3H D100 K100 _ JRST D100 Resets the count value SM400 8 HK ________YY _ BCD D100 K4Y60 Displays the D100 value in 7 segments END 3 Creating an initial execution type program a A program to be created Create a program which initializes the register used for PR2 and PR3 b Devices to be used e CO D10 and D100 Targets to be initialized c Program For the creating procedure of a program refer to section 5 2 3 Project name Applied 2 Program name INITIAL S
58. ones used for the auto refresh area are used An area including the auto refresh area can be used as the user setting area when auto refresh is not executed QCPU standard area This area is for the Universal model QCPU to communicate with other CPUs High Performance QCPU or Process CPU in a multiple CPU system This area includes Host CPU operation information area System area Auto refresh area and User setting area For each area refer to 1 to 4 Multiple CPU high speed transmission area This area is for communication with other CPU modules in the multiple CPU system using the Universal model QCPU The Multiple CPU high speed transmission area includes auto refresh area and user setting area a Auto refresh area The area is used when the multiple CPU system is automatically refreshed b User setting area This area is for storing data to be sent to other CPU modules by the program Address for CPU shared memory is 10000H or later 10 8 10 3 2 Communication by auto refresh using CPU shared memory 1 Communication using auto refresh The auto refresh of the CPU shared memory is executed automatically at the QCPU motion CPU END processing for the data transfer between each CPU in the multiple CPU system As device memory data of other CPUs are automatically read by the auto refresh function the host CPU can use those device data Example Operation when CPU No 1 executes auto refresh of 32 points for BO
59. parameter setting in GX Works2 to specify the execution mode for each divided program Control by one program Control by multiple programs split from one program potas toes Sess Ge ane sie Program A Controlled content A Controlled content A Program B The programs divided Controlled content B Controlled content B on the basis of each R DLS teed E CREO OEOEE control data are registered v v Program n Controlled content n Controlled content n The QCPU executes each divided program according to each execution type Initial execution type Scan execution type Standby type and Fixed scan execution type set by parameters The following figure shows the program sequence after the QCPU is powered on or its status is changed from STOP to RUN Powered off on STOP gt RUN Executed only once when the Initial execution CPU module is powered off type program and then on or its status is switched from STOP to RUN END processing l Fixed scan Executed at the execution type specified time intervals program Executed only when its Scan execution Standby execution is requested type program type program Program execution sequence gt Program execution when any subroutine program or interrupt program is called Use the initial execution type program standby type program and the fixed scan execution type program as necessary 6 2 2 Initial execution type program
60. position with Shift an arrow key Deletion is available by the same method Click Input the number of lines to be written in the device instruction input field Click the button ria Input the number of lines to be written in the device instruction input field Click the button ara Move the cursor to the position where a line is to be written and drag the cursor cra Input the number of lines to be deleted in the device instruction input field Click the button rio Input the nuke of lines to be deleted in the device instruction input field gt Click the button Click 8 Move the cursor to the position where lines are to be deleted and drag the cursor Input the number of lines to be written in the device instruction input field gt Input the number of lines to be written in the device instruction input field gt Ait F10 Move the cursor to the position where a line is to be written and drag the cursor Input the number of lines to be deleted in the device instruction input field gt Ctrl F10 gt Input Ctrl F10 the number of lines to be deleted in the device instruction input field gt at F9 gt Move the cursor to the position where lines are to be deleted and drag the cursor Ly Ctrl Shit App 25 Edit Ladd
61. the GX Works2 Version 1 Operating Manual Common Copying an inline structured text box When copying an inline structured text box select a ladder block including the left side of the left power rail Contacts of a ladder block containing an inline structured text box only or an inline structured text box only cannot be copied A ladder block containing an unconverted inline structured text box also cannot be copied Copy a ladder block after converting the program Jumping to an inline structured text box during monitoring At search during monitoring or verification for an inline structured text box the cursor is moved to the target position but the range is not selected App 54 Appendix 8 Battery Install a battery Q6BAT Q7BAT or Q8BAT in the CPU module to hold data in the program memory standard RAM and latch devices even if power failure occurs The following table shows the specifications of the batteries used for the CPU module Type Q6BAT Q7BAT Q8BAT Classification Manganese dioxide lithium primary battery ie battery OV initial voltage Nominal current 1800mAh 5000mAh 18000mAh 1800mAh x 10 pieces Item Battery life when oei Actually 5 years room temperature Battery life when l l jed Refer to the QCPU User s Manual Hardware Design Maintenance and Inspection Lithium content 0 49kg 1 52kg 4 9kg Application For data retention of the program memory standard RAM and latch device during power fa
62. timer OUTH T200 K12 Ladder xo H K12 ret TO OLD xo 1 OUTH To K12 4 Intelligent function module device UO GD The intelligent function module device of the intelligent function module or special function module can be accessed directly from the QCPU as a data register QCPU QJ71 Q64AD O O LP21 O O O O O O O 3Ns1 Link register Buffer memory J3 W0 gt WO U2 G0 gt 0 Indicates link W1 Indicates addressO 1 device No WO of the buffer memory W2 2 Indicates Indicates I O address network No 3 X Y20 of the special function module W1FFF a we a 5 File register R ZR The file register is for extending the data register For the file register use the standard RAM or the memory card SRAM Flash card The following explains the maximum capacity of the file register When using the standard RAM The following table shows the maximum points of the file register data that can be stored in the standard RAM However if the standard RAM is used for an application other than file registers available points are decreased QO6UDHCPU QO6UDEHCPU Q13UDEHCPU Q26UDEHCPU When using an SRAM card Up to 4086K points can be stored in one file Since one block consists of 32K words up to 128 blocks can be stored Note that the number of points or blocks that can be added depends on the capacity of th
63. to B1F and when CPU No 2 executes auto refresh of 32 points for B20 to B3F CPU No 1 CPU No 2 CPU shared memory CPU shared memory Host CPU operation Host CPU operation information area information area Auto refresh area 3 Reading by END Auto refresh area processing of CPU No 2 User setting area User setting area 1 Writing by END 2 Writing by END processing of CPU No 1 processing of CPU No 2 Device memory Device memory a prooessing of CE Bolle O BO to B1F for CPU No 1 processing of CPU No 1 BO to B1F for CPU No 1 B20 to BSF for CPU No 2 B20 to BSF for CPU No 2 The processes performed during CPU No 1 END process 1 Transfers BO to B1F transmission device data for CPU No 1 to the host CPU shared memory s auto refresh area 4 Transfers data in the CPU No 2 CPU shared memory s auto refresh area to B20 to B3F in the host CPU The processes performed during CPU No 2 END process 2 Transfers B20 to B3F transmission device data of CPU No 2 to the CPU shared memory s auto refresh area 3 Transfers data in CPU No 1 CPU shared memory s auto refresh area to BO to B1F in CPU No 2 10 9 2 Executing auto refresh Auto refresh is executed when the QCPU motion CPU is in the RUN STOP or PAUSE status Auto refresh cannot be executed when a stop error has been triggered in the QCPU motion CPU If a stop error occurs On One module the other modules without any error save the data prior to the stop er
64. ween se A A eee ee aeere ee ce Welw ea eee es 2 1 5 2 4 3 Handling the memory card i hk iii a sh we ee ee T A 2 1 6 CHAPTER3 PERFORMANCE SPECIFICATIONS 3 1 to 3 16 3 1 Performance Specifications PEE EE E ee E E Cee eo eo ee A A Cr CoCr E E A a re 3 1 3 2 Device a Shitaia cs bse Ow ia wid anamnestic i we et me etme dir ere a ei ic oll 3 1 1 CHAPTER4 BASIC KNOWLEDGE REQUIRED FOR OPERATING GX Works2 4 1to4 6 41 Screen Configuration in GX Works2 EEE E EE E A E E a ete mime mia E mtace nc aera A E taru sim u A a Riere arma T 4 1 4 2 Basic Operations of Dialog Box aaa arate mel teat oat wt ee etn med aces ced en md Till Sem lnm we N 4 4 4 3 Ladder Program Creation Method weenie eine E E E aero Cea ud ele bole bowed A A T bee s pelea oi eue abla eielae cen awa e died aona eee wens wee 4 5 CHAPTER5 GX Works2 BASIC OPERATIONS PART 1 SINGLE PROGRAM 5 1 to 5 26 5 1 System Configuration of Demonstration Machin crctttttttrctstt terre teeters esse eeeeeeseeeeeeeeseeaeeeeeasoneeneaaaas 5 1 5 2 Basic Operation 1 Operation Before Creating Ladder Programs s 1 1 sttstrssttssterseterseteretteeesees o 2 5 2 1 Starting up GX Works2 TETTEEETELEEEETEEEEELLELEEEELLEEELELELLELEEETEEELLELTEELEEELLEEEELELEELEEEEELLELELELELELELLELELELELEELEEEEEE 5 2 9 2 2 Selecting programmable controller type and project type creating a new project str 5 3 5 2 3 Creating a program Perret rere tree rerrrrrrerrrrretrrrrrrrrrrerrrerrrrrrrrerrrrrrerrr reer rrr r rrr irre e
65. 0ms 0 1ms unit 10ms by default 0 point by default sharing of the low and high speed retentive timers changeable The low and high speed retentive timers are specified by the instructions Retentive timer ST i The measurement units of the low and high speed retentive timers are set up by parameters Low speed retentive timer 1 to 1000ms 1ms unit 100ms by default High speed retentive timer 0 1 to 100ms 0 1ms unit 10ms by default Normal counter 1024 points by default CO to 1023 changeable 12288 points by default DO to 12287 changeable Extended data register D Extended link register W 2048 points by default VO to 2047 changeable 2048 points by default SBO to 7FF changeable Link special register a oie 2048 points by default SWO to 7FF changeable 4 Up to 124 programs can be executed in the CPU module The CPU module cannot execute 125 or more programs 5 A single writing operation may not be counted as one The number of writing into the program memory can be checked with the special register SD682 and SD683 6 A single writing operation may not be counted as one The number of writing into the standard ROM can be checked with the special register SD687 and SD688 7 The number of points can be changed within the setting range Number of device points Universal model QCPU Item Q04UDHCPU QO6UDHCPU QI10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU QO4UDEHCPU QO6UDEHCPU Q10UDEHCPU
66. 0ns 80ns 40ns instruction Processing speed Tracking execution time redundant increased scan time function Constant scanning function for keeping regular scan time 0 5 to 2000ms setting available in 0 5ms unit setting by parameters Proaram capacity 2 10K steps 15K steps 20K steps 30K steps ane 40K byte 60K byte 80K byte 120K byte ea aera 40K byte 60K byte 80K byte 120K byte Memory card RAM Capacity of the installed drive 1 memory card 8M byte max Capacity of the installed Memory card ROM memory card drive 2 Flash card 4M byte max ATA card 32M byte max asa RAM 128K byte 192K byte ar capacity Standard ROM nee 256K byte 512K byte 1024K byte QCPU standard 8K byte CPU memory Multiple shared 3 CPU high Son speed 32K byte transmission area 1 The size unit of the files stored in the memory area differs depending on the CPU module For details refer to the QnUCPU User s Manual Function Explanation Program Fundamentals 2 The maximum number of executable sequence steps is obtained by the following formula Program capacity File header size Default 34 steps For details of the program capacity and files refer to the QnUCPU User s Manual Function Explanation Program Fundamentals 3 Data in the CPU shared memory is not latched Data in the CPU shared memory is cleared when the programmable controller is powered on or the CPU module is reset Universal mo
67. 2 Cc 2 ra 2 O Q o Universal model QCPU QO4UDHCPU QO6UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU QO4UDEHCPU QO6UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU LO to 8191 8192 points by default Latch range l Latch range can be set for B F V T ST C D and W setting by parameters RUN PAUSE contact One contact can be set up in XO to 1FFF for each of RUN and PAUSE setting by parameters Year month date hour minute second and day of the week automatic leap year detection Accuracy 2 96 to 3 74s TYP 1 42s d at 0 C Accuracy 3 18 to 3 74s TYP 1 50s d at 25 C Accuracy 13 20 to 2 12s TYP 3 54s d at 55 C Clock function Allowable momentar Varies depending on the power supply module power failure time 5VDC internal current 43 0 39A consumption External dimensions Of tm 13 The value is 0 49A for the QQ4UDEHCPU QO6UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU and Q26UDEHCPU 14 The following values are applied for the QQ4UDEHCPU QO6UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU and Q26UDEHCPU External dimensions D 115mm Weight 0 22kg 3 2 Device The following table lists the devices used in QCPU and applicable ranges Table 3 1 Device list Default Setting Classification Type Device name range by Points Range parameters m Er Pe l l changed Decimal Retentive timer 0 STO to ST2047 Decimal Word 1024 CO to C1023
68. 287 16384 to 16383 10 to 10VDC External load resistance value 1kQ to 1MQ i oe SE 0 to 20mADC Analog output Careri 0 to 20mADC External load resistance value External load 0Q to 6000 resistance value 0Q to 6000 Standard resolution mode High resolution mode Analog output range PE Maximum E Maximum Digital input value resolution Digital input value Beolilicnh 0 to 5V 0 to 4000 1 25mV 0 to 12000 0 416mV Voltage 8 points 8 channels Digital input T to 5V 0 333mV 10 to 10V 16000 to 16000 0 625mV ein 4000 to 4000 0 75mv_ 12000 to 12000 0 333mVv 0 to 20mA 1 66pA 0 to 4000 0 to 12000 Current _ to 20mA 1 33uA User range 4000 to 4000 1 5uA 12000 to 12000 0 83uA Ambient temperatu Within 0 1 Voltage 10mV Current 20uA re 25 5 C Ambient temperatu re 0 to 55 C 80us channel Absolute Voltage 12V i a l maximum output Current lo i o A _ Available Between the I O terminal and programmable controller power supply Photocoupler insulation Insulation method Between output channels No insulation Between external supply power and analog output Transformer insulation Occupied points 16 points Connection terminal 18 point terminal block Applicable wire size 0 3 to 0 75mm FG terminal R1 25 3 1 25 YS3 RAV1 25 3 R1 25 3 A solderless terminal with sleeve V1 25 YS3A cannot be used Other terminals than FG R1 25 3 A solderless terminal with sleeve cannot be used Rippl
69. 2K byte 2 Up to 511 files can be stored in the Universal model QCPU 2 When using the memory card in the purchased status a Install the enclosed battery e SRAM card battery e eal SE Meena Q3MEM BAT Classification Graphite fluoride lithium primary battery Manganese at ty primary initial voltage V Nominal P mAh used Inspection For Q2MEM 1MBS Q2MEM 2MBS For Q3MEM 4MBS Q3MEM 8MBS b Since the memory card is not formatted in the initial setting use the card after formatting in GX Works2 Formatting is unnecessary for Flash cards 3 Installing and removing a memory card a For Q2MEM type memory card 1 To install the memory card Pay attention to the direction of the memory card when installing it to the CPU module Insert the memory card securely into the connector until the projection of the memory card EJECT button appears Memory card EJECT button lt CPU module Memory card Check the insert direction Amark 2 Toremove the memory card When removing the memory card from the CPU module press the memory card EJECT button and pull out the memory card Memory card EJECT button CPU module b For Q3MEM type memory card 1 To install the memory card When installing a memory card to the CPU module follow the following procedures and pay attention to the direction of the memory card SSCS CPU module ID I
70. 4 1 7 2 Monitor 7 2 1 M Write to PLC z Verify with PLC Program List Monitor Entire Scan Time ee Monitoring Time ms Total Scan Time ms Execution Status of Programs Program list monitor Monitor the execution condition of the multiple programs Applied 2 created in section 7 1 Before monitoring reset and run the CPU Remote Operation PLC Memory Operation gt Delete PLC Data PLC User Data gt Export to ROM Eormat Program Memory Batch Download Latch Data Backup gt PLC Module Change gt Set Clock Register Cancel Display Module Menu Watch gt Local Device Batch Read Save CSV Password Keyword gt TI AI al Stop Monitoring All Windows Start Monitoring F3 My Stop Monitoring d Settings CDSWesktop SCHOOL SCHOOL 22 PRG Write PR1 25 Step Online Debug Diagnostics Tool Window Help Alt F3 Change Value Format Decimal Change Value Format Hexadecimal Interrupt Program List Monitor Condition Setting Monitor Stop Condition Setting Entry Ladder Monitor ital c Lowspeed o o Detail of Scan Time for Scan Execution 1 Click Online Monitor Program List INITIAL Initial a sue Standby 0 000 3 contro scan 0 200 Execution Scan Time ms _ Execution Count a 7 In this case scan time displ
71. 6 points ZRO to 2087935 Block switching not required 4M byte 4184064 points ZRO to 4184063 Block switching not required 8M byte 1041408 points ZRO to 1041407 Block switching not required 2M byte PESE 2087936 points ZRO to 2087935 Block switching not required 4M byte i 8 When a Flash card is used only reading is possible ATA cards cannot be used 517120 points ZRO to 517119 Block switching not required Universal model QCPU Item QO4UDHCPU QO6UDHCPU Q10UDHCPU QISUDHCPU Q20UDHCPU Q26UDHCPU QO4UDEHCPU QO6UDEHCPU QIOUDEHCPU QISUDEHCPU Q20UDEHCPU Q26UDEHCPU Step relay S 8192 points SO to 8191 the number of device points is fixed aR Index register Standard devise l Max 20 points Z0 to 19 register Z Index register Z gister Z Max 10 points ZO to 18 32 bit indexing specification of l Index register Z is used in double words ZR device Pointer P 4096 points PO to 4095 The available ranges of the local pointers and common pointers can ointer be set by parameters 256 points l0 to 255 The constant cyclic interval of system interrupt pointers 128 to 31 can be set by parameters 0 5 to 1000ms 0 5ms unit Default value 128 100ms 129 40ms 130 20ms 131 10ms Special relay SM 2048 points SMO to 2047 the number of device points is fixed Special register SD 2048 points SDO to 2047 the number of device points is fixed Inter
72. 6 to 3 74s TYP 1 24s d at 0 C TYP 1 42s d at 0 C Accuracy 2 34 to 3 74s TYP 1 63s d at 25 C Accuracy 3 18 to 3 74s Accuracy 11 48 to 2 12s TYP 3 03s d at 55 C TYP 1 50s d at 25 C Accuracy 13 20 to 2 12s TYP 3 54s d at 55 C 20ms or less Allowable momentary power failure time 100VAC or Varies depending on the power supply module more 5VDC internal current consumption Ei 98mm External dimensions D mm 893mm oo Weight 0 70kg 4 0 15kg 0 20kg 12 13 14 15 The value is for the CPU module and base unit together The value is 0 46A for the QO3UDECPU The value includes the CPU module power supply module and base unit The following values are applied for the QO3UDECPU External dimensions D 115mm Weight 0 22kg 2 QO4UD E HCPU QO6UD E HCPU Q10UD E HCPU Q13UD E HCPU Q20UD E HCPU Q26UD E HCPU Universal model QCPU Item QO4UDHCPU QO6UDHCPU QiOUDHCPU Q1i3UDHCPU Q20UDHCPU Q26UDHCPU QO4UDEHCPU QO6UDEHCPU QIOUDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU Control method Stored program repeat operation Refresh mode I O control mode l P l Direct access I O is available by specifying direct access I O DXO DYD Sequence control Relay symbol language logic symbolic language MELSAP3 SFC MELSAP LL function block Program language and structured text ST language Process control language Processing LD X0 speed sequence
73. AN Name e Eca Intelligent Q64AD 16Points oad EEN Intelligent Q62DAN 16Points 3 Click the Detailed Setting button to close the parameter setting screen TI Pais anhi ban eei aa aae mar nig regir CPL betae ete eee ic 4 The Intelligent Function Module Detailed Setting dialog box is displayed Set Control PLC for Q62DAN of the slot 4 4 to PLC No 2 5 Click the button to close the parameter setting screen 10 21 4 Intelligent function module data setting Set the analog module as described in chapter 9 In this section set Q64AD which is the controlled module for CPU No 1 Tr MELSOFT Series GX Works C SCHOOL SCHOOL TRACE Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Hel New Ctri N ps A Dey fo 2 a ae we P lt Ctrl O Save Ctrl 5 Save s Compress Unpack Delete verify Project Revision Change PLC Type Change Project Type Object E E NE a N eS A intemgent Function Module New Module N Ctrl Shift E 2 e N As Open Other Data gt Delete Module Export to GX Developer Format File Property Library gt Save the Positioning Module Data Security gt Read from the Positioning Module Data hortes voc FS Hendge Acknowledge I O Assignment Sooty sar iY odres oom a 1 Bit Cen 16 part To the next page 1 Click Project Intelligen
74. C1 The condition establishment of the comparison instruction can be monitored xo MOVP KO x1 PAP Up rove KI SM400 Monitor Status ir 2 0 300ms Local Device not Executed v 2 Butfer memory monitor of the intelligent function module lt Program gt Applied 4 BUFMEM X80 Outputs G11 buffer memory c fB Gi K4Y50F content of U8 in 7 segments K4Y50 lt Operation gt Read the program above and write it with parameters to the programmable controller Reset and run the CPU ea to monitor the program Click Online Monitor Change Value Format Hexadecimal to change the display format to the hexadecimal notation Click Online Monitor Device Buffer Memory Batch Set the contents as Device Name U8 G11 Monitor Format Bit and Word Display 16bit Integer and Value DEC then click OK Monitoring is also available in Watch lt Description gt Turn on the READY signal X80 of Q64AD to display the content of the buffer memory address 11 the value after the A D conversion on the 7 segment display with the program and to check that the buffer memory monitor is available with GX Works2 lt Note gt When the A D conversion value is negative an operation error occurs by the BCD instruction execution As the prevention method adjust the offset value of the A D converter module MELSOVT Series GE Works a a ee ae usa ThE Sak Wakas Kaarina Progra Behera B
75. Compile wiew Online Debug Diagnostics io Can fa hod a Open Ctra ho PAE YB ee Ue iy Close i H save CtrHS Compress Uri hack Delete Yro 1 Click Dratsek Daniar k verify Save Location J C SCHOOLISCHOOL Browse Workspace Project List Project PLC Type 2 Specify the location to t pace list 5 store the project EA Applied 1 QO6UDH l 4 Set a project name 3 Set a workspace name SCHOOL Applied 2 Workspace Name Project Name Title IV Include revisions 5 Set a title as necessary coc _ l Switch the window by clicking this button Save as a Single File Format Project when you want to 6 Click ject MELSOFT Navigato Click format MELSOFT Series GX Works Joes not exist Do you Want to create a new project 1 Click Project Save as 2 Specify the location to store the project 3 Set a workspace name Set the name to SCHOOL 4 Set a project name Set the name to Applied 2 5 Set a title as necessary 6 Click the button to accept the entry 7 Click the button The new project is saved 5 3 Basic Operation 2 Preparation for CPU Operation Write the program created in section 5 2 3 to the CPU after the preparation of setting switches and internal clock Operate the program after writing to monitor and test
76. D 2E E character string E aS 2E T e Converts a 4 digit decimal ASCII value e Converts an 8 digit decimal ASCII value Stores a comment of the device specified Stores the data length number of Converts a 1 word BIN value specified by Converts a 2 word BIN value specified by Converts a character string including Converts a character string including Converts the floating decimal point data e Converts the character string specified by e Converts 1 word BIN values of the e Converts n hexadecimal ASCII characters of the devices following the device specified by S into BIN values and stores them to the devices following the device specified by D Execution Processing details oi J condition basic steps specified by S into a 1 word BCD value and stores it to a word device specified by D specified by S into a 2 word BCD value and stores it to a word device specified by D by S to a device specified by D characters of character string in the device specified by S to a device specified by D S2 into a decimal character string with the total number of digits and the number of decimal fraction digits specified by S1 and st
77. D CO K4Y40 is displayed 13 Click the H button on the toolbar and enter CO 14 Click the button _ 15 The entered symbol Fh is displayed 16 Click the f button on the toolbar and enter RST CO 17 Click the button 4 18 The procedure is finished 19 Click the F button on the toolbar to convert the symbol 20 The symbol is converted 5 2 4 Saving a project 1 Modified project T MELSOFT Series GX Works2 Untitled Project PRG Write PR1 14 Step DBF e ae EE e aaie me cc aby Qy 9 22 1 Click Bee ee a ij Parameter F PLC Parameter E iB Network Parameter Hin Remote Password Intelligent Function Module S Global Device Comment ji Co Program Setting g E POU B Program 3 B Local Device Comment E A Device Memory Save destination of the project data 1 Click on the toolbar or select Project Save S Before saving the created project create a folder of SCHOOL directly in C drive 2 New project mE MELSOFT Series GX Works2 Untitled Project PRG Write PR1 14 Step 1 Click on the toolbar or select Project Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window ts Save Ctrl S Dey co te t4k d E Bo c cchi gd 7 za ot ca Fa ro a i Parameter PLC Parameter amp Network Parameter kin Remote Password ja Intellig
78. Decimal device Data register 12288 DO to D12287 Decimal Link register 8192 WO to W1FFF Hexadecimal Link special register 2048 SWO to SW7FF Hexadecimal Bit Function input FXO to FXF Hexadecimal Function output FYO to FYF Hexadecimal Internal device l Special relay 2048 SMO to SM2047 Decimal system device changed Bit Function register FDO to FD4 device Special register 2048 SDO to SD2047 Link input 8192 Jn XO to Jn X1 FFF Bit Link output 8192 n YO to Jn Y1FFF Link direct device Link relay 16384 Jn BO to JN BSFFF Cannot be device Link special relay Jn SBO to Jn SB1FF changed Word Link register 16384 Jn WO to Jn W3FFF device Link special register Jn SWO to Jn SW1FF Intelligent function Un GO0 to Cannot be 65536 9 Decimal Module Word module device Un G65535 changed access device device Multiple CPU shared U3En G10000 to Can be 44 14336 Decimal device U3En G24335 changed 1 For the timer retentive timer and counter a bit device is used for contacts and coils and a word device is used for a current value 2 The number of points that can be actually used varies depending on the intelligent function module For the number of buffer memory points refer to the manual for the intelligent function module used 3 The number of device points can be changed in the Device tab of the Q Parameter Setting dialog box the points for input relay output relay and step relay cannot be changed For the Universal model QCPU whose serial numb
79. EP ECE RC ee A ET Cee Or ec nT 10 31 1 0 4 8 Operation check TITTLE LCE Le eee CTE CC eT eer ric 1 0 33 APPENDIX App 1 to App 58 Appendix 1 Instruction Tables tssssssssssss suusenununnnnuunnnnuunnuunnuuunnununnnnuunnununnnnuunnununnnnunnnununnnunnnnnnnnnnn App 1 Appendix 1 1 Application NStrUCON biittbnDERE eee App 2 Appendix 1 2 QCPU NS rUCHONS rrrrrrrrrrrrrrrrrnnnnnnnnnnnnnunnnnnnnununnnnnnnnununnnnunnnnnnnnununnnnnnnnnnnnnnnnnnnnnnnnnnnn n App 22 Appendix 2 How to Create Ladder Programs with GX Works2 ssssssss ssuusnnnnuunnnnnnuunnnnnnnuunnnnnn App 23 Appendix 3 Offset Gain Setting eee eee eee eee eee eee eee eee eee rere eter eee rete rete eee ee eee ee eee eee eee ee App 27 Appendix 3 1 Offset gain setting with GX WorkS2 ss sssuuunnnnnuuuunnnnnnuunnnnnnnunnnnnnuunnnnnnnuu App 27 Appendix 3 2 Offset value and gain VOI trrrrrrrrsrssssnnnnnnnnnnnnnunnnnunnnnnunnununnnnnnnnununnnnnnnnunnnnnnnnnnnnnnnnn App 30 Appendix 4 Specifications of the A D and D A Converter Modules s r1 s11ssrestrerettrttteettsseetteeeteesens App 34 Appendix 41 A D Converter moqul ts sssssss ss nuusnununnunuunnununnnnuunnuunnununnnnunnnununnnnunnnununnnnnnn App 34 Appendix 42 D A Converter moqdulQ s ssssss sussunuunnununnunuunnnuuununuunnuuununuunnnuuunununnnnunnnnnnnnnnnnn App 38 Appendix 5 Comparison of Timers and COUNTESS tsss ssssrsssssssssssssssnunnnnnnnuuunnnnuuunnnnnnuunnnnnnnuunnn
80. ESET switch of the CPU and set the switch to RUN For the reset operation refer to POINT in the next page 3 Click on the toolbar or click Online Monitor Start Monitoring The Monitor Status dialog box is displayed and the ladder monitor is started 5 To stop the ladder monitor click B on the toolbar or click Online Monitor Stop Monitoring POINT Reset operation for the Universal model QCPU For the reset operation of the RUN STOP RESET switch follow the procedures shown below Hold the RUN STOP RESET switch to the Reset operation is started using RESET position For one second or more the RUN STOP RESET switch RESET RUN lt RUN STOP RESET STOP switch The reset operation is accepted The ERR LED flashes several times and is being processed three to four times Reset is completed The ERR LED turns off a a R ing i Return the RUN STOP RESET esetting is canceled Switch to the STOP position COD RUN STOP RESET Releasing your hand from the STOP switch RUN STOP RESET switch returns it to the STOP position End 5 4 4 Modifying a program Modify the program written to the programmable controller CPU in section 5 4 1 while the programmable controller is running Modify the setting value K10 to K100 as an example 1 Confirm that Ovrwrte is shown at the lower right portion of the screen
81. For instructions related to SFC refer to the MELSEC Q L QnA Programming Manual SEC SH 080041 App 1 Appendix 1 1 Application instruction 1 Logical operation instructions Instruction Execution Category Symbol Processing details Sondili n Number of basic steps WAND S WANDP S S1 S2 WANDP S1 S2 DAND S D 1 D S 1 S gt D 1 D DANDP S S1 s2 S1 1 S1 A S2 1 S2 D 1 D s1 s2 s2 D n H BKANDP S1 S2 D n O ze a J WORP S S1 S2 S1 S2 09 D D 1 D V S 1 S D 1 D DORP S D s1 s2 D S1 1 S1 V S2 1 S2 gt D 1 D a S1 S2 D mise S2 D n ali S2 D n REMARK 1 The number of steps varies depending the device and CPU type to be used Device Number of steps QCPU QnACPU a Devices other than above e Word device Internal device except for the file register ZR Bit device Devices whose device Nos are multiples of 16 whose digit designation is K8 and which use no Indexing e Constant No limitations a a 2 Only QCPU supports the subset App 2 Instruction Execution Categor Symbol Processing details 6 _ Peon J wxor__ s1 s2 D H WXORP Exc
82. GH ER Eg Sa a a ES i ae H Hodo EDE z au H Es sly er ia nA H g eS we 0 ati dt ate pt ans F Fio 4 STH poy ow ome LE i 3 3 peer 7 sF9 CFS cF saF6 saf Fe FS caFS afo F10 uy Device Comment MAIN Kp Network Parameter MELSECNET C ie iH Parameter og PLC Parameter BR Network Parameter BOL Ethernet CC IE MELSEC Po LR CC Link fig Remote Password x3 Intelligent Function Module TF n 7 Edit screen work window i Global Device Comment S Program Setting i POU IN res a Program za e TO B Local Device Comment y MAIN E Device Memory RAL Newice Thitial alue E en T P 8 Output window t MELSOFT Series GX Works2 Untitled Project PRG Ctrl N Ctrl 0 Ctrl s Compress Unpack Delete Verify Project Revision Change PLC Type Change Project Type Object Intelligent Function Module Open Other Data Export to GX Developer Format File Library 10 Drop down menu Security Print J Print Preview B Print Window Print Window Preview Printer Setup 1 C SCHOOL SCHOOL QLLT 2 QUT 300000 4 C NSCHOOL SCHOOL QB 11 Start GX Developer 2 Exit Q Title bar Title bar displays the name of the active project Resizes or terminates GX Works2 Maximizes or restores GX Works2 ME MELSOFT Series GX Works C SCHOOL SCHOOL QEX15 M efx F Displays the name and Minimizes GX Works2 the path of the project
83. M400 0 RST CO Resets CO RST D10 Resets D10 RST D100 Resets D100 END 4 Creating a standby type program 1 a A program to be created Create a program which sets the setting value of the counter CO and the data register D1 of the program PR1 b Devices to be used gt X6 and X7 Switches which import the setting value of digital switches when the program is changed from the standby type to the scan execution type ae Oe Resets the counter used in PR1 DO and D1 Registers for storing binary data c Program For the creating procedure of a program refer to section 5 2 3 Project name Applied 2 Program name SUB X6 Co Resets uA counter 0 RST CO 5 used in PR1 Co Converts BCD data of BINP K4X20 DO X20 to 2F into binary data and stores it in DO X7 Converts BCD data of 11 _ _ _ BINP_ K4X30 D1 4X30 to 3F into binary data and stores it in D1 END 5 Creating a stand by type program 2 a A program to be created Create a program which counts the number of its executions b Devices to be used e DOme Register for counting the number of program executions Y50 to Y5F 7 segment display of the D10 value e PO Stun era u Gisteintn wrecwcetwace Pointer for loop c Program For the creating procedure of a program refer to section 5 2 3 Project name Applied 2 Program name PR2 Counts the number Of lt D10 K10000 RR INC D1 of executions Resets the
84. MITSUBISHI PY Mitsubishi Programmable Controller Training Manual Q series advanced course for GX Works2 SAFETY PRECAUTION Always read these instructions before using the products When designing the system always read the relevant manuals and give sufficient consideration to safety During the exercise pay full attention to the following points and handle the product correctly EXERCISE PRECAUTIONS lt gt WARNING Do not touch the terminals while the power is on to prevent electric shock Before opening the safety cover make sure to turn off the power or ensure the safety Do not touch the movable portion N CAUTION Follow the instructor s direction during the exercise Do not remove the module of the demonstration machine or change wirings without permission Doing so may cause failures malfunctions personal injuries and or a fire Turn off the power before installing or removing the module Failure to do so may result in malfunctions of the module or electric shock When the demonstration machine such as X Y table emits abnormal odor sound press Power switch or Emergency switch to turn off When a problem occurs notify the instructor as soon as possible REVISIONS The textbook number is written at the bottom left of the back cover Oct 2012 SH 081124ENG A First edition This textbook confers no industrial property rights or any rights of any other kind nor d
85. Memory configuration of the multiple CPU high speed transmission area The following explains the memory configuration of the multiple CPU high speed transmission area of the CPU shared memory that is used in the multiple CPU high speed transmission function 2 CPU No 1 send range 3 User setting area 1 Multiple CPU high speed transmission area a 2 CPU No 2 send range ce 4 Auto refresh area 2 CPU No 3 send range 2 CPU No 4 send range Size No Name Description Setting range Setting unit Area for data transmission between each CPU Multiple CPU high speed modules in the multiple CPU system O to 14K Kad transmission area The area up to 14K word is divided by each CPU words module that constitutes the multiple CPU system Area to store the send data of the each CPU module CPU No n send arean Sends the data stored in the send area of the O to 14K uod host CPU to the other CPUs words e Other CPU send area stores the data received from the other CPUs Area for data communication with other CPUs reat see using the multiple CPU area device 0 to 14K User setting area l 2 words Can be accessed by the user program using the words multiple CPU area device e Area for communicating device data with other O to 14K Auto refresh area os 2 words CPUs by the communication using auto refresh words When the COM instruction is used in the sequence program auto refresh can be executed automatically at the execution of
86. NHAP S D Hexadeci mal DBINHA DBINHA Is D ASCII DBINHAP BCDDA BCDDA S D BCDDAP DBCDDA DBCDDA S D DBCDDAP DABIN DABINP DDABIN DDABIN S D DDABINP HABIN Hexadeci mal HABINP ASCII DHABIN BIN DHABINP ajah ehlh hahaaa DBINDA S o E he d d H DBINHAP S D T ae BCDDAP S D Ta d DBCDDAP S D aE DABIN S D T DABINP S D T ahs DDABINP S D 1E HABIN S D i a HABINP S D T DHABIN S D ag DHABINP S D a e Converts a 1 word BIN value specified by e Converts a 2 word BIN value specified by e Converts a 1 word BIN value specified by e Converts a 2 word BIN value specified by e Converts a 1 word BCD value specified e Converts a 2 word BCD value specified e Converts a 5 digit decimal ASCII value e Converts a 10 digit decimal ASCII value e Converts a 4 digit hexadecimal ASCII value specified by S into a 1 word BIN value and stores it to a word device specified by D e Converts an 8 digit hexadecimal ASCII UY l Execution 9 Processing details ba 2 condition E
87. O e Enabled only Z0 and Z1 are usable e Enabled e Disabled Indexing e Enabled only ZO and Z1 are usable e Enabled e Disabled e Disabled e Disabled e Disabled e Enabled Z0 to Z15 are usable e Enabled e Enabled Update processing for current value e When OUT Tn instruction is executed e When END processing is executed Contact ON OFF processing App 43 Appendix 6 Setting device initial values The device initial value set in the peripheral device beforehand can be automatically transferred to the device memory file register and the intelligent function module when the status changed from STOP to RUN When the device initial values are set the initial setting program is unnecessary Program memory Standard ROM and Memory card Automatic transfer l at STOP RUN Device memory Device initial value File register Intelligent function module Required Settino To use the setting function of the device initial values set Device Memory and Device Initial Value in the project data list The device initial value file reflecting the setting needs to be written to be stored in the program memory the standard ROM or the memory card Devices Where the Initial Values can be Set The following table shows the list of devices where the device initial values can be set 4 Device name z io i x name bility bility name bility name bility name bility X x T Contact x FD x SZ x UD G O T Coil JO X
88. PU QO2UCPU Q03UDECPU switching in units of 32768 points RO to 32767 Max 4184064 points by block switching in units of 32768 points RO to 32767 Max 1041408 points by block switching in units of 32768 points RO to 32767 Max 2087936 points by block switching in units of 32768 points RO to 32767 Flash card 2M byte Flash card 4M byte Number of 32768 points RO to 32767 Standard 32768 points RO to 32767 Max 98304 RAM Max 65536 points by block switching points by block switching Se swicigin ns 3 Ta Max 1041408 points by block pe switching in units of 32768 points RO to 32767 SRAM Max 2087936 points by block card switching in units of 32768 4M byte points RO to 32767 File 517120 points ZRO to card 517119 Block switching not 1M byte required device E gate 98304 points points ZRO to Standard 65536 points ZRO to 65535 98303 RAM Block switching not required Block switching not required SRAM 1041408 points ZRO to card 1041407 Block switching not ZR 2M byte required 2087936 points ZRO to 2087935 Block switching not required SRAM card 8M byte 4184064 points ZRO to 4184063 Block switching not required 1041408 points ZRO to 1041407 Block switching not required 2087936 points ZRO to 2087935 Block switching not required Flash card 2M byte Flash card 4M byte 7 When a Flash card is used only reading is possible ATA cards cannot be us
89. QCPUs on the entire multiple CPU system are reset and are restored when the QCPU No 1 is reset or the power of the CPU is reapplied When a stop error occurs at QCPUs No 2 to 4 Set whether to stop the entire system or not in the event of a stop error at the QCPU No 2 to 4 in Operation Mode in the multiple CPU setting of GX Works2 Follow the procedures below to restore the system 1 Confirm the error detected CPU No and error cause in the PLC diagnostics Remove the error cause Reset the QCPU No 1 or restart the power of the programmable controller All QCPUs on the entire multiple CPU system are reset and are restored when the QCPU No 1 is reset or the power of the CPU is reapplied 10 5 10 3 Communication among each QCPU Motion CPU in Multiple CPU System In the multiple CPU system the following is available Data transfer among each CPU module by the auto refresh of the CPU shared memory Reading the CPU shared memory between QCPUs and the motion CPU shared memory from the QCPU with the multiple CPU dedicated instructions e Control instruction from a QCPU to a motion CPU with the motion dedicated instructions e Writing reading of device data from a QCPU to a motion CPU with the multiple CPU transmission dedicated instructions 10 3 1 CPU shared memory The CPU shared memory is for transferring data between QCPUs and its capacity is 24336 words of OH to SFOFH The CPU shared memory consists of five areas
90. SNNNNNNSNNNNNEUNNEBANNNNGNNNEBHNNNENNNNNEN 6 3 6 2 Program Execution Management ensnnnnnnnnnNnNNNSNNNNNNNNNNNNNNNNSBUNNNDNNNNSENNNSBUNNSSENNNSBHNNESUNNNSENENNNSBUNNEBHNNESBNNNNNNNN 6 7 6 2 1 Description of program execution type nensnnnunnnnnnNNNNNNNNSNNNNNNNNNNNNNNNNNBNNNNSNNNNESNNNEBENNESENNNNNSHNNNEBNNNENENNNN 6 7 6 2 2 Initial execution type program ensnnnunnnnnNNNNNNNNNNSNNNNNDNNNNNNNNNSSUNNNSNNNNSNNNNSBUNNNSANUNNEBHNNNSENNNEBHNNEBHNNNENNNNNNNNN 6 9 6 2 3 Scan execution type program TOTTTTTTITI CCITT TIT T TITTLE 6 1 0 6 2 4 Standby type program sensnnnununnnnNNNNNNNNNNDNNNNSNNNNNSNNNNSNBNNNSSNNNNSUNNNESHNNSSGUNNEBUNNESEBANNESENNNEBHNNESENNNEBUBENNNNNDN 6 1 1 6 2 5 Fixed scan execution type program nenunnnunnnnnnNNNNNNNNNNDNNNNSNNNNNBNNNSSNNNNSENNNNBNNNNEBHNNEBUNNSNEEMNNNEGNNNNBNNNENDN 6 1 2 6 2 6 Executing El nensnnnunnnnnnNNNONNNNNNNNNNNNNNNNNNNNSNNNNNBUNNNNSBNNNNSENNNSONNNSSHNNNSEMNNESHNNESANNNSGMNNNSNBHNNESHNNNSENNEMHNNEBHNNENNDN 6 14 CHAPTER 7 GX Works2 BASIC OPERATIONS PART 2 MULTIPLE PROGRAMS 7 1 to 7 14 7 1 Multiple Programs E E E E E E E r E E Wib acwg ee aceluiacn eiacete re 1 7 1 1 Creating multiple programs EA IE ONSE eee ee E EE E A E E A ee en E a eee NTE 7 1 7 1 2 Creating programs for control E E E E TAE E A E E E E E E A E E E E a wentdGa arniars 7 5 7 1 3 Setting parameters E EEEE AE E SE EERE EE EE S E E EEA E E E se EEEE A EE E E EE EE aie 7 7 1 2 Monitor a E L A T a A L A E A a A E C S T A a A wie E A E T A T E T
91. T Current value JO Y C Contact JO B C Coil JO SB C Current value JO W ST Contact JO SW ST Coil BLO S ST Current value BLO TR D SD x amp O OUx x x x x x x x x x x x x x OO0OO0OxXxOKXXxXxO X LXX XXO X OO xX App 44 Preparations for the Initial Value Setting Operation Check 1 Create the following program to check operation easily Project name Applied 10 Program name DEVINT SM400 always ON c SBE Do K4Y40 4 BCD display of DO K4Y40 ENDH 2 Configure the setting in the Program tab of the PLC parameter in the project data list as shown below ProgramName Execute Type Fixed Scan Interval Pi Joevint Scan EE O f n no M noo EE o O App 45 Appendix 6 1 Setting device memories 1 Set device initial value to a device memory Set DO to 1234 in the following procedure bees Intelligent Function Module Global Device Comment data list and click Add New Data EI Program Setting A a POL Program 3 Parameter 1 Right click Device Memory in the project New Data x 2 The dialog box on the left is displayed Click Data Type the button Device Memory In this example set MAIN as Data Name Data Name MAIN M Use Macrocode Use mC MGR Use EN ENO cesi 3 Select a cell where a device value is set ze Device Memory MAIN 4 Enter DO to the cell 5 Press the key The device DO is set in the device numb
92. The device initial value comment is stored in the device initial value file Configure the setting on the Device Initial Value screen in the project data list Device Initial Value MAIN The device range and the device data that is set above will be write to PLC You must execute Device Memory Diversion operation when the device initial range setting is changed r Setting Method Device Memory Diversion Device Memory Start End for Diversion C Points Start 7 Jevice Memory Diversion Print Print Preview Print Setting OK Cancel 8 4 Appropriate Assignment of Device Points In the ACPU the device points are fixed In the QCPU the device points to be used can be assigned according to a system appropriately The following table lists the description Setting range Default value Number of device points Set the number of Up to 32K points for 8K points each internal device one device can be a Fixed points within the range of 8K points 29K words in total Fixed except for the 8K points devices X Y S SB 8K points and SW 8K points 2K points 2K points 2K points 8K points 2K points OK points 1K points 12K points 8K points 2K points OT WH lt 2 VEIO lt Latch range 1 Set a latch range Only one range can Latch clear operation where the data can be set for each enable range be cleared by the device latch clear ope
93. U Q20UD E HCPU Q26UD E HCPU 4096 points X YO to FFF Up to 8192 points X YO to 1FFF are supported as the I O device points available for the remote I O stations in the MELSECNET H remote I O network and CC Link data link 2 Lineup corresponding to the program capacity The following table lists the lineup of CPU available for various program Capacity peewee oy High Performance model QCPU Greer Universal model QCPU 3 High speed processing High speed processing has been achieved Example LD instruction processing speed High Performance Q02CPU SS O PONS O model QCPU Ae E ENPU PU QO6HCPU Q12HCPU Q25HCPU 34ns page QO6PHCPU Process ProcessCPU emi leo eee Q25PHCPU Universal model QO2UCPU ps QCPU QO03UD E CPU P20 Q04UD E HCPU QO6UD E HCPU Q10UD E HCPU Q13UD E HCPU 9 5ns Q20UD E HCPU Q26UD E HCPU The high speed system bus for the MELSEC Q series base unit has achieved faster access to an intelligent function module and link refresh with a network module a Basic model QCPU MELSECNETHH link refreshing 2 2ms 2K words 1 The Q01CPU is used without SB and SW and the MELSECNET H network module is mounted on the main base unit 4 b High Performance model QCPU Process CPU Redundant CPU or Universal model QCPU Access to the intelligent function module 20us word approximately 7 times MELSECNET H link refreshing 4 6ms 8K words approximately 4 3 times 2 These are
94. U system Terrie ere er ere ee 10 3 10 2 3 Communication between QCPUs and modules Tree eee eee err ere eet ree eet re erent ere ren 10 3 10 2 4 Reset and operation for QF OPS ccc ccccccoooooooooooooouoeeeeeeeeeeeeegeeeeegeggesegugggggggggggggggggggggggeggagagaaarsns 10 4 10 3 Communication among each QCPU Motion CPU in Multiple CPU System vrrrrrrrttrterrtteetetteeeeeees 10 6 10 3 1 CPU shared memory SECRET R CRTC REE REE UR EERE CRE RCO CCRT RIO CR Cn ETRE 10 6 10 3 2 Communication by auto refresh using CPU Shared memory sssssssssrrrsserrrssrrreserreserrenennreenenen 10 9 10 3 3 Communication by auto refresh using multiple CPU high speed transmission area 10 11 10 3 4 Communications by the multiple CPU instruction and motion dedicated instruction 10 14 10 4 Starting up Multiple CPU System ERE RE CCR E TEESE CE TEC E O CT eT ES a er ra errr E 10 1 5 10 4 1 Procedure for starting up the multiple CPU system a a A O a T 10 1 5 10 4 2 System configuration of the demonstration machine CECT ERUPT TERR EC CRE LET ERE EEC EC EOC eee 10 1 7 10 4 3 Creating a program for CPU NO 1 lista alae his aa ww ll Waly wi wT el lea Ge ee ee aa eel eee nee a 10 18 10 4 4 Parameter setting for CPU No 1 PT Tee ERC OE COCR ROC OCC OOOO ren orn rT 10 1 9 10 4 5 Creating a program for CPU No 2 TOLMER EVER PERE VETER RTE CRE RCE RIOT RCT 10 25 10 4 6 Parameter setting for CPU No 2 PRCT ERT ETT EOS RE eRe eR Cr re 10 26 10 4 7 Writing data to the CPU ETRE CRC TLL RTE CL
95. When A D converter module Q64AD is used e Initial setting A D conversion enable disable setting e Sampling averaging processing specification e Time average number of times average specification e Average time average number of times specification Set data in auto refresh settings is stored to the intelligent function module parameter on a QCPU Set a device on a QCPU to store the following data to e Digital output from Q64AD e Maximum and minimum values of Q64AD e Error code Set data in auto refresh settings is stored to the e Auto refresh setting intelligent function module parameter on a QCPU Writes set data in device initial settings of intelligent function modules to the intelligent function modules at the following timings e At power on of a QCPU e At reset e At switching from STOP to RUN Read or write data from or to the buffer memory on an intelligent function module Directly handles the buffer memory on an intelligent function module as a device of a QCPU Unlike FROM TO instruction this requires only one instruction for processing data that is read from an intelligent function module Used to simplify programming for using the functions of intelligent function modules Setting method Use GX Works2 Use GX Works2 to specify the range for intelligent function module devices UO GD Use this instruction in a Sequence program Specify this device as a device ina sequence program Use this ins
96. able shows the accessibilities to the controlled non controlled module Output Y Buffer memory Write The accessibilities for motion CPUs are different from programmable controller CPU and 1 in the table applies to them For details refer to section 2 1 3 of the MOTION CONTROLLER Programming Manual COMMON Q173D S CPU Q172D S CPU IB 0300134 10 3 2 Communication among each QCPU In the multiple CPU system the following communications are available among each QCPU e Auto refresh of the device data between each QCPU motion CPU with the parameter setting for the multiple CPU system Data transfer between QCPUs motion CPUs with multiple CPU dedicated instructions e Control instruction from a QCPU to a motion CPU with motion dedicated instructions e Writing reading of device data from a QCPU to a motion CPU with the multiple CPU transmission dedicated instruction 10 2 4 Reset and operation for errors 1 How to reset a system The entire multiple CPU system can be reset by resetting the QCPU No 1 Resetting QCPU No 1 resets all QCPUs I O modules and intelligent function modules If a stop error occurs in any of the QCPU on the multiple CPU system reset QCPU No 1 or restart the programmable controller power supply ON OFF ON for recovery Recovery is impossible by resetting the QCGPUs motion CPUs No 2 to 4 with the stop error Nr CPU No 1 CPU No 2 CPU No 3 CPU No 4 E Cannot b
97. access device Link direct device Note that the scan time may be increased much longer if the CPU module receives multiple requests simultaneously while the many service processing count specifications are set When the service processing time is set much shorter than the scan time the response performance of the service processing decreases significantly Set the service processing time considering the time out time of the peripheral device An error of 20us to 30us occurs between the actual processing time and the set service processing time 8 3 Comments Storage Function The QCPU can store various types of comments This improves the operability of the CPU and makes the program easier to be read for users other than the program designer The following table lists each type of the comment which can be stored to the QCPU Property Give a title or comment for each data Gives a comment or label to the device to be used in a program Statement note Give a statement note for each step number P or pointer Device initial value comment For the details on the setting method of each function refer to the GX Works2 Operating Manual Gives a comment for the device initial value file 1 PLC name Giving a comment to a CPU enables easy confirmation of the target CPU when GX Works2 accesses the QCPU Set a label and comment as a PLC name Set a PLC name in the PLC Name tab of the PLC parameter in the project data list
98. aference C ater banery gt par J Gulden E e 3 Monitoring real number floating decimal point data lt Program gt Applied 5 FLOATING SM400 K1i0 K3 DO Integral value division E E10 E3 D10 H Floating point division single precision ED E10 E3 D20 Floating point division double precision END lt Operation gt Read the program above and write it with parameters to the programmable controller Reset and run the CPU Click F amp to monitor the program lt Description gt Check that the results of the division are different In integral numbers 10 3 3 remainder 1 In floating decimal points 10 3 3 33333 The data in floating decimal point format can be monitored directly with GX Works2 Selecting Online Monitor Device Buffer Memory Batch displays the following display Display 16bit Integer bo oojo ojololojoolololojo of 3 D1 ojojolojojojojolojojoloj ao off 1 Display Real Number 32Bit D10 oM phh he Ee 3 3333333 D11 ogg o olo o o o ogi ogi ogs oE Display Real Number 64Bit D20 Dr Dee i l l p23 ol The real number data includes the single precision floating point data and double precision floating point data 1 Two word devices are used for the real number data of the single precision floating point data 2 Four word devices are used for the real number data of double precision floating point da
99. am name specified program name when the 2 input condition is met ECALLP k Pn S1toSn 3 n S1 to Sn are arguments sent to f en Vag rami eine subroutine program 0 lt n lt 5 EFCALL Pn S1 to Sn ECALLP J O O J TI m gt gt J O m I rm rm gt U x 5 e Executes non execution processing of EFCALL x Program name Subroutine program Pn in the specified 2 oi Bi program name when input conditions have not been not met St Executes link refreshing and general data processing Executes indexing for individual EFCALLP Pn S1toSn EFCALLP x Program name devices used in the device indexing ladder Stores the indexing value used for indexing executed between the ne 2 and IXEND to the device specified by D or later Specifies index value 1 n indicates number of arguments for the subroutine program 2 n indicates the total number of arguments used in the subroutine program and program name steps The number of program name steps is calculated as number of characters in the program 2 decimal fraction is rounded up App 9 7 Table operation instructions Instruction Processing details EXGCUNON symbol g condition Category Number of basic steps D Pointer 1 Device at poin
100. and Error Fuse Blown Module Verify Error Intelligent Module Program Execution Error File Access Error Memory Card Operation Error External Power Supply OFF In the initial setting Stop is set for all errors As an example when Module Verify Error is set to Continue the operation is continued from the I O address before the error Ro fs cdl dl Recor bes Error whether to continue or stop an operation can be selected in Detailed Setting in the I O assignment setting of the PLC parameter e Intelligent function module error For error items which can be set to Stop or Continue in the PLC RAS tab of the PLC parameter in the project data list an error for which Continue is set does not stop the operation even when the corresponding error occurs 6 For the following errors whether to execute an error check can be selected in the PLC RAS tab of the PLC parameter in the project data list 1 Carry Out Battery Check Carry Out Fuse Blown Check Verify Module Check Device Range at Indexing Diagnose Redundant Power Supply System In the initial setting all the items set to execute the error check Without the error check errors are not detected Therefore the processing time of the END instruction can be shortened o1 A W PO 8 1 2 System display function The system configuration module name number of I O occupied points and I O address of the connected host station can be checked from the periphera
101. ay does not change _ because the actual program processing time is fast J Da X1 OFF ON X2 OFF ON X3 OFF ON X4 OFF ON 2 The Program List Monitor dialog box is displayed Turn on or off the switches X1 X2 X3 and X4 to check that the execution statuses change The change of execution status Switches PR1 to the scan execution type Switches PR1 to the standby type Switches PR2 to the standby type Switches PR2 to the scan execution type Enables PR3 execution Disables PR3 execution Switches SUB to the standby type Switches SUB to the scan execution type 1 Entire Scan Time Displays the total scan time of each program type and monitoring time set in the PLC RAS tab of the PLC parameter in the project data list a Monitoring Time Displays each monitoring time of the scan program and initial program When the scan time exceeds these time a watchdog timer error is displayed on the CPU Total Scan Time Displays the total time of the scan program and initial program each For the scan program the END processing time is included 2 Detail of Scan Time for Scan Execution Displays the detail of the scan time a b c Program Displays the total execution time of scan programs END Processing Time Displays the END processing time Constant Wait Displays the waiting time at a constant scan execution Execution Status of Programs Displays the execution statu
102. basic steps J O D o En b15 D bO SM700 Right rotation n bit J O D v 5 5 ae I O I o 5 EE b15 D bO SM700 4 P Right rotation n bit J O I v o gt JJ O m J 5 am SM700 b15 D 7 ROLP Din Left rotation n bit RCL Di nH SM700 b15 D RCLP Din E Left rotation n bit DROR D nH b3L to b16 b15 to bo SM700 _DRORP Din Right rotation n bit DRCR D n b31 to b16 b15 bO SM700 JoL Right rotation n bit D 1 D SM700 631 to b16 b15 to b0 4 Left rotation n bit J D O m o 5 aE D O U o 5 Ea D 1 D SM700 b31to b16 b15 to bO J D O m 5 E ma Left rotation n bit App 4 3 Shift instructions Instruction Execution Processing details Lae symbol condition SFRP SFRP Din n bit shift SFLP tsFLP Din SM700 a zA 0 to 0 BSFRP BSFRP Din 1 bit a Bse BSFL Category Number of basic steps
103. by the file access instruction such as the SP FWRITE instruction in a sequence program through a CSV format or binary format 2 4 3 Handling the memory card The specifications of the memory card which are available for the QOPU module conform to those of the JEIDA PCMCIA small programmable controller card Only one memory card can be installed to the QCPU 1 Memory card specifications a SRAM card Type lt Type ns Q2MEM 1MBS Q2MEM 2MBS Q3MEM 4MBS Q3MEM 8MBS Memory capacity 1011 5K byte 2034K byte 4078K byte 8172K byte after format Storable number of files Number of insertions and 5000 times removals External dimensions b Flash card Type Item Ooo OMe y O Q2MEM 2MBF Q2MEM 4MBF Memory capacity 2035K byte 4079K byte Storable number of 288 files Number of insertions and 5000 times removals ee eooo dimensions D 8M c ATAcard Pe Type Item f oem Q2MEM 8MBA Q2MEM 16MBA Q2MEM 32MBA Memory capacily 7982K byte 15982K byte 31854K byte after format Storable number of files Number of insertions and 5000 times removals Number of writings 1000000 times dimensions 5 DP o YO Weight 1 The capacity of the ATA cards with the manufacturer control number E or earlier after formatting is as follows Manufacturer control number E Q2MEM 8MBA 7948K byte Q2MEM 16MBA 15948K byte Manufacturer control number E or earlier Q2MEM 8MBA 7940k byte Q2MEM 16MBA 1593
104. ction direction xi Use prohibited x8 Operating condition setting completed fag Y9 Operating condition setting request Y Y Y Channel change request Set value change request Synchronous output mode flag OO ver il Synchronous output request Use prohibited Use prohibited Error flag ve o Error clear request X9 XA XB xC XD XE XF Y9 A C D E YF 1 These signals cannot be used by the user since they are for system use only If these are turned on off by the sequence program the functioning of the D A converter module cannot be guaranteed 2 For the Q62DAN and Q62DA the use of Y3 to Y8 is prohibited For the Q64DAN and Q64DA the use of Y5 to Y8 is prohibited App 40 4 Buffer memory The following explanation is mentioned based on the Q64DAN with 4 channel analog output CH1 to CH4 Buffer memory assignment of the D A converter module A TE Defaut Readiwrite Hexadecimal Decimal a ornen a w On O ooa o o w Ca 2 chavigialvaue o Ca p e onae f o j ow C omoota o aw DE E System area La ee E O EE TTT E ee SE EOE CH3 Set value check code a ee a a Oom 5 System area Cow 19 oo J o o w 2 o e fg oosa a Systemarea Ce a e a ow specification e ee e specification e a ce specification For Q62DAN the buffer memory areas for CH3 and CH4 are system areas i This is the initial value set after the power is turned on or the programmab
105. ction list The following table lists other functions l Executes a program in a set time interval regardless of its Constant scan function i scan time Latch function Holds the device data even at power off or reset Battery life prolongin T E ai Extends the life of a battery by holding only clock data unction Output status setting function Sets the output Y status outputting the same status prior to when the status changed STOP or clearing status when the operating status of the from STOP to RUN CPU module is switched from STOP to RUN Remote operation function Remote PAUSE Stops the CPU temporarily Remote RESET Resets the CPU Remote latch clear Clears the latch data in the CPU Relationship between P The relationship between the RUN STOP switch setting for remote operation and l the CPU and the remote operation is explained CPU i l Specifies the service processing count or time to be executed Service processing setting in the END processing Switch setting for the Configures settings for intelligent function modules Refer to intelligent function module manuals of intelligent function modules for setting details supporting QCPU Refer to section 9 2 3 Response time change for Changes the response time of the input module supporting the input module supporting QCPU to 1ms 5ms 10ms 20ms or 70ms Default 10ms QCPU Refer to section 10 7 For the details on the functions which requ
106. ctions from a motion CPU to other motion CPU is not allowed Data transfers with the multiple CPU transmission dedicated instruction between QCPUs motion CPU and QCPU and motion CPUs are not allowed 10 14 10 4 Starting up Multiple CPU System This Chapter explains the standard start up procedures for the multiple CPU sysiem 10 4 1 Procedure for starting up the multiple CPU system Definition of functions with multiple CPU system Control and function executed in each CPU module are defined Salwetioncof mod ilotoruse Select the module to achieve the function with the multiple CPU system Mountinarotinodile Mount the selected module on the main base unit and the g extension base unit Start up of GX Works2 Start up GX Works2 Parameter settings such as multiple Set parameters such as the multiple CPU setting and the control CPU setting Aia a send For the setting method of parameters refer to section 10 4 3 l When auto refresh of device data is executed l l the number of refresh points is continuously obtained Application and assignment of device For auto refresh of device data refer to section 10 3 1 and 10 4 3 3 Creating sequence programs Powering on programmable controller CPU Power on the programmable controller CPU with the RESET STOP RUN switch in STOP Connection of personal computer to QCPU No 1 Connect the personal computer in which GX Works2 has Write the parameters and sequence program in QCPU
107. d When processing ends close this window automatically 6 Click 10 31 2 Writing data into QCPU No 2 Write the created program for QCPU No 2 with GX Works2 Project name Applied 9 Program name MULTI2 1 Check Target System is PLC No 2 in the Transfer Setup screen 2 Click Online Write to PLC Password Keyword PLC Memory Operation 3 The Online Data Operation dialog box is displayed 4 Click the Parameter Program button 5 Click the button 6 When the writing to QCPU No 2 is completed the dialog box on the left is displayed Click the button s5 S 1 6 Click 10 32 10 4 8 Operation check Check the operation with the following procedure 1 Reset of the multiple CPU 1 Reset the QCPU No 1 2 Set RUN STOP RESET switches of QCPUs No 1 and No 2 to RUN 2 Operation check 1 Change input voltages for the A D converter module with the volume on the demonstration machine The digital conversion value is displayed in the 7 segment display Y40 to Y4F 2 The D A OUTPUT voltmeter displays the voltage value that the D A conversion module outputs The displayed value is quarter of that of the A D INPUT voltmeter since the A D input range is 0 to 10V and the D A output range is 0 to 5V and the digital conversion value is operated to half in the CPU 10 33 MEMO 10 34 APPENDIX Appendix 1 Instruction Tables
108. d flag 1 CH1 Digital output value NO h E oe ee AJIJ 1 ee Q O SO OINIOIO gt NO OH 1H 2H SH 4H SH 6H 7H 8H H H A H 2 CH3 Maximum value oo I CH3 Minimum value CH2 Digital output value CH4 Maximum value CH3 Digital output value CH4 Minimum value p F 7 CH5 Maximum value z 2 O I 2 27H CH5 Minimum value 5 8 9 CH7 Minimum value 20 44 CH8 Maximum value Setting range CHS to ORO 2DH 45 CH8 Minimum value CH8 Offset gain setting mode i Offset specification 17H 23 Offset gain setting mode R W Gain specification 1 For Q64AD the buffer memory areas for CH5 to CH8 are system areas 2 Indicates whether reading from and writing to a sequence program are enabled R Read enabled W Write enabled 1 CH6 Maximum value eS NIO NIN I ee 41 CH6 Minimum value 12H 42 CH7 Maximum value h N gt T i Le i Le i Le CH4 Digital output value R LR LCR Ei La iN ioe as as as TMIimM s UO O W h NO Po W III Ql I D _ h O om App 37 Appendix 4 2 D A converter module For the details refer to the Digital Analog Converter Module User s Manual SH 080054 1 Performance specifications Q62DAN Q64DAN Analog output points 2 points 2 channels 4 points 4 channels 16 bit signed binary standard resolution mode 4096 to 4095 high resolution mode 12288 to 12
109. date the written parameters then check the operation Keep the switch of the CPU No 2 to STOP e Change input voltages for the A D converter module with the volume on the demonstration machine The digital conversion value is displayed in the 7 segment display Y40 to Y4F e When X8 is turned on the D A OUTPUT voltmeter displays the voltage value that the D A converter module outputs The displayed value is quarter of that of the A D INPUT voltmeter since the A D input range is 0 to 10V and the D A output range is 0 to 5V and the digital conversion value is operated to half in the CPU e When an error occurs find the cause following 2 Monitor test described below to solve the error Monitor test This section explains how to check the status of the A D converter module a Checking method with GX Works2 system monitor 1 Click Diagnostics System Monitor 2 Select Q64AD of the slot 3 and click the Detailed Information button Or double click Q64AD To the next page From the previous page 3 The information of the selected module information of Q64AD here is displayed Click the H W Information button 4 The LED status is displayed No LEDname Status RUN LED 0000H Off ERRORLED 0001H On a 3i Toes Berii et z ie MEMO CHAPTER 10 HOW TO USE MULTIPLE CPU SYSTEM 10 1 Overview of Multiple CPU System A multiple CPU system consists of more than one QCPU motio
110. de I F Serial Setting dialog box is displayed Check USB and click the button 5 Double click PLC Module of PLC side I F From the previous page PLE side NE Detailed Seiling of PLE Module EA 6 The PLC side I F Detailed Setting of PLC Module dialog box is displayed Select QCPU Q mode and click the 6 Click Aai button 7 Click the button 5 Formatting the built in memory of the CPU This section explains how to format the program memory of the QCPU 1 Click Online PLC Memory Operation gt Online Debug Diagnostics Tool Window Help 28 Read from PLC ED Format PLC Memory pare 0 3 385 SY 26 2 a Verify with PLC gt Remote Operation kisii Delete PLC Data Clear PLE Memory ear PL4 p ame Herp PLC User Data gt Arrange PLC Memory Export to ROM Format Program Memory Batch Download 1 C ick Latch Data Backup gt PLC Module Change gt Set Clock Reaister Cancel Display Module Menu Monitor gt Watch gt Local Device Batch Read 5ave CSV Format PLC Memory x 2 The Format PLC Memory dialog box is g p Connection Channel List poneo FSB 5 cbse displayed Select Program Memory from the Target Memory drop down menu Target PLC Networ 3 F Station No Host PLC Type Roso Target Memory Progr am Memory o f 3 Click the button Do not create a user setting system area the required sy
111. de status flag Y8 completed flag request XC Use prohibited YC Use prohibited completed flag value reset request XE A D conversion completed flag YE Use prohibited Error flag Error clear request 1 These signals cannot be used by the user since they are for system use only If these are turned on off by the sequence program the functioning of the A D converter module cannot be guaranteed App 36 4 Buffer memory The following explanation is mentioned based on the Q68ADV and Q68ADI with 8 channel analog input CH1 to CH8 Buffer memory assignment of the A D converter module Hexa Deci Description ra di Description deci mal deci mal mal mal A D conversion enable disable setting CH1 Average time average R W 5 number of times CH2 Average time average R 1AH 26 number of times 7 h I 24 2 System area CH3 Average time average R IBH 2 number of times CH4 Average time average R 1CH 28 number of times CH5 Average time average R W 1DH 29 number of times CH6 Average time average R 1EH number of times CH7 Average time average R W 1FH number of times CH8 Average time average R W 20 number of times 1 a O DIDDL lel ele lela ag l l 2 4 H1 Maximum value R W 7 CH1 Minimum value R W CH2 Maximum value R W CH2 Minimum value e E O Averaging process setting R W A D conversion complete
112. del QCPU Item QO3UDCPU QOOUJCPU QOOUCPU Q01UCPU QO2UCPU Q03UDECPU Programmemory AL Aa O 1A Memory card 319 when the Q3MEM 8MBS RAM is used Flash ar ooo oo Max number of files stored Standard RAM 3 files each one of the following files file register file local device file and sampling trace a Standard ROM ROM 128 Number of times of writing data into Max 100000 times 4 the program memory Number of times of writing data into the standard ROM Max 100000 times Number of I O device points number of usable points on 8192 points X YO to 1FFF program ee eee ate 256 points 1024 points 2048 points 4096 points actual I O Satie X Y0 to FF X Y0 to 3FF X YO to 7FF X YO to FFF Internal Internal relay M Internal relay M 8192 points by default MO to 8191 changeable Latch relay L 8192 points by default LO to 8191 changeable Link relay B 8192 points by default BO to 1FFF changeable 2048 points by default TO to 2047 changeable sharing of low and high speed timers The low and high speed timers are specified by the instructions Timer T The measurement units of the low and high speed timers are set up by parameters Low speed timer 1 to 1000ms 1ms unit 100ms by default High speed timer 0 1 to 100ms 0 1ms unit 10ms by default 0 point by default sharing of the low and high speed retentive timers changeable The low and
113. e 4 Click the button 3 Check Fie Listas fom her erg U ager ado A Og ge eg Oe bers al a TE S iisa g baia ara i prnpr ting en Save the created and set program parameter above Applied 8 MULTI 10 24 10 4 5 Creating a program for CPU No 2 Create a program for QCPU No 2 in the similar way for QCPU No 1 In this exercise the simple program as below is used since the communication data is 1 word which requires no interlock In addition attach the program to be created here to a different project from the project of the QCPU No 1 Sequence program for QCPU No 2 The sequence program reduces the digital conversion value stored in the device of the QCPU No 1 for auto refresh D10 to half and converts the value into the analog signal from CH1 of Q62DAN Applied 9 MULTI2 0 Y91 Analog output enabled Outputs the value of the gt D10 KO H D10 K2 UGI rane for auto refresh between multiple CPUs END from CH1 in analog X90 X0 Module READY U9 G1 Un G1 CH1 Digital value Y91 Y1 CH1 Output enable disable flag 10 25 10 4 6 Parameter setting for CPU No 2 The related items to the multiple CPU system set for CPU No 1 can be used for the CPU No 2 with Import Multiple CPU Parameter in GX Works2 without re entering POINT The parameter multiple CPU setting PLC system No of empty slot and I O assignment written into the CPU needs to be the same in all
114. e directly reading the data stored in the buffer memory of the intelligent function module and writing data to the buffer memory 2 Difference from the FROM TO instruction Since the intelligent function module device can be recognized as a device of the QCPU reading data from the intelligent function module can be processed with one instruction The processing speed is the total of the instruction execution time and the access time with the intelligent function module 3 FROM TO instruction The FROM instruction stores data read from the buffer memory of the intelligent function module to the specified device The TO instruction writes data stored in the specified device to the buffer memory of the intelligent function module Intelligent function module Buffer i memory When reading the data of the intelligent function module for several times in a program use the FROM instruction at one place and store the data to the data register instead of using the intelligent function module device for every time The reason is that the intelligent function module accesses the intelligent function module every instruction execution which extends the scan time of the program 9 1 38 Communications with the intelligent function module dedicated instruction This instruction enables easy programming for using functions of the intelligent function module For example the serial communication module dedicated instruction OUTPUT instructi
115. e instruction input field gt Click the button Click H X1 in the device instruction input field Click the button 5 X1 in the device instruction input field Click the button App 23 field cas in the device instruction input field gt 2 X1 in the device instruction input field gt X1 in the device instruction input field Enter Y1 in the device instruction input field MOV K1 DO in the device instruction input field gt Fox in the device instruction input field Enter X1 in the device instruction input field Edit Ladder Symbol Open Contact X1 in the device instruction input field gt Edit Ladder Symbol Close Contact X1 in the device instruction input field gt Edit Ladder Symbol Open Branch X1 in the device instruction input field Edit Ladder Symbol Close Branch X1 in the device instruction input field Edit Ladder Symbol Coil Y1 in the device instruction input field gt Edit Ladder Symbol Application Instruction Y1 in the device instruction input field gt Edit Ladder Symbol Pulse Contact Symbol Rising Pulse X1 in the device instruction input field gt Edit Ladder Symbol Pulse
116. e spike 500mVP P or less External supply power Inrush current 2 5A Inrush current 2 5A Inrush current 2 5A Inrush current 2 5A within 250us within 260us within 230us within 230us 0 15A 0 24A 0 20A 0 27A Internal current consumption 5VDC 0 33A 0 34A 0 38A 0 38A Weight 0 19kg 0 20kg 0 20kg 0 20kg I O characteristics Maximum resolution Accuracy Accuracy for maximum analog output value Within 0 3 Voltage 30mV Current 60uA Applicable solderless terminal App 38 2 Names of parts Q62DAN Q64DAN Q68DAVN Q68DAIN E H Q62DAN Q64DAN Q68DAVN Q68DAIN RUN RUN m RUN AG A AN CN PELLET EL EEL ZN Name and ca No Description appearance Indicates the operation status of the D A converter module ON In normal operation 1 RUN LED Flicker In offset gain setting mode OFF 5V power failure or watchdog timer error occurred Indicates the operation status of the D A converter module ON Error occurred OFF In normal operation 2 ERROR LED Flicker Switch settings error occurred Values other than 0 has been set to the switch 5 on the intelligent function module External power 3 Terminal for connecting a 24VDC external power supply supply terminal FG terminal Frame ground terminal App 39 3 List of I O signals List of I O signals of the D A converter module Signal Signal D A converter module CPU module ee CPU module D A converter module dire
117. e changed Are Vou sure 10 19 2 Auto refresh setting 1 Specify the device to be used in the CPU shared memory Click the button in the row of PLC No 1 in the Multiple CPU High Speed Transmission Area Setting tab Fr Sir JAE a crm fie ay fim ee eee foe omy Umer Fie Gr tpg es me E rc T E an rem ganana Sm Pe i Berm yae ian Bede ai Pa De a PL Got mi Pai d be a ere oS 2 Set the device for storing the data transmitted PEE E MeweyPi lt West from CPU No 1 to the other CPU as follows Setting No 1 2 points D10 Total Ports setebleponts Avaliable start devices are X T ML BO W RIR 5M 90 58 97 Word is uiad for points Every 2 ponts are courted as a set 1 ySetnng shoud be cet at come phen wang multiple OPU 2 Ce _ cons 3 Click the PLC No 2 tab and set the device for storing the data which CPU No 1 receives from CPU No 2 as follows Setting No 1 2 points D12 For auto refresh the following devices can be used e Device available for send range X Y M L B M SD SB SW e Device available for receive range X Y M L 10 20 3 Control CPU settings s Click the I O Assignment tab on the Q Parameter Setting dialog box D CP Coes ina dd rais cl Ln La baad ll naa Suni PU rep cose rarer dene Sg lenp pee eng feet Joe el 2 Set the I O assignment to the slots which mount Q62AD and Q62D
118. e intelligent function modules The following table lists the available number of parameter settings for the initial setting and auto refresh that can be set on the intelligent function modules Auto refresh max Module model Module type Initial setting fixed number of auto name refreshes Q64AD QCPU Q mode Q mode Analog module Q64AD Q64DAN For details refer to the GX Works2 Version 1 Operating Manual Intelligent Function Module REMARK Module switch setting item Module switch setting item for Q64AD DNx Settingitem SSS Input range setting Analog input range MRI D COOOL SEEN Not used With temperature drift correction 01toFFRH Without temperature drift correction OH Normal resolution mode 1to FH High resolution mode OH Normal mode A D conversion processing 1toFH Offset gain setting mode 0 Fixed Setting item Output range Analog output range Output range setting setting value 10 20mA 010 20mA o 1t0 BV Output range 0 to 5V 7 100 10V setting User range setting 5 CH8CH7CH6CH5 CH4CH3CH2CH1 HOLD CLEAR function setting OH CLEAR 1toFH HOLD Normal mode non synchronized 01 to FFH Synchronized output mode Normal resolution mode 1toFH High resolution mode Normal mode D A conversion processing 1toFH Offset gain setting mode 0 Fixed 9 2 3 Operation check and monitor test 1 Operation check i ie Run the CPU after resetting to vali
119. e on the personal computer side Double click each interface to set the details 2 PLC side I F Select the module on the programmable controller side to be connected with the peripheral device Double click each module to set the details Other Station Setting Specify the host station or other station Double click each icon to set the details e No Specification Select this to access the programmable controller CPU which is directly connected to a personal computer e Other Station Single Network Select this to access the programmable controller CPU on other station via only one type of network including a multi tier system such as CC Link MELSECNET 10 H CC Link IE controller network Q series C24 module and Ethernet Since Ethernet is recognized as equivalent to CC Link IE controller network and MELSECNET 10 H select Single Network for a mixed system in which Ethernet CC Link IE controller network and MELSECNET 10 H are configured e Other Station Co existence Network Select this to access the programmable controller CPU on other station via two types of network This means the system which consists of two different networks such as from MELSECNET 10 H to CC Link module or from Q series C24 module to MELSECNET 10 H Network Communication Route Select the network type network number station number and the start I O number of the network that is routed at an access to the programmable controller CPU on other sta
120. e programs and device comments stored in the memory card When using a Flash card Up to 2039K points can be stored in one file Since one block consists of 32K words up to 64 blocks can be stored Note that the number of points or blocks that can be added depends on the memory card capacity and the capacity of the programs and device comments stored in the memory card The large capacity data can be accessed with a block unit of 32K words or the whole file register in series a Block switching method The used file register points are divided and specified in units of 32K points RO to R32767 When multiple blocks are used the desired block is specified with the block number in the RSET instruction Each block has a specification range of RO to R32767 RSET K1 RO specification for block 1 RO MOV DO RO J Block 0 R32767 a RO RSET K2 RO specification for block 2 Block 1 MOV DO RO J na RO Block 2 b Serial number access method A file register whose capacity is exceeding 32K points can be specified with consecutive device numbers Multiple blocks of a file register can be used as a continuous file register This type of the device is expressed as ZR MOV DO ZR32768 Block 0 H MOV DO ZR65536 Block 1 Block 2 6 Function devices FX FY FD Function devices are used in subroutine programs with argument passing Data are read or written between such subroutine programs and callin
121. e reset in a multiple CPU system Doing so will result in MULTI CPU DOWN in all CPUs in the multiple CPU system This CPU can reset the overall the multiple CPU system 1 It is impossible to reset the QCPUs motion CPUs of No 2 to 4 individually in the multiple CPU system If any of QCPUs motion CPUs is reset during operation of the multiple CPU system a MULTI CPU DOWN error code 7000 error occurs in other CPUs and the entire multiple CPU system stops However depending on the timing when any of QCPUs motion CPUs of No 2 to 4 is reset an error other than the MULTI CPU DOWN may stop other QCPUs A MULTI CPU DOWN error code 7000 error occurs if QCPUs No 2 to 4 are reset regardless of the setting of the operation mode All station stop by stop error of PLC2 to 4 in the multiple CPU setting of the PLC parameter 10 4 2 Operation for errors The entire system behaves differently depending whether a stop error occurs in CPU No 1 or any of CPU No 2 to 4 in the multiple CPU system a When a stop error occurs at QCPU No 1 When a stop error occurs at CPU No 1 a MULTI CPU DOWN error code 7000 error occurs at the other QGPUs motion CPUs No 2 to 4 and the multiple CPU system is stopped Follow the procedures below to restore the system 1 2 3 Confirm the error cause with the PLC diagnostics Remove the error cause Reset the QCPU No 1 or restart the power of the programmable controller All
122. ect Revision change PLC Type 1 Click i Change Project Type Object gt ees iii iE EAA AS R 4 Open Other Data gt Delete Module Export to GX Developer Format File Property Library gt Save the Positioning Module Data Security gt Read from the Positioning Module Data New Module El 2 The New Module dialog box is displayed 3 Set the A D converter module setting as follows Module Type Analog Module Module Name Q62DAN Mounted Slot No 4 Specify start XY address 0090 4 Click the button To the next page From the previous page oe MELB OLT oN ia GX Works 5 The specified intelligent function module data are i POVIOMPE REDO A A TT ANT added to the Project window E 5AA od POSA 8 By Rob ISAK fig UESKMAD K oy RE EEA SES r m Ad vFERE 6 Double click Switch Setting i lhe Able E Parameter F PLC Parameter BR Network Parameter in Remote Password J Intelligent Function Module Gh 0080 Q644 i ags 7 The Switch Setting screen is displayed Set Output range for CH1 to 0 to 5V 8 Click the button 7 Set Synchronous Output Mode Resolution Mode Setting Normal Resolution Mode Drive Mode Setting Normal D A Converter Processing Mode v This dialog setting is linked ta ee nao the PLC parameter g Default value will be shown in the dialog i if the Switch Setting of the PLC parameter contains an out of range va
123. ed Universal model QCPU Item QO3UDCPU P P 1UCP 2UCP QOOUJCPU QOOUCPU Q01UCPU QO2UCPU Q03UDECPU Step relay S j 8192 points SO to 8191 the number of device points is fixed Index register Max 2 Z 1 Standard devise register Z ax 20 points ZO to 19 Max 10 points Z0 to 18 Index register Z is used in double words Index register Z 32 bit indexing specification of ZR device 512 points PO to 511 4096 points PO to 4095 The available ranges of the local The available ranges of the local pointers and common pointers can be pointers and common pointers can set by parameters be set by parameters 128 points 10 to 127 256 points 10 to 255 The constant cyclic interval of system The constant cyclic interval of interrupt pointers 128 to 31 can be set system interrupt pointers 128 to 31 by parameters can be set by parameters 0 5 to 1000ms 0 5ms unit 0 5 to 1000ms 0 5ms unit Default value 128 100ms 129 40ms Default value 128 100ms 129 I30 20ms 131 10ms 40ms 130 20ms 131 10ms 2048 points SMO to 2047 the number of device points is fixed 2048 points SDO to 2047 the number of device points is fixed Number of device tracking words a ee Device for accessing the link device directly Link direct device Dedicated to CC Link IE controller network and MELSECNET H Specified form JO XO JO YO JO WO JO BO JO SWO JO SBO Device for accessing the buffer memory of the intellig
124. ent In the ACPU all processes are developed in one program In the QCPU a program is composed of several files which enables the program development divided by functions and processes for several developers 1 Advantages of file based management a Programs can be stored to a memory in file basis Therefore even when a file is added or changed corresponding to a partial change of a program other files are not affected Names and time can be added to programs and data for management Ss Each file can be write protected O lt 2 File type and the data to be stored The following table shows the types of data which can be stored in each memory Memory CPU module built in memory Memory card ROM card RAM File name and Item Program Standard Standard Remarks SRAM card Flash card ATA card extension neon Intelligent function module P O IPARAM QPA 1 data drive parameter File register 7 uae 1 data CPU a ea Sampling trace file eae QTD Device data es storage file S 4 QST j Module error IERRLOG collection file QIE g l MEMBKUPO Programmable controller user k k kxk g data User setting system area uid fe rp T3 4 D 6 Ee 8 9 10 11 E _ O Storable x Not storable A drive number is used to specify a memory to be written read by the external device using a sequence program or MC protocol Since the memory name is used to specify the
125. ent Function Module Global Device Comment 2 Program Setting U 2 Local Device Comment A Device Memory Only when a newly created project is saved 2 Specify the location to store the project Save Location JesscHoou Browse 3 Set a workspace name Workspace Project List Set the name to SCHOOL 2 Specify the i to store the project 4 Set a project name a ee nae Set the name to Applied 1 3 Set a workspace name 5 Set a title as necessary Workspace Name SCHOOL i Project Name Applied 1 Title 6 Click the button to accept the entry Switch the window b Save as a Single File Format Project when you want to MELSOFT Navigato MELSOFT Series GX Works 7 Click the button The new project is saved e Workspace Workspace enables GX Works2 to manage several projects with one name e When the save destination exists When the save destination workspace and project exists the folder where the workspace is saved can be specified in Workspace Project List e Number of the characters for a workspace name project name and title Specify a workspace name project name and title within 128 characters each However the total number of the characters of the save destination path name workspace name project name must be within 150 5 2 5 Saving a project with another name Project Edit Find Replace
126. ent Function Module Intelligent Function Module Global Device Comment Global Device Comment Program Setting fd Program Setting Initial Program INITIAL i Scan Progra i Standby Program scan i Fixed Scan Program 1 Set No Execution Type oe eu 5 9 Pou 4 Pou P B Program Drag and drop a CONTROL 44 INITIAL 4 PRI aN PR2 PR3 2 PLC system setting Click the PLC System tab on the Q Parameter Setting dialog box Set 0 to Points Occupied by Empty Slot erg should be set as saree when using toie CPU are Commer Pointer No P Aer 04107 Parts Conugned by Empty She 1 0 rts Sytem Veengt Senny Pond Scan interval 128 106 0 my 09sm iOO ts as ms 03m0 pojme my ipamo i OS as 0 5 00 Dtercugt Progam fosd Scan Prog am Setting I High eitean ARC Compahbility Setting D Uwe specal relay seca regeter from S950 1000 Droe the the P pocoms athena j F Wecty serves process time ma D 2ms 1000m serves J per ood ia Tinas 1 18 Temas C Qencute k while mating for conmant kan petting RC Meche Drep Setting PLC Module Change Setting After the setting of 1 and 2 click the button and click Project Save to save the contents Writing the data to the programmable controller CPU Write the created programs PR1 PR2 PR3 INITIAL SUB and CONTROL and parameters to the programmable controller CPU Refer to section 5
127. ent function module Intelligent function module device directly Specified form UO GO Data transmission speed 00 O Communication mode OO Transmission method Sd Baseband eam OOO O J e hub and node number of Max four nodes Pointer P Number of device points Interrupt pointer I 100 10Mbps Full duplex Half duplex Specifications of built in Ethernet port CPU f module connectable ion 0BASE T Cascade connection nodes Max two nodes 16 in total for socket communication MELSOFT connection and MC protocol 1 for FTP eee Number of connections 8 The step relay is a device for the SFC function 9 For the Universal model QCPU whose serial number first five digits is 10042 or later the number of device points can be changed to zero 10 For the Built in Ethernet port QOPU 11 The number is a total of TCP IP and UDP IP Universal model QCPU me DCPU QOOUJCPU QOOUCPU Q01UCPU QO2UCPU QO3UDECPU LO to 8191 8192 points by default Latch range Latch range can be set for B F V T ST C D and W setting by parameters RUN PAUSE contact One contact can be set up in XO to 1FFF for each of RUN and PAUSE setting by parameters Year month date hour minute second and day of the week Year month date hour minute second and automatic leap year detection day of the week automatic leap year detection Accuracy 2 96 to 3 74s Clock function Accuracy 2 9
128. er Second upper Second lower Second upper App 19 D Minute Second a5 E Pi An Number of basic steps ahhaha fay sa 16 Peripheral device instructions Instruction l Execution Processing details E symbol condition Number of basic steps Stores the message specified by S to the QnACPU This message is displayed on the peripheral device Stores the data input from the peripheral device to the device specified by D 17 Program instructions Instruction l Execution Processing details p symbol condition Number of basic steps PSTOP Sets the specified program to the standby POFF e Turns off the coil of the OUT instruction of the specified program and sets the POFFP program to the standby status PSCAN e Registers the specified program as a scan ie Program name Registers the specified program as a J Li low speed execution type Program name n number of file name characters 2 indicates a step decimal fraction is rounded up App 20 Category read write operations in 1 byte units Instruction symbol 18 Other instructions ADRSET S D ADRSETP S KEY S n D1 ZPUSH
129. er first five digits is 10042 or later the points for step relay can be changed to 0 4 Available only in multiple CPU systems Internal user Cannot be Default Setting Classification Type Device name range by Points Range parameters Index Index l Word l l Cannot be register Standard register Standard 20 ZO to Z19 Decimal device changed devise register devise register 7 Word File register File register device Extended data Word Extended data 0 to 4086K register device register points j Extended link Word Extended link register device register Cannot be Nesting Nesting 15 NO to N14 Decimal changed 4o96 PO to P4095 Cannot be Pointer l 10 14 Interrupt pointer l0 to 1255 changed Bit x device Network No re 255 J1 to J255 Decimal Aine specification device Cannot be I O No specification UO to UFF to changed ny Hexadecimal device U3E3 Macro instruction egal device Decimal constant _ constant K 2147483648 to K2147483647 Hexadecimal HO to HEFFFFFFF constant Single precision floating point data Constant Real number E 1 17549435 38 to E 3 40282347 38 constant Double precision floating point data E 2 2250738585072014 308 to E 1 7976931348623157 308 Character strin g ABC 4 23 constant 5 Up to 15 digits can be entered in GX Worksz2 6 Indicates the total number of points for the file register extended data register D and extended
130. er display area To the next page App 46 From the previous page 6 Click the cell DO and enter 1234 Press the Key The initial value is set to DO ze Device Memory MAIN 2 Seta device range of the device initial value In this example set DO to D9 as the device initial value Intelligent Function Module Global Device Comment Program Setting Add New Data j E POU E B Program a DEVINT 3 Local Device Comment E amp Device Memory i Tretorn 1 Right click Device Initial Value and click New Data x 2 The dialog box on the left is displayed Click Data Type the button Device Initial Value In this example set MAIN as Data Name Data Name MAIN F 3 The dialog box on the left is displayed Enter DO for Start and D9 for End To the next page App 47 From the previous page Device Initial Value MAIN ud 4 Select the device memory MAIN where the Start Co device initial value is set 5 Click the button MELSOFT Application 6 The dialog box on the left is displayed Click the button MELSOFT Application X 7 Click the button Device Initial Value MAIN x 8 Click the button to close the dialog Points Comment ez box App 48 Appendix 6 2 Specifying file names for device initial value Set a file to be used as a device initial value file in the PLC File tab of the PLC parameter in the project data list lavigat
131. er Symbol Horizontal Line gt Input the number of lines to be written in the device instruction input field gt Edit Ladder Symbol Vertical Line Input the number of lines to be written in the device instruction input field gt Edit Edit Line Move the cursor to the position where a line is written and drag the cursor Edit Ladder Symbol Delete Horizontal Line Input the number of lines to be deleted in the device instruction input field gt Edit Ladder Symbol Delete Vertical Line Input the number of lines to be deleted in the device instruction input field gt Edit Delete Line Move the cursor to the position where lines are to be deleted and drag the cursor The following shows how to input the instructions for the low speed timer high speed timer retentive timer and edge relay 1 Low speed timer 4 Edge relay To input the retentive timer set the device points on the device setting screen of the PLC parameter App 26 Appendix 3 Offset Gain Setting In the A D and D A converter modules which handle analog signals adjust the offset gain to secure the signal accuracy as necessary For the offset gain refer to appendix 3 2 In the A D or D A converter modules of Q series the offset gain settings can be executed in the GX Works2 The A D converter module Q64AD is used as an example in t
132. er is turned on next time No battery 3 required wa Program memory Flash ROM for data protection CPU built in memory Program No battery cache memory lt backup SHAM needed For program F Programming execution a tool Device data Backup Latch data Device memory ZGA Backup condition is file File register ON Standard ROM Standard RAM 2 4 2 Memory card application A QCPU equips a built in memory as standard for storing parameters and programs therefore the programs can be executed without a memory card The memory cards are required for the situations in the table below A memory card cannot be used for QQQUJCPU QOOUCPU Q01UCPU 1 SRAM card File registers in the SRAM card can be written or read by the sequence program The SRAM card is used when e the number of file registers exceeds the standard RAM capacity or e the sampling trace function is used When file registers are stored to the SRAM card they can be written or read by the sequence program up to 4086K points 2 Flash card Write data with GX Works2 and read it by the sequence program Data can only be read by the sequence program Use the Flash card when changing the data is unnecessary File registers can be stored up to 2039K points 3 ATAcard An ATA card is used for programmable controller user data general purpose data Programmable controller user data of an ATA card can be accessed
133. ers need to select an intelligent function module that is appropriate for the purpose involved QCPUs are compatible with QCGPU compatible intelligent function modules The following table shows examples of the intelligent function modules Table 9 1 Example of intelligent function module Number of I O Module current Name Function occupied points consumption Input module that converts 0 to 20mA 0 to 4000 in standard resolution mode 0 to 10V 0 to 4000 in standard resolution mode Analog digital converter module Q64AD 16 points Output module that converts O to 4000 0 to 20mA in standard resolution mode 0 to 4000 0 to 10V in standard resolution mode Digital analog converter module Q62DAN 16 points 9 1 Communication with Intelligent Function Module Communication method Initial setting Auto refresh setting Device initial value FROM TO instruction Intelligent function module device UD GO Intelligent function module dedicated instruction The following table shows the communication methods between a QCPU and an intelligent function module Table 9 2 Communication method with intelligent function modules Function Performs initial settings and auto refresh settings of intelligent function modules These settings allow writing reading data to from intelligent function modules regardless of communication program creation or buffer memory address Ex
134. evcenare Remote Reset Allows Outat Mode at STOP to RUN Previous State f Rocaleulsbe Cetput is scan ister i Sething Aod be set as same when using multiple CPU Common Pointer o P Alter 04095 Points Qcoupled by Emoty Skt 1 16 7 Ponts pe Freed Scan Interval 129 100 0 me 0 5ms 1000ms System Interrupt Settings 129 400 ms 0 5ms 1000ms tafann ms osme 10s T3t i00 me osme 10a Interrupt Program j Fixed Scan Program Setting m High Speed Execution APLE Compatihiity Setting Use special relay special register from SMSO 1000 c Processing Setting ce Execute the process asthe san 10 bine proceeds C Specily service process Ume ms 0 2re 1000ms Specly servia process af execution counts Times 1 10 Times Execute k rhis wating for constant scan setting PLC Modde Change Setting PLC Module Change Setting Achrowtodge XY Assignment Defaut __ Check Go Carcel To execute the service processing select any of the parameter items in the following table The setting value of deselected parameter cannot be entered Default Execute the process as the scan time proceeds 10 Set the percentage of service processing for one scan e Range 1 to 99 e Unit 1 Default when selected 10 Specify service Set the time of service e Range 0 2 to 1000ms l Default when selected 0 2ms process time processing for one scan e Unit 0 1ms Specify service p
135. ext program Double click the inline structured text box The editing method of the inline structured text is the same as that of the ST language For editing programs in the ST language refer to the GX Works2 Version 1 Operating Manual Structured Project and MELSEC Q L F Structured Programming Manual Fundamentals 3 Deleting an inline structured text box E PRG Write MAIN 75 Step 1 Select an inline structured text box to be deleted AvaData DD D1 D2 D3 4 E PRG Write MAIN 75 Step aJ 2 Click Edit Delete One ladder block containing the inline structured text box is deleted App 52 4 Program example of the inline structured text xO a DO D1 D2 D3 D4 2 SS a oe 30 Program example without the inline structured text Al a Cts CAG f Dog App 53 BINP K2X36 DAO Deg LEO Appendix 7 2 Precautions on using the inline structured text 1 6 Precautions on creating ladder programs e One inline structured text box can be created for one ladder block e Both an FB and an inline structured text box cannot be used in a ladder block e When the creation of an inline structured text box is attempted at the contact instruction area an inline structured text box is created at the coil instruction area e A ladder program cannot be edited if an unconverted inline structured text program exists on the ladder editor Edit a program after converting it
136. g programs using function devices e Each device is used as below FX Bit condition input by a subroutine FY Bit output condition FD I O data condition The contents of MO are passed to FXO and the contents of DO are passed to FD1 7 Step relay S This relay is dedicated to SFC for indicating an active status of each step In Sequence programs a step relay can be specified with the block Example BL2 S1 Specifies the step relay 1 of the block No 2 8 Edge relay V The edge relay is for generating pulses in the repeatedly executed programs such as subroutine programs and interrupt programs Using this device makes the pulse generation instructions such as a subroutine and the interrupt program easier to be used eels In a normal program In a subroutine program xozZ1 VOZ1 f ncp boH c gt ro CING Dozt Link direct device JJO O The link direct device is for the direct access to the link device in a CC Link IE Controller Network module or MELSECNET H module Using this device shortens the transmission time of the link device Also the link range which is not set by the network refresh parameter is accessible CHAPTER4 BASIC KNOWLEDGE REQUIRED FOR OPERATING GX Works2 4 1 Screen Configuration in GX Works2 1 Title bar 2 Menu bar G MELSOFT Series GX Works C SCHOOL SCHOOL OEX15 Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Help DB PA Ea EP GS n Ad
137. g methods with GX Works2 the sequence instructions and the application instructions for understanding the MELSEC Q series programming The related manuals are shown below 1 QCPU User s Manual Hardware Design Maintenance and Inspection TERT eee eT eET ELE CLLR EL CLE LE eee Ee eT Cee ee Ore eee SH NA 080483ENG Explains the hardware 2 QnUCPU User s Manual Function Explanation Program Fundamentals E CCS PROSSER PORES CESROSCS A EET SSSCROSETSESR ONS A ese ee EEE Seemeas SH NA 080807ENG Explains the functions and programming method 3 MELSEC Q L Programming Manual Common Instruction TEER A CER EEC CE Tee NCR ECE TNE RECT e eR CCU TET ST a SH NA O80809ENG Explains details of each instruction 4 GX Works2 Beginner s Manual Simple Project TC CLR eC eRe PET EEL R RTE ee Lee RT Eee ee SH NA 080787ENG 5 GX Works2 Version 1 Operating Manual Common Tre rr te ere eee Lee Tree re eee A cer rea SH NA 080779ENG 6 GX Works2 Version 1 Operating Manual Simple Project Oe eC CE TCT ERTL ELE CE EEE CET ETE CCR ee reer re reer ie SH NA 080780ENG 7 Before Using the Product a A L A A Teeriiieriereetieerree A tee BCN P5782 8 Digital Analog Converter Module User s Manual mA A A A a A A A A A SH NA 080054 9 Before Using the Product TTTTCTIUCTITTTITTTETL ETL a E BCN P5781 10 Analog Digital Converter Module User s Manual TTTTTTTETITTTIT TITLE ETTTTT TTT a a a E T a T O T SH NA 080055 11 MELSEC Q L Programming Ma
138. gram Select All Cancel All Selections Module Name Data Name Title Target Detail Last Change Target Memory v petal vi 2010 01 27 13 46 29 2164 Bytes 2009 11 05 16 19 27 484 Bytes SS Ee SSS ESS SSS 2012 06 01 15 33 27 2012 06 01 15 44 03 76 Bytes Necessary Setting No Setting Already Set Set if itis needed No Setting Already Set Writing Size Free Volume Use Volume 2 724Bytes 242 732 3 028Bytes Refresh E Remote Set Clock PLC User Data Write Title Format PLC Clear PLC Memory Arrange PLC Operation Memory Memory In this section the device initial value setting file also can be written to the CPU simultaneously with the parameters and programs Reason The device initial value setting file uses the same target memory area In this section the program memory is used for all Generally the target memory area for the device initial value setting file is different from the one for parameter and program files Each of them can be written into each target memory separately 2 Operation check When the RUN STOP RESET switch on the CPU is switched from STOP to RUN or at the timing of the power on the values of the device initial value setting file are transferred to the CPU device In this section the initial set value of the register DO 1234 is displayed on the LED K4Y40 of the demonstration machine When the latch range overlaps with the device initial value the de
139. gramming Manual Common Instruction 2 Use the same file name as the program Specify the drive of the memory card Every time an execution program is changed the valid comment file is also changed RO Comment file A Synchronized RO RO 3 Use the following file Only the comment file specified with the drive and file name is valid 6 Statement note The statement note is given for each program step P or pointer to make the program easier to be read XO X1 ANANA o HHH H vio Checking error Line statement ANNANN LIF Upper limit error Lower limit error X2 aA NN NNNNNNANA Y11 X11 Resetting error WII I PSIG X3 Pointer statement Click s amp lt s and double click at the position where to set the statement note Enter Line Statement In PLC Initial setting In Peripheral Display in Navigation Window Applications of each comment are as follows e Line statement Describes the meaning and application of a ladder block organized by each function e Pointer statement Describes the meaning and application of each program corresponding to the pointer set to the start of the subroutine program and interrupt program e Note Describes the meaning and application of each ladder block Device initial value comment Give a comment for a device initial value file to identify its content
140. he following The setting procedure is the same for the D A converter module Q62DAN For details refer to the following manuals e Analog Digital Converter Module User s Manual SH 080055 e Digital Analog Converter Module User s Manual SH 080054 Appendix 3 1 Offset gain setting with GX Works2 1 Switching the mode to the offset gain setting mode 1 Click the I O Assignment tab of the PLC parameter 2 Select Q64AD and click the Switch Setting button ere fies rv fads Frese mess eT iste a IC tot 3 Set the bit 4 of the switch 4 to a value except 0 In this example set the switch 4 to 1000 F pou nfedigent Puncher PdA able ea phi nach modu eth pkio Horta by aer harati Bids in pret tree enh Bering of bneligent Porch Les Sowa Write the parameters with the following procedure to the second CPU installed to the demonstration machine When only one CPU is used the following procedure is not needed 1 Change the connection destination to the second CPU Refer to section 10 4 5 1 2 Write the parameter setting to the QCPU 3 After completion of the writing set the connection destination to the first CPU again Refer to section 10 4 5 1 Resetting switches the mode to the offset gain setting mode and the RUN LED on Q64AD flashes App 27 2 Switching the screen to the Offset Gain Setting screen Write MA 117 11 Step 1 Click To
141. he same time 6 1 1 Built in memory and IC memory card Memories to store files include the following two types built in memory of the QOPU and memory card The built in memories include the following three types program memory standard RAM and standard ROM Memory cards include the following three types SRAM card Flash card and ATA card Drive number of the memory to be accessed from the peripheral device CPU module Program memory Memory card RAM Program cache memory _ fee Standard RAM Memory card ROM Dri rive number 3 Drive number 2 Standard ROM Drive number 4 The tables on the next page list the memory capacities and necessity of formatting of each memory in the QCPU QOOUJCPU QOOUCPU Q01UCPU QO02UCPU QO3UD E CPU Formatting Program 10K steps 15K steps 20K steps 30K steps 4 memory 40K ra a 60K byte 80K byte 120K byte Standard ROM 256K 256K byte 512K byte 1024K byte Unnecessary Standard RAM 128K byte 192K byte 1 Q2MEM 1MBS 1M byte SRAM Q2MEM 2MBF 2M byte Necessary use card Q3MEM 4MBS 4M byte GX Works2 Q3MEM 8MBS 8M byte Memory Flash Q2MEM 2MBF 2M byte card Unnecessary card Q2MEM 4MBF 4M byte Q2MEM 8MBA 8M byte Q2MEM 16MBA 16M byte Q2MEM 32MBA 32M byte HCPU HCPU HCPU HCPU HCPU HCPU TEE E E memory 160K byte 240K byte 400K byte 520K byte 800K byte 1040K byte Standard ROM Unnecessary Standard RAM 256K byte 768K byte 1024K byte 1280K
142. i t 1 Double click PLC Parameter in the project Project data list c Pirametor E l m f Network Parseter idg Remote Password Intelligent Function Module Global Device Comment fe Program Setting py a SS ST p 2 The Q Parameter Setting dialog box is al displayed Click the PLC File tab eaa es a a a Pie tae AeA Tiai Pia ied A i Dirai Pi eed do BT S00eoD iron F pakret AAA A noes m inte erg in hama ie Porn CIALA Peart eae 3 The screen is switched Click Use the same i Mot Used fil h we D i V Use the same file name as the program le as t E program ml ENIGE nitia AUS Use the Following File 4 Confirm that Program Memory Drive 0 is Corresponding Memory displayed File Name see ee rompan a a U haapae ay ay 5 Click the button to accept the Pie kepie Ceea inna wale o m ee setting Compponding y erry Cord BAM Dee Compeering Meer ope Peere lea i a lage Creag her Pls hiama Fis for total sare ihid teeta teers Fle trpi n Appendix 6 3 Checking the operation of device initial values 1 Writing data to the CPU Write programs parameters and device initial values to the CPU Online Data Operation Connection Channel List Serial Port PLC Module Connection USB System Image HR C Read amp Write C Verify Delete i PLC Module a Intelligent Function Module Execution Target Data No Yes Title ats Edit Data Parameter Pro
143. igent Function Module Parameter List dialog box 15 Click the button Explanation Confirm setting status of the intelligent Function module and switch yalidjinvalid of intelligent Function module parameter if necessary Checked items will be created as intelligent Function module parameter Intelligent Function Module Parameter Setting Count Total Initial 3 Max 4096 Auto Refresh 3 Max 2048 15 Click Number of parameter settings for intelligent function modules The number of parameter settings for intelligent function modules initial setting and auto refresh is limited according to the programmable controller CPUs and intelligent function modules to be used Be sure to set the total number of parameter settings of the intelligent function modules within the maximum number of parameter settings of the programmable controller CPUs e Limit for the number of parameter settings of the programmable controller CPUs The following table lists the available number of parameter settings for the initial setting and auto refresh that can be set on the programmable controller CPUs Application target of intelligent function module ulus ak lea OOP ACI Er SEANG Initial setting Auto refresh QO00UJ Q00U Q01U Q02U 2048 1024 Q03UD QO3UDE Q04UDH Q04UDEH Universal model QCPU Q06UDH QO6UDEH Q10UDH Q10UDEH anes sae Q13UDH Q13UDEH Q20UDH Q20UDEH Q26UDH Q26UDEH Limit for the number of parameter settings of th
144. ignment Base Setting PLE System Setting a Points Occupied by Empty Slot Multiple CPU Setting Execute the multiple CPU parameter diversion 8 The Q Parameter Setting dialog box is displayed again Check No of PLC is changed from 1 set in the operation procedure 3 to 2 9 Click the button Da peter Bete of Pa ey e Buke FU rape iaer rren deme g p ee ra ara Deere tered z Sat Lee Pui Poep mesi hemem BE mi rai da be ia eee a LZ E z J Dei p rere eg E mi i o j amir Jei F fot JE ani T diere tamu Ta iiare i paa mja i i 9 Click Sang et oe a a 10 27 10 Click Program tab on the Q Parameter Setting dialog box Although this procedure is optional it prevents a CPU error Fo BE i as a bee i a EE E Epir i EU besramna rig a 11 Select the program MULTI2 and click the button 12 Check the program MULTI2 is set to Scan in Execute Type 13 Click the button hee rg er Se ee Ue eG TE ere ee E tl Aa ipa ee iet dcr he pop P ae FAP EHE rg ae ba m a a 13 Click 10 28 2 Intelligent function module data setting Set the analog module as described in chapter 9 In this section set Q62DAN TE MELSOFT Series GX Works2 C SCHOOL SCHOOL TRACE Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Hel H J New Ctr Pa A ON ER En m ae ae BS open Ctrl o i 1 Click Project Intelligent Function Modu
145. ile register E E E E E bere acecesm eae 8 34 8 5 2 Operation check si ea EE E E E EA T T ms mr E TA E A A E E TA E E A E T 8 38 8 6 Input Response Speed Change EE EEE E EEA EEEE E A E T E E E E T E E E E E T 8 39 CHAPTERQ PROGRAMMING INTELLIGENT FUNCTION MODULE 9 1 to 9 20 9 1 Communication with Intelligent Function Module EAA E E E A er ee ere 9 1 9 1 1 Various settings with GX Works2 PETER EO CEE CTE EERE ROLE CELE CER CET EE ESTE CLE ETT CER CETTE ERE CCE ER CCRT ree 9 2 9 1 2 Communications by the intelligent function module devicetsssessrrsssrrrrrsrrrrssrrrrssrrreserrenerreeeenennne 9 4 9 1 3 Communications with the intelligent function module dedicated instruction st tttttttttttttttttttttte ees 9 5 9 2 Intelligent Function Module System in Demonstration Machine ssssssssrssrrrrsrrrrrserrrsserresnennnurrennennennene 9 6 9 2 1 Creating an exercise program Rutan 9 6 9 2 2 Switch setting parameter setting and auto refresh setting for the intelligent function module RCP A A A A E E ETT ARE A E A A T E CT EE ETE ERC I E A T 9 9 92 3 Operation check and monitor test TET RCTE RC eC CLA eT CR LET ECCT OCC CTO Cr renrr yr reir 9 1 8 10 1 Overview of Multiple CPU System Eee ECC PLCC EA CETTE a a A a a Cer 10 1 10 2 Difference from Single CPU System TCC TEE EE CEP CLE LE A EE ETT CEE EEL EPCOT EEE ETE CLE CETTE EOL 10 2 10 2 1 Mounting position of QCPU motion CPU ELC a a CRE ET a ET EE a a a a ai 10 2 10 2 2 O number assignment of the multiple CP
146. ilure Accessory OoOo O Battery holder Q8BAT connection cable 1 Included only when the Q7BAT SET is purchased 2 Included only when the Q8BAT SET is purchased App 55 Appendix 9 Real Number Floating point data The real number data includes the single precision floating point data and double precision floating point data 1 Single precision floating point data a Internal representation of real numbers Internal representation of real numbers used in the CPU module is shown below Real number data can be represented as follows using two word devices Sign 1 Mantissa x 2 Ponent The bit configuration and the meaning of each bit are described below i tf b31 b30 to b23 b22 to b16 b15 to b0 b31 b30 to b23 b22 to b0 Sign Exponent 8 bits Mantissa 23 bits 1 Sign The most significant bit b31 is the sign bit 0 Positive 1 Negative 2 Exponent The 8 bits b23 to b30 represent the exponent n of 2 The following shows the exponent n according to the binary values in b23 to b30 b23 to b30 FFH FEH FDH 81H 80H 7FH 7EH 02H O1H 00H n Notused 127 126 2 1 0 1 125 126 Notused 3 Mantissa Each of the 23 bits bO to b22 represents the XXXXXX portion when the data is represented in binary 1 XXXXXX b Calculation example The following shows the calculation examples The X in nnnnnn X indicates the numeral system used 1 When 10 is stored 10 10
147. ing the RUN status of the programmable controller the self diagnostic function detects and displays the error to stop the programmable controller operation The QCPU stores the detected error as an error code to a special register SDO and illuminates the ERR LED When multiple errors occur the error code of the latest error is stored to SDO Up to 100 of the latest errors are backed up with a battery backup even when the power is turned off Error history can be checked by clicking Diagnostics PLC Diagnostics in GX Works2 When an error is detected by the self diagnostic function select one of the following two CPU operations Mode that stops CPU module operation When an error is detected the CPU module stops all external outputs of the module for which Error Time Output Mode is set to Clear in Detailed Setting of the I O assignment setting of the PLC parameter Outputs Y in the device memory are held Note that the external outputs of the module for which Error Time Output Mode is set to Hold are held Outputs Y in the device memory are held Mode that continues CPU module operation When an error is detected the CPU module operation executes programs other than the one instruction where an error occurred Whether to continue or stop an operation can be selected in Operation Mode When There Is an Error of the PLC RAS tab of the PLC parameter in the project data list 1 Computation Error Expanded Comm
148. ins how to clear the error history data stored in the QCPU G Write MAIN 1 Step 1 Click Diagnostics PLC Diagnostics Diagnostics Tool Window Help Ethernet Diagnostics OC TE Control Diagnostics OC IE Field Diagn 1 Click MELSECNET Diagnostics C Link Diagnostics System Monitor 2 The PLC Diagnostics dialog box is displayed Click the Clear History button 3 The confirmation dialog box is displayed Click the button 4 Click the button to close the dialog box 4 Click 8 Setting the clock on the programmable controller CPU Setting a year month date time minute second and day of the week to the clock on the programmable controller CPU is available To use the clock function use GX Works2 or a sequence program Set or read the clock data in GX Works2 oject PRG Write MAIN 1 Step Online Debug Diagnostics Tool Window Read from PLC u Write to PLC Verify with PLC Remote Operation Password Keyword gt PLC Memory Operation gt Delete PLC Data PLC User Data gt Export to ROM Format Program Memory i Cli ck Latch Data Backup gt PLC Module Change gt Set Clock Monitor Watch gt Local Device Batch Read Save CSV Set Clock r Connection Channel List use gs PLC Module jork No pi Station No Host PLC Type JQ06UDH Get Time From PC Specify Execution Target Currently Specified Sta
149. ion 2 Execution of fixed scan execution type program a When two or more fixed scan execution type programs exist a fixed scan execution type program which reaches the specified time is executed When two or more fixed scan execution type programs reach the specified time at the same timing the programs are executed in ascending order of the numbers in the program setting of the PLC parameter When a fixed scan execution type program and an interrupt program 128 to I31 reach the specified time at the same timing the interrupt program is executed first When the execution condition is established during the network refresh the network refresh is interrupted and an interrupt program is executed Therefore note that even though the Block data assurance per station setting is set in the CC Link IE or MELSECNET H network this setting is invalid when a device set as a refresh target is used in the fixed scan execution type program 10ms f 10ms f 10ms i 10ms l Fixed scan execution type program execution Link refresh execution a D O A d The link refresh is suspended and the fixed scan execution type program is executed Execution during END processing When the execution condition is established during the constant scan execution or the waiting time of the END instruction a fixed scan execution type program is executed 3 High speed execution setting and overhead time of fixed scan execu
150. ire the operation of a peripheral device refer to the GX Works2 Operating Manual 8 2 1 Constant scan function 1 Constant scan The scan time of the QCPU varies since the processing time differs depending on the execution status of instructions used in the sequence program The constant scan function repeatedly executes sequence programs keeping their scan time constant Scan time without constant scanning setting Sequence program END processing END Y 9 END 0 END 0 50ms y 60ms ve 50ms Scan time with constant scanning setting 70ms Sequence program END processing Waiting time A 50ms 20ms 70ms gt Scan time for multiple programs with constant scanning setting 100ms Sequence program A Sequence program B Sequence program C L END processing Waiting mean 80ms Constant scanning operation For details refer to the QnUCPU User s Manual Function Explanation Program Fundamentals Set a constant scanning time in the PLC RAS tab of the PLC parameter in the project data list in GX Works2 Set the constant scanning time within the following range WDT setting time gt Constant scanning setting time gt CPU maximum scan time 8 2 2 Latch function The latch function holds data in each device of the CPU module when e the CPU module is powered off and then on e the CPU module is reset or e power failure occurs exceeding the allowable momenta
151. isplayed by clicking click an item to select 4 Text box Enter letters in a text box with the keyboard Only numbers can be entered depending on the text box type 5 Radio button Click O of an item to select 6 Spin box Values can be entered directly or changed by the button To enter a value directly in a spin box click then enter the value with the keyboard When changing a value by clicking the button increases the value Clicking decreases the value 7 Tab Clicking L switches the screens in which setting items are displayed 4 3 Ladder Program Creation Method Refer to appendix 2 about the ladder program creation method in GX Works2 MEMO CHAPTER5 GX Works2 BASIC OPERATIONS PART 1 SINGLE PROGRAM 5 1 System Configuration of Demonstration Machine The following figure shows the system configuration to be used in the exercise Power supply module Input module QcPU QCPU Base unit Q38DB 16 points QCPU No 2 is used in exercise of chapter 10 Remove No 2 except for the exercise of chapter 10 X0 Y40 to to USB cable X3F Y7F Peripheral device P E I O panel Y60 Y4F lt _ Y40 Y77 _Y7 6 _ Y 75 _ Y74 Y 73 Y72_ Y71 Y70 OOOQOQDODOO Y7F Y7E Y D Y C Y B Y A Y 79 _ Y 8 O 0000000 X3F lt X30 X2 lt X20 X7 X6 X5 X4 X3 X X XO seeoeeeem kei bie a OFF
152. ite to CS File Open Uncompiled Data Property Data Security Setting To the next page From the previous page G i3 a H 3 Enter PR1 as the data name T 5 Frogram ET i amp Local Device Comment Device Memory i Device Initial value ii S n 4 The program name is changed from MAIN to H E Program DR i a OE 2 5B Local Device Comment ES Device Memory be Device Initial Value 5 Creating procedure for the program Create a sequence program with ladder symbols This section explains the creation procedure using the tool buttons REMARK e Right clicking on the ladder creation screen displays a menu for various editing or searching operation e Useful operations Insert row Delete row Insert column Delete column 1 Click 4 on the toolbar to open the Enter Symbol window Enter SM411 If any other button is pressed by mistake click the button 2 Click the button to confirm the entry 3 The entered symbol Vb is displayed 4 Click the t CO K10 5 Click the button 6 The entered symbol _cco _ is displayed button on the toolbar and enter 7 Click the button on the toolbar and enter SM400 8 Click the button 9 The entered symbol Cr is displayed 10 Enter BCD CO K4Y40 11 Click the button To the next page From the previous page 3 12 The entered symbol BC
153. iversal model QCPU does not support the following function Automatic writing to standard ROM 10 Forced on and off of external ek Even when the CPU module is running forced on and off of external input and output is available with GX Works2 regardless of the program execution status Also the wiring and operation tests can be conducted without stopping the CPU module by forcibly turning on or off the I O 6 The Basic model QCPU does not support the following functions Forced on and off of external I O 11 Remote password setting When the built in Ethernet port QOPU Ethernet module or serial communication module is externally accessed an access to the CPU module can be controlled by the remote password 12 Remote I O network of MELSECNET H A MELSECNET H remote I O system can be configured by installing a MELSECNET H remote master station 7 The Basic model QCPU does not support the following functions Remote I O network of MELSECNET H e The remote password can be set when the built in Ethernet port QCPU Ethernet module or serial communication module of function version B or later is used e The MELSECNET H remote I O network can be implemented when the MELSECNET H network module of function version B or later is used 13 Supporting the multiple CPU system The Q series CPU module supports the multiple CPU system Multiple CPU system can be configured in combination with CPU modules motion CPUs PC CPU modules
154. j T meni Program Pied doar propa betting T igh Sinead bentor AFLG Company banag T ia speal en f pana ree a G SD P Eet hie mirho oirt e entire PLE Hiahia ig PL Piada app Lema 4 To setthe RUN contact to X7 enter 7 in RUN PAUSE Contacts the RUN column of RUN PAUSE Contacts RUN ox 7 0 2 1 FFF PAUSE x0 1FFF Operation Valid Contact To the next page From the previous page 5 Click the button to complete the setting Farin Oed bey Bety Bat Mi fpa Jusa parun Bahira Fined feam Bial Bafian ar fe bcc oY 50 sa jia Bajad as piam Ce Tienypi Propp wa Mied Soa Progestin D mgh ka ebon AFLI Cepat beag D vki pac ine f ana gahe iaa AE CD Trepos pium wi praem niigi maiia pue ocr r Pd erag ahii bap da ded Ga eter eng me CP 6 Set the RUN STOP RESET switch on the CPU to STOP 7 Select only Parameter PLC Network Remote Password Switch Setting and write it to the CPU Refer to section 5 4 1 Set the switch to STOP 8 Set the RUN STOP RESET switch to RUN after resetting the CPU Then confirm the operation of the CPU by turning on off X7 Set the switch to RUN 2 Remote PAUSE RESET latch clear The operation of the remote PAUSE is the same as the remote RUN STOP described before For the remote RESET and remote latch clear the CPU module is needed to be set in the STOP status by the remote STOP operation Before the remote RESET
155. l Pulse Contact Symbol Falling Pulse X1 in the device instruction input field Edit Ladder Symbol Pulse Contact Symbol Falling Pulse Close X1 in the device instruction input field Edit Ladder Symbol Pulse Contact Symbol Rising Pulse Branch X1 in the device instruction input field Edit Ladder Symbol Pulse Contact Symbol Rising Pulse Close Branch X1 in the device instruction input field Edit Ladder Symbol Pulse Contact Symbol Falling Pulse Branch X1 in the device instruction input field gt Edit Ladder Symbol Pulse Contact Symbol Falling Pulse Close Branch X1 in the device instruction input field Edit Ladder Symbol Operation Result Rising Pulse VO in the device instruction input field Edit Ladder Symbol Operation Result Falling Pulse VO in the device instruction input field Edit Ladder Symbol Invert Operation Results gt Horizontal line Vertical line Rule line Delete vertical line gt Delete rule line ji Delete horizontal line a Input and deletion of lines Other than the methods above lines can also be input and deleted with an arrow key Continuous input of horizontal lines Horizontal lines can be input continuously from the cursor
156. l device with the system monitor function 1 Starting up the system monitor Click Diagnostics System Monitor System Monitor 2 PLC Diagnostics Selecting a CPU and clicking the status of the CPU and error history PLC Diagnostics Monitor Status Monitoring The Function menu is extended from the PLC image QO6UDHCPU MODE RUN ERR USER BAT BOOT Connection Channel List Serial Port PLC Module Connection USB System Image Model Name Operation Status Switch QO6UDHCPU Error Information Error Information Current Error RUN RUN Error Messagef Abbreviation Error Message Detail C PLC Status Information Serial Communication Error Year Month Day CPU LAY ERROR CPU LAY ERROR CPU LAY ERROR OPERATION ERROR OPERATION ERROR SP PARA ERROR SP PARA ERROR SP PARA ERROR SP PARA ERROR _ FILE SET ERROR FILE SET ERROR FILE SET ERROR FILE SET ERROR CPU LAY ERROR CPU LAY ERROR CPU LAY ERROR OPERATION ERROR OPERATION ERROR SP PARA ERROR SP PARA ERROR SP PARA ERROR SP PARA ERROR FILE SET ERROR FILE SET ERROR FILE SET ERROR FILE SET ERROR 2012 05 31 2012 08 31 2012 05 31 2012 05 31 2012 05 31 2012 05 30 2012 05 30 2012 05 30 2012 05 30 2012 05 29 2012 05 29 2012 05 29 2012 05 29 error jump Error J
157. le New Module Close A Save Ctrl 5 Save s Compress Unpack Delete Verify Project Revision gt 1 Click Change PLC Type Change Project Type Object a Delete Module N Open Other Data Export to GX Developer Format File Property Library gt Save the Positioning Module Data Security gt Read from the Positioning Module Data 2 Select Q64DAN for Module Name Click the Acknowledge I O Assignment button 3 The Acknowledge I O Assignment dialog box is displayed Select Q64DAN and click the button 4 The New Module dialog box is displayed again Click the button 1 Sony shart 2Y edtere m HEED 1 x cenpy 16 pores ves To the next page 10 29 From the previous page MELSOFT Series GX Works2 5 The message on the left is displayed Click the A payee tect holes oe Points 16 Points x 0090 button i Are you sure to replace with specified module 5 Click Selich Setting DODOGE IDAN X 6 Set the switch setting parameter and the auto refresh setting as described in chapter 9 Output Range Setting 7 In the Switch Setting screen set Input range for CH1 to 0 to 5V 8 Inthe Parameter screen set CH1 as follows D A conversion enable disable setting 0 Enable 9 Inthe Auto_Refresh screen set nothing hee ata of Iter ajam m deoce
158. le controller CPU is reset 3 Indicates whether reading from and writing to a Sequence program are enabled R Read enabled W Write enabled App 41 Appendix 5 Comparison of Timers and Counters Appendix 5 1 Comparison of timers and counters Comparison of timers QCPU QnACPU AnUCPU AnACPU AnNCPU e 100ms default value Measureinent Can be changed in the range of 1 to 100ms e Fixed at 100ms unit Low speed parameter timer Specification method e 10ms default value Can be changed in the range of 1 to 100ms e Fixed at 10ms parameter Measurement unit High speed y High speed timer specified Specification CTO method High speed timer setting Conducted by High speed timer setting Conducted at sequence program parameters Measurement Same measurement unit as the low speed e Fixed at 10ms unit timer Retentive timer K100 idea K100 Specification STO f TO method Measurement Same measurement unit as the high speed unit timer J high speed timer specified High speed H K100 N retentive timer Specification 4 STO i method High speed timer setting Conducted by sequence program Setting range 1 to 32767 e 1 to 32767 for set values Processing for Momentarily ON e Infinity does not time out set value 0 Update processing for current value e When OUT Tn instruction is executed e When END processing is executed Contact ON OFF processing 1 Cautions
159. link register W 7 Not available for the QOOUJCPU 8 The points are 512 points for the QQOUJCPU QOOUCPU and QO1UCPU 9 The range is from PO to P511 for the QQOUJCPU QOOUCPU and QO1UCPU 10 The points are 128 points for the QQOQUJCPU QOOUCPU and QO01UCPU 11 The range is from l0 to 1127 for the QOOUJCPU QOOUCPU and Q01UCPU 12 The range is from BLO to BL127 for the QQODUJCPU QOOUCPU and Q01UCPU 13 The range is from UO to UF for the QOOUJCPU from UO to U3F or from U3E0 to U3E2 for the QOOUCPU and Q01UCPU and from UO to U7F or from U3E0 to U3E2 for the QOD2UCPU Since device types are the same as those of the MELSEC QnA series the advantage of easy program creation is succeeded The following explains devices which are unique to the MELSEC Q series 1 Special relay Special register SM SD The special relay and special register are used for writing or reading data between the QCPU and user program The special relay special register SM SD include the following SM1 Self diagnostic error SM52 Battery low Retentive timer ST The device name is expressed as ST to be distinguished from the normal timer lt Example gt OUT ST100 K500 Low speed timer High speed timer T The measurement unit can be changed To change the setting use the parameter In addition the low speed timer and the high speed timer can be distinguished in a program lt Example gt Low speed timer OUT T200 K12 High speed
160. lue 9 Double click Parameter els a Th i MA iH Parameter J PLC Parameter E amp Network Parameter iin Remote Password EE Intelligent Function Module E i 0080 Q644D i 0090 Q62DAN 9 Double click To the next page From the previous page 10 The Parameter screen is displayed Set D A conversion enable disable setting for CH1 to 0 Enable Only CH1 is used 11 Double click Auto_ Refresh bre i we E Parameter og PLC Parameter o EE Network Parameter ha Remote Password re Intelligent Function Module Fe Gh 0080 Q64aD Eh Gh 0090 Q62DaN 12 The Auto_Refresh screen is displayed Set Digital value for CH1 to D30 and Error code for CH1 to D40 13 Click Project Intelligent Function Module Intelligent Function Module Parameter List Open Other Data P Delete Modus Expert bo GX Developer Format File TE ibn f 13 Click Jayy b Read Friki Save Gs Conligunatonm pE Caa Frink Prevas LAGE Kan L ey A Le Frink Windus Preview k To the next page From the previous page Intelligent Function Module Parameter List 14 Check that Setting Exist is checked in Initialization ntelligent Function Module Parameter Setting Status nE i lt oe E Auto Refresh Count A Cou nt and Auto Refresh Cou nt for Q62DAN In the 0080 Q644D lv Setting Exist 2 Setting Exist 1 0090 _Q62DAN C Setting Exist 2 Intell
161. lumn of Device Points to move the cursor to the column 5 Enter 10K and press the key 6 Click the Data Register D column of Device Points to move the cursor to the column 7 Enter 1K and press the key 8 The cursor is moved to the Data Register column of Latch 1 Start Enter 0 and press the key From the previous page 9 Enter 500 and press the key to set the end address 10 Enter 501 and press the key to set the start address of the latch clear operation disable range 11 Enter 1023 and press the key to set the end address 12 Click the button to accept the setting The device points are set a i i a Hyg aan cla i 1a dai he ea ene Be th ey oe more a Fiia ee ae ls beled sae oye inte a e A 13 The parameter must be initialized not to affect E aA A other exercises P a acete Double click PLC Parameter in the project list E Net ark Parameter tin Remote Password Intelligent Function Module Global Device Comment Program Setting El POU E B Program aN MAIN 14 The Q Parameter Setting dialog box is displayed Click the Default button after checking the Device tab is activated sY Assignment Default he To the next page From the previous page Sy MELSOFT Series GX Works2 15 Click the button A Setting default data Is that OK 10 Click the bu
162. lusive OR DXOR DXORP DXORP_ S1 S2 D Number of basic steps WXORP S1 S2 D oo Se DH DXOR s1 s2 DH 81 1 51 54 S2 1 S2 gt D 1 D BKXOR S1 S2 D n BKXORP 7 BKXORP S1 S2 D n XNR W WXNRP W DXNR DXNRP WXNRP WXNRP_ S1 S2 D DXNR DXNR S1 S2 D DXNRP DXNRP_ S1 S2 D WXNR_ S D WXNRP_ S D WXNR WXNR _ S1 S2 D H DXNR S D D 1 D 4 S 1 S D 1 D DXNRP S D al 8141 81 4 S2 1 S2 gt D 1 D les TE ae BKXNOR S1 S2 D n BKXNORP 7 BKXNORP S1 S2 D n ac REMARK 1 The number of e Word device Internal device except for the file register ZR Bit device Devices whose device Nos are multiples of 16 whose digit designation is K8 and which use no Indexing e Constant No limitations Devices other than above 2 Only QCPU supports the subset steps varies depending the device and CPU type to be used Device Number of steps QCPU QnACPU App 3 2 Rotation instructions Execution condition Instruction Processing details Category Symbol Number of
163. m set the following items Corresponding Memory E Corresponding Memory Standard RAM Drive 3 uea a Toana ie File Name FILEREG Example eaa EEE Capacity 2 Example Capacity fa K Paints 1K 4086K Points Transfer to Standard ROM at Latch data backup operation Not Used Following settings are available in device setting when select Use the Following File and specify capacity Change of latch 2 of file register Assignment to expanded data register expanded link register of part of file register area 3 Click the button 2 Registration to the QCPU a When Not Used or Use the same file name as the program is selected in the PLC File tab of the PLC parameter setting in GX Works2 the file register files are required to be registered to the QCPU The registration is not required when Use the following file is selected b To register the file register files to the QCPU set the file name and file register size in the PLC File tab of the PLC parameter in GX Works2 and write it to the QCPU Set the file register size is from ZRO in units of 1K points 1024 points Precautions for when the file register is unregistered or exceeds the registered size 1 When the file of the file register is not registered Writing reading data to from the file register causes the OPERATION ERROR error code 4101 2 Writing reading data to from the file register exceeding the registered si
164. memory and standard RAM 2 A program is stored in units of file which is equivalent to a step consisting of 4 bytes 3 Up to 124 programs can be executed in a QCPU Capacities and the number of storable files of the program memory standard RAM and standard ROM Refer to section 3 1 2 Memory card This section explains a memory map and capacity of memory cards for a QCPU Memory map A memory card stores files as follows Memory card A Memory card information area Automatically reserved after format y A File for user Parameter Sequence program SFC program Memory capacity after format Comment _ Device initial value etc yv 1 When using a memory card SRAM ATA for the first time after purchase format it with a peripheral device 2 A program is stored to the IC memory card in units of file which is equivalent to 128 steps individually consisting of 512 bytes Capacities and the number of storable files of memory cards Memory card Memory capacity Number of storable files model name 6 2 Program Execution Management 6 2 1 Description of program execution type The program execution in the QCPU can be managed in two methods by integrating controlled contents into one program conventional method and by dividing a program into multiple programs by controlled contents When dividing a program into multiple programs set execution type in the program setting of the PLC
165. mon 24VDC high speed input 24VDC negative common Program capacity Basic instruction CPU type maximum processing speed Input module 5 412VDC_ Contact output __ 4 D ee ee O oO ee o Pome lt contact output Triacoutput oO O remem e oe eo oe sink eet fe fe Source es a a VO mixed ed Output module 2 1 2 Precautions for system configuration This section explains restrictions for configuring the system with the Q series CPU module 1 Number of mountable modules a The number of mountable modules and supported functions are restricted depending on the module type When the Universal model QCPU is used Maximum number of Product name Model name l modules units per system CC Link IE controller e QJ71GP21 SX network module lt QU71GP21S SX e QJ71LP21 QJ71BR11 MELSECNET H network QJ71LP21 25 module QJ71LP21S 25 QJ71LP21G QJ71NT11B QJ71E71 Q series Ethernet QJ71E71 B2 interface module QJ71E71 B5 QJ71E71 100 Q series CC Link system QJ61BT11 Noreste S master local module e QJ61BT11N Interrupt module l60 Only 1 modue GOT Graphic Operation GOT1000 Series for bus connection Terminal only i 3 Up to 4 modules Up to 4 modules Up to 5 units 1 Only the CC Link IE controller network module with the serial number first five digits of 09042 or later can be used 2 The number is a total of the CC Link IE cont
166. n CPU up to 4 modules which is mounted on a main base unit in order to control I O modules and intelligent function modules separately Using more than one QCPU motion CPU can distribute load produced by the high load processing and each processing CPU 0 1 2 3 4 5 6 7 Power supply module Input module Input module Intelligent Input module Intelligent M Output module es QCPU which controls the corresponding modules The sequence program of QCPU1 controls The sequence program of QCPU2 controls Set each module as follows in the multiple CPU system Control CPU QCPU which controls I O modules and intelligent function modules Controlled modules I O modules and intelligent function modules controlled by the control CPU Non controlled modules Modules controlled by other CPUs CPU number Number for identifying multiple QOPUs motion CPUs mounted on the main base unit The number 1 is allocated to the CPU slot and the numbers 2 3 and 4 are allocated in series Control CPU Controlled module DANS C e CPU 0 1 2 3 4 5 6 Input module Intelligent Intelligent Intelligent Output module Ke Q Q D p D z oO CPU slot CPU No 1 CPU slot 0 CPU No 2 CPU slot 1 CPU No 3 CPU slot 2 CPU No 4 All I O modules can be used in the multiple CPU system Use the intelligent function module with the function version B in the multiple CPU system Intelligen
167. n execution type program a Scan execution type program is executed once for every scan after the scan in which the initial execution type program is executed b Set the execution type to Scan in the program setting of the PLC parameter 2 Execution of multiple scan execution type programs When two or more scan execution type programs exist the programs are executed in ascending order of the numbers in the program setting of the PLC parameter 3 END Processing After all scan execution type programs are executed the END processing is executed and the first scan execution type program is executed again STOP RUN Powered ON RUN 1st scan p 2nd scan 3rd scan 4th scan Initial execution type program 9 END processing Scan execution type program A c Scan execution type program B S c Scan execution type program C Scan time 4 When constant scanning is set When the constant scanning is set the scan execution type programs are executed according to the set constant scan time Refer to section 8 3 1 6 2 4 Standby type program 1 Standby type program a Standby type program is executed only when its execution is requested b Standby type program has the following applications 1 Program library 2 Program type change 2 Program library a Standby type program is used for managing subroutine programs and interrupt programs separately from a main routine program
168. nce program to specify the file register to use Use the QDRSET instruction to specify the comment file to use b When selecting Use the same file name as the program Set this when using the file register with the same file name as the sequence program independently When the program is switched the name of the file register is automatically changed to the same name as the program This is useful when the file register is used for one program as a local device independently When each of file registers A to C has the same name with the corresponding one of the programs A to C the operation is as described below During execution of program A Accessing file register A During execution of program B Accessing file register B During execution of program C Accessing file register C File register A File register B File register C c When selecting Use the following file Set this when one file register is to be shared by all programs With Corresponding Memory File Name and Capacity set corresponding to the file register to be used a file of the file register specified by the parameter is created when the QCPU starts to run 8 34 In this exercise set the file register in the standard RAM 1 Click the PLC File tab on the Q Parameter Setting dialog box File Register 2 Select Use the following file of File Register and C Use the same file name as the progra
169. ng on analog voltages through CH1 and converts the analog values to digital values When the A D error occurs the error code is output to the 7 segment display a Initial setting e A D conversion enable channel CH1 b Devices used by users e A D error code reset signal XO e Digital conversion value input from CH1 of the A D converter module D10 Y40 to Y4F e A D error code display D20 Y50 to Y5F lt D A conversion gt The Q62DAN reduces the digital conversion value of the Q64AD to half and outputs the value from CH1 When the D A error occurs the error code is output to the 7 segment display a Initial setting e D A analog output enable channel CH1 b Devices used by users e D A error code reset signal X1 e Digital output enable signa X8 e Digital value output from CH1 of the D A converter module D30 e D A error code display D40 Y60 to Y6F 9 6 3 A program to be created Create the following programs to check operation easily lt For A D conversion gt Applied 7 X80 X8E Outputs CH1 Digital 0 m _ gt D10 KO H BCD D10 K4Y40 conversion value A D module A D conversion in 7 segments READY completed flag X8F 8 BCD D20 K4Y50 Outputs the A D error code in 7 segments A D error flag 9 XO l Sets the A D error t SET Y8F clear request A D error reset signal 14 iv vi F RST Y8F Cancels the A D error clear request A D error A D error flag clear request END l
170. ng the received data DO to D1023 Sets the transmission data from DO to D1023 Di024 0 Turns on bO in the start device Turns on b0 in the start device DO of the CPU No 1 for the i D1024 of the CPU No 2 for nterlock when the transmission the interlock when the operation data is completed to set using the received data is completed 10 10 10 3 3 Communication by auto refresh using multiple CPU high speed transmission area The communication by auto refresh using the multiple CPU high speed transmission area can be executed only when the following conditions are all met The multiple CPU high speed main base unit Q38DB or Q312DB is used The Universal model QCPU except the QOOUCPU Q01UCPU QO02UCPU is used as the CPU No 1 At least two of Universal model QCPUs except the QODOUCPU QO1UCPU and QO2UCPU and or motion CPUs Q172DCPU or Q173DCPU are used C Controller module Q12DCCPU V is used Communication using the multiple CPU high speed transmission area by auto refresh cannot be made with CPU modules other than Universal model QCPUs except the QQOUCPU Q01UCPU and QO02UCPU C Controller module Q12DCCPU V and Motion CPUs Q172DCPU and Q173DCPU mounted on the multiple CPU high speed main base unit When any of these modules is mounted on the multiple CPU high speed main base unit set O to the relevant CPU by the point field in CPU specific send range of Multiple CPU high speed communicati
171. nnnnuunnn App 42 Appendix 5 1 Comparison of timers ANG COUNTESS ss ssssssssrssssssssunnnnnunnnnunnnununnnnunnnnuunnnnunnnununnnnnnn App 42 Appendix 5 2 Comparison Of COUNTCIS sirtttt ttt eter tree teeters eee e eee eeseeeeeeeeeaneaeeeeeanaoeeessanooeeeeeasaoeeeneaaas App 43 Appendix 6 Setting device initial VAIVSS cccctt ects tect eterna ence eee aeeeeeeeeaeooeeeeeaaaeees App 44 Appendix 6 1 Setting device MACMOLSIGS ssrssssssssss su usssuuunnununnnuuunnununnnuuunnununnnnunnnununnnunnnnnnnnnnn App 46 Appendix 6 2 Specifying file names for device initial Value ctttttttttttttt ttre teeters eee eee eee App 49 Appendix 6 3 Checking the operation of device initial VQIUGS sctttttttr ttre etree etter essere eens App 50 Appendix 7 Inline Structured ext ssssrssssrssssssssssssssssunnnnnnnnuunnnnnnnunnnnnnnnunnnnnuunnnnnnnuuunnnnnnuunnnnnnnuunnnnnnnnn App 51 Appendix 7 1 Editing inline structured text tr rrttt ttt ttt etter e ett eee eeeeeeeee ee eeeeeeeeeaeaeeeeeeaeoneeeeeaaes App 51 Appendix 7 2 Precautions on using the inline structured text srrrsttrsttststreteeeteretseetseeeeseretseeenaes App 54 Appendix 8 Battery eee eee eee eee eee eee e eee eee eee eee eee eee rere eer ee eee ee ee eee eee eee eee eee eee eee eee eee App 55 Appendix 9 Real Number Floating point data eee eee eee ree ere eee eee etree eee eee eer ee ee rete eee eee eee eee eee App 56 INTRODUCTION This textbook explains the programmable controller the program editin
172. nstall the memory card Turn OFF power supply of the i CPU module and remove a lid Projection of the CPU module MEMORY card EJECT button Memory card S AA Install a memory card to a memory card slot of the CPU module A mark Install the memory card protective cover to the CPU module Completed 2 Toremove the memory card Check the insert direction Slightly bend the center of a lid to make space between a projection and a mounting hole and remove the lid When removing the memory card from the CPU module remove the memory card protective cover and press the EJECT button and pull out the memory card Remove the cover pressing fixing claws Remove a memory card on the top and bottom Turn OFF power supply of the CPU module and remove a memory card protective cover from the CPU module Press the EJECT button to eject a memory card Completed Memory card EJECT button A CPU module CPU module c To remove the memory card while the power is on When removing the memory card confirm that special relays SM604 and SM605 are off e The memory card cannot be removed when SM604 is on because the CPU module is using the card e Turn off SM605 when it is on When both SM604 and SM605 are off remove the memory card
173. nual Structured Text a TITTLE A A A A a a E rere eee SH NA 080366 MEMO CHAPTER 1 OVERVIEW OF QCPU The Universal model QCPU is used for a training in this textbook therefore QCPU indicates Universal model QCPU unless otherwise noted QCPU has the following features 1 Large number of I O points can be controlled The Q Series CPU module supports the following number of actual I O points which are accessible to the I O modules mounted on the base unit a Basic model QCPU e QOOJCPU 256 points X YO to FF e QOOCPU Q01CPU 1024 points X Y0 to 3FF Up to 2048 points X Y0 to 7FF are supported as the I O device points available for refreshing the remote I O of CC Link and link I O LX LY of the MELSECNET H High Performance model QCPU One module supports 4096 points X YO to FFF Up to 8192 points X YO to 1FFF are supported as the I O device points available for the remote I O stations in the MELSECNET H remote I O network and CC Link data link Process CPU and redundant CPU One module supports 4096 points X Y0 to FFF Up to 8192 points X YO to 1FFF are supported as the I O device points available for the remote I O stations in the MELSECNET H remote I O network and CC Link data link Universal model QCPU e QOOUJCPU 256 points X Y0 to FF e QOOUCPU Q01UCPU 1024 points X Y0 to 3FF e QO2UCPU 2048 points X Y0 to 7FF e QO38UD E CPU Q04UD E HCPU QO6UD E HCPU Q10UD E HCPU Q13UD E HCP
174. oes 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 textbook 2012 MITSUBISHI ELECTRIC CORPORATION CONTENTS INTRODUCTION Serre eer Terre ri eee ete ee re re eee re re ee ee Ter re ere Te er ee ere ee ree AA 5 CHAPTER 1 OVERVIEW OF QCPU 1 1to 1 6 CHAPTER2 SYSTEM CONFIGURATION 2 1 to 2 20 21 Basic System Configuration E A wT GY A A a a ma ein ee wpe ems T 2 1 21 1d Device configuration a win aca E E E A E A T w Be E E A E A A a E A we weet 2 1 21 2 Precautions for system configuration sia rife er eimai we ir ite ie it ie AE mera wa cre E ela tesa ea Oz 4 22 Connection with GX Works2 Ce Cree A T a A E A a A E A A a A E rere 2s 6 221 Interface and connection channel E EE A macho ec E A E A E A A sare wma eal 2 6 222 Access range from GX Works2 E E ea W aTal a uy wien leita pe wit aan aa emule ie el ea win wine eaten el aiaia ava eie a aie ete wae wie erew ae 22 9 2 3 Name and Appearance of CPU ai dom aie see wa wal ea Sw etme rer a Wie ek we a Wt ere wd wi es ra ie We Se 2 1 0 24 Memory System Configuration raD ANNA re a a a a E O a E E A a ete 2 1 9 24 1 Universal model QCPU module memory configuration iceiWace s we eine theca n Waele T ee wees ee oRle een A T oe we eee e wee 2 13 24 2 Memory card application Sete evew Den batee teeth beens aewree A A ene packs hace
175. of Q64AD includes the following four types e A D conversion enable disable setting e Sampling averaging processing specification e Time average number of times average specification e Average time average number of times specification Configure the initial setting of Q64AD in the following screen Initial setting screen E Ce i BAADI Parameter r ne The set parameter setting data is stored in the intelligent function module c Auto refresh setting In the auto refresh setting set the QCGPU side device for storing the following data e Digital output from Q64AD e Maximum and minimum values of Q64AD e Error code Configure the auto refresh setting of Q64AD in the following screen Auto refresh setting screen 0040 Q64AD Auto_Refresh Display Fiter Display All A Transfer to CPU Digital output value oe Maximum value Minimum value Transfer Direction Intelligent Function Module gt PL Buffer Memory Address 19 13h Transfer Word Counts 1 Device Comment The error codes generated by the A D converter modules are stored here The set auto refresh setting data is stored in the intelligent function module 9 1 2 Communications by the intelligent function module device 1 Intelligent function module device UD GD The intelligent function module device represents the buffer memory of the intelligent function module as one of the QCPU module devices Both of the following are availabl
176. ogram operation is executed by transferring a program stored in the program memory to the program cache memory A memory for operating programs A program operation is executed by transferring a program stored in the program memory to the program cache memory A memory for using file registers local devices and sampling trace files without a memory card Using the standard RAM as the file registers enables the high speed access as well as data registers The standard RAM is also used for storing the module error collection file A memory for storing data such as parameters and programs A card for storing the file register local device device initial value sampling trace file and device comments with the parameters and program A Flash card for storing parameters programs and file registers An ATA card stores parameters programs and the programmable controller user data general purpose files 2 13 Secure backup by long term storage Programs and parameter files are automatically backed up to the program memory Flash ROM which does not require a battery backup This prevents a loss of the program and parameter data due to the flat battery The battery backup time is also reduced significantly In addition the important data such as device data can be backed up to the standard ROM to prevent a loss of the data due to the flat battery in case of consecutive holidays The backup data is restored automatically when the pow
177. ol Intelligent Function Module Tool gt Analog Module Offset Gain Setting 2 The Module Selection Offset Gain Setting screen is displayed Select Q64AD 0080 and click the button 2 Click N Smtr em rand ra on tat 3 The message on the left is displayed Click the Semaine aar ptores re Rt tng button 3 Click Offset Gain Setting 4 The Offset Gain Setting screen is displayed Set offset gain settings Target Module goso Q64AD Error Code set Detail Display z i i a T Adjust the offset values and the gain values on the Offset Gain Setting screen Channel Selection Offset Status Gain Status SSS SSS Offset Setting Gain Setti e H Se E Please select a target channel for the offset gain setting and press Offset Setting or Gain Setting Pressing Close registers to the module App 28 3 Specifying channels Select the check box on the Channel Selection column to specify channels for which the offset or gain is set 4 Applying current or voltage Apply current or voltage to the module 5 Executing the offset gain setting For each of the channels specified in 3 click the Offset Setting button when executing the offset setting or click the button when executing the gain setting 6 Switching the mode to the normal mode After completion of the setting click the button The following message is displayed MELSOFT
178. ol Window H WH 43 Ti SF F6 3 Click Diagnostics Write Uae Execution Target c r Yerty 4 Select programs and parameters by clicking on data Sre E LU Z NI ae e oT 15 5405 MS reals tee rated en trg taos 15 56 05 Oa COMMENT a E bani 15 56 05 Parameter Progam j Select j 2176 Bytes 4A Bytes MAIN DOLLS 15 5606 Necessary Setting No Settieg Abesdy Sat SetFkRisnosdsdl N Witing See eee 5 Click iatan Use Voke fatat a Rained Brcionec lt AL Romete Set Ook Operation PLC User Dake Forma Pic Cee PLC Memory Arrange PLC Memory Memory S To the next page Write Tie 1 Suppose that the ladder program sequence program has been created in section 5 2 3 with GX Works2 to proceed to the next step 2 Set the RUN STOP RESET switch on the CPU to STOP 3 Click on the toolbar or click Online Write to PLC 4 From the PLC Module tab click to select the program and parameter to write to the CPU Or click to select the target program and parameter 5 Click to accept the selection From the previous page Write to PLC 6 The progress dialog box is displayed Bech RA aE e a the writing is completed Click Close Remote Password Write Completed Program PRI Write Completed write to PLE Completed wE S roin automates 8 Click the button to close the dialog box
179. on allows a data communication in a user optional message format by nonprocedural protocol QCPU Serial communication module Channel 1 set channels 1 to be used in control data Channel 2 For the intelligent function module dedicated instruction and the completion device refer to the user s manual of the intelligent function module to be used REMARK The following table lists the communication timings in the communication methods mentioned above Communication timing Communication methods with the intelligent function module Power QCPU STOP Instruction END on reset Sn execution processing Inialseting OT OP OT ES e aa S o Devices lololol a a e an Program created with the inteligent function modue deviee o Program created with the intelligent function module et dedicated instruction 9 2 Intelligent Function Module System in Demonstration Machine 9 2 1 Creating an exercise program System configuration of exercise machine 1 Configuration I O panel Voltmeter for output voltage SldDlsi vajoljaszZz Ola I INIZI 5 2 3 3 4 te a O amp O C 8 3 5 gt A Digital display Y4F to Y40 gt U0 Input value input voltage Input volume Voltmeter for Y5F to Y50 A D error code ddod BCD display Y6F to Y60 D A error code uod BCD display 2 Program conditions lt A D conversion gt The Q64AD executes a sampling processi
180. on area System area System area Data written with S TO instruction We 2 Reading with FROM instruction SS 1 Writing with S TO instruction mig E Sequence program S Sequence program D N FROM instruction execution S TO instruction execution The processes of QCPU No 1 1 Writes data in the user setting area of QCPU No 1 with the S TO instruction The processes of QCPU No 2 2 Reads the data stored in the user setting area of QCPU No 1 to the specified device with the FROM instruction For details of the S TO instruction FROM instruction refer to the following manual MELSEC Q L Programming Manual Common Instruction Since motion CPUs do not have the S TO instruction FROM instruction and intelligent function module these instructions are not used for communication between QCPUs and motion CPUs For communication between QCPUs and motion CPUs use auto refresh of the CPU shared memory and the multiple CPU transmission dedicated instruction 2 Communication by the motion dedicated instruction The multiple CPU transmission dedicated instruction and multiple CPU high speed transmission dedicated instruction allows writing data to motion CPUs and reading data via a QCPU For details and the use of the motion dedicated instruction and multiple CPU transmission dedicated instruction refer to the Motion CPU Programming Manual Control instru
181. on area setting Set 0 for the CPU modules except for the Universal model QCPU except for QOOUCPU QOLUCPU QO2UCPU motion CPU Q172DCPU Q173DCPU and C Controller Q1I2DCCPU V Multiple CPU high speed transmission area setting Communication area setting refresh setting W Use multiple CPU high speed transmission CPU specific send rangel PLC E Gee Setting ceive o4 ajuses 2072 610000 613071 OL SettingReceive Set auto refresh setting if it i needed No setting Already set Total SE points Advanced settings Assignment confirmation The total number of points i amp up to 128 10 11 1 Overview of auto refresh The auto refresh is a communication method using the auto refresh area of the multiple CPU high speed transmission area in the CPU shared memory The data written to the auto refresh area of the multiple CPU high speed transmission area is sent to that of the other CPUs in a certain cycle multiple CPU high speed transmission cycle Setting the multiple CPU setting in the PLC parameter allows to automatically read write data among all CPUs in the multiple CPU system Since device data of other CPUs can be automatically read by the auto refresh function the host CPU can also use them as those of host CPU The following figure shows an overview of operations when CPU No 1 executes auto refresh of 32 points for BO to B1F and when CPU No 2 executes auto refresh of 32 points f
182. on using timers Q QnACPU updates the current value of timers and turns on or off the contacts of them at the execution of the OUT TO instruction Therefore if Current 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 set the timer that operates later first In the following cases all the timers turns on at the same scan if the program is created in the order the timers operates e When the set value is smaller than a scan time with high speed timers e When the set value is 1 with low speed timers App 42 Example e For timers TO to T2 the program is created in the order the timer operates later i The timer T2 starts measurement from the next 4 scan after the contact of the time T1 turns on TO K1 Ti The timer T1 starts measurement from the next scan after the contact of the time TO turns on X0 K1 T0 The timer TO starts measurement when XO is turned on e For timers TO to T2 the program is created in the order of timer operation X0 K1 T0 The timer TO starts measurement when X0 is turned on TO K1 T The contacts of the timers T1 and T2 turn on when T1 K1 the contact of the timer TO turns on lt 12 Appendix 5 2 Comparison of counters Comparison of counters QCPU QnACPU AnUCPU AnACPU AnNCPU K100 K100 Specification method a N CO ______ C
183. onnection with GX Works2 2 2 1 Interface and connection channel In the Q series flexible and wide methods are available for connecting the CPU and GX Works2 For details refer to the GX Works2 Operating Manual GX Works2 has the following two items about the connection destination 1 Specification of I F PC side I F or PLC side I F 2 Other station setting and network route Other Station Setting Network Communication Route Co existence Network Route The following explains each item of the Transfer Setup screen Transfer Setup Connection1 PC side I F lit E z i i iii CC IE Cont Li CC IE Field Q Series NETEIT PLC NET 10 H Board Bus Board Board PLC side I F P EJ CC IE Cont CC IE Field CC IE Field NET 10 H Master Local Communication Module Module Head Module Ki gt PLC Mode QCPU Q mode Station gl Connection Channel List Setting at No Specification Other Station Other Station Single Network Co existence Network PLC Direct Coupled Setting Time Out Sec 30 Retry Times D a p PLC Type Communication Detail CC IE Cont CC IE Field Ethernet CC Link C24 NET 10 H System Image Phone Line Connection C24 Connection Test CC IE Cont CC IE Field Ethernet CC Link NET 10 H Accessing Host Station m Multiple CPU Setting j j j J Target PLC E Ri ek A Not Specified 1 PC side I F Select the type of the interfac
184. or B20 to BSF CPU No 1 CPU No 2 CPU shared memory CPU shared memory Multiple CPU high speed transmission 2 Transmission to Multiple CPU high speed transmission area of CPU No 1 CPU No 2 area of CPU No 1 ia Auto refresh area Auto refresh area Multiple CPU high speed transmission 5 Erei to Multiple CPU high speed transmission area of CPU No 2 area of CPU No 2 Auto refresh area Auto refresh area 1 Writing by END processing 4 Writing by END processing 6 Reading by END processing 3 Reading by END processing gt Device Device BO to B1F for CPU No 1 BO to B1F for CPU No 1 B20 to B3F for CPU No 2 B20 to B3F for CPU No 2 Procedure for the CPU No 2 to read device data of the CPU No 1 1 Transfers data in BO to B1F to the auto refresh area of the host CPU at END processing of a CPU No 1 2 Sends data in the multiple CPU high speed transmission area of CPU No 1 to CPU No 2 3 Transfers the received data to BO to B1F at END processing of CPU No 2 Procedure for the CPU No 1 to read device data of the CPU No 2 4 Transfers data in B20 to BSF to the auto refresh area of the host CPU at END processing of CPU No 2 5 Sends data in the multiple CPU high speed transmission area of CPU No 2 to CPU No 1 6 Transfers the received data to B20 to B3F at END processing of CPU No 1 10 12 2 Executing auto refresh Auto refresh is executed when the QCPU is in the RUN STOP or PAUSE Status 3
185. ores them to a device specified by D S2 into a decimal character string with the total number of digits and the number of decimal fraction digits specified by S1 and stores them to a device specified by D decimal point specified by S into a 1 word BIN value and the number of decimal fraction digits and stores them to devices specified by D1 and D2 decimal point specified by S into a 2 word BIN value and the number of decimal fraction digits and stores them to devices specified by D1 and D2 specified by S into a character string and stores it to devices specified by D S to floating decimal point data and stores it in devices specified by D devices following the device specified by S into hexadecimal ASCII and stores n characters of them to word devices following the device specified by D hahet hhahaha App 14 Instruction Execution Category symbol Symbol Processing details eoadiion Number of basic steps RIGHT n H Stores n characters from the end of a character string specified by S to the _RIGHTP device specified by D LEFT Stores n characters from the start character string specified by S to the _LEFTP device specified by D _l IDR Stores the specified number of characters specified by S1 from the position specified by S2 to the device specified by D MIDRP
186. ory cards memory card Changes the attribute Program for each file to either In units of files Device comment of the following Device initial value Read write prohibition Write prohibition Change the attribute for each file in the password registration Control instruction read write and writing in the table above indicates the following contents Description Canro nemmelon Operation instruction for the CPU by the remote operation such as remote RUN and remote STOP Read write Operations of reading or writing programs Operations regarding writing programs 8 1 4 Password registration function A password prohibits reading and writing overwriting data such as programs and comments in the QCPU module using a peripheral device The password can be registered in units of files of the specified memory program memory standard ROM memory card RAM and memory card ROM The following two operations can be prohibited e Reading and writing a file e Writing a file Reading is available When a password is registered to a file the file cannot be operated from the peripheral device unless the password is canceled To cancel the password click Online Password Keyword Disable Or cancel the password when executing the limited operation 1 Registering a password Click Online Password Keyword New in GX Works2 For the details of the operation method of each function refer to the GX Wo
187. puts the comment from the device specified by S to the LED indicator at the front of the CPU Resets th lat d LED indicat App 11 10 Debugging and failure diagnosis instructions Instruction Execution symbol Processing details a J condition Number of basic steps e The CHK instruction is executed when CHKST is executed Jumps the execution to the step following the CHK instruction when CHKST is not executed During normal conditions SM80 OFF SD80 0 e During abnormal conditions SM80 ON SD80 Failure No Starts update in ladder pattern to be checked with the CHK instruction Ends update in ladder pattern to be CHKEND H PEISEN checked with the CHK instruction SLTR e Resets the status latch to enable the re execution STRA Sets a trigger for the sampling trace Resets the sampling trace to enable the re execution PTRA Sets a trigger for the program trace Resets the program trace to enable the PTRAR trace PTRAEXE PTRABXEH Executes the program trace App 12 11 Character string processing instructions Instruction Category Symbol symbol BINDA BINDA S BINDAP BINDAP S DBINDA DBINDAP DBINDAP S D BINHA BINHA S D BIN BINHAP BI
188. r Format PLC Memory X 1 Stop the CPU i Connection Channel List Connection Interface SB lt gt PLC Module Target PLC Network No F Station No Host PLC Type Q06UDH 2 Click Online PLC Memory Operation Fi Format PLC Memory to format the program arget Memor rogram Memory Y a e E memory Refer to section 5 3 1 5 Format Type C Do not create a user setting system area the required system area only 3 Reset the CPU High speed monitor area from other station 0 K Steps 0 15K Steps e EAEE e Error occurs Online change area of multiple blacks y KSteps 4 Click Diagnostics System Monitor and check the module where the error occurs in the System Monitor dialog box 5 After checking the error in the CPU select QO6UDH and click the button 6 After checking 3300 SP PARA ERROR in Current Error click the button E Era ionia PLC Soa ior O oe i T i f mE fait i e To the next page From the previous page Error Help x 7 The detail of the error code is displayed Check the cause and the solution 8 1 3 System protection function The QCPU has protection functions system protection to prevent programs from being modified by a user other than the designer Protection target File to be protected Method Turn on the write protect switch ofa memory card In units of Prohibits writing to a All files mem
189. ration Latch range 2 Set a latch range Only one range can Latch clear operation where the data be set for each disable range cannot be cleared by device the latch clear operation 1 The following explains how to change the internal relay M to 10K points and the data register D to 1K points DO to D500 latch clear operation enable range D501 to D1023 latch clear operation disable range 1 Double click Parameter in the project list eg aly i Ah om Function Module Global Device Comment Program Setting POU BER B Program ai MAIN B Local Device Comment 7 2 Double click PLC Parameter CP can Gp 2 Ath Bh Parameter gt A PLC Parameter BR Netlerk Parameter vin Remote Password 3 Intelligent Function Module Global Device Comment Program Setting POU B Program 44 MAIN 7 To the next page From the previous page A Device Latch 1 Latch 1 Sym Did points Start End Device Latch 1 Latch 1 Sym Dig Points Start End Index Device Total Timer Data Register D LinkRegister W sw EA Device Total 7 9 K Words The tatal number of lt To the next page 3 The Q Parameter Setting dialog box is displayed Click the Device tab 4 The screen is switched Click the Internal relay M co
190. refer to the QnUCPU User s Manual Function Explanation Program Fundamentals 8 2 3 Remote operation function The remote operation can change the operating status of the CPU module externally with GX Works2 external devices with the MC protocol link dedicated instructions of CC Link IE controller network modules or MELSECNET H module or remote contacts The remote operations as follows can be executed with the QCPU Remote operation RUN STOP PAUSE RESET Latch clear RUN STOP status Operation Operation 1 Remote RUN STOP Set the RUN STOP switch to RUN when executing the remote RUN STOP The remote RUN STOP has two methods for the execution a Operation from GX Works2 Use the remote RUN STOP command from GX Works2 Execute the remote STOP then execute the remote RUN 1 Click Online Remote Operation Remote Operation 2 The dialog box is displayed Select STOP in Connection Channel List Conecsst miert Operation Bso o SH iMod Target PLC Network tio Station No lost PLC Type RO6UDH 3 Click the button QO6UDHCPU Specify Execution Target Currently Specified Station x Specify Module No C Specify Network No MODE hane RUN Specify Group fo ERR USER BAT BOOT Latch Clear RESET Remove Memory Card Operation during RUN Device Memory Not Cleared Signal Flow Hold 7 MELSOFT Application 4 The confirmation dialog box i
191. resh CPU No 1 D10 to D11 I O panel CPU No 2 D12 to D13 i ste eeet te coet ecto ket cee eS 7 Voltmeter for output voltage Digital display Sp Y4F to Y40 l l l l l l l l l l l l l l l l l l l l l l l l l UL value i a 3 l l l l l l l l Voltmeter for i input voltage nput volume l l l KA l l i l l l l l l l E aaa a tg Br lat a a a A eS aR M 10 17 10 4 3 Creating a program for CPU No 1 Create a program for checking the operation of the multiple CPU Generally in the multiple CPU system using the auto refresh setting between CPUs the old data and the new data may be mixed when multiple data is communicated between CPUs The interlock shown in 10 3 1 4 is required to solve the problem In this exercise the simple program as below is used since the communication data is 1 word which requires no interlock Sequence program for QCPU No 1 The sequence program executes a sampling processing on analog voltages input through CH1 of Q64AD and then converts the analog values to digital values The converted digital value is stored in the device for auto refresh D10 Applied 8 MULTI X80 X8E Transfers the digital 0 MOV U8 G11 D10 conversion value to the device for auto refresh gt D10 KO BCD D10 K4Y40 Displays the digital conversion value in END 7 segments X80 X0 Module READY X8E XE A D conversion completed flag U8 G11 Un G11 Digital output
192. rks2 Operating Manual Create Change Password Create or change passwords for data in the programmable controller Passwords can be set For each of the same name Files stored in different drives r Target Data Target Memory Program Memory Device Memory x Data Type Data Name Registration Registration Conditions _ CONTROL SA Register Write Protection IMITIAL Setting Each item is explained as follows a Target Memory Set a memory of a file with which a password is registered b Data Type Displays the data types of the files with which passwords can be registered c Data Name Displays the data name of the files with which passwords can be registered d Registration Displays the password registration status of the files written in the CPU ri js displayed to the file with which a password is registered e Registration Conditions Set conditions of the files with which passwords are registered e Read Write Protection Reading or writing is unavailable unless the password is canceled e Write Protection Writing overwriting is unavailable unless the password is canceled Reading is available 1 Passwords can be registered only for programs device comments and device initial values 2 The passwords registered in the CPU cannot be read by the peripheral device 3 To cancel the password registration click Online Password Keyword Delete 8 2 Other Functions Fun
193. rocess execution counts Execute it while waiting for constant scan setting Set the number of times for service processing for one scan Set whether to execute service processing during a waiting time for constant scanning setting e Range 1 to 10 times e Unit 1 time Default when selected 1 time Even when the waiting time is 0 2ms or less the service processing time 0 2ms is added to the scan time at the service processing execution 2 Operations for service processing setting Operations for each service processing setting is described below The operation of Execute the process as the scan time proceeds is described here For other operations refer to the QnNUCPU User s Manual Function Explanation Program Fundamentals a Operation when 10 is set a H lt Ln z P rogram execution 0 Sl 3 3 O 5 a oc lt Programming tool Ve l peg 1 l l END processing Request 1 a 7 i i l l E When the time required for processing p Program execution one request exceeds 10 of one scan O time the service processing is Suspended Q 1ms 5 z A and the requestis processed at END on v 71 processing in the next scan N END processing Request 2 1 gt The service processing time depends on the Program execution scan time program execution time END request 2 2 rocessin P g Request 3 m N 3 wn
194. roller network module and MELSECNET H network module 3 One module is mountable to the one system of the QOOUJCPU QOOUCPU and the Q01UCPU and two modules for the QOD2UCPU 4 Available in modules with function version B or later 5 One CPU module can control the following number of modules by setting CC Link network parameters in GX Works2 e QOOUJCPU QO0OUCPU Q01UCPU up to 2 modules e QO2UCPU up to 4 modules e QO3UD E CPU Q04UD E HCPU QO6UD E HCPU Q10UD E HCPU Q13UD E HCPU Q20UD E HCPU Q26UD E HCPU up to 8 modules There is no restriction on the number of modules when the parameters are set with the CC Link dedicated instructions For the CC Link system master local modules whose parameters can be set by the dedicated instructions refer to the CC Link System Master Local Module User s Manual 6 This number indicates the number of interrupt modules with no interrupt pointer setting There is no restriction on the number of modules for the interrupt modules with the interrupt pointer setting 7 For the available GOT models refer to the GOT1000 Series Connection Manual b For the GOTs the GOT1000 series are available however Q mode compatible operating system and communication driver must be installed The Q series bus connection interface module is required for the bus connection The GOT800 series A77GOT and A64GOT cannot be used The GOT900 series do not support the Universal model QCPU 2 2 C
195. ror being triggered For example if a stop error occurs in CPU No 2 when B20 is on the B20 in CPU No 1 remains on as shown in Example in 1 3 Settings for auto refresh The setting for the points to be transmitted by each CPU and the device in which the data is to be stored the device that executes auto refresh is configured in the multiple CPU setting of the PLC parameter in GX Works2 4 Interlock method for communication by auto refresh The old data and the new data may be mixed in each CPU due to the timing of a refresh for the host CPU and of reading data from the other CPU To execute auto refresh create an interlock program which uses the start device of devices to be refreshed of each CPU as shown in the following figures In addition be careful not to use the data stored in the other CPU when the old data and the new data is mixed For example the following figure shows the program example for the QCPU when the auto refresh setting in the multiple CPU setting is made as follows PLC Side Device DO Send points of CPU No 1 1024 points DO to D1023 Send points for CPU No 2 1024 points D1024 to D2047 po Used as interlock for CPU No 1 Sending device of CPU No 1 Sending device of CPU No 2 Program for sending side Program for reception side Interlock by b0 in the start device Interlock by bO in the start P of the CPU No 2 a DO of the CPU No 1 Write 1024 0 command DO O Operation usi
196. rrr rrr rrr rrr rere rrr 5 5 52 4 Saving a project Perret rere rer rrrretrrrrrrrrrrrrtrrrrrrrrrrrrrrrrrerrr rrr rrrr reer rrr rrerrr rrr rrr errr rrr rrr rrr rrr treet rere rrr 5 9 52 5 Saving a project with another NAME een 5 1 1 5 3 Basic Operation 2 Preparation for CPU Operation Peete eee eee eee eee eee eee eee eee eee eee eee eee 5 12 5 3 1 Preparations for starting up CPU rrrrssssssssssnnunnnnnnnuunnnnnnnnuunnnnnnnuunnnnnuunnnnnnnuunnnnnnnuunnnnnnnuunnnnnuunnnnn 5 12 5 4 Basic Operation 3 Writing Data to Programmable Controller Monitoring Modifying Program 9 19 5 4 1 Writing data to the CPU ssssssssss sssussnennnuunnnnnnnuunnnnnnnuunnnnnuunnnnnnnuunnnnnnnuunnnnnnnuunnnnnuunnnnnnnenuunnnnnn 5 19 5 4 2 Reading data from the CPU ssssss ss ssssnuuunnnnnnuunnnnnnnuuunnnnnnuuunnnnuuuunnnnnuuunnnnnnuuunnnnnnuunnnnnuununnn 5 21 5 4 3 Monitoring eee r reer etree rer rrrrrrrrrrrrtrrrrerrrrrerrrrrerrrrrrrrerrrrrrrrrrrrrrrrrerrrrr rrr rr terri rrr titre t treet rrr reer rrr ie 5 22 5 4 4 Modifying a program Perret terre rrr reer rrrrerrrerretrrrrrrrrrrrerrrrrerrrrrrrrrr rrr trr reer rrr rr rrr rrr rer rrr terri rrr rrr rrr rrr 5 24 CHAPTER6 FILE BASED MANAGEMENT AND PROGRAM EXECUTION MANAGEMENT 6 1 to 6 14 6 1 File Based Management nussunnnnunnnnNNNNNNNNNNNNNNNSNNNNNDNNNNNNNNNSBUNNNSNNNNNGNNNEBENNNSANNNSBHNNSSABHNNESANNNEBUNNESHNNNNNNNNNNNNNDN 6 1 6 1 1 Built in memory and IC memory card nensnnnunnnnnnNNNNNNNNNNSNNNNNNNNNNNNNNSBNNNN
197. rupt pointer I Number of device points Function input FX 16 points FXO to F the number of device points is fixed Function output FY 16 points FYO to F the number of device points is fixed Function register FD 5 points FDO to 4 the number of device points is fixed Number of device tracking words Number of device tracking words Device for accessing the link device directly Dedicated to CC Link IE controller network and MELSECNET H Specified form JOO XOO JOO YOO JOO WOO JOO BOO JOO SWOO JOO SBOO Device for accessing the buffer memory of the intelligent function module directly Intelligent function module device Specified form VOO GOO Data transmission speed 100 10Mbps Ful duplex Half duplex Transmission method Base band Max distance between hub 100m and node Max number 10BASE T Cascade connection Max four nodes of x port CPU module connectable 100BASE TX Cascade connection Max two nodes nodes Number of connections ie 16 in total for socket communication MELSOFT connection and MC protocol 1 for FTP 9 The step relay is a device for the SFC function 10 For the Universal model QCPU whose serial number first five digits is 10042 or later the number of device points can be changed to zero 11 For the Built in Ethernet port QOPU 12 The number is a total of TCP IP and UDP IP ab Cc ab Ka _ LL Cc T 5 Q _ O 9
198. ry power failure time Data in each device of the CPU module is cleared and back to its default bit device off word device 0 without the latch function Program operation is the same regardless of the latch status 1 Application This function can be used to hold the data such as the number of manufactured products the number of fault products and address and to continue the control even when a power failure exceeding the allowable momentary power failure time occurs during the sequential control 2 Devices that can be latched a The following devices can be latched e Latch relay e Link relay e Annunciator e Edge relay e Timer e Retentive timer e Counter e Data register e Link register When the battery life prolonging function is set the latch relay cannot be latched Battery life prolonging function This function extends the battery life installed in the CPU module by setting the data to be held to only the clock data All data other than the clock data are initialized when the CPU module is powered off or is reset For details of the battery life prolonging function refer to the QnUCPU User s Manual Function Explanation Program Fundamentals b Set the latch range in the PLC RAS tab of the PLC parameter in the project data list in GX Works2 The latch range setting has the range where the latch clear key becomes valid and the range where the key becomes invalid For the latch range of each device
199. s terminal 10 to 10VDC Input resistance value 1MQ 0 to 20mADC Input resistance value 250Q 16 bit signed binary 0 to 20mADC Input resistance value 250Q standard resolution mode 4096 to 4095 high resolution mode 12288 to 12287 16384 to 16383 Analog input range 0 to 10V User range setting Current User range setting Voltage Standard resolution mode ee Maximum Digital output value 2 5mV 1 25mV 4000 to 4000 ae ie ae 4uA 4000 to 4000 1 37HA 0 to 4000 High resolution mode re Maximum Digital output value O to 16000 0 625mV 0 416mV O to 12000 0 333mV 16000 to 16000 0 625mV 12000 to 12000 0 333mV 0 to 12000 LOONA 1 33uA 12000 to 12000 1 33uA Standard resolution mode High resolution mode Analog Input range 10V 10V Voltage User range setting 0 to 20mA 4to Current 20mA User range setting temperature compensation Ambient temperature 0 to 55 C 12 digit Ambient temperature 25 5 T With Without temperature drift compensation drift 48 digit 0 3 0 4 16 digit 0 1 4 digit 36 digit Ambient temperature 0 to 55 C temperature compensation Ambient temperature 25 5T With Without temperature drift compensation drift 0 3 0 4 64 digit 0 1 16 digit 0 3 0 4 48 digit 0 1 12 digit Digit indicates a digital
200. s displayed Click the button To the next page From the previous page 5 When the remote STOP is completed the dialog box is displayed Click the button MELSOFT Application 6 Select RUN in Operation 7 Click the button 8 The confirmation dialog box is displayed Click the button 9 When the remote RUN is completed the dialog box is displayed Click the button Confirm that the CPU is running with the demonstration machine 10 Click the button to close the dialog box b Method with the remote RUN contact Set the remote RUN contact X with a parameter Turning on the contact turns the operation status of the CPU to STOP turning off runs the CPU 1 Double click Parameter in the project list Project gt Global Device Comment o Pragram Setting Fi POU SES Frogram Leha MAIN 2 Double click PLC Parameter Project Macai Eig Parameter fy Network Paranagter Las Remote Password i Intelligent Function Module ca Global Device Comment E tee Program Setting na POU aie Program a MAIN Parameter Ee EEEE h os ar rm E A Faerie aes ano 3 The Q Parameter Setting dialog box is displayed Click the PLC System tab Fata Limit Serre ea wy im dectina Common Foreris P ihm mar righ Spad EE Tere 7 Farin agame by Dey Bet 71 fia am Tana piap etinge Fiad fara Brite ai en ae te Ce 0 ma teed pt mfi m Etma bia
201. s of programs specified in the Program tab of the PLC parameter in the project data list a b Program Displays the program names in the input order in the PLC parameter Execution Displays the execution type of the programs specified in the PLC parameter Scan Time Displays the actual scan time current value The display is 0 000ms in the program stop standby status The scan time display does not change when the actual program processing time is short Execution Count Displays the number of executions counted from 0 at the point of starting count After reaching 65536 the count returns to 0 The execution count is stored even after the program stops 7 2 2 Monitor function The monitor function reads the statuses of programs and devices in a CPU from GX Works2 Operation Check with an Example 1 Monitoring of indexing devices and comparison instructions lt Program gt Project name Applied 3 INDEXMOD SM410 K9999 CO K9999 C1 Co C1 Zo H Z0 KO when XO is on ZO Z0 K1 when X1 is on K4Y40 bs the current value of CO or C1 in 7 segments END lt Operation gt Read the program above and write it with parameters to the programmable controller Reset and run the CPU e Click to monitor the program lt Description gt When XO is turned on indexing is performed as C0Z0 C 0 0 CO When X1 is turned on indexing is performed as C0Z0 C 0 1
202. sponding to P sie the error number identified during diagnostic information information g Alag SD15 Individual Individual individual i I dividua avoua Stores the individual information corresponding to i error error the error number identified during diagnostic information information Stores an identification code to determine what error information has been stored in the common error information and individual error information SD26 Cannot be used C ee Stores the CPU module switch status SD200 status 1EH LED status ene Stores the CPU module s LED bit pattern SD201 CPU CPU operation operation Stores the CPU module s operation status SD203 status status b Reading of host CPU operation information area Other QCPU can use the FROM instruction or multiple CPU area device U3En G to read data from the host CPU operation information area of the host CPU However because there is a delay in data updating use the read data for monitoring purposes 10 7 Restricted system area This area is used by the system of the QCPU OS The OS uses this area when the multiple CPU transmission dedicated instruction is executed Auto refresh area This area is used when the multiple CPU system is automatically refreshed The points from the address next to the last address in the restricted system area are used for auto refresh User setting area This area is for communication between CPU modules The points after the
203. stem area only Create a user setting system area 0 15K Steps K Steps 4 Click the button to start formatting Memory will be Formatted Do you want to continue 5 When format is completed the dialog box on the left is displayed Click the button 5 Click Format PLC Memory 6 Click the button to close the dialog Connection Channel List Connection Interface pse lt gt PLC Module box Target PLG Network No af Station No Host PLC Type O6UDH Target Memory Program Memory Format Type Do not create a user setting system area the required system area only Create a user setting system area High speed monitor area from oth 0 15K Steps kK Steps 6 Click o el 6 Clearing all the device memory from the CPU This section explains how to clear the device memory of the QCPU roject PRG Write MAIN 1 Step Online Debug Diagnostics Tool Window Help Write to PLC verify with PLC Remote Operation Password Keyword PLC Memory Operation b Delete PLC Data PLC User Data Export to ROM Format Program Memory Batch Download Latch Data Backup gt l 1 Cl ick PLC Module Change gt Set Clock Reagister Cancel Display Module Menu Monitor gt Watch gt Local Device Batch Read Save CS Clear PLC Memory Connection Channel
204. structured programming 4 Click the PLC Series list button 5 The PLC Series list is displayed Select QCPU Q mode QCPU Q mode OCP 6S mode TPt FRCPU CPUC modet OSCPL l GnACPU To the next page From the previous page New Project Sal 6 Click the PLC Type list button 7 The PLC Type list is displayed Select QO6UDH PLC Series ocru Q mode 8 Click the button 9 A new project is opened 5 2 3 Creating a program Create a program 1 A program to be created Create a program which displays a counter value counted by a special relay SM411 0 2 sec clock of a programmable controller CPU on the LED of the demonstration machine 2 Devices to be used e Y40 to Y4F For displaying the counter value 3 Program Project name Applied 1 Program name PR1 SM411 0 2 sec clock K1 0 k Co Counts at 0 2 second intervals SM400 always ON 5 BOD CO K4Y40 Displays the counter Digital display CO value in 7 segments Y4F to Y40 9 l RST CO Resets the count rit END Displays the current value of CO 4 Changing a program name Change a program name A Global Device C t we i a S TE TE 1 Right click MAIN in the project data list POL F fa B Program a B Local Device Comment Device Memory Device Initial value Program Setting H FOU 2 Click Rename Read From CS4 File Wr
205. t For D A conversion gt Applied 7 X8 Enables D A CH1 0 km Y91 gt Analog output OMUL enable signal X90 Sets the half A D 2 _ gt D10 KO 1 D10 K2 D30 conversion value to D A module be output in analog READY XOF Outputs the D A 10 BCD D40 K4Y60 error code output D A error flag in 7 segments N SET Y9F Sets the D A error t clear request D A error reset signal YOF X9F 16 Pt RST YOF D A error D A error flag clear request END REMARK When the A D conversion value is negative an operation error occurs at the BCD instruction execution Refer to section 8 1 1 2 4 Program setting Configure the setting as shown below in the Program tab of the PLC parameter in the project data list Q Parameter Setting tting Serial Communication i l f i i i IO Refresh Setting 9 2 2 Switch setting parameter setting and auto refresh setting for the intelligent function module For Q series the switch setting for the intelligent function module is configured in the I O assignment settings of GX Works2 The intelligent function module switches consist of switches 1 to 5 and are set with 16 bit data All the default settings of the switches 1 to 5 are 0 1 Adding and setting the intelligent function module data This section explains how to set the intelligent function module data After an intelligent function module is added to a project the data settings parameters
206. t Function Module New Module 2 Select Q64AD for Module Name Click the Acknowledge I O Assignment button 3 The Acknowledge I O Assignment dialog box is displayed Select Q64AD and click the button 4 The New Module dialog box is displayed again Click the button 10 22 From the previous page SOFT Series GX Mora 5 The message on the left is displayed Click the d I O assignment is set in the specified Slot button Slot att 3 Type Intelli Module Name QE4AD Points 16 Points 0080 Are you sure to replace with specified module 6 Set the switch setting parameter and the auto refresh setting as described in chapter 9 7 In the Switch Setting screen set Input range for CH1 to 0 to 10V 8 Inthe Parameter screen set CH1 as follows Sampling Averaging process setting 1 Average processing Average time Average number of times 40 Times 9 Inthe Auto_Refresh screen set nothing 10 23 5 Program setting Set the created program as an execution program to prevent a CPU parameter error when multiple programs are included in the same CPU this setting is optional 1 Click the Program tab on the Q Parameter Setting dialog box daag Dih ee Fe Peterman ot ee PPL es Bm ir Caps mcg ek nd oe ee ae TI Paii as betae ete Fem ic 2 Select the program MULTI1 and click the button 3 Check the program MULTI1 is set to Scan in Execute Typ
207. t function modules with the function version A can be used in the multiple CPU system when the CPU No 1 is set as the control CPU 10 1 10 2 Difference from Single CPU System This section explains the differences between the single CPU system and the multiple CPU system 10 2 1 Mounting position of QOPU motion CPU 1 2 Up to four QCPUs can be sequentially mounted from the CPU slot the right side slot of the power supply module to the slot No 2 of the main base unit Motion CPUs Q17n and Q17nH can be mounted together on the right side slots of the QCPU a Note that the mountable motion CPUs differ according to the model of the Universal model QCPU For details refer to chapter 3 of the QCPU User s Manual Multiple CPU System b The High Performance Model QCPUs or Process CPUs cannot be mounted on the right side slot of the motion CPUs Mounting allowed Mounting not allowed CPU 0 1 2 CPU 0 1 2 module module gt D Q 2 a D oO Motion CPU Motion CPU Power supply Motion CPU Empty slots can be reserved for future addition of a QCPU motion CPU Q17nD Select the number of CPU modules including an empty slot and set the type of the right end slot to PLC Empty in the I O assignment setting of the PLC parameter For the Universal model QOPU QnUCPU PLC Empty can be set between the CPU modules Therefore when a CPU module is added to the system the CPU No is not changed
208. ta For how to use the real number data refer to appendix 9 CHAPTER 8 FUNCTIONS OF QCPU 8 1 Maintenance and Debug Functions Maintenance function list The QCPU has useful functions for system maintenance The following table lists the maintenance functions Monitors operation delays caused by program error or Watch mer fun alended NMEN UNGH hardware failure of the CPU i l l Self diagnoses the CPU module to see whether an error Self diagnostic function exists or not Stores the result of self diagnostics to the memory as error Error history function history data Displays the names of the CPU I O modules and System display function intelligent function module and the system configuration of the I O address from GX Works2 MEERE E en ere ats Allows or prohibits writing reading data to from each file in pce the QCPU module Password registration function estricts operations from the peripheral device to the memory in the CPU i Selects the restrictions for the external access via Ethernet Remote password function l a or serial communication Displays operating status of the CPU module with the LED and LED indicator LEDs on the front of the CPU module or with the LED indicator Display of LED Indicates whether the CPU operation is normal or not Display of LED indicator Displays messages at an error ROM function to the standard ROM without a battery with memory card restores the backup data to another CPU mod
209. target memory in GX Works2 the drive number needs not to be considered Store the intelligent function module parameters in the same drive with the parameters When they are stored in different drives the intelligent function module parameters do not become valid A program stored in the standard ROM cannot be executed Store the program to the program memory before execution To execute a program stored in the memory card make the setting in the Boot File tab of the PLC parameter The device comments cannot be read by instructions in a sequence program Reading from a sequence program requires several scans Only each one of file register one local device and sampling trace file can be stored in the standard RAM For the number of storable file registers refer to QNUCPU User s Manual Function Explanation Program Fundamentals A sequence program allows reading only No data can be written from the sequence program Data can be written or read with the following instructions e SP FREAD batch reads data from the specified file in the memory card e SP FWRITE batch writes data to the specified file in the memory card Set an area used by the system 3 Editing multiple programs at the same time In GX Works2 multiple programs can be edited at the same time Editing targetO Editing target Editing target Editing target Multiple programs can be edited at t
210. tem They all remain as 0 and do not change in the single CPU system 1 For the motion CPU 5H to 1CH of the host CPU operation information area are not used When 5H to 1CH of the host CPU operation information area is read from the motion CPU they are read as 0 List of host CPU operation information areas CPU shared Corresponding memory Description Explanation special address register The area to confirm if information is stored in the host CPU s operation information area 1H to 1FH or not Information es Information Teo Q Information is not stored in the host CPU s OH rai availability lee availability fla operation information area 9 1 Information is stored in the host CPU s operation information area 1H Diagnostic Diagnostic Stores an error number identified during error error number diagnostics in binary Stores the year and month that the error number was stored in the CPU shared memory s 1H SD1 address with two digits of the BCD code SD5 to to Time the Time the Stores the day and time that the error number was diagnosis diagnosis stored in the CPU shared memory s 1H address error occurred error occurred with two digits of the BCD code Stores the minutes and seconds that the error number was stored in the CPU shared memory s 1H address with two digits of the BCD code Error Error information information identification identification code Common Common l l Stores the common information corre
211. ter 1 Pointer Pointer 1 D p gt a 1 D Z pointer 1 D Pointer 1 Specified by n S Pointer Pointer 1 D Specified by n App 10 8 Buffer memory access instructions Instruction Execution Processing details y symbol condition Number of basic steps m Reads data in 16 bit units from a special function module ai ah e Reads data in 32 bit units from a special function module e Writes data in 16 bit units to a special function module e Writes data in 32 bit units to a special function module Number of basic steps Categor scaler Processing details Execution 2217 symbol i condition e Outputs ASCII code of 8 points 16 TPR S D characters from the device specified by S to the output module x SM701 OFF x SM701 ON e Outputs ASCII code from device specified PR 4 by S to OOH to the output module Converts comments of the device PRC specified by S into ASCII code and outputs them to the output module e Outputs ASCII code of 8 points 16 characters from the device specified by S to the LED indicator at the front of the Display CPU Out
212. the COM instruction However the scan time is prolonged due to the processing time for auto refresh For details of the COM instruction refer to the MELSEC Q L Programming Manual Common Instruction 4 Settings required for auto refresh To execute auto refresh setting the number of points to be sent from each CPU module and a device for storing data device for executing auto refresh in the multiple CPU setting of the PLC parameter is required 10 13 10 3 4 Communications by the multiple CPU instruction and motion dedicated instruction 1 Communications by the multiple CPU instruction intelligent function module device The QCPU in the multiple CPU system can access the CPU shared memory of QCPU motion CPU with the S TO FROM instruction Also the Universal model QCPU can write read device data to from another Universal model QCPU with the multiple CPU high speed transmission dedicated instruction The S TO instruction is used to write data of the host CPU to the CPU shared memory and the FROM instruction of other CPU is used to read the data Unlike auto refresh of the CPU shared memory directly reading the data at instruction execution is available Example When the data written with the S TO instruction to the CPU shared memory of QCPU No 1 is read to QCPU No 2 with the FROM instruction CPU No 1 CPU No 2 CPU shared memory CPU shared memory Host CPU operation Host CPU operation information area informati
213. the QCPUs motion CPUs used in the multiple CPU system 1 Parameter import 1 Double click PLC Parameter in the project list of PP as a By ia GX Works2 Parameter A Network Paraaieter iy Remote Password E 2 Intelligent Function Module AL Global Device Comment a SS SS a 2 The Q parameter Setting dialog box is displayed ma T Click the Multiple CPU Setting tab 2 Click ern wince Pi erie Pees khekip domed Din mm E e e 3 Click the Import Multiple CPU Parameter jioa Paene button Praemea e teens Suite Pu sp kem resan dese tg Cempe rue eg berg pren terial te Basra mesenteric Grenenntems lt d 3 Click 10 26 4 The Open dialog box is displayed Workspace Location CASCHOOLISCHOOL Browse Workspace Project List 5 Select the project to import multiple CPU Q06LDH parameters from Q06UDH QO06UDH Q06UDH QO06UDH Q0su0H Work space name SCHOOL i Project name Applied 8 6 Click the button Switch the window by clicking this button Open a Single File Format Project when you want to use single file Format project MELSOFT Navigator does not support this Format Import Multiple CPU Parameter x 7 The Import Multiple CPU Parameter dialog box is when multiple CPU parameters are used improperly displayed Click the import execution all the following parameters are overwritten button DG Assignment Setting TO Ass
214. the RUN STOP RESET switch is set from STOP to RUN To turn on the RUN LED after writing the program perform the following operations 3 RUN LED e Set the RUN STOP RESET switch RUN gt STOP RUN Reset the CPU module with the RUN STOP RESET switch Power on the programmable controller again To turn on the RUN LED after writing the parameters perform the following operations Reset the CPU module with the RUN STOP RESET switch Power on the programmable controller again When the RUN STOP RESET switch is set to RUN gt STOP gt RUN after the parameters are changed network parameters and intelligent function module parameters are not updated On When a self diagnosis error which does not stop the operation except a battery error is detected When operation is set to be continued at an error detection in the parameter setting es eae Off Normal Flash When an error which stops operation is detected When the reset operation becomes valid with the RUN STOP RESET switch 5 USERLED On When the annunciator is F turned on Off Normal On yellow When a battery error occurs due to a battery voltage drop of the memory card Flash yellow When a battery error occurs due to a voltage drop of the CPU module battery 6 BAT LED On green Turns on for five seconds when the restoration of the data backed up to the standard ROM by the latch data backup is completed Flash green Flashes when the back
215. the device specified by D Stores the trace data set with the peripheral device of the number of set Trace set TRACE TRACE times set when SM800 SM801 and SM802 are turned on to the trace file of the IC memory card i Resets the data set with the TRACE TRACER i SP FWRITE SP FWRITE Writes data to the specified file SP FREAD SP FREAD Uo so Do si s2 p11 Reads data from the specified file Transfers the program stored ina memory card or standard memory PLOADP PLOADP other than drive 0 to drive 0 and sets the program to the standby status PUNLOADP PUNLOADP S Deletes the standby program stored in the standard memory drive 0 ore specified by S1 Then transfers the Unload PSWAPP PSWAPP S1 program stored in a memory card or nloa standard memory other than drive 0 specified by S2 to drive 0 and sets it to the standby status Transfers n points of 16 bit data from the device specified by S to n points of the devices starting from the device specified by D s hk s oh Deletes the standby program stored in the standard memory drive 0 hehh 5p 4 Shs a RBMOV S RBMOVP D S TO ni n2 n3 In4 Writes device data of the host station to the host CPU shared memory area
216. the values resulted from the following comparison e Comparing QO2HCPU with Q2ASHCPU S1 e Comparing Q25PHCPU with Q4ARCPU e Comparing Q25PRHCPU with Q4ARCPU Increased debugging efficiency through high speed communication with GX Works2 High speed communications at maximum 115 2Kbps are available by RS 232 and the time required for writing and reading of programs and monitoring are reduced Also the communication time efficiency of debugging is increased In addition High Performance model QCPUs except for the QO2CPU Process CPUs Redundant CPUs and Universal model QCPUs support USB which enables high speed communications at 12Mbps AnS A series I O modules and special function modules are available The AnS A series compatible extension base units QA1S601B QA6OB and QA6ADP A50B A6 0B enable High Performance model QCPU to use the AnS A series I O modules and special function modules The extension base unit for the A series cannot be used for the Universal model QCPU Saved space by downsizing The installation space for the Q series is reduced by approximately 60 compared with the AnS series AnS series 98mm 3 86inch
217. tion Specity Module Na i 26 25 16 20 21 22 23 i Specify Network Ne 27 GD 29 30 2 Enter time T3 Click Connection Interface i PLC Sun Mon Tue Wed Thu Fri Sat Today 5 28 2012 l 5 28 2012 2 51 00 PM Close MELSOFT Application X L Completed Set Clock p Connection Channel List se lt gt PLC Module a P Station No Host PLC Type QO6UDH QO6UDH Get Time From PC T TEED Execution Target Currently Specified Station Specified Station Y ue Aodule No 5 Click dtoday 5 31 2012 Specify Group Ne 5 31 2012 10 45 19 AM Connection Interface Target PLC l Sun Mon Tue Wed Thu Fri Sat 02 2 amp sS SB 32 tox S JU JE FZ 13 14 15 16 if 18 19 A 2 22 23 2 2S 26 27 28 29 30 0 D Close 1 Click Online Set Clock to display the Set Clock dialog box 2 Enter a year month date time minute second and day of the week in the Set Clock dialog box 3 Click the button When the time in the personal computer is correct clock can be set easily by clicking the Get Time from PC button 4 The dialog box on the left is displayed Click the button 5 Click the button to close the dialog box 5 4 1 5 4 Basic Operation 3 Writing Data to Programmable Controller Monitoring Modifying Program Writing data to the CPU Write the sequence program created in section 5 2 3 to QCPU To
218. tion Category sy LIMIT S1 LIMITP LIMITP S1 S2 s3 D DLIMIT S1 DLIMIT DLIMITP St DLIMITP DBAND S1 DBANDP S1 Zone DZONE controls DZONE S1 DZONEP S1 DZONEP N N o o u 00 O O uu ue gt gt Z Z gt gt Z Z m m Z Z o o U o o U U e When S3 lt S1 When S1 lt S3 lt S2 e When S2 lt S3 e When S3 1 S3 lt S1 1 S1 When S1 1 S1 lt S3 1 e When S2 S2 1 lt S3 S3 1 e anor so eee Taner io e When S3 1 S3 lt 0 Execution Processing details g condition Number of basic steps Stores value of S1 to D Stores value of S3 to D Stores value of S2 to D Stores value of S1 1 S1 to D 1 D S2 1 S2 Stores value of S3 1 S3 to D 1 D Stores value of S2 1 S2 to D S2 1 S2 0 D 1 D 3 1 S3 lt S1 1 S1 S3 S1 1 S1 D S3 S3 D 1 D S3 1 S3 S1 1 S1 D 1 D App 18 14 Switching instructions Instruction Symbol _ S Category
219. tion The setting items differ according to the selected network type Co existence Network Route Select the network type network number station number and the start I O number of the network to be accessed The setting items differ according to the selected network type Target System In the multiple CPU system specify the CPU number to be accessed Connection Channel List button Displays a list of the types of the connection destination The connection route can be selected from the list PLC Direct Coupled Setting button This function is useful to change the station specification from Other Station to No Specification Connection Test button Tests if the target programmable controller CPU set on the Transfer Setup screen can be accessed properly If the test is successful the model of the target programmable controller CPU module is displayed in the PLC Type column 2 7 10 button Displays the connection route in an illustration 2 2 2 Access range from GX Works2 The seamless communication is established among CC Link IE Ethernet MELSECNET H and CC Link of the Q series GX Works2 can access a programmable controller via various networks Lie Ee i r MELSECNET H CC Link IE Ethernet wii 1 Access example via Ethernet CC Link IE MELSECNET H and CC Link The request source GX Works2 can access up to two target stations
220. tion type program When fixed scan execution type programs are executed the following processes are executed e Saving and restoring the index register data e Saving and restoring block numbers of the file register in use Selecting High Speed Execution of Interrupt Program Fixed Scan Program Setting in the PLC system setting of the PLC parameter does not execute the processes above Therefore the overhead time of the fixed scan execution type programs can be shortened For details refer to the QnNUCPU User s Manual Function Explanation Program Fundamentals 6 2 6 Executing El The El 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 specified by the interrupt pointer number certified by the IMASK instruction can be executed When the IMASK instruction is not executed 132 to 147 are disabled Even if an interrupt factor occurs during the execution of the sequence program between the DI and El instructions execution of the interrupt program is suspended until the processing of the sequence program between the DI and El instructions is completed 1 DI The DI instruction disables the execution of an interrupt program until the El instruction has been executed even if a start cause for the interrupt program occurs The program enters a DI state when the power is turned on or the CPU module is reset
221. to 4000 User range setting 4000 to 4000 0 75mV Voltage output characteristic in standard resolution mode App 32 Analog output value V Y D L U D U e al j f 5 D E lt 8000 16000 16383 Digital input value Output range setting Offset value Gain Digital input value Maximum value KETE A 1 to 5V O wW wv 0 333mV _ 0 to 12000 ae 0 to 5V O ee y 0 416mV 10 to 10V 16000 to 16000 0 625mV ioe User range setting 12000 to 12000 0 333mV Voltage output characteristic in high resolution mode Set the offset gain values for the user range setting 1 within a range in which the following conditions are met a The setting range is 10 to 10V b Gain value Offset value gt A lt Value A gt Standard resolution mode High resolution mode App 33 Appendix 4 Specifications of the A D and D A Converter Modules Appendix 4 1 A D converter module For details refer to the Analog Digital Converter Module User s Manual SH 080055 1 Performance specifications Q64AD Q68ADV Q68ADI Analog input points 4 points 4 channels 8 points 8 channels 8 points 8 channels Analog input Digital output I O characteristics Maximum resolution Accuracy Accuracy for maximum digital output value Conversion speed Absolute maximum input Insulation method Occupied points Connection terminal Applicable wire size Applicable solderles
222. truction in a sequence program 9 1 1 Various settings with GX Works2 1 Switch setting parameter setting and auto refresh setting of the intelligent function module Configuring the switch setting parameter setting and auto refresh setting of the intelligent function module enables writing or reading data without creating a communication program which communicates with the intelligent function module Also various settings are available regardless of the buffer memory address of the intelligent function module Setting with GX Works2 The following explains the switch setting parameter setting and auto refresh setting of the A D converter module Q64AD a Switch setting Configure the switch setting of the intelligent function module This setting is reflected in the I O assignment setting of the PLC parameter Switch setting screen Switch Setting 0090 Q64AD Input Range Setting 4 to 20mA4 Temperature Drift Compensation Setting with temperature drift correction 7 Resolution Mode Setting Normal Resolution Mode z Drive Mode Setting Normal A D Converter Processing Mode x This dialog setting is linked to the Switch Setting of the PLC parameter Default value will be shown in the dialo if the Switch Setting of the PLC parameter contains an out of range value cna The set switch setting data is stored in the intelligent function module b Parameter setting The initial setting
223. tton The device setting is returned to the default Internal user When the device assignment range is changed the sequence program created with the parameter before the change cannot be used as it is After the change the sequence program and parameter must be written to the CPU again 8 5 Using File Register The file register is a register extended from the data register D Normally the file register is used with the standard RAM or memory card The file register is stored in the standard RAM of the QCPU or a memory card installed on the QCPU in a file format m vovin r Standard RAM Memory card File register RO l l R1 100 is written to R2 L Ro Lo Accesses available for the file register vary for each memory Standard Access method SRAM card Flash card a O O a a EE Reading program CP O OO Writing device memory to programmable controler O o x ee E a a a E CO ae Online test operation from GX Works2 Writing data to programmable controller with GX Works2 Data Writing data to programmable controller with GX modification Works2 asn no Writing data with GOT 1000 series Random write command from GOT1000 series 8 5 1 Preparation for using file register 1 Selecting the file register Set the file register to be used in a memory card in the sequence program in the PLC File tab of the PLC parameter in GX Works2 a When selecting Not Used Set this when using a seque
224. ty of the installed memory card 8M byte max Capacity of the installed memory card Flash card 4M byte max ATA card 32M byte max QO4UDHCPU QO6UDHCPU QIOUDHCPU Qi3UDHCPU Q20UDHCPU Q26UDHCPU QO4UDEHCPU QO6UDEHCPU Q10UDEHCPU QI3UDEHCPU Q20UDEHCPU Qe6UDEHCPU Memory card i 319 when the Q3MEM 8MBS is used RAM Max e number 288 card of files stored ATA 511 card Universal model QCPU Item Standard RAM 3 files each one of the following files file register file local device file and sampling trace file Standard ROM Number of times of writing data 5 l Max 100000 times into the program memory Number of times of writing data Max 100000 ies into the standard ROM i Number of I O device points number of usable points on 8192 points X YO to 1FFF program Number of I O points number of points accessible to 4096 points X YO to FFF the actual I O module Internal relay IM 7 8192 points by default MO to 8191 changeable Latch relay L k 8192 points by default LO to 8191 changeable Link relay B 8192 points by default BO to 1FFF changeable 2048 points by default TO to 2047 changeable sharing of low and high speed timers The low and high speed timers are specified by the instructions Timer T f The measurement units of the low and high speed timers are set up by parameters Low speed timer 1 to 1000ms 1ms unit 100ms by default High speed timer 0 1 to 10
225. uble click Switch Setting Project Edit Find Replace Compile Aea E Parameter J PLC Parameter BR Network Parameter tin Remote Password E a Intelligent Function Module i 0920 DALAN 7 The Switch Setting screen is displayed Set Input range for CH1 to 0 to 10V 8 Click the button 4 to 20m Temperature Drift Compensation Setting Resolution Mode Setting Normal Resolution Mode Y Drive Mode Setting Normal 4 D Converter Processing Mode This dialog setting is linked to the Switch Setting of the PLC parameter Default value will be shown in the dialog if the Switch Setting of the PLC parameter contains an out of range value 9 Double click Parameter Berrie E Parameter og PLC Parameter Network Parameter igg Remote Password B a Intelligent Function Module E i 0080 Q644D 10 The Parameter screen is displayed Set A D conversion enable disable setting for CH2 to CH4 to 1 Disable Only CH1 is used To the next page From the previous page T MELSOFT Series GX Works C SC Project Edit Find Replace Compile O api b EEEE E MF E Parameter a PLC Parameter BR Network Parameter idg Remote Password J Intelligent Function Module E 0080 Q64AD T MELSOFT Series GX Works2 Project Edit Find Replace Compile View Online Debug Diagnostics Tool Window Hel
226. ule function the CPU module For the details on the functions which require the operation of a peripheral device refer to the GX Works2 Operating Manual Debug function list The QCPU has useful debug functions The following table lists the debug function Monitor function Online change function Execution time measurement function Program monitor list Interrupt program monitor list Sampling trace function Device test function Debug function from multiple peripheral tools Description Reads the status of programs and devices of the CPU from a peripheral device Writes programs when the CPU module is in the RUN status Displays the processing time of the program which is being executed Displays the processing time of the program which is being executed Displays the number of executions of interrupt programs Continuously collects the specified device data with the QCPU at a preset timing Forcibly changes the current value of a word device or the on off status of a bit device in a program Enables simultaneous debugging by multiple peripheral devices For the details on the operation method of each function refer to the GX Works2 Operating Manual 8 1 1 Self diagnostic function This function allows the CPU module to diagnose itself to check for errors 1 This function aims to provide preventive measures and will prevent malfunction of the CPU module When an error occurs at power on or dur
227. ump Error Clear Error Help Clear History Error Jump Error Help Status Icon Legend Major Error A Moderate Error A User Specified Minor Error Stop Monitor Create CSY File Close 3 Detailed information of modules Select a module to check the detailed information System Monitor ou o0 01 oe 4 05 04 EA m Module Model Name I O Address Mount Position Product Information Production Number Q64AD Doso Main Base 3 Slot 061220000000000 C ps Module Information Module Access Possible Status of External Power Supply Fuse Blown Status be Status of I O Address Verify Agree I O Clear Hold Setting L i H W Information Noise Filter Setting Input Type Remote Password Setting Status Ee E m Error Information No Error Clear Error History Error Code Error and Solution Latest Error Code Update Error History Contents Display Format HEX Solution The error history is sequer an old error The the bottom line Stop Monitor The status of the module LEDs and switch setting can be displayed by clicking the H W Information button H W Information 4 Operation practice This section explains how to check the cause of the error which is caused intentionally here with the PLC diagnostics function from the system monito
228. up of the data to the standard ROM by the latch data backup is completed Off Normal j Boor On When the boot operation is started seed oy Off When the boot operation is not being performed Serial number display Displays the serial number printed on the rating plate 9 oe are Used to eject the memory card from the CPU module M llin PMO CAO neta Connector used to install a memory card to the CPU module connector Connector for connection with a USB compatible peripheral device Connector type 11 USB connector miniB Can be connected with a USB dedicated cable Connector for connection with a peripheral device Can be connected with a RS 232 connection cable QC30R2 RUN Executes sequence program operation RUN STOP RESET STOP Stops sequence program operation switch RESET Executes hardware reset operation error reset and operation initialization tc etc Module fixing screw hole Hole for the fixing screw to the base unit M3 x 12 screw Module fixing projection Projection used to secure the module to the base unit Pins used to connect battery lead wires Battery connector pin Lead wires are disconnected from the connector at the shipping to prevent the battery from consuming Battery Backup battery for the standard RAM and back up power function Module mounting lever Lever used to mount the module to the base unit 1 When connecting a cable to the RS 232 connector or USB connector at all times
229. value 80us channel When the temperature drift compensation function is used the time calculated by adding 160us will be used regardless of the number of channels used Voltage 15V Current 830mA Between the I O terminal and programmable controller power supply Photocoupler insulation Between channels Non insulated 16 points 18 point terminal block 0 3 to 0 75mm R1 25 3 A solderless terminal with sleeve cannot be used Internal current consumption 5VDC 0 63A 0 64A 0 64A Weight 0 18kg 0 19kg 0 19kg App 34 2 Names of parts Q64AD Q68ADV Q68sADI Name and N No Description appearance Indicates the operation status of the A D converter module ON In normal operation 1 RUN LED Flicker In offset gain setting mode OFF 5V power failure or watchdog timer error occurred Indicates errors and the status of the A D converter module ON Error occurred OFF In normal operation 2 ERRORLED Flicker Switch setting error occurred Values other than 0 have been set to the switch 5 on the intelligent function module App 35 3 List of I O signals List of I O signals of the A D converter module Signal direction CPU A D converter module Signal direction CPU A D converter module Device No input Device No output Module READY Yo Temperature drift compensation flag Y1 X2 m X4 Y4 Use prohibited 5 6 Use prohibited X Y5 X7 Y7 High resolution mo
230. value from CH1 10 18 10 4 4 Parameter setting for CPU No 1 The multiple CPU system requires the following setting which is unnecessary for the single CPU system in the PLC parameter e No of PLC Set the number of QCPUs in the multiple CPU system mounted on the main base unit e Control PLC Set the CPU which controls the mounted module e Refresh setting Set the points sent by each CPU and the device for storing data for auto refresh for the device data When auto refresh is not executed this setting is not required The parameter multiple CPU setting PLC system No of empty slot and I O assignment written into the CPU needs to be the same in all the QCPUs motion CPUs used in the multiple CPU system 1 Number of CPUs setting Project 1 Double click PLC Parameter in the project list of PP sy mt Eby 2 ain GX Works2 E gj Parameter E B Network Pardaeter ae en Remote Password DE Inteligent Function Module AF Global Device Comment SS SS EES 2 The Q parameter Setting dialog box is displayed Click the Multiple CPU Setting tab eee ae 3 Set No of PLC to 2 L 4 The message below is displayed Click the om button Tei ieri Med oar a PLC Sut Puree ee areas eee rr lees er eg fee eee rte G a ae ip se ae PUES apts cick fiat e MELSOFT Series GX Works T The PLE slot is assigned to the NO assignment setting The setting of 1 0 assignment to the sloti might b
231. vice initial value is given priority App 50 Appendix 7 Inline Structured Text Inline structured text is a function to edit monitor a program by creating an inline structured text box that displays an ST program at the coil instruction area on the ladder editor of the project with labels With this function a numeric value operation or a character string process can be easily created in the ladder program Select Enable function block call from ladder to Structured Ladder FBD or ST and from Structured Ladder FBD or ST to ladder under Tool Options Compile Basic Setting to use the inline structured text function lt Using ladder gt lt Using Inline structured text gt SIL VWirte MAIN 495 Inline structured text box STB Appendix 7 1 Editing inline structured text 1 Inserting an inline structured text box Ts MESIH I Series ix Works Untitled Propect PRG Write MAIN 1 Step 1 Click Edit Inline Structured Text Insert Inline Structured Text Box 2 An inline structured text box is inserted App 51 e Inserting an inline structured text box e An inline structured text box can be also inserted by entering STB on the Enter Symbol screen Enter Symbol D sTel oK Exit Help e The maximum number of inline structured text boxes that can be inserted is 100 per program and 400 per project 2 Editing an inline structured t
232. ze points Writing reading data causes the OPERATION ERROR error code 4101 3 Register size check a When writing reading data to from the file register check the file register size so that data can be written or read within the size points set for the CPU module b The available file register size can be checked in the File register capacity area SD647 The file register size in units of 1K points is stored in SD647 The points 1K or less are rounded off c File register size checking procedure 1 Check the file register size to be used 2 Check that the total file register size set in SD647 on the sequence program is sufficient for the points to be used Program example 1 When checking the file register range used at the beginning of each program 4K points specified SM400 Capacity 4K lt SD647 K4 ciio Checks final file register range c lt v Processes alarm Transfer command _ _ movp K4X20 RO Writes to file register MO Program example 2 When checking the file register range used after execution of the QDRSET instruction _______________ QDRSET 1 ABCD H Changes file register Riese fied to ABCD of Drive 1 points specifie SM400 y Capacity 4K lt SD647 K4 MO Checks final file register range MO c YO Processes alarm Transfer Mo command c hor K14X20 RO Writes to file register When a file of the file register is switched the

Download Pdf Manuals

image

Related Search

Related Contents

Toshiba Satellite Pro A100-302  français  Samsung CQ 1570L User Manual  Samsung HMX-H320BP คู่มือการใช้งาน  "user manual"  603 GC Manuel complet  Aluminium Clutch Cover Kit Instruction Manual  671 - GEMÜ  Bose 301 Series Speaker System User Manual  FMK FMM manual  

Copyright © All rights reserved.
Failed to retrieve file