background image

 
 
 

A - 1                                                                                                                                                  A - 1 

 

 SAFETY PRECAUTIONS 

 

(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 precautions are ranked as "DANGER" and "CAUTION". 

!

DANGER

CAUTION

!

Indicates that incorrect handling may cause hazardous conditions,

resulting in death or severe injury.

Indicates that incorrect handling may cause hazardous conditions, 

resulting in medium or slight personal injury or physical damage.

 

Note that the 

!

CAUTION level may lead to a serious consequence according to the circumstances.  

Always follow the instructions of both levels because they are important to personal safety. 

 

Please save this manual to make it accessible when required and always forward it to the end user. 
 

[Disposal Precautions] 

!

 DANGER 

 Please refer to the manual for each station concerning the operating status of each station when 

communications errors occur in the station. There is danger of accidents due to wrong outputs 
or wrong operations. 

 When connecting a peripheral device to the CPU module or performing control of a 

programmable controller 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 before exercising other control (program change, operating status change (status 
control)) on the running programmable controller, read the manual carefully and fully confirm 
safety. Especially for the above control on the remote programmable controller from, an 
immediate action may not be taken for programmable controller trouble due to a data 
communication fault. In addition to configuring up the interlock circuit in the sequence program, 
corrective and other actions to be taken as a system for the occurrence of a data 
communication fault should be predetermined between and programmable controller CPU. 

 Do not write data to the "System Area" in the intelligent function module's buffer memory. 

Also, do not turn ON the "Use Prohibited" output signals among the output signals from the 
programmable controller CPU to the intelligent function module. 
If data are written to the "System Area" or output in response to "Use Prohibited" signals, there 
is danger that the programmable controller system will malfunction. 

 

Содержание QD51

Страница 1: ......

Страница 2: ......

Страница 3: ...ns errors occur in the station There is danger of accidents due to wrong outputs or wrong operations When connecting a peripheral device to the CPU module or performing control of a programmable controller 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 before exercising oth...

Страница 4: ...module to use Using this programmable controller in an environment outside the range of the general specifications could result in electric shock fire erroneous operation and damage to or deterioration of the product While pressing the installation lever located at the bottom of module insert the module fixing tab into the fixing hole in the base unit until it stops Then securely mount the module ...

Страница 5: ...minal screws with the specified torque If the terminal screws are loose it could result in short circuits fire or erroneous operation Tightening the terminal screws too far may cause damages to the screws and or the module resulting in fallout short circuits or malfunction When disconnecting the communications cable or power cable that is connected to the module do not disconnect it by grasping th...

Страница 6: ...s Not doing so could result in electric shock Undertightening of terminal screws can cause a short circuit or malfunction Overtightening of screws can cause damages to the screws and or the module resulting in fallout short circuits or malfunction Before touching the module always touch grounded metal etc to discharge static electricity from human body etc Not doing so can cause the module to fail...

Страница 7: ...5 3 5 1 to 3 5 7 3 6 to 3 8 3 8 1 3 8 2 3 9 3 10 3 10 1 to 3 10 3 3 11 3 11 1 to 3 11 4 3 12 1 3 13 1 3 13 2 Section 4 1 4 2 4 2 1 4 2 2 4 3 4 3 2 4 4 1 4 4 5 4 5 4 5 3 4 5 4 4 8 2 Section 5 2 to 5 5 5 5 2 5 6 1 5 6 2 Section 6 1 6 2 Appendix 1 Appendix 2 Appendix 2 1 Appendix 3 Deletion Appendix 2 2 incorporated into Appendix 2 1 Oct 2006 SH NA 080089 F Correction SAFETY PRECAUTIONS Section 2 1 A...

Страница 8: ...on Version B 1 9 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS 2 1 to 2 11 2 1 Application Systems 2 1 2 2 Combining the Opposite Party s Device and the Programmable controller CPU 2 4 2 3 For Use in Multiple CPU System 2 6 2 4 For Use with Redundant CPUs 2 7 2 5 For Use at MELSECNET H Remote I O Station 2 8 2 6 How to confirm the function version 2 10 3 SPECIFICATIONS 3 1 to 3 66 3 1 Performance Sp...

Страница 9: ... 13 BASIC Program Priority Order Priority 3 64 3 13 1 Synchronizing execution between BASIC programs Event control 3 65 3 13 2 Sharing equipment Resources by multitasking 3 66 4 ABOUT QD51 R24 FUNCTIONS 4 1 to 4 24 4 1 List of Functions 4 1 4 2 Communications with a Console Terminal 4 2 4 2 1 Communications with a console 4 3 4 2 2 Communications with a terminal 4 6 4 3 Printing by a Printer 4 10 ...

Страница 10: ... O and intelligent function module 5 12 5 6 3 Intelligent function module interrupt point settings 5 16 5 7 Maintenance Checks 5 17 6 EXCLUSIVE COMMANDS 6 1 to 6 2 6 1 Exclusive Command List and Available Devices 6 1 6 2 Z P YCHECK 6 2 7 TROUBLESHOOTING 7 1 to 7 3 7 1 About QD51 R24 Status Checks 7 1 7 1 1 Checking the LED lighting status communications error status and QD51 R24 switch setting sta...

Страница 11: ...ing settings and compilation methods Sold separately SH 080091 13JF64 Compliance with the EMC and Low Voltage Directives 1 For programmable controller system To configure a system meeting the requirements of the EMC and Low Voltage Directives when incorporating the Mitsubishi programmable controller EMC and Low Voltage Directives compliant into other machinery or equipment refer to Chapter 9 EMC A...

Страница 12: ...he 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 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 The connection method is described in section 5 4 c When desir...

Страница 13: ...PU AnNCPU AnACPU AnUCPU AnACPU A2ACPU A2ACPU S1 A2ACPUP21 R21 A2ACPUP21 R21 S1 A3ACPU A3ACPUP21 R21 AnNCPU A1NCPU A1NCPUP21 R21 A2NCPU A2NCPU S1 A2NCPUP21 R21 A2NCPUP21 R21 S1 A3NCPU A3NCPUP21 R21 AnUCPU A2UCPU A2UCPU S1 A2USCPU S1 A2USHCPU S1 A3UCPU A4UCPU AnA AnU QnACPU AnACPU AnUCPU QnACPU AnU QnACPU AnUCPU QnACPU QD51 Shows only the QD51 QD51 R24 Shows only the QD51 R24 QD51 R24 Shows both the...

Страница 14: ...monitor values etc Special Function Module A QnA series programmable controller modules operated by commands from the programmable controller CPU Equivalent to Q series programmable controller intelligent function modules Examples CC Link Interface Module A D D A Conversion Module High Speed Counter Module Ethernet Interface Module Computer Link Module Serial Communications Module Buffer Memory Bu...

Страница 15: ... 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 Multitasking This executes multiple programs by time slicing executing them so that it seems that they are being executed simultaneously Run Mode This is the mode used when the console is disconnected and the QD51 R2...

Страница 16: ...ule production volume operation setting data etc can be input Printer Function Production plans performances daily reports breakdown details planning data inspection results and test performance etc can be printed out Data Input Function Data can be input 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 ...

Страница 17: ...m the programmable controller CPU The operation in the QD51 R24 when data are sent to or received from an external device or the programmable controller CPU is as shown below Sending Expansion Relay Expansion Register Common Memory Buffer Memory Data reading Data writing Internal Memory BASIC Program Task No 1 Area Task No 2 Area Data Writing Data reading Interface 1 RS 232 External Device Interru...

Страница 18: ...to the RS 232 or RS 422 485 interface or the console non procedurally Data such as production results can also be printed out on a printer connected to the RS 232 interface 2 Sending Data to and Receiving Data from the Programmable Controller CPU Through the execution of programmable controller access commands PCRD PCWT the programmable controller CPU device data can be read and written With the p...

Страница 19: ...ams However a maximum of 2 tasks BASIC programs can be run simultaneously 2 Data communications with external devices Data communications with external devices Non procedural data communications can be carried out with external devices connected to the RS 232 and RS 422 485 interfaces Data communications with a console or terminal The following data communications can be performed with a console o...

Страница 20: ...le s FD or HD hard disk sequential files and random files can be handled However it is necessary that the console be connected at all times Sequential Files 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 Random Files These are files where reading starts from ...

Страница 21: ...PU PO W ER M E LSE C PU LL M I TSU BI S H I Q D 51 R 24 QD51 R24 RS 232 Cable In the case of programming with a PC AT personal computer User s FD Multitask debugging is performed by inputting the Debug command from the debugger By executing the Debug command the following can be done The BASIC program for the specified task No area can be run and terminated The variable values specified in the BAS...

Страница 22: ...CPU No 2 1 2 Setting from GX Developer Peripheral Device QD51 R24 s Control CPU QD51 R24 s Non control CPUs QD 51 2 1 3 4 1 2 1 b If the Function Version B QD51 R24 is used in a multiple CPU system sending the following types of data to and receiving them from the QD51 R24 can be done 1 It is possible for the control CPU to read data from and write them to the buffer memory It is possible to use t...

Страница 23: ...sed Example MELSECNET H Setting from GX Developer Peripheral Device MELSECNET H Whether the control CPU of the relay module is the same or different it is possible to access the other station Relay Module MELSECNET H Network Module 1 QCPU No 1 2 QCPU No 2 3 QCPU No 3 4 QCPU No 4 Relay module controlled by QCPU No 1 QD51 R24 controlled by QCPU No 1 Relay module controlled by QCPU No 2 1 2 1 Source ...

Страница 24: ...n B QD51 R24 Function Function overview Explanatory section Multiple CPU system Compatibility When reading device data from or writing them to a multiple CPU system it is possible to access the Control CPU Non Control CPU specified by the user AD51H BASIC Programming Manual PCRD PCWT Command POINT Refer to Section 2 6 concerning the method for checking the function version ...

Страница 25: ...mounted modules power supply capacity may be insufficient Pay attention to the power supply capacity before mounting modules and if the power supply capacity is insufficient change the combination of the modules Applicable CPU module Base unit 2 CPU type CPU model No of modules 1 Main base unit Extension base unit Q00JCPU 8 Q00CPU Basic model QCPU Q01CPU 24 Q02CPU Q02HCPU Q06HCPU Q12HCPU High Perf...

Страница 26: ...r supply capacity may be insufficient Pay attention to the power supply capacity before mounting modules and if the power supply capacity is insufficient change the combination of the modules Base unit 2 Applicable network module No of modules 1 Main base unit of remote I O station Extension base unit of remote I O station QJ72LP25 25 QJ72LP25G QJ72LP25GE QJ72BR15 Up to 64 Applicable N A 1 Limited...

Страница 27: ...iple CPU system Version 6 or later Single CPU system Q02PH Q06PHCPU Multiple CPU system Version 8 68W or later Single CPU system Q12PH Q25PHCPU Multiple CPU system Version 7 10L or later Q12PRH Q25PRHCPU Redundant system Version 8 45X or later Single CPU system Q02U Q03UD Q04UDH Q06UDHCPU Multiple CPU system Version 8 48A or later Single CPU system Q13UDH Q26UDHCPU Multiple CPU system Version 8 62...

Страница 28: ...3 SDA SG SDB FG RDA FG RDB R S 422 485 C H 1 C H2 C H1 2 1 3 4 5 6 7 R S 232 U SB Q 25H CPU P O W ER M ELS EC PU LL M I TS UBI SH I Q D 51 R 24 b n 1 system configuration RS 485 Q J71E 71 RU N I N I T O PE N S D ER R CO M E RR RD 10BAS E T 12V 12G 10BASE RS 232 M O DE RU N ERR US ER BAT BO O T C H 3 SDA SG SDB FG R DA FG R DB RS 422 485 C H1 C H2 C H1 2 1 3 4 5 6 7 R S 232 U SB Q 25H C PU PO W ER ...

Страница 29: ...ration RS 485 RS 485 RS 485 Q J71E 71 R U N I N IT O PE N SD ER R C OM ER R R D 10BASE T 12V 12 G 10BA SE RS 232 M O D E RU N E R R U S E R B A T B O O T C H 3 SD A SG SD B F G R D A F G RD B RS 422 485 C H 1 CH 2 C H1 2 1 3 4 5 6 7 R S 232 U S B Q 25H CPU PO W E R M E LSEC PU LL M I TS UB I SH I Q D 51 R 24 Q J71E71 R U N I N I T O PEN SD ER R C O M ER R R D 10BASE T 12V 12G 10BAS E R S 232 M O D...

Страница 30: ...g modules QD51 R24 on local station Relay modules 1 and QCPUs on local station relay station and accessed station Example MELSECNET H 1 QCPU No 1 2 QCPU No 2 3 QCPU No 3 4 QCPU No 4 1 Module used for routing controlled by QCPU No 1 QD51 R24 controlled by QCPU No 1 Module used for routing controlled by QCPU No 2 1 2 Source Station Relay station Setting from GX Developer Peripheral device MELSECNET ...

Страница 31: ... 2 SYSTEM CONFIGURATION AND USABLE FUNCTIONS 2 4 For Use with Redundant CPUs This section describes the use of the QD51 R24 with the Redundant CPUs 1 Dedicated instructions The dedicated instructions are not applicable ...

Страница 32: ...with MELSECNET H remote I O stations by BASIC program are as follows Available Function Function Batch read batch write Reading from and writing to device memory Random read test random write Reading from and writing to intelligent function module buffer memory Reading from and writing to the specified intelligent function module s buffer memory The device range of a MELSECNET H remote I O station...

Страница 33: ...ection 5 6 and subsequent sections For the method for displaying each setting screen refer to the GX Developer Operating Manual Parameter setting sections for the QD51 R24 when installed to a MELSECNET H remote I O station Parameter Setting Item Setting Remarks I O Assignment Sets the module installation information Refer to Section 5 6 1 Switch setting for I O and intelligent function modules Set...

Страница 34: ...re displayed on the Production Info List and Module s Detailed Information screens of GX Developer The following explains how to check them on the Production Info List screen For the case of Module s Detailed Information refer to Section 7 1 1 Operating procedure Diagnostics System monitor Product Inf List Serial No Ver and Production No Serial No of the module is displayed in the Serial No column...

Страница 35: ...rial No displayed on the product information screen of GX Developer The serial No on the rating plate indicates the management information of the product The serial No displayed on the product information screen of GX Developer indicates the functional information of the product which is updated when a new function is added ...

Страница 36: ...on Yes Flash ROM write protectable 1 CH 1 RS 232 compatible D sub 9p RS 232 compatible D sub 9p CH 2 RS 232 compatible D sub 9p Interfaces CH 3 RS 422 485 Two piece terminal block Communications method Full duplex communications Synchronization method Start stop synchronization method Transmission rate 2 300 600 1200 2400 4800 14 400 19 200 28 800 38 400 bps It is possible to use the 2 interfaces ...

Страница 37: ...3P External diameter approx 6 5 mm Manufactured by Mitsubishi Electric Wire Co Ltd SPEV SB 0 2 3P External diameter approx 7 5 mm Manufactured by Mitsubishi Electric Wire Co Ltd 5 5 V DC internal current consumption 0 26A 0 31A External dimensions 98 3 86 in H 27 4 1 08 in W 90 3 54 in D mm Weight 0 20kg 0 44lb 3 This shows combinations when the external device s and programmable controller CPU s ...

Страница 38: ... controlled in the QD51 R24 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 If DTR DSR control is being exercised the QD51 R24 turns ON or OFF depending on the size of the empty space in the OS area for reception data storage It is ON when it is ready to receive data When the DTR s...

Страница 39: ...ntrol signal DTR DSR RS and CD can be checked with the ZCTRL command processing code 33 Refer to the Programming Manual Commands for the ZCTRL command 2 The ON and OFF states of each signal represent the following conditions Output Side Input Side ON 5 V DC to 15 V DC 3 V DC to 15 V DC OFF 15 V DC to 5 V DC 15 V DC to 3 V DC 3 Interface connector The following RS 232 interface connector is used fo...

Страница 40: ...al abbreviation Signal name Signal direction QD51 R24 External device SDA SDB RDA RDB SG FG FG Send Data Send Data Receive Data Receive Data Frame Ground Frame Ground Signal Ground SG SDA SDB RDA RDB FG FG 1 Each signal is explained below 1 SDA and SDB signals Signals for sending data to the target device from the QD51 R24 2 RDA and RDB signals Signals for the QD51 R24 to receive data from the tar...

Страница 41: ...able Type Shielded Cable Number of Pairs 3 Conductor Resistance 20 C 88 0 Ω km or less Insulation Resistance 10 000 MΩ km or greater Voltage Resistance 500 V DC 1 minute Electrostatic Capacity 1 KHz Average 60 nF km or less Characteristic Impedance 100 KHz 110 10Ω Recommended conductor size 0 2 mm 2 to 0 75 mm 2 Recommended Cables SPEV SB MPC 0 2 3P Manufactured by Mitsubishi Electric Wire Co Ltd ...

Страница 42: ...or the criterion for the resistance value is approximately 4 7 kΩ 1 4 W it is possible to prevent reception of data containing errors Receiving Data Opposite Device 4 7kΩ1 4W 4 7kΩ1 4W Terminal Resistor RDA RDB POINT 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 REMARK Here we will explain concerning cases where a pull up ...

Страница 43: ... 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 data is sent the high impedance status started by the operation described in above 1 2 is terminated then a mark of several bits is output and the actual data is output Send processing end timing After sending of data ...

Страница 44: ... ON state only when sending data Set the Output Control Input so that it is in the OFF state when data are not being sent The QD51 R 24 side automatically controls the output control input Receive Data Send Data SDA SDB RDA RDB Output Control Input Opposite Device Receive Data Send Data SDA SDB RDA RDB Output Control Input QD51 R24 Receive Data Send Data SDA SDB RDA RDB Output Control Input Opposi...

Страница 45: ...on CHAIN Deletes all or a part of the currently executing program and reads and executes the specified program FOR to NEXT Repeatedly executes a series of commands the specified number of times In the programming mode pauses program execution to wait for command input STOP In the run mode stops program execution and puts the module into an idle state In the programming mode terminates program exec...

Страница 46: ...hes for the specified character string in the entire source string and returns the position of the first match Character string functions Character string length search LEN Returns the number of characters composing a character string SPC Returns the specified number of spaces Format control function Format control TAB Moves the currently displayed character position to the specified position CONS...

Страница 47: ... Error Information Functions Error Information ERL Returns the number of the line where an error was detected Stops the control of the BASIC interpreter and returns to the QD51 R24 s system mode Recursive Commands to the Programming Mode Recursion to the programming mode SYSTEM Stops offline programming and returns to the main menu LOAD Reads programs on an FD or HD into the program area MERGE Mer...

Страница 48: ...umber Character string MKDMBF Converts IEEE double precision data in internal representation into a character string that can be changed into a numeric by the CVD function DEF FN Defines a user function and names it DEFINT Defines variables that start with the specified characters as integer types DEFSNG Defines variables that start with the specified characters as single precision real number typ...

Страница 49: ...e precision real number into an integer CIDB Converts a 2 word 32 bit integer used in programmable controller CPUs into a double precision real number Number functions Format conversion functions CISN Converts a 2 word 32 bit integer used in programmable controller CPUs into a single precision real number PCRD Reads various data from a programmable controller CPU Writes various data to a programma...

Страница 50: ...enerates the specified event from the program ZSTART Starts the specified program Real time control commands Real time control ZURGENCY Changes the priority of a program ZWAIT DELAY Pauses program execution until the specified time has elapsed Real time control commands Real time control ZWAIT EVENT Pauses program execution until the specified event is generated ZMESSAGE Defines a message port ZME...

Страница 51: ...oller CPU BASIC Program Item Content FROM TO command GETMEM PUTMEM command Special Variable B W Reference Section Communications with the programmable controller CPU Buffer memory 0000H to 0BFFH 0000H to 17FFH Section 3 5 2 Communications between tasks Common memory 0C00H to 1BFFH 1800H to 37FFH Section 3 5 3 Expansion register 1C00H to 1FFFH ED0000 to ED1023 Section 3 5 4 System Area Expansion re...

Страница 52: ...the power off The following functions stop during a flash ROM update Communications with external devices Communications with the programmable controller CPU Execution of the BASIC program Time measurement of the timeout processing It is recommended to update the flash ROM before any of these operations and do not update during the operations It may take one to two minutes to update the flash ROM ...

Страница 53: ... Maximum 64 k bytes total for 2 tasks 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 us...

Страница 54: ...QD51 R24 s program area when the module is powered ON or is reset However for an area where the multitask setting is set ON reading to the QD51 R24 is not done Program for running flash ROM QD51 R24 Program Area BASIC Task 1 Area START BASIC Task 2 Area ON Task 1 Area Task 2 Area BASIC Program ...

Страница 55: ... controller CPU are read from or written to the buffer memory by the FROM TO command Program example The following shows a program where values in D0 to D9 are written into the buffer memory area addressed 0H to 9H when the multitask execution start signal X0B is ON To write data from the programmable controller CPU to the buffer memory or to read data from the buffer memory use the multitask exec...

Страница 56: ...A 0 to A 9 equivalent to 20 bytes are written into the buffer memory area addressed 0H to 13H using the PUTMEM command 100 PUTMEM TO 0 0 FROM A 0 20 Buffer Memory 0H 1H 2H 13H 11H 10H 3H 12H 0H 1H 9H 8H PUTMEM Writing of data BASIC Program 1 byte units QD51 R24 to to 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 addre...

Страница 57: ...m 0H to BFFH 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 0H to 17FFH in hexadecimal notation Designated from the programmable controller CPU using a FROM TO command 1 word units Address designated by GETMEM PUTMEM in a BASIC program 1 byte units Buffer Memory Lower order 8...

Страница 58: ...Reading of data Common memory BASIC Program QD51 R24 GETMEM Reading of data PUTMEM Writing of data a In a BASIC program data are read from or written to common memory using the GETMEM PUTMEM command Program example The following shows a program where data from A 0 to A 9 equivalent to 20 bytes are written into the common memory area addressed 1800H to 1813H using the PUTMEM command 100 PUTMEM TO H...

Страница 59: ...the common memory or to read data from the common memory use the multitask execution start signal X0B as an interlock Write Command X0B T0 H0 H0C00 D0 K10 Interlock that enables or disables FROM TO execution 1800H 1801H 1802H 1813H 1811H 1810H 1803H 1812H C00H C01H C09H C08H QD51 R24 to to TO Writing of data Sequence Program 1 word units Common Memory 2 Common Memory Capacity In the QD51 R24 the s...

Страница 60: ...y a BASIC program If designated by a BASIC program addresses are in 1 byte units Also common memory addresses are designated from 1800H to 37FEH in hexadecimal notation 37FCH 37FDH 37FEH 37FFH 1BFEH 1BFFH 1800H 1801H 1802H 1803H C00H C01H Designated from the programmable controller CPU using a FROM TO command 1 word units Address designated by GETMEM PUTMEM in a BASIC program 1 byte units Common M...

Страница 61: ... the register are erased If the data need to be held even after the programmable controller is powered OFF or reset save the expansion register data in the following devices File register of the programmable controller CPU Latched device of the programmable controller CPU 2 When data are sent and received between devices in 1 word units the buffer memory Refer to Section 3 5 2 and common memory Re...

Страница 62: ... b15 to b0 ED0 ED1 ED2 ED3 ED4 ED1021 ED1022 ED1023 Expansion Register BASIC program W Reading of data W Writing of data Program example The following shows a program where 123 is written into the QD51 R24 s expansion register ED0 150 W ED 0 123 ED0 ED1 ED2 ED1023 ED1021 ED1020 ED3 ED1022 1FFEH 1FFFH 1C00H 1C01H 1C02H 1C03H 1FFDH 1FFCH Expansion Register Special variable W Writing of data BASIC Pr...

Страница 63: ...24 Expansion Register b7 to b0 ED0 ED1 ED2 ED1022 ED1023 Lower order Higher order Lower order Higher order Lower order Higher order Lower order Higher order Lower order Higher order to BASIC program GETMEM Reading of data PUTMEM Writing of data Program example In the following program data 4 bytes in A 1 and A 2 of the QD51 R24 are written into ED4 and ED5 20 PUTMEM TO W ED 2 4 FROM A 2 4 1 2 0 11...

Страница 64: ...3 ED1021 Program example The following shows a program where 123 is written into the expansion register address 1C00H when the multitask execution start signal X0B is ON To write data from the programmable controller CPU to the expansion register or to read data from the expansion register use the multitask execution start signal X0B as an interlock Write Command X0B T0 H0 H1C00 K123 K1 Interlock ...

Страница 65: ...an be written or read from either task Expansion Register ED ED0 Task 1 Task 2 Writing of data Reading of data 3 Number of Expansion Register Points The expansion register in the QD51 R24 is 1024 points from ED0 to ED1023 The expansion register No in ED0 to ED1023 is expressed in decimal notation ...

Страница 66: ...e 0 Normal Other than 0 Error Code Error codes are stored in order in ED9001 to ED9008 If more than 8 error occur the error codes are not stored For error codes refer to the Programming Manual Commands EM9000 ED9000 The line No of errors detected by BASIC are stored Correspondence between the error code and the special register for storing the line numbers is as shown below For Error Code Storage ...

Страница 67: ...SIC task in the rest state The BASIC program is not being run 1 BASIC task in the run state The BASIC program is being run BASIC task in the stopped state None of the BASIC programs are being run BASIC task in the wait state Waiting 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 t...

Страница 68: ...iable 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 b15 to b0 ED9000 ED9001 ED9002 ED9003 ED9004 ED9125 ED9126 ED9127 W Reading of data BASIC program Program example The following shows a program where data are read from the QD51 R24 s special register ED9000 100 A W ED 9000 247CH...

Страница 69: ...003 ED9004 ED9125 Program example The following shows a program where a value in the special register address 2400H is read into D0 when the multitask execution start signal X0B is ON To read data from the special register to the programmable controller CPU use the multitask execution start signal X0B as an interlock Read Command X0B FROM H0 H2400 D0 K1 Interlock that enables or disables FROM exec...

Страница 70: ...read ON OFF data Expansion Relay QD51 R24 Programmable controller CPU TO Writing of data FROM Reading of data BASIC program B Reading ON OFF data B Writing ON OFF 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 EM0 ON Task 1 Task 2 EM0 ON OFF EM0 ON OFF Reading of data...

Страница 71: ...pecial variable B the expansion relay is designated by EM0 to EM1023 Designation is in 1 bit units Reading of data QD51 R24 Writing of data EM0 EM1 EM2 EM3 EM4 EM1021 EM1022 EM1023 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Expansion Relay BASIC program B B Program example The following shows a program where 1 is written into the QD51 R24 s expansion relay EM0 150 B EM 0 1 EM0 to EM15 EM16 to EM31 EM1008 to ...

Страница 72: ...ata Program example The following shows a program where 1 is written into the expansion relay address 2380H when the multitask execution start signal X0B is ON To write data from the programmable controller CPU to the expansion realy or to read data from the expansion relay use the multitask execution start signal X0B as an interlock Write Command X0B T0 H0 H2380 K1 K1 Interlock that enables or di...

Страница 73: ...gistered OFF No error is registered Goes ON when one of the following occurs Warning Error Error Message System Down Error Message ED9000 to ED9016 H2501 bit 4 EM9020 Operation Flag ON Multitask execution in progress OFF Task other than multitask Goes ON when the QD51 R24 is executing multitasks Goes OFF when the QD51 R24 is executing a task other than multitasks 1 Reading of Special Relay ON OFF ...

Страница 74: ...EM9126 EM9127 1 0 B 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Program example The following shows a program where data are read from the QD51 R24 s special relay EM9000 150 A B EM 9000 EM9000 to EM9015 EM9016 to EM9031 EM9112 to EM9127 EM9096 to EM9111 2500H 2501H 2507H 2506H EM 9001 EM 9014 EM 9015 EM 9000 EM 9016 EM 9017 EM 9030 EM 9031 EM 9096 EM 9097 EM 9110 EM 9111 EM 9112 EM 9113 EM 9126 EM 9127 b15 to b0...

Страница 75: ...The following shows a program where a value in the special relay address 2500H is read into D0 when the multitask execution start signal X0B is ON To read data from the special relay to the programmable controller CPU use the multitask execution start signal X0B as an interlock Read Command X0B FROM H0 H2500 D0 K1 Interlock that enables or disables FROM execution EM9000 to EM9015 EM9016 to EM9031 ...

Страница 76: ...ies out key input of data Character code control codes 0H to 1FH commas 2CH and DEL 7FH cannot be handled as data INKEY INPUT Stores the data received from the interface in the designated variable Character code control codes 0H 03H 13H 80H and FDH to FFH cannot be handled as data LINE INPUT Carries out key input of data Character code control codes 0H to 1FH and DEL 7FH cannot be handled as data ...

Страница 77: ...4 and enables the following switch settings Detailed settings Section 5 6 1 Switch 1 Setting switch Switch 2 Mode setting switch Switch 3 Switch 4 Switch Settings Switch 5 Not used Set 0000H Section 5 6 2 Interrupt pointer header No CPU Side Number of interrupt pointers Header I O No Interrupt Pointer Settings Carries out settings in order to execute an interrupt program Intelligent module Side He...

Страница 78: ...al Section 3 8 1 2 Y0B X0C Multitask execution interrupt signal Section 3 8 1 3 Y0C X0D 2 QD51 R24 system down signal Section 3 8 1 4 Y0D X0E QD51 R24 operating status signal Section 3 8 1 5 Y0E X0F Use prohibited Y0F X10 Y10 General Output Section 3 8 2 1 X11 Y11 BASIC Task 1 X12 Y12 General output Start Task No Designation signal BASIC Task 2 Section 3 8 2 2 X13 Y13 X14 Y14 X15 Y15 X16 Y16 X17 Y...

Страница 79: ...output turn ON the Use Prohibited signal which is one of the input output signals related to the programmable controller CPU If an output is activated for the Use Prohibited signal there is danger that the programmable controller system could malfunction ...

Страница 80: ... programmable controller CPU 1 General Input X00 to X0A X10 to X1E 26 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 programmable controller CPU Turning the general input ON and OFF is accomplished by the special variable B Programmable controller CPU X00 Y100 QD51 R24 General Input H00 ON Task 1 Task 2 B X H00 1 ...

Страница 81: ...te an attempt to execute the FROM TO command will result in a SP UNIT DOWN error and the programmable controller CPU will stop its operation 2 If data D0 is written from the programmable controller CPU to the QD51 R24 s buffer memory address 0 Write Instruction X0B FROM TO command execution enable disable interlock T0 H0 K0 D0 K1 REMARK 1 Refer to Section 5 6 2 for details of the mode setting swit...

Страница 82: ...en the QD51 R24 s mode setting switch is set in the Run Mode 0 or 1 this signal 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 signal goes ON when an error is detected in a BASIC program during multitask execution At this time the ERR LED turns on the special register number ED9000 or later buffer memory addre...

Страница 83: ...itask execution and an error is detected At this time the ERR LED turns on and the special register number ED9000 or later buffer memory address 2400H or later stores the error code 1 c If the QD51 R24 system down signal X0D goes ON the multitask execution start signal X0B will go OFF X0D X0B OFF ON QD51 Down OFF ON REMARK 1 For the error code refer to Appendix 4 4 of the Programming Manual Comman...

Страница 84: ...e are signals which designate tasks to start by an interrupt from the programmable controller CPU and there is one point for each task b Tasks with IT start by an interrupt from the programmable controller CPU set in the multitask setting are subject to the start task No designation signal Y11 Y12 The device No for a task for which the multitask setting is not set on IT is treated the same as a ge...

Страница 85: ...ion signal Task start signal reset instruction X11 Task start instruction Task start completed Slot No 0 1 2 QD51 R24 Input Output No as seen from the programmable controller CPU X Y00 to X Y1F Value designated by B X Y H00 to X Y H1F Procedure 1 Set the task No Turn Y11 ON by a sequence program 2 Start the task Turn Y19 ON by a sequence program 3 Turn the Start Task No designation signal Y11 Task...

Страница 86: ...le shows a program in the case where task 1 is started from the programmable controller CPU Conditions IT started by an interrupt from the programmable controller CPU is set with only task 1 set for multitasking Task start signal Y19 OFF Task 1 start signal Y11 OFF 2 ON Task 1 executed END Task 1 setting designation Y11 Task start command Y19 1 1 Since it is treated as a general output starting of...

Страница 87: ...uest 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 GX Developer intelligent function module switch Y1A X0E OFF ON Reset request OFF ON Operating Wait for reset Resetting Operating Reset after access enabled time 200 2000 ms following the Y reset set by GX Developer POINT During reset set up an int...

Страница 88: ...nated BASIC task No area In the System mode when the power is turned on or during a Rest In the Run Multitask debug mode during multitask execution Section 3 11 4 Starting by a start request from another task ON User FD or HD file area for the peripheral device Save the BASIC program as a file When run by the ZSTART command The BASIC program with the file name designated by the ZSTART command is r...

Страница 89: ...X Developer When it is turned ON or reset and after the program to be run is read from the flash ROM to the QD51 R24 s program area Refer to Section 3 5 1 the mode is switched to the System mode Power turned on Initialization processing Reading of the program to be run System mode 100 V AC 200 V AC Power supply module Programmable controller CPU QD51 R24 QD51 R24 Program area Program to be run Fla...

Страница 90: ...dule Programmable controller CPU QD51 R24 QD51 R24 Program area Program to be run Flash ROM Console Display D The program to be run is read from the flash ROM and loaded in the QD51 R24 s program area However for a program with a task which has the multitask setting turned ON the program is not read and loaded in the QD51 R24 s program area It is possible to carry out multitask debugging by the de...

Страница 91: ...area However for a program with a task which has the multitask setting turned ON the program is not read and loaded in the QD51 R24 s program area Run the program read from the Flash ROM in accordance with the multitask setting contents Start by turning on the power or by a Reset Start by an interrupt from the programmable controller CPU Start by a start request from another BASIC program Multitas...

Страница 92: ...s Refer to Section 3 9 are set in the multitask setting b The GX Developer intelligent function module switch settings Refer to Section 5 6 is set on Run Mode 0 1 or Multitask Debug Mode 2 3 Program Stored in Flash ROM Task start conditions already set GX Developer Mode Setting 0 1 Run Mode 2 3 Multitask Debug Mode 2 Task Start Conditions Each task is run in accordance with the set start condition...

Страница 93: ... area the designated task is run Flash ROM BASIC Task No Area Start Condition BASIC Program QD51 R24 Program Area 1 START Task No 1 Area 2 START Task No 2 Area 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 a If it is run once only A program is run once only...

Страница 94: ...stead 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 GO TO Power On Reset BASIC Program Task with START set in the start condition BASIC Program ...

Страница 95: ...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 programmable controller CPU 2 Running 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 Y19 from the programmable controller CPU to the QD51 R24 When the task start signal Y19 ri...

Страница 96: ... the ZSTART command refer to the Programming Manual Commands 1 Processing when powered on or reset a When the start condition is BOOT When the module is turned ON or reset the program to be run is loaded from the flash ROM to the internal memory of the QD51 R24 The loaded BASIC program runs when a start is requested from another task b When the start condition is ON When the module is turned ON or...

Страница 97: ...program to be read If the start condition is BOOT Start request from another BASIC program BASIC Program END Start request from another BASIC program If the start condition is ON BASIC Program BASIC program is read from the user FD HD END BASIC Program stops Start request is reset BASIC Program stops Start request is reset b For a task that is started by a start request from another BASIC program ...

Страница 98: ...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 comma...

Страница 99: ...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 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 ar...

Страница 100: ...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 following commands are executed DEF ZEVENT Definition of the event ZEVENT ENABLE Enabling generation of the event ZWAIT EVENT Waiting for the event ZSIGNAL Generati...

Страница 101: ...mplemented Exclusive control of resources is accomplished by the following commands ZRESERVE Requests exclusive control of a resource ZRELEASE Ends exclusive control of a resource ZRESERVE Requests mutual exclusive control of the resource Used by Task 1 Resource Resume Stop for using resources Program execution status Program execution status Resources usage status Task2 ZRELEASE Finishes mutual e...

Страница 102: ... with a printer connected to the QD51 R24 Section 4 3 Data Input Function 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 through a BASIC program it is possible for the QD51 R24 to match the protocols of the opposite device Input of production lot No product name quantity etc Co...

Страница 103: ...D51 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 console Start In the case of a terminal Start Opening of the interface and setting of communications parameters etc Setting of the channel No for the console terminal Output ...

Страница 104: ...o a console screen by the following procedure Set the data output destination Output data to the console Display data in the console Set the data output destination in the console channel by the ZODV command Output data to the console by the PRINT command etc Start End Commands and functions used The commands and functions used to display data on a console screen are shown below Command Function N...

Страница 105: ...P RUN SD RD Keyboard Console In the case of a PC AT personal computer Data input Input data from 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 Wait for key input from the keyboard Key input from the keyboard The data input destination is set in the console channel by the ZI...

Страница 106: ...IDV Switches the data input destination INPUT Carries out key input of data Character code control codes 0H to 1FH commas 2CH and DEL 7FH cannot be handled as data LINE INPUT Carries out key input of data Character code control codes 0H to 1FH and DEL 7FH cannot be handled as data INKEY INPUT Carries out key input of data Character code control codes 0H 03H 13H 80H and FDH to FFH cannot be handled...

Страница 107: ...nal Hello Procedure for displaying data on a terminal screen The procedure for displaying data on a terminal screen is as shown below Output data to the terminal Display the data in the terminal Close the terminal channel Set the data output destination in the channel the terminal is connected to using the ZODV command Output data to the terminal by the PRINT command etc Set the data output destin...

Страница 108: ... 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 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 ter...

Страница 109: ...he input procedure for input of data from the terminal keyboard is shown below The QD51 R24 waits for key input from the keyboard Data are input using the keys of the keyboard Close the terminal channel Execute the INPUT command etc Open the channel connecting to the terminal using the ZOPEN command Set the data input destination Open the channel of the terminal used for key input Set the data inp...

Страница 110: ...CNTL Sets the communications parameters in the currently open interface and reads the interface status ZIDV Switches the data input destination INPUT Carries out key input of data Character code control codes 0H to 1FH commas 2CH and DEL 7FH cannot be handled as data LINE INPUT Carries out key input of data Character code control codes 0H to 1FH and DEL 7FH cannot be handled as data INKEY INPUT Ca...

Страница 111: ...rs in the following two cases 1 Printer connected to an interface other than a console 2 Printer connected to a console PC AT personal computer Set the No of the channel the printer is connected to Output data to the printer End Open the interface and set the communications parameters etc Close the interface Set the No of the channel the printer is connected to Output data to the printer End In th...

Страница 112: ...ocedure The procedure for printing from a printer connected to an interface that is not set in the console is shown below Start End Output data to the terminal Close the terminal channel Output data to the terminal by the LPRINT command etc 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 ...

Страница 113: ...nterface 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 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 ...

Страница 114: ...e for printing out from a printer connected to the console is shown below Set the data output destination Output the data to the printer Sets the data output destination by the ZLDV command Outputs data to the printer by the LPRINT command etc Start End Commands and functions used The commands and functions used to print out by a printer connected to the console are shown below Command Function Na...

Страница 115: ...ce ZSEND QD51 R24 User Program Interface Sending of data BASIC program 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 i...

Страница 116: ...s 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 Stor...

Страница 117: ...e Memory 2 Programmable controller CPU Model Name 3 Programmable controller CPU remote RUN STOP 4 Interrupts to the programmable controller CPU 5 Intelligent function module Special function module buffer memory Can be run Cannot be run Data can also be written to and read from the buffer memory of another intelligent function module special function module using a BASIC program The way of thinkin...

Страница 118: ...troller 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 programmable controller CPU 2 In the case of QD51 R24 Programmable controller CPU Sending of ON OFF data from the QD51 R24 to the programmable controller CPU is carried out by general input X The programmable controller CPU uses ...

Страница 119: ... QD51 R24 16 bit data written to the QD51 R24 s buffer memory by the programmable controller CPU s sequence program TO command are read using a BASIC program 2 In the case of QD51 R24 Programmable controller CPU 16 bit data written to the QD51 R24 s buffer memory by a BASIC program are read by the programmable controller CPU s sequence program FROM command Commands and functions used Commands and ...

Страница 120: ...ing of data QD51 R24 BASIC program Programmable controller CPU Sequence Program Refer to the Programming Manual Commands for the details of the device memories to and from which data can be written and read by the BASIC program Commands and functions used The commands and functions used to write data to and read data from the programmable controller CPU s device memory are shown below Command Func...

Страница 121: ...ock No 0 POINT The QD51 R24 can read or write the expansion file register data only when accessing an A series programmable controller via network Memory Cassette File register Block No 0 Expansion file register Reading of data Writing of data QD51 R24 BASIC program A CPU Sequence program Commands and functions used Commands and functions used to write data to and read data from the programmable c...

Страница 122: ...odule Reading of data Writing of data QD51 R24 BASIC program Programmable controller CPU Sequence program Buffer memory 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 programmable controll...

Страница 123: ...t is necessary to write the calendar date and time to the clock element Reading the calendar time Writing the calendar time Clock element QD51 R24 BASIC program Programmable controller CPU Sequence program Commands and functions used Commands and functions used to write the calendar and time to and read them from the programmable controller CPU are shown below Command Function Name Processing Cont...

Страница 124: ...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 refer to Section 3 5 6 Expansion relay EM0 to EM1023 Program 1 Program 2 Reading of the ON OFF state Reading of the ON OFF state ON OFF control ON OFF control The expansion relays that can be used by the QD51 R24 are EM0 to EM1023 1024 point...

Страница 125: ...ms 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 register 4 8 3 Data communications by common memory Buffer memory in the QD51 R24 is common memory which can be used to carry out storage and reading of data from all tasks For details of the common memory refer to Section 3 5 3 Common...

Страница 126: ... 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 resin so be sure not to drop it or subject it to strong impacts 2 Tighten the screws such as module fixing screws within the following ranges Screw location Tightening torque range Remarks RS 422 485 terminal block terminal screw M3 screw 0 42 to 0 58N m RS 232...

Страница 127: ...onnect the QD51 R24 and the external device Refer to Section 5 5 of this manual Set the QD51 R24 s Input Output assignment Carry out QD51 R24 mode setting programming mode and set operation Refer to Section 5 6 of this manual End Commands and functions Refer to the programming manual Commands Connect the console and the module with cables Connect the console debugger Refer to Section 5 4 of this m...

Страница 128: ...5 interface two piece terminal block for making serial communication with the target device console debugger cannot be connected 1 List of indicator LED s LED name Indication content Lights up Blinks Off RUN Indicates normal operation Normal Abnormal reset ERR Indicates whether or not there is an error 1 Occurrence of an error Normal PRG Indicates the Mode Programming mode Run Multitask debug mode...

Страница 129: ...user created cable is show below QD51 R24 side Console side Signal name Pin number Cable connection and signal direction Connection example of full or half duplex communication Signal name CD 1 CD RD RXD 2 RD RXD SD TXD 3 SD TXD DTR ER 4 DTR ER SG 5 SG DSR DR 6 DSR DR RS RTS 7 RS RTS CS CTS 8 CS CTS 9 CAUTION The pin arrangement on the console side differs depending on the personal computer If the...

Страница 130: ... 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 M3 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...

Страница 131: ...eld Connect to the FG terminal of the external device side or the connector body of the QD51 R24 Do not short circuit the connection cable FG 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 b If data communications cannot be done normally due to external noise make connections as shown below 1 C...

Страница 132: ... External Device Side Signal Name CD RD RXD SD TXD DTR ER DSR DR RS RTS CS CTS SG With the above wiring it is possible to carry out DTR DSR control and DC code control 2 Connection example 2 QD51 R24 Side Signal Name Pin No CD RD RXD SD TXD DTR ER SG DSR DR RS RTS CS CTS 1 2 3 4 5 6 7 8 External Device Side Signal Name CD RD RXD SD TXD DTR ER DSR DR RS RTS CS CTS SG With the above wiring it is pos...

Страница 133: ...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 insta...

Страница 134: ... the QD51 R24 side Connect a 330Ω 1 4 W terminal resistor when communicating using the RS 422 interface Connect a 110Ω 1 2 W terminal resistor when communicating using the RS 485 interface Distinguishing terminal resistors 330Ω 110Ω Brown Orange Orange Brown Brown Brown POINT Including 1 n n 1 and m n connections it is necessary that the device connecting to the QD51 R24 s RS 422 485 interface hav...

Страница 135: ... c If connecting n 1 multiple drop R SDA SDB RDA RDB SG FG QD51 R24 1 QD51 R24 2 QD51 R24 n SDA SDB RDA RDB SG FG R SDA SDB RDA RDB SG FG SDA SDB RDA RDB SG FG R Terminal Resistor External Device 1 RS 422 485 Cable RS 422 485 Cable RS 422 485 Cable d If connecting m n multiple drop External Device QD51 R24 R SDA SDB RDA RDB SG FG QD51 R24 m SDA SDB RDA RDB SG FG R SDA SDB RDA RDB SG FG SDA SDB RDA...

Страница 136: ...s I O Assignment Setting Refer to the Operating Manual for the GX Developer concerning screen display methods Setting screen Display contents Item Name Item Setting Contents Remarks Type Sets Intelligent Model name 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 Se...

Страница 137: ...nt Settings Switch Settings Refer to the Operating Manual for the GX Developer concerning screen display methods Setting screen Display contents Set each switch setting value in combination with 16 bit binary data setting the mode console etc Switch No Content Remarks Console setting Console debugger type setting Ctrl C setting Access possible time setting after Y reset setting Flash ROM write pro...

Страница 138: ... ms 2000 ms a Console Channel setting Bit position b1 b0 Contents OFF OFF Without console OFF ON With console CH1 ON OFF With console CH2 ON ON Setting impossible bF bE bD bC bB bA b9 b8 Bit position Contents OFF 0 ON 1 b8 Not used Fixed on OFF b9 Flash ROM write protection setting Without With bA bB Not used Fixed on OFF bC bD Channel setting Refer to b bE Debugger Software Not used Used bF Not u...

Страница 139: ...rl C setting This sets whether the Ctrl C key input from the console during multitask execution in the run mode is enabled or disabled Enabled At the point when the Ctrl C keys are input multitask operation is stopped and the system switches to the System mode Disabled Multitask execution continues even if the Ctrl C key input occurs from the console 4 Access possible time setting after Y reset Th...

Страница 140: ... connected to Cannot be connected to CH3 Software Used PC AT personal computer that uses SW1IVD AD51HP E Not used VT 382 VG 620 However these have already gone out of production 2 Mode setting switch Setting No Content Remarks 0000H 0001H Run mode Mode for executing the BASIC program 0002H 0003H Multitask debug mode Mode for debugging by connecting a debugger 0004H Programming mode Mode for progra...

Страница 141: ... the programmable controller CPU Start procedure PC Parameter PC System Settings Interrupt Pointer Settings For the screen display method refer to the GX Developer Operating Manual Setting screen Display contents 1 CPU Side Interrupt Pointer Header No This sets the header No 50 to 255 of the interrupt pointer Ixx used by the sequence program 2 CPU Side Interrupt Pointer Count This sets the number ...

Страница 142: ...s please carry out maintenance in accordance with the check items listed in the programmable controller CPU 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 fixing screws and the terminal block installation screws are fully tightened and that none of the screws is loose POINT When maintaining and...

Страница 143: ... Exclusive Command List and Available Devices 1 Exclusive command list The exclusive commands explained in this chapter are listed below Use Exclusive Command Function Outline Explanation Section For checking the rise of the Task Start Signal Y19 YCHECK Checks the rise of the task start signal Y19 and shortens the start time of a BASIC program Section 6 2 2 Available devices The following devices ...

Страница 144: ...put Signal User String BIN16 bit S1 Dummy Device name The file register for each local device and program cannot be used as setting data Function 1 After turning ON QD51 R24 task start signal Y19 designated at Un execute YCHECK instruction to start the BASIC program immediately 2 The YCHECK instruction is executed each scan if execution upon ON is selected and the instruction is ON It is executed ...

Страница 145: ... 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 t...

Страница 146: ... Module access If the QD51 R24 System Down signal X0D is OFF and the QD51 R24 operating status signal X0E 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 e...

Страница 147: ...ers Displays the QD51 R24 s A1SD51S compatible LED status 1 0 1 0 1 0 1 0 1 0 1 0 1 0 PRG MTSE P1 RUN P1 ERR P2 RUN P2 ERR For System b15 b7 b6 b5 b4 b3 b2 b1 b0 to 1 0 1 0 b14 b13 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 Refer to the Programming Manual Comman...

Страница 148: ...D 1024 points General input output Input 27 points Output 17 points 8 points For start from the programmable controller CPU Input 27 points Output 23 points 2 points For task start from the programmable controller CPU Input 26 points Output 23 points 2 points For task start from the programmable controller CPU Memory protection Yes Memory card write protectable Yes EEP ROM write protectable Yes Fl...

Страница 149: ...of the QD51 R24 in existing systems is explained Programs created in A1SD51S or 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 AD51H S3 A1SD51S QD51 QD51 R24 CH 1 RS 232 CH 2 RS 232 CH 3 RS 422 RS 485 Channel CH 4 Parallel Can be used Cannot be used a Use in the QD51 If used in the QD51 there is...

Страница 150: ...which is used for reading or writing the common memory by the GETMEN PUTMEN command with the one for reading or writing the file register R by the PCRD PCWT command 4 Task start signal Y19 If the task start signal Y19 has been used to start a task add the exclusive command YCHECK In the A1SD51S or AD51H S3 a task starts as an interrupt to the module when the task start signal Y19 turns ON As the Q...

Страница 151: ...tered by the PCWT command 5 H5 Reading of continuous address designation data in the expansion file register 7 H7 Reading of Q QnA series device memory Processing code 515 H203 Reading of sequence programs 8 H8 Reading of microcomputer programs 9 H9 Reading of comment data 10 HA Reading of expansion comment data 11 HB Cannot be used in the Q QnA Series Cannot be replaced Reading of the special fun...

Страница 152: ...n the Q QnA Series Cannot be replaced Writing to special function module buffer memory 12 HC Writing to Q QnA series intelligent function module buffer memory Processing code 533 H215 Writing of parameter data Writing of MELSECNET 10 parameters 14 HE Analysis of parameter data 15 HF Cannot be used in the Q QnA Series Cannot be replaced 7 Year of DATE The year setting of DATE varies A1SD51S AD51H S...

Страница 153: ...17 R2 Outside cable diameter 4 10 r1 27 4 1 08 90 3 54 4 3 0 17 98 3 86 R1 Unit mm in R1 Bending radius near the terminal block Outside cable diameter 4 R2 Bending radius near the connector Outside cable diameter 4 r1 Bending radius near crimp contact Connectable as long as not bended extremely ...

Страница 154: ...App 7 App 7 MELSEC Q APPENDIX MEMO ...

Страница 155: ...on Relay 3 35 External Dimensions App 6 G General Input 3 45 General Output 3 49 H Handling Precautions 5 1 I I O Assignment Settings 5 11 I O Module Intelligent Function Module Switch Setting 5 12 Input Output Signals 3 43 Intelligent Function Module Interrupt Point Setting 5 16 Internal Memory 3 16 Interpreter A 13 IT 3 60 L List of commands and Functions 3 10 List of Functions 4 1 M Maintenance...

Страница 156: ...ons 3 5 Run Mode A 13 Running a Task 3 57 S Sending of Data 4 14 Setting from the GX Developer 5 11 Settings and Procedures Up Until Operation 5 1 5 2 Sharing of Resources 3 66 Special Register 3 31 Special Relay 3 38 START 3 58 Start Conditions 3 57 Start Task No Designation 3 49 System Down Signal 3 48 T Task Start Signal 3 51 Terminal A 13 Troubleshooting 7 1 U Use of Programs from Previous Mod...

Страница 157: ... by the user 2 Onerous repair term after discontinuation of production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not available after production is discontinued 3 Overseas service Overseas repairs...

Страница 158: ...ited States and other countries Pentium is a trademark of Intel Corporation in the United States and other countries Ethernet is a trademark of Xerox Corporation All other company names and product names used in this manual are trademarks or registered trademarks of their respective companies SH NA 080089 G ...

Страница 159: ......

Страница 160: ......

Отзывы: