Home
QD51(-R24)
Contents
1. 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 2 3 If the QD51 R24 is Used with a Remote I O Station This shows the case where the QD51 R24 is used with the MELSECNET H Remote O station If the QD51 R24 is used with the QCPU station it is not necessary to read this section As for the MELSECNET H Remote I O Net the system can be built using the following QCPU Q Mode e Function version A QCPU Q Mode e QCPU Q Mode with serial No 020920000000000 or later If the QD51 R24 is used with the MELSECNET H remote I O station see the following manual in addition to this section Q Corresponding MELSECNET H Network System Reference Manual Remote I O Network Manual 1 Remote I O Stations in which the QD51 R24 can be installed See section 2 1 concerning remote I O stations in which the QD51 R24 can be installed 2 System in the case where the QD51 R24 is used in a remote I O station Example Remote Master Station Remote I O Station QJ71 QCPU LP21 25 Remote I O Station 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 3 Functions which can be used The functions which can be used when the QD51 R24 is instal
2. y Carry out QD51 R24 s mode setting Run mode Debugging mode and set operation See Section 5 6 of this manual Set the run mode by the GX Developer 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 3 Names of Parts and Functions QD51 QD51 R24 RUN ERR RUN ERR PRG P RUN PRG P RUN chaf 2 SD jop cH 88 Jons 1 QD51 R24 RUN PRG 1 SD CHA RD s 2 Names iis Gis _ Indicator LED Indicator LED See 1 concerning the indication contents CH1 side RS 232 interface D Sub 9 pin for serial communications with external devices and for connection of a console debugger CH2 side RS 232 interface D Sub 9 pin for serial communications with external devices and for connection of a console debugger CH3 side RS 422 485 interface two piece terminal block for serial communications with external devices and for connection of a console debugger CH1 Side RS 232 Interface CH2 Side RS 232 Interface CH3 Side RS 422 485 Interface List of indicator LED s a Indicates normal operation Normal Abnormal Reset Pee pe ee rare a Deb Pra Indicates the Mode Programming mode BASIC B P RUN Indicates that a BASIC program is running running stopped Indicates the send state of each channel Data are being sent Not sending Data are bein CE Indicates the receive state of each channel Not receiving received Ligh
3. MELSEC Q A program for running the flash ROM is read to the QD51 R24 s program area in the following cases a Program Mode When the power is turned on or when the QD51 R24 is reset b Multitask Debugging Mode After the power is turned on or after a reset c Run Mode when the RUN switch is in the RUN position However for an area where the multitask setting is set ON reading to the QD51 R24 is not done i QD51 R24 Program for running flash ROM Program Area BASIC Program BASIC Task 1 Area START g Task 1 Area BASIC Task 2 Area x Task 2 Area 3 SPECIFICATIONS MELSEC Q 3 5 2 Buffer memory Buffer memory is memory for carry out sending and receiving of data between the QD51 R24 and the PLC CPU Data from the PLC CPU that are written to buffer memory can be read from multiple tasks Data written to buffer memory from multiple tasks can be read from the PLC CPU 1 Reading Writing of Data a Data from the PLC CPU are read from or written to the buffer memory by the FROM TO command If writing of data from the PLC CPU to buffer memory or reading of them from buffer memory is performed use the multitask execution start flag XOB as an interlock Write Command X0B S _ _ TO H1 KO DO K1 Interlock that enables or disables FROM TO execution b Inthe QD51 R24 reading of data from or writing of data to buffer memory is done using the GETMEM PUTMEM comm
4. 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 5 2 Connecting to the RS 422 485 interface Here connection precautions and an example of connection when using the QD51 R24 s RS 422 485 interface are shown 1 Precautions when connecting a When the QD51 R24 s SG signal and FG signal are connected to the external device make connections in accordance with the external device s specifications b Connect the shield of the connection cable to the FG terminal of either one of the devices being connected If data communications cannot be done normally due to external noise even when wiring connections are done as shown above make wiring connections as shown below 1 Connect the FG terminals of both sides with the connection cable s shield However make the connection on the external device side in accordance with the external device s instruction manual 2 Connect the QD51 R24 s FG to the FG terminal of the power supply module in the station where the QD51 R24 is installed or connect it to the FG terminal on the control panel where the QD51 R24 station s PLC is installed 3 Connect the nnA and nnB of each signal in the connection cable in pairs QD51 R24 Side External Device Side soa gerens D O SDA so m gt SDB D RDA 7 m r 7 RDA Fa RDB gt X oi RDB Soo ise 5N TI FG 1 RDB Sx POS a AD A Be ee eA US oe ae eee FG
5. RS 422 485 Two piece terminal block Communications Method Full duplex communications Synchronization Method Start Stop Synchronization Transmission Rate bps Data Format Transmission Control 300 600 1200 2400 4800 14 400 19 200 28 800 38 400 Itis possible to use the 2 interfaces with a total transmission rate within 38 400 Start Bit Data Bits 70r8 Parity Bit Even Odd None Stop Bit 1or2 DTR DSR ER DR Control RS 232 only can be used RS 422 485 cannot be used RS CS Control CD Signal Control DC1 DC3 Xon Xoff Control Both RS 232 and RS422 485 can be used DC2 DC4 Control Clock Function None Power Failure Maintenance User Program ROM Storage The program area only can be stored in Flash ROM Console DOS V personal computer or PC 9800 series personal computer Multitask Debugging Possible when the debugger is used Continued from the previous page 3 SPECIFICATIONS MELSEC Q Specification QD51 R24 a E E Rs 422485 o on Transmission Distance Total Length Distance _ RS 422 485 Max 1200 m Total Length Distance Connectable Stations Q series CPU Q mode 3 Voltage Resistance Depends on the power supply unit of the installed station Insulation Resistance External Dimensions mm 98 H X 27 4 W x 90 5 D 7 0 127 O P HRV SV External Diameter 8 5 mm or greater Made by Oki Electric Wire Corp Logarithm shown in the O part SPEV SB
6. L e 90 5 ee R1 Bending radius near the terminal block Cable diameter X 4 R2 Bending radius near the connector Cable diameter X 4 xr1 Bending radius near the compression terminals Can be connected within a range where there is no extreme bending App 8 App 8 APPENDIX MELSEC Q MEMO App 9 App 9 INDEX A Application System 2 1 B BOOT mrna a E Ada pres 3 56 Buffer Memory eeeceeeceeeeeeeeeeeeeeeeeeeeeeeees 3 19 C Commercially Available Compiler SOMWAS eaa AE AARATI 2 2 Common Memory 3 21 Communications with a Console 4 2 4 3 Communications with a Terminal 4 2 4 6 Communications with External Device 4 14 Communications with the PLC CPU 4 16 Comparison of Functions with the Previous Modules App 1 GOMPICK oriin aatan a eR A 14 Connecting to a Console 5 4 Connecting to a Debugget ceeeee 5 4 Connection to an External Device 5 6 CONSOIC AE A 14 Console Connection Cable c eeee 2 2 Continuous Line 2 0 ceseeseeeeeeeeeeeeeeeeeeees 5 13 D Data Communications Between Tasks 4 23 Data Communications with Buffer Memory 4 21 DEDUQOCl e de hea ae het A 14 Debugger Connection Cable 00 2 2 Debugging Mode iacr skiria A 14 E ED AtniatnaAnndewaintadn gee 3 23 3 26 Event Contos teenei tiini 3 56 Exclusive Commands cccscceseeseeseeees 6 1 Exp
7. MC 0 2 x 3P External diameter approx 6 5 mm Made by Mitsubishi Electric Wire Co Ltd SPEV SB 0 2 x 3P External diameter approx 7 5 mm Made by Mitsubishi Electric Wire Co Ltd 3 Recommended Cables RS 422 485 x1 This shows the combination when the opposite device and PLC CPU are connected Opposite Device Side PLC CPU Side The total n m n becomes a maximum of 32 2 In order to use the QD51 R24 it is necessary to set the switch by GPPW In order to set this switch carry out a QD51 R24 I O assignment intelligent 32 point in GPPW For the model name set QD51 or QD51 R24 corresponding to the module being installed 3 The electrical characteristics of the recommended cables SPEV SB MC 0 2 X 3P and SPEV SB 0 2 X 3P are equivalent but they differ somewhat in their external dimensions and internal wire colors 3 SPECIFICATIONS MELSEC Q 3 2 RS 232 Interface Specifications This shows concerning the RS 232 interface specifications 3 2 1 RS 232 connector specifications The connector specifications for the RS 232 used to connect with the opposite device are shown below Signal Direction Signal Signal N Abbreviation IgnaLiName QD51 gt Opposite R24 Device CD Receive Carrier Detect __ RD RXD _ ReceiveData e TransmitData gt O Date TerminalReady gt Request to Send Clear to Send 1 Each control signal
8. LOCATE Specifies the data display position in a console screen CLS Clears the console screen 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 2 Inputting data from a console keyboard Here the way of thinking in the case of inputting of data from a console keyboard is explained Console In the case of a DOS V personal computer aps 1 RUN ERR P RUN oHa 8 SD Jone CH 1 Keyboard Procedure for inputting data from a console keyboard Carry out inputting of data from a console keyboard by the following procedure Set the data input destination oi The data input destination is set in the console channel by the ZIDV command Wait for key input Y OPUS ete Execution of an INPUT command etc from the keyboard Key input from the keyboard End 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q Commands and functions used The commands and functions used to input data from the console keyboard are as shown below Command Function Name Processing Contents ZIDV Switches the data input destination INPUT e Carries out key input of data e Character code control codes 0H to 1FH commas 2Cx and 7Fx cannot be handled as data LINE INPUT e Carries out key input of data e Character code control codes 0x to 1FH and 7Fx cannot be handled as data INKEY e Carries out key input of data INPUT e Character code control codes 0H 03h 13H 80H and FDH to FFH cannot b
9. Reading of expansion file register data 4 amp H4 Monitoring th ion fil ist it Reading of Q QnA series device memory oni oring the expansion file register monitor 5 amp H5 Processing code 515 amp H203 registered by the PCWT command Reading of continuous address designation 7 amp H7 data in the expansion file register 8 amp H8 Cannot be used in the Q QnA Series Reading of parameter data Reading of 14 amp HE Cannot be replaced MELSECNET 10 parameters Reading of network information 21 amp H15 Reading of routing parameters 22 amp H16 App 6 App 6 APPENDIX MELSEC Q b PCWT commands Processing codes used in the A1SD51S AD51H S3 Treatment Writing to Q QnA series device memory Processing Code 515 amp H203 Continuous address designation data writing to expansion file register Writing of sequence program 8 amp H8 Writing of microcomputer program 9 amp H9 Writing of comment data 10 amp HA 3 Cannot be used in the Q QnA Series Writing of expansion comment data 11 amp HB Cannot be replaced Writing of parameter data Writing of MELSECNET 10 parameters Analysis of parameter data 15 amp HF 14 amp HE App 7 App 7 APPENDIX MELSEC Q Appendix 3 External Dimensions cual BD RD Cable diameter 4 x10 90 5 4 29 QD51 R24 RUN ERR PRG P RUN cHAl BR Sp Jens CH 1 37 1 RS 232 98 ajn L tte gt
10. Usable Device Setting Data Internal Device saree Special Module Index Reoist ecial Module Index Register 7 al a User File Register ee ING p eaa ta g Constant Other fs Command Symbol Execution Condition Command YCHECK ZYCHECK Command iene ZP YCHECK Setting data Module Header Input Output Signal BIN16 bit S1 Dummy ss S C Ss o Devicename The file register for each local device and program cannot be used as setting data Function 1 After the QD51 R24 program start signal Y19 designated by Un goes ON the BASIC program starts up immediately by running the exclusive command YCHECK 2 If the YCHECK command is run when it is ON when the command is ON it scans each cycle and if it run during rise it runs one scan only when the command rises during OFF gt ON Error 1 When a calculation error occurs the error flag SM0 goes ON and the error code is stored in SDO See the QCPU User s Manual check the error content and take the appropriate corrective measures Program Example Program to start the Task 1 BASIC program If the QD51 R24 s input output signal is X Y00 to X Y1F 2 SET DY11 Task 1 designated SET DY19 Program start signal turned ON ae YCHECK uo D0 YCHECK executed 7 TROUBLESHOOTING MELSEC Q 7 TROUBLESHOOTING Here the methods for checking the contents of errors
11. i a ON OFF Input i General i data X i ON OFF data output ON OFF i H eeM area K X lt Dc eel eee eee ea See ese 1 In the case of PLC CPU gt QD51 R24 Sending of ON OFF data from the PLC CPU to the QD51 R24 is carried out by general output Y The QD51 R24 uses the special variable B in a BASIC program to read the general output turned ON OFF by the PLC CPU 2 Inthe case of QD51 R24 gt PLC CPU Sending of ON OFF data from the QD51 R24 to the PLC CPU is carried out by general input X The PLC CPU uses a sequence program to read the general input turned ON OFF by a QD51 R24 BASIC program Special variables used The special variables used to read ON OFF data from general input X and general output Y are shown below Special Variable Processing Contents B X Formula Turns the QD51 R24 s general input X ON and OFF B Y Formula Reads ON OFF data from the QD51 R24 s general output Y 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 5 2 Reading and writing data from to buffer memory 16 bit data communications can be carried out between the QD51 R24 and the PLC CPU using the QD51 R24 s buffer memory PLC CPU QD51 R24 pote a te ee ee ee he et 1 ate ee ete ae oe eh te a See ae x Sequence Program Reading of 16 bit data Writing of data l memor rogram y Writing of prag 16 bit data a i FROM Reading of data I
12. 4 Exclusion of chance loss and secondary loss from warranty liability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation to damages caused by any cause found not to be the responsibility of Mitsubishi chance losses lost profits incurred to the user by Failures of Mitsubishi products damages and secondary damages caused from special reasons regardless of Mitsubishi s expectations compensation for accidents and compensation for damages to products other than Mitsubishi products and other duties 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice 6 Product application 1 In using the Mitsubishi MELSEC programmable logic controller the usage conditions shall be that the application will not lead to a major accident even if any problem or fault should occur in the programmable logic controller device and that backup and fail safe functions are systematically provided outside of the device for any problem or fault 2 The Mitsubishi general purpose programmable logic controller has been designed and manufactured for applications in general industries etc Thus applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for Railway companie
13. QD51 RS 232 2 Channels QD51 R24 RS 232 1 Channel RS 422 485 1 Channel Non procedure sending and reception of production instructions production results and other data can be done between a personal computer or other external device connected to the RS 232 or RS 422 485 interface and the console Production results and other data can also be printed out on a printer connected to the RS 232 interface Sending Data to and Receiving Data from the PLC CPU Through execution of the PLC Access commands PCRD PCWT for sending data to and receiving data from the PLC CPU PLC CPU device data can be read and written With the PLC access commands not only can reading and writing device data be done but data can also be written to and read from a special function module etc 1 OVERVIEW MELSEC Q 1 2 Features of QD51 R24 Systems which use the QD51 R24 have the features shown below 1 printer It is possible to run up to two BASIC programs tasks simultaneously Since multitask processing is possible it is possible to create BASIC programs where the control contents executed by the QD51 R24 are divided into processing modules The necessary task is started in accordance with the control contents and the system can be controlled while carrying on data communications and synchronizing execution between each task ided accord g 7 Te cont content v aac Data communications with external devices
14. a BitDevice X Y M L S B F T C b Word Device T Current value C Current value D W R Commands and functions used The commands and functions used to write data to and read data from the PLC CPU s device memory are shown below Command Function Name Processing Contents PCRD Reads data from the PLC CPU PCWT 3 Writes data to the PLC CPU 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 5 4 Reading and writing data from to the PLC CPU s expansion file register Data can be written to and read from the PLC CPU s expansion file register file registers after block No 1 directly by a QD51 R24 BASIC program See Section 4 5 3 concerning writing of data to and reading data from a file register block No 0 PLC CPU QD51 R24 Memory Cassette Sequence program Block No 0 i program Expansion Writing of data file register I I I I i i 7 i File register BASIC i I I i I I I Commands and functions used Commands and functions used to write data to and read data from the PLC CPU s expansion file register are shown below Command Function Name Processing Contents PCRD A Reads data from the PLC CPU PCWT Writes data to the PLC CPU The expansion file register can be accessed only in the A Series PLCs 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 6 Reading and Writing Data from to the Buffer Memo
15. 2 1 Application SysteMSicciiacii an As ceed Are abe are ee on ede a Naa 2 1 2 2 Combining the Opposite Party s Device and the PLC CPU eceeeeceeceeceeeeeeeeeeeeeeeaeeaesaeeeeeeeeaeeeeeaneaes 2 5 2 3 Ifthe QD51 R24 is Used with a Remote I O Station ccceccecceeceeeeeeceeeeeeeeeeeceeseaesaesaeseeeeaeeaeeeeeeaeats 2 7 2 4 If the QD51 R24 is Used in the QCPU Function Version B ccccecceseeseeeeeeeeeeeeeeeeeeeeeeseeseeteaeeaes 2 10 2 5 Checking the Function Version Serial NO ccccccsscsscesseeeseeeseceeceseccseccaeesaeseaeeeaescaeseaeseaeseaeseaeeaeseateaas 2 11 3 1 Performance Specifications ccccecccecceceeseeeeceeceeeeeeeaeceeeeaeeaecaeceeeeaeeaeseesecesaecaeseeseaesaesaeseeseaeeaeseseaseateas 3 1 3 2 RS 232 Interface Specifications ccecceceeseeeceeeeeceeseeeeceeeeseeaeceeceeseaesaecaescesaecaeeeesaesaeseeseaesaaesaeseeseaeeateas 3 3 3 2 1 RS 232 connector specifications 2 2 cee eeceececeeceeeeeeeeeeeeeeeaecaeeeeeeaecaecaeeaeeaesaesaeseaesaesaeseeeeaesaneeseaeeats 3 3 3 2 2 RS 232 cable specifications wii 0508 tine woh Gta wh detain hee inh dat veh catalan 3 4 3 3 RS 422 485 Interface Specifications eeeeccecceceeseeeeceeeeseeeeceeceeeeaeeaecaeeseeeaecaesaeseaeeaesaeseeeaeeaesaeeneeeaetaes 3 5 3 3 1 RS 422 485 terminal block specifications 0 2 eececeeeeseeeeeeeeeeeeeeeaeeeeeeeeeaesaeseeeeeeeaesaeseetaeeaeeeeseaeeaees 3 5 3 3 2 RS 422 485 cable specifications c
16. Also when the Output Control Input is in the OFF state it enters the high impedance state the state in which data are not being sent 3 QD51 R24 send start timing and send processing end timing Send start timing When sending data after the high impedance state established by the operations shown in 1 and 2 above is canceled and after the mark is output the actual data are output Send processing end timing After sending of data is completed several us are necessary for the H W gate OFF time until the send processing is ended changed to the high impedance state Output Control Input es Opposite Device Side Data QD51 R24 Side Data Output Control Input Mark output Data sending time range 4 gt 1 H W Gate OFF time Output Control Input Output Control Input ON time range OFF time range Low impedance state High impedance state lt Pit The QD51 is in the data The QD51 is in the data sending reception reception enabled state enabled state 3 SPECIFICATIONS MELSEC Q When the configuration with the opposite device is n 1 or m n If each respective device s send signal is connected as shown in the following figure if the Output Control Input is in the ON state at 2 or more locations data are output sent from the affected devices simultaneously In order for data communications from the opposite device can be carried on normally
17. I I Buffer BASIC I I I I I I PESE SEERE EIA EE PES EET EPA AEE AE EEE EE PEE E J RENEE AE EEEE ENE PE EEE AEAEE ES Re EAE EE J 1 Inthe case of PLC CPU gt QD51 R24 16 bit data written to the QD51 R24 s buffer memory by the PLC CPU s sequence program TO command are read using a BASIC program 2 Inthe case of QD51 R24 gt PLC CPU 16 bit data written to the QD51 R24 s buffer memory by a BASIC program are read by the PLC CPU s sequence program FROM command Commands and functions used Commands and functions used to read write 16 bit data from to the QD51 R24 s buffer memory are shown below Command Function Name Processing Contents GETMEM Reads the contents of the QD51 R24 s buffer memory PUTMEM Writes 16 bit data to the QD51 R24 s buffer memory 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 5 3 Reading and writing data from to the PLC CPU Data can be written to and read from the PLC CPU s device memory directly by a QD51 R24 BASIC program PLC CPU QD51 R24 ee ee eee ere eee i Sa i Sequence Program Device Memory l i Bit device Reading of data zz x Y M L i i i B F T C BASIC i i i rogram i i Word device Rog i T C D W R Writing of data l L Si l i i bya ee Spee ee ee J La le a ee a ht j The devices which data can be written to and read from by a BASIC program are shown below
18. Set the No of the channel the printer is connected to x y Output data to the printer Output data to the printer Vv Close the interface End End 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 3 1 Printing from a printer connected to an interface that is not set in the console Here the way of thinking in the case of printing from a printer connected to an interface that is not set in the console is explained QD51 Printer Printout procedure The procedure for printing from a printer connected to an interface that is not set in the console is shown below Open the channel to the terminal where the data are to be displayed tates Open the channel which the terminal is connected to using the ZOPEN command Set the data output destination Set the data output destination in the channel the terminal is connected to using the ZODV command Output data to the terminal Output data to the terminal by the PRINT command etc Display the data in the terminal Close the terminal channel End 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q Commands and functions used The commands used for printing from a printer connected to an interface that is not set in the console is as shown below Command Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device ZCLOSE Cl
19. cannot be handled as data ZRECIEVE Stores the data received from the interface in the designated variable 1 See the AD51H BASIC Programming Manual Command Manual concerning details of commands and functions 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 5 Communications with the PLC CPU Data can be written to the PLC CPU and read from the PLC CPU by the QD51 R24 using a BASIC program The data which can be written to and read from the PLC CPU are shown below No Data Name Write Read 1 Device Memory O O 2 PLC CPU Model Name x O 3 PLC CPU remote RUN STOP O x 4 Interrupts to the PLC CPU O x 5 Intelligent function module buffer memory O O O Can be run X Cannot be run Data can also be written to and read from the buffer memory of another special function module using a BASIC program The way of thinking in the case where data are written to and read from the buffer memory in a device memory or an intelligent function module is explained below 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 5 1 ON OFF data communications by general output X Y Using the QD51 R24 s general purpose input output ON OFF data can be communicated between the QD51 R24 and the PLC CPU PLC CPU QD51 R24 Nee ee ee ee eee i Sequence Program Internal Memory Reading of i i i ON OFF i ON OFF data General data i i i gt output gt fe eae Basic 1 i i lil a Reading of program
20. cee al Shield Correspondence between the RS 422 485 terminal block and signal positions 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q c Itis necessary to set or connect a terminal resistor in both terminals when wiring On the QD51 R24 side connect a terminal resistor packed together with the QD51 R24 in accordance with this section to match the external device s specifications As for the external device side connect or set a terminal resistor in accordance with the external device s user s manual Terminal resistors connected to the QD51 R24 side Connect a 330Q 1 4 W terminal resistor when communicating using the RS 422 interface e Connect a 1109 1 2 W terminal resistor when communicating using the RS 485 interface x Distinguishing terminal resistors 3302 110Q Orange Orange Brown Brown Brown Brown Including 1 n and m n connections it is necessary that the device connecting to the QD51 R24 s RS 422 485 interface have a matching RS 422 or RS 485 interface 2 Connection examples a If connecting 1 1 QD51 R24 Side External Device Side EIEEE e Terminal Signal Name Signal Name Resistor SDA s RDA Tni spat de Gros Gn RDA ke j ss SDA nE ee X e SG RSA FG bam RSB FG c CSA gt CSB SG gt FG 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION b QD51 R24 External D
21. the following settings are necessary e Set the Output Control Input so that it is in the ON state only when sending data e Set the Output Control Input so that it is in the OFF state when data are not being sent QD51 R24 Send Data Output Control Input 3 p RDA Receive Data Opposite Device Opposite Device Receive Data In the above wiring sending and receiving are connected the data sent by yourself is being received by yourself Be sure to carry out programming so that such data are discarded by the BASIC program 3 SPECIFICATIONS MELSEC Q 3 4 List of Commands and Functions in AD51H BASIC The commands in AD51H BASIC which can be used by the QD51 R24 are shown in Table 4 2 For details concerning each command and function see the Programming Manual Command Manual Table 3 1 List of Commands and Functions in AD51H BASIC Command Classification Operation Contents Function Deletes the program in the program area and initializes all the variables Program creation 7 A AUTO Displays the line No at the head of the line automatically preparations EN CLEAR Initializes the variables and sets the memory area DELETE Deletes the set program area RENUM Renumbers the program line numbers Program editing LIST Displays all or a portion of a given program in the program area ZBAS Gives the number of the BASIC task No area existing in the program that is currently
22. 1 word units 2500n 25014 Lower order 8 bits 4A0Cu Higher order 8 bits 4A0Dx Lower order 8 bits 4AOEu Higher order 8 bits 4A0F i 25064 2507H 3 SPECIFICATIONS MELSEC Q 3 6 Receive Buffer The receive buffer is a memory buffer used for sending and receiving data between the QD51 R24 s RS 232 interface and RS 422 485 interface and an external device connected to them Control of the send receive buffer is performed for each interface by the QD51 R24 s OS The receive buffer for each respective interface is 1024 bytes The receive buffer stores data sent to the QD51 R24 from an external device and when the INPUT or INKEY command is executed the receive buffer s data are stored in the designated variable etc executed Data reception For CH2 1024 Bytes j4 For CH3 1024 Bytes QD51 R24 External Device E E A E A i i i User Program i i PRINT LPRINT i command etc executed Data reception i i Console i terminal i BASIC i printer program INPUT INKEY Receive Buffer e i command i EOF CHI 1024 Bytes gt i etc i 1 i 1 i i i l i i POINT The receive buffer s size can be changed by the AD51H BASIC ZCNTL command 3 SPECIFICATIONS MELSEC Q 3 7 List of GPPW Setting Items for the QD51 R24 The following table shows a list of parameter setting items set using GPPW Type Allocates I O in the QD
23. 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 4 Connection Cable for the Compiler Debugger a When using a DOS V Personal Computer 1 Connection Cables Combine cables to make connections DOS V Personal Computer Conversion Cable Conversion Cable FA CBL25S9S RS 232 FA CBL25S9P or Conversion Cable AC30R2 2 Conversion Adapter Adapter FA A25S9S FA A25S9P i Introductory Product Introductory Product i Two conversion adapters FA A25S9P cannot be installed on the QD51 Inquiries for Introductory Products Conversion Cable FA CBL25S9S FA CBL25S9P Conversion Adapter FA A25S9S FA A25S9P Mitsubishi Electric Engineering Corporation East Japan Office Tel 03 3437 6103 Fax 09 3437 2676 Central Japan Office Tel 052 565 3435 Fax 052 541 2558 West Japan Office Tel 06 6347 2969 Fax 06 6347 2983 Kyushu Business Group Tel 092 721 2202 Fax 092 721 2109 2 Cable Wiring This shows wires for cables made by users This Module Side Cable Connection and Signal Direction Console Side Signal Name Pin No Example of Full Duplex Communications Connection Signal Name CD RD RXD 2 RD RXD SD TXD DTR ER 4 DTR ER a e DSR DR 6 DSR DR RS RTS 7 a ee RS RTS CS CTS CS CTS The pin arrangement on the console side may differ depending on the personal computer used If the user makes the cables please do so after confirming the personal computer s interface specificatio
24. 22 48 Fax 421 0 7 592 22 54 e mail acp autocomp nextra sk INEA d o o SLOVENIA Ljubljanska 80 SI 1230 Dom ale Phone 386 0 1 721 80 00 Fax 386 0 1 724 1672 e mail inea inea si SLOVAKIA Beijer Electronics AB SWEDEN Box 325 S 20123 Malm Phone 46 0 40 35 86 00 Fax 46 0 40 93 23 01 e mail info elc beijer se ECONOTEC AG Postfach 282 CH 8309 N rensdorf Phone 41 0 1 838 48 11 Fax 41 0 1 838 48 12 e mail info econotec ch GTS TURKEY Dar laceze Cad No 43A KAT 2 TR 80270 Okmeydani Istanbul Phone 90 0 212 320 1640 Fax 90 0 212 320 1649 e mail gts turk net SWITZERLAND EURASIAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B V Moscow Representative Office 52 Kosmodamianskaya Nab bld 5 RUS 113054 Moskow Phone 7 0 95 721 2070 Fax 7 0 95 721 2071 e mail info mitsubishi electric ru NPP Uralelektra RUSSIA Sverdlova 11A RUS 620027 Ekaterinburg Phone 7 34 32 53 27 45 Fax 7 3432 53 2461 e mail elektra etel ru JV CSC Automation 15 Marina Raskovoyi St U 02002 Kiev Phone 380 44 238 83 16 Fax 380 44 238 83 17 e mail mkl csc a kiev ua RUSSIA UKRAINE AFRICAN REPRESENTATIVE Circuit Breaker SOUTH AFRICA Industries Ltd Private Bag 2016 ZAF 1600 Isando Phone 2711 928 2000 Fax 2711 392 2354 PLC12 01 Printed in Germany Aa MITSUBISHI ELECTRIC
25. 4 1 and 4 2 1 concerning details of mode setting switch 1 2 2 If the QD51 R24 s multitask execution start flag is turned Off by a Reset if it is within the time when the set FROM TO command access is enabled it doesn t result in an error if the FROM TO command is executed 3 Multitask Execution Interrupt Flag XOC a When the QD51 R24 s mode setting switch 1 is set in the Run Mode 0 or 1 this flag is enabled it carries out On Off control If the QD51 R24 is in a mode other than the Run mode it remains Off and does not change b This flag goes On when an error is detected in a BASIC program during multitask execution At this time the error steps and error code 1 are displayed by the LED indicator and the QD51 R24 enters the System mode Correct BASIC programs where there are errors c Ifthe multitask execution interrupt flag goes On the multitask execution start flag XOB goes Off BASIC ON Error detection Nol xoo__OFF xog ON OFF 3 SPECIFICATIONS MELSEC Q 4 QD51 R24 System Down Flag XOD a When the QD51 R24 s mode setting switch is set in the Run Mode 0 or 1 this flag is enabled it carries out On Off control If the QD51 R24 is in a mode other than the Run mode it remains Off and does not change b This flag goes On when the system goes down during multitask execution and an error is detected At this time an error code 1 will be displaye
26. Error Code e For error codes see the Programming Manual Command Manual The line No of errors detected by BASIC are stored e Correspondence between the error code and the special register for storing the line numbers is as shown below For Error Code For Line Number 0 Storage Storage H24o9io ED Notine No epgoo1 E9009 ED9001 t anea o 2009 t Error Line No es ED9001 ED9009 EM9000 amp H2410 ED9016 1 to FFFF ED9002 ED9010 ED9008 Line No ED9003 ED9011 ED9004 ED9012 ED9005 ED9013 ED9006 ED9014 ED9007 ED9015 ED9008 ED9016 The setting number of the mode setting switch is stored amp H2414 ED9020 Run Mode 0 to 4 e 0 1 Run Mode e 2 3 Multitask Debugging Mode e4 Programming Mode 3 SPECIFICATIONS MELSEC Q Buffer Memory Address as Special Related Name Content Details of Contents i Special Special Relay f Register Related seen from the Register No CPU e The status of BASIC tasks 1 and 2 is stored as shown below b15 to b8 b7 to bO 0 0 10 1 0 1 A xx nw Oo WO EE OO NH aid 0 rea BASIC task in 0 BASIC task in the rest state the rest state The BASIC program is not being run 2H2416 ED9022 BASIC task 1 _ fe 1 BASIC task in the run state status BASIC task in The BASIC program is being run the run BASIC task in the stopped state stopped or None of the BASIC programs are being wait state run BASIC task in the wait state Waiting
27. Index 2 MEMO WARRANTY Please confirm the following product warranty details before starting use 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the dealer or Mitsubishi Service Company Note that if repairs are required at a site overseas on a detached island or remote place expenses to dispatch an engineer shall be charged for Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure cau
28. Lower order 3FFCu PUTMEM Higher order 3FFDyH Writing of data Lower order SFFEu Higher order 3FFFx c Writing Reading data by the FROM TO command in a sequence program With the FROM TO command designate the expansion register by the address The designation address is 1CO0H to 1FFFH in 1 byte units QD51 R24 Expansion Register b7 to bO 10004 Lower order Epo TO 1C001H Higher order Writing of data 10024 Lowerorder Lp 1C03x Higher order 1004n Lower order Sequence ss fee mb Sears A ED2 earn 1C05x Higher order to to FROM 1 FFCu ____Lower order _ ED1022 1ean af daio IFFDH Higher order Reading of data 1FFEn _Lowerorder yo 1FFFH Higher order 3 SPECIFICATIONS MELSEC Q 2 During execution of a BASIC program by multitasking data can be written or read from either task Reading of data Writing of data Expansion Register ED EDO 3 Number of Expansion Register Points The expansion register in the QD51 R24 is 1024 points from EDO to ED1023 The expansion register No in EDO to ED1023 is expressed in decimal notation 4 Expansion Register Addresses Expansion register addresses are designated differently depending on whether they are designated by the PLC CPU or by a BASIC program as shown below a Designation from the PLC CPU If an address is designated by the PLC CPU it is designated in 1 word units Also the buffe
29. NDUSTRIAL AUTOMATION Gothaer Strasse 8 D 40880 Ratingen Phone 49 2102 486 0 Hotline 49 1805 000 7650 Fax 49 2102 486 7170 www mitsubishi automation de megfa mail meg mee com www mitsubishi automation com
30. PUTMEM FROM TO command Lower order 8 bits 148001 in a BASIC program 1 word units 2400H 1 byte units Higher order 8 bits 4801 2401p 10Wer order 8 bits 48024 Higher order 8 bits 4803 5A i ea Rarer ee Lower order 8 bits 4FFCu 247En p Higher order 8 bits 4FFDx Lower order 8 bits 4FFEu 247 Fi Higher order 8 bits 4FFFH 3 SPECIFICATIONS MELSEC Q 3 5 6 Expansion relay EMO to EM1023 The expansion relay is a relay that can be used to send and receive ON OFF data between tasks internally in the QD51 R24 It cannot be used to output data to external devices 1 Turning the expansion relay On and OFF and reading ON OFF data a The special variable B can be used in a BASIC program to turn the expansion relay On and OFF and to read ON OFF data QD51 R24 TO B Writing of data Reading ON OFF data BASIC PLC CPU B program Writing ON OFF data FROM Reading of data b During BASIC program execution by multitasking either task can read the ON OFF data and this register can be used by either task through a BASIC program Expansion Relay EM EMO ON OFF ON OFF Reading of data 2 Number of Expansion Relay Points The QD51 R24 expansion relay has 1024 points 1 For details on special variable B see the AD51H BASIC Programming Manual Command Manual 3
31. SPECIFICATIONS 3 Writing Reading of Expansion Relay On Off Data Writing On Off data to and reading them from the expansion relay is accomplished using the special variable B or the GETMEM PUTMEM command in a BASIC program or using the FROM TO command in a sequence program MELSEC Q The expansion relay designation method differs as follows in the B variable the GETMEM PUTMEM command and the FROM TO command a Writing On Off data and reading them using special variable B in a BASIC program With special variable B the expansion relay is designated by EMO to EM1023 Designation is in 1 bit units QD51 R24 EM1021 EM1022 EM1023 Expansion Relay Reading of data BASIC program Writing of data b Writing and reading data using the PUTMEM GETMEM command in a BASIC program With the PUTMEM GETMEM command the expansion register is designated by the address The address designated is 4700H to 477Fn in 1 byte units EMO to EM15 EM16 to EM31 EM32 to EM47 to EM992 to EM1007 EM1008 to EM1023 QD51 R24 Expansion Register b7 to bO Lower order Higher order Lower order Higher order Lower order Higher order Lower order Higher order Lower order Higher order GETMEM Reading of data PUTMEM Writing of data BASIC program 3 SPECIFICATIONS MELSEC Q c Inthe FROM TO command for writing or reading data in accordance with the FROM TO
32. System Down signal XD is OFF and the QD51 R24 operating status signal XE is ON then Accessible is displayed I O address verification status This displays whether the module the user has set the parameters for matches the module that is installed or not Latest error code Displays the error code for the most recent error that has occurred Error display Displays the error codes for the error that have occurred with all the used functions as the object 2 If you are checking by the hardware information screen in the GPPW diagnostic function Start Procedure GPPW gt Diagnostics gt System Monitor gt Module Detailed Information gt Hardware Information rach aor FE pst Atah 080810000000000 B Cie Cng r HAW LEDTEER HAW 24 oF IAR J 7AB j 7aB I ig I PRG 0001 CONFIG 0025 MTSE 0000 MODE 0004 P1 RUN 0000 0000 P1 ERR 0000 0000 P2 RUN 0000 0000 P2ERR 0000 SERR 0000 ERAS EMF mea 7 TROUBLESHOOTING MELSEC Q Display contents 1 H WLED information package Displays the display status of the QD51 R24 s ERR LED PRG LED and RUN LED b15 to b8 b7 b6 b5 b4 b3 b2 bi bO For System EPR PRG RUN 2 H W LED information parameters Displays the QD51 R24 s A1SD51S compatible LED status b15 b14 b13 to b7 b6 b5 b4 b3 b2 bi bO 1 0 1 0 1 0 1 0
33. converted by the MKS function to a single precision real number Returns a character string converted by the MKD function to a double precision real number Converts AD51H BASIC single precision real numbers converted to character strings by the MKS function to internal expressions of floating point real numbers used in Q QnA AnA AnU and AnUS Single precision internal expressions in the IEEE format Converts AD51H BASIC double precision real numbers converted to character strings by the MKS function to double precision internal expressions in the IEEE format Converts integer type numbers to character strings Converts single precision type numbers to character strings Converts double precision type numbers to character strings Converts internal expressions of floating point real number data used in Q QnA AnA AnU and AnUS Single precision internal expressions in the IEEE format to character strings that can be converted to numbers by the CVS function MKSMBF Converts IEEE format double precision internal expression data to character strings that can be converted to numbers by the CVD function Defines user functions and assigns them names Defines variables starting with characters in the designated range as integer types Defines variables starting with characters in the designated range as single precision real number types Defines variables starting with characters in the designated range as double precision real num
34. for execution of the PRINT command or other command to be completed or a run interrupt command was executed If a BASIC task is started by a ZSTART command do so when the designated task is on bit 0 e This sets the timeout time of the PCRD and PCWT commands The default is 50 5 sec e Setting units 100 ms e 0 Unlimited wait e 1 to 32767 x 100 ms is the wait time PCRD amp H2032 ED9050 PCWT 0 to 32767 timeout time 3 SPECIFICATIONS MELSEC Q 1 Reading data in the special register Reading data from the special register is accomplished by the special variable W ina BASIC program by the GETMEM command or by the FROM command in a sequence program The method of designating the expansion register differs in the W variable the GETMEM command and the FROM command as shown below a Reading of data by the special variable W in a BASIC program With the special variable W the special register is designated by ED9000 to ED9127 The designation is in 1 word units QD51 R24 Special Register bi5 to bO ED9000 ED9001 W ED9002 Reading of data ED9003 ED9004 BASIC 4 program ED9125 ED9126 ED9127 b Reading of data by the GETMEM command in a BASIC program With the GETMEM command the special register is designated by the address The designated address is 4800H to 48FEu in 1 byte units QD51 R24 Expansion Register b7 to bO ____Lower order __ 4800H Higher order 4801
35. internal memory The BASIC program is run when there is a start request from another task In the case of the start condition ON when the power is turned On or there is a reset the program to be run which is stored in Flash ROM is not read and loaded in the QD51 R24 s internal memory When there is a start request from another task the designated BASIC program is read from the file area of the user FD HD and run 2 Running a task a b If the start condition is BOOT the task starts when the ZSTART command is run from another BASIC program If the start condition is ON the task starts each time the ZSTART command is run from another BASIC program and the designated BASIC program has been read from the user FD HD file area If the start condition is BOOT If the start condition is ON Start request from Start request from another BASIC program another BASIC program BASIC Program BASIC program is read from the user FD HD END e e BASIC Program stops Start request BASIC Program is reset BASIC Program stops Start request is reset For a task that is started by a start request from another BASIC program write it so that an END command is run at the end of the BASIC program If an END command is run the start request is reset and it is made possible for the next interrupt to be received 3 SPECIFICATIONS MELSEC Q 3 12 Running a BASIC
36. is explained below The connector pin No is shown in parentheses 1 CD Signal 1 e Nothing is being controlled in the QD51 R24 e The signal status can be read by a BASIC program 2 RD Signal 2 This is the signal for data reception 3 SD Signal 3 This is the signal for data sending 4 DTR Signal 4 e If DTR DSR control is being exercised the QD51 R24 is being turned On and Off depending on the size of the empty space in the OS area for storing reception data When the DTR signal is OFF reception data are being stored in the OS area so read the reception data from a BASIC program If DTR DSR control is not being exercised it is normally On 5 DSR Signal 6 e If DTR DSR control is being exercised when Off data are not sent to the opposite device from the QD51 R24 When the opposite device is in the ready to receive state set it so that it is normally On e If DTR DSR control is not being exercised the DSR signal s status is disregarded 3 SPECIFICATIONS MELSEC Q 6 RS Signal 7 e If RS CS control is being exercised the QD51 R24 is turned On or Off according to the size of the empty space in the OS area for storage of reception data It is On when data reception is possible When the RS signal is Off reception data are being stored in the OS area so read the reception data from a BASIC program If RS CS control are not being exercised it is normally On 7 CS Signal 8 e When Off Data are not
37. is possible lt Data communications with external devices gt Non procedure data communications can be carried out with external devices connected to the RS 232 and RS 422 485 interfaces It is possible to create 3 or more BASIC programs gt However a maximum of 2 tasks BASIC programs can be run simultaneously Control contents executed in the QD51 J lt Data communications with a console or terminal gt Data can be displayed in a console or terminal connected to the RS 232 and RS 422 485 interfaces and data can be input from the console or terminal lt Printout on a Printer gt Data can be printed out on a printer connected to the RS 232 interface Robot bar code reader thermostat etc DOS V Personal Computer etc 1 OVERVIEW 3 5 MELSEC Q Data communications with the PLC are possible Data can be sent to and received from a PLC CPU or the MELSECNET H PLC CPU with the QD51 R24 installed in it The types of data which can be sent to and received from a PLC CPU are shown below 1 Device writing and reading in the PLC CPU Max 960 words 1 time 2 Writing to and reading from the buffer memory in the special function module Max 960 words 1 time 3 Remote RUN STOP of the PLC CPU 4 Interrupts to the PLC CPU File control is possible Using the console s FD or HD hard disk sequential files and random files can be handled How
38. numbers in accordance with Program branching the value oncosus Branches to one line of a number of designated line numbers in accordance with the value IF GOTO ELSE Selects the branch destination in accordance with the results of a formula IF THEN ELSE calculation TRON Starts tracing of a program Resets tracing of the program set by the TRON command CDBI Converts double precision real numbers to 2 word 32 bit integers used by the F t PLC CPU ormat conversion CSNI Converts single precision real numbers to 2 word 32 bit integers used by the PLC CPU 3 SPECIFICATIONS MELSEC Q Table 3 1 List of Commands and Functions in AD51H BASIC Continued Command Classification Operation Contents Function A Writes 0 or 1 to the designated bit of an integer t iabl er type array variable designated bit g ger type array variable Reading from the designated bit Gives a character code corresponding to the top character in a character strin Character e ASCII f rmul p 9 p g conversion F CHR Gives a character as a character code for the value of an integer formula Recognizes a numerical value as a decimal number and converts it to a character string Gives a numerical value which shows a character string VAL Number gt HEX Converts a decimal number to a hexadecimal character string Character string OCT Converts a decimal number to an octal character string conversion BIN Converts a decimal number to
39. registered ON Multitask execution in 1 Reading of Special Relay On Off Data Reading of special relay On Off data is accomplished by the special variable B or the GETMEM command in a BASIC program or by the FROM command in a sequence program The expansion register designation method differs as shown below for the B variable the GETMEM command and the FROM command a Reading data by the special variable B in BASIC program With the special variable B the special registers are designated by EM9000 to EM9127 Designation is in 1 bit units QD51 R24 Special Relay EM9000 1 0 EM9001 1 0 B EM9002 1 0 Reading of data EM9003 1 0 EM9004 1 0 BASIC L program EM9125 1 0 EM9126 1 0 EM9127 1 0 3 SPECIFICATIONS MELSEC Q b Reading data by the GETMEM command in a BASIC program With the GETMEM command special registers are designated by addresses Designation addresses are 4A00H to 4A0Fu in 1 byte units QD51 R24 Expansion Relay b7 to bO EM9000 to EM9015 Lower order Higher order Lower order EM9016 to EM9031 Higher order EM9032 to EM9047 Lower order 4A00H 4A01H GETMEM 4A02H Reading of data 4A03H 4A04H Higher order 4A05xy BASIC program to to Lower order _ 4A0Cu PUTMEM EM9096 to EM9111 icher order 4A0Du Writing of data Lower order 4A0En EM9112 to EM9127 Higher order 4A0Fu c Reading data by the FROM command in a sequence
40. sequence program The method of designating the expansion register differs in the W variable the GETMEM PUTMEM command and the FROM TO command as shown below a Writing Reading of data by the special variable W in a BASIC program With the special variable W the expansion register is designated by EDO to ED1023 The designation is in 1 word units QD51 R24 Expansion Register to Reading of data BASIC program Writing of data 3 SPECIFICATIONS MELSEC Q 1 x1 The data in the expansion register are not backed up by a battery so if the PLC s power is turned Off or it is reset the data written to the register are erased If it is necessary to save the data even when the PLC s power is turned Off or it is reset save the data to a device that is latched to the PLC CPU s file register etc 2 x2 When data are sent and received between devices in 1 word units the buffer memory see Section 3 5 2 and common memory see Section 3 5 3 can also be used b Writing reading of data by the PUTMEM GETMEM command in a BASIC program With the GETMEM PUTMEM command the expansion register is designated by the address The designated address is 3800H to 3FFFH in 1 byte units QD51 R24 Expansion Register b7 to bO EDO ___Lower order 38001 Higher order _ 3801H GETMEM ED1 __Lowerorder__ 38024 Reading of data Higher order 3803H ED2 ___Lower order 38041 BASIC Higher order 3805H program
41. system will malfunction A CAUTION e Do not bunch the control wires or communication cables with the main circuit or power wires or install them close to each other They should be installed 100mm 3 94 in or more from each other Not doing so could result in noise that may cause malfunction e If a BASIC program is registered in the flash ROM in the module do not perform a power OFF or PLC CPU reset operation at the station where the module is installed during registration If a power OFF or PLC CPU reset operation is performed at the station where the module is installed during registration the data contents in the flash ROM will be indefinite and it will be necessary to reset the setting values etc in the buffer memory and register them again in the flash ROM It could also cause the module to break down or malfunction INSTALLATION PRECAUTIONS A CAUTION e Use the PLC in an environment that meets the general specifications contained in the user s manual of the CPU moudle to use Using this PLC in an environment outside the range of the general specifications may cause electric shock fire malfunction and damage to or deterioration of the product e When installing the module securely insert the module fixing tabs into the mounting holes of the base unit while pressing the installation lever located at the bottom of the module downward Improper installation may result in malfunction breakdown or dropping out of the m
42. that occur in the QD51 R24 are explained For error contents see the Programming Manual Command Manual 7 1 About QD51 R24 Status Checks 7 1 1 Checking the LED lighting status communications error status and QD51 R24 switch setting status Here the method used to check the communications status between the QD51 R24 and an external device and the QD51 R24 s switch setting status is explained When checking an error state due to the occurrence of trouble etc carry out the check by one of the following methods 1 If you are checking the module status and error code in the module detailed information screen of the GPPW diagnostic function Start procedure GPPW gt Diagnostics gt System Monitor gt Module Detailed Information iy EEA ER 229 EB QD51 Roo lees 08087 0000000000 B c BBL ONo 0 ae Ar 02B 1A 2ryhPORR YOU h hh IEE ap M2 VMIVABE 7 ba 2 RE ane VOP MU ZEB SHR HE JE hv 2 SERRE R AE BIOLIN i RETIER C 16 EE C im G REN A L3 SRTLET RANOLIAd R FTIR TANET ERAS it T S Hie 7 TROUBLESHOOTING MELSEC Q Display contents e Module The following information is displayed Model name Installed module model name Header I O No Relevant module s header Input Output signal No Installation position The slot position where the module is installed Product information Product information Module access If the QD51 R24
43. the specifications for data transfers with external devices communications protocols etc Start procedure GPPW gt PC Parameters gt I O Assignment Settings gt See the Operating Manual for the GX Developer concerning screen display methods Setting screen VORAN 4979 xy MEREL ob 24 FERE IER fo yoru GPU H oeo us Dat 0025 0004 ooo oodo 0000 1401 z ENEIT Fey tb Display contents Set each switch setting value in combination with 16 bit binary data setting the mode console etc Switch No Console setting Terminal kanji code setting Terminal type setting Switch 1 Setting switch Refer to 1 Access possible time setting after Y reset Write protect setting 1 eee setting Switch 2 ss Modeswth O O switch Refer to 2 Not used Set 0000n 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 1 Setting switches b7 b6 b5 b4 b3 b2 bi bO Channel setting E Console EA Console debugger kanji code Shift JIS as b4 Console debugger type ov w bs Ctrl C setting Disabled Enabled Fixed on OFF Access possible time setting after Y reset 200 mS 2000 mS a Console Channel setting Bit Position E Spit eo eee OFF OFF Without console OFF oN With console CH1 With console CH2 ON ON Setting impossible e Position Fixed on OFF Flash ROM w
44. 0 m The RS 422 485 cable specifications are shown below Cable Type Shielded Cable Logarism Conductor Resistance 20 C 88 0 Q km or less Insulation Resistance 10 000 MQ km or greater Voltage Resistance 500 VDC 1 minute Electrostatic Capacity 1 KHz Average 60 nF km or less Characteristic Impedance 100 KHz 110 100 Recommended Cables SPEV SB MPC 0 2 X 3P__ Made by Mitsubishi Electric Wire Co Ltd SPEV SB 0 2 X 3P Made by Mitsubishi Electric Wire Co Ltd The electrical characteristics of the recommended cables SPEV SB MPC 0 2 X 3P and SPEV SB 0 2 X 3P are equivalent but they differ somewhat in their external dimensions and internal wire colors 3 SPECIFICATIONS MELSEC Q 3 3 3 Cautions during data communications with a RS 422 485 line Caution is necessary in the following points when carrying out data communications with the opposite device via the QD51 R24 s RS 422 485 interface As for the opposite device please send and receive data with consideration of the following points 1 Countermeasure for data error reception on the opposite device side when connected to the RS 422 485 When data containing errors are received by the opposite device install a pull up or pull down resistor in the opposite device By installing a pull up or pull down resistor the criterion for the resistance value is approximately 4 7 kQ 1 4 W it is possible to prevent reception of data con
45. 1 Use Prohibited x1 The multitask execution start signal XB is a signal that announces whether access to the QD51 R24 by the PLC CPU is possible or not Use it as the system program interlock signal It goes ON when a BASIC program is run 2 If the QD51 R24 system down signal XD goes ON start up the PLC CPU again Power supply reset CPU module QD51 reset Do not output turn On the Use Prohibited signal which is one of the input output 2S 2S S 2S 2S 2S AS 12S S 2S 2S S S YS YS S TIMID 10 W gt JN Jo Ja A jo n Jo signals related to the PLC CPU If an output is activated for the Use Prohibited signal there is danger that the PLC system could malfunction 3 SPECIFICATIONS MELSEC Q 3 8 1 Input X detailed explanation Here the input X for the QD51 R24 is explained The input No Xn used in this section is the No as viewed from the PLC CPU 1 General input X00 to XOA X10 to X1F 27 points The general input can be used freely by the user and can be used to send On Off data from the QD51 R24 to the PLC CPU Turning the general input On and Off is accomplished by the special variable B PLC CPU QD51 R24 General Input X00 amp H00 ON x Y100 B X amp H00 1 2 Multitask execution start flag XOB a When the QD51 R24 s mode setting switch 1 1 is set in the Run Mode 0 or 1 this flag is enabled it carries out
46. 1 0 1 0 1 0 1 0 1 0 x Ly For System E PRG MTSE P1 RUN P1 ERR P2 RUN P2 ERR S ERR 3 H W SW information parameters The QD51 R24 s switch information is displayed No 1 to 5 correspond to switches 1 to 5 shown in Section 5 6 2 7 1 2 Errors that occur in BASIC See the Programming Manual Command Manual Appendix 4 4 concerning errors that occur during BASIC program execution APPENDIX MELSEC Q APPENDIX Appendix 1 Comparison of Functions with Previous Modules A comparison of the QD51 R24 s functions with the functions of previous modules is shown QDs QD51 R24 A1SD51S ADS1H S3 V53A 20 MHz 806186 15 MHz None Programming language AD51H BASIC ee Interpreter compiler Number of tasks E o E ee Start at power on Task start conditions Start by interrupt from the PLC CPU Impossible when compiled programs are run e Start by start request from another task 384 k bytes Max 64 k Program ax GTK Dys 16 32 48 64 k bytes 16 32 48 64 k bytes selectable for one task selectable for one task 6 k bytes 1024 points 1024 points Input 27 points General input output Output 19 points 2 points For task start from the PLC CPU Input 27 points Output 26 points 9 points For start from the PLC CPU Yes Yes Memory protection None EEP ROM write Memory card write protectable protectable RS 232 RS 422 485 PK camna tchanneh Interfaces Par
47. 51 R24 I O Allocation Setting and enables the following switch Section 5 6 1 settings Switch Settings Section 5 6 2 Not used Set 0000n Interrupt pointer header No CPU Side Number of interrupt Carries out settings in order to pointers Interrupt Pointer Settings Section 5 6 3 execute an interrupt program Header I O No Header SI No Set when using a Multiple PLC See the QCPU Meds Multiple PLC Settings g p Number of CPU s etc Multiple PLC corresponding system gt user s manual 3 SPECIFICATIONS MELSEC Q 3 8 List of Input Output Signals From To the PLC CPU The QD51 R24 s input output signals are explained Allocation of input output signals are shown for the case where the QD51 R24 is mounted in slot 0 of the basic base unit Device X is an input signal from the QD51 R24 to a PLC CPU and device Y is an output signal from the PLC CPU to an intelligent communications device The input output signal list for the PLC CPU is shown in the following table i 3 Signal Content Reference Section Device No Signal Content Reference Section wo OTTE lt O oO Zz e YO General input Section 3 8 1 1 General Output Section 3 8 2 1 Section 3 8 1 2 Multitask interrupt Section 3 8 1 3 YC QD51 R24 system down Section 3 8 1 4 X XB x Cc XD XE XF Use prohibited S Soi Y11 General output i General Output Section 3 8 2 1 General input Section 3 8 1
48. Developel ccecceccesceeeceeeeseeseeseceeeeaeeaecaecseeeaeeaecaeseaseaeeaesaeseaseaesaeseeeaeeaesaeeneseaeeaes 5 12 5 6 1 V O dssignment Settings a aiiiian aren avid aes ivan a ia vaults 5 12 5 6 2 I O module intelligent function module Switch settings cecceceeceeseeeeceeeeeeeeeaeceeeeeesaeeeeeeteaeeaes 5 13 5 6 3 Intelligent function module interrupt point settings 2 ee eee eeeeeeeeteeeeeeeeeeeeeeeteeeteeeeeteeeteeeteeeteateaes 5 17 5 7 Maintenance GHECKS isis ix cacchavesadchvenvaseh avanvdeaavavweuhavsvalvadeeveesacsaaassghsnieyasdsnacs cadvanvashcvaseatedweosstiaghaaad pasa 5 18 6 EXCLUSIVE COMMANDS 6 1to6 2 6 1 List of Exclusive COMMANAS cccccecceceseeeeceeeeeeeseeeeceeceeeeaeeaecaeseeeaecaeseeseaesaesaesaeseaeeaesaeseesaesaesneseaeeaees 6 1 6 2 YGHECK Command arra niae eaaa anaa aaae aaa aaa aaa aaa Stone Suis anasa aaa ANa as redara Roka ie 6 2 7 TROUBLESHOOTING 7 1to7 3 7 1 About QD51 R24 Status Checks 0 ecceceeeeceeeeceeeeeeeceeceeeeeeeaeceeeeeeeaesaesaeseaesaesaeseeseaesaesaeseeeeaesaseeseaeeates 7 1 7 1 1 Checking the LED lighting status communications error status and QD51 R24 switch seting Status oaa ira ion ain ni O vi nai en Ai 7 1 7 1 2 Errors that occur in BASIC cccceecceseeseececeeceeeeseeaecaeseeeeaecaeceeeeaesaecaeseeeeaeeaecaeseaesaesaeseeseaesaesaeseeeeaeeaes 7 3 APPENDIX App 1 to App 9 Appendix 1 Comparison of Functions with Previous Modules c
49. E AEREE ARA AERECO EEA AR UUE E HARS 4 10 4 3 1 Printing from a printer connected to an interface that is not set in the console s es 4 11 4 3 2 Printing from a printer connected to the console 0 eee eee eeeeeeeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeateas 4 13 4 4 Communications with the External D VICC ccccesceceeeeeeeeeeeeeeeeeeaeceeeeaeeaesaeseeseaesaesaeseeeeansaneeeeaeeaes 4 14 4AA licdata are peng SNe ienne TERENE AEE nt is eth teenie eth TANE EEA ARTENS 4 14 4e It dataare reCeIveGs 3 22 e a a aediea 4 15 4 5 Communications with the PLC CPU 0 ececeecceseceeceeeeceeceeeeeeceeceeseeeeaeeaesaeseeeeaesaeseeseaesaesaeseeeeaesaneeeeateaes 4 16 4 5 1 ON OFF data communications by general output X Y cecceceeceeseeeeeeeeeeeeseeeesaeseeeeaeeaesaeseeteaeeaes 4 17 4 5 2 Reading and writing data from to buffer Memory 0 0 cece eeeeeeeeeeeeeeeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeenaeens 4 18 4 5 3 Reading and writing data from to the PLC CPU 0 ecececceceeeceeeeeceeeeeeeeaeeeeeeaeeaesaeseeeeaesaesaeeeeseaeeaes 4 19 4 5 4 Reading and writing data from to the PLC CPU s expansion file register csseceeeeeee 4 20 4 6 Reading and Writing Data from to the Buffer Memory of Another Intelligent Function Module Special Function Module oo eee eee eeeeeeeeeeeceeeaeeeeeeceesaesaeeeseecaesaseeseesaesaesaseeseesaesaseeseesaesaesaseesesaneaneeees 4 21 4 7 Reading and Writing Clock Data ccceccecccseeceee
50. EC Q 1 OVERVIEW This manual explains concerning the system configuration performance specifications and functions of the QD51 QD51 R24 Intelligent Communications Module The QD51 R24 has the following functions 1 Functions by BASIC Programs Sub CPU Function Complex numerical calculations and function calculations can be made with a BASIC program Monitor Display Function It can display production conditions the operating status the contents of a breakdown etc Key Input Function The production schedule production count operation setting data etc can be input Printer Function Production plans results daily schedules breakdown contents planning data inspection results and test performance etc can be printed out Data Input Function Data input can be accomplished from a bar code reader or magnetic card reader etc External Device Connection Function A computer etc can be connected to the RS 232 RS 422 485 interfaces and data can be sent and received through a BASIC program Clock Function Clock data held by the PLC CPU can be read and written 2 Offline Programming Function BASIC programs can be created corrected stored to user FD and printed out independently by peripheral devices 3 Online Programming Function BASIC programs can be created run and corrected from the console 4 Multitasking Debugging Function BASIC programs can be debugged while they are being run 1 OVERVI
51. EW MELSEC Q 1 1 Operation Overview for QD51 R24 The QD51 R24 is a module which operates by BASIC programs created by the user The BASIC version that can be used by the QD51 R24 is AD51H BASIC which is capable of multitasking processing of up to 2 tasks Besides the various calculations that can be carried out by a BASIC program created by the user e Data can be sent to and received from an external device e Data can be sent to and received from the PLC CPU The operation in the QD51 R24 when data are sent to or received from an external device or the PLC CPU is as shown below Internal Memory BASIC Program Interface 1 i Expansion Relay RS 232 l a ae A Data Data reading Task No 1 Area Writing Sending Expansion Register RS 232 o External PLC CPU HABEN riaient a 6 lee he AA R Ty i Device i Common Memory e 7 Je RS 422 e Data Sending dt Data writing Data RS 485 Reception Reception reading _______ i 7 Buffer Memory i Task No 2 Area i e Data reading e Task start request i i i i i l i i e Interrupt request oo J e Data writing 1 In the case of the QD51 RS 232 2 Channels In the case of the QD51 R24 RS 232 1 Channel RS 422 485 1 Channel 1 OVERVIEW 1 MELSEC Q Sending Data to and Receiving Data from an External Device The QD51 R24 is equipped with the following interfaces
52. H GETMEM ___Lowerorder 48024 Reading of data Higher order _ 4803x Lower order 4804 _ Higher order 48051 ED9000 ED9001 ED9002 BASIC program Lower order 48FBu Higher order _ 48FCu Lower order 48FDu Higher order 48FEx 3 SPECIFICATIONS c MELSEC Q Reading of data by the FROM command in a sequence program The special register is designated using the FROM command by the address The designated address is 2400H to 24FEn in 1 byte units QD51 R24 Expansion Register b7 to bO Lower order Higher order ED3000 FROM Lower order ED9001 Reading of data Higher order Lower order ED9002 BASIC Higher order program 6 Lower order Higher order ED9126 L ower order ED9127 Higher order 2 Special Register Addresses Special register addresses differ in the address designated depending on whether they are designated by the PLC CPU or by a BASIC program Address designation is as follows a Designation from a PLC CPU In the case of designation from a PLC CPU designation is in 1 word units Also the special register address is 24004 to 247Fn in hexadecimal notation Designation by a BASIC program In the case of designation in a BASIC program designation is in 1 byte units Also the special register address is 4800H to 48FFu in hexadecimal notation Designated from the Address designated by PLC CPU using a Buffer Memory GETMEM
53. Interface Module If a Function Version A module is included in the relay modules only the control PLC can be accessed Relay Module MELSECNET H Network Module 1 OVERVIEW MELSEC Q 1 3 About the Function Added Changed to the Function Version B This shows the functions that have been added to or changed in the Function Version B QD51 R24 Function Function overview Explanatory section When reading device data from or writing them a AD51H BASIC to a multiple PLC system it is possible to i Programming Manual access the Control PLC Non Control PLC ee PCRD PCWT Command specified by the user 1 For a comparison of functions in the different function versions see Section 1 1 in the Appendix 2 See Section 2 4 concerning the method for checking the function version 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS This shows system configurations and the functions that can be used 2 1 Application Systems This shows application systems 2 1 Applicable modules and the number of boards that can be installed This shows PLC stations in which the QD51 R24 can be installed and the number of boards that can be installed Applicable Module Number of Boards that can be installed QO02CPU QO2HCPU CPU Module QO6HCPU Can be installed in the Q mode only Q12HCPU Maximum 64 boards Q25HCPU Station QJ72BR15 Station 2 Base Unit where th
54. LGARIA MPL Technology SP z o o POLAND 4 A Ljapchev Blvd ul Wroclawska 53 BG 1756 Sofia PL 30011 Krak w Phone 359 92 97 44 05 8 Phone 48 0 12 632 28 85 Fax 359 92 97 44 06 1 Fax 48 0 12 632 47 82 e mail e mail mpl krakow ipl net INEA CR d 0 0 CROATIA Sirius Trading amp Services srl ROMANIA Drvinje bb Bd Ghica nr 112 BI 41 Sc 2 ap 98 HR 10000 Zagreb Phone 385 0 1 366 71 40 Fax 385 0 1 366 71 40 e mail inea cr zg tel hr RO 72235 Bucaresti 2 Phone 40 0 1 210 55 11 Fax 40 0 1 210 5511 e mail sirius_t_s fx ro AutoCont Control CZECHIA Systems s r o Nemocnicni 12 CZ 702 00 Ostrava 2 Phone 420 0 69 615 21 11 Fax 420 0 69 615 21 12 e mail petr pustovka autocont cz DENMARK louis poulsen Geminivej 32 DK 2670 Greve Phone 45 0 43 95 95 95 Fax 45 0 43 95 95 91 e mail pia lpmail com UTU Elektrotehnika AS P rnu mnt 160i EE 11317 Tallinn Phone 372 6 51 72 80 Fax 372 6 51 72 88 e mail utu utu ee ESTONIA Beijer Electronics OY FINLAND Elannontie 5 FIN 01510 Vantaa Phone 358 0 9 615 2011 Fax 358 0 9 615 20 500 e mail info elc beijer fi MITSUBISHI ELECTRIC EUROPE B V Irish Branch Westgate Business Park IRL Dublin 24 Phone 353 0 1 419 88 00 Fax 353 0 1 419 88 90 e mail sales info meuk mee com IRELAND ACP AUTOCOMP a s Chalupkova 7 SK 81109 Bratislava Phone 421 0 7 592
55. MELSEC Q If the program runs all the time The program runs all the time if an END command is not used at the end of the BASIC program but instead a GOTO command is used to cause it to jump to a specific line The task starts when the power is turned On or when there is a Reset then runs until the GOTO command then since it jumps to the specified line it runs repeatedly between the specified line and the GOTO command BASIC Program x ok BASIC Task with START set Program in the start condition GOTO 3 SPECIFICATIONS MELSEC Q 3 11 3 Starting by an interrupt from the PLC CPU Start Condition IT This is the case where the start condition in the multitask settings is set on IT Starting of a task is done if the Run Permission Conditions listed in Section 3 11 1 are established and when there is a start request from the PLC CPU A start request from the PLC CPU is executed by 1 Start task No designation flag Y11 Y12 2 Task start signal Y19 For details concerning the start task designation signal and the task start signal see Section 3 8 2 1 Processing when the power is turned On or when there is a reset When the power is turned On or there is a reset the program to be run which is stored in Flash ROM is read and loaded into the QD51 R24 s internal memory The loaded BASIC program is then run when there is a start request from the PLC CPU 2 R
56. On Off control If the QD51 R24 is in a mode other than the Run mode it remains Off and does not change b If the QD51 R24 is in the Run mode after the power is turned On or after a Reset if multitask execution is enabled this flag goes On In a sequence program use it as the interlock for execution or no execution of the FROM TO command for reading data from writing data to the QD51 R24 s buffer memory see Section 6 6 5 When the QD51 R24 is not in the multitask execution enabled state if the FROM TO command is executed for the PLC CPU it will result in a SP UNIT DOWN error and the PLC CPU will stop its calculations 2 If data DO is written from the PLC CPU to the QD51 R24 s buffer memory address 0 Write Instruction X0B RS A Jf TO H1 KO DO KI H ER command execution enable disable interlock 3 SPECIFICATIONS MELSEC Q c Inthe QD51 R24 s Run mode it is Off in the cases shown below 1 When Y1A reset request signal of the QD51 R24 is turned On and reset is performed It goes On again if the QD51 R24 s reset processing is completed and the multitask execution enabled state is restored 2 When a BASIC error is detected Multitask execution interrupt flag XOC goes On BASIC ON Error detection xoc OFF A xog ON OFF 3 When the QD51 R24 system is down QD51 R24 down flag XOD goes On QD51 ON System down OFF ON X0D X0B OFF 1 1 See Section
57. Program by Multitask Processing Here the method of running a QD51 R24 BASIC program etc is explained 3 12 1 Multitask processing The QD51 R24 us a unit which operates by BASIC programs created by the user In the QD51 R24 through multitask processing in which running of multiple a maximum of 2 tasks BASIC programs is switched sequentially by a single main CPU Central Processing Unit BASIC programs are run in parallel Processing in the case of two tasks Za Shows the order of Task 1 Task 2 1 main CPU processing a i ye 1 wv 2 a Te z D A 4 ie baa OSES a 5 8 In QD51 R24 multitask processing switching of BASIC program execution is done when the conditions shown below occur When Task schedule time 50 ms has passed When a data input output data send receive command is run with respect to a screen keyboard disk peripheral device or external device When a command is run which carries out control of interrupts stops ends BASIC program execution When a command is run which carries out multitask control synchronizes execution starts or changes the priority etc When a program execution interrupt state is canceled input output is completed the specified time has passed etc 1 See the AD51H BASIC Programming Manual Command Manual concerning details of multitask processing and commands which switch the execution of programs 3 SPECIFICATION
58. QD51 If used in the QD51 there is no CH 3 RS 422 485 interface in the QD51 so it cannot be used Correct the BASIC program to the other channels or use the QD51 R24 b Use in the QD51 R24 If used in the QC51 there is no CH 2 RS 232 interface in the QD51 so it cannot be used Correct the BASIC program to the other channels or use the QD51 App 2 App 2 APPENDIX MELSEC Q 2 Communications specifications Data bit and stop bit settings differ Correct the BASIC program ass asera 5 6 7 8 Stop bit 1 1 5 2 1 2 3 Common memory backup Common memory backup is as shown below asss QD51 R24 Not backed up In the QD51 R24 common memory is not backed up by a battery If backup is necessary use the PLC CPU s file register R 4 Task start signal Y19 If a task is started by the task start signal Y19 add the exclusive command YCHECK 5 PCRD PCWT command The processing codes shown below cannot be executed with respect to the Q QnA CPU Replace those codes which can be replaced a PCRD commands Processing codes used in the A1SD51S AD51H S3 Contents Processing Code Monitoring of the device monitor register by 2 8H2 the PCWT command Reading of expansion file register data 4 amp H4 Monitoring the expansion file register monitor 5 amp H5 registered by the PCWT command data in the expansion file register 10 Treatment Readi
59. QD51 R24 is installed only the QD51 R24 s control PLC can use the QD51 R24 s functions 1 OVERVIEW MELSEC Q 3 It is possible to access the Control PLC Non Control PLC from the QD51 R24 by a BASIC program Non Control PLC Control PLC QD51 R24 BASIC Program Read Write 03EQu to 03E34 O3FFH The access destination requesting module s I O No odes eee gt Data Besereeneeneeseeed gt Pea ite t QCPU is specified by the Device Memory etc i If accessing another station by a BASIC program even if the relay station or the access station is a multiple PLC system the Control PLC and Non Control PLC of the access station can be accessed Example Even if the control PLC of the relay module is the same or even if it is different it is possible to access the other station Peripheral Local Station Device 1 2 3 4 4 2 1 Set from the SW6D5C GPPW E MELSECNET H Relay Station 1 PLC No 1 2 PLC No 2 3 PLC No 3 1 2 3 4 12 2 4 PLC No 4 1 Relay module controlled by PLC No 1 T QD51 R24 controlled Access Station __ by PLC No 1 2 Relay module controlled by PLC No 2 K x The relay module s object during other station access is as follows e MELSECNET H MELSECNET 10 Network Module Q Series C24 Ethernet
60. R24 s power is turned off the BASIC program written to it and the data in the buffer memory etc are erased Be sure to save the BASIC programs you create in flash ROM before turning the power off Also store the contents of buffer memory etc in a device that is latched by the PLC or save them to files 3 SPECIFICATIONS MELSEC Q 3 5 1 Program area Following programs can be stored in the program area e BASIC programs created at the console e Programs for execution read from the flash ROM 1 Memory Capacity The program area s maximum capacity is 64 k bytes This 64 k bytes is divided so it can be used for a maximum of 2 BASIC programs Task 1 to Task 2 Task No 1 Area Max 64 k bytes Maximum 64 k bytes total for 2 tasks Task No 2 Area Max 64 k bytes 2 Capacity for 1 BASIC program The capacity for one BASIC program can be selected from 16 k bytes 32 k bytes 48 k bytes and 64 k bytes CAUTION If compiled BASIC is used approximately 2 times as much capacity is required as with interpreter BASIC 3 Configuration for each Task No Area Besides the area for the BASIC program an OS area an area for the variables used in that task and a random file buffer area are included in each Task No Area OS Area 1 k byte BASIC Program Area L One Task No Area 16 k bytes 32 k bytes 48 k bytes and 64 k bytes Random File Buffer Area Variable Area 3 SPECIFICATIONS
61. S External Device Side Signal Name DTR ER DSR DR NO Or BR oO p a x Set the CD terminal check setting in accordance with the specifications of the external device With the above wiring it is possible to carry out DTR DSR control and DC code control b Example of connection to an external device with a CD signal that cannot be turned ON and OFF 1 Connection example 1 QD51 R24 Side Signal Name Pin No CD RD RXD SD TXD DTR ER SG DSR DR RS RTS CS CTS 8 x With the above wiring it is possible to carry out DTR DSR control and DC code control External Device Side Signal Name DSR DR RS RTS CS CTS NI orj R o p 2 Connection example 2 QD51 R24 Side Signal Name Pin No External Device Side Signal Name i 2 3 DTR ER 4 SG 5 DSR DR 6 RS RTS 7 CS CTS 8 x With the above wiring it is possible to carry out DC code control When it is absolutely impossible to transmit data between the PLC CPU and an external device together with a connection test try data communications with the wiring connections shown in the above connection example 2 When data communications are possible with the wiring connections shown in connection example 2 correct the wiring connections after confirming the external device s interface specifications
62. S 485 compatible interface A QnA series PLC modules operated by commands from the PLC CPU Equivalent to Q series PLC intelligent function modules Examples e CC Link Interface Module e A D D A Conversion Module e High Speed Counter Module e Ethernet Interface Module e Computer Link Module Serial Communications Module User s Manual Hardware Q Corresponding Intelligent Communications Module User s Manual Hardware Manual or Hardware Manual Manual Special Function Module Microsoft Windows Microsoft Windows NT Microsoft Visual Basic and Microsoft Excel are registered trademarks of US Microsoft Corporation PC 9800 and PC98 NX are registered trademarks of Nihon Electric Corporation Other company names and product names appearing in this text are trademarks or registered trademarks of each respective company Meanings of Terms and Their Contents The meanings of terms used in this manual and their contents are shown below Term Contents This compiles programs created with the interpreter It registers the compiled files and executes them Compared to the interpreter its execution speed is on the average 2 or 3 times faster This is a device which connects to the QD51 R24 and is used to perform programming and multitasking settings A DOS V personal computer or a PC 9800 series personal computer with the software package installed becomes a console Depending on the settings the console becomes t
63. S MELSEC Q 3 13 BASIC Program Priority Order Priority In the QD51 R24 a priority order priority can be assigned to BASIC programs that are created When BASIC programs are started all BASIC programs are set at the same priority order Therefore the BASIC programs created by the user are run equally The priority order can be changed by the ZURGENCY Set urgency command If the priority order is changed as long as a program execution switch command is not run only the BASIC program with the highest priority is run without any scheduling being done by the OS BASIC programs with a low priority are not run 3 13 1 Synchronizing execution between BASIC programs Event control In multitask processing each BASIC program is process independently for this reason if data are shared between BASIC programs it is necessary that the receiving side read the data after confirming that the sending side has sent the data Event control is used to synchronize the execution of the data sending side BASIC program and the data receiving side BASIC program In event control the BASIC program that is on the data receiving side is set in the signal wait WAIT state then after the sending side finishes sending the data it gives a signal event and the receiving side BASIC program reads the data For this reason the data sent by the sending side can be read precisely by the receiving side BASIC program In event control the followi
64. a binary character string Fetches and gives a character string with the designated number of char r Character LEFT g r string g er of characters from the left of a character string jie nen Gi h ter stri hich is the starti rtion f the designated ition i ives a character string which is the starting portion from the designated position in MID Second q 2R a j the middle of a character string Character samplin ik RIGHTS Fetches and gives a character string with the designated number of characters from the right of a character string STRING Gives the designated number only of the designated character PACE Gives the a blank character string with the designated number of spaces Searches for a portion of a character string in the middle of a character string and Character search INSTR P ied gives the position where it is first found Character string LE length search N Format control Gives the designated number of spaces Format control function Reads 1 bit of data from the designated bit of an integer type array variable designated bit Character gt STR Number conversion Gives the number of characters composing a character string Advances the current character display position to the designated position CONSOLE Specifies the number of items displayed on the console screen Screen control Clears the screen display ZOPEN Opens a communications port and prepares to execute communications with an ex
65. afa MITSUBISHI ELECTRIC MELSEC Q Programmable Logic Controllers User s Manual Communications Modules QD51 R24 Art no 142092 ta MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION 10 09 2000 SH 080089 B 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 O DANGER resulting in death or severe injury l CAUTION Indicates that incorrect handling may cause hazardous conditions y 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 DESIGN PRECAUTION lt DANGER e Please refer to the manual for each data link concerning the operating status of each station when commun
66. allel Clock function Power failure protection None Yes Impossible eRe F F User program in ROM However Flash ROM is internal BONS EEP ROM is Possible internal A7PHP A7HGP A7LMS DOS V personal computer e VG 620 VT 382 DOS V personal computer 48 points The first 16 points are open and the last 32 points are special Slot share l o point share 32 points jena App 1 APPENDIX MELSEC Q Appendix 2 About Use of Programs from Previous Modules Here use of programs created for A1SE51S or AD51H S3 is explained POINT When the QD51 R24 is used be sure to set the mode settings and console and other settings in the GPPW parameter setting screen shown below e Intelligent Function Module Switch Setting Screen In the QD51 R24 there are no switches for mode settings or console and other settings as in the previous modules A1SD515 etc Appendix 2 1 About use of A1SD51S programs Here use of programs created for the A1SD51S and incorporation of the QD51 R24 in existing systems is explained Programs created in A1SD51S can be read as is However the points shown below differ slightly so exercise caution 1 Usable channels Usable channels are as shown below a en ee sss QD51 QD51 R24 CH 1 RS 232 Js sey ae SPS CH 2 RS 232 ae ee ee ee ee Channel cH 3 Rs 422RS 485 o x o CH 4 Parallel ee aes ee es ee O Can be used X Cannot be used a Use inthe
67. an be performed while performing multitask processing In the case of programming with a DOS V personal computer RS 232 Cable FD for the user Multitask debugging is performed by inputting the Debug command from the debugger By executing the Debug command the following can be done e The BASIC program for the specified task No area can be run and terminated e The variable values specified in the BASIC program for the specified task No area can be read and written e Data can be read from and written to the QD51 R24 s internal memory e Common events and message port use status displays etc can be shared between BASIC programs 8 Both interpreter BASIC and compiled BASIC can be used By compiling a BASIC program created in interpreter BASIC with the BASIC compiler the BASIC processing speed can be markedly increased Interpreter BASIC BASIC in an execution format where the QD51 R24 converts the program to machine language during execution Compiled BASIC BASIC in the format where the program is compiled the commands are converted to machine language at the stage when the program is completed and the QD51 R24 runs it in machine language directly 1 OVERVIEW MELSEC Q 9 Multiple PLC System Compatible Functions a If access to a QCPU in a multiple PLC system is done by a BASIC program the access destinat
68. and in the BASIC program QD51 R24 TO GETMEM Writing of data Reading of data PLooPu a a FROM y PUTMEM prog Reading of data Writing of data 2 Buffer Memory Capacity The capacity of the QD51 R24 s buffer memory is 3 k words 6 k bytes 3 Buffer Memory Configuration One address of the buffer memory is composed by 16 bits The entire area can be used as desired by the user 1 See the AD51H BASIC Programming Manual Command manual concerning the GETMEM and PUTMEM commanas 3 SPECIFICATIONS MELSEC Q 4 Buffer Memory Addresses Addresses in buffer memory differ depending on whether they are designated by the PLC CPU or by a BASIC program and are as follows a If designated from the PLC CPU If designated by the PLC CPU addresses are in 1 word units Also buffer memory addresses are designated from 0H to BFFu in hexadecimal notation b If designated by a BASIC program If designated by a BASIC program addresses are in 1 byte units Also buffer memory addresses are designated from OH to 17FFH in hexadecimal notation Designated from the Address designated by PLC CPU using a Buffer Memory i gt GETMEM PUTMEM FROM TO command Lower order 8 bits On ina BASIC program 1 word units OH Pann nnnnnn nn nnnnnnn nnn 1 byte units H Higher order 8 bits Lower order 8 bits 17FCu Higher order 8 bits 17F D Lower order 8 bits 17FEu Higher ord
69. ansion Register ceseeeeseeseereeees 3 23 Expansion Relay cscceseeseeseeeeeeseenteens 3 30 External Dimensions eceeeeeeeeeeeeeeee App 8 G General INDUt cecceseeseeeeseeeeseeeeeeeeeeaes 3 39 General OutpUt 0ceeeeeeeeeeeteeeseeeeeeteeeee 3 42 Index 1 H Handling Precautions 5 1 I O Assignment Settings ccceeeeee 5 12 Input Output Signal ceeeeeeeeeeeeee 3 38 Internal Memory sassassessesresrsnenssnesnernseneenen 3 16 bterpteli urinean A 14 E E EAEE 3 53 L Level Display Function 6 31 KSt BOK a AAA hotties 4 10 Commands and List of Functions 3 10 List Of FUNCTIONS 0 ee eee eeeeeeeeeeteeeeteeeteeeeees 4 1 M Maintenance Checks c ccccceceeeeeseeeeeees 5 19 Multitask asr eh ative et A 14 Multitask Execution Interrupt Flag 3 40 Multitask Execution Start Flag 0 0 00 3 39 Multitask Processing 3 55 N Names of Parts and their Functions 5 3 O ON baited a ies en ean 3 54 Operating State 0e aeee 3 41 Operation at Power ON sssseseeseseeesessee 3 47 P Performance Specifications ceeee 3 1 PNOY aii AN A N 3 56 Priority Order ceccecceceeeeeeeceeeeteeeeseeeeeeeaeees 3 56 Progtari Aroa onan A AAT 3 17 Programming Mode sseeeeeseeeeeesrenenn A 14 R Reading and Writing Clock Data 4 22 Receive Buffer cccecessees
70. ant explanation item in the User s Manual Applications Manual concerning the following contents Full duplex communications by the external device side s specifications A connection example is shown in this section b Connect the FG signal and shield of the connection cable as shown below N QD51 R24 Side Connections Connection cable FG Connect to the connector body on the QD51 R24 Do not short circuit the connection cable FG signal side signal and the SG signal When the FG signal in the external device side is connected to the SG signal do not connect the FG signal on the QD51 R24 side Connect to the FG terminal of the external device side or the connector body of the QD51 R24 Connection cable shield c If data communications cannot be done normally due to external noise make connections as shown below 1 Connect the external device side s FG terminal with the QD51 R24 side by the connection cable s shield 2 Connect each of the signals other than SG with the SG signal in twisted pairs To the QD51 R24 Side Shield External Poe Side connector FG body SD RD DSR DTR DTR DSR 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 2 Connection example a Example of connection to an external device with a CD signal pin 1 that can be turned ON and OFF QD51 R24 Side Signal Name Pin No CD RD RXD SD TXD DTR ER SG DSR DR RS RTS CS CT
71. aracter strings which include KINSTR double byte characters and gives the position of the first character string that is found characters character string that includes double byte characters Gives the type of characters at the designated position in a character string that includes double byte characters Opens a message port 3 SPECIFICATIONS MELSEC Q 3 5 QD51 R24 Internal Memory The following memory can be used by the user in the QD51 R24 1 Memory where programs for execution can be stored e Program Areas ss ttt tt ttt ttre rere rete e eens See Section 3 5 1 This is memory where BASIC programs which run the QD51 R24 are stored The program area can execute a maximum of two tasks and it has a maximum capacity of 64 k bytes 2 Memory for communications with the PLC CPU e Buffer memory By sate w src ore eal cig K ces hey W cas cy ERO te cep eee cig Oa Wa hepa ce tes cay arc See Section 3 5 2 3 Memory for communications with a task e Common memory Pee eR ae Ce ae eR a a Te ee eC eB AA See Section 3 5 3 4 Memory for reading writing ON OFF data e Expansion register ED 1024 points EDO to ED1023 See Section 3 5 4 e Special register ED9000 128 points ED9000 to ED9127 See Section 3 5 5 e Expansion relay EM 1024 points EMO to EM1023 See Section 3 5 6 e Special relay EM9000 128 points EM9000 to EM9127 See Section 3 5 7 CAUTION Internal memory is not backed up by a battery If the QD51
72. ask setting turned On the program is not read and loaded in the QD51 R24 s program area QD51 R24 Program aa to be run nternal memory lt Flash ROM Multitask processing Run the program read from the Flash ROM in accordance with the multitask setting contents e Start by turning on the power or by a Reset Start by an interrupt from the PLC CPU e Start by a start request from another BASIC program 3 SPECIFICATIONS MELSEC Q 3 11 Running a Task a created program Here running a task when the QD51 R24 is in the Run Mode and in the Multitask Debugging Mode is explained 3 11 1 Conditions for permitting running of a task and start conditions In the QD51 R24 a task is permitted to be run when it satisfies all the conditions shown below Actual starting of a task depends on the start conditions designated in the multitask setting 1 Task Run Permission Conditions Task start conditions are shown below a The start conditions are set in the multitask setting b The GPPW switch setting is set on Online Mode 0 1 or Debugging Mode 2 3 Program Stored in Flash ROM GPPW Mode Setting iy Task start conditions 0 1 Online Mode already set 2 3 Debugging Mode 2 Task Start Conditions Each task is run in accordance with the set start conditions The start conditions that can be set by the QD51 R24 are following three types 1 Start
73. at del Vall s Phone 34 9 3 565 3131 Fax 34 9 3 589 2948 e mail industrial sp mee com MITSUBISHI ELECTRIC UK EUROPE B V UK Branch Travellers Lane GB Hatfield Herts AL10 8 XB Phone 44 0 1707 27 61 00 Fax 44 0 1707 27 86 95 MITSUBISHI ELECTRIC CORPORATION Office Tower Z 14 F 8 12 1 chome Harumi Chuo Ku Tokyo 104 6212 Phone 81 3 622 160 60 Fax 81 3 622 160 75 MITSUBISHI ELECTRIC USA AUTOMATION 500 Corporate Woods Parkway Vernon Hills IL 60061 Phone 1 847 478 21 00 Fax 1 847 478 22 83 EUROPE JAPAN GEVA GmbH Wiener Stra e 89 A 2500 Baden Phone 43 0 2252 85 55 20 Fax 43 0 2252 488 60 e mail office geva co at AUSTRIA Getronics bv BELGIEN Getronics bv NETHERLANDS Control Systems Donauweg 2B NL 1043 AJ Amsterdam Phone 31 0 20 587 68 30 Fax 31 0 20 587 68 39 e mail info gia getronics com MIDDLE EAST REPRESENTATIVE TEXEL Electronics LTD Rehov Hamerkava 19 IL 42160 Netanya Phone 972 0 9 863 08 91 Fax 972 0 9 885 24 30 e mail texel_me netvsion net il ISRAEL Control Systems Beijer Electronics A S NORWAY Pontbeeklaan 43 Teglverksveien 1 B 1731 Asse Zellik N 3002 Drammen Telefon 32 0 2 467 1751 Phone 47 0 32 24 30 00 Telefax 32 0 2 467 17 45 Fax 47 0 32 84 85 77 E Mail infoautomation getronics com e mail info elc beijer no TELECON CO BU
74. being created or is being executed Gives the size of the unused area in the program area in number of bytes Reading of the memory capacity Starts execution of the program in the program area RUN ano o o Reads a program from a memory card or the FD or HD and executes it Program execution 7 7 CONT Restarts execution of a program that was stopped by a CTRL C or BREAK key input Restarts execution of a program that was stopped by the STOP or END command CHAIN Erases or partially deletes the program that is currently being executed and reads out and executes the designated program FOR to NEXT Repeats execution of a series of commands the designated number of times only When in the editing mode it stops program execution temporarily and waits for input of a command When in the execution mode it it stops program execution and enters the idle state execution STOP When in the editing mode it stops program execution and waits for input of a END command control When in the execution mode it stops program execution and enters the idle state commands Executes the group of commands between the WHILE and WEND commands WHILE to WEND 4 i H repeatedly while the designated conditions are established Moves the program flow unconditionally to the designated line Program control Program Branches to a subroutine then returns to the designated line No Branches to one line of a number of designated line
75. ber types Defines variables starting with characters in the designated range as character types Defines a character string to be a console function key CVSMBF CVDMBF MkI MKS MKD MKDMBF DEF FN DEFINT DEFSNG DEFDBL DEFSTR Designates the size of an array variable and allocates only the memory area that is necessary for the array Deletes an array defined by the DIM command from memory my o Zz wn m Gives a comment annotation in a program Sets turnover variables etc in a program which executes CHAIN commands DATA Designates a number or character string read by the READ command READ Reads a value defined by the DATA command and substitutes it in a variable RESTOR Reads the value of a DATA command read by the READ command from the first of a DATA command at the designated line No Substitutes the value in a formula in a variable SWAP Swaps the values of two variables ZMOVE Transfers values between one variable and another variable BSWAP Swaps two values in byte units Q ie ES O Z 3 SPECIFICATIONS MELSEC Q Table 3 1 List of Commands and Functions in AD51H BASIC Continued Command Classification al Operation Contents Function a Gives the inverse tangent tan of a mathematical expression cos sd Gives the cosine value of a trigonometric function Exp Gives the value of an exponential function with e as the base Ex Rounds off tne traction porion of a number and gives the i
76. by turning on the power or by Reset See Section 3 10 2 2 Start by interrupt from the PLC CPU See Section 3 10 3 3 Start by a control command from another task See Section 3 10 4 3 SPECIFICATIONS MELSEC Q 3 11 2 Starting by turning the power on or by reset start condition START This is the case where the start condition in the multitask setting is set on START Starting of a task is done if the Run Permission Conditions listed in Section 3 10 1 are established 1 Processing when the power is turned on or when there is a reset When the power is turned On or there is a Reset after the program to be run which is stored in the Flash ROM is read and loaded to the QD51 R24 s program area the designated task is run Flash ROM BASIC Task No Area Start Condition START START 2 Running a Task A task that is started by the power being turned On or by a Reset is run as follows in accordance with the BASIC program that is created 1 Run once only 2 Run all the time QD51 R24 Program Area Task No 1 Area Task No 2 Area BASIC Program a If itis run once only A program is run once only if the END command is written at the end of the BASIC program The task starts when the power is turned On or when there is a Reset and operation stops at the point when the END command is run m BASIC Program Task with START set in the start condition 3 SPECIFICATIONS b
77. ceccceccecceeeseeeeceeeeseeaecaeceeeeaecaeeeeeaeeaecaesaeeaesaesaeeeaeeaeseseeseateaes 3 6 3 3 3 Cautions during data communications with a RS 422 485 line cccccseeseeseesseeeeeneeseeseestees 3 7 3 4 List of Commands and Functions in AD51H BASIC cece eeeeceeeceeeeeeeceeeeeeeeeeaeeeeeeaesaesaeseeeeaesaesaeeeaeeas 3 10 3 5 QD51 R24 Internal Memory eeeceeeceeseeeeeeeceeeeeeeeeceeeseeeaesaecaesaeeaecaeseeseaecaesaeeaeeaesaeseeseataeeseeeateaeeas 3 16 32D IPROQKAIN a ea is ite 5 5 oct tones a a a E 3 17 370 2 Buiter MEMOnVs itee ee ei aie aaa aie a 3 19 3 57 COMMON MMCMONY 3 84 es acs ecass cat org sea heats cand rs acy betas Al ase acu heetaavel A A tage hens tones 3 21 3 5 4 Expansion register EDO to 1023 oo ee eeceeceeeeeeeeeeeeeeeeeeeeeeeeeaeeeeeeeaesaeseaeeeaeesaeeeaeeeaeenaeseaseaeeeaeeeas 3 23 3 5 5 Special register ED9000 to ED9127 0 ce eeeeceeeeeeeeeceeseeeeceeeeeeeaeeaecaeeeeesaesaeseeseaesaesaeeeeseaeeaesneaeeaes 3 26 3 5 6 Expansion relay EMO to EM1028 eee eeceeceeeeeeeeeeeeeeeeeeeeeseaeeeeeeeaeeeaeeeaeeaeeeaeeeaeeeaeeeaeenaeeeaeeeaeeeaeenas 3 30 3 5 7 Special relay EM9000 to EM9127 ceeeecceceeseeeeceeeeeeeseeaecaeeeeeeaecaecaeseaeeaesaesaeseaesaesaeseeeeaeeaeseseaeeaes 3 33 SiG SRECCIVE BUT SM er a hess dugs desk cage bss ek cbeen cig AA 3 36 3 7 List of GPPW Setting Items for the QD51 R24 o eececeeceeseeeeceeeeeeeeeeaeceeeeeeseaeeaeeaeseeeeaesaesaeseeseaeeaneeaes 3 37 3 8 List of Input Ou
78. command of a sequence program an expansion register is designated in the address The designated address is in 1 byte units from 2380H to 23BFu QD51 R24 Expansion Register b7 to bO 23801 Lower order TO 2381 Higher order EMO t EMIS Writing of data 238214 Lower order 23831 Higher order EM16 to EM31 BASIC 2384H Lower order EM32 to EM47 program 2385H Higher order to to FROM___ 23BCh Lower order Reading of data 23BDu Higher order 23BEH Lower order 23BFu Higher order _ FM1008 to EM1023 EM992 to EM1007 3 SPECIFICATIONS MELSEC Q 3 5 7 Special relay EM9000 to EM9127 Buffer Memory Address as viewed from the CPU Special Relay No amp H2500 bitO EM9000 amp H2502 bit 4 EM9020 The special relays are relays whose use is determined internally in the QD51 R24 On Off control is performed by the QD51 R24 OS so in each BASIC program read the On Off status using the special variable B to use these relays Table 4 5 Special Relay List Related Special Registers Content Detailed Contents Goes On when one of the following occurs e Warning Error Error Message e System Down Error Message e Goes On when the QD51 R24 is siouteee executing multitasks l OFF Task other than multitask poe ae whei the SDS aac gt executing a task other than multitasks Error Registration ED9000 to ED9016 ON An error is registered OFF No error is
79. d cable 7 0 127 LIP HRV SV LI Specifies a logarithm In the case of 13 pairs 7 0 127 13P HRV SV Made by Oki Electric Wire Co Ltd 3 SPECIFICATIONS MELSEC Q 3 3 RS 422 485 Interface Specifications This shows concerning the RS 422 485 interface specifications 3 3 1 RS 422 485 terminal block specifications This shows the RS 422 485 terminal block specifications for connecting with the opposite device a Signal Signal Direction Abbreviation Signal Name QD51 lt Opposite SDA R24 Device SDB RDA hee FG n Q N y D g 3 Jil olola oroe 1 Each signal is explained below 1 SDA SDB Signal Signals for sending data to the opposite device from the QD51 R24 2 RDA RDB Signal Signals for receiving data from the opposite device by the QD51 R24 2 The function block diagram is shown below RS 422 485 Interface Send Data Receive Data x1 Connection of a terminal resistor is shown Make connections in accordance with Section 5 5 2 3 SPECIFICATIONS MELSEC Q 3 3 2 RS 422 485 cable specifications This shows the RS 422 485 cable specifications 1 For the RS 422 485 cable cable which connects to the QD51 R24 terminal block use a cable which satisfies the following specifications with a length of 1200 m or less 2 Also when connecting multiple devices at 1 n n 1 or m n keep the total cable length within 120
80. d in the LED display If Y1A Reset request signal goes On and the QD51 R24 is reset the QD51 R24 down error can be canceled c If the QD51 R24 s system down flag goes On the multitask execution start flag XOB will go Off ON QD51 Down XoD OFF ON X0B OFF 1 1 See Chapter 9 concerning the displayed error codes 5 QD51 R24 Operating State XOE a This shows the QD51 R24 s operating state b It goes Off during Power Off or during Reset processing 3 SPECIFICATIONS MELSEC Q 3 8 2 Output Y detailed explanation Here QD51 R24 outputs Y are explained The output No Yn used in this section is the number as viewed from the PLC CPU 1 General Output YOO to Y10 17 points The general outputs can be used to send On Off data from the PLC CPU to the QD51 R24 In the PLC CPU the general output can be turned On and Off by a sequence program or by the test function of a peripheral device etc In the QD51 R24 reading of general output On Off data is accomplished by the special variable B PLC CPU QD51 R24 a 1x00 Reading by the B command ON 2 Start Task No Designation Y11 Y12 2 points a These are signals which designate tasks to start by an interrupt from the PLC CPU and there is one point for each task b The multitask setting becomes the start task No designation signal for only tasks with IT start by an interrupt from t
81. dure 1 Set the task No PLC CPU Task 1 Start Instruction MO i PLS MO HW SET DY11 SET DY19 Input Output No as seen from the PLC CPU X Y00 to X Y1F Value designated by B X Y amp HO00 to X Y amp H1F Turn Y11 On by a sequence program Turn Y19 On by a sequence program 3 Turn the Start Task No designation signal Task Start Signal Off Turn X amp H11 On by a BASIC program QD51 R24 Output amp H11 amp H12 amp H19 Start task Start task No 1 Set Task No 1 SET M1 e B X amp H11 1 tean 2 Start the task RST DY11 9 RST DY19 RST M1 H Task Start Signal instruction On Turn the Task No designation signal Reset 3 SPECIFICATIONS MELSEC Q 3 Task Start Signal Y19 a This is a signal that starts the task designated by the start task No designation signal Y11 Y12 The task start signal cannot be used as a general output even in cases where there is no task that is started by an interrupt from the sequencer CPU Also if the task is compiled BASIC it cannot be started by an interrupt from the PLC CPU b The task start signal is enabled only while the multitask execution enable flag XOB is On c The designated task 1 is started when
82. e QD51 R24 can be installed The QD51 R24 can be installed in any I O slot 1 in the base unit x1 This is limited to the permissible number of I O points of the CPU module and remote I O station 3 Applicable Software Package Following shows the software package corresponding to QD51 R24 a Console debugger software package essential Product Name Model Name SW1IVD AD51HP For DOS V Personal Computers AD51H BASIC Software Package SW1NX AD51HP For the PC 9800 Series 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q b PLC software package Essential Product Name Model Name MELSEC PLC Programming Software GX Developer SWnD5C GPPW E The nin the model name is 4 or a higher number c Commercially available compilation software package necessary only during compilation 1 When using a DOS V Personal Computer Purchase the product Borland C Suite The Turbo Assembler is included in the Borland C Suite Product Name Model Name Turbo Assembler Turbo Assembler Ver 5 0 IBM PC AT English Version Inprise Corporation Setatsuka South Bldg 1 64 8 Setatsuka Shibuya Ku Tokyo 151 0073 Tel 03 5350 9380 2 When using a PC 9800 Series Personal Computer Product Name Model Name Microsoft MASM Macro Assembler SIRO For the PC 9800 Series for the PC 9801 Series 11 25 MB format Microsoft Corporation Setatsuka NA Bldg 1 50 1 Setatsuka Shibuya Ku Tokyo 151 8533 Tel 03 5454 8000
83. e handled as data 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 2 2 Communications with a terminal 1 Displaying data on a terminal screen Here the way of thinking in the case of displaying data on the terminal screen is explained Terminal Hello he Pep eiA oH LRS 88 Jou2 Screen display Data output Display of data to the screen CH 1 Procedure for displaying data on a terminal screen The procedure for displaying data on a terminal screen is as shown below Open the channel to the terminal ae where the data atre 4 Open the channel which the terminal is connected to using to be displayed the ZOPEN command Set the data output ne mie tad destination Set the data output destination in the channel the terminal is connected to using the ZODV command Output data to the terminal Display the data sigit Output data to the terminal by the PRINT commana etc in the terminal Close the terminal channel 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q Command and functions used The commands and functions used to display data on the terminal screen are as shown below Command Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device ZCLOSE Closes the interface ZCNTL Sets the communications parameters in the currently open interface and reads the interface stat
84. e set by the software switch Mode Setting in GPPW when the power is turned On Operation differs depending on the mode 1 Programming Mode 2 Multitask Debugging Mode 3 Run Mode Here the operation of the QD51 R24 when the power is turned on is explained for each mode 3 10 1 In the case of the programming mode When the QD51 R24 is in the Programming mode when the power is turned On or when there is a Reset operation the program to be run is read from the flash ROM and loaded in the QD51 R24 s program area See Section 3 5 1 then the mode is switched to the System Mode Power turned On Power turned On S o 100 V AC 200 V AC oO Power supply module PLC CPU Initialization processing Reading of the program to be run The program to be run is read from the flash ROM and loaded in the QD51 R24 s QD51 R24 program area Program R to be run rogram gram lt Flash ROM System mode m Console operation is enabled in the system command reception state Console Display S gt 3 SPECIFICATIONS MELSEC Q 3 10 2 In the case of the multitask debugging mode When the QD51 R24 is in the Multitask Debugging Mode after the power is turned On or after a Reset when the RUN key is in the RUN position after the program to be run is read from the flash ROM and loaded in the QD51 R24 s program area see Section 3 5 1 the mode changes to the Debuggin
85. ecceseseeeeeceeeeeeeeeeeeeeeaeeaeseseeeeateaes App 1 Appendix 2 About Use of Programs from Previous Modules eeceeeeeseeeeeeeeeeeeeaeeaeeeaeeeaeeeaeeeaeeeaeenas App 2 Appendix 2 1 About use of A1SD51S program ccecceseeceeeceseeeeeeceeceeeeaesaeeeeeaeeaesaeeeeeeaeeaesaeseeeeaneaes App 2 Appendix 2 2 About use of AD51H S3 programs eccesceeceecceeeeseeseceeeeeeeaeeaeseeseeeeaeaeseeeeaeeaesaeseeeeaeeaes App 5 Appendix 3 External DIMENSIONS ceeeeeeeeeseeeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaseaeeeaeeeaeeeaeeeaeeeaeeeaeenas App 8 INDEX Index 1 to Index 2 gt gt About Manuals The following manuals are also related to this product In necessary order them by quoting the details in the tables below Related Manuals Manual Name Manual No Model Name Code QD51 QD51 R2 Q Corresponding Intelligent Communications Module User s Manual Hardware Manual Explains the module s special function specifications and how to use them and explains the settings for using the special functions and data communications methods with the opposite party s device Included 1B 0800130 13JT05 AD51H BASIC Programming Manual Command Manual Corresponds to the QD51 QD51 R2 A1SD51S AD51H S3 SH 080094 Explains the commands how to use the functions and the specifications of AD51H BASIC 13JC05 Sold separately AD51H BASIC Programming Manual Program Manual Compilation Manual C
86. ed in the QD51 there is no CH 3 RS 422 485 or CH 4 interface in the QD51 so they cannot be used As for CH 3 RS 422 485 correct the BASIC program to another channel or use the QD51 R24 CH 4 Parallel cannot be used b Use in the QD51 R24 If used in the QD51 there is no CH 2 RS 232 or CH 4 interface in the QD51 so they cannot be used As for CH 2 RS 232 correct the BASIC program to another channel or use the QD51 CH 4 Parallel cannot be used 2 Communications specifications Data bit and stop bit settings differ Correct the BASIC program S AD51H S3 QD51 R24 5 6 7 8 115 2 3 Common memory backup Common memory backup is as shown below AD51H S3 QD51 R24 Not backed up In the QD51 R24 common memory is not backed up by a battery If backup is necessary use the PLC CPU s file register R App 5 App 5 APPENDIX MELSEC Q 4 Maximum number of tasks The maximum number of tasks that can be run simultaneously is as shown below O OAD5IHS3 QD51 R24 Pacer ee ee tasks In the QD51 R24 a maximum of only 2 BASIC programs can be run ata time 5 PCRD PCWT command The processing codes shown below cannot be executed with respect to the Q QnA CPU Replace those codes which can be replaced a PCRD commands Processing codes used in the A1SD51S AD51H S3 Treatment Processing Code Monitoring of the device monitor register by 2 8H2 the PCWT command
87. ee Section 2 5 concerning the method for checking the function version 2 If the QD51 R24 is used in a multiple PLC system first see the User s Manual for the QCPU Q Mode multiple PLC system 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 2 5 Checking the Function Version Serial No This shows the method for checking the QD51 R24 s function version and serial No 1 Checking the Q Series PLC function version and serial No a If you are checking the Rating Plate on the side of the module The serial No and function version of the affected module are shown in the SERIAL column on the rating plate a MITSUBISHI MODEL Serial No a Function version SERIAL 020510000000000 B LISTED 80M1 C IND CONT EQ MITSUBISHI ELECTRIC MADE IN JAPAN b If you are checking by GPPW This shows the method for checking the serial No and function version of the affected unit if you are using SW6D5C GPPW E The serial No and function version are displayed on the Product Information List or the Module Detailed Information screen The method for checking the serial No and function version in the Product Information List screen is shown below See Section 10 1 1 concerning the Unit Detailed Information screen Start Procedure Diagnosis gt System Monitor Product Information List ZQy FERI 3 EA Sr 435 0 SIBCPU LF ILNo Ver
88. eeeeeeeeeceeeeeeeaecaeceeeeaeeaecaeseeesaecaeseeseaesaesaeseeseaeeaesaeseeeeaneas 4 22 4 8 Data Communications Between Tasks ccccceccesesseeeeceeeeseceeceeeeeesaesaecaeseaesaesaeseeseaesaesaeseeeeaesaeeeeeateaes 4 23 4 8 1 ON OFF data communications by expansion relay EM cecceseeeeeeeeceeeeeceeseeeeaesaeeeeeeeeeaeeaes 4 23 4 8 2 Data communications by expansion register ED eeeeeeeeeeeeeeneeeeeeeeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeenas 4 24 4 8 3 Data communications by COMMON MEMOLY ceceeeeeeeeeeeeeeeneeeseeeaeeeaeeeaeeeaeseaeeeaeeeaeeeaeeeaeenaeeeaeenas 4 24 51 Handing Precautions s 2 ahesaii a ee ie nine a ie nie le 5 1 5 2 Settings and Procedures Up Until Operation ccccecceceeseeeeceeceeeeeeceeceeseeeeaesaeseseaeeaeeeseaeeaeeeseeeeeeaees 5 2 5 3 Names ol Parts and Functions een oniran tetrad ates ieee ete eee ee ete 5 3 5 4 Connection with a Console DEDUQQEN ceccecceeeeeeceeeeseeeeeaeceeeeaeeaecaeeseeeaecaesaeseeesaesaeseeseaeeaesaeseeeeateaes 5 4 5 5 Connection with the External D VICC csccecceceeseseeceeeeeeeseeaeceeeaeeaecaeeeeeeaesaecaeeaeeaesaesaeenaeeaeeaeeneeeaeeaes 5 6 5 5 1 Connecting to the RS 232 interface eccecceseeccecceeeeececeeeeaeeaeceeseeeeaesaecaeseeesaesaeseeseaeeaesaesaeeeateaes 5 7 5 5 2 Connecting to the RS 422 485 interface cscceccecceseeseeeeceeeeseeseceeceeeeaecaecaeseeesaesaeseeseaeeaesaeeeesaeeaes 5 9 5 6 Setting from the GX
89. ems included in the package when the QD51 R24 is purchased are described in Product Configuration before Chapter 1 e The user should procure parts and materials not included in the package contents separately 2 When desiring to know the processing necessary to get the QD51 R24 started a When desiring to know the startup procedure e An abbreviated sequence of the procedures up to the point when the QD51 R24 is operated is described in section 5 2 b When desiring to know about connections with the console debugger e The connection method is described in section 5 4 c When desiring to Know about connection with the opposite party s device The connection method for each type of interface is described in section 5 5 d When desiring to know the processing necessary before the QD51 R24 is started up e Setting of the parameters used in the QD51 R24 using GPPW is explained in section 5 6 3 When desiring to know about program application a When desiring to know about application of the program from the A1SD51S e Program application is described in section 2 1 of the Appendix b When desiring to know about application of the program from the AD51H S3 e Program application is described in section 2 2 of the Appendix About the Generic Terms and Abbreviations In this manual unless specially clarified explanation of the Intelligent Communications Module using the general names and abbreviated names sho
90. er 8 bits 17FFu BFEx BFFu 3 SPECIFICATIONS MELSEC Q 3 5 3 Common memory Common memory is memory that can be used to send and receive data between the QD51 R24 internally and each task Data from the PLC CPU can also be read and written using this memory 1 Writing data to and reading data from common memory QD51 R24 TO gt GETMEM EN Writing of data Common Reading of data BASIC memory Program FROM Reading of data PUTMEM Writing of data a Ina BASIS program data are read from or written to common memory using the GETMEM PUTMEM command b In a sequence program data are read from or written to common memory using the FROM TO command 2 Common Memory Capacity In the QD51 R24 the size of common memory is 8 k bytes 3 Common Memory Configuration One address in common memory has a 1 byte 8 bits configuration The entire area can be used as desired by the user 3 SPECIFICATIONS MELSEC Q 4 Common Memory Addresses Addresses in common memory differ depending on whether they are designated by the PLC CPU or by a BASIC program and are as follows a If designated from the PLC CPU If designated by the PLC CPU addresses are in 1 word units Also buffer memory addresses are designated from COOH to 1BFFu in hexadecimal notation b If designated by a BASIC program If designated by a BASIC program addresses are in 1 byte units Also buffer mem
91. esult in system malfunction or cause mechanical damage or accidents DISPOSAL PRECAUTIONS A CAUTION e When disposing of this product treat it as industrial waste REVISIONS The manual number is given on the bottom left of the back cover Print Date Manual Number Revision Apr 2000_ SH NA 080089 A Sep 2000 SH NA 080089 B Addition Section 1 3 Section 2 3 2 3 1 2 3 2 2 4 Japanese Manual Version SH 080092 B This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property ights which may occur as a result of using the contents noted in this manual 2000 MITSUBISHI ELECTRIC CORPORATION INTRODUCTION Thank you for purchasing the MELSEC Q series PLC Before using the equipment please read this manual carefully to develop full familiarity with the functions and performance of the Q series PLC you have purchased so as to ensure correct use CONTENTS 1 OVERVIEW 1 1to1 9 1 1 Operation Overview for QD51 R24 cececceseeseeeeceeceeeeseeeecaeceeeeaeeaecaeseeeeaesaeseeseeeeaesaesaeseeesaesaeseeteneeateas 1 2 1 2 Features of QD51 R24 cs eisai caine nia aaa aa aa aia aaa teed ac eect 1 4 1 3 About the Function Added Changed to the Function Version B csccecceseseeeeceeeeeeeeeeeaeeaeeeeeeeeeaeeas 1 9
92. ever it is necessary that the console be connected at all times lt Sequential Files gt These are files in which data can be read and written sequentially and which enable efficient use of memory They are used mainly for operating instruction data files and results files etc lt Random Files gt These are files where reading starts from the necessary portion only and only the necessary portion is written This type of file is appropriate for large volume inventory files instruction data for operator interfaces master files etc When reading or writing is done one time the maximum data size is 256 bytes Offline programming with a text editor is possible A BASIC program can be created offline using a text editor and the BASIC program can then be registered In offline programming the edited program cannot be run 1 OVERVIEW MELSEC Q 6 Online Programming is possible By connecting the QD51 R24 to a DOS V personal computer or a PC 9800 series personal computer and carrying out settings at a console a BASIC program can be edited and debugged In the case of programming with a DOS V personal computer RS 232 Cable FD for the user 7 Multitask debugging is possible By connecting the QD51 R24 toa DOS V personal computer or a PC 9800 series personal computer and setting a debugger debugging c
93. evice 1 If connecting 1 n multiple drop External Device 2 MELSEC Q External Device n Pig oe te 4 1 tot SDA 1 RI spp sDoB m SDB RDA RDA i RDA m RDB RDB m t RDB RS 422 485 SG Gable sG H l SG Ll l V eee De Zor FG RS 422 485 Cable c If connecting n 1 multiple drop QD51 R24 1 QD51 R24 2 QD51 R24 n SDA SDA SDB x SDB RDA 7 RDA EET RDB RDB SG FG Jy ght FG Jv FG RS 422 485 RS 422 485 a QD51 R24 1 Cable Cable SG x RS 422 485 Cable LR Terminal Resistor External Device 1 NUE Rs ide AT RS 422 485 Cable LR Terminal Resistor If connecting m n multiple drop External Device QD51 R24 External Device 1 SDA SDB da FG L_ RDA CR RoB fo sq l RS 422 485 Cable RS 422 485 Cable QD51 R24 2 RS 422 485 External Device n Cable LR Terminal Resistor 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 6 Setting from the GX Developer Here the various settings from the GX Developer which are necessary in order to carry out data communications with an external device from the QD51 R24 are explained 5 6 1 I O assignment settings Setting purpose I O assignment settings are used to set the type of each module installed in the base module to set the input output signal ranges and to set the QD51 R24 switches Star
94. g Mode Power turned On Power turned On S 100 V AC 200 V AC oO Power supply module Initialization processing Reading of the program to be run The program to be run is read from the flash ROM and loaded in the QD51 R24 s QD51 R24 program area Program 5 to be run rogram gram lt Flash ROM System mode s It is possible to carry out multitask debugging by the debugger while in the Debug command reception state Run the program read from the Flash ROM in accordance with the multitask setting contents e Start by turning on the power or by a Reset e Start by an interrupt from the PLC CPU e Start by a start request from another BASIC program Console Display D gt 3 SPECIFICATIONS MELSEC Q 3 10 3 In the case of the run mode When the QD51 R24 is in the Run Mode after the power is turned On or after a Reset when the RUN key is in the RUN position after the program to be run is read from the flash ROM and loaded in the QD51 R24 s program area see Section 3 5 1 multitask processing is executed Power turned On Power turned On Y 100 ye 200 VA ot 2 5 5 iS i gt a Q 2 a g a a Initialization processing Reading of the program to be run The program to be run is read from the flash ROM and loaded in the QD51 R24 s program area However fora program with a task which has the multit
95. g to the QD51 R24 s expansion relay EM Enables the use of resources with resource numbers allocated to them in other DEF ZEVENT Real time ZRELEASE programs imeem Prohibits the use of res ith bers allocated to them in oth ources with resource numbers aliocated to them in O r programs ZSIGNAL Generates an event designated from the program ZSTART Starts the designated program ZURGENCY Changes the priority of a program 3 SPECIFICATIONS MELSEC Q Table 3 1 List of Commands and Functions in AD51H BASIC Continued Command Classification Operation Contents Function Real time Real time control Real time Real time control character string operations ZWAIT DELAY __ Interrupts execution of a program until the designated period of time passes ZWAIT EVENT _ Interrupts execution of a program until the designated event occurs ZMESSAGE Defines a message port MESSAGE Closes a message port CLOSE PES ZMESSAGE Reads a message from a message port GET ZMESSAGE KILL Deletes a defined message port ZMESSAGE OPEN ZMESSAGE PUT Writes a message to a message port AKCNV Converts single byte characters to double byte characters IS Gives the Kanji code of double byte characters KACNV Converts double byte characters to single byte characters KEXT Extracts double byte characters or single byte characters from a text expression and gives them Searches for the designated character string from ch
96. he PLC CPU set The device No for a task for which the multitask setting is not set on IT is treated the same as a general output Multitask Setting Device No Start by an interrupt from the PLC CPU Other than at left eet No 1 General Output Start task No setting f yin 2 TaskNo 2 O No 2 Impossible to start each task c Turn the device No Y11 Y12 corresponding to the task you are starting On At the time the task start signal Y19 rises the task thus designated to be turned On Y11 Y12 will be started However if a task that is currently being executed is designated it is disregarded d To turn Off the signal designated by the start task No that was turned On do so only after confirming that the designate task has been executed To check if the designated task has started use the method of turning the general input X allocated to the Reset Off instruction by the BASIC program as shown in the example on the next page 3 SPECIFICATIONS pe Example seen MELSEC Q This example shows the procedure in the case where a task is started and for turning the start task No designated signal task start signal Off Conditions 1 Start Task No 2 Start task No designation signal Task start signal reset instruction X11 Task start instruction Xo Power Supply PLC CPU module R24 QD51 1 2 lt Slot No e Task start completed Proce
97. he calendar date and time to the clock element PLC CPU QD51 R24 Sequence program i Reading the calendar time i i Writing the calendar time program Clock element I BASIC I Commands and functions used Commands and functions used to write the calendar and time to and read them from the PLC CPU are shown below Command Function Name Processing Contents DATE Writes the calendar to and reads the calendar from the PLC CPU s clock element TIME Writes the time to and reads the time from the PLC CPU s clock element The Q Series PLCs set the year in the clock data with 4 digits Effective years are 1990 to 2079 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 8 Data Communications Between Tasks During multitask processing the content of variables or arrays in each task etc can only be referred to in each respective BASIC program For exchange of data between BASIC programs during multitask processing use the following 1 Expansion Relay EM ON OFF Data 2 Expansion Register ED Data 3 Common Memory Data 4 8 1 ON OFF data communications by expansion relay EM The QD51 R24 s expansion relay EM is a device which can perform ON OFF control and read the ON OFF status from all tasks For details of the expansion relay see Section 3 5 6 Reading of the ON OFF control Expansion relay ON OFF state EMO
98. he debugger This device connects to the QD51 R24 and performs debugging A DOS V personal computer or a PC 9800 series personal computer with the software package installed becomes the debugger The debugger can check variable values and can edit the program while it is being run Debugger This mode changes the contents of variables and traces them while executing a Debugging Mode program and carries out tracing This is the mode used when the console is disconnected and the QD51 R24 is Execution Mode being operated independently It is actually used when this device is being run as a system Interpreter This is BASIC in a format which processes while executing commands one by one This executes multiple programs by time slicing executing them so that it seems that Multitaskin 9 they are being executed simultaneously Programming Mode This mode is used to connect to the console and carry out programming This connects to the QD51 R24 and is used to display the screen and input characters from the keyboard Terminal Product Configuration The QD51 R24 product configuration is as shown below Model Name Product Name Quantity QD51 Model QD51 Intelligent Communications Module Model QD51 R24 Intelligent Communications Module QD51 R24 Terminal Resistor_330 Q 1 4 W For RS 422 communications Terminal Resistor 110 Q 1 2 W For RS 485 communications 1 OVERVIEW MELS
99. ications Port Control Port control ON OFF STOP __ line Functions ON COM Defines the starting line of a processing routine for branching when an interrupt is GOSUB generated from the communications line ON ERROR y Error Control Executes a program from the line number designated when an error occurs Error control GOTO Functions ERROR Generates an error for the designated error code Error RR Gives the number of the error that was detected Information Error Information Functions Recursive Interrupts control of the BASIC interpreter and returns to the QD51 R24 s system Commands to mode the Recursion to the programming mode i f Programming Interrupts offline programming and returns to the main menu Mode LOAD Reads out a program on a FD or HD into the program area Input Output of MERGE Mixes a program in the program area with a program on a FD or HD BASIC programs File O i ISAVE ss Saves a program toa FD or HD CO O a program to a FD or HD ile Operation p FILES Displays the file names of files on a FD or HD Commands Deletes files on a FD or HD File maintenance KILL Deletes a system name on a FD or HD NAME Changes the file name of a program or data on a FD or HD File bugger Opens a file and enables input output processing assignment CLOSE Closes input output processing of a file PRINT Writes data to a sequential file PRINT USING Designates the format in a seque
100. ications errors occur in the data link There is danger of accidents due to wrong outputs or wrong operations e When connecting a peripheral device to the CPU module or performing control of a PLC which is being run through a BASIC program configure an interlock circuit in the sequence program so that the system overall is operating on the safe side at all times Also when performing other control program modifications changing the operating status status control of a PLC that is currently running read the manual thoroughly and proceed only after taking adequate safety precautions Particularly in cases where the above control is performed toward PLC in remote locations from the opposite party s device there may be occasions where it is impossible to respond immediately to trouble on the PLC side resulting from data communications errors At the same time as you are configuring an interlock circuit in the sequence program decide methods for the system to use to treat data communications errors between the opposite party s device and the PLC CPU DESIGN PRECAUTION lt DANGER e Do not write data to the System Area in the intelligent function module s buffer memory Also do not turn the output for signals for Use Prohibited signals among the output signals from the PLC CPU to the intelligent function module ON If data are written to the System Area or output in response to Use Prohibited signals there is danger that the PLC
101. ion QCPU is specified then reading writing of device data is executed If the QD51 R24 is used in a multiple PLC system set the QCPU that controls the QD51 R24 called the control PLC with the GX Developer SW6D5C GPPW E It is also possible to install the Function Version A QD51 R24 ina multiple PLC system and only the control PLC PLC No 1 can be accessed Peripheral Device QD51 R24 s Control PLC 3 4 2 1 D 51 QD51 R24 Non control PLC Set from the SW6D5C GPPW E PLC No 1 PLC No 2 PLC No 3 PLC No 4 Module controlled by PLC No 1 Module controlled by PLC No 2 nEs Lers b Ifthe Function Version B QD51 R24 is used in a multiple PLC system sending the following types of data to and receiving them from the QD51 R24 can be done 1 Itis possible for the control PLC to read data from and write them to the buffer memory It is possible to use the I O signals as the output to contact and output signal 2 Itis possible for anon control PLC to read the data from the buffer memory Input output signals can be used as contact points Non control PLC Control PLC QD51 R24 FROM TO Command Exclusive Command Buffer Memory FROM Command Input Output Signal Input Output Signal used as a contact used as a contact point point Output to an output signal In a multiple PLC system where the
102. ion module s buffer memory can be done 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 4 Setting from the GX Developer SW6D5C GPPW E In order to install the QD51 R24 in the remote I O station set the parameters from the SW6D5C GPPW E as follows Each setting method is the same as when parameters are set for the QD51 R24 installed in the QCPU station Carry out settings with reference to Section 4 5 and subsequent sections For the method for displaying each setting screen see the GX Developer SW6D5C GPPW E Operating Manual Parameter setting sections for the QD51 R24 when installed in a remote I O station Parameter Setting Item Setting Contents 1 0 Assignment Sets the module installation information See Section 4 5 1 I O module intelligent function module 3 Sets the console debugger etc See Section 4 5 2 switch settings 1 Connect the GX Developer SW6D5C GPPW E to the remote I O station and set the parameters 2 After changing the settings carry out a remote I O station reset operation 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 2 4 If the QD51 R24 is Used in the QCPU Function Version B This shows concerning access to the Non Control PLC in cases where the QD51 R24 is used in a multiple PLC system For cases other than those shown below see Section 2 1 1 When accessing a non control PLC from the QD51 R24 by the functions shown in 2 below use the f
103. k that corresponds to the device No of the device designated by Y11 Y12 that is turned On However a device No that does not have IT started by an interrupt from the PLC CPU set for the multitask setting is disregarded 4 Reset Request Signal Y1A a This is a signal that resets the QD51 R24 module only Reset is executed after the access enabled time following the Y reset set by the GPPW software switch ON Reset request OFF ON Y1A X0E Operating Wait for reset X Resetting Operating Reset after access enabled time 200 2000 ms following the Y reset set by GPPW POINT During reset set up an interlock with the QD51 R24 operating status signal XE so that there will be no access from a sequence program 3 SPECIFICATIONS MELSEC Q 3 9 Relationship between the QD51 R24 Start Condition and the Flash ROM Execution Program Area The start conditions for each task in multitasking have BOOT set when the BASIC program is stored in flash ROM by the system command MSAVE If the start conditions are other than BOOT change it using the system command SET The BASIC program s storage state in the program area differs as follows depending on the set start conditions Start Condition Area where the BASIC program to be Reference BASIC Program Read Timin Multitask Setting Symbol run is stored g g Section Started by Multitask e Flash ROM a ed y Multitas START ast run program area Sec
104. l CPU o0 47I q QJ E7 325 0000 a 020510000000000 B o1 A7 Q QU71024 R2 325 0020 020510000000000 B 0 2 F 0 3 F A 0 4 7 E 0 5 lt fe S 0 6 Fe 0 7 Be CSWI7 TERE RAL Serial No Ver e The serial No of the affected unit is displayed in the Serial No column e The function version of the affected unit is displayed in the Ver column 3 SPECIFICATIONS MELSEC Q 3 SPECIFICATIONS This shows the performance specifications of the QD51 R24 For general specifications see the ZCPU Q Mode User s Manual 3 1 Performance Specifications Number of Tasks Task Start conditions Internal Memory General Input Output Memory Protection Interfaces The performance specifications of the QD51 R24 are shown below Specification Item QD51 QD51 R24 Programming Language AD51H BASIC Interpreter Compiler Number of Tasks ooo be O e Start when power is turned on e Start by an interrupt from the sequencer CPU Not possible when compiled BASIC is used e Start by a start request from another task Max 64 kBytes Task 1 capacity Task 2 capacity lt 64 kBytes Common Memory 8 kBytes Buffer Memory 6 kBytes Expansion Relay EM 1024 points Expansion Register ED 1024 points Input 27 points Output 23 points None RS 232 Compatible D sub 9p RS 232 Compatible D sub 9p RS 232 Compatible D sub 99 Cid
105. l computer If the cable is made by the user be sure to make the cables only after confirming the interface specifications for the personal computer you are using 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 5 Connection with the External Device Here the wiring between the QD51 R24 and the external device is explained As a precaution when connecting cables and as a condition for achieving a highly reliable system in which the full potential of the QD51 R24 s functions is realized it is necessary to carry out wiring so that the influence of noise will be minimized 1 Ground the shield at one point 2 When connecting to the external device by a RS 232 line use the connector shell shown in Section 3 2 1 for the connector on the QD51 R24 side 3 M83 screws are used for the terminal screws on the RS 422 485 interface terminal block Use compression terminals which are appropriate for these terminals 4 For connections to the external device side make connections after confirming the specifications for the external device 5 See Appendix 5 concerning the bending radius of connection cables 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 5 1 Connecting to the RS 232 interface Here connection precautions and an example of connection when carrying out full duplex communications using the QD51 R24 s RS 232 interface are shown 1 Precautions when connecting a See the relev
106. led in a remote I O station are shown below Usable Functions Function when Installed in Remarks Remote I O Station See the AD51H BASIC Communications by BASIC program 1 iL ed Programming Manual Multiple PLC System Compatibilit For a remote I O station it is Communications via a BASIC program with a non control PLC compatible with a single Multiple CPU settings through the GX Developer SW6D5C GPPW E CPU system Can be used x Cannot be used x1 Functions which can be used by communications with the MELSECNET H remote I O station by BASIC program are as follows Usable Function Reading and writing to device Read Write memory Random read random write Reading and writing to intelligent Reading from and writing to the specified intelligent function module s function module buffer memory _ buffer memory The device range of a remote I O station which can be accessed by reading from and writing to the device memory is as follows The same range as the QCPU when the default settings are set Concerning the access device range with a remote I O station device see the AD51H BASIC Programming Manual Device Symbol Device Name Device Symbol Special Rela SM Link Rela B Special Register Output Relay Y Link Special Relay SB Internal Relay M Link Special Register SW REMARK For a QnA A Series Corresponding MELSECNET 10 Remote I O Station only reading from and writing to the intelligent funct
107. low Command Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with an external device ZCLOSE Closes the interface ZCNTL Sets the communications parameters in the currently open interface and reads the interface status ZIDV Switches the data input destination INPUT e Carries out key input of data e Character code control codes 0H to 1FH commas 2Cx and 7Fx cannot be handled as data LINE INPUT e Carries out key input of data e Character code control codes 0x to 1FH and 7Fx cannot be handled as data INKEY e Carries out key input of data INPUT e Character code control codes 0H 03h 13H 80H and FDh to FF cannot be handled as data 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 3 Printing by a Printer Data can be printed out from a printer connected to the QD51 R24 s RS 232 interface A printer can also be connected to a DOS V personal computer which is being used as a console and can be used to print out data The procedure for printing out data differs in the following two cases 1 Printer connected to an interface other than a console 2 Printer connected to a console DOS V personal computer to an interface other than a console Open the interface and set the communications parameters etc In the case of a printer connected to a console k the case of a printer connected Set the No of the channel the printer is connected to
108. mon memory which can be used to carry out storage and reading of data from all tasks For details of the common memory see Section 3 5 3 Data storage Common memory y Reading of data Storing of data Program 1 Program 2 Reading of data The common memory that can be used in the QD51 R24 consists of 4 k words 8 k bytes of memory space Commands and functions used The commands and functions used to carry out data communications by the common memory are shown below Command Function Name Processing Contents GETMEM Performs reading of data in common memory PUTMEM Performs storage of data in common memory 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION Here the procedures and setting methods up to the point where operation can begin in a system where the QD51 R24 is used are explained When the QD51 R24 is used be sure to read the Safety Precautions provided in the front of this Manual Packaging and the installation environment for the QD51 R24 are the same as for the CPU module See the User s Manual for the PLC CPU module you are using concerning the module s packaging and installation 5 1 Handling Precautions Here the precautions to be observed when handling the QD51 R24 module are explained 1 The QD51 R24 s case is made of plastic so be sure not to drop it or subject it 5 to strong i
109. mpacts 2 The tightening torques for the module s terminal screws and fastening screws should be within the following ranges Tightening Torque Range RS 422 485 terminal block terminal screws M3 42 to 58Necm Module fastening screws normally not required 36 to 48N M3 1 SOn x1 This module can be fastened to the base unit simply using the hooks on its top However in places where there are strong vibrations and impacts it is recommended that the module be fastened with installation screws 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 2 Settings and Procedures Up Until Operation A brief list of procedures up until operation of this module is shown below Check the functions used and the specifications Connect the console and the module with cables e Connect the console debugger e See Section 5 4 of this manual y Connect the external device and Connect the QD51 R24 and the external device the module with a cable e See Section 5 5 of this manual Y Connect the GPPW and QCPU with a cable Set the QD51 R24 s Input Output assignment Perform all the settings with GPPW Carry out QD51 R24 mode setting programming mode and set operation See Section 5 6 of this manual y Commands and functions Carry out programming See the programming manual Command Manual v Carry out debugging
110. nd printer are excluded Communications with a console or terminal See Section 4 2 Printout from a printer See Section 4 3 2 2 See the AD51H BASIC Programming Manual Command Manual for details concerning commands and functions 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 4 2 If data are received Here the way of thinking in the case of receiving data sent to the QD51 R24 froma device other than a console or terminal is explained If data are received the procedure is as follows 1 Open the interface 2 Data are received 3 The received data are saved to variables by the ZRECIEVE Command INPUT function 4 Close the interface QD51 R24 User Program Receive Buffer ZRECIEVE i I I I I I I I I I I I i i e 3 BASIC Data reception i i program INPUT ae i i I 1 I I I I I I I I as Commands and functions used The commands and functions used in receiving data sent to the QD51 R24 from a device other than a console or terminal are shown below Command Function Name Processing Contents ZOPEN Opens the interface and makes preparations for communications with the external device ZCLOSE Closes the interface ZCNTL Sets the communications parameters in the currently open interface and reads the interface status INPUT Stores the data received from the interface in the designated variable e Character code control codes 0H 03h 13H 80H and FDH to FF
111. ng commands are executed DEF ZEVENT Definition of the event e ZEVENT ENABLE Enabling generation of the event e ZWAIT EVENT Waiting for the event e ZSIGNAL Generating the event 1 See the AD51H BASIC Programming Manual Command Manual concerning details on event control and the commands used 3 SPECIFICATIONS MELSEC Q 3 13 2 Sharing equipment Resources by multitasking If use of resources is shared by BASIC programs the same resources cannot be used by multiple BASIC programs at the same time Exclusive control of resources is a way of making it impossible for another BASIC program to use resources while one BASIC program is using them This exclusive control of resources must in the end be decided and implemented by fellow programmers If this problem is not decided by the fellow program creators and therefore not provided for exclusive control of resources cannot be implemented Exclusive control of resources is accomplished by the following commands e ZRESERVE Requests exclusive control of a resource e ZRELEASE Ends exclusive control of a resource 1 Resources are said to be all the hardware and software that can be used by a BASIC program For example the screen printer files disks or memory etc 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 ABOUT QD51 R24 FUNCTIONS Here the functions possessed by the QD51 R24 are explained 4 1 List of Functions A list of QD51 R24 function
112. ng of Q QnA series device memory Processing code 515 amp H203 Reading of comment data O amp HA Reading of expansion comment data 11 amp HB Cannot be used in the Q QnA Series Reading of MELSECNET 10 parameters App 3 App 3 APPENDIX MELSEC Q b PCWT command Processing codes used in the A1SD51S AD51H S3 Treatment Writing to Q QnA series device memory Processing Code 515 amp H203 Continuous address designation data writing to expansion file register Writing of sequence program 8 amp H8 Writing of microcomputer program 9 amp H9 Writing of comment data 10 amp HA 3 Cannot be used in the Q QnA Series Writing of expansion comment data 11 amp HB Cannot be replaced Writing of parameter data Writing of MELSECNET 10 parameters Analysis of parameter data 15 amp HF 14 amp HE App 4 App 4 APPENDIX MELSEC O Appendix 2 2 About use of AD51H S3 programs Here use of programs created for the AD51H S3 and incorporation of the QD51 R24 in an existing system is explained Programs created for the AD51H S3 can be read as is However the points shown below differ slightly so exercise caution 1 Usable channels Usable channels are as shown below ee AD51H S3 QD51 QD51 R24 cH 1rs232 _ SCT Cl dT cH 2 rs232 o o x Channel cH 3 RS 422RS 485 x do o cHa Paraie o x x O Can be used X Cannot be used a Use in the QD51 If us
113. ng or shift allowing them to be accidentally pulled which may cause a module malfunction and cable damage e When connecting cables be sure to do so correctly after confirming the type of interface you are connecting to If connection is made to a different interface or if wiring is faulty it could cause the module or external device to break down e Tighten the terminal screws within the range of specified torque If the terminal screws are loose it may result in short circuits or malfunction If the screws are tightened too much it may cause damage to the screw and or the module resulting in the module falling out short circuits or malfunction e When disconnecting the communications cable or power cable that is connected to the module do not disconnect it by grasping the cable with your hand and pulling it Disconnect cables with connectors attached by taking hold of the connector at the connection with the module and pulling the connector For cables connected to a terminal block remove the cable after loosening the terminal block screws If the cable is pulled while it is connected to the module it could cause malfunction or damage the module or the cable WIRING PRECAUTIONS A CAUTION e Be careful not to let foreign objects such as swarf or wire chips get inside the module They may cause fires failure or malfunction e In order to prevent the intrusion of foreign matter such as wiring debris inside the module during
114. ns 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q b When a PC 9800 Series Personal Computer is used A connection cable cannot be used The user should make a cable in accordance with the wiring for a cable made by the user This Module Side Cable Connection and Signal Direction Console Side Signal Name Pin No Example of Full Duplex Communications Connection Signal Name CD 1 SG 5 6 ae ee The pin arrangement on the console side may differ depending on the personal computer used If the user makes the cables please do so after confirming the personal computer s interface specifications 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q 2 2 Combining the Opposite Party s Device and the PLC CPU This shows the system configuration and functions which can be used when the QD51 R24 is used 1 System Configuration This shows the system configuration combination for data communications a Inthe case of a 1 1 system configuration 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS MELSEC Q c Inthe case of a 1 n system configuration
115. nsole In the case of a terminal Opening of the interface and setting of communications parameters etc Setting of the channel No for the console terminal Output to the screen screen control Key input from the keyboard 1 See Section 1 5 2 for a console 2 See Section 5 6 2 for setting of a console by GPPW software switch settings 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 2 1 Connection with a console 1 Display of data on a console screen Here the way of thinking in the case of display of data on a console screen is explained Console In the case of a DOS V personal computer _ _ gt Data output Display of data to the screen CH 1 Procedure for displaying data to a console screen Carry out display of data to a console screen by the following procedure Set the data output destination mia Set the data output destination in the console channel by the ZODV command Output data to the tanso 2 2 a Output data to the console by the PRINT command etc Display data in the console End Commands and functions used The commands and functions used to display data on a console screen are shown below Command Function Name Processing Contents ZODV Switches the data output destination PRINT Displays data in the console screen PRINT USING Displays data in the console screen The format can be specified
116. nteger portion ony Gives an integer value of a mathematical expression e esaea a UUO O Arithmetic functions RND sen Gives the sign of a mathematical expression Gives the memory contents of a designated value an arithmetically shifted value r O TTI SEARCH searches for the d signated value from the elements of the desired array variables then gives the position of that element numbers numbers functions integers Converts 2 word integers used in the PLC CPU 32 bit to double precision real numbers Converts 2 word integers used in the PLC CPU 32 bit to single precision real numbers Reads all types of data from the PLC CPU A lpi eiacdess Writes all types of data to the PLC CPU functions PCWT ypes oi ca a to te oe the PLC CPU Port switching Port switchin zov o Carries out input through INPUT commands etc from the designated console commands 9 ZODV Carries out output through PRINT commands etc to the designated console Reads data from the QD51 R24 s buffer memory from common memory and Buffer memory GETMEM J y y Buffer memory from the expansion register ED PUTMEM Writes data to the QD51 R24 s buffer memory to common memory and to the rarer em ED Number functions CIDB CISN Clock function Clock functions commands ZEVENT Sets ae event See will be mane or disabled Defines events for synchronization of execution between programs Defines events accordin
117. ntial file and writes data Sequential file input ee INPUT Reads data from a sequential file output Reads an entire line 255 characters from a sequential file to a character string Input Output LINE INPUT i ee Eii variable without dividing it Commands to R A FIFLD Allocates an area for the designated variable in a random file buffer Files LSET Sets data left for the purpose of preparing the PUT command in a random file buffer Random file input p Sets data right for the purpose of preparing the PUT command in a random file output RSET buffer Writes 1 record of data from a buffer to a random file Reads 1 record of data from a random file to a buffer ERL Gives the line number of the error that was detected 3 12 3 12 3 SPECIFICATIONS MELSEC Q Table 3 1 List of Commands and Functions in AD51H BASIC Continued Command Classification Operation Contents Function File information _ f File information functions Character string gt Number File Data Number gt Character string Definitions declarations commands Data operations Number character string Substituting for variables Gives a 1 if the end of a sequential file s end is detected LOF Gives the size of a file in number of sectors LOC Gives information on the current terminal position in a file Returns a character string converted by the MKI function to an integer Returns a character string
118. o the System mode e Disabled Multitask execution continues even if the Ctrl C key input occurs from the console Access possible time setting after Y reset This sets the length of time from the point when the Reset request signal Y1A goes ON until the QD51 R24 enters the reset operation During the set time interval from the point when the Reset request signal Y1A goes On until the QD51 R24 enters the Reset operation the FROM TO command can be executed Flash ROM write protect setting Sets whether write protection of the Flash ROM is enabled or disabled e Yes Sets write protection e No Cancels write protection 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 7 Debugger This sets whether the debugger will be used or not used which channel will be used and whether software will be used or not used e Channel Sets which channel the console is connected to e Software Used DOS V personal computer that uses SW1IVD AD51HP Not used VT 382 VG 620 However these have already gone out of production 2 Mode switch 0000 Intelligent Communications Module operated Run mode 0001 independently 0003 Multitask debugger mode Debugging with the debugger connected H 0004H Programming with the console connected 0005x to OOOFH Setting prohibited 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 6 3 Intelligent function module interrupt point settings Here the inte
119. odule Securely fix the module with screws if it is subject to vibration during use INSTALLATION PRECAUTIONS A CAUTION e Tighten the screws within the range of specified torque If the screws are loose it may cause the module to fallout short circuits or malfunction If the screws are tightened too much it may cause damage to the screw and or the module resulting in fall out short circuits or malfunction e Switch all phases of the external power supply off when mounting or removing the module Not doing so may cause failure or malfunction of the module e Do not directly touch the conductive area or electronic components of the module Doing so may cause malfunction or failure in the module WIRING PRECAUTIONS A CAUTION e If the module is turned on and operated after installation or wiring operations etc be sure install the terminal cover provided with this product If the terminal cover is not installed there is danger of malfunction e When connecting wires to the connector used for external connections be sure to crimp pressure weld or solder the wires correctly using the tool specified by the manufacturer If connections are not perfect it could result in short circuits fire or malfunction e Securely insatll the connector to the module e Be sure to fix communication cables leading from the module by placing them in the duct or clamping them Cables not placed in the duct or without clamping may ha
120. ollowing QD51 R24 2 When accessing a non control PLC of a QD51 R24 from the QD51 R24 BASIC program by the following function use a Function Version B QD51 R24 e If the BASIC program is accessing a non control PLC 3 When the other station of the access destination is a multiple PLC system if you are accessing via anon control PLC of the relay modules of the station you are accessing use Function Version B modules for the local station all the relay stations and the relay modules and QCPU of the station you are accessing Example Even if the control PLC of the relay module is the same or even if it is different it is possible to access the other station Peripheral Loca a Device Set from the SW6D5C GPPW E MELSECNET H Relay Station 2 2 1 PLC No 1 2 PLC No 2 3 PLC No 3 4 PLC No 4 1 Relay module controlled by PLC No 1 MELSECNET H 1 QD51 R24 controlled Access Station a by PLC No 1 Relay module controlled by PLC No 2 1 2 3 4 2I i Relay Module MELSECNET H Network Module x1 The relay module s object during other station access is as follows e MELSECNET H MELSECNET 10 Network Module Q Series C24 Ethernet Interface Module 1 A multiple PLC system can be built using QCPU Q Mode Function Version B S
121. orresponds to the QD51 QD51 R2 A1SD51S AD51H S3 SH 080093 Explains concerning debugging of AD51H BASIC multitasking settings and compilation 13JC06 methods Sold separately GPP Function Software Package SW5D5C GPPW E Operating Manual Windows Edition Explains concerning online functions such as how to create programs in SW6D5C GPPW E SH 080059 printout methods monitoring methods and debugging methods 13JN66 Sold separately Conformation to the EMC Directive and Low Voltage Instruction For details on making Mitsubishi PLC conform to the EMC directive and low voltage instruction when installing it in your product please see Chapter 3 EMC Directive and Low Voltage Instruction of the User s Manual Hardware of the CPU module to use The CE logo is printed on the rating plate on the main body of the PLC that conforms to the EMC directive and low voltage instruction How to read this manual and Configuration How to use this manual We will explain concerning the QD51 R24 for each purpose of use Use this manual for reference for the following contents 1 When desiring to know the features functions and component parts a When desiring to know the features and functions e The features of the QD51 R24 are described in Chapter 1 e The common specifications and functions etc of the QD51 R24 are described in Chapter 3 b When desiring to know the package contents and system component parts e The it
122. ory addresses are designated from 1800H to 37FE in hexadecimal notation Designated from the Address designated by PLC CPU using a GETMEM PUTMEM FROM TO command gg Buffer Memory 18004 in a BASIC program 1 word units Lower order 8 bits 1801n 1 byte units Co1 Higher order 8 bits 1802 Lower order 8 bits 1803 Higher order 8 bits re ed a Lower order 8 bits 37FCuH 1 BFEu Higher order 8 bits 37F D Lower order 8 bits 37FEu 1 BFFup Higher order 8 bits 37FFu 1 See the AD51H BASIC Programming Manual Command Manual concerning the GETMEM and PUTMEM commands 3 SPECIFICATIONS MELSEC Q 3 5 4 Expansion register EDO to 1023 The expansion register is internal memory where 1 word 16 bit data can be stored 1 If the expansion register is used data can be stored internally in the QD51 R24 and 1 word data can be sent and received between tasks and between the QD51 R24 and the PLC CPU 2 QD51 R24 TO Writing of data W GETMEM Expansion Reading of data BASIC Register PLC CPU Ww PUTMEM Program Writing of data FROM Reading of data 1 Writing data to and reading data from the expansion register Writing data to and reading data from the expansion register is accomplished by the special variable W or by the GETMEM PUTMEM in a BASIC program or by the FROM TO command in a
123. oses the interface ZCNTL Sets the communications parameters in the currently open interface and reads the interface status KMODE Designates the treatment of Kanji character codes during communications with the external device ZLDV Switches the channel No of the interface where the printer is connected LPRINT Outputs data to the designated printer LPRINT USING Outputs data to the designated printer The format can be specified LLIST Outputs the program list to the designated printer 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 3 2 Printing from a printer connected to the console CH 1 Here the way of thinking in the case of printing out by a printer that is connected to a DOS V personal computer which is set as a console and connected to the interface is explained Console in the case of a DOS V personal computer Printer Printout procedure The procedure for printing out from a printer connected to the console is shown below Set the data output d siination SW Sets the data output destination by the ZLDV command Output the data to the printer Sides Outputs data to the printer by the LPRINT commana etc Commands and functions used The commands and functions used to print out by a printer connected to the console are shown below Command Function Name Processing Contents ZLDV Switches the output destination to the printer connected to the console LPRINT Outputs data to
124. program With the FROM command special registers are designated by addresses Designation addresses are 2500H to 2507h in 1 word units QD51 R24 Expansion Register b7 to bO Lower order TO Higher order EMO to EM15 Writing of data ___Lower order a EM16 to EM31 Higher order BASIC ___Lower order ane EM32 to EM47 program Higher order to FROM Lower order le FROM____ 2506p __Lower order Reading of dataj Higher order EM992 to EM1007 L 5 ower order EM1008 to EM1023 Higher order 3 SPECIFICATIONS MELSEC Q 2 Special Relay Addresses Special relay addresses differ in their designation as shown below depending on whether they are designated by the PLC CPU or by a BASIC program a Designation from the PLC CPU If the address is designated from a PLC CPU it is designated in 1 word units Also the address designated for the buffer memory address is 2500H to 25071 in hexadecimal notation b Designation in a BASIC program If the address is designated in a BASIC program it is designated in 1 byte units Also the address designated for the buffer memory address is 4A00H to 4A0Fu in hexadecimal notation Designated from the PLC CPU using a FROM TO command Buffer Memory Address designated by GETMEM PUTMEM in a BASIC program 1 byte units Lower order 8 bits 4A00H Higher order 8 bits 4A01H Lower order 8 bits 4A02H Higher order 8 bits 4A03x
125. r memory address is designated in hexadecimal notation at addresses 1COOH to 1FFFu Designation from a BASIC program If an address is designated in a BASIC program it is designated in 1 byte units Also the buffer memory address is designated in hexadecimal notation at addresses 3800H to 3FFFH Designated from the PLC CPU using a FROM TO command 1 word units 1C00x 1C01H 1FFEx 1FFFH Buffer Memor Lower order 8 bits 38001 3801H 3802H 3803H Higher order 8 bits Lower order 8 bits 3FFCH 3FFD4 3FFEH 3FFFH Higher order 8 bits Address designated by GETMEM PUTMEM in a BASIC program 1 byte units 3 SPECIFICATIONS MELSEC Q 3 5 5 Special register ED9000 to ED9127 The special register is a register which has its use determined by the QD51 R24 Data are stored by the QD51 R24 s OS so in a BASIC program use the special variable W to read and use the stored data Buffer Memory i Related Address as Special Related i i Name Content Details of Contents Special seen from the Register No Special Relay Register CPU Number of The number of errors registered in the ED9001 to amp H2400 ED9000 0to8 EMg9000 staan eooo Mamo lowe QD51 R24 is stored Ea ED9008 Error codes are stored in order in ED9001 to ED9008 amp H2401 to ED9001 to Deen If more than 8 error occur the error codes Error Code Other than 0 k EM9000 ED9000 amp H2408 ED9008 are not stored
126. rite protection setting Without bA a meer Channel fixed b Reference Debugger Fixed on OFF b Debugger Channel setting Bit Position eee e ARE ARS Without a debugger bF bE bD bC bB bA b9 b8 oFF ON Wih debugger CH1 ON OFF Wih debugger cH2 on on seting impossible 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q Console Sets whether a console will be used or not which channel will be used and whether software is to be used or not e Channel Sets which channel the console will be connected to e Software Used DOS V personal computer that uses SW1IVD AD51 HP Not used VT 382 VG 620 However these have already gone out of production Console debugger kanji code setting Sets the Kanji code type for the connected console or debugger e Shift JIS Sets SHIFT JIS Kanji code DOS V personal computer that uses SW1IVD AD51 HP e JIS Designates the JIS Kanji Code Console debugger type This sets the type of console and debugger e VT DOS V personal computer that uses SW1IVD AD51HP VT 382 However this model is already out of production e VG VG 620 However this model is already out or production Ctrl C setting This sets whether the Ctrl C key input from the console during multitask execution in the run mode is enabled or disabled e Enabled At the point when the Ctrl C keys are input multitask operation is stopped and the system switches t
127. rrupt pointer settings in GPPW for sending and receiving data with a BASIC program by an interrupt program are explained Purpose of settings Intelligent function module interrupt pointer settings set information for starting a PLC CPU interrupt program from a BASIC program By carrying out these settings it becomes possible to start an interrupt program from a BASIC program and transfer data to the PLC CPU Start procedure PC Parameter PC System Settings gt Interrupt Pointer Settings For the screen display method see the GPPW Operating Manual Setting screen MERE 9 MEAS PFIN 2 FARTA PR ERE En He SCRRL ONo ABAS 0000 StETITTITITIIIIT EREA T Fryt Display contents 1 CPU Side Interrupt Pointer Header No This sets the header No 50 to 255 of the interrupt pointer lxx used by the sequence program 2 CPU Side Interrupt Pointer Count This sets the number 1 of interrupt pointers 1 used in the sequence program 3 Intelligent Function Module Side Header I O No Sets the QD51 R24 s header I O No 4 Intelligent Function Module Side Header SI No 1 Creates a correspondence between the QD51 R24 s control No SI and the interrupt pointer Ixx used in the sequence program 2 Sets the header SI No 0 of the interrupt control No 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 7 Maintenance Checks Except for
128. ry of Another Intelligent Function Module Special Function Module Data can be written to and read from the buffer memory of another intelligent function module or special function module by a QD51 R24 BASIC program PLC CPU Reading of data Sequence program Writing of data i i i I I I I r I i i i i i I i Buffer memory i I l I l l i i I i I Intelligent Function Module Special Function Module Commands and functions used Commands and functions used to write data to and read data from the buffer memory of another intelligent function module or special function module are shown below Command Function Name Processing Contents PCRD Reads data from the PLC CPU Writes data to the PLC CPU PCWT QD51 R24 BASIC program See the AD51H BASIC Programming Manual Command Manual concerning details of the above commands and functions 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 7 Reading and Writing Clock Data The QD51 R24 does not include a clock function If a clock function is used with the QD51 R24 read the calendar Year Month Day Day of Week or time Hour Minute Second from a PLC CPU with a clock function using a BASIC program See the User s Manual for each CPU module to confirm which PLC CPU has a clock function If you are using a PLC CPU with a clock function it is necessary to write t
129. s is shown below Complex numerical calculations and function calculations See the AD51H BASIC which would lengthen the PLC CPU s scan time can be Programming Manual calculated by a BASIC program Command Manual for Collection analysis and correction of measurement data commands and functions e Function calculations such as Sine Log and square roots that can be used in the etc QD51 R24 This displays the operating status production conditions running 4 status breakdown contents etc in a console or terminal Section 4 2 connected to the QD51 R24 This carries out input of production schedules production Key Input Function quantity operations setting data etc from the keyboard of a Section 4 2 console or terminal connected to the QD51 R24 This prints out production plans results daily reports Functions by BASIC Printer Function breakdown contents planning data inspection results test Section 4 3 programs results charts etc with a printer connected to the QD51 R24 This enables input of data from a bar code reader or magnetic card reader etc that is connected to the QD51 R24 Since sending and receiving can be done in a free format Data Input Function through a BASIC program it is possible for the QD51 R24 to match the protocols of the opposite device e Input of production lot No product name quantity etc e Collection of measured values test data Sub CPU Function Monitor Di
130. s or National Defense purposes shall be excluded from the programmable logic controller applications Note that even with these applications if the user approves that the application is to be limited and a special quality is not required application shall be possible When considering use in aircraft medical applications railways incineration and fuel devices manned transport devices equipment for recreation and amusement and safety devices in which human life or assets could be greatly affected and for which a particularly high reliability is required in terms of safety and control system please consult with Mitsubishi and discuss the required specifications afa MITSUBISHI ELECTRIC HEADQUARTERS EUROPEAN REPRESENTATIVES EUROPEAN REPRESENTATIVES MITSUBISHI ELECTRIC EUROPE B V German Branch Gothaer Stra e 8 D 40880 Ratingen Phone 49 0 21 02 486 0 Fax 49 0 21 02 4 86 1 12 e mail megfamail meg mee com MITSUBISHI ELECTRIC FRANCE EUROPE B V French Branch 25 Boulevard des Bouvets F 92741 Nanterre Cedex Phone 33 1 55 68 55 68 Fax 33 1 49 01 07 25 e mail factory automation fra mee com MITSUBISHI ELECTRIC ITALY EUROPE B V Italian Branch Via Paracelso 12 l 20041 Agrate Brianza MI Phone 39 039 6053 1 Fax 39 039 6053 312 e mail factory automation it mee com MITSUBISHI ELECTRIC SPAIN EUROPE B V Spanish Branch Carretera de Rub 76 80 E 08190 Sant Cug
131. sed by the user s hardware or software design 2 Failure caused by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or the user 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not possible after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ
132. seeeeeeeseeeeeeees 3 36 Receiving of Data eeeeeeeeeeeeeeeeeeenteees 4 15 Recipe FUNCTION 0 0 eeeeeeeeeeeeeeeeteeeeeeaeeees 6 51 Reset Request Signal cscsceeeeeees 3 45 Index 1 RS 232 Cable Specifications ce 3 4 RS 232 Connector Specifications 3 3 RS 232 Interface Specifications 3 3 RS 422 485 Cable Specifications 3 6 RS 422 485 Connector Specifications 3 5 RS 422 485 Interface Specifications 3 5 RUN MOIE niiair A 14 RUNNING a TASK earair onenn e 3 50 S Sending of Data eceseeeeeeseeeeeeeereeeeeees 4 14 Setting from GPPW sses 5 12 Setting the I O Module Intelligent Function Module eeceeeeeeeeteeeteeeteeeeeees 5 13 Setting the Intelligent Function Module Interrupt Pointer 5 17 Settings and Procedures Up Until Operation cccecceecesseseeeseeeseeeseeeseees 5 1 5 2 Sharing of Resources 3 57 Special Register ccccceceeseeeeeeseeees 3 26 Special Relay ccccceccccceceeseeeeeeeseeeees 3 33 START r e e eit 3 51 Start Conditions 0ceceeeeeeeeeeteeeeeeeeteteee 3 50 Start Task No Designation 3 42 System Down Flag 3 41 T Task Start Signal 0 c ceceeeseeeeeeeeeees 3 44 Terminal irena Ait A 14 TrOUDICSNOOTING eeeeeeeeceeeeeeeeeteeteeeeteetaeees 7 1 U Use of Programs from Previous Modules App 2 Y YCHECK Command l 6 2 Index 2
133. sent to the opposite device from the QD51 R24 e When the opposite device is in the ready to receive state set it so that it is normally On During data communications the status of each control signal DTR DSR RS and CD can be checked with the ZCTRL command processing code 33 See the Programming Manual Command Manual concerning the ZCTRL command 2 The On or Off status of each signal is shown when conditions are as follows Output Side Input Side ON 5VDCto 15 VDC 3 V DC to 15 V DC OFF 5V DC to 15 V DC 3 V DC to 15 V DC Connectors for Interface For the RS 232 interface connector on the QD51 R24 a product with the following model name is used 9 pin D sub Female screw fastened type DDK 17L 10090 27 D9AC For the connector shell on the connection cable on the QD51 R24 side use one of the following products See Appendix 5 concerning the dimensions of connector shells that can be installed Daiichi Electronics Industrial Co Ltd Inquiries Tel 03 3494 8503 Plug Shell Model Name 17JE 23090 02 D8A Sumitomo 3M Corporation Inquiries Tel 03 3709 8503 Plug Model Name 8209 6009 Shell Model Name 3702 2209 M2 6 Nihon AMP Corporation Inquiries Tel 044 844 8111 Plug Model Name 747904 2 Shell Model Name 747515 or 174469 2 3 2 2 RS 232 cable specifications e For the RS 232 cable use a cable which complies with the RS 232 standard and which has a length of 15 m or less Recommende
134. set Start condition START cceceeseeseeeeeeeeeeteeaes 3 51 3 11 3 Starting by an interrupt from the PLC CPU Start Condition IT eceececeeseeseeeeeseeseeeeeeeeeeeeeeaes 3 53 3 11 4 Starting by a start request from another BASIC program Start condition BOOT ON 3 54 3 12 Running a BASIC Program by Multitask ProCeSSing 2 ccscceceesesseeeeseeeeeeeaeeeeeeeeeaesaeeeseaeeaesaeeeeeeaeeats 3 55 3 12 1 Multitask ProCeSSing eeceesceeeceesceeeeeeeeeeeeeeseeeeeeseeeseesseeeeeeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeneeeseeseeeeneeeaes 3 55 3 13 BASIC Program Priority Order Priority seniii aena anea e aa anka aa raais 3 56 3 13 1 Synchronizing execution between BASIC programs Event Control ssesesesseseeseesrrsrerrereen 3 56 3 13 2 Sharing equipment Resources by multitasking eececeeceeseeeeceeeeeeeeeseeeeeeeaeeaesaeseeeeaeeaeeaeeeataes 3 57 4 ABOUT QD51 R24 FUNCTIONS 4 1 to 4 24 Ai LISTO ENCON S e ana AEA AATA RE AAA A 4 1 4 2 Communications with a Console Termimal cccccccecceceeseceeceeeeseeeeceececesaesaecaeeeaesaesaeseeeeaeeaeeesaeeaeeas 4 2 4 2 1 Connection with a console ecceeeeccecceeceseeseeseceeeeeeeaecaeceeeeaesaesaeeeeeeaesaesaeseseaesaesaeseeseaeeeeseeseateateaes 4 3 4 2 2 Communications with a termimal ccccccecceseeeeeceeeeeeceeceeeeseeaesaeseeeeaesaesaeseeeaesaecaeseeseaesaesaesneteaeeaes 4 6 423 Printing Dya PNO asn arre R A RIEL RA ARF Re EA RASE E
135. splay Function i This connects with a computer etc to the RS 232C or RS External Device i 422 485 interface of the QD51 R24 and sends and receives Section 4 4 Connection Function data through a BASIC program This writes and reads PLC CPU clock data year month day Clock Function hour minute second day of week for PLC CPU s with the clock Section 4 7 function This creates executes and corrects BASIC programs through system commands by connecting a console to the QD51 R24 Online Programming Function y y g See the AD51H BASIC It also records programs run by system commands in Flash ROM and reads them This carries out debugging while running BASIC programs by Multitask Debugging Function multitasking by connecting a console and debugger to the QD51 R24 Programming Manual Programming Manual Debugging Manual 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 2 Communications with a Console Terminal Data can be displayed on the screen and can be input from the keyboard of a console terminal connected to the QD51 R24 A console is a device DOS V personal computer connected to a channel that is set as a console by the GPPW software switch in the QD51 R24 A terminal is a device connected to a channel which is not set as a console in the QD51 R24 In a console and terminal the procedure for screen display and input from the keyboard differ as shown below In the case of a co
136. t procedure GPPW gt PC Parameters gt I O Assignment Setting See the Operating Manual for the GX Developer concerning screen display methods Setting screen POR AERTE POvaT AER PC PfILERIE PC RASHKE FN REE TUTJARE Pheri ERE SFORRE VOINEE Vogt D D S 2 a AS ARRE M a T E om i a 3E EO iru ee E TEE 3 FE FI ARK IRA NORS PCM TI HIE T FERN MAA NOW Fr C1LI HSA HE MBVET N 2Eb Be C stil SHEE 1242 Ok SRE PAI LeU FCPUOS E ERETT UTIEL 1o FLFCPUNS 3 33 POF A XAVEIT HEED TLFCPUERTE Falbh i ENEIT ryti Display contents Item Setting Contents Sets Intelligent Sets the model name of the installed module QD51 or QD51 R24 Number of points Sets 32 points Header XY Sets the header input output hexadecimal of the relevant module Switch settings Sets the console debugger and mode etc See Section 5 6 2 When a multiple PLC system is being used this sets the control PLC for the See the User s Manual corresponding Detailed settings QD51 R24 to the QCPU Q Mode multiple PLC Multiple PLC setting Carries out settings when a multiple PLC system is used system 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 6 2 I O module intelligent function module switch settings Setting purpose The I O module and intelligent function module switch settings set
137. taining errors RDA 4 7kQ1 4W Terminal RDB _ Resistor 4 7kQ 1 4W Receiving Data Opposite Device PONT _ If there is a pull up or pull down resistor in the opposite device there will be no errors in the data which are received Here we will explain concerning cases where a pull up or pull down resistor is not installed in the opposite device When no station is sending data the send line switches to the high impedance state and noise etc cause the send line to drift making it possible for the opposite device to receive data with errors in them At such a time it is possible that parity errors or framing errors etc could occur so when an error occurs skip over the data that are sent at such a time 3 SPECIFICATIONS MELSEC Q 2 RS 422 485 Interface Operation 1 RS 422 485 Interface Configuration In the case of the RS 422 485 interface the configuration of the QD51 R24 driver Send and receiver Receive are as shown in the following figure SDR Driver SDB Send Data 1 The Output Control Input also called the send gate of the driver Send portion in the figure at _ RDA Cee aoa left decides whether data from SDA or SDB are Receive Data output to an external device or not output RDB 2 RS 422 485 Interface Operation In the above figure when the Output Control Input is in the ON state it enters the low impedance state the state in which data can be sent
138. ternal device Board assignment s ZCLOSE Closes the channel of a communications port used in communications with an external device Buzzer output BEEP Sounds a buzzer from the console s internal speaker specified range to a printer eee onol ade Printer output Outputs the name and size of a file to a printer Switches printer ports Sets the output width in the printer Output to screen KEY LIST Displays a character string defined in a function key on the screen Output to port ZSEND Sends data from the designated port 3 SPECIFICATIONS MELSEC Q Table 3 1 List of Commands and Functions in AD51H BASIC Continued Command Classification Operation Contents Function INPUT Inputs data from the keyboard Input from p Stores an entire line input from the keyboard within 255 characters in a character ki LINE INPUT InpuvOutput eypoara string variable without dividing it Input from port ZRECEIVE Receives data from a communication port settings status no input space character strings are given Character strings with lengths specified from the console keyboard are read and Inputs from the Input Functions kevbo r given y Character strings with lengths specified from sequential files are read and given Character strings with lengths specified from the QD51 R24 communications port are read and given COM Controls enabling prohibiting and stopping of interrupts from the commun
139. the designated printer LPRINT USING Outputs data to the designated printer The format can be specified LLIST Outputs the program list to the designated printer 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 4 Communications with the External Device An external device 1 can be connected to the QD51 R24 s RS 232 interface or RS 422 485 interface and communications carried out between them 4 4 1 If data are being sent Here the way of thinking in the case of sending data from the QD51 R24 to a device other than a console terminal or printer If data are being sent the procedure is as follows 1 Open the interface Prepare the data to be sent Specify the sent data byte count and time out time 4 Send data by a ZSEND command Close the interface QD51 R24 User Program Sending of data l I I l j BASIC ZSEND i program gt Interface diia i i I l I I I Commands and functions used The commands and functions used to send data from the QD51 R24 to a device other than a console terminal or printer are shown below 2 Command Function Name Processing Contents ZOPEN Opens the interface and prepares for communications with the external device ZCNTL Sets the communications parameters in the currently open interface and reads the interface status ZSEND Sends the data from the designated interface ZCLOSE Closes the interface 1 1 A console terminal a
140. the following confirmation items there are no check items in particular for the QD51 R24 Other than the following points in order to be able to use the system in its optimum state at all times please carry out maintenance in accordance with the check items listed in the PLC CPU Module s User s Manual QD51 R24 Check Items 1 Make sure there are no faulty contacts in the terminal resistors and connection cables 2 Make sure that the module s installation screws and the terminal block installation screws are fully tightened and that none of the screws is loose When maintaining and checking the QD51 R24 see the Safety Precautions included in the front of this manual 6 EXCLUSIVE COMMANDS MELSEC Q 6 EXCLUSIVE COMMANDS Exclusive commands are commands which make programming easier when using the functions of the intelligent function module In this chapter the QD51 R24 commands which are exclusive QCPU Q Mode commands described in this manual are explained 6 1 List of Exclusive Commands The exclusive commands explained in this chapter are listed below Exclusive Command Function Outline Explanation Section Checks the rise of the start signal Y19 and shortens the start time of a BASIC Section 6 2 For checking the rise of the Start Signal Y19 6 EXCLUSIVE COMMANDS MELSEC Q 6 2 YCHECK Command This checks the rise of the start signal Y19 and shortens the BASIC program start time
141. the task start signal rises Off gt On Even if the task No designation signal goes On while the task start signal is On it is disregarded peated Example The example shows a program in the case where task 1 is started from the PLC CPU Conditions IT started by an interrupt from the PLC CPU is set with only task 1 set for multitasking ON Task start signal Y19 OFF Task 1 start signal Y11 OFF Y12 OFF General output Y13 OFF treatment Y18 OFF ON END Task 1 executed 1 1 Since itis treated as a general output starting of the task is not carried out 2 2 Since the task start signal is not changing from Off On starting of task 1 is not carried out Sequence Program Task 1 setting designation H lt Y11 Task start command H Y19 d Inthe case of the task designated by the start task No designation signal Y11 Y12 being in the process of starting task start is disregarded Operation of the currently executing task is continued e If the exclusive command YCHECK is used the task s starting time can be shortened See Chapter 6 concerning the YCHECK command 3 SPECIFICATIONS MELSEC Q 1 1 This is a tas
142. tion module for storing data sent to and received from the PLC CPU setting values monitor values etc Buffer Memory CH Channel GPPW GPP function software package SW6D5C GPPW E Windows Edition I F Interface Q series PLC module which runs according to commands from the PLC CPU Equivalent to a special function module of the A series PLC Examples Intelligent Function Module e CC Link Interface Module e A D D A Conversion Module e Ethernet Interface Module e Serial Communications Module Intelligent Function Module Buffer memory of the intelligent function module for storing data sent to and received Device from the PLC CPU setting values monitor values etc MELSECNET 10 MELSECNET 10 network system MELSECNET 10H MELSECNET 10H network system MELSECNET 10 H MELSECNET 10 MELSECNET 10H Computer display measuring instrument ID module bar code reader adjuster or other intelligent communications module UC 24 etc connected to this intelligent communications module for data communications Opposite device external device Programming Manual Command Manual or AD51H BASIC Programming Manual Command Manual Command Manual Programming Manual Program Editing Compilation Manual or Program Editing Compilation AD51H BASIC Programming Manual Program Editing Compilation Manual Manual RS 232 Interface RS 232 compatible interface RS 422 485 Interface RS 422 and R
143. tions 2 execution Designated BASIC task No area __ In the System mode when the power Started by an interrupt from e Flash ROM run program area is turned on or during a Rest Section 3 11 3 Designated BASIC task No area e In the Run Multitask debugging Aai e Flash ROM 2 mode during multitask execution B al run program area fo Section 3 11 4 Designated BASIC task No area When run by the ZSTART command User FD or HD file area for the y i eripheral device Save the BASIC Line BASIC program withthe file Section 3 11 4 PSNR ae name designated by the ZSTART program as a file command is read e Since there is no multitask setting No multitask setting reading of a BASIC program is not done The difference between the start condition BOOT and ON is as follows e BOOT The program to be run is stored in the designated BASIC task No area in the main memory s program area ON Only the memory capacity of the designated BASIC task No area in flash ROM is set in the program area of the main memory and the program to be run is not stored in the BASIC task No area the PLC CPU Started by a start request IT OOT from another task ON OFF 1 See the AD51H BASIC programming manual Programming Manual Compilation Manual concerning the system commands MSAVE and SET 3 SPECIFICATIONS MELSEC Q 3 10 QD51 R24 Operation when the Power is Turned On The QD51 R24 operates in the mod
144. to EM1023 f of the ON OFF ON OFF state control Program 1 Program 2 The expansion relays that can be used by the QD51 R24 are EMO to EM1023 1024 points Commands and functions used Commands and functions that perform ON OFF data communications by the expansion relay are shown below Command Function Name Processing Contents B Performs expansion relay ON OFF control and reading of the ON OFF status 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 4 8 2 Data communications by expansion register ED The QD51 R24 s expansion register ED is a device which can store data from all tasks and perform reading of data For details of the expansion relay see Section 3 5 4 Data storage Expansion register EDO to ED1023 Te of data Storing of data Program 1 Program 2 Reading of data The expansion registers that can be used by the QD51 R24 are EDO to ED1023 1024 points Commands and functions used The commands and functions used to carry out data communications by the expansion registers are shown below Command Function Name Processing Contents W Performs storage of data in the expansion register and reading of data GETMEM Performs reading of expansion register data PUTMEM Performs storage of data in the expansion registers 4 8 3 Data communications by common memory Buffer memory in the QD51 R24 is com
145. tput Signals From To the PLC CPU ecesceeceeeeceseeceeceeeeeeeaeeeeseeeaesaesaeeeeeeaeeaeeaeeeataes 3 38 3 8 1 Input X detailed Explanation ee eeceecseeeeeeeeeeeeeeeeeeeeeeeseaeeeaeeeaeecaeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeaeeeaeeeaeeeas 3 39 3 8 2 Output Y detailed explanation cecceeeececceeeeeeeeceeeesesaecaeceeeaecaecaeseeesaesaeseeseaesaesaeeeeseataeseeeeaeeaes 3 42 3 9 Relationship between the QD51 R24 Start Condition and the Flash ROM Execution Programi AO a ccecccecaceececaancaagcaccaastacecagecatetaggcatecangcacetasgeacecengeacebagcacegengsacebanssacstagge hanteageacecengeanecangtacecets 3 46 3 10 QD51 R24 Operation when the Power is Turned On cecceceeeeeeeeeeeeeeeeeeeeceeeeaesaeeaeseeeeaesaeeaeeeeeeaes 3 47 3 10 1 In the case of the programming MOE eeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeaeseaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeenateatenas 3 47 3 10 2 In the case of the multitask debugging mode 0 ee ee eee eee eeee eee teat eeeeeeaeeeaeeeaeeeaeeeaseaeeeateeaeenaeenas 3 48 3 10 3 In the Case Of the run MOE occ eeceeceeeeeeeeeteeeeeeeeeeeeeeeaeseaeeaeeaeesaeseaeeeaesaeeeaeeeaeeeaeeeaseaeenaeeeatenas 3 49 3 11 Running a Task a Created Program ceeeeeceeeeeeeeeeeeeeneeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeeeaeesaeeeaeeeaeeatenatenas 3 50 3 11 1 Conditions for permitting running of a task and start CONCItIONS eccecceeeeseeteeeeeeeeeeteeteeeeeeaes 3 50 3 11 2 Starting by turning the power on or by re
146. ts up when a QD51 R24 hardware error occurs or when a program s execution is abnormal 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 5 4 Connection with a Console Debugger Here the method of connecting with a console is shown 1 Connection method a Connection with a DOS V personal computer Connection is made by combining cables DOS V Personal Computer Conversion Cable Conversion Cable FA CBL25S9S FA CBL25S9P or Conversion lagers or Conversion Adapter Gabr AGIRE Adapter FA A25S9S FA A25S9P Introductory Product Introductory Product a Two conversion adapters FA A25S9P cannot be installed on the QD51 b Inquiries for introductory products Conversion cable FA CBL25S9S FA CBL25S9P Conversion adapter FA A25S9S FA A25S9P Mitsubishi Electric Engineering Corporation East Japan Office Tel 03 3437 6103 Fax 09 3437 2676 Central Japan Office Tel 052 565 3435 Fax 052 541 2558 West Japan Office Tel 06 6347 2969 Fax 06 6347 2983 Kyushu Business Group Tel 092 721 2202 Fax 092 721 2109 5 SETTINGS AND PROCEDURES UP UNTIL OPERATION MELSEC Q 2 Cable wiring Here the wiring of cables made by the user is shown Main Module Side Cable connection and signal direction Console Side E Name Pin No example of full duplex communications connection Signal Name i RD RXD 2 3 4 5 N OD The pin arrangement on the console side differs depending on the persona
147. unning a task a When the power is turned On or there is a reset the Basic program that is read from the Flash ROM is started by a task start signal from the PLC CPU to the QD51 R24 When the task start signal rises the task with the start task No designation flag On is started Start request from PLC CPU BASIC Program Task with IT set in the start condition Pe BASIC program stops b For a task that is started by an interrupt from the PLC CPU write it so that an END command is run at the end of the BASIC program If an END command is run the interrupt from the PLC CPU is reset and it is made possible for the next interrupt to be received 3 SPECIFICATIONS MELSEC Q 3 11 4 Starting by a start request from another BASIC program Start condition BOOT ON This is the case where the start condition in the multitask settings is set on BOOT or ON Starting of a task is done if the Run Permission Conditions listed in Section 3 11 1 are established and when there is a start request by the ZSTART command from another BASIC program For details of the ZSTART command see the AD51H BASIC Programming Manual Command Manual 1 Processing when the power is turned On or when there is a reset a b In the case of the start condition BOOT when the power is turned On or there is a reset the program to be run which is stored in Flash ROM is read and loaded in the QD51 R24 s
148. us KMODE Designates the handling of Kanji character codes during communications with the external device ZODV Switches the data output destination PRINT Displays the data on the terminal screen PRINT USING Displays the data on the terminal screen The format can be designated LOCATE Specifies the data display position on the terminal screen CLS Clears the terminal screen 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q 2 Input from the terminal keyboard Here the way of thinking when data are input from the terminal keyboard is explained Terminal Keyboard SSS Key input CH 1 from the keyboard Input procedure from the terminal keyboard The input procedure for input of data from the terminal keyboard is shown below Open the channel Open the channel connecting to the terminal using of the terminal used the ZOPEN commana for key input Set the data input destination pni Set the data input destination in the console channel using the ZIDV command The QD51 R24 waits for key input Execute the INPUT command etc from the keyboard Y Data are input using the keys of the keyboard Close the terminal iai Close the channel which the terminal is connected channel to using the ZOPEN command 4 ABOUT QD51 R24 FUNCTIONS MELSEC Q Command functions used The commands and functions used to input data from a terminal keyboard are as shown be
149. wiring affix the label for preventing intrusion of foreign matter on the top of the module Do not peel off this label during the wiring operation Be sure to remove this label to allow heat to dissipate during system operation STARTING AND MAINTENANCE PRECAUTIONS A CAUTION e Do not disassemble or modify the each module Doing so could cause failure malfunction injury or fire e Switch all phases of the external power supply off when mounting or removing the module Not doing so may cause failure or malfunction of the module e Do not touch the connector while the power is on Doing so may cause malfunction e Switch all phases of the external power supply off when cleaning or retightening terminal screws and module installation screws Not doing so may cause failure or malfunction of the module If the screws are loose it may cause the module to fallout short circuits or malfunction If the screws are tightened too much it may cause damages to the screws and or the module resulting in fall out short circuits or malfunction OPERATING PRECAUTIONS A CAUTION e When performing control in particular changing data changing a program or changing the operation status status control of the PLC during operation using a BASIC program do so only after reading the user s manual thoroughly and taking adequate safety precautions If there are errors when changing data changing a program or in status control it could r
150. wn below 1 Generic terms and Abbreviations of Affected Modules In this manual PLC CPU units etc related to the Intelligent Communications Module are displayed with the following generic terms and abbreviations When it is necessary to clarify the relevant model name the affected module s model name is included Generic Term Abbreviation Content of Generic terms and Abbreviations AnNCPU AnACPU AnUCPU A2ACPU A2ACPU S1 A2ZACPUP21 R21 AZACPUP21 R21 S1 ASACPU A3ACPUP21 R21 A1NCPU A1NCPUP21 R21 A2NCPU A2NCPU S1 A2NCPUP21 R21 A2NCPUP21 R21 S1 ASNCPU ASNCPUP21 R21 A2UCPU A2UCPU S1 AZUSCPU S1 AZUSHCPU S1 AZUCPU A4UCPU AnA AnU QnACPU AnACPU AnUCPU QnACPU AnU QnACPU AnUCPU QnACPU Shows only the QD51 Shows only the QD51 R24 Shows both the AD51 and QD51 R24 Q Mode Q02CPU QO2HCPU QO6HCPU Q12HCPU Q25HCPU A Mode Q02CPU A QO2HCPU A QO6HCPU A Q2ACPU Q2ACPU S1 Q2ASCPU Q2ASCPU S1 Q2ASHCPU Q2ASHCPU S1 Q3ACPU Q4ACPU Q4ARCPU Q QnACPU QCPU QnACPU 2 Other Generic terms and Abbreviations In this manual serial communications module data communications devices etc are explained using the following generic terms and abbreviations When it is necessary to indicate clearly what the object of the explanation is the name model name of that item is included Generic Term Abbreviation Content of Generic terms and Abbreviations Buffer memory of the intelligent func
Download Pdf Manuals
Related Search
QD51( R24) qd51-r24 qd5124-030
Related Contents
Toshiba PT545U-00W004 Laptop User Manual User manual - fr - Centrosolar Benelux Après bébé - Le Lait de Maman KTA72080MD - GiordanoShop 1396 09 05 Rev2 UM Ventilador Philco 30 Turbo Zes [015011] DD-150 Digital Drum Bedienungsanleitung Meritor Assali serie LM e LMC Manuale di Servizio Revue de presse recrutement Vue d`ensemble Guía de Instalación TAUROK Copyright © All rights reserved.
Failed to retrieve file