Home
GX Simulator Version 7 Operating Manual
Contents
1. Explanation 1 Network No Specify the network No of the station to be accessed The input range is 1 to 255 2 Station No Specify the station No of the station to be accessed The input range is 0 to 64 3 PLC series Specify the PLC series of the station to be accessed 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 4 Device Specify the starting device of the station to be accessed e When the T C or ST device is set the contact coil and current value device memories are batch created When the buffer register is set it can be specified in the UO GO format When the extension file register is set it can be specified in the ERORI format Refer to Appendix 1 for the input method 5 Number of points Specify how many points will be secured from the starting device of the specified device The input range is 1 to 32767 1 Make a registration in the other station device setting within the following range Number of stations 1 to 1024 Number of device points 1 to 1000k Make sure that the total number of bit device points and word device points is within 1000k Count one point of timer retentive time or counter as 3 points 2 Different ranges of the same device can be set separately Set the device range that the simulation target user application will access Example Setting different ranges of data register No
2. Device memory Other station device setting 1 OUTLINE OF GX Simulator MELSOFT 7 Writing a edited program in RUN Online change function The operation of transferring edited sequence program to GX Simulator is unnecessary Therefore the transferred program operation can be momentarily checked Furthermore debug can be smoothly continued since the device value before transfer operation has been retained e Brief operation procedure 1 Start GX Simulator 2 Edit a sequence program in GX Developer 3 Select Convert Convert Online change from GX Developer menu and write the edited program to GX Simulator in RUN 8 Can analyze the situation of trouble in a design room and quickly identify incorrect places Device memory write function The PLC status in the field can be recreated based on the device memory data at the occurrence of trouble in a design room The sequence program operation that cannot be checked in the field e g device test can be confirmed Therefore incorrect places of sequence program can be quickly identified and the modification and the operation check are smoothly proceeded mS ESIE a 00111110 Taking PLC device memory data into GX Simulator A ya opa El Pest E i ji GX Developer GX Simulator Analyzing PLC status and identifying incorrect places on personal computer e Brief operation
3. App 23 App 23 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid 1 4 Area not backed up for interruption However this area can be changed to area backed up for interruption by using parameter settings 2 Area backed up for interruption This area can be changed to area not backed up for interruption by using parameter settings 3 Area fixed to back up for interruption This area cannot be changed 4 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 24 App 24 APPENDICES MELSOFT Appendix Table 1 14 List of Devices Supported by the GX Simulator CPU type FX3G A Compatibility with functions Device EROS Monitor 1 0 system Number of points y function 4 settings X000 to X177 128 points O O Y000 to Y177 128 points O General Latched 3 Special MO to M383 384 points M384 to M7679 7296 points M8000 to M8511 512 points SO to S9 10 points 10 to S4095 4086 points TO to T199 200 points T200 to T245 46 points T246 to T249 4 points State S T250 to T255 6 points 100ms 10ms Timer T i ims 3 T256 to T319 64 p
4. lt Actual machine state gt Ca e Q 10 8 10 8 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 6 Turn X2 OFF Re starting operation When YO is turned ON high speed counter unit turns X2 OFF Turn X2 OFF manually When X2 is turned OFF YO is turned OFF Y1 ON and then OFF and Y4 ON By turning Y4 ON roller re starts operation General operation of program is now complete ln Timing Chart BEES Ele Device Monitor r Monitor Status Device Entry Chart Display Range ge C Auto Manual x1 X2 X5 C x10 C X20 40 23 B I 26 HH PT xO 4 7 When X2 is turned OFF ua A YO is turned OFF Y1 is ae turned ON for one scan and Y4 is turned ON See eZee x17 Yo Y ee Y4 Y20 M10 DO D fc E El lt Actual machine state gt Cutter wwe OH VI O Me 10 9 10 9 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 10 3 Using I O System Settings for Debugging 10 10 This section describes the operation to perform simulation of external equipment using the I O system setting 1 Pre debugging operation 1 Start GX Developer and create the program on page 10 2 2 Double click Parameter PLC parameter of project data list on GX Developer and click lt lt l O assignment gt gt tab so that I O assignment is as shown below ATA e voe Po o oa QDe2 3 Select Tool Start ladder logic test
5. oo oo Cancels the I O system setting Section 5 7 Import Earlier Version of I O System File ir afer ae setting files from Section 5 8 5 Exit O System SettingS cece Exits the I O system setting Section 5 2 ta E ces eta Cuts the selected setting No Section 5 8 2 COPs tne ea eel aE Copies the selected setting No Section 5 8 2 Paste recio Pastes the setting No cut or copied Section 5 8 2 Enable Disable Settings Enables All secon at aiii Enables all settings Section 5 8 3 Disable All ccccccccsscecsssssseesssneeeeesssaes Disables all settings Section 5 8 3 Monitor Mod n iade ini i E ele a Starts monitor Section 5 8 4 Edt Modeen raniona a ii Stops monitor Section 5 8 4 View Tool Baleno a ia Set whether tool bar is displayed or not SlatS2 Bla iia E whether status bar is displayed or not Cascade onena EE EASi Cascades currently open screens A K ETORT EE EE EESE E SEE ETE AERA Tiles currently open screens A gt A A E te Arranges screens reduced to icons 3 SPECIFICATIONS 5 Timing chart format input screen function list Open mi cA Opens the timing chart data file A A E EAE E E ee Exits from timing format input Enter Device eee ea E Registers the devices to be setting Delete Device cui ali Deletes the registered devices List DEVICE cui ita Lists the registered devices Changes the display format of the selected device Returns to previous status one s
6. External devices I O OJOJOJOJOJOJOJO IO JOJO JOJO JO JOJO JOJO O JOJO JO OOOO O OJOJOJOJOJOJOJO IO JOJO OJO JO JOJO JOJO O JOJO JO JO JOJO JO O OJOJOJOJOJOJO OJOJOJOJOJOJOIJO O External devices SER xXx x lx lx l lx x 010 lt 0 xx x x x x 0 x 01000000 00 0 OJOJOJOJOJOJOIJO JO JOJO JOJO JOJO OOO JOJO JOJO JO JO IOO OOO oOJo O OJOJO O OJO JO JO O O O O External devices F2 XIXIXIXIXIXIXIXIX App 50 App 50 APPENDICES MELSOFT Appendix Table 2 3 List of Supported Instructions FX series CPU functions cont Applicable PLCs Compatibility FNC Instruction 32 bit Baa ee x San 3 xecution 0 1N N U WI No symbol Instruction z y 103 YES o 110 ECMP YES YES O O 0 El ezcs NES PAES is e le ells 5 torso ee ee tia eww ves lp ves olas ls Ss SS oe OE AE AE AAA ESAS Dan SE ae Mee 118 EBCD YES 119 EBIN Eo eso De ee ee ee ee ee eR ee ee ee A ES MUL YES YE X E OGE YE OG10 YES YES YE YES YES E YES YES YES YE YES E YES ZPOP Data transfer 2 mn _ d od NO N NM NM U lt no lt lt lt m jm jm m NIN W W mn lt N o Floating decimal point a Joa joa N IN JIN co J IN lt 12 ip 8
7. M9054 STEP RUN flag M9030 005s 005 f 05s 0 05s x1 The values obtained are based on the set values and M9031 0 2 second clock 0 1s 0 1s number of scans of a constant scan x1 App 3 App 3 APPENDICES MELSOFT 3 Special Register List Appendix Table 1 3 lists the special registers supported by the GX Simulator for the A series CPU functions See the A series actual PLC User s Manual for details about the special registers Appendix Table 1 3 List of Special Registers Supported by the GX Simulator D9026 Clock data Clock data day hour Self di ti D9008 Self diagnostic error eee A number Clock data E D9027 Clock data D9009 Annunciator F number from minute second detected external breakdown Clock data D9028 Clock data Step number where day of week D9010 Error step operation error Extension file occurred facie Block No used Step number where Doo36 Designates device Device number for D9011 Error step operation error number of direct access of each occurred extension file extension file registers i D9037 a CPU operation D9015 paR CPU operation status register gece status n 5 r D9091 Detailed error Self diagnosis Saves the BIN value number detailed error number D9016 Program number of the executing Quantity of sequence program eat aes Quantity of inj annunciators detected D9017 ET Minimum scan time detected unci x2 10 ms units D9018 Scan time Scan time 3 x2 10ms units D90
8. 4 5 contacts om om Om tHe Retentive timer ST AER AL AAA E RMN Counter C Function input FX Function output FY Link input Jn X Link output Jn Y Link relay Jn B Link special relay Jn SB SFC block BL SFC transition device TR Data register D Special register Link register W Link special register SW Timer present value T Retentive timer present value ST Counter present value C Function register FD File register R or D er a ee Ez Extension file register E A gt gt A a Buffer register Un G Pae ee ee ee Link register Jn W Link direct device Jn SW Index register Accumulator A Only T ST and C contacts can be designated In the FX series the device name becomes T Only compatible with FX3u FX3uc PLCs In FX3u FX3uc PLCs device name R represents extension register Only compatible with FX3u FX3uc PLCs When I O assignment is not set the buffer register is treated as an unsupported device App 58 App 58 APPENDICES MELSOFT Appendix 3 2 Simulation device area Bit device Timing chart input Device Name i series Biers series Q series CPU Q series CPU pes Ha A mode Q mode Input X Output Y Internal relay M Latch relay L Step relay S Step relay S for SFC State S Ls Pal ee Annunciator F A ad Edge relay V ESPA oe ee Link special relay SB E a ae SA A
9. Configuration of timing chart format input screen is described below ta Timing Chart Format Input Menu bar Name of menu which can be used in timing chart format input screen is displayed When menu has been selected drop down menu will be displayed and various functions from this menu can be used 2 Tool bar From functions assigned by menu bar those most frequently used will be displayed with buttons 3 Device name device value Bit device When timing at cursor position is ON device name lights Yellow Word device Device value with the timing at cursor position will be displayed in the text box on the right of device name 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 1 Buffer register and extension file register are displayed as shown below lt Buffer register gt lt Extension file register gt The first I O number of a special function module Block No U M G Al ERY R A Address Address When first I O No is 4 and address When block No is 2 and address is is K30 U4 G30 will be displayed K30 ER2 R30 will be displayed 2 When a word device is designated as a 32 bit integer D is added to the device name Example DO D W6 D 4 Scan number Shows scan number of timing When scan number is set by selecting Scan Scan setting disabled scans will be displayed with shading When applying check mark to Ke
10. cccccceccceeeeceeeeeeeeeeeeeeeeeeeeteaeessneeeseneesans 3 8 3 4 GX Simulator Restrictions and Cautions cc ccccecceesceeeeeeeeeeeeeeeeeeeeeeecaceeeeaeeseaeeseaeeesaeeeseneeseeeeneeseaees 3 9 3 4 1 Restrictions and cautions common to each type of CPU ooo eee eee eeeeeeeeeeeeneeeeeeaeeeaeeeeeeeeeteas 3 9 3 4 2 Restrictions and cautions for the A series CPU functions ceccceeeceeeeceeeeeeeeeeeeeeeeeeeneeeteneeteaees 3 12 3 4 3 Restrictions and cautions for the QnA series CPU functions c cceccceeeeeeeeeeeeeeeeeeeeeeeeeeeeees 3 14 3 4 4 Restrictions and cautions for the FX series CPU functions ceeecceeeeeeeeeeeeeeeeeeeeeeeeeeeaeeenaees 3 17 3 4 5 Restrictions and cautions for the Motion controller functions eccceeecceeeeeeeeeeeeeeeeteeeteneeteaees 3 20 3 4 6 Restrictions and precautions for the Q series CPU functions c cceecceeeeeeeeeeeeeeeeeeeeeteeeneeees 3 21 3 5 GX Simulator Safety and Handling Precautions cceeceeeeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeaeeeas 3 26 4 COMMON OPERATIONS FOR THE GX Simulator 4 1to4 7 4 1 Procedure from Installation to DEDUYQINO oooonconcnnncnncnncnncnncnncnnncnrcnrccnrnrnnccan cc 4 1 4 2 GX Developer Operations before Debugging ceeeceeeteeeeeeteeteeeeeeeeeeseetaeetaeetaeeteetieeseesieetinetietinee 4 3 4 3 Description of the Initial Screen Display cccccccecccceeeeeeeeeeeeeeee
11. 2 If the same name file register as the program is not in the PC drive GX Simulator newly creates a file register of 1018k steps and debugs it When Use the same file name as the program is selected for a file register GX Simulator monitors a file register of 1018k steps maximum QnA series CPU Q series CPU Q mode QnA series CPU Q series CPU Q mode 1 10 1 OUTLINE OF GX Simulator Item Name When step execution is performed Debugging with an Actual PLC Connected 1 When performed execution stops at each of the first instruction P I pointer statement and note Debugging with GX Simulator 1 When performed execution stops at the first instruction and P I pointer but does not stop at the first statement and note 2 When the start position is a statement or note execution stops at the first statement or note 2 When the start position is a statement or note execution stops at the first instruction or P I pointer immediately after that statement or note 3 When the repetition count of the option setup is set each of the instruction P I pointer statement and note is counted once 3 When the repetition count of the option setup is set each of the instruction and P I pointer is counted once The statement and note are not counted 4 When a statement or note step is set to the break point of the option setup execution stops at the statement or note st
12. Counter C 3 16 bitup 1 C16 to C31 16 points O O yo 7 5 16 bit general DO to D127 128 points O O O 16 bit latched 1 D128 to D255 128 points Data register D 32 bits when used in 16 bit special D8000 to D8255 106 points airs cane D1000 to D2499 1500 points 16 bit index V Z 2 points Nesting N For master control NO to N7 8 points x x O O O 0 OJojo Pointer P For CJ CALL branch PO to P63 64 points x x 16 bit 32768 to 32767 Decimal constant K 32 bit 2147483648 to 2147483647 16 bit HO to HFFFF Hexadecimal constant H 32 bit HO to HFFFFFFFF App 13 App 13 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid T32 to T62 are changed by M8028 drive 1 Area fixed to back up for interruption This cannot be changed 2 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 14 App 14 APPENDICES MELSOFT Appendix Table 1 9 List of Devices Supported by the GX Simulator CPU type FX1 Compatibility with functions Total number of points for Device range Number of points Monitor functio
13. Device monitor and test simulated operation of machine side I Os etc are possible Install Connection of PLC is not necessary lt i 3 i 28 2 idly Bt order A sequence program created with GX Developer can be debugged by writing it to the GX Simulator The sequence program is automatically written to the GX Simulator when the GX Simulator are started up Refer to GX Developer Operating Manual for information on operations not covered in this manual 1 OUTLINE OF GX Simulator MELSOFT 1 1 Features of the GX Simulator The main features of the GX Simulator are described below 1 Can be utilized as a single program debugging tool Using the PLC for debugging in the conventional method required not only the PLC but also I O and special function modules external device etc to be prepared as needed When using the GX Simulator you can perform debugging on a single personal computer because I O System Settings for external device simulation and the simulation function for special function module buffer memory are available in addition to the simulation function for PLC Also because of no connection to actual equipment you can proceed with debugging safely if an abnormal output should occur due to a program bug Conventional debugging GX Developer Ladder monitor Batch monitor device memory Batch monitor buffer memo
14. Refer to Section 7 1 3 memory memory simultaneously Refer to Section 7 1 4 Refer to Section 7 1 5 Is the device value to be changed End Refer to Section 7 1 2 Batch monitor the device Batch monitor the buffer Monitor multiple devices Refer to Section 7 1 6 Conduct a device test Refer to Section 7 1 7 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 2 Starting Ending Monitoring Device Memory 1 Starting monitoring device memory Purpose To start monitoring device memory Operation procedure Select Start Monitor Function Device Memory Monitor from initial screen sd LADDER LOGIC TEST TOOL 15121 un or Start Tools Help Monitor Function I O System Settings Serial Communication Function Device Manager Device Memory Monitor 3 ioj x Menu Online Device Batch Butter Memory Entry Device Device FEDC B A968 76 54423210 Al Transfer setup x Host Station Start monitor Stop monitor Bit amp vvord Other Station Network No Station No y E Cancel 4 4 Display 16bit integer Data format DEC Bit order F 0 4 4 hosH GX Simulator Host station Exit 1 When Device Memory Monitor starts the Transfer Setup screen of GX Simulator appears Specify the station to be monitored Refer to Section 7 1 3 for Transfer
15. Step execution on GX Developer The Step Execution dialog box then appears 10 4 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 5 Every time you click the button in the Step Execution dialog box one instruction is executed 6 As you click the button to run the program on an instruction by instruction basis you will know that SP UNIT ERROR occurs when DTOP HO HO KO K1 is executed SP UNIT ERROR occurred because you attempted to write a value to the buffer memory using the TO instruction without making I O assignment Section 9 2 gives a debugging example in which I O assignment is made and the buffer memory is used 7 Double click Parameter Set PLC parameter from project data list on GX Developer and click I O assignment tab so that I O assignment is as shown below ll type Model Pons lo omo Special 062 oem ma ao Ll ora owu avo 8 By updating parameter with PLC writing and setting to RUN after resetting error will not occur even if XO is turned ON 10 5 10 5 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 10 2 Using Timing Chart Display for Debugging This section explains how to check device value changing timings with the timing chart which displays the device chart using the GX Simulator 1 Pre debugging operation 1 Start GX Developer and create the program on page 10 2 2 Double click Parameter PLC parameter of project data li
16. 1 Batch enabling settings Purpose To enable all set Nos whose conditions and timing chart formats or input Nos have both been set COMINO NI E Edit Timing Chart Format I Enable T Keep Setting Enable Operation procedure Choose Edit Enable Disable Settings Enable All pr File MES Online View Window Cut Bites 5 Gopy Ctrl C E E Hase ot Fy E Enable All Disable All Batch disabling settings Purpose To disable all settings Operation procedure Choose Edit Enable Disable Settings Disable All EF File 18 Online View Window ot Bike H File un Enable Disable Settings Enable All Disable All IB 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 8 4 Executing monitoring 1 Starting monitoring Purpose To start monitoring a device on the l O system settings screen Operation procedure a Select Online Monitor mode e can also be clicked instead of above H SETTINGS EOtmode b Monitoring will start Refer to 3 for details of operation on the screen during monitoring ia 1 0 SYSTEM SETTINGS Bel pr File Edit Online View Window laj x a mE File under Editing sample 1OS File under Execution ms oe Always ON E f No 31 l Device Yal H No 1 N No 26 Push
17. COM opened as set in the communication settings COM Close completed _ COM closed normally Command Packet A command was received from the connection target command character 1 Acknowledge Packet A command was sent from the serial communication function to the connection target command character 1 NAK Send NAK was returned in a response message The status is displayed with the error No Sum check error In communication with sum check made the sum check code was wrong No response is given since GX Simulator side cannot recognize the frame format received GX Simulator side returns NAK in a response message Check whether the PLC series and used frame are correct Reduce the total number of data sent from the external device to less than 10000 bytes 1 The communication command symbol is displayed 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 8 Error Code Lists This section explains the codes definitions and corrective actions of errors that may occur during communication 6 8 1 When the A compatible 1C frame is used The following table indicates the error codes that may occur when the A compatible 1C frame is used Error Code i Error Item Error Definition Corrective Action Hexadecimal The calculated sum check does not Reexamine the sum check on the 02H Sum check error i match the sent sum check other end device The frame format is incorrect Wh
18. Compatibility with functions Remarks Serial communication function Device backup Device Manager 1 Area not backed up for interruption However this area can be changed to area backed up for interruption by using parameter settings 2 Area backed up for interruption This area can be changed to area not backed up for interruption by using parameter settings 3 Area fixed to back up for interruption This area cannot be changed 4 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 26 App 26 APPENDICES MELSOFT Appendix Table 1 15 List of Devices Supported by the GX Simulator CPU type FX3u FX3uc Compatibility with functions Monitor 1 0 system function 5 settings y Total number of points for input X Combined sean dension X000 to X377 256 points O O Total number of points for output Y combined use with extension Y000 to Y377 256 points M8000 to M8511 512 points State S TO to T199 200 points T200 to T245 46 points Timer T Device range Device Number of points O oOpojojo Q 2 gt o a O OJO O O OJOJO eer pia 82 bits when used in pairs Data register R 16 bit latched 3 RO to D32767 32768 points Hexadecimal constant H E OJOJO Ice Word dev OJOojojojo O O JO x O O x xJo O Jojojo oJo ojo
19. Start Refer to Section 6 2 Make communication settings such as the COM port communication speed and data length Refer to Section 6 3 Click the Open button to open the COM port Refer to Section 6 3 _ With the exception of the COM port make all the settings equal Open the COM port to be used Send a frame from the external device to GX Simulator lt External device side gt Make communication settings such as the communication speed and data length Open the COM port to be used UT AL O ee Send a frame Receive a frame e Check the communication status data and perform debugging Refer to Section 6 3 and 6 7 NO Has debugging ended Click the Close button to close the COM port Refer to Section 6 3 End Refer to Section 6 2 After that a response command is sent to the external device Close the COM port being used E ss Check the response command data and perform debugging Has debugging ended Close the COM port 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 2 Starting Ending the Serial Communication Function 1 Starting Purpos the serial communication function e To start the serial communication function Operation procedure Choose Start Serial Communication Function on the initial screen Sta
20. a Timing Chart Format Input File Device Edit Scan Fi FG ala alal ES ES oy 2 Mark of scan No 2 has been changed c Inserting timing Purpose Insert the timing before designated timing Timing is inserted to the left side of cursor position Operation procedure 1 Select the timing at the right side of the position where timing is to be inserted ta Timing Chart Format Input File Device Edit Scan ale alal E 0 1 2 DO 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS 2 MELSOFT Operate any one of the following operations e Select Edit Insert menu e Right click then select Insert menu e Click ES e Enter Insert key a Timing Chart Format Imput File Device Edit Scan lalala aja Alr AE Fa J Fe Fef FS Fe RE F FB INS DEL D 1 2 After timing has been inserted timing will shift to the right d Deleting the timing Purpose To delete designated timing Operation procedure 1 Select timing of the position to be deleted a Timing Chart Format Imput File Device Edit Scan HARE ala 25 55 jul FL FE FS FI Fs FE FR FB INS DEL 0 i 2 2 Operate any one of the following operations e Select Edit Delete menu e Right click then select Delete menu e Click En e Enter Delete key ta Timing Chart Format Input File Device Edit Scan
21. bo oono 0000 0000 0011 LA pe 0000 0000 0000 0000 2000 0000 0000 2100 MN pa 0000 0000 0000 0000 ol Ds 0000 0000 0000 0000 0000 0000 0000 0000 ps 0000 0000 0000 0000 o P10 0000 0000 0000 0000 0000 0000 0001 0100 Ds 0000 0000 0000 1100 ER paz 0009 0000 0000 0000 0000 0000 0000 0000 E 0000 0000 0000 0000 o Dia 0009 0000 0000 0000 0000 0000 0000 0000 Fe pe 0000 0000 0000 0000 o pas 0009 0000 0000 0000 0000 0000 0000 0000 D9 oooo 0000 0000 0000 o Pis 0000 0000 0000 0000 0000 0000 0000 0000 bio 0000 0000 0001 0100 20 SHEL p20 0000 0000 0000 0000 0000 0000 0000 0000 Spnott Pi oooo 0000 0000 0000 o pez 0000 0000 0000 0000 0000 0000 0000 0000 xy paz 0000 0000 0000 0000 o pea 0000 0000 0000 0000 0000 0000 0000 0000 bas OOOO fo E has 000800000009 0000 vooo 0000 0000 0000 AA Montor termo SC pia 0000 0000 0000 0000 o Display rent nteger E zo 0000 0000 0000 0000 e000 9000 0000 0000 Display fectinteger E Das vooo 0000 0000 0000 o pao 0000 0000 0000 0000 0000 0000 0000 0000 Data format DEC Y Data format DEC Y Bit order Fo Y Bit order Fo z fos 6x Simulator Host station Lea cos EX Simulator Host station Ce Word format Menu Online Device Batch Butter Memory Entry Device Timer Counter format Menu Online AE Device Batch putter Memory Entry Device Device Device ps o o 20 o o o o o Al Do TO ps o o o o o o o A pza o o o o o o o o poz o
22. lt Initial setting gt lt Set preset value gt XO Y4 M10 DTOP HO HO KO Ki nit rea Count en Initial y able com setting mand complete lt Set match out pt 1 to 1000 gt DTOP HO H4 K1000 K1 lt Set lower limit of ring counter gt DTOP HO H14 KO K1 lt Set upper limit of ring counter gt DTOP HO H16 K2000 K1 lt Set initial set complete flag gt SET M10 Initial setting complete lt Start stop counter operation gt 15 X2 bt s nit rea Start co Counter Count en unter op value ma able com eration tch poi mand nt 1 lt Present value storage gt lt Store present value in DO to D1 gt XO X16 HH a _____ _ prro HO H2 po KI Init rea Store pr Store pr esent va esent va lue lue lt Setting for external output counter matching signal gt lt Set matching signal YO gt XO nit rea i y gt Matching Matching output signal data set enable c ting ommand lt Processing when counter is matched gt XO Y x 0 X10 AA ee Init rea Matching Counter Matching Cutting Cut requ signal value ma signal complete est nable c tch poi 1 reset mmand nt 1 command lt Matching signal No 1 reset gt X2 X10 asn E a K Yo counter Cutting Matching alue ma complete signal ch poi 1 reset t 1 command lt Match signal 1 reset complete gt RST Yo X2 YO Counter Matching Matching value ma signal signal 10 tch poi 1 reset 1 reset nt 1 command command 10 2
23. 1 REVISIONS Sc tota haa a cota eh cee ly ad i ahha Bach Mele cee hats lates ir ete A 2 SOFTWARE USER REGISTRATION 2 ccccceceeeeeeeeeeseeeeaeeeeceeceaeeseaeeccaceesaceeseaeeseaeeseaeescaeessaneeseaeessneeeaees A 3 INTRODUCTION iii eae aida onan ie eae i LA al ale ib cele A 4 CONTENTS a atest apes A TA TA ees pea eae crete ater era E DE A 4 About Manuals iii A A A een ieee A 8 About the Generic Terms and Abbreviations cccccccecceeeceeeeeeeeeeeeeeeeeeeaceeeaeeseaeeecaeeeeceeseaeeseaeeeeieeseeees A 9 Product Makeup ccceccccesceeeeceeeeceeeeneeeeaeecaeecsaneeseneesaaeeeaeeseaeeceaneeeaneesaeesqaeecsaceeseneseeaeeseaeeseaeessuneeseneesenees A 11 1 OUTLINE OF GX Simulator 1 1to 1 12 1 1 Features of the GX Simulator ceccccceccceecceeeeeeeeeeeeaeeececeeceaeeeeaeescaeeecaceesaeeesaeescaeessceeseetieesseeesieeess 1 2 1 2 Differences To Debugging with an Actual PLC Connected ececceeceeneeeneeeeeeeeeeeeeseeeteeeseaeseneseneeaes 1 8 2 SYSTEM CONFIGURATION 2 1to2 2 21 SYSTEM Configura e mE E a E A E E E 2 1 2 2 Combination with MELSOFT Produ CSi a a e a a a a E aa e a a a a 2 1 2 3 Operating Environment aiaa ea aa aS ina 2 2 3 SPECIFICATIONS 3 1 to 3 26 3 1 Fables Of EUNCIONS A ees a wa aw eee aan A etna an dictadas 3 1 LUN CONS A A Rd Sac ca deca ea she nas cade ta ried cc Bape ene evans Sere aac Sonne Dest oad ae ee aes 3 3 3 3 Devices and Instructions Supported by the GX Simulator
24. Check the user condition that turns On the The program turns ON annunciator annunciator and make corrective action for that condition 1 Characters in parentheses indicate the special register number where the information is saved 11 5 11 5 11 TROUBLESHOOTING Error Message Table MELSOFT 3 GX Simulator for FX series CPU Functions WDT ERROR Occurrence of an infinite loop Check the program or contents of the operands in the application instruction FILE NOT FOUND Illegal parameter settings Correct the parameter settings and write parameters again INVALID CODE ERROR Data instruction code is corrupted Transfer the program from GX Developer again EXIST SAME LABEL No Overlapping label numbers Check the program and correct the overlapping label numbers STL MC INST ERROR 1 There is no RET instruction 2 MC and MCR instructions are designated within an STL state Check the program and correct the mutual instructions FOR NEXT ERROR Illegal occurrence of FOR to NEXT instructions FOR to NEXT nesting exceeds the maximum nesting level of 6 Check the program or contents of the operands in the application instruction OPERATION ERROR CAN T EXECUTE P No jump destination is specified for CJ or CALL instruction The nestings of CALL instructions exceed the maximum nesting level of 6 Check the program or contents of the operan
25. Entry device monitor on the Device Memory Monitor screen Alternatively click the lt lt Entry Device gt gt Tab Setting screen lol Menu Online Device Batch Buffer Memory Entry Device Register device Delete device Clear device Start monitor GX Simulator Host station Explanation 1 button Register the device to be monitored in the Register device dialog box Register device x Device D50 Value DEC Display En integer y Clase a Device Set the device to be registered e Word device bit specification and bit device digit specification can also be executed Enter the device as described below Word bit specification Word device Bit No Example DO 5 Bit word specification Number of digits Bit device starting number Example K1X0 For the A series CPU specify the extension file register in the ERORI format Refer to Appendix 1 for the entry method 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT b Value Set the input format when monitoring the word device Make selection from between DEC and HEX c Display Set the display format when monitoring the word device e Devices T C are displayed in only 16 bit integer format For the FXCPU C200 and later are displayed in only 32 bit integer format When Real number is selected the value is Decimal Make selection from among 16 bit integer 32 bit integer
26. However Ae contents of this displayed screen cannot be edited sa Timing Chart Format Pre ile Di Edt X2 E Cancel 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 8 5 Reading I O system setting file for SW5 or earlier versions Purpose To read I O system setting file for SW2D5 LLT E to SW5D5C LLT E Operation procedure Select File Import Earlier Version of I O System File EI Edit Online View Window T New Ctr N i Open Ctri O A Save Ctrl S F Save As 1 aa l0S Execute 1 0 System Settings Cancel 1 0 System Settings Import Earlier Version of 1 0 System File Exit 1 0 System Settings Setting screen Open 21 x Look in E Common ex l E File name f E Files of type 11 0 System setting file TXT LIM hs Cancel Specify any folder in Look in click the file to be opened TXT LIM and then click the button POINT When reading a SW5D5 format file specify a LIM file LIM 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION The serial communication function allows you to easily check whether the frame A compatible 1C frame QnA compatible 3C 4C frame used for access from an external device to the PLC CPU via a serial communication module computer link module is in
27. Initial pulse M8002 N O contact ON one scan after RUN meoos Initial pulse OFF one scan after RUN N C contact ON if any of M8060 to M8004 M8067 operates M8013 1 s clock 0 5s 0 5s O Internal real time clock Normally ON detected M8020 ON if counting result is 0 O ON if counting result is M8021 Borrow less than maximum minus value ES ON if counting result increases a digit Decimal point ON when floating M8023 operation decimal point instruction instruction is executed Designate ON Write noz BMOV direction OFF Read M8026 RAMP mode ON Hold output value designation OFF Reset output value Switch timer OFF 100 ms base M8028 instruction ON 10 ms base O Instruction M8029 execution complete Non hold memory all clear instruction OFF Executing ON Execution complete OFF Hold ON Clear App 29 App 29 APPENDICES MELSOFT Appendix Table 1 16 List of Special Relays Supported by the GX Simulator cont ee FXo FX2 FXan FXan FX3u Ppaeripiog FXos Hold memory all OFF Hold Memory hold OFF Clear M8033 stop instruction ON Hold Disable all OFF Output enabled outputs ON Output OFF instruction RAM file clear OFF Hold Constant scan OFF Normal scan M8039 mode ON Constant scan designation mode voo Disable transition ORE Transitior enabled M8040 ON Transition instruction disabled Transition start M8041 instructi
28. List of Supported instruction App 44 Restrictions and cautions eee 3 12 B Batch enabling disabling setting 5 32 Buffer Memory ecri aai 7 8 Buffer memory monitor s es 7 8 C Call Secar 3 9 A series CPU innisin eii 3 12 COMMODA istidat cto i eaen i a iaa 3 9 FX series CPU ccccceseceeeeeeeeeeseeseees 3 17 Handling tii 3 26 Motion controller ooooooccoocconcccnccioccnicccnon 3 20 Q series CPU nimonia 3 21 QnA series CPU coccocinicconoccinccncanccnanccninnnns 3 14 Clean login ico aAA AR 8 26 Combination with MELSOFT Products 2 1 Condition area ceeeceeeeeeeeteeeeeeeeteeeeees App 57 CONGILIONS eee eeeeeeeeceeeeeeeeceeeeceeeeeneeeteneeteaees 5 2 Configuration of screen VO system settings ee eeeeeeeeeeeees 5 6 Serial communication function 6 3 Timing chart format input screen 5 11 Timing Chart screen 7 15 CANA 5 18 Cutting copying pasting set No 5 31 D Device batch 1i pae paea eaa 7 5 Device batch monitor cceeeeeeeees 7 5 Device control Setting eeeeeeeeeeeeeeeeeee 8 7 Device display position exchange 5 24 7 28 Device entering deleting 5 13 7 20 DevicodiS tucan licita 5 23 7 27 A series CPU eccceeecceeeteeteeeeteeeees App 1 Condition area oooococincccincccnnocccincncinncnnns App 5
29. MELSOFT The Device Manager function can execute the following 1 Device control setting Make this setting to select a pattern and change a device value With this setting the device changed operation of the user application can be checked without creation of a device value changing program for debugging Sine wave Trapezoidal wave ON OFF xl xi ES A Holt Ho Seat Heel bell OFF time iS ONtime K A EE Units of time Units of time Rising time Falling time 2 Device value check setting Set a valid range bit pattern to check for unexpected values written from the user application to devices With this setting illegal values written can be checked on the Log display screen to check for user application creation or setting mistakes Device value check setting screen Log display screen Ele Edit Operation Bax Log display Other station device setting Device control setting Device value check setting Host Station 2 1 1 3 1 2 4 No Station Nw St No PLC series Device Datatype Checkmethod min Max 2 Q mode X1 Bit Pattern B 3 Q Q mode D1 Q Q mode M7 16bitint ll H 14 45 07 Host Station Q Q mode D1 Time Network No Station No PLC series Device Device e B181 000 Status Stop Other station device setting Set the other station device memory to make access from the user a
30. Monitor Stop button instead of above However if device is registered in auto mode monitoring will start when device is registered Sampling Period Stopping monitoring Purpose To stop monitoring timing chart Operation procedure Select Monitor Start Stop during monitoring You can also click button instead of above t Stop Sampling Period 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION 7 2 6 Operating file MELSOFT 1 Opening saved file Purpose To open device registration file mon that have been saved Operation procedure Select File Open file E Device Monitor Open File Save File As Save Timing Data Exit Setting screen Open Device Entry File Lookin SDa y elle a File name sample mon Files of type Device Entry File mon Cancel Designate optional folder with Look in click file to be opened then click button Saving in file Purpose To save entered device as a device registration file mon Operation procedure Select File Save File As IS Device Monitor Dpen File Save Timing Data Exit 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT Setting screen Save Device Entry File As 21x Save in Y Data ES El les H a sample mon File name Manual Save as type Device Entry File mon Cancel Designate optional folder with
31. Name of menu that can be used in I O system settings is displayed When menu has been selected drop down menu will be displayed and various functions from this menu can be used 2 Tool bar From functions assigned by menu bar those most frequently used are displayed with buttons 3 File under Editing Displays name of file being edited 4 File under Execution Displays name of file registered as I O system execution file 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 I O system settings tree Selects setting method of I O system settings E Timing Cha No 1 N No 11 No 21 No 31 Device val No 1 N No 26 No 51 No 76 No 101 No 12 No 151 No 17E ll e Timing chart input Double click column of number to be set I O system setting with timing chart format can now be performed Ups to 40 settings from No 1 to No 40 are possible e Device value input Double click column of number to be set I O system setting with device value set can now be performed lt When using the A QnA Q series CPU or motion controller gt You can make 500 settings No 1 to No 500 lt When using the FX series CPU gt You can make 100 settings No 1 to No 100 6 Edit monitor screen Editing and monitoring of I O system settings are performed using this screen In timing chart input mode Refer to Section 5 4 Edit Timing Chart Format Enable T Keep 5 SI
32. OJOJOJOJOJOJO JOJO JOJO JOJO IO JOJO JO Transition Comparison O OJOJOJOJOIOJOIJO JO OOOO JO JO JOJO JO OJO OJOJO JOJO IOJOIJO JOJO JOJO IO JO JOJO JOJO O JO OJOJOJOJOIOJOIJO JOJO JOJO JO JO JOJO JOJO O JO 0100101001010 88 010 x 0 x x x 0 0 0 O App 48 App 48 MELSOFT APPENDICES Appendix Table 2 3 List of Supported Instructions FX series CPU functions cont Compatibility with FX3uc GX Simulator FXzu FXin Xan FXinc FXanc Applicable PLCs FXis FX2 FX2c FX1 Zz G x lt LL FXo Pulses Execution Instruction FXos 32 bit Instruction Instruction symbol FNC N N N oO N Y N lo N NR N ma oO ise Y t o vt N LO LO LO o LO Y 7 amp O suoneJado jeolbol onewuyy WUS uopejoy Buiss vosd eyeq Bulsseooid pasds yBiH App 49 App 49 APPENDICES MELSOFT Appendix Table 2 3 List of Supported Instructions FX series CPU functions cont Pulses Applicable PLCs Compatibility Instruction 32 bit E i FX ith symbol Instruction R Ba FXis N Instruction FX2c FX1nc GX Simulator Convenient instructions
33. Save in and enter new file name in File name If data is to be overwritten on existing file select the file by clicking After setting click button Saving as timing chart data file Purpose To save as a timing chart data file Timing chart data file can be read using timing chart format input of I O system settings Operation procedure Select File Save Timing data ES Device Monitor Dpen File Save File 4s Save Timing Data Setting screen Save Timing Chart Data File Save in A Data Md Ex les H fal program File name Manual Save as type Timing Chart Data File DAT Cancel Designate optional folder with Save in and enter new file name in File name If data is to be overwritten on existing file select the file by clicking After setting click button 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 7 Setting sampling period Purpose To set collection interval of device value in the range between 1 and 20 scans Operation procedure 1 Select Monitor Sampling Period Start Stop Fa Sampling Period 2 Sampling period setting screen will appear Input data collection interval la Set Sampling Period Ea Data Accumulation Interval 5 Scan 1 To 20 Cancel lt Example gt When Data Accumulation Interval is set to 5 scans the device value will be collected every 5 scans and displayed in the timing chart
34. System not determined Po suas systema smn ON oF gt OFF dentication flag Deb P Fixed to ON SM1513 ebug mode OFF Not in debug mode status flag ON Debug mode Fixed to Control system SM1515 ON SM1516 OFF SM1515 e Indicates operation system status Control Standby At the time of TRK CABLE ERR Error code Control Standby system system i ra 6120 occurrence System not determined system status E sms15 on ore CO sm1516 oF on oE App 41 App 41 APPENDICES MELSOFT 3 Special Device List Appendix Table 1 20 lists the special devices supported by GX Simulator for the Q series CPU Q mode functions For details of the special devices refer to the Q Series CPU Q Mode PLC CPU User s Manual Appendix table 1 20 List of Special Registers Supported by the GX Simulator number SD71 Time the diagnostic Time the diagnostic SD72 error occurred error occurred SD73 SD74 Annunciator Annunciator detected SD3 SD5 SD76 SD6 SD77 D7 SD78 D8 SD79 SD9 SD200 Switch status CPU switch status SD10 Error common Error common SD201 LED status CPU LED status information information SD203 CPU operating CPU operating status SD11 status 3 SD12 SD220 SD13 SD221 SD14 SD222 SD15 SD223 SD16 SD224 SD17 SD225 3D18 SD226 nie SD227 No of X points SD21 Error independent Error independent information information SD291 No of Y points SD22 assigned S02 szaz o 5D24 SD293 No of L point
35. YO RST X2 latching contes signal value ma 1 reset tch poin ommand t Dd RST X10 Cutting complete Yi MOV KO DO reset c Present mmand value st orage MOV KO D1 Present value st orage 10 12 10 12 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 3 Displaying timing chart To confirm the device value monitor using timing chart 1 Starting the timing chart Select Start Monitor Function Timing Chart Display from initial window to start timing chart Registering device and starting monitoring Register the devices shown below and click button to start monitoring e X0 X2 X10 X15 X16 X17 YO Y1 Y2 Y4 Y20 M10 DO Double word 4 Confirming the program operation 1 10 13 Click Push button 1 Initial setting When Push button 0 of I O system settings is clicked operation will start By clicking Push button 0 X15 and X17 are turned ON Turning X15 ON turns Y4 ON and turning X17 ON turns Y2 ON In addition DO will be counted up in 20 count units by turning ON Y4 No t1 Always ON f No 21 No 31 j Device Val gt y No 1 N No 51 2 No 76 l No 101 No 126 Y20 0N F No 151 3 N a Timing Chart lol File Device Monitor Monitor Status r Device Entry Chart Display Range C Auto Manual ex C x2 C x5 C x10 C x20 451 150 149 148 447 146 145 144 143 142 IF p x2 x10 x15 X16 x17 YO Sl Y2 is turned ON
36. i i QnA series CPU Q Pee GPU A mode Q series CPU Q mode motion controller Communication system Half duplex communication Synchronization system Asynchronous system Transmission speed 9 6kbps QnA compatible 3C frame format 3 A compatible 1C frame format 3 QnA compatible 3C frame format 4 A compatible 1C frame format 4 QnA compatible 4C frame format 3 QnA compatible 4C frame format 4 Usable commands Refer to Section 6 6 Compatible frames DTR DSR ER DR control Compatible RS CS RTS CTS control Selectable CD signal control Disabled control DC1 DC3 Xon Xoff control Disabled DC2 DC4 control Disabled Connection target All handled as host Transmission When the PLC series is the FX series CPU the serial communication function is unavailable 2 Cable wiring Connect the external device and GX Simulator with the cable wired as shown below GX Simulator Side External Device Side _ y FG FG RS RTS 1 CS CTS 1 1 Needed for flow control only 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 5 Usable Frames This section describes the frames usable with the serial communication function 1 Usable frames The following frames are usable The message format sent from the external device is analyzed to judge the frame automatically Example When the PLC series is the A series CPU the A compatible 1C frame format 3 and A compatible 1C frame format 4 ar
37. ias Ah he ia tie oh en Bei E ohn ala 9 6 10 EXAMPLES OF GX Simulator APPLICATIONS 10 1 to 10 15 10 1 Debugging Using GX Developer Step Execution Function cc eeceeceeceeseeeeeeeereeneeeneeeereseeenreereeas 10 4 10 2 Using Timing Chart Display for Debugging oooconconnconiconnconncanocanacan oran nrn rara rnr arrancar rin rra 10 6 10 3 Using I O System Settings for Debugging conconconiconncnnnconnconncanncnnncnn nar nrarnra rn rr rrrrrrrrrnrn 10 10 11 TROUBLESHOOTING 11 1to11 8 11 1 Error Messages Displayed on the LED Indicators oonoonicnicnnicnnnnonnconnconconcan cancion 11 1 APPENDICES App 1 to App 67 Appendix 1 List of Supported Devices ieii ces tee cadhedetacata tes ladheacte debatea latina a ea iaaea ei aa App 1 Appendix 1 1 The A series CPU function GX Simulator cccceeecceeecceeeceeeeeeeseeeeeeeeesceeesaneessaeensaees App 1 Appendix 1 2 The QnA series CPU function GX Simulator ee ee eee eeeeeeeeneeeneeeneeeeeeeaeeeaeeeaeeeeeaeeas App 5 Appendix 1 3 FX series CPU function GX Simulator ccccceeeceeeeeceeeceeeeceeeeceeeeeeeseaeeeeeeesineeseaeessaees App 11 Appendix 1 4 GX Simulator for Q series CPU A mode FUNCTIONS eee eeceeteeeeeeteeetteetteetneetieetaeees App 35 Appendix 1 5 GX Simulator for Q series CPU Q mode functions 0 eee eee ete teen ttees App 35 Appendix 2 List of Supported INstrUction cc cccesceeeeeceeeeeeeceececeeeeceeseaeeeeaeeeeaeeesaaeeseaeeseaee
38. on GX Developer to start GX Simulator Once started parameter and program will be automatically written and execution state is set to RUN 4 Select Start I O System Settings on initial window of GX Simulator to start I O system setting 2 Operation of I O system settings 1 Make the following settings e Timing chart input The following setting is performed DO is counted up by turning Y4 ON and X2 turns ON when count reaches 1000 matching output Ca Jr H I Keep lt Timing chart format input screen gt Count up DO 82 bit integer assuming present value Turn ON X2 at the moment DO reaches 1000 DO Counted up in 20 count units from 0 to 49th scan 20 0 scan 40 60 80 to 1000 49th scan X2 Turned OFF 0 to 48th scan turned ON only for 49th scan ln Timing Chart Format Input File Device Edit Scan alela 15 wim la 43 44 45 46 47 48 49 50 5 62 53 m Do D 1000 x2 E al El Cancel 10 10 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT e Device value input AER TA ms Always ON f H 1 2 M Enable RIBX17 I 2 Ae V Enable y ON x10 3 le OFF M Enable IV Enable M Enable DO 0 D1 0 Contents XO unit ready is normally turned ON By clicking push button 0 X15 count operation start and X17 matching data setting which must 2 be turned ON by user can be turned ON Operation will start by clicking push button 0 3 When
39. parameter There ial functi dule in th 1 Read the error step and correct the 2110 ers NO SPREIA NUNG ae E E eee a contents of the FROM TO instruction specified by the FROM TO instruction 2 Correct the I O unit parameter settings 2200 Parameter file is missing Please write the parameter again 1 Please delete the file name from the 2400 The file specified in the parameter settings is parameter settings not available 2 Make a file as specified in the parameter settings not available 2 Create the specified file 2501 Multiple program files exist But the program Change the parameter settings to Present or settings parameter is set to None delete unnecessary programs 2503 No program files exist Please check the program configuration 3001 Parameter data is corrupted Please write the parameter again 4010 The program contains no END FEND Please check and correct the program instruction The total number of pointers used in the 4020 program files exceeds the maximum allowable number defined in the parameter settings e The common pointer Nos assigned to files Check the error step and correct the program overlap e The local pointer Nos assigned to files overlap 4100 An instruction contains data that cannot be processed The instruction data exceeds the allowable number of data handled Or the storage data constants specified in the instruction exceeds the usable range A FOR instruction
40. 2 Devices need not be rewritten MELSOFT Simulation of external device operation I O system setting function By setting the combination of bit device ON OFF condition and word device value interactively in the I O system settings of GX Simulator an external input generated in response to a PLC output can be provided simulatively To debug the program shown o on the left Run gt Conventional debugging Debugging program created YO 5s timer setting 5s timer Checking of message format of frame sent by external device Serial communication function This function allows you to easily check whether the frame A compatible 1C frame QnA compatible 3C 4C frame used for access from an external device to the PLC CPU via a serial communication module computer link module is in a correct message format or not Since this function also enables devices to be accessed you can check change device contents easily on an external device Conventionally the serial communication module computer link module was actually connected with the external device to check operation Using this function however you can easily check the message format and device contents between GX Simulator and external device lt Conventional debugging gt Debugging was performed with the external device connected with the serial communication module computer link module actually Serial communication module computer link modul
41. 3 SM1033 2 second clock OFF Without drive 4 SM623 Drive 4 fl ON With drive 4 SM1034 2n second clock OFF File registers not SM1036 Normally ON used Use fil ist ads ON File registers SN VOFF used ormally ee OFF C OFF SM700 Carry flag A sm1o38 ON one scan ony ON 1 scan ON Carry ON after RUN OFF Ai SM1039 sd de he 1 scan Descending after RUN OFF OFF S d t F A Y OFF Not stop status Block comparison match SM1042 Stop status contact ON Stop status ON All match ON SP RUN OFF DI SM1054 STEP RUN fl f SM715 El flag susose STEP RUN Ag OFF Not STEP RUN ON El OFF No error SM1008 Self di ti Soos setiagnosic enor O Nearer Annunciator OFF Not detected 9M1009 detected ON Detected OFF Normal SM1011 O ti fl Simon operator eror nag ON Operation error SM1020 User timing clock No 0 User timing PMII clock No 1 U timi n2 scan n2 scan SM1022 ser timing clock No 2 n1 scan SM1023 User timing clock No 3 User timing laa clock No 4 App 8 App 8 APPENDICES MELSOFT 3 Special Register List Appendix Table 1 6 lists the special registers supported by the GX Simulator for the QnA series CPU functions See the QnA series actual PLC User s Manual for details about the special registers Appendix table 1 6 List of Special Registers Supported by the GX Simulator number SD71 Time the diagnostic Time the diagnostic SD72 error
42. ACPU Refer to Appendix 1 1 instructions SVST CHGA CHGV CHGT SFCS ITP are not supported They are not processed n Operates with the instructions supported by the A4UCPU Q series CPU A mode Operates in the device range of the A4UCPU Refer to Appendix 2 1 f Operates in the device range of the selected Operates with the instructions supported by the Q series Q series CPU Q mode f CPU type Refer to Appendix 1 5 CPU Q mode Refer to Appendix 2 5 However some devices and instructions are restricted or are not supported Unsupported devices and instructions are not processed NOP These NOP instructions are shown on the initial screen of the GX Simulator as unsupported information Refer to Section 4 3 Motion controller In this manual the PLC portion of the motion controller is described as a function of the motion controller In addition the A171SH A172SH A173UH S1 and A273UH S3 are included in the device instruction support range of the A2SH A2SH S1 A3U and A3U respectively 3 SPECIFICATIONS MELSOFT 3 4 GX Simulator Restrictions and Cautions The restrictions and cautions when debugging with the GX Simulator are described below 3 4 1 Restrictions and cautions common to each type of CPU 1 GX Simulator Processing Time The time set as constant scan is used to update the present value of the timer Constant Scan1 Scan2 Scan3 Scan4 Scan5 scan 100ms SM400 10 K10 D 30
43. AU App 18 App 18 APPENDICES MELSOFT Appendix Table 1 11 List of Devices Supported by the GX Simulator CPU type FX1s Compatibility with functions Device range Number of points Monitor 1 0 system function 2 settings Total number of points for Input X combined use with extension X000 to X017 16 points O O Output Y EER Yooo to Y015 14 points O O S General MO to M383 384 points O O 3 Auxiliary relay M M384 to M511 128 points O O j Special M8000 to M8255 256 points O O State S Initial 1 SO to S9 10 points O O 100ms TO to T31 32 points O O Timer T 100ms 10ms T32 to T62 31 points O O O 16 bit up CO to C15 16 points O Counter C 16 bit up gt 1 C16 to C31 16 points O 16 bit general DO to D127 128 points O Data register D 16 bit latched 1 D128 to D255 128 points O 32 bits when used in 16 bit special D8000 to D8255 256 points O pairs D1000 to D2499 1500 points O Word device Olololololo 16 bit index VO to V7 ZO to Z7 16 points O Nesting N For master control NO to N7 8 points x x Pointer P For CJ CALL branch PO to P63 64 points x x 16 bit 32768 to 32767 Decimal constant K 32 bit 2147483648 to 2147483647 16 bit HO to HFFFF Hexadecimal constant H 32 bit HO to HFFFFFFFF App 19 App 19 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Comp
44. Auto C Manual ex x2 x5 0x0 X20 Stop 9 9 4 FF B S 3 3 2 4 Exit timing chart Purpose To exit timing chart Operation procedure Select File Exit from timing chart screen ES Device Monitor Open File Save File As Save Timing Data 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 3 Using timing chart 1 Screen display operation When you run Timing Chart the following Timing Chart screen appears The following gives the explanations of the display data of the Timing Chart screen 3 4 Pasi 1 gt File Device Monitor r Monitor Status Chart oh Range A 2 afertainae E Auto Manual em ss ses 8s 8 Device Entry Das F G GS 4 GF 2S a om 6 GE xo I i _ 4 70 ya 7 EEE D te tt 130 8 7 Menu bar Names of menu that can be used in timing chart are displayed When menu is selected drop down menu will be displayed and you can use various functions from this menu button By clicking the Status button you can start stop monitoring For the details refer to Section 7 2 5 Device Entry Selects auto or manual entry of device to be monitored For the details refer to Section 7 2 4 Range of Chart Display When the sampling interval is set to per scan the chart display range is enlarged by 1 2 5 10 and 20 times 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSO
45. BCD P DBCD P BIN P DBIN P instructions MOV P DMOV P CML P DCML P BMOV P FMOV P Data transfer instruction XCH P DXCH P Program branching CJ SCJ JMP CALL P RET instructions Program switching CHG instructions App 44 App 44 APPENDICES MELSOFT Appendix Table 2 1 List of Supported Instructions A Series CPU Function cont 3 Applied Instructions Instruction Symbol Restriction Logical arithmetic WAND P DAND P WOR P DOR P WXOR P instructions DXOR P WXNR P DXNR P NEG P ROR P RCR P ROL P RCL P DROR P DRCR P DROL P DRCL P Shift instruction SFR P SFL P BSFR P BSFL P DSFR P DSFL P Rotation instructions SEG conducts 7 segment decoding regardless of M9052 ON OFF status FIFO instruction FIFW P FIFR P Buffer memory access instructions FOR to NEXT instructions FOR NEXT Display instructions LED LEDA LEDB LEDR Data processing SER P SUM P DSUM P DECO P ENCO P SEG instructions BSET P BRST P DIS P UNI P ASC FROM P DFRO P TO P DTO P STC converted to SET M9012 Other instructions STC CLC DUTY CLC converted to RST M9012 4 Dedicated Instructions 1 Class Instruction Symbol Restriction Direct output instruction DOUT DSET P DRST P i ee l Structural program BREAK P FCALL P instructions Data operation instructions DSER P SWAP P DIS P
46. Button0 H f No 51 2 1 No 76 F x10 No 101 y is Y20 0N b 0 1 7 No 17E 5 Ea tanana 10 onon D 4 Stopping monitoring Purpose To stop monitoring with I O system setting screen YO 0N Operation procedure Select Online Edit mode ae a can also be clicked instead of above M SETTINGS MT View winde MOntorMode dit Mode 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 3 Screen during monitoring When monitoring is started I O system settings screen will appear as shown below Area displayed in yellow is effective fe e ACI gt Always ON fo gt Always ON fo Timing Chart Preview 1 Bit e The status of displayed bit device can be inverted by clicking As shown on the screen when Y4 ON is indicated yellow display will show ON status If Y4 OFF is indicated yellow display will show OFF status 2 Word device Following dialog box is displayed by clicking Displayed value can be changed Change Device Value Device Name DO Current Value After Change 3 Normally ON Since ON is normally set nothing changes even if clicked 4 Push button Push button state is inverted by clicking If there are push buttons with the same number all buttons are linked for operation 5 Timing chart preview button Timing chart format input screen is displayed by clicking and the set contents can be confirmed
47. Compatible with Windows XP Section 3 4 6 Appendix 1 5 Appendix 2 5 Section 2 3 Oct 2002 Added initial window minimum function Section 9 3 Mar 2002 Compatible with Process CPU Section 3 4 6 Appendix 1 5 Appendix 2 5 Jul 2001 Added serial communication function Chapter 6 Compatible with Windows 2000 Me Section 2 3 Compatible with Basic model QCPU Section 3 4 6 Appendix 1 5 Appendix 2 5 Feb 2000 Aug 1999 Compatible with FX1sCPU and FXinCPU Section 3 4 4 Appendix 1 3 Appendix 2 3 Compatible with SFC program in FX series Compatible with Motion controller SCPU Section 3 4 4 Section 3 4 5 Improved I O system setting functions Compatible with High performance model QCPU Chapter 5 Section 3 4 6 Appendix 1 5 Appendix 2 5 App 65 Apr 1999 Added timing chart function Section 7 2 App 65 MELSOFT APPENDICES MELSOFT Distribution 7 Version Description Reference Time Section 3 4 4 Compatible with FX series Appendix 1 3 Appendix 2 3 Compatible with Windows NT 4 0 Section 2 3 Nov 1998 Improved device memory monitor functions Chapter 7 Improved I O system setting functions Chapter 5 App 66 App 66 APPENDICES MELSOFT MEMO App 67 App 67 INDEX A A compatible 1C frame commands 6 8 A series CPU D vicelisSt ssaa a App 1
48. D lt gt D gt D lt D lt D gt E E lt gt E gt E lt E lt E gt BKCMP P lt gt gt lt lt gt 1 P P D P D P P P D P D P B P B P DB P DB P B P B P DB P DB P E P E P E P E P BK P BK P INC P DEC P DINC P DDEC P Comparative operation instructions Arithmetic operation instructions BCD P DBCD P BIN P DBIN P INT P DINT P FLT P DFLT P DBL P WORD P GRY P DGRY P GBIN P DGBIN P NEG P DNEG P ENEG P BKBCD P Data conversion instructions BKBIN P MOV P DMOV P EMOV P MOV P CML P DCML P Data transfer instructions NN BMOV P FMOV P XCH P DXCH P BXCH P SWAP P Program branch instructions CJ SCJ JMP GOEND e Other convenient instructions TTMR STMR RAMP MTR x1 x2 1 Unusable when the QOOJCPU QOOCPU or Q01CPU is used 2 Unusable when the Q12PRHCPU or Q25PRHCPU is used App 55 App 55 APPENDICES MELSOFT Appendix Table 2 4 List of Supported Instructions Q Series CPU Q Mode Function cont 3 Applied Instructions Instruction Symbol WAND P DAND P BKAND P WOR P DOR P Logical arithmetic instructions BKOR P WXOR P DXOR P BKXOR P WXNR P DXNR P BKNXR P ROR P RCR P ROL P RCL P DROR P Rotation instruct li DRCR P DROL P DRCL P IIS Ree Seg eae Bit processing inst
49. DO to D1 Present value storage Device to store present value 10 3 10 3 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 10 1 Debugging Using GX Developer Step Execution Function 10 4 Using GX Developer independently it is not possible to turn arbitrary devices ON OFF or to change device values during step execution However using the GX Simulator allows the device values to be easily changed during step execution In this section example of debugging with step execution jointly used with following program is described Running the program on page 10 2 and turning on XO causes SP UNIT ERROR to occur Carry out step execution to find out the step at which the error has taken place 1 Pre debugging operation 1 Start GX Developer and create the program on page 10 2 2 Choose Tools gt Start ladder logic test on GX Developer to start the GX Simulator At a start the parameters and program are automatically written and SWITCH changes to RUN 2 Step execution 1 Set SWITCH of the GX Simulator to STEP RUN da LADDER LOGIC TEST TOOL ile Ez Start Tools Help Q25H RUN ERROR USER m SWITCH INDICATOR RESET C STOP RES ET cy STEP ALN 140 SYSTEM RUN HEN 2 Turn on XO 3 Move the cursor to the position where step execution will be started step 0 4 Select Online Debug Debug on GX Developer In addition select Online Debug
50. Debugging procedure App 63 GX Developer for debugging operation performed on the copied project 3 Change the PLC type to High Performance model QCPU 4 Start the GX Simulator and debug the project 1 Run two separate GX Developer programs 2 Copy the project GX Developer for editing operation performed on the original project 5 Start the editor of the original project 6 Apply the debug result App 63 APPENDICES MELSOFT Appendix 4 3 Detailed operation The following describes the detailed operation according to the debugging procedure on the previous page 1 Run two separate GX Developer programs Run two separate GX Developer programs for debugging and editing 2 Copy the project Create a copy of the original Universal model QCPU project for debugging with the GX Simulator Open the project to be debugged created with the Universal model QCPU Select Project Save as and save it with a different file name 3 Change the PLC type to High Performance model QCPU Change the PLC type from Universal model QCPU to High Performance model QCPU Select Project Change PLC type Set the PLC type to High Performance model QCPU and execute the Change PLC type function 4 Start the GX Simulator and debug the project Select Tools Start ladder logic test and start the GX Simulator for debugging 5 Start the
51. Display format can be changed x Display Format Value Decimal 7 View fie Bit Integer Cancel e Value Selects decimal or hexadecimal number display e View Selects 16 Bit 32 Bit or real number 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 Exchanging device display position Display position of device can be exchanged by drag amp Drop a Drag the device name in the timing chart format input screen Dotted line frame will appear during dragging Fl b Superimpose dotted line frame on the device name to be exchanged Device name can now be exchanged Stop dragging Y70 Superimpose dotted line frame 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 6 Setting by Entering Device Value This section describes l O system setting by entering device value Operation procedure 1 Select Start I O System Settings from initial screen 2 Double click column of number to which device value is to be set No 21 No 30 No 31 No 40 Device Value Inpt No 1 No 25 No 26 No 50 No 51 No 75 No 76 No 10 Setting screen Perform setting in I O system setting dialog box as shown below 1 2 3 4 5 Description of items 1 No Number of settings in I O system setting dialog box Maximum 100 settings can be chosen Once the set No has
52. EA Link relay B ELSA E N Special relay wW e ee a A ee E cmas o o o o x C aen RS RR noo eme o o o o x Function input FX E A O Al Function output FY Ee a ee E Link input JW Cadie ke ee ee eee eee Link output Jn Y EA a ae AA ee keal Link relay JriB PEA E A A E ee A Link special relay JnISB Sa SE O E a SFC block BL OE ES SEA AE App 59 App 59 APPENDICES MELSOFT Device Name dE series des series Q series CPU Q series CPU FX series Peo mode Q mode CPU Q f gt Lo g o 1 x2 3 Data register D Ti ee ae a RNE E Special register SD Link register W Link special register SW Timer present value T Counter present value C ae Function register FD File register R or D Extension file register Buffer register Un G Link register Jn W Link direct device Jn SW Index register Accumulator A Only compatible with FX3u FX3uc PLCs In FX3u FX3uc PLCs device name R represents extension register Only compatible with FX3u FX3uc PLCs When I O assignment is not set the buffer register is treated as an unsupported device App 60 App 60 APPENDICES MELSOFT Device value input Device Name Pe series irs series Q series CPU Q series CPU pes series Cell mode Q mode Q 2 gt o X a Input X Output Y Internal relay M Latch relay L Step relay S Step rel
53. EES File Edit Operation Log display Other station device setting Device control setting Device value check setting No Station Nw St No PLC series Device _ Data type Check method Min Max Host Station Q Q mode X1 Bit Pattern 1 1 Q Q mode D1 16bitint_ 2 1 2 Q Q mode M7 Bit H 20 v 4 Status Stop on i _ 1 2 3 4 5 6 to 8 6 7 8 Explanation 1 Station Nw St No Specify the station of the device to be set When specifying the other station set the information on the other station in the Other station device setting of Device Manager in advance Refer to Section 8 3 1 for the other station device setting 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 2 PLC series Displays the PLC series of the PLC CPU on the specified station When the host station is selected Series of the station set on GX Developer When the other station is selected Series of the station set in Other station device setting 3 Device Specify the device on which a device value check will be made 4 Data type Specify the data type when the set device value will be displayed Make selection from among Bit 16 bit int and 32 bit int 5 Check method Select how to specify the value to be set as the minimum value or maximum value from Range Unsigned Dec Range Signed Dec Range Hex and Pattern 6 Min Specify the minimum value of the
54. Entry in UCIGO format is applicable to only Timing Chart Display I O System Settings and Device Manager lt Buffer register gt Starting I O No of special function module Ui G ig For starting I O No 4 and address K30 enter U4 G30 Address 2 Special Relay List Appendix Table 1 2 lists the special relays supported by the GX Simulator for the A series CPU functions See the A series actual PLC User s Manual for details about the special relays Appendix Table 1 2 List of Special Relays Supported by the GX Simulator OFF N M9032 E M9008 Self diagnostic error o 1 second clock 0 5s 0 5s ON Error x1 Te M9009 Annunciator OFF Not detected M9033 Dean eee ts 1s detected ON Detected x1 OFF No error M9034 j 30s OFF No error M9036 Normally ON Operation error flag ON Error OFF Carry OFF M9012 Carry flag SA p N ON one scan only after RUN M9038 Noei scan M9020 User timing clock No 0 User timing ae clock No 1 User timing n2 scan n2 scan M9022 i ai gt voo clock No 2 n1 M9023 User timing clock No 3 User timing MARSA clock No 4 M9028 Clock data read OFF No processing request ON Read request OFF No error M9091 Instruction error flag ON Error RUN flag OFF one scan only after RUN OFF Not st tat M9042 Stop status contact OS ON Stop status M9051 CHG instruction OFF Enabled execution disabled ON Disabled OFF Not STEP RUN ON STEP RUN
55. GX Simulator Click on the radio buttons to change the execution status INDICATOR RESET button RESET button Click to clear the LED display e Click to reset the GX Simulator e Displayed only for the A QnA Q and Motion controller series functions Unsupported information indicator lamp Error advance display button e Displayed only when unsupported instructions or devices for the GX Simulator is found e By double clicking display the unsupported instructions that have been changed to NOP instructions and their steps on another screen Refer to 1 in this Section Clicking this button will display the descriptions of issued errors error steps and the name of files in which the error is issued on another screen Refer to 2 in this Section I O system setting LED e LED lights up during execution of I O system setting e Double clicking this will show the contents of current I O system settings Displays the current status normal or error occurrence At error occurrence the icon is enclosed by yellow Current Status 4 COMMON OPERATIONS FOR THE GX Simulator Error Step No 1 2 ERROR DETAILS Error and Cause There is no END FEND instruction in the main MELSOFT Unsupported instruction list display function Displays a list of program name and step No when unsupported instructions devices are included in the program or I O system setting To display the lis
56. K 2147483648 to K2147483647 Fixed HO to HFFFFFFFF Fixed E 1 17549 38 to E 3 40282 38 Fixed ABC 123 App 5 APPENDICES Compatibility with functions MELSOFT O Compatible x Incompatible Irrelevant Monitor 1 0 system Serial communication Remarks function 7 settings function Device backup Device Manager O 5 O O Actual input is invalid O 5 Actual input is invalid O O O O OJOJOO O JOJO O O x JO O JOOJOO O x OJO O O O O JOJOJO O O O O Refer to 2 Special relay list for the supported special relays Refer to 3 Special register list for the supported special registers O OJO O O OIO OJO O O O No operation is performed in real time High speed timer can be set in 0 1ms units by parameter No operation is performed in real time High speed timer can be set in 0 1ms units by parameter O 6 O 6 O 8 O 8 x x O x O File register setting of parameter is O O x O required O x 1 0 assignment setting of parameter is required x O x O x xJO O x xJO O 1 x x Up to 16 characters per instruction x 1 Devices S JnYX Jn Y Jn B Jn SB Jn W Jn SW I BL and TR are not supported 2 Cannot be monitored in Device Memory Monitor of GX Simulator Execute the monitor test function from GX Developer 3 If index qualification is added to the module number e g U
57. Look in click file to be opened and click button Devices for only 16 points from upper side of timings maximum 64 points set by timing chart screen can be read It is necessary to move required timings to upper side before creating timing data file 2 Returning to original state before operation Purpose To return to previous state before last operation performed Only the operation immediately before can be regained Operation procedure Select Edit Undo 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 3 4 Displaying registered device list Select Device List Device Registered device list will be displayed xl Add M10 Y20 UP Y4 Delete X12 Move x10 Jump To x0 DN Close e Click button Device registration dialog will be displayed Refer to Section 5 5 3 1 for details e By clicking button the device is deleted from object of monitoring Two or more devices can be deleted by using Shift key Select or Ctrl key Select e By clicking button display of timing chart format input screen jumps to device being selected By clicking UP Down button device being selected moves up or down e Selecting Two or more devices Two or more devices cannot be selected and moved simultaneously Changing display format of word device Select Word Device Then select Device Property Dialog shown below will appear
58. 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
59. OJOJOJOJOJO O OJO App 11 App 11 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Serial communication Remarks A Device backup Device Manager function Octal number Actual input O ost fe is invalid O Octal number Actual output is invalid 1 Area fixed to back up for interruption This cannot be changed 2 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 12 App 12 APPENDICES MELSOFT Appendix Table 1 8 List of Devices Supported by the GX Simulator CPU type FXon Compatibility with functions Device range Number of points Monitor 1 0 system function 2 settings Total number of points for Input X combined use with extensi n X000 to X177 128 points O O Total number of points for Output Y combi aduse with extensic Yo0o to Y177 128 points O O 8 General MO to M383 384 points O O c 3 Auxiliary relay M Latched 1 M384 to M511 128 points O O a Special m8000 to M8255 67 points O O Initial 1 so to S9 10 points O O State S Latched 1 s10 to S127 118 points O O 100ms TO to T31 32 points O O Timer T 100ms 10ms T32 to T62 31 points O O o 16 bit up CO to C15 16 points O O
60. POINT 1 The initial setting is a check box OFF status 2 Making selection merely turns the check box ON OFF in the menu At this time the initial window is not minimized 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 10 EXAMPLES OF GX Simulator APPLICATIONS 10 1 This chapter provides examples of debugging an actual program using the GX Simulator In this manual explanations are given using the system configuration shown below and program shown on page 10 2 Simulation example The following shows the system where sheet is fed using roller and cut by cutter Rotation amount of roller is taken into high speed counter unit Channel 1 is used roller stops when the value reaches 1000 and sheet is cut by Y20 cut request Roller turns again by X10 cut completion from cutter to feed sheet System configuration Cutter Roller Sheet I Y20 cut request a rito Kg X10 cut completion JU LIL bo Encoder NOOO o x0 o lt oO Power supply module X Y0 to X YF X10 to X1F X20 to X2F Program device registration file mon and I O system setting file IOS are stored in Manual folder of CD ROM for the product 10 When using them copy them once onto the hard disk Since the sample files copied are read only cancel the read only settings of all files 10 1 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT Sequence program
61. Refer to the GX Developer Operating Manual POINTS 1 Always do the program settings for the QnA series Q series CPU function If you do not make the program settings and the GX Developer is of version later than SW2D5 _ GPPW E the following will occur 1 The ladder sequence list of the active screen of GX Developer will be written 2 The sequence program will not be written if the active screen is not a ladder list screen or if there are no active screens 2 Please set the I O assignments for A QnA Q series CPU function before reading writing the buffer memory of special function module Refer to Section 4 2 4 4 COMMON OPERATIONS FOR THE GX Simulator From previous page Procedure 4 Y Procedure 5 Y Procedure 6 y Procedure 7 y Procedure 8 Vv Procedure 9 MELSOFT Select the Tools Start ladder logic test GX Developer menu items to start the GX Simulator The sequence program and parameters created with GX Developer are automatically written to the GX Simulator equivalent to write to PLC Write to PLC Writing Program MAIN 100 Set various devices that support the offline debugging of the user application Refer to Chapter 8 Device Manager Function Debug the sequence program using the GX Simulator and GX Developer functions 4 Debugging is possible by using the device monitor changing arbitrary d
62. SS SC SN However STS STC STN can also be set Counter CS CC CN On the Entry Device monitor tab and timing chart bit data digit specification word data bit specification and index qualification are available Indirect specification is unavailable On the Other station device setting tab only T C can be represented In the device control setting or device value check setting only Contact Coil Current Value refer to 6 for representations can be represented The function input FX function output FY and function register FD of only the host station are supported App 38 App 38 APPENDICES 2 Special Relay List MELSOFT Appendix Table 1 19 lists the special relays supported by GX Simulator for the Q series CPU Q mode functions For details of the special relays refer to the Q Series CPU Q Mode PLC CPU User s Manual Appendix Table 1 19 List of Special Relays Supported by the GX Simulator OFF No error OFF No self diagno stic error ON Self diagnostic error OFF No error common information ON Error common information OFF No error individual information SM5 Error common information sme mraman ON Error individual information s E reset OFF Normal MOS ON Operation error SM62 Annunciator OFF Not detected detected ON Detected SM203 STOP contacts STOP status sm205 SE RUN STEP RUN status contacts SM213 Clock data read OFF No processing request ON Read request Max loa
63. Setup 2 Up to eight Device Memory Monitor screens can be started 2 Ending monitoring device memory Purpose To end monitoring device memory Operation procedure Select Menu Exit from Device Memory Monitor screen ta Device Memory Monito Menu Online Device batch monitor Buffer memory monitor Entry device monitor Exit 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 3 Specifying the station to be monitored Purpose Specify the station of monitor target Operation procedure Choose Online Transfer Setup on the Device Memory Monitor screen Setting screen Transfer setup i x 1 gt Host Station 2 cren Explanation 1 Host Station Select here when reading writing the devices of the host station 2 Other Station Network No Station No Select here when reading writing the devices of the other station Specify the target station in the combo box To make selection it is necessary to set the information on the other station in the Other station device setting of Device Manager and start Device Manager from the Operation Start menu in advance Refer to Section 8 3 1 for the other station device setting 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 4 Batch monitoring the devices Purpose Specify and batch monitor devices Operation procedure Choose Menu Device
64. Specify the data to be stored into the device 14 Source station Specify the station of the device that will be the source of copying the change pattern 15 Source device Specify the device that will be the source of copying the change pattern 16 Cycle Specify the time of one cycle of the change pattern 17 Preview Clicking the Preview button displays the change pattern selected in 5 in graph format The value of the item in the displayed dialog box can be changed Details of each change pattern will be provided on the next page 8 9 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT Change pattern Description Preview Sine wave Device update is repeated between the specified minimum value and maximum value in the specified cycle according to the sine wave Units of time Cosine wave Device update is repeated between the specified minimum value and maximum value in the specified cycle according to the cosine wave i Units of time y Trapezoidal wave Device update is repeated between the specified minimum value and maximum value at the OFF time Rising time ON time and Falling time according to the trapezoidal wave OFF time Units oftime y Rising time Falling time 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT Description Preview Constant The specified constant value is written when cue device control starts None Copy The value of t
65. TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 Using Timing Chart By using timing chart timing of ON OFF for bit device and change in word device value can be confirmed easily 7 2 1 Operation procedure of timing chart Operation procedure of timing chart is shown below Start Refer to Section 7 2 2 1 Entry of device Entry with auto mode Y Enter device in auto mode Entry device in man alinode Refer to Section 7 2 4 1 a Enter device in manual mode Refer to Section 7 2 4 1 b Start monitoring Refer to Section 7 2 5 Save entered device in file Save in file Refer to Section 7 2 6 2 End Refer to Section 7 2 2 2 When sampling period is to be set refer to Section 7 2 7 Refer to Section 7 2 6 3 if saved as timing chart data file 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION 7 2 2 Starting Exiting timing chart MELSOFT 1 Staring timing chart Purpose To start timing chart Operation procedure Select Monitor Function Timing Chart Display from the initial screen Maximum 4 timing charts can be started a LADDER LOGIC TEST TOOL m E Start Tools Help I O System Settings Timing Chart Display Serial Communication Function Device Manager ta Timing Chart _ oO x Eile Device Monitor Monitor Status Device Entry Chart Display Range Monitor gy 6
66. Table 2 3 List of Supported Instructions FX series CPU functions cont Compatibility with FXsu FXauc GX Simulator FX3c FX2N FXanc Applicable PLCs FX2 FXin Las X f c 9 Q Q 339 S E os ax Ww S Cc 2 SU A 2 o D S Ss o 35 oe oO 7 Z2 ma sselo YES BK YES YES 193 YES YES YES YES AUN E ET uonesedo ejep 190 g EPA AA ENE SS ee ee INM A AE A io e lao ls l YES o3 ten es To ropojotoj e gt Eee e ee eee Peces EEE E EN ETS PSN SAS ee gies a ves folololjoo_ e wes do dodoro4 f folo _e Tas me ve ololololo e sl Sl S D2 2 joUOD Buys JajoeJeyo LD lt LD gt MBR e eel e ale led 1185 0 05 gt gt es ta Lale leal eae ae ENE eso opa O ef wo es ppp pe ss ao ves jototo o oe 233 Y N uosueduloo joeJuoo AND lt AND lt gt YES YES YES App 53 Faz or ves 1 olololo o e App 53 APPENDICES MELSOFT Appendix Table 2 3 List of Supported Instructions FX series CPU functions cont 8 ENC Instruction 32 bit ae ee oo ee amp i xecution 0 1N N 3U wi O No symbol Instruction y 256 umr ves ves 257 BAND YES YES O 0 ZONE YES YES 29 st es Es ee le l
67. UNI P TEST P DTEST P 10 operation instrution FF CCS BSQR P BDSQR P BSIN P BCOS P BTAN P BASIN P BACOS P BATAN P INT P DINT P FLOAT P DFLOAT P ADD P SUB P MUL P DIV P RAD P DEG P SIN P COS P TAN P ASIN P ACOS P ATAN P SQR P EXP P LOG P BINDA P DBINDA P BINHA P DBINHA P BCDDA P DBCDDA P DABIN P DDABIN P HABIN P DHABIN P DABCD P DDABCD P LEN P STR P DSTR P VAL P DVAL P ASC P HEX P SMOV P SADD P SCMP P WTOB P BTOW P LIMIT P DLIMIT P BAND P DBAND P ZONE P Data control instructions DZONE P Clock instructions DATERD P AN Extension file register RSET P BMOVR P BXCHR P ZRRD P ZRWR P instructions ZRRDB P ZRWRB P Program switching ZCHG instructions 1 Compatibility indicated applies when the PLC type of the project is the AOJ2H A1FX A1N A1SJ A2C A2CJ A2N S1 A1SH A1SJH A2SH A3N A171SH or A172SH The dedicated instructions in the table are not supported They are processed as NOPs The dedicated instruction that begins with the LEDA LEDB or LEDR instruction operates as the display instruction of the application instructions The LEDC and SUB instructions are not supported They are processed as NOPs Real number processing instructions Character string processing instructions App 45 App 45 APPENDICES MELSOFT Appendix 2 2 QnA series function GX Simulator Appendix Tab
68. Y20 cut request is turned ON X10 cut complete turns ON 3 seconds later This assumes the operation through cutting has been completed after requesting cut When YO matching signal No 1 reset command is turned ON X2 counter value matching point No 1 and X10 cutting complete are turned OFF Operation in which turning YO ON turns X2 OFF assumes the operation of high speed counter unit Turing X10 OFF assumes the operation to return cutter signal to initial value 5 When Y1 preset commana is turned ON DO and D1 are set to 0 This assumes the preset operation of high speed counter unit 2 Save l O system settings 3 Select File Execute I O System Settings to execute I O system setting Execution state of GX Simulator is set to RUN 10 11 10 11 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 4 Select Online Monitor Mode to set I O system setting to monitor mode When I O system setting has been performed the following pseudo program is created When running program the pseudo program will be executed after the created program is executed A ee D K20 DO ount en Present ble com value st and orage SM400 et Xo Unit rea dy MO SET X15 ush but Count st on 0 SET X17 Matching output data set ting p DO 1 000 _HHHJWWII SET x2 Present Counter value st value ma orage toh poin Y20 K30 _ 100 utting TO J_ cer X10 Cutting complete
69. ZPUCH P ZPOP P QCPU instructions RBMOV FROM P o ope emos instruction 1 Unusable when the QOOJCPU QOOCPU or Q01CPU is used 2 Unusable when the Q12PRHCPU or Q25PRHCPU is used App 56 App 56 APPENDICES MELSOFT Appendix 3 List of Devices Usable with the I O System Settings Some devices designated in the condition setting area and simulation device area by the I O system settings are subject to restrictions A list of the devices which can be used with the I O system settings is shown below comin Thing chat Format Thing chat Format Format ES lt Timing chart input gt 2 EdtTiming Chat Fomat 2 EdtTiming Chat Fomat Format FT Enable I Keep ae a a area Simulation device area a ms lt Device value input gt Appendix 3 1 Condition area Devices which can be designated in condition area are the same for both timing chart input and device value input Device Name A series z series Q series CPU Q series CPU FX series mode Q mode CPU Q 2 gt O a Output mw Internal relay M Latch relay L Step relay S Step relay S for SFC State S Annunciator F Edge relay V Link special relay SB Link relay B Special relay e Imer a AAA TA A App 57 App 57 APPENDICES MELSOFT Device Name A series QnA series Q series CPU Q series CPU FX series CPU CPU A mode Q mode CPU Bit device Word device 1 2 3
70. a correct message format or not Since this function also enables devices to be accessed you can check change device contents easily on an external device Conventionally the serial communication module computer link module was actually connected with the external device to check operation Using this function however you can easily check the message format and device contents between GX Simulator and external device lt Conventional debugging gt Debugging was performed with the external device connected with the serial communication module computer link module actually Serial communication module computer link module PLC Serially connectable external device Frame transmission Response lt Debugging using GX Simulator gt Since GX Simulator responds to the frame sent from the external device the external device need not be connected to the serial communication module computer link module actually Serially connectable external device a GX Simulator Frame transmission gt Response The serial communication function does not support the serial communication module s no procedure protocol created by sequence programming 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 1 Operation Procedures for Serial Communication Function The following are the operation procedures for the serial communication function lt GX Simulator side gt
71. aar a ti A A td A ta 5 22 5 6 Setting by Entering Device Value ooonoonnccnninininnncnncnnncnnccnncnnrn corran rana 5 25 5 7 Starting Stopping the Simulation ee ee ae enaa e eaa aaan anA ERER E A EARTE EANA REAREN AR 5 27 5 8 Other Operations S AE E E E P E E calada E E E E E cdo said 5 29 5 8 1 Operating the Tile coo cd 5 29 5 8 2 Cutting copying and pasting all settings in the Set NO oo eeeeeeeeeeeeeeeeseeeteeeteeeteeeseeseeeteaeeeneeaes 5 31 5 8 3 Batch enabling disabling settings c ec eceeeeeneeeeeeeeeeeeeeeeeseeeseeeseeeseeeseeseeeseeeseeeseeeseeeseaeseateneseneeaaes 5 32 9 8 4 Executing monitora tallada ddhe td ldiathadan 5 33 5 8 5 Reading I O system setting file for SW5 or earlier versions 0 0 eee eeeeeeeeeeeeeeeeeeeeeeaeeeeeeaeeeateeas 5 35 6 1 Operation Procedures for Serial Communication Function cccccceeeseeeeeeeeeeeeeeceeeeeeeseaeeeseeesneeetaes 6 2 6 2 Starting Ending the Serial Communication FUNCTION 0 0 0 eceeeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeeeeaeeas 6 3 6 3 Layout of the Serial Communication Function Screen oo eee eeceseceeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeesaeeeaeeeateeaneeatens 6 4 6 4 Transmission Specifications cccccccescceeeeceeeceececeeeeaeeceaeeecaeeecaeeeeeaecseaeeecaeeseaeessaeeseaeeseaeesaeessuseeseseesans 6 6 6 SUsable FAMOSA 6 7 6 6 Command LS enian ih east A An 6 8 6 6 1 Usable A compatible 1C frame commandS cccccceeeeeeeeeeeeeeeeeeeeeteaee
72. been clicked it can be cut copied or pasted 2 Condition Since the conditions are the same as those when timing chart is used refer to Section 5 4 2 3 Timer Sets the time from the point when designated condition is fulfilled until the input is issued Enter the time in 10 ms units The setting range is 1 to 1000 x10 ms 4 Input No Designates the bit device which is turned ON OFF once designated condition has been fulfilled Also designates word device whose value is to be changed Sets bit device ON OFF when condition has been fulfilled Bit device designation Word device designation 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT e Input method Direct input Independent device designation Designates non consecutive devices separated by commas Example DO 10 D2 20 D3 50 Consecutive device designation Designates the first and last of a series of bit device only consecutive devices separated by a hyphen Example X0 100 Mixed device designation Designates a mixture of independent and bit device only consecutive devices Example X0 X2 M10 20 e Input method using dialog box Click button and enter device name and device No etc Refer to Appendix 3 2 for devices that can be entered in the input No area Enter device number Enter No of first device Enter value to be set Select device name which is to be turned ON OFF
73. display screen The default value is 1 scan Every time you change the sampling period the data displayed in the timing chart will be cleared 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 8 Other operations 1 Displaying the list of registered devices Select Device List Device The list of registered devices will be displayed tia Device List x e Click button Device entry dialog will appear Refer to Section 7 2 4 for details Click button The device will be deleted from target of monitoring By using Shift key Select or Ctrl key Select two or more devices can be deleted simultaneously Click button Timing chart being displayed will jump to selected device e Click A W button Device being selected will move up down e Selecting two or more devices You cannot select two or more devices for moving Changing word device display format Select Word Device and select Device Property The dialog shown below will appear Display format can now be changed ta Property Eg m Device Ic 2 Display Format Value Dec y View 32 Bit Integer Cancel Value Changes between decimal and hexadecimal e View Changes between 32 bit integer and Real number Effective only when selected device is a double word 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 3 Exchanging d
74. error message list of the GX Simulator for A series CPU functions in Section 11 1 1 5 GX Simulator for Q series CPU Q Mode Functions Refer to the QnA for the error message list Note that the following error message is specific to the Q mode 1 Check and correct the intelligent function unit There is an error in the intelligent function settings SP PARA ERROR utility settings 2 Check and correct the parameter settings I O allocation Device settings 11 7 11 7 11 TROUBLESHOOTING MELSOFT MEMO App APPENDICES APPENDIC MELSOFT ES Appendix 1 List of Supported Devices The GX Simulator supports the devices for an A series CPU QnA series CPU Q series CPU and FX series CPU For the motion controller refer to the compatible devices of the A series CPU For the compatible CPU refer to Section 3 3 The devices supported by the GX Simulator are listed in Appendix Table 1 1 to Appendix Table 1 15 Appendix 1 1 The A series CPU function GX Simulator 1 Device list Appendix Table 1 1 List of Devices Supported by the GX Simulator Device range Number of points Device 1 2 Timer T Bit device M B F Counter C Data register D Special register D A Link register W 2 3 File register R E Extension file register 9 Buffer register Um Gn 10 Index register Z V A V Nesting N Pointer P Decimal consta
75. in Other station device setting 3 Device Specify the device whose change pattern will be set Enter the device set in the other station device setting 4 Data type Specify the data type of the device whose change pattern will be set Make selection from among Bit 16 bit int and 32 bit int 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER MELSOFT FUNCTION 5 Change Specify the change pattern of the value of the specified device Make selection from among Sine wave Cosine wave Trapezoidal wave Constant Copy ON OFF ON and OFF Refer to 17 for details of each change pattern 6 Units of time Specify the unit of the cycle OFF time rising time ON time or falling time Make selection from between sec and min 7 Min Specify the minimum value of the change pattern of the specified device Set the minimum value to satisfy the following condition minimum value lt maximum value 8 Max Specify the maximum value of the change pattern of the specified device Set the maximum value to satisfy the following condition minimum value lt maximum value 9 OFF time Specify the time when the minimum value continues 10 Rising time Specify the time when the device value changes from the minimum value to the maximum value 11 ON time Specify the time when the maximum value continues 12 Falling time Specify the time when the device value changes from the maxmum value to the minimum value 13 Constant
76. indicates an ON status and 0 an OFF status Double clicking the Buffer memory display field during monitor displays the Device write dialog box Refer to Section 7 1 7 for the Device write dialog box 4 Start monitor button Starts monitor 5 Stop monitor button Stops monitor being executed 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 6 Monitor format Set the monitor format Bit amp Word Devices are monitored in both bit and word formats Bit Devices are monitored in bit format Devices are monitored in word format Bit amp Word format Bit format et Device Memory Monitor 5 xi ea Device Memory Monitor joj xj Menu Onine Menu Onine Device Batch Butter Memory Entry Device Device Batch Buffer Memory Entry Device 5 Module YO _ zu Module YO 0002 0000 0000 0000 0001 A 0 HEX 0000 9000 0000 0000 0000 0000 0000 0000 ya o HEX 0002 0000 0000 0000 0000 0 0003 0000 0000 0000 0000 0000 0000 0000 1200 S ER Memory address A Memory address 0003 0000 0000 0000 0000 o inde ee Joos 0000 0000 0000 0000 0000 0000 0000 0000 ji lec 0003 0000 0000 0000 1100 En o Hex y 600 0000 0000 0001 0000 000 0000 0000 0000 o Hex y 0005 0000 0000 0000 0000 o 00a 0000 0000 0000 0000 0000 0000 0000 0000 0008 0000 0000 0000 0000 o ooe 0000 0000 0000 0000 0000 0000 0000 0000 0007 0000 0000 0000 0000 o ooog 0000 0000 0000 0000 0000 9000 0000 00
77. is executed without NEXT instruction Or the number of NEXT instructions is lower than the number of FOR instruction Check the error step and correct the program A NEXT instruction is executed without a FOR 4201 instruction Or the number of NEXT instructions is greater than the number of FOR instructions 4202 The nesting exceeds 16 loops Reduce nesting count to 16 or less loops 4203 A BRENS neue toni executed when Miele Check the error step and correct the program no FOR instruction 4210 A CALL instruction is executed without a destination pointer 4211 The executed subroutine progra contains ne Check the error step and correct the program RET instruction 4212 A RET instruction is existing before the FEND instruction 4213 The nesting exceeds 16 loops Reduce nesting count to 16 or less loops 11 4 Check the error step and correct the program 11 TROUBLESHOOTING MELSOFT Error Message Table cont Error Code SD0 1 Error Description and Cause Remedy Error Message INST FORMAT Mismatch in the number of IX and IXEND heck the error step and correct the program An instruction in a program of initial execution Read the error step and confirm there is no type is infinitely executed in a single scan occurrence of an infinite loop WDT ERROR en eee 5001 An instruction in the program is infinitely Read the error step and confirm there is no executed in a single scan occurrence of an infinite loop
78. its 10 ms units N N N N N N N N Special relays registers that have contents different from those of Q4ACPU will operate by the contents of special relays registers of Q4ACPU App 10 App 10 APPENDICES MELSOFT Appendix 1 3 FX series CPU function GX Simulator 1 Device list Appendix Table 1 7 List of Devices Supported by the GX Simulator CPU type FX0 FX0s Compatibility with functions Device range Number of points Monitor 1 0 system function 2 settings Input X X000 to X017 16 points O O Output Y Y000 to Y015 14 points O O Device 8 3 General MO to M495 496 points fa Auxiliary relay M Latched 1 M496 to M511 16 points Special M8000 to M8255 57 points Initial SO to S9 10 points State S Timer T 100ms 10ms T32 to T55 24 points 16 bit up CO to C13 14 points Counter C 16 bit up 1 C14 to C15 2 points 16 bit general DO to D29 30 points Data register D 16 bit latched 1 D30 to D31 2 points 32 bits when used in pairs 16 bit special D8000 to D8255 27 points 16 bit index V Z 2 points Nesting N For master control NO to N7 8 points Pointer P For CJ CALL branch PO to P63 64 points 16 bit 32768 to 32767 Decimal constant K 32 bit 2147483648 to 2147483647 16 bit HO to HFFFF Hexadecimal constant H 32 bit HO to HFFFFFFFF x x OJO JO O OJOJOJOJOJO O OJO x x OJO JO O
79. lo lg lg 2 mio Q 5 lt lt 02 lt 09 wo o 10 lt mn lt 09 lt mn lt mn a fa joa O O IN gt wo A mn lt 02 lt mn O lt mn A o lt mn TOW N DIS WAP NIO Ol Y gt Cc 5 0 gt gt IH 10 OJS w lt e a S A aja GO N gt lt 02 A A Data processing 2 lt mn YES 149 SORT2 YES lt mn E XN dd lt 02 App 51 App 51 APPENDICES MELSOFT Appendix Table 2 3 List of Supported Instructions FX series CPU functions cont FNC Instruction 32 bit Pulses Applicable PLCs Compatibility Execution FXo FX2 FXan FX N FXau with No symbol Instruction FXon FX1 Instruction FXos FXinc FX2nc FXsuc GX Simulator aso esse E E A pe II kanea FE Rca seso ll leales le te ate MEME APPO EA EEE SEA msp as ves _ 1 bd o ofototol_ 156 157 D pm 2 YN fe A 156 YES avr rel sn E asa ora ves J olfol Jo jol x is DRYAS ves ll a lala leia ro lis alo e mol towe ves t o o ofolot_e Clock operations Extension function External devices ro 2 Ka 8 Fes ono ves 189 Hcmov ves App 52 App 52 MELSOFT APPENDICES Appendix
80. min 0 to 60 1 to 60 Setting range according to data type awe Ooo Min mx Constant 16 bit int 32768 to 32767 32 bit int 2147483648 to 2147483647 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT Operation procedure Choose the lt lt Device control setting gt gt Tab on the Device Manager screen Setting screen Pele Eile Edit Operation Log display Other station device setting Device control setting PDevice value check setting Station Nw St No PLC series Device Data type Change 1 1 Q Q mode 16bitint_ Sine wave 1 2 Q Q mode Bi ON OFF Host Station Q Q mode Bi ON 1 2 3 4 5 6 to 17 pes E Min Max ae wee Rising Ea ON time aes time Constant aay Sout Source device Cycle Preview Ca PRISA ESTU ERES VEREIS VPO i tof 6 7 8 9 10 11 12 13 14 15 16 17 Explanation 1 Station Nw St No Specify the station of the device whose change pattern will be set To set the other station set the information on the other station in the Other station device setting of Device Manager in advance Refer to Section 8 3 1 for the other station device setting 2 PLC series Displays the PLC series of the PLC CPU on the specified station When the host station is selected Series of the station set on GX Developer When the other station is selected Series of the station set
81. o o o o o o o pao o o o o o o o o pas o o o o o o o o pss o o o o o o o o sa o o o o o o o o p22 o o o o o o o o nso o o 0 o o o o o Pon pas o o o o o o o ol D95 o o o o o o o 2 Monitor format ENE Monitor format Word M D104 o o 0 o o o o o SA Pa o o o o o o o On Display 16bitinteger m E pazo o o o o o o o ol Data format DEC y Bit order Fo y foo6H GX Simulator Host station EA 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 6 Display When the monitor format is Bit amp Word or Word set the word device buffer memory display format Make selection from among 16 bit integer 32 bit integer Real number and ASCII character 7 Data format When the display format is 16 bit integer or 32 bit integer set the value display format Make selection from between DEC and HEX 8 Bit order Set the order of the bit devices being monitored F 0 The bit devices are arranged in order of F E to 1 0 from left to right 0 F The bit devices are arranged in order of 0 1 to E F from left to right 9 button Ends Device Memory Monitor 10 Monitor execution status While monitor is being executed flickers under the scroll button 11 Connection target display field Displays the CPU name and station number of the station currently connected When specifying the timer T counter C or retentive timer ST enter T C ST 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTIO
82. o oJoJ o oJoJoOJo oJoJoJoJoJoloJo O x App 27 App 27 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions so is Remarks Serial communication function Device backup Device Manager x Up to 16 characters per instruction Area not backed up for interruption However this area can be changed to area backed up for interruption by using parameter settings Area backed up for interruption This area can be changed to area not backed up for interruption by using parameter settings Area fixed to back up for interruption This area cannot be changed How to enter buffer register data VON O A P lt Buffer register gt UNG For starting I O No 4 and address K30 t address enter U4 G30 x5 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart x N KO App 28 App 28 APPENDICES MELSOFT 2 Special Relay List Appendix Table 1 16 lists the special relays supported by the GX Simulator for the FX series CPU functions See the FX series actual PLC Programming Manual for details about the special relays Appendix Table 1 16 List of Special Relays Supported by the GX Simulator ee FXo FX2 FXan FXan FX3u pedos FXos RUN monitor OFF STOP M8000 N O contact ON RUN O RUN monitor OFF RUN M8001 N C contact ON STOP
83. of corresponding device gt specified starting device number specified number of points The command size is illegal The device name is NULL e The number of device points exceeded the maximum e The bit device is not headed by a multiple of 16 in the word unit random read command or multiple block batch read command Buffer memory read write was executed with a non existing module number specified without I O assignment Request data error e The device that could not be specified was Device name error ea 7 specified in the corresponding command e Restart communication after checking and correcting the message sent by the other end device Make I O assignment and access the existing module number e Restart communication after checking and correcting the message sent by the other end device F A monitor request was made before monitor Make a monitor request after registering the 7144H Monitor registration error f i i registration device to be monitored H The number of points for monitor registration exceeded the range Monitor registration point count excess error A non existing command or sub command was specified F8 QnA compatible 4C frame was specified as the frame identification number of the QnA compatible 3C frame or F9 QnA compatible 3C frame was specified as the frame identification number of the QnA compatible 4C frame Device error A non existing
84. procedure Operation in the field 1 Read device memory from PLC CPU in GX Developer 2 Save project data Operation in a design room 3 Open the project data saved in the field 4 Start GX Simulator 5 Change GX Simulator status to STOP using Remote operation in PLC write dialog box Write sequence program parameter and device memory from GX Developer to GX Simulator Monitor ladder and device in GX Developer o wm wa Rue 1 OUTLINE OF GX Simulator MELSOFT 1 2 Differences To Debugging with an Actual PLC Connected The specifications for debugging using the GX Simulator differ from those for debugging with an actual PLC connected The main differences between debugging using the GX Simulator and debugging with an actual PLC connected are shown below Refer to Section 3 4 for details D i ith an A Item Name o with an Actual Debugging with GX Simulator Applicable CPU PLC Connected Step execution skip execution Debuaci i i d e FX series CPU partial ebugging using step execution skip execution an Q series CPU Q mode execution efficient Step execution A series CPU p e Q series CPU A mode A series CPU QnA series CPU OPERATION ERROR occurs when the device range e FX series CPU determined by CPU type or parameters is exceeded 1 e Motion controller Q series CPU Q mode e Q series CPU A mode Not supported partial execution makes debugging operation more Th
85. saved file Purpose To open an I O system setting file IOS which has been saved Operation procedure Select File Open Also 2 can be clicked instead of above ta 170 SYSTEM SETTINGS EAS Edit Online View Window T New Ctri N Save Ctrl S E Save As Setting screen Open BEI Look in E Common F E E E File name manual 1OS Files of type 1 0 System setting file 105 hd Cancel Designate optional holder with Look in click the file to be opened then click button 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 3 Saving the file Purpose To over write and save the I O system setting file IOS being opened Operation procedure Select File Save can also be clicked instead of above ta 170 SYSTEM SETTINGS eri Edit Online View Window C New Ctri N p Open Ctri 0 F Ts If file being opened has not been saved Save As dialog will be displayed Save with optional name entered Refer to 4 for details Saving with new name Purpose To save I O system setting file IOS that is being opened with new name entered Operation procedure Select File Save As ta 1 0 SYSTEM SETTINGS PAS Edit Online View Window C New Ctrl N Open Ctri 0 Save Ctrl S Setting screen Save in C Common X El 7 ss manual ios File name sample Ea Save as type 1 0 System setting fil
86. series A mode is selected the A series CPU functions operate as equivalent to those of the A4UCPU The functions supported by the GX Simulator are as indicated in Table 3 1 Table 3 1 Functions Supported by GX Simulator Ladder monitor a Monitors the processing status of the GX Simulator Device monitor i Forcibly write device values to the GX Simulator during Device test Ba monitoring Write to PLC Writes parameter file and program file to GX Simulator PLC diagnostics Checks the GX Simulator status and errors Functions i Skips program execution in the range between two Skip execution y executed from designated steps GX Developer the GX r Executes the part of the program in a designated step f Partial execution Operating Manual Developer or pointer range menu Step execution Executes the sequence program one step at a time Remote operation Operates the GX Simulator execution status Monitors the program execution status and number of Program monitor list executions as a table starts and stops the program execution in the table A e Writes a program while a simulating CPU is in RUN Online change j status Writes at ladder or ST conversion 3 SPECIFICATIONS MELSOFT Simulates the operation of external devices by simple 1 0 system settings ti Chapter 5 settings Es Checks the operation of the frame that is sent from the Serial communication j as ne external device t
87. series CPU A mode is selected e Operates as Q4ACPU when QnA series CPU is selected e Operates as FX series CPU when FX series CPU is selected e Operates as Q25HCPU when Q series CPU Q mode is selected A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode Special function module special function block Supported Not supported Only the buffer memory area of a special function module special function block is supported A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode 1 OUTLINE OF GX Simulator Item Name 1 0 module Debugging with an Actual PLC Connected Supported Debugging with GX Simulator Not supported MELSOFT Applicable CPU A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode Network Supported Not supported A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode Memory cassette capacity An error occurs in GX Developer if data exceeding the memory cassette capacity is written to the PLC No error occurs and normal operation continues if data exceeding the memory cassette capacity is written to the PLC A series CPU QnA series CPU e Motion controller Q s
88. set N scans are required to execute them all 1 scans 2 scans 3 scans 4 scans 9 a a A oo tp _ _ _ t Scan execution type aan A A HA Low speed execution type program A HH Low speed execution type program B Since a low speed execution type program is always completed within one scan the monitor value of SM510 is always OFF 6 Device Memory Monitor Device Range Check 131744 to T32767 SB800 to SB7FFF and SW800 to SW7FFF are used by the system and are unavailable for monitoring or testing 7 Function register FD monitor Monitor of function register FD cannot be executed from menu of GX Simulator Execute only from menu of GX Developer 8 TTMR Instruction Restrictions A present value cannot be changed during TTMR instruction execution 3 SPECIFICATIONS MELSOFT 9 1 0 System Setting Device Range Check SB800 to SB7FFF and SW800 to SW7FFFare used by the system and cannot be assigned 10 SFC Programs Not supported by the GX Simulator 11 PLC Memory Format Execute to clear all user data written to the GX Simulator and initialize Also execute this function when unstable GX Simulator operation occurs 12 About special function module special function block The GX Simulator supports only the buffer memory area of a special function module special function block 13 About built in RAM memory cassette capacity The GX Simulator has no built in RAM memory cassette capacity A lo
89. the log information Operation procedure Choose Operation Clear Log on the Device Manager screen la Device manager File Edit Operation Start Ne Export Log Immediately before clearing the following message appears The log information is cleared after the log is exported The log information is cleared without the log being exported 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS The following three functions are available as the tool functions e Function to save device memory buffer memory data Function that saves the contents of the device memory or special function module buffer memory temporarily at any timing e Function to read the saved device memory buffer memory data Function that reads the saved data onto GX Simulator With these functions the contents of the GX Simulator device memory or special function module buffer memory can be saved midway through debugging and the saved data can be read onto GX Simulator when debugging is restarted allowing debugging to be continued from the status when the data was saved e Option setting function Function to select how to display the initial window at the start of GX Simulator With this function whether the initial window displayed at the start of GX Simulator is minimized or not can be selected 9 1 Sa
90. those of the external device side COM Port Choose the COM port to be used Transfer Speed Choose the transfer speed Data Length Choose the data length Choose the parity Stop Bit Choose the stop bit Format Selection Choose the frame format GX Simulator supports only the following formats e A compatible 1C frame format 3 format 4 e QnA compatible 3C frame format 3 format 4 QnA compatible 4C frame format 3 format 4 Sum Check Choose whether to make sum check or not Flow Control Choose whether to exercise flow control or not The flow control exercised is RS CS control 2 Open button Used to open the COM port as set in the communication settings Open the COM port first before starting communication with the external device 3 Close button Used to close the opened COM port 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 4 Communication Status Displays the communication result Refer to Section 6 7 for details 5 Status Clear button Used to clear the communication status 6 End button Used to clear the communication status 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 4 Transmission Specifications The following are the transmission specifications of the serial communication function 1 Transmission specifications Specifications PLC Series A series CPU
91. timer setting 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 2 Conditions for simulation With I O system setting optional operation will be performed after the condition is fulfilled By combining conditions conditions equivalent to the following circuits can be set Hee X0 X1 x0 0N Hx 0N x2 0N ps 0N x0 0N ng 0N x0 0N Hx 0N x0 0N 1 H 0 XO X1 x0 0N 11 0N H Ep da x2 0N l Hxs on 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 3 Timing chart input and device value input With I O system setting there are two inputs one is timing chart input to execute timing chart prepared by user after condition is fulfilled the other is device value input to set optional device value after specified time has elapsed Differences between the above two inputs are described below a Timing chart input When condition set by user has been fulfilled timing chart set by the user can be operated With this input complicated operations such as When YO is turned ON DO is counted up YO is turned OFF when XO is turned ON can be set However the timer cannot be set If timer is to be used select device value input lY4 0N A H T Keep lt Timing chart format input screen gt sa Timing Chart Format Input Jol x File Device Edit Scan b Device valu
92. units It is possible to save to and read from this area but any other access results in an error 2 Saving To and Reading From Buffer Memory Make I O assignments with GX Developer before saving or reading the special function module buffer memory Refer to the GX Developer Operating Manual It is not possible to save to and read from the buffer area unless I O assignments are made 3 Enabling and Disabling the Parameter Setting Items Some GX Developer parameter settings are disabled by the GX Simulator even if data is set for them The settings disabled by the GX Simulator are shown below Parameter Setting Memory capacity Disabled other than Sequence and File register of program capacity PLC system Output modes except for STOP RUN are disabled e Annunciator display mode is disabled PLC parameter PLC RAS e Only Operation error and Special function module access error in the operating mode when there is an error are enabled VO assignment All valid Device Latch Start is disabled Network Parameter All disabled 4 Microcomputer Programs Not supported by the GX Simulator 5 PLC Memory Clear Execute to clear all user data written to the GX Simulator and initialize Also execute this function when unstable GX Simulator operation occurs 6 A1FXCPU Built in Functions If the A1FXCP U type CPU is selected the A1FXCPU I O signals become general I O signals during debugging with t
93. until they are deleted or the GX Simulator is quit To use the same I O system settings when the GX Simulator is restarted read the I O system setting data from the saved file and then execute the I O system setting again For FX series CPU If settings are made in RUN status the status must be switched to STOP once before returning to RUN to enable the new settings 2 Stopping the simulation Purpose To stop the I O system setting operation currently being executed Operation procedure a Select File Cancel I O System Settings Also White can be clicked instead of above ta 170 SYSTEM SETTINGS rra Edit Online View Window 1 New Ctrl N 1 Open Ctrl D m Save Ctrl S F Save As 1 aal0S E Execute 1 0 System Settings Cancel 140 System Settings Import Earlier Version of 1 0 System File Exit 140 System Settings When I O System Settings are not being executed the I O system setting LED on the initial screen will turn off 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 8 Other Operations 5 8 1 Operating the file 1 Creating a new file Purpose To create a new file IOS to be used for I O system settings Operation procedure Select File New Also can be clicked instead of above ta 170 SYSTEM SETTINGS Pr Edit Online View Window New Ctrl N L Open Ctrl O m Save Ctrl S E Save As 2 Opening
94. valid range handled by the specified device 7 Max Specify the maximum value of the valid range handled by the specified device 8 Pattern Specify as 0 the bit position that must not be turned ON when a value is stored and as 1 the bit position that may be turned ON OFF Example 16 bit integer To cause an error when a negative value is stored specify 7FFFH in Pattern Value set to Pattern Bit position 15 14 to 1 0 Device status 7 F F F Y 5 N Error occurs when 1 is stored Error does not occur if 0 or 1 is stored E stored value when error occurs Bit position 15 Device status Pre Pee eee pad stored value when error does not occur Bit position Device status eT Ter Tere Pert EAA Any cell that has wrong input data is displayed red 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 5 Starting Stopping Simulation 1 Starting simulation Purpose Start simulation using the Device Manager function Operation procedure When a log result is being displayed on the log display screen save the log result before starting simulation The log result is deleted when simulation starts After setting the setting information of each function choose Operation Start on the Device Manager screen After selection start the user application File Edit Operation Log di Stop No Export Log Clear Log When simulation starts the operating status of th
95. word device buffer memory display format Make selection from among 16 bit integer 32 bit integer Real number and ASCII character 8 Data format When the display format is 16 bit integer or 32 bit integer set the value display format Make selection from between DEC and HEX 9 Bit order Set the order of the bit devices being monitored F 0 The bit devices are arranged in order of F E to 1 O from left to right 0 F The bit devices are arranged in order of 0 1 to E F from left to right 10 button Ends Device Memory Monitor 11 Monitor execution status While monitor is being executed flickers under the scroll button 12 Connection target display field Displays the CPU name and station number of the station currently connected 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 1 When monitoring the buffer memory make the following setting in advance When monitoring the host station Set the I O assignment on the PLC Parameters lt lt I O assignment gt gt Tab screen of GX Developer When monitoring the other station Set the buffer memory to be monitored in the other station device setting of GX Simulator Refer to Section 8 3 1 for the other station device setting 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 6 Monitoring the registered devices Purpose Monitor multiple devices simultaneously Operation procedure Choose Menu
96. 0 0 Displays the device change status Section 7 2 1 0 System SettidgS ooccociinicnoconinncinninnonnonnnooss Simulates the external device operation Chapter 5 L Serial Communication Function Simulates communication with the Chapter 6 external device Device Manager ssi Sets the devices for simulation Chapter 8 1 Unavailable when the PLC series is the FX series CPU Backup Device Memory Writes device memory data to a file Section 9 1 Backup Buffer Memory Writes buffer memory data to a file Section 9 1 t Restore Device Memory Reads the saved device memory data Section 9 2 t Restore Buffer Memory Reads the saved buffer memory data Section 9 2 Option Display as minimized next time Selects how to display the initial screen Section 9 3 at the start of GX Simulator Product information Shows the product information 2 Device Memory Monitor screen function list Menu Device Batch Monitor ceceeeeeeesee Batch monitors the devices Section 7 1 4 Buffer memory MONON ccceccceececeeeeeeeeee Monitors the buffer memory Section 7 1 5 t Entry device MOnitOr ccc eeceeeessteeeeeeee Registers and monitors the devices Section 7 1 6 EX ait San co ee ee caer ee dene hee are Exits from Device Memory Monitor Section 7 1 2 Hranster Setup nata ini ads Specifies the station to be monitored Section 7 1 3 Device WIIG cricorccnoconn
97. 00 0008 0000 0000 0000 0000 o jaoao 0000 0000 0000 0000 900 0000 0000 0000 0009 0000 0000 0001 0000 1 0o32 0000 0000 0000 0000 0000 0000 0000 0000 0008 0000 0000 0000 0000 o oora 0000 0000 0000 0000 0000 0000 0000 0000 ooo 0000 0000 0000 0000 oo 6000 0000 0000 0000 0000 0000 0000 0000 lt oc 0000 0000 0000 0000 o jaoas 0000 0000 0000 0000 1900 0000 0000 0000 Monitor format Brevvora gt Monitor format Bt y En OOO UU DOOR AGS Y oa 0486066 2008 4000 sono ooo soso suso AA El poor 0000 0000 0000 0000 o Display ieot rieger E jooac 1900 0000 0000 0000 0000 0000 0000 0000 Display sot rteser E oor vooo 0000 0000 0000 o oar 6000 0000 0000 0000 0906 0000 0000 0000 Data format bec Y Data format DEC y Border F0 gt Border Fo y foosH EX Simulator Host station fosH GX Simulator Host station Word format cla Menu Onine Device Batch Buffer Memory entry Device Module YO 0008 f as o o ol el of oji 0 HEX ooa0 of of of 0 of o of Memory address 018 oo o o o o o A jet ct pozo S oA of SSS o ooze S oo oo o o o o l 0020 f oA of oA o of IA 0028 A o o o o o o ol 0030 CINC O O O O ooas S op o o o o o o poso fS A f o o o o l ose oo S 0050 S A f oA o o IO format vvora y 0070 o o o o of o o Display fbi integer Y 0075 oof ot So St ol Data format bec E Border Eo y foosH EX Simulator Host station ery 7 Display When the monitor format is Bit amp Word or Word set the
98. 048 points SMO to SM2047 2048 points Function input When program is used FX0 to FX4 5 points Fixed When program is used FX0 to FX4 5 points FX 9 ther than above to points ther than above to points FX Other th bove FX0 to FXF 16 Other th bove FX0 to FXF 16 poi Q 2 gt ke a Function output When program is used FYO to FY4 5 points Fixed When program is used FYO to FY4 5 points FY 9 Other than above FYO to FYF 16 points Other than above FYO to FYF 16 points Data register D 4 DO to D12287 12288 points Changeable DO to D32767 32768 points Special register SD SDO to SD2047 2048 points SDO to SD2047 2048 points 8 Link register W WO to W1FFF 8192 points Changeable WO to W7FFF 8192 points o ar r A E a ada register SWO to SW7FF 2048 points SWO to SW7FFF 2048 points S Timer T 4 TO to T2047 2048 points Changeable TO to T32767 32768 points App 35 App 35 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Monitor I O system Serial communication i Device Remarks function 7 settings function Manager Actual output is invalid Refer to b Special relay list for the supported special relays Refer to c Special register list for the supported special registers No operation is performed in real time High speed timer can be set in 0 1ms units by parameter 1ms units for conventio
99. 0ms To change the time you can use D9020 for the A series CPU Q series CPU A mode motion controller functions parameter setting for the QnA series CPU Q series CPU Q mode functions or D8039 for the FX series CPU functions In the GX Simulator the count made by the timer instruction during one scan changes with the constant scan setting At the constant scan setting of 100ms the 100ms timer counts 1 during one scan At the constant scan setting of 300ms the 100ms timer counts 3 during one scan 2 Restarting the GX Simulator When restarting the GX Simulator immediately after ending it it may take longer than the usual restarting time 3 Device Range Checks using I O System Settings Appendix 3 shows a table of devices supported by I O system settings The usable device ranges depend on the selected CPU model and parameter setting range For details refer to Appendix 1 4 Interrupt Programs Interrupt programs are not supported Any sequence program created is not executed 5 Floating Decimal Point Rounding errors can occur in the results of instructions using the floating decimal point Therefore the results may differ from calculations when a CPU is connected 6 Read from PLC Compare with PLC Not supported by the GX Simulator 3 SPECIFICATIONS MELSOFT 7 Comments Not supported by the GX Simulator 8 LED Reset Button The LED display is cleared when the LED reset button on the initial screen
100. 1 100 points starting from DO DO to D99 No 2 100 points starting from D200 D200 to D299 3 Any cell that has wrong input data is displayed red 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 4 Setting the Device Values for Simulation Set the change pattern or device value range to the specified device A change pattern is to set the change of a word device value while a bit device is ON OFF within any predetermined time 8 4 1 Device control setting Purpose The operation of the user application using the change pattern set device can be checked The following tables indicate whether setting can be input to each setting field or not according to the change pattern and the range where setting can be input to each setting field in the device control setting List of whether setting can be input to each setting field or not according to the change pattern Datatype type Change Datatype Units of OFF Rising ON Falling Source Source 32 bit 16 bit Max Constant Cycle Preview pattern int int Bit time time time time time station device i i EOI EERE o o o ol Cosine wave O O Trapezoidal wave CI z Cr x all x Copy x x x x O O E E A E x x x x or o o o aaa aa O Can be input X Cannot be input Setting range according to units of time Units of time OFF time Falling time Seconds sec 0 to 3600 1 to 3600 Minutes
101. 10 Q mode x10 3 QnA T1 2 0 Q mode DO 1 QnA M1 JA D10 on w o a E PLC series Device A D10 AnA M1 Q Q mode DO AnA T1 Q Q mode X10 do gt Undoing the last operation Purpose Undo the last operation Undo is valid for only the last operation Operation procedure Choose Edit Undo Redoing the undone operation Purpose Redo the undone operation Redo is valid for the last undone operation Operation procedure Choose Edit Redo 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 7 3 Printing the log information and setting information Purpose Print the log information generated by each function and or the setting information set for each function A print image can be checked on the print preview Operation procedure Choose Edit Print on the Device Manager screen File Edit Operation New Ctrl N Open Ctro Save Ctrl S Save As Print Ctrl P Exit Setting screen SS x m Print item 1 EE 2 gt Item selection 3 tem specification M Log info F Other station device setting F Device control setting IF Device value check setting 5 6 4 gt Printer setting Print Print preview Explanation 1 All items Log information and or setting information other station device setting device control s
102. 10 2 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT Devices used AA A __conters__ Unit ready Turns ON when high speed counter unit is ready for start Turns ON when present value matches the preset value of matching output point Turns ON when value reaches 1000 in this example Counter value matching point No 1 Matching signal No 1 High speed reset command counter unit Turns ON when executing preset functions signals Preset command In this example present value is set to 0 when preset is executed Yo Matching signal enable Turns ON when matching signal is output to external terminal command In this example it can be ignored Starts high speed counter unit Count enable command Count can be executed only when this signal is turned ON c a Turns ON when cutting of sheet is completed utter eras Hr 3 P Turns OFF when Y20 is turned OFF control signals Y20 Cut request Turns ON when sheet cutting is to be executed x5 Count operation start Turns ON when executing count with high speed counter unit Turns ON when reading present value of high speed counter Signals for Es Present value reading eit gp ee Turns ON to turn X2 OFF ON OFF by user Matching output data Turns ON when matching signal is externally output ma Normally turns ON when matching signal is used f M1 mo Initial setting complete Signal to inhibit initial setting at scan 2 or after Other devices
103. 13 A 5 A 5 2 Using Timing Ghat ai a cam eh bach A eee ete ees 7 15 7 2 1 Operation procedure of timing Chart ccccccccesccceeeeeeeeeeseseeeeeeeceeneeseneeeeaeeeeaeeceneeeeneeeeaeeeeeeeseeees 7 15 7 2 2 Starting Exiting timing Chart eene a n a AE AK E E TE 7 16 7 2 3 Using timing Cain added bat 7 17 7 2 4 Entering Deleting device to be monitored 000 ec eeceeeeeeeeteeeteeeeeeeeeneeeeseeeseeeseeeseaeeeeeseaeseaeseneeeeteaes 7 20 7 2 5 Starting StOpping MONIOLING eee eee eee cee eeeeeeeeeeeeeeeeeeeseeeseeeseeeseeeseaeseeeseeeseeeseeeseeeseeeseeesenseaeeeneeaes 7 23 2 6 Operaling files Cota cal eaten at wade ative sieht weet eto aie sede 7 24 7 2 7 Setting sampling period eee eeceeceeeeeeeeeeeeeeeeeeeeeeeeseeeseeeceeeseeeseeesaeseeeseeeseeeseeeseeeseeeseeeseateaeseneteneeeaes 7 26 1 2 8 Other operations tica dais 7 27 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION 8 1 to 8 26 8 1 Device Manager Operation ProCeCure eececceeseeceeneeeeeeeneeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeecaeeeaeeeteaeeeaeesas 8 3 8 2 Starting Exiting Device Manager ecceceeceeeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeaeeeaeeeatenas 8 4 8 3 Setting the Other Station Devices oooonnioniinnicnnnnnnnconcoccnncnnncnn cnn 8 5 8 3 1 Other station device Setting verir een eaaa Eaa RATAA R RANEE RER A PAATE REANA R RATES RERET RRES 8 5 8 4 Setting the Device Values for Simulation cece
104. 16 points Counter C 16 bit up 1 C32 to C199 168 points Word device C200 to C219 20 points C220 to C234 15 points DO to D127 128 points D128 to D255 128 points D256 to D7999 7744 points D8000 to D8255 256 points Data register D 32 bits when used in pairs O O O O O O O O O O O O O O O O l olojlo o lo l O OJOJOJO OloOlolojo o lo l O OJO O 16 bit index VO to V7 ZO to Z7 16 points x x Nesting N For master control NO to N7 8 points Pointer P For CJ CALL branch PO to P127 128 points 16 bit 32768 to 32767 Decimal constant K 32 bit 2147483648 to 2147483647 16 bit HO to HFFFF Hexadecimal constant H 32 bit HO to HFFFFFFFF App 21 x App 21 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid D1000 and later can be specified as file registers 1 1 Area fixed to back up for interruption This cannot be changed 2 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 22 App 22 APPENDICES Input X Device Device range Number of points Monitor Appendix Table 1 13 Li
105. 19 Maximum scan time Maximum scan time y Number of detected Number of detected x2 10ms units i i Ce annunciators annunciators D9020 Constant scan user settable in 10 ms units D9021 f Scan time Scan time 2 1 ms units x1 Value derived from the constant scan set value D9022 Number of counts in 2 Value equal to all constant scan set values Default 1 second counter 3 gt 1 second intervals value is 100 ms Clock dat 3 i i a D9025 Clock data ock data 3 The set constant time becomes the time for one scan year month wo App 4 App 4 APPENDICES MELSOFT Appendix 1 2 The QnA series CPU function GX Simulator 1 Device list Appendix Table 1 4 List of Devices Supported by the GX Simulator Host station device range x Device 1 Number of points Setting range Special relay SM SMO to SM2047 2048 points When program is used FXO to FX4 5 points Other than above FXO to FXF 16 points When program is used FYO to FY4 5 points Other than above FYO to FYF 16 points Data register D 4 DO to D12287 12288 points Special register SD SDO to SD2047 2048 points Q 2 gt ne a Function input FX 9 Function output FY 9 Link register W WO to W1FFF 8192 points Link special register SW SWO to SW7FF 2048 points Timer T 4 TO to T2047 2048 points o 2 gt 3 Retentive timer ST 4 From STO on none ne
106. 7 FX series CPU c cccccceeteeeeeeeeees App 11 Index 1 E Q ser s CPU cantada aca App 35 QnA series CPU ocociccccinoccconccconnnncnnnnnno App 5 Simulation device area oooocnninnnnn App 59 Usable with the I O system settings App 57 Device Manager ccoccccccccccccccnonccanncnnnonnncnnnannnons 8 1 E E EE T lic 8 26 Device control SettidQ ooooonninnnn 8 7 Device value check setting 8 12 Editing settings ooonnicnninnninnnnnnonnninnncnnns 8 19 EXPO ici ii 8 25 ot 8 24 ole OISP AY aessa 8 15 Other station device setting 8 5 Praia ciao ie 8 22 Setting data file operation 8 17 Simulation starting stopping 8 14 Device memory monitor Buffer memory Monitor c ooococccocninconacccnnon 7 8 Device batch monitor oooccccccnccinccccicancnns 7 5 Device Write ececceeeseceeeeteessneeteeteeeetieesee 7 13 Entry device Monitor eeeeeeeeeeeeeees 7 11 Operation procedure ccccceeeeeeeeees 7 2 OUUING E EE E EE E E E E 7 1 Starting ending eceeceeeeeeeeeeeeeeeeeeeeeees 7 3 Transfer Setup ccccceeeceeeteeeeteeeeseeeeees 7 4 Device memory buffer memory ROI iii ad 9 3 SAVING tad aca 9 1 Device SelectiON ooooocnccnncnnnnnnnncnnconcancanncnnnos 7 4 DeOviCO test rae tii 7 13 Device value check setting 8 12 Device value iNPUt ooocconnccinnnccin
107. 8 x ojsja 6 8 0 EE File under Editing File under Execution E Timing Ch 4 No 1 N No 11 No 21 No 31 E Device Val No 1 N No 26 No 51 No 76 No 101 No 12 No 151 Ready T Enabl T Enabl 7 Enabl Af OF l Ps ee A 2 Ending I O system setting Purpose To end I O system settings Operation procedure Select File Exit I O System Settings from I O system settings screen ta 170 SYSTEM SETTINGS FIA Edit Online View Window C New Ctrl N Open Ctrl O Save Ctrl S F Save As New HIE Execute 1 0 System Settings Cancel 10 System Settings Import Earlier Version of 1 0 System File Exit 1 0 System Settings 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 3 Configuration of I O System Settings Screen I O system settings screen is opened by clicking Start I O System Settings of initial screen Configuration of I O system settings screen is shown below lin 170 SYSTEM SETTINGS Pr File Edit Online View Window 1 gt 3 gt File under Editing File under Execution q E ON Wo I i Re f 1 S ue LE OFF ie E Timing Cha No 21 No 31 Device Val No 1 N No 26 No 51 No 76 No 101 No 12 No 151 No 17E 5 gt lt 1 Menu bar
108. AVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT Reading buffer memory lt A series CPU QnA series CPU Motion controller and Q serise CPU gt RESTORE BUFFER MEMORY Starting Address MANANNAN ae eae ae ETT Select All Cancel E lt FX series CPU gt RESTORE BUFFER MEMORY Module No gt Select All 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT Description 1 Read Device Check Boxes Click in the check boxes to select the devices read to GX Simulator Click on a check box again to cancel a selection All devices are selected by default Read Special Function Module Check Boxes For A series QnA series Q series CPU function or motion controller function the first I O number to the special function module is displayed on the screen The special function module block number or module block number is displayed at the top of the FX series window Click the check box to select the special function module to be read to the GX Simulator Click on a check box again to cancel a selection All special function modules are selected by default Only the special function module buffer memory can be read button Click to clear all device or special function module selections Select All button Click to select all devices or special function modules button Cli
109. BAND P ZONE P Data control instructions DZONE P Switching instructions RSET P QDRSET P DATERD P DATE P DATE P SECOND P DATERD P reads the Clock instructions HOUR P computer clock data Program control instructions PSTOP P POFF P PSCAN P PLOW P e l Display instructions LED LEDR Other instructions DUTY ZRRDB P ZRWRB P ADRSET P i vee Data processing instructions Character string processing instructions Special function instructions App 47 App 47 APPENDICES MELSOFT Appendix 2 3 FX series function GX Simulator Appendix Table 2 3 List of Supported Instructions FX series CPU functions 1 Sequence Instructions Instruction Symbol LD LDI LDP LDF AND ANI ANDP ANDF OR Contact instructions x1 ORI ORP ORF Output instructions OUT SET RST PLS PLE Master control instructions MC MCR Step ladder instructions STLRET Other instructions J EnD nop oo IO x1 The LDP LDF ANDP ANDF ORP ORF and INV instructions are only compatible with FX1s FXin FXinc FX2n FXanc FX3u and FX3uc PLC 2 Applied Instructions Pulses Applicable PLCs Compatibility Instruction 32 bit E i z ath GX Symbol Instruction Qn FX FXis N K Instruction FX2c FX nc Simulator Program flowchart OIOIOIOIOIOIOIoOIolIololo Jo OJOJOJOJOJOJOJO OOOO JO OJOJOJOJOJOJOJO OOOO JO OJOJOJOJOJOJOIJO JO JO OJOJOJOJOJOJOJO JOJO
110. Device Batch Butter Memory Entry Device MELSOFT Device batch display field The specified devices are displayed As the bit device status 1 indicates an ON status and O an OFF status The bit devices are displayed in units of 16 points e If the 16 points include the device not supported by the PLC CPU its value is displayed 0 For the C devices of the FX series CPU CO to C199 16 bits and C200 and later 32 bits are separately displayed Set the display format to the Monitor format Display and Data format items Double clicking the Device batch display field during monitor displays the Device write dialog box Refer to Section 7 1 7 for the Device write dialog box Start monitor button Starts monitor Stop monitor button Stops monitor being executed Monitor format Set the monitor format When the timer T counter C or retentive timer ST is specified the monitor format is automatically set to the Timer Counter format Bit amp Word Devices are monitored in both bit and word formats Bit Devices are monitored in bit format Devices are monitored in word format Bit format Menu Online AE Device Batch putter Memory Entry Device Device AED CAG StI 65 ato zio Devic Da oono 0000 0000 0000 Al DO 0000 0000 0000 0011 0000 0000 0000 0000 A Do pe 0000 0000 0000 0000 JS pa 9000 0000 0000 0000 0000 0000 0000 onoo
111. FT 5 Device name Device value Bit device When a device is in ON status the device name lights up Yellow Clicking on the device name will highlight either ON and OFF of the device Word device Displays the device value in an edit box at the right side of the device name Double clicking on the device value will edit the device value 1 The expressions in the timing chart are timer T counter C and retentive timer ST and each of them has three types contact coil and present value In the timing chart they are expressed as follows Expressions used in the timing chart Counter Retentive timer Contact CS STS SS Coil cc STC SC Present value CN STN SN 2 Buffer register and extension file register are displayed as follows lt Buffer register gt lt Extension file register gt The first I O number of a special function module Block No Address Address When the first I O number is 4 When the block No is 2 and the and the address is K30 they are address is K30 they are displayed displayed as U4 G30 as ER2 R30 3 When word device is designated as 32 bit integer D is added to the end of device name Example DO D W6 D 6 Reference line scale The scale displayed indicates the past scan count Clicking the scale moves the reference line vertical line and shows the device values at that scan in 5 7 Scroll bar Up to 1000 sampled
112. FX series CPU Ext fil ist gt high d F t in high spee Supported Not supported FX series rxsenes cru counter Input interrupt Counter interrupt Supported Not supported FX series CPU Timer interrupt 1 12 1 12 2 SYSTEM CONFIGURATION MELSOFT 2 SYSTEM CONFIGURATION 2 1 System Configuration The following shows the system configuration S Z GX Develop r GX Simulator GT Simulator This product O option Parsonal computer 2 2 Combination with MELSOFT Products The following describes combinations between GX Simulator Version 7 and MELSOFT product versions 1 GX Simulator Version 7 operates on any version of GX Developer 2 To use the function added to GX Simulator Version 7 Device Manager function Refer to Chapter 8 use the MELSOFT product compatible with GX Simulator Version 7 3 Online change function is usable with GX Developer Version 8 27D or later 2 SYSTEM CONFIGURATION MELSOFT 2 3 Operating Environment The operating environment of GX Simulator is indicated below ltem Description Installation Add in destination Added in to GX Developer SW2D5C GPPW E or later SW8D5C GPPW C Computer main unit Personal computer on which Windows operates CPU Refer to the following table Used operating system and performance required for Required memory personal computer Hard disk free space 70MB or more 1 Disk drive CD ROM disk d
113. GX Simulator Version 7 MITSUBISHI lm MELSOFT WwW Oe VEE once MELSOFT Integrated FA Software ul SW7D5C LLT E e SAFETY PRECAUTIONS e Always read these instructions before using this equipment Before using this product please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety to handle the product correctly The instructions given in this manual are concerned with this product For the safety instructions of the programmable controller system please read the CPU module User s Manual In this manual the safety instructions are ranked as DANGER and CAUTION N Indicates that incorrect handling may cause hazardous conditions D DANGER resulting in death or severe injury a CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Cautions Regarding Test Operation lt gt DANGER e GX Simulator simulates an actual PLC CPU to debug the created programs however it does not guarantee the operation of the debugged sequence program Be sure to connect the PC with PLC CPU to debug
114. LSOFT 3 Save Purpose Save the open setting data file Operation procedure Choose File Save on the Device Manager screen File Edit Operation New Ctrl Open Ctri O Save Ctrl 5 Save s Print Ctrl P Exit When the open file has not been saved the Save As dialog box appears Attach a name and save the file Refer to 4 for details 4 Save As Purpose Save the open setting data file with a new name Operation procedure Choose File Save As on the Device Manager screen File Edit Operation New Ctrl Open Ctri O Save Ctrl s Ctrl P Setting screen Save as 2x Save in 3 Data ts c EJ ajData1 DMS a Data2 DMS Filename Data3DMS O00 Save as type Device manager setting file DMS y Cancel YA Specify the save destination folder in Save in Enter the name of the file to be saved in File name When overwriting the existing file click the file to be saved to make selection After setting click the button For Files of type only Device manager setting file DMS is available 8 18 8 18 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION 8 7 2 Editing the settings MELSOFT Edit the settings in units of line or cell 1 Cutting or copying a line Purpose Cut or copy the line of the selected setting No and save it into the clipboard Operation procedure a b Click and select the line of the setting No to be cut or copied No Networ
115. MULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 4 Setting by Using Timing Chart This section describes how to perform I O system settings using timing chart Operation procedure 1 Select Start I O System Settings from initial screen 2 Double click column of number to set timing chart as shown below No 11 No 20 No 21 No 30 No 31 No 40 Device Value Inpt Setting screen Make the setting below in I O system setting dialog box 1 2 3 4 ae E Edit Timing Chart Format Enable T Keep Description of items 1 No The number of settings in the I O system setting dialog box Up to 40 settings can be chosen When clicked set No is made object of Cut Copy or Paste 2 Condition Designates the input condition from GX Simulator The input conditions can be designated as either a bit device or a word device For a bit device designation condition is ON OFF for a word device designation condition is a comparison lt gt lt gt lt gt with a constant or another word device In addition relational conditions can be set by specifying AND OR operation AND condition OR condition AND The condition will be fulfilled if both designated conditions on the left and right are achieved Otherwise the condition will not be fulfilled OR The condition will be fulfilled if either or both of designated conditions in upper and lower col
116. N MELSOFT 7 1 5 Monitoring the buffer memory Purpose Batch monitor the buffer memory Operation procedure Choose Menu Buffer memory monitor on the Device Memory Monitor screen Alternatively click the lt lt Buffer Memory gt gt Tab Setting screen sa Device Memory Monitor b 5 xi Menu Online Device Batch Buffer Memory Entry Device 0000 A Module I O lt q 1 0001 0000 0000 0000 0001 A fo HEX I ORO RENO Ja eee 2 0004 0000 0000 0000 1100 12 o HEX 0005 0000 0000 0000 0000 o 0008 0000 0000 0000 0000 o 0007 0000 0000 0000 0000 o 4 3 0008 0000 0000 0000 0000 o 0009 0000 0000 0001 0000 16 oo0a 0000 0000 0000 0000 o 5 0005 0000 0000 0000 0000 o oooc 0000 00900 0000 0000 o Monitor format Etaword E 6 000D 0000 0000 0000 0000 o 000E 0000 0000 0000 0000 o Display 16tit integer gt 7 oooF 0000 0000 0000 0000 o Data format DEC hed 8 Bit order F 0 ha 9 10 12 11 Explanation 1 Module I O Enter the starting I O number of the special function module to be monitored When making access to the FX series CPU enter the block No of the special expansion device into Module I O 2 Memory address Specify the buffer memory address Selection can be made between DEC and HEX 3 Buffer memory display field The specified devices are displayed according to the settings of the Monitor format Display and Data format As the bit device status 1
117. OZO GO in the ladder it is ignored and processed as UDIGO 4 Device applicable as local device 5 DX DY can be specified 6 Contact Coil Current Value can be set Representations are as follows Timer TS TC TN Retentive timer SS SC SN However STS STC STN can also be set Counter CS CC CN gt 7 On the Entry Device monitor tab and timing chart bit data digit specification word data bit specification and index qualification are available Indirect specification is unavailable 8 On the Other station device setting tab only T C can be represented In the device control setting or device value check setting only Contact Coil Current Value refer to 6 for representations can be represented gt 9 The function input FX function output FY and function register FD of only the host station are supported App 6 App 6 APPENDICES 2 Special Relay List MELSOFT Appendix Table 1 5 lists the special relays supported by the GX Simulator for the QnA series CPU functions See the QnA series actual PLC User s Manual for details about the special relays Appendix Table 1 5 List of Special Relays Supported by the GX Simulator ON one scan onl ON SM404 y ie 1 scan after RUN OFF No error SMO Di ti EN iagnostic error ON Error OFF No self diagno stic error Self diagnostic error Self diagnostic error ON No error common information Error common information Error common information No erro
118. P RUN program check only if MC MCR exists in the STL instruction or if no RET instruction is input fora STL instruction No other items are detected by the STOP RUN program check Therefore use the GX Developer program check functions in advance to check for these other errors Enabling and Disabling the Parameter Setting Items Some GX Developer parameter settings are disabled by the GX Simulator even if data is set for them Setting of special module 1 is invalid 1 Parameters for FX3GCPU FXsuCPU and FX3ucCPU Program Memory Capacity The maximum step capacity for each model is set Watchdog Timer The watchdog timer D8000 operates every 200 ms for all CPUs It can be rewritten but the written value has no effect on its operation 3 SPECIFICATIONS MELSOFT 6 Debugging The step execution skip execution and partial execution functions are only valid when using the GX Simulator They cannot be used when an actual PLC is connected 7 Buffer Memory Monitor The special extension device buffer memory in the GX Simulator operates as general registers which allow reading and writing using FROM TO instructions This memory does not posses any special functions from the special extension devices 8 Analog Volume The data registers D8013 D8030 and D8031 storing the analog volume values for the FXo FXos FXon FX1s and FXin PLCs operate as normal data registers Use the GX Developer device test functio
119. QO2CPU A QO2HCPU A and QO6HCPU A Generic term of the QOOJCPU QOOCPU Q01CPU QO2CPU QO2HCPU QO2PHCPU Q series CPU Q mode QO6HCPU QO6PHCPU Q12HCPU Q12PHCPU Q12PRHCPU Q25HCPU Q25PHCPU and Q25PRHCPU Motion controller Generic term of Microsoft Windows Vista Home Basic Operating System Microsoft Windows Vista Home Premium Operating System Windows Vista Microsoft Windows Vista Business Operating System Microsoft Windows Vista Ultimate Operating System and Microsoft Windows Vista Enterprise Operating System Generic term of Microsoft Windows XP Professional Operating System and o A SAR Microsoft Windows XP Home Edition Operating System Product Makeup GX Simulator are made up of the following products Type Product Name Quantity GX Simulator 1 license product CD ROM End user softwere license agreement Software registration Card ooa n SW7D5C LLT E V License agreement GX Simulator Multiple license product CD ROM SW7D5C LLT E V A End user zoer license agreement Software registration Card i ne O License agreement aa 1 The same number of software registration cards as that of licenses are packed with the product We don t guarantee the commercially available Microsoft Windows Operating System based software products that have been introduced in this manual We hold the copyrights of this software package No part of this manual ma
120. Real number and ASCII character The set display format is displayed in the Device registration display field as shown below 16 bit integer gt Device Example DO 32 bit integer gt Device D Example DO D Real number gt Device E Example DO E ASCII character gt Device S Example DO S d button Registers the set device Delete device button Deletes the selected device button Deletes all the registered devices Start monitor button Starts monitor Stop monitor button Stops monitor being executed Device registration display field The registered devices are displayed Up to 64 devices can be registered Click the scroll button to monitor the devices that are not displayed on the screen Double clicking the Device registration display field during monitor displays the Device write dialog box Refer to Section 7 1 7 for the Device write dialog box button Ends Device Memory Monitor Monitor execution status While monitor is being executed flickers under the scroll button Connection target display field Displays the CPU name and station number of the station currently connected When specifying the timer T counter C or retentive timer ST enter T C ST 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 7 Conducting a device test Device write Purpose Change the ON OFF status of a bit device or the current value of a word devi
121. Select device name also possible with word device Bit Device Setting Word Device Setting Enter No of last device which is to be turned ON OFF Entered device will be displayed ox cancel When bit device is selected When word device is selected Device is registered by clicking here Device Number To When specifying the range 5 Setting Designates whether each setting is to be enabled or disabled Apply check mark to check box for the setting to be enabled Set the device point that can be executed valid setting at a time to 25000 point or less for device value input on I O system setting diaaalog box The following error message displays if Execute I O System Settings is executed when the device point exceeds 25001 points MELSOFT Series GX Simulator x The number of enabled Input No devices exceed 25000 points Please set the enabled devices lower than 25000 points The cursor moves to 25001 point device setting area where Enable is set on Edit monitor screen 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 7 Starting Stopping the Simulation Refer to Section 10 3 Using I O System Settings for Debugging for example of simulation 1 Starting the simulation Purpose To start simulation with contents in I O system settings Operation procedure a Select File Open to open I O system setting fi
122. T 6 Support for offline debugging of user application Device Manager function The operation of the user application using the MELSOFT product e g MX Component can be checked easily without use of the actual PLC a Checking the read operation of the host station other station devices Without creation of a program that will change device values for debugging the operation of the user application can be checked on the basis of the device values that change with patterns Also read operation from the host station other station devices can be checked without changing the user application Device change pattern setting screen Other station 2 1 D1 change pattern Host station X10 change pattern DO change pattern b Checking the written device values Whether the values written from the user application to the host station other station devices are within the user assumed ranges or not can be checked This enables check for user application creation or setting mistakes ole MELSOFT product Network No C3 User application Station No Public Sub Command 1 Click End Sub Device read write GX Simulator Host station Other station Other station Other station 1 1 2 1 3 2 D x M XY D XY D
123. X Developer Delete the line containing the ZCHG3 instruction Checked at the There is no parameter settings for sub execution of the program 3 Can not execute the instruction ZCHG3 instruction WDT ERROR ee Read the error step and confirm Checked at the A program instruction is executed P xecution of the en So eiei 3 there is no occurrence of an eee infinitely in a single scan aoe sequence infinite loop program END NOT EXECUTE The entire program has been executed without executing the END instruction Checked at the 1 There is no END instruction execution of the 2 The END instruction is replaced instruction with some other instruction Please write the program to PLC again 11 2 11 2 11 TROUBLESHOOTING MELSOFT Error Message Table cont Error Code Details Error Code e E M Error Description and Cause Remed OnT ia a D9008 1 09091 x1 P y SP UNIT ERROR 1 Read the error step using GX Developer Check and Checked at the modify the FROM TO execution of the There is no special function module in instruction in the program PROMO the area specified by the FROM TO prog instruction or i step instruction special function Correct the I O unit module dedicated instruction allocation parameter settings OPERATION ERROR 1 Operations using the file register R are executed with the device number or block number exceeding the ran
124. X15 1 turns on Y4 a Turning on XO turns on M10 Turning on X17 turns on Y12 Y4 Y20 M10 lt Actual machine state gt Cutter Roller Sheet gt o i Turning X2 ON Sheet feeding complete gt start cutting Assuming that present value of high speed counter unit matches the matching output point No 1 reaches 1000 turn X2 ON When X2 is turned ON Y4 is turned OFF to stop roller operation and cutter executes cutting by turning Y20 ON ia Timing File Devi BES tor Status m Device Entry Chart Display Range Auto Manual X1CxX2 X5 C X10 C X20 S150 49 48 47 46 45 44 43 42 41 40 39 BT Turnning on X2 turns off Y4 and turns on Y20 10 7 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT lt Actual machine state gt Cutter Roller Sheet DO we Sl ii 5 Turn X10 ON cutting complete Assuming that cutting is complete signal X10 sent from cutter turns ON When X10 is turned on Y20 is turned OFF and YO is turned ON When Y 20 is turned ON cutter turns OFF X10 Turn X10 OFF manually tia Timing Chart Eile Device Monitor MEE Monitor Status Device Enty Chart Display Range J C Auto Manual X1 X2 Cx5 C X10 C X20 SU a ec A A Aa ea IE GE Sr Turn X10 OFF manually
125. atibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid T32 to T62 are changed by M8028 drive 1 1 Area fixed to back up for interruption This cannot be changed x2 Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 20 App 20 APPENDICES MELSOFT Appendix Table 1 12 List of Devices Supported by the GX Simulator CPU type FX1n FX1NC Compatibility with functions Device range Number of points Total number of points for Monitor function 2 1 0 system settings Input X combined use with extension X000 to X177 128 points O O Total number of points for Output Y ee use with estensi n Yo0o to Y177 128 points General MO to M383 384 points O O O Q S ais lay M Latched 1 M384 to M511 128 points Auxiliary relay z Latched 1 M512 to M1535 1024 points O m Special M8000 to M8255 256 points O O Initial latched 1 Latched 1 S10 to 8127 118 points State S Latched 1 S128 to S999 872 points Timer T Fa 1ms retentive type latched T246 to T249 4 points For 100ms retentive type latched 1 T250 to T255 6 points 16 bit up CO to C15 16 points 16 bit up 1 C16 to C31
126. ator Compatibility with multiple PLC system The GX Simulator can t be compatible with multiple PLC action itself There are reasons that the GX Simulator doesn t support multiple starts and isn t conscious of the number of own machine which is necessary for multiple CPU action Consciousness of what number the own machine is in some CPUs It is only the part of the minimum requirements it run as a single CPU sequence program to run sequence program project for applicable multiple CPU which was written by the GX Developer I O assignment I O assignment parameter of the GX Developer appoints control CPU to each I O and intelligent function units Although it is able to read the control information to the GX Simulator the function isn t compatible without consciousness of own machine If it is multiple PLC applicable parameter it isn t the error for I O assignment of the GX Simulator original Difference between the GX Simulator and the practical machine under the access instruction to the shared memory of multiple PLC Although we use description of own machine the other machine for expression of difference between the GX Simulator and the practical machine the GX Simulator have no discrimination between own machine the other machine The GX Simulator allows read from own machine with the FROM command 3 SPECIFICATIONS MELSOFT 3 5 GX Simulator Safety and Handling Precautions The safety and handling precautions for
127. ator and OPERATION ERROR is generated if 0 0 is executed MELSOFT Applicable CPU A series CPU QnA series CPU e Motion controller Q series CPU Q mode Q series CPU A mode A series CPU e Motion controller Q series CPU A mode Illegal instruction in a dedicated instruction The illegal instruction is ignored and operation continues The illegal instruction is checked and INSTRCT CODE ERR is displayed Dedicated instructions must be described as blocks Example of illegal ladder M9036 4 Illegal RAD _ instruction P LEDA LEDC _ DMov LEDC D200 K120 D500 D210 LEDR END A series CPU e Motion controller Q series CPU A mode Time concept Supported instructions Actual time All instructions can be used As per constant scan setting Since data refresh instructions PID control instructions QnA series FX series CPUs etc cannot be used they are processed as NOPs Refer to Appendix 2 for supported instructions A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode A series CPU QnA series CPU e FX series CPU e Motion controller Q series CPU Q mode Q series CPU A mode Operating CPU type According to CPU type used e Operates as A4UCPU when A series CPU motion controller or Q
128. ay S for SFC State S Annunciator F Edge relay V Link special relay SB Link relay B Special relay Contacts etentive timer Toot T a es E E E E Function output FY Link input Jn X Link output Jn Y Link relay Jn B Link special relay Jn SB SFC block BL SFC transition device TR App 61 App 61 APPENDICES MELSOFT Device Name A series QnA series Q series CPU Q series CPU FX series CPU CPU Amode Q mode CPU MES SA A A Data register D Special register D Link register W Link special register SW Timer present value T Retentive timer present value ST Counter present value C Function register FD File register R or D Q f gt Lo g o Extension file register Buffer register Un G Link register Jn W Link direct device Jn SW Index register Accumulator A 1 Only compatible with FX3u FX3uc PLCs In FX3u FX3uc PLCs device name R represents extension register 2 Only compatible with FX3u FX3uc PLCs 3 When I O assignment is not set the buffer register is treated as an unsupported device App 62 App 62 APPENDICES MELSOFT Appendix 4 Method for Debugging the Universal Model QCPU Projects with the GX Simulator Appendix 4 1 Overview Run two separate GX Developer programs Debug the copied project on one of them and apply that debug result to the other GX Developer Appendix 4 2
129. batch monitor on the Device Memory Monitor screen Alternatively click the lt lt Device Batch gt gt Tab Setting screen Peles Menu Online Device Batch Buffer Memory Entry Device 5 Device 1 0000 0000 0000 0000 lA DO 0000 0000 0000 0000 o 0000 0000 0000 0011 2 0000 0000 0000 0000 o 0000 0000 0000 0000 o 0000 0000 0000 1100 12 0000 0000 0000 0000 o Start monitor 3 2 lt 0000 0000 0000 0000 o 0000 0000 0000 0000 0 0000 0000 0001 0100 20 Stop monitor 4 0000 0000 0000 0000 o 0000 0000 0000 000 0 o p yl Monitor format Bit8Wword y 5 0000 0000 0000 0000 ol Y 0000 0000 0000 0000 IO Display 16bit integer y 6 0000 0000 0000 000 0 0 Data format DEC A 7 Bit order F 0 8 hosH GX Simulator Host station 9 A J Y 11 Specify the device name and device number e Indexing digit specification word device bit specification and indirect designation cannot be executed For the A series CPU specify the extension file register in the ERAR format Refer to Appendix 1 for the supported devices Take the following precautions when monitoring the bit devices of the other station e If three or less devices are set they cannot be batch monitored As the device number enter a multiple of 16 into the Device field Example X0 X10 MO M16 etc 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION 2 5 Bit 8 Word format Menu Online
130. bit up 1 CO to C99 100 points Counter C Word device Data register D 32 bits when used in pairs Nesting N Pointer P Decimal constant K Hexadecimal constant H App 17 16 bit up 2 C100 to C199 100 points 32 bit bidirectional 1 C200 to C219 20 points 32 bit bidirectional 2 C220 to C234 15 points 16 bit general 1 DO to D199 200 points 16 bit latched 2 D200 to D511 312 points D512 to D999 488 points D8000 to D8255 106 points D1000 to D2999 2000 points D6000 to D7999 2000 points V Z oh NO to N7 8 points OJO OJO OJO OJojojo oOjpojojojo oOjpojojojo x x App 17 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid 1 Area not backed up for interruption However this area can be changed to area backed up for interruption by using parameter settings Area backed up for interruption This area can be changed to area not backed up for interruption by using parameter settings Area fixed to back up for interruption This area cannot be changed Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart x N X
131. by turning X17 ON Y4 is turned ON by turning X15 ON Na Y4 Y20 M10 DO D By turning Y4 ON DO is counted up 10 13 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT lt Actual machine status gt Cutter vo Or VT O e 2 Turning X2 ON Sheet feeding complete Start cutting X2 is turned ON the moment DO reaches 1000 Y4 is turned OFF by turning X2 ON to stop roller operation and cutting is executed by cutter when Y20 is turned ON a Timing Chart lol File Device Monitor Monitor Status p Device Entry Chart Display Range Le e C Auto Manal x1 C x2 CRE OXIDO MAD Stop 102 101 100 99 98 97 96 T 99 92 a X2 is turned ON just the x10 moment DO reaches 1000 x15 X16 x17 YO v1 12 Ya Y4 is turned OFF by turning X2 ON tel Y20 is turned ON by turning X2 ON M10 DOD po E T se lt Actual machine status gt Cutter Roller Sheet gt Os 10 14 10 14 10 EXAMPLES OF GX Simulator APPLICATIONS MELSOFT 3 Turning X10 ON 3 seconds after Y20 is turned ON Cutting completed Assuming that 3 seconds is needed until cutting operation is complete X10 should be turned ON 3 seconds after Y20 is turned ON When X10 is turned ON Y20 is turned OFF and YO is turned ON ia Timing Chart BEE File Device Monitor Monitor Status p Device Entry Chat Displa
132. can SM700 Carry flag N CO N Y OFF one scan only OFF Ascending SM1039 SM703 Sort order j ON Descending after RUN eae a od OFF Not stop status i op status contac OFF Some do not p ON Stop status Block comparison a Poy en eee ON STEP RUN a A 3 OFF Not STEP RUN OFF DI SM715 El flag ON El BIN DBIN error processing OFF Error OK ena ON Error NG switching p OFF No error SM1008 Self diagnostic error ON Error Annunciator OFF Not detected SM1009 detected ON Detected 3 OFF Normal SM1011 Operation error flag ON Operation error User timing clock No 0 User timing SM1021 clock No 1 a n2 scan n2 scan__ User timing su le A SM1022 clock No 2 n1 scan User timing SM1023 clock No 3 User timing SM1024 clock No 4 SM1020 App 40 App 40 APPENDICES MELSOFT Appendix Table 1 19 List of special relays supported by GX Simulator continued SM1510 to 1516 can be used only in operation of the Q12PRHCPU or Q25PRHCPU In GX Simulator the values of SM1510 to 1516 are fixed to those enclosed by parentheses in the following table Fixed to OFF SM1510 Operation mode OFF Redundant system backup mode debug mode ON Redundant system separate mode Fixed to System A SM1511 ON SM1512 0FF System A e Indicates System A B of the redundant system identification flag Sistema systeme At the time of TRK CABLE ERR Error code 6120 occurrence
133. ce or buffer memory Operation procedure Choose Online Device write on the Device Memory Monitor screen Alternatively double click the device being displayed during monitor Setting screen xi 1 gt Bit device Close Force ON Device Force OFF Toggle force 2 Word device Buffer memory Device D15 Buffer memory Module start I O HEX Address HEX z 3 Setting value 5 16bit integer pec y Explanation 1 Bit device Enter the bit device Click Force ON Force OFF or to change the status of the specified device 2 Word device Buffer memory Device Specify the device name and device number The buffer register can also be specified in UO Buffer memory Specify the starting I O number and buffer memory address of the special function module gt Go format 3 Setting value Specify the value to be written to the specified word device or buffer memory Any of the following values can be set 16 bit integer 32768 to 32767 32 bit integer 2147483648 to 2147483647 Real number Enter in decimal 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 4 button When the word device or buffer memory is specified write to device is executed When specifying the timer T counter C or retentive timer ST enter T C ST 7 MONITORING
134. ceaeeeeaeesteaeeteneetseeteieeesinees 6 8 6 6 2 Usable QnA compatible 3C 4C frame COMMAMNAS cccecceeeeeeeeeeeeeeeeeeeeeeeeeteaeeteaeeeeteeeeeaeensaees 6 9 6 COMMUNICATION StAtUs pee a E E AE 6 10 6 8 Error Gode List arn a E ii ie AAA A ee ar 6 11 6 8 1 When the A compatible 1C frame iS USC cc ceeecceeeeeceeeeeeeeeeeeeeceaeeceaeescaeeeeceeteneeteaeeteieeteeees 6 11 6 8 2 When the QnA compatible 3C 4C is used ccccceecceeeneeeeeeeeeeeeeeceeseaeeceaeeecaeeeseneeseneeseaeeesieeeeneees 6 12 7 1 Monitoring Testing the Device MOMOTy ecceceeeeeneeeeeeeeeeeaeeeaeeeaeeeaeeeaeseaeseaeeeaeeeaeeeaeeeaeeeaeeeateareeaeesas 7 1 7 1 1 Operation Procedure of Monitoring Device MOMOry cecceceeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeateeaeenas 7 2 7 1 2 Starting Ending Monitoring Device MOMOry cecccecceceeeceeeceeeeeeeeeteeeteeeseeeseeeseneseeeseneseaeseaeeeaeeeneeaee 7 3 7 1 3 Specifying the station to be monitored oo eee este eee tect tees tees eeeeteeeseneseeeseaeseeeseeeseeeseaeseneteateneeaes 7 4 7 1 4 Batch monitoring the devices oonconnconncnnncnnnconcncnncnrcrcn rc 7 5 7 1 5 Monitoring the buffer MEMOTY ceceeceeceeeeeeeeeeeeeeeeseeeceeeseeseeseeseeseeeseeeseeeseeeseeeseeeseaeseeaneaeeeneeeaes 7 8 7 1 6 Monitoring the registered deviceS oonoonnicnninnnnonnnnnnancnncnrcancan rc 7 11 7 1 7 Conducting a device test Device Write oonoonionninninnnnnnnnnonconcnncancanccanrcan rc 7
135. cecceeeeeeeeeteeeeeeeeeeeeees 3 17 Motion controller c ccceeeceeeceeeseeeeees 3 20 Q series CPU hon ag aie Mec 3 21 QnA series CPU ococncccicccconoccconccnannnconnnnnn 3 14 S Sampling period ccccecceeeeeeeeeeteeeeees 7 26 SCAN NUM Dino iii dad 5 12 5 21 Serial communication function 6 1 Configuration Of Screen 6 4 Operation procedure ooocococccnoccciocccinccinncn n 6 2 OutliNe iii 6 1 Simulation device area c cceeeeees App 59 Simulation example ccceeeeeeereees 10 1 SIN CUVE 0000 att ci eta a ee he eek teed 5 18 Specifications ccecccceeseeeeeeeeeeeeeeeeeseetens 3 1 Starting Device memory MONItOF e eee 7 3 VO system SEttINQS oooonncnninnninnnnnnnncncccons 5 5 Index 2 Timing Chart c ceecceeeeeeeeeeeeeeeeeeeeeetes 7 15 Supported devices and instructions 3 8 T Timing chart Configulation of screen 7 17 Device display position exchange 7 27 Device entering deleting 7 20 File operation ooooooccoccconccconcccoccccnonccncnncnono 7 24 Monitor starting Stopping 7 23 Operation procedure 2 cccceeeeees 7 15 Sampling period ccccccesceeeeeeeeetees 7 26 Starting and Exiting ce eeeeeeeeeeeeeeeee 7 16 Timing chart format input screen Configulation Of screen 5 11 Device display positi
136. ck this button after completing all settings Device memory buffer memory read is not allowed while the execution status is RUN Change the execution status to STOP before reading device memory buffer memory With the A series CPU function QnA series CPU function Q series CPU function or Motion controller function selection of a slot that is not assigned to a special function module using the GX Developer I O assignment setting is not possible Before reading buffer memory set the GX Developer I O assignment 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT 9 3 Option Setting Purpose Selects how to display the initial window at the start of GX Simulator Operation procedure Choose Tools Option Display as minimized next time Every time it is chosen the check box on the left of the menu alternates between ON and OFF a LADDER LOGIC TEST TOOL Bi EZ Start Tools Help Backup Device Menor Backup Butter Memory Restore Device Memory stor Restore Butter Memory TRATA Display as minimized next time v Display as minimized next time Display as minimized next time When check box is ON When check box is OFF When you exit from GX Simulator with the check box ON starting GX Simulator next time displays the initial window on the task bar in the minimized status BA Start BMELSOFT series GX Em LADDER LOGIC TEST T
137. cut or copied before insertion a blank line is inserted into the selected line No Network No Station No PLC series Device 1 4 Q mode X10 ae 3 3 1 3 QnA T1 4 2 2 0 Q mode DO Deleting or clearing the specified line Purpose Delete the line of the specified setting No Operation procedure a Select the line of the setting No to be deleted No Network No Station No PLC series Device 1 84 Q mode X10 2 2 0 Q mode DO b When deleting choose Edit Delete The data of the setting No shifts up No Network No Station No PLC series Device 3 T1 OI ca A 2 Q Qmode D0 When clearing choose Edit Clear The line of the specified setting No is blanked No Network No Station No PLC series Device 110 Q mode x10 2 2 Q Q mode DO 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 5 Sorting the lines 7 Purpose Sort the lines of the setting No Sort the lines on the basis of the network No and station No Operation procedure No Network No Station No PLC series Device 110 Q mode X10 1 QnA ma 3 QnA T1 3 A D10 214 Q mode DO DN A 0 ho Njin i0 When sorting the lines in ascending order choose Edit Sort by Ascending Network No Station No PLC series Device 1
138. d in the Search dialog box Operation procedure Choose Edit Find on the Device Manager screen Setting screen x Find what Eind next Direction Cancel C Up Down TT Match case Explanation 1 Find what Enter the character string to be searched for 2 Match case When the entered character string is searched for the characters are discriminated between uppercase and lowercase 3 Direction Set the searching direction 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 7 5 Saving the log information into file Purpose Save the log information into the specified place Operation procedure Choose Operation Export Log on the Device Manager screen File Edit Operation Log di Start v Stop Ne Export Log Clear Log Setting screen Save in a Data ga ck E log040117 Cc5 log040829 C5V log041029 Cc5 File name flog040729 Save as type Text Comma delimited csw y Cancel Z Specify the save destination folder in Save in Enter the name of the file to be exported in File name When overwriting the existing file click the file to be saved to make selection For Save as type only Text Comma delimited csv is available After setting click the button 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 7 6 Clearing the log information Purpose Clear
139. d therefore refer to the restrictions on the A series CPU 2 Q mode 1 Compatibility with the Universal model QCPU The GX Simulator does not support the Universal model QCPU For debugging the Universal model QCPU projects with the GX Simulator refer to Appendix 4 2 Compatibility with the special function module The GX Simulator does not support the special function module However it has the area of 64k points x64 modules for the buffer memory of the special function module This area can be accessed but access beyond that will result in an error 3 About saving reading the buffer memory data When saving reading the buffer memory data of the special function module always make I O assignment on GX Developer Refer to the GX Developer Operating Manual Without I O assignment buffer memory data cannot be saved read 4 About validity of parameter setting items Among the parameter setting items of GX Developer there are setting items which will be invalid for the GX Simulator if their data have been set The following setting items are invalid for the GX Simulator Parameters Setting Item PLC name setting All invalid Items except timer time limit setting STOP RUN output mode and common pointer No are invalid e Target memory of file register is invalid e Comment file used for instructions is invalid e Target memory of device initial value is invalid e Target memory of file for local devices is
140. ded I O OFF No processing OFF Reached station SM254 el refresh refresh ON All station refresh O Self diagnostic error SM1 N F ON OF ON one scan only ON OFF one scan only ON 1 scan ON one scan only ON 1 App 39 OFF one scan only ON K 1 scan SM409 0 01 second clock SMHI 0 1 second clock 1 ani 0 2 second clock 4 SM412 1 second clock x1 SMAS 2 second clock 1s x1 ee 2n second clock ns ns e 2n ms clock n ms n ms a User timing onic clock No 0 User timing SM421 clock No 1 User timing one clock No 2 User timing 5M423 clock No 3 User timin SM424 clock A n2 scan n2 scan AH gt User timing SM439 clock No 5 User timing clock No 6 User timing clock No 7 User timing clock No 8 User timing clock No 9 Low speed prog ram execution flag 0 05s 0 05s 0 1s 0 5s n1 scan SM431 SM432 SM433 SM434 OFF Complete or no execution ON Executing App 39 APPENDICES MELSOFT Appendix Table 1 19 List of Special Relays Supported by the GX Simulator daba usability flag ON Usable 0 protection flag ON With protection 0 5s rive 3 fla j d ON With drive 3 SM1033 2 second clock SM623 Drive 4 flag dial SM1034 2n second clock ON With drive 4 OFF File registers not SM1036 Normally ON used Use file register ON File registers SM1037 Normally OFF used ON one scan only kK 1 s
141. designated timing and all later To turn ON designated timing and all later To insert timing To delete timing Tool button Move cursor to the timing to be set and operate using any tool button menu or short cut key Edit Bit Device Device ON e Right click then Device ON Also can be done by double clicking cursor position Edit Bit Device Device OFF e Right click then Device OFF Also possible to double click cursor position Edit Bit Device Progressive OFF Right click then Progressive OFF Edit Bit Device Progressive ON e Right click then Progressive ON Edit Bit Device All OFF Right click then All OFF Edit Bit Device All ON Right click then All ON Edit Insert Right click then Insert Edit Delete Right click then Delete Timing key 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT a Setting ON OFF period Purpose To set ON OFF continuously with optional period after designated timing Operation procedure 1 Select initial bit device timing File Device Edit Scan lar al ala al D 1 2 X12 DO 2 Operate either of operations shown below e Select Edit Wizard menu e Right click select Wizard menu 3 Bit device set
142. device e g forcibly turn a bit device ON OFF or changes the current value of a word device e Timing chart display function This function samples the ON OFF or values of the host station devices and displays the device status per scan 7 1 Monitoring Testing the Device Memory The operation method for monitoring testing the device memory will be explained below This section describes the device batch monitor buffer memory monitor and entry device monitor functions that are executed from the GX Simulator menu The following are the precautions for monitor execution POINT 1 After changing the PLC parameter value or other station device setting during monitor perform the following operation After changing the PLC parameter value during monitor of the host station perform PLC write and restart monitor e After changing the other station device setting during monitor of the other station restart monitor 2 When monitoring the other station devices only the devices set in the Other station device setting can be monitored The monitor range is only the preset number of consecutive points 3 Transfer Setup cannot be made during monitor 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 1 1 Operation Procedure of Monitoring Device Memory Operation procedure of monitoring device memory is shown below Start Refer to Section 7 1 2 Specify the station to be monitored
143. device manager function When the FX series CPU is used device manager function is not supported 3 SPECIFICATIONS MELSOFT 3 4 5 Restrictions and cautions for the Motion controller functions 1 Motion controller Type Selection and Applicable CPU Type The range of devices or instructions of a motion controller are those of the applicable CPU The table below shows the types of CPU applicable to the motion controller Motion Controller Applicable CPU A171SH A172SH A2SH A2SH S1 A173UH S1 A3U A273UH S3 2 Motion dedicated instructions A3U The GX Simulator does not support motion dedicated instructions Thus when an attempt is made to use motion dedicated instructions on the GX Simulator nothing will be processed NOP Motion dedicated instructions are only the following six SVST CHGA CHGV CHGT SFCS and ITP 3 SFC Programs Not supported by the GX Simulator Any restrictions and cautions other than the ones described above are the same as those for the A series CPU functions For the restrictions and cautions for the A series CPU functions refer to Section 3 4 2 For details of the motion controller refer to the Motion Controller User s Manual 3 SPECIFICATIONS MELSOFT 3 4 6 Restrictions and precautions for the Q series CPU functions 1 Amode For the Q series CPU A mode functions the A series CPU functions perform as equivalent to those of the A4U an
144. device was specified The limit of the device point count was exceeded Command error Device point count error A character unconvertible into binary was used in the command The sub command is illegal After the character part data e g ETX CR LF does not exist or incorrect data was specified ASCII binary conversion error MC protocol message error Restart communication after checking and correcting the message sent by the other end device Restart communication after checking and correcting the message sent by the other end device e Restart communication after checking and correcting the message sent by the other end device Restart communication after checking and correcting the message sent by the other end device e For communication in ASCII binary conversion always send data in an even byte unit e Restart communication after checking and correcting the message sent by the other end device e The calculated sum check does not match Reexamine the sum check on the other end Sum check error the received sum check device 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION The device memory monitor function and timing chart display function are available as the monitor functions e Device memory monitor function This function monitors the device memory status stored in GX Simulator or tests a
145. devices can be entered If displayed device is changed by scrolling the screen device entry will automatically change lt Timing chart screen gt File Device Monitor Device lt GX Developer screen gt Miau pie uate Monitor Les co 10 Device monitored with GX k Developer will be displayed m a Non timing chart screen ms po m2 gz t gs y m F 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 1 If devices registered using GX Developer do not appear in the timing chart screen switch the device entry setting from to Manual and execute device entry 2 For any instruction whose argument occupies double word positions two word devices will be displayed on the timing chart screen For DINC DO DO and D1 are entered 3 When batch monitor of GX Developer is used to monitor a bit device this bit device will not be entered 4 When the A series FX series Q series A mode CPU motion controller is selected the bit digit specified index qualified device will not be entered 5 When QnA series Q series CPU Q mode is selected directly designated buffer memory will not be entered 6 When FX series CPU is selected the following instructions displayed on GX Developer circuit monitor screen will not be entered RST T RST i PLS Y PLS M PLF Y PLF M b Manual entry Purpose Manually enters device to be monit
146. ds in the application instruction Check the program or contents of the operands in the application instruction FOR NEXT ERROR FOR NEXT nestings exceed the maximum nesting level of 6 Check the program or contents of the operands in the application instruction OPERATION ERROR An incompatible device is specified as an operand of an application instruction A device is specified outside the allowable range of an application instruction operand A file register which is not defined in the parameter settings is accessed Check the program or contents of the operands in the application instruction SP UNIT ERROR FROM TO instruction error Check the program or contents of the operands in the application instruction OPERATION ERROR 1 Illegal nesting of FOR NEXT instructions 2 Illegal nesting of CALL SRET instructions Check the program or contents of the operands in the application instruction 1 Characters in parentheses indicate the special register number where the information is saved Errors not displayed on the LED indicators are stored as operation error codes in the special data register D8067 For devices related to error displays refer to Appendix 1 3 11 6 11 6 11 TROUBLESHOOTING MELSOFT 4 GX Simulator for Q series CPU A Mode Functions The error codes of the Q series CPU A mode are the same as those of the A series CPU Refer to the
147. e Serially connectable external device Frame transmission Response 1 OUTLINE OF GX Simulator MELSOFT lt Debugging using GX Simulator gt Since GX Simulator responds to the frame sent from the external device the external device need not be connected to the serial communication module computer link module actually Serially connectable external device ra GX Simulator Frame transmission gt y Response 4 Monitoring of device memory monitor function You can monitor the states of the virtual CPU device memory and the buffer memory Like the device batch monitor and buffer memory batch monitor functions of GX Developer you can not only monitor the ON OFF states and values of devices but also perform forced ON OFF and change current values This function also allows you to display the ON OFF states and values in a timing chart format to grasp time series operation sa Timing Chart BEE File Device Monitor r Monitor Status Device Enty Chart Display Range j Caso Manual x1 0x2 CXS C KIC XD 10 dl 2 aE 6 5 4 sl x al 0 5 Saving reading of device buffer memory data tool function You can save the data of the device memory in the virtual CPU or the buffer memory of the special function module temporarily and when resuming debugging you can read and use the saved data 1 OUTLINE OF GX Simulator Other station 1 2 MELSOF
148. e Counter C 4 CO to C1023 1024 points Function register FD 2 9 FDO to FDA 5 points From RO on none File register R From ZRO on none Module start address Um m 0 to FE Buffer register Um Gn 3 Buffer register address Gn n 0 to 16383 16384 points App 5 Other station device range Number of points Fixed XO to X1FFF 8192 points Fixed YO to Y1FFF 8192 points Changeable MO to M32767 32768 points Changeable LO to L32767 32768 points Changeable FO to F32767 32768 points Changeable VO to V32767 32768 points Fixed SBO to SB7FFF 32768 points Changeable BO to B7FFF 32768 points Fixed SMO to SM2047 2048 points When program is used E FXO to FX4 5 points ned Other than above FXO to FXF 16 points When program is used FYO to FY4 5 points Fixed Other than above FYO to FYF 16 points Changeable DO to D32767 32768 points Fixed SDO to SD2047 2048 points Changeable WO to W7FFF 32768 points Fixed SWO to SW7FFF 32768 points Changeable TO to 132767 32768 points Changeable STO to ST32767 32768 points Changeable CO to C32767 32768 points Fixed FDO to FD4 5 points RO to R32767 32768 points Changeable ZRO to ZR1042431 1042432 points Module start address Um m 0 to FE Fixed Buffer register address Gn n 0 to 16383 16384 points Fixed ZO to Z15 16 points Fixed NO to N14 15 points Fixed PO to P4095 4096 points Fixed
149. e 10S feal incel Designate optional folder with Save in and enter file name to be saved in File name If setting is to be over written on existing file select the file to be saved by clicking Then click button 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 8 2 Cutting copying and pasting all settings in the set No 1 Cutting and copying the selected set No Purpose To cut and copy selected set No and save on clipboard Operation procedure a Select the set No to be cut copied by clicking ef een e ee ms E ON iH xo ON na i Le OFF 1 V Enable H 10 p b For cutting select Edit Cut de can also be clicked instead of above For copying select Edit Copy can also be clicked instead of above 2 Pasting the cut copied set No Purpose To paste cut copied set No to optional position Operation procedure a Select the set No to be pasted by clicking b Select Edit Paste can also be clicked instead of above c Cut copied set No has been pasted iH The set No copied or cut by device value input cannot be pasted by timing chart input In addition the set No copied or cut by timing chart input cannot be pasted by device value input either 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 8 3 Batch enabling disabling settings
150. e QO2PHCPU QO6PHCPU Q12PHCPU and Q25PHCPU Redundant CPU Generic term of the Q12PRHCPU and Q25PRHCPU A series CPU function Function that simulates a project when the PLC series is the A series CPU or Q series CPU A mode QnA series CPU function Function that simulates a project when the PLC series is the QnA series CPU FX series CPU function Function that simulates a project when the PLC series is the FX series CPU Motion controller function Function that simulates a project when the PLC series is the motion controller SCPU Q series CPU function Function that simulates a project when the PLC series is the Q series CPU Q mode A series CPU Generic term of the AOJ2HCPU A1FXCPU A1SCPU A1SJCPU A1SHCPU A1SJHCPU A1NCPU A2CCPU A2CJCPU A2NCPU A2NCPU S1 A2SCPU A2SHCPU A3NCPU A2ACPU AZACPU S1 ASACPU A2UCPU A2UCPU S1 A2USCPU A2USCPU S1 A2ASCPU A2ASCPU S1 AZASCPU S30 AZASCPU S60 AZUSHCPU S1 AJUCPU and A4UCPU QnA series CPU Generic term of the Q2ACPU Q2ASCPU Q2ASCPU S1 Q2ASHCPU Q2ASHCPU S1 Q3ACPU Q4ACPU and Q4ARCPU Generic Term Abbreviation Description Generic term of the FXoCPU FXosCPU FXoNCPU FX1CPU FX2CPU FX2cCPU FX series CPU FX1SCPU FX1NCPU FX1NCCPU FX2NCPU FX2NCCPU FX3GCPU FX3UCPU and FX3ucCPU Generic term of the A171SHCPU A172SHCPU A173UHCPU A173UHCPU S1 A273UHCPU and A273UHCPU S3 Q series CPU A mode Generic term of the
151. e device to be indirectly designated is also checked within the device range of the device address However file register is checked within ZR device range instead of R device range For the device range for a specific CPU type refer to Appendix 1 DO checks the error in the ZR device range setting when R y the following program is executed Operation continues even if the indirect designation me ee range by the index register H LADRSET R32767 DO check exceeds the device __ FMOV K1 DO K20 range X QnA series CPU Q series CPU Q mode R device File range register R32767 ZR device range 1 Indirectly designating file register checks the device range within the range of capacity set on PLC File screen switched from PLC Parameter dialog box by tab 1 OUTLINE OF GX Simulator Item Name Real number range check Number range check Debugging with an Actual PLC Connected Dedicated instructions to handle real numbers allow operation to continue when an illegal value occurs which cannot be evaluated as a real number Value 0 is given as a result of 0 divided by 0 by DIV instruction floating point division of the A series PLC No error occurs Debugging with GX Simulator Real number range checks are conducted rigorously OPERATION ERROR is displayed if a value cannot be evaluated as a real number The rigorous number range check can detect an illegal O denomin
152. e function is displayed on the status bar of the Device Manager dialog box When an error occurs an error message is displayed Status Start Excess Device control cycle has occurred Operating status of function Operating status Status in which simulation has not started Status in which simulation is operating normally according to the set values Displayed error message Error message Error occurrence condition Corrective action Excess Device control The device could not change in the cycle i is O em of cycle has occurred specified in the device control setting the personal a 2 Stopping simulation Purpose Stop simulation using the Device Manager function Operation procedure After stopping the user application choose Operation Stop on the Device Manager screen that is executing the function File Edit Operation v Start No Export Log 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 6 Displaying the Results of Access to Devices Log Display Purpose Display the error details detected by GX Simulator in the setting device value check This enables a check for an illegal value written to the set device Operation procedure Select the lt lt Log display gt gt Tab on the Device Manager screen Setting screen x File Edit Operation ther station device setting Device control setting Device value check s
153. e input When condition set by user has been fulfilled specified device value can be changed after an optional time has elapsed With this input an operation such as When YO is turned ON 5 seconds later XO and X3 are turned ON can be set XxOX3 A c M Enable 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 1 1 0 System Setting Operation Procedure Operation procedure for I O system setting is shown below Start en toSection T Set I O system by inputting device value YES Y Input device value to be set Refer to Section 5 6 Set I O system by timing chart NO Set using timing chart Refer to Section 5 4 Y Save file Refer to Section 5 8 1 Y Execute l O system setting Refer to Section 5 7 Start monitoring with 1 O system setting y Start monitoring Refer to Section 5 8 3 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS 5 2 Starting Ending I O System Setting MELSOFT 1 Starting I O system setting Purpose To start I O system setting Operation procedure Select Start I O System Settings from the initial screen Start Tools Help Monitor Function I O System Settings Serial Communication Function Device Manager tm 170 SYSTEM SETTINGS oix Fr File Edit Online View Window l
154. e is no FOR instruction for the NEXT LEDA B BREAK instructions in the program The nesting level of CALL CALLP or FOR exceeds the nesting limit six 6 and is executing the sixth level There is no RET or NEXT instructions for the CALL or FOR instruction There is no parameter settings for the Read the error step using GX sub program Can not execute the Developer Delete the line CHG instruction containing the CHG instruction The device number of the pointer P or the interrupt pointer I used as a label added to the destination head is duplicating 1 Read the error step using GX Developer Check and modify the program step 2 Nesting level for the CALL CALLP and FOR instructions must be five 5 or less Read the error step using GX Developer Delete the line containing the ZCHG1 instruction There is no parameter settings for sub program 1 Can not execute the ZCHG1 instruction Read the error step using GX Developer Delete the line containing the ZCHG2 instruction There is no parameter settings for sub program 2 Can not execute the ZCHG2 instruction Read the error step using G
155. e judged automatically However the QnA compatible 3C 4C frame is unusable A series CPU QnA series Q series CPU A Mode FX series CPU Q series CPU Q Mode Motion Controller QnA compatible 3C frame format 3 QnA compatible 4C frame format 4 O Usable X Unusable Refer to the following manuals for details of the frames e Computer Link Module Com link func Print func User s Manual SH 351 1 e Serial Communication Module User s Manual IB 66612 e Q Corresponding MELSEC Communication Protocol Reference Manual ccccccecesceseesesesssseesssseseeeseeeseeeeeeseees SH 080008 2 Devices usable with the frames The following frames are usable Device Type Bit devices Word devices Remarks For extended registers access can always be made A compatible X Y M L S B F M TS TN CN D W R to a maximum of 64 blocks regardless of the CPU 1C frame TC C S CC Special M D Special D Note that the capacity depends on the parameter setting QnA compatible X Y M L F V B TS 3C frame D W TN SN TC SS SC CS CC SB DX DY is similar to X Y QnA compatible DX DY CN SW Z R ZR 4C frame 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 6 Command Lists This section explains the commands of the frames supported by GX Simulator Refer to the following manuals for details of the commands Refer to the following manuals for details of the fram
156. e ls Aan yes ves INDA YES YES Data table operation wm 9 O D X z wo po m di m Yn IVCK IVDR IVRD External device communication 280 OADR AVER INITR mn RWER 295 INITER YES SAVER NITR RWER INTER Supported by GX Simulator x Not supported by GX Simulator O Instruction supported by the actual PLC A FXo FXos and FXon actual PLCs do not support pulse executed instructions Instruction not supported by the actual PLC App 54 App 54 APPENDICES MELSOFT Appendix 2 4 GX Simulator for Q series CPU A mode functions Since the supported instructions of the Q series CPU A mode are the same as those of the A series CPU refer to Appendix Table 2 1 List of Supported Instructions A series CPU Function Appendix 2 5 GX Simulator for Q series CPU Q mode functions Appendix Table 2 4 List of Supported Instructions Q Series CPU Q Mode Function 1 Sequence Instructions Instruction Symbol Restriction LD LDI AND ANI OP ORI LDP LDF ANDP ANDF ORP Contact instructions ORF Coupling instructions ANB ORB MPS MRD MPP INV MEP MEF EGP EGF Output instructions OUT OUT T OUT C OUTH T SET RST PLS PLF FF 2 Basic Instructions Instruction Symbol Restriction lt gt gt lt lt gt D
157. ecieeesisenneeetaas App 44 Appendix 2 1 A series CPU function GX Simulator 0 ccecceceeceeeeeeeceeeeeeceeeeneeseneeeeaeeseeeeeseeeseaeeesaees App 44 Appendix 2 2 QnA series function GX Simulator ee eceeceeeeeeeeeeeeeeeee sees eee arcano see sneesaeesieesieetieeeeeed App 46 Appendix 2 3 FX series function GX Simulator ee cece eeceeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeseeeaeeeatens App 48 Appendix 2 4 GX Simulator for Q series CPU A mode FUNCTIONS cece eeeteeeeeeetteetteeteeetnnetaeees App 55 Appendix 2 5 GX Simulator for Q series CPU Q mode functions ecceeeeeeeeeeeeeeeeeeteeeeetteeettaees App 55 Appendix 3 List of Devices Usable with the I O System Settings cccceeecceeeeeeeeeeeeeeeeeeeeteteeteneees App 57 Appendix 3 1 Condition are a ccccccscccescceeseeeeeceeeeneeeeaeeeeaeeesaaeesaneeseneeecaceecaceesaeeseaeeseaeeesaneeeeeessaeessaees App 57 Appendix 3 2 Simulation device area 0 2 ceecceeecceeeceeeeeeeeeeeeeeceeseneeceaeeeeaeeecaeeesaeeseaeeecaeesseeeseaeeseeeesaees App 59 Appendix 4 Method for Debugging the Universal Model QCPU Projects with the GX Simulator App 63 Appendix 4 1 OVe6rview nisnin iia a da dai App 63 Appendix 4 2 Debugging Pro ed UTE e o e baci dida talar Ai las App 63 Appendix 4 3 Detailed Operation ccccccccecceseeceeeeeeeeeeeeeaeeeeeceesaeeceaeeeeaeescaneesaeeseaeeeeaeeeseeeesaeeeaeeesaees App 64 Appendix 5 Functions Added to Previous Vers
158. ed then the buffer memory data is saved to the following directories A series CPU Functions C Melsec LLT Acpu Devmem QnA series CPU Functions C Melsec LLT QnAcpu Devmem FX series CPU Functions C Melsec LLT FXcpu Devmem Motion controller Functions C Melsec LLT Acpu Devmem Q series CPU Functions C Melsec LLT Qcpu Devmem POINTS 1 If the execution status is RUN device memory buffer memory cannot be saved To save the device memory buffer memory change the status to STOP 2 The GX Simulator can save only one file If data already exists in the GX Simulator the new file overwrites the existing data file 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT 9 2 Reading Saved Device Memory or Buffer Memory Data Purpose To read the stored data of device memory and buffer memory Operation procedure Set the execution status in the initial window to STOP Select Tools Restore device memory or Restore buffer memory Setting screen Reading device memory lt A series CPU Motion controller and Q series CPU A Mode gt lt QnA series CPU and Q serise CPU Q Mode gt RESTORE DEVICE MEMORY RESTORE DEVICE MEMORY ex ew fee fem fer Cancel 3 4 5 Clear A Select All Cancel lt FX series CPU gt Clear Select All RESTORE DEYICE MEMORY x ee ey ew roe re Cancel Select All 9 S
159. editor of the original project 6 Apply the debug result Apply the debug result to the original project Instructions added to the program with the Universal model QCPU cannot be debugged App 64 App 64 APPENDICES Appendix 5 Functions Added to Previous Versions Version 7 22Y 7 20W The following indicates a history of main functions added to the previous versions Distribution Time Jul 2008 Apr 2008 Description Compatible with FX3GCPU Compatible with GX Developer Version 8 72A or later Compatible with QO2PHCPU and QO6PHCPU Compatible with GX Developer Version 8 68W or later Reference 7 19V Feb 2008 Compatible with Windows Vista Section 2 3 7 08J Nov 2005 Compatible with FX3uCPU and FX3ucCPU Compatible with GX Developer Version 8 23Z or later Section 3 4 4 Appendix 1 3 Appendix 2 3 Sep 2005 Sep 2004 Compatible with online change function Compatible with GX Developer Version 8 27D or later Added function of writing X Y SM SD to device memory from GX Developer Compatible with GX Developer Version 8 29F or later Section 1 1 Section 3 1 Section 1 1 Section 3 4 1 Added function of reading writing other station device from MX series Section 8 3 1 Jun 2004 Compatible with Redundant CPU Section 3 4 6 Appendix 1 5 Appendix 2 5 Jan 2003 Compatible with Basic model QCPU of function version B
160. eeceeneeneeeneeeneeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeereeaeeeaeesas 8 7 8 4 1 Device control SeN ooo diia 8 7 8 4 2 Device value Check setting ce eeceeceeeeeeeeeeeeeeeeeeeneeeeeeeseecaeeseeesenesaeseeeseeeseeeseeeseaeseeeseaeseaeseneteneeaaes 8 12 8 5 Starting Stopping Simulation sssini dsini iira aaia areni 8 14 8 6 Displaying the Results of Access to Devices Log Display oonocincnninnnnnnnnnnnnconccnocnrocnrccnrnrn rara rarcnn ns 8 15 O eo g AEE E EE E E EEE E EEE EEE EE EAE 8 17 8 7 1 Performing the file operation of setting data 8 17 8 7 2 Editing the Settings sacris iranran a Eran E cc 8 19 8 7 3 Printing the log information and setting informati0N ooonnnnniinninnnnnnnnninnnonnconnconcnnca carr 8 22 8 7 4 Searching for log information eeceeceeeeeeeeeeeeeeeeseeeeeeeeeeeseeeseeeseeeseneseeeseeeseeeseeeseeeseeeseaseeeseneseaeeaes 8 24 8 7 5 Saving the log information into File eee eeeeeeeeeeeeteeeeeeeeeeeseneseeeseeeseeeseeeseeeseeeseeeseeeseaesaeseneseneeaaes 8 25 8 7 6 Clearing the log information ocoonnionninnnnnnnnnnnnsn E 8 26 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS 9 1 to9 6 9 1 Saving the Device and Buffer Memories ececeeeeeeeeeeeeeneeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeesaeeeaeeeaneareeatenas 9 1 9 2 Reading Saved Device Memory or Buffer Memory Data ceceeceeseeeeeeeeeeeeeeeneeeeeeeaeeeeeeaeeseeeeeeaeesas 9 3 9 3 Option SC
161. eeeeeeeeseaeeceaeeecaeeeeeeeseaeeseeeeteeeesieeees 4 5 4 4 Ending the GX Simulator ce ceccecececececeeeeeeeeeeeeeeeeeceeseesaeeseeeseeeseeesaeseaeseaeseeeseeeseeeseeeseeseeaeseneeeaeeeaeeeaes 4 7 A 4 A 4 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS 5 1 to 5 35 5 1 1 0 System Setting Operation Procedure cee eececceeeeeneeeeeeeneeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeseaeeeaeeeaeeeneareeaeenas 5 4 5 2 Starting Ending I O System Setting sirien 5 5 5 3 Configuration of I O System Settings Screen oo ee eeeeeeneeeneeeeeeeeeeaeeeaeeeaeseaeeeaeeeaeeeaeeeaeeeaeeeaeeereeaeeeas 5 6 5 4 Setting by Using Timing Chart ec eeceecceseeeeeeeeeeeeeeeeeeeeeeeaeesaeesaeesaeesaeeeaeesaeesaeeeaeesaeesaeesaeesaeeseeeeeeaeesas 5 8 5 5 Operation of Timing Chart Format Input SCreen cc ccceecceeeeceeeeeeceeeeeeaeeeceeeeseneeseneeseaeeeeeeesieeeeeeenaas 5 10 5 5 1 Operation procedure of timing chart format input screen ceeeceeeeeeeeeeeeeeeeeeeeeeteeeeteeeeteeeeeennees 5 10 5 5 2 Configuration of timing chart format input screen 0 eee eeeeeeeeeeteeeeeeeteeeteneseeeteneseneeeaeteneeeaeeenteaes 5 11 5 5 3 Entering Deleting Jevice icoicoioicioin cdt dat dadas 5 13 5 5 4 Setting Editing timing onoonninnninnininnnnnnnonncnnnconcn rca can nc 5 15 5 5 5 Setting scan number Of timing Chart ce eceeeeeeeeeeeeeeeeeeeeeeeeseeeseeeeeeseeeseeeseeeseeeseeeseeeseaeseaeseseneeaes 5 21 5 5 6 Other Operai OAS Ae
162. eloper GX Simulator monitors the devices of the program executed at the end of each scan However when a low speed execution type program is used it is always executed at the end of each scan Therefore GX Simulator monitors the devices processed by the low speed execution type program Refer to 5 in this section for details e When monitoring devices by specifying the program in the local device monitor of GX Developer GX Simulator monitors the local devices of the specified program regardless of whether a scan execution type program exists or not 3 SPECIFICATIONS MELSOFT 5 About operation of Low speed execution type Programs Regardless of the constant scan setting or setting of the low speed execution type program execution time the GX Simulator always executes the low speed execution type programs after the scan execution type programs The program execution sequence is show below This sequence is identical during step operation Initialization execution type Scan execution type 1 Scan execution type 2 Assume 1 scan uses 100 ms then execution of 5 scans 500 ms Changing of a reference time is possible by changing 1 the constant scan time Refer to Section 3 4 1 1 Scan execution type N Low speed type i During each scan all scan execution type programs are executed before one low speed execution type program is executed Consequently if N low speed execution type programs are
163. elp Q2AS H RUN ERROR USER m SWITCH C STOP RUN RESET e step RUN 140 SYSTEM RUN A 4 COMMON OPERATIONS FOR THE GX Simulator MELSOFT 4 3 Description of the Initial Screen Display A GX Simulator initial screen as shown below is displayed when the GX Simulator is started This section describes the items displayed in the GX Simulator initial screen 13 5 6 4 gt Start Tools Help 1 2 Number ha a IC TEST TOOL MEE Q2A RUN ERROR USER nH MN 3 _ AA CPU type STOP C RUN 7 Task bar C STEP RUN en LADDER LOGIC TEST T 70 SYSTEM 12 RUN B 13 Description Displays the currently selected CPU type LED Indicators e Can display up to 16 characters e The indicator display is equivalent to the display of CPU operation errors Operation Status LEDs Start e RUN ERROR Valid for all of the QnA A FX Q series CPU and motion controller functions e USER Appears only for the QnA series Q series Q mode CPU functions Makes available the Monitor function I O System Settings Serial Communication Function and Device Manager Tools Use the Tools menu to execute the tool functions Refer to Chapter 9 Tool Functions Help Displays the GX Simulator licensee name and software version Switch Display and Settings Displays the execution status of the
164. en the data length is shorter than Restart communication after checking Protocol error the header length and correcting the message sent by e Data does not exist in the character the other end device part A non existing command was specified The requested number of points exceeded the range permitted for the command A non existing device was specified Character part error The command of the AnACPU AnUCPU was sent to the AnNCPU e The device unusable in the instruction e Restart communication after checking and correcting the message sent by ses the other end device was specified e Monitor read was executed without monitor registration Unusable data was received 1 The data outside the range usable Character error with the instruction was received 2 The bit device is not headed by a multiple of 16 12 Special function module The specified position is not I O e Make I O assignment of the specified H specifying error assigned correctly position 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 8 2 When the QnA compatible 3C 4C is used The following table indicates the error codes that may occur when the QnA compatible 3C 4C frame is used Error say i The requested number of points exceeded the range permitted for the command A word device was specified for the bit unit command The last device number exceeded the range e Last number
165. ep 4 When a statement or note step is set to the break point of the option setup execution does not stop at this break point MELSOFT Applicable CPU QnA series CPU Q series CPU Q mode When partial execution is performed When 0 is specified as floating point real number When dealing with a Character string constant When online change is performed 1 11 1 When performed execution stops at each of the first instruction P I pointer statement and note 1 When performed execution stops at the first instruction and P I pointer but does not stop at the first statement and note 2 When the start position is a statement or note execution stops at the first statement or note 3 When a statement or note step is set to the break point of the break condition execution stops at the statement or note step An error occurs in some CPU modules A maximum of 32 letters are possible as a Character string constant 1 Executable on ladder ST or SFC 2 Online change is executed according to arbitrary setting that is set in the following items of Setting Options Step No specification used in writing e Instruction setting for online change 2 When the start position is a statement or note execution stops at the first instruction or P I pointer immediately after that statement or note 3 When a statement or note step is set to the break point of the break cond
166. ep on the right of Edit Timimg Chart Format button the enabled scans can be repeated while the condition is being fulfilled Example For continuation with 6 scans designated Only 6 scans from 0 to 5 are enabled Scans 0 to 5 will be executed repeatedly while the condition is being fulfilled 5 button Defines settings and exits from this screen 6 button Cancels settings and exits from this screen 7 Status Displays state of timing chart being set x1 x2 x1 Shows that object device was turned ON from OFF 2 Shows that object device was turned OFF from ON 3 Shows that object device remains unchanged 4 Shows that object device has changed 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 5 3 Entering Deleting device 1 Entering device to be simulated Purpose To enter device for setting timing Operation procedure a Select Device Enter Device iming Chart Format D Edit Si b Dialog shown below will appear After setting each item click button A maximum of 16 devices can be entered Bit device selected Word device selected xj xj Device Name Disgla Device Name Module Starting Address ple Ewei xX U D Hex Value gt A SD F Y Device Number R Buffer Memory Address Decimal he r 0 Hex ER 30 Dec L z Hex A a F F El bd p View 7 Initial Val
167. eries CPU Q mode Q series CPU A mode Intelligent function module intelligent parameters Supported Only the initial setting auto refresh setting and buffer memory area are supported Q series CPU Q mode In case Use the file register and Use the following file are set but Capacity is not set Operates according to capacity of the file register if the file register specified on Use the following file exists in the specified drive Operates with the capacity of the file register set as an OK point whether the file used on Use the following file exist or not Thus OPERATION ERROR occurs if the file register is used in the program QnA series CPU Q series CPU Qmode When Use the same file name as the program is selected for a file register When the capacity of a file register is changed during program execution 1 10 1 If the same name file register as the program is in the PLC CPU drive the PLC CPU debugs the file register by the set capacity 2 If the same name file register as the program is not in the PLC CPU drive the PLC CPU will not debug When Use the same file name as the program is selected for a file register the PLC CPU monitors the file register within the changed capacity 1 If the same name file register as the program is in the PC drive GX Simulator debugs the file register by the set capacity
168. ernal devices can be automatically simulated without the requirement to create a special debugging sequence program 1 Differences between Conventional Debugging and Debugging with the I O System Setting Functions A comparison between conventional debugging with an actual PLC connected and debugging using the I O system setting functions is shown below a Conventional Debugging The program must be modified as follows for debugging e Add a debugging sequence program to simulate operation of the external devices e As an input X can be turned ON OFF only with an external device connected to the I O unit modify the program by changing XO MO X1 5 gt M1 etc to conduct debugging with no external device connected Debugging using the I O System Settings The I O system setting function allows sequence program settings and changes to be made for debugging from the setting screen It is unnecessary to add a sequence program It is not necessary to rewrite the devices XO MO as the inputs X can be directly turned ON OFF from GX Developer lt Program used in conventional debugging gt lt Program used for debugging using the GX Simulator gt Problem 1 Devices must be rewritten Solution 1 Rewriting of devices is not necessary X0 gt M0 X1 gt M1 Solution 2 Pseudo sequence program is created in a separate file ey 5 timer Problem 2 Sequence program for debugging is necessary O x1 5s
169. es e Computer Link Module Com link func Print func User s Manual SH 351 1 e Serial Communication Module User s Manual IB 66612 e Q Corresponding MELSEC Communication Protocol Reference Manual anaana aa a aia SH 080008 6 6 1 Usable A compatible 1C frame commands The following are the A compatible 1C frame commands usable with GX Simulator Function Max Number Simio ASCII code of Points br 52H vom Word unit de E s2 words oR ie su 52H 2H 57H i ce ae S7u 5 aw 2 51H 57H in 54H Devi cr 2 stn 54H 42H 4DH Monitor data NON aif pe 4An 4DH 20 words WwW it 1 7 Ien MB Du Aa T ista MJ 2 ja Word unit del Dn AE MQ 2 Du 51H Batch Batchread TER 5 5H ee ner eee Extended file register Test Randomwrite ET 45 54H 10words Monitor data recistaon___ _EM_ _46 4Da_ _20words_ Word unit gti eset Pts module Batchwite Tw 57H 128 bytes a US DE er DEA Remote operation ferenn MR p ses Remote STOP RS 5258 1 When the AnNCPU is used the number of used points is calculated as twice larger if device X is used in bit unit monitor data registration BM or word unit monitor data registration WM For device X therefore the number of usable points is halved 2 Not supported when the AnNCPU is used registration 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 6 2 Usable QnA compatible 3C 4C frame comma
170. etting No Year MonthiDa Time Network No Station No PLC series Device Device value Error co a PENE 14 45 07 Host Station Q Q mode D1 B181 0001 Explanation 1 Year Month Day The year month and day when an error occurred are displayed 2 Time The time of day when the error occurred is displayed 3 Network No The network No of the station being accessed when the error occurred is displayed 4 Station No The station No of the station being accessed when the error occurred is displayed 5 PLC series The series of the PLC CPU on the station where the error occurred is displayed 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 6 Device The device specified as the access destination is displayed 7 Device value The device value at error occurrence is displayed 8 Error code The code number for error classification is displayed Refer to 9 for the error code number 9 Message The details of the error that occurred are displayed The error details are described below Error code Message Error occurrence condition Corrective action Range outside value The value was not written within the ease 0001 i f e Review the user application write range set in the device value check POINT e Log display is not provided if an error occurs during a stop A maximum of 100 pieces of information are displayed However when m
171. etting device value check setting is to be printed 2 Item selection Only the selected item is to be printed 3 Item specification Select the target of print Log info The data displayed on the log screen are printed Other station device setting The settings on the other station device setting screen are printed e Device control setting The settings on the device control setting screen are printed e Device value check setting The settings on the device value check setting screen are printed 8 22 8 22 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 4 Printer setting The Windows standard printer setting dialog box is displayed Set the printer used for printing 5 Print Starts printing 6 Print preview A print image is displayed s Print preview A Print E njaj 34 rinl _Q_ button Closes the print preview and prints the item specified in the print dialog H Changes the preview display page to the first page a Changes the preview display page to the previous page gt gt Changes the preview display page to the next page Mi Changes the preview display page to the last page Boss Changes the preview display format and display size 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 7 4 Searching for log information Purpose From the error details output to the log search for the character string entere
172. evice display position Display position of device can be exchanged by drag amp Drop a Drag the device name in the timing chart format input screen Dotted line frame will appear during dragging Drag Fl b Superimpose dotted line frame on the device name to be exchanged Device name can now be exchanged x0 emo Stop dragging Y70 Superimpose dotted line frame 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 4 Viewing the status changes of the devices monitored The GX Simulator can save up to 1000 samples of past states of devices The following example shows how to confirm the device status of 260 scans before a Set the monitoring state of timing chart to stop b Operate the scroll bar until 260 appears on the timing chart screen Click 260 on the screen Click sa Timing Chart Bel ES File Device Monitor Monitor Status p Device Entry r Chart Display Range NEO Ato Manual Cxi CW2 C x5 RIG C x20 lop 310 300 290 280 270 260 250 240 230 220 210 200 m Y70 cco TN2 eR x1 Operate the scroll bar c By clicking 260 the device status of 260 scans before will appear in 1 In 1 the bit device ON OFF status and word device value are displayed sa Timing Chart olx Fie Device Monitor Monitor Status Device Entry r Chart Display Ra
173. evice values or simulation of machine operation Refer to Chapter 5 I O SYSTEM SETTING FUNCTIONS and Chapter 7 MONITOR FUNCTION Refer to the GX Developer Operating Manual Connection of actual PLC is not necessary feos GX Simulator Host station When checking the operation of the frame sent from the external device you can use the serial communication function for debugging Refer to Chapter 6 SERIAL COMMUNICATION FUNCTION After debugging modify the sequence program Refer to the GX Developer Operating Manual Set the execution status in the initial screen to STOP If necessary save the contents of the device memory and special function module buffer memory Refer to Chapter 9 TOOL FUNCTIONS Select the Online Write to PLC GX Developer menu items to write the modified program to the GX Simulator Refer to the GX Developer Operating Manual To debug the program again repeat Procedures 5 to 9 POINTS After debugging has been performed by GX Simulator it is necessary to execute normal debugging by connecting the PLC CPU before starting actual operation 4 COMMON OPERATIONS FOR THE GX Simulator MELSOFT 4 2 GX Developer Operations before Debugging This section describes the GX Developer operations required before debugging with the GX Simulator Conduct the operations described below before debugging a program with the GX Simulat
174. f capacity on the actual device will not result in an error and will be written properly 3 SPECIFICATIONS MELSOFT 13 About intelligent function module The GX Simulator supports only the initial value setting auto refresh setting and buffer memory area of the intelligent function module 14 About Write to PLC of file register data When performing Write to PLC of file register data to GX Simulator always set the execution status to STOP before starting execution 15 About forced input output registration cancellation function Not supported by the GX Simulator 16 About Character string constant A maximum number of letters for a character string constant used in the program is 16 digits Having 17 or more letters the letters on and after 17 digits will be ignored Example 12345678901234567 abcdefghijkimnopq When performing the above operations the following data will be stored after DO DO to D15 1234567890123456abcdefghijklmnop 7 and q on and after 17 digits for each Character string constant will be disregarded 17 About online change When trailing edge instructions are included in a sequence program the operation performed immediately after online change may differ from the debugging operation by connecting PLC CPU For details refer to QCPU User s Manual Function Explanation Program Fundamentals 3 SPECIFICATIONS MELSOFT 3 Q mode multiple PLC system 1 About the GX Simul
175. f settings a to c on the following screen has been made a The type has been set but the number of points has not been set b With the settings made to slot 2 and later the type and the number of points of slot 1 have not been set c The number of points has been set but the type has not been set 2 X Y settings are overlapped Setting screen example Q series CPU Q mode xi PLC name Puc ystem Puc file Puc RAS Device Program Boot file src 1 0 assignment 140 Assignment Type Modelname Points Stary A o Switch setting Detailed setting Assigning the 1 0 address is not necessary as the CPU does it automatically Leaving this setting blank will not cause an error to occur Base settinagl Base mode Auto C Detail 8 Slot Default 12 Slot Defaut ai ESTA Import Multiple CPU Parameter Read PLE data Acknowledge XY assignment Multiple CPU settings Default Check End Cancel Select the Tools gt Start ladder logic test GX Developer menu items to start the GX Simulator An initial screen as shown below is displayed The sequence program and parameters are automatically written to the GX Simulator when the GX Simulator are started by GX Developer Offline debugging of the sequence program using the GX Simulator is now possible ta LADDER LOGIC TEST TOOL HE Start Tools H
176. fer points switch instruction transfer instruction points me16s SMOVHEX data I cit shift in 4 bit unit handling functions Counting direction ON C200 down id OFF C200 up E M38201 Counting direction ON C201 down A of counter OFF C201 up Counting direction ON C202 down ds OFF C202 up Ml Counting direction ON C203 down pi OFF C203 up Counting direction ON C204 down oe OFF C204 up E Counting direction ON C205 down oe OFF C205 up Ml Counting direction ON C206 down we OFF C206 up Ml Counting direction ON C207 down fee OFF C207 up E Counting direction ON C208 down ici OFF C208 up x Counting direction ON C209 down oe OFF C209 up M8210 Counting direction ON C210 down E of counter OFF C210 up M8211 Counting direction ON C211 down T of counter OFF C211 up Counting direction ON C212 down ijai OFF C212 up M8213 Counting direction ON C213 down _ of counter OFF C213 up Counting direction ON C214 down saa OFF C214 up M8215 Counting direction ON C215 down of counter OFF C215 up App 31 App 31 APPENDICES MELSOFT Appendix Table 1 16 List of Special Relays Supported by the GX Simulator cont FX2 FXin FXon FX3u o name ton P P Bt ace OM ae eee Counting direction ON C216 down ga OFF C216 up pol hele oe ey M8217 Counting direction ON C217 down of counter OFF C217 up M8218 Counti
177. g data If the setting data are not saved they will be deleted at exit from GX Simulator 1 Select Tools End ladder logic test of GX Developer menu You can also click a of GX Developer for above w MELSOFT series GX Developer Unset project LD Monitor mode Monitoring MAIN 41 Z Project Edit Find Replace Convert View Online Diagnostics MS Window Help D tel al Haen AAE zli al fee Program on lr ale ele SHAH aes ae gt Ao plis po fal allie Ab 4 Delete unused comments lear alllparameters TR FE T 7 zj A aj F z IC memory card Set TEL data Intelligent function utility Unset projec Ef Program Customize keys E MAIN ca E Device cx Hee display color E Paramete Options e Device mi Greate start up setting fle EL Device in 2 When the dialog box appears click the button MELSOFT series GX Develo EG i Ends the ladder logic test Click 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS The I O system setting functions allow simulation of the operation of external devices In conventional debugging a debugging sequence program was created to simulate the operation of the external devices Using the I O system setting functions the operation of the ext
178. ge specified for the file register R The file register is used in the program without setting necessary parameters for the file register R The combination of devices specified by instruction is incorrect Read the error step using GX Read the error step using GX Developer Check and modify the program step Set the parameters for the file register R Checked at the execution of the 504 The number of data handling settings Step instruction exceeds the usable range 1 Characters in parentheses indicate the special register number where the information is saved The storage data or constants are not Developer within the usable range Check and modify the program 11 3 11 3 11 TROUBLES Error Message SP UNIT LAY ERR SP UNIT ERROR FILE SET ERROR FILE OPE ERROR CAN T EXE PRG PARAMETER ERROR MISSING END INS CAN T SET P OPERATION ERROR FOR NEXT ERROR CAN T EXECUTE P 11 4 BOOTING MELSOFT 2 GX Simulator for QnA series CPU Error Message Table ake Error Description and Cause Remedy 1 The starting X Y setting in the I O allocation 1 Reset the I O allocation setting of setting of parameter overlaps with the X Y parameter according to the actual status 2107 setting of some other module 2 Set the missing data in the Type or Points 2 There is some data missing in the Type or in the I O allocation setting of parameter Points in the I O allocation setting of
179. he GX Simulator Consequently the A1FX functions are identical to the I O module functions 7 About numeric value range check Checking the numeric value range strictly the GX Simulator detects any illegal operation whose divisor is 0 Execution of 0 0 will result in OPERATION ERROR 3 SPECIFICATIONS MELSOFT 8 About illegal instructions in dedicated instructions The GX Simulator checks the dedicated instructions for illegal instructions and displays INSTRUCT CODE ERR if any 9 About special function module special function block The GX Simulator supports only the buffer memory area of a special function module special function block 10 About memory cassette capacity The GX Simulator has no memory cassette capacity A lot of data which would result in an excess of capacity on the actual device will not result in an error and will be written properly 11 SFC Programs Not supported by the GX Simulator 3 SPECIFICATIONS MELSOFT 3 4 3 Restrictions and cautions for the QnA series CPU functions 1 Special Function Module Compatibility The GX Simulator does not support the special function modules The special function module buffer memory area capacity is 16 k points X 64 modules It is possible to save to and read from this area but any other access results in an error 2 Saving To and Reading From Buffer Memory Make I O assignments with GX Developer before saving or reading the special function
180. he copy source device is copied to the corresponding device at the specified cycle interval ON OFF Device ON OFF is repeated at the specified OFF time ON time OFF time ON time Units of time El coa The device is turned ON 1 when device ON control starts The device is turned OFF 0 when device OFF control starts Any cell that has wrong input data is displayed red An error will occur if 0 is entered into all of the OFF time rising time ON time and falling time e In the device control setting the update interval of the device value is 500ms 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 4 2 Device value check setting Purpose Whether the value written from the user application is within the user set range or not can be checked The following table indicates the ranges where the minimum value maximum value and pattern can be input according to the check method and data type in the device value check setting Check method Data type Input range seni Bit Unsigned Dec 16 bit int 0 to 65535 32 bit int 0 to 4294967295 n Bit Ar Signed Dec 16 bit int 32768 to 32767 32 bit int 2147483648 to 2147483647 z Bit angs 16 bit int 0 to FFFF Hex a 32 bit int 0 to FFFFFFFF Pattern 16 bit int 0 to FFFF 32 bit int 0 to FFFFFFFF Operation procedure Choose the lt lt Device value check setting gt gt Tab on the Device Manager screen Setting screen
181. his area can be changed to area backed up for interruption by using parameter settings N Area backed up for interruption This area can be changed to area not backed up for interruption by using parameter settings 3 Area fixed to back up for interruption This area cannot be changed A Bit data digit specification and word data bit specification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart App 16 App 16 APPENDICES MELSOFT Appendix Table 1 10 List of Devices Supported by the GX Simulator CPU type FX2 FX2c Compatibility with functions Device range Number of points Total number of points for Monitor function 4 1 0 system settings Input X combined use with extension X000 to X377 256 points O O Total number of points for Output Y combinaduss withext nsion Yo0o to Y377 256 points O O General 1 MO to M499 500 points O O g T Latched 2 M500 to M1023 524 points O O 5 Auxiliary relay M 2 Latched 3 M1024 to M1535 512 points O O a Special M8000 to M8255 156 points O O Initial 1 SO to S9 10 points O O General 1 S10 to S499 490 points O O State S Latched 2 S500 to S899 400 points O O TO to T199 200 points ee T200 to T245 46 points ims retentive type 3 T246 to T249 4 points 100ms retentive type 3 T250 to T255 6 points OJO OJO O OJO 16
182. ick startup of the GX Simulator When other combinations are used it starts up the GX Simulator at normal speed 16 About step execution skip execution and partial execution Compatible with step execution skip execution and partial execution the GX Simulator ensures more efficient debugging Refer to 9 for the step execution of SFC programs 17 About Character string constant A maximum number of letters for a character string constant used in the program is 16 digits Having 17 or more letters the letters on and after 17 digits will be ignored Example 12345678901234567 abcdefghijkimnopq DO When performing the above operations the following data will be stored after DO DO to D15 1234567890123456abcdefghijklmnop 7 and q on and after 17 digits for each character string constant will be disregarded 18 About PLC write of device memory If the FX series CPU is used the following items do not support PLC write function of device memory input X output Y e Special relay SM e Special register SD 19 About special function module special function block The GX Simulator supports only the buffer memory area of a special function module special function block 20 About online change When the FX series CPU is used online change function is not supported 21 About serial communication function When the FX series CPU is used serial communication function is not supported 22 About
183. ime x2 10 ms units SD1018 Saa Scan time x2 10 ms units SD1019 Maximum scan time Scan time 10 ms units SD1021 i Scan time Scan time 1 ms units SD1022 Number of counts of 1 second counter i 2 1 second units pigas ESensiontie Used block number register SD1124 Number of annun Number of annun ciators detected ciators detected Appendix Table 1 20 List of Special Registers Supported by the GX Simulator cont its N N N SD520 Present scan time 1 ms units Present scan time SD521 Present scan time 1 us units SD522 Initial scan time En 1 ms units Initial scan time SD523 Initial scan time 1 us units SD1125 SD1126 SD1127 SD1128 Number of annun Number of annun SsD1129 ciators detected ciators detected SD1130 SD1131 SD524 Minimum scan time a 1 ms units Minimum scan time SD525 Minimum scan time 1 us units SD526 Maximum scan time 1 ms units Maximum scan time SD527 Maximum scan time 1 us units SD1132 SD528 Current scan time x1 Value derived from the constant scan setting value and Current low speed 1 ms units number of scans SD529 scan time Current scan time x2 Values equal to all constant scan setting values 1 us units x3 SD203 supports the CPU operation status only STOP PAUSE cause is fixed at 0 sa soma omar soma soma soma soma soma E App 43 App 43 APPENDICES MELSOFT Appendix 2 List of Supported Instruct
184. invalid e Error check is invalid e Items other than operation error and special function module access error in error time operation mode are invalid e Fault history and low speed program running time are invalid e Model switch setting and detail setting of I O assignment are invalid e Basic setting base power supply module extension cable is invalid Device setting Latch range is invalid e Comment of file using method setting is invalid e I O refresh setting is invalid Boot file setting All invalid SFC setting All invalid Multiple PLC setting Invalid except No of PLC Network parameters All invalid Redundant parameters 1 All invalid 1 Parameters for Q12PRHCPU and Q25PRHCPU 3 21 3 21 PLC system setting PLC file setting PLC PLC RAS setting parameter 1 0 assignment Program setting 3 SPECIFICATIONS MELSOFT 5 Monitoring When the Local device monitor non execution monitor status is selected in the local device monitor of GX Developer GX Simulator monitors the devices of the program executed at the end of each scan However when a low speed execution type program or cyclic execution type program is used GX Simulator may monitor the devices processed by the low speed execution type program or cyclic execution type program at the end of each scan Refer to 6 or 7 in this section for details When monitoring devices by s
185. ion The GX Simulator supports the A series CPU QnA series CPU Q series CPU instructions However some instructions are subject to restrictions and some are not supported Unsupported instructions are not processed NOP See Appendices Table 2 1 to 2 4 for the instructions supported by the GX Simulator Unsupported instructions are not processed NOP and the Unsupported information indicator lamp lights up on the initial screen of the GX Simulator functions Refer to the display contents in Section 4 3 Description of the Initial Window Display Appendix 2 1 A series CPU function GX Simulator Appendix Table 2 1 List of Supported Instructions A Series CPU Function 1 Sequence Instructions Class Instruction Symbol Restriction Contact instructions LD LDI AND ANI OR ORI Coupling instructions ANB ORB MPS MRD MPP La Output instructions OUT OUT T OUT C SET RST PLS PLF Master control instructions MC MCR End instructions FEND END Other instructions STOP NOP 2 Basic Instructions Shift instruction SFT P Instruction Symbol Restriction Comparative operation E i lt gt gt lt lt gt D D lt gt D gt D lt D lt D gt instructions P P D P D P P P D P D P B P B P DB P DB P B P B P DB P DB P INC P DEC P DINC P DDEC P Arithmetic operation instructions BCD BIN conversion j
186. ion 4 1 Section 4 3 Chapter 7 Appendix 4 Nov 2005 SH NA 080468ENG E Aqdgition mode FX3uCPU FX3ucCPU About the Generic Terms and Abbreviations Section 1 1 Section 1 2 Section 3 4 1 Section 3 4 4 Section 7 1 4 Section 9 2 Section 11 1 Appendix 1 3 Appendix 1 5 Appendix 2 3 Appendix 3 1 Appendix 3 2 Appendix 4 Appendix 3 1 Appendix 3 2 May 2007 SH NA 080468ENG G Appendix 2 2 Appendix 2 5 Feb 2008 SH NA 080468ENG H About the Generic Terms and Abbreviations Section 2 3 Section 3 4 6 Appendix 4 Apr 2008 SH NA 080468ENG Addition mode Q02PHCPU QO6PHCPU Apr 2006 SH NA 080468ENG F Section 3 4 1 Section 3 4 3 Section 3 4 6 Section 4 3 About the Generic Terms and Abbreviations Appendix 5 Jul 2008 SH NA 080468ENG J Addition mode FX3GCPU Correction About the Generic Terms and Abbreviations Section 3 4 4 Appendix 1 3 Appendix 1 5 Appendix 2 3 Appendix 5 Japanese Manual Version SH 080467 L This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 2004 MITSUBISHI ELECTRIC CORPORATION SOFTWARE USER REGISTRATION After agreeing to the terms of the Software License Agreement included in the
187. ions c cecceeceeeeseceeeeeteeeseeeseeeteneseeeseneseeeseaeseaeteneeeneeaes App 65 INDEX Index 1 to Index 3 About Manuals The following manuals are related to this product Refer to the following table and request the necessary manuals Related Manuals Manual Number Manual Name Model Code GX Developer Version 8 Operating Manual E nea SH 080373E Describes the online functions of GX Developer including the programming procedure printing out 13JU41 procedure monitoring procedure and debugging procedure Sold separately The GX Simulator Version 7 Operating Manual is contained in a single CD ROM as a set of the software package and manual For the user who wants the GX Simulator Version 7 Operating Manual as a single item it is available in a printed form as an option About the Generic Terms and Abbreviations Unless otherwise specified the following generic terms and abbreviations are used in this manual Generic Term Abbreviation Description GX Simulator Generic product name of the products SWnD5C LLT E SWnD5C LLT EA SWnD5C LLT EV and SWnD5C LLT EVA n indicates any of versions 2 to 6 EA indicates a multiple license product and EV an updated product GX Developer Generic product name of the products SWnD5C GPPW E SWnD5C GPPW EA SWnD5C GPPW EV and SWnD5C GPPW EVA n indicates any of versions 2 to 8 EA indicates a multiple license product and EV an updated
188. is clicked However the display immediately reappears if the cause of the error has not been removed so it appears that the LED display is not reset when the button is clicked 9 Automatic Writing of the GX Simulator Parameters and sequence programs are written when the GX Simulator is started up As the file register and device initial values are not automatically written write them to the GX Simulator using write to PLC If you do not perform Write to PLC on GX Developer of SWOD5_ GPPW E the file register device initial values used are the values which were automatically retained when the GX Simulator was ended last time 10 About Restrictions on GX Simulator Installation It is not possible to install an English version of the GX Simulator when a Japanese version GX Developer is already installed 11 Using the I O system setting file To use the I O system settings of SW5 or earlier you need to choose File Import Earlier Version of I O System File in the I O system settings to read the I O system setting file Refer to Section 5 8 5 for operation details 12 Task Bar Settings If Auto Hide is set in the Microsoft Windows Operating System task bar settings the task bar is hidden and not displayed at the bottom of the screen if the GX Developer screen is displayed at its maximum size and the GX Simulator initial screen is active The task bar is displayed when the GX Developer screen is reduced or the GX De
189. ition execution does not stop at this break point An error does not occur Operated as 0 A maximum of 16 letters are possible as a Character string constant 1 Executable on ladder ST Error is displayed and online change is to be terminated on SFC The program remains incomplete 2 The following items of Setting Options cannot be set arbitrarily They are performed based on the setting for GX Simulator The following items Step No specification used in writing Absolute step No is selected e Instruction setting for online change Selected the status that Trailing edge instructions are not executed is checked When pre setting exists before a startup of GX Simulator the setting recovers after closing the GX Simulator QnA series CPU Q series CPU Q mode QnA series CPU Q series CPU Q mode QnA series CPU Q series CPU Q mode e FX series CPU A series CPU QnA series CPU e Motion controller Qseries CPU Q mode Q series CPU A mode 1 11 1 OUTLINE OF GX Simulator MELSOFT D i ith an A Item Name ebugging Ana Debugging with GX Simulator Applicable CPU PLC Connected Not supported However only the buffer memory area in a special function block in PLC Supported function module special function block is parameter supported Positioning setting in ositioning g Supported Not supported FX series CPU PLC parameter Initialization of special
190. k No Station No PLC series Device Q Q mode DO_ QnA Mi When cutting choose Edit Cut When copying choose Edit Copy Station No PLC series Device TM 110 Q mode x10 1 3 QnA T1 2 210 Q mode DO 1 QnA M1 Pasting the cut or copied line Purpose Paste the line of the cut or copied setting No to any position Operation procedure a b c Click and select the No of the paste destination line No Network No Station No PLC series Device 1 1 0 Q mode X10 1 3 QnA T1 2 2 0 Q mode DO 3 1 QnA M1 Choose Edit Paste The line of the cut or copied setting No is pasted No Network No Station No PLC series Device a a 1 3 QnA T1 3 21 210 Q mode DO 4 3 1 QnA M1 3 1 0 Q mode X10 When data already exists on the paste destination line it is overwritten 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION 3 4 MELSOFT Inserting the cut or copied line Purpose Insert the line of the cut or copied setting No into any position Operation procedure a Select the No of the insertion destination line b Choose Edit Insert Cut Cells or Insert Copied Cells c The cut or copied setting No is inserted into the position one line above the selected line When the line of the setting No has not been
191. lalala aja 25 75 5 Fa paa MR ee FE FE FR Fe INS DEL D 1 2 DO After timing is deleted timing will shift to the left 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 5 5 Setting scan number of timing chart Purpose To set scan number of timing input from external device Operation procedure 1 Select Scan Scan Setting 2 Scan number setting screen will appear Enter scan number Scan number Settings x No of Scans 1 100 100 coa Example When Scan number is set to 5 and timing chart is set to Keep scanning from 0 to 4 will be repeated as long as the condition is fulfilled TX XX XX KD y Only 5 scans from 0 to 4 are effective Scanning from 0 to 4 will be repeated as long as the condition is fulfilled 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 5 6 Other operations 1 Reading data saved using timing chart of device memory monitor Purpose To read and use timing chart data file DAT saved with timing chart When the file is read device and timing will be automatically registered It is not necessary to re enter them Operation procedure Select File Open File Setting screen Open File lx Look in 5 Data ex l E File name sample dat Files of type Timing Chart Data File DAT y Cancel Designate optional file with
192. le 1OS Refer to Section 5 8 1 for details of operation ta 170 SYSTEM SETTINGS rr Edt Onine view Window T New Ctrl N lin Save Ctrl S F Save As b Select File Execute I O System Settings Yellow can also be clicked instead of above ta 170 SYSTEM SETTINGS ria Edit Online View Window c New Ctrl N a Open Ctri 0 m Save Ctrl S F Save As 1 CAMELSECS Data a lim Execute 1 0 System Settings Cancel 1 0 System Settings c Dialog box for confirmation will appear Click button This will execute 1 0 System settings PLC status will become RUN Are you sure I Cancel MELSOFT Series GX Simulator gt i Successfully executed the 1 0 System settings After changing I O system setting of a file being opened the file can automatically be saved by executing the I O system settings If O system setting file is not to be saved save the file under a different file name and execute I O system settings 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT d When A series QnA series Q series CPU is used execution state will automatically change from STOP to RUN mode and simulation will start When FX series CPU is used simulation is started by switching the setting in the initial screen from STOP to RUN e When GX Developer is SW2D5 GPPW E or later After the GX Simulator is started the set I O system settings will remain enabled
193. le 2 2 List of Supported Instructions QnA series CPU functions 1 Sequence Instructions Instruction Symbol LD LDI AND ANI OR ORI LDP LDF ANDP ANDF Contact instructions ORP ORF Coupling instructions ANB ORB MPS MRD MPP INV MEP MEF EGP EGF ooo Output instructions OUT OUT T OUT C OUTH T SET RST PLS PLF FF see o d E Shift instructions SFT P Master control instructions MC MCR End instructions FEND END Saas Other instructions STOP NOP NOPLF PAGE ee 2 Basic Instructions Instruction Symbol Restriction Comparative operation lt gt gt lt lt gt D D lt gt D gt D lt D lt D gt E E lt gt instructions E gt E lt E lt E gt lt gt gt lt lt gt BKCMPL _ P P P D P D P P P D P D P B P B Arithmetic operation P DB P DB P B P B P DB P DB P E P instructions E P E P E P BK P BK P P INC P DEC P DINC P DDEC P BCD P DBCD P BIN P DBIN P INT P DINT P FLT P DFLT P DBL P WORD P GRY P DGRY P GBIN P DGBIN P NEG P DNEG P ENEG P BKBCD P BKBIN P MOV P DMOV P EMOV P MOV P CML P Data transfer instructions DCML P BMOV P FMOV P XCH P DXCH P BXCH P SWAP P Program branching instructions CJ SCJ JMP GOEND Other convenient instructions TTMR STMR RAMP MTR Data conversion i
194. lears the specified line Section 8 7 2 t Sort by Ascending Sorts the settings in ascending order Section 8 7 2 Sort by DESCENING eee cecccccteces tees tessteeeseeeseeen Sorts the settings in descending order Section 8 7 2 PP AEAN Searches for the log information and or Section 8 7 4 setting information NO Starts each function of Device Manager ON Stops the function being executed AS AA Saves the log result into the specified file CICA AAA A Clears the log result Section 8 5 Section 8 5 Section 8 7 5 Section 8 7 6 3 SPECIFICATIONS MELSOFT 3 3 Devices and Instructions Supported by the GX Simulator GX Simulator operates in the following device ranges and with the following instructions CPU Type A series CPU Operates in the device range of the selected Operates with the instructions supported by the A series i CPU type Refer to Appendix 1 1 CPU Refer to Appendix 2 1 Operates in the device range of the selected Operates with the instructions supported by the QnA series QnA series CPU CPU type Refer to Appendix 1 2 CPU Refer to Appendix 2 2 EX series CPU Operates in the device range of the selected Operates with the instructions supported by the FX series i CPU type Refer to Appendix 1 3 CPU Refer to Appendix 2 3 Operates with the instructions supported by the A series Operates in the device range of the CPU Refer to Appendix 2 1 However motion dedicated corresponding
195. loper and modify the device number and SV in timer or program step counter OUT instructions 2 The index qualification used for the label number of the pointer P added at the start of an instruction jump destination or for the label number of the interrupt pointer I added at the start of an interrupt Checked at RUN program for the following gt STOP or at instructions the execution of CJ SCJ CALL JMP LEDA B dl aaa FCALL LEDA B BREAK MISSING END INS MA is no END FEND instruction in Write END in the end of main E main program program A sub program has been allocated in Eso at en Write END in the end of the sub gt STOP the parameters and there is no END program FEND instruction 11 1 head 11 TROUBLESHOOTING MELSOFT Error Message Table cont Error Code Details Error Code a E M Error Description and Cause Remed AA D9008 1 D9091 x 1 P y CAN T EXECUTE P Remove the duplicated number of pointer P with the destination head and correct so that the number is not duplicated The label of the pointer P specified by CJ SCJ CALL CALLP JMP Read the error step using GX LEDA B FCALL and LEDA B Developer check the step and BREAK instructions is not specified insert the destination pointer P prior to the END instruction 1 There is no CALL instruction for the RET instruction in the program Ther
196. ming chart 5 8 Initial WINGOW 0 ceeeceeeceeeeeeeeeeeeeteeeeneeetees 4 5 Instruction list A series CPU eccceccceeeceeteteeeetteeeees App 44 FX series CPU cccesceeseeeeteeeeeteeeees App 48 Q series CPU una App 55 QnA series CPU ccceceeeeeeteees App 46 L Log display ici 8 15 M Monitor starting Stopping eeeeeeeeeeeee 7 23 Motion controller Restrictions and cautions 000 3 20 Index 2 O Online Change 2 c ccceeeeeeeees 1 10 3 1 Operation procedure COMMON ine p aa a anaa 4 1 Device memory MONItOl eee eee 7 2 VO system SE INYS oooooncoinnnnnnnnnnnnncncccons 5 4 Serial communication function 6 2 TIMING CHALK eee aaa a 7 15 Timing chart format input screen 5 10 ODIOM sica ca 9 6 Other station device setting 8 5 Qutini error Teer rere erreeepeeren ere 1 1 Q Q series CPU Device liSt ini na App 35 List of supported instruction App 55 Restrictions and precautions 3 21 QnA compatible 3C 4C frame commands 6 9 QnA series CPU Device list c cceeeceeeeeeteteteeeeseeeees App 5 List of supported instruction App 46 Restrictions and cautions 3 14 R Restriclions Lae a bis 3 9 A series CPU ooconcccioccconcccconoconnconnncnnancnnnnos 3 12 COMMON daen danin 3 9 FX series CPU c
197. module buffer memory Refer to the GX Developer Operating Manual It is not possible to save to and read from the buffer area unless I O assignments are made 3 Enabling and Disabling the Parameter Setting Items Some GX Developer parameter settings are disabled by the GX Simulator even if data is set for them The settings disabled by the GX Simulator are shown below Parameter Setting PLC name All disabled PLC system Disabled except for Output mode at STOP to RUN and Common pointer No e The corresponding memory for the file register is disabled e The comment file used in a command is disabled e The corresponding memory for the device initial value is disabled e The corresponding memory for the file for local device is disabled e Error Check is disabled PLC e Only Operation error and Special function module access error in the PLC file PLC RAS operating mode when there is an error are enabled e Annunciator display mode is disabled e Break down history and Lowspeed program execution time are disabled parameter 1 0 assignment Standard settings base Power supply unit Increase cable are all disabled Device Latch Start is disabled Program All valid Boot file All disabled SFC All disabled Network Parameter All disabled 4 Monitoring When the Local device monitor non execution monitor status is selected in the local device monitor of GX Dev
198. n 4 1 0 system settings Input X combined use with extensi n X000 to X177 128 points O O Total number of points for Output Y combitied use a SORSI n 000 to Y177 128 points O O General mo to M499 500 points O O 8 Auxiliary relay M Latched 1 M500 to M1023 524 points O O oO 3 Special M8000 to M8255 156 points O O a Initial 1 so to S9 10 points O O General 1 s10 to S499 490 points O O State S Latched 2 500 to 899 400 points O O Annunciator 3 S900 to S999 100 points O O Timer T Word device pairs Nesting N Pointer P Decimal constant K Hexadecimal constant H App 15 Counter C Data register D 32 bits when used in O O 16 bit general 1 16 bit latched 2 16 bit special 16 bit index For master control For CJ CALL branch 16 bit 32 bit 16 bit 32 bit NO to N7 8 points PO to P63 64 points 32768 to 32767 2147483648 to 2147483647 HO to HFFFF HO to HEFFFFFFF OJOJOJ OJO x x O O O O 0 O App 15 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions Remarks Serial communication function Device backup Device Manager Octal number Actual input is invalid Octal number Actual output is invalid Area not backed up for interruption However t
199. n be executed valid setting at a time to 25000 point or less for device value input on I O system setting dialog box Refer to Section 5 6 for details 20 Display of PLC CPU status When the read SD device from PLC CPU is written to GX Simulator the PLC CPU status before the writing will be displayed in the monitor status dialog box 1 Therefore the PLC CPU status display may differ from the execution status of GX Simulator immediately after the SD device write to the GX Simulator The display will not be modified until the execution status of the GX Simulator is changed When the SD device read from PLC CPU is written to GX Simulator in STOP status the display changes as the following GX Simulator the Initial Screen GX Developer the monitor status dialog box tin LADDER LOGIC TEST TOOL Bie Monitor status E Start Tools Help 0 800ms RUN Local device monitor not executed Q06H RUN ERROR USER INDICATOR RESET STR RESET STEP RUN m l 0 SYSTEM RUN PLC CPU status RUN Execution status STOP x1 The PLC CPU status in monitor status dialog box is displayed based on the information of SD device 3 SPECIFICATIONS MELSOFT 3 4 2 Restrictions and cautions for the A series CPU functions 1 Special function module Compatibility The GX Simulator does not support the special function modules The special function module buffer memory area capacity is 16 k points X 64
200. nal GX Simulator 1 Devices S Jn X Jn Y Jn B Jn SB Jn W Jn SW I BL and TR are not supported 4 Device applicable as local device 5 DX DY can be specified 6 Contact Coil Current Value can be set Representations are as follows Timer TS TC TN Retentive timer SS SC SN However STS STC STN can also be set Counter CS CC CN 7 On the Entry Device tab and timing chart bit data digit specification word data bit specification and indexing are available Indirect designation is unavailable 8 On the Other station device setting tab only T C can be represented In the device control setting or device value check setting only Contact Coil Current Value refer to 6 for representations can be represented 9 The function input FX function output FY and function register FD of only the host station are supported App 36 App 36 APPENDICES MELSOFT Appendix Table 1 18 List of Devices Supported by the GX Simulator cont Other station device range Number of points Host station device range Number of points Setting range Device 1 Retentive timer ST 4 Counter C 4 CO to C1023 1024 points CNN CO to C32767 32768 points Function register FD 2 9 FDO to FD4 5 points Fixed FDO to FD4 5 points From STO on none Changeable STO to ST32767 32768 points Q 2 From RO on none RO to R32767 32768 points File register R ZR Changeable 3 Feroe From ZRO
201. nccnnnccnicccnicnnos 5 25 Devices and instructions 3 8 Ending Device memory MONItOL eee 7 3 GX Simulator iiaa 4 7 VO system SettingS eeceeeeeeeeeeeeeneees 5 5 Serial communication function 6 3 A A 7 15 Entty dEV CE toca aaa 7 11 Entry device Memory s s s 7 11 Index 1 Error code liStS oooooonnnnnnnnnnnnnnncncccccnnninnnno 6 11 A compatible 1C frame oooococincccnocinocccnno 6 11 Ind QnA compatible 3C 4C frame 6 12 Error Message 2 ccecceeeeeeeeeeeeeeeeeseeeeesaees 11 1 Export log cidad 8 25 F FRUTOS cooccococcccoccccconcconnncnonncnnnnnnnnnnnnnnnnnnnncnns 1 2 Function Added to Previous Version App 65 Function list esee 3 3 FX series CPU Device MIS tic iii iii App 11 List of supported instruction App 48 Restrictions and precautions 3 17 G GX Developer operations eeee 4 3 H Handling precautions 0 0 eeeeeeeeeeeeeneeees 3 26 I I O system settings Condition area ooooococincccncccciocccincccinncnnns App 57 Configuration of screen s es 5 6 Cutting copying pasting set No 5 31 List of Devices Usable with the I O System Settings iva iaa App 57 Operation procedure coccociccccicociccccconccninnn 5 4 OUUIMO sees cias iii 5 1 Reading setting files of SW5 or earlier 5 35 Starting and Ending 5 1 Setting file Operation eects 5 29 Using ti
202. nctions Monitor 1 0 system solia Device Device Remarks A communication function 5 settings function backup manager Te ferfe fe fe d WES SA es ee ee ee Refer to 3 Special register list for the supported special registers 1 Device is not supported x 2 Remote I O included 3 On GX Developer of SW2D5 GPPW or earlier data can be written to the file registers of only block No 1 to 48 4 A2ZNCPU operates in the device range of the A2NCPU S1 5 Bit data digit specification word data bit specification and index qualification are available In device memory monitor however they are limited to the Entry Device tab and Timing Chart Contact Coil Current Value can be set Representations are as follows Timer TS TC TN Counter CS CC CN Specify all internal relays M L S as M Example Specify L1000 as M1000 App 2 App 2 APPENDICES MELSOFT 8 On the Other station device setting tab only T C can be represented In the device control setting or device value check setting only Contact Coil Current Value refer to 6 for representations can be represented 9 How to enter the extension file register data Entry in ERORO format is applicable to only Device Batch monitor Entry Device monitor Timing Chart Display and Device Manager lt Extension file register gt Block No For block No 2 and address K30 enter ER2 R30 Address 10 How to enter buffer register data
203. nds The following are the QnA compatible 3C 4C frame commands usable with GX Simulator Max Number of Points Function ommend Q series CPU F series Sub command QnA series CPU Q mode 0401 00011 3952 bits 7904 bits 1402 94 bits 188 bits 192 words Test Random write Word unit 1402 00 00 192 words os 192 words Monitor data registration Word unit 0801 0000 192 words osoz 0000 Multiple block batch read 0406 00 0 at re Multiple block batch write 1406 000 ig ibi Intelligent function 0601 0000 960 words 1920 words module PLC CPU Loopback test 0001 it uni Batch read A 480 words 960 words Word unit 0401 00 00 480 words 960 words 1401 0001 3952 bits 7904 bits Batch write 480 words 960 words Word unit 1401 0000 480 words 960 words 192 words Random read Word unit 0403 00 0 0 192 words Device memory i 1 Unusable when the PLC series is the QnA series CPU 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 7 Communication Status The following are the statuses displayed in Communication Status on the Serial Communication Function screen Communication Status shows the latest status at top and can display up to 100 communication logs Displayed Status Can not connect A COM opening error occurred ES ok ok o The status is displayed with the error code that indicates the definition of the error that occurred COM Open Completed
204. ng direction ON C218 down of counter OFF C218 up M8219 Counting direction ON C219 down of counter OFF C219 up Counting direction ON C220 down sara OFF C220 up paella ei sele Counting direction ON C221 down uci OFF C221 up Salsa Meroe od Counting direction ON C222 down ang OFF C222 up sele te et ed se Counting direction ON C223 down eee OFF C223 up peas ee Salo Counting direction ON C224 down os OFF C224 up BeBe rrr Counting direction ON C225 down ees OFF C225 up Pelee he ou lz e ee Od Counting direction ON C226 down mee OFF C226 up pe Pl en e tata el Counting direction ON C227 down La re o ol ololo Counting direction ON C228 down ae OFF C228 up pa ele 0 6 ere Counting direction ON C229 down ii OFF C229 up ee ee he ees e es Counting direction ON C230 down co OFF C230 up isso palio bee M8231 Counting direction ON C231 down of counter OFF C231 up Counting direction ON C232 down eee OFF C232 up e oS els elo Counting direction ON C233 down noe OFF C233 up Att ro Counting direction ON C234 down ee OFF C234 up pel el e tere e Unconnected I O Tume ON nuen M8316 designation error designating an unconnected I O Instruction Turns ON when M8329 execution instructions abnormally abnormal end ended O This device or function is supported by the actual PLC This device or function is not supp
205. ng values from 0 to 255 using the GX Developer device test functions 5 The set constant time becomes the time for one scan x6 FX3u FX3uc 16000 App 34 App 34 APPENDICES MELSOFT Appendix 1 4 GX Simulator for Q series CPU A mode functions 1 Device list Since the devices of the Q series CPU A mode are the same as those of the A4UCPU refer to A4U in Appendix Table 1 1 List of Devices Supported by the GX Simulator 2 Special relay list Since the special relays of the Q series CPU A mode are the same as those of the A series CPU refer to Appendix Table 1 2 List of Special Relays Supported by the GX Simulator 3 Special register list Since the special registers of the Q series CPU A mode are the same as those of the A series CPU refer to Appendix Table 1 3 List of Special Registers Supported by the GX Simulator Appendix 1 5 GX Simulator for Q series CPU Q mode functions 1 Device list Appendix Table 1 18 List of Devices Supported by the GX Simulator Device 3k 1 Host station device range Settina range Other station device range evice Number of points g rang Number of points XO to XI FFF 6192 points Fixed YO to YIFFF 6192 points Changeable MO to M32767 32768 points LO to L32767 82768 points FO to F32767 32768 points Changeable VO to V32767 32768 points Fixed 5B0 10 SB7FFF 32768 points Changeable BO to B7FFF 32768 points Special relay SM SMO to SM2047 2
206. nge Lere AS Cxi C x2 C x5 Rig C x20 310 300 290 280 270 260 250 240 230 220 210 200 Ko 70 1 cco This indicates that when both Y70 and CO turned OFF TN2 started count 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION The Device Manager function is designed to facilitate the offline debugging of the user application using the MELSOFT product This function enables the user application to be debugged without a network being configured or program setting being changed for the actual PLC ls Network No 3 Station No 2 a E MELSOFT product Flag A User application Public Sub Command 1 Click End Sub Device read write GX Simulator Device control setting D10 Maximum value Minimum value a Device value check setting D20 Minimum Maximum R A value 120 value 200 Device memory Other station device setting 120 200 z NG OK NG Host station Other station 1 1 2 1 l x M D xY D Other station 3 2 oa D Y Xx 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION
207. ns to write values between 0 and 255 to these registers for testing 9 High speed counter GX Simulator do not support high speed counter 10 SORT SORT2 Instruction The SORT SORT2 instruction is executed in the actual PLC over multiple scans However it is executed completely in a single scan in the GX Simulator and M8029 complete flag operates immediately 11 SFC Programs Testing of SFC program for FX series CPU described as STL instructions is possible with GX Simulator of SW2D5__ LLT E or later version SFC programs for FX series CPU corresponding to GX Developer later than SW5D5C GPPW E can also be tested with GX Simulator of SW2D5L_ LLT E or later version However when debugging is to be executed with step execution from SFC display screen of GX Developer GX Simulator of SW5D5C LLT E or later version must be used 12 Handling Keep Devices Contents are maintained at a GX Simulator STOP Contents are cleared when the GX Simulator is quit 13 Handling Non Keep Devices Contents are cleared at a GX Simulator STOP or when the GX Simulator are quit 14 Memory Clear Execute to clear all user data written to the GX Simulator and initialize Also execute this function when unstable GX Simulator operation occurs 3 SPECIFICATIONS MELSOFT 15 Quick startup of the GX Simulator with the FX series CPU When the GX Simulator is used combining SW5D5C LLT E or later and SW5D5C GPPW E or later the GX Developer executes qu
208. nstructions App 46 App 46 APPENDICES MELSOFT Appendix Table 2 2 List of supported instructions QnA series CPU functions cont 3 Applied Instructions Instruction Symbol WAND P DAND P BKAND P WOR P DOR P Logical arithmetic instructions BKOR P WXOR P DXOR P BKXOR P WXNR P DXNR P BKNXR P Atk S ROR P RCR P ROL P RCL P DROR P Rotation instructions DRCR P DROL P DRCL P oe SFR P SFL P BSFR P BSFL P DSFR P Shift instructions DSFL P PE ss Bit processing instructions BSET P BRST P TEST P DTEST P BKRST P SER P DSER P SUM P DSUM P DECO P ENCO P SEG P DIS P UNI P NDIS P NUNI P SORT DSORT are WTOB P BTOW P MAX P MIN P DMAX P executed one scan DMIN P SORT DSORT WSUM P DWSUM P FOR NEXT BREAK P CALL P RET FCALL P Structural instructions ECALL P EFCALL P FIFW P FIFR P FPOP P FINS P FDEL P FROM P DFRO P TO P DTO P A BINDA P DBINDA P BINHA P DBINHA P BCDDA P DBCDDA P DABIN P DDABIN P HABIN P DHABIN P DABCD P DDABCD P LEN P STR P DSTR P VAL P DVAL P ESTR P EVAL P ASC P HEX P RIGHT P LEFT P MIDR P MIDW P INSTR P EMOD P EREXP P SIN P COS P TAN P ASIN P ACOS P ATAN P RAD P DEG P SQR P EXP P LOG P BSQR P BDSQR P BSIN P BCOS P BTAN P BASIN P BACOS P BATAN P LIMIT P DLIMIT P BAND P D
209. nt K Hexadecimal constant H App 1 A2U S1 A2US S1 A2USH S1 A2C A2AS S1 A2CJ A2N S1 4 A2AS S30 A1S S1 A2AS S60 A3U A4U Input X XO to X1FF XO to XFF X00 to X1FF X00 to X3FF XO to X7FF X00 to X3FF X00 to X7FF X00 to X1FFF P 512 points 256 points 512 points 1024 points 2048 points 1024 points 2048 points 8192 points Y Oto Y1FF YO to YFF YOO to Y1FF YOO to Y3FF YOto Y7FF YOO to Y3FF YOO to Y7FF YOO to Y1FFF 512 points 256 points 512 points 1024 points 2048 points 1024 points 2048 points 8192 points MO to M2047 2048 points MO to M8191 8192 points Usable as L M S by making setting Usable as L M S by making setting M9000 to M9255 256 points a a DO to D1023 1024 points DO to D6143 6144 points 6102 Dan D9000 to D9255 256 points WO to W3FFF 1024 points WO to WFFF 8192 points tel PHN RO to R8191 8192 points Block 1 to 64 8k points 3 Module start address Um When host station is specified m 0 to FC 16k points when other station is specified m 0 to 3F 16k points Buffer register address Gn n 0 to 16383 16384 points AO A1 2 points Z V 2 points Z Z1 to Z6 V V1 to V6 14 points NO to N7 8 points PO to P255 256 points K 2147483648 to K2147483647 HO to HFFFFFFFF App 1 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with fu
210. nts SD535 Maximum scan time assigned 1 us units No of SW points File register SD304 a D412 Number of counts in File register block File register block SD414 2n second clock a A Self diagnostic error 2n second clock units SD1008 Self diagnostic error CPU operation an Low speed scan SD1015 CPU operation status counter Counted SD1017 Minimum scan time Scan time Executed program Program execution number type SD1018 f Scan time SD510 Low speed program Current low speed Scan time 10 ms units number execution file name SD1019 Maximum scan time x2 1 it A Present scan time ling units SD1021 Scan time Scan time x2 1 ys units SD1022 Number of counts of SD522 Initial scan time TRECONECOHINSE i sscand units x2 1 ms units Extension file Initial scan time SD1035 ae 2 1 us units Number of annun Number of annun 901124 ciators detected ciators detected ae Minimum scan time us cal SD1125 2 1 us units x2 1 ms units SD1128 Number of annun Number of annun D527 Maximum scan time Mean SCAR ime SD1129 ciators detected ciators detected x2 Current low speed 1 ms units SD1132 scan time Current scan time 1 Value derived from the constant scan setting value and x2 1 us units number of scans x2 Values equal to all constant scan setting values x3 SD203 supports the CPU operation status only STOP PAUSE cause is fixed at 0 Appendix Table 1 6 List of Special Registers Supported by the GX Simulator cont
211. o the serial communication module Chapter 6 unction computer link module Conducts testing by monitoring the device memory status Monitor test Displaying the ON OFF chart of the devices Chapter 7 Forcing the devices ON OFF and changing present Functions values executed from Function that allows the user application operation to be the GX checked by setting the external input assumed device Device manager f Simulator finci value change patterns and write enabled device ranges Chapter 8 unction menu Function that allows access from the user application using the MELSOFT product to the other station devices Reads the saved device memory buffer memory data and Tools Chapter 9 makes option setting Function equivalent to Issues a WDT error if a sequence program is written in WDT such a way that it runs an infinite loop Error detail display Displays detailed error information at occurrence of an function error Chapter 4 Unsupported instruction Lists the instructions which are not supported by the GX list display function Simulator if they are included in a sequence program 3 SPECIFICATIONS MELSOFT 3 2 Function List This section provides the function list of each screen 1 Initial screen function list Star Reference H Monitor Function Device Memory Monitor Monitars the device memory Section 7 1 Timing Chart Display
212. occurred error occurred SD73 SD74 Annunciator Annunciator detected detected number SD4 Error information Error information class SD75 S number class code SD5 SD76 SD6 SD77 SD78 8 SD79 9 SD200 Switch status CPU switch status Error common Error common CPU operating CPU operating status 229 information information SD203 3 n D7 NJN gjg SD11 Clock data SD12 SD210 Clock data year month SD211 Clock data Clock data day hour SD15 SD16 ie eine SD19 Yo Error independent Error independent assigne Set SD294 No of B points oz F F assigned Device assignment No of F points SD295 a A SD298 No of S points SD65 assigned SD13 SD14 SD212 Clock data Olek Hala minute second Clock data SD17 SD213 Clock data _ day of week SD18 DA information information 3D292 No of M points SD22 assigned SD23 SD293 No of L points assigned SD26 Annunciator E SD63 quantity Annunciator quantity SD297 No of V points assigned spee Annunciator Annunciator detected SD299 por pee detected number assigned SD67 table number SD68 SD69 App 9 App 9 APPENDICES MELSOFT Number D300 No of ST points SD532 Minimum low speed Minimum low speed assigned scan time scan time 1 ms units SD301 No of C points SD533 Minimum scan time assigned 1 us units sD302 Device assignment No of D points SD534 Maximum low Maximum scan time assigned x2 speed scan time 1 ms units SD303 Nos OrWy poi
213. oints i CO to C15 16 points Counter C i C16 to C199 184 points ounter it bidirecti C200 to C219 20 points it bidirecti C220 to C234 15 points i DO to D127 128 points Data register D 16 bit latched 2 D128 to D255 128 points 32 bits when used 16 bit latched 3 D256 to D7999 7744 points in pairs 16 bit special D8000 to D8511 512 points 16 bit index VO to V7 ZO to Z7 16 points Data register R i RO to D23999 24000 points Q 2 gt o a O x X 1JO1O JO JO JO JO JO JO O O JO JO JO JO JO JO JO JO JO JO O Word device lo uo Ja a J gt E Is Q O N N jo o O 3 v Z e 9 e a ololololo 2 lo a 15 3 0130 E a EE 31 gt A S la lo lo c c oO 10 Q 5 213 2 o l la lo po a 10 D D 3 MIX o 5 a 3 a 3 o la la o w on o o 1D In S lz Cc o Cc D y Q Q S o 2 2 o lo gt o o 5 15 lt js o D 2 g 0l1 o x y S 7 0 7 O 5 o OD a 0a w x x gt x a ll 2 w 5301573 o 30 5 O O 5 5 O JO JO Nesting N NO to N7 8 points Pointer P PO to P2047 2048 points 16 bit 32768 to 32767 Decimal constant K 32 bit 2147483648 to 2147483647 Hexadecimal constant HO to HFFFF H 32 bit HO to HEFFFFFFF x O o ja jo T oy O 3 Cc jD ee a O g ja gt is T E r l8 a o 2 a in o 5 Je o 5 App 25 App 25 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant
214. on for IST command Start pulse M8042 instruction for IST command Home position return complete instruction for IST command OFF Stop ON Transition start ON IST command start instruction ON IST command home position return instruction ON Home position OFF Home position return not complete All output reset ON Reset disabled M8045 disabled for IST OFF Reset enabled Home position condition for IST command command O O O M8046 STL state ON if any of SO to S899 operation operates M8047 STL monitor ON D8040 to D8047 enable enabled Annunciator ON if any of S900 to eos a a aaee k meoo Sranie neructon Orr peossenanea O o o enable instruction OFF D8049 enabled occurred OFF No operation error Holds M8067 status M8068 Operation error latch RAM file register ON Use a Sang a aeaa BKCMP ON Comparison result M8090 instruction block all matched comparison OFF Comparison result signal unmatched ON No change M8091 ee OFF Storing 00H NULL App 30 App 30 APPENDICES MELSOFT Appendix Table 1 16 List of Special dt Supported by the GX Simulator cont FX2 FXin FXon FXsu o ame lid a rx es Bee Pas Pate ce Pe Be M8160 XCH SWAP ON 8 bit conversion B function setting OFF Normal mode 8 bit processing ASC ASCI HEX M8161 mode processing method Change number of FROM TO Trans
215. on none ZRO to ZR1042431 1042432 points Module start address Um Module start address Um m 0 to FE 255 points f m 0 to FE 255 points Buffer register Um Gn 3 A Fixed Buffer register address Gn Buffer register address Gn n 0 to 65535 65536 points n 0 to 65535 65536 points Index register Z ZO to Z15 16 points ZO to Z15 16 points ae points e points App 37 App 37 APPENDICES MELSOFT O Compatible x Incompatible Irrelevant Compatibility with functions function 7 settings function backup Manager Monitor I O system Serial communication Device Device Remarks No operation is performed in real time High speed retentive timer can be set in 0 1ms units by parameter 1ms units for conventional GX Simulator 1 0 assignment setting of parameter is required a Valid for only multiple PLC setting a Up to 16 characters per instruction ie 3 x4 x5 x6 x7 x8 x9 Devices S Jn X Jn Y Jn B Jn SB Jn W Jn SW I BL and TR are not supported Can be monitored by the device memory monitor function Cannot be monitored by the timing chart display function If indexing is added to the module number e g UOZO GO in the ladder it is ignored and processed as UOIGO Device applicable as local device DX DY can be specified Contact Coil Current Value can be set Representations are as follows Timer TS TC TN Retentive timer
216. on exchange 5 24 Device entering deleting 5 13 Device value input cceeeceeeeeeeetees 5 25 File operations n ea a ea 5 29 Operation procedure ccceeeeees 5 10 SCAN NUMDEL c cccecceseeseeeeeeeees 5 12 5 21 Simulation starting stopping 5 27 Timing setting editing 00 eee eect 5 15 Timing Chart input 5 8 Timing data saving ceeeeeeeeeeereteetteeeteees 7 25 Timing setting editing Bil d VICC micas aio 5 15 Word COVICC eeeeeeteeneeeeeeeeeeenteenreereees 5 17 Transfer Se tup c ccccccceeeeeeeeeeeseeeeeessaees 7 4 Troublesho0tin9 ococnconicnnnnnnncononcocanncinnnos 11 1 Index 3 Index 3 Microsoft Windows Windows NT Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries Pentium is a registered trademark of Intel Corporation in the United States and other countries Other company and product names herein are either trademarks or registered trademarks of their respective owners SPREAD Copyright C 1998 Farpoint Technologies Inc SH NA 080468ENG J GX Simulator Version 7 Operating Manual MODEL SW7D5 LLT O E ODE 13JU51 SH NA 080468ENG J 0807 MEE 2 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
217. or 1 Make the Project to Create the Sequence Program To create a new project select Project New project from the GX Developer menus and make the required settings To read an existing project select Project Open project from the GX Developer menus and select the project w MELSOFT series GX Developer AE View Online Diagnostics Tools Help New project Ctrl N Open project Ctrl 0 GSE project Save Delete project JENY muU oy 2 Create the Sequence Program 3 On the GX Developer side make parameter settings for I O assignment for A QnA Q series CPU functions program setting for QnA series Q series Q mode CPU functions etc Always do the program settings for the QnA series CPU function If you do not make the program settings and the GX Developer is of version later than SW2D5_ GPPW E the following will occur 1 The ladder sequence list of the active screen of GX Developer will be written 2 The sequence program will not be written if the active screen is not a ladder list screen or if there are no active screens 4 COMMON OPERATIONS FOR THE GX Simulator 4 5 MELSOFT When making I O assignment on the lt l O assignment gt tab screen in the PLC Parameters dialog box of GX Developer set the types and the numbers of points of all modules SP UNIT LAY ERR occurs if any of the following settings has been made 1 Any o
218. ore information is generated older error information is deleted At exit from Device Manager the displayed log information is deleted When saving the log information export the log refer to Section 8 7 5 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION 8 7 Other Operations MELSOFT 8 7 1 Performing the file operation of setting data 1 2 Creating a new file Purpose Create a new setting data file other station device setting device control setting device value check setting Operation procedure Choose File New on the Device Manager screen la Device manager File Edit Operation New Ctrl N Open Ctri O Save Ctri S Save As Print Ctrl P Exit Opening the existing file Purpose Open the saved setting data file Operation procedure Choose File Open on the Device Manager screen File Edit Operation Ctrl M Ctrl O New Save Ctr S Save As Ctrl P Setting screen A 21x Look in a Data y e c E a Datal DMS a Dataz Dms a Data3 DMS File name Data2 DM5 Files of type Device manager setting file DMS y Cancel A Specify any folder in Look in click the file to be opened and then click the button For Files of type only Device manager setting file DMS is available 8 17 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION ME
219. ored in timing chart Operation procedure 1 Select Device Enter Device evice F2 Delete Device Del 2 The dialog shown below will appear After setting each item click button Maximum 64 devices can be entered lt Selection selected gt lt Key input selected gt Device p Device Selection C Key Input C Selection Key Input k m Directly enters x0 l Selects device name m device name Y Device Number to be entered M Hp Designates device No Display Format 3 Display Format Value Value Dec ful Dec fd View Selects display format vou 16 Bit Integer y of device to be displayed 16 Bit Integer 7 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 2 Deleting registered device Purpose To delete registered devices Operation procedure a Select the device to be deleted For example X0 is deleted here File Device Monitor Monitor Status Monitor EEREN G b Select Device Delete Device Device has been deleted 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 5 Starting Stopping monitoring 1 Starting monitoring Purpose To start monitoring the timing chart Operation procedure After registering device select Monitor Start Stop while monitor is stopped You can also click
220. orrcoeno ricerca oeste Conducts a device test Section 7 1 7 3 SPECIFICATIONS MELSOFT 3 Timing Chart function list Reference Open Files evict a di Reads the saved monitor device data Section 7 2 6 Save lA dd Writes the device data currently Section 7 2 8 monitored r Save Timing Data oococcinnnnnccnonnciciccnnonccccnnnnnn Saves as the timing chart data file Section 7 2 6 AE iv ease Exits from Timing Chart Section 7 2 2 Device fp Enter DEVICE sorrera doll doi Registers the devices to be monitored Section 7 2 4 Delete Device oia iaa Deletes the selected devices Section 7 2 4 F ListDevic taa da Lists the devices being monitored Section 7 2 8 Prope ici Change the display format of the Section 7 2 8 selected device Start Stop aale eiaa eed Starts stops monitor Section 7 2 5 Sampling periOd ooooocninnccccnonocccnnncnonononnccnnnos To change the Data accumulation Section 7 2 7 interval 3 SPECIFICATIONS MELSOFT 4 1 0 system setting screen function list Reference NOW dancea eee dde Creates the new I O system setting file Section 5 8 1 OP tir taa iia Opens current I O system setting file Section 5 8 1 DAVE ind iria nda Overwrites and saves file being opened Section 5 8 1 DAVOS td eli Gives the name to the file being opened Section 5 8 1 and saves it Execute I O System Settings Executes the I O system setting Section 5 7 Cancel I O system setting
221. orted by the actual PLC A This device is supported by actual PLCs with a clock function For the GX Simulator always ON regardless whether the actual PLC has a clock function App 32 App 32 APPENDICES 3 Special Register List Appendix Table 1 17 lists the the FX series CPU functions MELSOFT special registers supported by the GX Simulator for See the FX series actual PLC Programming Manual for details about the special registers Appendix Table 1 17 List of Special Edit Supported by the GX Simulator D8000 Watchdog timer 200 ms 1 FX FXan FXon FX3u i e Pe B ce ie system version Maximum value for D8002 Memory capacity mod l D8004 Error M number M8060 to M8068 D8006 Low battery voltage 30 0 1 V units detection level D8010 Scan present value 0 1 ms units 3 D8011 Miniu scan time 0 1 ms units 3 time D8013 Seconds Operates as 1 second Hoes Z register contents D8029 V register contents V register contents 08030 Analog volume 1 4 T D031 Analog volume2 4 7 D8039 Constant scan time inital alte 109 ms O O O O 1 ms units 5 D8040 ON state number 1 STL monitor contents OJO ON state number 2 ON state number 3 ON state number 4 ON state number 5 ON state number 6 ON state number 7 D8047 OJOJOJOJO ON state number 8 STL monitor contents O D8049 ON stale minimum STL monitor contents number D8067 Operation error E
222. package please access the MELFANSweb Home Page http www MitsubishiElectric co jp melfansweb and make a software user registration User registration is free of charge You can also make a registration by faxing or mailing the Software Registration Card packed with the product 1 Software Registration You can make a software registration by accessing the MELFANSweb Home Page or faxing or mailing the Software Registration Card packed with the product After you have made a software registration we will register the user and send the Software registration confirmation together with the user ID We will also provide the latest information such as the new product release version upgrade information and event information by direct mail 2 Notes on Contact Please ask questions concretely and clearly using terms listed in the manual When requesting us to solve a problem provide us with detailed information for reproducing the problem In addition contact the respective manufacturers when asking questions about the operating system OS or the other vender s software products User registration is valid only in Japan INTRODUCTION Thank you for choosing the Mitsubishi MELSOFT Series Integrated FA software Read this manual and make sure you understand the functions and performance of MELSOFT series thoroughly in advance to ensure correct use CONTENTS SAFETYPRECAUTION Siete cta cant niece eds ieee ee ee asc eee ee dee eh eee A
223. past states of devices area saved By operating the scroll bar you can confirm the past states of devices 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 8 Status display Shows the states of the monitor devices 1 2 ta Timing Chart olx File Device Monitor C Auto Manual Monitor Status Device Entry y Chart Display Range ies l 2 ll F x1 CX2 CXS C X10 X20 x0 Y70 Ya cna EOS pe e nhc hci EEES EA TCO F Tee l TE HN g 3 4 x1 denotes that the corresponding device turned from OFF to ON x2 denotes that the corresponding device turned from ON to OFF 3 denotes that the value of the corresponding device remains unchanged 4 denotes that the value of the corresponding device has changed 7 MONITORING TESTING DEVICE MEMORY MONITOR FUNCTION MELSOFT 7 2 4 Entering Deleting device to be monitored 1 Entering device to be monitored a Automatic setting Purpose Automatically enters device used with sequence program Operation procedure 1 Make sure that device entry is set to Auto If set to Manual switch to Auto pretereneney Device Entry 2 Select Monitor Start Stop to set to monitor mode You can also click button instead of above Start Stop Sampling Period 3 Device displayed on GX Developer screen will automatically be registered as device and monitoring will start Maximum 64
224. pecifying the program in the local device monitor of GX Developer GX Simulator monitors the local devices of the specified program regardless of whether a scan execution type program exists or not 6 About operation of Low speed execution type Programs Regardless of the constant scan setting or setting of the low speed execution type program execution time the GX Simulator always executes the low speed execution type programs after the scan execution type programs The program execution sequence is show below This sequence is identical during step operation A Initialization execution type Scan execution type 1 Scan execution type 2 Assume 1 scan uses 100 ms then execution of 5 scans 500 ms Changing of a reference time is possible by changing Scan execution type N the constant scan time Refer to Section 3 4 1 1 Low speed type i v During each scan all scan execution type programs are executed before one low speed execution type program is executed Consequently if N low speed execution type programs are set N scans are required to execute them all 1 scans 2 scans 3 scans 4 scans Scan execution type oui A A HA Low speed execution type program A a Low speed execution type program B Since a low speed execution type program is always completed within one scan the monitor value of SM510 is always OFF 3 SPECIFICATIONS MELSOFT 7 About operation of cyclic exec
225. pplication to the other stations With this setting the operation of the user application for accessing the other station devices can be checked 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 1 Device Manager Operation Procedure The following shows a Device Manager operation procedure Start Refer to Section 8 2 Is access made to the other stations Other station device setting Set the other station devices to be used on the user application Refer to Section 8 3 1 Device control setting Device value check setting Set the change of the device to be Set the valid range of the device to used on the user application be used on the user application Refer to Section 8 4 1 Refer to Section 8 4 2 Start simulation Refer to Section 8 5 Log display Display the result of access to the host station other station devices Refer to Section 8 6 Is an error displayed in the log Correct the user application Start simulation Refer to Section 8 5 End Refer to Section 8 2 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 2 Starting Exiting Device Manager 1 Starting Device Manager Purpose Start Device Manager Operation procedure Choose Start Device Manager on the initial screen leis Start Tools Help Monitor Function I O System Setting
226. product MX Component Generic product name of the products SWnD5C ACT E and SWnD5C ACT EA n means any of Versions 1 to 3 EA means a multiple license product MX Sheet Device memory Generic product name of the products SWnD5C SHEET E and SWnD5C SHEET EA n means Version 1 EA means a multiple license product Locating and correcting errors in a sequence program to create a correct program Areas to store device data in the GX Simulator including inputs X outputs Y relays M timers T data registers D etc Monitor Monitoring to determine the ON OFF status of bit devices or the PV of word devices Simulations Timing chart WDT error Test execution of a program on a personal computer with the GX Simulator installed instead of execution in an actual PLC Functions to visually confirm ON OFF status of a bit device or the change in value of a word device An error issued when a sequence program is written in such a way that it runs an infinite loop Pseudo sequence program Indicates a sequence program created by the GX Simulator to realize the settings of I O System Settings Basic model QCPU High Performance model QCPU Universal model QCPU Generic term of the QOOJCPU QOOCPU and Q01CPU Generic term of the Q02 H CPU QO6HCPU Q12HCPU and Q25HCPU Generic term of the QO2UCPU QO3UDCPU Q04UDHCPU QO6UDHCPU Q13UDHCPU and Q26UDHCPU Process CPU Generic term of th
227. r individual information Error individual information ER reset Error individual information OFF N SM56 Operation error orma ON Operation error Annunciator OFF Not detected detected ON Detected SM203 STOP contacts STOP status STEP RUN STEP RUN status contacts SM213 Clock data read OFF No processing request ON Read request Max loaded I O OFF No processing SM250 ON ON SM401 Normally OFF OFF ON one scan only ON SM402 gt 1 scan OFF one scan only ON las after RUN OFF 1 scan App 7 dE OFF one scan only ON Kft scan after RUN OFF SM410 0 1 second clock 0 05s 0 05s 1 User timing sine clock No 0 User timing SAEI clock No 1 User timing ie clock No 2 User timing clock No 3 User timing ees clock No 4 S430 User timing clock No 5 User timing one clock No 6 User timing os clock No 7 n2 scan n2 scan n1 scan User timing ais clock No 8 User timing ning clock No 9 SM510 OFF Complete or no execution ON Executing Low speed prog ram execution flag App 7 APPENDICES MELSOFT Appendix Table 1 5 List of Special Relays Supported by the GX Simulator cont SM620 Memory card B OFF Unusable SM1030 0 1 second clock usability flag ON Usable Ses Memory card B OFF Without protection SM1031 0 2 second clock protection flag ON With protection o AA OFF Without drive 3 SM622 Drive 3 fl ON With drive
228. re Windows 2000 Professional Pentium 133MHz or more 64MB or more Windows XP Pentium 300MHz or more 128MB or more Windows Vista Pentium 1GHz or higher 1GB or more 2 SYSTEM CONFIGURATION MELSOFT e Precaution for viewing PDF data online manuals Boost the personal computer memory for easier viewing e New functions of Windows When Windows XP or Windows Vista is used the following new functions cannot be used If any of the following new functions is used this product may not operate normally Start of application in Windows compatible mode Fast user switching Remote desktop Big fonts Details setting of Screen properties 64 bit operating system 3 SPECIFICATIONS MELSOFT 3 SPECIFICATIONS 3 1 Table of Functions The functions supported by the GX Simulator are shown below The functions supported by the GX Simulator include functions executed from the GX Simulator menu and functions executed from the GX Developer menu The GX Simulator simulates the function of the CPU selected at the time of execution of the GX Simulator from the GX Developer menu it supports CPU s of type A QnA and FX Also when the motion controller is selected the corresponding function of the A series CPU operates Refer to Section 3 4 5 1 for the A series CPU corresponding to the motion controller Also when the Q series Q mode is selected the Q series CPU functions operate but when the Q
229. rive Display 800 X 600 dot or more resolution 1024 X 768 or higher for Windows Vista Microsoft Windows 95 Operating System Microsoft Windows 98 Operating System Microsoft Windows Millennium Edition Operating System Microsoft Windows NT Workstation Operating System Version 4 0 Microsoft Windows 2000 Professional Operating System Operating system 2 Microsoft Windows XP Professional Operating System Microsoft Windows XP Home Edition Operating System Microsoft Windows Vista Home Basic Operating System Microsoft Windows Vista Home Premium Operating System Microsoft Windows Vista Business Operating System Microsoft Windows Vista Ultimate Operating System Microsoft Windows Vista Enterprise Operating System x1 1MB is required to use a file register Make sure that the required space is secured within the driven in which this product has been installed before using file register 2 For details on compatible operating systems refer to the operating environment of GX Developer Used operating system and performance required for personal computer Performance Required for Personal Computer Operating system CPU Required memory Windows 95 Pentium 133MHz or more 64MB or more Windows 98 Pentium 133MHz or more 64MB or more Windows Me Pentium 150MHz or more 64MB or more Windows NT Workstation 4 0 Service Pack 3 or more Pentium 133MHz or more 64MB or mo
230. rror code number code number Operation error occurred step number latch Saves step number where error occurred App 33 OIO App 33 APPENDICES MELSOFT Appendix Table 1 17 List of Special Registers Supported by the GX Simulator cont ad tos FX2 FX1n M8067 error occurred Step number where D8069 step number error occurred paio aa CIS OS CES ES version a Maximum value for Designate number of FROMI TO instruction Write transfer points transfer points D8314 Error step number of M8065 to M8067 Lower D8315 Error step number of M8065 to M8067 Upper Unconnected I O designation error step D8316 number latched Lower D8317 Unconnected I O designation error step number latched e This device or function is supported by the actual PLC This device or function is not supported by the actual PLC A This device is supported by actual PLCs with a clock function For the GX Simulator stores internal clock data of PC personal computer x1 Initial value 200 ms for all models Can be changed but no watchdog timer check is w amp G O conducted x2 FXo FXos 20000 FXON clica chee 20000 EXT aa 21000 FX2 FX2C 20000 PRIS eet 22000 FXau FX3uc 24000 3 Values equal to all constant scan setting values Default value is 100 ms 4 Operates as a general data register Test by writi
231. rt Tools Help Monitor Function gt erial Commun I O System Settings Serial Co ication Function Device Manager Serial Communication Function Bae Communication Settings Communication Status COM Port a Transfer Speed 9 6Kbps si Data Length 8 hit y Parity None y Stop Bit moi y Format Selection Format 4 ad Sum Check Not Set Y Flow Control Yes hed Status Clear Open 20 End 2 Ending the serial communication function Purpose To end the serial communication function Operation procedure Click the End button on the Serial Communication Function screen 3 End 6 COMMUNICATION WITH EXTERNAL DEVICE SERIAL COMMUNICATION FUNCTION MELSOFT 6 3 Layout of the Serial Communication Function Screen This section describes the layout of the Serial Communication Function screen that opens when you click Start Serial Communication Function Serial Communication Function Bm ES i Communication Settings Communication Status COM Port COMI z Transfer Speed 198Kbps i Data Length 8 bit z Parity None ll 1 Stop Bit Abit l Format Selection Formar El Sum Check Not Set 3 Yes bi gt COM Close Completed COM Open Completed Status Clear Flow Control 1 Set the GX Simulator side environment for communication with the external device With the exception of the COM port make all settings equal to
232. ructions BSET P BRST P TEST P DTEST P BKRST P SER P DSER P SUM P DSUM P DECO P ENCO P SEG P DIS P UNI P NDIS P NUNI P SORT and DSORT are WTOB P BTOW P MAX P MIN P DMAX P executed in 1 scan DMIN P SORT DSORT WSUM P DWSUM P FOR NEXT BREAK P CALL P RET FCALL P O Structured instructions ECALL P EFCALLP PAIRA ORRA FIFW P FIFR P FPOP P FINS P FDEL P Poa instructions Buff instructions STR P DSTR P VAL P DVAL P ESTR P EVAL P BINDA P DBINDA P BINHA P DBINHA P BCDDA P DBCDDA P DABIN P DDABIN P HABIN P DHABIN P DABCD P DDABCD P LEN P ASC P HEX P RIGHT P LEFT P MIDR P MIDW P INSTR P EMOD P EREXP P SIN P COS P TAN P RAD P DEG P SQR P EXP P LOG P RND P SRND P 1 Special function instructions ASIN P ACOS P ATAN P BSQR P BDSQR P BSIN P BCOS P BTAN P BASIN P BACOS P 1 BATAN P LIMIT P DLIMIT P BAND P DBAND P ZONE P Data control instructions DZONE P RSET P RSETP QDRSETP a O Switching instruction RSET P QDRSET P h DATERD P DATA P DATA P SECOND P DATERD P reads clock data of Clock instructions HOUR P personal computer Program control instructions PSTOP P POFF P PSCAN P PLOW P 2 Data processing instructions Character string processing instructions Display instructions LEDR Bi hea eet DUTY ZRRDB P ZRWRB P ADRSET P
233. ry Communication P wer Special CPU O module function supply module 1 OUTLINE OF GX Simulator Debugging using GX Simulator MELSOFT Ps GX Developer Ladder monitor A Batch monitor device memory Batch monitor buffer memory User application MX Sheet MX Component Communication GX Simulator 1 Basic screen 3 Device 4 Buffer memory memory simulation simulation 2 CPU function function simulation function 5 6 7 8 9 10 Device batch Timing chart I O system Serial Device Tool function monitor settings communication manager function function 1 Key switch indicator display function 2 Function that simulates CPU operation 3 Function that simulates CPU device memory 4 5 Function that monitors a batch of device memory values 6 Function that displays device memory changes in a chart form 7 Function that simulates I O operation of external device 8 Function that simulates communication with an external device 9 10 Function that simulates the buffer memory area of a special function module Function that checks the operation of the user application using the MELSOFT product Function that saves reads device memory or buffer memory data to from a file 1 OUTLINE OF GX Simulator
234. s Serial Communication Function Device Manager RAR RUN ERROR USER m SWITCH INDICATOR RESET C STOP RESEN C STEPRUN m 1 0 SYSTEM RUN B olx File Edit Operation Other station device setting Device control setting Device value check setting Time Network No Station No PLC series Device 2 Exiting Device Manager Purpose Exit Device Manager Operation procedure Choose File Exit on the Device Manager screen ta Device manager File Edit Operation New Ctrl Open Ctri 0 Save Ctri S Save As Print Ctrl P Exit 8 SETTING THE DEVICES FOR SIMULATION DEVICE MANAGER FUNCTION MELSOFT 8 3 Setting the Other Station Devices Set the device memories of the other stations to be accessed by the user application 8 3 1 Other station device setting Purpose Set the device memories of the other stations Operation procedure Choose the lt lt Other station device setting gt gt Tab on the Device Manager screen Setting screen sox Eile Edit Operation Log display Other station device setting DDevice control setting Device value check setting No Network No Station No PLC series Device Number of points a 1 4 Q mode DO 5 2 1 0 Q mode D1 10 1 2 Q Q mode UDIGO 20 3 114 Q mode T1 1
235. s SD25 assigned SD26 No of B points SD50 Error reset Reset error number Device assignment No of F points Annunciator t a SD63 quantity Annunciator quantity SD296 a points SD64 SD297 No of V points SD65 assigned Annunciator No of S points SD66 p 2 DOT table SD299 No of T points SD68 assigned SD69 n bb Display device data Display device data App 42 App 42 APPENDICES MELSOFT Number Number S300 No of ST points SD532 Minimum low speed Minimum low speed assigned scan time scan time 1 ms units SD301 No of C points SD533 Minimum scan time assigned 1 us units SD302 Device assignment NosonEBSInts SD534 Maximum scan time assigned 2 Maximum low 1 ms units SD303 Noof points i assigned SD304 No of SW points assigned SD412 Number of counts in 1 second counter x1 1 second intervals ies iS pea 2n second clock units x1 setting ota 2n ms clock 2n ms clock units SD420 Scan counter Numperet seals counted SD430 Low speed scan Number of scans counter counted SD500 Executed program Program execution number type Low speed program Current low speed SD510 P number execution file name SD535 speed scan time Maximum scan time 1 us units SD647 pig reg ister File register capacity capacity SD648 File register block File register block number number SD1008 Self diagnostic error Seli diaghostie Gror number SD1015 CFU ope tation CPU operation status status SD1017 ene Minimum scan t
236. scan No 3 set value is 10 scan number is 4 changed value is 20 increased Value 70 50 30 10 0 Scan Select number of scans to be continued Increase amp decrease Set to change set value when setting is to be performed continuously Increase Select when value is to be increased Decrease Select when value is to be decreased Changed value Set increased decreased value Trigonometric functions ee AAA SIN curve COS curve Set when device value is changed as shown below Example Maximum value is 50 periodical scans are 100 e SIN curve e COS curve 50 50 Number of scans Maximum value Enter maximum value When maximum value is set minimum value will be set as maximum value Periodic scan Select number of scans corresponding to 1 period of SIN COS curve File Device Edit Scan aja 75 a AES 0 1 2 DO 10 sq 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT b Fixing unchanged designated timing value Purpose To make certain word device value of designated timing is not changed Operation procedure 1 Select word device timing that is not to be changed ta Timing Chart Format Input File Device Edit Scan Operate any one of following operations e Select Edit Word Device No change menu e Right click then select No change menu e Click ml e Enter F8 key
237. st on GX Developer click the lt lt l O assignment gt gt tab and make I O assignment as indicated below Ll type Model Pons oe p62 0 41 ax10 0 3 2 Qvi0 3 Choose Tools Start ladder logic test on GX Developer to start the GX Simulator At a start the parameters and program are automatically written and SWITCH changes to RUN 4 Select Start Monitor Function Device Memory Monitor from initial window of GX Simulator and start device memory monitor 2 Displaying the timing chart 1 Running the timing chart Select Start Monitor Function Timing Chart Display from initial window and start timing chart 2 Register device and start monitoring Register the following devices and click Monitor Stop button to start monitoring e X0 X2 X10 X15 X16 X17 YO Y1 Y2 Y4 Y20 M10 DO Double word 3 Turning X0 X15 and X17 ON initial setting XO X15 and X17 are turned ON in sequence When XO is turned ON M10 is turned ON in like manner X15 Y4 and X17 Y2 The timing chart retains data of up to 1000 scans 10 6 10 6 10 EXAMPLES OF GX Simulator APPLICATIONS Double click here to change between ON and OFF 10 7 MELSOFT sa Timing Chart Jo File Device Monitor Monitor Status Device Entry r Chart Display Range EOI CX1 6x2 0x5 x10 x20 op 422 120 118 116 114 112 110 108 106 104 102 100 98 Turning on
238. st of Devices Supported by the GX Simulator CPU type FX2N FX22NC MELSOFT Compatibility with functions function 4 Total number of points for combined use with extension X000 to X377 256 points e 1 0 system settings O Total number of points for e Output Y combin duse ih o defci n Y000 to Y377 256 points O O General 1 MO to M499 500 points O O g tel Latched 2 M500 to M1023 524 points O O Auxiliary relay M 2 Latched 3 M1024 to M3071 2048 points O O ao Special M8000 to M8255 156 points O O Initial 1 SO to S9 10 points O O State S O O 500 to 899 400 points S900 to S999 100 points TO to T199 200 points T200 to T245 46 points T246 to T249 4 points T250 to T255 6 points 16 bit up gt 1 CO to C99 100 points Counter C 16 bit up 2 C100 to C199 100 points ounter 32 bit bidirectional 1 C200 to C219 20 points C220 to C234 15 points 16 bit general 1 DO to D199 200 points Data register D D200 to D511 312 points 32 bits when used in D512 to D7999 7488 points pairs D8000 to D8255 106 points VO to V7 Z0 to Z7 16 points ing N NO to N7 8 points OJojojo OJojojo Timer T OJOJOO OJO OJOJOO Q 2 gt Lo g o oOjojo O OJO O O O O O O O O Nesting N x x 32 bit 2147483648 to 2147483647 16 bit HO to HFFFF Hexadecimal constant H 32 bit HO to HFFFFFFFF
239. t display screen double click unsupported information indicator lamp RESTRICTIONS The lamp is displayed only when unsupported instructions devices by GX Simulator exist in a sequence program da LIST OF RESTRICTED INSTRUCTIONS x Program Name Step No Instruction MAIN 1 S P Note when unsupported devices are included in the I O system setting iosys and 0 are displayed in the Program Name area and Step No area respectively In case online change is processed during the display of unsupported instruction list screen the displayed information will not be renewed For displaying the latest information close the screen and open the screen again Error advance display function Displays error detail on error advance screen by clicking error advance display button when ERROR LED is in an ERROR status ERROR DETAILS Corrective Action Corrective Action Error and Cause Write END in main program Please check and correct the program The program contains no END FEND instruction Error Step No 3 File Name MAIN OPG A series CPU FX series CPU Motion controller Q series CPU A mode QnA series CPU Q series CPU Q mode Displays a file name 4 COMMON OPERATIONS FOR THE GX Simulator MELSOFT 4 4 Ending the GX Simulator Purpose To end the GX Simulator Operation procedure Before exiting from GX Simulator save the I O System setting data and Device Manager settin
240. t of data which would result in an excess of capacity on the actual device will not result in an error and will be written properly 14 About Write to PLC of file register data When performing Write to PLC of file register data to GX Simulator always set the execution status to STOP before starting execution 15 About forced input output registration cancellation function Not supported by the GX Simulator 3 SPECIFICATIONS MELSOFT 3 4 4 Restrictions and cautions for the FX series CPU functions 1 CPU Type Selection and FX series CPU Operation The GX Simulator for the FX series CPU functions operate according to the CPU functions and device range of the selected CPU Application instructions not supported by the selected CPU operate with the GX Simulator In cases where the sequence program may contain instructions not supported by the actual PLC due to conversion of a program for a higher model to a program for a lower model or due to input in the list mode a program error occurs when the sequence program is written to the actual PLC even if the program runs with the GX Simulator For example the FXo FXos and FXon PLCs do not support pulse execution application instructions but these instructions run with the GX Simulator Even so a program error occurs when this program is written to the actual PLC because it contains non supported instructions STOP RUN Program Check A program error is detected by the STO
241. tep before execution o krone endo es 2 Sets status of bit device Sets status of word device Activates setting of wizard screen AR Inserts timing to selected section Deletes timing of selected section Specifies scan number MELSOFT Reference Section 5 5 6 Section 5 5 2 Section 5 5 3 Section 5 5 3 Section 5 5 6 Section 5 5 6 Section 5 5 6 Section 5 5 4 Section 5 5 4 Section 5 5 4 Section 5 5 4 Section 5 5 4 Section 5 5 5 3 SPECIFICATIONS MELSOFT 6 Device Manager screen function list Fite Reference NW ai ae Sees Creates new setting information Section 8 7 1 feos ODO I et ee Ge eee eee Reads the saved setting information Section 8 7 1 PAVE 8 ites Hehe a aN Saves the setting information Section 8 7 1 MAA P A Saves the setting information with a name Section 8 7 1 PMI terior ec ela ltd A Prints the setting information or gives Section 8 7 3 a print preview BX alt ne chen E T AA mateo TT Exits from Device Manager Section 8 2 UNO astivesteecenssnreeerinsuaarevesonnsaenanneserin Undoes the last operation Section 8 7 2 REGO tives ae A Redoes the undone operation Section 8 7 2 SS A A A POP OE Cuts the specified line Section 8 7 2 POP o ao hay cs Copies the specified line Section 8 7 2 PASTO ura ra cs Edo Pastes the cut or copied line Section 8 7 2 A OO Inserts a line into the specified area Section 8 7 2 Deletes iii iaa Deletes the specified line Section 8 7 2 A SEN A EEO Bae C
242. th optional timing by using the push button Index representation eg DOZO representation of a word device in bits form eg DO 0 and sets of bits device representation eg K4X0 are not allowed in the Condition area 3 Timing Chart Format Edit Timimg Chart Format button Click this button The timing chart format input screen will appear Refer to Section 5 5 for operation of screen Continuing When timing set by timing chart input is to be executed continuously apply check mark y to check box Setting Designates enable or disable for each setting Apply a check mark to enable the setting 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 5 5 Operation of Timing Chart Format Input Screen This section describes operation of timing chart format input screen 5 5 1 Operation procedure of timing chart format input screen The operation procedure of timing chart format input screen is indicated below Read timing chart data file NO Read timing chart data file Refer to Section 5 5 6 Y Register device Refer to Section 5 5 3 y Set edit timing Refer to Section 5 5 4 YES Change scan number NO Set scan number Refer to Section 5 5 5 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 5 2 Configuration of timing chart format input screen
243. the GX Simulator are described below 1 The GX Simulator simulates the actual PLC to debug sequence programs However the correct operation of a debugged sequence program cannot be guaranteed 2 The calculated results may differ from actual operation because the GX Simulator does not access the I O modules or special function modules and do not support some instructions and devices After debugging has been performed by GX Simulator it is necessary to execute normal debugging by connecting the PLC CPU before starting actual operation 4 COMMON OPERATIONS FOR THE GX Simulator MELSOFT 4 COMMON OPERATIONS FOR THE GX Simulator 4 1 Procedure from Installation to Debugging Procedure 1 Y Procedure 2 y Procedure 3 v To next page This section describes the procedures from installing the GX Simulator to debugging a sequence program Install GX Developer and the GX Simulator in the personal computer For the installation operation refer to the Method of installing the MELSOFT Series packed with the package a ala 900 Install Use GX Developer to create a sequence program Refer to the GX Developer Operating Manual N H He ES In GX Developer set the parameters to assign the I Os for A QnA Q series CPU functions and make the program settings for QnA series Q series Q mode CPU functions
244. the program as usual prior to actual operation after debugging with GX Simulator Failure to observe this may result in accidents due to misoutput or misoperation e The simulated result may differ from actual operation because GX Simulator cannot access l O modules or special function modules and do not support some instructions or device memory Be sure to connect the PC with PLC CPU to debug the program as usual prior to actual operation after debugging with GX Simulator Failure to observe this may result in accidents due to misoutput or misoperation e GX Simulator includes serial communication function to respond to the demands from external devices however it does not guarantee the actual operation of the external devices using the response data Do not use the response data from the running GX Simulator for other than the checking by performing the serial communication function for the external device such as PC Failure to observe this may result in accidents due to misoutput or misoperation REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Sep 2004 SH NA 080468ENG A First edition Nov 2004 SH NA 080468ENG B Section 11 1 Feb 2005 SH NA 080468ENG C Section 1 2 Section 3 4 3 Section 3 4 6 Aug 2005 SH NA 080468ENG D Chapter 1 Section 1 1 Section 1 2 Section 2 2 Section 2 3 Section 3 1 Section 3 2 Section 3 4 4 Section 3 4 6 Sect
245. ting wizard screen will appear Enter scan number and click button Bit Device Setting Wizard x JUL 1 Cycle 2 Scan s cone 4 Bit device ON OFF has been set periodically File Device Edit Scan lar Ar ala rae 0 1 A 3 4 5 6 if 8 9 X12 DO 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 2 Setting the timing of word device a Changing the designated timing value Purpose To change the timing value of designated word device Operation procedure 1 Select timing of word device to be changed File Device Edit Scan 2 Operate any one of the following operations e Select Edit Word Device Change menu e Right click then select Change menu Click El e Enter F7 key e Double click designated timing 3 Word device setting wizard screen will appear Set each item and click button Word Device Setting Wizard x G Value Setting C Trigonometric Function l SCIE Setting Value 10 CICOSGIE Y Continue marram valle Scan fi 00 x Raise and Fall Cycle C None Raise C Fall y Scans Raise and Fall value setting 2 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT Value setting Set value Enter set value of word device Continuation Apply check mark when setting is to be performed continuously Example Cursor position is
246. ue m Initial Value 16 Bit Integer NM OFF C ON 100 Contents Selects name of device to be entered Enters device No Displayed when U is selected with device name Enter the higher two digits when Unit initial address initial I O No is expressed in three digits Example In case of X YIFO enter IF Sets initial value Initial value For a bit device select ON OFF For a word device enter value Sets display format of word device to be displayed Displayed format Both decimal and hexadecimal numbers can be set Display can be selected from 16 Bit integers 32 Bit integers and real numbers Entre button Closes this screen 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS MELSOFT 2 Deleting entered device Purpose To delete entered device Operation procedure a Select device to be deleted b Select Device Delete Device Device has been deleted ewe Edit Scan Enter Device Delete Device List Device 5 SIMULATION OF EXTERNAL DEVICE OPERATION 1 0 SYSTEM SETTING FUNCTIONS MELSOFT 5 5 4 Setting Editing timing This section describes setting and editing method of timing 1 Setting the timing of bit device Timing of bit device can be set following the procedure shown below To turn ON designated timing To turn OFF designated timing To turn OFF until next ON timing To turn ON until next OFF timing To turn OFF
247. umns are achieved 5 SIMULATION OF EXTERNAL DEVICE OPERATION I O SYSTEM SETTING FUNCTIONS Selects device name Selects when Normally ON is set Device Specification e Device Specification Device Name Select ON OFF ON Enters device No MELSOFT e Input method direct input Entering condition expression directly can perform setting lt Example gt For a bit device XO OFF M10 ON For a word device D5 lt 20 D15 lt gt 5 D20 2 D25 gt 10 DO D50 e Input method entering by using dialog box Click button and enter device name device No designated condition etc Object of comparison is handled as a 16 bits hexadecimal integer When designated as KOO setting is done using decimal number and designated as HOO a hexadecimal number If neither K nor H is designated decimal number setting will be selected Refer to Appendix 3 1 for devices that can be entered in the Condition area Selects ON or OFF condition Enter object device name and value Enters device No When a bit device is selected C OFF p Device Specification Device Name E Operators Y sm C Always ON Push Button 0 y When a word device is selected Selects to use as Push button in monitor mode Selects comparison designation With Push button you can make 500 settings 0 to 499 100 settings O to 99 when using the FX series CPU User can fulfill conditions wi
248. ution type program A cyclic execution type program judges whether it can run or not by measuring time after the end of a scan execution type and a low speed execution type The following timing chart shows the GX Simulator processing timing at the scan time setting of 100 milliseconds and the cyclic execution type program setting of every 200 milliseconds 3 o o iS 2 o 2 o Do Bo e ES S 38 38 38 38 50 oo 50 50 o gt END oS END o s END o END Reference 2 f n ort or A O g processing O g processing o processing 2g processing 4 S Bo BO BOS as l meS we we l Scan execution type program Low speed execution type program A Cyclic execution type program A H H 200 millisec cycle Cyclic execution type program B 200 millisec cycle 8 About monitoring the function register FD The function register FD cannot be monitored from the GX Simulator menu Monitor it from the GX Developer menu 9 About restrictions on TTMR instruction During execution of the TTMR instruction the current value cannot be changed 10 About SFC program Not supported by the GX Simulator 11 About PLC memory format Execute to clear all user data written to the GX Simulator and initialize Also execute this function when unstable GX Simulator operation occurs 12 About built in RAM memory cassette capacity The GX Simulator has no built in RAM memory cassette capacity A lot of data which would result in an excess o
249. veloper screen is set active 13 About device range check If the device range is exceeded in indirect designation using the index register OPERATION ERROR occurs in the GX Simulator If Continue is selected for PLC parameter lt PLC RAS gt tab Operating mode when there is an error on GX Developer GX Simulator stops when this error occurs 14 About real number range check The GX Simulator checks the real number range strictly If any value cannot be evaluated as a real number OPERATION ERROR occurs If Continue is selected for PLC parameter gt lt PLC RAS gt tab gt Operating mode when there is an error on GX Developer GX Simulator stops when this error occurs 3 SPECIFICATIONS MELSOFT 15 About supported instructions and devices In the GX Simulator some instructions and devices are unusable and processed as NOPs Refer to Appendix 1 and Appendix 2 for the supported instructions and devices 16 About operating CPU types When selected the A series CPU Q series CPU A mode operates as the A4UCPU the QnA series CPU as the Q4ACPU the FX series CPU as the FX series CPU the motion controller as the A4UCPU and the Q series CPU Q mode as the Q25HCPU 17 About I O modules The GX Simulator does not support I O modules 18 About networks The GX Simulator does not support networks 19 I O System setting I O System setting does not support the local devices Set the device point that ca
250. ving the Device and Buffer Memories Purpose To temporarily save the contents of the device memory and buffer memory to allow debugging to continue after the personal computer is re booted Operation procedure 1 Set the execution status in the initial window to STOP when the device memory or buffer memory contents are to be saved 2 Select Tools Backup device memory or Backup buffer memory 9 SAVING AND READING THE DEVICE AND BUFFER MEMORIES OPTION SETTING TOOL FUNCTIONS MELSOFT Setting screen MELSOFT Series GX Simulator MELSOFT Series GX Simulator 2 This will backup the buffer memory No Click on the button to save the entire device memory or the buffer memory 2 This will backup the device memory for the slots allocated to special function modules in the l O assignment settings The buffer memory data is saved to the following directories e A series CPU Functions Directory where the GX Simulator are installed Acpu Devmem e QnA series CPU Functions Directory where the GX Simulator are installed QnAcpu Devmem e FX series CPU Functions Directory where the GX Simulator are installed FXcpu Devmem e Motion controller Functions Directories where the GX Simulator are installed Acpu Devmem e Q series CPU Functions Directory where the GX Simulator are installed Qcpu Devmem Example If C MELSEC is designated as the directory where the GX Simulator are install
251. y Range gt Gee C Auto Manual xi C x2 C x5 C x10 x20 op a 70 69 68 67 46 45 64 es 62 6 T aj ko x2 p Turning on X10 turns on YO and turns off Y20 DOD 4 a E lt Actual machine status gt Cutter Roller Cut sheet on Q 10 15 10 15 11 TROUBLESHOOTING MELSOFT 11 TROUBLESHOOTING If wrong sequence programs or parameters are used GX Simulator displays the relevant error messages on the initial window in the following order 1 2 1 When an error occurs and the program is stopped the error message is displayed that indicates the cause of program stop 2 If errors occur when the operating mode is set to Continue the error message for the first error is displayed 11 1 Error Messages Displayed on the LED Indicators This section describes error messages and error codes occurring in the GX Simulator gives a description and cause of the error and suggests remedies 1 GX Simulator for A series CPU Functions Error Message Table Error Code Details Error Code ao Error Message D9008 1 D9091 1 Error Description and Cause INSTRCT CODE ERR The program contains an instruction code which could not be decoded by the GX Simulator constant instruction is incorrect instruction is incorrect instruction is incorrect Read the error step using GX 1 The index qualification used for the Deve
252. y be transcribed or duplicated in any form without prior permission by Mitsubishi Electric Corporation We have attempted to cover all the revisions of software and hardware but this manual may not contain the latest revisions The software of this product requires one license to be purchased per computer We permit the user to use this software package including this manual based on the Software License Agreement We are not liable for consequences or influences due to this software package including this manual The specifications of this software package and the descriptions in this manual may be altered in future without prior notice 1 1 1 1 1 1 K 1 MEMO 1 OUTLINE OF GX Simulator MELSOFT 1 OUTLINE OF GX Simulator This operating manual describes the functions and operation of the GX Simulator Version 7 The GX Simulator is a software package which runs under Microsoft Windows Operating System Offline debugging is possible by adding the GX Simulator to a computer in which the GX Developer is installed The offline debugging functions include the monitor and the test of the host station other station devices and simulated operation of external device I Os As the GX Simulator allows sequence programs to be developed and debugged on a single computer checking a modified program is quick and easy GX Developer must be installed before these functions can be used GX GX Developer Simulator
Download Pdf Manuals
Related Search
Related Contents
Programme - Unité Mixte de Formation Continue en Santé Kingston Technology ValueRAM KVR21N15/4 memory module QUAD Monobloc Valve Power Amplifier II Classic User's Manual nOTE - Argo Copyright © All rights reserved.
Failed to retrieve file