Download a7pu,programming unit,operating manual
Transcript
REVISIONS %Themanualnumberisgivenonthebottomleft Print Date 'ManualNumber Apr., 1989 IB (NA) 66051-D [ I of the back cover. Revision Correction Page1-1,2-2,2-3,2-4,3-1,3-3,3-4,3-5, 3-6 6-73,6-74,6-75,6-76,6-77,6-78,6-79,6-79a,7-6, 7-7,7-8 INTRODUCTION Thank you for choosing the Mitsubishi MELSEC-A Series of GeneralPurposeProgrammable Please read this manual carefully so that the equipment is used to i t s optimum, A copy of this manual should be forwarded t o the end User. Controllers. I8 INAI 66051-A CONTENTS . ............................................. 2 . SYSTEM CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 GENERAL DESCRIPTION 2.1 Applicable System . 2.2System Equipment . 3 SPECIFICATIONS 1-1 2-1 ..................................................... ..................................................... .................................................. 3-1 3.1General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 A7PU Performance Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Connection Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . - 1-2 2-4 2-1 2-4 3-6 3-1 3-3 3-5 4.1 Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 STARTING PROCEDURES ........................................... 5-1 - 4-1 4-3 4-6 5-18 5.1 Starting Procedure and General Operation Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.2 Connecting and Disconnecting to and from the A Series CPU . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 5.3 Checking of CPU Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.10 5.4 Checkingof Keyword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.12 5.5 Function Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.14 -5-1 6 5.6 Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.7 Clear of Keyword and Sequence Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 . 6 PROGRAMMING FUNCTION OPERATION PROCEDURES ..................... 6.1 6.1 ModeSelection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Screen Display and General Operation Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 Instruction Input Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4 Write Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4.1 All clear (Consecutive write of NOP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.4.2 Write of program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5 ReadMode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.1 Read by step number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.2 Read by instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.3 Read by device number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6 Insert/Delete Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.1 Insertion of instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.2 Deletion of instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-101 6-2 6-3 6-9 6.12 6-15 6.19 6-24 6.25 6.28 6.33 6.35 6.36 6.39 6.7 Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.1 Monitor of X, Y . M. L. B. and F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.2 Monitor of D. W. R. A. 2 . and V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.3 Monitor of T/C present value and contact ON/OFF status . . . . . . . . . . . . . . . . . . . . . . . 6.7.4 Continuity check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.7.5 Monitor of offline switch ( Y . M. L. B. F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8 Test Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.1 Set/reset of X. Y . M. L. B. and F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.2 Present value change of T. C. D. W.R. A. 2.and V . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.3 Set/reset of offline switch ( Y . M. L. B. F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.4 Programcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.5 Reading the error step and error description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.8.6 Read/write in machine language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.41 6.42 6.44 6.47 6.49 6.54 6.56 6.58 6.61 6.64 6.67 6.69 6.70 IB INA) 66051-A 6.9 Parameter Setting Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.73 6.9.1 Clearing of parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.82 6.9.2 Setting of program memory capacity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.84 6.9.3 Setting of file register capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.86 6.9.4 Setting of M and L ranges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.87 6.9.5 Setting of timer ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.89 6.9.6 Setting of latch range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.92 6.9.7 Setting of WDT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.96 6.9.8 Setting the 1/0 control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.96a 6.9.9 Setting/resetting of keyword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.97 6.9.10 Setting completion operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.99 6.9.1 1 Write of parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-100 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES ................... 7-1 7-15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 7.1OperationInstructions 7-3 7.2 General Operation for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3 Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 7.4 Setting of Processed Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 7-8 7.5 Setting of Program Capacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6 Setting of Addresses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.10 7.7 Setting of Completion Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -7-12 7.8 Execution Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.13 . ............................................. 8-1 8-14 8.1 Error Messages for Programming Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Error Messages for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3 Error Number and Error Message List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 8-5 8-7 8 ERRORMESSAGELIST .......... .. APPENDICES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APPENDIX 1 APPENDIX 2 APPENDIX 3 APP-1-APP-4 Level Matching of Audio Cassette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Processing Time for Audio Cassette Function . . . . . . . . . . . . . . . . . . . . . . . . . . ExternalDimensionDiagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . APP-1 APP-2 APP-4 1 . G E N E R A L DESCRIPTION 1. / MELSEC-A GENERAL DESCRIPTION The A7PU programming unit (hereinafter referred to as "PU") is a programming unit with audio cassette interface used .for the MELSEC-A series. This Operating Manualdescribes the operations of the PU. This manual is structured as follows: Differences between Type AGPU Programming Unit and Type A7PU Programming Unit are as described below: 1) ROM cassettes for AGPU and A7PU are not compatible with each other. 2) Applicable CPU types are as indicated in the following table. (0:Usable, X : Unusable) I I AOJ2CPU . ~~. - I X A1 CPU, A1 ECPU, A1 NCPU 0 A2CPU, A2ECPU, A2NCPU 0 A3CPU, ASECPU, A3NCPU A3HCPU I 0 I X I 0 0 0 0 0 I I I5 1NAl 66051-D /~MELSEC-n 1. GENERAL DESCRIPTION After unpacking, make sure that the package includes the following products. I Description Type A7PU programming unit Type J-1 cable (for connection with audio cassette recorder) I Quantitv 1 1 I I In using the PU, refer to the following manuals as required: * A series CPU User's Manual. * Instruction Manual for the audio cassette used. 1-2 IB INA) 6M /MELSEC-A 2. SYSTEM CONFIGURATION 2. SYSTEM CONFIGURATION This chapter describes system configurations with which the PU may be used. 2.1 Applicable System The PUhas a programming function and an audio cassette function. If may beused in the following two ways in conjunction with the Aseries PC: 1) Add-on system: The PU is connected directlyonto theA seriesCPU. 2) Hand-held system: The PUis connected t o the A series CPU with theAC30R4(AC300R4) (for AGGPP). cable Example configurations are shown in Fig. 2.1 and Fig. 2.2 on the following pages. 2-1 IB INA) 6M)51-A A7PUs manufactured after March, 1987 or those which havean H before the date of manufac1:uremaybe used with the A3HCPU (P21/R21). The name plate shown below indicates the date of manufacture. A7PU DATE ; 8 . --- - - . :::703:.::: Year (Last ofdigit I --___-* 2-1a theDate year) I o f manufacture I8 INAI 6f /MELSEC-A 2 . SYSTEM CONFIGURATION 2.2 System Equipment Table 2.1 indicates equipment which will be required for the system configurations shown in Fig. 2.1 and Fig. 2.2. Type AC30 R4 RS-422 Cable AC300R4 RS-422 Cable J-1 Programming unit with LCD indicator * Equippedwithprogrammingfunctionandaudio * Programming unit A7PU 1 Remarks Description I Cable for audio . Connection cable between A series CPU and A7PU. Length 3 m. . cassette I cassette function Connection cable between A series CPU and A7PU. Length 30 m. Connection cable between A7PU and audio cassette. Length 2 m. Table 2.1 System Equipment List 2-4 I6 INA) 66051-D 3. SPECIFICATIONS 3. SPECIFICATIONS Describes the performance specifications of the PU. 3.1 General Specifications The general specifications of the PU are as indicated below: Item Ambient temperature Ambient humidity Vibration resistance ~~~ Shock resistance Specifications 0 to 40°C Operating -20 to 50°C Storage 85%RH or less (no condensation) Operating Storaqe Conforms t o JIS C9011. 10 to 90%RH or less (no condensation) Frequency 10 to 55Hz Acceleration 55 t o 150Hz 1P - Amplitude 0.075mm - Sweep count 10 times (1 octave/minute) Conforms t o JIS C0912. (109. 3 times in each of X, Y , and 2 directions) Table 3.1 General Specifications of A7PU (Continue) 3-1 J IB INAl 6 / MELSEC-A 3. SPECIFICATIONS Item I Operating ambience I Specifications There should be no corrosive aases and dust should be minimum. Cooling system Selfcooling J Table 3.1 General Specifications of A7PU 3-2 18 INA) 66051-A /MELSEC-A __ 3. SPECIFICATIONS 3.2 AGPU Performance Specifications The performance specifications of the PU are as indicated below: Item Specifications Connected unit A series PC Power, current consumption I ~~~ ~ Hand-held Connected by AC30R4 cable. Display system Display of 16 characters x 2 lines (with cursor) (liquidcrystal display) EquiDDed with illumination for the display Operation system 54 operation keys (Covered by polyurethane film) Kev ~ Loaded to A series CPU directly, Add-on Connection system Buzzer Power supplied from connected A CPU ( 5 V DC, 0.3A) ~ check ~~~~~ Audio cassette interface Applicable audio cassette Domestic audio cassette recorder (See Appendix 1 ) . Applicable tape Any domestlc cassette tape (particularly home computer types) I 600 BPS Transmission speed 1OOmVpp/SVp-p Record output/replay Table 3.2 Performance Specifications of A7PU (Continue) 3-3 IB lNAI 3. SPECIFICATIONS I Item External dimensions mm (inch) Weight kg (Ib) / MELSEC-A II -.--- Snecifications - - ~ 188 (7.40) (height) x 79 (3.1 1 ) (width) x 44.5 (1.75) (depth). When loaded directly to CPU, depth is 37.5 (1.48). 0.5 (1.1) 1 J Table 3.2 Performance Specifications of A7PU 3-4 ._I_ IB (NAI 66051-D ... ... I.._. ~ , /_____ MELSEC- 3. SPECIFICATIONS 3.3 Connection Cables The specifications of connection cables required for the PU are as indicated below. (1) AC30R4 cable r Item Specifications Between A series CPU and A7PU Connected CPU Length rn ( f t ) 3 (9.841 Weight kg (Ib) 0.5 (1.1) Table 3.3 AC30R4 Cable I (2) AC300R4 cable Item Specifications Between A series CPU and A7PU Connected CPU 30 ( 9 8 . 4 ) Length m ( f t ) 5 (11) Weight kg (Ib) Table 3.4 AC300R4 Cable 3-5 IB f N A 3 . SPECIFICATIONS / MELSEC-A (3) J-1 cable Item Connected unit Length m ( f t ) Specifications Between A7PU and audio cassette recorder 2 (6.56) 0.03(0.07) Weight kg (Ib) Table 3.5 J-1 Cable 3-6 IB INA) 66051-D / MELSEC-A 4. HANDLING 4. HANDLING This chapter describes the handling instructions, nomenclature, and maintenance of the PU. 4.1 Handling Instructions ( 1 ) Do not drop or subject to shock. ( 2 ) Do not disassemble the case. (3) When the PU is not in use or the PU is connected t o the CPUvia a cable, f i t the protective cap on to the connector. (4) Do not touch the connector pins of the PU. (5j Do not open the ROM cartridgecontainer and donot remove the ROM cartridgelocatedinside. / MELSEC-A 4. HANDLING (1) When designing the system, ensure PC. that all protective and safety circuits are located outside the (2) Static electricity will damage the components on the printed circuit board therefore: 1) 2) Groundhumanbody and work bench. Do not touch the conductive areas of the printed circuit board or the components with any non-grounded material. /MELSEC-A - 4. HANDLING 4.2 Nomenclature The nomenclature of the PU i s indicated in Fig. 4.1 and Fig. 4.2. I Liquid crystal display details, refer to Fig. 4.3.) Connector for AC30R4 cable (with protection cap) (Used for hand-held system) Holder for storage of protective onnector for audio cassette I Fig. 4.1 Nomenclature of A7PU (front) 4-3 113 (NAt 6M / MELSEC-A 4. HANDLING cartridge container mot open) (Used for direct connection withCPU) Fig. 4.2 Nomenclature of A7PU (rear) 4. HANDLING The arranaement of operation keyboard is shown in Fig. 4.3. Instruction keys (Instruction indicated a t top) Device keys (Code lndtcated a t bottom) Instruction keys (Instruction indicated at top) Device number setting keys (0t o F at bottom) - Fig. 4.3 Arrangement of Operation Keyboard 4-5 I8 #!<A 661 / MELSEC-A 4. HANDLING 4.3 Maintenance The PU has no special components which require inspection or replacement. When keeping the PU in storage, take care of the following points: ( 1 ) Avoid storing the PU in the following environments: 1) Ambient temperature is outside the range -1OOC to 50°C. 2) Ambient humidity i s outside the range 10 to 90%RH. 3) Condensation occurs due to sudden temperature changes. 4) 5) Anywhere that the PU may be subjected to wind and rain or the direct rays of the sun. Anywhere that there areexcessive amounts of conductivepowders, such as dust, dirt, and iron filings, or corrosive gases, oil mist, salt, etc. (2) Ensure that the audio cassette manual is fully understood before use. 4-6 .. -. I6 (NAI 66051-A .. . .. /___MELSEC-A 4. HANDLING (3) Avoid storing tape cassettes in places where temperature and/or humidity are high or in the vicinity of strong magnetic fields. (4) When storing a cassette for a long time, replay and rewind it on the cassette player everysix months. 4-7 IB INA) 6M)5 / MELSEC-A 5 . STARTING PROCEDURES 5. STARTINGPROCEDURE 5.1 Starting Procedure and General Operation Procedure I 1. Connect P U t o CPU , . . . .Refer t o Section5.2. . . . . . .Refer t o Section 5.3. When A7PU is loaded t o AOJ2CPU or entry code has not been set . . . . . .Refer t o Section 5.4. Function selection >. . . . .Refer t o Section 5.5. , I Audio cssette function <Mode i Write t A + Read selection) I I A + Insert/Delete - 5-1 ~ __...__.--. t + Verify IB INAi 66051-A . . 5. STARTING PROCEDURES / MELSEC-A 5.2 Connecting and Disconnecting t o and from the A Series CPU The PU canbe connected and disconnected to and from the PC while it is running. If possible,however, connect and disconnect the PU with the PC in STOP mode. When connecting and disconnecting the PU with the PC in RUN mode take care to insert the connector properly, Fig. 5.1 shows the connecting and disconnecting procedures for direct connection with the PC and Fig. 5.2 shows the connecting and disconnecting procedures for remote connection. When using the audio cassette function, connect the PU according to Fig. 5.1 or Fig. 5.2, and then connect the PU and the audio cassette according t o Fig. 5.4. / MELSEC-A 5 . STARTING PROCEDURES r ( 1 ) Connectingprocedure 1) Remove the CPU connector cap. 2) Remove the RS422 connector protective cap a t the rear of the PU. Storethe protective cap by clipping i t t o the lugs on the bottom of the PU. (Refer to Fig. 5.5.) 3) As shown a t left, connect the PUand the PC. 4) Tighten the PU fixing screws. (2) Operation Performoperationaccording Chapter 7. I t o Chapter 6 or Fig. 5.1 Connection and Disconnection Procedures for direct connection with 5-3 cpu. I6 INA) 66051-A / MELSEC-A 5. STARTING PROCEDURES (3) Disconnecting procedure 1 ) Press the IcL( key. 2 ) Remove the PU fixing screws. 3) Unload the PU from the CPU. 4 )F i t the RS422 connector protective cap to the rear of the PU. 5) Fit the CPU connector cap. 5-4 IB LNAl 66( / MELSEC-A 5 . STARTING PROCEDURES ( 1 ) Connecting procedure Remove the CPU connector cam Remove the protective cap from the connector a t the top of the PU.Storethe protective cap by clipping i t t o the lugs on the bottom of the PU. (Refer to Fig. 5.5.) Connect the plastic cased connector on the AC30R4 to the socket on the top of the Pu. Connect the metal cased connector t o the RS422 socket on the CPUand tighten the fixing screws. 12) Operation Performoperation Chapter 7. according to Chapter 6 or .. --. -- I t // Fig. 5.2 Connecting and Disconnecting Procedures for Remote Connection with CPU *-.. /-__ M ELSEC- 5. STARTING PROCEDURES (3) Unloadingprocedure 1 ) Presskey. the 2) Remove the fixing screws on the CPU connector and disconnect the AC30R4 cable from the CPU. Fit the cap to the CPU connector. 3) DisconnecttheAC30R4 cable from the PU. 4) Fit the protection cap to theconnectoron the top of the PU. Forconnecting ans disconnectingoftheAC30R4 cable t o and from the connector a t the top of the PU, refer t o Fig. 5.3. 5-6 IB INAI / MELSEC-A 5. STARTING PROCEDURES Connection of PU and AC30R4 cable Insertthe PU connector end of the AC30RL cable into the PU in the direction shown on tht left. (Insert the connector until clicking sound i! heard.) Disconnection of PU and AC30R4 cable 1 ) Push the connector release buttonin the direction of arrow 2) With the button pressed, pull theconnector in the direction of arrow 0. 0. Fig. 5.3 Connecting and Disconnecting of PU and AC30R4 Cable 5-7 _-^-- -- .. __ . -. _l_l -. ..- . . I _ .. IB INAl 66051-A . ... . , . . . /~MELSEC-A 5. STARTING PROCEDURES (1) J-1 to PU As shown on the left, connect the cable t o the audio cassette connector a t the bottom of the PU . (2) Connection to audio cassette 0 Write mode Connect the cable to the microphone terminal or equivalent of audio cassette recorder. 0 Read and verify modes Connect the cable t o the earphone terminal or equivalent of audio cassette recorder. \ J-1 cable Fig. 5.4 Connection with Audio Casette 5-8 IB (NA) I / MELSEC-A 5 . STARTING PROCEDURES Fig. 5.5 Storing of protective cap 5-9 18 INA) 66D51-A /MELSE,C-A 5. STARTING PROCEDURES 5.3 Checking of CPU Type Basic Operation @ ( 1 ) By the input of When an entry code has been specified, proceed t o Section 5.4. When the A7PU is loaded into the AOJ2CPU or an entry code has not beenspecified,proceed Section 5.5. (2) When the PU is connected with the CPU or the PUisreset is displayed. Displays the connectedCPU type. &-D ' isplays sya l ps iD: to (refer t o Section 5.6), the following screen the R O M cassette type loaded to thePU. the PU version. / MELSEC-A 5 . STARTING PROCEDURES IREMARKS J After the P U i s connected to the CPU, i t takes 3 to 5 seconds u n t i l the screen shown on the left is displayed. Before this screen is displayed,thestatusof screen i s as shown below. (The same applies during communication with the ACPU.) Flicker-• 5-11 .. __ . ._ ., IB INAJ 66051-A -. - -- - /MELSEC-A 5. STARTING PROCEDURES __.-- 5.4 Checking of Keyword (or Entry Code) (only applicable if an entry code has beenentered into the parameters) f Basic Operation -J Only the device number setting keys (0 to F) may be pressed, \ Operation Procedure indicates that the +m [Entry code operation] input t K E Y W0RD:IACOBI or \ 4 Entry code When entry code coincides When entry code does not coincide 0 0 1 K E Y W O R D = K E Y W O R DN =G O K / key is input. 5-12 IB INAl 66 /MELSEC-A 5. STARTING PROCEDURES When the CPU type checking operation is performed after the entry code is specified (6-digit hexadecimal number), the keyword input screen is displayed. When a keyword has not been entered or A7PU is loaded in AOJ2CPU. the screen shown in Section 5.5 is displayed. 1) 2) Input the six digit hexadecimal data using the device number setting keys. Check the keyword. After OK/NG hasbeen displayed for two seconds, the screen shown in Section 5.5 is displayed. When keyword and entry codes do not coincide, only the following operations are valid. Monitor mode Monitor of X, Y , M, L, B, and F Monitor of D, W, R, A, 2,and V Monitor of timer/counter L Monitor of offline switch ( Y , M, L, 6,and F ) Set/reset of X, Y , M, L, B, and F Read of error step and error description when error has occurred Setireset of offline switch ( Y , M, L, E, and F ) 5-13 -- - . .. ... ,, ,. . IB iNAl 66051-A -.-.... -. .. ._- -- /-_MELSEC-A 5. STARTING PROCEDURES 5.5 Function Selection [ I Basic Operation Function selection Operation Procedure P R O G R A M M I N G (Programming function is selected.) 1 "Duting CPU stop" means at stop or pause status. Table 5.1 Operating Conditions of Various Modes / 5-14 IB iNAi 6MI! / MELSEC-A 5 . STARTING PROCEDURES Select either the programming function or the audio cassette function. By pressing the key,the display screenchanges as shown below.Bythe display function is selected. t UH 1. . . . M T Ou H I PROGRAMMING >x_Cep_t _Ac_p-u- - -0H / P R O G R A M M I N G ( S U B ) I U/sFT/ u D U R I N G R .., N . . / P R O G R A M M I N G ( S U B ) n I V M I , screen .Audio cassette function . . . . . .Programming function during R I D m /':'I - key,the . . , , , .Programming function P R O G R A M M I N G C A S S E T T E input of CPU run . , .Programming function of subprogram (Only ABCPU. A3HCPUJ . . . Subprogram programming function during 5-15 (Only A3CPU. AIHCPU) CPU run IB lNAl 66051.8 /MELSEC-A - 5. STARTING PROCEDURES 5.6 Reset Operation Operation Procedure Press both the @ and @ keys at the same time. This triggers a hardware reset for the PU. Proceed to Section 5.3. POINT 1 ) The reset operation may be used at any time. 2) When switching between the programming function and the audio cassette function it isnecessary to reset. 5-16 IB (NA) 6M151 / MELSEC-A 5 . STARTING PROCEDURES 5.7 Clear of Keyword (or Entry Code) and Sequence Program This section describes the procedure necessary when the entry code has been forgotten. In this case all programs must be cleared. f . Operation Procedure K E Y I W O R D r A L L C L R L+ Only the key codes displayed at the bottom of operation keys are valid. :2oi I ,...... * *n..u * * *....*C*. L*R*....*j I Displayed in units of 0.5K steps. When 0.5K steps are cleared, one mark disappears. I t takes approximately 1.4 seconds to clear 1K bytes (0.5K steps). Upon completion of the clear operation, the buzzer is sounded. i 3-I I , IB INAi 6W51-A /___MELSEC-A 5. STARTING PROCEDURES When the clear operation described is performed, all sequenceprogramsareclearedand meters changed to default values. 5-18 the para- 15 (NAI 6( 6. PROGRAMMING FUNCTION 6. OPERATION PROCEDURES IMELSEC-A PROGRAMMINGFUNCTIONOPERATIONPROCEDURES The following six programming functions are available: . , . , .For reading a program by step number, instruction, device number, etc. Write . , , , . . , . . .For writing a program. Programsmay be written to the CPU while it is running. Insert/delete . . . . .For inserting and deleting instructions. Monitor . , . . . .Formonitoringthespecified device number, dataregister, offlineswitch, etc. Test. , . , , . . , , . . .Forforcing devices ON/OFF,changingthepresent value of data registers, Read ., . , , , , , Programming function , , , , switching devices ON/OFFline,checkingofprograms,reading of errors and reading/writing of programs in machine code. Parameter setting . . . .Mode t o set the parameters of the ACPU. "During CPU run" means in run status or in step run status. step numbers 6. PROGRAMMING FUNCTION OPERATION PROCEDURES 6.1 Mode Selection key [Mode Basic Operation input] (R) Mode key @. , , , kt- o TEST @. . ... . , . Indicatestheabbreviation for the modedisplayed the top left of screen. at .Insertion/deletionmode .Testmode .Parametermode These mode keys may be used a t any time during programming. 6-2 IB INAI 6605 / MELSEC-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES 6.2 Screen Display and General Operation Procedure ( 1 ) Mode and indication of key operation The selected mode is displayed. During communication with ACPU, the cursor flickers I Valid key display When a mode other than parameter modehas been selected, the valid operation for use of the keys is indicated. C- Indicates the area A of keyboard. -Indicates the area B o f keyboard. Display example j y l - The upper key functions in area A are valid. \y]The lower key functions in area A are valid. The upper key functions in area 6 are valid. 6-3 The lower key functions in area 6 are valid. IB iNAl 66051-A 6. PROGRAMMING FUNCTION OPERATION / MELSEC- PROCEDURES (2) Handling of @ key The control and display of valid keys is automaticallyperformedbythe PU.However,when i t is necessary t o change this, press the shift (SFT) key. By pressing the shift key,thekeyoperations change as shownbelow.(The markindicates a @ key operation.) 5 7 1 U 0 I (3) Use of @ key (a) For modes other than parameter mode. The C L (or CLEAR) key is used to delete an instruction while it is being keyed in. Hence if an error is made during program writing, pressing the CL key will allow the operation to be repeated correctly. 6-4 18 (NAI 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (b) In pararneter mode Processing is stopped. @ key This key is used t o declare a step number. When the @key is pressed, the display of key operation changes to the following, 0 $ 7 1 -- - The lower key codes in area A are valid. The lower key codes i n area B are valid. keys and These keys are pressed a t the end of a series of key operations in order to execute those key operations, After checking the display, press the relevant key. In this manual, indicates that either of STP or STP key may be pressed, O n Cursor display method The cursor is controlled by the PU and flickers ( a t intervals of approximately 0.5 seconds). The cursor may appear as W or 0 depending on the circumstances. In this manual, a frame (0)is used to indicate the cursor position. 6. PROGRAMMINGFUNCTIONOPERATION /-__ MLSEC-A PROCEDURES (7) Display of key-input data Key-input data is displayed on the left of the cursor display in due order. Example: With the following key input &@ @ and [" 1 are alternatelydisplayed a t thecursorposition. DDmB - p ( 8 ) Numeraldisplay * A decimal number is displayed with zero suppression. Example: * mmmm K [;:I O n I A hexadecimal number is displayed in 4 digits or 8 digits without zero suppression. Example: ~ Hr-11 (9) Device display O n * Z e r o suppressed + Sero displayed When there are two or more devices in a basic instruction a comma is provided after the to indicate which of the devices is currently displayed in the lower portion of the screen. 6-6 instruction IB (NAI 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Example: R 1 0 0 F R O M do 0 1I " .First device (nocomma) STP key input /R I 1 0 0 R 1 0 0 IR I I O 0 1 F R O M , 6 F R O M , , I O 1.'' 0 " Second device (one comma after .Third device ( t w o commas) key irtput F R O M , , , K I 1 . . .Fourth device (three commas) FROM) 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MtLorta-r, (101Step number display Step numbers are displayed in decimal. When two five figure step numbers are being displayed they appear as shown on the right. indication the lower 4 digits of step number are displayed. Area reserved for function f-The step number is displayed in 5 digits 6-8 I8 (NAI 66r 6. PROGRAMMINGFUNCTIONOPERATION I REMARKS I I ...... PROCEDURES /_-_MELSEC-A . ’ !key can be omitted. i.SP.8 In the above instruction input, the input o f ’ Instructions other than the above Press the key betweenthe instruction anddeviceandbetweensourcedataand destination data. ASCI I character input procedure To include a blank code in an ASCII character string, press the @ key. Handling of devices M and L In test, monitor, write, and insert modes, the displays of devices M and L change depending on the setting. 6-10 IB INAi ff 6 . PROGRAMMING FUNCTION OPERATION Example: PROCEDURES Assume that the parameter setting is MO to 999 and L1000 to L2047 / MELSEC-A 6. PROGRAMMINGFUNCTIONOPERATIONPROCEDURES /MELSEC-A - 6.4 Write Mode Write mode isused t o write a new program to the RAM of the programmable controller a program. For write operation in machine language, refer to Section 6.8.6 (page 6-70). CPU or modify ( 1 ) Write during run Write during CPU run may be performed with the following restrictions: (a) Any previous instruction which i s being overwritten should be of the same length (i.e. same number of steps) as that replacing it. (b) Both the instruction prior to the write operation and the instruction to be written should not be P or I instructions. (2) Check for the same coil In write mode, double coil error check is not made. Check for double coil may bemade in test mode.Fortheoperationprocedure refer t o Section 6.8.4 (page 6-67). 6-12 and otherdetails, IB (NAI 66051-P 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES (3) Sequence programcapacity Whenthesequence programcapacity is set t o nK steps, the number of usablesteps is as described below: 0 to (n x 1024 - 2) steps Example: I n the case of 2K steps 0 to 2 x 1024 - 2 = 0 to 2046 (= 2047 steps) When microcomputer program capacity hasbeen set to mK bytes with the AOJZCPU, the number of steps is 0 to [ ( 7 - m/2) x 1024 - 1 ) l steps. Example:Setting of microcomputerprogramcapacity to 2K bytes 0 t o [ ( 7 - 2/2) x 1024 - 11 = 0 to 6143 (= 6144 steps) positions of CPU unit andthe The relationbetween the RUNETOPkeyswitch indicated below. writeconditions Key Switch Position of CPU Unit -~ ~ RUN ~ ~~ ~ ~~~~~ ~~~~~~~ ~ ~~~~~ ~~~~~~~ Programming function ~ ~ PAUSE ~ X Programming function during CPU run pEGiEZ~ 0 0 0 0 0 Write STEP 6-13 RUN STOP X 0 0 mark: X mark: Write For the AOJSCPU, PAUSE and STEP RUN are n o t available. ,. I is as enabled disabled 18 INAI 66051-A . - . I., - rnSEC-A - 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES The basic operation in write mode is as described below, Item All clear (Batch write of NOP) I Basic Omration I n write mode Write Write of program In write mod6 ---- I [ In read, insert/delete, Instruction display operation in x monitormode insert/delete,ormonitormode --+ read, -1 indicates operation to be performed when step number is displayed. 6-14 18 INA) 660: 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.4.1 All clear (Consecutive write of NOP) Basic Operation Operation in write mode I 1 * I I I I Operation from read, insert/delete, Or monitor mode [ t o be performed when step number is displayed. --+indicates operation \ I Instructiondisplayoperationin read, insert/delete, or monitor mode (1) The memory is cleared using this procedure. (2) Press the@ , , andkeys to displaythe headstep number a t whichthe NOP instructions will be written. By pressing the keys, the final step number is @, , and specified and the NOP write operation is executed. In the operation from read, insert/delete, or monitor mode, thedisplayed step number isused as a headstep number. Bypressing the , , , andkeys, thefinal step number is specified and the NOP write operation is executed. 1- P @ @ I , 1- 6-15 IB INAI 66051-A 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A I f the initial step number is located halfway through an instruction, the head step of that instruction i s taken as the head step number. If the final step number is located halfway through an instruction, the clearing operation i s automatically performed up to the final step of that instruciton. exampleRefer t o Operation 3. 1 The consecutive write of NOP takes approximately 5.5 seconds per 1 K step. @3m-@-m Operation example 1 W W w ' I I O 0 1 0 0 1 0 0 I O 0 L D N 0 P K 6-16 X 005' ' 1 9 9 :I---- Memory content i s displayed. The contents of steps 100 to 199 are cleared. IB (NAl 6M15 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example 2 (Operation from read, insert/delete, or monitor mode) R W W , x I ----+D i nl s p l a y I I I O 0 I 100 N O P K l9@- read mode / MELSEC-A 6. PROGRAMMING FUNCTION OPERATION PROCEDURES Operation example 3 (The head step number or the final step number is located halfway through an instruction) - - Circuit example 1 0 3 -7- M O V Since the set step number i s located halfway through an instruction,the step number changes to that ofthe head step (103)of instruction. W 1 0 3 I 0 3 N O P K 108 t I 13: Sincethe set final step is locatedhalfwaythrough an instruction, NOP is writtenup to the last step (113, MOV K 4 X 5 Z D1Z) of that instruction. 6-18 IB INA) 66051-A 6. PROGRAMMING FUNCTION OPERATION i / MELSEC-A PROCEDURES 6.4.2 Write of program Basic Operation Operation in write mode J - Operation from read, insert/delete monitor Inode I I Instructiondisplayoperationin insert/delete, or monitor mode Or -- -- read, ! IO' ~ WR - - + indicates operation to be performed when step number is displayed. I ( 1 ) After settingthe step number, input the instruction andpress thekey.Thiswritesthe instruction to the CPU memory and advances the step number. Thereafter, each timethe and are input,theinstruction is written and the step number incremented. ( 2 ) A n instruction is not written per step but written per instruction. Example: MOV DO D l , MOV, DO, and D l do not need to be written separately but In the case of in b ' -ks. B A I I 6-19 - IB iNAi 66051-A 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A (3) When the instruction written in thememory is overwritten with another instruction, thenumber of steps of the preceding instruction may be different from the number of steps of the instruction to be written.Inthis case, the step numbers of the succeeding program are automaticallyshifted.(For details, refer t o the following page.) Therefore, ifwriteoperation is performed a f t e r a program hasbeen written up to themaximum memory capacity, the program in the vicinity of the final stepexceeds the memory capacity and is erased. (4) Be sure t o write the instruction a t the end of program. 6-20 IB iNAi 66 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Processing examples when the number of steps of the instruction written in the memory is different from the number of steps of the instruction to be written Step number Step number Step 0 [ x 0 1 1 MOV O1 E I I Y - 7 7 1 l O U T Y201 / / 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A (Circuit example) Operation example W Q 1 on 1 0 0 W W ~ 7 Use a key in area I I N O P 0 0 :5 0 0 5 - L D X M I O 1 A N D M l o t A N D M O R D = I O 2 @ example) of step 100 i s displayed. (NOP i n this has been writtento step 100 and waiting for the input of instruction of step 101. X A N D . . .The content . . .Instruction L D 1 0 0 101 1 0 2 W I 0' *: 2' I indicated in Section 6.2, k e y Input, the display change. 6-22 IB iNAI 6605 6. PROGRAMMING FUNCTION OPERATION PROCEDURES The key pressed a f t e r irrespective of the valid key display. W W W 1 0 2 I 1 3 ORD: K 8 M mZ1 ~a 3 2: 1 M 3 2 1 I 1 3 K 8 M O U T T W I 1 3 O U T T 3 1 W I 1 3 O U T K T 3 1 W I 1 4 K 3 1 1 1 2 m 1 2 3 : I /MELSEC-A i s regarded as ”-” 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.5 Read Mode Read mode is used to read the memory of the programmable controller CPU. The read operation can be performed either during the stopor run of the CPU. However, the read operation duringrun by instruction ordevice maytake some time.(Time is proportional to thenumberof steps in the sequence program.) For the read operation in machine language, refer to Section 6.8.6 (page 6-70). The basic operation in read mode is as described below. Mode I Item 1 Operation in read mode -+m Basic Operation @ I step number In _. Read Read by device ntamher 6-24 IB (NA) 66051-A 6. PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.5.1 Read by step number r 7 Basic Operation *Operation in read mode * Operation from write, insert/delete, or monitor mode Instruction display operation from write, I insert/delete, or monitor mode --+ ]-@--j I indicates an operation t o be performed when the step number is displayed. 0 ( 1 ) After specifyingthe step number press the or t o display that instruction. (2) When thespecified step number is locatedhalfwaythrough an instruction, the headstep number of that instruction i s used. Example: Whenstep 106 is specified in theexample shown on the following page, the program is displayed beginning with step 104. (3) Each time the key is pressed, the next instruction is displayed. Each time the key is pressed, the preceding instruction is displayed. 0 @ 6-25 4 IB iNAi 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (4) I f the specified step number exceeds the final step, the program automatically returns step 0. I f the step number precedes step 0, the program automatically returns to the final step. 6-26 IB lNAl W 5 1 - I 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES Operation example R Circuit example -1 1 0 0 LD X 021' R 100 101 L D O U T X Y 0 2 1 0 1 0 - 1004. R I O 1 1 0 2 O U T L D I M Y 010' 53' 1021c R I O 2 1 0 3 L D I O U T M T R 103 O U T K T R K M O V 'R 1 0 4 M O V R 1 0 4 M O V , K 4 Y R 1 0 9 3 3= l o o - 100: 1 0 4 R -1 5 3 4 D K 4 Y D M O V I ozI F 0 I F 0 1 0 9 D M O V K - 1 2 3 4 5 6 7 8 9 0 2 ' I I I x21 I! M53 :: 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.5.2 Read by instruction Basic Operation *Operation t o read instruction with device and device number Operation to read only by instruction M-D ( 1 ) The following instructions areread with devices and device numbers provided. The other instructions are read only by instruction. LD OR AND SET PLS SFT OUT MC A N I RST LDI OR1 MCR The OUT T, OUT C, and MC instructions are read as follows: Example: Instruction. . . . .OUT TO K123, read as OUT TO and instruction MC N3 M1023, read as MC N3 As for the P and I instructions,only read by device number canbe performed.(Refer to Section 6.5.3) - 6-28 IB iNAi €6051-A 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES searches thatinstruction,starting a t step 0, and displays the detected step. Thereafter, the @ input starts the search from the next step and displays the next detected step. When the step is not found, “CANT FIND” is displayed. (3) Change of input data Prior t o the input, data can be changed by the followingoperation, 1 ) After pressing the key, input correct data. (2) After setting the instruction, the firstinput 2 ) To change the 3) To change the , @ input DEVICE and @ and 1- , simplykey 6-29 in thecorrect data. IB INA) 66051-A Circuit example Operation R R 100 I O 8 LD L D R I D 8 L D C A N T F I N D R 005' O05'102 X DO5: 108 = I I R R X X M O V I I 1 0 3 M O V 1 0 3 1 0 9 M O V M O V P ai M O V P I R 1 0 9 F I NC DA N T I . . . . . .When the MOV instruction I is searched, the MOVP instruction is also searched. I 6-30 IB (NAI 66051-A 6. PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Read Procedure by Instruction (1) Read of comparison instruction Whenan instruction hasbeen specified, the specified instruction and all-related instructions are read depending on instructions. Specified Instruction I I I - D= <> D< > > I I I I , OR= , ANDD= , ORD= > LDD< > LD< . AND< > LD> , OR> , ORD> , OR< . ANDD< > LD< = D< = LDD< = LD< , AND< LDD< , ANDD< , ORD< LD> = , AND> , OR> = LDD> = , ANDD> = D< >= D> = I 6-31 = I I I > . ORD< > , OR< <= LDD> < I , AND= LDD= , AND> , ANDD> , AND< = , ANDD< = D> I Read Instruction LD= , OR< = , ORD< = , ORD> = I I I IB (NAI 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES When the full instruction hasbeen searched and read. /MELSEC-A - specified (such as LD= and LDD=), only those instructions are (2) Read of instruction, which is executed when input condition turns on,and instruction which is executed only once when input condition turns on (e.g. MOV and MOVP) Read Instruction Specified Instruction Instruction executed when Input condition turns on Instruction executed onlyonce when input condition turns on *Specified instruction Instruction executed only once when input condition turns on Specified instruction For example, in the case of MOV instruction (executed when the input condition turns on) and MOVP instruction (instruction executed only once when the input condition turns on), when MOV is specified, both the MOV instruction and the MOVP instruction areread.When MOVP is specified, only the MOVP instruction isread. 6-32 IB INAl 66051- 6. PROGRAMMING .FUNCTION OPERATION PROCEDURES 6.5.3 Read by device number I / MELSEC-A 1 (1) When a device number is omitted, search is made only by the1 DEVICE Devices searched for only by device: 2,v Devices searched for together with device number: X, Y , M, L, B, F, T, C, D, W, R, A, P, I, N (2) After setting a deviceand a device number,the first input searches that deviceanddevice number, beginning with step 0, and displays the detected step-Thereafter, the @ input initiates search from the next step and displays the detected step. If the step cannot be detected after searching up to END, "CANT FIND" is displayed. (3) Change of in ut data Prior to t h e b input, data can be changed with the following operation. key and input correct data, 2) Re-input t e E] and . 6-33 1B INAI 66051-A 6. PROGRAMMING FUNCTION OPERATION example PROCEDURES Circuit example Operation R R x 005' 005' 1 0 0 L D X R I 0 0 1 0 8 LD X X R 1 0 9 M O V K 4 X R / MELSEC-A 1 1 4 LD I 005' 005' 0052' I K 4 X 0052' L D I X 005' 'R I 1 4 L D I C A N T F I N D R I X 005: I 2 R 1 0 2 M O V , n R 1 0 9 M O V K 4 X I I I 7 1 0052' I 6-34 IB INA) 66051-P 6. PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.6 Insert/DeleteMode The insert/delete mode is used to add or delete instructions to or from the program memory. In this mode, operation can be performed only during CPU stop. The basic operation in insert/delete mode is as described below. Mode Item Insertion of instructions Insert/ delete Deletion of instructions Baric Operation Operation in insert/delete mode Operationfrom read. write, or monitor mode [ Instruction displayoperation in read, write, or monitor mode [ Instruction displayoperation in read, write, or monitor mode Operation in insertldelete mode Operationfrom read, write, or monitor mode -- + ]-['x)- I J indicates operation to be performed when step number is displayed. 6-35 IB (NAI 66051-A 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A - 6.6.1 Insertion of instructions Basic Operation * Operation in insert/delete mode I 1 -Operation from read, write, or monitor mode 1 I 1-0-1 I I Instruction display operation in read, write, or monitor mode - - + indicates operation t o be performed when step number is displayed. ( 1 ) A new program is inserted in front of the specified step. The succeeding instructions and step numbers are adjusted accordingly. If the insert operation is performed with program lengths approaching the maximum memory capacity and the addition of steps causes the memory capacity t o be exceeded, the final instructions will be lost. (2) An instruction is not inserted per step but per instruction. 6-36 IB (NA) 6605' 6 . PROGRAMMING FUNCTION OPERATION 1- PROCEDURES @ B / MELSEC-A (3) Afterinputting the , eitherthe t or key may be operated.However,aftersetting an instruction, it is inserted by pressing key.(The STP key is valid in delete mode.) (4) Instructions are keyed in as described in section 6.3. ( 5 ) When the step number is located halfway through an instruction, the head step number of the instruction is searched and that step number and instruction are displayed. 0 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES Operation example /MELSEC-A - (Circuit example) In this example, the dotted-line area is inserted, I I Displays the program at step 101 l t 0: 1 0 1 A N D M I 1 0 1 I O 2 A N D M I 101 1 0 2 A N D A N I M M I 1 0 2 I O 3 A N I M I 1 0 2 1 0 3 A N I O R M M 0- I 1 0 3 I 0 4 O R M 7' 5: By the insertion operation, the step numbers change. .By input, step 101 and succeeding steps are shifted and the instruction i s inserted into step 101 5 1 HI 6: 6 1 I 6-38 I6 N A I 66051- 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.6.2 Deletion of instructions / Basic Operation Operation in insert/delete mode * Operation from read, write, or monitor mode Instruction display operation in [ read, write,ormonilormode I ]+3-: A I -- + indicates operation to be performed when step number i s displayed. (SIP] , the instruction ( 1 ) By the input of justed accordingly. (2) Aninstruction (3) After inputting the a t the displayed step number is deleted. Step numbers are ad- , either the or B k e y may be operated, In delete mode, is valid in insert mode.) ever, only the input (The key (4) When the step through an instruction, the head step tion is searched and that step number and instruction are displayed. 6-39 how- number instructhe of IB INA) 66051-A 6. PROGRAMMING FUNCTION OPERATION /MELSEC-A - PROCEDURES (Circuit example) I n this example, dotted-line area i s deleted 1' I I O 1 rn A N D M r--------q I 5 1 input, By instruction the a t step 101 is displayed. [ 5 I p l I 0 101 A N I M '6 I mi' 0[' t By the deletion operation, the step numbers change. By Pressing , AND M5 isdeleted and the remaining program steps are shifted ANI M6 is displayed as the instruction a t step 101. I 101 O R M '7 1 0 1 O U T Y ZO'] I 6-40 IB (NA) W 5 1 - A 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.7 Monitor Mode Monitor mode is used to monitor the ON/OFF states of various devices and the contents of various registers in order t o check the operation of the program, Monitor mode can be operated during CPU run. The basic operation in monitor mode i s as described below. Mode Item Monitor of X, Y , M, L, B, and F Monitor of D, W, R , A, 2,and V Monitor Monitor of T/Cpresent value and contact ON/OFF status Operation monitor mode in Continuity check Operation from write, insertidelete, or read mode Monitor of offline switch ( Y . M. L. B. F) ---+ @-STEPIIfB instruction display operation in write insertldelete, or read mode wDEVlCEH4k%!dNOm ~- I - Not available for AOJ2, ABHCPU indicates operation to be performed when step number is displayed. 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.7.1 Monitor of X, Y , M, L, B, and F ( Basic Operation ( 1 ) The ON/OFF status of the specified device is displayed, .I m, Device numbers ON/OFF status display {:i gFF The ON/OFF status is displayed to the left of the device. ( 2 ) By the input of the ON/OFF status of the next device number is displayed. By the input of the ON/OFF status of the preceding device number is displayed. (If is input whenthe largestdevice number is being displayed,the device numberreturns to the is input when the head device number is being displayed, the device numhead device number. I f ber returns to the largest device number.) (3) The screen displays the ON/OFF s t a t e s of a maximum of four devices. ( 4 ) When the @ key ispressed duringtheoperationofthisfunction, the execution proceeds to the monitor operation of offline switch (Section 6.7.5 on page 6-54). (Invalid for AOJ2, A3HCpU.) B, 0 6-42 IB lNAl 66051-1 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Operation example M M M HX Ix 0 I 2 Ix 0 I 3 Ix .x x 0 I 2 I I I 0 I 3 I 0 1 2 1 0 I 4 X 0 1 2 0 1 4 I X 0 1 3 - M X X 0 1 3 0 1 3 X 0 1 4 - X 0 1 3 0 1 3 X 0 1 4 1 X 0 1 4X I M M I I X IM 999 M IM 013I 9 9 9 1 0 1 3 - M I O O O - X12 is in the ON status. . , . , . .Indicates that X13 I, MX I DX . . . . , .Indicates that . , , . .Indicates that X14 i s in the ON status. i s in the O F F status. 6. PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.7.2 Monitor of D, W, R, A, 2, and V Basic Operation Monitor of D,W, R, and A * Monitor of Z and V m * v b m pE+(SIPJ ( 1 ) Thevalue of the selecteddevice is displayed in decimal or hexadecimal.Performswitching decimal and hexadecimal with the SR keyafter , 0 Sign in decimal display ("+" between is displayed i n space.) Data display ( H 0 0 0 i n hexadecimal display) ________ ~_ .. _. _ ~_ ._ ._ __ _ .___. _ _ _ _ _ _ _ _ _ , / Device numbers (Two devices per screen.) 6-44 IB INA) 66051-A 6. PROGRAMMING FUNCTION OPERATION 0 0 0 PROCEDURES / MELSEC-A (2) By pressing the key, the ON/OFF status of the next device number is displayed. By pressing the key, the ON/OFF status of the preceding device number i s displayed. (If is input when the largest device number is being displayed, the device number returns t o the is input when the head device number is being displayed, the device nurnhead device number. I f ber returns to the largest device number.) (3) The screen displays the contents of two devices. ( 4 ) Monitor operation for 32-bit instruction. The PU monitors device values in units of 16 bits. Therefore, when a 32-bit instruction in used, monitor the contents of the two consecutive devices used fot the 32 bit data instruction. Example: Contents of registers after the execution of DMOV K100 DO Decimal monitor Hexadecimal monitor MOO64 DO = 100 Dl = O MOO00 In hexadecimal, the content is H00000064. 0 6. PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example M M M D 1 0 1 5 12 I D 101 D 1 0 1 5 1 121 - 3 2 7 6 8 1 D 131 M H 0H38F070 0 1 . . D 1 2 D M H 8 0 0 0 D 13 H 0 3 F 7 1 D 1 2 1 D A M 1 2 H 0 3 F 7 D 1 2 M H F F F F m A 0 1 H F F F F A O H 0 0 1 9 1 A I I - A I O A 2 5 1 I I 6-46 0 SFT input, display is switched t o hexadecimal. Hexadecimaldisplay until the next 0:" M M . . . .By 1 3 1 @ input. . .By the input of a new device, display i s switched. . _ . _ .By.input, display is switched t o decimal. IB N A I €6051-A 6. PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.7.3 Monitor of TIC present value and contact O N D F F status Basic Operation 7 pi+pziq-~ ( 1 ) The contact ON/OFF status and content (present value) of the specified device are displayed. Switch , between thedecimal and hexadecimal with the @key after Data section ( H 0 0 0 0 in hexadecimal display) Device number ON/OFF status display f : : ON (2) By pressing thekey,the ON/OFF status ofthe next device number is displayed.By pressing the key, the ON/OFF status of the preceding device number i s displayed. (If is input when the largestdevice number is being displayed, the device numberreturns to the head device number. I f is input when the head device number is being displayed, the device nurnber returns to the largest device number.) (3) The screen displays the ON/OFF states and values of two devices, 0 0 6-47 IB (NAI €6051-A 6 . PROGRAMMING FUNCTION OPERATION /MELSEC-A PROCEDURES Operation example M T M M M M M M M M 5 I 0 I 5 12 I H 0 3 7F T 12 I T lam 1 I 0 I 5 I 1 2 1 I . . , , . .T13 present value = 32767, contact H 7 F F F 1 - . . - . B y pressing the T T 1 3 1 1 3 1 I 12- C m: 1 2 = 1015, contact = O F F 3 2 7 6 7 H 7 F FH F0 3 F 7 I T I 3 T T . , . , . .T12 present value H 0 H3 0F 07 0 5 I T I 2 C c = ON SFT key, the display i s switched t o hexadecimal. 9 1 H 0 0 0 5 H 0 0 1 9 C C 9 I 1 0 1 C 5 to decimal. 6-48 IB INAl 66051 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.7.4 Continuity check . Basic Operation .Operation in monitor mode I I Illbe1 L/ueleLe, UI Iec ---+ indicates operation t o be performed when step number i s displayed. (1) Using the operation "Read by step number" (Section 6.5.1 on page 6-25), a program isread and the continuity status, contact ON/OFF status, and device present value are displayed. (2) Explanation of display (For display screen, refer t o the following page) Continuity status:The continuity status aftertheexecutionoftheinstruction is displayed to the left of the instruction. (Not displayed for AOJ2, A3HCPU) ON/OFFdisplay: Displayed t o theleft side of the device number. 6 . PROGRAMMING FUNCTION OPERATION /MELSEC-A PROCEDURES Displayed above theT/Cnumber for a sequence instruction. Displayed to the left of the device number for a basic or application instruction. Switch between decimal and hexadecimal by pressing the key after (3) By pressing thekey,thenextinstruction is displayed. By pressing the key,thepreceding instruction is displayed. is input (If is input a t the final number,the step numberreturns t o the headstep number. I f a t the head step number, the step number returns to the final step number.) (4) Even if digit qualification or index qualification hasbeen performed, the continuity check is made for the previous device number. Example DOZ: The presentvalue of DO is displayed. (Not the present value of D[O+Z]) K2XO: ON/OFF of X 0 is displayed. (Not ON/OFF of X0 to X7) (5) Sequence instruction Present value: @ D. @ 0 -When the device is T, C, D,W, R, A, 2 , or V, the present value is displayed. 1 Instruction : Non-con,tinuity status 6-50 Device number ON/OFF display of device contact (X,Y,M,L,B,F,T,Cl IB INA) 66051- 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES (6) Basic instruction and application instruction Continuity number Step status of instruction i s displayed M :............ I... 8 0 ............ ............... : Non-continuity status Device number ON/OFF display of device contact ( X , Y , M, L. B, F, T.C ) : ON Present value display of device (T,C,D,W,R,A,Z,V) ( 0 :O F F 6-51 IB INAI 66051-A 6 , PROGRAMMING FUNCTION OPERATION /MELSEC-A PROCEDURES Operation example (Circuit example) M M M I om I I I O O I L DX I T M 1 0 2 I L D I 1 0 3 A N 0 T 'M 1 0 3 Y m IM m 1' M A N 0 1 0 4 1 0 R B 107 I 2 3 4 5 1 1 0 2 1 L D I 1 I 0 2 1 1 Y 1 - ' I - 032- 032- 1 I T 1 0 6 1 0 U T T K 1 3 0 8I 2 1 I I . .T1 has not yet timed up. . . . . . .Since X21 and MO are in continuity status, the ORB instruction is in continuity status. . , . . . .Y30 i s in continuity !::#:!:MY 0 3 0 ~ 1 1 0 6 1 0 U T x22 status. . . . . . .T2 coil is in continuity status. Device T2 is off. 2 1 I 6-52 IB INAI 660 6. PROGRAMMING FUNCTION OPERATION PROCEDURES 1 0 7 K 30 L D l l 0X 2 2 1 M 1 0 7 1 0 8 L D l l X O R X M I 0 8 109 O R M O V M 1 0 9 M 109 M O V , K 4 Y M 1 0 9 Y M X 0221 0230231 I M O V 1 2 3 4 5 0 K 4 I 1 E4 N D I - . . . . . .The content of I 02I F 0 I F O I, , , I I DO i s displayed irrespective of the content of 2. . . .ON/OFF of Y 1 FO i s displayed. / MELSEC-A 6 , PROGRAMMING FUNCTION OPERATION PROCEDURES /MELSEC-A 6.7.5 Monitor of offline switch (Y, M, L, B, F ) (Not available for AOJ2, A3HCPU.) ( 1 ) The offline switch status of the selected device is displayed, M sw sw ,, 4 Device number I I 3 Offline status causes the coil of the element t o be effectively disconnected from its controlling logic. (2) By pressing thekey,the status of thenext devicenumber is displayed. By pressing the key, the status of the preceding device number i s displayed, (If is input when the largestdevice number is being displayed, the device number returns t o the headdevice number. I f is input when the headdevice number is being displayed, the device number returns to the largest device number.) (3) The screen displays the offline statuses of two devices. 6-54 IB INAI 66051-t 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A ( 4 ) When the @ key is pressed during the operation of this function, the execution proceeds to the monitor operation of X, Y, M, L, B, and F (Section 6.7.1 on page 6-42). (5) For the setheset operation of offline switch, refer to Section 6.8.3. on page 6-64. Operation example M Q M M M M Y 0 l: sw Y 0 i: sw Y 010:l I S W l Y 0 1 2 1 S W l Y sw Y 0 1 2 1 0 1 3 1 6 . PROGRAMMINGFUNCTIONOPERATION /MELSEC-A - PROCEDURES 6.8 Test Mode Test mode isused t o perform the t e s t operation for the program and t o read any error steps anderror descriptions when appropriate. In t e s t mode, operation can be performed during CPU run or stop. The basic operation in t e s t mode i s as described below. I Mode Test I Setireset of offllne switch ( Y , M, L, 6,and F ) Program check Read of error step and error descriptlon at error time I Basic Owration Item ~DEVlCE@+iEi++~Q(or @:I mdm 6-56 IBINAl€6051-P 6 . PROGRAMMING FUNCTION OPERATION Mode Item Test Readlwrite in machine language /MELSEC-A PROCEDURES -+n Basic Operation Read @ ___________________________ + - Write @ - + ~ + For the AOJ2, ASHCPU, s e t h e s e t of the offline switch cannot be performed ~ + ~ 6 . PROGRAMMING FUNCTION OPERATION 6.8.1 S e t h e s e t of X, Y, / MELSEC-A PROCEDURES M, L, B, and F Basic Operation @ 1 The device is turned on by the input of and turned off by the input of . When operation is performed during CPU run, the device is merely turned on/off as soon as the set/ reset operation is performed from the PU. Thereafter, the status of the device depends on the sequence program. I f the device being set/reset is X, the processing of any instructions using this device is carried out on an "or" basis between the image memory and the actual input. (The image memory is s e t h e s e t by this function) Take care not to SET/RESET X devices used in the data link. 6-58 IB (NAi €6051- 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (3) By the input o f m , the next device number is displayed. By the input of @, the preceding device number is displayed. (If is input whenthelargestdevice number is being displayed, thedevice numberreturns t o the numheaddevice number. I f is input whenthe headdevice number is beingdisplayed,thedevice ber returns to the largest device number,) ( 4 ) The screen displays the states of a maximum of four devices. ( 5 ) When the @ key is pressed duringtheoperationofthisfunction, the execution proceeds to the s e t h e s e t operation of offline switch (Section 6.8.3 on page 6-64). (Invalid forAOJ2, A3HCPU) IMPORTANT Be sure to reset any device which has been set by this operation. e.g. by use of the RESET switch on the CPU unit. 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Operation example T Y T T I T Y 0 0 0 HY 0 0 1 ooa. I @Y 000.1 y 0 0 0 BY 0 0 I Y M @displays the ON/OFF status of YO .I . ... .IS4ET]causesYO t o be SET (ON) '1. . .. . theON/OFF status of t h e next device (i.e. Y l ) 0 0 0 1 displays 5 l m m 6-60 IB lNN 66051-P 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.8.2 Present value change of T, C, D, W, R, A, 2, and V ,1- a,m, ( 1 ) By inputting , and , the current value and ON/OFF status (for T and C ) of the selecteddevice number is displayed. Monitor i s stopped by the input of the content of set device number is changed t o the input value by the input of and and then monitor display is resumed. To set the presentvalue in hexadecimal, input and To s e t the present value in decimal, input only the (For the input of presentvaluedata, use the device number setting keys in area (@ shown on page 1- 1- 6-3.) During CPU run, the presentvalue of the device changes according to the normal processing of the program. (2) Switch between decimal and hexadecimal constants with the SFT key. (3) When "0" is written as the present value of timer/counter, the contact is also reset, 0 6 . PROGRAMMINGFUNCTIONOPERATION PROCEDURES /MELSEC-A - n, (4) Bypressing thekey, the value of thenext device number is displayed. By theinputof the value of the preceding device number is displayed. (If is input when the largest device number is being displayed, the device number returns t o the head device number. If is input when the head device number is being displayed, the device number returns t o the largest device number.) ( 5 ) The screen displays the contents of two devices. (6)Present value change of special register The special register is controlled by the OS of the A series CPU. To change the present value of a special register, perform operation after checking the content, referring to the CPU User’s manual. (7) Present value change when 32-bit instruction is used Changes to present values can only be done in units of 16 bits using the PU. Therefore, convert the 32-bit data to hexadecimal and write it in units of 16 bits. DO and H1234 t o Example: To store K305432864 ( H 12348920)to D O and D l , writeH8920to Dl. 0 0 6-62 IB (NAI 66051 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Operation example T a T T I23 -1. 2 0 o0 m T 2 0 0 1 monitoring to stop. H BT 2 0 0 T TH 7 8 2 0 0 HOFFFI H T 2 0 0 7 8 H O F F F , T 2 0 1 BT to be changed 9999. 201 T BIT .@causes causes the presentvalue Aiim.. . . . .and monitoring to resume 2 0 0 .@switches the H 2 72 00 F1 . BT T ... . i2mm BT 7 8 Monitoringvalue the of T200. The monitor display of ON/OFF status of -the contact i s provided. T BT T m@mm!MFc] 20m- @ TI 2 200.1 345 ,T O T 1 T display to hexadecimal. 2 0 1 1 6-63 1 16 INAi 66051-A 6 . PROGRAMMINGFUNCTIONOPERATION PROCEDURES 6.8.3 Setheset of offline switch (Y, M, L, B, F ) (Not available for AOJ2, A3HCPU) (Basic Operation @ /__-MEI'SEC-A 1 ( 1 ) Theselecteddevice number i s placed onlineby pressing and offline by pressing , (In offline status, a device can be set to the on or off status by the operation of Section 6.8.1, without regard to the operation result of sequence program.) (2) Take care when using this function in conjunction with special function units, since certain Y numbers cannot be s e t h e s e t . (3) Bypressing @ , the next device number is displayed. Bypressing STP , the preceding devicenumber is displayed. (If is input whenthelargestdevice number is beingdisplayed,the device numberreturns to the headdevice number. I f is input when the headdevice number is beingdisplayed, thedevice number returns to the largest device number.) ( 4 ) The screen displays the contents of a maximum of two devices. 0 6-64 IB INAl 66051 6 . PROGRAMMING FUNCTION OPERATION (5) When thekey PROCEDURES / MELSEC-A ispressed duringtheoperation of this function, execution proceeds to the set/reset operation O’X, Y , M, L, B, and F (Section 6.8.1 on page 6-58). 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example T y T T T e T T h T sw Y sw Y s W@Y s WY. , I 0I I I 0 0 0 1 0 0 0.l monitor display of offline switch status . . . . sw Y 0 0 0 'T sw Y 000, 00 I T sw Y 000. 00 I S W B Y SWBY 6 -66 . . sets, online status, IB INAI 6605 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES 6.8.4 Program check ./ MELSEC-A I Basic Operation (1) The sequence program is checked by pressing and , Items which are checked are as follows: ( a ) Dual coil check: Devices ( Y , M, L, E, F, T, and C) in sequence instructions(OUT, SET, SFT, PLS, MC, and PLF) are checked for dual coils. (b) Instruction code check: Sequence program instruction codesare checked. ( c ) ENDinstruction check:END instructionin sequence program is checked. (2) Whenan error hasbeen found as a result of the check, the step number and anarror messageare displayed. Checking may be resumed by pressing beginning a t the next step. Since all instructions from step 0 to the END instruction are checked, this may take a few seconds. B, 6-67 IB iNAi 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example T T P 1 0 2 4 T 1 2 3 4 IDUAL C O I L , 1 4 1 3 Display example of END instruction check T I 9 9 9 Display example of instruction code check T I I c Display example of dual coil check I E , E END MT I S6 S1 I4 N3 G the Displays step currently number being checked. , .Indicates that the device a t step 1234 is a dual coil. Y I F F ERROR'I'.'' END 6-68 I. . . . . .Step 1413 hasan instruction code error. I. . , . I N SI , . .Indicates that the END instruction is stored a t step 1999. . . . . .Indicates that the END instruction has been omitted. IS (NAI 66051 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES 6.8.5 Reading the error step and error description Basic Operation 7 B-B m, / MELSEC-A (1) An error, which has occurred in the programmable controller CPU, is readand displayed by pressing and Error step number (Only error numbers 10, 13, 46, and 50) number Error ............................................. Error message (2) When there is no error, 1' is displayed. E For error numbers and error messages, refer to Section 8.3 on page 8-7. 6-69 I6 INA) 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A /R.ad--- @ - j l j - - j S I P ) 6.8.6 Read/write in machinelanguage Basic Operation ~ Write @ 1- a E ( 1 ) The content of address set by , , and is directly read from the CPU anddis laed in hexadecimal. The new machine language code may then be written to the CPU by inputting Machme and . Theread operation canbe performed even during CPU run. However, the write operation can be performed only during CPU stop. I f the PU has been set to programming function during CPU run, the write operation can be performed during CPU run. t a , , t . f + a D ; I , , Input data is displayed read from CPU i s displayed. Address (5 digits in hexadecimal) 6-70 iB INAt 66051- 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES (2) By pressing @ , thecontent of thenext address is displayed. By pressing previous address is displayed. I REMARKS 1 In this operation, only thearea @ (device number setting k e y s ) shown on page 6-3are valid. / MELSEC-A , thecontent of the /~MELSEC-A 6. PROGRAMMINGFUNCTIONOPERATIONPROCEDURES Operation example T miT DT o 08400 08400 08401 T 08400 IT 0 8 4 0 I 0 8 4 0 1 08402 I I A B A B - 23- 1 1 0 0 I A B - 2 3 - I m 2 3 - I 00 7F- I . . .By pressing 0 , the content of address 8400 (hexa- decimal) i s displayed. . . .By pressing , the content of the next address is disolaved. . . I m mi. I) 6-72 . .By pressing , 10 (hexadecimal) is written to address 8401 (hexadecimal). IB INA) 66051-A 6 . PROGRAMMINGFUNCTIONOPERATION 1.5K bels points Sampling 1 z i : AW2 CPU Dsfaun value Parameter No setting Al(E)CPU, AlNCPU 1 Parameter Ddaun setting range value Absent No setting Absent Absent No setting Absent AZ(E)C I I, A2NCPU :,:: ~,","~~$~ OK byte OK byte /~MELSEC-A PROCEDURES I A3(E)CI I, A3NCPU value Parameter setting range 0 to 4032 points (p;;;n;;) No setting Absent Present/ absent No setting Absent Present/ absent 30 to 3FF To to 2% co to 255 W to 1023 WO to 3FF , ) t L Defautt value _- 1CPU Parameter !;etting range - -OK b v e 0 to 4032 polnts )P :n: ; ;S :_( Absent Absent F'resenti _-absent F'resenti absent 80 to 3FF TO to 255 co to 255 DO to 1023 to 3FF wo I Table 6.1 Default Values and Set Values for Each CPU (Continue) " 1 7 IB (NAI 66051-D 6 . PROGRAMMING FUNCTION OPERATION r I ! CPU Number Number of link stations: 1 to 64 Input (X): X0 to FF output ( Y ) : YO to FF Link relav I Link range specification - I Al(E1CPU. AlNCPU Parameter setting range Defaull value No setting - / MELSEC-A PROCEDURES l'B':BOto31FI register Link Link register M(E)CPU, AZNCPU - WO to 3FF Monitor time: lOms to 2000ms I I A3(E)CI I. A3NCPU WO to 3FF Monitor time: 1Oms to 2000ms A3HCPU 1 I of I link stations: 1 to M Input (XI: X0 to FF output ( Y ) : YO to FF Link relav BOto31FI (B): 1 - 1 to M Input (X): X0 to FF output (Yl: YO to FF Link relay (B): BO to 31F Link register 1 to 64 Input (X): X0 to FF Output ( Y ) : YO to FF Link relay - (WI: WO to 3FF Monitor time: lOms to 2OOOms [in of) ,u;;~ @I: BO to 31F Link register (W): WO to 3FF Monitor time: lOms to 2000ms [in ,u;Esof) Table 6.1 Default Values and Set Values for Each CPU (Continue) 6-75 IB INA) 66051-D -I PU AWZ CPU I MNCPU I AB(E)CPU, A3NCPU Setting of 1 m . ?Oms, integrating (itimers ; ;its;f) I A3HC:PU Setting of tWms: TO to lOOms, l o r n 199 low: ROO to 255 integrating timers 'in units 1.8 p o i n a Table 6.1 Default Values and Set Values for Each CPU (Continue) 6-76 IB INPI 66051 6 . PR0GRA)lMING FUNCTION 1 - m .P 5 AOJ2 CPU pzts Al(E)CI I, AlNCPU Parameter range 0 to 64 points each NO setting G c P 0 3 z - 2 Default value 110 assignment x Remote RUNlPAUSE setting - No setting / MELSEC-A OPERATION PROCEDURES f?6u$rnp3 * input (X) unit * output (YI unit * Special function unit * Vacant slot I AZ(E)CPU, AZNCPU Defauk value Parameter setting range 0 to M points each I AO(E)CPU, A3NCPU Defauk X0 to FF point can be set lor RUN contact * Setting of PAUSE contact aloneis notallowed. point can be set for RUN contact * Setting of PAUSE contact alone is not allowed. Table 6.1 DefaultValuesandSetValues - ' * input ... ..- .....-. --- Dsfauk G X0 to FF * Only 1 p i n t can be setforRUN contact Setting 01 PAUSE contact aloneis notallowed. - zF: Parameter value 0 to M points each (X) unit output (Y) unit ' *Special function unit *Vacant slot - C:6't,"6Z9 * input (X) unit * output (Y unit < *Special function unit * Vacant slot X0 t o FF contact * Setting of PAUSE contact aloneis notallowed. for Each CPU(Continue) 6-77 . A3HCPU value C:GU$%9 f?6;2':n:s9 input (XI unit Output (Y) unit * Special function unit *Vacant slot X0 to FF I 0 to M I points each ' - Parameter IB (NAI 66051-D .. . . 6 . PROGRAMMINGFUNCTIONOPERATION AOJ2 CPU I m c I m c E c Run mode at error 3 c Annunciator display mode * Fuse - Absent - No setting I No setting blow Operation error Stop1 VO unlt verify error * Special function unit operation error AB(E)CF , ABNCPU I, A2NCPU A1lE)CI (cm;;) Continuation Fuse blow Operation error -I - Pararneter retting range DefauIt value Item - /MELSEC-A - PROCEDURES - Operation error error Istop' * 110unit verify error ' Special function Special unit operation n:;n ,:", error operation ::$ . - Fuse blow Operation error * 110 unit verify error * Special function unit operatlon error No setting Absent (y;) blow Operation error [Stop] VO unlt verify error * Special function unlt operation error - Absent ABHCPU Default value (C;;;j * Fuse * Fuse Fuse * Fuse blow Parameter setting range Defautt value --1 T Fuse blow Operation error 110 unit verify error * Special function unit operation error blow Operation error [Stop1 VO unlt verify error * Special function unit operation error Display presentJ absent Absent - - -, Parameter retting range ( - stop/ * Fuse blow Operation error * I/O unit verify err01 * Special function unit operation error Display presenti absent Table 6.1 Default Values and Set Values for Each CPU (Continue) 6-78 IB !NAI 66051 6 . PROGRAMMING FUNCTION vT kern Counter AW2 CPU Default value - Parameter setting range Operation status prior to STOP is .estored. No sening - No setting T AlfEICPU. AlNCPU AZIEICPU. AZNCPU Parameter Parameter Operation status prior to STOP is .estored. CO to 247 - - 128 alphanumeric and special characters - - co to 247 AOIEICPU. A3NCPU . . Default valua Parameter setting range Operation status prior to STOP is restored. output of status prior to STOP or result one scan after operation - CO to 247 s;)(f;it alphanumerlc and special characters - 128 alphanumeric and special characters hexedscimef - hexadedmal digits digits 6 - E T AOHCW Default value Parameter setting range Operation status prior to STOP is restored Output of status prior to STOP or result one scan after operation Absent No setting 128 alphanumeric and special characters 1 alphanumeric and special characters - _. - & A Table 6.1 Default Values and Set Values for Each CPU (Continue) 6-79 . T Output of status prior to STOP or result one scan after operation - counter Print title entry /MELSEC-A OPERATION PROCEDURES __ ~. - -.- - .- , I8 INAI 66051-D . . .. . 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES AW2 CPU Dsfaun Item Parameter 1 value 4CPU A1lE)CPU. AlNCPU Default value I m -m -A Parameter setting range Parameter range VO refresh * Input refresh. output direct * Input direct OUtpJt refresh YO dirset tion Operation mode opera- Initial tion No setting opera- Initial No sening No setting AbsenW present set per counter Interrupt Table 6.1 DefaukValues and SetValues 6-79a for Each CPU IB INAI 660 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES Internal relay, latch relay, step relay rangesettingforthe AOJ2CPU. Unlatched Area Latched Area No latch MO to 2047, TO to 255, CO to 255, DO to 51 1, BO to 3FF. (WO 3FFI No setting Halflatch MO to 1023, CO to 63, DO to 255, TO to 39, T80 to 99,T120 to BO to 1FF. IWO to FFI L1024 to 2047, C64 to 127, D256 to 51 1, T40 to 79, TlOO to 119. T124 to 127. E200 to 3FF. IW200 to 3FFl123. Selection - No setting The A7PU only allows the step relay change the step relay The step relay (SIrange. (S)range is "S1536 t o t h eAOJ2CPU. The step relay (S)range t o beread. 1 LO to 2047,TO to 255, CO to 255, DO to 51 1, BO to 3FF. (WOto 3FFl The AGGPP/AGHGP/AGPHP must be used t o set and t o 2047" independently of the latch setting when step relay (S)"present" is set (S)has the same functions as the internal relay (M) and can be used in the same way as the internal relay (M) in the program. I /MELSEC-A -- 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES Setparameters t o 6.9.1 1. @ are presented on the display, for each operation see sections 6.9.1 in the order that they I P T0 0 F r o m page P A R A M E T E R C L E A R Parameter clear processing (Section 6.9.1 o n page 6-82) ,STPI-I.. T I M T o page Tn next the ;;...S..E.,T page ~ _ _ _ _ - _ _ _ _ _ _-; .___ ;;N-G 1.- ____________Setting of6.9.5 t i m e r ranges (Section o n6-89) page .... 6-80 IB INAi 66051-8 6 . PROGRAMMING FUNCTION / MELSEC-A OPERATION PROCEDURES , , . , .Setting/resetting of keyword (or entry code) (Section 6.9.9 on page 6-97) . . . . .Setting completion operation (Section 6.9.10 on page 6-99) 1 0 From page P @ I F O K + S T P NOT-CL . . . . . .Parameter write operation (Section 6.9.1 1 on page 6-100) When the key is input during the data input of each item,the parameter setting is completed and execution proceeds to Section 6.9.1 1 on page 6-100. 6-81 - IB (NAI 66051-8 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A 6.9.1 Clearing of parameters ( 1 ) Selectdisplay screen by pressing 'P P A R A M E T E R J 0 SFT . 'u (P P A R A M E T E R C L E A R (2) When not clearing parameters If theparameters s e t in the CPU are OK, selectthescreenshown P 0 below and pressor 0. P A R A M E T E R N O CT L E A R By the input, the execution proceeds t o the setting of program memory capacity (Section 6.9.2 on page 6-84). For the AOJ2CPU. the execution proceeds to the setting of latch range (Section 6.9.6 on page 6-92). input, the execution proceeds to the setting completion operation (Section 6.9.10 on page By the 6-99). 0 6-82 IB INAI 66051 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A (3) When clearing parameters To change the parameters set in the CPU into default values, select the screen shown below and press P P A R A M E T E R C L E A R By the input, alltheparameters are changed to default values and execution proceeds to the Setting CoiPletion Operation (Section 6.9.10 on page 6-99). POINT If a keyword (entry code) has been set, parameters cannot be cleared. Therefore, it is necessary to redefine the keyword (Section 6.9.9 onpage 6-97). 6-83 IB lNAl 6605!-8 r 6 . PROGRAMMINGFUNCTIONOPERATION PROCEDURES A7KSEc-A _____ 6.9.2 Setting of program memory capacity (Other than AOJ2CPU) Basic Operation * For A1 or A2CPU For A3CPU or A3HCPU -Whennot changing the capacity f I J ( 1 ) For the setting of program memory capacity, the following screen is displayed program memory capacity i s displayed tner ruC' 0 MAIN/SUB for A3, ABHCPU only. (2) By p r e s s i n g m or , the program memory capacity displayed on the screenis entered as a parameter, (The setting unit i s 1 K step.) (3) When the A3, A3HCPU is used, set the memory capacities of both the main program and subprogram. (When the subprogram is not required, set the subsequence program capacity of OK step.) 6-84 IB INA) 66051-E 6 . PROGRAMMING FUNCTION OPERATION Operation example For A7 or A2CPU PP P STP . , . .Program R 0 G R A M / MELSEC-A PROCEDURES M0 R Y S T E P EM mK , , , , , .Present settingdisplayed P R O G R A MM E M O R Y BK S T E P ~ ~ ~~~ memory capacity is set t o 6 K steps. When the A l C P U is used, the execution proceeds t o the setting o f M and L ranges (Section 6.9.4 on page 6-87). When the A2CPU or ABCPU is used, execution proceeds to the setting of file register capacity (Section 6.9.3 on page 6-86). For A3 or A3HCPU M E M 0 R y IWK S T E P p p R 0 G R A M P P R O G R A MM E M O R Y M A I N S T E P P P R O G R A M S U B P M A I N . , .Present settingdisplayed mK M E M O R Y , ,, aK S T E P P R O G R A M M E M O R Y S U B WK S T E P @. . . , . . . Subprogram memory capacity is set to , .. . (Section 6.9.3 onpage 6-86). , . .Press t o s e t mainprogramcapacity t o 4K steps Display shows present sub-program setting. 4K steps and execution proceeds to the setting of file register capacity 6-85 - 18 INA) 66051-8 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /~i E E A 6.9.3 Setting of file register capacity (Other than A N 2 and AICPU) i I Basic Operation -When changing v 1 - D I When not changing ( 1 ) Set the file register capacity of A2, A3 or A3HCPU. (The setting unit is 1 K point. If the file register is not required, s e t the capacity t o OK point.) Operation example I P 0. . . , , E E I OK E * ’. . . . . .Present setting displayed F I L RE E G I S T E R WK File register capacity is set to 4K points and the execution (Section 6.9.4 on page 6-87), 6-86 proceeds t o the setting of M and L ranges IB iNAi 66051 6 . PROGRAMMING FUNCTION OPERATION 6.9.4 Setting of M and I PROCEDURES / MELSEC-A L ranges (Other than AOJ2CPU) w j S : p ) Basic Operation *When changing .When not changing - 1 For the setting of M and L ranges, the following screen is displayed. p e M . L M 0 ;..... L. h T S.E.;T&!.NG--. A : The head number of presently s e t step relay (S) is displayed. head number of presently set latch relay ( L ) is displayed. Input the head number as described below: The head number of L must not be greater than that of S and must not beless than that of M. When M is not required, input "head number of L = 0." When L is not required, input "head number of L = head number of s." By the input of the head numbers are s e t to the numeric values displayed on the screen. B, 6 . PROGRAMMINGFUNCTIONOPERATIONPROCEDURES /~MEL:SEC-A Operation example S E T T I N G M O , , , , , L S E T T I N G 93@lS2000 Present setting displayed M = 0 to 999 s = 2000 to 2047 . M is defined as 0 to 933 and L is defined as 934 to 1999 and S is defined as 2000 to 2047 the setting of timer range (Section 6.9.5 on page 6-89). 6-88 IB I N A N66051-E 6 . PROGRAMMING FUNCTION OPERATION / MELSEC-A PROCEDURES 6.9.5 Setting of timer ranges (Other than AOJ2CPU) Basic Operation *When changing Head number of 1 Oms timer *When not changing For the setting of timer ranges, the following screen is displayed. @ to switch between the 10ms timer and the retentive timer, Press Input the head numbers as described below: Head number of lOOms timer head number of 10ms timer head number of retentive timer When the 1OOms timer is not required, set the head number of the 10ms timer = 0. 5 5 6-89 -... .. .. .._..- .... IB (NAI €6051-A . .. . . , --.. --- -- 6 . PROGRAMMINGFUNCTIONOPERATION PROCEDURES /~MELSEC-A When the 10ms timer is not required, s e t the head number of 10ms timer = head number of retentive timer. When the retentive timer is not required, set the head number of retentive timer = 256. Example: When not changing the range of 10ms timer but changing only the range of retentive timer, input@ ,(],andm. m, By the input of the head numbers are set t o the numeric values displayed on the screen. Minimum setting in units of 8 timers. Besure to set the head number of each timer so that it canbe divided by 8. 6-90 IB INA) 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES / MELSEC-A Operation example I L T O P m., IP 1 . . . , , .Present setting displayed 100ms (Low-speed) timer ( L T ) = 0 to 199 10ms (High-speed) timer ( H T ) = 200 to 255 Retentive (Integrating) timer ( I T ) = No setting T I M E R S E T T I N G L T O H T I 2 @I T 2 5 6 P @ E sE 1 G H T 2 0 DI T 2 5 6 T I M E SR E1 T T I N l G T I M E R S E T T I N G L T OH T 1 2 l8 T 2 0 n , , , , , , , , , , , . .By input, the cursor moves t o the integrating timer side. .The contents of screen dlsplay are s e t andthe execution proceeds to the setting of latch range (Section 6.9.6 on page 6-92) 1 OOms (Low-speed) tlrner (LT) = 0 to 127 lOms (High-speed) timer ( H T ) = 128 t o 199 Retentive (Integrating) timer (IT)= 200 to 255 rnLSEC-A - 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES *When not executing latch a-I”I’] \ ( 1 ) For the setting of latch ranges, the following screen is displayed. L ,.A..T.,c ,.H . _ ?.,E _ _ T ,I..!..N., G Device Head number of latch range Final number latch of range 1 / Devices are displayed by the following symbols: B = link relay LT = low-speed timer (looms) HT = high-speed timer (10rns) IT = integrating timer (Retentive) C =counter D = data register W = link register ( 2 ) Press @ t o switch between the head number and the final number of the latch range. (3) Input the data as described below: Head number of latch range 5 the final number If the valves are t o remain unchanged simply proceed to the next key stroke. key to input a blank spece where no latch range is required. Use the a 6-92 18 (NAI &XI51 6 . PROGRAMMING FUNCTION OPERATION Eq, PROCEDURES z / MELSEC-A ( 4 ) By pressing the following devices are displayed: Device display order: B 2 LT 2. HT IT C 2 D W (+ indicates input and f.- indicates input.) When is pressed during the display of device 6,execution returns t o Section 6.9.5. Whenispressed during the display of device W, execution proceeds to Section 6.9.7. 9 0 A’ When the A3HCPU is used, execution proceeds t o Section 6.9.8. 6-93 IB (NA) 66051-8 m m -A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES Operation example p P I' L A T B cH sETT OOm- I N G I F F L A T C HS E T T I N G B OABI F F L A T C H S E T T I N G 8 O A O I Fa P L A T C HS E T T I N G B OAOI 2 m P L A T CH L T IP Ip L A T L T cH m- S E T T I N G 20 S E T T I 0- N G L A T c H s E T T 1 N G H T 20m- 2 1 0 . 1 . , , , , , , , . , , , 1. ] , , , , , , , . 6-94 , , . .Present settingdisplayed. .Pressing@causes number setting. the cursor t o move to the final ,Pressingcauses thenext device t o be displayed. .Pressing @ causes a blank space t o be written. .Pressing @leaves LT with no latch range setting. IB lNAi 6605' 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES (AOJZCPU) I- Basic Operation ( 1 ) By theinput of ' P key, select the display screen. - - - - - - - - No latch I N O L A T C HS E T T NI G P L A T C SH E T T I N G P L A T C HS E T T Nl G A L LA R E A U m,m, ] /_ _ _ _ _ _ _ _ / MELSEC-A I Full area latch (2) By the input of the displayed latch range is set. By the input of the execution proceeds to Section 6.9.9 (page 6-99). By the input of STP , the execution proceeds to Section 6.9.2 (page 6-84). 0 6-95 IB INA) 66051-A 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES /%7:LSEC-A -- 6.9.7 Setting of WDT (Other than AOJ2, A3HCPU) m, W - D 2 ( 1 ) By pressing the numeric value displayed on the screen i s set. (2) The set value of WDT i s in units of 10msec. The deast significant digit must be "0". Operation example 0 STP , P W D ST E T T I N G I O m m S P W D ST E T T I N G , , , , 2 . . .. , .Present setting displayed. oam s .The screen contents are set and execution proceeds to the setting/resetting o f keyword (entry code) (Section 6.9.9 on page 6-97). 6-96 IB INAI 660E 6 . PROGRAMMING FUNCTION OPERATION 6.9.8 / MELSEC-A PROCEDURES Setting the I/O control mode (A3HCPU) (1) Press the@ P R E 1/0 E key to select the required display screen. C O N T R O L ,/ R E F R E s 1/0 C O N T R O L R E F R E S H / D I R E C T P P , 1/0 E C O N T R O L E E ,, P 1/0 C O N T R O L D I R E C T / D I R E C T (2) Press H . . . . . . .Input and outputin refresh mode . . . . . . .Inputin refresh mode, outputindirect . . . . . . .Input in direct mode, output in . . . . . . .Input and outputindirect mode refresh mode mode 0 t o set themodedisplayed on the screen. Pressing proceeds to Section 6.9.8. proceeds to Section 6.9.6. 6-96a IB INAi 66051-8 6. PROGRAMMING FUNCTION OPERATION PROCEDURES /--MELSEC-A - 6.9.9 Settinghesetting of keyword (entry code) (Other than AOJZCPU) (Basic 1KEY-WORD-m l code) Q-D Operation - Setting of keyword (entry code) * Resetting of keyword(entry \ (1) Set or reset the keyword. (entry code) (2) The keyword is made up of six hexadecimal digits. Operation example When keyword has not been set P K E Y a, , , , . W O R D 0 Since a keyword has not been set, display is provided in blank. .Setting i s complete for keyword and execution proceeds to the completion of settings operation (Section 6.9.10 on page 6-99). 6-97 - 16 IN 6 . PROGRAMMING FUNCTION OPERATION PROCEDURES 6.9.1 1 Write of parameters (Basic Operation -When writing parameters t o the CPU *When not writingparameters t o the CPU P IF I F O K - S T P NOT-CL 'x Press toload I (3 new parameters intothe Press @ t o preventloadlngandthen CPU. press the key t o change therelevant parameters by stepping through the parameters listed in Section 6.9.1 to 6.9.1 1 '-4 6-100 IB INAl 66f 7 . AUDIO CASSETTE 7. INTERFACE OPERATION PROCEDURES /M ~ L X ~ - AUDIO CASSETTEINTERFACEOPERATIONPROCEDURES The audio cassette function allows the record (write), replay (read), and verify of data shown in Table 7.1. The record (write) and verify operations canbe performed during CPU run. The replay (read) operation can be performed only during CPU stop. c , - CPU Type AlCPU APCPU A3CPU A3HCPU Parameter 0 0 0 0 Program 0 0 0 0 0 0 0 0 Data name Parameter - + orowam Table 7.1 Data Processed by Audio 7-1 Cassette Function .-... (0= allowed) I8 INAI 66051-8 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES / MELSEC-A Operation Instructions For the read or verify operation, s e t the volume of the audio cassette to maximum. (Refer to Appendix 1.) For the selection of tape recording time, refer to the list of processing times in the Appendix. Normal domestic cassettes may be used-however those sold for home computer useare recommended. A tape recorded with the AGPU can be replayed to the CPU via the A7PU. If device memory data recorded from the AOJ2CPUP23/R23 is replayed to the AOJ2CPU, verify error will occur. If device memory data recorded from the AOJ2CPU is replayed to the AOJ2CPUP23/R23, link register contents will be lost. i POINT > See Appendix 2 for required processing times. For memory capacities 64K the AGGPP programs should be stored on floppy disk due to the long time required with thePU. 7-2 IB iNAI 66051-/ /ME/-SEC-A ---- 7 . AUDIO CASSETTE INTERFACE OPERATIONPROCEDURES 7.2 General Operation for Audio Cassette Function The general operation for the audio cassette function is explained below. Refer to Section 7.3. Mode setting ... .. Refer t o Sectlon 7.4 __________________-_ ----- 5, +.. - - - - - - - - - - - - - - .. - - - - Subprogram Refer t o Section 7.5. -I - -1 L?., :STP: 1 I !STP. .. -... Setting of addresses trace * I I ' Others (General data) 1 Refer to Sectlon 7.6. I ---- - - - - - - -- l Parameter Device memory File register COrnment Status latch Sampllng Memory cassette A ...... Setting cOmPletion operation Refer 7-3 ' t o Sectlon 7 . 7 . Refer t o Sectlon 7.8. IB (NAI 66051-A 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES / MELSEC-A 7.3 Mode Setting f Basic Operation Mode selection (1 ) By pressing the @ key, switch the display screen. (Mode selection) m, m, . . n.. . (2) B y pressing the mode displayed on the screen is set. , . .Execution proceeds to Section 7.4. , . .Execution proceeds to Section 7.7. The mode selection result i s shown a t the left top of screen. I ' I W = record (write t o cassette tape) R = replay (read f r o m cassette tape) V = verify 7-4 IB ( N A ) 66051-A 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES Operation example .._ 4 F U N C T 1 O N R E C O R D ( W R . ) .,.. R F U N C T 1 O N R E P L A Y ( R D . ) . V F U N C T I O N V E R I F Y . . . . . .Verify mode W 7-5 , .Record mode .,., .Replay mode IB INAI 66051-A A iZmA 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES 7.4 Setting of Processed Data . , Basic Operation Processed data selection ( 1 ) By pressing the ( 2 ) By the input of 0. . . . . . '. @ k e y , switch the display screen. (Selection of processed data) STP , the mode displayed on the screen is set. . . .Execution proceeds to Section 7.5, Section 7.6, or Section 7.7 the selected data. 0. . . . . . . . . . . . CParameter (Other than AOJ2CPU) . . . . . . . . . . . . . . . . . To . Program . . . . . . To Parameter + program (Other than AOJ2CPU) Subprogram (only A3(E), A3N, A3HCPU) Device memory (except X, Y , special M, special D ) File register (A2(E), A2N. A3(E), A3N, A3HCPU) Comment . . . . . . To Status latch (AZ(E), A2N, A3(E), A3N, A3HCPU) Sampling trace (A2(E), A2N, A3(E), A3N, A3HCPU) Memory cassette (only R A M area of A2(E), AZN, A3(E). A3N. ABHCPU) , , , , To b t h e r s (Generaldata) . . . . . . . . . . . . . . . ~ x e c u t i o nreturns t o Section 7.3. . . depending on Section 7.7 Section 7.5 Section 7.7 Section 7.6 (3) This operation is required for all, record, replay, and verify modes. 7-6 IB INAi 6605' 7 . AUDIO CASSETTE - / MELSEC-A INTERFACE OPERATION PROCEDURES c . F b r 1 1 1 (Al(E),AlNCPU) P A R A M E T E R S T A T U LS A T C H P R O G R A MM E M O R Y I A R E A P A R A . t P R O G R A M E A R E A S U B P R O G R A M (A2(E), A2N. A3(E), A3N 4 (A3(E), A3N. A3HCPU) S A M P L I N TG R A C E I A R E A M E MC .A S S E T T E I O T H E R F I L E R E G I S T E R A3HCPU %lndlcates t h e mode set in Section 7.3. A3HCPU) 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES 7.5 Setting of Program Capacity 1 Basic Operation Sequence program capaclty 1-m / MELSEC-A 7 Setting of programcapacity is required when the following data hasbeen s e t by the operation described in Section 7.4. * Program Parameter + program .Subprogram (A3(E),A3N, A3HCPU) For the setting of program capacity, the following screen is displayed. - I P R 0 G R A,M....M E 4 ~ By the input of ;K M 0 R Y T E p s m, % Indicates the mode Present setting displayed the numeric value displayed on the screen is set. rsIp) . , . . , .Execution proceeds to Section 7.7. u . . . . .Execution returns to Section 7.4. n. 7 . AUDIO CASSETTE / MELSEC-A INTERFACE OPERATION PROCEDURES (4) When it isnecessary t o record a sequence program and a microcomputerprogramtogether, set the program capacity t o include the microcomputer program capacity. Example: When the sequence program capacity is 6K steps and the microcomputer program capacity is 4K bytes, 4K bytes = 6 t 2 = 8K steps 6K steps t 2 byteslsteps Operation example 1' A Mm! E I 'pi , , . . , .Present setting displayed P R O G R A M M E M O R Y l m K S T E P .. ., . .12K steps are t o be processed % Indicates the mode set in Section 7.3. When program is selected for the AOJZCPU, record, replay or verify i s enabled for parameter 7-9 + program. IB (NAI 6M151-A 7. AUDIO CASSETTE INTERFACE OPERATION PROCEDURES /7ELSEC-A -__ 7.6 Setting of Addresses f Basic Operation /laddressj4-./i-I3ISIP] ( 1 ) The address setting operation is required when the following data hasbeen s e t by the operation described in Section 7.4. Other (General data) (2) For the setting of address, the folloWing screen is displayed. - A D * .D..R..E..S..S, ._..._...._._._ - 3% Indicates mode. the d;:::} Present setting displayed (5 digit hexadecimal.) @ (3) By pressing , the cursor moves between the head address and the final address. (4) If the address is not to be changed, input can be omitted. (5) By pressing , thenumeric value displayedonthe screen is set. m.. . . . . . . .Execution proceeds to Section 7.7. . . . . . . . . .Execution returns to Section 7.4. 0. , 7-10 16 (NAI 6605 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES 1MELSEC-A Operation example I A D D R E S S E A D D R E S S I A D D R E S S I A D D R E S S H 0 8 0 0 ~ - H 0 9 F F F .... . H0820a-HO9FFF H08200-HO9FF H08200-HO83FF . , , , . . , , , .The contents of screen display are set. % Indicates the mode set in Section 7.3. .Present settingdisplayed - 7 , AUDIO CASSETTE INTERFACE OPERATION PROCEDURES 7.7 Setting Completion Operation Basic Operation When making nochange aftercompletingthesetting * When making any changes. \ ( 1 ) The setting completion operation is used to complete or change (check) data settings. 4 Operation example S I F O K K E Y I N ' E N D ' @ . . . . Completes setting and proceeds to execution operation (Section m.. . . S I F O K K EI YN ' E N D ' T o change or check data settings. Screen 0 7.8). returns t o mode setting (Section 7.3 on page 7-4). B y pressing , execution returns to the operation (Section 7.4 Section 7.5 or Section 7.6) immediately prior to the setting completion operation. 7-12 16 INAI 6605 7. AUDIO CASSETTE / MELSEC-A INTERFACE OPERATION PROCEDURES 7.8 ExecutionOperation \ {Basic Operation *When executing processing *When notexecuting processing El ( 1 ) The execution operation isused to execute or not to execute the mode set in Section 7.3. Operation example X , . . , , , O K - S T P NOT+CL I F IF ., . , 3% Indicates the mode .Executesthemode set. Start cassetterecorder before pressing 0 ISIP] , T o stopprocessing during execution, press the CL key. When the CL key is pressed, the following messageis displayed. 0 R U N :........................ S T O P j 1 (RECORD), ( R E P L A Y ) , or ( V E R I F Y ) is displayed in J - I U !::I2. 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES Uponcompletion of execution,the following screenis displayed. By pressing tion returns to Section 7.3. / MELSEC-A aftercompletion,execu- Record operation example O K + S T P N O T - C L W I F I F W R U N ( R E C 0 R D ) During execution, the RUN display flickers and the remaining amount of memory displayed at the bottom of screen. One * mark indicates 1K byte, POINT Note the approximate processing time in the Appendix before selecting the audio cassette tape to be used. 7-14 IB (NAJ 6MJ 7 . AUDIO CASSETTE INTERFACE OPERATION PROCEDURES Replay and verify operation example a--C I F I F O K I - S T P NOT-CL The % R displayed during replay and V displayed during verify ---Executes level matching check. I f R U N :........................ L E V E L O K 2a ~ is provided. ;_----: , (REPLAY) or ( V E R I F Y ) is displayed as appropriate. --____ I n side ~ 1. . , , . .During execution, the RUN display flickers and the remaining amount o f ******** R U N !........................ OK,the following display memory is displayed a t the bottom of the screen. If the level matching check result is not satisfactory, the following screen is displayed for approximately 60 seconds. I n this case the volume of the audio cassette. When the level i s OK, the screen shown above is displayed. fi R U N :........................ L E V E L NG j If the level does not become OK during the level check (Which lasts approximately 60 seconds), “LEVEL E R R O R ” is displayed. In this case, press - rewind thetape, and repeat the operation. B, I - Id I6 INAI 66051-A / MELSEC-A 8 . ERROR MESSAGE LIST 8. E R R O R MESSAGE LIST This chapter describes error messages and corrective actions during programming and use of cassette inter. face. 8.1 Error Messages for Programming Function If an error message is displayed, press the relevant mode key and repeat the operation correctly. I No.I I I , I'1 I A C P U 1 2 1 1 C A N T DisDlav R U N F I N D I I1 I Condition DisDlav mode. insert/delete Write. another or m o d e has been attempted during CPU run. I 1 I Action Corrective Set t o CPU stop. I I Data has been searched b u t cannot be found. 8-1 IB iNAl 6 6 0 ! 8. ERROR MESSAGE LIST Thecorrectkeyword entered C A N TO P E R A T E c D E V I C E 0 0 E Restart the PU and key-in the correct entrv code. has not been The instructioncode hasbeen rupted or semideleted. E R R 0 R When the CPU has detected an error, s e t the CPU f r o mR U Nt o STOP status, reset the CPU, then check instructionslocatedinfrontofand behind the step where the error has occurred, and write correct instruction. cor- The set device symbol is wrong. the The device number i s outside range specified. E R R O R Thecoil gram. D U A LC O I LE R R O R I N S --- Corrective Action DisDlav Condition Disolav alreadyexists Reset. If the program is correct, leave it as it is. Otherwise change the coil designation. in thepro- The instruction set in the read, write, o r insert mode is not correct. S E ET R R O R Re-set 8-2 . , ... . .- - - IB INAJ 66051-A .. . . .. . 1 / MELSEC-A 8 . ERROR MESSAGE LIST Display I E E 13 S E T T I N GE R R O R Select mode. has not been made. II Check key operation. parameters has exceeded the capacity W R I T EE R R O R i Corrective Action Condition Display Modeselection E P CN O TR E S P O N D P C I Communication cannot be made w i t h the CPU. Datacouldnot be writtentothe Non valid parameter setting. 8-3 Correct the memory assignment, Performoperation again. If communicationcannot be made,check the following: [:&e connection condition of RAMIROM. Check the setting Check the loading o f R A M , etc. Check the memory protect switch of CPU. Check correct setting. 1 IB (NA) 6 6 0 ! 8 . ERROR MESSAGE LIST ----- Corrective Acvion Display Condition I r 1 4 ( / S T E P 1 I O V E R E R R O R The set step number is greater than the largest step number. Write-in access has been attempted t o a write-forbidden area. Set correct address. delete switch is ON. Set memoryprotectswitchto I During writeinwrite,insert, mode, etc., memoryprotect the of memory cassette 17 I ' ; C A S S E T ET RE R O R I Set correct step nunber During communication with the CPU in entry code clear, parameter write, or MT mode, memory cassette is faulty or i s not loaded. Load memory cassette. Change memory cassette. OFF. / MELSEC-A 8 . ERROR MESSAGE LIST 8.2 Error Messages for Audio Cassette Function Display A C P U I R U N Replay has been attemptedduring CPU run. * I A 1 E R R O R A E E E R Stop the CPU. Thelevel does not match because of volume setting during replay seconds).) The audio cassette does n o t operate during replay or verify. I M T I Re-set thevolume p,' ~ ~ ~ $ ~ ; d ' T & ! e c~~l r r f i a i ~ i sto ~ optimum ~ ~ the od of time (approximately 6o E R R O R / L E V E L Corrective Action Display Condition 0 - wAsum checkerror has occurred i t h respect t o the sum check code recorded on the tape. Data In excess o f the data recorded onthe tape has been attempted t o be replayed or verified. Theassignment ofmemory s e t by parameters replayed fromthe tape, has exceeded the capacity of the memory cassette. 8-5 Appendix 1.1 of audio cassette value. (Refer t o Change the tape. Set correct setting range. Load correct memory check the CaSSette and tape, cassette or of IB lNAI 66% 8. ERROR MESSAGE LIST No. I Display I Display Condition Proper communication cannot be made with the CPU. I / [ B E T T I N G E R R O R 7 V E R I F YE R R O R The set value i s not correct. A verify error has occurred. Device memorydatarecordedfrom the AOJ2CPUP23/R23 has been replayed t o t h eAOJ2CPU. I ---x --- Corrective Action Check cab,e connection, e t c Perform correct setting. I / MELSEC-A 8. ERROR MESSAGE LIST 8.3 Error Number and Error Message List When an error has occurred in the programmable controller by the operation described in Section 6.8.5 on page 6-69( RRORl Error Message U,-l 10 I N S . C O DE ER R O R 11 P A R A M E T EERR R O R I CPU,one of + the following messages is displayed -+ Corrective Action Description An instruction code, which cannot be decoded b y the CPU, is includedin the program. 1) A ROM including an instruction code, whichcannot be decoded, has been loaded. 2 ) The contents of memory have changed for some reason and an instruction code, which cannot be decoded, has been included. 1) A capacity larger thanthememory capacity of CPU has been attempted t o be written. 2 ) Theparametercontents of CPU memory have changed due to of noise improper or loading memorv. 8-7 1. Readtheerror step andcorrectthe instruction at that step. When the cause of trouble is the ROM, rewrite the contents or change It. 1 ) Check the parameter contents and re-set them by the PU. 2) Check theloading of CPU memory. IB (NAI66051- / MELSEC-A 8. ERROR MESSAGE LIST Error Mesage Description The END instruction does notexist in the program. M I S S I N EG N I DN S Corrective Action Write END a t the end of program. 1) There is nojumpdestinationor C A NE 'X TE C U T E i there are several jump destinations C I , SCJ, C A L L , specified for CALLP, or JMP instruction. 2 ) There is a CHG instructionbut there is nosubprogramsetting. 3) Although there is no C A L L instruction, a R E T instruction is in the program and has been executed. 4) The jump destination of CJ,SCJ, CALL,CALLP, or JMP instruction is located below the END instruction and has been executed. Read the error step by the PU and correct the program at that step. (Insert jump destination or reduce the number of jump destinations to one.) /MELSEC-A 8 . ERROR MESSAGE LIST Description Corrective Action 1 ) Although an interruptionunit is used, theinterruptionpointer I, does n o t existforthatunit in theprogramorthere areseveral occurences. 2) An IRET instruction is not included in theinterruptionprogram. 1) Check i f there is an interruption program, which corresponds t o theinterruptionunit,or reduce the occurences o f I t o one. 2 ) Check i f there is an IRET instruction in the interruption program, 3 ) Check if there is an I R E T instruct i o n in otherthantheinterruption program and delete the IRET instruction. Error Message C A N ' ET X E C U T E 3 ) There is an IRET instruction other than in the interruption program. I [ C A S S E T ET ER R O R I 1 A memory cassette is n o t loaded. After checking if the CPU canperform write and/or read operation t o and/or from the data memory area o f CPU, either or both could not be perform- ed. 0 P E . C I R C U I ET R R The operation circuit, which performs sequence processing inside the work properly, CPU, does not Load a memory cassette and perform reset. The cause i s a hardware error, consult the nearest sales representative. / MELSEC-A 8. ERROR MESSAGE LIST ERROR LI^ Error Message Action 22 /26 I L O T E R R O R 1 Corrective Description Scan time has exceeded thewatch dog timer error supervising time. 1 The scan time of user program has exceeded theWDT valve due t o program. 2) Instantaneous powerfailure has occurred during scan and the scan time has increased. 1 ) Calculate and check the scan time the of user programandreduce scan timeby use of CJ instruction, etc. 2) Monitor the content of special register 09005. When it is other power and than 0. check the reducevoltage variations because t h e power voltage i s unstable. The malfunctioned. The cause i s a hardware error, consult the nearest sales representative. 1 ) When the END instruction i s executed, another instruction code has been read due t o noise, etc. 2) The END instruction has changed t o anotherinstruction code for some reason. Perform reset and run the CPU again. I f the same error is displayed again, the cause is a hardware error, consult the nearest sates representative, The main CPU has executed an endless loop or has malfunctioned, (The sub-CPU makes check.) The cause is a hardware error, consult the nearest sales representative. Sub-CPU has u -I w - I8 lNA1 66051-A /MELSEC-A 6.ERROR MESSAGE LIST U N I T V E R I F EY R R F U S EB R E A KO F F Description Corrective Action 1/0 unit data is different from that at power-on. 1/0 unit has been removed 1)An a different duringoperationor unit has been loaded. 2 ) The above has occured during stopandthenthe CPU has been set t o RUN status. 1) Since the bitof special register D9116toD9123,whichcorresponds t o the unit where a verify error has occurred, is "l", monitor the special registers by the PU and check and change the relevant unit. 2) If thepresent unitarrangement is OK, perform reset by the RESET switch. A fuse has blown in 8-11 an output unit. 1) Check the fuse blow Indicator LED of output unit. 2) Monitor special registers 0 9 1 0 0 toD9107and change the fuse unit ofcorresponding the to special register of which bit is "1 ". IB (NA) W 5 1 , 8. ERROR MESSAGE LIST I Error M e s a g e IC 0 N T R 0 L S P . U N I T L I N K u B U 5 L~MELSEC-A E R R ] D O W N N I T Description Corrective Action The FROM and TO instructions cann o t be executed. Control bus error w i t h respect t o a special unit. The cause is a hardware error in special unit, CPU unit, or base unit, change the unit and consult the nearest sales representative. When the FROM or TO instruction is executed, accesshas beenmade to a special function unit which has not responded. 1 ) The accessed special function unit i s defective. error of Since this is a hardware the special unit,consultthe nearest sales representative. 1) AJ71R22 or AJ71P22 is loaded in the master station. 2 ) T W O more or AJ71R22 or AJ71P22 are loaded in a local station. E R R0 R 1 ) Remove the AJ7 1 R22or AJ7 1 P22 from the master station. 2 ) Only one AJ71 R 2 2 or AJ71P22 local should be loaded in the station. After correction reset. I -- 8-12 _.-- .... ... IB iNAi W 5 1 - A . . L E~MUH MESSAGE I Error Message 1/0 / MELSEC-A LIST I N T , E R R O R Description Interruption has occuredwith interrupt unit being loaded. Out 1 ) Three or more computer link S P . U N I T S P . U N I T , A UnitS are unit L A Y E R R E R R O R A E loaded on one c p u Hardwareerror,Consultthe sales representative. nearest 11 Max. of two computer link units allowed. ~ ’ ~ ~ 7 1 ~ or2 2 2)Only oneAJ71P22orAJ71R22 2) T ~ or allowed. AJ71R22 are loaded. 3) Only oneinterruptunitallowed. interruption 3 ) T~~ or are loaded. Access (execution of FROMorTO to a instruction) has been made there is no special function unit. Check and correct, thecontent FROMorTOinstruction.locationwhere Link parameters are incorrect. 1 1 Write parameters again. 2I)f parameters are correct but still displayed, the message is the cause is a hardware error. Therefore, consult the nearest sales representative. 8-13 of IB iNA) 66051-1 f MELStG-H 8 . ERROR MESSAGE LIST ERROR Error Message No. 50 lo E A , E An error codei s displayed ( n o message) 1 Description Corrective Action 1) The result of BCD conversion has exceeded the specified range (9999 o r 99999999). 2 ) Setting has been performedexceeding the specified device range and operation cannot be performed. Read the error step, checkandcorthe program at that step‘ ‘Check the device setting range, BCD conversion valuer 1 ) Thebattery 1 ) Change the battery. 2 ) When R A M memory or power 2) Thebattery voltage has reduced. lead is disconnected. I failure cOmpenSation is necessary, connect the battery. / MELSEC-A APPENDIX APPENDICES APPENDIX 1 Level Matching of Audio Cassette This chapter describes the levels, classified by the models of audio cassettes. The following models has been checked as of May, 1986 and are examples only, this should not be taken as an indication of the models availability in a given country. I I I 5 I Audio Cassette Type CS-665 Fairmate) (by RT-F33 (by Toshiba) National) RQ-341 (by Volume Graduation during Replay or Verify I I TC.1100Sony) (by , lo(mi;I, 1 , ~ I , i -1 r ,5 = , 4 , 10(max) 5 ;orax) , lO(max) National) (by RQ.2739 RX-1835 (by National) , , lO(max) 5 I I I I o(mln) IOimin) APP-1 I Remarks Set the volume graduation t o the range from 5/10 to 10110. Set the volume graduation to4/10 from t o the range 10110. Set the volume graduation the to from 4/10 to 7.5110. range Set the volumegraduatlon t o the range from 4.5110 t o 10110. Set the volume graduation t o the range from 2/10 to 10/10. Set the volume graduation t o the range from 5.5110 10/10. to I I I I I IB iNAI 66051-1 APPENDIX APPENDIX 2 Processing Time for Audio Cassette Function Data Name bytes Main program Subprogram I memory Device File register I Approx. 2 min. 3K 6 K steps Approx. 6 min. Approx. 12 rnin. 2 5 sec. 30K steps Approx. 25 min. 10 sec. 25 min.I bytes (4032 3 Approx. sec. Approx. 4 min. 8K bytes ( 4 K points) 64K Status latch Parameter 14K steps 6.5K bytes Remarks Processing Time Capacity points) Approx. 26 rnin. 2 5 sec. Comment bytes Approx. 12 min. 28K bvtes Samolino trace ADorox. 4 min. 8K I I - /MELSEC-A APPENDIX Data Name Memory cassette 16K bytes (A3MCA-0) Approx. 7 min. 15 sec. 16K bytes (A3MCA-2) ADDrox. 7 min. 15 sec. 32K bytes (A3MCA-4) Approx. 13 min. 35 sec. Approx. 64K bytes (A3MCA-8) 1 Others (General data) Processing Time Capacity 96k bytes (A3MCA-12) (A3MCA-18) bytes 144K 1 Remarks - 26 min. 25 sec. ADprox. 39 min. 50sec. ADDrox. 58 min. 20 sec. I I Approx. 2 min. 25 sec. 4K bytes Approx. 4 min. 40 sec. 10K bytes APP-3 IB INAJ 6605 APPENDIX APPENDIX 3 - fME LSEC-A External Dimension Diagram 1.1 Unit: mm(inch)